/AWS1/IF_SMI=>UPDATERESPONSEPLAN()¶
About UpdateResponsePlan¶
Updates the specified response plan.
Method Signature¶
METHODS /AWS1/IF_SMI~UPDATERESPONSEPLAN
IMPORTING
!IV_CLIENTTOKEN TYPE /AWS1/SMICLIENTTOKEN OPTIONAL
!IV_ARN TYPE /AWS1/SMIARN OPTIONAL
!IV_DISPLAYNAME TYPE /AWS1/SMIRSPPLANDISPLAYNAME OPTIONAL
!IV_INCIDENTTEMPLATETITLE TYPE /AWS1/SMIINCIDENTTITLE OPTIONAL
!IV_INCIDENTTEMPLATEIMPACT TYPE /AWS1/SMIIMPACT OPTIONAL
!IV_INCIDENTTEMPLATESUMMARY TYPE /AWS1/SMIINCIDENTSUMMARY OPTIONAL
!IV_INCIDENTTMPLDEDUPESTRING TYPE /AWS1/SMIDEDUPESTRING OPTIONAL
!IT_INCIDENTTMPLNOTIFTARGETS TYPE /AWS1/CL_SMINOTIFTARGETITEM=>TT_NOTIFICATIONTARGETSET OPTIONAL
!IO_CHATCHANNEL TYPE REF TO /AWS1/CL_SMICHATCHANNEL OPTIONAL
!IT_ENGAGEMENTS TYPE /AWS1/CL_SMIENGAGEMENTSET_W=>TT_ENGAGEMENTSET OPTIONAL
!IT_ACTIONS TYPE /AWS1/CL_SMIACTION=>TT_ACTIONSLIST OPTIONAL
!IT_INCIDENTTEMPLATETAGS TYPE /AWS1/CL_SMITAGMAPUPDATE_W=>TT_TAGMAPUPDATE OPTIONAL
!IT_INTEGRATIONS TYPE /AWS1/CL_SMIINTEGRATION=>TT_INTEGRATIONS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_smiupdrspplanoutput
RAISING
/AWS1/CX_SMIACCESSDENIEDEX
/AWS1/CX_SMICONFLICTEXCEPTION
/AWS1/CX_SMIINTERNALSERVEREX
/AWS1/CX_SMIRESOURCENOTFOUNDEX
/AWS1/CX_SMITHROTTLINGEX
/AWS1/CX_SMIVALIDATIONEX
/AWS1/CX_SMICLIENTEXC
/AWS1/CX_SMISERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_arn TYPE /AWS1/SMIARN /AWS1/SMIARN¶
The Amazon Resource Name (ARN) of the response plan.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/SMICLIENTTOKEN /AWS1/SMICLIENTTOKEN¶
A token ensuring that the operation is called only once with the specified details.
iv_displayname TYPE /AWS1/SMIRSPPLANDISPLAYNAME /AWS1/SMIRSPPLANDISPLAYNAME¶
The long format name of the response plan. The display name can't contain spaces.
iv_incidenttemplatetitle TYPE /AWS1/SMIINCIDENTTITLE /AWS1/SMIINCIDENTTITLE¶
The short format name of the incident. The title can't contain spaces.
iv_incidenttemplateimpact TYPE /AWS1/SMIIMPACT /AWS1/SMIIMPACT¶
Defines the impact to the customers. Providing an impact overwrites the impact provided by a response plan.
Supported impact codes
1- Critical
2- High
3- Medium
4- Low
5- No Impact
iv_incidenttemplatesummary TYPE /AWS1/SMIINCIDENTSUMMARY /AWS1/SMIINCIDENTSUMMARY¶
A brief summary of the incident. This typically contains what has happened, what's currently happening, and next steps.
iv_incidenttmpldedupestring TYPE /AWS1/SMIDEDUPESTRING /AWS1/SMIDEDUPESTRING¶
The string Incident Manager uses to prevent duplicate incidents from being created by the same incident in the same account.
it_incidenttmplnotiftargets TYPE /AWS1/CL_SMINOTIFTARGETITEM=>TT_NOTIFICATIONTARGETSET TT_NOTIFICATIONTARGETSET¶
The Amazon SNS targets that are notified when updates are made to an incident.
io_chatchannel TYPE REF TO /AWS1/CL_SMICHATCHANNEL /AWS1/CL_SMICHATCHANNEL¶
The Chatbot chat channel used for collaboration during an incident.
Use the empty structure to remove the chat channel from the response plan.
it_engagements TYPE /AWS1/CL_SMIENGAGEMENTSET_W=>TT_ENGAGEMENTSET TT_ENGAGEMENTSET¶
The Amazon Resource Name (ARN) for the contacts and escalation plans that the response plan engages during an incident.
it_actions TYPE /AWS1/CL_SMIACTION=>TT_ACTIONSLIST TT_ACTIONSLIST¶
The actions that this response plan takes at the beginning of an incident.
it_incidenttemplatetags TYPE /AWS1/CL_SMITAGMAPUPDATE_W=>TT_TAGMAPUPDATE TT_TAGMAPUPDATE¶
Tags to assign to the template. When the
StartIncidentAPI action is called, Incident Manager assigns the tags specified in the template to the incident. To call this action, you must also have permission to call theTagResourceAPI action for the incident record resource.
it_integrations TYPE /AWS1/CL_SMIINTEGRATION=>TT_INTEGRATIONS TT_INTEGRATIONS¶
Information about third-party services integrated into the response plan.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_smiupdrspplanoutput /AWS1/CL_SMIUPDRSPPLANOUTPUT¶
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->updateresponseplan(
io_chatchannel = new /aws1/cl_smichatchannel(
io_empty = new /aws1/cl_smiemptychatchannel( )
it_chatbotsns = VALUE /aws1/cl_smichatbotsnsconfse00=>tt_chatbotsnsconfigurationset(
( new /aws1/cl_smichatbotsnsconfse00( |string| ) )
)
)
it_actions = VALUE /aws1/cl_smiaction=>tt_actionslist(
(
new /aws1/cl_smiaction(
io_ssmautomation = new /aws1/cl_smissmautomation(
it_dynamicparameters = VALUE /aws1/cl_smidynssmparamvalue=>tt_dynamicssmparameters(
(
VALUE /aws1/cl_smidynssmparamvalue=>ts_dynamicssmparameters_maprow(
value = new /aws1/cl_smidynssmparamvalue( |string| )
key = |string|
)
)
)
it_parameters = VALUE /aws1/cl_smissmparamvalues_w=>tt_ssmparameters(
(
VALUE /aws1/cl_smissmparamvalues_w=>ts_ssmparameters_maprow(
value = VALUE /aws1/cl_smissmparamvalues_w=>tt_ssmparametervalues(
( new /aws1/cl_smissmparamvalues_w( |string| ) )
)
key = |string|
)
)
)
iv_documentname = |string|
iv_documentversion = |string|
iv_rolearn = |string|
iv_targetaccount = |string|
)
)
)
)
it_engagements = VALUE /aws1/cl_smiengagementset_w=>tt_engagementset(
( new /aws1/cl_smiengagementset_w( |string| ) )
)
it_incidenttemplatetags = VALUE /aws1/cl_smitagmapupdate_w=>tt_tagmapupdate(
(
VALUE /aws1/cl_smitagmapupdate_w=>ts_tagmapupdate_maprow(
value = new /aws1/cl_smitagmapupdate_w( |string| )
key = |string|
)
)
)
it_incidenttmplnotiftargets = VALUE /aws1/cl_sminotiftargetitem=>tt_notificationtargetset(
( new /aws1/cl_sminotiftargetitem( |string| ) )
)
it_integrations = VALUE /aws1/cl_smiintegration=>tt_integrations(
(
new /aws1/cl_smiintegration(
io_pagerdutyconfiguration = new /aws1/cl_smipagerdutyconf(
io_pagerdutyincidentconf = new /aws1/cl_smipagerdutyinciden00( |string| )
iv_name = |string|
iv_secretid = |string|
)
)
)
)
iv_arn = |string|
iv_clienttoken = |string|
iv_displayname = |string|
iv_incidenttemplateimpact = 123
iv_incidenttemplatesummary = |string|
iv_incidenttemplatetitle = |string|
iv_incidenttmpldedupestring = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.