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 * // "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.
*
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?: RecordProvides 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?: RecordThe 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): RecordThe 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.
\nAn experiment template includes the following components:
\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 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 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.
\nFor more information, see experiment templates\n in the Fault Injection Simulator User Guide.
", + "smithy.api#documentation": "Creates an experiment template.
\nAn experiment template includes the following components:
\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 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 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.
\nFor 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.
\nFor more information, see Actions\n in the Fault Injection Simulator User Guide.
" + "smithy.api#documentation": "Specifies an action for an experiment template.
\nFor 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.
\nFor 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.
\nFor 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
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
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.
\nFor 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.
\nFor 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": {} }