Class: AWSCDK::Sagemaker::CfnModelPackage::FileSourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelPackage::FileSourceProperty
- Defined in:
- sagemaker/cfn_model_package.rb
Overview
Contains details regarding the file source.
Instance Attribute Summary collapse
-
#content_digest ⇒ String?
readonly
The digest of the file source.
-
#content_type ⇒ String?
readonly
The type of content stored in the file source.
-
#s3_uri ⇒ String
readonly
The Amazon S3 URI for the file source.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_uri:, content_digest: nil, content_type: nil) ⇒ FileSourceProperty
constructor
A new instance of FileSourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_uri:, content_digest: nil, content_type: nil) ⇒ FileSourceProperty
Returns a new instance of FileSourceProperty.
1368 1369 1370 1371 1372 1373 1374 1375 |
# File 'sagemaker/cfn_model_package.rb', line 1368 def initialize(s3_uri:, content_digest: nil, content_type: nil) @s3_uri = s3_uri Jsii::Type.check_type(@s3_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3Uri") @content_digest = content_digest Jsii::Type.check_type(@content_digest, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contentDigest") unless @content_digest.nil? @content_type = content_type Jsii::Type.check_type(@content_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contentType") unless @content_type.nil? end |
Instance Attribute Details
#content_digest ⇒ String? (readonly)
The digest of the file source.
1386 1387 1388 |
# File 'sagemaker/cfn_model_package.rb', line 1386 def content_digest @content_digest end |
#content_type ⇒ String? (readonly)
The type of content stored in the file source.
1391 1392 1393 |
# File 'sagemaker/cfn_model_package.rb', line 1391 def content_type @content_type end |
#s3_uri ⇒ String (readonly)
The Amazon S3 URI for the file source.
1381 1382 1383 |
# File 'sagemaker/cfn_model_package.rb', line 1381 def s3_uri @s3_uri end |
Class Method Details
.jsii_properties ⇒ Object
1393 1394 1395 1396 1397 1398 1399 |
# File 'sagemaker/cfn_model_package.rb', line 1393 def self.jsii_properties { :s3_uri => "s3Uri", :content_digest => "contentDigest", :content_type => "contentType", } end |
Instance Method Details
#to_jsii ⇒ Object
1401 1402 1403 1404 1405 1406 1407 1408 1409 |
# File 'sagemaker/cfn_model_package.rb', line 1401 def to_jsii result = {} result.merge!({ "s3Uri" => @s3_uri, "contentDigest" => @content_digest, "contentType" => @content_type, }) result.compact end |