Class: AWSCDK::Interfaces::AWSOpensearchserverless::AccessPolicyReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_opensearchserverless/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_name:, type:) ⇒ AccessPolicyReference

Returns a new instance of AccessPolicyReference.

Parameters:

  • access_policy_name (String)

    The Name of the AccessPolicy resource.

  • type (String)

    The Type of the AccessPolicy resource.



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_nameString (readonly)

The Name of the AccessPolicy resource.

Returns:

  • (String)


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

def access_policy_name
  @access_policy_name
end

#typeString (readonly)

The Type of the AccessPolicy resource.

Returns:

  • (String)


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

def type
  @type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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