Table of Contents
GlobalAccelerator.
Client
¶A low-level client representing AWS Global Accelerator
This is the Global Accelerator API Reference . This guide is for developers who need detailed information about Global Accelerator API actions, data types, and errors. For more information about Global Accelerator features, see the Global Accelerator Developer Guide .
Global Accelerator is a service in which you create accelerators to improve the performance of your applications for local and global users. Depending on the type of accelerator you choose, you can gain additional benefits.
Warning
Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify --region us-west-2
on AWS CLI commands.
By default, Global Accelerator provides you with static IP addresses that you associate with your accelerator. The static IP addresses are anycast from the Amazon Web Services edge network. For IPv4, Global Accelerator provides two static IPv4 addresses. For dual-stack, Global Accelerator provides a total of four addresses: two static IPv4 addresses and two static IPv6 addresses. With a standard accelerator for IPv4, instead of using the addresses that Global Accelerator provides, you can configure these entry points to be IPv4 addresses from your own IP address ranges that you bring toGlobal Accelerator (BYOIP).
For a standard accelerator, they distribute incoming application traffic across multiple endpoint resources in multiple Amazon Web Services Regions , which increases the availability of your applications. Endpoints for standard accelerators can be Network Load Balancers, Application Load Balancers, Amazon EC2 instances, or Elastic IP addresses that are located in one Amazon Web Services Region or multiple Amazon Web Services Regions. For custom routing accelerators, you map traffic that arrives to the static IP addresses to specific Amazon EC2 servers in endpoints that are virtual private cloud (VPC) subnets.
Warning
The static IP addresses remain assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you delete an accelerator, you lose the static IP addresses that are assigned to it, so you can no longer route traffic by using them. You can use IAM policies like tag-based permissions with Global Accelerator to limit the users who have permissions to delete an accelerator. For more information, see Tag-based policies .
For standard accelerators, Global Accelerator uses the Amazon Web Services global network to route traffic to the optimal regional endpoint based on health, client location, and policies that you configure. The service reacts instantly to changes in health or configuration to ensure that internet traffic from clients is always directed to healthy endpoints.
For more information about understanding and using Global Accelerator, see the Global Accelerator Developer Guide .
import boto3
client = boto3.client('globalaccelerator')
These are the available methods:
add_custom_routing_endpoints()
add_endpoints()
advertise_byoip_cidr()
allow_custom_routing_traffic()
can_paginate()
close()
create_accelerator()
create_custom_routing_accelerator()
create_custom_routing_endpoint_group()
create_custom_routing_listener()
create_endpoint_group()
create_listener()
delete_accelerator()
delete_custom_routing_accelerator()
delete_custom_routing_endpoint_group()
delete_custom_routing_listener()
delete_endpoint_group()
delete_listener()
deny_custom_routing_traffic()
deprovision_byoip_cidr()
describe_accelerator()
describe_accelerator_attributes()
describe_custom_routing_accelerator()
describe_custom_routing_accelerator_attributes()
describe_custom_routing_endpoint_group()
describe_custom_routing_listener()
describe_endpoint_group()
describe_listener()
get_paginator()
get_waiter()
list_accelerators()
list_byoip_cidrs()
list_custom_routing_accelerators()
list_custom_routing_endpoint_groups()
list_custom_routing_listeners()
list_custom_routing_port_mappings()
list_custom_routing_port_mappings_by_destination()
list_endpoint_groups()
list_listeners()
list_tags_for_resource()
provision_byoip_cidr()
remove_custom_routing_endpoints()
remove_endpoints()
tag_resource()
untag_resource()
update_accelerator()
update_accelerator_attributes()
update_custom_routing_accelerator()
update_custom_routing_accelerator_attributes()
update_custom_routing_listener()
update_endpoint_group()
update_listener()
withdraw_byoip_cidr()
add_custom_routing_endpoints
(**kwargs)¶Associate a virtual private cloud (VPC) subnet endpoint with your custom routing accelerator.
The listener port range must be large enough to support the number of IP addresses that can be specified in your subnet. The number of ports required is: subnet size times the number of ports per destination EC2 instances. For example, a subnet defined as /24 requires a listener port range of at least 255 ports.
Note: You must have enough remaining listener ports available to map to the subnet ports, or the call will fail with a LimitExceededException.
By default, all destinations in a subnet in a custom routing accelerator cannot receive traffic. To enable all destinations to receive traffic, or to specify individual port mappings that can receive traffic, see the AllowCustomRoutingTraffic operation.
See also: AWS API Documentation
Request Syntax
response = client.add_custom_routing_endpoints(
EndpointConfigurations=[
{
'EndpointId': 'string'
},
],
EndpointGroupArn='string'
)
[REQUIRED]
The list of endpoint objects to add to a custom routing accelerator.
The list of endpoint objects. For custom routing, this is a list of virtual private cloud (VPC) subnet IDs.
An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.
[REQUIRED]
The Amazon Resource Name (ARN) of the endpoint group for the custom routing endpoint.
dict
Response Syntax
{
'EndpointDescriptions': [
{
'EndpointId': 'string'
},
],
'EndpointGroupArn': 'string'
}
Response Structure
(dict) --
EndpointDescriptions (list) --
The endpoint objects added to the custom routing accelerator.
(dict) --
A complex type for an endpoint for a custom routing accelerator. Each endpoint group can include one or more endpoints, which are virtual private cloud (VPC) subnets.
EndpointId (string) --
An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.
EndpointGroupArn (string) --
The Amazon Resource Name (ARN) of the endpoint group for the custom routing endpoint.
Exceptions
GlobalAccelerator.Client.exceptions.EndpointAlreadyExistsException
GlobalAccelerator.Client.exceptions.EndpointGroupNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.LimitExceededException
GlobalAccelerator.Client.exceptions.AccessDeniedException
GlobalAccelerator.Client.exceptions.ConflictException
add_endpoints
(**kwargs)¶Add endpoints to an endpoint group. The AddEndpoints
API operation is the recommended option for adding endpoints. The alternative options are to add endpoints when you create an endpoint group (with the CreateEndpointGroup API) or when you update an endpoint group (with the UpdateEndpointGroup API).
There are two advantages to using AddEndpoints
to add endpoints:
See also: AWS API Documentation
Request Syntax
response = client.add_endpoints(
EndpointConfigurations=[
{
'EndpointId': 'string',
'Weight': 123,
'ClientIPPreservationEnabled': True|False
},
],
EndpointGroupArn='string'
)
[REQUIRED]
The list of endpoint objects.
A complex type for endpoints. A resource must be valid and active when you add it as an endpoint.
An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID. A resource must be valid and active when you add it as an endpoint.
An Application Load Balancer can be either internal or internet-facing.
The weight associated with the endpoint. When you add weights to endpoints, you configure Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint weights in the Global Accelerator Developer Guide .
Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false. The default value is true for new accelerators.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
Client IP address preservation is supported, in specific Amazon Web Services Regions, for endpoints that are Application Load Balancers and Amazon EC2 instances.
For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide .
[REQUIRED]
The Amazon Resource Name (ARN) of the endpoint group.
dict
Response Syntax
{
'EndpointDescriptions': [
{
'EndpointId': 'string',
'Weight': 123,
'HealthState': 'INITIAL'|'HEALTHY'|'UNHEALTHY',
'HealthReason': 'string',
'ClientIPPreservationEnabled': True|False
},
],
'EndpointGroupArn': 'string'
}
Response Structure
(dict) --
EndpointDescriptions (list) --
The list of endpoint objects.
(dict) --
A complex type for an endpoint. Each endpoint group can include one or more endpoints, such as load balancers.
EndpointId (string) --
An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID.
An Application Load Balancer can be either internal or internet-facing.
Weight (integer) --
The weight associated with the endpoint. When you add weights to endpoints, you configure Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint weights in the Global Accelerator Developer Guide .
HealthState (string) --
The health status of the endpoint.
HealthReason (string) --
Returns a null result.
ClientIPPreservationEnabled (boolean) --
Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false. The default value is true for new accelerators.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
Client IP address preservation is supported, in specific Amazon Web Services Regions, for endpoints that are Application Load Balancers and Amazon EC2 instances.
For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide .
EndpointGroupArn (string) --
The Amazon Resource Name (ARN) of the endpoint group.
Exceptions
GlobalAccelerator.Client.exceptions.TransactionInProgressException
GlobalAccelerator.Client.exceptions.EndpointGroupNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.LimitExceededException
GlobalAccelerator.Client.exceptions.AccessDeniedException
advertise_byoip_cidr
(**kwargs)¶Advertises an IPv4 address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP). It can take a few minutes before traffic to the specified addresses starts routing to Amazon Web Services because of propagation delays.
To stop advertising the BYOIP address range, use WithdrawByoipCidr .
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.advertise_byoip_cidr(
Cidr='string'
)
[REQUIRED]
The address range, in CIDR notation. This must be the exact range that you provisioned. You can't advertise only a portion of the provisioned range.
{
'ByoipCidr': {
'Cidr': 'string',
'State': 'PENDING_PROVISIONING'|'READY'|'PENDING_ADVERTISING'|'ADVERTISING'|'PENDING_WITHDRAWING'|'PENDING_DEPROVISIONING'|'DEPROVISIONED'|'FAILED_PROVISION'|'FAILED_ADVERTISING'|'FAILED_WITHDRAW'|'FAILED_DEPROVISION',
'Events': [
{
'Message': 'string',
'Timestamp': datetime(2015, 1, 1)
},
]
}
}
Response Structure
Information about the address range.
The address range, in CIDR notation.
The state of the address pool.
A history of status changes for an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
A complex type that contains a Message
and a Timestamp
value for changes that you make in the status of an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
A string that contains an Event
message describing changes that you make in the status of an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
A timestamp for when you make a status change for an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
Exceptions
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.AccessDeniedException
GlobalAccelerator.Client.exceptions.ByoipCidrNotFoundException
GlobalAccelerator.Client.exceptions.IncorrectCidrStateException
allow_custom_routing_traffic
(**kwargs)¶Specify the Amazon EC2 instance (destination) IP addresses and ports for a VPC subnet endpoint that can receive traffic for a custom routing accelerator. You can allow traffic to all destinations in the subnet endpoint, or allow traffic to a specified list of destination IP addresses and ports in the subnet. 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.
See also: AWS API Documentation
Request Syntax
response = client.allow_custom_routing_traffic(
EndpointGroupArn='string',
EndpointId='string',
DestinationAddresses=[
'string',
],
DestinationPorts=[
123,
],
AllowAllTrafficToEndpoint=True|False
)
[REQUIRED]
The Amazon Resource Name (ARN) of the endpoint group.
[REQUIRED]
An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.
A list of specific Amazon EC2 instance IP addresses (destination addresses) in a subnet that you want to allow to receive traffic. The IP addresses must be a subset of the IP addresses that you specified for the endpoint group.
DestinationAddresses
is required ifAllowAllTrafficToEndpoint
isFALSE
or is not specified.
A list of specific Amazon EC2 instance ports (destination ports) that you want to allow to receive traffic.
Indicates whether all destination IP addresses and ports for a specified VPC subnet endpoint can receive traffic from a custom routing accelerator. The value is TRUE or FALSE.
When set to TRUE, all 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 are allowed to 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.
None
Exceptions
GlobalAccelerator.Client.exceptions.EndpointGroupNotFoundException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
can_paginate
(operation_name)¶Check if an operation can be paginated.
create_foo
, and you'd normally invoke the
operation as client.create_foo(**kwargs)
, if the
create_foo
operation can be paginated, you can use the
call client.get_paginator("create_foo")
.True
if the operation can be paginated,
False
otherwise.close
()¶Closes underlying endpoint connections.
create_accelerator
(**kwargs)¶Create an accelerator. An accelerator includes one or more listeners that process inbound connections and direct traffic to one or more endpoint groups, each of which includes endpoints, such as Network Load Balancers.
Warning
Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify --region us-west-2
on AWS CLI commands.
See also: AWS API Documentation
Request Syntax
response = client.create_accelerator(
Name='string',
IpAddressType='IPV4'|'DUAL_STACK',
IpAddresses=[
'string',
],
Enabled=True|False,
IdempotencyToken='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The name of the accelerator. The name can have a maximum of 64 characters, must contain only alphanumeric characters, periods (.), or hyphens (-), and must not begin or end with a hyphen or period.
Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 address from your own pool to use for the accelerator's static IPv4 address when you create an accelerator.
After you bring an address range to Amazon Web Services, it appears in your account as an address pool. When you create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator assigns you a second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address ranges to Amazon Web Services, you can assign one IPv4 address from each range to your accelerator. This restriction is because Global Accelerator assigns each address range to a different network zone, for high availability.
You can specify one or two addresses, separated by a space. Do not include the /32 suffix.
Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new accelerator with the new addresses.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide .
Indicates whether an accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be deleted.
[REQUIRED]
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an accelerator.
This field is autopopulated if not provided.
Create tags for an accelerator.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide .
A complex type that contains a Tag
key and Tag
value.
A string that contains a Tag
key.
A string that contains a Tag
value.
dict
Response Syntax
{
'Accelerator': {
'AcceleratorArn': 'string',
'Name': 'string',
'IpAddressType': 'IPV4'|'DUAL_STACK',
'Enabled': True|False,
'IpSets': [
{
'IpFamily': 'string',
'IpAddresses': [
'string',
],
'IpAddressFamily': 'IPv4'|'IPv6'
},
],
'DnsName': 'string',
'Status': 'DEPLOYED'|'IN_PROGRESS',
'CreatedTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1),
'DualStackDnsName': 'string',
'Events': [
{
'Message': 'string',
'Timestamp': datetime(2015, 1, 1)
},
]
}
}
Response Structure
(dict) --
Accelerator (dict) --
The accelerator that is created by specifying a listener and the supported IP address types.
AcceleratorArn (string) --
The Amazon Resource Name (ARN) of the accelerator.
Name (string) --
The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
IpAddressType (string) --
The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.
Enabled (boolean) --
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.
IpSets (list) --
The static IP addresses that Global Accelerator associates with the accelerator.
(dict) --
A complex type for the set of IP addresses for an accelerator.
IpFamily (string) --
IpFamily is deprecated and has been replaced by IpAddressFamily.
IpAddresses (list) --
The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
IpAddressFamily (string) --
The types of IP addresses included in this IP set.
DnsName (string) --
The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.
The naming convention for the DNS name for an accelerator is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.
If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName
, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses.
For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
Status (string) --
Describes the deployment status of the accelerator.
CreatedTime (datetime) --
The date and time that the accelerator was created.
LastModifiedTime (datetime) --
The date and time that the accelerator was last modified.
DualStackDnsName (string) --
The Domain Name System (DNS) name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
The naming convention for the dual-stack DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .dualstack.awsglobalaccelerator.com. For example: a1234567890abcdef.dualstack.awsglobalaccelerator.com.
Note: Global Accelerator also assigns a default DNS name, DnsName
, to your accelerator that points just to the static IPv4 addresses.
For more information, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
Events (list) --
A history of changes that you make to an accelerator in Global Accelerator.
(dict) --
A complex type that contains a Timestamp
value and Message
for changes that you make to an accelerator in Global Accelerator. Messages stored here provide progress or error information when you update an accelerator from IPv4 to dual-stack, or from dual-stack to IPv4. Global Accelerator stores a maximum of ten event messages.
Message (string) --
A string that contains an Event
message describing changes or errors when you update an accelerator in Global Accelerator from IPv4 to dual-stack, or dual-stack to IPv4.
Timestamp (datetime) --
A timestamp for when you update an accelerator in Global Accelerator from IPv4 to dual-stack, or dual-stack to IPv4.
Exceptions
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.LimitExceededException
create_custom_routing_accelerator
(**kwargs)¶Create a custom routing accelerator. A custom routing accelerator directs traffic to one of possibly thousands of Amazon EC2 instance destinations running in a single or multiple virtual private clouds (VPC) subnet endpoints.
Be aware that, by default, all destination EC2 instances in a VPC subnet endpoint cannot receive traffic. To enable all destinations to receive traffic, or to specify individual port mappings that can receive traffic, see the AllowCustomRoutingTraffic operation.
Warning
Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify --region us-west-2
on AWS CLI commands.
See also: AWS API Documentation
Request Syntax
response = client.create_custom_routing_accelerator(
Name='string',
IpAddressType='IPV4'|'DUAL_STACK',
IpAddresses=[
'string',
],
Enabled=True|False,
IdempotencyToken='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The name of a custom routing accelerator. The name can have a maximum of 64 characters, must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 address from your own pool to use for the accelerator's static IPv4 address when you create an accelerator.
After you bring an address range to Amazon Web Services, it appears in your account as an address pool. When you create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator assigns you a second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address ranges to Amazon Web Services, you can assign one IPv4 address from each range to your accelerator. This restriction is because Global Accelerator assigns each address range to a different network zone, for high availability.
You can specify one or two addresses, separated by a space. Do not include the /32 suffix.
Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new accelerator with the new addresses.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide .
Indicates whether an accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be deleted.
[REQUIRED]
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
This field is autopopulated if not provided.
Create tags for an accelerator.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide .
A complex type that contains a Tag
key and Tag
value.
A string that contains a Tag
key.
A string that contains a Tag
value.
dict
Response Syntax
{
'Accelerator': {
'AcceleratorArn': 'string',
'Name': 'string',
'IpAddressType': 'IPV4'|'DUAL_STACK',
'Enabled': True|False,
'IpSets': [
{
'IpFamily': 'string',
'IpAddresses': [
'string',
],
'IpAddressFamily': 'IPv4'|'IPv6'
},
],
'DnsName': 'string',
'Status': 'DEPLOYED'|'IN_PROGRESS',
'CreatedTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
Accelerator (dict) --
The accelerator that is created.
AcceleratorArn (string) --
The Amazon Resource Name (ARN) of the custom routing accelerator.
Name (string) --
The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
IpAddressType (string) --
The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4.
Enabled (boolean) --
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.
IpSets (list) --
The static IP addresses that Global Accelerator associates with the accelerator.
(dict) --
A complex type for the set of IP addresses for an accelerator.
IpFamily (string) --
IpFamily is deprecated and has been replaced by IpAddressFamily.
IpAddresses (list) --
The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
IpAddressFamily (string) --
The types of IP addresses included in this IP set.
DnsName (string) --
The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.
The naming convention for the DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.
If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName
, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses.
For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
Status (string) --
Describes the deployment status of the accelerator.
CreatedTime (datetime) --
The date and time that the accelerator was created.
LastModifiedTime (datetime) --
The date and time that the accelerator was last modified.
Exceptions
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.LimitExceededException
GlobalAccelerator.Client.exceptions.AccessDeniedException
create_custom_routing_endpoint_group
(**kwargs)¶Create an endpoint group for the specified listener for a custom routing accelerator. An endpoint group is a collection of endpoints in one Amazon Web Services Region.
See also: AWS API Documentation
Request Syntax
response = client.create_custom_routing_endpoint_group(
ListenerArn='string',
EndpointGroupRegion='string',
DestinationConfigurations=[
{
'FromPort': 123,
'ToPort': 123,
'Protocols': [
'TCP'|'UDP',
]
},
],
IdempotencyToken='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the listener for a custom routing endpoint.
[REQUIRED]
The Amazon Web Services Region where the endpoint group is located. A listener can have only one endpoint group in a specific Region.
[REQUIRED]
Sets the port range and protocol for all endpoints (virtual private cloud subnets) in a custom routing endpoint group to accept client traffic on.
For a custom routing accelerator, sets the port range and protocol for all endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.
The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either TCP or UDP.
[REQUIRED]
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
This field is autopopulated if not provided.
dict
Response Syntax
{
'EndpointGroup': {
'EndpointGroupArn': 'string',
'EndpointGroupRegion': 'string',
'DestinationDescriptions': [
{
'FromPort': 123,
'ToPort': 123,
'Protocols': [
'TCP'|'UDP',
]
},
],
'EndpointDescriptions': [
{
'EndpointId': 'string'
},
]
}
}
Response Structure
(dict) --
EndpointGroup (dict) --
The information about the endpoint group created for a custom routing accelerator.
EndpointGroupArn (string) --
The Amazon Resource Name (ARN) of the endpoint group.
EndpointGroupRegion (string) --
The Amazon Web Services Region where the endpoint group is located.
DestinationDescriptions (list) --
For a custom routing accelerator, describes the port range and protocol for all endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.
(dict) --
For a custom routing accelerator, describes the port range and protocol for all endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.
FromPort (integer) --
The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
ToPort (integer) --
The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
Protocols (list) --
The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either TCP or UDP.
EndpointDescriptions (list) --
For a custom routing accelerator, describes the endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.
(dict) --
A complex type for an endpoint for a custom routing accelerator. Each endpoint group can include one or more endpoints, which are virtual private cloud (VPC) subnets.
EndpointId (string) --
An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.EndpointGroupAlreadyExistsException
GlobalAccelerator.Client.exceptions.ListenerNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.InvalidPortRangeException
GlobalAccelerator.Client.exceptions.LimitExceededException
GlobalAccelerator.Client.exceptions.AccessDeniedException
create_custom_routing_listener
(**kwargs)¶Create a listener to process inbound connections from clients to a custom routing accelerator. Connections arrive to assigned static IP addresses on the port range that you specify.
See also: AWS API Documentation
Request Syntax
response = client.create_custom_routing_listener(
AcceleratorArn='string',
PortRanges=[
{
'FromPort': 123,
'ToPort': 123
},
],
IdempotencyToken='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the accelerator for a custom routing listener.
[REQUIRED]
The port range to support for connections from clients to your accelerator.
Separately, you set port ranges for endpoints. For more information, see About endpoints for custom routing accelerators .
A complex type for a range of ports for a listener.
The first port in the range of ports, inclusive.
The last port in the range of ports, inclusive.
[REQUIRED]
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
This field is autopopulated if not provided.
dict
Response Syntax
{
'Listener': {
'ListenerArn': 'string',
'PortRanges': [
{
'FromPort': 123,
'ToPort': 123
},
]
}
}
Response Structure
(dict) --
Listener (dict) --
The listener that you've created for a custom routing accelerator.
ListenerArn (string) --
The Amazon Resource Name (ARN) of the listener.
PortRanges (list) --
The port range to support for connections from clients to your accelerator.
Separately, you set port ranges for endpoints. For more information, see About endpoints for custom routing accelerators .
(dict) --
A complex type for a range of ports for a listener.
FromPort (integer) --
The first port in the range of ports, inclusive.
ToPort (integer) --
The last port in the range of ports, inclusive.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InvalidPortRangeException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.LimitExceededException
create_endpoint_group
(**kwargs)¶Create an endpoint group for the specified listener. An endpoint group is a collection of endpoints in one Amazon Web Services Region. A resource must be valid and active when you add it as an endpoint.
See also: AWS API Documentation
Request Syntax
response = client.create_endpoint_group(
ListenerArn='string',
EndpointGroupRegion='string',
EndpointConfigurations=[
{
'EndpointId': 'string',
'Weight': 123,
'ClientIPPreservationEnabled': True|False
},
],
TrafficDialPercentage=...,
HealthCheckPort=123,
HealthCheckProtocol='TCP'|'HTTP'|'HTTPS',
HealthCheckPath='string',
HealthCheckIntervalSeconds=123,
ThresholdCount=123,
IdempotencyToken='string',
PortOverrides=[
{
'ListenerPort': 123,
'EndpointPort': 123
},
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the listener.
[REQUIRED]
The Amazon Web Services Region where the endpoint group is located. A listener can have only one endpoint group in a specific Region.
The list of endpoint objects.
A complex type for endpoints. A resource must be valid and active when you add it as an endpoint.
An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID. A resource must be valid and active when you add it as an endpoint.
An Application Load Balancer can be either internal or internet-facing.
The weight associated with the endpoint. When you add weights to endpoints, you configure Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint weights in the Global Accelerator Developer Guide .
Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false. The default value is true for new accelerators.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
Client IP address preservation is supported, in specific Amazon Web Services Regions, for endpoints that are Application Load Balancers and Amazon EC2 instances.
For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide .
The percentage of traffic to send to an Amazon Web Services Region. Additional traffic is distributed to other endpoint groups for this listener.
Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.
The default value is 100.
[REQUIRED]
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
This field is autopopulated if not provided.
Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. For example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.
For more information, see Overriding listener ports in the Global Accelerator Developer Guide .
Override specific listener ports used to route traffic to endpoints that are part of an endpoint group. For example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.
For more information, see Overriding listener ports in the Global Accelerator Developer Guide .
The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on.
The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.
dict
Response Syntax
{
'EndpointGroup': {
'EndpointGroupArn': 'string',
'EndpointGroupRegion': 'string',
'EndpointDescriptions': [
{
'EndpointId': 'string',
'Weight': 123,
'HealthState': 'INITIAL'|'HEALTHY'|'UNHEALTHY',
'HealthReason': 'string',
'ClientIPPreservationEnabled': True|False
},
],
'TrafficDialPercentage': ...,
'HealthCheckPort': 123,
'HealthCheckProtocol': 'TCP'|'HTTP'|'HTTPS',
'HealthCheckPath': 'string',
'HealthCheckIntervalSeconds': 123,
'ThresholdCount': 123,
'PortOverrides': [
{
'ListenerPort': 123,
'EndpointPort': 123
},
]
}
}
Response Structure
(dict) --
EndpointGroup (dict) --
The information about the endpoint group that was created.
EndpointGroupArn (string) --
The Amazon Resource Name (ARN) of the endpoint group.
EndpointGroupRegion (string) --
The Amazon Web Services Region where the endpoint group is located.
EndpointDescriptions (list) --
The list of endpoint objects.
(dict) --
A complex type for an endpoint. Each endpoint group can include one or more endpoints, such as load balancers.
EndpointId (string) --
An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID.
An Application Load Balancer can be either internal or internet-facing.
Weight (integer) --
The weight associated with the endpoint. When you add weights to endpoints, you configure Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint weights in the Global Accelerator Developer Guide .
HealthState (string) --
The health status of the endpoint.
HealthReason (string) --
Returns a null result.
ClientIPPreservationEnabled (boolean) --
Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false. The default value is true for new accelerators.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
Client IP address preservation is supported, in specific Amazon Web Services Regions, for endpoints that are Application Load Balancers and Amazon EC2 instances.
For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide .
TrafficDialPercentage (float) --
The percentage of traffic to send to an Amazon Web Services Region. Additional traffic is distributed to other endpoint groups for this listener.
Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.
The default value is 100.
HealthCheckPort (integer) --
The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
The default port is the port for the listener that this endpoint group is associated with. If the listener port is a list, Global Accelerator uses the first specified port in the list of ports.
HealthCheckProtocol (string) --
The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. The default value is TCP.
HealthCheckPath (string) --
If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks. The default is slash (/).
HealthCheckIntervalSeconds (integer) --
The time—10 seconds or 30 seconds—between health checks for each endpoint. The default value is 30.
ThresholdCount (integer) --
The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3.
PortOverrides (list) --
Allows you to override the destination ports used to route traffic to an endpoint. Using a port override lets you map a list of external destination ports (that your users send traffic to) to a list of internal destination ports that you want an application endpoint to receive traffic on.
(dict) --
Override specific listener ports used to route traffic to endpoints that are part of an endpoint group. For example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.
For more information, see Overriding listener ports in the Global Accelerator Developer Guide .
ListenerPort (integer) --
The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on.
EndpointPort (integer) --
The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.EndpointGroupAlreadyExistsException
GlobalAccelerator.Client.exceptions.ListenerNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.LimitExceededException
GlobalAccelerator.Client.exceptions.AccessDeniedException
create_listener
(**kwargs)¶Create a listener to process inbound connections from clients to an accelerator. Connections arrive to assigned static IP addresses on a port, port range, or list of port ranges that you specify.
See also: AWS API Documentation
Request Syntax
response = client.create_listener(
AcceleratorArn='string',
PortRanges=[
{
'FromPort': 123,
'ToPort': 123
},
],
Protocol='TCP'|'UDP',
ClientAffinity='NONE'|'SOURCE_IP',
IdempotencyToken='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of your accelerator.
[REQUIRED]
The list of port ranges to support for connections from clients to your accelerator.
A complex type for a range of ports for a listener.
The first port in the range of ports, inclusive.
The last port in the range of ports, inclusive.
[REQUIRED]
The protocol for connections from clients to your accelerator.
Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Client affinity gives you control over whether to always route each client to the same specific endpoint.
Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is NONE
, Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP address, source port, destination IP address, destination port, and protocol—to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes.
If you want a given client to always be routed to the same endpoint, set client affinity to SOURCE_IP
instead. When you use the SOURCE_IP
setting, Global Accelerator uses the "two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value.
The default value is NONE
.
[REQUIRED]
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
This field is autopopulated if not provided.
dict
Response Syntax
{
'Listener': {
'ListenerArn': 'string',
'PortRanges': [
{
'FromPort': 123,
'ToPort': 123
},
],
'Protocol': 'TCP'|'UDP',
'ClientAffinity': 'NONE'|'SOURCE_IP'
}
}
Response Structure
(dict) --
Listener (dict) --
The listener that you've created.
ListenerArn (string) --
The Amazon Resource Name (ARN) of the listener.
PortRanges (list) --
The list of port ranges for the connections from clients to the accelerator.
(dict) --
A complex type for a range of ports for a listener.
FromPort (integer) --
The first port in the range of ports, inclusive.
ToPort (integer) --
The last port in the range of ports, inclusive.
Protocol (string) --
The protocol for the connections from clients to the accelerator.
ClientAffinity (string) --
Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Client affinity gives you control over whether to always route each client to the same specific endpoint.
Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is NONE
, Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP address, source port, destination IP address, destination port, and protocol—to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes.
If you want a given client to always be routed to the same endpoint, set client affinity to SOURCE_IP
instead. When you use the SOURCE_IP
setting, Global Accelerator uses the "two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value.
The default value is NONE
.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InvalidPortRangeException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.LimitExceededException
delete_accelerator
(**kwargs)¶Delete an accelerator. Before you can delete an accelerator, you must disable it and remove all dependent resources (listeners and endpoint groups). To disable the accelerator, update the accelerator to set Enabled
to false.
Warning
When you create an accelerator, by default, Global Accelerator provides you with a set of two static IP addresses. Alternatively, you can bring your own IP address ranges to Global Accelerator and assign IP addresses from those ranges.
The IP addresses are assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you delete an accelerator, you lose the static IP addresses that are assigned to the accelerator, so you can no longer route traffic by using them. As a best practice, ensure that you have permissions in place to avoid inadvertently deleting accelerators. You can use IAM policies with Global Accelerator to limit the users who have permissions to delete an accelerator. For more information, see Identity and access management in the Global Accelerator Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.delete_accelerator(
AcceleratorArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of an accelerator.
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.AcceleratorNotDisabledException
GlobalAccelerator.Client.exceptions.AssociatedListenerFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
delete_custom_routing_accelerator
(**kwargs)¶Delete a custom routing accelerator. Before you can delete an accelerator, you must disable it and remove all dependent resources (listeners and endpoint groups). To disable the accelerator, update the accelerator to set Enabled
to false.
Warning
When you create a custom routing accelerator, by default, Global Accelerator provides you with a set of two static IP addresses.
The IP addresses are assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you delete an accelerator, you lose the static IP addresses that are assigned to the accelerator, so you can no longer route traffic by using them. As a best practice, ensure that you have permissions in place to avoid inadvertently deleting accelerators. You can use IAM policies with Global Accelerator to limit the users who have permissions to delete an accelerator. For more information, see Identity and access management in the Global Accelerator Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.delete_custom_routing_accelerator(
AcceleratorArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the custom routing accelerator to delete.
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.AcceleratorNotDisabledException
GlobalAccelerator.Client.exceptions.AssociatedListenerFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
delete_custom_routing_endpoint_group
(**kwargs)¶Delete an endpoint group from a listener for a custom routing accelerator.
See also: AWS API Documentation
Request Syntax
response = client.delete_custom_routing_endpoint_group(
EndpointGroupArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the endpoint group to delete.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.EndpointGroupNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
delete_custom_routing_listener
(**kwargs)¶Delete a listener for a custom routing accelerator.
See also: AWS API Documentation
Request Syntax
response = client.delete_custom_routing_listener(
ListenerArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the listener to delete.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.ListenerNotFoundException
GlobalAccelerator.Client.exceptions.AssociatedEndpointGroupFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
delete_endpoint_group
(**kwargs)¶Delete an endpoint group from a listener.
See also: AWS API Documentation
Request Syntax
response = client.delete_endpoint_group(
EndpointGroupArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the endpoint group to delete.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.EndpointGroupNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
delete_listener
(**kwargs)¶Delete a listener from an accelerator.
See also: AWS API Documentation
Request Syntax
response = client.delete_listener(
ListenerArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the listener.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.ListenerNotFoundException
GlobalAccelerator.Client.exceptions.AssociatedEndpointGroupFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
deny_custom_routing_traffic
(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.deny_custom_routing_traffic(
EndpointGroupArn='string',
EndpointId='string',
DestinationAddresses=[
'string',
],
DestinationPorts=[
123,
],
DenyAllTrafficToEndpoint=True|False
)
[REQUIRED]
The Amazon Resource Name (ARN) of the endpoint group.
[REQUIRED]
An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.
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.
A list of specific Amazon EC2 instance ports (destination ports) in a subnet endpoint that you want to prevent from receiving traffic.
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.
None
Exceptions
GlobalAccelerator.Client.exceptions.EndpointGroupNotFoundException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
deprovision_byoip_cidr
(**kwargs)¶Releases the specified address range that you provisioned to use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.
Before you can release an address range, you must stop advertising it by using WithdrawByoipCidr and you must not have any accelerators that are using static IP addresses allocated from its address range.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.deprovision_byoip_cidr(
Cidr='string'
)
[REQUIRED]
The address range, in CIDR notation. The prefix must be the same prefix that you specified when you provisioned the address range.
{
'ByoipCidr': {
'Cidr': 'string',
'State': 'PENDING_PROVISIONING'|'READY'|'PENDING_ADVERTISING'|'ADVERTISING'|'PENDING_WITHDRAWING'|'PENDING_DEPROVISIONING'|'DEPROVISIONED'|'FAILED_PROVISION'|'FAILED_ADVERTISING'|'FAILED_WITHDRAW'|'FAILED_DEPROVISION',
'Events': [
{
'Message': 'string',
'Timestamp': datetime(2015, 1, 1)
},
]
}
}
Response Structure
Information about the address range.
The address range, in CIDR notation.
The state of the address pool.
A history of status changes for an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
A complex type that contains a Message
and a Timestamp
value for changes that you make in the status of an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
A string that contains an Event
message describing changes that you make in the status of an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
A timestamp for when you make a status change for an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
Exceptions
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.AccessDeniedException
GlobalAccelerator.Client.exceptions.ByoipCidrNotFoundException
GlobalAccelerator.Client.exceptions.IncorrectCidrStateException
describe_accelerator
(**kwargs)¶Describe an accelerator.
See also: AWS API Documentation
Request Syntax
response = client.describe_accelerator(
AcceleratorArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the accelerator to describe.
{
'Accelerator': {
'AcceleratorArn': 'string',
'Name': 'string',
'IpAddressType': 'IPV4'|'DUAL_STACK',
'Enabled': True|False,
'IpSets': [
{
'IpFamily': 'string',
'IpAddresses': [
'string',
],
'IpAddressFamily': 'IPv4'|'IPv6'
},
],
'DnsName': 'string',
'Status': 'DEPLOYED'|'IN_PROGRESS',
'CreatedTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1),
'DualStackDnsName': 'string',
'Events': [
{
'Message': 'string',
'Timestamp': datetime(2015, 1, 1)
},
]
}
}
Response Structure
The description of the accelerator.
The Amazon Resource Name (ARN) of the accelerator.
The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.
The static IP addresses that Global Accelerator associates with the accelerator.
A complex type for the set of IP addresses for an accelerator.
IpFamily is deprecated and has been replaced by IpAddressFamily.
The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
The types of IP addresses included in this IP set.
The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.
The naming convention for the DNS name for an accelerator is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.
If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName
, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses.
For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
Describes the deployment status of the accelerator.
The date and time that the accelerator was created.
The date and time that the accelerator was last modified.
The Domain Name System (DNS) name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
The naming convention for the dual-stack DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .dualstack.awsglobalaccelerator.com. For example: a1234567890abcdef.dualstack.awsglobalaccelerator.com.
Note: Global Accelerator also assigns a default DNS name, DnsName
, to your accelerator that points just to the static IPv4 addresses.
For more information, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
A history of changes that you make to an accelerator in Global Accelerator.
A complex type that contains a Timestamp
value and Message
for changes that you make to an accelerator in Global Accelerator. Messages stored here provide progress or error information when you update an accelerator from IPv4 to dual-stack, or from dual-stack to IPv4. Global Accelerator stores a maximum of ten event messages.
A string that contains an Event
message describing changes or errors when you update an accelerator in Global Accelerator from IPv4 to dual-stack, or dual-stack to IPv4.
A timestamp for when you update an accelerator in Global Accelerator from IPv4 to dual-stack, or dual-stack to IPv4.
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
describe_accelerator_attributes
(**kwargs)¶Describe the attributes of an accelerator.
See also: AWS API Documentation
Request Syntax
response = client.describe_accelerator_attributes(
AcceleratorArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the accelerator with the attributes that you want to describe.
{
'AcceleratorAttributes': {
'FlowLogsEnabled': True|False,
'FlowLogsS3Bucket': 'string',
'FlowLogsS3Prefix': 'string'
}
}
Response Structure
The attributes of the accelerator.
Indicates whether flow logs are enabled. The default value is false. If the value is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
must be specified.
For more information, see Flow logs in the Global Accelerator Developer Guide .
The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
. The bucket must exist and have a bucket policy that grants Global Accelerator permission to write to the bucket.
The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
.
If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following:
s3-bucket_name//AWSLogs/aws_account_id
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
describe_custom_routing_accelerator
(**kwargs)¶Describe a custom routing accelerator.
See also: AWS API Documentation
Request Syntax
response = client.describe_custom_routing_accelerator(
AcceleratorArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the accelerator to describe.
{
'Accelerator': {
'AcceleratorArn': 'string',
'Name': 'string',
'IpAddressType': 'IPV4'|'DUAL_STACK',
'Enabled': True|False,
'IpSets': [
{
'IpFamily': 'string',
'IpAddresses': [
'string',
],
'IpAddressFamily': 'IPv4'|'IPv6'
},
],
'DnsName': 'string',
'Status': 'DEPLOYED'|'IN_PROGRESS',
'CreatedTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1)
}
}
Response Structure
The description of the custom routing accelerator.
The Amazon Resource Name (ARN) of the custom routing accelerator.
The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4.
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.
The static IP addresses that Global Accelerator associates with the accelerator.
A complex type for the set of IP addresses for an accelerator.
IpFamily is deprecated and has been replaced by IpAddressFamily.
The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
The types of IP addresses included in this IP set.
The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.
The naming convention for the DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.
If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName
, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses.
For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
Describes the deployment status of the accelerator.
The date and time that the accelerator was created.
The date and time that the accelerator was last modified.
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
describe_custom_routing_accelerator_attributes
(**kwargs)¶Describe the attributes of a custom routing accelerator.
See also: AWS API Documentation
Request Syntax
response = client.describe_custom_routing_accelerator_attributes(
AcceleratorArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the custom routing accelerator to describe the attributes for.
{
'AcceleratorAttributes': {
'FlowLogsEnabled': True|False,
'FlowLogsS3Bucket': 'string',
'FlowLogsS3Prefix': 'string'
}
}
Response Structure
The attributes of the custom routing accelerator.
Indicates whether flow logs are enabled. The default value is false. If the value is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
must be specified.
For more information, see Flow logs in the Global Accelerator Developer Guide .
The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
. The bucket must exist and have a bucket policy that grants Global Accelerator permission to write to the bucket.
The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
.
If you don’t specify a prefix, the flow logs are stored in the root of the bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following:
DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
describe_custom_routing_endpoint_group
(**kwargs)¶Describe an endpoint group for a custom routing accelerator.
See also: AWS API Documentation
Request Syntax
response = client.describe_custom_routing_endpoint_group(
EndpointGroupArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the endpoint group to describe.
{
'EndpointGroup': {
'EndpointGroupArn': 'string',
'EndpointGroupRegion': 'string',
'DestinationDescriptions': [
{
'FromPort': 123,
'ToPort': 123,
'Protocols': [
'TCP'|'UDP',
]
},
],
'EndpointDescriptions': [
{
'EndpointId': 'string'
},
]
}
}
Response Structure
The description of an endpoint group for a custom routing accelerator.
The Amazon Resource Name (ARN) of the endpoint group.
The Amazon Web Services Region where the endpoint group is located.
For a custom routing accelerator, describes the port range and protocol for all endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.
For a custom routing accelerator, describes the port range and protocol for all endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.
The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either TCP or UDP.
For a custom routing accelerator, describes the endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.
A complex type for an endpoint for a custom routing accelerator. Each endpoint group can include one or more endpoints, which are virtual private cloud (VPC) subnets.
An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.EndpointGroupNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
describe_custom_routing_listener
(**kwargs)¶The description of a listener for a custom routing accelerator.
See also: AWS API Documentation
Request Syntax
response = client.describe_custom_routing_listener(
ListenerArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the listener to describe.
{
'Listener': {
'ListenerArn': 'string',
'PortRanges': [
{
'FromPort': 123,
'ToPort': 123
},
]
}
}
Response Structure
The description of a listener for a custom routing accelerator.
The Amazon Resource Name (ARN) of the listener.
The port range to support for connections from clients to your accelerator.
Separately, you set port ranges for endpoints. For more information, see About endpoints for custom routing accelerators .
A complex type for a range of ports for a listener.
The first port in the range of ports, inclusive.
The last port in the range of ports, inclusive.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.ListenerNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
describe_endpoint_group
(**kwargs)¶Describe an endpoint group.
See also: AWS API Documentation
Request Syntax
response = client.describe_endpoint_group(
EndpointGroupArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the endpoint group to describe.
{
'EndpointGroup': {
'EndpointGroupArn': 'string',
'EndpointGroupRegion': 'string',
'EndpointDescriptions': [
{
'EndpointId': 'string',
'Weight': 123,
'HealthState': 'INITIAL'|'HEALTHY'|'UNHEALTHY',
'HealthReason': 'string',
'ClientIPPreservationEnabled': True|False
},
],
'TrafficDialPercentage': ...,
'HealthCheckPort': 123,
'HealthCheckProtocol': 'TCP'|'HTTP'|'HTTPS',
'HealthCheckPath': 'string',
'HealthCheckIntervalSeconds': 123,
'ThresholdCount': 123,
'PortOverrides': [
{
'ListenerPort': 123,
'EndpointPort': 123
},
]
}
}
Response Structure
The description of an endpoint group.
The Amazon Resource Name (ARN) of the endpoint group.
The Amazon Web Services Region where the endpoint group is located.
The list of endpoint objects.
A complex type for an endpoint. Each endpoint group can include one or more endpoints, such as load balancers.
An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID.
An Application Load Balancer can be either internal or internet-facing.
The weight associated with the endpoint. When you add weights to endpoints, you configure Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint weights in the Global Accelerator Developer Guide .
The health status of the endpoint.
Returns a null result.
Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false. The default value is true for new accelerators.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
Client IP address preservation is supported, in specific Amazon Web Services Regions, for endpoints that are Application Load Balancers and Amazon EC2 instances.
For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide .
The percentage of traffic to send to an Amazon Web Services Region. Additional traffic is distributed to other endpoint groups for this listener.
Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.
The default value is 100.
The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
The default port is the port for the listener that this endpoint group is associated with. If the listener port is a list, Global Accelerator uses the first specified port in the list of ports.
The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. The default value is TCP.
If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks. The default is slash (/).
The time—10 seconds or 30 seconds—between health checks for each endpoint. The default value is 30.
The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3.
Allows you to override the destination ports used to route traffic to an endpoint. Using a port override lets you map a list of external destination ports (that your users send traffic to) to a list of internal destination ports that you want an application endpoint to receive traffic on.
Override specific listener ports used to route traffic to endpoints that are part of an endpoint group. For example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.
For more information, see Overriding listener ports in the Global Accelerator Developer Guide .
The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on.
The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.EndpointGroupNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
describe_listener
(**kwargs)¶Describe a listener.
See also: AWS API Documentation
Request Syntax
response = client.describe_listener(
ListenerArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the listener to describe.
{
'Listener': {
'ListenerArn': 'string',
'PortRanges': [
{
'FromPort': 123,
'ToPort': 123
},
],
'Protocol': 'TCP'|'UDP',
'ClientAffinity': 'NONE'|'SOURCE_IP'
}
}
Response Structure
The description of a listener.
The Amazon Resource Name (ARN) of the listener.
The list of port ranges for the connections from clients to the accelerator.
A complex type for a range of ports for a listener.
The first port in the range of ports, inclusive.
The last port in the range of ports, inclusive.
The protocol for the connections from clients to the accelerator.
Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Client affinity gives you control over whether to always route each client to the same specific endpoint.
Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is NONE
, Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP address, source port, destination IP address, destination port, and protocol—to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes.
If you want a given client to always be routed to the same endpoint, set client affinity to SOURCE_IP
instead. When you use the SOURCE_IP
setting, Global Accelerator uses the "two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value.
The default value is NONE
.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.ListenerNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
get_paginator
(operation_name)¶Create a paginator for an operation.
create_foo
, and you'd normally invoke the
operation as client.create_foo(**kwargs)
, if the
create_foo
operation can be paginated, you can use the
call client.get_paginator("create_foo")
.client.can_paginate
method to
check if an operation is pageable.get_waiter
(waiter_name)¶Returns an object that can wait for some condition.
list_accelerators
(**kwargs)¶List the accelerators for an Amazon Web Services account.
See also: AWS API Documentation
Request Syntax
response = client.list_accelerators(
MaxResults=123,
NextToken='string'
)
dict
Response Syntax
{
'Accelerators': [
{
'AcceleratorArn': 'string',
'Name': 'string',
'IpAddressType': 'IPV4'|'DUAL_STACK',
'Enabled': True|False,
'IpSets': [
{
'IpFamily': 'string',
'IpAddresses': [
'string',
],
'IpAddressFamily': 'IPv4'|'IPv6'
},
],
'DnsName': 'string',
'Status': 'DEPLOYED'|'IN_PROGRESS',
'CreatedTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1),
'DualStackDnsName': 'string',
'Events': [
{
'Message': 'string',
'Timestamp': datetime(2015, 1, 1)
},
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Accelerators (list) --
The list of accelerators for a customer account.
(dict) --
An accelerator is a complex type that includes one or more listeners that process inbound connections and then direct traffic to one or more endpoint groups, each of which includes endpoints, such as load balancers.
AcceleratorArn (string) --
The Amazon Resource Name (ARN) of the accelerator.
Name (string) --
The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
IpAddressType (string) --
The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.
Enabled (boolean) --
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.
IpSets (list) --
The static IP addresses that Global Accelerator associates with the accelerator.
(dict) --
A complex type for the set of IP addresses for an accelerator.
IpFamily (string) --
IpFamily is deprecated and has been replaced by IpAddressFamily.
IpAddresses (list) --
The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
IpAddressFamily (string) --
The types of IP addresses included in this IP set.
DnsName (string) --
The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.
The naming convention for the DNS name for an accelerator is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.
If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName
, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses.
For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
Status (string) --
Describes the deployment status of the accelerator.
CreatedTime (datetime) --
The date and time that the accelerator was created.
LastModifiedTime (datetime) --
The date and time that the accelerator was last modified.
DualStackDnsName (string) --
The Domain Name System (DNS) name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
The naming convention for the dual-stack DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .dualstack.awsglobalaccelerator.com. For example: a1234567890abcdef.dualstack.awsglobalaccelerator.com.
Note: Global Accelerator also assigns a default DNS name, DnsName
, to your accelerator that points just to the static IPv4 addresses.
For more information, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
Events (list) --
A history of changes that you make to an accelerator in Global Accelerator.
(dict) --
A complex type that contains a Timestamp
value and Message
for changes that you make to an accelerator in Global Accelerator. Messages stored here provide progress or error information when you update an accelerator from IPv4 to dual-stack, or from dual-stack to IPv4. Global Accelerator stores a maximum of ten event messages.
Message (string) --
A string that contains an Event
message describing changes or errors when you update an accelerator in Global Accelerator from IPv4 to dual-stack, or dual-stack to IPv4.
Timestamp (datetime) --
A timestamp for when you update an accelerator in Global Accelerator from IPv4 to dual-stack, or dual-stack to IPv4.
NextToken (string) --
The token for the next set of results. You receive this token from a previous call.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.InvalidNextTokenException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
list_byoip_cidrs
(**kwargs)¶Lists the IP address ranges that were specified in calls to ProvisionByoipCidr , including the current state and a history of state changes.
See also: AWS API Documentation
Request Syntax
response = client.list_byoip_cidrs(
MaxResults=123,
NextToken='string'
)
nextToken
value.dict
Response Syntax
{
'ByoipCidrs': [
{
'Cidr': 'string',
'State': 'PENDING_PROVISIONING'|'READY'|'PENDING_ADVERTISING'|'ADVERTISING'|'PENDING_WITHDRAWING'|'PENDING_DEPROVISIONING'|'DEPROVISIONED'|'FAILED_PROVISION'|'FAILED_ADVERTISING'|'FAILED_WITHDRAW'|'FAILED_DEPROVISION',
'Events': [
{
'Message': 'string',
'Timestamp': datetime(2015, 1, 1)
},
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
ByoipCidrs (list) --
Information about your address ranges.
(dict) --
Information about an IP address range that is provisioned for use with your Amazon Web Services resources through bring your own IP address (BYOIP).
The following describes each BYOIP State
that your IP address range can be in.
Cidr (string) --
The address range, in CIDR notation.
State (string) --
The state of the address pool.
Events (list) --
A history of status changes for an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
(dict) --
A complex type that contains a Message
and a Timestamp
value for changes that you make in the status of an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
Message (string) --
A string that contains an Event
message describing changes that you make in the status of an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
Timestamp (datetime) --
A timestamp for when you make a status change for an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
NextToken (string) --
The token for the next page of results.
Exceptions
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.AccessDeniedException
GlobalAccelerator.Client.exceptions.InvalidNextTokenException
list_custom_routing_accelerators
(**kwargs)¶List the custom routing accelerators for an Amazon Web Services account.
See also: AWS API Documentation
Request Syntax
response = client.list_custom_routing_accelerators(
MaxResults=123,
NextToken='string'
)
dict
Response Syntax
{
'Accelerators': [
{
'AcceleratorArn': 'string',
'Name': 'string',
'IpAddressType': 'IPV4'|'DUAL_STACK',
'Enabled': True|False,
'IpSets': [
{
'IpFamily': 'string',
'IpAddresses': [
'string',
],
'IpAddressFamily': 'IPv4'|'IPv6'
},
],
'DnsName': 'string',
'Status': 'DEPLOYED'|'IN_PROGRESS',
'CreatedTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Accelerators (list) --
The list of custom routing accelerators for a customer account.
(dict) --
Attributes of a custom routing accelerator.
AcceleratorArn (string) --
The Amazon Resource Name (ARN) of the custom routing accelerator.
Name (string) --
The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
IpAddressType (string) --
The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4.
Enabled (boolean) --
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.
IpSets (list) --
The static IP addresses that Global Accelerator associates with the accelerator.
(dict) --
A complex type for the set of IP addresses for an accelerator.
IpFamily (string) --
IpFamily is deprecated and has been replaced by IpAddressFamily.
IpAddresses (list) --
The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
IpAddressFamily (string) --
The types of IP addresses included in this IP set.
DnsName (string) --
The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.
The naming convention for the DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.
If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName
, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses.
For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
Status (string) --
Describes the deployment status of the accelerator.
CreatedTime (datetime) --
The date and time that the accelerator was created.
LastModifiedTime (datetime) --
The date and time that the accelerator was last modified.
NextToken (string) --
The token for the next set of results. You receive this token from a previous call.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.InvalidNextTokenException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
list_custom_routing_endpoint_groups
(**kwargs)¶List the endpoint groups that are associated with a listener for a custom routing accelerator.
See also: AWS API Documentation
Request Syntax
response = client.list_custom_routing_endpoint_groups(
ListenerArn='string',
MaxResults=123,
NextToken='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the listener to list endpoint groups for.
dict
Response Syntax
{
'EndpointGroups': [
{
'EndpointGroupArn': 'string',
'EndpointGroupRegion': 'string',
'DestinationDescriptions': [
{
'FromPort': 123,
'ToPort': 123,
'Protocols': [
'TCP'|'UDP',
]
},
],
'EndpointDescriptions': [
{
'EndpointId': 'string'
},
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
EndpointGroups (list) --
The list of the endpoint groups associated with a listener for a custom routing accelerator.
(dict) --
A complex type for the endpoint group for a custom routing accelerator. An Amazon Web Services Region can have only one endpoint group for a specific listener.
EndpointGroupArn (string) --
The Amazon Resource Name (ARN) of the endpoint group.
EndpointGroupRegion (string) --
The Amazon Web Services Region where the endpoint group is located.
DestinationDescriptions (list) --
For a custom routing accelerator, describes the port range and protocol for all endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.
(dict) --
For a custom routing accelerator, describes the port range and protocol for all endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.
FromPort (integer) --
The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
ToPort (integer) --
The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
Protocols (list) --
The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either TCP or UDP.
EndpointDescriptions (list) --
For a custom routing accelerator, describes the endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.
(dict) --
A complex type for an endpoint for a custom routing accelerator. Each endpoint group can include one or more endpoints, which are virtual private cloud (VPC) subnets.
EndpointId (string) --
An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.
NextToken (string) --
The token for the next set of results. You receive this token from a previous call.
Exceptions
GlobalAccelerator.Client.exceptions.ListenerNotFoundException
GlobalAccelerator.Client.exceptions.InvalidNextTokenException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
list_custom_routing_listeners
(**kwargs)¶List the listeners for a custom routing accelerator.
See also: AWS API Documentation
Request Syntax
response = client.list_custom_routing_listeners(
AcceleratorArn='string',
MaxResults=123,
NextToken='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the accelerator to list listeners for.
dict
Response Syntax
{
'Listeners': [
{
'ListenerArn': 'string',
'PortRanges': [
{
'FromPort': 123,
'ToPort': 123
},
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Listeners (list) --
The list of listeners for a custom routing accelerator.
(dict) --
A complex type for a listener for a custom routing accelerator.
ListenerArn (string) --
The Amazon Resource Name (ARN) of the listener.
PortRanges (list) --
The port range to support for connections from clients to your accelerator.
Separately, you set port ranges for endpoints. For more information, see About endpoints for custom routing accelerators .
(dict) --
A complex type for a range of ports for a listener.
FromPort (integer) --
The first port in the range of ports, inclusive.
ToPort (integer) --
The last port in the range of ports, inclusive.
NextToken (string) --
The token for the next set of results. You receive this token from a previous call.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InvalidNextTokenException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
list_custom_routing_port_mappings
(**kwargs)¶Provides a complete mapping from the public accelerator IP address and port to destination EC2 instance IP addresses and ports in the virtual public cloud (VPC) subnet endpoint for a custom routing accelerator. For each subnet endpoint that you add, Global Accelerator creates a new static port mapping for the accelerator. The port mappings don't change after Global Accelerator generates them, so you can retrieve and cache the full mapping on your servers.
If you remove a subnet from your accelerator, Global Accelerator removes (reclaims) the port mappings. If you add a subnet to your accelerator, Global Accelerator creates new port mappings (the existing ones don't change). If you add or remove EC2 instances in your subnet, the port mappings don't change, because the mappings are created when you add the subnet to Global Accelerator.
The mappings also include a flag for each destination denoting which destination IP addresses and ports are allowed or denied traffic.
See also: AWS API Documentation
Request Syntax
response = client.list_custom_routing_port_mappings(
AcceleratorArn='string',
EndpointGroupArn='string',
MaxResults=123,
NextToken='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the accelerator to list the custom routing port mappings for.
dict
Response Syntax
{
'PortMappings': [
{
'AcceleratorPort': 123,
'EndpointGroupArn': 'string',
'EndpointId': 'string',
'DestinationSocketAddress': {
'IpAddress': 'string',
'Port': 123
},
'Protocols': [
'TCP'|'UDP',
],
'DestinationTrafficState': 'ALLOW'|'DENY'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
PortMappings (list) --
The port mappings for a custom routing accelerator.
(dict) --
Returns the ports and associated IP addresses and ports of Amazon EC2 instances in your virtual private cloud (VPC) subnets. Custom routing is a port mapping protocol in Global Accelerator that statically associates port ranges with VPC subnets, which allows Global Accelerator to route to specific instances and ports within one or more subnets.
AcceleratorPort (integer) --
The accelerator port.
EndpointGroupArn (string) --
The Amazon Resource Name (ARN) of the endpoint group.
EndpointId (string) --
The IP address of the VPC subnet (the subnet ID).
DestinationSocketAddress (dict) --
The EC2 instance IP address and port number in the virtual private cloud (VPC) subnet.
IpAddress (string) --
The IP address for the socket address.
Port (integer) --
The port for the socket address.
Protocols (list) --
The protocols supported by the endpoint group.
DestinationTrafficState (string) --
Indicates whether or not a port mapping destination can receive traffic. The value is either ALLOW, if traffic is allowed to the destination, or DENY, if traffic is not allowed to the destination.
NextToken (string) --
The token for the next set of results. You receive this token from a previous call.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.InvalidNextTokenException
GlobalAccelerator.Client.exceptions.EndpointGroupNotFoundException
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
list_custom_routing_port_mappings_by_destination
(**kwargs)¶List the port mappings for a specific EC2 instance (destination) in a VPC subnet endpoint. The response is the mappings for one destination IP address. This is useful when your subnet endpoint has mappings that span multiple custom routing accelerators in your account, or for scenarios where you only want to list the port mappings for a specific destination instance.
See also: AWS API Documentation
Request Syntax
response = client.list_custom_routing_port_mappings_by_destination(
EndpointId='string',
DestinationAddress='string',
MaxResults=123,
NextToken='string'
)
[REQUIRED]
The ID for the virtual private cloud (VPC) subnet.
[REQUIRED]
The endpoint IP address in a virtual private cloud (VPC) subnet for which you want to receive back port mappings.
dict
Response Syntax
{
'DestinationPortMappings': [
{
'AcceleratorArn': 'string',
'AcceleratorSocketAddresses': [
{
'IpAddress': 'string',
'Port': 123
},
],
'EndpointGroupArn': 'string',
'EndpointId': 'string',
'EndpointGroupRegion': 'string',
'DestinationSocketAddress': {
'IpAddress': 'string',
'Port': 123
},
'IpAddressType': 'IPV4'|'DUAL_STACK',
'DestinationTrafficState': 'ALLOW'|'DENY'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
DestinationPortMappings (list) --
The port mappings for the endpoint IP address that you specified in the request.
(dict) --
The port mappings for a specified endpoint IP address (destination).
AcceleratorArn (string) --
The Amazon Resource Name (ARN) of the custom routing accelerator that you have port mappings for.
AcceleratorSocketAddresses (list) --
The IP address/port combinations (sockets) that map to a given destination socket address.
(dict) --
An IP address/port combination.
IpAddress (string) --
The IP address for the socket address.
Port (integer) --
The port for the socket address.
EndpointGroupArn (string) --
The Amazon Resource Name (ARN) of the endpoint group.
EndpointId (string) --
The ID for the virtual private cloud (VPC) subnet.
EndpointGroupRegion (string) --
The Amazon Web Services Region for the endpoint group.
DestinationSocketAddress (dict) --
The endpoint IP address/port combination for traffic received on the accelerator socket address.
IpAddress (string) --
The IP address for the socket address.
Port (integer) --
The port for the socket address.
IpAddressType (string) --
The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4.
DestinationTrafficState (string) --
Indicates whether or not a port mapping destination can receive traffic. The value is either ALLOW, if traffic is allowed to the destination, or DENY, if traffic is not allowed to the destination.
NextToken (string) --
The token for the next set of results. You receive this token from a previous call.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.InvalidNextTokenException
GlobalAccelerator.Client.exceptions.EndpointNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
list_endpoint_groups
(**kwargs)¶List the endpoint groups that are associated with a listener.
See also: AWS API Documentation
Request Syntax
response = client.list_endpoint_groups(
ListenerArn='string',
MaxResults=123,
NextToken='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the listener.
dict
Response Syntax
{
'EndpointGroups': [
{
'EndpointGroupArn': 'string',
'EndpointGroupRegion': 'string',
'EndpointDescriptions': [
{
'EndpointId': 'string',
'Weight': 123,
'HealthState': 'INITIAL'|'HEALTHY'|'UNHEALTHY',
'HealthReason': 'string',
'ClientIPPreservationEnabled': True|False
},
],
'TrafficDialPercentage': ...,
'HealthCheckPort': 123,
'HealthCheckProtocol': 'TCP'|'HTTP'|'HTTPS',
'HealthCheckPath': 'string',
'HealthCheckIntervalSeconds': 123,
'ThresholdCount': 123,
'PortOverrides': [
{
'ListenerPort': 123,
'EndpointPort': 123
},
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
EndpointGroups (list) --
The list of the endpoint groups associated with a listener.
(dict) --
A complex type for the endpoint group. An Amazon Web Services Region can have only one endpoint group for a specific listener.
EndpointGroupArn (string) --
The Amazon Resource Name (ARN) of the endpoint group.
EndpointGroupRegion (string) --
The Amazon Web Services Region where the endpoint group is located.
EndpointDescriptions (list) --
The list of endpoint objects.
(dict) --
A complex type for an endpoint. Each endpoint group can include one or more endpoints, such as load balancers.
EndpointId (string) --
An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID.
An Application Load Balancer can be either internal or internet-facing.
Weight (integer) --
The weight associated with the endpoint. When you add weights to endpoints, you configure Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint weights in the Global Accelerator Developer Guide .
HealthState (string) --
The health status of the endpoint.
HealthReason (string) --
Returns a null result.
ClientIPPreservationEnabled (boolean) --
Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false. The default value is true for new accelerators.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
Client IP address preservation is supported, in specific Amazon Web Services Regions, for endpoints that are Application Load Balancers and Amazon EC2 instances.
For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide .
TrafficDialPercentage (float) --
The percentage of traffic to send to an Amazon Web Services Region. Additional traffic is distributed to other endpoint groups for this listener.
Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.
The default value is 100.
HealthCheckPort (integer) --
The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
The default port is the port for the listener that this endpoint group is associated with. If the listener port is a list, Global Accelerator uses the first specified port in the list of ports.
HealthCheckProtocol (string) --
The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. The default value is TCP.
HealthCheckPath (string) --
If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks. The default is slash (/).
HealthCheckIntervalSeconds (integer) --
The time—10 seconds or 30 seconds—between health checks for each endpoint. The default value is 30.
ThresholdCount (integer) --
The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3.
PortOverrides (list) --
Allows you to override the destination ports used to route traffic to an endpoint. Using a port override lets you map a list of external destination ports (that your users send traffic to) to a list of internal destination ports that you want an application endpoint to receive traffic on.
(dict) --
Override specific listener ports used to route traffic to endpoints that are part of an endpoint group. For example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.
For more information, see Overriding listener ports in the Global Accelerator Developer Guide .
ListenerPort (integer) --
The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on.
EndpointPort (integer) --
The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.
NextToken (string) --
The token for the next set of results. You receive this token from a previous call.
Exceptions
GlobalAccelerator.Client.exceptions.ListenerNotFoundException
GlobalAccelerator.Client.exceptions.InvalidNextTokenException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
list_listeners
(**kwargs)¶List the listeners for an accelerator.
See also: AWS API Documentation
Request Syntax
response = client.list_listeners(
AcceleratorArn='string',
MaxResults=123,
NextToken='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the accelerator for which you want to list listener objects.
dict
Response Syntax
{
'Listeners': [
{
'ListenerArn': 'string',
'PortRanges': [
{
'FromPort': 123,
'ToPort': 123
},
],
'Protocol': 'TCP'|'UDP',
'ClientAffinity': 'NONE'|'SOURCE_IP'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Listeners (list) --
The list of listeners for an accelerator.
(dict) --
A complex type for a listener.
ListenerArn (string) --
The Amazon Resource Name (ARN) of the listener.
PortRanges (list) --
The list of port ranges for the connections from clients to the accelerator.
(dict) --
A complex type for a range of ports for a listener.
FromPort (integer) --
The first port in the range of ports, inclusive.
ToPort (integer) --
The last port in the range of ports, inclusive.
Protocol (string) --
The protocol for the connections from clients to the accelerator.
ClientAffinity (string) --
Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Client affinity gives you control over whether to always route each client to the same specific endpoint.
Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is NONE
, Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP address, source port, destination IP address, destination port, and protocol—to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes.
If you want a given client to always be routed to the same endpoint, set client affinity to SOURCE_IP
instead. When you use the SOURCE_IP
setting, Global Accelerator uses the "two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value.
The default value is NONE
.
NextToken (string) --
The token for the next set of results. You receive this token from a previous call.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InvalidNextTokenException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
List all tags for an accelerator.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
ResourceArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the accelerator to list tags for. An ARN uniquely identifies an accelerator.
{
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
Response Structure
Root level tag for the Tags parameters.
A complex type that contains a Tag
key and Tag
value.
A string that contains a Tag
key.
A string that contains a Tag
value.
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
provision_byoip_cidr
(**kwargs)¶Provisions an IP address range to use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. After the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr .
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.provision_byoip_cidr(
Cidr='string',
CidrAuthorizationContext={
'Message': 'string',
'Signature': 'string'
}
)
[REQUIRED]
The public IPv4 address range, in CIDR notation. The most specific IP prefix that you can specify is /24. The address range cannot overlap with another address range that you've brought to this or another Region.
[REQUIRED]
A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP.
The plain-text authorization message for the prefix and account.
The signed authorization message for the prefix and account.
dict
Response Syntax
{
'ByoipCidr': {
'Cidr': 'string',
'State': 'PENDING_PROVISIONING'|'READY'|'PENDING_ADVERTISING'|'ADVERTISING'|'PENDING_WITHDRAWING'|'PENDING_DEPROVISIONING'|'DEPROVISIONED'|'FAILED_PROVISION'|'FAILED_ADVERTISING'|'FAILED_WITHDRAW'|'FAILED_DEPROVISION',
'Events': [
{
'Message': 'string',
'Timestamp': datetime(2015, 1, 1)
},
]
}
}
Response Structure
(dict) --
ByoipCidr (dict) --
Information about the address range.
Cidr (string) --
The address range, in CIDR notation.
State (string) --
The state of the address pool.
Events (list) --
A history of status changes for an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
(dict) --
A complex type that contains a Message
and a Timestamp
value for changes that you make in the status of an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
Message (string) --
A string that contains an Event
message describing changes that you make in the status of an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
Timestamp (datetime) --
A timestamp for when you make a status change for an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
Exceptions
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.LimitExceededException
GlobalAccelerator.Client.exceptions.AccessDeniedException
GlobalAccelerator.Client.exceptions.IncorrectCidrStateException
remove_custom_routing_endpoints
(**kwargs)¶Remove endpoints from a custom routing accelerator.
See also: AWS API Documentation
Request Syntax
response = client.remove_custom_routing_endpoints(
EndpointIds=[
'string',
],
EndpointGroupArn='string'
)
[REQUIRED]
The IDs for the endpoints. For custom routing accelerators, endpoint IDs are the virtual private cloud (VPC) subnet IDs.
[REQUIRED]
The Amazon Resource Name (ARN) of the endpoint group to remove endpoints from.
None
Exceptions
GlobalAccelerator.Client.exceptions.EndpointGroupNotFoundException
GlobalAccelerator.Client.exceptions.EndpointNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.AccessDeniedException
GlobalAccelerator.Client.exceptions.ConflictException
remove_endpoints
(**kwargs)¶Remove endpoints from an endpoint group.
The RemoveEndpoints
API operation is the recommended option for removing endpoints. The alternative is to remove endpoints by updating an endpoint group by using the UpdateEndpointGroup API operation. There are two advantages to using AddEndpoints
to remove endpoints instead:
UpdateEndpointGroup
API operation, you must specify all of the endpoints in the endpoint group except the ones that you want to remove from the group.UpdateEndpointGroup
API operation, Global Accelerator must resolve all of the endpoints that remain in the group.See also: AWS API Documentation
Request Syntax
response = client.remove_endpoints(
EndpointIdentifiers=[
{
'EndpointId': 'string',
'ClientIPPreservationEnabled': True|False
},
],
EndpointGroupArn='string'
)
[REQUIRED]
The identifiers of the endpoints that you want to remove.
A complex type for an endpoint. Specifies information about the endpoint to remove from the endpoint group.
An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID.
An Application Load Balancer can be either internal or internet-facing.
Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
[REQUIRED]
The Amazon Resource Name (ARN) of the endpoint group.
None
Exceptions
GlobalAccelerator.Client.exceptions.EndpointGroupNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.AccessDeniedException
GlobalAccelerator.Client.exceptions.TransactionInProgressException
tag_resource
(**kwargs)¶Add tags to an accelerator resource.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
ResourceArn='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the Global Accelerator resource to add tags to. An ARN uniquely identifies a resource.
[REQUIRED]
The tags to add to a resource. A tag consists of a key and a value that you define.
A complex type that contains a Tag
key and Tag
value.
A string that contains a Tag
key.
A string that contains a Tag
value.
dict
Response Syntax
{}
Response Structure
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
untag_resource
(**kwargs)¶Remove tags from a Global Accelerator resource. When you specify a tag key, the action removes both that key and its associated value. The operation succeeds even if you attempt to remove tags from an accelerator that was already removed.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
ResourceArn='string',
TagKeys=[
'string',
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the Global Accelerator resource to remove tags from. An ARN uniquely identifies a resource.
[REQUIRED]
The tag key pairs that you want to remove from the specified resources.
dict
Response Syntax
{}
Response Structure
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
update_accelerator
(**kwargs)¶Update an accelerator.
Warning
Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify --region us-west-2
on AWS CLI commands.
See also: AWS API Documentation
Request Syntax
response = client.update_accelerator(
AcceleratorArn='string',
Name='string',
IpAddressType='IPV4'|'DUAL_STACK',
Enabled=True|False
)
[REQUIRED]
The Amazon Resource Name (ARN) of the accelerator to update.
Indicates whether an accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.
dict
Response Syntax
{
'Accelerator': {
'AcceleratorArn': 'string',
'Name': 'string',
'IpAddressType': 'IPV4'|'DUAL_STACK',
'Enabled': True|False,
'IpSets': [
{
'IpFamily': 'string',
'IpAddresses': [
'string',
],
'IpAddressFamily': 'IPv4'|'IPv6'
},
],
'DnsName': 'string',
'Status': 'DEPLOYED'|'IN_PROGRESS',
'CreatedTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1),
'DualStackDnsName': 'string',
'Events': [
{
'Message': 'string',
'Timestamp': datetime(2015, 1, 1)
},
]
}
}
Response Structure
(dict) --
Accelerator (dict) --
Information about the updated accelerator.
AcceleratorArn (string) --
The Amazon Resource Name (ARN) of the accelerator.
Name (string) --
The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
IpAddressType (string) --
The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.
Enabled (boolean) --
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.
IpSets (list) --
The static IP addresses that Global Accelerator associates with the accelerator.
(dict) --
A complex type for the set of IP addresses for an accelerator.
IpFamily (string) --
IpFamily is deprecated and has been replaced by IpAddressFamily.
IpAddresses (list) --
The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
IpAddressFamily (string) --
The types of IP addresses included in this IP set.
DnsName (string) --
The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.
The naming convention for the DNS name for an accelerator is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.
If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName
, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses.
For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
Status (string) --
Describes the deployment status of the accelerator.
CreatedTime (datetime) --
The date and time that the accelerator was created.
LastModifiedTime (datetime) --
The date and time that the accelerator was last modified.
DualStackDnsName (string) --
The Domain Name System (DNS) name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
The naming convention for the dual-stack DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .dualstack.awsglobalaccelerator.com. For example: a1234567890abcdef.dualstack.awsglobalaccelerator.com.
Note: Global Accelerator also assigns a default DNS name, DnsName
, to your accelerator that points just to the static IPv4 addresses.
For more information, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
Events (list) --
A history of changes that you make to an accelerator in Global Accelerator.
(dict) --
A complex type that contains a Timestamp
value and Message
for changes that you make to an accelerator in Global Accelerator. Messages stored here provide progress or error information when you update an accelerator from IPv4 to dual-stack, or from dual-stack to IPv4. Global Accelerator stores a maximum of ten event messages.
Message (string) --
A string that contains an Event
message describing changes or errors when you update an accelerator in Global Accelerator from IPv4 to dual-stack, or dual-stack to IPv4.
Timestamp (datetime) --
A timestamp for when you update an accelerator in Global Accelerator from IPv4 to dual-stack, or dual-stack to IPv4.
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.AccessDeniedException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
update_accelerator_attributes
(**kwargs)¶Update the attributes for an accelerator.
See also: AWS API Documentation
Request Syntax
response = client.update_accelerator_attributes(
AcceleratorArn='string',
FlowLogsEnabled=True|False,
FlowLogsS3Bucket='string',
FlowLogsS3Prefix='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the accelerator that you want to update.
Update whether flow logs are enabled. The default value is false. If the value is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
must be specified.
For more information, see Flow Logs in the Global Accelerator Developer Guide .
FlowLogsEnabled
is true
. The bucket must exist and have a bucket policy that grants Global Accelerator permission to write to the bucket.Update the prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
.
If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following:
s3-bucket_name//AWSLogs/aws_account_id
dict
Response Syntax
{
'AcceleratorAttributes': {
'FlowLogsEnabled': True|False,
'FlowLogsS3Bucket': 'string',
'FlowLogsS3Prefix': 'string'
}
}
Response Structure
(dict) --
AcceleratorAttributes (dict) --
Updated attributes for the accelerator.
FlowLogsEnabled (boolean) --
Indicates whether flow logs are enabled. The default value is false. If the value is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
must be specified.
For more information, see Flow logs in the Global Accelerator Developer Guide .
FlowLogsS3Bucket (string) --
The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
. The bucket must exist and have a bucket policy that grants Global Accelerator permission to write to the bucket.
FlowLogsS3Prefix (string) --
The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
.
If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following:
s3-bucket_name//AWSLogs/aws_account_id
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.AccessDeniedException
update_custom_routing_accelerator
(**kwargs)¶Update a custom routing accelerator.
See also: AWS API Documentation
Request Syntax
response = client.update_custom_routing_accelerator(
AcceleratorArn='string',
Name='string',
IpAddressType='IPV4'|'DUAL_STACK',
Enabled=True|False
)
[REQUIRED]
The Amazon Resource Name (ARN) of the accelerator to update.
Indicates whether an accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.
dict
Response Syntax
{
'Accelerator': {
'AcceleratorArn': 'string',
'Name': 'string',
'IpAddressType': 'IPV4'|'DUAL_STACK',
'Enabled': True|False,
'IpSets': [
{
'IpFamily': 'string',
'IpAddresses': [
'string',
],
'IpAddressFamily': 'IPv4'|'IPv6'
},
],
'DnsName': 'string',
'Status': 'DEPLOYED'|'IN_PROGRESS',
'CreatedTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
Accelerator (dict) --
Information about the updated custom routing accelerator.
AcceleratorArn (string) --
The Amazon Resource Name (ARN) of the custom routing accelerator.
Name (string) --
The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
IpAddressType (string) --
The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4.
Enabled (boolean) --
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.
IpSets (list) --
The static IP addresses that Global Accelerator associates with the accelerator.
(dict) --
A complex type for the set of IP addresses for an accelerator.
IpFamily (string) --
IpFamily is deprecated and has been replaced by IpAddressFamily.
IpAddresses (list) --
The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
IpAddressFamily (string) --
The types of IP addresses included in this IP set.
DnsName (string) --
The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.
The naming convention for the DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.
If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName
, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses.
For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
Status (string) --
Describes the deployment status of the accelerator.
CreatedTime (datetime) --
The date and time that the accelerator was created.
LastModifiedTime (datetime) --
The date and time that the accelerator was last modified.
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
update_custom_routing_accelerator_attributes
(**kwargs)¶Update the attributes for a custom routing accelerator.
See also: AWS API Documentation
Request Syntax
response = client.update_custom_routing_accelerator_attributes(
AcceleratorArn='string',
FlowLogsEnabled=True|False,
FlowLogsS3Bucket='string',
FlowLogsS3Prefix='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the custom routing accelerator to update attributes for.
Update whether flow logs are enabled. The default value is false. If the value is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
must be specified.
For more information, see Flow logs in the Global Accelerator Developer Guide .
FlowLogsEnabled
is true
. The bucket must exist and have a bucket policy that grants Global Accelerator permission to write to the bucket.Update the prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
.
If you don’t specify a prefix, the flow logs are stored in the root of the bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following:
DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id
dict
Response Syntax
{
'AcceleratorAttributes': {
'FlowLogsEnabled': True|False,
'FlowLogsS3Bucket': 'string',
'FlowLogsS3Prefix': 'string'
}
}
Response Structure
(dict) --
AcceleratorAttributes (dict) --
Updated custom routing accelerator.
FlowLogsEnabled (boolean) --
Indicates whether flow logs are enabled. The default value is false. If the value is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
must be specified.
For more information, see Flow logs in the Global Accelerator Developer Guide .
FlowLogsS3Bucket (string) --
The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
. The bucket must exist and have a bucket policy that grants Global Accelerator permission to write to the bucket.
FlowLogsS3Prefix (string) --
The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
.
If you don’t specify a prefix, the flow logs are stored in the root of the bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following:
DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id
Exceptions
GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.AccessDeniedException
update_custom_routing_listener
(**kwargs)¶Update a listener for a custom routing accelerator.
See also: AWS API Documentation
Request Syntax
response = client.update_custom_routing_listener(
ListenerArn='string',
PortRanges=[
{
'FromPort': 123,
'ToPort': 123
},
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the listener to update.
[REQUIRED]
The updated port range to support for connections from clients to your accelerator. If you remove ports that are currently being used by a subnet endpoint, the call fails.
Separately, you set port ranges for endpoints. For more information, see About endpoints for custom routing accelerators .
A complex type for a range of ports for a listener.
The first port in the range of ports, inclusive.
The last port in the range of ports, inclusive.
dict
Response Syntax
{
'Listener': {
'ListenerArn': 'string',
'PortRanges': [
{
'FromPort': 123,
'ToPort': 123
},
]
}
}
Response Structure
(dict) --
Listener (dict) --
Information for the updated listener for a custom routing accelerator.
ListenerArn (string) --
The Amazon Resource Name (ARN) of the listener.
PortRanges (list) --
The port range to support for connections from clients to your accelerator.
Separately, you set port ranges for endpoints. For more information, see About endpoints for custom routing accelerators .
(dict) --
A complex type for a range of ports for a listener.
FromPort (integer) --
The first port in the range of ports, inclusive.
ToPort (integer) --
The last port in the range of ports, inclusive.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.InvalidPortRangeException
GlobalAccelerator.Client.exceptions.ListenerNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.LimitExceededException
update_endpoint_group
(**kwargs)¶Update an endpoint group. A resource must be valid and active when you add it as an endpoint.
See also: AWS API Documentation
Request Syntax
response = client.update_endpoint_group(
EndpointGroupArn='string',
EndpointConfigurations=[
{
'EndpointId': 'string',
'Weight': 123,
'ClientIPPreservationEnabled': True|False
},
],
TrafficDialPercentage=...,
HealthCheckPort=123,
HealthCheckProtocol='TCP'|'HTTP'|'HTTPS',
HealthCheckPath='string',
HealthCheckIntervalSeconds=123,
ThresholdCount=123,
PortOverrides=[
{
'ListenerPort': 123,
'EndpointPort': 123
},
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the endpoint group.
The list of endpoint objects. A resource must be valid and active when you add it as an endpoint.
A complex type for endpoints. A resource must be valid and active when you add it as an endpoint.
An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID. A resource must be valid and active when you add it as an endpoint.
An Application Load Balancer can be either internal or internet-facing.
The weight associated with the endpoint. When you add weights to endpoints, you configure Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint weights in the Global Accelerator Developer Guide .
Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false. The default value is true for new accelerators.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
Client IP address preservation is supported, in specific Amazon Web Services Regions, for endpoints that are Application Load Balancers and Amazon EC2 instances.
For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide .
The percentage of traffic to send to an Amazon Web Services Region. Additional traffic is distributed to other endpoint groups for this listener.
Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.
The default value is 100.
Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. For example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.
For more information, see Overriding listener ports in the Global Accelerator Developer Guide .
Override specific listener ports used to route traffic to endpoints that are part of an endpoint group. For example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.
For more information, see Overriding listener ports in the Global Accelerator Developer Guide .
The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on.
The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.
dict
Response Syntax
{
'EndpointGroup': {
'EndpointGroupArn': 'string',
'EndpointGroupRegion': 'string',
'EndpointDescriptions': [
{
'EndpointId': 'string',
'Weight': 123,
'HealthState': 'INITIAL'|'HEALTHY'|'UNHEALTHY',
'HealthReason': 'string',
'ClientIPPreservationEnabled': True|False
},
],
'TrafficDialPercentage': ...,
'HealthCheckPort': 123,
'HealthCheckProtocol': 'TCP'|'HTTP'|'HTTPS',
'HealthCheckPath': 'string',
'HealthCheckIntervalSeconds': 123,
'ThresholdCount': 123,
'PortOverrides': [
{
'ListenerPort': 123,
'EndpointPort': 123
},
]
}
}
Response Structure
(dict) --
EndpointGroup (dict) --
The information about the endpoint group that was updated.
EndpointGroupArn (string) --
The Amazon Resource Name (ARN) of the endpoint group.
EndpointGroupRegion (string) --
The Amazon Web Services Region where the endpoint group is located.
EndpointDescriptions (list) --
The list of endpoint objects.
(dict) --
A complex type for an endpoint. Each endpoint group can include one or more endpoints, such as load balancers.
EndpointId (string) --
An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID.
An Application Load Balancer can be either internal or internet-facing.
Weight (integer) --
The weight associated with the endpoint. When you add weights to endpoints, you configure Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint weights in the Global Accelerator Developer Guide .
HealthState (string) --
The health status of the endpoint.
HealthReason (string) --
Returns a null result.
ClientIPPreservationEnabled (boolean) --
Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false. The default value is true for new accelerators.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
Client IP address preservation is supported, in specific Amazon Web Services Regions, for endpoints that are Application Load Balancers and Amazon EC2 instances.
For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide .
TrafficDialPercentage (float) --
The percentage of traffic to send to an Amazon Web Services Region. Additional traffic is distributed to other endpoint groups for this listener.
Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.
The default value is 100.
HealthCheckPort (integer) --
The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
The default port is the port for the listener that this endpoint group is associated with. If the listener port is a list, Global Accelerator uses the first specified port in the list of ports.
HealthCheckProtocol (string) --
The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. The default value is TCP.
HealthCheckPath (string) --
If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks. The default is slash (/).
HealthCheckIntervalSeconds (integer) --
The time—10 seconds or 30 seconds—between health checks for each endpoint. The default value is 30.
ThresholdCount (integer) --
The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3.
PortOverrides (list) --
Allows you to override the destination ports used to route traffic to an endpoint. Using a port override lets you map a list of external destination ports (that your users send traffic to) to a list of internal destination ports that you want an application endpoint to receive traffic on.
(dict) --
Override specific listener ports used to route traffic to endpoints that are part of an endpoint group. For example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.
For more information, see Overriding listener ports in the Global Accelerator Developer Guide .
ListenerPort (integer) --
The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on.
EndpointPort (integer) --
The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.EndpointGroupNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.LimitExceededException
GlobalAccelerator.Client.exceptions.AccessDeniedException
update_listener
(**kwargs)¶Update a listener.
See also: AWS API Documentation
Request Syntax
response = client.update_listener(
ListenerArn='string',
PortRanges=[
{
'FromPort': 123,
'ToPort': 123
},
],
Protocol='TCP'|'UDP',
ClientAffinity='NONE'|'SOURCE_IP'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the listener to update.
The updated list of port ranges for the connections from clients to the accelerator.
A complex type for a range of ports for a listener.
The first port in the range of ports, inclusive.
The last port in the range of ports, inclusive.
Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Client affinity gives you control over whether to always route each client to the same specific endpoint.
Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is NONE
, Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP address, source port, destination IP address, destination port, and protocol—to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes.
If you want a given client to always be routed to the same endpoint, set client affinity to SOURCE_IP
instead. When you use the SOURCE_IP
setting, Global Accelerator uses the "two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value.
The default value is NONE
.
dict
Response Syntax
{
'Listener': {
'ListenerArn': 'string',
'PortRanges': [
{
'FromPort': 123,
'ToPort': 123
},
],
'Protocol': 'TCP'|'UDP',
'ClientAffinity': 'NONE'|'SOURCE_IP'
}
}
Response Structure
(dict) --
Listener (dict) --
Information for the updated listener.
ListenerArn (string) --
The Amazon Resource Name (ARN) of the listener.
PortRanges (list) --
The list of port ranges for the connections from clients to the accelerator.
(dict) --
A complex type for a range of ports for a listener.
FromPort (integer) --
The first port in the range of ports, inclusive.
ToPort (integer) --
The last port in the range of ports, inclusive.
Protocol (string) --
The protocol for the connections from clients to the accelerator.
ClientAffinity (string) --
Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Client affinity gives you control over whether to always route each client to the same specific endpoint.
Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is NONE
, Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP address, source port, destination IP address, destination port, and protocol—to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes.
If you want a given client to always be routed to the same endpoint, set client affinity to SOURCE_IP
instead. When you use the SOURCE_IP
setting, Global Accelerator uses the "two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value.
The default value is NONE
.
Exceptions
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.InvalidPortRangeException
GlobalAccelerator.Client.exceptions.ListenerNotFoundException
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.LimitExceededException
withdraw_byoip_cidr
(**kwargs)¶Stops advertising an address range that is provisioned as an address pool. You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.
It can take a few minutes before traffic to the specified addresses stops routing to Amazon Web Services because of propagation delays.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.withdraw_byoip_cidr(
Cidr='string'
)
[REQUIRED]
The address range, in CIDR notation.
{
'ByoipCidr': {
'Cidr': 'string',
'State': 'PENDING_PROVISIONING'|'READY'|'PENDING_ADVERTISING'|'ADVERTISING'|'PENDING_WITHDRAWING'|'PENDING_DEPROVISIONING'|'DEPROVISIONED'|'FAILED_PROVISION'|'FAILED_ADVERTISING'|'FAILED_WITHDRAW'|'FAILED_DEPROVISION',
'Events': [
{
'Message': 'string',
'Timestamp': datetime(2015, 1, 1)
},
]
}
}
Response Structure
Information about the address pool.
The address range, in CIDR notation.
The state of the address pool.
A history of status changes for an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
A complex type that contains a Message
and a Timestamp
value for changes that you make in the status of an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
A string that contains an Event
message describing changes that you make in the status of an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
A timestamp for when you make a status change for an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
Exceptions
GlobalAccelerator.Client.exceptions.InternalServiceErrorException
GlobalAccelerator.Client.exceptions.InvalidArgumentException
GlobalAccelerator.Client.exceptions.AccessDeniedException
GlobalAccelerator.Client.exceptions.ByoipCidrNotFoundException
GlobalAccelerator.Client.exceptions.IncorrectCidrStateException
The available paginators are:
GlobalAccelerator.Paginator.ListAccelerators
GlobalAccelerator.Paginator.ListByoipCidrs
GlobalAccelerator.Paginator.ListCustomRoutingAccelerators
GlobalAccelerator.Paginator.ListCustomRoutingListeners
GlobalAccelerator.Paginator.ListCustomRoutingPortMappings
GlobalAccelerator.Paginator.ListCustomRoutingPortMappingsByDestination
GlobalAccelerator.Paginator.ListEndpointGroups
GlobalAccelerator.Paginator.ListListeners
GlobalAccelerator.Paginator.
ListAccelerators
¶paginator = client.get_paginator('list_accelerators')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from GlobalAccelerator.Client.list_accelerators()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
{
'Accelerators': [
{
'AcceleratorArn': 'string',
'Name': 'string',
'IpAddressType': 'IPV4'|'DUAL_STACK',
'Enabled': True|False,
'IpSets': [
{
'IpFamily': 'string',
'IpAddresses': [
'string',
],
'IpAddressFamily': 'IPv4'|'IPv6'
},
],
'DnsName': 'string',
'Status': 'DEPLOYED'|'IN_PROGRESS',
'CreatedTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1),
'DualStackDnsName': 'string',
'Events': [
{
'Message': 'string',
'Timestamp': datetime(2015, 1, 1)
},
]
},
],
}
Response Structure
The list of accelerators for a customer account.
An accelerator is a complex type that includes one or more listeners that process inbound connections and then direct traffic to one or more endpoint groups, each of which includes endpoints, such as load balancers.
The Amazon Resource Name (ARN) of the accelerator.
The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.
The static IP addresses that Global Accelerator associates with the accelerator.
A complex type for the set of IP addresses for an accelerator.
IpFamily is deprecated and has been replaced by IpAddressFamily.
The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
The types of IP addresses included in this IP set.
The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.
The naming convention for the DNS name for an accelerator is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.
If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName
, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses.
For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
Describes the deployment status of the accelerator.
The date and time that the accelerator was created.
The date and time that the accelerator was last modified.
The Domain Name System (DNS) name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
The naming convention for the dual-stack DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .dualstack.awsglobalaccelerator.com. For example: a1234567890abcdef.dualstack.awsglobalaccelerator.com.
Note: Global Accelerator also assigns a default DNS name, DnsName
, to your accelerator that points just to the static IPv4 addresses.
For more information, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
A history of changes that you make to an accelerator in Global Accelerator.
A complex type that contains a Timestamp
value and Message
for changes that you make to an accelerator in Global Accelerator. Messages stored here provide progress or error information when you update an accelerator from IPv4 to dual-stack, or from dual-stack to IPv4. Global Accelerator stores a maximum of ten event messages.
A string that contains an Event
message describing changes or errors when you update an accelerator in Global Accelerator from IPv4 to dual-stack, or dual-stack to IPv4.
A timestamp for when you update an accelerator in Global Accelerator from IPv4 to dual-stack, or dual-stack to IPv4.
GlobalAccelerator.Paginator.
ListByoipCidrs
¶paginator = client.get_paginator('list_byoip_cidrs')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from GlobalAccelerator.Client.list_byoip_cidrs()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
{
'ByoipCidrs': [
{
'Cidr': 'string',
'State': 'PENDING_PROVISIONING'|'READY'|'PENDING_ADVERTISING'|'ADVERTISING'|'PENDING_WITHDRAWING'|'PENDING_DEPROVISIONING'|'DEPROVISIONED'|'FAILED_PROVISION'|'FAILED_ADVERTISING'|'FAILED_WITHDRAW'|'FAILED_DEPROVISION',
'Events': [
{
'Message': 'string',
'Timestamp': datetime(2015, 1, 1)
},
]
},
],
}
Response Structure
Information about your address ranges.
Information about an IP address range that is provisioned for use with your Amazon Web Services resources through bring your own IP address (BYOIP).
The following describes each BYOIP State
that your IP address range can be in.
The address range, in CIDR notation.
The state of the address pool.
A history of status changes for an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
A complex type that contains a Message
and a Timestamp
value for changes that you make in the status of an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
A string that contains an Event
message describing changes that you make in the status of an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
A timestamp for when you make a status change for an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
GlobalAccelerator.Paginator.
ListCustomRoutingAccelerators
¶paginator = client.get_paginator('list_custom_routing_accelerators')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from GlobalAccelerator.Client.list_custom_routing_accelerators()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
{
'Accelerators': [
{
'AcceleratorArn': 'string',
'Name': 'string',
'IpAddressType': 'IPV4'|'DUAL_STACK',
'Enabled': True|False,
'IpSets': [
{
'IpFamily': 'string',
'IpAddresses': [
'string',
],
'IpAddressFamily': 'IPv4'|'IPv6'
},
],
'DnsName': 'string',
'Status': 'DEPLOYED'|'IN_PROGRESS',
'CreatedTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1)
},
],
}
Response Structure
The list of custom routing accelerators for a customer account.
Attributes of a custom routing accelerator.
The Amazon Resource Name (ARN) of the custom routing accelerator.
The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4.
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.
The static IP addresses that Global Accelerator associates with the accelerator.
A complex type for the set of IP addresses for an accelerator.
IpFamily is deprecated and has been replaced by IpAddressFamily.
The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
The types of IP addresses included in this IP set.
The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.
The naming convention for the DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.
If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName
, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses.
For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide .
Describes the deployment status of the accelerator.
The date and time that the accelerator was created.
The date and time that the accelerator was last modified.
GlobalAccelerator.Paginator.
ListCustomRoutingListeners
¶paginator = client.get_paginator('list_custom_routing_listeners')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from GlobalAccelerator.Client.list_custom_routing_listeners()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
AcceleratorArn='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) of the accelerator to list listeners for.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'Listeners': [
{
'ListenerArn': 'string',
'PortRanges': [
{
'FromPort': 123,
'ToPort': 123
},
]
},
],
}
Response Structure
(dict) --
Listeners (list) --
The list of listeners for a custom routing accelerator.
(dict) --
A complex type for a listener for a custom routing accelerator.
ListenerArn (string) --
The Amazon Resource Name (ARN) of the listener.
PortRanges (list) --
The port range to support for connections from clients to your accelerator.
Separately, you set port ranges for endpoints. For more information, see About endpoints for custom routing accelerators .
(dict) --
A complex type for a range of ports for a listener.
FromPort (integer) --
The first port in the range of ports, inclusive.
ToPort (integer) --
The last port in the range of ports, inclusive.
GlobalAccelerator.Paginator.
ListCustomRoutingPortMappings
¶paginator = client.get_paginator('list_custom_routing_port_mappings')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from GlobalAccelerator.Client.list_custom_routing_port_mappings()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
AcceleratorArn='string',
EndpointGroupArn='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) of the accelerator to list the custom routing port mappings for.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'PortMappings': [
{
'AcceleratorPort': 123,
'EndpointGroupArn': 'string',
'EndpointId': 'string',
'DestinationSocketAddress': {
'IpAddress': 'string',
'Port': 123
},
'Protocols': [
'TCP'|'UDP',
],
'DestinationTrafficState': 'ALLOW'|'DENY'
},
],
}
Response Structure
(dict) --
PortMappings (list) --
The port mappings for a custom routing accelerator.
(dict) --
Returns the ports and associated IP addresses and ports of Amazon EC2 instances in your virtual private cloud (VPC) subnets. Custom routing is a port mapping protocol in Global Accelerator that statically associates port ranges with VPC subnets, which allows Global Accelerator to route to specific instances and ports within one or more subnets.
AcceleratorPort (integer) --
The accelerator port.
EndpointGroupArn (string) --
The Amazon Resource Name (ARN) of the endpoint group.
EndpointId (string) --
The IP address of the VPC subnet (the subnet ID).
DestinationSocketAddress (dict) --
The EC2 instance IP address and port number in the virtual private cloud (VPC) subnet.
IpAddress (string) --
The IP address for the socket address.
Port (integer) --
The port for the socket address.
Protocols (list) --
The protocols supported by the endpoint group.
DestinationTrafficState (string) --
Indicates whether or not a port mapping destination can receive traffic. The value is either ALLOW, if traffic is allowed to the destination, or DENY, if traffic is not allowed to the destination.
GlobalAccelerator.Paginator.
ListCustomRoutingPortMappingsByDestination
¶paginator = client.get_paginator('list_custom_routing_port_mappings_by_destination')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from GlobalAccelerator.Client.list_custom_routing_port_mappings_by_destination()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
EndpointId='string',
DestinationAddress='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The ID for the virtual private cloud (VPC) subnet.
[REQUIRED]
The endpoint IP address in a virtual private cloud (VPC) subnet for which you want to receive back port mappings.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'DestinationPortMappings': [
{
'AcceleratorArn': 'string',
'AcceleratorSocketAddresses': [
{
'IpAddress': 'string',
'Port': 123
},
],
'EndpointGroupArn': 'string',
'EndpointId': 'string',
'EndpointGroupRegion': 'string',
'DestinationSocketAddress': {
'IpAddress': 'string',
'Port': 123
},
'IpAddressType': 'IPV4'|'DUAL_STACK',
'DestinationTrafficState': 'ALLOW'|'DENY'
},
],
}
Response Structure
(dict) --
DestinationPortMappings (list) --
The port mappings for the endpoint IP address that you specified in the request.
(dict) --
The port mappings for a specified endpoint IP address (destination).
AcceleratorArn (string) --
The Amazon Resource Name (ARN) of the custom routing accelerator that you have port mappings for.
AcceleratorSocketAddresses (list) --
The IP address/port combinations (sockets) that map to a given destination socket address.
(dict) --
An IP address/port combination.
IpAddress (string) --
The IP address for the socket address.
Port (integer) --
The port for the socket address.
EndpointGroupArn (string) --
The Amazon Resource Name (ARN) of the endpoint group.
EndpointId (string) --
The ID for the virtual private cloud (VPC) subnet.
EndpointGroupRegion (string) --
The Amazon Web Services Region for the endpoint group.
DestinationSocketAddress (dict) --
The endpoint IP address/port combination for traffic received on the accelerator socket address.
IpAddress (string) --
The IP address for the socket address.
Port (integer) --
The port for the socket address.
IpAddressType (string) --
The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4.
DestinationTrafficState (string) --
Indicates whether or not a port mapping destination can receive traffic. The value is either ALLOW, if traffic is allowed to the destination, or DENY, if traffic is not allowed to the destination.
GlobalAccelerator.Paginator.
ListEndpointGroups
¶paginator = client.get_paginator('list_endpoint_groups')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from GlobalAccelerator.Client.list_endpoint_groups()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
ListenerArn='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) of the listener.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'EndpointGroups': [
{
'EndpointGroupArn': 'string',
'EndpointGroupRegion': 'string',
'EndpointDescriptions': [
{
'EndpointId': 'string',
'Weight': 123,
'HealthState': 'INITIAL'|'HEALTHY'|'UNHEALTHY',
'HealthReason': 'string',
'ClientIPPreservationEnabled': True|False
},
],
'TrafficDialPercentage': ...,
'HealthCheckPort': 123,
'HealthCheckProtocol': 'TCP'|'HTTP'|'HTTPS',
'HealthCheckPath': 'string',
'HealthCheckIntervalSeconds': 123,
'ThresholdCount': 123,
'PortOverrides': [
{
'ListenerPort': 123,
'EndpointPort': 123
},
]
},
],
}
Response Structure
(dict) --
EndpointGroups (list) --
The list of the endpoint groups associated with a listener.
(dict) --
A complex type for the endpoint group. An Amazon Web Services Region can have only one endpoint group for a specific listener.
EndpointGroupArn (string) --
The Amazon Resource Name (ARN) of the endpoint group.
EndpointGroupRegion (string) --
The Amazon Web Services Region where the endpoint group is located.
EndpointDescriptions (list) --
The list of endpoint objects.
(dict) --
A complex type for an endpoint. Each endpoint group can include one or more endpoints, such as load balancers.
EndpointId (string) --
An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID.
An Application Load Balancer can be either internal or internet-facing.
Weight (integer) --
The weight associated with the endpoint. When you add weights to endpoints, you configure Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint weights in the Global Accelerator Developer Guide .
HealthState (string) --
The health status of the endpoint.
HealthReason (string) --
Returns a null result.
ClientIPPreservationEnabled (boolean) --
Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false. The default value is true for new accelerators.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
Client IP address preservation is supported, in specific Amazon Web Services Regions, for endpoints that are Application Load Balancers and Amazon EC2 instances.
For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide .
TrafficDialPercentage (float) --
The percentage of traffic to send to an Amazon Web Services Region. Additional traffic is distributed to other endpoint groups for this listener.
Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.
The default value is 100.
HealthCheckPort (integer) --
The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.
The default port is the port for the listener that this endpoint group is associated with. If the listener port is a list, Global Accelerator uses the first specified port in the list of ports.
HealthCheckProtocol (string) --
The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. The default value is TCP.
HealthCheckPath (string) --
If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks. The default is slash (/).
HealthCheckIntervalSeconds (integer) --
The time—10 seconds or 30 seconds—between health checks for each endpoint. The default value is 30.
ThresholdCount (integer) --
The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3.
PortOverrides (list) --
Allows you to override the destination ports used to route traffic to an endpoint. Using a port override lets you map a list of external destination ports (that your users send traffic to) to a list of internal destination ports that you want an application endpoint to receive traffic on.
(dict) --
Override specific listener ports used to route traffic to endpoints that are part of an endpoint group. For example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.
For more information, see Overriding listener ports in the Global Accelerator Developer Guide .
ListenerPort (integer) --
The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on.
EndpointPort (integer) --
The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.
GlobalAccelerator.Paginator.
ListListeners
¶paginator = client.get_paginator('list_listeners')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from GlobalAccelerator.Client.list_listeners()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
AcceleratorArn='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) of the accelerator for which you want to list listener objects.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'Listeners': [
{
'ListenerArn': 'string',
'PortRanges': [
{
'FromPort': 123,
'ToPort': 123
},
],
'Protocol': 'TCP'|'UDP',
'ClientAffinity': 'NONE'|'SOURCE_IP'
},
],
}
Response Structure
(dict) --
Listeners (list) --
The list of listeners for an accelerator.
(dict) --
A complex type for a listener.
ListenerArn (string) --
The Amazon Resource Name (ARN) of the listener.
PortRanges (list) --
The list of port ranges for the connections from clients to the accelerator.
(dict) --
A complex type for a range of ports for a listener.
FromPort (integer) --
The first port in the range of ports, inclusive.
ToPort (integer) --
The last port in the range of ports, inclusive.
Protocol (string) --
The protocol for the connections from clients to the accelerator.
ClientAffinity (string) --
Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Client affinity gives you control over whether to always route each client to the same specific endpoint.
Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is NONE
, Global Accelerator uses the "five-tuple" (5-tuple) properties—source IP address, source port, destination IP address, destination port, and protocol—to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes.
If you want a given client to always be routed to the same endpoint, set client affinity to SOURCE_IP
instead. When you use the SOURCE_IP
setting, Global Accelerator uses the "two-tuple" (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value.
The default value is NONE
.