Class: AWSCDK::SAM::CfnFunction::S3LocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SAM::CfnFunction::S3LocationProperty
- Defined in:
- sam/cfn_function.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.
2812 2813 2814 2815 2816 2817 2818 2819 |
# File 'sam/cfn_function.rb', line 2812 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)
2823 2824 2825 |
# File 'sam/cfn_function.rb', line 2823 def bucket @bucket end |
#key ⇒ String (readonly)
2826 2827 2828 |
# File 'sam/cfn_function.rb', line 2826 def key @key end |
#version ⇒ Numeric? (readonly)
2829 2830 2831 |
# File 'sam/cfn_function.rb', line 2829 def version @version end |
Class Method Details
.jsii_properties ⇒ Object
2831 2832 2833 2834 2835 2836 2837 |
# File 'sam/cfn_function.rb', line 2831 def self.jsii_properties { :bucket => "bucket", :key => "key", :version => "version", } end |
Instance Method Details
#to_jsii ⇒ Object
2839 2840 2841 2842 2843 2844 2845 2846 2847 |
# File 'sam/cfn_function.rb', line 2839 def to_jsii result = {} result.merge!({ "bucket" => @bucket, "key" => @key, "version" => @version, }) result.compact end |