Class CfnJobTemplate
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.emrcontainers.CfnJobTemplate
- All Implemented Interfaces:
IInspectable,IJobTemplateRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:52.153Z")
@Stability(Stable)
public class CfnJobTemplate
extends CfnResource
implements IInspectable, IJobTemplateRef, ITaggableV2
Represents an Amazon EMR on EKS job template.
A job template stores the values of a StartJobRun API request in a reusable template, so they can be used to start a job run or to enforce certain values in a StartJobRun API request.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.emrcontainers.*;
ConfigurationProperty configurationProperty_;
CfnJobTemplate cfnJobTemplate = CfnJobTemplate.Builder.create(this, "MyCfnJobTemplate")
.jobTemplateData(JobTemplateDataProperty.builder()
.executionRoleArn("executionRoleArn")
.jobDriver(JobDriverProperty.builder()
.sparkSqlJobDriver(SparkSqlJobDriverProperty.builder()
.entryPoint("entryPoint")
.sparkSqlParameters("sparkSqlParameters")
.build())
.sparkSubmitJobDriver(SparkSubmitJobDriverProperty.builder()
.entryPoint("entryPoint")
// the properties below are optional
.entryPointArguments(List.of("entryPointArguments"))
.sparkSubmitParameters("sparkSubmitParameters")
.build())
.build())
.releaseLabel("releaseLabel")
// the properties below are optional
.configurationOverrides(ParametricConfigurationOverridesProperty.builder()
.applicationConfiguration(List.of(ConfigurationProperty.builder()
.classification("classification")
// the properties below are optional
.configurations(List.of(configurationProperty_))
.properties(Map.of(
"propertiesKey", "properties"))
.build()))
.monitoringConfiguration(ParametricMonitoringConfigurationProperty.builder()
.cloudWatchMonitoringConfiguration(ParametricCloudWatchMonitoringConfigurationProperty.builder()
.logGroupName("logGroupName")
.logStreamNamePrefix("logStreamNamePrefix")
.build())
.persistentAppUi("persistentAppUi")
.s3MonitoringConfiguration(ParametricS3MonitoringConfigurationProperty.builder()
.logUri("logUri")
.build())
.build())
.build())
.jobTags(Map.of(
"jobTagsKey", "jobTags"))
.parameterConfiguration(Map.of(
"parameterConfigurationKey", TemplateParameterConfigurationProperty.builder()
.defaultValue("defaultValue")
.type("type")
.build()))
.build())
.name("name")
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnJobTemplate.static interfaceA configuration specification to be used when provisioning virtual clusters, which can include configurations for applications and software bundled with Amazon EMR on EKS.static interfaceSpecify the driver that the job runs on.static interfaceThe values of a StartJobRun API request used in job runs started using the job template.static interfaceA configuration for CloudWatch monitoring.static interfaceA configuration specification to be used to override existing configurations.static interfaceConfiguration setting for monitoring.static interfaceAmazon S3 configuration for monitoring log publishing.static interfaceThe job driver for job type.static interfaceThe information about job driver for Spark submit.static interfaceThe configuration of a job template parameter.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.emrcontainers.IJobTemplateRef
IJobTemplateRef.Jsii$Default, IJobTemplateRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnJobTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnJobTemplate(software.amazon.jsii.JsiiObjectRef objRef) CfnJobTemplate(software.constructs.Construct scope, String id, CfnJobTemplateProps props) Create a newAWS::EMRContainers::JobTemplate. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForJobTemplate(IJobTemplateRef resource) The ARN of the job template.The date and time when the job template was created.The user who created the job template.The ID of the job template.Tag Manager which manages the tags for this resource.The values of a StartJobRun API request used in job runs started using the job template.A reference to a JobTemplate resource.getName()The specified name of the job template.getTags()The tags that are associated with the job template.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnJobTemplate.renderProperties(Map<String, Object> props) voidsetJobTemplateData(IResolvable value) The values of a StartJobRun API request used in job runs started using the job template.voidThe values of a StartJobRun API request used in job runs started using the job template.voidThe specified name of the job template.voidThe tags that are associated with the job template.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnJobTemplate
protected CfnJobTemplate(software.amazon.jsii.JsiiObjectRef objRef) -
CfnJobTemplate
protected CfnJobTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnJobTemplate
@Stability(Stable) public CfnJobTemplate(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnJobTemplateProps props) Create a newAWS::EMRContainers::JobTemplate.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForJobTemplate
@Stability(Stable) @NotNull public static String arnForJobTemplate(@NotNull IJobTemplateRef resource) - Parameters:
resource- This parameter is required.
-
isCfnJobTemplate
Checks whether the given object is a CfnJobTemplate.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The ARN of the job template. -
getAttrCreatedAt
The date and time when the job template was created. -
getAttrCreatedBy
The user who created the job template. -
getAttrId
The ID of the job template. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getJobTemplateRef
A reference to a JobTemplate resource.- Specified by:
getJobTemplateRefin interfaceIJobTemplateRef
-
getJobTemplateData
The values of a StartJobRun API request used in job runs started using the job template.Returns union: either
IResolvableorCfnJobTemplate.JobTemplateDataProperty -
setJobTemplateData
The values of a StartJobRun API request used in job runs started using the job template. -
setJobTemplateData
@Stability(Stable) public void setJobTemplateData(@NotNull CfnJobTemplate.JobTemplateDataProperty value) The values of a StartJobRun API request used in job runs started using the job template. -
getName
The specified name of the job template. -
setName
The specified name of the job template. -
getTags
The tags that are associated with the job template. -
setTags
The tags that are associated with the job template.
-