Class: AWSCDK::Interfaces::AWSOpensearchserverless::SecurityPolicyReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_opensearchserverless/security_policy_reference.rb

Overview

A reference to a SecurityPolicy resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(security_policy_name:, type:) ⇒ SecurityPolicyReference

Returns a new instance of SecurityPolicyReference.

Parameters:

  • security_policy_name (String)

    The Name of the SecurityPolicy resource.

  • type (String)

    The Type of the SecurityPolicy resource.



9
10
11
12
13
14
# File 'interfaces/aws_opensearchserverless/security_policy_reference.rb', line 9

def initialize(security_policy_name:, type:)
  @security_policy_name = security_policy_name
  Jsii::Type.check_type(@security_policy_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "securityPolicyName")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#security_policy_nameString (readonly)

The Name of the SecurityPolicy resource.

Returns:

  • (String)


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

def security_policy_name
  @security_policy_name
end

#typeString (readonly)

The Type of the SecurityPolicy resource.

Returns:

  • (String)


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

def type
  @type
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_opensearchserverless/security_policy_reference.rb', line 25

def self.jsii_properties
  {
    :security_policy_name => "securityPolicyName",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "securityPolicyName" => @security_policy_name,
    "type" => @type,
  })
  result.compact
end