Class CfnMLTransform
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Glue::MLTransform
.
The AWS::Glue::MLTransform is an AWS Glue resource type that manages machine learning transforms.
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 tags; CfnMLTransform cfnMLTransform = CfnMLTransform.Builder.create(this, "MyCfnMLTransform") .inputRecordTables(InputRecordTablesProperty.builder() .glueTables(List.of(GlueTablesProperty.builder() .databaseName("databaseName") .tableName("tableName") // the properties below are optional .catalogId("catalogId") .connectionName("connectionName") .build())) .build()) .role("role") .transformParameters(TransformParametersProperty.builder() .transformType("transformType") // the properties below are optional .findMatchesParameters(FindMatchesParametersProperty.builder() .primaryKeyColumnName("primaryKeyColumnName") // the properties below are optional .accuracyCostTradeoff(123) .enforceProvidedLabels(false) .precisionRecallTradeoff(123) .build()) .build()) // the properties below are optional .description("description") .glueVersion("glueVersion") .maxCapacity(123) .maxRetries(123) .name("name") .numberOfWorkers(123) .tags(tags) .timeout(123) .transformEncryption(TransformEncryptionProperty.builder() .mlUserDataEncryption(MLUserDataEncryptionProperty.builder() .mlUserDataEncryptionMode("mlUserDataEncryptionMode") // the properties below are optional .kmsKeyId("kmsKeyId") .build()) .taskRunSecurityConfigurationName("taskRunSecurityConfigurationName") .build()) .workerType("workerType") .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnMLTransform
.static interface
The parameters to configure the find matches transform.static interface
The database and table in the AWS Glue Data Catalog that is used for input or output data.static interface
A list of AWS Glue table definitions used by the transform.static interface
The encryption-at-rest settings of the transform that apply to accessing user data.static interface
The encryption-at-rest settings of the transform that apply to accessing user data.static interface
The algorithm-specific parameters that are associated with the machine learning transform.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnMLTransform
(Construct scope, String id, CfnMLTransformProps props) Create a newAWS::Glue::MLTransform
.protected
CfnMLTransform
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnMLTransform
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionA user-defined, long-form description text for the machine learning transform.This value determines which version of AWS Glue this machine learning transform is compatible with.A list of AWS Glue table definitions used by the transform.The number of AWS Glue data processing units (DPUs) that are allocated to task runs for this transform.The maximum number of times to retry after anMLTaskRun
of the machine learning transform fails.getName()
A user-defined name for the machine learning transform.The number of workers of a definedworkerType
that are allocated when a task of the transform runs.getRole()
The name or Amazon Resource Name (ARN) of the IAM role with the required permissions.getTags()
The tags to use with this machine learning transform.The timeout in minutes of the machine learning transform.The encryption-at-rest settings of the transform that apply to accessing user data.The algorithm-specific parameters that are associated with the machine learning transform.The type of predefined worker that is allocated when a task of this transform runs.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDescription
(String value) A user-defined, long-form description text for the machine learning transform.void
setGlueVersion
(String value) This value determines which version of AWS Glue this machine learning transform is compatible with.void
setInputRecordTables
(IResolvable value) A list of AWS Glue table definitions used by the transform.void
A list of AWS Glue table definitions used by the transform.void
setMaxCapacity
(Number value) The number of AWS Glue data processing units (DPUs) that are allocated to task runs for this transform.void
setMaxRetries
(Number value) The maximum number of times to retry after anMLTaskRun
of the machine learning transform fails.void
A user-defined name for the machine learning transform.void
setNumberOfWorkers
(Number value) The number of workers of a definedworkerType
that are allocated when a task of the transform runs.void
The name or Amazon Resource Name (ARN) of the IAM role with the required permissions.void
setTimeout
(Number value) The timeout in minutes of the machine learning transform.void
The encryption-at-rest settings of the transform that apply to accessing user data.void
The encryption-at-rest settings of the transform that apply to accessing user data.void
The algorithm-specific parameters that are associated with the machine learning transform.void
The algorithm-specific parameters that are associated with the machine learning transform.void
setWorkerType
(String value) The type of predefined worker that is allocated when a task of this transform runs.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
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
-
CfnMLTransform
protected CfnMLTransform(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMLTransform
protected CfnMLTransform(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMLTransform
@Stability(Stable) public CfnMLTransform(@NotNull Construct scope, @NotNull String id, @NotNull CfnMLTransformProps props) Create a newAWS::Glue::MLTransform
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
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
The tags to use with this machine learning transform.You may use tags to limit access to the machine learning transform. For more information about tags in AWS Glue , see AWS Tags in AWS Glue in the developer guide.
-
getInputRecordTables
A list of AWS Glue table definitions used by the transform. -
setInputRecordTables
A list of AWS Glue table definitions used by the transform. -
setInputRecordTables
@Stability(Stable) public void setInputRecordTables(@NotNull CfnMLTransform.InputRecordTablesProperty value) A list of AWS Glue table definitions used by the transform. -
getRole
The name or Amazon Resource Name (ARN) of the IAM role with the required permissions.The required permissions include both AWS Glue service role permissions to AWS Glue resources, and Amazon S3 permissions required by the transform.
- This role needs AWS Glue service role permissions to allow access to resources in AWS Glue . See Attach a Policy to IAM Users That Access AWS Glue .
- This role needs permission to your Amazon Simple Storage Service (Amazon S3) sources, targets, temporary directory, scripts, and any libraries used by the task run for this transform.
-
setRole
The name or Amazon Resource Name (ARN) of the IAM role with the required permissions.The required permissions include both AWS Glue service role permissions to AWS Glue resources, and Amazon S3 permissions required by the transform.
- This role needs AWS Glue service role permissions to allow access to resources in AWS Glue . See Attach a Policy to IAM Users That Access AWS Glue .
- This role needs permission to your Amazon Simple Storage Service (Amazon S3) sources, targets, temporary directory, scripts, and any libraries used by the task run for this transform.
-
getTransformParameters
The algorithm-specific parameters that are associated with the machine learning transform. -
setTransformParameters
The algorithm-specific parameters that are associated with the machine learning transform. -
setTransformParameters
@Stability(Stable) public void setTransformParameters(@NotNull CfnMLTransform.TransformParametersProperty value) The algorithm-specific parameters that are associated with the machine learning transform. -
getDescription
A user-defined, long-form description text for the machine learning transform. -
setDescription
A user-defined, long-form description text for the machine learning transform. -
getGlueVersion
This value determines which version of AWS Glue this machine learning transform is compatible with.Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see AWS Glue Versions in the developer guide.
-
setGlueVersion
This value determines which version of AWS Glue this machine learning transform is compatible with.Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see AWS Glue Versions in the developer guide.
-
getMaxCapacity
The number of AWS Glue data processing units (DPUs) that are allocated to task runs for this transform.You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the AWS Glue pricing page .
MaxCapacity
is a mutually exclusive option withNumberOfWorkers
andWorkerType
.- If either
NumberOfWorkers
orWorkerType
is set, thenMaxCapacity
cannot be set. - If
MaxCapacity
is set then neitherNumberOfWorkers
orWorkerType
can be set. - If
WorkerType
is set, thenNumberOfWorkers
is required (and vice versa). MaxCapacity
andNumberOfWorkers
must both be at least 1.
When the
WorkerType
field is set to a value other thanStandard
, theMaxCapacity
field is set automatically and becomes read-only. - If either
-
setMaxCapacity
The number of AWS Glue data processing units (DPUs) that are allocated to task runs for this transform.You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the AWS Glue pricing page .
MaxCapacity
is a mutually exclusive option withNumberOfWorkers
andWorkerType
.- If either
NumberOfWorkers
orWorkerType
is set, thenMaxCapacity
cannot be set. - If
MaxCapacity
is set then neitherNumberOfWorkers
orWorkerType
can be set. - If
WorkerType
is set, thenNumberOfWorkers
is required (and vice versa). MaxCapacity
andNumberOfWorkers
must both be at least 1.
When the
WorkerType
field is set to a value other thanStandard
, theMaxCapacity
field is set automatically and becomes read-only. - If either
-
getMaxRetries
The maximum number of times to retry after anMLTaskRun
of the machine learning transform fails. -
setMaxRetries
The maximum number of times to retry after anMLTaskRun
of the machine learning transform fails. -
getName
A user-defined name for the machine learning transform. Names are required to be unique.Name
is optional:.- If you supply
Name
, the stack cannot be repeatedly created. - If
Name
is not provided, a randomly generated name will be used instead.
- If you supply
-
setName
A user-defined name for the machine learning transform. Names are required to be unique.Name
is optional:.- If you supply
Name
, the stack cannot be repeatedly created. - If
Name
is not provided, a randomly generated name will be used instead.
- If you supply
-
getNumberOfWorkers
The number of workers of a definedworkerType
that are allocated when a task of the transform runs.If
WorkerType
is set, thenNumberOfWorkers
is required (and vice versa). -
setNumberOfWorkers
The number of workers of a definedworkerType
that are allocated when a task of the transform runs.If
WorkerType
is set, thenNumberOfWorkers
is required (and vice versa). -
getTimeout
The timeout in minutes of the machine learning transform. -
setTimeout
The timeout in minutes of the machine learning transform. -
getTransformEncryption
The encryption-at-rest settings of the transform that apply to accessing user data.Machine learning transforms can access user data encrypted in Amazon S3 using KMS.
Additionally, imported labels and trained transforms can now be encrypted using a customer provided KMS key.
-
setTransformEncryption
The encryption-at-rest settings of the transform that apply to accessing user data.Machine learning transforms can access user data encrypted in Amazon S3 using KMS.
Additionally, imported labels and trained transforms can now be encrypted using a customer provided KMS key.
-
setTransformEncryption
@Stability(Stable) public void setTransformEncryption(@Nullable CfnMLTransform.TransformEncryptionProperty value) The encryption-at-rest settings of the transform that apply to accessing user data.Machine learning transforms can access user data encrypted in Amazon S3 using KMS.
Additionally, imported labels and trained transforms can now be encrypted using a customer provided KMS key.
-
getWorkerType
The type of predefined worker that is allocated when a task of this transform runs.Accepts a value of Standard, G.1X, or G.2X.
- For the
Standard
worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. - For the
G.1X
worker type, each worker provides 4 vCPU, 16 GB of memory and a 64GB disk, and 1 executor per worker. - For the
G.2X
worker type, each worker provides 8 vCPU, 32 GB of memory and a 128GB disk, and 1 executor per worker.
MaxCapacity
is a mutually exclusive option withNumberOfWorkers
andWorkerType
.- If either
NumberOfWorkers
orWorkerType
is set, thenMaxCapacity
cannot be set. - If
MaxCapacity
is set then neitherNumberOfWorkers
orWorkerType
can be set. - If
WorkerType
is set, thenNumberOfWorkers
is required (and vice versa). MaxCapacity
andNumberOfWorkers
must both be at least 1.
- For the
-
setWorkerType
The type of predefined worker that is allocated when a task of this transform runs.Accepts a value of Standard, G.1X, or G.2X.
- For the
Standard
worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. - For the
G.1X
worker type, each worker provides 4 vCPU, 16 GB of memory and a 64GB disk, and 1 executor per worker. - For the
G.2X
worker type, each worker provides 8 vCPU, 32 GB of memory and a 128GB disk, and 1 executor per worker.
MaxCapacity
is a mutually exclusive option withNumberOfWorkers
andWorkerType
.- If either
NumberOfWorkers
orWorkerType
is set, thenMaxCapacity
cannot be set. - If
MaxCapacity
is set then neitherNumberOfWorkers
orWorkerType
can be set. - If
WorkerType
is set, thenNumberOfWorkers
is required (and vice versa). MaxCapacity
andNumberOfWorkers
must both be at least 1.
- For the
-