Amazon Elastic Compute Cloud

2022/05/11 - Amazon Elastic Compute Cloud - 8 updated api methods

Changes  This release updates AWS PrivateLink APIs to support IPv6 for PrivateLink Services and Endpoints of type 'Interface'.

CreateVpcEndpoint (updated) Link ¶
Changes (request, response)
Request
{'DnsOptions': {'DnsRecordIpType': 'ipv4 | dualstack | ipv6 | service-defined'},
 'IpAddressType': 'ipv4 | dualstack | ipv6'}
Response
{'VpcEndpoint': {'DnsOptions': {'DnsRecordIpType': 'ipv4 | dualstack | ipv6 | '
                                                   'service-defined'},
                 'IpAddressType': 'ipv4 | dualstack | ipv6'}}

Creates a VPC endpoint for a specified service. An endpoint enables you to create a private connection between your VPC and the service. The service may be provided by Amazon Web Services, an Amazon Web Services Marketplace Partner, or another Amazon Web Services account. For more information, see the Amazon Web Services PrivateLink Guide.

See also: AWS API Documentation

Request Syntax

client.create_vpc_endpoint(
    DryRun=True|False,
    VpcEndpointType='Interface'|'Gateway'|'GatewayLoadBalancer',
    VpcId='string',
    ServiceName='string',
    PolicyDocument='string',
    RouteTableIds=[
        'string',
    ],
    SubnetIds=[
        'string',
    ],
    SecurityGroupIds=[
        'string',
    ],
    IpAddressType='ipv4'|'dualstack'|'ipv6',
    DnsOptions={
        'DnsRecordIpType': 'ipv4'|'dualstack'|'ipv6'|'service-defined'
    },
    ClientToken='string',
    PrivateDnsEnabled=True|False,
    TagSpecifications=[
        {
            'ResourceType': 'capacity-reservation'|'client-vpn-endpoint'|'customer-gateway'|'carrier-gateway'|'dedicated-host'|'dhcp-options'|'egress-only-internet-gateway'|'elastic-ip'|'elastic-gpu'|'export-image-task'|'export-instance-task'|'fleet'|'fpga-image'|'host-reservation'|'image'|'import-image-task'|'import-snapshot-task'|'instance'|'instance-event-window'|'internet-gateway'|'ipam'|'ipam-pool'|'ipam-scope'|'ipv4pool-ec2'|'ipv6pool-ec2'|'key-pair'|'launch-template'|'local-gateway'|'local-gateway-route-table'|'local-gateway-virtual-interface'|'local-gateway-virtual-interface-group'|'local-gateway-route-table-vpc-association'|'local-gateway-route-table-virtual-interface-group-association'|'natgateway'|'network-acl'|'network-interface'|'network-insights-analysis'|'network-insights-path'|'network-insights-access-scope'|'network-insights-access-scope-analysis'|'placement-group'|'prefix-list'|'replace-root-volume-task'|'reserved-instances'|'route-table'|'security-group'|'security-group-rule'|'snapshot'|'spot-fleet-request'|'spot-instances-request'|'subnet'|'subnet-cidr-reservation'|'traffic-mirror-filter'|'traffic-mirror-session'|'traffic-mirror-target'|'transit-gateway'|'transit-gateway-attachment'|'transit-gateway-connect-peer'|'transit-gateway-multicast-domain'|'transit-gateway-route-table'|'volume'|'vpc'|'vpc-endpoint'|'vpc-endpoint-service'|'vpc-peering-connection'|'vpn-connection'|'vpn-gateway'|'vpc-flow-log',
            'Tags': [
                {
                    'Key': 'string',
                    'Value': 'string'
                },
            ]
        },
    ]
)
type DryRun

boolean

param DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

type VpcEndpointType

string

param VpcEndpointType

The type of endpoint.

Default: Gateway

type VpcId

string

param VpcId

[REQUIRED]

The ID of the VPC in which the endpoint will be used.

type ServiceName

string

param ServiceName

[REQUIRED]

The service name. To get a list of available services, use the DescribeVpcEndpointServices request, or get the name from the service provider.

type PolicyDocument

string

param PolicyDocument

(Interface and gateway endpoints) A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.

type RouteTableIds

list

param RouteTableIds

(Gateway endpoint) One or more route table IDs.

  • (string) --

type SubnetIds

list

param SubnetIds

(Interface and Gateway Load Balancer endpoints) The ID of one or more subnets in which to create an endpoint network interface. For a Gateway Load Balancer endpoint, you can specify one subnet only.

  • (string) --

type SecurityGroupIds

list

param SecurityGroupIds

(Interface endpoint) The ID of one or more security groups to associate with the endpoint network interface.

  • (string) --

type IpAddressType

string

param IpAddressType

The IP address type for the endpoint.

type DnsOptions

dict

param DnsOptions

The DNS options for the endpoint.

  • DnsRecordIpType (string) --

    The DNS records created for the endpoint.

type ClientToken

string

param ClientToken

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

type PrivateDnsEnabled

boolean

param PrivateDnsEnabled

(Interface endpoint) Indicates whether to associate a private hosted zone with the specified VPC. The private hosted zone contains a record set for the default public DNS name for the service for the Region (for example, kinesis.us-east-1.amazonaws.com ), which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service.

To use a private hosted zone, you must set the following VPC attributes to true : enableDnsHostnames and enableDnsSupport . Use ModifyVpcAttribute to set the VPC attributes.

Default: true

type TagSpecifications

list

param TagSpecifications

The tags to associate with the endpoint.

  • (dict) --

    The tags to apply to a resource when the resource is being created.

    • ResourceType (string) --

      The type of resource to tag on creation.

    • Tags (list) --

      The tags to apply to the resource.

      • (dict) --

        Describes a tag.

        • Key (string) --

          The key of the tag.

          Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws: .

        • Value (string) --

          The value of the tag.

          Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

rtype

dict

returns

Response Syntax

{
    'VpcEndpoint': {
        'VpcEndpointId': 'string',
        'VpcEndpointType': 'Interface'|'Gateway'|'GatewayLoadBalancer',
        'VpcId': 'string',
        'ServiceName': 'string',
        'State': 'PendingAcceptance'|'Pending'|'Available'|'Deleting'|'Deleted'|'Rejected'|'Failed'|'Expired',
        'PolicyDocument': 'string',
        'RouteTableIds': [
            'string',
        ],
        'SubnetIds': [
            'string',
        ],
        'Groups': [
            {
                'GroupId': 'string',
                'GroupName': 'string'
            },
        ],
        'IpAddressType': 'ipv4'|'dualstack'|'ipv6',
        'DnsOptions': {
            'DnsRecordIpType': 'ipv4'|'dualstack'|'ipv6'|'service-defined'
        },
        'PrivateDnsEnabled': True|False,
        'RequesterManaged': True|False,
        'NetworkInterfaceIds': [
            'string',
        ],
        'DnsEntries': [
            {
                'DnsName': 'string',
                'HostedZoneId': 'string'
            },
        ],
        'CreationTimestamp': datetime(2015, 1, 1),
        'Tags': [
            {
                'Key': 'string',
                'Value': 'string'
            },
        ],
        'OwnerId': 'string',
        'LastError': {
            'Message': 'string',
            'Code': 'string'
        }
    },
    'ClientToken': 'string'
}

Response Structure

  • (dict) --

    Contains the output of CreateVpcEndpoint.

    • VpcEndpoint (dict) --

      Information about the endpoint.

      • VpcEndpointId (string) --

        The ID of the endpoint.

      • VpcEndpointType (string) --

        The type of endpoint.

      • VpcId (string) --

        The ID of the VPC to which the endpoint is associated.

      • ServiceName (string) --

        The name of the service to which the endpoint is associated.

      • State (string) --

        The state of the endpoint.

      • PolicyDocument (string) --

        The policy document associated with the endpoint, if applicable.

      • RouteTableIds (list) --

        (Gateway endpoint) One or more route tables associated with the endpoint.

        • (string) --

      • SubnetIds (list) --

        (Interface endpoint) The subnets for the endpoint.

        • (string) --

      • Groups (list) --

        (Interface endpoint) Information about the security groups that are associated with the network interface.

        • (dict) --

          Describes a security group.

          • GroupId (string) --

            The ID of the security group.

          • GroupName (string) --

            The name of the security group.

      • IpAddressType (string) --

        The IP address type for the endpoint.

      • DnsOptions (dict) --

        The DNS options for the endpoint.

        • DnsRecordIpType (string) --

          The DNS records created for the endpoint.

      • PrivateDnsEnabled (boolean) --

        (Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.

      • RequesterManaged (boolean) --

        Indicates whether the endpoint is being managed by its service.

      • NetworkInterfaceIds (list) --

        (Interface endpoint) One or more network interfaces for the endpoint.

        • (string) --

      • DnsEntries (list) --

        (Interface endpoint) The DNS entries for the endpoint.

        • (dict) --

          Describes a DNS entry.

          • DnsName (string) --

            The DNS name.

          • HostedZoneId (string) --

            The ID of the private hosted zone.

      • CreationTimestamp (datetime) --

        The date and time that the endpoint was created.

      • Tags (list) --

        Any tags assigned to the endpoint.

        • (dict) --

          Describes a tag.

          • Key (string) --

            The key of the tag.

            Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws: .

          • Value (string) --

            The value of the tag.

            Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

      • OwnerId (string) --

        The ID of the Amazon Web Services account that owns the endpoint.

      • LastError (dict) --

        The last error that occurred for endpoint.

        • Message (string) --

          The error message for the VPC endpoint error.

        • Code (string) --

          The error code for the VPC endpoint error.

    • ClientToken (string) --

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

CreateVpcEndpointServiceConfiguration (updated) Link ¶
Changes (request, response)
Request
{'SupportedIpAddressTypes': ['string']}
Response
{'ServiceConfiguration': {'SupportedIpAddressTypes': ['ipv4 | ipv6']}}

Creates a VPC endpoint service to which service consumers (Amazon Web Services accounts, IAM users, and IAM roles) can connect.

Before you create an endpoint service, you must create one of the following for your service:

If you set the private DNS name, you must prove that you own the private DNS domain name.

For more information, see the Amazon Web Services PrivateLink Guide.

See also: AWS API Documentation

Request Syntax

client.create_vpc_endpoint_service_configuration(
    DryRun=True|False,
    AcceptanceRequired=True|False,
    PrivateDnsName='string',
    NetworkLoadBalancerArns=[
        'string',
    ],
    GatewayLoadBalancerArns=[
        'string',
    ],
    SupportedIpAddressTypes=[
        'string',
    ],
    ClientToken='string',
    TagSpecifications=[
        {
            'ResourceType': 'capacity-reservation'|'client-vpn-endpoint'|'customer-gateway'|'carrier-gateway'|'dedicated-host'|'dhcp-options'|'egress-only-internet-gateway'|'elastic-ip'|'elastic-gpu'|'export-image-task'|'export-instance-task'|'fleet'|'fpga-image'|'host-reservation'|'image'|'import-image-task'|'import-snapshot-task'|'instance'|'instance-event-window'|'internet-gateway'|'ipam'|'ipam-pool'|'ipam-scope'|'ipv4pool-ec2'|'ipv6pool-ec2'|'key-pair'|'launch-template'|'local-gateway'|'local-gateway-route-table'|'local-gateway-virtual-interface'|'local-gateway-virtual-interface-group'|'local-gateway-route-table-vpc-association'|'local-gateway-route-table-virtual-interface-group-association'|'natgateway'|'network-acl'|'network-interface'|'network-insights-analysis'|'network-insights-path'|'network-insights-access-scope'|'network-insights-access-scope-analysis'|'placement-group'|'prefix-list'|'replace-root-volume-task'|'reserved-instances'|'route-table'|'security-group'|'security-group-rule'|'snapshot'|'spot-fleet-request'|'spot-instances-request'|'subnet'|'subnet-cidr-reservation'|'traffic-mirror-filter'|'traffic-mirror-session'|'traffic-mirror-target'|'transit-gateway'|'transit-gateway-attachment'|'transit-gateway-connect-peer'|'transit-gateway-multicast-domain'|'transit-gateway-route-table'|'volume'|'vpc'|'vpc-endpoint'|'vpc-endpoint-service'|'vpc-peering-connection'|'vpn-connection'|'vpn-gateway'|'vpc-flow-log',
            'Tags': [
                {
                    'Key': 'string',
                    'Value': 'string'
                },
            ]
        },
    ]
)
type DryRun

boolean

param DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

type AcceptanceRequired

boolean

param AcceptanceRequired

Indicates whether requests from service consumers to create an endpoint to your service must be accepted manually.

type PrivateDnsName

string

param PrivateDnsName

(Interface endpoint configuration) The private DNS name to assign to the VPC endpoint service.

type NetworkLoadBalancerArns

list

param NetworkLoadBalancerArns

The Amazon Resource Names (ARNs) of one or more Network Load Balancers for your service.

  • (string) --

type GatewayLoadBalancerArns

list

param GatewayLoadBalancerArns

The Amazon Resource Names (ARNs) of one or more Gateway Load Balancers.

  • (string) --

type SupportedIpAddressTypes

list

param SupportedIpAddressTypes

The supported IP address types. The possible values are ipv4 and ipv6 .

  • (string) --

type ClientToken

string

param ClientToken

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

type TagSpecifications

list

param TagSpecifications

The tags to associate with the service.

  • (dict) --

    The tags to apply to a resource when the resource is being created.

    • ResourceType (string) --

      The type of resource to tag on creation.

    • Tags (list) --

      The tags to apply to the resource.

      • (dict) --

        Describes a tag.

        • Key (string) --

          The key of the tag.

          Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws: .

        • Value (string) --

          The value of the tag.

          Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

rtype

dict

returns

Response Syntax

{
    'ServiceConfiguration': {
        'ServiceType': [
            {
                'ServiceType': 'Interface'|'Gateway'|'GatewayLoadBalancer'
            },
        ],
        'ServiceId': 'string',
        'ServiceName': 'string',
        'ServiceState': 'Pending'|'Available'|'Deleting'|'Deleted'|'Failed',
        'AvailabilityZones': [
            'string',
        ],
        'AcceptanceRequired': True|False,
        'ManagesVpcEndpoints': True|False,
        'NetworkLoadBalancerArns': [
            'string',
        ],
        'GatewayLoadBalancerArns': [
            'string',
        ],
        'SupportedIpAddressTypes': [
            'ipv4'|'ipv6',
        ],
        'BaseEndpointDnsNames': [
            'string',
        ],
        'PrivateDnsName': 'string',
        'PrivateDnsNameConfiguration': {
            'State': 'pendingVerification'|'verified'|'failed',
            'Type': 'string',
            'Value': 'string',
            'Name': 'string'
        },
        'PayerResponsibility': 'ServiceOwner',
        'Tags': [
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    },
    'ClientToken': 'string'
}

Response Structure

  • (dict) --

    • ServiceConfiguration (dict) --

      Information about the service configuration.

      • ServiceType (list) --

        The type of service.

        • (dict) --

          Describes the type of service for a VPC endpoint.

          • ServiceType (string) --

            The type of service.

      • ServiceId (string) --

        The ID of the service.

      • ServiceName (string) --

        The name of the service.

      • ServiceState (string) --

        The service state.

      • AvailabilityZones (list) --

        The Availability Zones in which the service is available.

        • (string) --

      • AcceptanceRequired (boolean) --

        Indicates whether requests from other Amazon Web Services accounts to create an endpoint to the service must first be accepted.

      • ManagesVpcEndpoints (boolean) --

        Indicates whether the service manages its VPC endpoints. Management of the service VPC endpoints using the VPC endpoint API is restricted.

      • NetworkLoadBalancerArns (list) --

        The Amazon Resource Names (ARNs) of the Network Load Balancers for the service.

        • (string) --

      • GatewayLoadBalancerArns (list) --

        The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service.

        • (string) --

      • SupportedIpAddressTypes (list) --

        The supported IP address types.

        • (string) --

      • BaseEndpointDnsNames (list) --

        The DNS names for the service.

        • (string) --

      • PrivateDnsName (string) --

        The private DNS name for the service.

      • PrivateDnsNameConfiguration (dict) --

        Information about the endpoint service private DNS name configuration.

        • State (string) --

          The verification state of the VPC endpoint service.

          >Consumers of the endpoint service can use the private name only when the state is verified .

        • Type (string) --

          The endpoint service verification type, for example TXT.

        • Value (string) --

          The value the service provider adds to the private DNS name domain record before verification.

        • Name (string) --

          The name of the record subdomain the service provider needs to create. The service provider adds the value text to the name .

      • PayerResponsibility (string) --

        The payer responsibility.

      • Tags (list) --

        Any tags assigned to the service.

        • (dict) --

          Describes a tag.

          • Key (string) --

            The key of the tag.

            Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws: .

          • Value (string) --

            The value of the tag.

            Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

    • ClientToken (string) --

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

DescribeVpcEndpointConnections (updated) Link ¶
Changes (response)
{'VpcEndpointConnections': {'IpAddressType': 'ipv4 | dualstack | ipv6'}}

Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance.

See also: AWS API Documentation

Request Syntax

client.describe_vpc_endpoint_connections(
    DryRun=True|False,
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxResults=123,
    NextToken='string'
)
type DryRun

boolean

param DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

type Filters

list

param Filters

One or more filters.

  • ip-address-type - The IP address type ( ipv4 | ipv6 ).

  • service-id - The ID of the service.

  • vpc-endpoint-owner - The ID of the Amazon Web Services account ID that owns the endpoint.

  • vpc-endpoint-state - The state of the endpoint ( pendingAcceptance | pending | available | deleting | deleted | rejected | failed ).

  • vpc-endpoint-id - The ID of the endpoint.

  • (dict) --

    A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

    If you specify multiple filters, the filters are joined with an AND , and the request returns only results that match all of the specified filters.

    • Name (string) --

      The name of the filter. Filter names are case-sensitive.

    • Values (list) --

      The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR , and the request returns all results that match any of the specified values.

      • (string) --

type MaxResults

integer

param MaxResults

The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1,000; if MaxResults is given a value larger than 1,000, only 1,000 results are returned.

type NextToken

string

param NextToken

The token to retrieve the next page of results.

rtype

dict

returns

Response Syntax

{
    'VpcEndpointConnections': [
        {
            'ServiceId': 'string',
            'VpcEndpointId': 'string',
            'VpcEndpointOwner': 'string',
            'VpcEndpointState': 'PendingAcceptance'|'Pending'|'Available'|'Deleting'|'Deleted'|'Rejected'|'Failed'|'Expired',
            'CreationTimestamp': datetime(2015, 1, 1),
            'DnsEntries': [
                {
                    'DnsName': 'string',
                    'HostedZoneId': 'string'
                },
            ],
            'NetworkLoadBalancerArns': [
                'string',
            ],
            'GatewayLoadBalancerArns': [
                'string',
            ],
            'IpAddressType': 'ipv4'|'dualstack'|'ipv6'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • VpcEndpointConnections (list) --

      Information about one or more VPC endpoint connections.

      • (dict) --

        Describes a VPC endpoint connection to a service.

        • ServiceId (string) --

          The ID of the service to which the endpoint is connected.

        • VpcEndpointId (string) --

          The ID of the VPC endpoint.

        • VpcEndpointOwner (string) --

          The ID of the Amazon Web Services account that owns the VPC endpoint.

        • VpcEndpointState (string) --

          The state of the VPC endpoint.

        • CreationTimestamp (datetime) --

          The date and time that the VPC endpoint was created.

        • DnsEntries (list) --

          The DNS entries for the VPC endpoint.

          • (dict) --

            Describes a DNS entry.

            • DnsName (string) --

              The DNS name.

            • HostedZoneId (string) --

              The ID of the private hosted zone.

        • NetworkLoadBalancerArns (list) --

          The Amazon Resource Names (ARNs) of the network load balancers for the service.

          • (string) --

        • GatewayLoadBalancerArns (list) --

          The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service.

          • (string) --

        • IpAddressType (string) --

          The IP address type for the endpoint.

    • NextToken (string) --

      The token to use to retrieve the next page of results. This value is null when there are no more results to return.

DescribeVpcEndpointServiceConfigurations (updated) Link ¶
Changes (response)
{'ServiceConfigurations': {'SupportedIpAddressTypes': ['ipv4 | ipv6']}}

Describes the VPC endpoint service configurations in your account (your services).

See also: AWS API Documentation

Request Syntax

client.describe_vpc_endpoint_service_configurations(
    DryRun=True|False,
    ServiceIds=[
        'string',
    ],
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxResults=123,
    NextToken='string'
)
type DryRun

boolean

param DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

type ServiceIds

list

param ServiceIds

The IDs of one or more services.

  • (string) --

type Filters

list

param Filters

One or more filters.

  • service-name - The name of the service.

  • service-id - The ID of the service.

  • service-state - The state of the service ( Pending | Available | Deleting | Deleted | Failed ).

  • supported-ip-address-types - The IP address type ( ipv4 | ipv6 ).

  • tag :<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA , specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • (dict) --

    A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

    If you specify multiple filters, the filters are joined with an AND , and the request returns only results that match all of the specified filters.

    • Name (string) --

      The name of the filter. Filter names are case-sensitive.

    • Values (list) --

      The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR , and the request returns all results that match any of the specified values.

      • (string) --

type MaxResults

integer

param MaxResults

The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1,000; if MaxResults is given a value larger than 1,000, only 1,000 results are returned.

type NextToken

string

param NextToken

The token to retrieve the next page of results.

rtype

dict

returns

Response Syntax

{
    'ServiceConfigurations': [
        {
            'ServiceType': [
                {
                    'ServiceType': 'Interface'|'Gateway'|'GatewayLoadBalancer'
                },
            ],
            'ServiceId': 'string',
            'ServiceName': 'string',
            'ServiceState': 'Pending'|'Available'|'Deleting'|'Deleted'|'Failed',
            'AvailabilityZones': [
                'string',
            ],
            'AcceptanceRequired': True|False,
            'ManagesVpcEndpoints': True|False,
            'NetworkLoadBalancerArns': [
                'string',
            ],
            'GatewayLoadBalancerArns': [
                'string',
            ],
            'SupportedIpAddressTypes': [
                'ipv4'|'ipv6',
            ],
            'BaseEndpointDnsNames': [
                'string',
            ],
            'PrivateDnsName': 'string',
            'PrivateDnsNameConfiguration': {
                'State': 'pendingVerification'|'verified'|'failed',
                'Type': 'string',
                'Value': 'string',
                'Name': 'string'
            },
            'PayerResponsibility': 'ServiceOwner',
            'Tags': [
                {
                    'Key': 'string',
                    'Value': 'string'
                },
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • ServiceConfigurations (list) --

      Information about one or more services.

      • (dict) --

        Describes a service configuration for a VPC endpoint service.

        • ServiceType (list) --

          The type of service.

          • (dict) --

            Describes the type of service for a VPC endpoint.

            • ServiceType (string) --

              The type of service.

        • ServiceId (string) --

          The ID of the service.

        • ServiceName (string) --

          The name of the service.

        • ServiceState (string) --

          The service state.

        • AvailabilityZones (list) --

          The Availability Zones in which the service is available.

          • (string) --

        • AcceptanceRequired (boolean) --

          Indicates whether requests from other Amazon Web Services accounts to create an endpoint to the service must first be accepted.

        • ManagesVpcEndpoints (boolean) --

          Indicates whether the service manages its VPC endpoints. Management of the service VPC endpoints using the VPC endpoint API is restricted.

        • NetworkLoadBalancerArns (list) --

          The Amazon Resource Names (ARNs) of the Network Load Balancers for the service.

          • (string) --

        • GatewayLoadBalancerArns (list) --

          The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service.

          • (string) --

        • SupportedIpAddressTypes (list) --

          The supported IP address types.

          • (string) --

        • BaseEndpointDnsNames (list) --

          The DNS names for the service.

          • (string) --

        • PrivateDnsName (string) --

          The private DNS name for the service.

        • PrivateDnsNameConfiguration (dict) --

          Information about the endpoint service private DNS name configuration.

          • State (string) --

            The verification state of the VPC endpoint service.

            >Consumers of the endpoint service can use the private name only when the state is verified .

          • Type (string) --

            The endpoint service verification type, for example TXT.

          • Value (string) --

            The value the service provider adds to the private DNS name domain record before verification.

          • Name (string) --

            The name of the record subdomain the service provider needs to create. The service provider adds the value text to the name .

        • PayerResponsibility (string) --

          The payer responsibility.

        • Tags (list) --

          Any tags assigned to the service.

          • (dict) --

            Describes a tag.

            • Key (string) --

              The key of the tag.

              Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws: .

            • Value (string) --

              The value of the tag.

              Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

    • NextToken (string) --

      The token to use to retrieve the next page of results. This value is null when there are no more results to return.

DescribeVpcEndpointServices (updated) Link ¶
Changes (response)
{'ServiceDetails': {'SupportedIpAddressTypes': ['ipv4 | ipv6']}}

Describes available services to which you can create a VPC endpoint.

When the service provider and the consumer have different accounts in multiple Availability Zones, and the consumer views the VPC endpoint service information, the response only includes the common Availability Zones. For example, when the service provider account uses us-east-1a and us-east-1c and the consumer uses us-east-1a and us-east-1b , the response includes the VPC endpoint services in the common Availability Zone, us-east-1a .

See also: AWS API Documentation

Request Syntax

client.describe_vpc_endpoint_services(
    DryRun=True|False,
    ServiceNames=[
        'string',
    ],
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxResults=123,
    NextToken='string'
)
type DryRun

boolean

param DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

type ServiceNames

list

param ServiceNames

One or more service names.

  • (string) --

type Filters

list

param Filters

One or more filters.

  • service-name - The name of the service.

  • service-type - The type of service ( Interface | Gateway ).

  • supported-ip-address-types - The IP address type ( ipv4 | ipv6 ).

  • tag :<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA , specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • (dict) --

    A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

    If you specify multiple filters, the filters are joined with an AND , and the request returns only results that match all of the specified filters.

    • Name (string) --

      The name of the filter. Filter names are case-sensitive.

    • Values (list) --

      The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR , and the request returns all results that match any of the specified values.

      • (string) --

type MaxResults

integer

param MaxResults

The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

Constraint: If the value is greater than 1,000, we return only 1,000 items.

type NextToken

string

param NextToken

The token for the next set of items to return. (You received this token from a prior call.)

rtype

dict

returns

Response Syntax

{
    'ServiceNames': [
        'string',
    ],
    'ServiceDetails': [
        {
            'ServiceName': 'string',
            'ServiceId': 'string',
            'ServiceType': [
                {
                    'ServiceType': 'Interface'|'Gateway'|'GatewayLoadBalancer'
                },
            ],
            'AvailabilityZones': [
                'string',
            ],
            'Owner': 'string',
            'BaseEndpointDnsNames': [
                'string',
            ],
            'PrivateDnsName': 'string',
            'PrivateDnsNames': [
                {
                    'PrivateDnsName': 'string'
                },
            ],
            'VpcEndpointPolicySupported': True|False,
            'AcceptanceRequired': True|False,
            'ManagesVpcEndpoints': True|False,
            'PayerResponsibility': 'ServiceOwner',
            'Tags': [
                {
                    'Key': 'string',
                    'Value': 'string'
                },
            ],
            'PrivateDnsNameVerificationState': 'pendingVerification'|'verified'|'failed',
            'SupportedIpAddressTypes': [
                'ipv4'|'ipv6',
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    Contains the output of DescribeVpcEndpointServices.

    • ServiceNames (list) --

      A list of supported services.

      • (string) --

    • ServiceDetails (list) --

      Information about the service.

      • (dict) --

        Describes a VPC endpoint service.

        • ServiceName (string) --

          The Amazon Resource Name (ARN) of the service.

        • ServiceId (string) --

          The ID of the endpoint service.

        • ServiceType (list) --

          The type of service.

          • (dict) --

            Describes the type of service for a VPC endpoint.

            • ServiceType (string) --

              The type of service.

        • AvailabilityZones (list) --

          The Availability Zones in which the service is available.

          • (string) --

        • Owner (string) --

          The Amazon Web Services account ID of the service owner.

        • BaseEndpointDnsNames (list) --

          The DNS names for the service.

          • (string) --

        • PrivateDnsName (string) --

          The private DNS name for the service.

        • PrivateDnsNames (list) --

          The private DNS names assigned to the VPC endpoint service.

          • (dict) --

            Information about the Private DNS name for interface endpoints.

            • PrivateDnsName (string) --

              The private DNS name assigned to the VPC endpoint service.

        • VpcEndpointPolicySupported (boolean) --

          Indicates whether the service supports endpoint policies.

        • AcceptanceRequired (boolean) --

          Indicates whether VPC endpoint connection requests to the service must be accepted by the service owner.

        • ManagesVpcEndpoints (boolean) --

          Indicates whether the service manages its VPC endpoints. Management of the service VPC endpoints using the VPC endpoint API is restricted.

        • PayerResponsibility (string) --

          The payer responsibility.

        • Tags (list) --

          Any tags assigned to the service.

          • (dict) --

            Describes a tag.

            • Key (string) --

              The key of the tag.

              Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws: .

            • Value (string) --

              The value of the tag.

              Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

        • PrivateDnsNameVerificationState (string) --

          The verification state of the VPC endpoint service.

          Consumers of the endpoint service cannot use the private name when the state is not verified .

        • SupportedIpAddressTypes (list) --

          The supported IP address types.

          • (string) --

    • NextToken (string) --

      The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

DescribeVpcEndpoints (updated) Link ¶
Changes (response)
{'VpcEndpoints': {'DnsOptions': {'DnsRecordIpType': 'ipv4 | dualstack | ipv6 | '
                                                    'service-defined'},
                  'IpAddressType': 'ipv4 | dualstack | ipv6'}}

Describes one or more of your VPC endpoints.

See also: AWS API Documentation

Request Syntax

client.describe_vpc_endpoints(
    DryRun=True|False,
    VpcEndpointIds=[
        'string',
    ],
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxResults=123,
    NextToken='string'
)
type DryRun

boolean

param DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

type VpcEndpointIds

list

param VpcEndpointIds

One or more endpoint IDs.

  • (string) --

type Filters

list

param Filters

One or more filters.

  • ip-address-type - The IP address type ( ipv4 | ipv6 ).

  • service-name - The name of the service.

  • vpc-id - The ID of the VPC in which the endpoint resides.

  • vpc-endpoint-id - The ID of the endpoint.

  • vpc-endpoint-state - The state of the endpoint ( pendingAcceptance | pending | available | deleting | deleted | rejected | failed ).

  • vpc-endpoint-type - The type of VPC endpoint ( Interface | Gateway | GatewayLoadBalancer ).

  • tag :<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA , specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • (dict) --

    A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

    If you specify multiple filters, the filters are joined with an AND , and the request returns only results that match all of the specified filters.

    • Name (string) --

      The name of the filter. Filter names are case-sensitive.

    • Values (list) --

      The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR , and the request returns all results that match any of the specified values.

      • (string) --

type MaxResults

integer

param MaxResults

The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

Constraint: If the value is greater than 1,000, we return only 1,000 items.

type NextToken

string

param NextToken

The token for the next set of items to return. (You received this token from a prior call.)

rtype

dict

returns

Response Syntax

{
    'VpcEndpoints': [
        {
            'VpcEndpointId': 'string',
            'VpcEndpointType': 'Interface'|'Gateway'|'GatewayLoadBalancer',
            'VpcId': 'string',
            'ServiceName': 'string',
            'State': 'PendingAcceptance'|'Pending'|'Available'|'Deleting'|'Deleted'|'Rejected'|'Failed'|'Expired',
            'PolicyDocument': 'string',
            'RouteTableIds': [
                'string',
            ],
            'SubnetIds': [
                'string',
            ],
            'Groups': [
                {
                    'GroupId': 'string',
                    'GroupName': 'string'
                },
            ],
            'IpAddressType': 'ipv4'|'dualstack'|'ipv6',
            'DnsOptions': {
                'DnsRecordIpType': 'ipv4'|'dualstack'|'ipv6'|'service-defined'
            },
            'PrivateDnsEnabled': True|False,
            'RequesterManaged': True|False,
            'NetworkInterfaceIds': [
                'string',
            ],
            'DnsEntries': [
                {
                    'DnsName': 'string',
                    'HostedZoneId': 'string'
                },
            ],
            'CreationTimestamp': datetime(2015, 1, 1),
            'Tags': [
                {
                    'Key': 'string',
                    'Value': 'string'
                },
            ],
            'OwnerId': 'string',
            'LastError': {
                'Message': 'string',
                'Code': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    Contains the output of DescribeVpcEndpoints.

    • VpcEndpoints (list) --

      Information about the endpoints.

      • (dict) --

        Describes a VPC endpoint.

        • VpcEndpointId (string) --

          The ID of the endpoint.

        • VpcEndpointType (string) --

          The type of endpoint.

        • VpcId (string) --

          The ID of the VPC to which the endpoint is associated.

        • ServiceName (string) --

          The name of the service to which the endpoint is associated.

        • State (string) --

          The state of the endpoint.

        • PolicyDocument (string) --

          The policy document associated with the endpoint, if applicable.

        • RouteTableIds (list) --

          (Gateway endpoint) One or more route tables associated with the endpoint.

          • (string) --

        • SubnetIds (list) --

          (Interface endpoint) The subnets for the endpoint.

          • (string) --

        • Groups (list) --

          (Interface endpoint) Information about the security groups that are associated with the network interface.

          • (dict) --

            Describes a security group.

            • GroupId (string) --

              The ID of the security group.

            • GroupName (string) --

              The name of the security group.

        • IpAddressType (string) --

          The IP address type for the endpoint.

        • DnsOptions (dict) --

          The DNS options for the endpoint.

          • DnsRecordIpType (string) --

            The DNS records created for the endpoint.

        • PrivateDnsEnabled (boolean) --

          (Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.

        • RequesterManaged (boolean) --

          Indicates whether the endpoint is being managed by its service.

        • NetworkInterfaceIds (list) --

          (Interface endpoint) One or more network interfaces for the endpoint.

          • (string) --

        • DnsEntries (list) --

          (Interface endpoint) The DNS entries for the endpoint.

          • (dict) --

            Describes a DNS entry.

            • DnsName (string) --

              The DNS name.

            • HostedZoneId (string) --

              The ID of the private hosted zone.

        • CreationTimestamp (datetime) --

          The date and time that the endpoint was created.

        • Tags (list) --

          Any tags assigned to the endpoint.

          • (dict) --

            Describes a tag.

            • Key (string) --

              The key of the tag.

              Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws: .

            • Value (string) --

              The value of the tag.

              Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

        • OwnerId (string) --

          The ID of the Amazon Web Services account that owns the endpoint.

        • LastError (dict) --

          The last error that occurred for endpoint.

          • Message (string) --

            The error message for the VPC endpoint error.

          • Code (string) --

            The error code for the VPC endpoint error.

    • NextToken (string) --

      The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

ModifyVpcEndpoint (updated) Link ¶
Changes (request)
{'DnsOptions': {'DnsRecordIpType': 'ipv4 | dualstack | ipv6 | service-defined'},
 'IpAddressType': 'ipv4 | dualstack | ipv6'}

Modifies attributes of a specified VPC endpoint. The attributes that you can modify depend on the type of VPC endpoint (interface, gateway, or Gateway Load Balancer). For more information, see the Amazon Web Services PrivateLink Guide.

See also: AWS API Documentation

Request Syntax

client.modify_vpc_endpoint(
    DryRun=True|False,
    VpcEndpointId='string',
    ResetPolicy=True|False,
    PolicyDocument='string',
    AddRouteTableIds=[
        'string',
    ],
    RemoveRouteTableIds=[
        'string',
    ],
    AddSubnetIds=[
        'string',
    ],
    RemoveSubnetIds=[
        'string',
    ],
    AddSecurityGroupIds=[
        'string',
    ],
    RemoveSecurityGroupIds=[
        'string',
    ],
    IpAddressType='ipv4'|'dualstack'|'ipv6',
    DnsOptions={
        'DnsRecordIpType': 'ipv4'|'dualstack'|'ipv6'|'service-defined'
    },
    PrivateDnsEnabled=True|False
)
type DryRun

boolean

param DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

type VpcEndpointId

string

param VpcEndpointId

[REQUIRED]

The ID of the endpoint.

type ResetPolicy

boolean

param ResetPolicy

(Gateway endpoint) Specify true to reset the policy document to the default policy. The default policy allows full access to the service.

type PolicyDocument

string

param PolicyDocument

(Interface and gateway endpoints) A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format.

type AddRouteTableIds

list

param AddRouteTableIds

(Gateway endpoint) One or more route tables IDs to associate with the endpoint.

  • (string) --

type RemoveRouteTableIds

list

param RemoveRouteTableIds

(Gateway endpoint) One or more route table IDs to disassociate from the endpoint.

  • (string) --

type AddSubnetIds

list

param AddSubnetIds

(Interface and Gateway Load Balancer endpoints) One or more subnet IDs in which to serve the endpoint. For a Gateway Load Balancer endpoint, you can specify only one subnet.

  • (string) --

type RemoveSubnetIds

list

param RemoveSubnetIds

(Interface endpoint) One or more subnets IDs in which to remove the endpoint.

  • (string) --

type AddSecurityGroupIds

list

param AddSecurityGroupIds

(Interface endpoint) One or more security group IDs to associate with the network interface.

  • (string) --

type RemoveSecurityGroupIds

list

param RemoveSecurityGroupIds

(Interface endpoint) One or more security group IDs to disassociate from the network interface.

  • (string) --

type IpAddressType

string

param IpAddressType

The IP address type for the endpoint.

type DnsOptions

dict

param DnsOptions

The DNS options for the endpoint.

  • DnsRecordIpType (string) --

    The DNS records created for the endpoint.

type PrivateDnsEnabled

boolean

param PrivateDnsEnabled

(Interface endpoint) Indicates whether a private hosted zone is associated with the VPC.

rtype

dict

returns

Response Syntax

{
    'Return': True|False
}

Response Structure

  • (dict) --

    • Return (boolean) --

      Returns true if the request succeeds; otherwise, it returns an error.

ModifyVpcEndpointServiceConfiguration (updated) Link ¶
Changes (request)
{'AddSupportedIpAddressTypes': ['string'],
 'RemoveSupportedIpAddressTypes': ['string']}

Modifies the attributes of your VPC endpoint service configuration. You can change the Network Load Balancers or Gateway Load Balancers for your service, and you can specify whether acceptance is required for requests to connect to your endpoint service through an interface VPC endpoint.

If you set or modify the private DNS name, you must prove that you own the private DNS domain name.

See also: AWS API Documentation

Request Syntax

client.modify_vpc_endpoint_service_configuration(
    DryRun=True|False,
    ServiceId='string',
    PrivateDnsName='string',
    RemovePrivateDnsName=True|False,
    AcceptanceRequired=True|False,
    AddNetworkLoadBalancerArns=[
        'string',
    ],
    RemoveNetworkLoadBalancerArns=[
        'string',
    ],
    AddGatewayLoadBalancerArns=[
        'string',
    ],
    RemoveGatewayLoadBalancerArns=[
        'string',
    ],
    AddSupportedIpAddressTypes=[
        'string',
    ],
    RemoveSupportedIpAddressTypes=[
        'string',
    ]
)
type DryRun

boolean

param DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

type ServiceId

string

param ServiceId

[REQUIRED]

The ID of the service.

type PrivateDnsName

string

param PrivateDnsName

(Interface endpoint configuration) The private DNS name to assign to the endpoint service.

type RemovePrivateDnsName

boolean

param RemovePrivateDnsName

(Interface endpoint configuration) Removes the private DNS name of the endpoint service.

type AcceptanceRequired

boolean

param AcceptanceRequired

Indicates whether requests to create an endpoint to your service must be accepted.

type AddNetworkLoadBalancerArns

list

param AddNetworkLoadBalancerArns

The Amazon Resource Names (ARNs) of Network Load Balancers to add to your service configuration.

  • (string) --

type RemoveNetworkLoadBalancerArns

list

param RemoveNetworkLoadBalancerArns

The Amazon Resource Names (ARNs) of Network Load Balancers to remove from your service configuration.

  • (string) --

type AddGatewayLoadBalancerArns

list

param AddGatewayLoadBalancerArns

The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to your service configuration.

  • (string) --

type RemoveGatewayLoadBalancerArns

list

param RemoveGatewayLoadBalancerArns

The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from your service configuration.

  • (string) --

type AddSupportedIpAddressTypes

list

param AddSupportedIpAddressTypes

The IP address types to add to your service configuration.

  • (string) --

type RemoveSupportedIpAddressTypes

list

param RemoveSupportedIpAddressTypes

The IP address types to remove from your service configuration.

  • (string) --

rtype

dict

returns

Response Syntax

{
    'Return': True|False
}

Response Structure

  • (dict) --

    • Return (boolean) --

      Returns true if the request succeeds; otherwise, it returns an error.