Class: AWSCDK::Greengrass::CfnResourceDefinition::SageMakerMachineLearningModelResourceDataProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrass::CfnResourceDefinition::SageMakerMachineLearningModelResourceDataProperty
- Defined in:
- greengrass/cfn_resource_definition.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.
1059 1060 1061 1062 1063 1064 1065 1066 |
# File 'greengrass/cfn_resource_definition.rb', line 1059 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::CfnResourceDefinition::ResourceDownloadOwnerSettingProperty.new(**owner_setting.transform_keys(&:to_sym)) : owner_setting Jsii::Type.check_type(@owner_setting, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ncmVlbmdyYXNzLkNmblJlc291cmNlRGVmaW5pdGlvbi5SZXNvdXJjZURvd25sb2FkT3duZXJTZXR0aW5nUHJvcGVydHkifV19fQ==")), "ownerSetting") unless @owner_setting.nil? end |
Instance Attribute Details
#destination_path ⇒ String (readonly)
The absolute local path of the resource inside the Lambda environment.
1072 1073 1074 |
# File 'greengrass/cfn_resource_definition.rb', line 1072 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 .
1084 1085 1086 |
# File 'greengrass/cfn_resource_definition.rb', line 1084 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.
1077 1078 1079 |
# File 'greengrass/cfn_resource_definition.rb', line 1077 def sage_maker_job_arn @sage_maker_job_arn end |
Class Method Details
.jsii_properties ⇒ Object
1086 1087 1088 1089 1090 1091 1092 |
# File 'greengrass/cfn_resource_definition.rb', line 1086 def self.jsii_properties { :destination_path => "destinationPath", :sage_maker_job_arn => "sageMakerJobArn", :owner_setting => "ownerSetting", } end |
Instance Method Details
#to_jsii ⇒ Object
1094 1095 1096 1097 1098 1099 1100 1101 1102 |
# File 'greengrass/cfn_resource_definition.rb', line 1094 def to_jsii result = {} result.merge!({ "destinationPath" => @destination_path, "sageMakerJobArn" => @sage_maker_job_arn, "ownerSetting" => @owner_setting, }) result.compact end |