aws_emrcontainers_job_template

package
v0.0.0-...-4deecce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// KmsKeyArn: string, optional
	KmsKeyArn terra.StringValue `hcl:"kms_key_arn,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// JobTemplateData: required
	JobTemplateData *JobTemplateData `hcl:"job_template_data,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_emrcontainers_job_template.

type JobTemplateData

type JobTemplateData struct {
	// ExecutionRoleArn: string, required
	ExecutionRoleArn terra.StringValue `hcl:"execution_role_arn,attr" validate:"required"`
	// JobTags: map of string, optional
	JobTags terra.MapValue[terra.StringValue] `hcl:"job_tags,attr"`
	// ReleaseLabel: string, required
	ReleaseLabel terra.StringValue `hcl:"release_label,attr" validate:"required"`
	// JobTemplateDataConfigurationOverrides: optional
	ConfigurationOverrides *JobTemplateDataConfigurationOverrides `hcl:"configuration_overrides,block"`
	// JobTemplateDataJobDriver: required
	JobDriver *JobTemplateDataJobDriver `hcl:"job_driver,block" validate:"required"`
}

type JobTemplateDataAttributes

type JobTemplateDataAttributes struct {
	// contains filtered or unexported fields
}

func (JobTemplateDataAttributes) ConfigurationOverrides

func (JobTemplateDataAttributes) ExecutionRoleArn

func (jtd JobTemplateDataAttributes) ExecutionRoleArn() terra.StringValue

func (JobTemplateDataAttributes) InternalRef

func (jtd JobTemplateDataAttributes) InternalRef() (terra.Reference, error)

func (JobTemplateDataAttributes) InternalTokens

func (jtd JobTemplateDataAttributes) InternalTokens() (hclwrite.Tokens, error)

func (JobTemplateDataAttributes) InternalWithRef

func (JobTemplateDataAttributes) JobDriver

func (JobTemplateDataAttributes) JobTags

func (JobTemplateDataAttributes) ReleaseLabel

func (jtd JobTemplateDataAttributes) ReleaseLabel() terra.StringValue

type JobTemplateDataConfigurationOverrides

type JobTemplateDataConfigurationOverrides struct {
	// JobTemplateDataConfigurationOverridesApplicationConfiguration: min=0,max=100
	ApplicationConfiguration []JobTemplateDataConfigurationOverridesApplicationConfiguration `hcl:"application_configuration,block" validate:"min=0,max=100"`
	// JobTemplateDataConfigurationOverridesMonitoringConfiguration: optional
	MonitoringConfiguration *JobTemplateDataConfigurationOverridesMonitoringConfiguration `hcl:"monitoring_configuration,block"`
}

type JobTemplateDataConfigurationOverridesApplicationConfiguration

type JobTemplateDataConfigurationOverridesApplicationConfiguration struct {
	// Classification: string, required
	Classification terra.StringValue `hcl:"classification,attr" validate:"required"`
	// Properties: map of string, optional
	Properties terra.MapValue[terra.StringValue] `hcl:"properties,attr"`
	// JobTemplateDataConfigurationOverridesApplicationConfigurationConfigurations: min=0,max=100
	Configurations []JobTemplateDataConfigurationOverridesApplicationConfigurationConfigurations `hcl:"configurations,block" validate:"min=0,max=100"`
}

type JobTemplateDataConfigurationOverridesApplicationConfigurationAttributes

type JobTemplateDataConfigurationOverridesApplicationConfigurationAttributes struct {
	// contains filtered or unexported fields
}

func (JobTemplateDataConfigurationOverridesApplicationConfigurationAttributes) Classification

func (JobTemplateDataConfigurationOverridesApplicationConfigurationAttributes) InternalRef

func (JobTemplateDataConfigurationOverridesApplicationConfigurationAttributes) InternalTokens

func (JobTemplateDataConfigurationOverridesApplicationConfigurationAttributes) InternalWithRef

func (JobTemplateDataConfigurationOverridesApplicationConfigurationAttributes) Properties

type JobTemplateDataConfigurationOverridesApplicationConfigurationConfigurations

type JobTemplateDataConfigurationOverridesApplicationConfigurationConfigurations struct {
	// Classification: string, optional
	Classification terra.StringValue `hcl:"classification,attr"`
	// Properties: map of string, optional
	Properties terra.MapValue[terra.StringValue] `hcl:"properties,attr"`
}

type JobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsAttributes

type JobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsAttributes struct {
	// contains filtered or unexported fields
}

func (JobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsAttributes) Classification

func (JobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsAttributes) InternalRef

func (JobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsAttributes) InternalTokens

func (JobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsAttributes) Properties

type JobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsState

type JobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsState struct {
	Classification string            `json:"classification"`
	Properties     map[string]string `json:"properties"`
}

type JobTemplateDataConfigurationOverridesApplicationConfigurationState

type JobTemplateDataConfigurationOverridesApplicationConfigurationState struct {
	Classification string                                                                             `json:"classification"`
	Properties     map[string]string                                                                  `json:"properties"`
	Configurations []JobTemplateDataConfigurationOverridesApplicationConfigurationConfigurationsState `json:"configurations"`
}

type JobTemplateDataConfigurationOverridesAttributes

type JobTemplateDataConfigurationOverridesAttributes struct {
	// contains filtered or unexported fields
}

func (JobTemplateDataConfigurationOverridesAttributes) InternalRef

func (JobTemplateDataConfigurationOverridesAttributes) InternalTokens

func (JobTemplateDataConfigurationOverridesAttributes) InternalWithRef

type JobTemplateDataConfigurationOverridesMonitoringConfiguration

type JobTemplateDataConfigurationOverridesMonitoringConfiguration struct {
	// PersistentAppUi: string, optional
	PersistentAppUi terra.StringValue `hcl:"persistent_app_ui,attr"`
	// JobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfiguration: optional
	CloudWatchMonitoringConfiguration *JobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfiguration `hcl:"cloud_watch_monitoring_configuration,block"`
	// JobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfiguration: optional
	S3MonitoringConfiguration *JobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfiguration `hcl:"s3_monitoring_configuration,block"`
}

type JobTemplateDataConfigurationOverridesMonitoringConfigurationAttributes

type JobTemplateDataConfigurationOverridesMonitoringConfigurationAttributes struct {
	// contains filtered or unexported fields
}

func (JobTemplateDataConfigurationOverridesMonitoringConfigurationAttributes) InternalRef

func (JobTemplateDataConfigurationOverridesMonitoringConfigurationAttributes) InternalTokens

func (JobTemplateDataConfigurationOverridesMonitoringConfigurationAttributes) InternalWithRef

func (JobTemplateDataConfigurationOverridesMonitoringConfigurationAttributes) PersistentAppUi

type JobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfiguration

type JobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfiguration struct {
	// LogGroupName: string, required
	LogGroupName terra.StringValue `hcl:"log_group_name,attr" validate:"required"`
	// LogStreamNamePrefix: string, optional
	LogStreamNamePrefix terra.StringValue `hcl:"log_stream_name_prefix,attr"`
}

type JobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationAttributes

type JobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationAttributes struct {
	// contains filtered or unexported fields
}

func (JobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationAttributes) InternalRef

func (JobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationAttributes) InternalTokens

func (JobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationAttributes) LogGroupName

func (JobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationAttributes) LogStreamNamePrefix

type JobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationState

type JobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationState struct {
	LogGroupName        string `json:"log_group_name"`
	LogStreamNamePrefix string `json:"log_stream_name_prefix"`
}

type JobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfiguration

type JobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfiguration struct {
	// LogUri: string, required
	LogUri terra.StringValue `hcl:"log_uri,attr" validate:"required"`
}

type JobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationAttributes

type JobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationAttributes struct {
	// contains filtered or unexported fields
}

func (JobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationAttributes) InternalRef

func (JobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationAttributes) InternalTokens

func (JobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationAttributes) LogUri

type JobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationState

type JobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationState struct {
	LogUri string `json:"log_uri"`
}

type JobTemplateDataConfigurationOverridesMonitoringConfigurationState

type JobTemplateDataConfigurationOverridesMonitoringConfigurationState struct {
	PersistentAppUi                   string                                                                                               `json:"persistent_app_ui"`
	CloudWatchMonitoringConfiguration []JobTemplateDataConfigurationOverridesMonitoringConfigurationCloudWatchMonitoringConfigurationState `json:"cloud_watch_monitoring_configuration"`
	S3MonitoringConfiguration         []JobTemplateDataConfigurationOverridesMonitoringConfigurationS3MonitoringConfigurationState         `json:"s3_monitoring_configuration"`
}

type JobTemplateDataConfigurationOverridesState

type JobTemplateDataConfigurationOverridesState struct {
	ApplicationConfiguration []JobTemplateDataConfigurationOverridesApplicationConfigurationState `json:"application_configuration"`
	MonitoringConfiguration  []JobTemplateDataConfigurationOverridesMonitoringConfigurationState  `json:"monitoring_configuration"`
}

type JobTemplateDataJobDriver

type JobTemplateDataJobDriver struct {
	// JobTemplateDataJobDriverSparkSqlJobDriver: optional
	SparkSqlJobDriver *JobTemplateDataJobDriverSparkSqlJobDriver `hcl:"spark_sql_job_driver,block"`
	// JobTemplateDataJobDriverSparkSubmitJobDriver: optional
	SparkSubmitJobDriver *JobTemplateDataJobDriverSparkSubmitJobDriver `hcl:"spark_submit_job_driver,block"`
}

type JobTemplateDataJobDriverAttributes

type JobTemplateDataJobDriverAttributes struct {
	// contains filtered or unexported fields
}

func (JobTemplateDataJobDriverAttributes) InternalRef

func (JobTemplateDataJobDriverAttributes) InternalTokens

func (JobTemplateDataJobDriverAttributes) InternalWithRef

func (JobTemplateDataJobDriverAttributes) SparkSqlJobDriver

func (JobTemplateDataJobDriverAttributes) SparkSubmitJobDriver

type JobTemplateDataJobDriverSparkSqlJobDriver

type JobTemplateDataJobDriverSparkSqlJobDriver struct {
	// EntryPoint: string, optional
	EntryPoint terra.StringValue `hcl:"entry_point,attr"`
	// SparkSqlParameters: string, optional
	SparkSqlParameters terra.StringValue `hcl:"spark_sql_parameters,attr"`
}

type JobTemplateDataJobDriverSparkSqlJobDriverAttributes

type JobTemplateDataJobDriverSparkSqlJobDriverAttributes struct {
	// contains filtered or unexported fields
}

func (JobTemplateDataJobDriverSparkSqlJobDriverAttributes) EntryPoint

func (JobTemplateDataJobDriverSparkSqlJobDriverAttributes) InternalRef

func (JobTemplateDataJobDriverSparkSqlJobDriverAttributes) InternalTokens

func (JobTemplateDataJobDriverSparkSqlJobDriverAttributes) InternalWithRef

func (JobTemplateDataJobDriverSparkSqlJobDriverAttributes) SparkSqlParameters

type JobTemplateDataJobDriverSparkSqlJobDriverState

type JobTemplateDataJobDriverSparkSqlJobDriverState struct {
	EntryPoint         string `json:"entry_point"`
	SparkSqlParameters string `json:"spark_sql_parameters"`
}

type JobTemplateDataJobDriverSparkSubmitJobDriver

type JobTemplateDataJobDriverSparkSubmitJobDriver struct {
	// EntryPoint: string, required
	EntryPoint terra.StringValue `hcl:"entry_point,attr" validate:"required"`
	// EntryPointArguments: set of string, optional
	EntryPointArguments terra.SetValue[terra.StringValue] `hcl:"entry_point_arguments,attr"`
	// SparkSubmitParameters: string, optional
	SparkSubmitParameters terra.StringValue `hcl:"spark_submit_parameters,attr"`
}

type JobTemplateDataJobDriverSparkSubmitJobDriverAttributes

type JobTemplateDataJobDriverSparkSubmitJobDriverAttributes struct {
	// contains filtered or unexported fields
}

func (JobTemplateDataJobDriverSparkSubmitJobDriverAttributes) EntryPoint

func (JobTemplateDataJobDriverSparkSubmitJobDriverAttributes) EntryPointArguments

func (JobTemplateDataJobDriverSparkSubmitJobDriverAttributes) InternalRef

func (JobTemplateDataJobDriverSparkSubmitJobDriverAttributes) InternalTokens

func (JobTemplateDataJobDriverSparkSubmitJobDriverAttributes) InternalWithRef

func (JobTemplateDataJobDriverSparkSubmitJobDriverAttributes) SparkSubmitParameters

type JobTemplateDataJobDriverSparkSubmitJobDriverState

type JobTemplateDataJobDriverSparkSubmitJobDriverState struct {
	EntryPoint            string   `json:"entry_point"`
	EntryPointArguments   []string `json:"entry_point_arguments"`
	SparkSubmitParameters string   `json:"spark_submit_parameters"`
}

type JobTemplateDataJobDriverState

type JobTemplateDataJobDriverState struct {
	SparkSqlJobDriver    []JobTemplateDataJobDriverSparkSqlJobDriverState    `json:"spark_sql_job_driver"`
	SparkSubmitJobDriver []JobTemplateDataJobDriverSparkSubmitJobDriverState `json:"spark_submit_job_driver"`
}

type JobTemplateDataState

type JobTemplateDataState struct {
	ExecutionRoleArn       string                                       `json:"execution_role_arn"`
	JobTags                map[string]string                            `json:"job_tags"`
	ReleaseLabel           string                                       `json:"release_label"`
	ConfigurationOverrides []JobTemplateDataConfigurationOverridesState `json:"configuration_overrides"`
	JobDriver              []JobTemplateDataJobDriverState              `json:"job_driver"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource aws_emrcontainers_job_template.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aejt *Resource) Attributes() awsEmrcontainersJobTemplateAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (aejt *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (aejt *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (aejt *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (aejt *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (aejt *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aejt *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aejt *Resource) State() (*awsEmrcontainersJobTemplateState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (aejt *Resource) StateMust() *awsEmrcontainersJobTemplateState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (aejt *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

type TimeoutsState

type TimeoutsState struct {
	Delete string `json:"delete"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL