Skip to content
v2.273.0

CfnJobTemplateProps Struct ​

Properties for defining a CfnJobTemplate.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emrcontainers as emrcontainers } from 'aws-cdk-lib';

declare const configurationProperty_: emrcontainers.CfnJobTemplate.ConfigurationProperty;
const cfnJobTemplateProps: emrcontainers.CfnJobTemplateProps = {
  jobTemplateData: {
    executionRoleArn: 'executionRoleArn',
    jobDriver: {
      sparkSqlJobDriver: {
        entryPoint: 'entryPoint',
        sparkSqlParameters: 'sparkSqlParameters',
      },
      sparkSubmitJobDriver: {
        entryPoint: 'entryPoint',

        // the properties below are optional
        entryPointArguments: ['entryPointArguments'],
        sparkSubmitParameters: 'sparkSubmitParameters',
      },
    },
    releaseLabel: 'releaseLabel',

    // the properties below are optional
    configurationOverrides: {
      applicationConfiguration: [{
        classification: 'classification',

        // the properties below are optional
        configurations: [configurationProperty_],
        properties: {
          propertiesKey: 'properties',
        },
      }],
      monitoringConfiguration: {
        cloudWatchMonitoringConfiguration: {
          logGroupName: 'logGroupName',
          logStreamNamePrefix: 'logStreamNamePrefix',
        },
        persistentAppUi: 'persistentAppUi',
        s3MonitoringConfiguration: {
          logUri: 'logUri',
        },
      },
    },
    jobTags: {
      jobTagsKey: 'jobTags',
    },
    parameterConfiguration: {
      parameterConfigurationKey: {
        defaultValue: 'defaultValue',
        type: 'type',
      },
    },
  },
  name: 'name',

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

jobTemplateDataIResolvable | CfnJobTemplate.JobTemplateDataPropertyjob_template_datatyping.Union[IResolvable, JobTemplateDataProperty]jobTemplateDataIResolvableJobTemplateDataIResolvableJobTemplateDatainterface{}required#
The values of a StartJobRun API request used in job runs started using the job template.
namestringnamestrnameStringNamestringName*stringrequired#
The specified name of the job template.
tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
The tags that are associated with the job template.

Used as props by ​