Learn R Programming

paws.compute (version 0.7.0)

ec2_create_vpc_endpoint: Creates a VPC endpoint

Description

Creates a VPC endpoint. A VPC endpoint provides a private connection between the specified VPC and the specified endpoint service. You can use an endpoint service 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 User Guide.

See https://www.paws-r-sdk.com/docs/ec2_create_vpc_endpoint/ for full documentation.

Usage

ec2_create_vpc_endpoint(
  DryRun = NULL,
  VpcEndpointType = NULL,
  VpcId,
  ServiceName,
  PolicyDocument = NULL,
  RouteTableIds = NULL,
  SubnetIds = NULL,
  SecurityGroupIds = NULL,
  IpAddressType = NULL,
  DnsOptions = NULL,
  ClientToken = NULL,
  PrivateDnsEnabled = NULL,
  TagSpecifications = NULL,
  SubnetConfigurations = NULL
)

Arguments

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.

VpcEndpointType

The type of endpoint.

Default: Gateway

VpcId

[required] The ID of the VPC.

ServiceName

[required] The name of the endpoint service.

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.

RouteTableIds

(Gateway endpoint) The route table IDs.

SubnetIds

(Interface and Gateway Load Balancer endpoints) The IDs of the subnets in which to create endpoint network interfaces. For a Gateway Load Balancer endpoint, you can specify only one subnet.

SecurityGroupIds

(Interface endpoint) The IDs of the security groups to associate with the endpoint network interfaces. If this parameter is not specified, we use the default security group for the VPC.

IpAddressType

The IP address type for the endpoint.

DnsOptions

The DNS options for the endpoint.

ClientToken

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

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 modify_vpc_attribute to set the VPC attributes.

Default: true

TagSpecifications

The tags to associate with the endpoint.

SubnetConfigurations

The subnet configurations for the endpoint.