create_target_account_configuration
async
¶
create_target_account_configuration(
experiment_template_id: ExperimentTemplateId,
account_id: TargetAccountId,
role_arn: RoleArn,
*,
config_overrides: Optional[AsyncfisClientConfig] = None,
client_token: Optional[ClientToken] = None,
description: Optional[TargetAccountConfigurationDescription] = None,
) -> CreateTargetAccountConfigurationResponse
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.
Parameters:
-
client_token(Optional[ClientToken], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
experiment_template_id(ExperimentTemplateId) –The experiment template ID.
-
account_id(TargetAccountId) –The Amazon Web Services account ID of the target account.
-
role_arn(RoleArn) –The Amazon Resource Name (ARN) of an IAM role for the target account.
-
description(Optional[TargetAccountConfigurationDescription], default:None) –The description of the target account.
Raises:
-
ConflictException–The request could not be processed because of a conflict.
-
ResourceNotFoundException–The specified resource cannot be found.
-
ServiceQuotaExceededException–You have exceeded your service quota.
-
ValidationException–The specified input is not valid, or fails to satisfy the constraints for the request.
-
UnknownServiceError–The service returned an error code this client does not model.