Class: AWSCDK::Glue::CfnSecurityConfiguration::CloudWatchEncryptionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
glue/cfn_security_configuration.rb

Overview

Specifies how Amazon CloudWatch data should be encrypted.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloud_watch_encryption_mode: nil, kms_key_arn: nil) ⇒ CloudWatchEncryptionProperty

Returns a new instance of CloudWatchEncryptionProperty.

Parameters:

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

    The encryption mode to use for CloudWatch data.

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

    The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.



515
516
517
518
519
520
# File 'glue/cfn_security_configuration.rb', line 515

def initialize(cloud_watch_encryption_mode: nil, kms_key_arn: nil)
  @cloud_watch_encryption_mode = cloud_watch_encryption_mode
  Jsii::Type.check_type(@cloud_watch_encryption_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cloudWatchEncryptionMode") unless @cloud_watch_encryption_mode.nil?
  @kms_key_arn = kms_key_arn
  Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyArn") unless @kms_key_arn.nil?
end

Instance Attribute Details

#cloud_watch_encryption_modeString? (readonly)

The encryption mode to use for CloudWatch data.



526
527
528
# File 'glue/cfn_security_configuration.rb', line 526

def cloud_watch_encryption_mode
  @cloud_watch_encryption_mode
end

#kms_key_arnString? (readonly)

The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.



531
532
533
# File 'glue/cfn_security_configuration.rb', line 531

def kms_key_arn
  @kms_key_arn
end

Class Method Details

.jsii_propertiesObject



533
534
535
536
537
538
# File 'glue/cfn_security_configuration.rb', line 533

def self.jsii_properties
  {
    :cloud_watch_encryption_mode => "cloudWatchEncryptionMode",
    :kms_key_arn => "kmsKeyArn",
  }
end

Instance Method Details

#to_jsiiObject



540
541
542
543
544
545
546
547
# File 'glue/cfn_security_configuration.rb', line 540

def to_jsii
  result = {}
  result.merge!({
    "cloudWatchEncryptionMode" => @cloud_watch_encryption_mode,
    "kmsKeyArn" => @kms_key_arn,
  })
  result.compact
end