Class: AWSCDK::Greengrass::CfnResourceDefinition::SageMakerMachineLearningModelResourceDataProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_path:, sage_maker_job_arn:, owner_setting: nil) ⇒ SageMakerMachineLearningModelResourceDataProperty

Returns a new instance of SageMakerMachineLearningModelResourceDataProperty.

Parameters:



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_pathString (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_settingAWSCDK::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_arnString (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_propertiesObject



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_jsiiObject



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