deny_custom_routing_traffic
¶
deny_custom_routing_traffic(
endpoint_group_arn: GenericString,
endpoint_id: GenericString,
*,
config_overrides: Optional[GlobalAcceleratorClientConfig] = None,
destination_addresses: Optional[DestinationAddresses] = None,
destination_ports: Optional[DestinationPorts] = None,
deny_all_traffic_to_endpoint: Optional[GenericBoolean] = None,
) -> None
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.
Parameters:
-
endpoint_group_arn(GenericString) –The Amazon Resource Name (ARN) of the endpoint group.
-
endpoint_id(GenericString) –An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.
-
destination_addresses(Optional[DestinationAddresses], default:None) –A list of specific Amazon EC2 instance IP addresses (destination addresses) in a subnet that you want to prevent from receiving traffic. The IP addresses must be a subset of the IP addresses allowed for the VPC subnet associated with the endpoint group.
-
destination_ports(Optional[DestinationPorts], default:None) –A list of specific Amazon EC2 instance ports (destination ports) in a subnet endpoint that you want to prevent from receiving traffic.
-
deny_all_traffic_to_endpoint(Optional[GenericBoolean], default:None) –Indicates whether all destination IP addresses and ports for a specified VPC subnet endpoint cannot receive traffic from a custom routing accelerator. The value is TRUE or FALSE.
When set to TRUE, no destinations in the custom routing VPC subnet can receive traffic. Note that you cannot specify destination IP addresses and ports when the value is set to TRUE.
When set to FALSE (or not specified), you must specify a list of destination IP addresses that cannot receive traffic. A list of ports is optional. If you don't specify a list of ports, the ports that can accept traffic is the same as the ports configured for the endpoint group.
The default value is FALSE.
Raises:
-
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_global_accelerator/_services/global_accelerator.py
1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 | |