AWS SDK Version 3 for .NET
API Reference

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.

Note:

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

Syntax

C#
public abstract DenyCustomRoutingTrafficResponse DenyCustomRoutingTraffic(
         DenyCustomRoutingTrafficRequest request
)

Parameters

request
Type: Amazon.GlobalAccelerator.Model.DenyCustomRoutingTrafficRequest

Container for the necessary parameters to execute the DenyCustomRoutingTraffic service method.

Return Value


The response from the DenyCustomRoutingTraffic service method, as returned by GlobalAccelerator.

Exceptions

ExceptionCondition
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.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also