Class: AWSCDK::MSK::CfnReplicator::S3Property
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MSK::CfnReplicator::S3Property
- Defined in:
- msk/cfn_replicator.rb
Overview
Details about delivering logs to S3.
Instance Attribute Summary collapse
-
#bucket ⇒ String?
readonly
The S3 bucket that is the destination for log delivery.
-
#enabled ⇒ Boolean, AWSCDK::IResolvable
readonly
Whether log delivery to S3 is enabled.
-
#prefix ⇒ String?
readonly
The S3 prefix that is the destination for log delivery.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled:, bucket: nil, prefix: nil) ⇒ S3Property
constructor
A new instance of S3Property.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled:, bucket: nil, prefix: nil) ⇒ S3Property
Returns a new instance of S3Property.
1366 1367 1368 1369 1370 1371 1372 1373 |
# File 'msk/cfn_replicator.rb', line 1366 def initialize(enabled:, bucket: nil, prefix: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") @bucket = bucket Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket") unless @bucket.nil? @prefix = prefix Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless @prefix.nil? end |
Instance Attribute Details
#bucket ⇒ String? (readonly)
The S3 bucket that is the destination for log delivery.
1384 1385 1386 |
# File 'msk/cfn_replicator.rb', line 1384 def bucket @bucket end |
#enabled ⇒ Boolean, AWSCDK::IResolvable (readonly)
Whether log delivery to S3 is enabled.
1379 1380 1381 |
# File 'msk/cfn_replicator.rb', line 1379 def enabled @enabled end |
#prefix ⇒ String? (readonly)
The S3 prefix that is the destination for log delivery.
1389 1390 1391 |
# File 'msk/cfn_replicator.rb', line 1389 def prefix @prefix end |
Class Method Details
.jsii_properties ⇒ Object
1391 1392 1393 1394 1395 1396 1397 |
# File 'msk/cfn_replicator.rb', line 1391 def self.jsii_properties { :enabled => "enabled", :bucket => "bucket", :prefix => "prefix", } end |
Instance Method Details
#to_jsii ⇒ Object
1399 1400 1401 1402 1403 1404 1405 1406 1407 |
# File 'msk/cfn_replicator.rb', line 1399 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "bucket" => @bucket, "prefix" => @prefix, }) result.compact end |