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

Inherits:
AWS.Service show all
Identifier:
arczonalshift
API Version:
2022-10-30
Defined in:
(unknown)

Overview

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

Service Description

Welcome to the Zonal Shift API Reference Guide for Amazon Route 53 Application Recovery Controller (Route 53 ARC).

You can start a zonal shift to move traffic for a load balancer resource away from an Availability Zone to help your application recover quickly from an impairment in an Availability Zone. For example, you can recover your application from a developer's bad code deployment or from an Amazon Web Services infrastructure failure in a single Availability Zone.

You can also configure zonal autoshift for a load balancer resource. Zonal autoshift is a capability in Route 53 ARC where Amazon Web Services shifts away application resource traffic from an Availability Zone, on your behalf, to help reduce your time to recovery during events. Amazon Web Services shifts away traffic for resources that are enabled for zonal autoshift whenever Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.

To ensure that zonal autoshift is safe for your application, you must also configure practice runs when you enable zonal autoshift for a resource. Practice runs start weekly zonal shifts for a resource, to shift traffic for the resource out of an Availability Zone. Practice runs make sure, on a regular basis, that you have enough capacity in all the Availability Zones in an Amazon Web Services Region for your application to continue to operate normally when traffic for a resource is shifted away from one Availability Zone.

You must prescale resource capacity in all Availability Zones in the Region where your application is deployed, before you configure practice runs or enable zonal autoshift for a resource. You should not rely on scaling on demand when an autoshift or practice run starts.

For more information about using zonal shift and zonal autoshift, see the Amazon Route 53 Application Recovery Controller Developer Guide.

Sending a Request Using ARCZonalShift

var arczonalshift = new AWS.ARCZonalShift();
arczonalshift.cancelZonalShift(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 ARCZonalShift object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var arczonalshift = new AWS.ARCZonalShift({apiVersion: '2022-10-30'});

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

AWS.config.apiVersions = {
  arczonalshift: '2022-10-30',
  // other service API versions
};

var arczonalshift = new AWS.ARCZonalShift();

Version:

  • 2022-10-30

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.ARCZonalShift(options = {}) ⇒ Object

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

Examples:

Constructing a ARCZonalShift object

var arczonalshift = new AWS.ARCZonalShift({apiVersion: '2022-10-30'});

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.ARCZonalShift.region for more information.

  • maxRetries (Integer)

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

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.ARCZonalShift.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

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

Cancel a zonal shift in Amazon Route 53 Application Recovery Controller. To cancel the zonal shift, specify the zonal shift ID.

A zonal shift can be one that you've started for a resource in your Amazon Web Services account in an Amazon Web Services Region, or it can be a zonal shift started by a practice run with zonal autoshift.

Service Reference:

Examples:

Calling the cancelZonalShift operation

var params = {
  zonalShiftId: 'STRING_VALUE' /* required */
};
arczonalshift.cancelZonalShift(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: {})
    • zonalShiftId — (String)

      The internally-generated identifier of a zonal shift.

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:

      • awayFrom — (String)

        The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.

      • comment — (String)

        A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.

      • expiryTime — (Date)

        The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.

        When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.

      • resourceIdentifier — (String)

        The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.

        At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      • startTime — (Date)

        The time (UTC) when the zonal shift starts.

      • status — (String)

        A status for a zonal shift.

        The Status for a zonal shift can have one of the following values:

        • ACTIVE: The zonal shift has been started and active.

        • EXPIRED: The zonal shift has expired (the expiry time was exceeded).

        • CANCELED: The zonal shift was canceled.

        Possible values include:
        • "ACTIVE"
        • "EXPIRED"
        • "CANCELED"
      • zonalShiftId — (String)

        The identifier of a zonal shift.

Returns:

  • (AWS.Request)

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

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

A practice run configuration for zonal autoshift is required when you enable zonal autoshift. A practice run configuration includes specifications for blocked dates and blocked time windows, and for Amazon CloudWatch alarms that you create to use with practice runs. The alarms that you specify are an outcome alarm, to monitor application health during practice runs and, optionally, a blocking alarm, to block practice runs from starting.

For more information, see Considerations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.

Service Reference:

Examples:

Calling the createPracticeRunConfiguration operation

var params = {
  outcomeAlarms: [ /* required */
    {
      alarmIdentifier: 'STRING_VALUE', /* required */
      type: CLOUDWATCH /* required */
    },
    /* more items */
  ],
  resourceIdentifier: 'STRING_VALUE', /* required */
  blockedDates: [
    'STRING_VALUE',
    /* more items */
  ],
  blockedWindows: [
    'STRING_VALUE',
    /* more items */
  ],
  blockingAlarms: [
    {
      alarmIdentifier: 'STRING_VALUE', /* required */
      type: CLOUDWATCH /* required */
    },
    /* more items */
  ]
};
arczonalshift.createPracticeRunConfiguration(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: {})
    • blockedDates — (Array<String>)

      Optionally, you can block Route 53 ARC from starting practice runs for a resource on specific calendar dates.

      The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Separate multiple blocked dates with spaces.

      For example, if you have an application update scheduled to launch on May 1, 2024, and you don't want practice runs to shift traffic away at that time, you could set a blocked date for 2024-05-01.

    • blockedWindows — (Array<String>)

      Optionally, you can block Route 53 ARC from starting practice runs for specific windows of days and times.

      The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Also, be aware of potential time adjustments that might be required for daylight saving time differences. Separate multiple blocked windows with spaces.

      For example, say you run business report summaries three days a week. For this scenario, you might set the following recurring days and times as blocked windows, for example: MON-20:30-21:30 WED-20:30-21:30 FRI-20:30-21:30.

    • blockingAlarms — (Array<map>)

      An Amazon CloudWatch alarm that you can specify for zonal autoshift practice runs. This alarm blocks Route 53 ARC from starting practice run zonal shifts, and ends a practice run that's in progress, when the alarm is in an ALARM state.

      • alarmIdentifierrequired — (String)

        The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.

      • typerequired — (String)

        The type of alarm specified for a practice run. The only valid value is CLOUDWATCH.

        Possible values include:
        • "CLOUDWATCH"
    • outcomeAlarms — (Array<map>)

      The outcome alarm for practice runs is a required Amazon CloudWatch alarm that you specify that ends a practice run when the alarm is in an ALARM state.

      Configure the alarm to monitor the health of your application when traffic is shifted away from an Availability Zone during each weekly practice run. You should configure the alarm to go into an ALARM state if your application is impacted by the zonal shift, and you want to stop the zonal shift, to let traffic for the resource return to the Availability Zone.

      • alarmIdentifierrequired — (String)

        The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.

      • typerequired — (String)

        The type of alarm specified for a practice run. The only valid value is CLOUDWATCH.

        Possible values include:
        • "CLOUDWATCH"
    • resourceIdentifier — (String)

      The identifier of the resource to shift away traffic for when a practice run starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.

      At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

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:

      • arn — (String)

        The Amazon Resource Name (ARN) of the resource that you configured the practice run for.

      • name — (String)

        The name of the resource that you configured the practice run for.

      • practiceRunConfiguration — (map)

        A practice run configuration for a resource. Configurations include the outcome alarm that you specify for practice runs, and, optionally, a blocking alarm and blocking dates and windows.

        • blockedDates — (Array<String>)

          An array of one or more dates that you can specify when Amazon Web Services does not start practice runs for a resource.

          Specify blocked dates, in UTC, in the format YYYY-MM-DD, separated by spaces.

        • blockedWindows — (Array<String>)

          An array of one or more windows of days and times that you can block Route 53 ARC from starting practice runs for a resource.

          Specify the blocked windows in UTC, using the format DAY:HH:MM-DAY:HH:MM, separated by spaces. For example, MON:18:30-MON:19:30 TUE:18:30-TUE:19:30.

        • blockingAlarms — (Array<map>)

          The blocking alarm for practice runs is an optional alarm that you can specify that blocks practice runs when the alarm is in an ALARM state.

          • alarmIdentifierrequired — (String)

            The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.

          • typerequired — (String)

            The type of alarm specified for a practice run. The only valid value is CLOUDWATCH.

            Possible values include:
            • "CLOUDWATCH"
        • outcomeAlarmsrequired — (Array<map>)

          The outcome alarm for practice runs is an alarm that you specify that ends a practice run when the alarm is in an ALARM state.

          • alarmIdentifierrequired — (String)

            The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.

          • typerequired — (String)

            The type of alarm specified for a practice run. The only valid value is CLOUDWATCH.

            Possible values include:
            • "CLOUDWATCH"
      • zonalAutoshiftStatus — (String)

        The status for zonal autoshift for a resource. When you specify the autoshift status as ENABLED, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.

        When you enable zonal autoshift, you must also configure practice runs for the resource.

        Possible values include:
        • "ENABLED"
        • "DISABLED"

Returns:

  • (AWS.Request)

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

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

Deletes the practice run configuration for a resource. Before you can delete a practice run configuration for a resource., you must disable zonal autoshift for the resource. Practice runs must be configured for zonal autoshift to be enabled.

Service Reference:

Examples:

Calling the deletePracticeRunConfiguration operation

var params = {
  resourceIdentifier: 'STRING_VALUE' /* required */
};
arczonalshift.deletePracticeRunConfiguration(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: {})
    • resourceIdentifier — (String)

      The identifier for the resource that you want to delete the practice run configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.

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:

      • arn — (String)

        The Amazon Resource Name (ARN) of the resource that you deleted the practice run for.

      • name — (String)

        The name of the resource that you deleted the practice run for.

      • zonalAutoshiftStatus — (String)

        The status of zonal autoshift for the resource.

        Possible values include:
        • "ENABLED"
        • "DISABLED"

Returns:

  • (AWS.Request)

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

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

Get information about a resource that's been registered for zonal shifts with Amazon Route 53 Application Recovery Controller in this Amazon Web Services Region. Resources that are registered for zonal shifts are managed resources in Route 53 ARC. You can start zonal shifts and configure zonal autoshift for managed resources.

At this time, you can only start a zonal shift or configure zonal autoshift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

Service Reference:

Examples:

Calling the getManagedResource operation

var params = {
  resourceIdentifier: 'STRING_VALUE' /* required */
};
arczonalshift.getManagedResource(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: {})
    • resourceIdentifier — (String)

      The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.

      At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

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:

      • appliedWeights — (map<Float>)

        A collection of key-value pairs that indicate whether resources are active in Availability Zones or not. The key name is the Availability Zone where the resource is deployed. The value is 1 or 0.

      • arn — (String)

        The Amazon Resource Name (ARN) for the resource.

      • autoshifts — (Array<map>)

        An array of the autoshifts that are active for the resource.

        • appliedStatusrequired — (String)

          The appliedStatus field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus field for an autoshift for a resource can have one of two values: APPLIED or NOT_APPLIED. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED.

          The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.

          For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.

          Possible values include:
          • "APPLIED"
          • "NOT_APPLIED"
        • awayFromrequired — (String)

          The Availability Zone that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.

        • startTimerequired — (Date)

          The time (UTC) when the autoshift started.

      • name — (String)

        The name of the resource.

      • practiceRunConfiguration — (map)

        The practice run configuration for zonal autoshift that's associated with the resource.

        • blockedDates — (Array<String>)

          An array of one or more dates that you can specify when Amazon Web Services does not start practice runs for a resource.

          Specify blocked dates, in UTC, in the format YYYY-MM-DD, separated by spaces.

        • blockedWindows — (Array<String>)

          An array of one or more windows of days and times that you can block Route 53 ARC from starting practice runs for a resource.

          Specify the blocked windows in UTC, using the format DAY:HH:MM-DAY:HH:MM, separated by spaces. For example, MON:18:30-MON:19:30 TUE:18:30-TUE:19:30.

        • blockingAlarms — (Array<map>)

          The blocking alarm for practice runs is an optional alarm that you can specify that blocks practice runs when the alarm is in an ALARM state.

          • alarmIdentifierrequired — (String)

            The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.

          • typerequired — (String)

            The type of alarm specified for a practice run. The only valid value is CLOUDWATCH.

            Possible values include:
            • "CLOUDWATCH"
        • outcomeAlarmsrequired — (Array<map>)

          The outcome alarm for practice runs is an alarm that you specify that ends a practice run when the alarm is in an ALARM state.

          • alarmIdentifierrequired — (String)

            The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.

          • typerequired — (String)

            The type of alarm specified for a practice run. The only valid value is CLOUDWATCH.

            Possible values include:
            • "CLOUDWATCH"
      • zonalAutoshiftStatus — (String)

        The status for zonal autoshift for a resource. When the autoshift status is ENABLED, Amazon Web Services shifts traffic for a resource away from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.

        Possible values include:
        • "ENABLED"
        • "DISABLED"
      • zonalShifts — (Array<map>)

        The zonal shifts that are currently active for a resource.

        • appliedStatusrequired — (String)

          The appliedStatus field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus field for an autoshift for a resource can have one of two values: APPLIED or NOT_APPLIED. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED.

          The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.

          For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.

          Possible values include:
          • "APPLIED"
          • "NOT_APPLIED"
        • awayFromrequired — (String)

          The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.

        • commentrequired — (String)

          A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. That is, a new comment overwrites any existing comment string.

        • expiryTimerequired — (Date)

          The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.

          When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.

        • practiceRunOutcome — (String)

          The outcome, or end state, returned for a practice run. The following values can be returned:

          • PENDING: Outcome value when a practice run is in progress.

          • SUCCEEDED: Outcome value when the outcome alarm specified for the practice run configuration does not go into an ALARM state during the practice run, and the practice run was not interrupted before it completed the expected 30 minute zonal shift.

          • INTERRUPTED: Outcome value when the practice run was stopped before the expected 30 minute zonal shift duration, or there was another problem with the practice run that created an inconclusive outcome.

          • FAILED: Outcome value when the outcome alarm specified for the practice run configuration goes into an ALARM state during the practice run, and the practice run was not interrupted before it completed.

          For more information about practice run outcomes, see Considerations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.

          Possible values include:
          • "FAILED"
          • "INTERRUPTED"
          • "PENDING"
          • "SUCCEEDED"
        • resourceIdentifierrequired — (String)

          The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.

          At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

        • startTimerequired — (Date)

          The time (UTC) when the zonal shift starts.

        • zonalShiftIdrequired — (String)

          The identifier of a zonal shift.

Returns:

  • (AWS.Request)

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

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

Returns the active autoshifts for a specified resource.

Service Reference:

Examples:

Calling the listAutoshifts operation

var params = {
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE',
  status: ACTIVE | COMPLETED
};
arczonalshift.listAutoshifts(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 objects that you want to return with this call.

    • nextToken — (String)

      Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

    • status — (String)

      The status of the autoshift.

      Possible values include:
      • "ACTIVE"
      • "COMPLETED"

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:

      • items — (Array<map>)

        The items in the response list.

        • awayFromrequired — (String)

          The Availability Zone that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.

        • endTimerequired — (Date)

          The time (in UTC) when the autoshift ended.

        • startTimerequired — (Date)

          The time (in UTC) when the autoshift started.

        • statusrequired — (String)

          The status for an autoshift.

          Possible values include:
          • "ACTIVE"
          • "COMPLETED"
      • nextToken — (String)

        Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

Returns:

  • (AWS.Request)

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

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

Lists all the resources in your Amazon Web Services account in this Amazon Web Services Region that are managed for zonal shifts in Amazon Route 53 Application Recovery Controller, and information about them. The information includes the zonal autoshift status for the resource, as well as the Amazon Resource Name (ARN), the Availability Zones that each resource is deployed in, and the resource name.

Service Reference:

Examples:

Calling the listManagedResources operation

var params = {
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
arczonalshift.listManagedResources(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 objects that you want to return with this call.

    • nextToken — (String)

      Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request 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:

      • items — (Array<map>)

        The items in the response list.

        • appliedWeights — (map<Float>)

          A collection of key-value pairs that indicate whether resources are active in Availability Zones or not. The key name is the Availability Zone where the resource is deployed. The value is 1 or 0.

        • arn — (String)

          The Amazon Resource Name (ARN) for the managed resource.

        • autoshifts — (Array<map>)

          An array of the autoshifts that have been completed for a resource.

          • appliedStatusrequired — (String)

            The appliedStatus field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus field for an autoshift for a resource can have one of two values: APPLIED or NOT_APPLIED. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED.

            The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.

            For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.

            Possible values include:
            • "APPLIED"
            • "NOT_APPLIED"
          • awayFromrequired — (String)

            The Availability Zone that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.

          • startTimerequired — (Date)

            The time (UTC) when the autoshift started.

        • availabilityZonesrequired — (Array<String>)

          The Availability Zones that a resource is deployed in.

        • name — (String)

          The name of the managed resource.

        • practiceRunStatus — (String)

          This status tracks whether a practice run configuration exists for a resource. When you configure a practice run for a resource so that a practice run configuration exists, Route 53 ARC sets this value to ENABLED. If a you have not configured a practice run for the resource, or delete a practice run configuration, Route 53 ARC sets the value to DISABLED.

          Route 53 ARC updates this status; you can't set a practice run status to ENABLED or DISABLED.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
        • zonalAutoshiftStatus — (String)

          The status of autoshift for a resource. When you configure zonal autoshift for a resource, you can set the value of the status to ENABLED or DISABLED.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
        • zonalShifts — (Array<map>)

          An array of the zonal shifts for a resource.

          • appliedStatusrequired — (String)

            The appliedStatus field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus field for an autoshift for a resource can have one of two values: APPLIED or NOT_APPLIED. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED.

            The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.

            For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.

            Possible values include:
            • "APPLIED"
            • "NOT_APPLIED"
          • awayFromrequired — (String)

            The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.

          • commentrequired — (String)

            A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. That is, a new comment overwrites any existing comment string.

          • expiryTimerequired — (Date)

            The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.

            When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.

          • practiceRunOutcome — (String)

            The outcome, or end state, returned for a practice run. The following values can be returned:

            • PENDING: Outcome value when a practice run is in progress.

            • SUCCEEDED: Outcome value when the outcome alarm specified for the practice run configuration does not go into an ALARM state during the practice run, and the practice run was not interrupted before it completed the expected 30 minute zonal shift.

            • INTERRUPTED: Outcome value when the practice run was stopped before the expected 30 minute zonal shift duration, or there was another problem with the practice run that created an inconclusive outcome.

            • FAILED: Outcome value when the outcome alarm specified for the practice run configuration goes into an ALARM state during the practice run, and the practice run was not interrupted before it completed.

            For more information about practice run outcomes, see Considerations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.

            Possible values include:
            • "FAILED"
            • "INTERRUPTED"
            • "PENDING"
            • "SUCCEEDED"
          • resourceIdentifierrequired — (String)

            The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.

            At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

          • startTimerequired — (Date)

            The time (UTC) when the zonal shift starts.

          • zonalShiftIdrequired — (String)

            The identifier of a zonal shift.

      • nextToken — (String)

        Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

Returns:

  • (AWS.Request)

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

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

Lists all active and completed zonal shifts in Amazon Route 53 Application Recovery Controller in your Amazon Web Services account in this Amazon Web Services Region. ListZonalShifts returns customer-started zonal shifts, as well as practice run zonal shifts that Route 53 ARC started on your behalf for zonal autoshift.

The ListZonalShifts operation does not list autoshifts. For more information about listing autoshifts, see ">ListAutoshifts.

Service Reference:

Examples:

Calling the listZonalShifts operation

var params = {
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE',
  resourceIdentifier: 'STRING_VALUE',
  status: ACTIVE | EXPIRED | CANCELED
};
arczonalshift.listZonalShifts(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 objects that you want to return with this call.

    • nextToken — (String)

      Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

    • resourceIdentifier — (String)

      The identifier for the resource that you want to list zonal shifts for. The identifier is the Amazon Resource Name (ARN) for the resource.

    • status — (String)

      A status for a zonal shift.

      The Status for a zonal shift can have one of the following values:

      • ACTIVE: The zonal shift has been started and active.

      • EXPIRED: The zonal shift has expired (the expiry time was exceeded).

      • CANCELED: The zonal shift was canceled.

      Possible values include:
      • "ACTIVE"
      • "EXPIRED"
      • "CANCELED"

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:

      • items — (Array<map>)

        The items in the response list.

        • awayFromrequired — (String)

          The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.

        • commentrequired — (String)

          A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. That is, a new comment overwrites any existing comment string.

        • expiryTimerequired — (Date)

          The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.

          When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.

        • practiceRunOutcome — (String)

          The outcome, or end state, of a practice run. The following values can be returned:

          • PENDING: Outcome value when the practice run is in progress.

          • SUCCEEDED: Outcome value when the outcome alarm specified for the practice run configuration does not go into an ALARM state during the practice run, and the practice run was not interrupted before it completed.

          • INTERRUPTED: Outcome value when the practice run did not run for the expected 30 minutes or there was another problem with the practice run that created an inconclusive outcome.

          • FAILED: Outcome value when the outcome alarm specified for the practice run configuration goes into an ALARM state during the practice run, and the practice run was not interrupted before it completed.

          For more information about practice run outcomes, see Considerations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.

          Possible values include:
          • "FAILED"
          • "INTERRUPTED"
          • "PENDING"
          • "SUCCEEDED"
        • resourceIdentifierrequired — (String)

          The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.

          At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

        • startTimerequired — (Date)

          The time (UTC) when the zonal shift starts.

        • statusrequired — (String)

          A status for a zonal shift.

          The Status for a zonal shift can have one of the following values:

          • ACTIVE: The zonal shift has been started and active.

          • EXPIRED: The zonal shift has expired (the expiry time was exceeded).

          • CANCELED: The zonal shift was canceled.

          Possible values include:
          • "ACTIVE"
          • "EXPIRED"
          • "CANCELED"
        • zonalShiftIdrequired — (String)

          The identifier of a zonal shift.

      • nextToken — (String)

        Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

Returns:

  • (AWS.Request)

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

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

You start a zonal shift to temporarily move load balancer traffic away from an Availability Zone in an Amazon Web Services Region, to help your application recover immediately, for example, from a developer's bad code deployment or from an Amazon Web Services infrastructure failure in a single Availability Zone. You can start a zonal shift in Route 53 ARC only for managed resources in your Amazon Web Services account in an Amazon Web Services Region. Resources are automatically registered with Route 53 ARC by Amazon Web Services services.

At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

When you start a zonal shift, traffic for the resource is no longer routed to the Availability Zone. The zonal shift is created immediately in Route 53 ARC. However, it can take a short time, typically up to a few minutes, for existing, in-progress connections in the Availability Zone to complete.

For more information, see Zonal shift in the Amazon Route 53 Application Recovery Controller Developer Guide.

Service Reference:

Examples:

Calling the startZonalShift operation

var params = {
  awayFrom: 'STRING_VALUE', /* required */
  comment: 'STRING_VALUE', /* required */
  expiresIn: 'STRING_VALUE', /* required */
  resourceIdentifier: 'STRING_VALUE' /* required */
};
arczonalshift.startZonalShift(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: {})
    • awayFrom — (String)

      The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.

    • comment — (String)

      A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.

    • expiresIn — (String)

      The length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time). Zonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).

      If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.

      To set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:

      • A lowercase letter m: To specify that the value is in minutes.

      • A lowercase letter h: To specify that the value is in hours.

      For example: 20h means the zonal shift expires in 20 hours. 120m means the zonal shift expires in 120 minutes (2 hours).

    • resourceIdentifier — (String)

      The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.

      At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

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:

      • awayFrom — (String)

        The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.

      • comment — (String)

        A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.

      • expiryTime — (Date)

        The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.

        When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.

      • resourceIdentifier — (String)

        The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.

        At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      • startTime — (Date)

        The time (UTC) when the zonal shift starts.

      • status — (String)

        A status for a zonal shift.

        The Status for a zonal shift can have one of the following values:

        • ACTIVE: The zonal shift has been started and active.

        • EXPIRED: The zonal shift has expired (the expiry time was exceeded).

        • CANCELED: The zonal shift was canceled.

        Possible values include:
        • "ACTIVE"
        • "EXPIRED"
        • "CANCELED"
      • zonalShiftId — (String)

        The identifier of a zonal shift.

Returns:

  • (AWS.Request)

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

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

Update a practice run configuration to change one or more of the following: add, change, or remove the blocking alarm; change the outcome alarm; or add, change, or remove blocking dates or time windows.

Service Reference:

Examples:

Calling the updatePracticeRunConfiguration operation

var params = {
  resourceIdentifier: 'STRING_VALUE', /* required */
  blockedDates: [
    'STRING_VALUE',
    /* more items */
  ],
  blockedWindows: [
    'STRING_VALUE',
    /* more items */
  ],
  blockingAlarms: [
    {
      alarmIdentifier: 'STRING_VALUE', /* required */
      type: CLOUDWATCH /* required */
    },
    /* more items */
  ],
  outcomeAlarms: [
    {
      alarmIdentifier: 'STRING_VALUE', /* required */
      type: CLOUDWATCH /* required */
    },
    /* more items */
  ]
};
arczonalshift.updatePracticeRunConfiguration(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: {})
    • blockedDates — (Array<String>)

      Add, change, or remove blocked dates for a practice run in zonal autoshift.

      Optionally, you can block practice runs for specific calendar dates. The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Separate multiple blocked dates with spaces.

      For example, if you have an application update scheduled to launch on May 1, 2024, and you don't want practice runs to shift traffic away at that time, you could set a blocked date for 2024-05-01.

    • blockedWindows — (Array<String>)

      Add, change, or remove windows of days and times for when you can, optionally, block Route 53 ARC from starting a practice run for a resource.

      The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Also, be aware of potential time adjustments that might be required for daylight saving time differences. Separate multiple blocked windows with spaces.

      For example, say you run business report summaries three days a week. For this scenario, you might set the following recurring days and times as blocked windows, for example: MON-20:30-21:30 WED-20:30-21:30 FRI-20:30-21:30.

    • blockingAlarms — (Array<map>)

      Add, change, or remove the Amazon CloudWatch alarm that you optionally specify as the blocking alarm for practice runs.

      • alarmIdentifierrequired — (String)

        The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.

      • typerequired — (String)

        The type of alarm specified for a practice run. The only valid value is CLOUDWATCH.

        Possible values include:
        • "CLOUDWATCH"
    • outcomeAlarms — (Array<map>)

      Specify a new the Amazon CloudWatch alarm as the outcome alarm for practice runs.

      • alarmIdentifierrequired — (String)

        The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.

      • typerequired — (String)

        The type of alarm specified for a practice run. The only valid value is CLOUDWATCH.

        Possible values include:
        • "CLOUDWATCH"
    • resourceIdentifier — (String)

      The identifier for the resource that you want to update the practice run configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.

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:

      • arn — (String)

        The Amazon Resource Name (ARN) of the resource that you updated the practice run for.

      • name — (String)

        The name of the resource that you updated the practice run for.

      • practiceRunConfiguration — (map)

        The practice run configuration that was updated.

        • blockedDates — (Array<String>)

          An array of one or more dates that you can specify when Amazon Web Services does not start practice runs for a resource.

          Specify blocked dates, in UTC, in the format YYYY-MM-DD, separated by spaces.

        • blockedWindows — (Array<String>)

          An array of one or more windows of days and times that you can block Route 53 ARC from starting practice runs for a resource.

          Specify the blocked windows in UTC, using the format DAY:HH:MM-DAY:HH:MM, separated by spaces. For example, MON:18:30-MON:19:30 TUE:18:30-TUE:19:30.

        • blockingAlarms — (Array<map>)

          The blocking alarm for practice runs is an optional alarm that you can specify that blocks practice runs when the alarm is in an ALARM state.

          • alarmIdentifierrequired — (String)

            The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.

          • typerequired — (String)

            The type of alarm specified for a practice run. The only valid value is CLOUDWATCH.

            Possible values include:
            • "CLOUDWATCH"
        • outcomeAlarmsrequired — (Array<map>)

          The outcome alarm for practice runs is an alarm that you specify that ends a practice run when the alarm is in an ALARM state.

          • alarmIdentifierrequired — (String)

            The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.

          • typerequired — (String)

            The type of alarm specified for a practice run. The only valid value is CLOUDWATCH.

            Possible values include:
            • "CLOUDWATCH"
      • zonalAutoshiftStatus — (String)

        The zonal autoshift status for the resource that you updated the practice run for.

        Possible values include:
        • "ENABLED"
        • "DISABLED"

Returns:

  • (AWS.Request)

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

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

You can update the zonal autoshift status for a resource, to enable or disable zonal autoshift. When zonal autoshift is ENABLED, Amazon Web Services shifts away resource traffic from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.

Examples:

Calling the updateZonalAutoshiftConfiguration operation

var params = {
  resourceIdentifier: 'STRING_VALUE', /* required */
  zonalAutoshiftStatus: ENABLED | DISABLED /* required */
};
arczonalshift.updateZonalAutoshiftConfiguration(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: {})
    • resourceIdentifier — (String)

      The identifier for the resource that you want to update the zonal autoshift configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.

    • zonalAutoshiftStatus — (String)

      The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for.

      Possible values include:
      • "ENABLED"
      • "DISABLED"

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:

      • resourceIdentifier — (String)

        The identifier for the resource that you updated the zonal autoshift configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.

      • zonalAutoshiftStatus — (String)

        The zonal autoshift status for the resource that you updated the zonal autoshift configuration for.

        Possible values include:
        • "ENABLED"
        • "DISABLED"

Returns:

  • (AWS.Request)

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

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

Update an active zonal shift in Amazon Route 53 Application Recovery Controller in your Amazon Web Services account. You can update a zonal shift to set a new expiration, or edit or replace the comment for the zonal shift.

Service Reference:

Examples:

Calling the updateZonalShift operation

var params = {
  zonalShiftId: 'STRING_VALUE', /* required */
  comment: 'STRING_VALUE',
  expiresIn: 'STRING_VALUE'
};
arczonalshift.updateZonalShift(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: {})
    • comment — (String)

      A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.

    • expiresIn — (String)

      The length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time). Zonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).

      If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.

      To set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:

      • A lowercase letter m: To specify that the value is in minutes.

      • A lowercase letter h: To specify that the value is in hours.

      For example: 20h means the zonal shift expires in 20 hours. 120m means the zonal shift expires in 120 minutes (2 hours).

    • zonalShiftId — (String)

      The identifier of a zonal shift.

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:

      • awayFrom — (String)

        The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.

      • comment — (String)

        A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.

      • expiryTime — (Date)

        The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.

        When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.

      • resourceIdentifier — (String)

        The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.

        At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.

      • startTime — (Date)

        The time (UTC) when the zonal shift starts.

      • status — (String)

        A status for a zonal shift.

        The Status for a zonal shift can have one of the following values:

        • ACTIVE: The zonal shift has been started and active.

        • EXPIRED: The zonal shift has expired (the expiry time was exceeded).

        • CANCELED: The zonal shift was canceled.

        Possible values include:
        • "ACTIVE"
        • "EXPIRED"
        • "CANCELED"
      • zonalShiftId — (String)

        The identifier of a zonal shift.

Returns:

  • (AWS.Request)

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