InterfaceVpcEndpointAttributes

class aws_cdk.aws_ec2.InterfaceVpcEndpointAttributes(*, port, vpc_endpoint_id, security_group_id=None, security_groups=None)

Bases: object

Construction properties for an ImportedInterfaceVpcEndpoint.

Parameters
  • port (Union[int, float]) – The port of the service of the interface VPC endpoint.

  • vpc_endpoint_id (str) – The interface VPC endpoint identifier.

  • security_group_id (Optional[str]) – (deprecated) The identifier of the security group associated with the interface VPC endpoint.

  • security_groups (Optional[Sequence[ISecurityGroup]]) – The security groups associated with the interface VPC endpoint.

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

# security_group: ec2.SecurityGroup

interface_vpc_endpoint_attributes = ec2.InterfaceVpcEndpointAttributes(
    port=123,
    vpc_endpoint_id="vpcEndpointId",

    # the properties below are optional
    security_group_id="securityGroupId",
    security_groups=[security_group]
)

Attributes

port

The port of the service of the interface VPC endpoint.

Return type

Union[int, float]

security_group_id

(deprecated) The identifier of the security group associated with the interface VPC endpoint.

Deprecated

use securityGroups instead

Stability

deprecated

Return type

Optional[str]

security_groups

The security groups associated with the interface VPC endpoint.

Return type

Optional[List[ISecurityGroup]]

vpc_endpoint_id

The interface VPC endpoint identifier.

Return type

str