Class RayJob
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.glue.alpha.JobBase
software.amazon.awscdk.services.glue.alpha.Job
software.amazon.awscdk.services.glue.alpha.RayJob
- All Implemented Interfaces:
IEnvironmentAware,IResource,IJob,IGrantable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)",
date="2026-07-02T13:33:03.412Z")
@Stability(Deprecated)
@Deprecated
public class RayJob
extends Job
Deprecated.
AWS Glue for Ray is closed to new customers as of April 30, 2026.
Migrate to Amazon EKS with KubeRay Operator. See
https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
(deprecated) Ray Jobs class.
Glue Ray jobs use worker type Z.2X and Glue version 4.0. These are not overrideable since these are the only configuration that Glue Ray jobs currently support. The runtime defaults to Ray2.4 and min workers defaults to 3.
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.alpha.*;
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.services.logs.*;
Code code;
Connection connection;
LogGroup logGroup;
Role role;
SecurityConfiguration securityConfiguration;
RayJob rayJob = RayJob.Builder.create(this, "MyRayJob")
.role(role)
.script(code)
// the properties below are optional
.connections(List.of(connection))
.continuousLogging(ContinuousLoggingProps.builder()
.enabled(false)
// the properties below are optional
.conversionPattern("conversionPattern")
.logGroup(logGroup)
.logStreamPrefix("logStreamPrefix")
.quiet(false)
.build())
.defaultArguments(Map.of(
"defaultArgumentsKey", "defaultArguments"))
.description("description")
.enableMetrics(false)
.enableObservabilityMetrics(false)
.enableProfilingMetrics(false)
.glueVersion(GlueVersion.V0_9)
.jobName("jobName")
.jobRunQueuingEnabled(false)
.maxConcurrentRuns(123)
.maxRetries(123)
.numberOfWorkers(123)
.runtime(Runtime.RAY_TWO_FOUR)
.securityConfiguration(securityConfiguration)
.tags(Map.of(
"tagsKey", "tags"))
.timeout(Duration.minutes(30))
.workerType(WorkerType.STANDARD)
.build();
-
Nested Class Summary
Nested ClassesNested 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.services.glue.alpha.IJob
IJob.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRayJob(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.protectedRayJob(software.amazon.jsii.JsiiObjectRef objRef) Deprecated.RayJob(software.constructs.Construct scope, String id, RayJobProps props) Deprecated. -
Method Summary
Methods inherited from class software.amazon.awscdk.services.glue.alpha.Job
checkNoReservedArgs, checkNoReservedArgs, codeS3ObjectUrl, fromJobAttributes, setupContinuousLogging, setupContinuousLoggingMethods inherited from class software.amazon.awscdk.services.glue.alpha.JobBase
buildJobArn, metric, metric, metricFailure, metricFailure, metricSuccess, metricSuccess, metricTimeout, metricTimeout, onEvent, onEvent, onFailure, onFailure, onStateChange, onStateChange, onSuccess, onSuccess, onTimeout, onTimeoutMethods inherited from class software.amazon.awscdk.Resource
applyCrossStackReferenceStrength, applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods 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.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Deprecated.(deprecated) Uniquely identifies this class.
-
-
Constructor Details
-
RayJob
protected RayJob(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
RayJob
protected RayJob(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated. -
RayJob
@Stability(Deprecated) @Deprecated public RayJob(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull RayJobProps props) Deprecated.(deprecated) RayJob constructor.- Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
getGrantPrincipal
Deprecated.(deprecated) The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIGrantable- Specified by:
getGrantPrincipalin classJobBase
-
getJobArn
Deprecated.(deprecated) The ARN of the job. -
getJobName
Deprecated.(deprecated) The name of the job.- Specified by:
getJobNamein interfaceIJob- Specified by:
getJobNamein classJobBase
-
getRole
Deprecated.(deprecated) The IAM role Glue assumes to run this job.
-