EC2 / Client / accept_vpc_endpoint_connections

accept_vpc_endpoint_connections#

EC2.Client.accept_vpc_endpoint_connections(**kwargs)#

Accepts connection requests to your VPC endpoint service.

See also: AWS API Documentation

Request Syntax

response = client.accept_vpc_endpoint_connections(
    DryRun=True|False,
    ServiceId='string',
    VpcEndpointIds=[
        'string',
    ]
)
Parameters:
  • DryRun (boolean) – 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.

  • ServiceId (string) –

    [REQUIRED]

    The ID of the VPC endpoint service.

  • VpcEndpointIds (list) –

    [REQUIRED]

    The IDs of the interface VPC endpoints.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'Unsuccessful': [
        {
            'Error': {
                'Code': 'string',
                'Message': 'string'
            },
            'ResourceId': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • Unsuccessful (list) –

      Information about the interface endpoints that were not accepted, if applicable.

      • (dict) –

        Information about items that were not successfully processed in a batch call.

        • Error (dict) –

          Information about the error.

          • Code (string) –

            The error code.

          • Message (string) –

            The error message accompanying the error code.

        • ResourceId (string) –

          The ID of the resource.