/AWS1/IF_DFM=>UPDATEPROJECT()¶
About UpdateProject¶
Modifies the specified project name, given the project ARN and a new name.
Method Signature¶
METHODS /AWS1/IF_DFM~UPDATEPROJECT
IMPORTING
!IV_ARN TYPE /AWS1/DFMAMAZONRESOURCENAME OPTIONAL
!IV_NAME TYPE /AWS1/DFMNAME OPTIONAL
!IV_DEFAULTJOBTIMEOUTMINUTES TYPE /AWS1/DFMJOBTIMEOUTMINUTES OPTIONAL
!IO_VPCCONFIG TYPE REF TO /AWS1/CL_DFMVPCCONFIG OPTIONAL
!IT_ENVIRONMENTVARIABLES TYPE /AWS1/CL_DFMENVVARIABLE=>TT_ENVIRONMENTVARIABLES OPTIONAL
!IV_EXECUTIONROLEARN TYPE /AWS1/DFMAMAZONROLERESNAME OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dfmupdateprojectrslt
RAISING
/AWS1/CX_DFMARGUMENTEXCEPTION
/AWS1/CX_DFMLIMITEXCEEDEDEX
/AWS1/CX_DFMNOTFOUNDEXCEPTION
/AWS1/CX_DFMSERVICEACCOUNTEX
/AWS1/CX_DFMCLIENTEXC
/AWS1/CX_DFMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_arn TYPE /AWS1/DFMAMAZONRESOURCENAME /AWS1/DFMAMAZONRESOURCENAME¶
The Amazon Resource Name (ARN) of the project whose name to update.
Optional arguments:¶
iv_name TYPE /AWS1/DFMNAME /AWS1/DFMNAME¶
A string that represents the new name of the project that you are updating.
iv_defaultjobtimeoutminutes TYPE /AWS1/DFMJOBTIMEOUTMINUTES /AWS1/DFMJOBTIMEOUTMINUTES¶
The number of minutes a test run in the project executes before it times out.
io_vpcconfig TYPE REF TO /AWS1/CL_DFMVPCCONFIG /AWS1/CL_DFMVPCCONFIG¶
The VPC security groups and subnets that are attached to a project.
it_environmentvariables TYPE /AWS1/CL_DFMENVVARIABLE=>TT_ENVIRONMENTVARIABLES TT_ENVIRONMENTVARIABLES¶
A set of environment variables which are used by default for all runs in the project. These environment variables are applied to the test run during the execution of a test spec file.
For more information about using test spec files, please see Custom test environments in AWS Device Farm.
iv_executionrolearn TYPE /AWS1/DFMAMAZONROLERESNAME /AWS1/DFMAMAZONROLERESNAME¶
An IAM role to be assumed by the test host for all runs in the project.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dfmupdateprojectrslt /AWS1/CL_DFMUPDATEPROJECTRSLT¶
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_vpcconfig = new /aws1/cl_dfmvpcconfig(
it_securitygroupids = VALUE /aws1/cl_dfmvpcsecgroupids_w=>tt_vpcsecuritygroupids(
( new /aws1/cl_dfmvpcsecgroupids_w( |string| ) )
)
it_subnetids = VALUE /aws1/cl_dfmvpcsubnetids_w=>tt_vpcsubnetids(
( new /aws1/cl_dfmvpcsubnetids_w( |string| ) )
)
iv_vpcid = |string|
)
it_environmentvariables = VALUE /aws1/cl_dfmenvvariable=>tt_environmentvariables(
(
new /aws1/cl_dfmenvvariable(
iv_name = |string|
iv_value = |string|
)
)
)
iv_arn = |string|
iv_defaultjobtimeoutminutes = 123
iv_executionrolearn = |string|
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_project = lo_result->get_project( ).
IF lo_project IS NOT INITIAL.
lv_amazonresourcename = lo_project->get_arn( ).
lv_name = lo_project->get_name( ).
lv_jobtimeoutminutes = lo_project->get_defaultjobtimeoutminutes( ).
lv_datetime = lo_project->get_created( ).
lo_vpcconfig = lo_project->get_vpcconfig( ).
IF lo_vpcconfig IS NOT INITIAL.
LOOP AT lo_vpcconfig->get_securitygroupids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_securitygroupid = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_vpcconfig->get_subnetids( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_subnetid = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_nonemptystring = lo_vpcconfig->get_vpcid( ).
ENDIF.
LOOP AT lo_project->get_environmentvariables( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_environmentvariablename = lo_row_5->get_name( ).
lv_environmentvariablevalu = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lv_amazonroleresourcename = lo_project->get_executionrolearn( ).
ENDIF.
ENDIF.