Class: AWSCDK::S3::CfnStorageLens::S3BucketDestinationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3/cfn_storage_lens.rb

Overview

This resource contains the details of the bucket where the Amazon S3 Storage Lens metrics export will be placed.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_id:, arn:, format:, output_schema_version:, encryption: nil, prefix: nil) ⇒ S3BucketDestinationProperty

Returns a new instance of S3BucketDestinationProperty.

Parameters:

  • account_id (String)

    This property contains the details of the AWS account ID of the S3 Storage Lens export bucket destination.

  • arn (String)

    This property contains the details of the ARN of the bucket destination of the S3 Storage Lens export.

  • format (String)

    This property contains the details of the format of the S3 Storage Lens export bucket destination.

  • output_schema_version (String)

    This property contains the details of the output schema version of the S3 Storage Lens export bucket destination.

  • encryption (AWSCDK::IResolvable, AWSCDK::S3::CfnStorageLens::EncryptionProperty, nil) (defaults to: nil)

    This property contains the details of the encryption of the bucket destination of the Amazon S3 Storage Lens metrics export.

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

    This property contains the details of the prefix of the bucket destination of the S3 Storage Lens export .



1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
# File 's3/cfn_storage_lens.rb', line 1181

def initialize(account_id:, arn:, format:, output_schema_version:, encryption: nil, prefix: nil)
  @account_id = 
  Jsii::Type.check_type(@account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accountId")
  @arn = arn
  Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn")
  @format = format
  Jsii::Type.check_type(@format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "format")
  @output_schema_version = output_schema_version
  Jsii::Type.check_type(@output_schema_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "outputSchemaVersion")
  @encryption = encryption.is_a?(Hash) ? ::AWSCDK::S3::CfnStorageLens::EncryptionProperty.new(**encryption.transform_keys(&:to_sym)) : encryption
  Jsii::Type.check_type(@encryption, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5TdG9yYWdlTGVucy5FbmNyeXB0aW9uUHJvcGVydHkifV19fQ==")), "encryption") unless @encryption.nil?
  @prefix = prefix
  Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless @prefix.nil?
end

Instance Attribute Details

#account_idString (readonly)

This property contains the details of the AWS account ID of the S3 Storage Lens export bucket destination.



1200
1201
1202
# File 's3/cfn_storage_lens.rb', line 1200

def 
  @account_id
end

#arnString (readonly)

This property contains the details of the ARN of the bucket destination of the S3 Storage Lens export.



1205
1206
1207
# File 's3/cfn_storage_lens.rb', line 1205

def arn
  @arn
end

#encryptionAWSCDK::IResolvable, ... (readonly)

This property contains the details of the encryption of the bucket destination of the Amazon S3 Storage Lens metrics export.



1220
1221
1222
# File 's3/cfn_storage_lens.rb', line 1220

def encryption
  @encryption
end

#formatString (readonly)

This property contains the details of the format of the S3 Storage Lens export bucket destination.



1210
1211
1212
# File 's3/cfn_storage_lens.rb', line 1210

def format
  @format
end

#output_schema_versionString (readonly)

This property contains the details of the output schema version of the S3 Storage Lens export bucket destination.



1215
1216
1217
# File 's3/cfn_storage_lens.rb', line 1215

def output_schema_version
  @output_schema_version
end

#prefixString? (readonly)

This property contains the details of the prefix of the bucket destination of the S3 Storage Lens export .



1225
1226
1227
# File 's3/cfn_storage_lens.rb', line 1225

def prefix
  @prefix
end

Class Method Details

.jsii_propertiesObject



1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
# File 's3/cfn_storage_lens.rb', line 1227

def self.jsii_properties
  {
    :account_id => "accountId",
    :arn => "arn",
    :format => "format",
    :output_schema_version => "outputSchemaVersion",
    :encryption => "encryption",
    :prefix => "prefix",
  }
end

Instance Method Details

#to_jsiiObject



1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
# File 's3/cfn_storage_lens.rb', line 1238

def to_jsii
  result = {}
  result.merge!({
    "accountId" => @account_id,
    "arn" => @arn,
    "format" => @format,
    "outputSchemaVersion" => @output_schema_version,
    "encryption" => @encryption,
    "prefix" => @prefix,
  })
  result.compact
end