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.
example
Use a bare-bones client and the command you need to make an API call.
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
andus-east-1c
and the consumer usesus-east-1a
andus-east-1b
, the response includes the VPC endpoint services in the common Availability Zone,us-east-1a
.Use a bare-bones client and the command you need to make an API call.
import { EC2Client, DescribeVpcEndpointServicesCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, DescribeVpcEndpointServicesCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new DescribeVpcEndpointServicesCommand(input); const response = await client.send(command);
DescribeVpcEndpointServicesCommandInput for command's
input
shape.DescribeVpcEndpointServicesCommandOutput for command's
response
shape.config for EC2Client's
config
shape.