We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.GlobalAccelerator

Inherits:
AWS.Service show all
Identifier:
globalaccelerator
API Version:
2018-08-08
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

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.

  • By using a standard accelerator, you can improve availability of your internet applications that are used by a global audience. With a standard accelerator, Global Accelerator directs traffic to optimal endpoints over the Amazon Web Services global network.

  • For other scenarios, you might choose a custom routing accelerator. With a custom routing accelerator, you can use application logic to directly map one or more users to a specific endpoint among many endpoints.

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 Amazon Web Services 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 to Global 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.

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.

Sending a Request Using GlobalAccelerator

var globalaccelerator = new AWS.GlobalAccelerator();
globalaccelerator.addCustomRoutingEndpoints(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the GlobalAccelerator object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var globalaccelerator = new AWS.GlobalAccelerator({apiVersion: '2018-08-08'});

You can also set the API version globally in AWS.config.apiVersions using the globalaccelerator service identifier:

AWS.config.apiVersions = {
  globalaccelerator: '2018-08-08',
  // other service API versions
};

var globalaccelerator = new AWS.GlobalAccelerator();

Version:

  • 2018-08-08

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.GlobalAccelerator(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a GlobalAccelerator object

var globalaccelerator = new AWS.GlobalAccelerator({apiVersion: '2018-08-08'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.GlobalAccelerator.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.GlobalAccelerator.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.GlobalAccelerator.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

addCustomRoutingEndpoints(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the addCustomRoutingEndpoints operation

var params = {
  EndpointConfigurations: [ /* required */
    {
      AttachmentArn: 'STRING_VALUE',
      EndpointId: 'STRING_VALUE'
    },
    /* more items */
  ],
  EndpointGroupArn: 'STRING_VALUE' /* required */
};
globalaccelerator.addCustomRoutingEndpoints(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointConfigurations — (Array<map>)

      The list of endpoint objects to add to a custom routing accelerator.

      • EndpointId — (String)

        An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.

      • AttachmentArn — (String)

        The Amazon Resource Name (ARN) of the cross-account attachment that specifies the endpoints (resources) that can be added to accelerators and principals that have permission to add the endpoints.

    • EndpointGroupArn — (String)

      The Amazon Resource Name (ARN) of the endpoint group for the custom routing endpoint.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EndpointDescriptions — (Array<map>)

        The endpoint objects added to the custom routing accelerator.

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

addEndpoints(params = {}, callback) ⇒ AWS.Request

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 in Global Accelerator:

  • It's faster, because Global Accelerator only has to resolve the new endpoints that you're adding, rather than resolving new and existing endpoints.

  • It's more convenient, because you don't need to specify the current endpoints that are already in the endpoint group, in addition to the new endpoints that you want to add.

For information about endpoint types and requirements for endpoints that you can add to Global Accelerator, see Endpoints for standard accelerators in the Global Accelerator Developer Guide.

Service Reference:

Examples:

Calling the addEndpoints operation

var params = {
  EndpointConfigurations: [ /* required */
    {
      AttachmentArn: 'STRING_VALUE',
      ClientIPPreservationEnabled: true || false,
      EndpointId: 'STRING_VALUE',
      Weight: 'NUMBER_VALUE'
    },
    /* more items */
  ],
  EndpointGroupArn: 'STRING_VALUE' /* required */
};
globalaccelerator.addEndpoints(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointConfigurations — (Array<map>)

      The list of endpoint objects.

      • 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. A resource must be valid and active when you add it as an endpoint.

        For cross-account endpoints, this must be the ARN of the resource.

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

      • 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 Application Load Balancer endpoints.

        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, Amazon EC2 instances, and Network Load Balancers with security groups. IMPORTANT: You cannot use client IP address preservation with Network Load Balancers with TLS listeners.

        For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide.

      • AttachmentArn — (String)

        The Amazon Resource Name (ARN) of the cross-account attachment that specifies the endpoints (resources) that can be added to accelerators and principals that have permission to add the endpoints.

    • EndpointGroupArn — (String)

      The Amazon Resource Name (ARN) of the endpoint group.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EndpointDescriptions — (Array<map>)

        The list of endpoint objects.

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

          Possible values include:
          • "INITIAL"
          • "HEALTHY"
          • "UNHEALTHY"
        • 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 Application Load Balancers endpoints.

          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, Amazon EC2 instances, and Network Load Balancers with security groups. IMPORTANT: You cannot use client IP address preservation with Network Load Balancers with TLS listeners.

          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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

advertiseByoipCidr(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the advertiseByoipCidr operation

var params = {
  Cidr: 'STRING_VALUE' /* required */
};
globalaccelerator.advertiseByoipCidr(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Cidr — (String)

      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.

      For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ByoipCidr — (map)

        Information about the address range.

        • Cidr — (String)

          The address range, in CIDR notation.

          For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

        • State — (String)

          The state of the address pool.

          Possible values include:
          • "PENDING_PROVISIONING"
          • "READY"
          • "PENDING_ADVERTISING"
          • "ADVERTISING"
          • "PENDING_WITHDRAWING"
          • "PENDING_DEPROVISIONING"
          • "DEPROVISIONED"
          • "FAILED_PROVISION"
          • "FAILED_ADVERTISING"
          • "FAILED_WITHDRAW"
          • "FAILED_DEPROVISION"
        • Events — (Array<map>)

          A history of status changes for 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 — (Date)

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

allowCustomRoutingTraffic(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the allowCustomRoutingTraffic operation

var params = {
  EndpointGroupArn: 'STRING_VALUE', /* required */
  EndpointId: 'STRING_VALUE', /* required */
  AllowAllTrafficToEndpoint: true || false,
  DestinationAddresses: [
    'STRING_VALUE',
    /* more items */
  ],
  DestinationPorts: [
    'NUMBER_VALUE',
    /* more items */
  ]
};
globalaccelerator.allowCustomRoutingTraffic(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointGroupArn — (String)

      The Amazon Resource Name (ARN) of the endpoint group.

    • EndpointId — (String)

      An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.

    • DestinationAddresses — (Array<String>)

      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 if AllowAllTrafficToEndpoint is FALSE or is not specified.

    • DestinationPorts — (Array<Integer>)

      A list of specific Amazon EC2 instance ports (destination ports) that you want to allow to receive traffic.

    • AllowAllTrafficToEndpoint — (Boolean)

      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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createAccelerator(params = {}, callback) ⇒ AWS.Request

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.

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 Amazon Web Services CLI commands.

Service Reference:

Examples:

Calling the createAccelerator operation

var params = {
  IdempotencyToken: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  Enabled: true || false,
  IpAddressType: IPV4 | DUAL_STACK,
  IpAddresses: [
    'STRING_VALUE',
    /* more items */
  ],
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
globalaccelerator.createAccelerator(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      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.

    • IpAddressType — (String)

      The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.

      Possible values include:
      • "IPV4"
      • "DUAL_STACK"
    • IpAddresses — (Array<String>)

      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.

    • Enabled — (Boolean)

      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.

    • IdempotencyToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an accelerator.

      If a token is not provided, the SDK will use a version 4 UUID.
    • Tags — (Array<map>)

      Create tags for an accelerator.

      For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.

      • Keyrequired — (String)

        A string that contains a Tag key.

      • Valuerequired — (String)

        A string that contains a Tag value.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Accelerator — (map)

        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.

          Possible values include:
          • "IPV4"
          • "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 — (Array<map>)

          The static IP addresses that Global Accelerator associates with the accelerator.

          • IpFamily — (String)

            IpFamily is deprecated and has been replaced by IpAddressFamily.

          • IpAddresses — (Array<String>)

            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.

            Possible values include:
            • "IPv4"
            • "IPv6"
        • 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.

          Possible values include:
          • "DEPLOYED"
          • "IN_PROGRESS"
        • CreatedTime — (Date)

          The date and time that the accelerator was created.

        • LastModifiedTime — (Date)

          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 — (Array<map>)

          A history of changes that you make to an accelerator in Global Accelerator.

          • 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 — (Date)

            A timestamp for when you update an accelerator in Global Accelerator from IPv4 to dual-stack, or dual-stack to IPv4.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createCrossAccountAttachment(params = {}, callback) ⇒ AWS.Request

Create a cross-account attachment in Global Accelerator. You create a cross-account attachment to specify the principals who have permission to work with resources in accelerators in their own account. You specify, in the same attachment, the resources that are shared.

A principal can be an Amazon Web Services account number or the Amazon Resource Name (ARN) for an accelerator. For account numbers that are listed as principals, to work with a resource listed in the attachment, you must sign in to an account specified as a principal. Then, you can work with resources that are listed, with any of your accelerators. If an accelerator ARN is listed in the cross-account attachment as a principal, anyone with permission to make updates to the accelerator can work with resources that are listed in the attachment.

Specify each principal and resource separately. To specify two CIDR address pools, list them individually under Resources, and so on. For a command line operation, for example, you might use a statement like the following:

"Resources": [{"Cidr": "169.254.60.0/24"},{"Cidr": "169.254.59.0/24"}]

For more information, see Working with cross-account attachments and resources in Global Accelerator in the Global Accelerator Developer Guide.

Service Reference:

Examples:

Calling the createCrossAccountAttachment operation

var params = {
  IdempotencyToken: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  Principals: [
    'STRING_VALUE',
    /* more items */
  ],
  Resources: [
    {
      Cidr: 'STRING_VALUE',
      EndpointId: 'STRING_VALUE',
      Region: 'STRING_VALUE'
    },
    /* more items */
  ],
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
globalaccelerator.createCrossAccountAttachment(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The name of the cross-account attachment.

    • Principals — (Array<String>)

      The principals to include in the cross-account attachment. A principal can be an Amazon Web Services account number or the Amazon Resource Name (ARN) for an accelerator.

    • Resources — (Array<map>)

      The Amazon Resource Names (ARNs) for the resources to include in the cross-account attachment. A resource can be any supported Amazon Web Services resource type for Global Accelerator or a CIDR range for a bring your own IP address (BYOIP) address pool.

      • EndpointId — (String)

        The endpoint ID for the endpoint that is specified as a Amazon Web Services resource.

        An endpoint ID for the cross-account feature is the ARN of an Amazon Web Services resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.

      • Cidr — (String)

        An IP address range, in CIDR format, that is specified as resource. The address must be provisioned and advertised in Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator

        For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

      • Region — (String)

        The Amazon Web Services Region where a shared endpoint resource is located.

    • IdempotencyToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.

      If a token is not provided, the SDK will use a version 4 UUID.
    • Tags — (Array<map>)

      Add tags for a cross-account attachment.

      For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.

      • Keyrequired — (String)

        A string that contains a Tag key.

      • Valuerequired — (String)

        A string that contains a Tag value.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • CrossAccountAttachment — (map)

        Information about the cross-account attachment.

        • AttachmentArn — (String)

          The Amazon Resource Name (ARN) of the cross-account attachment.

        • Name — (String)

          The name of the cross-account attachment.

        • Principals — (Array<String>)

          The principals included in the cross-account attachment.

        • Resources — (Array<map>)

          The resources included in the cross-account attachment.

          • EndpointId — (String)

            The endpoint ID for the endpoint that is specified as a Amazon Web Services resource.

            An endpoint ID for the cross-account feature is the ARN of an Amazon Web Services resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.

          • Cidr — (String)

            An IP address range, in CIDR format, that is specified as resource. The address must be provisioned and advertised in Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator

            For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

          • Region — (String)

            The Amazon Web Services Region where a shared endpoint resource is located.

        • LastModifiedTime — (Date)

          The date and time that the cross-account attachment was last modified.

        • CreatedTime — (Date)

          The date and time that the cross-account attachment was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createCustomRoutingAccelerator(params = {}, callback) ⇒ AWS.Request

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.

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 Amazon Web Services CLI commands.

Service Reference:

Examples:

Calling the createCustomRoutingAccelerator operation

var params = {
  IdempotencyToken: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  Enabled: true || false,
  IpAddressType: IPV4 | DUAL_STACK,
  IpAddresses: [
    'STRING_VALUE',
    /* more items */
  ],
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
globalaccelerator.createCustomRoutingAccelerator(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      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.

    • IpAddressType — (String)

      The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4.

      Possible values include:
      • "IPV4"
      • "DUAL_STACK"
    • IpAddresses — (Array<String>)

      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.

    • Enabled — (Boolean)

      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.

    • IdempotencyToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.

      If a token is not provided, the SDK will use a version 4 UUID.
    • Tags — (Array<map>)

      Create tags for an accelerator.

      For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.

      • Keyrequired — (String)

        A string that contains a Tag key.

      • Valuerequired — (String)

        A string that contains a Tag value.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Accelerator — (map)

        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.

          Possible values include:
          • "IPV4"
          • "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 — (Array<map>)

          The static IP addresses that Global Accelerator associates with the accelerator.

          • IpFamily — (String)

            IpFamily is deprecated and has been replaced by IpAddressFamily.

          • IpAddresses — (Array<String>)

            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.

            Possible values include:
            • "IPv4"
            • "IPv6"
        • 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.

          Possible values include:
          • "DEPLOYED"
          • "IN_PROGRESS"
        • CreatedTime — (Date)

          The date and time that the accelerator was created.

        • LastModifiedTime — (Date)

          The date and time that the accelerator was last modified.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createCustomRoutingEndpointGroup(params = {}, callback) ⇒ AWS.Request

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.

Examples:

Calling the createCustomRoutingEndpointGroup operation

var params = {
  DestinationConfigurations: [ /* required */
    {
      FromPort: 'NUMBER_VALUE', /* required */
      Protocols: [ /* required */
        TCP | UDP,
        /* more items */
      ],
      ToPort: 'NUMBER_VALUE' /* required */
    },
    /* more items */
  ],
  EndpointGroupRegion: 'STRING_VALUE', /* required */
  IdempotencyToken: 'STRING_VALUE', /* required */
  ListenerArn: 'STRING_VALUE' /* required */
};
globalaccelerator.createCustomRoutingEndpointGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ListenerArn — (String)

      The Amazon Resource Name (ARN) of the listener for a custom routing endpoint.

    • EndpointGroupRegion — (String)

      The Amazon Web Services Region where the endpoint group is located. A listener can have only one endpoint group in a specific Region.

    • DestinationConfigurations — (Array<map>)

      Sets the port range and protocol for all endpoints (virtual private cloud subnets) in a custom routing endpoint group to accept client traffic on.

      • FromPortrequired — (Integer)

        The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.

      • ToPortrequired — (Integer)

        The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.

      • Protocolsrequired — (Array<String>)

        The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either TCP or UDP.

    • IdempotencyToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EndpointGroup — (map)

        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 — (Array<map>)

          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 — (Array<String>)

            The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either TCP or UDP.

        • EndpointDescriptions — (Array<map>)

          For a custom routing accelerator, describes the endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.

          • EndpointId — (String)

            An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createCustomRoutingListener(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the createCustomRoutingListener operation

var params = {
  AcceleratorArn: 'STRING_VALUE', /* required */
  IdempotencyToken: 'STRING_VALUE', /* required */
  PortRanges: [ /* required */
    {
      FromPort: 'NUMBER_VALUE',
      ToPort: 'NUMBER_VALUE'
    },
    /* more items */
  ]
};
globalaccelerator.createCustomRoutingListener(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of the accelerator for a custom routing listener.

    • PortRanges — (Array<map>)

      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.

      • FromPort — (Integer)

        The first port in the range of ports, inclusive.

      • ToPort — (Integer)

        The last port in the range of ports, inclusive.

    • IdempotencyToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Listener — (map)

        The listener that you've created for a custom routing accelerator.

        • ListenerArn — (String)

          The Amazon Resource Name (ARN) of the listener.

        • PortRanges — (Array<map>)

          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.

          • FromPort — (Integer)

            The first port in the range of ports, inclusive.

          • ToPort — (Integer)

            The last port in the range of ports, inclusive.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createEndpointGroup(params = {}, callback) ⇒ AWS.Request

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.

For more information about endpoint types and requirements for endpoints that you can add to Global Accelerator, see Endpoints for standard accelerators in the Global Accelerator Developer Guide.

Service Reference:

Examples:

Calling the createEndpointGroup operation

var params = {
  EndpointGroupRegion: 'STRING_VALUE', /* required */
  IdempotencyToken: 'STRING_VALUE', /* required */
  ListenerArn: 'STRING_VALUE', /* required */
  EndpointConfigurations: [
    {
      AttachmentArn: 'STRING_VALUE',
      ClientIPPreservationEnabled: true || false,
      EndpointId: 'STRING_VALUE',
      Weight: 'NUMBER_VALUE'
    },
    /* more items */
  ],
  HealthCheckIntervalSeconds: 'NUMBER_VALUE',
  HealthCheckPath: 'STRING_VALUE',
  HealthCheckPort: 'NUMBER_VALUE',
  HealthCheckProtocol: TCP | HTTP | HTTPS,
  PortOverrides: [
    {
      EndpointPort: 'NUMBER_VALUE',
      ListenerPort: 'NUMBER_VALUE'
    },
    /* more items */
  ],
  ThresholdCount: 'NUMBER_VALUE',
  TrafficDialPercentage: 'NUMBER_VALUE'
};
globalaccelerator.createEndpointGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ListenerArn — (String)

      The Amazon Resource Name (ARN) of the listener.

    • EndpointGroupRegion — (String)

      The Amazon Web Services Region where the endpoint group is located. A listener can have only one endpoint group in a specific Region.

    • EndpointConfigurations — (Array<map>)

      The list of endpoint objects.

      • 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. A resource must be valid and active when you add it as an endpoint.

        For cross-account endpoints, this must be the ARN of the resource.

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

      • 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 Application Load Balancer endpoints.

        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, Amazon EC2 instances, and Network Load Balancers with security groups. IMPORTANT: You cannot use client IP address preservation with Network Load Balancers with TLS listeners.

        For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide.

      • AttachmentArn — (String)

        The Amazon Resource Name (ARN) of the cross-account attachment that specifies the endpoints (resources) that can be added to accelerators and principals that have permission to add the endpoints.

    • 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 check the health of endpoints that are part of this endpoint group. The default port is the listener port that this endpoint group is associated with. If listener port is a list of ports, Global Accelerator uses the first port in the list.

    • HealthCheckProtocol — (String)

      The protocol that Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default value is TCP.

      Possible values include:
      • "TCP"
      • "HTTP"
      • "HTTPS"
    • HealthCheckPath — (String)

      If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. The default value is slash (/).

    • HealthCheckIntervalSeconds — (Integer)

      The time—10 seconds or 30 seconds—between each health check for an 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.

    • IdempotencyToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.

      If a token is not provided, the SDK will use a version 4 UUID.
    • PortOverrides — (Array<map>)

      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.

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EndpointGroup — (map)

        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 — (Array<map>)

          The list of endpoint objects.

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

            Possible values include:
            • "INITIAL"
            • "HEALTHY"
            • "UNHEALTHY"
          • 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 Application Load Balancers endpoints.

            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, Amazon EC2 instances, and Network Load Balancers with security groups. IMPORTANT: You cannot use client IP address preservation with Network Load Balancers with TLS listeners.

            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.

          Possible values include:
          • "TCP"
          • "HTTP"
          • "HTTPS"
        • 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 — (Array<map>)

          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.

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createListener(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the createListener operation

var params = {
  AcceleratorArn: 'STRING_VALUE', /* required */
  IdempotencyToken: 'STRING_VALUE', /* required */
  PortRanges: [ /* required */
    {
      FromPort: 'NUMBER_VALUE',
      ToPort: 'NUMBER_VALUE'
    },
    /* more items */
  ],
  Protocol: TCP | UDP, /* required */
  ClientAffinity: NONE | SOURCE_IP
};
globalaccelerator.createListener(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of your accelerator.

    • PortRanges — (Array<map>)

      The list of port ranges to support for connections from clients to your accelerator.

      • 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 connections from clients to your accelerator.

      Possible values include:
      • "TCP"
      • "UDP"
    • 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.

      Possible values include:
      • "NONE"
      • "SOURCE_IP"
    • IdempotencyToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Listener — (map)

        The listener that you've created.

        • ListenerArn — (String)

          The Amazon Resource Name (ARN) of the listener.

        • PortRanges — (Array<map>)

          The list of port ranges for the connections from clients to the accelerator.

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

          Possible values include:
          • "TCP"
          • "UDP"
        • 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.

          Possible values include:
          • "NONE"
          • "SOURCE_IP"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteAccelerator(params = {}, callback) ⇒ AWS.Request

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.

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.

Service Reference:

Examples:

Calling the deleteAccelerator operation

var params = {
  AcceleratorArn: 'STRING_VALUE' /* required */
};
globalaccelerator.deleteAccelerator(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of an accelerator.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteCrossAccountAttachment(params = {}, callback) ⇒ AWS.Request

Delete a cross-account attachment. When you delete an attachment, Global Accelerator revokes the permission to use the resources in the attachment from all principals in the list of principals. Global Accelerator revokes the permission for specific resources.

For more information, see Working with cross-account attachments and resources in Global Accelerator in the Global Accelerator Developer Guide.

Service Reference:

Examples:

Calling the deleteCrossAccountAttachment operation

var params = {
  AttachmentArn: 'STRING_VALUE' /* required */
};
globalaccelerator.deleteCrossAccountAttachment(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AttachmentArn — (String)

      The Amazon Resource Name (ARN) for the cross-account attachment to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteCustomRoutingAccelerator(params = {}, callback) ⇒ AWS.Request

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.

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.

Service Reference:

Examples:

Calling the deleteCustomRoutingAccelerator operation

var params = {
  AcceleratorArn: 'STRING_VALUE' /* required */
};
globalaccelerator.deleteCustomRoutingAccelerator(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of the custom routing accelerator to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteCustomRoutingEndpointGroup(params = {}, callback) ⇒ AWS.Request

Delete an endpoint group from a listener for a custom routing accelerator.

Examples:

Calling the deleteCustomRoutingEndpointGroup operation

var params = {
  EndpointGroupArn: 'STRING_VALUE' /* required */
};
globalaccelerator.deleteCustomRoutingEndpointGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointGroupArn — (String)

      The Amazon Resource Name (ARN) of the endpoint group to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteCustomRoutingListener(params = {}, callback) ⇒ AWS.Request

Delete a listener for a custom routing accelerator.

Service Reference:

Examples:

Calling the deleteCustomRoutingListener operation

var params = {
  ListenerArn: 'STRING_VALUE' /* required */
};
globalaccelerator.deleteCustomRoutingListener(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ListenerArn — (String)

      The Amazon Resource Name (ARN) of the listener to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteEndpointGroup(params = {}, callback) ⇒ AWS.Request

Delete an endpoint group from a listener.

Service Reference:

Examples:

Calling the deleteEndpointGroup operation

var params = {
  EndpointGroupArn: 'STRING_VALUE' /* required */
};
globalaccelerator.deleteEndpointGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointGroupArn — (String)

      The Amazon Resource Name (ARN) of the endpoint group to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteListener(params = {}, callback) ⇒ AWS.Request

Delete a listener from an accelerator.

Service Reference:

Examples:

Calling the deleteListener operation

var params = {
  ListenerArn: 'STRING_VALUE' /* required */
};
globalaccelerator.deleteListener(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ListenerArn — (String)

      The Amazon Resource Name (ARN) of the listener.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

denyCustomRoutingTraffic(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the denyCustomRoutingTraffic operation

var params = {
  EndpointGroupArn: 'STRING_VALUE', /* required */
  EndpointId: 'STRING_VALUE', /* required */
  DenyAllTrafficToEndpoint: true || false,
  DestinationAddresses: [
    'STRING_VALUE',
    /* more items */
  ],
  DestinationPorts: [
    'NUMBER_VALUE',
    /* more items */
  ]
};
globalaccelerator.denyCustomRoutingTraffic(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointGroupArn — (String)

      The Amazon Resource Name (ARN) of the endpoint group.

    • EndpointId — (String)

      An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.

    • DestinationAddresses — (Array<String>)

      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.

    • DestinationPorts — (Array<Integer>)

      A list of specific Amazon EC2 instance ports (destination ports) in a subnet endpoint that you want to prevent from receiving traffic.

    • DenyAllTrafficToEndpoint — (Boolean)

      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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deprovisionByoipCidr(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the deprovisionByoipCidr operation

var params = {
  Cidr: 'STRING_VALUE' /* required */
};
globalaccelerator.deprovisionByoipCidr(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Cidr — (String)

      The address range, in CIDR notation. The prefix must be the same prefix that you specified when you provisioned the address range.

      For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ByoipCidr — (map)

        Information about the address range.

        • Cidr — (String)

          The address range, in CIDR notation.

          For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

        • State — (String)

          The state of the address pool.

          Possible values include:
          • "PENDING_PROVISIONING"
          • "READY"
          • "PENDING_ADVERTISING"
          • "ADVERTISING"
          • "PENDING_WITHDRAWING"
          • "PENDING_DEPROVISIONING"
          • "DEPROVISIONED"
          • "FAILED_PROVISION"
          • "FAILED_ADVERTISING"
          • "FAILED_WITHDRAW"
          • "FAILED_DEPROVISION"
        • Events — (Array<map>)

          A history of status changes for 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 — (Date)

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeAccelerator(params = {}, callback) ⇒ AWS.Request

Describe an accelerator.

Service Reference:

Examples:

Calling the describeAccelerator operation

var params = {
  AcceleratorArn: 'STRING_VALUE' /* required */
};
globalaccelerator.describeAccelerator(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of the accelerator to describe.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Accelerator — (map)

        The description of the 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.

          Possible values include:
          • "IPV4"
          • "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 — (Array<map>)

          The static IP addresses that Global Accelerator associates with the accelerator.

          • IpFamily — (String)

            IpFamily is deprecated and has been replaced by IpAddressFamily.

          • IpAddresses — (Array<String>)

            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.

            Possible values include:
            • "IPv4"
            • "IPv6"
        • 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.

          Possible values include:
          • "DEPLOYED"
          • "IN_PROGRESS"
        • CreatedTime — (Date)

          The date and time that the accelerator was created.

        • LastModifiedTime — (Date)

          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 — (Array<map>)

          A history of changes that you make to an accelerator in Global Accelerator.

          • 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 — (Date)

            A timestamp for when you update an accelerator in Global Accelerator from IPv4 to dual-stack, or dual-stack to IPv4.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeAcceleratorAttributes(params = {}, callback) ⇒ AWS.Request

Describe the attributes of an accelerator.

Service Reference:

Examples:

Calling the describeAcceleratorAttributes operation

var params = {
  AcceleratorArn: 'STRING_VALUE' /* required */
};
globalaccelerator.describeAcceleratorAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of the accelerator with the attributes that you want to describe.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AcceleratorAttributes — (map)

        The attributes of 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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeCrossAccountAttachment(params = {}, callback) ⇒ AWS.Request

Gets configuration information about a cross-account attachment.

Service Reference:

Examples:

Calling the describeCrossAccountAttachment operation

var params = {
  AttachmentArn: 'STRING_VALUE' /* required */
};
globalaccelerator.describeCrossAccountAttachment(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AttachmentArn — (String)

      The Amazon Resource Name (ARN) for the cross-account attachment to describe.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • CrossAccountAttachment — (map)

        Information about the cross-account attachment.

        • AttachmentArn — (String)

          The Amazon Resource Name (ARN) of the cross-account attachment.

        • Name — (String)

          The name of the cross-account attachment.

        • Principals — (Array<String>)

          The principals included in the cross-account attachment.

        • Resources — (Array<map>)

          The resources included in the cross-account attachment.

          • EndpointId — (String)

            The endpoint ID for the endpoint that is specified as a Amazon Web Services resource.

            An endpoint ID for the cross-account feature is the ARN of an Amazon Web Services resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.

          • Cidr — (String)

            An IP address range, in CIDR format, that is specified as resource. The address must be provisioned and advertised in Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator

            For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

          • Region — (String)

            The Amazon Web Services Region where a shared endpoint resource is located.

        • LastModifiedTime — (Date)

          The date and time that the cross-account attachment was last modified.

        • CreatedTime — (Date)

          The date and time that the cross-account attachment was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeCustomRoutingAccelerator(params = {}, callback) ⇒ AWS.Request

Describe a custom routing accelerator.

Examples:

Calling the describeCustomRoutingAccelerator operation

var params = {
  AcceleratorArn: 'STRING_VALUE' /* required */
};
globalaccelerator.describeCustomRoutingAccelerator(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of the accelerator to describe.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Accelerator — (map)

        The description of the 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.

          Possible values include:
          • "IPV4"
          • "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 — (Array<map>)

          The static IP addresses that Global Accelerator associates with the accelerator.

          • IpFamily — (String)

            IpFamily is deprecated and has been replaced by IpAddressFamily.

          • IpAddresses — (Array<String>)

            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.

            Possible values include:
            • "IPv4"
            • "IPv6"
        • 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.

          Possible values include:
          • "DEPLOYED"
          • "IN_PROGRESS"
        • CreatedTime — (Date)

          The date and time that the accelerator was created.

        • LastModifiedTime — (Date)

          The date and time that the accelerator was last modified.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeCustomRoutingAcceleratorAttributes(params = {}, callback) ⇒ AWS.Request

Describe the attributes of a custom routing accelerator.

Examples:

Calling the describeCustomRoutingAcceleratorAttributes operation

var params = {
  AcceleratorArn: 'STRING_VALUE' /* required */
};
globalaccelerator.describeCustomRoutingAcceleratorAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of the custom routing accelerator to describe the attributes for.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AcceleratorAttributes — (map)

        The attributes of the 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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeCustomRoutingEndpointGroup(params = {}, callback) ⇒ AWS.Request

Describe an endpoint group for a custom routing accelerator.

Examples:

Calling the describeCustomRoutingEndpointGroup operation

var params = {
  EndpointGroupArn: 'STRING_VALUE' /* required */
};
globalaccelerator.describeCustomRoutingEndpointGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointGroupArn — (String)

      The Amazon Resource Name (ARN) of the endpoint group to describe.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EndpointGroup — (map)

        The description of an endpoint group 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 — (Array<map>)

          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 — (Array<String>)

            The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either TCP or UDP.

        • EndpointDescriptions — (Array<map>)

          For a custom routing accelerator, describes the endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.

          • EndpointId — (String)

            An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeCustomRoutingListener(params = {}, callback) ⇒ AWS.Request

The description of a listener for a custom routing accelerator.

Service Reference:

Examples:

Calling the describeCustomRoutingListener operation

var params = {
  ListenerArn: 'STRING_VALUE' /* required */
};
globalaccelerator.describeCustomRoutingListener(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ListenerArn — (String)

      The Amazon Resource Name (ARN) of the listener to describe.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Listener — (map)

        The description of a listener for a custom routing accelerator.

        • ListenerArn — (String)

          The Amazon Resource Name (ARN) of the listener.

        • PortRanges — (Array<map>)

          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.

          • FromPort — (Integer)

            The first port in the range of ports, inclusive.

          • ToPort — (Integer)

            The last port in the range of ports, inclusive.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeEndpointGroup(params = {}, callback) ⇒ AWS.Request

Describe an endpoint group.

Service Reference:

Examples:

Calling the describeEndpointGroup operation

var params = {
  EndpointGroupArn: 'STRING_VALUE' /* required */
};
globalaccelerator.describeEndpointGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointGroupArn — (String)

      The Amazon Resource Name (ARN) of the endpoint group to describe.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EndpointGroup — (map)

        The description of an endpoint group.

        • 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 — (Array<map>)

          The list of endpoint objects.

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

            Possible values include:
            • "INITIAL"
            • "HEALTHY"
            • "UNHEALTHY"
          • 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 Application Load Balancers endpoints.

            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, Amazon EC2 instances, and Network Load Balancers with security groups. IMPORTANT: You cannot use client IP address preservation with Network Load Balancers with TLS listeners.

            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.

          Possible values include:
          • "TCP"
          • "HTTP"
          • "HTTPS"
        • 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 — (Array<map>)

          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.

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeListener(params = {}, callback) ⇒ AWS.Request

Describe a listener.

Service Reference:

Examples:

Calling the describeListener operation

var params = {
  ListenerArn: 'STRING_VALUE' /* required */
};
globalaccelerator.describeListener(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ListenerArn — (String)

      The Amazon Resource Name (ARN) of the listener to describe.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Listener — (map)

        The description of a listener.

        • ListenerArn — (String)

          The Amazon Resource Name (ARN) of the listener.

        • PortRanges — (Array<map>)

          The list of port ranges for the connections from clients to the accelerator.

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

          Possible values include:
          • "TCP"
          • "UDP"
        • 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.

          Possible values include:
          • "NONE"
          • "SOURCE_IP"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listAccelerators(params = {}, callback) ⇒ AWS.Request

List the accelerators for an Amazon Web Services account.

Service Reference:

Examples:

Calling the listAccelerators operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
globalaccelerator.listAccelerators(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      The number of Global Accelerator objects that you want to return with this call. The default value is 10.

    • NextToken — (String)

      The token for the next set of results. You receive this token from a previous call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Accelerators — (Array<map>)

        The list of accelerators for a customer account.

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

          Possible values include:
          • "IPV4"
          • "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 — (Array<map>)

          The static IP addresses that Global Accelerator associates with the accelerator.

          • IpFamily — (String)

            IpFamily is deprecated and has been replaced by IpAddressFamily.

          • IpAddresses — (Array<String>)

            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.

            Possible values include:
            • "IPv4"
            • "IPv6"
        • 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.

          Possible values include:
          • "DEPLOYED"
          • "IN_PROGRESS"
        • CreatedTime — (Date)

          The date and time that the accelerator was created.

        • LastModifiedTime — (Date)

          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 — (Array<map>)

          A history of changes that you make to an accelerator in Global Accelerator.

          • 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 — (Date)

            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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listByoipCidrs(params = {}, callback) ⇒ AWS.Request

Lists the IP address ranges that were specified in calls to ProvisionByoipCidr, including the current state and a history of state changes.

Service Reference:

Examples:

Calling the listByoipCidrs operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
globalaccelerator.listByoipCidrs(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

    • NextToken — (String)

      The token for the next page of results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ByoipCidrs — (Array<map>)

        Information about your address ranges.

        • Cidr — (String)

          The address range, in CIDR notation.

          For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

        • State — (String)

          The state of the address pool.

          Possible values include:
          • "PENDING_PROVISIONING"
          • "READY"
          • "PENDING_ADVERTISING"
          • "ADVERTISING"
          • "PENDING_WITHDRAWING"
          • "PENDING_DEPROVISIONING"
          • "DEPROVISIONED"
          • "FAILED_PROVISION"
          • "FAILED_ADVERTISING"
          • "FAILED_WITHDRAW"
          • "FAILED_DEPROVISION"
        • Events — (Array<map>)

          A history of status changes for 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 — (Date)

            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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listCrossAccountAttachments(params = {}, callback) ⇒ AWS.Request

List the cross-account attachments that have been created in Global Accelerator.

Service Reference:

Examples:

Calling the listCrossAccountAttachments operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
globalaccelerator.listCrossAccountAttachments(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      The number of cross-account attachment objects that you want to return with this call. The default value is 10.

    • NextToken — (String)

      The token for the next set of results. You receive this token from a previous call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • CrossAccountAttachments — (Array<map>)

        Information about the cross-account attachments.

        • AttachmentArn — (String)

          The Amazon Resource Name (ARN) of the cross-account attachment.

        • Name — (String)

          The name of the cross-account attachment.

        • Principals — (Array<String>)

          The principals included in the cross-account attachment.

        • Resources — (Array<map>)

          The resources included in the cross-account attachment.

          • EndpointId — (String)

            The endpoint ID for the endpoint that is specified as a Amazon Web Services resource.

            An endpoint ID for the cross-account feature is the ARN of an Amazon Web Services resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.

          • Cidr — (String)

            An IP address range, in CIDR format, that is specified as resource. The address must be provisioned and advertised in Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator

            For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

          • Region — (String)

            The Amazon Web Services Region where a shared endpoint resource is located.

        • LastModifiedTime — (Date)

          The date and time that the cross-account attachment was last modified.

        • CreatedTime — (Date)

          The date and time that the cross-account attachment was created.

      • NextToken — (String)

        The token for the next set of results. You receive this token from a previous call.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listCrossAccountResourceAccounts(params = {}, callback) ⇒ AWS.Request

List the accounts that have cross-account resources.

For more information, see Working with cross-account attachments and resources in Global Accelerator in the Global Accelerator Developer Guide.

Examples:

Calling the listCrossAccountResourceAccounts operation

var params = {
};
globalaccelerator.listCrossAccountResourceAccounts(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResourceOwnerAwsAccountIds — (Array<String>)

        The account IDs of principals (resource owners) in a cross-account attachment who can work with resources listed in the same attachment.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listCrossAccountResources(params = {}, callback) ⇒ AWS.Request

List the cross-account resources available to work with.

Service Reference:

Examples:

Calling the listCrossAccountResources operation

var params = {
  ResourceOwnerAwsAccountId: 'STRING_VALUE', /* required */
  AcceleratorArn: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
globalaccelerator.listCrossAccountResources(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of an accelerator in a cross-account attachment.

    • ResourceOwnerAwsAccountId — (String)

      The account ID of a resource owner in a cross-account attachment.

    • MaxResults — (Integer)

      The number of cross-account resource objects that you want to return with this call. The default value is 10.

    • NextToken — (String)

      The token for the next set of results. You receive this token from a previous call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • CrossAccountResources — (Array<map>)

        The cross-account resources used with an accelerator.

        • EndpointId — (String)

          The endpoint ID for the endpoint that is listed in a cross-account attachment and can be added to an accelerator by specified principals.

        • Cidr — (String)

          An IP address range, in CIDR format, that is specified as an Amazon Web Services resource. The address must be provisioned and advertised in Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator.

          For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

        • AttachmentArn — (String)

          The Amazon Resource Name (ARN) of the cross-account attachment that specifies the resources (endpoints or CIDR range) that can be added to accelerators and principals that have permission to add them.

      • NextToken — (String)

        The token for the next set of results. You receive this token from a previous call.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listCustomRoutingAccelerators(params = {}, callback) ⇒ AWS.Request

List the custom routing accelerators for an Amazon Web Services account.

Service Reference:

Examples:

Calling the listCustomRoutingAccelerators operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
globalaccelerator.listCustomRoutingAccelerators(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      The number of custom routing Global Accelerator objects that you want to return with this call. The default value is 10.

    • NextToken — (String)

      The token for the next set of results. You receive this token from a previous call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Accelerators — (Array<map>)

        The list of custom routing accelerators for a customer account.

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

          Possible values include:
          • "IPV4"
          • "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 — (Array<map>)

          The static IP addresses that Global Accelerator associates with the accelerator.

          • IpFamily — (String)

            IpFamily is deprecated and has been replaced by IpAddressFamily.

          • IpAddresses — (Array<String>)

            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.

            Possible values include:
            • "IPv4"
            • "IPv6"
        • 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.

          Possible values include:
          • "DEPLOYED"
          • "IN_PROGRESS"
        • CreatedTime — (Date)

          The date and time that the accelerator was created.

        • LastModifiedTime — (Date)

          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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listCustomRoutingEndpointGroups(params = {}, callback) ⇒ AWS.Request

List the endpoint groups that are associated with a listener for a custom routing accelerator.

Service Reference:

Examples:

Calling the listCustomRoutingEndpointGroups operation

var params = {
  ListenerArn: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
globalaccelerator.listCustomRoutingEndpointGroups(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ListenerArn — (String)

      The Amazon Resource Name (ARN) of the listener to list endpoint groups for.

    • MaxResults — (Integer)

      The number of endpoint group objects that you want to return with this call. The default value is 10.

    • NextToken — (String)

      The token for the next set of results. You receive this token from a previous call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EndpointGroups — (Array<map>)

        The list of the endpoint groups associated with a listener 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 — (Array<map>)

          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 — (Array<String>)

            The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either TCP or UDP.

        • EndpointDescriptions — (Array<map>)

          For a custom routing accelerator, describes the endpoints (virtual private cloud subnets) in an endpoint group to accept client traffic on.

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listCustomRoutingListeners(params = {}, callback) ⇒ AWS.Request

List the listeners for a custom routing accelerator.

Service Reference:

Examples:

Calling the listCustomRoutingListeners operation

var params = {
  AcceleratorArn: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
globalaccelerator.listCustomRoutingListeners(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of the accelerator to list listeners for.

    • MaxResults — (Integer)

      The number of listener objects that you want to return with this call. The default value is 10.

    • NextToken — (String)

      The token for the next set of results. You receive this token from a previous call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Listeners — (Array<map>)

        The list of listeners for a custom routing accelerator.

        • ListenerArn — (String)

          The Amazon Resource Name (ARN) of the listener.

        • PortRanges — (Array<map>)

          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.

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listCustomRoutingPortMappings(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the listCustomRoutingPortMappings operation

var params = {
  AcceleratorArn: 'STRING_VALUE', /* required */
  EndpointGroupArn: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
globalaccelerator.listCustomRoutingPortMappings(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of the accelerator to list the custom routing port mappings for.

    • EndpointGroupArn — (String)

      The Amazon Resource Name (ARN) of the endpoint group to list the custom routing port mappings for.

    • MaxResults — (Integer)

      The number of destination port mappings that you want to return with this call. The default value is 10.

    • NextToken — (String)

      The token for the next set of results. You receive this token from a previous call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • PortMappings — (Array<map>)

        The port mappings for a custom routing accelerator.

        • 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 — (map)

          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 — (Array<String>)

          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.

          Possible values include:
          • "ALLOW"
          • "DENY"
      • NextToken — (String)

        The token for the next set of results. You receive this token from a previous call.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listCustomRoutingPortMappingsByDestination(params = {}, callback) ⇒ AWS.Request

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.

Examples:

Calling the listCustomRoutingPortMappingsByDestination operation

var params = {
  DestinationAddress: 'STRING_VALUE', /* required */
  EndpointId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
globalaccelerator.listCustomRoutingPortMappingsByDestination(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointId — (String)

      The ID for the virtual private cloud (VPC) subnet.

    • DestinationAddress — (String)

      The endpoint IP address in a virtual private cloud (VPC) subnet for which you want to receive back port mappings.

    • MaxResults — (Integer)

      The number of destination port mappings that you want to return with this call. The default value is 10.

    • NextToken — (String)

      The token for the next set of results. You receive this token from a previous call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DestinationPortMappings — (Array<map>)

        The port mappings for the endpoint IP address that you specified in the request.

        • AcceleratorArn — (String)

          The Amazon Resource Name (ARN) of the custom routing accelerator that you have port mappings for.

        • AcceleratorSocketAddresses — (Array<map>)

          The IP address/port combinations (sockets) that map to a given destination socket address.

          • 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 — (map)

          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.

          Possible values include:
          • "IPV4"
          • "DUAL_STACK"
        • 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.

          Possible values include:
          • "ALLOW"
          • "DENY"
      • NextToken — (String)

        The token for the next set of results. You receive this token from a previous call.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listEndpointGroups(params = {}, callback) ⇒ AWS.Request

List the endpoint groups that are associated with a listener.

Service Reference:

Examples:

Calling the listEndpointGroups operation

var params = {
  ListenerArn: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
globalaccelerator.listEndpointGroups(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ListenerArn — (String)

      The Amazon Resource Name (ARN) of the listener.

    • MaxResults — (Integer)

      The number of endpoint group objects that you want to return with this call. The default value is 10.

    • NextToken — (String)

      The token for the next set of results. You receive this token from a previous call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EndpointGroups — (Array<map>)

        The list of the endpoint groups associated with a 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 — (Array<map>)

          The list of endpoint objects.

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

            Possible values include:
            • "INITIAL"
            • "HEALTHY"
            • "UNHEALTHY"
          • 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 Application Load Balancers endpoints.

            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, Amazon EC2 instances, and Network Load Balancers with security groups. IMPORTANT: You cannot use client IP address preservation with Network Load Balancers with TLS listeners.

            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.

          Possible values include:
          • "TCP"
          • "HTTP"
          • "HTTPS"
        • 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 — (Array<map>)

          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.

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listListeners(params = {}, callback) ⇒ AWS.Request

List the listeners for an accelerator.

Service Reference:

Examples:

Calling the listListeners operation

var params = {
  AcceleratorArn: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
globalaccelerator.listListeners(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of the accelerator for which you want to list listener objects.

    • MaxResults — (Integer)

      The number of listener objects that you want to return with this call. The default value is 10.

    • NextToken — (String)

      The token for the next set of results. You receive this token from a previous call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Listeners — (Array<map>)

        The list of listeners for an accelerator.

        • ListenerArn — (String)

          The Amazon Resource Name (ARN) of the listener.

        • PortRanges — (Array<map>)

          The list of port ranges for the connections from clients to the accelerator.

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

          Possible values include:
          • "TCP"
          • "UDP"
        • 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.

          Possible values include:
          • "NONE"
          • "SOURCE_IP"
      • NextToken — (String)

        The token for the next set of results. You receive this token from a previous call.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

List all tags for an accelerator.

For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  ResourceArn: 'STRING_VALUE' /* required */
};
globalaccelerator.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the accelerator to list tags for. An ARN uniquely identifies an accelerator.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Tags — (Array<map>)

        Root level tag for the Tags parameters.

        • Keyrequired — (String)

          A string that contains a Tag key.

        • Valuerequired — (String)

          A string that contains a Tag value.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

provisionByoipCidr(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the provisionByoipCidr operation

var params = {
  Cidr: 'STRING_VALUE', /* required */
  CidrAuthorizationContext: { /* required */
    Message: 'STRING_VALUE', /* required */
    Signature: 'STRING_VALUE' /* required */
  }
};
globalaccelerator.provisionByoipCidr(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Cidr — (String)

      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 Amazon Web Services Region or another Region.

      For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

    • CidrAuthorizationContext — (map)

      A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP.

      • Messagerequired — (String)

        The plain-text authorization message for the prefix and account.

      • Signaturerequired — (String)

        The signed authorization message for the prefix and account.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ByoipCidr — (map)

        Information about the address range.

        • Cidr — (String)

          The address range, in CIDR notation.

          For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

        • State — (String)

          The state of the address pool.

          Possible values include:
          • "PENDING_PROVISIONING"
          • "READY"
          • "PENDING_ADVERTISING"
          • "ADVERTISING"
          • "PENDING_WITHDRAWING"
          • "PENDING_DEPROVISIONING"
          • "DEPROVISIONED"
          • "FAILED_PROVISION"
          • "FAILED_ADVERTISING"
          • "FAILED_WITHDRAW"
          • "FAILED_DEPROVISION"
        • Events — (Array<map>)

          A history of status changes for 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 — (Date)

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

removeCustomRoutingEndpoints(params = {}, callback) ⇒ AWS.Request

Remove endpoints from a custom routing accelerator.

Service Reference:

Examples:

Calling the removeCustomRoutingEndpoints operation

var params = {
  EndpointGroupArn: 'STRING_VALUE', /* required */
  EndpointIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
globalaccelerator.removeCustomRoutingEndpoints(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointIds — (Array<String>)

      The IDs for the endpoints. For custom routing accelerators, endpoint IDs are the virtual private cloud (VPC) subnet IDs.

    • EndpointGroupArn — (String)

      The Amazon Resource Name (ARN) of the endpoint group to remove endpoints from.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

removeEndpoints(params = {}, callback) ⇒ AWS.Request

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:

  • It's more convenient, because you only need to specify the endpoints that you want to remove. With the 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.

  • It's faster, because Global Accelerator doesn't need to resolve any endpoints. With the UpdateEndpointGroup API operation, Global Accelerator must resolve all of the endpoints that remain in the group.

Service Reference:

Examples:

Calling the removeEndpoints operation

var params = {
  EndpointGroupArn: 'STRING_VALUE', /* required */
  EndpointIdentifiers: [ /* required */
    {
      EndpointId: 'STRING_VALUE', /* required */
      ClientIPPreservationEnabled: true || false
    },
    /* more items */
  ]
};
globalaccelerator.removeEndpoints(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointIdentifiers — (Array<map>)

      The identifiers of the endpoints that you want to remove.

      • EndpointIdrequired — (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.

      • ClientIPPreservationEnabled — (Boolean)

        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.

    • EndpointGroupArn — (String)

      The Amazon Resource Name (ARN) of the endpoint group.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

Add tags to an accelerator resource.

For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
globalaccelerator.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the Global Accelerator resource to add tags to. An ARN uniquely identifies a resource.

    • Tags — (Array<map>)

      The tags to add to a resource. A tag consists of a key and a value that you define.

      • Keyrequired — (String)

        A string that contains a Tag key.

      • Valuerequired — (String)

        A string that contains a Tag value.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
globalaccelerator.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the Global Accelerator resource to remove tags from. An ARN uniquely identifies a resource.

    • TagKeys — (Array<String>)

      The tag key pairs that you want to remove from the specified resources.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateAccelerator(params = {}, callback) ⇒ AWS.Request

Update an accelerator to make changes, such as the following:

  • Change the name of the accelerator.

  • Disable the accelerator so that it no longer accepts or routes traffic, or so that you can delete it.

  • Enable the accelerator, if it is disabled.

  • Change the IP address type to dual-stack if it is IPv4, or change the IP address type to IPv4 if it's dual-stack.

Be aware that 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 the accelerator, you lose the static IP addresses that are assigned to it, so you can no longer route traffic by using them.

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 Amazon Web Services CLI commands.

Service Reference:

Examples:

Calling the updateAccelerator operation

var params = {
  AcceleratorArn: 'STRING_VALUE', /* required */
  Enabled: true || false,
  IpAddressType: IPV4 | DUAL_STACK,
  Name: 'STRING_VALUE'
};
globalaccelerator.updateAccelerator(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of the accelerator to update.

    • Name — (String)

      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.

    • IpAddressType — (String)

      The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.

      Possible values include:
      • "IPV4"
      • "DUAL_STACK"
    • Enabled — (Boolean)

      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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Accelerator — (map)

        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.

          Possible values include:
          • "IPV4"
          • "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 — (Array<map>)

          The static IP addresses that Global Accelerator associates with the accelerator.

          • IpFamily — (String)

            IpFamily is deprecated and has been replaced by IpAddressFamily.

          • IpAddresses — (Array<String>)

            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.

            Possible values include:
            • "IPv4"
            • "IPv6"
        • 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.

          Possible values include:
          • "DEPLOYED"
          • "IN_PROGRESS"
        • CreatedTime — (Date)

          The date and time that the accelerator was created.

        • LastModifiedTime — (Date)

          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 — (Array<map>)

          A history of changes that you make to an accelerator in Global Accelerator.

          • 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 — (Date)

            A timestamp for when you update an accelerator in Global Accelerator from IPv4 to dual-stack, or dual-stack to IPv4.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateAcceleratorAttributes(params = {}, callback) ⇒ AWS.Request

Update the attributes for an accelerator.

Service Reference:

Examples:

Calling the updateAcceleratorAttributes operation

var params = {
  AcceleratorArn: 'STRING_VALUE', /* required */
  FlowLogsEnabled: true || false,
  FlowLogsS3Bucket: 'STRING_VALUE',
  FlowLogsS3Prefix: 'STRING_VALUE'
};
globalaccelerator.updateAcceleratorAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of the accelerator that you want to update.

    • FlowLogsEnabled — (Boolean)

      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.

    • 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)

      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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AcceleratorAttributes — (map)

        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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateCrossAccountAttachment(params = {}, callback) ⇒ AWS.Request

Update a cross-account attachment to add or remove principals or resources. When you update an attachment to remove a principal (account ID or accelerator) or a resource, Global Accelerator revokes the permission for specific resources.

For more information, see Working with cross-account attachments and resources in Global Accelerator in the Global Accelerator Developer Guide.

Service Reference:

Examples:

Calling the updateCrossAccountAttachment operation

var params = {
  AttachmentArn: 'STRING_VALUE', /* required */
  AddPrincipals: [
    'STRING_VALUE',
    /* more items */
  ],
  AddResources: [
    {
      Cidr: 'STRING_VALUE',
      EndpointId: 'STRING_VALUE',
      Region: 'STRING_VALUE'
    },
    /* more items */
  ],
  Name: 'STRING_VALUE',
  RemovePrincipals: [
    'STRING_VALUE',
    /* more items */
  ],
  RemoveResources: [
    {
      Cidr: 'STRING_VALUE',
      EndpointId: 'STRING_VALUE',
      Region: 'STRING_VALUE'
    },
    /* more items */
  ]
};
globalaccelerator.updateCrossAccountAttachment(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AttachmentArn — (String)

      The Amazon Resource Name (ARN) of the cross-account attachment to update.

    • Name — (String)

      The name of the cross-account attachment.

    • AddPrincipals — (Array<String>)

      The principals to add to the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.

      To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.

    • RemovePrincipals — (Array<String>)

      The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.

      To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.

    • AddResources — (Array<map>)

      The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.

      To add more than one resource, separate the resource ARNs with commas.

      • EndpointId — (String)

        The endpoint ID for the endpoint that is specified as a Amazon Web Services resource.

        An endpoint ID for the cross-account feature is the ARN of an Amazon Web Services resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.

      • Cidr — (String)

        An IP address range, in CIDR format, that is specified as resource. The address must be provisioned and advertised in Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator

        For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

      • Region — (String)

        The Amazon Web Services Region where a shared endpoint resource is located.

    • RemoveResources — (Array<map>)

      The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.

      To remove more than one resource, separate the resource ARNs with commas.

      • EndpointId — (String)

        The endpoint ID for the endpoint that is specified as a Amazon Web Services resource.

        An endpoint ID for the cross-account feature is the ARN of an Amazon Web Services resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.

      • Cidr — (String)

        An IP address range, in CIDR format, that is specified as resource. The address must be provisioned and advertised in Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator

        For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

      • Region — (String)

        The Amazon Web Services Region where a shared endpoint resource is located.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • CrossAccountAttachment — (map)

        Information about the updated cross-account attachment.

        • AttachmentArn — (String)

          The Amazon Resource Name (ARN) of the cross-account attachment.

        • Name — (String)

          The name of the cross-account attachment.

        • Principals — (Array<String>)

          The principals included in the cross-account attachment.

        • Resources — (Array<map>)

          The resources included in the cross-account attachment.

          • EndpointId — (String)

            The endpoint ID for the endpoint that is specified as a Amazon Web Services resource.

            An endpoint ID for the cross-account feature is the ARN of an Amazon Web Services resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.

          • Cidr — (String)

            An IP address range, in CIDR format, that is specified as resource. The address must be provisioned and advertised in Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator

            For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

          • Region — (String)

            The Amazon Web Services Region where a shared endpoint resource is located.

        • LastModifiedTime — (Date)

          The date and time that the cross-account attachment was last modified.

        • CreatedTime — (Date)

          The date and time that the cross-account attachment was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateCustomRoutingAccelerator(params = {}, callback) ⇒ AWS.Request

Update a custom routing accelerator.

Service Reference:

Examples:

Calling the updateCustomRoutingAccelerator operation

var params = {
  AcceleratorArn: 'STRING_VALUE', /* required */
  Enabled: true || false,
  IpAddressType: IPV4 | DUAL_STACK,
  Name: 'STRING_VALUE'
};
globalaccelerator.updateCustomRoutingAccelerator(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of the accelerator to update.

    • Name — (String)

      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.

    • IpAddressType — (String)

      The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4.

      Possible values include:
      • "IPV4"
      • "DUAL_STACK"
    • Enabled — (Boolean)

      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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Accelerator — (map)

        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.

          Possible values include:
          • "IPV4"
          • "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 — (Array<map>)

          The static IP addresses that Global Accelerator associates with the accelerator.

          • IpFamily — (String)

            IpFamily is deprecated and has been replaced by IpAddressFamily.

          • IpAddresses — (Array<String>)

            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.

            Possible values include:
            • "IPv4"
            • "IPv6"
        • 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.

          Possible values include:
          • "DEPLOYED"
          • "IN_PROGRESS"
        • CreatedTime — (Date)

          The date and time that the accelerator was created.

        • LastModifiedTime — (Date)

          The date and time that the accelerator was last modified.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateCustomRoutingAcceleratorAttributes(params = {}, callback) ⇒ AWS.Request

Update the attributes for a custom routing accelerator.

Examples:

Calling the updateCustomRoutingAcceleratorAttributes operation

var params = {
  AcceleratorArn: 'STRING_VALUE', /* required */
  FlowLogsEnabled: true || false,
  FlowLogsS3Bucket: 'STRING_VALUE',
  FlowLogsS3Prefix: 'STRING_VALUE'
};
globalaccelerator.updateCustomRoutingAcceleratorAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AcceleratorArn — (String)

      The Amazon Resource Name (ARN) of the custom routing accelerator to update attributes for.

    • FlowLogsEnabled — (Boolean)

      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.

    • 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)

      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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AcceleratorAttributes — (map)

        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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateCustomRoutingListener(params = {}, callback) ⇒ AWS.Request

Update a listener for a custom routing accelerator.

Service Reference:

Examples:

Calling the updateCustomRoutingListener operation

var params = {
  ListenerArn: 'STRING_VALUE', /* required */
  PortRanges: [ /* required */
    {
      FromPort: 'NUMBER_VALUE',
      ToPort: 'NUMBER_VALUE'
    },
    /* more items */
  ]
};
globalaccelerator.updateCustomRoutingListener(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ListenerArn — (String)

      The Amazon Resource Name (ARN) of the listener to update.

    • PortRanges — (Array<map>)

      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.

      • FromPort — (Integer)

        The first port in the range of ports, inclusive.

      • ToPort — (Integer)

        The last port in the range of ports, inclusive.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Listener — (map)

        Information for the updated listener for a custom routing accelerator.

        • ListenerArn — (String)

          The Amazon Resource Name (ARN) of the listener.

        • PortRanges — (Array<map>)

          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.

          • FromPort — (Integer)

            The first port in the range of ports, inclusive.

          • ToPort — (Integer)

            The last port in the range of ports, inclusive.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateEndpointGroup(params = {}, callback) ⇒ AWS.Request

Update an endpoint group. A resource must be valid and active when you add it as an endpoint.

Service Reference:

Examples:

Calling the updateEndpointGroup operation

var params = {
  EndpointGroupArn: 'STRING_VALUE', /* required */
  EndpointConfigurations: [
    {
      AttachmentArn: 'STRING_VALUE',
      ClientIPPreservationEnabled: true || false,
      EndpointId: 'STRING_VALUE',
      Weight: 'NUMBER_VALUE'
    },
    /* more items */
  ],
  HealthCheckIntervalSeconds: 'NUMBER_VALUE',
  HealthCheckPath: 'STRING_VALUE',
  HealthCheckPort: 'NUMBER_VALUE',
  HealthCheckProtocol: TCP | HTTP | HTTPS,
  PortOverrides: [
    {
      EndpointPort: 'NUMBER_VALUE',
      ListenerPort: 'NUMBER_VALUE'
    },
    /* more items */
  ],
  ThresholdCount: 'NUMBER_VALUE',
  TrafficDialPercentage: 'NUMBER_VALUE'
};
globalaccelerator.updateEndpointGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointGroupArn — (String)

      The Amazon Resource Name (ARN) of the endpoint group.

    • EndpointConfigurations — (Array<map>)

      The list of endpoint objects. A resource must be valid and active when you add it as an endpoint.

      • 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. A resource must be valid and active when you add it as an endpoint.

        For cross-account endpoints, this must be the ARN of the resource.

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

      • 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 Application Load Balancer endpoints.

        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, Amazon EC2 instances, and Network Load Balancers with security groups. IMPORTANT: You cannot use client IP address preservation with Network Load Balancers with TLS listeners.

        For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide.

      • AttachmentArn — (String)

        The Amazon Resource Name (ARN) of the cross-account attachment that specifies the endpoints (resources) that can be added to accelerators and principals that have permission to add the endpoints.

    • 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 check the health of endpoints that are part of this endpoint group. The default port is the listener port that this endpoint group is associated with. If the listener port is a list of ports, Global Accelerator uses the first port in the list.

    • HealthCheckProtocol — (String)

      The protocol that Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default value is TCP.

      Possible values include:
      • "TCP"
      • "HTTP"
      • "HTTPS"
    • HealthCheckPath — (String)

      If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. The default value is slash (/).

    • HealthCheckIntervalSeconds — (Integer)

      The time—10 seconds or 30 seconds—between each health check for an 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 — (Array<map>)

      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.

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EndpointGroup — (map)

        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 — (Array<map>)

          The list of endpoint objects.

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

            Possible values include:
            • "INITIAL"
            • "HEALTHY"
            • "UNHEALTHY"
          • 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 Application Load Balancers endpoints.

            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, Amazon EC2 instances, and Network Load Balancers with security groups. IMPORTANT: You cannot use client IP address preservation with Network Load Balancers with TLS listeners.

            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.

          Possible values include:
          • "TCP"
          • "HTTP"
          • "HTTPS"
        • 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 — (Array<map>)

          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.

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateListener(params = {}, callback) ⇒ AWS.Request

Update a listener.

Service Reference:

Examples:

Calling the updateListener operation

var params = {
  ListenerArn: 'STRING_VALUE', /* required */
  ClientAffinity: NONE | SOURCE_IP,
  PortRanges: [
    {
      FromPort: 'NUMBER_VALUE',
      ToPort: 'NUMBER_VALUE'
    },
    /* more items */
  ],
  Protocol: TCP | UDP
};
globalaccelerator.updateListener(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ListenerArn — (String)

      The Amazon Resource Name (ARN) of the listener to update.

    • PortRanges — (Array<map>)

      The updated list of port ranges for the connections from clients to the accelerator.

      • 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 updated protocol for the connections from clients to the accelerator.

      Possible values include:
      • "TCP"
      • "UDP"
    • 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.

      Possible values include:
      • "NONE"
      • "SOURCE_IP"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Listener — (map)

        Information for the updated listener.

        • ListenerArn — (String)

          The Amazon Resource Name (ARN) of the listener.

        • PortRanges — (Array<map>)

          The list of port ranges for the connections from clients to the accelerator.

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

          Possible values include:
          • "TCP"
          • "UDP"
        • 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.

          Possible values include:
          • "NONE"
          • "SOURCE_IP"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

withdrawByoipCidr(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the withdrawByoipCidr operation

var params = {
  Cidr: 'STRING_VALUE' /* required */
};
globalaccelerator.withdrawByoipCidr(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ByoipCidr — (map)

        Information about the BYOIP address pool.

        • Cidr — (String)

          The address range, in CIDR notation.

          For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.

        • State — (String)

          The state of the address pool.

          Possible values include:
          • "PENDING_PROVISIONING"
          • "READY"
          • "PENDING_ADVERTISING"
          • "ADVERTISING"
          • "PENDING_WITHDRAWING"
          • "PENDING_DEPROVISIONING"
          • "DEPROVISIONED"
          • "FAILED_PROVISION"
          • "FAILED_ADVERTISING"
          • "FAILED_WITHDRAW"
          • "FAILED_DEPROVISION"
        • Events — (Array<map>)

          A history of status changes for 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 — (Date)

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.