Class: AWSCDK::EC2::ClientVpnEndpointAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::ClientVpnEndpointAttributes
- Defined in:
- ec2/client_vpn_endpoint_attributes.rb
Overview
Attributes when importing an existing client VPN endpoint.
Instance Attribute Summary collapse
-
#endpoint_id ⇒ String
readonly
The endpoint ID.
-
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>
readonly
The security groups associated with the endpoint.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(endpoint_id:, security_groups:) ⇒ ClientVpnEndpointAttributes
constructor
A new instance of ClientVpnEndpointAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(endpoint_id:, security_groups:) ⇒ ClientVpnEndpointAttributes
Returns a new instance of ClientVpnEndpointAttributes.
9 10 11 12 13 14 |
# File 'ec2/client_vpn_endpoint_attributes.rb', line 9 def initialize(endpoint_id:, security_groups:) @endpoint_id = endpoint_id Jsii::Type.check_type(@endpoint_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpointId") @security_groups = security_groups Jsii::Type.check_type(@security_groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuSVNlY3VyaXR5R3JvdXAifSwia2luZCI6ImFycmF5In19")), "securityGroups") end |
Instance Attribute Details
#endpoint_id ⇒ String (readonly)
The endpoint ID.
19 20 21 |
# File 'ec2/client_vpn_endpoint_attributes.rb', line 19 def endpoint_id @endpoint_id end |
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup> (readonly)
The security groups associated with the endpoint.
23 24 25 |
# File 'ec2/client_vpn_endpoint_attributes.rb', line 23 def security_groups @security_groups end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'ec2/client_vpn_endpoint_attributes.rb', line 25 def self.jsii_properties { :endpoint_id => "endpointId", :security_groups => "securityGroups", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'ec2/client_vpn_endpoint_attributes.rb', line 32 def to_jsii result = {} result.merge!({ "endpointId" => @endpoint_id, "securityGroups" => @security_groups, }) result.compact end |