Class: AWSCDK::SAM::CfnHttpAPI::S3LocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SAM::CfnHttpAPI::S3LocationProperty
- Defined in:
- sam/cfn_http_api.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:) ⇒ S3LocationProperty
constructor
A new instance of S3LocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket:, key:, version:) ⇒ S3LocationProperty
Returns a new instance of S3LocationProperty.
1035 1036 1037 1038 1039 1040 1041 1042 |
# File 'sam/cfn_http_api.rb', line 1035 def initialize(bucket:, key:, version:) @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") end |
Instance Attribute Details
#bucket ⇒ String (readonly)
1046 1047 1048 |
# File 'sam/cfn_http_api.rb', line 1046 def bucket @bucket end |
#key ⇒ String (readonly)
1049 1050 1051 |
# File 'sam/cfn_http_api.rb', line 1049 def key @key end |
#version ⇒ Numeric (readonly)
1052 1053 1054 |
# File 'sam/cfn_http_api.rb', line 1052 def version @version end |
Class Method Details
.jsii_properties ⇒ Object
1054 1055 1056 1057 1058 1059 1060 |
# File 'sam/cfn_http_api.rb', line 1054 def self.jsii_properties { :bucket => "bucket", :key => "key", :version => "version", } end |
Instance Method Details
#to_jsii ⇒ Object
1062 1063 1064 1065 1066 1067 1068 1069 1070 |
# File 'sam/cfn_http_api.rb', line 1062 def to_jsii result = {} result.merge!({ "bucket" => @bucket, "key" => @key, "version" => @version, }) result.compact end |