Class: AWSCDK::StepFunctionsTasks::OutputDataConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::OutputDataConfig
- Defined in:
- step_functions_tasks/output_data_config.rb
Overview
Configures the S3 bucket where SageMaker will save the result of model training.
Instance Attribute Summary collapse
-
#encryption_key ⇒ AWSCDK::KMS::IKey?
readonly
Optional KMS encryption key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.
-
#s3_output_location ⇒ AWSCDK::StepFunctionsTasks::S3Location
readonly
Identifies the S3 path where you want Amazon SageMaker to store the model artifacts.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_output_location:, encryption_key: nil) ⇒ OutputDataConfig
constructor
A new instance of OutputDataConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_output_location:, encryption_key: nil) ⇒ OutputDataConfig
Returns a new instance of OutputDataConfig.
9 10 11 12 13 14 |
# File 'step_functions_tasks/output_data_config.rb', line 9 def initialize(s3_output_location:, encryption_key: nil) @s3_output_location = s3_output_location Jsii::Type.check_type(@s3_output_location, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5TM0xvY2F0aW9uIn0=")), "s3OutputLocation") @encryption_key = encryption_key Jsii::Type.check_type(@encryption_key, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa21zLklLZXkifQ==")), "encryptionKey") unless @encryption_key.nil? end |
Instance Attribute Details
#encryption_key ⇒ AWSCDK::KMS::IKey? (readonly)
Note:
Default: - Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account
Optional KMS encryption key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.
24 25 26 |
# File 'step_functions_tasks/output_data_config.rb', line 24 def encryption_key @encryption_key end |
#s3_output_location ⇒ AWSCDK::StepFunctionsTasks::S3Location (readonly)
Identifies the S3 path where you want Amazon SageMaker to store the model artifacts.
19 20 21 |
# File 'step_functions_tasks/output_data_config.rb', line 19 def s3_output_location @s3_output_location end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'step_functions_tasks/output_data_config.rb', line 26 def self.jsii_properties { :s3_output_location => "s3OutputLocation", :encryption_key => "encryptionKey", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'step_functions_tasks/output_data_config.rb', line 33 def to_jsii result = {} result.merge!({ "s3OutputLocation" => @s3_output_location, "encryptionKey" => @encryption_key, }) result.compact end |