Skip to content

/AWS1/IF_DZN=>UPDATEPROJECTPROFILE()

About UpdateProjectProfile

Updates a project profile.

Method Signature

METHODS /AWS1/IF_DZN~UPDATEPROJECTPROFILE
  IMPORTING
    !IV_DOMAINIDENTIFIER TYPE /AWS1/DZNDOMAINID OPTIONAL
    !IV_IDENTIFIER TYPE /AWS1/DZNPROJECTPROFILEID OPTIONAL
    !IV_NAME TYPE /AWS1/DZNPROJECTPROFILENAME OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/DZNDESCRIPTION OPTIONAL
    !IV_STATUS TYPE /AWS1/DZNSTATUS OPTIONAL
    !IT_PROJECTRESOURCETAGS TYPE /AWS1/CL_DZNRESOURCETAGPARAM=>TT_PROJECTRESOURCETAGPARAMS OPTIONAL
    !IV_ALLOWCUSTOMPROJECTRESTAGS TYPE /AWS1/DZNBOOLEAN OPTIONAL
    !IV_PROJECTRESOURCETAGSDESC TYPE /AWS1/DZNDESCRIPTION OPTIONAL
    !IT_ENVIRONMENTCONFIGURATIONS TYPE /AWS1/CL_DZNENVIRONMENTCONF=>TT_ENVIRONMENTCONFSLIST OPTIONAL
    !IV_DOMAINUNITIDENTIFIER TYPE /AWS1/DZNDOMAINUNITID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dznupdprojectpflout
  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 domain where a project profile is to be updated.

iv_identifier TYPE /AWS1/DZNPROJECTPROFILEID /AWS1/DZNPROJECTPROFILEID

The ID of a project profile that is to be updated.

Optional arguments:

iv_name TYPE /AWS1/DZNPROJECTPROFILENAME /AWS1/DZNPROJECTPROFILENAME

The name of a project profile.

iv_description TYPE /AWS1/DZNDESCRIPTION /AWS1/DZNDESCRIPTION

The description of a project profile.

iv_status TYPE /AWS1/DZNSTATUS /AWS1/DZNSTATUS

The status of a project profile.

it_projectresourcetags TYPE /AWS1/CL_DZNRESOURCETAGPARAM=>TT_PROJECTRESOURCETAGPARAMS TT_PROJECTRESOURCETAGPARAMS

The resource tags of the project profile.

iv_allowcustomprojectrestags TYPE /AWS1/DZNBOOLEAN /AWS1/DZNBOOLEAN

Specifies whether custom project resource tags are supported.

iv_projectresourcetagsdesc TYPE /AWS1/DZNDESCRIPTION /AWS1/DZNDESCRIPTION

Field viewable through the UI that provides a project user with the allowed resource tag specifications.

it_environmentconfigurations TYPE /AWS1/CL_DZNENVIRONMENTCONF=>TT_ENVIRONMENTCONFSLIST TT_ENVIRONMENTCONFSLIST

The environment configurations of a project profile.

iv_domainunitidentifier TYPE /AWS1/DZNDOMAINUNITID /AWS1/DZNDOMAINUNITID

The ID of the domain unit where a project profile is to be updated.

RETURNING

oo_output TYPE REF TO /aws1/cl_dznupdprojectpflout /AWS1/CL_DZNUPDPROJECTPFLOUT

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->updateprojectprofile(
  it_environmentconfigurations = VALUE /aws1/cl_dznenvironmentconf=>tt_environmentconfslist(
    (
      new /aws1/cl_dznenvironmentconf(
        io_awsaccount = new /aws1/cl_dznawsaccount(
          iv_awsaccountid = |string|
          iv_awsaccountidpath = |string|
        )
        io_awsregion = new /aws1/cl_dznregion(
          iv_regionname = |string|
          iv_regionnamepath = |string|
        )
        io_configurationparameters = new /aws1/cl_dznenvironmentconfp00(
          it_parameteroverrides = VALUE /aws1/cl_dznenvironmentconfprm=>tt_environmentconfparamslist(
            (
              new /aws1/cl_dznenvironmentconfprm(
                iv_iseditable = ABAP_TRUE
                iv_name = |string|
                iv_value = |string|
              )
            )
          )
          it_resolvedparameters = VALUE /aws1/cl_dznenvironmentconfprm=>tt_environmentconfparamslist(
            (
              new /aws1/cl_dznenvironmentconfprm(
                iv_iseditable = ABAP_TRUE
                iv_name = |string|
                iv_value = |string|
              )
            )
          )
          iv_ssmpath = |string|
        )
        it_accountpools = VALUE /aws1/cl_dznaccountpoollist_w=>tt_accountpoollist(
          ( new /aws1/cl_dznaccountpoollist_w( |string| ) )
        )
        iv_deploymentmode = |string|
        iv_deploymentorder = 123
        iv_description = |string|
        iv_environmentblueprintid = |string|
        iv_id = |string|
        iv_name = |string|
      )
    )
  )
  it_projectresourcetags = VALUE /aws1/cl_dznresourcetagparam=>tt_projectresourcetagparams(
    (
      new /aws1/cl_dznresourcetagparam(
        iv_isvalueeditable = ABAP_TRUE
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_allowcustomprojectrestags = ABAP_TRUE
  iv_description = |string|
  iv_domainidentifier = |string|
  iv_domainunitidentifier = |string|
  iv_identifier = |string|
  iv_name = |string|
  iv_projectresourcetagsdesc = |string|
  iv_status = |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_projectprofileid = lo_result->get_id( ).
  lv_projectprofilename = lo_result->get_name( ).
  lv_description = lo_result->get_description( ).
  lv_status = lo_result->get_status( ).
  LOOP AT lo_result->get_projectresourcetags( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_tagkey = lo_row_1->get_key( ).
      lv_tagvalue = lo_row_1->get_value( ).
      lv_boolean = lo_row_1->get_isvalueeditable( ).
    ENDIF.
  ENDLOOP.
  lv_boolean = lo_result->get_allowcustprojectrestags( ).
  lv_description = lo_result->get_projectresourcetagsdesc( ).
  LOOP AT lo_result->get_environmentconfs( ) into lo_row_2.
    lo_row_3 = lo_row_2.
    IF lo_row_3 IS NOT INITIAL.
      lv_environmentconfiguratio = lo_row_3->get_name( ).
      lv_environmentconfiguratio_1 = lo_row_3->get_id( ).
      lv_environmentblueprintid = lo_row_3->get_environmentblueprintid( ).
      lv_description = lo_row_3->get_description( ).
      lv_deploymentmode = lo_row_3->get_deploymentmode( ).
      lo_environmentconfiguratio_2 = lo_row_3->get_configurationparameters( ).
      IF lo_environmentconfiguratio_2 IS NOT INITIAL.
        lv_parameterstorepath = lo_environmentconfiguratio_2->get_ssmpath( ).
        LOOP AT lo_environmentconfiguratio_2->get_parameteroverrides( ) into lo_row_4.
          lo_row_5 = lo_row_4.
          IF lo_row_5 IS NOT INITIAL.
            lv_environmentconfiguratio_3 = lo_row_5->get_name( ).
            lv_string = lo_row_5->get_value( ).
            lv_boolean = lo_row_5->get_iseditable( ).
          ENDIF.
        ENDLOOP.
        LOOP AT lo_environmentconfiguratio_2->get_resolvedparameters( ) into lo_row_4.
          lo_row_5 = lo_row_4.
          IF lo_row_5 IS NOT INITIAL.
            lv_environmentconfiguratio_3 = lo_row_5->get_name( ).
            lv_string = lo_row_5->get_value( ).
            lv_boolean = lo_row_5->get_iseditable( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
      lo_awsaccount = lo_row_3->get_awsaccount( ).
      IF lo_awsaccount IS NOT INITIAL.
        lv_awsaccountid = lo_awsaccount->get_awsaccountid( ).
        lv_parameterstorepath = lo_awsaccount->get_awsaccountidpath( ).
      ENDIF.
      LOOP AT lo_row_3->get_accountpools( ) into lo_row_6.
        lo_row_7 = lo_row_6.
        IF lo_row_7 IS NOT INITIAL.
          lv_accountpoolid = lo_row_7->get_value( ).
        ENDIF.
      ENDLOOP.
      lo_region = lo_row_3->get_awsregion( ).
      IF lo_region IS NOT INITIAL.
        lv_regionname = lo_region->get_regionname( ).
        lv_parameterstorepath = lo_region->get_regionnamepath( ).
      ENDIF.
      lv_deploymentorder = lo_row_3->get_deploymentorder( ).
    ENDIF.
  ENDLOOP.
  lv_createdby = lo_result->get_createdby( ).
  lv_timestamp = lo_result->get_createdat( ).
  lv_timestamp = lo_result->get_lastupdatedat( ).
  lv_domainunitid = lo_result->get_domainunitid( ).
ENDIF.