Class: AWSCDK::Sagemaker::CfnModelPackage::MetricsSourceProperty

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

Overview

Details about the metrics source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content_type:, s3_uri:, content_digest: nil) ⇒ MetricsSourceProperty

Returns a new instance of MetricsSourceProperty.

Parameters:

  • content_type (String)

    The metric source content type.

  • s3_uri (String)

    The S3 URI for the metrics source.

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

    The hash key used for the metrics source.



1561
1562
1563
1564
1565
1566
1567
1568
# File 'sagemaker/cfn_model_package.rb', line 1561

def initialize(content_type:, s3_uri:, content_digest: nil)
  @content_type = content_type
  Jsii::Type.check_type(@content_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contentType")
  @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?
end

Instance Attribute Details

#content_digestString? (readonly)

The hash key used for the metrics source.



1584
1585
1586
# File 'sagemaker/cfn_model_package.rb', line 1584

def content_digest
  @content_digest
end

#content_typeString (readonly)

The metric source content type.



1574
1575
1576
# File 'sagemaker/cfn_model_package.rb', line 1574

def content_type
  @content_type
end

#s3_uriString (readonly)

The S3 URI for the metrics source.



1579
1580
1581
# File 'sagemaker/cfn_model_package.rb', line 1579

def s3_uri
  @s3_uri
end

Class Method Details

.jsii_propertiesObject



1586
1587
1588
1589
1590
1591
1592
# File 'sagemaker/cfn_model_package.rb', line 1586

def self.jsii_properties
  {
    :content_type => "contentType",
    :s3_uri => "s3Uri",
    :content_digest => "contentDigest",
  }
end

Instance Method Details

#to_jsiiObject



1594
1595
1596
1597
1598
1599
1600
1601
1602
# File 'sagemaker/cfn_model_package.rb', line 1594

def to_jsii
  result = {}
  result.merge!({
    "contentType" => @content_type,
    "s3Uri" => @s3_uri,
    "contentDigest" => @content_digest,
  })
  result.compact
end