Class: AWSCDK::Lex::CfnBot::S3LocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::S3LocationProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Defines an Amazon S3 bucket location.
Instance Attribute Summary collapse
-
#s3_bucket ⇒ String
readonly
The S3 bucket name.
-
#s3_object_key ⇒ String
readonly
The path and file name to the object in the S3 bucket.
-
#s3_object_version ⇒ String?
readonly
The version of the object in the S3 bucket.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_bucket:, s3_object_key:, s3_object_version: nil) ⇒ S3LocationProperty
constructor
A new instance of S3LocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_bucket:, s3_object_key:, s3_object_version: nil) ⇒ S3LocationProperty
Returns a new instance of S3LocationProperty.
4966 4967 4968 4969 4970 4971 4972 4973 |
# File 'lex/cfn_bot.rb', line 4966 def initialize(s3_bucket:, s3_object_key:, s3_object_version: nil) @s3_bucket = s3_bucket Jsii::Type.check_type(@s3_bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3Bucket") @s3_object_key = s3_object_key Jsii::Type.check_type(@s3_object_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3ObjectKey") @s3_object_version = s3_object_version Jsii::Type.check_type(@s3_object_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3ObjectVersion") unless @s3_object_version.nil? end |
Instance Attribute Details
#s3_bucket ⇒ String (readonly)
The S3 bucket name.
4979 4980 4981 |
# File 'lex/cfn_bot.rb', line 4979 def s3_bucket @s3_bucket end |
#s3_object_key ⇒ String (readonly)
The path and file name to the object in the S3 bucket.
4984 4985 4986 |
# File 'lex/cfn_bot.rb', line 4984 def s3_object_key @s3_object_key end |
#s3_object_version ⇒ String? (readonly)
The version of the object in the S3 bucket.
4989 4990 4991 |
# File 'lex/cfn_bot.rb', line 4989 def s3_object_version @s3_object_version end |
Class Method Details
.jsii_properties ⇒ Object
4991 4992 4993 4994 4995 4996 4997 |
# File 'lex/cfn_bot.rb', line 4991 def self.jsii_properties { :s3_bucket => "s3Bucket", :s3_object_key => "s3ObjectKey", :s3_object_version => "s3ObjectVersion", } end |
Instance Method Details
#to_jsii ⇒ Object
4999 5000 5001 5002 5003 5004 5005 5006 5007 |
# File 'lex/cfn_bot.rb', line 4999 def to_jsii result = {} result.merge!({ "s3Bucket" => @s3_bucket, "s3ObjectKey" => @s3_object_key, "s3ObjectVersion" => @s3_object_version, }) result.compact end |