/AWS1/IF_PP2=>DISASSOCORIGINATIONIDENTITY()¶
About DisassociateOriginationIdentity¶
Removes the specified origination identity from an existing pool.
If the origination identity isn't associated with the specified pool, an error is returned.
Method Signature¶
METHODS /AWS1/IF_PP2~DISASSOCORIGINATIONIDENTITY
  IMPORTING
    !IV_POOLID TYPE /AWS1/PP2POOLIDORARN OPTIONAL
    !IV_ORIGINATIONIDENTITY TYPE /AWS1/PP2PHONEORSENDERIDORARN OPTIONAL
    !IV_ISOCOUNTRYCODE TYPE /AWS1/PP2ISOCOUNTRYCODE OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/PP2CLIENTTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pp2disascoriginatio01
  RAISING
    /AWS1/CX_PP2ACCESSDENIEDEX
    /AWS1/CX_PP2CONFLICTEXCEPTION
    /AWS1/CX_PP2INTERNALSERVEREX
    /AWS1/CX_PP2RESOURCENOTFOUNDEX
    /AWS1/CX_PP2THROTTLINGEX
    /AWS1/CX_PP2VALIDATIONEX
    /AWS1/CX_PP2CLIENTEXC
    /AWS1/CX_PP2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_poolid TYPE /AWS1/PP2POOLIDORARN /AWS1/PP2POOLIDORARN¶
The unique identifier for the pool to disassociate with the origination identity. This value can be either the PoolId or PoolArn.
If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).
iv_originationidentity TYPE /AWS1/PP2PHONEORSENDERIDORARN /AWS1/PP2PHONEORSENDERIDORARN¶
The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers find the values for PhoneNumberId and PhoneNumberArn, or use DescribeSenderIds to get the values for SenderId and SenderIdArn.
If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).
iv_isocountrycode TYPE /AWS1/PP2ISOCOUNTRYCODE /AWS1/PP2ISOCOUNTRYCODE¶
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/PP2CLIENTTOKEN /AWS1/PP2CLIENTTOKEN¶
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_pp2disascoriginatio01 /AWS1/CL_PP2DISASCORIGINATIO01¶
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->disassocoriginationidentity(
  iv_clienttoken = |string|
  iv_isocountrycode = |string|
  iv_originationidentity = |string|
  iv_poolid = |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_poolarn( ).
  lv_string = lo_result->get_poolid( ).
  lv_string = lo_result->get_originationidentityarn( ).
  lv_string = lo_result->get_originationidentity( ).
  lv_isocountrycode = lo_result->get_isocountrycode( ).
ENDIF.