/AWS1/IF_R5P=>CREATEPROFILE()¶
About CreateProfile¶
Creates an empty Route 53 Profile.
Method Signature¶
METHODS /AWS1/IF_R5P~CREATEPROFILE
IMPORTING
!IV_NAME TYPE /AWS1/R5PNAME OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/R5PCREATORREQUESTID OPTIONAL
!IT_TAGS TYPE /AWS1/CL_R5PTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5pcreateprofilersp
RAISING
/AWS1/CX_R5PACCESSDENIEDEX
/AWS1/CX_R5PINVALIDPARAMETEREX
/AWS1/CX_R5PLIMITEXCEEDEDEX
/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_name TYPE /AWS1/R5PNAME /AWS1/R5PNAME¶
A name for the Profile.
iv_clienttoken TYPE /AWS1/R5PCREATORREQUESTID /AWS1/R5PCREATORREQUESTID¶
ClientTokenis an idempotency token that ensures a call toCreateProfilecompletes only once. You choose the value to pass. For example, an issue might prevent you from getting a response fromCreateProfile. In this case, safely retry your call toCreateProfileby using the sameCreateProfileparameter value.
Optional arguments:¶
it_tags TYPE /AWS1/CL_R5PTAG=>TT_TAGLIST TT_TAGLIST¶
A list of the tag keys and values that you want to associate with the Route 53 Profile.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r5pcreateprofilersp /AWS1/CL_R5PCREATEPROFILERSP¶
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->createprofile(
it_tags = VALUE /aws1/cl_r5ptag=>tt_taglist(
(
new /aws1/cl_r5ptag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_clienttoken = |string|
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_profile = lo_result->get_profile( ).
IF lo_profile IS NOT INITIAL.
lv_resourceid = lo_profile->get_id( ).
lv_arn = lo_profile->get_arn( ).
lv_name = lo_profile->get_name( ).
lv_accountid = lo_profile->get_ownerid( ).
lv_profilestatus = lo_profile->get_status( ).
lv_string = lo_profile->get_statusmessage( ).
lv_sharestatus = lo_profile->get_sharestatus( ).
lv_rfc3339timestamp = lo_profile->get_creationtime( ).
lv_rfc3339timestamp = lo_profile->get_modificationtime( ).
lv_creatorrequestid = lo_profile->get_clienttoken( ).
ENDIF.
ENDIF.