Class: AWSCDK::EC2::InterfaceVPCEndpointAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/interface_vpc_endpoint_attributes.rb

Overview

Construction properties for an ImportedInterfaceVpcEndpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port:, vpc_endpoint_id:, security_groups: nil) ⇒ InterfaceVPCEndpointAttributes

Returns a new instance of InterfaceVPCEndpointAttributes.

Parameters:

  • port (Numeric)

    The port of the service of the interface VPC endpoint.

  • vpc_endpoint_id (String)

    The interface VPC endpoint identifier.

  • security_groups (Array<AWSCDK::EC2::ISecurityGroup>, nil) (defaults to: nil)

    The security groups associated with the interface VPC endpoint.



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

#portNumeric (readonly)

The port of the service of the interface VPC endpoint.

Returns:

  • (Numeric)


22
23
24
# File 'ec2/interface_vpc_endpoint_attributes.rb', line 22

def port
  @port
end

#security_groupsArray<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.

Returns:



33
34
35
# File 'ec2/interface_vpc_endpoint_attributes.rb', line 33

def security_groups
  @security_groups
end

#vpc_endpoint_idString (readonly)

The interface VPC endpoint identifier.

Returns:

  • (String)


26
27
28
# File 'ec2/interface_vpc_endpoint_attributes.rb', line 26

def vpc_endpoint_id
  @vpc_endpoint_id
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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