Class CfnJob
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.glue.CfnJob
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-10T21:56:52.243Z")
@Stability(Stable)
public class CfnJob
extends CfnResource
implements IInspectable, ITaggable
The
AWS::Glue::Job
resource specifies an AWS Glue job in the data catalog.
For more information, see Adding Jobs in AWS Glue and Job Structure in the AWS Glue Developer Guide.
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.glue.*; Object defaultArguments; Object nonOverridableArguments; Object tags; CfnJob cfnJob = CfnJob.Builder.create(this, "MyCfnJob") .command(JobCommandProperty.builder() .name("name") .pythonVersion("pythonVersion") .runtime("runtime") .scriptLocation("scriptLocation") .build()) .role("role") // the properties below are optional .allocatedCapacity(123) .connections(ConnectionsListProperty.builder() .connections(List.of("connections")) .build()) .defaultArguments(defaultArguments) .description("description") .executionClass("executionClass") .executionProperty(ExecutionPropertyProperty.builder() .maxConcurrentRuns(123) .build()) .glueVersion("glueVersion") .jobMode("jobMode") .jobRunQueuingEnabled(false) .logUri("logUri") .maintenanceWindow("maintenanceWindow") .maxCapacity(123) .maxRetries(123) .name("name") .nonOverridableArguments(nonOverridableArguments) .notificationProperty(NotificationPropertyProperty.builder() .notifyDelayAfter(123) .build()) .numberOfWorkers(123) .securityConfiguration("securityConfiguration") .tags(tags) .timeout(123) .workerType("workerType") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnJob
.static interface
Specifies the connections used by a job.static interface
An execution property of a job.static interface
Specifies code executed when a job is run.static interface
Specifies configuration properties of a notification.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnJob
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnJob
(software.amazon.jsii.JsiiObjectRef objRef) CfnJob
(software.constructs.Construct scope, String id, CfnJobProps props) -
Method Summary
Modifier and TypeMethodDescriptionThis parameter is no longer supported.The code that executes a job.The connections used for this job.The default arguments for this job, specified as name-value pairs.A description of the job.Indicates whether the job is run with a standard or flexible execution class.The maximum number of concurrent runs that are allowed for this job.Glue version determines the versions of Apache Spark and Python that AWS Glue supports.A mode that describes how a job was created.Specifies whether job run queuing is enabled for the job runs for this job.This field is reserved for future use.This field specifies a day of the week and hour for a maintenance window for streaming jobs.The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs.The maximum number of times to retry this job after a JobRun fails.getName()
The name you assign to this job definition.Non-overridable arguments for this job, specified as name-value pairs.Specifies configuration properties of a notification.The number of workers of a definedworkerType
that are allocated when a job runs.getRole()
The name or Amazon Resource Name (ARN) of the IAM role associated with this job.The name of theSecurityConfiguration
structure to be used with this job.getTags()
Tag Manager which manages the tags for this resource.The tags to use with this job.The job timeout in minutes.The type of predefined worker that is allocated when a job runs.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAllocatedCapacity
(Number value) This parameter is no longer supported.void
setCommand
(IResolvable value) The code that executes a job.void
The code that executes a job.void
setConnections
(IResolvable value) The connections used for this job.void
The connections used for this job.void
setDefaultArguments
(Object value) The default arguments for this job, specified as name-value pairs.void
setDescription
(String value) A description of the job.void
setExecutionClass
(String value) Indicates whether the job is run with a standard or flexible execution class.void
setExecutionProperty
(IResolvable value) The maximum number of concurrent runs that are allowed for this job.void
The maximum number of concurrent runs that are allowed for this job.void
setGlueVersion
(String value) Glue version determines the versions of Apache Spark and Python that AWS Glue supports.void
setJobMode
(String value) A mode that describes how a job was created.void
setJobRunQueuingEnabled
(Boolean value) Specifies whether job run queuing is enabled for the job runs for this job.void
Specifies whether job run queuing is enabled for the job runs for this job.void
This field is reserved for future use.void
setMaintenanceWindow
(String value) This field specifies a day of the week and hour for a maintenance window for streaming jobs.void
setMaxCapacity
(Number value) The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs.void
setMaxRetries
(Number value) The maximum number of times to retry this job after a JobRun fails.void
The name you assign to this job definition.void
setNonOverridableArguments
(Object value) Non-overridable arguments for this job, specified as name-value pairs.void
Specifies configuration properties of a notification.void
Specifies configuration properties of a notification.void
setNumberOfWorkers
(Number value) The number of workers of a definedworkerType
that are allocated when a job runs.void
The name or Amazon Resource Name (ARN) of the IAM role associated with this job.void
setSecurityConfiguration
(String value) The name of theSecurityConfiguration
structure to be used with this job.void
setTagsRaw
(Object value) The tags to use with this job.void
setTimeout
(Number value) The job timeout in minutes.void
setWorkerType
(String value) The type of predefined worker that is allocated when a job runs.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
CfnJob
protected CfnJob(software.amazon.jsii.JsiiObjectRef objRef) -
CfnJob
protected CfnJob(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnJob
@Stability(Stable) public CfnJob(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnJobProps props) - 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getCommand
The code that executes a job. -
setCommand
The code that executes a job. -
setCommand
The code that executes a job. -
getRole
The name or Amazon Resource Name (ARN) of the IAM role associated with this job. -
setRole
The name or Amazon Resource Name (ARN) of the IAM role associated with this job. -
getAllocatedCapacity
This parameter is no longer supported.Use
MaxCapacity
instead. -
setAllocatedCapacity
This parameter is no longer supported.Use
MaxCapacity
instead. -
getConnections
The connections used for this job. -
setConnections
The connections used for this job. -
setConnections
The connections used for this job. -
getDefaultArguments
The default arguments for this job, specified as name-value pairs. -
setDefaultArguments
The default arguments for this job, specified as name-value pairs. -
getDescription
A description of the job. -
setDescription
A description of the job. -
getExecutionClass
Indicates whether the job is run with a standard or flexible execution class. -
setExecutionClass
Indicates whether the job is run with a standard or flexible execution class. -
getExecutionProperty
The maximum number of concurrent runs that are allowed for this job. -
setExecutionProperty
The maximum number of concurrent runs that are allowed for this job. -
setExecutionProperty
@Stability(Stable) public void setExecutionProperty(@Nullable CfnJob.ExecutionPropertyProperty value) The maximum number of concurrent runs that are allowed for this job. -
getGlueVersion
Glue version determines the versions of Apache Spark and Python that AWS Glue supports. -
setGlueVersion
Glue version determines the versions of Apache Spark and Python that AWS Glue supports. -
getJobMode
A mode that describes how a job was created.Valid values are:.
-
setJobMode
A mode that describes how a job was created.Valid values are:.
-
getJobRunQueuingEnabled
Specifies whether job run queuing is enabled for the job runs for this job. -
setJobRunQueuingEnabled
Specifies whether job run queuing is enabled for the job runs for this job. -
setJobRunQueuingEnabled
Specifies whether job run queuing is enabled for the job runs for this job. -
getLogUri
This field is reserved for future use. -
setLogUri
This field is reserved for future use. -
getMaintenanceWindow
This field specifies a day of the week and hour for a maintenance window for streaming jobs. -
setMaintenanceWindow
This field specifies a day of the week and hour for a maintenance window for streaming jobs. -
getMaxCapacity
The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. -
setMaxCapacity
The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. -
getMaxRetries
The maximum number of times to retry this job after a JobRun fails. -
setMaxRetries
The maximum number of times to retry this job after a JobRun fails. -
getName
The name you assign to this job definition. -
setName
The name you assign to this job definition. -
getNonOverridableArguments
Non-overridable arguments for this job, specified as name-value pairs. -
setNonOverridableArguments
Non-overridable arguments for this job, specified as name-value pairs. -
getNotificationProperty
Specifies configuration properties of a notification. -
setNotificationProperty
Specifies configuration properties of a notification. -
setNotificationProperty
@Stability(Stable) public void setNotificationProperty(@Nullable CfnJob.NotificationPropertyProperty value) Specifies configuration properties of a notification. -
getNumberOfWorkers
The number of workers of a definedworkerType
that are allocated when a job runs. -
setNumberOfWorkers
The number of workers of a definedworkerType
that are allocated when a job runs. -
getSecurityConfiguration
The name of theSecurityConfiguration
structure to be used with this job. -
setSecurityConfiguration
The name of theSecurityConfiguration
structure to be used with this job. -
getTagsRaw
The tags to use with this job. -
setTagsRaw
The tags to use with this job. -
getTimeout
The job timeout in minutes. -
setTimeout
The job timeout in minutes. -
getWorkerType
The type of predefined worker that is allocated when a job runs. -
setWorkerType
The type of predefined worker that is allocated when a job runs.
-