/AWS1/IF_GGS=>CREATESUBSCRIPTIONDEFINITION()¶
About CreateSubscriptionDefinition¶
Creates a subscription definition. You may provide the initial version of the subscription definition now or use ''CreateSubscriptionDefinitionVersion'' at a later time.
Method Signature¶
METHODS /AWS1/IF_GGS~CREATESUBSCRIPTIONDEFINITION
  IMPORTING
    !IV_AMZNCLIENTTOKEN TYPE /AWS1/GGS__STRING OPTIONAL
    !IO_INITIALVERSION TYPE REF TO /AWS1/CL_GGSSUBSCRIPTIONDEFVRS OPTIONAL
    !IV_NAME TYPE /AWS1/GGS__STRING OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_GGSTAGS_W=>TT_TAGS OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ggscresubscriptiond01
  RAISING
    /AWS1/CX_GGSBADREQUESTEX
    /AWS1/CX_GGSCLIENTEXC
    /AWS1/CX_GGSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_amznclienttoken TYPE /AWS1/GGS__STRING /AWS1/GGS__STRING¶
A client token used to correlate requests and responses.
io_initialversion TYPE REF TO /AWS1/CL_GGSSUBSCRIPTIONDEFVRS /AWS1/CL_GGSSUBSCRIPTIONDEFVRS¶
Information about the initial version of the subscription definition.
iv_name TYPE /AWS1/GGS__STRING /AWS1/GGS__STRING¶
The name of the subscription definition.
it_tags TYPE /AWS1/CL_GGSTAGS_W=>TT_TAGS TT_TAGS¶
Tag(s) to add to the new resource.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ggscresubscriptiond01 /AWS1/CL_GGSCRESUBSCRIPTIOND01¶
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->createsubscriptiondefinition(
  io_initialversion = new /aws1/cl_ggssubscriptiondefvrs(
    it_subscriptions = VALUE /aws1/cl_ggssubscription=>tt___listofsubscription(
      (
        new /aws1/cl_ggssubscription(
          iv_id = |string|
          iv_source = |string|
          iv_subject = |string|
          iv_target = |string|
        )
      )
    )
  )
  it_tags = VALUE /aws1/cl_ggstags_w=>tt_tags(
    (
      VALUE /aws1/cl_ggstags_w=>ts_tags_maprow(
        key = |string|
        value = new /aws1/cl_ggstags_w( |string| )
      )
    )
  )
  iv_amznclienttoken = |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___string = lo_result->get_arn( ).
  lv___string = lo_result->get_creationtimestamp( ).
  lv___string = lo_result->get_id( ).
  lv___string = lo_result->get_lastupdatedtimestamp( ).
  lv___string = lo_result->get_latestversion( ).
  lv___string = lo_result->get_latestversionarn( ).
  lv___string = lo_result->get_name( ).
ENDIF.