Class: AWSCDK::CloudAssemblySchema::FileAssetMetadataEntry
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudAssemblySchema::FileAssetMetadataEntry
- Defined in:
- cloud_assembly_schema/file_asset_metadata_entry.rb
Overview
Metadata Entry spec for files.
Instance Attribute Summary collapse
-
#artifact_hash_parameter ⇒ String
readonly
The name of the parameter where the hash of the bundled asset should be passed in.
-
#id ⇒ String
readonly
Logical identifier for the asset.
-
#packaging ⇒ String
readonly
Requested packaging style.
-
#path ⇒ String
readonly
Path on disk to the asset.
-
#s3_bucket_parameter ⇒ String
readonly
Name of parameter where S3 bucket should be passed in.
-
#s3_key_parameter ⇒ String
readonly
Name of parameter where S3 key should be passed in.
-
#source_hash ⇒ String
readonly
The hash of the asset source.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(artifact_hash_parameter:, id:, packaging:, path:, s3_bucket_parameter:, s3_key_parameter:, source_hash:) ⇒ FileAssetMetadataEntry
constructor
A new instance of FileAssetMetadataEntry.
- #to_jsii ⇒ Object
Constructor Details
#initialize(artifact_hash_parameter:, id:, packaging:, path:, s3_bucket_parameter:, s3_key_parameter:, source_hash:) ⇒ FileAssetMetadataEntry
Returns a new instance of FileAssetMetadataEntry.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'cloud_assembly_schema/file_asset_metadata_entry.rb', line 22 def initialize(artifact_hash_parameter:, id:, packaging:, path:, s3_bucket_parameter:, s3_key_parameter:, source_hash:) @artifact_hash_parameter = artifact_hash_parameter Jsii::Type.check_type(@artifact_hash_parameter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "artifactHashParameter") @id = id Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") @packaging = packaging Jsii::Type.check_type(@packaging, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "packaging") @path = path Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") @s3_bucket_parameter = s3_bucket_parameter Jsii::Type.check_type(@s3_bucket_parameter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3BucketParameter") @s3_key_parameter = s3_key_parameter Jsii::Type.check_type(@s3_key_parameter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3KeyParameter") @source_hash = source_hash Jsii::Type.check_type(@source_hash, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceHash") end |
Instance Attribute Details
#artifact_hash_parameter ⇒ String (readonly)
The name of the parameter where the hash of the bundled asset should be passed in.
42 43 44 |
# File 'cloud_assembly_schema/file_asset_metadata_entry.rb', line 42 def artifact_hash_parameter @artifact_hash_parameter end |
#id ⇒ String (readonly)
Logical identifier for the asset.
46 47 48 |
# File 'cloud_assembly_schema/file_asset_metadata_entry.rb', line 46 def id @id end |
#packaging ⇒ String (readonly)
Requested packaging style.
50 51 52 |
# File 'cloud_assembly_schema/file_asset_metadata_entry.rb', line 50 def packaging @packaging end |
#path ⇒ String (readonly)
Path on disk to the asset.
54 55 56 |
# File 'cloud_assembly_schema/file_asset_metadata_entry.rb', line 54 def path @path end |
#s3_bucket_parameter ⇒ String (readonly)
Name of parameter where S3 bucket should be passed in.
58 59 60 |
# File 'cloud_assembly_schema/file_asset_metadata_entry.rb', line 58 def s3_bucket_parameter @s3_bucket_parameter end |
#s3_key_parameter ⇒ String (readonly)
Name of parameter where S3 key should be passed in.
62 63 64 |
# File 'cloud_assembly_schema/file_asset_metadata_entry.rb', line 62 def s3_key_parameter @s3_key_parameter end |
#source_hash ⇒ String (readonly)
The hash of the asset source.
66 67 68 |
# File 'cloud_assembly_schema/file_asset_metadata_entry.rb', line 66 def source_hash @source_hash end |
Class Method Details
.jsii_properties ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 |
# File 'cloud_assembly_schema/file_asset_metadata_entry.rb', line 68 def self.jsii_properties { :artifact_hash_parameter => "artifactHashParameter", :id => "id", :packaging => "packaging", :path => "path", :s3_bucket_parameter => "s3BucketParameter", :s3_key_parameter => "s3KeyParameter", :source_hash => "sourceHash", } end |
Instance Method Details
#to_jsii ⇒ Object
80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'cloud_assembly_schema/file_asset_metadata_entry.rb', line 80 def to_jsii result = {} result.merge!({ "artifactHashParameter" => @artifact_hash_parameter, "id" => @id, "packaging" => @packaging, "path" => @path, "s3BucketParameter" => @s3_bucket_parameter, "s3KeyParameter" => @s3_key_parameter, "sourceHash" => @source_hash, }) result.compact end |