Class: AWSCDK::DLM::CfnLifecyclePolicy::EncryptionConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dlm/cfn_lifecycle_policy.rb

Overview

[Event-based policies only] Specifies the encryption settings for cross-Region snapshot copies created by event-based policies.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encrypted:, cmk_arn: nil) ⇒ EncryptionConfigurationProperty

Returns a new instance of EncryptionConfigurationProperty.

Parameters:

  • encrypted (Boolean, AWSCDK::IResolvable)

    To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter.

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

    The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption.



1238
1239
1240
1241
1242
1243
# File 'dlm/cfn_lifecycle_policy.rb', line 1238

def initialize(encrypted:, cmk_arn: nil)
  @encrypted = encrypted
  Jsii::Type.check_type(@encrypted, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "encrypted")
  @cmk_arn = cmk_arn
  Jsii::Type.check_type(@cmk_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cmkArn") unless @cmk_arn.nil?
end

Instance Attribute Details

#cmk_arnString? (readonly)

The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption.

If this parameter is not specified, the default KMS key for the account is used.



1258
1259
1260
# File 'dlm/cfn_lifecycle_policy.rb', line 1258

def cmk_arn
  @cmk_arn
end

#encryptedBoolean, AWSCDK::IResolvable (readonly)

To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter.

Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.



1251
1252
1253
# File 'dlm/cfn_lifecycle_policy.rb', line 1251

def encrypted
  @encrypted
end

Class Method Details

.jsii_propertiesObject



1260
1261
1262
1263
1264
1265
# File 'dlm/cfn_lifecycle_policy.rb', line 1260

def self.jsii_properties
  {
    :encrypted => "encrypted",
    :cmk_arn => "cmkArn",
  }
end

Instance Method Details

#to_jsiiObject



1267
1268
1269
1270
1271
1272
1273
1274
# File 'dlm/cfn_lifecycle_policy.rb', line 1267

def to_jsii
  result = {}
  result.merge!({
    "encrypted" => @encrypted,
    "cmkArn" => @cmk_arn,
  })
  result.compact
end