/AWS1/IF_IAP=>CREATEIDENTITYSOURCE()¶
About CreateIdentitySource¶
Creates a new identity source. For more information, see Identity Source in the Multi-party approval User Guide.
Method Signature¶
METHODS /AWS1/IF_IAP~CREATEIDENTITYSOURCE
IMPORTING
!IO_IDENTITYSOURCEPARAMETERS TYPE REF TO /AWS1/CL_IAPIDSOURCEPARAMS OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/IAPTOKEN OPTIONAL
!IT_TAGS TYPE /AWS1/CL_IAPTAGS_W=>TT_TAGS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iapcreateidsourcersp
RAISING
/AWS1/CX_IAPACCESSDENIEDEX
/AWS1/CX_IAPINTERNALSERVEREX
/AWS1/CX_IAPSERVICEQUOTAEXCDEX
/AWS1/CX_IAPTHROTTLINGEX
/AWS1/CX_IAPVALIDATIONEX
/AWS1/CX_IAPCLIENTEXC
/AWS1/CX_IAPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
io_identitysourceparameters TYPE REF TO /AWS1/CL_IAPIDSOURCEPARAMS /AWS1/CL_IAPIDSOURCEPARAMS¶
A
IdentitySourceParametersobject. Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/IAPTOKEN /AWS1/IAPTOKEN¶
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services populates this field.
What is idempotency?
When you make a mutating API request, the request typically returns a result before the operation's asynchronous workflows have completed. Operations might also time out or encounter other server issues before they complete, even though the request has already returned a result. This could make it difficult to determine whether the request succeeded or not, and could lead to multiple retries to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the operation is completed multiple times. This means that you might create more resources than you intended.
Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.
it_tags TYPE /AWS1/CL_IAPTAGS_W=>TT_TAGS TT_TAGS¶
Tag you want to attach to the identity source.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_iapcreateidsourcersp /AWS1/CL_IAPCREATEIDSOURCERSP¶
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->createidentitysource(
io_identitysourceparameters = new /aws1/cl_iapidsourceparams(
io_iamidentitycenter = new /aws1/cl_iapiamidentitycenter(
iv_instancearn = |string|
iv_region = |string|
)
)
it_tags = VALUE /aws1/cl_iaptags_w=>tt_tags(
(
VALUE /aws1/cl_iaptags_w=>ts_tags_maprow(
value = new /aws1/cl_iaptags_w( |string| )
key = |string|
)
)
)
iv_clienttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_identitysourcetype = lo_result->get_identitysourcetype( ).
lv_string = lo_result->get_identitysourcearn( ).
lv_isotimestamp = lo_result->get_creationtime( ).
ENDIF.