Class: AWSCDK::Interfaces::AWSKMS::KeyReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awskms/key_reference.rb

Overview

A reference to a Key resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key_arn:, key_id:) ⇒ KeyReference

Returns a new instance of KeyReference.

Parameters:

  • key_arn (String)

    The ARN of the Key resource.

  • key_id (String)

    The KeyId of the Key resource.



9
10
11
12
13
14
# File 'interfaces/awskms/key_reference.rb', line 9

def initialize(key_arn:, key_id:)
  @key_arn = key_arn
  Jsii::Type.check_type(@key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyArn")
  @key_id = key_id
  Jsii::Type.check_type(@key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyId")
end

Instance Attribute Details

#key_arnString (readonly)

The ARN of the Key resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/awskms/key_reference.rb', line 19

def key_arn
  @key_arn
end

#key_idString (readonly)

The KeyId of the Key resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/awskms/key_reference.rb', line 23

def key_id
  @key_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/awskms/key_reference.rb', line 25

def self.jsii_properties
  {
    :key_arn => "keyArn",
    :key_id => "keyId",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/awskms/key_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "keyArn" => @key_arn,
    "keyId" => @key_id,
  })
  result.compact
end