Skip to content

/AWS1/IF_R53=>UPDATEHOSTEDZONEFEATURES()

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

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

Method Signature

METHODS /AWS1/IF_R53~UPDATEHOSTEDZONEFEATURES
  IMPORTING
    !IV_HOSTEDZONEID TYPE /AWS1/R53RESOURCEID OPTIONAL
    !IV_ENABLEACCELERATEDRECOVERY TYPE /AWS1/R53ACCDRECOVERYENABLED OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r53uphostedzoneftsrsp
  RAISING
    /AWS1/CX_R53INVALIDINPUT
    /AWS1/CX_R53LIMITSEXCEEDED
    /AWS1/CX_R53NOSUCHHOSTEDZONE
    /AWS1/CX_R53PRIORREQNOTCOMPL
    /AWS1/CX_R53CLIENTEXC
    /AWS1/CX_R53SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_hostedzoneid TYPE /AWS1/R53RESOURCEID /AWS1/R53RESOURCEID

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

Optional arguments:

iv_enableacceleratedrecovery TYPE /AWS1/R53ACCDRECOVERYENABLED /AWS1/R53ACCDRECOVERYENABLED

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

RETURNING

oo_output TYPE REF TO /aws1/cl_r53uphostedzoneftsrsp /AWS1/CL_R53UPHOSTEDZONEFTSRSP

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->updatehostedzonefeatures(
  iv_enableacceleratedrecovery = ABAP_TRUE
  iv_hostedzoneid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.