Class: AWSCDK::SecretsManager::CfnSecret::ReplicaRegionProperty

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

Overview

Specifies a Region and the KmsKeyId for a replica secret.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(region:, kms_key_id: nil) ⇒ ReplicaRegionProperty

Returns a new instance of ReplicaRegionProperty.

Parameters:

  • region (String)

    A string that represents a Region , for example "us-east-1".

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

    The ARN, key ID, or alias of the KMS key to encrypt the secret.



780
781
782
783
784
785
# File 'secrets_manager/cfn_secret.rb', line 780

def initialize(region:, kms_key_id: nil)
  @region = region
  Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region")
  @kms_key_id = kms_key_id
  Jsii::Type.check_type(@kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyId") unless @kms_key_id.nil?
end

Instance Attribute Details

#kms_key_idString? (readonly)

The ARN, key ID, or alias of the KMS key to encrypt the secret.

If you don't include this field, Secrets Manager uses aws/secretsmanager .



798
799
800
# File 'secrets_manager/cfn_secret.rb', line 798

def kms_key_id
  @kms_key_id
end

#regionString (readonly)

A string that represents a Region , for example "us-east-1".



791
792
793
# File 'secrets_manager/cfn_secret.rb', line 791

def region
  @region
end

Class Method Details

.jsii_propertiesObject



800
801
802
803
804
805
# File 'secrets_manager/cfn_secret.rb', line 800

def self.jsii_properties
  {
    :region => "region",
    :kms_key_id => "kmsKeyId",
  }
end

Instance Method Details

#to_jsiiObject



807
808
809
810
811
812
813
814
# File 'secrets_manager/cfn_secret.rb', line 807

def to_jsii
  result = {}
  result.merge!({
    "region" => @region,
    "kmsKeyId" => @kms_key_id,
  })
  result.compact
end