/AWS1/IF_DZN=>CREATEPROJECT()¶
About CreateProject¶
Creates an Amazon DataZone project.
Method Signature¶
METHODS /AWS1/IF_DZN~CREATEPROJECT
IMPORTING
!IV_DOMAINIDENTIFIER TYPE /AWS1/DZNDOMAINID OPTIONAL
!IV_NAME TYPE /AWS1/DZNPROJECTNAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/DZNDESCRIPTION OPTIONAL
!IT_RESOURCETAGS TYPE /AWS1/CL_DZNTAGS_W=>TT_TAGS OPTIONAL
!IT_GLOSSARYTERMS TYPE /AWS1/CL_DZNGLOSSARYTERMS_W=>TT_GLOSSARYTERMS OPTIONAL
!IV_DOMAINUNITID TYPE /AWS1/DZNDOMAINUNITID OPTIONAL
!IV_PROJECTPROFILEID TYPE /AWS1/DZNPROJECTPROFILEID OPTIONAL
!IT_USERPARAMETERS TYPE /AWS1/CL_DZNENVIRONMENTCONFU00=>TT_ENVIRONMENTCONFUSERPARMSLST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dzncreateprojectout
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_domainidentifier TYPE /AWS1/DZNDOMAINID /AWS1/DZNDOMAINID¶
The ID of the Amazon DataZone domain in which this project is created.
iv_name TYPE /AWS1/DZNPROJECTNAME /AWS1/DZNPROJECTNAME¶
The name of the Amazon DataZone project.
Optional arguments:¶
iv_description TYPE /AWS1/DZNDESCRIPTION /AWS1/DZNDESCRIPTION¶
The description of the Amazon DataZone project.
it_resourcetags TYPE /AWS1/CL_DZNTAGS_W=>TT_TAGS TT_TAGS¶
The resource tags of the project.
it_glossaryterms TYPE /AWS1/CL_DZNGLOSSARYTERMS_W=>TT_GLOSSARYTERMS TT_GLOSSARYTERMS¶
The glossary terms that can be used in this Amazon DataZone project.
iv_domainunitid TYPE /AWS1/DZNDOMAINUNITID /AWS1/DZNDOMAINUNITID¶
The ID of the domain unit. This parameter is not required and if it is not specified, then the project is created at the root domain unit level.
iv_projectprofileid TYPE /AWS1/DZNPROJECTPROFILEID /AWS1/DZNPROJECTPROFILEID¶
The ID of the project profile.
it_userparameters TYPE /AWS1/CL_DZNENVIRONMENTCONFU00=>TT_ENVIRONMENTCONFUSERPARMSLST TT_ENVIRONMENTCONFUSERPARMSLST¶
The user parameters of the project.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dzncreateprojectout /AWS1/CL_DZNCREATEPROJECTOUT¶
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->createproject(
it_glossaryterms = VALUE /aws1/cl_dznglossaryterms_w=>tt_glossaryterms(
( new /aws1/cl_dznglossaryterms_w( |string| ) )
)
it_resourcetags = VALUE /aws1/cl_dzntags_w=>tt_tags(
(
VALUE /aws1/cl_dzntags_w=>ts_tags_maprow(
key = |string|
value = new /aws1/cl_dzntags_w( |string| )
)
)
)
it_userparameters = VALUE /aws1/cl_dznenvironmentconfu00=>tt_environmentconfuserparmslst(
(
new /aws1/cl_dznenvironmentconfu00(
io_envresolvedaccount = new /aws1/cl_dznenvresolvedaccount(
iv_awsaccountid = |string|
iv_regionname = |string|
iv_sourceaccountpoolid = |string|
)
it_environmentparameters = VALUE /aws1/cl_dznenvironmentparam=>tt_environmentparameterslist(
(
new /aws1/cl_dznenvironmentparam(
iv_name = |string|
iv_value = |string|
)
)
)
iv_environmentconfname = |string|
iv_environmentid = |string|
)
)
)
iv_description = |string|
iv_domainidentifier = |string|
iv_domainunitid = |string|
iv_name = |string|
iv_projectprofileid = |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_projectid = lo_result->get_id( ).
lv_projectname = lo_result->get_name( ).
lv_description = lo_result->get_description( ).
lv_projectstatus = lo_result->get_projectstatus( ).
LOOP AT lo_result->get_failurereasons( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_code( ).
lv_string = lo_row_1->get_message( ).
ENDIF.
ENDLOOP.
lv_createdby = lo_result->get_createdby( ).
lv_timestamp = lo_result->get_createdat( ).
lv_timestamp = lo_result->get_lastupdatedat( ).
LOOP AT lo_result->get_resourcetags( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_tagkey = lo_row_3->get_key( ).
lv_tagvalue = lo_row_3->get_value( ).
lv_resourcetagsource = lo_row_3->get_source( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_glossaryterms( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_glossarytermid = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lv_domainunitid = lo_result->get_domainunitid( ).
lv_projectprofileid = lo_result->get_projectprofileid( ).
LOOP AT lo_result->get_userparameters( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_environmentid = lo_row_7->get_environmentid( ).
lo_environmentresolvedacco = lo_row_7->get_envresolvedaccount( ).
IF lo_environmentresolvedacco IS NOT INITIAL.
lv_awsaccountid = lo_environmentresolvedacco->get_awsaccountid( ).
lv_awsregion = lo_environmentresolvedacco->get_regionname( ).
lv_accountpoolid = lo_environmentresolvedacco->get_sourceaccountpoolid( ).
ENDIF.
lv_environmentconfiguratio = lo_row_7->get_environmentconfname( ).
LOOP AT lo_row_7->get_environmentparameters( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_string = lo_row_9->get_name( ).
lv_string = lo_row_9->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lo_environmentdeploymentde = lo_result->get_environmentdeploymentd00( ).
IF lo_environmentdeploymentde IS NOT INITIAL.
lv_overalldeploymentstatus = lo_environmentdeploymentde->get_overalldeploymentstatus( ).
LOOP AT lo_environmentdeploymentde->get_environmentfailurersns( ) into ls_row_10.
lv_key = ls_row_10-key.
LOOP AT ls_row_10-value into lo_row_11.
lo_row_12 = lo_row_11.
IF lo_row_12 IS NOT INITIAL.
lv_string = lo_row_12->get_code( ).
lv_string = lo_row_12->get_message( ).
ENDIF.
ENDLOOP.
ENDLOOP.
ENDIF.
ENDIF.