Class: AWSCDK::Sagemaker::CfnProcessingJob::S3OutputProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_processing_job.rb

Overview

Configuration for uploading output data to Amazon S3 from the processing container.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_upload_mode:, s3_uri:, local_path: nil) ⇒ S3OutputProperty

Returns a new instance of S3OutputProperty.

Parameters:

  • s3_upload_mode (String)

    Whether to upload the results of the processing job continuously or after the job completes.

  • s3_uri (String)

    The URI of the Amazon S3 prefix Amazon SageMaker downloads data required to run a processing job.

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

    The local path of a directory where you want Amazon SageMaker to upload its contents to Amazon S3.



1635
1636
1637
1638
1639
1640
1641
1642
# File 'sagemaker/cfn_processing_job.rb', line 1635

def initialize(s3_upload_mode:, s3_uri:, local_path: nil)
  @s3_upload_mode = s3_upload_mode
  Jsii::Type.check_type(@s3_upload_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3UploadMode")
  @s3_uri = s3_uri
  Jsii::Type.check_type(@s3_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3Uri")
  @local_path = local_path
  Jsii::Type.check_type(@local_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "localPath") unless @local_path.nil?
end

Instance Attribute Details

#local_pathString? (readonly)

The local path of a directory where you want Amazon SageMaker to upload its contents to Amazon S3.

LocalPath is an absolute path to a directory containing output files. This directory will be created by the platform and exist when your container's entrypoint is invoked.



1660
1661
1662
# File 'sagemaker/cfn_processing_job.rb', line 1660

def local_path
  @local_path
end

#s3_upload_modeString (readonly)

Whether to upload the results of the processing job continuously or after the job completes.



1648
1649
1650
# File 'sagemaker/cfn_processing_job.rb', line 1648

def s3_upload_mode
  @s3_upload_mode
end

#s3_uriString (readonly)

The URI of the Amazon S3 prefix Amazon SageMaker downloads data required to run a processing job.



1653
1654
1655
# File 'sagemaker/cfn_processing_job.rb', line 1653

def s3_uri
  @s3_uri
end

Class Method Details

.jsii_propertiesObject



1662
1663
1664
1665
1666
1667
1668
# File 'sagemaker/cfn_processing_job.rb', line 1662

def self.jsii_properties
  {
    :s3_upload_mode => "s3UploadMode",
    :s3_uri => "s3Uri",
    :local_path => "localPath",
  }
end

Instance Method Details

#to_jsiiObject



1670
1671
1672
1673
1674
1675
1676
1677
1678
# File 'sagemaker/cfn_processing_job.rb', line 1670

def to_jsii
  result = {}
  result.merge!({
    "s3UploadMode" => @s3_upload_mode,
    "s3Uri" => @s3_uri,
    "localPath" => @local_path,
  })
  result.compact
end