Amazon Web Services Fault Injection Service is a managed service that enables you to perform fault injection experiments on your Amazon Web Services workloads. For more information, see the Fault Injection Service User Guide .

Installation

NPM
npm install @aws-sdk/client-fis
Yarn
yarn add @aws-sdk/client-fis
pnpm
pnpm add @aws-sdk/client-fis

FisClient Operations

Command
Summary
CreateExperimentTemplateCommand

Creates an experiment template.

An experiment template includes the following components:

  • Targets: A target can be a specific resource in your Amazon Web Services environment, or one or more resources that match criteria that you specify, for example, resources that have specific tags.

  • Actions: The actions to carry out on the target. You can specify multiple actions, the duration of each action, and when to start each action during an experiment.

  • Stop conditions: If a stop condition is triggered while an experiment is running, the experiment is automatically stopped. You can define a stop condition as a CloudWatch alarm.

For more information, see experiment templates  in the Fault Injection Service User Guide.

CreateTargetAccountConfigurationCommand

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.

DeleteExperimentTemplateCommand

Deletes the specified experiment template.

DeleteTargetAccountConfigurationCommand

Deletes the specified target account configuration of the experiment template.

GetActionCommand

Gets information about the specified FIS action.

GetExperimentCommand

Gets information about the specified experiment.

GetExperimentTargetAccountConfigurationCommand

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

GetExperimentTemplateCommand

Gets information about the specified experiment template.

GetSafetyLeverCommand

Gets information about the specified safety lever.

GetTargetAccountConfigurationCommand

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

GetTargetResourceTypeCommand

Gets information about the specified resource type.

ListActionsCommand

Lists the available FIS actions.

ListExperimentResolvedTargetsCommand

Lists the resolved targets information of the specified experiment.

ListExperimentTargetAccountConfigurationsCommand

Lists the target account configurations of the specified experiment.

ListExperimentTemplatesCommand

Lists your experiment templates.

ListExperimentsCommand

Lists your experiments.

ListTagsForResourceCommand

Lists the tags for the specified resource.

ListTargetAccountConfigurationsCommand

Lists the target account configurations of the specified experiment template.

ListTargetResourceTypesCommand

Lists the target resource types.

StartExperimentCommand

Starts running an experiment from the specified experiment template.

StopExperimentCommand

Stops the specified experiment.

TagResourceCommand

Applies the specified tags to the specified resource.

UntagResourceCommand

Removes the specified tags from the specified resource.

UpdateExperimentTemplateCommand

Updates the specified experiment template.

UpdateSafetyLeverStateCommand

Updates the specified safety lever state.

UpdateTargetAccountConfigurationCommand

Updates the target account configuration for the specified experiment template.

FisClient Configuration

Parameter
Type
Description
defaultsMode
Optional
DefaultsMode | Provider<DefaultsMode>
The @smithy/smithy-client#DefaultsMode that will be used to determine how certain default configuration options are resolved in the SDK.
disableHostPrefix
Optional
boolean
Disable dynamically changing the endpoint of the client based on the hostPrefix trait of an operation.
extensions
Optional
RuntimeExtension[]
Optional extensions
logger
Optional
Logger
Optional logger for logging debug/info/warn/error.
maxAttempts
Optional
number | Provider<number>
Value for how many times a request will be made at most in case of retry.
profile
Optional
string
Setting a client profile is similar to setting a value for the AWS_PROFILE environment variable. Setting a profile on a client in code only affects the single client instance, unlike AWS_PROFILE.When set, and only for environments where an AWS configuration file exists, fields configurable by this file will be retrieved from the specified profile within that file. Conflicting code configuration and environment variables will still have higher priority.For client credential resolution that involves checking the AWS configuration file, the client's profile (this value) will be used unless a different profile is set in the credential provider options.
region
Optional
string | Provider<string>
The AWS region to which this client will send requests
requestHandler
Optional
__HttpHandlerUserInput
The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
retryMode
Optional
string | Provider<string>
Specifies which retry algorithm to use.
useDualstackEndpoint
Optional
boolean | Provider<boolean>
Enables IPv6/IPv4 dualstack endpoint.
useFipsEndpoint
Optional
boolean | Provider<boolean>
Enables FIPS compatible endpoints.
Additional config fields are described in the full configuration type: FisClientConfig