Skip to content

/AWS1/CL_SMI=>CREATERESPONSEPLAN()

About CreateResponsePlan

Creates a response plan that automates the initial response to incidents. A response plan engages contacts, starts chat channel collaboration, and initiates runbooks at the beginning of an incident.

Method Signature

IMPORTING

Required arguments:

iv_name TYPE /AWS1/SMIRESPONSEPLANNAME /AWS1/SMIRESPONSEPLANNAME

The short format name of the response plan. Can't include spaces.

io_incidenttemplate TYPE REF TO /AWS1/CL_SMIINCIDENTTEMPLATE /AWS1/CL_SMIINCIDENTTEMPLATE

Details used to create an incident when using this 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 of the response plan name. This field can contain spaces.

io_chatchannel TYPE REF TO /AWS1/CL_SMICHATCHANNEL /AWS1/CL_SMICHATCHANNEL

The Chatbot chat channel used for collaboration during an incident.

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 the response plan starts at the beginning of an incident.

it_tags TYPE /AWS1/CL_SMITAGMAP_W=>TT_TAGMAP TT_TAGMAP

A list of tags that you are adding to the response plan.

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_smicreaterspplanout /AWS1/CL_SMICREATERSPPLANOUT

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->/aws1/if_smi~createresponseplan(
  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| ) )
    )
  )
  io_incidenttemplate = new /aws1/cl_smiincidenttemplate(
    it_incidenttags = VALUE /aws1/cl_smitagmap_w=>tt_tagmap(
      (
        VALUE /aws1/cl_smitagmap_w=>ts_tagmap_maprow(
          key = |string|
          value = new /aws1/cl_smitagmap_w( |string| )
        )
      )
    )
    it_notificationtargets = VALUE /aws1/cl_sminotiftargetitem=>tt_notificationtargetset(
      ( new /aws1/cl_sminotiftargetitem( |string| ) )
    )
    iv_dedupestring = |string|
    iv_impact = 123
    iv_summary = |string|
    iv_title = |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(
                key = |string|
                value = new /aws1/cl_smidynssmparamvalue( |string| )
              )
            )
          )
          it_parameters = VALUE /aws1/cl_smissmparamvalues_w=>tt_ssmparameters(
            (
              VALUE /aws1/cl_smissmparamvalues_w=>ts_ssmparameters_maprow(
                key = |string|
                value = VALUE /aws1/cl_smissmparamvalues_w=>tt_ssmparametervalues(
                  ( new /aws1/cl_smissmparamvalues_w( |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_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|
        )
      )
    )
  )
  it_tags = VALUE /aws1/cl_smitagmap_w=>tt_tagmap(
    (
      VALUE /aws1/cl_smitagmap_w=>ts_tagmap_maprow(
        key = |string|
        value = new /aws1/cl_smitagmap_w( |string| )
      )
    )
  )
  iv_clienttoken = |string|
  iv_displayname = |string|
  iv_name = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_arn = lo_result->get_arn( ).
ENDIF.