interface CfnMLTransformProps
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.Glue.CfnMLTransformProps | 
|  Java | software.amazon.awscdk.services.glue.CfnMLTransformProps | 
|  Python | aws_cdk.aws_glue.CfnMLTransformProps | 
|  TypeScript | @aws-cdk/aws-glue»CfnMLTransformProps | 
Properties for defining a CfnMLTransform.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as glue from '@aws-cdk/aws-glue';
declare const tags: any;
const cfnMLTransformProps: glue.CfnMLTransformProps = {
  inputRecordTables: {
    glueTables: [{
      databaseName: 'databaseName',
      tableName: 'tableName',
      // the properties below are optional
      catalogId: 'catalogId',
      connectionName: 'connectionName',
    }],
  },
  role: 'role',
  transformParameters: {
    transformType: 'transformType',
    // the properties below are optional
    findMatchesParameters: {
      primaryKeyColumnName: 'primaryKeyColumnName',
      // the properties below are optional
      accuracyCostTradeoff: 123,
      enforceProvidedLabels: false,
      precisionRecallTradeoff: 123,
    },
  },
  // the properties below are optional
  description: 'description',
  glueVersion: 'glueVersion',
  maxCapacity: 123,
  maxRetries: 123,
  name: 'name',
  numberOfWorkers: 123,
  tags: tags,
  timeout: 123,
  transformEncryption: {
    mlUserDataEncryption: {
      mlUserDataEncryptionMode: 'mlUserDataEncryptionMode',
      // the properties below are optional
      kmsKeyId: 'kmsKeyId',
    },
    taskRunSecurityConfigurationName: 'taskRunSecurityConfigurationName',
  },
  workerType: 'workerType',
};
Properties
| Name | Type | Description | 
|---|---|---|
| input | IResolvable | Input | A list of AWS Glue table definitions used by the transform. | 
| role | string | The name or Amazon Resource Name (ARN) of the IAM role with the required permissions. | 
| transform | IResolvable | Transform | The algorithm-specific parameters that are associated with the machine learning transform. | 
| description? | string | A user-defined, long-form description text for the machine learning transform. | 
| glue | string | This value determines which version of AWS Glue this machine learning transform is compatible with. | 
| max | number | The number of AWS Glue data processing units (DPUs) that are allocated to task runs for this transform. | 
| max | number | The maximum number of times to retry after an MLTaskRunof the machine learning transform fails. | 
| name? | string | A user-defined name for the machine learning transform. Names are required to be unique. Nameis optional:. | 
| number | number | The number of workers of a defined workerTypethat are allocated when a task of the transform runs. | 
| tags? | any | The tags to use with this machine learning transform. | 
| timeout? | number | The timeout in minutes of the machine learning transform. | 
| transform | IResolvable | Transform | The encryption-at-rest settings of the transform that apply to accessing user data. | 
| worker | string | The type of predefined worker that is allocated when a task of this transform runs. | 
inputRecordTables
Type:
IResolvable | Input
A list of AWS Glue table definitions used by the transform.
role
Type:
string
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.
transformParameters
Type:
IResolvable | Transform
The algorithm-specific parameters that are associated with the machine learning transform.
description?
Type:
string
(optional)
A user-defined, long-form description text for the machine learning transform.
glueVersion?
Type:
string
(optional)
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.
maxCapacity?
Type:
number
(optional)
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 .
- If either NumberOfWorkersorWorkerTypeis set, thenMaxCapacitycannot be set.
- If MaxCapacityis set then neitherNumberOfWorkersorWorkerTypecan be set.
- If WorkerTypeis set, thenNumberOfWorkersis required (and vice versa).
- MaxCapacityand- NumberOfWorkersmust 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.
maxRetries?
Type:
number
(optional)
The maximum number of times to retry after an MLTaskRun of the machine learning transform fails.
name?
Type:
string
(optional)
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 Nameis not provided, a randomly generated name will be used instead.
numberOfWorkers?
Type:
number
(optional)
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).
tags?
Type:
any
(optional)
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.
timeout?
Type:
number
(optional)
The timeout in minutes of the machine learning transform.
transformEncryption?
Type:
IResolvable | Transform
(optional)
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.
workerType?
Type:
string
(optional)
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.
MaxCapacity is a mutually exclusive option with NumberOfWorkers and WorkerType .
- If either NumberOfWorkersorWorkerTypeis set, thenMaxCapacitycannot be set.
- If MaxCapacityis set then neitherNumberOfWorkersorWorkerTypecan be set.
- If WorkerTypeis set, thenNumberOfWorkersis required (and vice versa).
- MaxCapacityand- NumberOfWorkersmust both be at least 1.
