@aws-sdk/client-fis 3.987.0 → 3.988.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultFisHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2020-12-01",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.fis",
30
+ errorTypeRegistries,
29
31
  version: "2020-12-01",
30
32
  serviceTarget: "FaultInjectionSimulator",
31
33
  },
@@ -239,7 +239,7 @@ const _rTe = "resourceTags";
239
239
  const _rTep = "reportType";
240
240
  const _rTes = "resolvedTargets";
241
241
  const _re = "reason";
242
- const _s = "source";
242
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.fis";
243
243
  const _sA = "startAfter";
244
244
  const _sC = "s3Configuration";
245
245
  const _sCt = "stopConditions";
@@ -247,7 +247,7 @@ const _sL = "safetyLever";
247
247
  const _sM = "selectionMode";
248
248
  const _sR = "s3Reports";
249
249
  const _sT = "startTime";
250
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.fis";
250
+ const _so = "source";
251
251
  const _st = "state";
252
252
  const _sta = "status";
253
253
  const _t = "targets";
@@ -266,6 +266,38 @@ const n0 = "com.amazonaws.fis";
266
266
  import { TypeRegistry } from "@smithy/core/schema";
267
267
  import { ConflictException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/errors";
268
268
  import { FisServiceException } from "../models/FisServiceException";
269
+ const _s_registry = TypeRegistry.for(_s);
270
+ export var FisServiceException$ = [-3, _s, "FisServiceException", 0, [], []];
271
+ _s_registry.registerError(FisServiceException$, FisServiceException);
272
+ const n0_registry = TypeRegistry.for(n0);
273
+ export var ConflictException$ = [-3, n0, _CE,
274
+ { [_aQE]: [`ConflictException`, 409], [_e]: _c, [_hE]: 409 },
275
+ [_m],
276
+ [0]
277
+ ];
278
+ n0_registry.registerError(ConflictException$, ConflictException);
279
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
280
+ { [_aQE]: [`ResourceNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
281
+ [_m],
282
+ [0]
283
+ ];
284
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
285
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
286
+ { [_aQE]: [`ServiceQuotaExceededException`, 402], [_e]: _c, [_hE]: 402 },
287
+ [_m],
288
+ [0]
289
+ ];
290
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
291
+ export var ValidationException$ = [-3, n0, _VE,
292
+ { [_aQE]: [`ValidationException`, 400], [_e]: _c, [_hE]: 400 },
293
+ [_m],
294
+ [0]
295
+ ];
296
+ n0_registry.registerError(ValidationException$, ValidationException);
297
+ export const errorTypeRegistries = [
298
+ _s_registry,
299
+ n0_registry,
300
+ ];
269
301
  export var Action$ = [3, n0, _A,
270
302
  0,
271
303
  [_i, _a, _d, _p, _t, _ta],
@@ -286,12 +318,6 @@ export var ActionTarget$ = [3, n0, _AT,
286
318
  [_rT],
287
319
  [0]
288
320
  ];
289
- export var ConflictException$ = [-3, n0, _CE,
290
- { [_aQE]: [`ConflictException`, 409], [_e]: _c, [_hE]: 409 },
291
- [_m],
292
- [0]
293
- ];
294
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
295
321
  export var CreateExperimentTemplateActionInput$ = [3, n0, _CETAI,
296
322
  0,
297
323
  [_aI, _d, _p, _t, _sA],
@@ -324,7 +350,7 @@ export var CreateExperimentTemplateResponse$ = [3, n0, _CETRr,
324
350
  ];
325
351
  export var CreateExperimentTemplateStopConditionInput$ = [3, n0, _CETSCI,
326
352
  0,
327
- [_s, _v],
353
+ [_so, _v],
328
354
  [0, 0], 1
329
355
  ];
330
356
  export var CreateExperimentTemplateTargetInput$ = [3, n0, _CETTI,
@@ -454,7 +480,7 @@ export var ExperimentState$ = [3, n0, _ES,
454
480
  ];
455
481
  export var ExperimentStopCondition$ = [3, n0, _ESC,
456
482
  0,
457
- [_s, _v],
483
+ [_so, _v],
458
484
  [0, 0]
459
485
  ];
460
486
  export var ExperimentSummary$ = [3, n0, _ESx,
@@ -554,7 +580,7 @@ export var ExperimentTemplateS3LogConfigurationInput$ = [3, n0, _ETSLCI,
554
580
  ];
555
581
  export var ExperimentTemplateStopCondition$ = [3, n0, _ETSC,
556
582
  0,
557
- [_s, _v],
583
+ [_so, _v],
558
584
  [0, 0]
559
585
  ];
560
586
  export var ExperimentTemplateSummary$ = [3, n0, _ETS,
@@ -747,12 +773,6 @@ export var ResolvedTarget$ = [3, n0, _RT,
747
773
  [_rT, _tN, _tI],
748
774
  [0, 0, 128 | 0]
749
775
  ];
750
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
751
- { [_aQE]: [`ResourceNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
752
- [_m],
753
- [0]
754
- ];
755
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
756
776
  export var SafetyLever$ = [3, n0, _SL,
757
777
  0,
758
778
  [_i, _a, _st],
@@ -763,12 +783,6 @@ export var SafetyLeverState$ = [3, n0, _SLS,
763
783
  [_sta, _re],
764
784
  [0, 0]
765
785
  ];
766
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
767
- { [_aQE]: [`ServiceQuotaExceededException`, 402], [_e]: _c, [_hE]: 402 },
768
- [_m],
769
- [0]
770
- ];
771
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
772
786
  export var StartExperimentExperimentOptionsInput$ = [3, n0, _SEEOI,
773
787
  0,
774
788
  [_aM],
@@ -871,7 +885,7 @@ export var UpdateExperimentTemplateResponse$ = [3, n0, _UETRp,
871
885
  ];
872
886
  export var UpdateExperimentTemplateStopConditionInput$ = [3, n0, _UETSCI,
873
887
  0,
874
- [_s, _v],
888
+ [_so, _v],
875
889
  [0, 0], 1
876
890
  ];
877
891
  export var UpdateExperimentTemplateTargetInput$ = [3, n0, _UETTI,
@@ -904,14 +918,6 @@ export var UpdateTargetAccountConfigurationResponse$ = [3, n0, _UTACRp,
904
918
  [_tAC],
905
919
  [() => TargetAccountConfiguration$]
906
920
  ];
907
- export var ValidationException$ = [-3, n0, _VE,
908
- { [_aQE]: [`ValidationException`, 400], [_e]: _c, [_hE]: 400 },
909
- [_m],
910
- [0]
911
- ];
912
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
913
- export var FisServiceException$ = [-3, _sm, "FisServiceException", 0, [], []];
914
- TypeRegistry.for(_sm).registerError(FisServiceException$, FisServiceException);
915
921
  var ActionSummaryList = [1, n0, _ASL,
916
922
  0, () => ActionSummary$
917
923
  ];
@@ -1,9 +1,20 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var FisServiceException$: StaticErrorSchema;
4
+ export declare var ConflictException$: StaticErrorSchema;
5
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
6
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
7
+ export declare var ValidationException$: StaticErrorSchema;
8
+ /**
9
+ * TypeRegistry instances containing modeled errors.
10
+ * @internal
11
+ *
12
+ */
13
+ export declare const errorTypeRegistries: TypeRegistry[];
2
14
  export declare var Action$: StaticStructureSchema;
3
15
  export declare var ActionParameter$: StaticStructureSchema;
4
16
  export declare var ActionSummary$: StaticStructureSchema;
5
17
  export declare var ActionTarget$: StaticStructureSchema;
6
- export declare var ConflictException$: StaticErrorSchema;
7
18
  export declare var CreateExperimentTemplateActionInput$: StaticStructureSchema;
8
19
  export declare var CreateExperimentTemplateExperimentOptionsInput$: StaticStructureSchema;
9
20
  export declare var CreateExperimentTemplateLogConfigurationInput$: StaticStructureSchema;
@@ -95,10 +106,8 @@ export declare var ReportConfigurationCloudWatchDashboardInput$: StaticStructure
95
106
  export declare var ReportConfigurationS3Output$: StaticStructureSchema;
96
107
  export declare var ReportConfigurationS3OutputInput$: StaticStructureSchema;
97
108
  export declare var ResolvedTarget$: StaticStructureSchema;
98
- export declare var ResourceNotFoundException$: StaticErrorSchema;
99
109
  export declare var SafetyLever$: StaticStructureSchema;
100
110
  export declare var SafetyLeverState$: StaticStructureSchema;
101
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
102
111
  export declare var StartExperimentExperimentOptionsInput$: StaticStructureSchema;
103
112
  export declare var StartExperimentRequest$: StaticStructureSchema;
104
113
  export declare var StartExperimentResponse$: StaticStructureSchema;
@@ -126,8 +135,6 @@ export declare var UpdateSafetyLeverStateRequest$: StaticStructureSchema;
126
135
  export declare var UpdateSafetyLeverStateResponse$: StaticStructureSchema;
127
136
  export declare var UpdateTargetAccountConfigurationRequest$: StaticStructureSchema;
128
137
  export declare var UpdateTargetAccountConfigurationResponse$: StaticStructureSchema;
129
- export declare var ValidationException$: StaticErrorSchema;
130
- export declare var FisServiceException$: StaticErrorSchema;
131
138
  export declare var CreateExperimentTemplate$: StaticOperationSchema;
132
139
  export declare var CreateTargetAccountConfiguration$: StaticOperationSchema;
133
140
  export declare var DeleteExperimentTemplate$: StaticOperationSchema;
@@ -1,13 +1,19 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var FisServiceException$: StaticErrorSchema;
8
+ export declare var ConflictException$: StaticErrorSchema;
9
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
10
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
11
+ export declare var ValidationException$: StaticErrorSchema;
12
+ export declare const errorTypeRegistries: TypeRegistry[];
6
13
  export declare var Action$: StaticStructureSchema;
7
14
  export declare var ActionParameter$: StaticStructureSchema;
8
15
  export declare var ActionSummary$: StaticStructureSchema;
9
16
  export declare var ActionTarget$: StaticStructureSchema;
10
- export declare var ConflictException$: StaticErrorSchema;
11
17
  export declare var CreateExperimentTemplateActionInput$: StaticStructureSchema;
12
18
  export declare var CreateExperimentTemplateExperimentOptionsInput$: StaticStructureSchema;
13
19
  export declare var CreateExperimentTemplateLogConfigurationInput$: StaticStructureSchema;
@@ -99,10 +105,8 @@ export declare var ReportConfigurationCloudWatchDashboardInput$: StaticStructure
99
105
  export declare var ReportConfigurationS3Output$: StaticStructureSchema;
100
106
  export declare var ReportConfigurationS3OutputInput$: StaticStructureSchema;
101
107
  export declare var ResolvedTarget$: StaticStructureSchema;
102
- export declare var ResourceNotFoundException$: StaticErrorSchema;
103
108
  export declare var SafetyLever$: StaticStructureSchema;
104
109
  export declare var SafetyLeverState$: StaticStructureSchema;
105
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
106
110
  export declare var StartExperimentExperimentOptionsInput$: StaticStructureSchema;
107
111
  export declare var StartExperimentRequest$: StaticStructureSchema;
108
112
  export declare var StartExperimentResponse$: StaticStructureSchema;
@@ -130,8 +134,6 @@ export declare var UpdateSafetyLeverStateRequest$: StaticStructureSchema;
130
134
  export declare var UpdateSafetyLeverStateResponse$: StaticStructureSchema;
131
135
  export declare var UpdateTargetAccountConfigurationRequest$: StaticStructureSchema;
132
136
  export declare var UpdateTargetAccountConfigurationResponse$: StaticStructureSchema;
133
- export declare var ValidationException$: StaticErrorSchema;
134
- export declare var FisServiceException$: StaticErrorSchema;
135
137
  export declare var CreateExperimentTemplate$: StaticOperationSchema;
136
138
  export declare var CreateTargetAccountConfiguration$: StaticOperationSchema;
137
139
  export declare var DeleteExperimentTemplate$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-fis",
3
3
  "description": "AWS SDK for JavaScript Fis Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-fis",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.988.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",