Class: AWSCDK::Interfaces::AWSKMS::ReplicaKeyReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSKMS::ReplicaKeyReference
- Defined in:
- interfaces/awskms/replica_key_reference.rb
Overview
A reference to a ReplicaKey resource.
Instance Attribute Summary collapse
-
#key_id ⇒ String
readonly
The KeyId of the ReplicaKey resource.
-
#replica_key_arn ⇒ String
readonly
The ARN of the ReplicaKey resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key_id:, replica_key_arn:) ⇒ ReplicaKeyReference
constructor
A new instance of ReplicaKeyReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key_id:, replica_key_arn:) ⇒ ReplicaKeyReference
Returns a new instance of ReplicaKeyReference.
9 10 11 12 13 14 |
# File 'interfaces/awskms/replica_key_reference.rb', line 9 def initialize(key_id:, replica_key_arn:) @key_id = key_id Jsii::Type.check_type(@key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyId") @replica_key_arn = replica_key_arn Jsii::Type.check_type(@replica_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "replicaKeyArn") end |
Instance Attribute Details
#key_id ⇒ String (readonly)
The KeyId of the ReplicaKey resource.
19 20 21 |
# File 'interfaces/awskms/replica_key_reference.rb', line 19 def key_id @key_id end |
#replica_key_arn ⇒ String (readonly)
The ARN of the ReplicaKey resource.
23 24 25 |
# File 'interfaces/awskms/replica_key_reference.rb', line 23 def replica_key_arn @replica_key_arn end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/awskms/replica_key_reference.rb', line 25 def self.jsii_properties { :key_id => "keyId", :replica_key_arn => "replicaKeyArn", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/awskms/replica_key_reference.rb', line 32 def to_jsii result = {} result.merge!({ "keyId" => @key_id, "replicaKeyArn" => @replica_key_arn, }) result.compact end |