CfnJobTemplateProps
- class aws_cdk.aws_emrcontainers.CfnJobTemplateProps(*, job_template_data, name, tags=None)
Bases:
objectProperties for defining a
CfnJobTemplate.- Parameters:
job_template_data (
Union[IResolvable,JobTemplateDataProperty,Dict[str,Any]]) – The values of a StartJobRun API request used in job runs started using the job template.name (
str) – The specified name of the job template.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – The tags that are associated with the job template.
- See:
- ExampleMetadata:
fixture=_generated
Example:
from aws_cdk import CfnTag # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_emrcontainers as emrcontainers # configuration_property_: emrcontainers.CfnJobTemplate.ConfigurationProperty cfn_job_template_props = emrcontainers.CfnJobTemplateProps( job_template_data=emrcontainers.CfnJobTemplate.JobTemplateDataProperty( execution_role_arn="executionRoleArn", job_driver=emrcontainers.CfnJobTemplate.JobDriverProperty( spark_sql_job_driver=emrcontainers.CfnJobTemplate.SparkSqlJobDriverProperty( entry_point="entryPoint", spark_sql_parameters="sparkSqlParameters" ), spark_submit_job_driver=emrcontainers.CfnJobTemplate.SparkSubmitJobDriverProperty( entry_point="entryPoint", # the properties below are optional entry_point_arguments=["entryPointArguments"], spark_submit_parameters="sparkSubmitParameters" ) ), release_label="releaseLabel", # the properties below are optional configuration_overrides=emrcontainers.CfnJobTemplate.ParametricConfigurationOverridesProperty( application_configuration=[emrcontainers.CfnJobTemplate.ConfigurationProperty( classification="classification", # the properties below are optional configurations=[configuration_property_], properties={ "properties_key": "properties" } )], monitoring_configuration=emrcontainers.CfnJobTemplate.ParametricMonitoringConfigurationProperty( cloud_watch_monitoring_configuration=emrcontainers.CfnJobTemplate.ParametricCloudWatchMonitoringConfigurationProperty( log_group_name="logGroupName", log_stream_name_prefix="logStreamNamePrefix" ), persistent_app_ui="persistentAppUi", s3_monitoring_configuration=emrcontainers.CfnJobTemplate.ParametricS3MonitoringConfigurationProperty( log_uri="logUri" ) ) ), job_tags={ "job_tags_key": "jobTags" }, parameter_configuration={ "parameter_configuration_key": emrcontainers.CfnJobTemplate.TemplateParameterConfigurationProperty( default_value="defaultValue", type="type" ) } ), name="name", # the properties below are optional tags=[CfnTag( key="key", value="value" )] )
Attributes
- job_template_data
The values of a StartJobRun API request used in job runs started using the job template.
- name
The specified name of the job template.
- tags
The tags that are associated with the job template.