Class: AWSCDK::Interfaces::AWSIAM::AccessKeyReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awsiam/access_key_reference.rb

Overview

A reference to a AccessKey resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_key_id:) ⇒ AccessKeyReference

Returns a new instance of AccessKeyReference.

Parameters:

  • access_key_id (String)

    The Id of the AccessKey resource.



8
9
10
11
# File 'interfaces/awsiam/access_key_reference.rb', line 8

def initialize(access_key_id:)
  @access_key_id = access_key_id
  Jsii::Type.check_type(@access_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessKeyId")
end

Instance Attribute Details

#access_key_idString (readonly)

The Id of the AccessKey resource.

Returns:

  • (String)


16
17
18
# File 'interfaces/awsiam/access_key_reference.rb', line 16

def access_key_id
  @access_key_id
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'interfaces/awsiam/access_key_reference.rb', line 18

def self.jsii_properties
  {
    :access_key_id => "accessKeyId",
  }
end

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'interfaces/awsiam/access_key_reference.rb', line 24

def to_jsii
  result = {}
  result.merge!({
    "accessKeyId" => @access_key_id,
  })
  result.compact
end