/AWS1/IF_DZN=>CREATEENVIRONMENTPROFILE()¶
About CreateEnvironmentProfile¶
Creates an Amazon DataZone environment profile.
Method Signature¶
METHODS /AWS1/IF_DZN~CREATEENVIRONMENTPROFILE
IMPORTING
!IV_DOMAINIDENTIFIER TYPE /AWS1/DZNDOMAINID OPTIONAL
!IV_NAME TYPE /AWS1/DZNENVIRONMENTPFLNAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/DZNDESCRIPTION OPTIONAL
!IV_ENVIRONMENTBLUEPRINTID00 TYPE /AWS1/DZNENVIRONMENTBLUEPRIN00 OPTIONAL
!IV_PROJECTIDENTIFIER TYPE /AWS1/DZNPROJECTID OPTIONAL
!IT_USERPARAMETERS TYPE /AWS1/CL_DZNENVIRONMENTPARAM=>TT_ENVIRONMENTPARAMETERSLIST OPTIONAL
!IV_AWSACCOUNTID TYPE /AWS1/DZNAWSACCOUNTID OPTIONAL
!IV_AWSACCOUNTREGION TYPE /AWS1/DZNAWSREGION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dzncreenvironmentpf01
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 environment profile is created.
iv_name TYPE /AWS1/DZNENVIRONMENTPFLNAME /AWS1/DZNENVIRONMENTPFLNAME¶
The name of this Amazon DataZone environment profile.
iv_environmentblueprintid00 TYPE /AWS1/DZNENVIRONMENTBLUEPRIN00 /AWS1/DZNENVIRONMENTBLUEPRIN00¶
The ID of the blueprint with which this environment profile is created.
iv_projectidentifier TYPE /AWS1/DZNPROJECTID /AWS1/DZNPROJECTID¶
The identifier of the project in which to create the environment profile.
Optional arguments:¶
iv_description TYPE /AWS1/DZNDESCRIPTION /AWS1/DZNDESCRIPTION¶
The description of this Amazon DataZone environment profile.
it_userparameters TYPE /AWS1/CL_DZNENVIRONMENTPARAM=>TT_ENVIRONMENTPARAMETERSLIST TT_ENVIRONMENTPARAMETERSLIST¶
The user parameters of this Amazon DataZone environment profile.
iv_awsaccountid TYPE /AWS1/DZNAWSACCOUNTID /AWS1/DZNAWSACCOUNTID¶
The Amazon Web Services account in which the Amazon DataZone environment is created.
iv_awsaccountregion TYPE /AWS1/DZNAWSREGION /AWS1/DZNAWSREGION¶
The Amazon Web Services region in which this environment profile is created.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dzncreenvironmentpf01 /AWS1/CL_DZNCREENVIRONMENTPF01¶
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->createenvironmentprofile(
it_userparameters = VALUE /aws1/cl_dznenvironmentparam=>tt_environmentparameterslist(
(
new /aws1/cl_dznenvironmentparam(
iv_name = |string|
iv_value = |string|
)
)
)
iv_awsaccountid = |string|
iv_awsaccountregion = |string|
iv_description = |string|
iv_domainidentifier = |string|
iv_environmentblueprintid00 = |string|
iv_name = |string|
iv_projectidentifier = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_environmentprofileid = lo_result->get_id( ).
lv_domainid = lo_result->get_domainid( ).
lv_awsaccountid = lo_result->get_awsaccountid( ).
lv_awsregion = lo_result->get_awsaccountregion( ).
lv_string = lo_result->get_createdby( ).
lv_timestamp = lo_result->get_createdat( ).
lv_timestamp = lo_result->get_updatedat( ).
lv_environmentprofilename = lo_result->get_name( ).
lv_description = lo_result->get_description( ).
lv_environmentblueprintid = lo_result->get_environmentblueprintid( ).
lv_projectid = lo_result->get_projectid( ).
LOOP AT lo_result->get_userparameters( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_keyname( ).
lv_description = lo_row_1->get_description( ).
lv_string = lo_row_1->get_fieldtype( ).
lv_string = lo_row_1->get_defaultvalue( ).
lv_boolean = lo_row_1->get_iseditable( ).
lv_boolean = lo_row_1->get_isoptional( ).
lv_boolean = lo_row_1->get_isupdatesupported( ).
ENDIF.
ENDLOOP.
ENDIF.