Skip to content

Commit

Permalink
feat(client-fis): This release adds support for previewing target res…
Browse files Browse the repository at this point in the history
…ources before running a FIS experiment. It also adds resource ARNs for actions, experiments, and experiment templates to API responses.
  • Loading branch information
awstools committed Mar 14, 2024
1 parent 7cde1da commit 4620a92
Show file tree
Hide file tree
Showing 19 changed files with 251 additions and 39 deletions.
4 changes: 2 additions & 2 deletions clients/client-fis/README.md
Expand Up @@ -6,8 +6,8 @@

AWS SDK for JavaScript Fis Client for Node.js, Browser and React Native.

<p>Fault Injection Simulator is a managed service that enables you to perform fault injection
experiments on your Amazon Web Services workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection Simulator User Guide</a>.</p>
<p>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 <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection Service User Guide</a>.</p>

## Installing

Expand Down
4 changes: 2 additions & 2 deletions clients/client-fis/src/Fis.ts
Expand Up @@ -512,8 +512,8 @@ export interface Fis {

/**
* @public
* <p>Fault Injection Simulator is a managed service that enables you to perform fault injection
* experiments on your Amazon Web Services workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection Simulator User Guide</a>.</p>
* <p>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 <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection Service User Guide</a>.</p>
*/
export class Fis extends FisClient implements Fis {}
createAggregatedClient(commands, Fis);
4 changes: 2 additions & 2 deletions clients/client-fis/src/FisClient.ts
Expand Up @@ -367,8 +367,8 @@ export interface FisClientResolvedConfig extends FisClientResolvedConfigType {}

/**
* @public
* <p>Fault Injection Simulator is a managed service that enables you to perform fault injection
* experiments on your Amazon Web Services workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection Simulator User Guide</a>.</p>
* <p>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 <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection Service User Guide</a>.</p>
*/
export class FisClient extends __Client<
__HttpHandlerOptions,
Expand Down
Expand Up @@ -50,7 +50,7 @@ export interface CreateExperimentTemplateCommandOutput extends CreateExperimentT
* </li>
* </ul>
* <p>For more information, see <a href="https://docs.aws.amazon.com/fis/latest/userguide/experiment-templates.html">experiment templates</a>
* in the <i>Fault Injection Simulator User Guide</i>.</p>
* in the <i>Fault Injection Service User Guide</i>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down Expand Up @@ -128,6 +128,7 @@ export interface CreateExperimentTemplateCommandOutput extends CreateExperimentT
* // { // CreateExperimentTemplateResponse
* // experimentTemplate: { // ExperimentTemplate
* // id: "STRING_VALUE",
* // arn: "STRING_VALUE",
* // description: "STRING_VALUE",
* // targets: { // ExperimentTemplateTargetMap
* // "<keys>": { // ExperimentTemplateTarget
Expand Down
Expand Up @@ -36,7 +36,7 @@ export interface CreateTargetAccountConfigurationCommandOutput
* <p>Creates a target account configuration for the experiment template. A target account configuration
* is required when <code>accountTargeting</code> of <code>experimentOptions</code> is set to <code>multi-account</code>.
* For more information, see <a href="https://docs.aws.amazon.com/fis/latest/userguide/experiment-options.html">experiment options</a>
* in the <i>Fault Injection Simulator User Guide</i>.
* in the <i>Fault Injection Service User Guide</i>.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Expand Up @@ -43,6 +43,7 @@ export interface DeleteExperimentTemplateCommandOutput extends DeleteExperimentT
* // { // DeleteExperimentTemplateResponse
* // experimentTemplate: { // ExperimentTemplate
* // id: "STRING_VALUE",
* // arn: "STRING_VALUE",
* // description: "STRING_VALUE",
* // targets: { // ExperimentTemplateTargetMap
* // "<keys>": { // ExperimentTemplateTarget
Expand Down
1 change: 1 addition & 0 deletions clients/client-fis/src/commands/GetActionCommand.ts
Expand Up @@ -43,6 +43,7 @@ export interface GetActionCommandOutput extends GetActionResponse, __MetadataBea
* // { // GetActionResponse
* // action: { // Action
* // id: "STRING_VALUE",
* // arn: "STRING_VALUE",
* // description: "STRING_VALUE",
* // parameters: { // ActionParameterMap
* // "<keys>": { // ActionParameter
Expand Down
2 changes: 2 additions & 0 deletions clients/client-fis/src/commands/GetExperimentCommand.ts
Expand Up @@ -43,6 +43,7 @@ export interface GetExperimentCommandOutput extends GetExperimentResponse, __Met
* // { // GetExperimentResponse
* // experiment: { // Experiment
* // id: "STRING_VALUE",
* // arn: "STRING_VALUE",
* // experimentTemplateId: "STRING_VALUE",
* // roleArn: "STRING_VALUE",
* // state: { // ExperimentState
Expand Down Expand Up @@ -118,6 +119,7 @@ export interface GetExperimentCommandOutput extends GetExperimentResponse, __Met
* // experimentOptions: { // ExperimentOptions
* // accountTargeting: "single-account" || "multi-account",
* // emptyTargetResolutionMode: "fail" || "skip",
* // actionsMode: "skip-all" || "run-all",
* // },
* // targetAccountConfigurationsCount: Number("long"),
* // },
Expand Down
Expand Up @@ -43,6 +43,7 @@ export interface GetExperimentTemplateCommandOutput extends GetExperimentTemplat
* // { // GetExperimentTemplateResponse
* // experimentTemplate: { // ExperimentTemplate
* // id: "STRING_VALUE",
* // arn: "STRING_VALUE",
* // description: "STRING_VALUE",
* // targets: { // ExperimentTemplateTargetMap
* // "<keys>": { // ExperimentTemplateTarget
Expand Down
1 change: 1 addition & 0 deletions clients/client-fis/src/commands/ListActionsCommand.ts
Expand Up @@ -45,6 +45,7 @@ export interface ListActionsCommandOutput extends ListActionsResponse, __Metadat
* // actions: [ // ActionSummaryList
* // { // ActionSummary
* // id: "STRING_VALUE",
* // arn: "STRING_VALUE",
* // description: "STRING_VALUE",
* // targets: { // ActionTargetMap
* // "<keys>": { // ActionTarget
Expand Down
Expand Up @@ -45,6 +45,7 @@ export interface ListExperimentTemplatesCommandOutput extends ListExperimentTemp
* // experimentTemplates: [ // ExperimentTemplateSummaryList
* // { // ExperimentTemplateSummary
* // id: "STRING_VALUE",
* // arn: "STRING_VALUE",
* // description: "STRING_VALUE",
* // creationTime: new Date("TIMESTAMP"),
* // lastUpdateTime: new Date("TIMESTAMP"),
Expand Down
7 changes: 7 additions & 0 deletions clients/client-fis/src/commands/ListExperimentsCommand.ts
Expand Up @@ -38,13 +38,15 @@ export interface ListExperimentsCommandOutput extends ListExperimentsResponse, _
* const input = { // ListExperimentsRequest
* maxResults: Number("int"),
* nextToken: "STRING_VALUE",
* experimentTemplateId: "STRING_VALUE",
* };
* const command = new ListExperimentsCommand(input);
* const response = await client.send(command);
* // { // ListExperimentsResponse
* // experiments: [ // ExperimentSummaryList
* // { // ExperimentSummary
* // id: "STRING_VALUE",
* // arn: "STRING_VALUE",
* // experimentTemplateId: "STRING_VALUE",
* // state: { // ExperimentState
* // status: "pending" || "initiating" || "running" || "completed" || "stopping" || "stopped" || "failed",
Expand All @@ -54,6 +56,11 @@ export interface ListExperimentsCommandOutput extends ListExperimentsResponse, _
* // tags: { // TagMap
* // "<keys>": "STRING_VALUE",
* // },
* // experimentOptions: { // ExperimentOptions
* // accountTargeting: "single-account" || "multi-account",
* // emptyTargetResolutionMode: "fail" || "skip",
* // actionsMode: "skip-all" || "run-all",
* // },
* // },
* // ],
* // nextToken: "STRING_VALUE",
Expand Down
5 changes: 5 additions & 0 deletions clients/client-fis/src/commands/StartExperimentCommand.ts
Expand Up @@ -38,6 +38,9 @@ export interface StartExperimentCommandOutput extends StartExperimentResponse, _
* const input = { // StartExperimentRequest
* clientToken: "STRING_VALUE", // required
* experimentTemplateId: "STRING_VALUE", // required
* experimentOptions: { // StartExperimentExperimentOptionsInput
* actionsMode: "skip-all" || "run-all",
* },
* tags: { // TagMap
* "<keys>": "STRING_VALUE",
* },
Expand All @@ -47,6 +50,7 @@ export interface StartExperimentCommandOutput extends StartExperimentResponse, _
* // { // StartExperimentResponse
* // experiment: { // Experiment
* // id: "STRING_VALUE",
* // arn: "STRING_VALUE",
* // experimentTemplateId: "STRING_VALUE",
* // roleArn: "STRING_VALUE",
* // state: { // ExperimentState
Expand Down Expand Up @@ -122,6 +126,7 @@ export interface StartExperimentCommandOutput extends StartExperimentResponse, _
* // experimentOptions: { // ExperimentOptions
* // accountTargeting: "single-account" || "multi-account",
* // emptyTargetResolutionMode: "fail" || "skip",
* // actionsMode: "skip-all" || "run-all",
* // },
* // targetAccountConfigurationsCount: Number("long"),
* // },
Expand Down
2 changes: 2 additions & 0 deletions clients/client-fis/src/commands/StopExperimentCommand.ts
Expand Up @@ -43,6 +43,7 @@ export interface StopExperimentCommandOutput extends StopExperimentResponse, __M
* // { // StopExperimentResponse
* // experiment: { // Experiment
* // id: "STRING_VALUE",
* // arn: "STRING_VALUE",
* // experimentTemplateId: "STRING_VALUE",
* // roleArn: "STRING_VALUE",
* // state: { // ExperimentState
Expand Down Expand Up @@ -118,6 +119,7 @@ export interface StopExperimentCommandOutput extends StopExperimentResponse, __M
* // experimentOptions: { // ExperimentOptions
* // accountTargeting: "single-account" || "multi-account",
* // emptyTargetResolutionMode: "fail" || "skip",
* // actionsMode: "skip-all" || "run-all",
* // },
* // targetAccountConfigurationsCount: Number("long"),
* // },
Expand Down
Expand Up @@ -102,6 +102,7 @@ export interface UpdateExperimentTemplateCommandOutput extends UpdateExperimentT
* // { // UpdateExperimentTemplateResponse
* // experimentTemplate: { // ExperimentTemplate
* // id: "STRING_VALUE",
* // arn: "STRING_VALUE",
* // description: "STRING_VALUE",
* // targets: { // ExperimentTemplateTargetMap
* // "<keys>": { // ExperimentTemplateTarget
Expand Down
4 changes: 2 additions & 2 deletions clients/client-fis/src/index.ts
@@ -1,8 +1,8 @@
// smithy-typescript generated code
/* eslint-disable */
/**
* <p>Fault Injection Simulator is a managed service that enables you to perform fault injection
* experiments on your Amazon Web Services workloads. For more information, see the <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection Simulator User Guide</a>.</p>
* <p>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 <a href="https://docs.aws.amazon.com/fis/latest/userguide/">Fault Injection Service User Guide</a>.</p>
*
* @packageDocumentation
*/
Expand Down

0 comments on commit 4620a92

Please sign in to comment.