Class: AWSCDK::B2BI::CfnCapability::S3LocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::B2BI::CfnCapability::S3LocationProperty
- Defined in:
- b2_bi/cfn_capability.rb
Overview
Specifies the details for the Amazon S3 file location that is being used with AWS B2B Data Interchange.
File locations in Amazon S3 are identified using a combination of the bucket and key.
Instance Attribute Summary collapse
-
#bucket_name ⇒ String?
readonly
Specifies the name of the Amazon S3 bucket.
-
#key ⇒ String?
readonly
Specifies the Amazon S3 key for the file location.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket_name: nil, key: nil) ⇒ S3LocationProperty
constructor
A new instance of S3LocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket_name: nil, key: nil) ⇒ S3LocationProperty
Returns a new instance of S3LocationProperty.
738 739 740 741 742 743 |
# File 'b2_bi/cfn_capability.rb', line 738 def initialize(bucket_name: nil, key: nil) @bucket_name = bucket_name Jsii::Type.check_type(@bucket_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketName") unless @bucket_name.nil? @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil? end |
Instance Attribute Details
#bucket_name ⇒ String? (readonly)
Specifies the name of the Amazon S3 bucket.
749 750 751 |
# File 'b2_bi/cfn_capability.rb', line 749 def bucket_name @bucket_name end |
#key ⇒ String? (readonly)
Specifies the Amazon S3 key for the file location.
754 755 756 |
# File 'b2_bi/cfn_capability.rb', line 754 def key @key end |
Class Method Details
.jsii_properties ⇒ Object
756 757 758 759 760 761 |
# File 'b2_bi/cfn_capability.rb', line 756 def self.jsii_properties { :bucket_name => "bucketName", :key => "key", } end |
Instance Method Details
#to_jsii ⇒ Object
763 764 765 766 767 768 769 770 |
# File 'b2_bi/cfn_capability.rb', line 763 def to_jsii result = {} result.merge!({ "bucketName" => @bucket_name, "key" => @key, }) result.compact end |