Class: AWSCDK::KafkaConnect::CfnConnector::S3LogDeliveryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KafkaConnect::CfnConnector::S3LogDeliveryProperty
- Defined in:
- kafka_connect/cfn_connector.rb
Overview
Details about delivering logs to Amazon S3.
Instance Attribute Summary collapse
-
#bucket ⇒ String?
readonly
The name of the S3 bucket that is the destination for log delivery.
-
#enabled ⇒ Boolean, AWSCDK::IResolvable
readonly
Specifies whether connector logs get sent to the specified Amazon S3 destination.
-
#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) ⇒ S3LogDeliveryProperty
constructor
A new instance of S3LogDeliveryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled:, bucket: nil, prefix: nil) ⇒ S3LogDeliveryProperty
Returns a new instance of S3LogDeliveryProperty.
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
#bucket ⇒ String? (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 |
#enabled ⇒ Boolean, 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 |
#prefix ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |