Class: AWSCDK::Interfaces::AWSSSM::ResourcePolicyReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awsssm/resource_policy_reference.rb

Overview

A reference to a ResourcePolicy resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policy_id:, resource_arn:) ⇒ ResourcePolicyReference

Returns a new instance of ResourcePolicyReference.

Parameters:

  • policy_id (String)

    The PolicyId of the ResourcePolicy resource.

  • resource_arn (String)

    The ResourceArn of the ResourcePolicy resource.



9
10
11
12
13
14
# File 'interfaces/awsssm/resource_policy_reference.rb', line 9

def initialize(policy_id:, resource_arn:)
  @policy_id = policy_id
  Jsii::Type.check_type(@policy_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyId")
  @resource_arn = resource_arn
  Jsii::Type.check_type(@resource_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceArn")
end

Instance Attribute Details

#policy_idString (readonly)

The PolicyId of the ResourcePolicy resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/awsssm/resource_policy_reference.rb', line 19

def policy_id
  @policy_id
end

#resource_arnString (readonly)

The ResourceArn of the ResourcePolicy resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/awsssm/resource_policy_reference.rb', line 23

def resource_arn
  @resource_arn
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/awsssm/resource_policy_reference.rb', line 25

def self.jsii_properties
  {
    :policy_id => "policyId",
    :resource_arn => "resourceArn",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "policyId" => @policy_id,
    "resourceArn" => @resource_arn,
  })
  result.compact
end