View a markdown version of this page

UpdateHostedZoneFeatures - Amazon Route 53

UpdateHostedZoneFeatures

Updates the features configuration for a hosted zone. This operation allows you to enable or disable specific features for your hosted zone, such as accelerated recovery and public DNS fallback.

Accelerated recovery enables you to update DNS records in your public hosted zone even when the us-east-1 region is unavailable.

Public DNS fallback enables Route 53 to retry a query against public DNS when a query for a domain name in a private hosted zone matches no existing name (NXDOMAIN). Fallback does not occur when the name exists but has no record of the requested type. Public DNS fallback is supported only for private hosted zones.

Request Syntax

POST /2013-04-01/hostedzone/Id/features HTTP/1.1 <?xml version="1.0" encoding="UTF-8"?> <UpdateHostedZoneFeaturesRequest xmlns="https://route53.amazonaws.com/doc/2013-04-01/"> <ChangeGuardrails> <ChangeGuardrail> <Name>string</Name> <Status>string</Status> </ChangeGuardrail> </ChangeGuardrails> <DryRun>boolean</DryRun> <EnableAcceleratedRecovery>boolean</EnableAcceleratedRecovery> <EnablePublicDNSFallback>boolean</EnablePublicDNSFallback> </UpdateHostedZoneFeaturesRequest>

URI Request Parameters

The request uses the following URI parameters.

Id

The ID of the hosted zone for which you want to update features. This is the unique identifier for your hosted zone.

Length Constraints: Maximum length of 32.

Required: Yes

Request Body

The request accepts the following data in XML format.

UpdateHostedZoneFeaturesRequest

Root level tag for the UpdateHostedZoneFeaturesRequest parameters.

Required: Yes

ChangeGuardrails

Specify the Change Guardrails to turn on or off for the hosted zone. Each entry specifies the name of a guardrail and one of the following statuses:

  • ENABLED: Turns on the guardrail.

  • DISABLED: Turns off the guardrail.

Guardrails that aren't in the request keep their current status.

You can turn on an optional guardrail only if the tier of the hosted zone offers it. You can't turn off a guardrail that the tier includes, such as NS_FORMAT_CHECK. In either case, Route 53 returns an InvalidInput error.

Type: Array of ChangeGuardrail objects

Array Members: Minimum number of 1 item.

Required: No

DryRun

Specifies whether to validate the request without changing any features. Route 53 returns the same errors as for a real request, but doesn't change the hosted zone. The default is false.

Type: Boolean

Required: No

EnableAcceleratedRecovery

Specifies whether to enable accelerated recovery for the hosted zone. Set to true to enable accelerated recovery, or false to disable it.

Type: Boolean

Required: No

EnablePublicDNSFallback

Specifies whether to enable public DNS fallback for the hosted zone. Set to true to enable public DNS fallback, or false to disable it.

Public DNS fallback applies to the entire hosted zone and to all VPCs that are associated with it. To check whether a change has propagated, call GetHostedZone and review PublicDNSFallbackStatus in the response.

Public DNS fallback is supported only for private hosted zones.

Type: Boolean

Required: No

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Error Types.

InvalidInput

The input is not valid.

message

HTTP Status Code: 400

LimitsExceeded

This operation can't be completed because the current account has reached the limit on the resource you are trying to create. To request a higher limit, create a case with the AWS Support Center.

message

HTTP Status Code: 400

NoSuchHostedZone

No hosted zone exists with the ID that you specified.

message

HTTP Status Code: 404

PriorRequestNotComplete

If Amazon Route 53 can't process a request before the next request arrives, it will reject subsequent requests for the same hosted zone and return an HTTP 400 error (Bad request). If Route 53 returns this error repeatedly for the same request, we recommend that you wait, in intervals of increasing duration, before you try the request again.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: