/AWS1/IF_DZN=>CREATEDOMAIN()¶
About CreateDomain¶
Creates an Amazon DataZone domain.
Method Signature¶
METHODS /AWS1/IF_DZN~CREATEDOMAIN
IMPORTING
!IV_NAME TYPE /AWS1/DZNSTRING OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/DZNSTRING OPTIONAL
!IO_SINGLESIGNON TYPE REF TO /AWS1/CL_DZNSINGLESIGNON OPTIONAL
!IV_DOMAINEXECUTIONROLE TYPE /AWS1/DZNROLEARN OPTIONAL
!IV_KMSKEYIDENTIFIER TYPE /AWS1/DZNKMSKEYARN OPTIONAL
!IT_TAGS TYPE /AWS1/CL_DZNTAGS_W=>TT_TAGS OPTIONAL
!IV_DOMAINVERSION TYPE /AWS1/DZNDOMAINVERSION OPTIONAL
!IV_SERVICEROLE TYPE /AWS1/DZNROLEARN OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/DZNSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dzncreatedomainoutput
RAISING
/AWS1/CX_DZNACCESSDENIEDEX
/AWS1/CX_DZNTHROTTLINGEX
/AWS1/CX_DZNUNAUTHORIZEDEX
/AWS1/CX_DZNCONFLICTEXCEPTION
/AWS1/CX_DZNINTERNALSERVEREX
/AWS1/CX_DZNRESOURCENOTFOUNDEX
/AWS1/CX_DZNSERVICEQUOTAEXCDEX
/AWS1/CX_DZNVALIDATIONEX
/AWS1/CX_DZNCLIENTEXC
/AWS1/CX_DZNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/DZNSTRING /AWS1/DZNSTRING¶
The name of the Amazon DataZone domain.
iv_domainexecutionrole TYPE /AWS1/DZNROLEARN /AWS1/DZNROLEARN¶
The domain execution role that is created when an Amazon DataZone domain is created. The domain execution role is created in the Amazon Web Services account that houses the Amazon DataZone domain.
Optional arguments:¶
iv_description TYPE /AWS1/DZNSTRING /AWS1/DZNSTRING¶
The description of the Amazon DataZone domain.
io_singlesignon TYPE REF TO /AWS1/CL_DZNSINGLESIGNON /AWS1/CL_DZNSINGLESIGNON¶
The single-sign on configuration of the Amazon DataZone domain.
iv_kmskeyidentifier TYPE /AWS1/DZNKMSKEYARN /AWS1/DZNKMSKEYARN¶
The identifier of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt the Amazon DataZone domain, metadata, and reporting data.
it_tags TYPE /AWS1/CL_DZNTAGS_W=>TT_TAGS TT_TAGS¶
The tags specified for the Amazon DataZone domain.
iv_domainversion TYPE /AWS1/DZNDOMAINVERSION /AWS1/DZNDOMAINVERSION¶
The version of the domain that is created.
iv_servicerole TYPE /AWS1/DZNROLEARN /AWS1/DZNROLEARN¶
The service role of the domain that is created.
iv_clienttoken TYPE /AWS1/DZNSTRING /AWS1/DZNSTRING¶
A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dzncreatedomainoutput /AWS1/CL_DZNCREATEDOMAINOUTPUT¶
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->createdomain(
io_singlesignon = new /aws1/cl_dznsinglesignon(
iv_idcinstancearn = |string|
iv_type = |string|
iv_userassignment = |string|
)
it_tags = VALUE /aws1/cl_dzntags_w=>tt_tags(
(
VALUE /aws1/cl_dzntags_w=>ts_tags_maprow(
key = |string|
value = new /aws1/cl_dzntags_w( |string| )
)
)
)
iv_clienttoken = |string|
iv_description = |string|
iv_domainexecutionrole = |string|
iv_domainversion = |string|
iv_kmskeyidentifier = |string|
iv_name = |string|
iv_servicerole = |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_id( ).
lv_domainunitid = lo_result->get_rootdomainunitid( ).
lv_string = lo_result->get_name( ).
lv_string = lo_result->get_description( ).
lo_singlesignon = lo_result->get_singlesignon( ).
IF lo_singlesignon IS NOT INITIAL.
lv_authtype = lo_singlesignon->get_type( ).
lv_userassignment = lo_singlesignon->get_userassignment( ).
lv_string = lo_singlesignon->get_idcinstancearn( ).
ENDIF.
lv_rolearn = lo_result->get_domainexecutionrole( ).
lv_string = lo_result->get_arn( ).
lv_kmskeyarn = lo_result->get_kmskeyidentifier( ).
lv_domainstatus = lo_result->get_status( ).
lv_string = lo_result->get_portalurl( ).
LOOP AT lo_result->get_tags( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_domainversion = lo_result->get_domainversion( ).
lv_rolearn = lo_result->get_servicerole( ).
ENDIF.