Class: AWSCDK::Greengrass::CfnResourceDefinitionVersion::S3MachineLearningModelResourceDataProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrass::CfnResourceDefinitionVersion::S3MachineLearningModelResourceDataProperty
- Defined in:
- greengrass/cfn_resource_definition_version.rb
Overview
Settings for an Amazon S3 machine learning resource.
For more information, see Perform Machine Learning Inference in the Developer Guide .
In an CloudFormation template, S3MachineLearningModelResourceData 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.
-
#s3_uri ⇒ String
readonly
The URI of the source model in an Amazon S3 bucket.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination_path:, s3_uri:, owner_setting: nil) ⇒ S3MachineLearningModelResourceDataProperty
constructor
A new instance of S3MachineLearningModelResourceDataProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination_path:, s3_uri:, owner_setting: nil) ⇒ S3MachineLearningModelResourceDataProperty
Returns a new instance of S3MachineLearningModelResourceDataProperty.
877 878 879 880 881 882 883 884 |
# File 'greengrass/cfn_resource_definition_version.rb', line 877 def initialize(destination_path:, s3_uri:, owner_setting: nil) @destination_path = destination_path Jsii::Type.check_type(@destination_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationPath") @s3_uri = s3_uri Jsii::Type.check_type(@s3_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3Uri") @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.
890 891 892 |
# File 'greengrass/cfn_resource_definition_version.rb', line 890 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 .
904 905 906 |
# File 'greengrass/cfn_resource_definition_version.rb', line 904 def owner_setting @owner_setting end |
#s3_uri ⇒ String (readonly)
The URI of the source model in an Amazon S3 bucket.
The model package must be in tar.gz or .zip format.
897 898 899 |
# File 'greengrass/cfn_resource_definition_version.rb', line 897 def s3_uri @s3_uri end |
Class Method Details
.jsii_properties ⇒ Object
906 907 908 909 910 911 912 |
# File 'greengrass/cfn_resource_definition_version.rb', line 906 def self.jsii_properties { :destination_path => "destinationPath", :s3_uri => "s3Uri", :owner_setting => "ownerSetting", } end |
Instance Method Details
#to_jsii ⇒ Object
914 915 916 917 918 919 920 921 922 |
# File 'greengrass/cfn_resource_definition_version.rb', line 914 def to_jsii result = {} result.merge!({ "destinationPath" => @destination_path, "s3Uri" => @s3_uri, "ownerSetting" => @owner_setting, }) result.compact end |