Class: AWSCDK::StepFunctionsTasks::TransformOutput

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
step_functions_tasks/transform_output.rb

Overview

S3 location where you want Amazon SageMaker to save the results from the transform job.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_output_path:, accept: nil, assemble_with: nil, encryption_key: nil) ⇒ TransformOutput

Returns a new instance of TransformOutput.

Parameters:

  • s3_output_path (String)

    S3 path where you want Amazon SageMaker to store the results of the transform job.

  • accept (String, nil) (defaults to: nil)

    MIME type used to specify the output data.

  • assemble_with (AWSCDK::StepFunctionsTasks::AssembleWith, nil) (defaults to: nil)

    Defines how to assemble the results of the transform job as a single S3 object.

  • encryption_key (AWSCDK::Interfaces::AWSKMS::IKeyRef, nil) (defaults to: nil)

    AWS KMS key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.



11
12
13
14
15
16
17
18
19
20
# File 'step_functions_tasks/transform_output.rb', line 11

def initialize(s3_output_path:, accept: nil, assemble_with: nil, encryption_key: nil)
  @s3_output_path = s3_output_path
  Jsii::Type.check_type(@s3_output_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3OutputPath")
  @accept = accept
  Jsii::Type.check_type(@accept, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accept") unless @accept.nil?
  @assemble_with = assemble_with
  Jsii::Type.check_type(@assemble_with, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5Bc3NlbWJsZVdpdGgifQ==")), "assembleWith") unless @assemble_with.nil?
  @encryption_key = encryption_key
  Jsii::Type.check_type(@encryption_key, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19rbXMuSUtleVJlZiJ9")), "encryptionKey") unless @encryption_key.nil?
end

Instance Attribute Details

#acceptString? (readonly)

Note:

Default: - None

MIME type used to specify the output data.

Returns:

  • (String, nil)


30
31
32
# File 'step_functions_tasks/transform_output.rb', line 30

def accept
  @accept
end

#assemble_withAWSCDK::StepFunctionsTasks::AssembleWith? (readonly)

Note:

Default: - None

Defines how to assemble the results of the transform job as a single S3 object.



35
36
37
# File 'step_functions_tasks/transform_output.rb', line 35

def assemble_with
  @assemble_with
end

#encryption_keyAWSCDK::Interfaces::AWSKMS::IKeyRef? (readonly)

Note:

Default: - default KMS key for Amazon S3 for your role's account.

AWS KMS key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.



40
41
42
# File 'step_functions_tasks/transform_output.rb', line 40

def encryption_key
  @encryption_key
end

#s3_output_pathString (readonly)

S3 path where you want Amazon SageMaker to store the results of the transform job.

Returns:

  • (String)


25
26
27
# File 'step_functions_tasks/transform_output.rb', line 25

def s3_output_path
  @s3_output_path
end

Class Method Details

.jsii_propertiesObject



42
43
44
45
46
47
48
49
# File 'step_functions_tasks/transform_output.rb', line 42

def self.jsii_properties
  {
    :s3_output_path => "s3OutputPath",
    :accept => "accept",
    :assemble_with => "assembleWith",
    :encryption_key => "encryptionKey",
  }
end

Instance Method Details

#to_jsiiObject



51
52
53
54
55
56
57
58
59
60
# File 'step_functions_tasks/transform_output.rb', line 51

def to_jsii
  result = {}
  result.merge!({
    "s3OutputPath" => @s3_output_path,
    "accept" => @accept,
    "assembleWith" => @assemble_with,
    "encryptionKey" => @encryption_key,
  })
  result.compact
end