Class: AWSCDK::IAM::UnknownPrincipalProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
iam/unknown_principal_props.rb

Overview

Properties for an UnknownPrincipal.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource:) ⇒ UnknownPrincipalProps

Returns a new instance of UnknownPrincipalProps.

Parameters:

  • resource (Constructs::IConstruct)

    The resource the role proxy is for.



8
9
10
11
# File 'iam/unknown_principal_props.rb', line 8

def initialize(resource:)
  @resource = resource
  Jsii::Type.check_type(@resource, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklDb25zdHJ1Y3QifQ==")), "resource")
end

Instance Attribute Details

#resourceConstructs::IConstruct (readonly)

The resource the role proxy is for.

Returns:

  • (Constructs::IConstruct)


16
17
18
# File 'iam/unknown_principal_props.rb', line 16

def resource
  @resource
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'iam/unknown_principal_props.rb', line 18

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

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'iam/unknown_principal_props.rb', line 24

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