Class: AWSCDK::KafkaConnect::CfnConnector::S3LogDeliveryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kafka_connect/cfn_connector.rb

Overview

Details about delivering logs to Amazon S3.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of S3LogDeliveryProperty.

Parameters:

  • enabled (Boolean, AWSCDK::IResolvable)

    Specifies whether connector 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 log delivery.

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

    The S3 prefix that is the destination for log delivery.



1208
1209
1210
1211
1212
1213
1214
1215
# File 'kafka_connect/cfn_connector.rb', line 1208

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 log delivery.



1226
1227
1228
# File 'kafka_connect/cfn_connector.rb', line 1226

def bucket
  @bucket
end

#enabledBoolean, AWSCDK::IResolvable (readonly)

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



1221
1222
1223
# File 'kafka_connect/cfn_connector.rb', line 1221

def enabled
  @enabled
end

#prefixString? (readonly)

The S3 prefix that is the destination for log delivery.



1231
1232
1233
# File 'kafka_connect/cfn_connector.rb', line 1231

def prefix
  @prefix
end

Class Method Details

.jsii_propertiesObject



1233
1234
1235
1236
1237
1238
1239
# File 'kafka_connect/cfn_connector.rb', line 1233

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

Instance Method Details

#to_jsiiObject



1241
1242
1243
1244
1245
1246
1247
1248
1249
# File 'kafka_connect/cfn_connector.rb', line 1241

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