Class: AWSCDK::Athena::CfnWorkGroup::ManagedLoggingConfigurationProperty

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) ⇒ ManagedLoggingConfigurationProperty

Returns a new instance of ManagedLoggingConfigurationProperty.

Parameters:

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

    Enables mamanged log persistence.

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

    The KMS key ARN to encrypt the logs stored in managed log persistence.



999
1000
1001
1002
1003
1004
# File 'athena/cfn_work_group.rb', line 999

def initialize(enabled: nil, kms_key: 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?
end

Instance Attribute Details

#enabledBoolean, ... (readonly)

Enables mamanged log persistence.



1010
1011
1012
# File 'athena/cfn_work_group.rb', line 1010

def enabled
  @enabled
end

#kms_keyString? (readonly)

The KMS key ARN to encrypt the logs stored in managed log persistence.



1015
1016
1017
# File 'athena/cfn_work_group.rb', line 1015

def kms_key
  @kms_key
end

Class Method Details

.jsii_propertiesObject



1017
1018
1019
1020
1021
1022
# File 'athena/cfn_work_group.rb', line 1017

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

Instance Method Details

#to_jsiiObject



1024
1025
1026
1027
1028
1029
1030
1031
# File 'athena/cfn_work_group.rb', line 1024

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