Class: AWSCDK::Interfaces::AWSIotsitewise::AccessPolicyReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSIotsitewise::AccessPolicyReference
- Defined in:
- interfaces/aws_iotsitewise/access_policy_reference.rb
Overview
A reference to a AccessPolicy resource.
Instance Attribute Summary collapse
-
#access_policy_arn ⇒ String
readonly
The ARN of the AccessPolicy resource.
-
#access_policy_id ⇒ String
readonly
The AccessPolicyId of the AccessPolicy resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(access_policy_arn:, access_policy_id:) ⇒ AccessPolicyReference
constructor
A new instance of AccessPolicyReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(access_policy_arn:, access_policy_id:) ⇒ AccessPolicyReference
Returns a new instance of AccessPolicyReference.
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_arn ⇒ String (readonly)
The ARN of the AccessPolicy resource.
19 20 21 |
# File 'interfaces/aws_iotsitewise/access_policy_reference.rb', line 19 def access_policy_arn @access_policy_arn end |
#access_policy_id ⇒ String (readonly)
The AccessPolicyId of the AccessPolicy resource.
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_properties ⇒ Object
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_jsii ⇒ Object
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 |