Class: AWSCDK::OpenSearchServerless::CfnVPCEndpointProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpenSearchServerless::CfnVPCEndpointProps
- Defined in:
- open_search_serverless/cfn_vpc_endpoint_props.rb
Overview
Properties for defining a CfnVpcEndpoint.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the endpoint.
-
#security_group_ids ⇒ Array<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.
-
#subnet_ids ⇒ Array<String>
readonly
The ID of the subnets from which you access OpenSearch Serverless.
-
#vpc_id ⇒ String
readonly
The ID of the VPC from which you access OpenSearch Serverless.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, subnet_ids:, vpc_id:, security_group_ids: nil) ⇒ CfnVPCEndpointProps
constructor
A new instance of CfnVPCEndpointProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, subnet_ids:, vpc_id:, security_group_ids: nil) ⇒ CfnVPCEndpointProps
Returns a new instance of CfnVPCEndpointProps.
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
#name ⇒ String (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_ids ⇒ Array<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_ids ⇒ Array<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_id ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |