AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Specify the Amazon EC2 instance (destination) IP addresses and ports for a VPC subnet endpoint that cannot receive traffic for a custom routing accelerator. You can deny traffic to all destinations in the VPC endpoint, or deny traffic to a specified list of destination IP addresses and ports. Note that you cannot specify IP addresses or ports outside of the range that you configured for the endpoint group.
After you make changes, you can verify that the updates are complete by checking the status of your accelerator: the status changes from IN_PROGRESS to DEPLOYED.
For .NET Core this operation is only available in asynchronous form. Please refer to DenyCustomRoutingTrafficAsync.
Namespace: Amazon.GlobalAccelerator
Assembly: AWSSDK.GlobalAccelerator.dll
Version: 3.x.y.z
public abstract DenyCustomRoutingTrafficResponse DenyCustomRoutingTraffic( DenyCustomRoutingTrafficRequest request )
Container for the necessary parameters to execute the DenyCustomRoutingTraffic service method.
Exception | Condition |
---|---|
EndpointGroupNotFoundException | The endpoint group that you specified doesn't exist. |
InternalServiceErrorException | There was an internal error for Global Accelerator. |
InvalidArgumentException | An argument that you specified is invalid. |
.NET Framework:
Supported in: 4.5 and newer, 3.5