Class: AWSCDK::OpenSearchServerless::CfnVPCEndpointProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
open_search_serverless/cfn_vpc_endpoint_props.rb

Overview

Properties for defining a CfnVpcEndpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, subnet_ids:, vpc_id:, security_group_ids: nil) ⇒ CfnVPCEndpointProps

Returns a new instance of CfnVPCEndpointProps.

Parameters:

  • name (String)

    The name of the endpoint.

  • subnet_ids (Array<String>)

    The ID of the subnets from which you access OpenSearch Serverless.

  • vpc_id (String)

    The ID of the VPC from which you access OpenSearch Serverless.

  • security_group_ids (Array<String, AWSCDK::Interfaces::AWSEC2::ISecurityGroupRef>, nil) (defaults to: nil)

    The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.



13
14
15
16
17
18
19
20
21
22
# File 'open_search_serverless/cfn_vpc_endpoint_props.rb', line 13

def initialize(name:, subnet_ids:, vpc_id:, security_group_ids: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @subnet_ids = subnet_ids
  Jsii::Type.check_type(@subnet_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "subnetIds")
  @vpc_id = vpc_id
  Jsii::Type.check_type(@vpc_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcId")
  @security_group_ids = security_group_ids
  Jsii::Type.check_type(@security_group_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJwcmltaXRpdmUiOiJzdHJpbmcifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX2VjMi5JU2VjdXJpdHlHcm91cFJlZiJ9XX19LCJraW5kIjoiYXJyYXkifX0=")), "securityGroupIds") unless @security_group_ids.nil?
end

Instance Attribute Details

#nameString (readonly)

The name of the endpoint.



28
29
30
# File 'open_search_serverless/cfn_vpc_endpoint_props.rb', line 28

def name
  @name
end

#security_group_idsArray<String, AWSCDK::Interfaces::AWSEC2::ISecurityGroupRef>? (readonly)

The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.



43
44
45
# File 'open_search_serverless/cfn_vpc_endpoint_props.rb', line 43

def security_group_ids
  @security_group_ids
end

#subnet_idsArray<String> (readonly)

The ID of the subnets from which you access OpenSearch Serverless.



33
34
35
# File 'open_search_serverless/cfn_vpc_endpoint_props.rb', line 33

def subnet_ids
  @subnet_ids
end

#vpc_idString (readonly)

The ID of the VPC from which you access OpenSearch Serverless.



38
39
40
# File 'open_search_serverless/cfn_vpc_endpoint_props.rb', line 38

def vpc_id
  @vpc_id
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'open_search_serverless/cfn_vpc_endpoint_props.rb', line 45

def self.jsii_properties
  {
    :name => "name",
    :subnet_ids => "subnetIds",
    :vpc_id => "vpcId",
    :security_group_ids => "securityGroupIds",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'open_search_serverless/cfn_vpc_endpoint_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "subnetIds" => @subnet_ids,
    "vpcId" => @vpc_id,
    "securityGroupIds" => @security_group_ids,
  })
  result.compact
end