/AWS1/IF_SSM=>ASSOCIATEOPSITEMRELATEDITEM()¶
About AssociateOpsItemRelatedItem¶
Associates a related item to a Systems Manager OpsCenter OpsItem. For example, you can associate an Incident Manager incident or analysis with an OpsItem. Incident Manager and OpsCenter are tools in Amazon Web Services Systems Manager.
Method Signature¶
METHODS /AWS1/IF_SSM~ASSOCIATEOPSITEMRELATEDITEM
IMPORTING
!IV_OPSITEMID TYPE /AWS1/SSMOPSITEMID OPTIONAL
!IV_ASSOCIATIONTYPE TYPE /AWS1/SSMOPSITEMRELATEDITEMA00 OPTIONAL
!IV_RESOURCETYPE TYPE /AWS1/SSMOPSITEMRELATEDITEMA01 OPTIONAL
!IV_RESOURCEURI TYPE /AWS1/SSMOPSITEMRELATEDITEMA02 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ssmascopsitemrelate01
RAISING
/AWS1/CX_SSMINTERNALSERVERERR
/AWS1/CX_SSMOPSITEMCONFLICTEX
/AWS1/CX_SSMOPSITEMINVPARAMEX
/AWS1/CX_SSMOPSITEMLIMITEXCDEX
/AWS1/CX_SSMOPSITEMNOTFOUNDEX
/AWS1/CX_SSMOPSITEMRELATEDIT00
/AWS1/CX_SSMCLIENTEXC
/AWS1/CX_SSMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_opsitemid TYPE /AWS1/SSMOPSITEMID /AWS1/SSMOPSITEMID¶
The ID of the OpsItem to which you want to associate a resource as a related item.
iv_associationtype TYPE /AWS1/SSMOPSITEMRELATEDITEMA00 /AWS1/SSMOPSITEMRELATEDITEMA00¶
The type of association that you want to create between an OpsItem and a resource. OpsCenter supports
IsParentOfandRelatesToassociation types.
iv_resourcetype TYPE /AWS1/SSMOPSITEMRELATEDITEMA01 /AWS1/SSMOPSITEMRELATEDITEMA01¶
The type of resource that you want to associate with an OpsItem. OpsCenter supports the following types:
AWS::SSMIncidents::IncidentRecord: an Incident Manager incident.
AWS::SSM::Document: a Systems Manager (SSM) document.
iv_resourceuri TYPE /AWS1/SSMOPSITEMRELATEDITEMA02 /AWS1/SSMOPSITEMRELATEDITEMA02¶
The Amazon Resource Name (ARN) of the Amazon Web Services resource that you want to associate with the OpsItem.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ssmascopsitemrelate01 /AWS1/CL_SSMASCOPSITEMRELATE01¶
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->associateopsitemrelateditem(
iv_associationtype = |string|
iv_opsitemid = |string|
iv_resourcetype = |string|
iv_resourceuri = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_opsitemrelateditemassoc = lo_result->get_associationid( ).
ENDIF.