/AWS1/IF_STC=>UPDATESYNCCONFIGURATION()¶
About UpdateSyncConfiguration¶
Updates the sync configuration for your connection and a specified external Git repository.
Method Signature¶
METHODS /AWS1/IF_STC~UPDATESYNCCONFIGURATION
IMPORTING
!IV_BRANCH TYPE /AWS1/STCBRANCHNAME OPTIONAL
!IV_CONFIGFILE TYPE /AWS1/STCDEPLOYMENTFILEPATH OPTIONAL
!IV_REPOSITORYLINKID TYPE /AWS1/STCREPOSITORYLINKID OPTIONAL
!IV_RESOURCENAME TYPE /AWS1/STCRESOURCENAME OPTIONAL
!IV_ROLEARN TYPE /AWS1/STCIAMROLEARN OPTIONAL
!IV_SYNCTYPE TYPE /AWS1/STCSYNCCONFIGURATIONTYPE OPTIONAL
!IV_PUBLISHDEPLOYMENTSTATUS TYPE /AWS1/STCPUBDEPLOYMENTSTATUS OPTIONAL
!IV_TRIGGERRESOURCEUPDATEON TYPE /AWS1/STCTRIGGERRESRCUPDATEON OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_stcupdsyncconfoutput
RAISING
/AWS1/CX_STCACCESSDENIEDEX
/AWS1/CX_STCCONCURRENTMODEX
/AWS1/CX_STCINTERNALSERVEREX
/AWS1/CX_STCINVALIDINPUTEX
/AWS1/CX_STCRESOURCENOTFOUNDEX
/AWS1/CX_STCTHROTTLINGEX
/AWS1/CX_STCUPDATEOUTOFSYNCEX
/AWS1/CX_STCCLIENTEXC
/AWS1/CX_STCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_resourcename TYPE /AWS1/STCRESOURCENAME /AWS1/STCRESOURCENAME¶
The name of the Amazon Web Services resource for the sync configuration to be updated.
iv_synctype TYPE /AWS1/STCSYNCCONFIGURATIONTYPE /AWS1/STCSYNCCONFIGURATIONTYPE¶
The sync type for the sync configuration to be updated.
Optional arguments:¶
iv_branch TYPE /AWS1/STCBRANCHNAME /AWS1/STCBRANCHNAME¶
The branch for the sync configuration to be updated.
iv_configfile TYPE /AWS1/STCDEPLOYMENTFILEPATH /AWS1/STCDEPLOYMENTFILEPATH¶
The configuration file for the sync configuration to be updated.
iv_repositorylinkid TYPE /AWS1/STCREPOSITORYLINKID /AWS1/STCREPOSITORYLINKID¶
The ID of the repository link for the sync configuration to be updated.
iv_rolearn TYPE /AWS1/STCIAMROLEARN /AWS1/STCIAMROLEARN¶
The ARN of the IAM role for the sync configuration to be updated.
iv_publishdeploymentstatus TYPE /AWS1/STCPUBDEPLOYMENTSTATUS /AWS1/STCPUBDEPLOYMENTSTATUS¶
Whether to enable or disable publishing of deployment status to source providers.
iv_triggerresourceupdateon TYPE /AWS1/STCTRIGGERRESRCUPDATEON /AWS1/STCTRIGGERRESRCUPDATEON¶
When to trigger Git sync to begin the stack update.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_stcupdsyncconfoutput /AWS1/CL_STCUPDSYNCCONFOUTPUT¶
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->updatesyncconfiguration(
iv_branch = |string|
iv_configfile = |string|
iv_publishdeploymentstatus = |string|
iv_repositorylinkid = |string|
iv_resourcename = |string|
iv_rolearn = |string|
iv_synctype = |string|
iv_triggerresourceupdateon = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_syncconfiguration = lo_result->get_syncconfiguration( ).
IF lo_syncconfiguration IS NOT INITIAL.
lv_branchname = lo_syncconfiguration->get_branch( ).
lv_deploymentfilepath = lo_syncconfiguration->get_configfile( ).
lv_ownerid = lo_syncconfiguration->get_ownerid( ).
lv_providertype = lo_syncconfiguration->get_providertype( ).
lv_repositorylinkid = lo_syncconfiguration->get_repositorylinkid( ).
lv_repositoryname = lo_syncconfiguration->get_repositoryname( ).
lv_resourcename = lo_syncconfiguration->get_resourcename( ).
lv_iamrolearn = lo_syncconfiguration->get_rolearn( ).
lv_syncconfigurationtype = lo_syncconfiguration->get_synctype( ).
lv_publishdeploymentstatus = lo_syncconfiguration->get_publishdeploymentstatus( ).
lv_triggerresourceupdateon = lo_syncconfiguration->get_triggerresourceupdateon( ).
ENDIF.
ENDIF.