/AWS1/IF_FIS=>CREATETARGETACCOUNTCONF()¶
About CreateTargetAccountConfiguration¶
Creates a target account configuration for the experiment template. A target account configuration
is required when accountTargeting of experimentOptions is set to multi-account.
For more information, see experiment options
in the Fault Injection Service User Guide.
Method Signature¶
METHODS /AWS1/IF_FIS~CREATETARGETACCOUNTCONF
IMPORTING
!IV_CLIENTTOKEN TYPE /AWS1/FISCLIENTTOKEN OPTIONAL
!IV_EXPERIMENTTEMPLATEID TYPE /AWS1/FISEXPERIMENTTEMPLATEID OPTIONAL
!IV_ACCOUNTID TYPE /AWS1/FISTARGETACCOUNTID OPTIONAL
!IV_ROLEARN TYPE /AWS1/FISROLEARN OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/FISTARGETACCOUNTCONFDESC OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fiscretgtacctconfrsp
RAISING
/AWS1/CX_FISCONFLICTEXCEPTION
/AWS1/CX_FISRESOURCENOTFOUNDEX
/AWS1/CX_FISSERVICEQUOTAEXCDEX
/AWS1/CX_FISVALIDATIONEX
/AWS1/CX_FISCLIENTEXC
/AWS1/CX_FISSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_experimenttemplateid TYPE /AWS1/FISEXPERIMENTTEMPLATEID /AWS1/FISEXPERIMENTTEMPLATEID¶
The experiment template ID.
iv_accountid TYPE /AWS1/FISTARGETACCOUNTID /AWS1/FISTARGETACCOUNTID¶
The Amazon Web Services account ID of the target account.
iv_rolearn TYPE /AWS1/FISROLEARN /AWS1/FISROLEARN¶
The Amazon Resource Name (ARN) of an IAM role for the target account.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/FISCLIENTTOKEN /AWS1/FISCLIENTTOKEN¶
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
iv_description TYPE /AWS1/FISTARGETACCOUNTCONFDESC /AWS1/FISTARGETACCOUNTCONFDESC¶
The description of the target account.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_fiscretgtacctconfrsp /AWS1/CL_FISCRETGTACCTCONFRSP¶
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->createtargetaccountconf(
iv_accountid = |string|
iv_clienttoken = |string|
iv_description = |string|
iv_experimenttemplateid = |string|
iv_rolearn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_targetaccountconfigurat = lo_result->get_targetaccountconf( ).
IF lo_targetaccountconfigurat IS NOT INITIAL.
lv_rolearn = lo_targetaccountconfigurat->get_rolearn( ).
lv_targetaccountid = lo_targetaccountconfigurat->get_accountid( ).
lv_targetaccountconfigurat_1 = lo_targetaccountconfigurat->get_description( ).
ENDIF.
ENDIF.