/AWS1/IF_SHI=>CREATEMEMBERSHIP()¶
About CreateMembership¶
Creates a new membership.
Method Signature¶
METHODS /AWS1/IF_SHI~CREATEMEMBERSHIP
IMPORTING
!IV_CLIENTTOKEN TYPE /AWS1/SHISTRING OPTIONAL
!IV_MEMBERSHIPNAME TYPE /AWS1/SHIMEMBERSHIPNAME OPTIONAL
!IT_INCIDENTRESPONSETEAM TYPE /AWS1/CL_SHIINCIDENTRESPONDER=>TT_INCIDENTRESPONSETEAM OPTIONAL
!IT_OPTINFEATURES TYPE /AWS1/CL_SHIOPTINFEATURE=>TT_OPTINFEATURES OPTIONAL
!IT_TAGS TYPE /AWS1/CL_SHITAGMAP_W=>TT_TAGMAP OPTIONAL
!IV_COVERENTIREORGANIZATION TYPE /AWS1/SHIBOOLEAN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_shicremembershiprsp
RAISING
/AWS1/CX_SHIACCESSDENIEDEX
/AWS1/CX_SHICONFLICTEXCEPTION
/AWS1/CX_SHIINTERNALSERVEREX
/AWS1/CX_SHIINVALIDTOKENEX
/AWS1/CX_SHIRESOURCENOTFOUNDEX
/AWS1/CX_SHISECINCIDENTRSPNO00
/AWS1/CX_SHISERVICEQUOTAEXCDEX
/AWS1/CX_SHITHROTTLINGEX
/AWS1/CX_SHIVALIDATIONEX
/AWS1/CX_SHICLIENTEXC
/AWS1/CX_SHISERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_membershipname TYPE /AWS1/SHIMEMBERSHIPNAME /AWS1/SHIMEMBERSHIPNAME¶
Required element used in combination with CreateMembership to create a name for the membership.
it_incidentresponseteam TYPE /AWS1/CL_SHIINCIDENTRESPONDER=>TT_INCIDENTRESPONSETEAM TT_INCIDENTRESPONSETEAM¶
Required element used in combination with CreateMembership to add customer incident response team members and trusted partners to the membership.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/SHISTRING /AWS1/SHISTRING¶
The
clientTokenfield is an idempotency key used to ensure that repeated attempts for a single action will be ignored by the server during retries. A caller supplied unique ID (typically a UUID) should be provided.
it_optinfeatures TYPE /AWS1/CL_SHIOPTINFEATURE=>TT_OPTINFEATURES TT_OPTINFEATURES¶
Optional element to enable the monitoring and investigation opt-in features for the service.
it_tags TYPE /AWS1/CL_SHITAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
Optional element for customer configured tags.
iv_coverentireorganization TYPE /AWS1/SHIBOOLEAN /AWS1/SHIBOOLEAN¶
The
coverEntireOrganizationparameter is a boolean flag that determines whether the membership should be applied to the entire Amazon Web Services Organization. When set to true, the membership will be created for all accounts within the organization. When set to false, the membership will only be created for specified accounts.This parameter is optional. If not specified, the default value is false.
If set to true: The membership will automatically include all existing and future accounts in the Amazon Web Services Organization.
If set to false: The membership will only apply to explicitly specified accounts.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_shicremembershiprsp /AWS1/CL_SHICREMEMBERSHIPRSP¶
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->createmembership(
it_incidentresponseteam = VALUE /aws1/cl_shiincidentresponder=>tt_incidentresponseteam(
(
new /aws1/cl_shiincidentresponder(
it_communicationpreferences = VALUE /aws1/cl_shicommpreferences_w=>tt_communicationpreferences(
( new /aws1/cl_shicommpreferences_w( |string| ) )
)
iv_email = |string|
iv_jobtitle = |string|
iv_name = |string|
)
)
)
it_optinfeatures = VALUE /aws1/cl_shioptinfeature=>tt_optinfeatures(
(
new /aws1/cl_shioptinfeature(
iv_featurename = |string|
iv_isenabled = ABAP_TRUE
)
)
)
it_tags = VALUE /aws1/cl_shitagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_shitagmap_w=>ts_tagmap_maprow(
value = new /aws1/cl_shitagmap_w( |string| )
key = |string|
)
)
)
iv_clienttoken = |string|
iv_coverentireorganization = ABAP_TRUE
iv_membershipname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_membershipid = lo_result->get_membershipid( ).
ENDIF.
Invoke CreateMembership¶
Invoke CreateMembership
DATA(lo_result) = lo_client->createmembership(
it_incidentresponseteam = VALUE /aws1/cl_shiincidentresponder=>tt_incidentresponseteam(
(
new /aws1/cl_shiincidentresponder(
iv_email = |bob.jones@gmail.com|
iv_jobtitle = |Security Responder|
iv_name = |Bob Jones|
)
)
(
new /aws1/cl_shiincidentresponder(
iv_email = |alice@example.com|
iv_jobtitle = |CEO|
iv_name = |Alice|
)
)
)
it_optinfeatures = VALUE /aws1/cl_shioptinfeature=>tt_optinfeatures(
(
new /aws1/cl_shioptinfeature(
iv_featurename = |Triage|
iv_isenabled = ABAP_TRUE
)
)
)
iv_membershipname = |Example Membership Name.|
).