github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/glue/mltransform.go (about) 1 // Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. 2 // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** 3 4 package glue 5 6 import ( 7 "context" 8 "reflect" 9 10 "errors" 11 "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" 12 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 13 ) 14 15 // Provides a Glue ML Transform resource. 16 // 17 // ## Example Usage 18 // 19 // <!--Start PulumiCodeChooser --> 20 // ```go 21 // package main 22 // 23 // import ( 24 // 25 // "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue" 26 // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 27 // 28 // ) 29 // 30 // func main() { 31 // pulumi.Run(func(ctx *pulumi.Context) error { 32 // testCatalogDatabase, err := glue.NewCatalogDatabase(ctx, "test", &glue.CatalogDatabaseArgs{ 33 // Name: pulumi.String("example"), 34 // }) 35 // if err != nil { 36 // return err 37 // } 38 // testCatalogTable, err := glue.NewCatalogTable(ctx, "test", &glue.CatalogTableArgs{ 39 // Name: pulumi.String("example"), 40 // DatabaseName: testCatalogDatabase.Name, 41 // Owner: pulumi.String("my_owner"), 42 // Retention: pulumi.Int(1), 43 // TableType: pulumi.String("VIRTUAL_VIEW"), 44 // ViewExpandedText: pulumi.String("view_expanded_text_1"), 45 // ViewOriginalText: pulumi.String("view_original_text_1"), 46 // StorageDescriptor: &glue.CatalogTableStorageDescriptorArgs{ 47 // BucketColumns: pulumi.StringArray{ 48 // pulumi.String("bucket_column_1"), 49 // }, 50 // Compressed: pulumi.Bool(false), 51 // InputFormat: pulumi.String("SequenceFileInputFormat"), 52 // Location: pulumi.String("my_location"), 53 // NumberOfBuckets: pulumi.Int(1), 54 // OutputFormat: pulumi.String("SequenceFileInputFormat"), 55 // StoredAsSubDirectories: pulumi.Bool(false), 56 // Parameters: pulumi.StringMap{ 57 // "param1": pulumi.String("param1_val"), 58 // }, 59 // Columns: glue.CatalogTableStorageDescriptorColumnArray{ 60 // &glue.CatalogTableStorageDescriptorColumnArgs{ 61 // Name: pulumi.String("my_column_1"), 62 // Type: pulumi.String("int"), 63 // Comment: pulumi.String("my_column1_comment"), 64 // }, 65 // &glue.CatalogTableStorageDescriptorColumnArgs{ 66 // Name: pulumi.String("my_column_2"), 67 // Type: pulumi.String("string"), 68 // Comment: pulumi.String("my_column2_comment"), 69 // }, 70 // }, 71 // SerDeInfo: &glue.CatalogTableStorageDescriptorSerDeInfoArgs{ 72 // Name: pulumi.String("ser_de_name"), 73 // Parameters: pulumi.StringMap{ 74 // "param1": pulumi.String("param_val_1"), 75 // }, 76 // SerializationLibrary: pulumi.String("org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe"), 77 // }, 78 // SortColumns: glue.CatalogTableStorageDescriptorSortColumnArray{ 79 // &glue.CatalogTableStorageDescriptorSortColumnArgs{ 80 // Column: pulumi.String("my_column_1"), 81 // SortOrder: pulumi.Int(1), 82 // }, 83 // }, 84 // SkewedInfo: &glue.CatalogTableStorageDescriptorSkewedInfoArgs{ 85 // SkewedColumnNames: pulumi.StringArray{ 86 // pulumi.String("my_column_1"), 87 // }, 88 // SkewedColumnValueLocationMaps: pulumi.StringMap{ 89 // "my_column_1": pulumi.String("my_column_1_val_loc_map"), 90 // }, 91 // SkewedColumnValues: pulumi.StringArray{ 92 // pulumi.String("skewed_val_1"), 93 // }, 94 // }, 95 // }, 96 // PartitionKeys: glue.CatalogTablePartitionKeyArray{ 97 // &glue.CatalogTablePartitionKeyArgs{ 98 // Name: pulumi.String("my_column_1"), 99 // Type: pulumi.String("int"), 100 // Comment: pulumi.String("my_column_1_comment"), 101 // }, 102 // &glue.CatalogTablePartitionKeyArgs{ 103 // Name: pulumi.String("my_column_2"), 104 // Type: pulumi.String("string"), 105 // Comment: pulumi.String("my_column_2_comment"), 106 // }, 107 // }, 108 // Parameters: pulumi.StringMap{ 109 // "param1": pulumi.String("param1_val"), 110 // }, 111 // }) 112 // if err != nil { 113 // return err 114 // } 115 // _, err = glue.NewMLTransform(ctx, "test", &glue.MLTransformArgs{ 116 // Name: pulumi.String("example"), 117 // RoleArn: pulumi.Any(testAwsIamRole.Arn), 118 // InputRecordTables: glue.MLTransformInputRecordTableArray{ 119 // &glue.MLTransformInputRecordTableArgs{ 120 // DatabaseName: testCatalogTable.DatabaseName, 121 // TableName: testCatalogTable.Name, 122 // }, 123 // }, 124 // Parameters: &glue.MLTransformParametersArgs{ 125 // TransformType: pulumi.String("FIND_MATCHES"), 126 // FindMatchesParameters: &glue.MLTransformParametersFindMatchesParametersArgs{ 127 // PrimaryKeyColumnName: pulumi.String("my_column_1"), 128 // }, 129 // }, 130 // }, pulumi.DependsOn([]pulumi.Resource{ 131 // testAwsIamRolePolicyAttachment, 132 // })) 133 // if err != nil { 134 // return err 135 // } 136 // return nil 137 // }) 138 // } 139 // 140 // ``` 141 // <!--End PulumiCodeChooser --> 142 // 143 // ## Import 144 // 145 // Using `pulumi import`, import Glue ML Transforms using `id`. For example: 146 // 147 // ```sh 148 // $ pulumi import aws:glue/mLTransform:MLTransform example tfm-c2cafbe83b1c575f49eaca9939220e2fcd58e2d5 149 // ``` 150 type MLTransform struct { 151 pulumi.CustomResourceState 152 153 // Amazon Resource Name (ARN) of Glue ML Transform. 154 Arn pulumi.StringOutput `pulumi:"arn"` 155 // Description of the ML Transform. 156 Description pulumi.StringPtrOutput `pulumi:"description"` 157 // The version of glue to use, for example "1.0". For information about available versions, see the [AWS Glue Release Notes](https://docs.aws.amazon.com/glue/latest/dg/release-notes.html). 158 GlueVersion pulumi.StringOutput `pulumi:"glueVersion"` 159 // A list of AWS Glue table definitions used by the transform. see Input Record Tables. 160 InputRecordTables MLTransformInputRecordTableArrayOutput `pulumi:"inputRecordTables"` 161 // The number of labels available for this transform. 162 LabelCount pulumi.IntOutput `pulumi:"labelCount"` 163 // 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`. `maxCapacity` is a mutually exclusive option with `numberOfWorkers` and `workerType`. 164 MaxCapacity pulumi.Float64Output `pulumi:"maxCapacity"` 165 // The maximum number of times to retry this ML Transform if it fails. 166 MaxRetries pulumi.IntPtrOutput `pulumi:"maxRetries"` 167 // The name you assign to this ML Transform. It must be unique in your account. 168 Name pulumi.StringOutput `pulumi:"name"` 169 // The number of workers of a defined `workerType` that are allocated when an ML Transform runs. Required with `workerType`. 170 NumberOfWorkers pulumi.IntPtrOutput `pulumi:"numberOfWorkers"` 171 // The algorithmic parameters that are specific to the transform type used. Conditionally dependent on the transform type. see Parameters. 172 Parameters MLTransformParametersOutput `pulumi:"parameters"` 173 // The ARN of the IAM role associated with this ML Transform. 174 RoleArn pulumi.StringOutput `pulumi:"roleArn"` 175 // The object that represents the schema that this transform accepts. see Schema. 176 Schemas MLTransformSchemaArrayOutput `pulumi:"schemas"` 177 // Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 178 Tags pulumi.StringMapOutput `pulumi:"tags"` 179 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 180 // 181 // Deprecated: Please use `tags` instead. 182 TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` 183 // The ML Transform timeout in minutes. The default is 2880 minutes (48 hours). 184 Timeout pulumi.IntPtrOutput `pulumi:"timeout"` 185 // The type of predefined worker that is allocated when an ML Transform runs. Accepts a value of `Standard`, `G.1X`, or `G.2X`. Required with `numberOfWorkers`. 186 WorkerType pulumi.StringPtrOutput `pulumi:"workerType"` 187 } 188 189 // NewMLTransform registers a new resource with the given unique name, arguments, and options. 190 func NewMLTransform(ctx *pulumi.Context, 191 name string, args *MLTransformArgs, opts ...pulumi.ResourceOption) (*MLTransform, error) { 192 if args == nil { 193 return nil, errors.New("missing one or more required arguments") 194 } 195 196 if args.InputRecordTables == nil { 197 return nil, errors.New("invalid value for required argument 'InputRecordTables'") 198 } 199 if args.Parameters == nil { 200 return nil, errors.New("invalid value for required argument 'Parameters'") 201 } 202 if args.RoleArn == nil { 203 return nil, errors.New("invalid value for required argument 'RoleArn'") 204 } 205 opts = internal.PkgResourceDefaultOpts(opts) 206 var resource MLTransform 207 err := ctx.RegisterResource("aws:glue/mLTransform:MLTransform", name, args, &resource, opts...) 208 if err != nil { 209 return nil, err 210 } 211 return &resource, nil 212 } 213 214 // GetMLTransform gets an existing MLTransform resource's state with the given name, ID, and optional 215 // state properties that are used to uniquely qualify the lookup (nil if not required). 216 func GetMLTransform(ctx *pulumi.Context, 217 name string, id pulumi.IDInput, state *MLTransformState, opts ...pulumi.ResourceOption) (*MLTransform, error) { 218 var resource MLTransform 219 err := ctx.ReadResource("aws:glue/mLTransform:MLTransform", name, id, state, &resource, opts...) 220 if err != nil { 221 return nil, err 222 } 223 return &resource, nil 224 } 225 226 // Input properties used for looking up and filtering MLTransform resources. 227 type mltransformState struct { 228 // Amazon Resource Name (ARN) of Glue ML Transform. 229 Arn *string `pulumi:"arn"` 230 // Description of the ML Transform. 231 Description *string `pulumi:"description"` 232 // The version of glue to use, for example "1.0". For information about available versions, see the [AWS Glue Release Notes](https://docs.aws.amazon.com/glue/latest/dg/release-notes.html). 233 GlueVersion *string `pulumi:"glueVersion"` 234 // A list of AWS Glue table definitions used by the transform. see Input Record Tables. 235 InputRecordTables []MLTransformInputRecordTable `pulumi:"inputRecordTables"` 236 // The number of labels available for this transform. 237 LabelCount *int `pulumi:"labelCount"` 238 // 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`. `maxCapacity` is a mutually exclusive option with `numberOfWorkers` and `workerType`. 239 MaxCapacity *float64 `pulumi:"maxCapacity"` 240 // The maximum number of times to retry this ML Transform if it fails. 241 MaxRetries *int `pulumi:"maxRetries"` 242 // The name you assign to this ML Transform. It must be unique in your account. 243 Name *string `pulumi:"name"` 244 // The number of workers of a defined `workerType` that are allocated when an ML Transform runs. Required with `workerType`. 245 NumberOfWorkers *int `pulumi:"numberOfWorkers"` 246 // The algorithmic parameters that are specific to the transform type used. Conditionally dependent on the transform type. see Parameters. 247 Parameters *MLTransformParameters `pulumi:"parameters"` 248 // The ARN of the IAM role associated with this ML Transform. 249 RoleArn *string `pulumi:"roleArn"` 250 // The object that represents the schema that this transform accepts. see Schema. 251 Schemas []MLTransformSchema `pulumi:"schemas"` 252 // Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 253 Tags map[string]string `pulumi:"tags"` 254 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 255 // 256 // Deprecated: Please use `tags` instead. 257 TagsAll map[string]string `pulumi:"tagsAll"` 258 // The ML Transform timeout in minutes. The default is 2880 minutes (48 hours). 259 Timeout *int `pulumi:"timeout"` 260 // The type of predefined worker that is allocated when an ML Transform runs. Accepts a value of `Standard`, `G.1X`, or `G.2X`. Required with `numberOfWorkers`. 261 WorkerType *string `pulumi:"workerType"` 262 } 263 264 type MLTransformState struct { 265 // Amazon Resource Name (ARN) of Glue ML Transform. 266 Arn pulumi.StringPtrInput 267 // Description of the ML Transform. 268 Description pulumi.StringPtrInput 269 // The version of glue to use, for example "1.0". For information about available versions, see the [AWS Glue Release Notes](https://docs.aws.amazon.com/glue/latest/dg/release-notes.html). 270 GlueVersion pulumi.StringPtrInput 271 // A list of AWS Glue table definitions used by the transform. see Input Record Tables. 272 InputRecordTables MLTransformInputRecordTableArrayInput 273 // The number of labels available for this transform. 274 LabelCount pulumi.IntPtrInput 275 // 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`. `maxCapacity` is a mutually exclusive option with `numberOfWorkers` and `workerType`. 276 MaxCapacity pulumi.Float64PtrInput 277 // The maximum number of times to retry this ML Transform if it fails. 278 MaxRetries pulumi.IntPtrInput 279 // The name you assign to this ML Transform. It must be unique in your account. 280 Name pulumi.StringPtrInput 281 // The number of workers of a defined `workerType` that are allocated when an ML Transform runs. Required with `workerType`. 282 NumberOfWorkers pulumi.IntPtrInput 283 // The algorithmic parameters that are specific to the transform type used. Conditionally dependent on the transform type. see Parameters. 284 Parameters MLTransformParametersPtrInput 285 // The ARN of the IAM role associated with this ML Transform. 286 RoleArn pulumi.StringPtrInput 287 // The object that represents the schema that this transform accepts. see Schema. 288 Schemas MLTransformSchemaArrayInput 289 // Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 290 Tags pulumi.StringMapInput 291 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 292 // 293 // Deprecated: Please use `tags` instead. 294 TagsAll pulumi.StringMapInput 295 // The ML Transform timeout in minutes. The default is 2880 minutes (48 hours). 296 Timeout pulumi.IntPtrInput 297 // The type of predefined worker that is allocated when an ML Transform runs. Accepts a value of `Standard`, `G.1X`, or `G.2X`. Required with `numberOfWorkers`. 298 WorkerType pulumi.StringPtrInput 299 } 300 301 func (MLTransformState) ElementType() reflect.Type { 302 return reflect.TypeOf((*mltransformState)(nil)).Elem() 303 } 304 305 type mltransformArgs struct { 306 // Description of the ML Transform. 307 Description *string `pulumi:"description"` 308 // The version of glue to use, for example "1.0". For information about available versions, see the [AWS Glue Release Notes](https://docs.aws.amazon.com/glue/latest/dg/release-notes.html). 309 GlueVersion *string `pulumi:"glueVersion"` 310 // A list of AWS Glue table definitions used by the transform. see Input Record Tables. 311 InputRecordTables []MLTransformInputRecordTable `pulumi:"inputRecordTables"` 312 // 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`. `maxCapacity` is a mutually exclusive option with `numberOfWorkers` and `workerType`. 313 MaxCapacity *float64 `pulumi:"maxCapacity"` 314 // The maximum number of times to retry this ML Transform if it fails. 315 MaxRetries *int `pulumi:"maxRetries"` 316 // The name you assign to this ML Transform. It must be unique in your account. 317 Name *string `pulumi:"name"` 318 // The number of workers of a defined `workerType` that are allocated when an ML Transform runs. Required with `workerType`. 319 NumberOfWorkers *int `pulumi:"numberOfWorkers"` 320 // The algorithmic parameters that are specific to the transform type used. Conditionally dependent on the transform type. see Parameters. 321 Parameters MLTransformParameters `pulumi:"parameters"` 322 // The ARN of the IAM role associated with this ML Transform. 323 RoleArn string `pulumi:"roleArn"` 324 // Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 325 Tags map[string]string `pulumi:"tags"` 326 // The ML Transform timeout in minutes. The default is 2880 minutes (48 hours). 327 Timeout *int `pulumi:"timeout"` 328 // The type of predefined worker that is allocated when an ML Transform runs. Accepts a value of `Standard`, `G.1X`, or `G.2X`. Required with `numberOfWorkers`. 329 WorkerType *string `pulumi:"workerType"` 330 } 331 332 // The set of arguments for constructing a MLTransform resource. 333 type MLTransformArgs struct { 334 // Description of the ML Transform. 335 Description pulumi.StringPtrInput 336 // The version of glue to use, for example "1.0". For information about available versions, see the [AWS Glue Release Notes](https://docs.aws.amazon.com/glue/latest/dg/release-notes.html). 337 GlueVersion pulumi.StringPtrInput 338 // A list of AWS Glue table definitions used by the transform. see Input Record Tables. 339 InputRecordTables MLTransformInputRecordTableArrayInput 340 // 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`. `maxCapacity` is a mutually exclusive option with `numberOfWorkers` and `workerType`. 341 MaxCapacity pulumi.Float64PtrInput 342 // The maximum number of times to retry this ML Transform if it fails. 343 MaxRetries pulumi.IntPtrInput 344 // The name you assign to this ML Transform. It must be unique in your account. 345 Name pulumi.StringPtrInput 346 // The number of workers of a defined `workerType` that are allocated when an ML Transform runs. Required with `workerType`. 347 NumberOfWorkers pulumi.IntPtrInput 348 // The algorithmic parameters that are specific to the transform type used. Conditionally dependent on the transform type. see Parameters. 349 Parameters MLTransformParametersInput 350 // The ARN of the IAM role associated with this ML Transform. 351 RoleArn pulumi.StringInput 352 // Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 353 Tags pulumi.StringMapInput 354 // The ML Transform timeout in minutes. The default is 2880 minutes (48 hours). 355 Timeout pulumi.IntPtrInput 356 // The type of predefined worker that is allocated when an ML Transform runs. Accepts a value of `Standard`, `G.1X`, or `G.2X`. Required with `numberOfWorkers`. 357 WorkerType pulumi.StringPtrInput 358 } 359 360 func (MLTransformArgs) ElementType() reflect.Type { 361 return reflect.TypeOf((*mltransformArgs)(nil)).Elem() 362 } 363 364 type MLTransformInput interface { 365 pulumi.Input 366 367 ToMLTransformOutput() MLTransformOutput 368 ToMLTransformOutputWithContext(ctx context.Context) MLTransformOutput 369 } 370 371 func (*MLTransform) ElementType() reflect.Type { 372 return reflect.TypeOf((**MLTransform)(nil)).Elem() 373 } 374 375 func (i *MLTransform) ToMLTransformOutput() MLTransformOutput { 376 return i.ToMLTransformOutputWithContext(context.Background()) 377 } 378 379 func (i *MLTransform) ToMLTransformOutputWithContext(ctx context.Context) MLTransformOutput { 380 return pulumi.ToOutputWithContext(ctx, i).(MLTransformOutput) 381 } 382 383 // MLTransformArrayInput is an input type that accepts MLTransformArray and MLTransformArrayOutput values. 384 // You can construct a concrete instance of `MLTransformArrayInput` via: 385 // 386 // MLTransformArray{ MLTransformArgs{...} } 387 type MLTransformArrayInput interface { 388 pulumi.Input 389 390 ToMLTransformArrayOutput() MLTransformArrayOutput 391 ToMLTransformArrayOutputWithContext(context.Context) MLTransformArrayOutput 392 } 393 394 type MLTransformArray []MLTransformInput 395 396 func (MLTransformArray) ElementType() reflect.Type { 397 return reflect.TypeOf((*[]*MLTransform)(nil)).Elem() 398 } 399 400 func (i MLTransformArray) ToMLTransformArrayOutput() MLTransformArrayOutput { 401 return i.ToMLTransformArrayOutputWithContext(context.Background()) 402 } 403 404 func (i MLTransformArray) ToMLTransformArrayOutputWithContext(ctx context.Context) MLTransformArrayOutput { 405 return pulumi.ToOutputWithContext(ctx, i).(MLTransformArrayOutput) 406 } 407 408 // MLTransformMapInput is an input type that accepts MLTransformMap and MLTransformMapOutput values. 409 // You can construct a concrete instance of `MLTransformMapInput` via: 410 // 411 // MLTransformMap{ "key": MLTransformArgs{...} } 412 type MLTransformMapInput interface { 413 pulumi.Input 414 415 ToMLTransformMapOutput() MLTransformMapOutput 416 ToMLTransformMapOutputWithContext(context.Context) MLTransformMapOutput 417 } 418 419 type MLTransformMap map[string]MLTransformInput 420 421 func (MLTransformMap) ElementType() reflect.Type { 422 return reflect.TypeOf((*map[string]*MLTransform)(nil)).Elem() 423 } 424 425 func (i MLTransformMap) ToMLTransformMapOutput() MLTransformMapOutput { 426 return i.ToMLTransformMapOutputWithContext(context.Background()) 427 } 428 429 func (i MLTransformMap) ToMLTransformMapOutputWithContext(ctx context.Context) MLTransformMapOutput { 430 return pulumi.ToOutputWithContext(ctx, i).(MLTransformMapOutput) 431 } 432 433 type MLTransformOutput struct{ *pulumi.OutputState } 434 435 func (MLTransformOutput) ElementType() reflect.Type { 436 return reflect.TypeOf((**MLTransform)(nil)).Elem() 437 } 438 439 func (o MLTransformOutput) ToMLTransformOutput() MLTransformOutput { 440 return o 441 } 442 443 func (o MLTransformOutput) ToMLTransformOutputWithContext(ctx context.Context) MLTransformOutput { 444 return o 445 } 446 447 // Amazon Resource Name (ARN) of Glue ML Transform. 448 func (o MLTransformOutput) Arn() pulumi.StringOutput { 449 return o.ApplyT(func(v *MLTransform) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput) 450 } 451 452 // Description of the ML Transform. 453 func (o MLTransformOutput) Description() pulumi.StringPtrOutput { 454 return o.ApplyT(func(v *MLTransform) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) 455 } 456 457 // The version of glue to use, for example "1.0". For information about available versions, see the [AWS Glue Release Notes](https://docs.aws.amazon.com/glue/latest/dg/release-notes.html). 458 func (o MLTransformOutput) GlueVersion() pulumi.StringOutput { 459 return o.ApplyT(func(v *MLTransform) pulumi.StringOutput { return v.GlueVersion }).(pulumi.StringOutput) 460 } 461 462 // A list of AWS Glue table definitions used by the transform. see Input Record Tables. 463 func (o MLTransformOutput) InputRecordTables() MLTransformInputRecordTableArrayOutput { 464 return o.ApplyT(func(v *MLTransform) MLTransformInputRecordTableArrayOutput { return v.InputRecordTables }).(MLTransformInputRecordTableArrayOutput) 465 } 466 467 // The number of labels available for this transform. 468 func (o MLTransformOutput) LabelCount() pulumi.IntOutput { 469 return o.ApplyT(func(v *MLTransform) pulumi.IntOutput { return v.LabelCount }).(pulumi.IntOutput) 470 } 471 472 // 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`. `maxCapacity` is a mutually exclusive option with `numberOfWorkers` and `workerType`. 473 func (o MLTransformOutput) MaxCapacity() pulumi.Float64Output { 474 return o.ApplyT(func(v *MLTransform) pulumi.Float64Output { return v.MaxCapacity }).(pulumi.Float64Output) 475 } 476 477 // The maximum number of times to retry this ML Transform if it fails. 478 func (o MLTransformOutput) MaxRetries() pulumi.IntPtrOutput { 479 return o.ApplyT(func(v *MLTransform) pulumi.IntPtrOutput { return v.MaxRetries }).(pulumi.IntPtrOutput) 480 } 481 482 // The name you assign to this ML Transform. It must be unique in your account. 483 func (o MLTransformOutput) Name() pulumi.StringOutput { 484 return o.ApplyT(func(v *MLTransform) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) 485 } 486 487 // The number of workers of a defined `workerType` that are allocated when an ML Transform runs. Required with `workerType`. 488 func (o MLTransformOutput) NumberOfWorkers() pulumi.IntPtrOutput { 489 return o.ApplyT(func(v *MLTransform) pulumi.IntPtrOutput { return v.NumberOfWorkers }).(pulumi.IntPtrOutput) 490 } 491 492 // The algorithmic parameters that are specific to the transform type used. Conditionally dependent on the transform type. see Parameters. 493 func (o MLTransformOutput) Parameters() MLTransformParametersOutput { 494 return o.ApplyT(func(v *MLTransform) MLTransformParametersOutput { return v.Parameters }).(MLTransformParametersOutput) 495 } 496 497 // The ARN of the IAM role associated with this ML Transform. 498 func (o MLTransformOutput) RoleArn() pulumi.StringOutput { 499 return o.ApplyT(func(v *MLTransform) pulumi.StringOutput { return v.RoleArn }).(pulumi.StringOutput) 500 } 501 502 // The object that represents the schema that this transform accepts. see Schema. 503 func (o MLTransformOutput) Schemas() MLTransformSchemaArrayOutput { 504 return o.ApplyT(func(v *MLTransform) MLTransformSchemaArrayOutput { return v.Schemas }).(MLTransformSchemaArrayOutput) 505 } 506 507 // Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 508 func (o MLTransformOutput) Tags() pulumi.StringMapOutput { 509 return o.ApplyT(func(v *MLTransform) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) 510 } 511 512 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 513 // 514 // Deprecated: Please use `tags` instead. 515 func (o MLTransformOutput) TagsAll() pulumi.StringMapOutput { 516 return o.ApplyT(func(v *MLTransform) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput) 517 } 518 519 // The ML Transform timeout in minutes. The default is 2880 minutes (48 hours). 520 func (o MLTransformOutput) Timeout() pulumi.IntPtrOutput { 521 return o.ApplyT(func(v *MLTransform) pulumi.IntPtrOutput { return v.Timeout }).(pulumi.IntPtrOutput) 522 } 523 524 // The type of predefined worker that is allocated when an ML Transform runs. Accepts a value of `Standard`, `G.1X`, or `G.2X`. Required with `numberOfWorkers`. 525 func (o MLTransformOutput) WorkerType() pulumi.StringPtrOutput { 526 return o.ApplyT(func(v *MLTransform) pulumi.StringPtrOutput { return v.WorkerType }).(pulumi.StringPtrOutput) 527 } 528 529 type MLTransformArrayOutput struct{ *pulumi.OutputState } 530 531 func (MLTransformArrayOutput) ElementType() reflect.Type { 532 return reflect.TypeOf((*[]*MLTransform)(nil)).Elem() 533 } 534 535 func (o MLTransformArrayOutput) ToMLTransformArrayOutput() MLTransformArrayOutput { 536 return o 537 } 538 539 func (o MLTransformArrayOutput) ToMLTransformArrayOutputWithContext(ctx context.Context) MLTransformArrayOutput { 540 return o 541 } 542 543 func (o MLTransformArrayOutput) Index(i pulumi.IntInput) MLTransformOutput { 544 return pulumi.All(o, i).ApplyT(func(vs []interface{}) *MLTransform { 545 return vs[0].([]*MLTransform)[vs[1].(int)] 546 }).(MLTransformOutput) 547 } 548 549 type MLTransformMapOutput struct{ *pulumi.OutputState } 550 551 func (MLTransformMapOutput) ElementType() reflect.Type { 552 return reflect.TypeOf((*map[string]*MLTransform)(nil)).Elem() 553 } 554 555 func (o MLTransformMapOutput) ToMLTransformMapOutput() MLTransformMapOutput { 556 return o 557 } 558 559 func (o MLTransformMapOutput) ToMLTransformMapOutputWithContext(ctx context.Context) MLTransformMapOutput { 560 return o 561 } 562 563 func (o MLTransformMapOutput) MapIndex(k pulumi.StringInput) MLTransformOutput { 564 return pulumi.All(o, k).ApplyT(func(vs []interface{}) *MLTransform { 565 return vs[0].(map[string]*MLTransform)[vs[1].(string)] 566 }).(MLTransformOutput) 567 } 568 569 func init() { 570 pulumi.RegisterInputType(reflect.TypeOf((*MLTransformInput)(nil)).Elem(), &MLTransform{}) 571 pulumi.RegisterInputType(reflect.TypeOf((*MLTransformArrayInput)(nil)).Elem(), MLTransformArray{}) 572 pulumi.RegisterInputType(reflect.TypeOf((*MLTransformMapInput)(nil)).Elem(), MLTransformMap{}) 573 pulumi.RegisterOutputType(MLTransformOutput{}) 574 pulumi.RegisterOutputType(MLTransformArrayOutput{}) 575 pulumi.RegisterOutputType(MLTransformMapOutput{}) 576 }