Struct aws_sdk_ec2::client::fluent_builders::CreateVpcEndpoint [−][src]
pub struct CreateVpcEndpoint<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateVpcEndpoint
.
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 VPC Endpoints in the Amazon Virtual Private Cloud User Guide.
A gateway
endpoint serves as a target for a route in your route table for
traffic destined for the Amazon Web Service. You can specify an endpoint policy to attach
to the endpoint, which will control access to the service from your VPC. You can also
specify the VPC route tables that use the endpoint.
An interface
endpoint is a network interface in your subnet that
serves as an endpoint for communicating with the specified service. You can specify the
subnets in which to create an endpoint, and the security groups to associate with the
endpoint network interface.
A GatewayLoadBalancer
endpoint is a network interface in your subnet that serves an endpoint for communicating with a Gateway Load Balancer that you've configured as a VPC endpoint service.
Use DescribeVpcEndpointServices to get a list of supported services.
Implementations
impl<C, M, R> CreateVpcEndpoint<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateVpcEndpoint<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateVpcEndpointOutput, SdkError<CreateVpcEndpointError>> where
R::Policy: SmithyRetryPolicy<CreateVpcEndpointInputOperationOutputAlias, CreateVpcEndpointOutput, CreateVpcEndpointError, CreateVpcEndpointInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateVpcEndpointOutput, SdkError<CreateVpcEndpointError>> where
R::Policy: SmithyRetryPolicy<CreateVpcEndpointInputOperationOutputAlias, CreateVpcEndpointOutput, CreateVpcEndpointError, CreateVpcEndpointInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
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
.
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
.
The type of endpoint.
Default: Gateway
The type of endpoint.
Default: Gateway
The ID of the VPC in which the endpoint will be used.
The ID of the VPC in which the endpoint will be used.
The service name. To get a list of available services, use the DescribeVpcEndpointServices request, or get the name from the service provider.
The service name. To get a list of available services, use the DescribeVpcEndpointServices request, or get the name from the service provider.
(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.
(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.
Appends an item to RouteTableIds
.
To override the contents of this collection use set_route_table_ids
.
(Gateway endpoint) One or more route table IDs.
(Gateway endpoint) One or more route table IDs.
Appends an item to SubnetIds
.
To override the contents of this collection use set_subnet_ids
.
(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.
(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.
Appends an item to SecurityGroupIds
.
To override the contents of this collection use set_security_group_ids
.
(Interface endpoint) The ID of one or more security groups to associate with the endpoint network interface.
(Interface endpoint) The ID of one or more security groups to associate with the endpoint network interface.
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
(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
(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
Appends an item to TagSpecifications
.
To override the contents of this collection use set_tag_specifications
.
The tags to associate with the endpoint.
The tags to associate with the endpoint.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateVpcEndpoint<C, M, R>
impl<C, M, R> Send for CreateVpcEndpoint<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateVpcEndpoint<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateVpcEndpoint<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateVpcEndpoint<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more