Class: AWSCDK::MSK::CfnReplicator::S3Property

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
msk/cfn_replicator.rb

Overview

Details about delivering logs to S3.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled:, bucket: nil, prefix: nil) ⇒ S3Property

Returns a new instance of S3Property.

Parameters:

  • enabled (Boolean, AWSCDK::IResolvable)

    Whether log delivery to S3 is enabled.

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

    The S3 bucket that is the destination for log delivery.

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

    The S3 prefix that is the destination for log delivery.



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

#bucketString? (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

#enabledBoolean, AWSCDK::IResolvable (readonly)

Whether log delivery to S3 is enabled.



1379
1380
1381
# File 'msk/cfn_replicator.rb', line 1379

def enabled
  @enabled
end

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



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_jsiiObject



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