Class: AWSCDK::S3::CfnStorageLens::S3BucketDestinationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnStorageLens::S3BucketDestinationProperty
- 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
-
#account_id ⇒ String
readonly
This property contains the details of the AWS account ID of the S3 Storage Lens export bucket destination.
-
#arn ⇒ String
readonly
This property contains the details of the ARN of the bucket destination of the S3 Storage Lens export.
-
#encryption ⇒ AWSCDK::IResolvable, ...
readonly
This property contains the details of the encryption of the bucket destination of the Amazon S3 Storage Lens metrics export.
-
#format ⇒ String
readonly
This property contains the details of the format of the S3 Storage Lens export bucket destination.
-
#output_schema_version ⇒ String
readonly
This property contains the details of the output schema version of the S3 Storage Lens export bucket destination.
-
#prefix ⇒ String?
readonly
This property contains the details of the prefix of the bucket destination of the S3 Storage Lens export .
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_id:, arn:, format:, output_schema_version:, encryption: nil, prefix: nil) ⇒ S3BucketDestinationProperty
constructor
A new instance of S3BucketDestinationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account_id:, arn:, format:, output_schema_version:, encryption: nil, prefix: nil) ⇒ S3BucketDestinationProperty
Returns a new instance of S3BucketDestinationProperty.
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 = 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_id ⇒ String (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 @account_id end |
#arn ⇒ String (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 |
#encryption ⇒ AWSCDK::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 |
#format ⇒ String (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_version ⇒ String (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 |
#prefix ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |