Class: AWSCDK::B2BI::CfnCapability::S3LocationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_name: nil, key: nil) ⇒ S3LocationProperty

Returns a new instance of S3LocationProperty.

Parameters:

  • bucket_name (String, nil) (defaults to: nil)

    Specifies the name of the Amazon S3 bucket.

  • key (String, nil) (defaults to: nil)

    Specifies the Amazon S3 key for the file location.



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_nameString? (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

#keyString? (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_propertiesObject



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_jsiiObject



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