Class: AWSCDK::Greengrass::CfnResourceDefinitionVersion::SageMakerMachineLearningModelResourceDataProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrass::CfnResourceDefinitionVersion::SageMakerMachineLearningModelResourceDataProperty
- Defined in:
- greengrass/cfn_resource_definition_version.rb
Overview
Settings for an Secrets Manager machine learning resource.
For more information, see Perform Machine Learning Inference in the Developer Guide .
In an CloudFormation template, SageMakerMachineLearningModelResourceData can be used in the ResourceDataContainer property type.
Instance Attribute Summary collapse
-
#destination_path ⇒ String
readonly
The absolute local path of the resource inside the Lambda environment.
-
#owner_setting ⇒ AWSCDK::IResolvable, ...
readonly
The owner setting for the downloaded machine learning resource.
-
#sage_maker_job_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the Amazon SageMaker AI training job that represents the source model.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination_path:, sage_maker_job_arn:, owner_setting: nil) ⇒ SageMakerMachineLearningModelResourceDataProperty
constructor
A new instance of SageMakerMachineLearningModelResourceDataProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination_path:, sage_maker_job_arn:, owner_setting: nil) ⇒ SageMakerMachineLearningModelResourceDataProperty
Returns a new instance of SageMakerMachineLearningModelResourceDataProperty.
938 939 940 941 942 943 944 945 |
# File 'greengrass/cfn_resource_definition_version.rb', line 938 def initialize(destination_path:, sage_maker_job_arn:, owner_setting: nil) @destination_path = destination_path Jsii::Type.check_type(@destination_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationPath") @sage_maker_job_arn = sage_maker_job_arn Jsii::Type.check_type(@sage_maker_job_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sageMakerJobArn") @owner_setting = owner_setting.is_a?(Hash) ? ::AWSCDK::Greengrass::CfnResourceDefinitionVersion::ResourceDownloadOwnerSettingProperty.new(**owner_setting.transform_keys(&:to_sym)) : owner_setting Jsii::Type.check_type(@owner_setting, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ncmVlbmdyYXNzLkNmblJlc291cmNlRGVmaW5pdGlvblZlcnNpb24uUmVzb3VyY2VEb3dubG9hZE93bmVyU2V0dGluZ1Byb3BlcnR5In1dfX0=")), "ownerSetting") unless @owner_setting.nil? end |
Instance Attribute Details
#destination_path ⇒ String (readonly)
The absolute local path of the resource inside the Lambda environment.
951 952 953 |
# File 'greengrass/cfn_resource_definition_version.rb', line 951 def destination_path @destination_path end |
#owner_setting ⇒ AWSCDK::IResolvable, ... (readonly)
The owner setting for the downloaded machine learning resource.
For more information, see Access Machine Learning Resources from Lambda Functions in the Developer Guide .
963 964 965 |
# File 'greengrass/cfn_resource_definition_version.rb', line 963 def owner_setting @owner_setting end |
#sage_maker_job_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the Amazon SageMaker AI training job that represents the source model.
956 957 958 |
# File 'greengrass/cfn_resource_definition_version.rb', line 956 def sage_maker_job_arn @sage_maker_job_arn end |
Class Method Details
.jsii_properties ⇒ Object
965 966 967 968 969 970 971 |
# File 'greengrass/cfn_resource_definition_version.rb', line 965 def self.jsii_properties { :destination_path => "destinationPath", :sage_maker_job_arn => "sageMakerJobArn", :owner_setting => "ownerSetting", } end |
Instance Method Details
#to_jsii ⇒ Object
973 974 975 976 977 978 979 980 981 |
# File 'greengrass/cfn_resource_definition_version.rb', line 973 def to_jsii result = {} result.merge!({ "destinationPath" => @destination_path, "sageMakerJobArn" => @sage_maker_job_arn, "ownerSetting" => @owner_setting, }) result.compact end |