/AWS1/IF_R53=>CREATEVPCASSOCIATIONAUTH()¶
About CreateVPCAssociationAuthorization¶
Authorizes the Amazon Web Services account that created a specified VPC to submit an
AssociateVPCWithHostedZone request to associate the VPC with a
specified hosted zone that was created by a different account. To submit a
CreateVPCAssociationAuthorization request, you must use the account
that created the hosted zone. After you authorize the association, use the account that
created the VPC to submit an AssociateVPCWithHostedZone request.
If you want to associate multiple VPCs that you created by using one account with a hosted zone that you created by using a different account, you must submit one authorization request for each VPC.
Method Signature¶
METHODS /AWS1/IF_R53~CREATEVPCASSOCIATIONAUTH
IMPORTING
!IV_HOSTEDZONEID TYPE /AWS1/R53RESOURCEID OPTIONAL
!IO_VPC TYPE REF TO /AWS1/CL_R53VPC OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r53crevpcassociatio01
RAISING
/AWS1/CX_R53CONCURRENTMOD
/AWS1/CX_R53INVALIDINPUT
/AWS1/CX_R53INVALIDVPCID
/AWS1/CX_R53NOSUCHHOSTEDZONE
/AWS1/CX_R53TOOMANYVPCASSOCI00
/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 private hosted zone that you want to authorize associating a VPC with.
io_vpc TYPE REF TO /AWS1/CL_R53VPC /AWS1/CL_R53VPC¶
A complex type that contains the VPC ID and region for the VPC that you want to authorize associating with your hosted zone.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r53crevpcassociatio01 /AWS1/CL_R53CREVPCASSOCIATIO01¶
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->createvpcassociationauth(
io_vpc = new /aws1/cl_r53vpc(
iv_vpcid = |string|
iv_vpcregion = |string|
)
iv_hostedzoneid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_resourceid = lo_result->get_hostedzoneid( ).
lo_vpc = lo_result->get_vpc( ).
IF lo_vpc IS NOT INITIAL.
lv_vpcregion = lo_vpc->get_vpcregion( ).
lv_vpcid = lo_vpc->get_vpcid( ).
ENDIF.
ENDIF.