Class: AWSCDK::Sagemaker::CfnModelPackage::ValidationProfileProperty

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

Overview

Contains data, such as the inputs and targeted instance types that are used in the process of validating the model package.

The data provided in the validation profile is made available to your buyers on AWS Marketplace.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(profile_name:, transform_job_definition:) ⇒ ValidationProfileProperty

Returns a new instance of ValidationProfileProperty.

Parameters:



2765
2766
2767
2768
2769
2770
# File 'sagemaker/cfn_model_package.rb', line 2765

def initialize(profile_name:, transform_job_definition:)
  @profile_name = profile_name
  Jsii::Type.check_type(@profile_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "profileName")
  @transform_job_definition = transform_job_definition.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::TransformJobDefinitionProperty.new(**transform_job_definition.transform_keys(&:to_sym)) : transform_job_definition
  Jsii::Type.check_type(@transform_job_definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLlRyYW5zZm9ybUpvYkRlZmluaXRpb25Qcm9wZXJ0eSJ9XX19")), "transformJobDefinition")
end

Instance Attribute Details

#profile_nameString (readonly)

The name of the profile for the model package.



2776
2777
2778
# File 'sagemaker/cfn_model_package.rb', line 2776

def profile_name
  @profile_name
end

#transform_job_definitionAWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelPackage::TransformJobDefinitionProperty (readonly)

The TransformJobDefinition object that describes the transform job used for the validation of the model package.



2781
2782
2783
# File 'sagemaker/cfn_model_package.rb', line 2781

def transform_job_definition
  @transform_job_definition
end

Class Method Details

.jsii_propertiesObject



2783
2784
2785
2786
2787
2788
# File 'sagemaker/cfn_model_package.rb', line 2783

def self.jsii_properties
  {
    :profile_name => "profileName",
    :transform_job_definition => "transformJobDefinition",
  }
end

Instance Method Details

#to_jsiiObject



2790
2791
2792
2793
2794
2795
2796
2797
# File 'sagemaker/cfn_model_package.rb', line 2790

def to_jsii
  result = {}
  result.merge!({
    "profileName" => @profile_name,
    "transformJobDefinition" => @transform_job_definition,
  })
  result.compact
end