public static final class CfnMLTransformProps.Builder
extends java.lang.Object
CfnMLTransformProps
Constructor and Description |
---|
Builder() |
public CfnMLTransformProps.Builder inputRecordTables(IResolvable inputRecordTables)
CfnMLTransformProps.getInputRecordTables()
inputRecordTables
- A list of AWS Glue table definitions used by the transform. This parameter is required.this
public CfnMLTransformProps.Builder inputRecordTables(CfnMLTransform.InputRecordTablesProperty inputRecordTables)
CfnMLTransformProps.getInputRecordTables()
inputRecordTables
- A list of AWS Glue table definitions used by the transform. This parameter is required.this
public CfnMLTransformProps.Builder role(java.lang.String role)
CfnMLTransformProps.getRole()
role
- The name or Amazon Resource Name (ARN) of the IAM role with the required permissions. This parameter is required.
The required permissions include both AWS Glue service role permissions to AWS Glue resources, and Amazon S3 permissions required by the transform.
this
public CfnMLTransformProps.Builder transformParameters(IResolvable transformParameters)
CfnMLTransformProps.getTransformParameters()
transformParameters
- The algorithm-specific parameters that are associated with the machine learning transform. This parameter is required.this
public CfnMLTransformProps.Builder transformParameters(CfnMLTransform.TransformParametersProperty transformParameters)
CfnMLTransformProps.getTransformParameters()
transformParameters
- The algorithm-specific parameters that are associated with the machine learning transform. This parameter is required.this
public CfnMLTransformProps.Builder description(java.lang.String description)
CfnMLTransformProps.getDescription()
description
- A user-defined, long-form description text for the machine learning transform.this
public CfnMLTransformProps.Builder glueVersion(java.lang.String glueVersion)
CfnMLTransformProps.getGlueVersion()
glueVersion
- 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.this
public CfnMLTransformProps.Builder maxCapacity(java.lang.Number maxCapacity)
CfnMLTransformProps.getMaxCapacity()
maxCapacity
- 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 with NumberOfWorkers
and WorkerType
.
NumberOfWorkers
or WorkerType
is set, then MaxCapacity
cannot be set.MaxCapacity
is set then neither NumberOfWorkers
or WorkerType
can be set.WorkerType
is set, then NumberOfWorkers
is required (and vice versa).MaxCapacity
and NumberOfWorkers
must both be at least 1.
When the WorkerType
field is set to a value other than Standard
, the MaxCapacity
field is set automatically and becomes read-only.
this
public CfnMLTransformProps.Builder maxRetries(java.lang.Number maxRetries)
CfnMLTransformProps.getMaxRetries()
maxRetries
- The maximum number of times to retry after an `MLTaskRun` of the machine learning transform fails.this
public CfnMLTransformProps.Builder name(java.lang.String name)
CfnMLTransformProps.getName()
name
- A user-defined name for the machine learning transform. Names are required to be unique. `Name` is optional:.
Name
, the stack cannot be repeatedly created.Name
is not provided, a randomly generated name will be used instead.this
public CfnMLTransformProps.Builder numberOfWorkers(java.lang.Number numberOfWorkers)
CfnMLTransformProps.getNumberOfWorkers()
numberOfWorkers
- The number of workers of a defined `workerType` that are allocated when a task of the transform runs.
If WorkerType
is set, then NumberOfWorkers
is required (and vice versa).this
public CfnMLTransformProps.Builder tags(java.lang.Object tags)
CfnMLTransformProps.getTags()
tags
- 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.this
public CfnMLTransformProps.Builder timeout(java.lang.Number timeout)
CfnMLTransformProps.getTimeout()
timeout
- The timeout in minutes of the machine learning transform.this
public CfnMLTransformProps.Builder transformEncryption(IResolvable transformEncryption)
CfnMLTransformProps.getTransformEncryption()
transformEncryption
- 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.
this
public CfnMLTransformProps.Builder transformEncryption(CfnMLTransform.TransformEncryptionProperty transformEncryption)
CfnMLTransformProps.getTransformEncryption()
transformEncryption
- 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.
this
public CfnMLTransformProps.Builder workerType(java.lang.String workerType)
CfnMLTransformProps.getWorkerType()
workerType
- 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.
Standard
worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.G.1X
worker type, each worker provides 4 vCPU, 16 GB of memory and a 64GB disk, and 1 executor per worker.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 with NumberOfWorkers
and WorkerType
.
NumberOfWorkers
or WorkerType
is set, then MaxCapacity
cannot be set.MaxCapacity
is set then neither NumberOfWorkers
or WorkerType
can be set.WorkerType
is set, then NumberOfWorkers
is required (and vice versa).MaxCapacity
and NumberOfWorkers
must both be at least 1.this
public CfnMLTransformProps build()
CfnMLTransformProps
java.lang.NullPointerException
- if any required attribute was not provided