Class: AWSCDK::Interfaces::AWSIotsitewise::AccessPolicyReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_iotsitewise/access_policy_reference.rb

Overview

A reference to a AccessPolicy resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_policy_arn:, access_policy_id:) ⇒ AccessPolicyReference

Returns a new instance of AccessPolicyReference.

Parameters:

  • access_policy_arn (String)

    The ARN of the AccessPolicy resource.

  • access_policy_id (String)

    The AccessPolicyId of the AccessPolicy resource.



9
10
11
12
13
14
# File 'interfaces/aws_iotsitewise/access_policy_reference.rb', line 9

def initialize(access_policy_arn:, access_policy_id:)
  @access_policy_arn = access_policy_arn
  Jsii::Type.check_type(@access_policy_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessPolicyArn")
  @access_policy_id = access_policy_id
  Jsii::Type.check_type(@access_policy_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessPolicyId")
end

Instance Attribute Details

#access_policy_arnString (readonly)

The ARN of the AccessPolicy resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_iotsitewise/access_policy_reference.rb', line 19

def access_policy_arn
  @access_policy_arn
end

#access_policy_idString (readonly)

The AccessPolicyId of the AccessPolicy resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_iotsitewise/access_policy_reference.rb', line 23

def access_policy_id
  @access_policy_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_iotsitewise/access_policy_reference.rb', line 25

def self.jsii_properties
  {
    :access_policy_arn => "accessPolicyArn",
    :access_policy_id => "accessPolicyId",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "accessPolicyArn" => @access_policy_arn,
    "accessPolicyId" => @access_policy_id,
  })
  result.compact
end