Class: AWSCDK::SecretsManager::ReplicaRegion
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecretsManager::ReplicaRegion
- Defined in:
- secrets_manager/replica_region.rb
Overview
Secret replica region.
Instance Attribute Summary collapse
-
#encryption_key ⇒ AWSCDK::KMS::IKey?
readonly
The customer-managed encryption key to use for encrypting the secret value.
-
#region ⇒ String
readonly
The name of the region.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(region:, encryption_key: nil) ⇒ ReplicaRegion
constructor
A new instance of ReplicaRegion.
- #to_jsii ⇒ Object
Constructor Details
#initialize(region:, encryption_key: nil) ⇒ ReplicaRegion
Returns a new instance of ReplicaRegion.
9 10 11 12 13 14 |
# File 'secrets_manager/replica_region.rb', line 9 def initialize(region:, encryption_key: nil) @region = region Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region") @encryption_key = encryption_key Jsii::Type.check_type(@encryption_key, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa21zLklLZXkifQ==")), "encryptionKey") unless @encryption_key.nil? end |
Instance Attribute Details
#encryption_key ⇒ AWSCDK::KMS::IKey? (readonly)
Note:
Default: - A default KMS key for the account and region is used.
The customer-managed encryption key to use for encrypting the secret value.
24 25 26 |
# File 'secrets_manager/replica_region.rb', line 24 def encryption_key @encryption_key end |
#region ⇒ String (readonly)
The name of the region.
19 20 21 |
# File 'secrets_manager/replica_region.rb', line 19 def region @region end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'secrets_manager/replica_region.rb', line 26 def self.jsii_properties { :region => "region", :encryption_key => "encryptionKey", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'secrets_manager/replica_region.rb', line 33 def to_jsii result = {} result.merge!({ "region" => @region, "encryptionKey" => @encryption_key, }) result.compact end |