/AWS1/IF_SHI=>UPDATEMEMBERSHIP()
¶
About UpdateMembership¶
Updates membership configuration.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_membershipid
TYPE /AWS1/SHIMEMBERSHIPID
/AWS1/SHIMEMBERSHIPID
¶
Required element for UpdateMembership to identify the membership to update.
Optional arguments:¶
iv_membershipname
TYPE /AWS1/SHIMEMBERSHIPNAME
/AWS1/SHIMEMBERSHIPNAME
¶
Optional element for UpdateMembership to update the membership name.
it_incidentresponseteam
TYPE /AWS1/CL_SHIINCIDENTRESPONDER=>TT_INCIDENTRESPONSETEAM
TT_INCIDENTRESPONSETEAM
¶
Optional element for UpdateMembership to update the membership name.
it_optinfeatures
TYPE /AWS1/CL_SHIOPTINFEATURE=>TT_OPTINFEATURES
TT_OPTINFEATURES
¶
Optional element for UpdateMembership to enable or disable opt-in features for the service.
io_membershipacctsconfsupd
TYPE REF TO /AWS1/CL_SHIMEMBERSHIPACCONF00
/AWS1/CL_SHIMEMBERSHIPACCONF00
¶
The
membershipAccountsConfigurationsUpdate
field in theUpdateMembershipRequest
structure allows you to update the configuration settings for accounts within a membership.This field is optional and contains a structure of type
MembershipAccountsConfigurationsUpdate
that specifies the updated account configurations for the membership.
iv_undomembershipcanclation
TYPE /AWS1/SHIBOOLEAN
/AWS1/SHIBOOLEAN
¶
The
undoMembershipCancellation
parameter is a boolean flag that indicates whether to reverse a previously requested membership cancellation. When set to true, this will revoke the cancellation request and maintain the membership status.This parameter is optional and can be used in scenarios where you need to restore a membership that was marked for cancellation but hasn't been fully terminated yet.
If set to
true
, the cancellation request will be revokedIf set to
false
the service will throw a ValidationException.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_shiupdmembershiprsp
/AWS1/CL_SHIUPDMEMBERSHIPRSP
¶
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_shi~updatemembership(
io_membershipacctsconfsupd = new /aws1/cl_shimembershipacconf00(
it_orgalunitstoremove = VALUE /aws1/cl_shiorgalunits_w=>tt_organizationalunits(
( new /aws1/cl_shiorgalunits_w( |string| ) )
)
it_organizationalunitstoadd = VALUE /aws1/cl_shiorgalunits_w=>tt_organizationalunits(
( new /aws1/cl_shiorgalunits_w( |string| ) )
)
iv_coverentireorganization = ABAP_TRUE
)
it_incidentresponseteam = VALUE /aws1/cl_shiincidentresponder=>tt_incidentresponseteam(
(
new /aws1/cl_shiincidentresponder(
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
)
)
)
iv_membershipid = |string|
iv_membershipname = |string|
iv_undomembershipcanclation = ABAP_TRUE
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.
Invoke UpdateMembership¶
Invoke UpdateMembership
DATA(lo_result) = lo_client->/aws1/if_shi~updatemembership(
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_membershipid = |m-abcd1234efgh|
iv_membershipname = |New membership name|
).