/AWS1/IF_CNH=>CREATEDOMAIN()¶
About CreateDomain¶
Creates a new Domain for managing HealthAgent resources.
Method Signature¶
METHODS /AWS1/IF_CNH~CREATEDOMAIN
IMPORTING
!IV_NAME TYPE /AWS1/CNHDOMAINNAME OPTIONAL
!IV_KMSKEYARN TYPE /AWS1/CNHKMSKEYARN OPTIONAL
!IO_WEBAPPSETUPCONFIGURATION TYPE REF TO /AWS1/CL_CNHCREATEWEBAPPCONF OPTIONAL
!IT_TAGS TYPE /AWS1/CL_CNHTAGMAP_W=>TT_TAGMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cnhcreatedomainoutput
RAISING
/AWS1/CX_CNHSERVICEQUOTAEXCDEX
/AWS1/CX_CNHCLIENTEXC
/AWS1/CX_CNHSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/CNHDOMAINNAME /AWS1/CNHDOMAINNAME¶
The name for the new Domain.
Optional arguments:¶
iv_kmskeyarn TYPE /AWS1/CNHKMSKEYARN /AWS1/CNHKMSKEYARN¶
The ARN of the KMS key to use for encrypting data in this Domain.
io_webappsetupconfiguration TYPE REF TO /AWS1/CL_CNHCREATEWEBAPPCONF /AWS1/CL_CNHCREATEWEBAPPCONF¶
Configuration for the Domain web application. Optional, but if provided all fields are required.
it_tags TYPE /AWS1/CL_CNHTAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
Tags to associate with the Domain.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cnhcreatedomainoutput /AWS1/CL_CNHCREATEDOMAINOUTPUT¶
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->createdomain(
io_webappsetupconfiguration = new /aws1/cl_cnhcreatewebappconf(
iv_ehrrole = |string|
iv_idcinstanceid = |string|
iv_idcregion = |string|
)
it_tags = VALUE /aws1/cl_cnhtagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_cnhtagmap_w=>ts_tagmap_maprow(
key = |string|
value = new /aws1/cl_cnhtagmap_w( |string| )
)
)
)
iv_kmskeyarn = |string|
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_domainid = lo_result->get_domainid( ).
lv_domainarn = lo_result->get_arn( ).
lv_domainname = lo_result->get_name( ).
lv_kmskeyarn = lo_result->get_kmskeyarn( ).
lo_encryptioncontext = lo_result->get_encryptioncontext( ).
IF lo_encryptioncontext IS NOT INITIAL.
lv_encryptiontype = lo_encryptioncontext->get_encryptiontype( ).
lv_kmskeyarn = lo_encryptioncontext->get_kmskeyarn( ).
ENDIF.
lv_domainstatus = lo_result->get_status( ).
lv_webappurl = lo_result->get_webappurl( ).
lo_webappconfiguration = lo_result->get_webappconfiguration( ).
IF lo_webappconfiguration IS NOT INITIAL.
lv_string = lo_webappconfiguration->get_ehrrole( ).
lv_string = lo_webappconfiguration->get_idcapplicationid( ).
lv_string = lo_webappconfiguration->get_idcregion( ).
ENDIF.
lv_timestamp = lo_result->get_createdat( ).
ENDIF.