Class: AWSCDK::Sagemaker::CfnModelPackage::TransformJobDefinitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelPackage::TransformJobDefinitionProperty
- Defined in:
- sagemaker/cfn_model_package.rb
Overview
Defines the input needed to run a transform job using the inference specification specified in the algorithm.
Instance Attribute Summary collapse
-
#batch_strategy ⇒ String?
readonly
A string that determines the number of records included in a single mini-batch.
-
#environment ⇒ AWSCDK::IResolvable, ...
readonly
The environment variables to set in the Docker container.
-
#max_concurrent_transforms ⇒ Numeric?
readonly
The maximum number of parallel requests that can be sent to each instance in a transform job.
-
#max_payload_in_mb ⇒ Numeric?
readonly
The maximum payload size allowed, in MB.
-
#transform_input ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelPackage::TransformInputProperty
readonly
A description of the input source and the way the transform job consumes it.
-
#transform_output ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelPackage::TransformOutputProperty
readonly
Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.
-
#transform_resources ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelPackage::TransformResourcesProperty
readonly
Identifies the ML compute instances for the transform job.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(transform_input:, transform_output:, transform_resources:, batch_strategy: nil, environment: nil, max_concurrent_transforms: nil, max_payload_in_mb: nil) ⇒ TransformJobDefinitionProperty
constructor
A new instance of TransformJobDefinitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(transform_input:, transform_output:, transform_resources:, batch_strategy: nil, environment: nil, max_concurrent_transforms: nil, max_payload_in_mb: nil) ⇒ TransformJobDefinitionProperty
Returns a new instance of TransformJobDefinitionProperty.
2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 |
# File 'sagemaker/cfn_model_package.rb', line 2515 def initialize(transform_input:, transform_output:, transform_resources:, batch_strategy: nil, environment: nil, max_concurrent_transforms: nil, max_payload_in_mb: nil) @transform_input = transform_input.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::TransformInputProperty.new(**transform_input.transform_keys(&:to_sym)) : transform_input Jsii::Type.check_type(@transform_input, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLlRyYW5zZm9ybUlucHV0UHJvcGVydHkifV19fQ==")), "transformInput") @transform_output = transform_output.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::TransformOutputProperty.new(**transform_output.transform_keys(&:to_sym)) : transform_output Jsii::Type.check_type(@transform_output, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLlRyYW5zZm9ybU91dHB1dFByb3BlcnR5In1dfX0=")), "transformOutput") @transform_resources = transform_resources.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::TransformResourcesProperty.new(**transform_resources.transform_keys(&:to_sym)) : transform_resources Jsii::Type.check_type(@transform_resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLlRyYW5zZm9ybVJlc291cmNlc1Byb3BlcnR5In1dfX0=")), "transformResources") @batch_strategy = batch_strategy Jsii::Type.check_type(@batch_strategy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "batchStrategy") unless @batch_strategy.nil? @environment = environment Jsii::Type.check_type(@environment, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "environment") unless @environment.nil? @max_concurrent_transforms = max_concurrent_transforms Jsii::Type.check_type(@max_concurrent_transforms, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxConcurrentTransforms") unless @max_concurrent_transforms.nil? @max_payload_in_mb = max_payload_in_mb Jsii::Type.check_type(@max_payload_in_mb, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxPayloadInMb") unless @max_payload_in_mb.nil? end |
Instance Attribute Details
#batch_strategy ⇒ String? (readonly)
A string that determines the number of records included in a single mini-batch.
SingleRecord means only one record is used per mini-batch. MultiRecord means a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB limit.
2553 2554 2555 |
# File 'sagemaker/cfn_model_package.rb', line 2553 def batch_strategy @batch_strategy end |
#environment ⇒ AWSCDK::IResolvable, ... (readonly)
The environment variables to set in the Docker container.
We support up to 16 key and values entries in the map.
2560 2561 2562 |
# File 'sagemaker/cfn_model_package.rb', line 2560 def environment @environment end |
#max_concurrent_transforms ⇒ Numeric? (readonly)
The maximum number of parallel requests that can be sent to each instance in a transform job.
The default value is 1.
2567 2568 2569 |
# File 'sagemaker/cfn_model_package.rb', line 2567 def max_concurrent_transforms @max_concurrent_transforms end |
#max_payload_in_mb ⇒ Numeric? (readonly)
The maximum payload size allowed, in MB.
A payload is the data portion of a record (without metadata).
2574 2575 2576 |
# File 'sagemaker/cfn_model_package.rb', line 2574 def max_payload_in_mb @max_payload_in_mb end |
#transform_input ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelPackage::TransformInputProperty (readonly)
A description of the input source and the way the transform job consumes it.
2536 2537 2538 |
# File 'sagemaker/cfn_model_package.rb', line 2536 def transform_input @transform_input end |
#transform_output ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelPackage::TransformOutputProperty (readonly)
Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.
2541 2542 2543 |
# File 'sagemaker/cfn_model_package.rb', line 2541 def transform_output @transform_output end |
#transform_resources ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelPackage::TransformResourcesProperty (readonly)
Identifies the ML compute instances for the transform job.
2546 2547 2548 |
# File 'sagemaker/cfn_model_package.rb', line 2546 def transform_resources @transform_resources end |
Class Method Details
.jsii_properties ⇒ Object
2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 |
# File 'sagemaker/cfn_model_package.rb', line 2576 def self.jsii_properties { :transform_input => "transformInput", :transform_output => "transformOutput", :transform_resources => "transformResources", :batch_strategy => "batchStrategy", :environment => "environment", :max_concurrent_transforms => "maxConcurrentTransforms", :max_payload_in_mb => "maxPayloadInMb", } end |
Instance Method Details
#to_jsii ⇒ Object
2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 |
# File 'sagemaker/cfn_model_package.rb', line 2588 def to_jsii result = {} result.merge!({ "transformInput" => @transform_input, "transformOutput" => @transform_output, "transformResources" => @transform_resources, "batchStrategy" => @batch_strategy, "environment" => @environment, "maxConcurrentTransforms" => @max_concurrent_transforms, "maxPayloadInMb" => @max_payload_in_mb, }) result.compact end |