Class: AWSCDK::Interfaces::AWSOpensearchserverless::AccessPolicyReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSOpensearchserverless::AccessPolicyReference
- Defined in:
- interfaces/aws_opensearchserverless/access_policy_reference.rb
Overview
A reference to a AccessPolicy resource.
Instance Attribute Summary collapse
-
#access_policy_name ⇒ String
readonly
The Name of the AccessPolicy resource.
-
#type ⇒ String
readonly
The Type of the AccessPolicy resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(access_policy_name:, type:) ⇒ AccessPolicyReference
constructor
A new instance of AccessPolicyReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(access_policy_name:, type:) ⇒ AccessPolicyReference
Returns a new instance of AccessPolicyReference.
9 10 11 12 13 14 |
# File 'interfaces/aws_opensearchserverless/access_policy_reference.rb', line 9 def initialize(access_policy_name:, type:) @access_policy_name = access_policy_name Jsii::Type.check_type(@access_policy_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessPolicyName") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") end |
Instance Attribute Details
#access_policy_name ⇒ String (readonly)
The Name of the AccessPolicy resource.
19 20 21 |
# File 'interfaces/aws_opensearchserverless/access_policy_reference.rb', line 19 def access_policy_name @access_policy_name end |
#type ⇒ String (readonly)
The Type of the AccessPolicy resource.
23 24 25 |
# File 'interfaces/aws_opensearchserverless/access_policy_reference.rb', line 23 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/aws_opensearchserverless/access_policy_reference.rb', line 25 def self.jsii_properties { :access_policy_name => "accessPolicyName", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/aws_opensearchserverless/access_policy_reference.rb', line 32 def to_jsii result = {} result.merge!({ "accessPolicyName" => @access_policy_name, "type" => @type, }) result.compact end |