/AWS1/IF_R5P=>ASSOCIATEPROFILE()¶
About AssociateProfile¶
Associates a Route 53 Profiles profile with a VPC. A VPC can have only one Profile associated with it, but a Profile can be associated with 1000 of VPCs (and you can request a higher quota). For more information, see https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html#limits-api-entities.
Method Signature¶
METHODS /AWS1/IF_R5P~ASSOCIATEPROFILE
IMPORTING
!IV_PROFILEID TYPE /AWS1/R5PRESOURCEID OPTIONAL
!IV_RESOURCEID TYPE /AWS1/R5PRESOURCEID OPTIONAL
!IV_NAME TYPE /AWS1/R5PNAME OPTIONAL
!IT_TAGS TYPE /AWS1/CL_R5PTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5passocprofilersp
RAISING
/AWS1/CX_R5PACCESSDENIEDEX
/AWS1/CX_R5PCONFLICTEXCEPTION
/AWS1/CX_R5PINVALIDPARAMETEREX
/AWS1/CX_R5PLIMITEXCEEDEDEX
/AWS1/CX_R5PRESOURCEEXISTSEX
/AWS1/CX_R5PRESOURCENOTFOUNDEX
/AWS1/CX_R5PTHROTTLINGEX
/AWS1/CX_R5PVALIDATIONEX
/AWS1/CX_R5PCLIENTEXC
/AWS1/CX_R5PSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_profileid TYPE /AWS1/R5PRESOURCEID /AWS1/R5PRESOURCEID¶
ID of the Profile.
iv_resourceid TYPE /AWS1/R5PRESOURCEID /AWS1/R5PRESOURCEID¶
The ID of the VPC.
iv_name TYPE /AWS1/R5PNAME /AWS1/R5PNAME¶
A name for the association.
Optional arguments:¶
it_tags TYPE /AWS1/CL_R5PTAG=>TT_TAGLIST TT_TAGLIST¶
A list of the tag keys and values that you want to identify the Profile association.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r5passocprofilersp /AWS1/CL_R5PASSOCPROFILERSP¶
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->associateprofile(
it_tags = VALUE /aws1/cl_r5ptag=>tt_taglist(
(
new /aws1/cl_r5ptag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_name = |string|
iv_profileid = |string|
iv_resourceid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_profileassociation = lo_result->get_profileassociation( ).
IF lo_profileassociation IS NOT INITIAL.
lv_resourceid = lo_profileassociation->get_id( ).
lv_name = lo_profileassociation->get_name( ).
lv_accountid = lo_profileassociation->get_ownerid( ).
lv_resourceid = lo_profileassociation->get_profileid( ).
lv_resourceid = lo_profileassociation->get_resourceid( ).
lv_profilestatus = lo_profileassociation->get_status( ).
lv_string = lo_profileassociation->get_statusmessage( ).
lv_rfc3339timestamp = lo_profileassociation->get_creationtime( ).
lv_rfc3339timestamp = lo_profileassociation->get_modificationtime( ).
ENDIF.
ENDIF.