Class: AWSCDK::MSK::CfnCluster::S3Property

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

Overview

The details of the Amazon S3 destination for broker logs.

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)

    Specifies whether broker logs get sent to the specified Amazon S3 destination.

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

    The name of the S3 bucket that is the destination for broker logs.

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

    The S3 prefix that is the destination for broker logs.



1601
1602
1603
1604
1605
1606
1607
1608
# File 'msk/cfn_cluster.rb', line 1601

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 name of the S3 bucket that is the destination for broker logs.



1619
1620
1621
# File 'msk/cfn_cluster.rb', line 1619

def bucket
  @bucket
end

#enabledBoolean, AWSCDK::IResolvable (readonly)

Specifies whether broker logs get sent to the specified Amazon S3 destination.



1614
1615
1616
# File 'msk/cfn_cluster.rb', line 1614

def enabled
  @enabled
end

#prefixString? (readonly)

The S3 prefix that is the destination for broker logs.



1624
1625
1626
# File 'msk/cfn_cluster.rb', line 1624

def prefix
  @prefix
end

Class Method Details

.jsii_propertiesObject



1626
1627
1628
1629
1630
1631
1632
# File 'msk/cfn_cluster.rb', line 1626

def self.jsii_properties
  {
    :enabled => "enabled",
    :bucket => "bucket",
    :prefix => "prefix",
  }
end

Instance Method Details

#to_jsiiObject



1634
1635
1636
1637
1638
1639
1640
1641
1642
# File 'msk/cfn_cluster.rb', line 1634

def to_jsii
  result = {}
  result.merge!({
    "enabled" => @enabled,
    "bucket" => @bucket,
    "prefix" => @prefix,
  })
  result.compact
end