Class: AWSCDK::S3Express::CfnDirectoryBucket::DestinationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3_express/cfn_directory_bucket.rb

Overview

Specifies information about where to publish inventory reports for an Amazon S3 Express bucket.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_arn:, format:, bucket_account_id: nil, prefix: nil) ⇒ DestinationProperty

Returns a new instance of DestinationProperty.

Parameters:

  • bucket_arn (String)

    The Amazon Resource Name (ARN) of the destination Amazon S3 bucket to which data is exported.

  • format (String)

    Specifies the file format used when exporting data to Amazon S3.

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

    The account ID that owns the destination S3 bucket.

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

    The prefix to use when exporting data.



755
756
757
758
759
760
761
762
763
764
# File 's3_express/cfn_directory_bucket.rb', line 755

def initialize(bucket_arn:, format:, bucket_account_id: nil, prefix: nil)
  @bucket_arn = bucket_arn
  Jsii::Type.check_type(@bucket_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketArn")
  @format = format
  Jsii::Type.check_type(@format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "format")
  @bucket_account_id = 
  Jsii::Type.check_type(@bucket_account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketAccountId") unless @bucket_account_id.nil?
  @prefix = prefix
  Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless @prefix.nil?
end

Instance Attribute Details

#bucket_account_idString? (readonly)

The account ID that owns the destination S3 bucket.



780
781
782
# File 's3_express/cfn_directory_bucket.rb', line 780

def 
  @bucket_account_id
end

#bucket_arnString (readonly)

The Amazon Resource Name (ARN) of the destination Amazon S3 bucket to which data is exported.



770
771
772
# File 's3_express/cfn_directory_bucket.rb', line 770

def bucket_arn
  @bucket_arn
end

#formatString (readonly)

Specifies the file format used when exporting data to Amazon S3.



775
776
777
# File 's3_express/cfn_directory_bucket.rb', line 775

def format
  @format
end

#prefixString? (readonly)

The prefix to use when exporting data.

The prefix is prepended to all results.



787
788
789
# File 's3_express/cfn_directory_bucket.rb', line 787

def prefix
  @prefix
end

Class Method Details

.jsii_propertiesObject



789
790
791
792
793
794
795
796
# File 's3_express/cfn_directory_bucket.rb', line 789

def self.jsii_properties
  {
    :bucket_arn => "bucketArn",
    :format => "format",
    :bucket_account_id => "bucketAccountId",
    :prefix => "prefix",
  }
end

Instance Method Details

#to_jsiiObject



798
799
800
801
802
803
804
805
806
807
# File 's3_express/cfn_directory_bucket.rb', line 798

def to_jsii
  result = {}
  result.merge!({
    "bucketArn" => @bucket_arn,
    "format" => @format,
    "bucketAccountId" => @bucket_account_id,
    "prefix" => @prefix,
  })
  result.compact
end