Class: AWSCDK::Interfaces::AWSIAM::RoleReference

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

Overview

A reference to a Role resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role_arn:, role_name:) ⇒ RoleReference

Returns a new instance of RoleReference.

Parameters:

  • role_arn (String)

    The ARN of the Role resource.

  • role_name (String)

    The RoleName of the Role resource.



9
10
11
12
13
14
# File 'interfaces/awsiam/role_reference.rb', line 9

def initialize(role_arn:, role_name:)
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
  @role_name = role_name
  Jsii::Type.check_type(@role_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleName")
end

Instance Attribute Details

#role_arnString (readonly)

The ARN of the Role resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/awsiam/role_reference.rb', line 19

def role_arn
  @role_arn
end

#role_nameString (readonly)

The RoleName of the Role resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/awsiam/role_reference.rb', line 23

def role_name
  @role_name
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :role_arn => "roleArn",
    :role_name => "roleName",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "roleArn" => @role_arn,
    "roleName" => @role_name,
  })
  result.compact
end