diff --git a/clients/client-fis/README.md b/clients/client-fis/README.md index a8cc4a067c15..1af1fe10be1c 100644 --- a/clients/client-fis/README.md +++ b/clients/client-fis/README.md @@ -6,8 +6,8 @@ AWS SDK for JavaScript Fis Client for Node.js, Browser and React Native. -

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 Fault Injection Simulator User Guide.

+

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.

## Installing diff --git a/clients/client-fis/src/Fis.ts b/clients/client-fis/src/Fis.ts index 695e2ccccfff..c244d6025023 100644 --- a/clients/client-fis/src/Fis.ts +++ b/clients/client-fis/src/Fis.ts @@ -512,8 +512,8 @@ export interface Fis { /** * @public - *

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 Fault Injection Simulator User Guide.

+ *

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.

*/ export class Fis extends FisClient implements Fis {} createAggregatedClient(commands, Fis); diff --git a/clients/client-fis/src/FisClient.ts b/clients/client-fis/src/FisClient.ts index 1f33b6cde78f..f814b31d8721 100644 --- a/clients/client-fis/src/FisClient.ts +++ b/clients/client-fis/src/FisClient.ts @@ -367,8 +367,8 @@ export interface FisClientResolvedConfig extends FisClientResolvedConfigType {} /** * @public - *

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 Fault Injection Simulator User Guide.

+ *

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.

*/ export class FisClient extends __Client< __HttpHandlerOptions, diff --git a/clients/client-fis/src/commands/CreateExperimentTemplateCommand.ts b/clients/client-fis/src/commands/CreateExperimentTemplateCommand.ts index d13042dcfb48..ed8e46f8de97 100644 --- a/clients/client-fis/src/commands/CreateExperimentTemplateCommand.ts +++ b/clients/client-fis/src/commands/CreateExperimentTemplateCommand.ts @@ -50,7 +50,7 @@ export interface CreateExperimentTemplateCommandOutput extends CreateExperimentT * * *

For more information, see experiment templates - * in the Fault Injection Simulator User Guide.

+ * in the Fault Injection Service User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -128,6 +128,7 @@ export interface CreateExperimentTemplateCommandOutput extends CreateExperimentT * // { // CreateExperimentTemplateResponse * // experimentTemplate: { // ExperimentTemplate * // id: "STRING_VALUE", + * // arn: "STRING_VALUE", * // description: "STRING_VALUE", * // targets: { // ExperimentTemplateTargetMap * // "": { // ExperimentTemplateTarget diff --git a/clients/client-fis/src/commands/CreateTargetAccountConfigurationCommand.ts b/clients/client-fis/src/commands/CreateTargetAccountConfigurationCommand.ts index 9a3e853fa78f..31c33e05abd9 100644 --- a/clients/client-fis/src/commands/CreateTargetAccountConfigurationCommand.ts +++ b/clients/client-fis/src/commands/CreateTargetAccountConfigurationCommand.ts @@ -36,7 +36,7 @@ export interface CreateTargetAccountConfigurationCommandOutput *

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 Simulator User Guide. + * in the Fault Injection Service User Guide. *

* @example * Use a bare-bones client and the command you need to make an API call. diff --git a/clients/client-fis/src/commands/DeleteExperimentTemplateCommand.ts b/clients/client-fis/src/commands/DeleteExperimentTemplateCommand.ts index 0ae59abb806e..7fbbdea9e993 100644 --- a/clients/client-fis/src/commands/DeleteExperimentTemplateCommand.ts +++ b/clients/client-fis/src/commands/DeleteExperimentTemplateCommand.ts @@ -43,6 +43,7 @@ export interface DeleteExperimentTemplateCommandOutput extends DeleteExperimentT * // { // DeleteExperimentTemplateResponse * // experimentTemplate: { // ExperimentTemplate * // id: "STRING_VALUE", + * // arn: "STRING_VALUE", * // description: "STRING_VALUE", * // targets: { // ExperimentTemplateTargetMap * // "": { // ExperimentTemplateTarget diff --git a/clients/client-fis/src/commands/GetActionCommand.ts b/clients/client-fis/src/commands/GetActionCommand.ts index 82bd0967bbfa..911b71a345be 100644 --- a/clients/client-fis/src/commands/GetActionCommand.ts +++ b/clients/client-fis/src/commands/GetActionCommand.ts @@ -43,6 +43,7 @@ export interface GetActionCommandOutput extends GetActionResponse, __MetadataBea * // { // GetActionResponse * // action: { // Action * // id: "STRING_VALUE", + * // arn: "STRING_VALUE", * // description: "STRING_VALUE", * // parameters: { // ActionParameterMap * // "": { // ActionParameter diff --git a/clients/client-fis/src/commands/GetExperimentCommand.ts b/clients/client-fis/src/commands/GetExperimentCommand.ts index 86178997adb2..1814bc93cb78 100644 --- a/clients/client-fis/src/commands/GetExperimentCommand.ts +++ b/clients/client-fis/src/commands/GetExperimentCommand.ts @@ -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 @@ -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"), * // }, diff --git a/clients/client-fis/src/commands/GetExperimentTemplateCommand.ts b/clients/client-fis/src/commands/GetExperimentTemplateCommand.ts index 1ee05ed8821d..848d4ded2fd1 100644 --- a/clients/client-fis/src/commands/GetExperimentTemplateCommand.ts +++ b/clients/client-fis/src/commands/GetExperimentTemplateCommand.ts @@ -43,6 +43,7 @@ export interface GetExperimentTemplateCommandOutput extends GetExperimentTemplat * // { // GetExperimentTemplateResponse * // experimentTemplate: { // ExperimentTemplate * // id: "STRING_VALUE", + * // arn: "STRING_VALUE", * // description: "STRING_VALUE", * // targets: { // ExperimentTemplateTargetMap * // "": { // ExperimentTemplateTarget diff --git a/clients/client-fis/src/commands/ListActionsCommand.ts b/clients/client-fis/src/commands/ListActionsCommand.ts index 4467f5290207..f7e2fc005599 100644 --- a/clients/client-fis/src/commands/ListActionsCommand.ts +++ b/clients/client-fis/src/commands/ListActionsCommand.ts @@ -45,6 +45,7 @@ export interface ListActionsCommandOutput extends ListActionsResponse, __Metadat * // actions: [ // ActionSummaryList * // { // ActionSummary * // id: "STRING_VALUE", + * // arn: "STRING_VALUE", * // description: "STRING_VALUE", * // targets: { // ActionTargetMap * // "": { // ActionTarget diff --git a/clients/client-fis/src/commands/ListExperimentTemplatesCommand.ts b/clients/client-fis/src/commands/ListExperimentTemplatesCommand.ts index 893c6d1da48c..4ba140b2c080 100644 --- a/clients/client-fis/src/commands/ListExperimentTemplatesCommand.ts +++ b/clients/client-fis/src/commands/ListExperimentTemplatesCommand.ts @@ -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"), diff --git a/clients/client-fis/src/commands/ListExperimentsCommand.ts b/clients/client-fis/src/commands/ListExperimentsCommand.ts index 8b25d0671fa9..0b7c3fc9d925 100644 --- a/clients/client-fis/src/commands/ListExperimentsCommand.ts +++ b/clients/client-fis/src/commands/ListExperimentsCommand.ts @@ -38,6 +38,7 @@ 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); @@ -45,6 +46,7 @@ export interface ListExperimentsCommandOutput extends ListExperimentsResponse, _ * // experiments: [ // ExperimentSummaryList * // { // ExperimentSummary * // id: "STRING_VALUE", + * // arn: "STRING_VALUE", * // experimentTemplateId: "STRING_VALUE", * // state: { // ExperimentState * // status: "pending" || "initiating" || "running" || "completed" || "stopping" || "stopped" || "failed", @@ -54,6 +56,11 @@ export interface ListExperimentsCommandOutput extends ListExperimentsResponse, _ * // tags: { // TagMap * // "": "STRING_VALUE", * // }, + * // experimentOptions: { // ExperimentOptions + * // accountTargeting: "single-account" || "multi-account", + * // emptyTargetResolutionMode: "fail" || "skip", + * // actionsMode: "skip-all" || "run-all", + * // }, * // }, * // ], * // nextToken: "STRING_VALUE", diff --git a/clients/client-fis/src/commands/StartExperimentCommand.ts b/clients/client-fis/src/commands/StartExperimentCommand.ts index 8f08d7327a29..041689eda816 100644 --- a/clients/client-fis/src/commands/StartExperimentCommand.ts +++ b/clients/client-fis/src/commands/StartExperimentCommand.ts @@ -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 * "": "STRING_VALUE", * }, @@ -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 @@ -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"), * // }, diff --git a/clients/client-fis/src/commands/StopExperimentCommand.ts b/clients/client-fis/src/commands/StopExperimentCommand.ts index acbaca391bca..095ac7d918f6 100644 --- a/clients/client-fis/src/commands/StopExperimentCommand.ts +++ b/clients/client-fis/src/commands/StopExperimentCommand.ts @@ -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 @@ -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"), * // }, diff --git a/clients/client-fis/src/commands/UpdateExperimentTemplateCommand.ts b/clients/client-fis/src/commands/UpdateExperimentTemplateCommand.ts index 0e93718f5d7d..577defa49df5 100644 --- a/clients/client-fis/src/commands/UpdateExperimentTemplateCommand.ts +++ b/clients/client-fis/src/commands/UpdateExperimentTemplateCommand.ts @@ -102,6 +102,7 @@ export interface UpdateExperimentTemplateCommandOutput extends UpdateExperimentT * // { // UpdateExperimentTemplateResponse * // experimentTemplate: { // ExperimentTemplate * // id: "STRING_VALUE", + * // arn: "STRING_VALUE", * // description: "STRING_VALUE", * // targets: { // ExperimentTemplateTargetMap * // "": { // ExperimentTemplateTarget diff --git a/clients/client-fis/src/index.ts b/clients/client-fis/src/index.ts index 42a9738ede91..56b4c39bc1bb 100644 --- a/clients/client-fis/src/index.ts +++ b/clients/client-fis/src/index.ts @@ -1,8 +1,8 @@ // smithy-typescript generated code /* eslint-disable */ /** - *

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 Fault Injection Simulator User Guide.

+ *

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.

* * @packageDocumentation */ diff --git a/clients/client-fis/src/models/models_0.ts b/clients/client-fis/src/models/models_0.ts index 5e224e27f573..4b8707af6f56 100644 --- a/clients/client-fis/src/models/models_0.ts +++ b/clients/client-fis/src/models/models_0.ts @@ -50,7 +50,7 @@ export interface ActionTarget { /** * @public *

Describes an action. For more information, see FIS actions - * in the Fault Injection Simulator User Guide.

+ * in the Fault Injection Service User Guide.

*/ export interface Action { /** @@ -59,6 +59,12 @@ export interface Action { */ id?: string; + /** + * @public + *

The Amazon Resource Name (ARN) of the action.

+ */ + arn?: string; + /** * @public *

The description for the action.

@@ -84,6 +90,20 @@ export interface Action { tags?: Record; } +/** + * @public + * @enum + */ +export const ActionsMode = { + RUN_ALL: "run-all", + SKIP_ALL: "skip-all", +} as const; + +/** + * @public + */ +export type ActionsMode = (typeof ActionsMode)[keyof typeof ActionsMode]; + /** * @public *

Provides a summary of an action.

@@ -95,6 +115,12 @@ export interface ActionSummary { */ id?: string; + /** + * @public + *

The Amazon Resource Name (ARN) of the action.

+ */ + arn?: string; + /** * @public *

The description for the action.

@@ -138,7 +164,7 @@ export class ConflictException extends __BaseException { * @public *

Specifies an action for an experiment template.

*

For more information, see Actions - * in the Fault Injection Simulator User Guide.

+ * in the Fault Injection Service User Guide.

*/ export interface CreateExperimentTemplateActionInput { /** @@ -283,7 +309,7 @@ export interface CreateExperimentTemplateStopConditionInput { * @public *

Specifies a filter used for the target resource input in an experiment template.

*

For more information, see Resource filters - * in the Fault Injection Simulator User Guide.

+ * in the Fault Injection Service User Guide.

*/ export interface ExperimentTemplateTargetInputFilter { /** @@ -304,7 +330,7 @@ export interface ExperimentTemplateTargetInputFilter { *

Specifies a target for an experiment. You must specify at least one Amazon Resource Name (ARN) or * at least one resource tag. You cannot specify both ARNs and tags.

*

For more information, see Targets - * in the Fault Injection Simulator User Guide.

+ * in the Fault Injection Service User Guide.

*/ export interface CreateExperimentTemplateTargetInput { /** @@ -613,6 +639,12 @@ export interface ExperimentTemplate { */ id?: string; + /** + * @public + *

The Amazon Resource Name (ARN) of the experiment template.

+ */ + arn?: string; + /** * @public *

The description for the experiment template.

@@ -769,7 +801,7 @@ export interface CreateTargetAccountConfigurationRequest { /** * @public - *

The AWS account ID of the target account.

+ *

The Amazon Web Services account ID of the target account.

*/ accountId: string | undefined; @@ -799,7 +831,7 @@ export interface TargetAccountConfiguration { /** * @public - *

The AWS account ID of the target account.

+ *

The Amazon Web Services account ID of the target account.

*/ accountId?: string; @@ -855,7 +887,7 @@ export interface DeleteTargetAccountConfigurationRequest { /** * @public - *

The AWS account ID of the target account.

+ *

The Amazon Web Services account ID of the target account.

*/ accountId: string | undefined; } @@ -980,6 +1012,12 @@ export interface ExperimentOptions { *

The empty target resolution mode for an experiment.

*/ emptyTargetResolutionMode?: EmptyTargetResolutionMode; + + /** + * @public + *

The actions mode of the experiment that is set from the StartExperiment API command.

+ */ + actionsMode?: ActionsMode; } /** @@ -1162,6 +1200,12 @@ export interface Experiment { */ id?: string; + /** + * @public + *

The Amazon Resource Name (ARN) of the experiment.

+ */ + arn?: string; + /** * @public *

The ID of the experiment template.

@@ -1252,6 +1296,12 @@ export interface ExperimentSummary { */ id?: string; + /** + * @public + *

The Amazon Resource Name (ARN) of the experiment.

+ */ + arn?: string; + /** * @public *

The ID of the experiment template.

@@ -1275,6 +1325,12 @@ export interface ExperimentSummary { *

The tags for the experiment.

*/ tags?: Record; + + /** + * @public + *

The experiment options for the experiment.

+ */ + experimentOptions?: ExperimentOptions; } /** @@ -1290,7 +1346,7 @@ export interface ExperimentTargetAccountConfiguration { /** * @public - *

The AWS account ID of the target account.

+ *

The Amazon Web Services account ID of the target account.

*/ accountId?: string; @@ -1314,7 +1370,7 @@ export interface ExperimentTargetAccountConfigurationSummary { /** * @public - *

The AWS account ID of the target account.

+ *

The Amazon Web Services account ID of the target account.

*/ accountId?: string; @@ -1336,6 +1392,12 @@ export interface ExperimentTemplateSummary { */ id?: string; + /** + * @public + *

The Amazon Resource Name (ARN) of the experiment template.

+ */ + arn?: string; + /** * @public *

The description of the experiment template.

@@ -1417,7 +1479,7 @@ export interface GetExperimentTargetAccountConfigurationRequest { /** * @public - *

The AWS account ID of the target account.

+ *

The Amazon Web Services account ID of the target account.

*/ accountId: string | undefined; } @@ -1467,7 +1529,7 @@ export interface GetTargetAccountConfigurationRequest { /** * @public - *

The AWS account ID of the target account.

+ *

The Amazon Web Services account ID of the target account.

*/ accountId: string | undefined; } @@ -1669,6 +1731,12 @@ export interface ListExperimentsRequest { *

The token for the next page of results.

*/ nextToken?: string; + + /** + * @public + *

The ID of the experiment template.

+ */ + experimentTemplateId?: string; } /** @@ -1816,7 +1884,7 @@ export interface TargetAccountConfigurationSummary { /** * @public - *

The AWS account ID of the target account.

+ *

The Amazon Web Services account ID of the target account.

*/ accountId?: string; @@ -1897,6 +1965,18 @@ export interface ListTargetResourceTypesResponse { nextToken?: string; } +/** + * @public + *

Specifies experiment options for running an experiment.

+ */ +export interface StartExperimentExperimentOptionsInput { + /** + * @public + *

Specifies the actions mode for experiment options.

+ */ + actionsMode?: ActionsMode; +} + /** * @public */ @@ -1913,6 +1993,12 @@ export interface StartExperimentRequest { */ experimentTemplateId: string | undefined; + /** + * @public + *

The experiment options for running the experiment.

+ */ + experimentOptions?: StartExperimentExperimentOptionsInput; + /** * @public *

The tags to apply to the experiment.

@@ -2207,7 +2293,7 @@ export interface UpdateTargetAccountConfigurationRequest { /** * @public - *

The AWS account ID of the target account.

+ *

The Amazon Web Services account ID of the target account.

*/ accountId: string | undefined; diff --git a/clients/client-fis/src/protocols/Aws_restJson1.ts b/clients/client-fis/src/protocols/Aws_restJson1.ts index f0e7c951d740..139b255f45f4 100644 --- a/clients/client-fis/src/protocols/Aws_restJson1.ts +++ b/clients/client-fis/src/protocols/Aws_restJson1.ts @@ -115,6 +115,7 @@ import { ExperimentTemplateTargetInputFilter, ResourceNotFoundException, ServiceQuotaExceededException, + StartExperimentExperimentOptionsInput, UpdateExperimentTemplateActionInputItem, UpdateExperimentTemplateExperimentOptionsInput, UpdateExperimentTemplateLogConfigurationInput, @@ -363,6 +364,7 @@ export const se_ListExperimentsCommand = async ( const query: any = map({ [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], [_nT]: [, input[_nT]!], + [_eTI]: [, input[_eTI]!], }); let body: any; b.m("GET").h(headers).q(query).b(body); @@ -478,6 +480,7 @@ export const se_StartExperimentCommand = async ( body = JSON.stringify( take(input, { clientToken: [true, (_) => _ ?? generateIdempotencyToken()], + experimentOptions: (_) => _json(_), experimentTemplateId: [], tags: (_) => _json(_), }) @@ -1244,6 +1247,8 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont // se_ResourceArnList omitted. +// se_StartExperimentExperimentOptionsInput omitted. + // se_TagMap omitted. // se_UpdateExperimentTemplateActionInputItem omitted. @@ -1282,6 +1287,7 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont const de_Experiment = (output: any, context: __SerdeContext): Experiment => { return take(output, { actions: (_: any) => de_ExperimentActionMap(_, context), + arn: __expectString, creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), endTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), experimentOptions: _json, @@ -1354,7 +1360,9 @@ const de_ExperimentActionMap = (output: any, context: __SerdeContext): Record { return take(output, { + arn: __expectString, creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + experimentOptions: _json, experimentTemplateId: __expectString, id: __expectString, state: _json, @@ -1398,6 +1406,7 @@ const de_ExperimentSummaryList = (output: any, context: __SerdeContext): Experim const de_ExperimentTemplate = (output: any, context: __SerdeContext): ExperimentTemplate => { return take(output, { actions: _json, + arn: __expectString, creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), description: __expectString, experimentOptions: _json, @@ -1439,6 +1448,7 @@ const de_ExperimentTemplate = (output: any, context: __SerdeContext): Experiment */ const de_ExperimentTemplateSummary = (output: any, context: __SerdeContext): ExperimentTemplateSummary => { return take(output, { + arn: __expectString, creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), description: __expectString, id: __expectString, @@ -1516,6 +1526,7 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _eTI = "experimentTemplateId"; const _mR = "maxResults"; const _nT = "nextToken"; const _tK = "tagKeys"; diff --git a/codegen/sdk-codegen/aws-models/fis.json b/codegen/sdk-codegen/aws-models/fis.json index f8b8843c6ff2..9384faa88537 100644 --- a/codegen/sdk-codegen/aws-models/fis.json +++ b/codegen/sdk-codegen/aws-models/fis.json @@ -55,6 +55,12 @@ "smithy.api#documentation": "

The ID of the action.

" } }, + "arn": { + "target": "com.amazonaws.fis#ResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the action.

" + } + }, "description": { "target": "com.amazonaws.fis#ActionDescription", "traits": { @@ -81,7 +87,7 @@ } }, "traits": { - "smithy.api#documentation": "

Describes an action. For more information, see FIS actions \n in the Fault Injection Simulator User Guide.

" + "smithy.api#documentation": "

Describes an action. For more information, see FIS actions \n in the Fault Injection Service User Guide.

" } }, "com.amazonaws.fis#ActionDescription": { @@ -169,6 +175,12 @@ "smithy.api#documentation": "

The ID of the action.

" } }, + "arn": { + "target": "com.amazonaws.fis#ResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the action.

" + } + }, "description": { "target": "com.amazonaws.fis#ActionDescription", "traits": { @@ -231,6 +243,23 @@ "smithy.api#pattern": "^[\\S]+$" } }, + "com.amazonaws.fis#ActionsMode": { + "type": "enum", + "members": { + "SKIP_ALL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "skip-all" + } + }, + "RUN_ALL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "run-all" + } + } + } + }, "com.amazonaws.fis#ClientToken": { "type": "string", "traits": { @@ -291,7 +320,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an experiment template.

\n

An experiment template includes the following components:

\n
    \n
  • \n

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

    \n
  • \n
  • \n

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

    \n
  • \n
  • \n

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

    \n
  • \n
\n

For more information, see experiment templates\n in the Fault Injection Simulator User Guide.

", + "smithy.api#documentation": "

Creates an experiment template.

\n

An experiment template includes the following components:

\n
    \n
  • \n

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

    \n
  • \n
  • \n

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

    \n
  • \n
  • \n

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

    \n
  • \n
\n

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

", "smithy.api#http": { "method": "POST", "uri": "/experimentTemplates", @@ -335,7 +364,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specifies an action for an experiment template.

\n

For more information, see Actions\n in the Fault Injection Simulator User Guide.

" + "smithy.api#documentation": "

Specifies an action for an experiment template.

\n

For more information, see Actions\n in the Fault Injection Service User Guide.

" } }, "com.amazonaws.fis#CreateExperimentTemplateActionInputMap": { @@ -546,7 +575,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specifies a target for an experiment. You must specify at least one Amazon Resource Name (ARN) or \n at least one resource tag. You cannot specify both ARNs and tags.

\n

For more information, see Targets\n in the Fault Injection Simulator User Guide.

" + "smithy.api#documentation": "

Specifies a target for an experiment. You must specify at least one Amazon Resource Name (ARN) or \n at least one resource tag. You cannot specify both ARNs and tags.

\n

For more information, see Targets\n in the Fault Injection Service User Guide.

" } }, "com.amazonaws.fis#CreateExperimentTemplateTargetInputMap": { @@ -581,7 +610,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a target account configuration for the experiment template. A target account configuration\n is required when accountTargeting of experimentOptions is set to multi-account.\n For more information, see experiment options\n in the Fault Injection Simulator User Guide.\n

", + "smithy.api#documentation": "

Creates a target account configuration for the experiment template. A target account configuration\n is required when accountTargeting of experimentOptions is set to multi-account.\n For more information, see experiment options\n in the Fault Injection Service User Guide.\n

", "smithy.api#http": { "method": "POST", "uri": "/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}", @@ -610,7 +639,7 @@ "accountId": { "target": "com.amazonaws.fis#TargetAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the target account.

", + "smithy.api#documentation": "

The Amazon Web Services account ID of the target account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -744,7 +773,7 @@ "accountId": { "target": "com.amazonaws.fis#TargetAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the target account.

", + "smithy.api#documentation": "

The Amazon Web Services account ID of the target account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -804,6 +833,12 @@ "smithy.api#documentation": "

The ID of the experiment.

" } }, + "arn": { + "target": "com.amazonaws.fis#ResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the experiment.

" + } + }, "experimentTemplateId": { "target": "com.amazonaws.fis#ExperimentTemplateId", "traits": { @@ -1198,6 +1233,12 @@ "traits": { "smithy.api#documentation": "

The empty target resolution mode for an experiment.

" } + }, + "actionsMode": { + "target": "com.amazonaws.fis#ActionsMode", + "traits": { + "smithy.api#documentation": "

The actions mode of the experiment that is set from the StartExperiment API command.

" + } } }, "traits": { @@ -1339,6 +1380,12 @@ "smithy.api#documentation": "

The ID of the experiment.

" } }, + "arn": { + "target": "com.amazonaws.fis#ResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the experiment.

" + } + }, "experimentTemplateId": { "target": "com.amazonaws.fis#ExperimentTemplateId", "traits": { @@ -1362,6 +1409,12 @@ "traits": { "smithy.api#documentation": "

The tags for the experiment.

" } + }, + "experimentOptions": { + "target": "com.amazonaws.fis#ExperimentOptions", + "traits": { + "smithy.api#documentation": "

The experiment options for the experiment.

" + } } }, "traits": { @@ -1430,7 +1483,7 @@ "accountId": { "target": "com.amazonaws.fis#TargetAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the target account.

" + "smithy.api#documentation": "

The Amazon Web Services account ID of the target account.

" } }, "description": { @@ -1462,7 +1515,7 @@ "accountId": { "target": "com.amazonaws.fis#TargetAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the target account.

" + "smithy.api#documentation": "

The Amazon Web Services account ID of the target account.

" } }, "description": { @@ -1594,6 +1647,12 @@ "smithy.api#documentation": "

The ID of the experiment template.

" } }, + "arn": { + "target": "com.amazonaws.fis#ResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the experiment template.

" + } + }, "description": { "target": "com.amazonaws.fis#ExperimentTemplateDescription", "traits": { @@ -1967,6 +2026,12 @@ "smithy.api#documentation": "

The ID of the experiment template.

" } }, + "arn": { + "target": "com.amazonaws.fis#ResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the experiment template.

" + } + }, "description": { "target": "com.amazonaws.fis#ExperimentTemplateDescription", "traits": { @@ -2123,7 +2188,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specifies a filter used for the target resource input in an experiment template.

\n

For more information, see Resource filters\n in the Fault Injection Simulator User Guide.

" + "smithy.api#documentation": "

Specifies a filter used for the target resource input in an experiment template.

\n

For more information, see Resource filters\n in the Fault Injection Service User Guide.

" } }, "com.amazonaws.fis#ExperimentTemplateTargetMap": { @@ -2273,7 +2338,7 @@ "name": "fis" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

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

", + "smithy.api#documentation": "

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

", "smithy.api#title": "AWS Fault Injection Simulator", "smithy.rules#endpointRuleSet": { "version": "1.0", @@ -3105,7 +3170,7 @@ "accountId": { "target": "com.amazonaws.fis#TargetAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the target account.

", + "smithy.api#documentation": "

The Amazon Web Services account ID of the target account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3223,7 +3288,7 @@ "accountId": { "target": "com.amazonaws.fis#TargetAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the target account.

", + "smithy.api#documentation": "

The Amazon Web Services account ID of the target account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3677,6 +3742,13 @@ "smithy.api#documentation": "

The token for the next page of results.

", "smithy.api#httpQuery": "nextToken" } + }, + "experimentTemplateId": { + "target": "com.amazonaws.fis#ExperimentTemplateId", + "traits": { + "smithy.api#documentation": "

The ID of the experiment template.

", + "smithy.api#httpQuery": "experimentTemplateId" + } } }, "traits": { @@ -4079,6 +4151,20 @@ } } }, + "com.amazonaws.fis#StartExperimentExperimentOptionsInput": { + "type": "structure", + "members": { + "actionsMode": { + "target": "com.amazonaws.fis#ActionsMode", + "traits": { + "smithy.api#documentation": "

Specifies the actions mode for experiment options.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies experiment options for running an experiment.

" + } + }, "com.amazonaws.fis#StartExperimentRequest": { "type": "structure", "members": { @@ -4097,6 +4183,12 @@ "smithy.api#required": {} } }, + "experimentOptions": { + "target": "com.amazonaws.fis#StartExperimentExperimentOptionsInput", + "traits": { + "smithy.api#documentation": "

The experiment options for running the experiment.

" + } + }, "tags": { "target": "com.amazonaws.fis#TagMap", "traits": { @@ -4297,7 +4389,7 @@ "accountId": { "target": "com.amazonaws.fis#TargetAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the target account.

" + "smithy.api#documentation": "

The Amazon Web Services account ID of the target account.

" } }, "description": { @@ -4339,7 +4431,7 @@ "accountId": { "target": "com.amazonaws.fis#TargetAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the target account.

" + "smithy.api#documentation": "

The Amazon Web Services account ID of the target account.

" } }, "description": { @@ -4893,7 +4985,7 @@ "accountId": { "target": "com.amazonaws.fis#TargetAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the target account.

", + "smithy.api#documentation": "

The Amazon Web Services account ID of the target account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} }