Class CfnMLTransformMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMLTransformMixinProps>
- Enclosing interface:
CfnMLTransformMixinProps
CfnMLTransformMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnMLTransformMixinProps.getDescription()glueVersion(String glueVersion) Sets the value ofCfnMLTransformMixinProps.getGlueVersion()inputRecordTables(CfnMLTransformPropsMixin.InputRecordTablesProperty inputRecordTables) Sets the value ofCfnMLTransformMixinProps.getInputRecordTables()inputRecordTables(IResolvable inputRecordTables) Sets the value ofCfnMLTransformMixinProps.getInputRecordTables()maxCapacity(Number maxCapacity) Sets the value ofCfnMLTransformMixinProps.getMaxCapacity()maxRetries(Number maxRetries) Sets the value ofCfnMLTransformMixinProps.getMaxRetries()Sets the value ofCfnMLTransformMixinProps.getName()numberOfWorkers(Number numberOfWorkers) Sets the value ofCfnMLTransformMixinProps.getNumberOfWorkers()Sets the value ofCfnMLTransformMixinProps.getRole()Sets the value ofCfnMLTransformMixinProps.getTags()Sets the value ofCfnMLTransformMixinProps.getTimeout()transformEncryption(CfnMLTransformPropsMixin.TransformEncryptionProperty transformEncryption) Sets the value ofCfnMLTransformMixinProps.getTransformEncryption()transformEncryption(IResolvable transformEncryption) Sets the value ofCfnMLTransformMixinProps.getTransformEncryption()transformParameters(CfnMLTransformPropsMixin.TransformParametersProperty transformParameters) Sets the value ofCfnMLTransformMixinProps.getTransformParameters()transformParameters(IResolvable transformParameters) Sets the value ofCfnMLTransformMixinProps.getTransformParameters()workerType(String workerType) Sets the value ofCfnMLTransformMixinProps.getWorkerType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnMLTransformMixinProps.getDescription()- Parameters:
description- A user-defined, long-form description text for the machine learning transform.- Returns:
this
-
glueVersion
Sets the value ofCfnMLTransformMixinProps.getGlueVersion()- Parameters:
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.- Returns:
this
-
inputRecordTables
@Stability(Stable) public CfnMLTransformMixinProps.Builder inputRecordTables(IResolvable inputRecordTables) Sets the value ofCfnMLTransformMixinProps.getInputRecordTables()- Parameters:
inputRecordTables- A list of AWS Glue table definitions used by the transform.- Returns:
this
-
inputRecordTables
@Stability(Stable) public CfnMLTransformMixinProps.Builder inputRecordTables(CfnMLTransformPropsMixin.InputRecordTablesProperty inputRecordTables) Sets the value ofCfnMLTransformMixinProps.getInputRecordTables()- Parameters:
inputRecordTables- A list of AWS Glue table definitions used by the transform.- Returns:
this
-
maxCapacity
Sets the value ofCfnMLTransformMixinProps.getMaxCapacity()- Parameters:
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 .MaxCapacityis a mutually exclusive option withNumberOfWorkersandWorkerType.- If either
NumberOfWorkersorWorkerTypeis set, thenMaxCapacitycannot be set. - If
MaxCapacityis set then neitherNumberOfWorkersorWorkerTypecan be set. - If
WorkerTypeis set, thenNumberOfWorkersis required (and vice versa). MaxCapacityandNumberOfWorkersmust both be at least 1.
When the
WorkerTypefield is set to a value other thanStandard, theMaxCapacityfield is set automatically and becomes read-only.- If either
- Returns:
this
-
maxRetries
Sets the value ofCfnMLTransformMixinProps.getMaxRetries()- Parameters:
maxRetries- The maximum number of times to retry after anMLTaskRunof the machine learning transform fails.- Returns:
this
-
name
Sets the value ofCfnMLTransformMixinProps.getName()- Parameters:
name- A user-defined name for the machine learning transform. Names are required to be unique.Nameis optional:.- If you supply
Name, the stack cannot be repeatedly created. - If
Nameis not provided, a randomly generated name will be used instead.
- If you supply
- Returns:
this
-
numberOfWorkers
Sets the value ofCfnMLTransformMixinProps.getNumberOfWorkers()- Parameters:
numberOfWorkers- The number of workers of a definedworkerTypethat are allocated when a task of the transform runs. IfWorkerTypeis set, thenNumberOfWorkersis required (and vice versa).- Returns:
this
-
role
Sets the value ofCfnMLTransformMixinProps.getRole()- Parameters:
role- 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.
- Returns:
this
-
tags
Sets the value ofCfnMLTransformMixinProps.getTags()- Parameters:
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.- Returns:
this
-
timeout
Sets the value ofCfnMLTransformMixinProps.getTimeout()- Parameters:
timeout- The timeout in minutes of the machine learning transform.- Returns:
this
-
transformEncryption
@Stability(Stable) public CfnMLTransformMixinProps.Builder transformEncryption(IResolvable transformEncryption) Sets the value ofCfnMLTransformMixinProps.getTransformEncryption()- Parameters:
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.
- Returns:
this
-
transformEncryption
@Stability(Stable) public CfnMLTransformMixinProps.Builder transformEncryption(CfnMLTransformPropsMixin.TransformEncryptionProperty transformEncryption) Sets the value ofCfnMLTransformMixinProps.getTransformEncryption()- Parameters:
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.
- Returns:
this
-
transformParameters
@Stability(Stable) public CfnMLTransformMixinProps.Builder transformParameters(IResolvable transformParameters) Sets the value ofCfnMLTransformMixinProps.getTransformParameters()- Parameters:
transformParameters- The algorithm-specific parameters that are associated with the machine learning transform.- Returns:
this
-
transformParameters
@Stability(Stable) public CfnMLTransformMixinProps.Builder transformParameters(CfnMLTransformPropsMixin.TransformParametersProperty transformParameters) Sets the value ofCfnMLTransformMixinProps.getTransformParameters()- Parameters:
transformParameters- The algorithm-specific parameters that are associated with the machine learning transform.- Returns:
this
-
workerType
Sets the value ofCfnMLTransformMixinProps.getWorkerType()- Parameters:
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.- For the
Standardworker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. - For the
G.1Xworker type, each worker provides 4 vCPU, 16 GB of memory and a 64GB disk, and 1 executor per worker. - For the
G.2Xworker type, each worker provides 8 vCPU, 32 GB of memory and a 128GB disk, and 1 executor per worker.
MaxCapacityis a mutually exclusive option withNumberOfWorkersandWorkerType.- If either
NumberOfWorkersorWorkerTypeis set, thenMaxCapacitycannot be set. - If
MaxCapacityis set then neitherNumberOfWorkersorWorkerTypecan be set. - If
WorkerTypeis set, thenNumberOfWorkersis required (and vice versa). MaxCapacityandNumberOfWorkersmust both be at least 1.
- For the
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMLTransformMixinProps>- Returns:
- a new instance of
CfnMLTransformMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-