Class: AWSCDK::Athena::CfnWorkGroup::S3LoggingConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
athena/cfn_work_group.rb

Overview

Configuration settings for delivering logs to Amazon S3 buckets.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled: nil, kms_key: nil, log_location: nil) ⇒ S3LoggingConfigurationProperty

Returns a new instance of S3LoggingConfigurationProperty.

Parameters:

  • enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Enables S3 log delivery.

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

    The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.

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

    The Amazon S3 destination URI for log publishing.



1366
1367
1368
1369
1370
1371
1372
1373
# File 'athena/cfn_work_group.rb', line 1366

def initialize(enabled: nil, kms_key: nil, log_location: nil)
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil?
  @kms_key = kms_key
  Jsii::Type.check_type(@kms_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKey") unless @kms_key.nil?
  @log_location = log_location
  Jsii::Type.check_type(@log_location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logLocation") unless @log_location.nil?
end

Instance Attribute Details

#enabledBoolean, ... (readonly)

Enables S3 log delivery.



1379
1380
1381
# File 'athena/cfn_work_group.rb', line 1379

def enabled
  @enabled
end

#kms_keyString? (readonly)

The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.



1384
1385
1386
# File 'athena/cfn_work_group.rb', line 1384

def kms_key
  @kms_key
end

#log_locationString? (readonly)

The Amazon S3 destination URI for log publishing.



1389
1390
1391
# File 'athena/cfn_work_group.rb', line 1389

def log_location
  @log_location
end

Class Method Details

.jsii_propertiesObject



1391
1392
1393
1394
1395
1396
1397
# File 'athena/cfn_work_group.rb', line 1391

def self.jsii_properties
  {
    :enabled => "enabled",
    :kms_key => "kmsKey",
    :log_location => "logLocation",
  }
end

Instance Method Details

#to_jsiiObject



1399
1400
1401
1402
1403
1404
1405
1406
1407
# File 'athena/cfn_work_group.rb', line 1399

def to_jsii
  result = {}
  result.merge!({
    "enabled" => @enabled,
    "kmsKey" => @kms_key,
    "logLocation" => @log_location,
  })
  result.compact
end