Class: AWSCDK::SAM::CfnLayerVersion::S3LocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SAM::CfnLayerVersion::S3LocationProperty
- Defined in:
- sam/cfn_layer_version.rb
Overview
Instance Attribute Summary collapse
- #bucket ⇒ String readonly
- #key ⇒ String readonly
- #version ⇒ Numeric? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket:, key:, version: nil) ⇒ S3LocationProperty
constructor
A new instance of S3LocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket:, key:, version: nil) ⇒ S3LocationProperty
Returns a new instance of S3LocationProperty.
553 554 555 556 557 558 559 560 |
# File 'sam/cfn_layer_version.rb', line 553 def initialize(bucket:, key:, version: nil) @bucket = bucket Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket") @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") @version = version Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "version") unless @version.nil? end |
Instance Attribute Details
#bucket ⇒ String (readonly)
564 565 566 |
# File 'sam/cfn_layer_version.rb', line 564 def bucket @bucket end |
#key ⇒ String (readonly)
567 568 569 |
# File 'sam/cfn_layer_version.rb', line 567 def key @key end |
#version ⇒ Numeric? (readonly)
570 571 572 |
# File 'sam/cfn_layer_version.rb', line 570 def version @version end |
Class Method Details
.jsii_properties ⇒ Object
572 573 574 575 576 577 578 |
# File 'sam/cfn_layer_version.rb', line 572 def self.jsii_properties { :bucket => "bucket", :key => "key", :version => "version", } end |
Instance Method Details
#to_jsii ⇒ Object
580 581 582 583 584 585 586 587 588 |
# File 'sam/cfn_layer_version.rb', line 580 def to_jsii result = {} result.merge!({ "bucket" => @bucket, "key" => @key, "version" => @version, }) result.compact end |