Skip to main content

target_account_configurations

Creates, updates, deletes, gets or lists a target_account_configurations resource.

Overview​

Nametarget_account_configurations
TypeResource
Idaws.fis.target_account_configurations

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe Amazon Web Services account ID of the target account. (pattern: <code>[\S]+</code>)
descriptionstringThe description of the target account. (pattern: <code>[\s\S]*</code>)
role_arnstringThe Amazon Resource Name (ARN) of an IAM role for the target account. (pattern: <code>[\S]+</code>)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_target_account_configurationselectid, account_id, regionGets information about the specified target account configuration of the experiment template.
list_target_account_configurationsselectid, regionmaxResults, nextTokenLists the target account configurations of the specified experiment template.
create_target_account_configurationinsertid, account_id, region, roleArnCreates 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.
update_target_account_configurationupdateid, account_id, regionUpdates the target account configuration for the specified experiment template.
delete_target_account_configurationdeleteid, account_id, regionDeletes the specified target account configuration of the experiment template.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Amazon Web Services account ID of the target account.
idstringThe ID of the experiment template.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
nextTokenstringThe token for the next page of results.

SELECT examples​

Gets information about the specified target account configuration of the experiment template.

SELECT
account_id,
description,
role_arn
FROM aws.fis.target_account_configurations
WHERE id = '{{ id }}' -- required
AND account_id = '{{ account_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

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.

INSERT INTO aws.fis.target_account_configurations (
clientToken,
roleArn,
description,
id,
account_id,
region
)
SELECT
'{{ clientToken }}',
'{{ roleArn }}' /* required */,
'{{ description }}',
'{{ id }}',
'{{ account_id }}',
'{{ region }}'
RETURNING
target_account_configuration
;

UPDATE examples​

Updates the target account configuration for the specified experiment template.

UPDATE aws.fis.target_account_configurations
SET
roleArn = '{{ roleArn }}',
description = '{{ description }}'
WHERE
id = '{{ id }}' --required
AND account_id = '{{ account_id }}' --required
AND region = '{{ region }}' --required
RETURNING
target_account_configuration;

DELETE examples​

Deletes the specified target account configuration of the experiment template.

DELETE FROM aws.fis.target_account_configurations
WHERE id = '{{ id }}' --required
AND account_id = '{{ account_id }}' --required
AND region = '{{ region }}' --required
;