Class: AWSCDK::SecretsManager::ReplicaRegion

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
secrets_manager/replica_region.rb

Overview

Secret replica region.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(region:, encryption_key: nil) ⇒ ReplicaRegion

Returns a new instance of ReplicaRegion.

Parameters:

  • region (String)

    The name of the region.

  • encryption_key (AWSCDK::KMS::IKey, nil) (defaults to: nil)

    The customer-managed encryption key to use for encrypting the secret value.



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_keyAWSCDK::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.

Returns:



24
25
26
# File 'secrets_manager/replica_region.rb', line 24

def encryption_key
  @encryption_key
end

#regionString (readonly)

The name of the region.

Returns:

  • (String)


19
20
21
# File 'secrets_manager/replica_region.rb', line 19

def region
  @region
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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