Skip to content

/AWS1/IF_DZN=>UPDATEPROJECT()

About UpdateProject

Updates the specified project in Amazon DataZone.

Method Signature

METHODS /AWS1/IF_DZN~UPDATEPROJECT
  IMPORTING
    !IV_DOMAINIDENTIFIER TYPE /AWS1/DZNDOMAINID OPTIONAL
    !IV_IDENTIFIER TYPE /AWS1/DZNPROJECTID 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
    !IO_ENVIRONMENTDEPLOYMENTDETS TYPE REF TO /AWS1/CL_DZNENVIRONMENTDEPLO00 OPTIONAL
    !IT_USERPARAMETERS TYPE /AWS1/CL_DZNENVIRONMENTCONFU00=>TT_ENVIRONMENTCONFUSERPARMSLST OPTIONAL
    !IV_PROJECTPROFILEVERSION TYPE /AWS1/DZNSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dznupdprojectoutput
  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 where a project is being updated.

iv_identifier TYPE /AWS1/DZNPROJECTID /AWS1/DZNPROJECTID

The identifier of the project that is to be updated.

Optional arguments:

iv_name TYPE /AWS1/DZNPROJECTNAME /AWS1/DZNPROJECTNAME

The name to be updated as part of the UpdateProject action.

iv_description TYPE /AWS1/DZNDESCRIPTION /AWS1/DZNDESCRIPTION

The description to be updated as part of the UpdateProject action.

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 to be updated as part of the UpdateProject action.

iv_domainunitid TYPE /AWS1/DZNDOMAINUNITID /AWS1/DZNDOMAINUNITID

The ID of the domain unit.

io_environmentdeploymentdets TYPE REF TO /AWS1/CL_DZNENVIRONMENTDEPLO00 /AWS1/CL_DZNENVIRONMENTDEPLO00

The environment deployment details of the project.

it_userparameters TYPE /AWS1/CL_DZNENVIRONMENTCONFU00=>TT_ENVIRONMENTCONFUSERPARMSLST TT_ENVIRONMENTCONFUSERPARMSLST

The user parameters of the project.

iv_projectprofileversion TYPE /AWS1/DZNSTRING /AWS1/DZNSTRING

The project profile version to which the project should be updated. You can only specify the following string for this parameter: latest.

RETURNING

oo_output TYPE REF TO /aws1/cl_dznupdprojectoutput /AWS1/CL_DZNUPDPROJECTOUTPUT

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->updateproject(
  io_environmentdeploymentdets = new /aws1/cl_dznenvironmentdeplo00(
    it_environmentfailurereasons = VALUE /aws1/cl_dznenvironmenterror=>tt_environmentfailurereasons(
      (
        VALUE /aws1/cl_dznenvironmenterror=>ts_environmentfailure00_maprow(
          value = VALUE /aws1/cl_dznenvironmenterror=>tt_environmentfailurersnslist(
            (
              new /aws1/cl_dznenvironmenterror(
                iv_code = |string|
                iv_message = |string|
              )
            )
          )
          key = |string|
        )
      )
    )
    iv_overalldeploymentstatus = |string|
  )
  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_identifier = |string|
  iv_name = |string|
  iv_projectprofileversion = |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.