Class: AWSCDK::EC2::InterfaceVPCEndpointAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::InterfaceVPCEndpointAttributes
- Defined in:
- ec2/interface_vpc_endpoint_attributes.rb
Overview
Construction properties for an ImportedInterfaceVpcEndpoint.
Instance Attribute Summary collapse
-
#port ⇒ Numeric
readonly
The port of the service of the interface VPC endpoint.
-
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>?
readonly
The security groups associated with the interface VPC endpoint.
-
#vpc_endpoint_id ⇒ String
readonly
The interface VPC endpoint identifier.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(port:, vpc_endpoint_id:, security_groups: nil) ⇒ InterfaceVPCEndpointAttributes
constructor
A new instance of InterfaceVPCEndpointAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(port:, vpc_endpoint_id:, security_groups: nil) ⇒ InterfaceVPCEndpointAttributes
Returns a new instance of InterfaceVPCEndpointAttributes.
10 11 12 13 14 15 16 17 |
# File 'ec2/interface_vpc_endpoint_attributes.rb', line 10 def initialize(port:, vpc_endpoint_id:, security_groups: nil) @port = port Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port") @vpc_endpoint_id = vpc_endpoint_id Jsii::Type.check_type(@vpc_endpoint_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcEndpointId") @security_groups = security_groups Jsii::Type.check_type(@security_groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuSVNlY3VyaXR5R3JvdXAifSwia2luZCI6ImFycmF5In19")), "securityGroups") unless @security_groups.nil? end |
Instance Attribute Details
#port ⇒ Numeric (readonly)
The port of the service of the interface VPC endpoint.
22 23 24 |
# File 'ec2/interface_vpc_endpoint_attributes.rb', line 22 def port @port end |
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>? (readonly)
The security groups associated with the interface VPC endpoint.
If you wish to manage the network connections associated with this endpoint, you will need to specify its security groups.
33 34 35 |
# File 'ec2/interface_vpc_endpoint_attributes.rb', line 33 def security_groups @security_groups end |
#vpc_endpoint_id ⇒ String (readonly)
The interface VPC endpoint identifier.
26 27 28 |
# File 'ec2/interface_vpc_endpoint_attributes.rb', line 26 def vpc_endpoint_id @vpc_endpoint_id end |
Class Method Details
.jsii_properties ⇒ Object
35 36 37 38 39 40 41 |
# File 'ec2/interface_vpc_endpoint_attributes.rb', line 35 def self.jsii_properties { :port => "port", :vpc_endpoint_id => "vpcEndpointId", :security_groups => "securityGroups", } end |
Instance Method Details
#to_jsii ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'ec2/interface_vpc_endpoint_attributes.rb', line 43 def to_jsii result = {} result.merge!({ "port" => @port, "vpcEndpointId" => @vpc_endpoint_id, "securityGroups" => @security_groups, }) result.compact end |