@aws-sdk/client-application-insights 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 { defaultApplicationInsightsHttpAuthSchemeProvider } 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: "2018-11-25",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_1Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.applicationinsights",
30
+ errorTypeRegistries,
29
31
  version: "2018-11-25",
30
32
  serviceTarget: "EC2WindowsBarleyService",
31
33
  },
@@ -237,18 +237,68 @@ const _aQE = "awsQueryError";
237
237
  const _c = "client";
238
238
  const _e = "error";
239
239
  const _hE = "httpError";
240
- const _s = "server";
241
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.applicationinsights";
240
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.applicationinsights";
241
+ const _se = "server";
242
242
  const n0 = "com.amazonaws.applicationinsights";
243
243
  import { TypeRegistry } from "@smithy/core/schema";
244
244
  import { ApplicationInsightsServiceException } from "../models/ApplicationInsightsServiceException";
245
245
  import { AccessDeniedException, BadRequestException, InternalServerException, ResourceInUseException, ResourceNotFoundException, TagsAlreadyExistException, TooManyTagsException, ValidationException, } from "../models/errors";
246
+ const _s_registry = TypeRegistry.for(_s);
247
+ export var ApplicationInsightsServiceException$ = [-3, _s, "ApplicationInsightsServiceException", 0, [], []];
248
+ _s_registry.registerError(ApplicationInsightsServiceException$, ApplicationInsightsServiceException);
249
+ const n0_registry = TypeRegistry.for(n0);
246
250
  export var AccessDeniedException$ = [-3, n0, _ADE,
247
251
  { [_aQE]: [`AccessDeniedException`, 403], [_e]: _c, [_hE]: 403 },
248
252
  [_M],
249
253
  [0]
250
254
  ];
251
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
255
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
256
+ export var BadRequestException$ = [-3, n0, _BRE,
257
+ { [_aQE]: [`BadRequestException`, 400], [_e]: _c, [_hE]: 400 },
258
+ [_M],
259
+ [0]
260
+ ];
261
+ n0_registry.registerError(BadRequestException$, BadRequestException);
262
+ export var InternalServerException$ = [-3, n0, _ISE,
263
+ { [_aQE]: [`InternalServerException`, 500], [_e]: _se, [_hE]: 500 },
264
+ [_M],
265
+ [0]
266
+ ];
267
+ n0_registry.registerError(InternalServerException$, InternalServerException);
268
+ export var ResourceInUseException$ = [-3, n0, _RIUE,
269
+ { [_aQE]: [`ResourceInUseException`, 400], [_e]: _c, [_hE]: 400 },
270
+ [_M],
271
+ [0]
272
+ ];
273
+ n0_registry.registerError(ResourceInUseException$, ResourceInUseException);
274
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
275
+ { [_aQE]: [`ResourceNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
276
+ [_M],
277
+ [0]
278
+ ];
279
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
280
+ export var TagsAlreadyExistException$ = [-3, n0, _TAEE,
281
+ { [_e]: _c, [_hE]: 400 },
282
+ [_M],
283
+ [0]
284
+ ];
285
+ n0_registry.registerError(TagsAlreadyExistException$, TagsAlreadyExistException);
286
+ export var TooManyTagsException$ = [-3, n0, _TMTE,
287
+ { [_e]: _c, [_hE]: 400 },
288
+ [_M, _RN],
289
+ [0, 0]
290
+ ];
291
+ n0_registry.registerError(TooManyTagsException$, TooManyTagsException);
292
+ export var ValidationException$ = [-3, n0, _VE,
293
+ { [_aQE]: [`ValidationException`, 400], [_e]: _c, [_hE]: 400 },
294
+ [_M],
295
+ [0]
296
+ ];
297
+ n0_registry.registerError(ValidationException$, ValidationException);
298
+ export const errorTypeRegistries = [
299
+ _s_registry,
300
+ n0_registry,
301
+ ];
252
302
  export var AddWorkloadRequest$ = [3, n0, _AWR,
253
303
  0,
254
304
  [_RGN, _CN, _WC],
@@ -269,12 +319,6 @@ export var ApplicationInfo$ = [3, n0, _AI,
269
319
  [_AIc, _RGN, _LC, _OISNSTA, _SNSNA, _OCE, _CWEME, _R, _ACE, _DT, _AMP],
270
320
  [0, 0, 0, 0, 0, 2, 2, 0, 2, 0, 2]
271
321
  ];
272
- export var BadRequestException$ = [-3, n0, _BRE,
273
- { [_aQE]: [`BadRequestException`, 400], [_e]: _c, [_hE]: 400 },
274
- [_M],
275
- [0]
276
- ];
277
- TypeRegistry.for(n0).registerError(BadRequestException$, BadRequestException);
278
322
  export var ConfigurationEvent$ = [3, n0, _CE,
279
323
  0,
280
324
  [_RGN, _AIc, _MRARN, _ES, _ERT, _ET, _ED, _ERN],
@@ -430,12 +474,6 @@ export var DescribeWorkloadResponse$ = [3, n0, _DWRe,
430
474
  [_WI, _WR, _WC],
431
475
  [0, 0, () => WorkloadConfiguration$]
432
476
  ];
433
- export var InternalServerException$ = [-3, n0, _ISE,
434
- { [_aQE]: [`InternalServerException`, 500], [_e]: _s, [_hE]: 500 },
435
- [_M],
436
- [0]
437
- ];
438
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
439
477
  export var ListApplicationsRequest$ = [3, n0, _LAR,
440
478
  0,
441
479
  [_MR, _NT, _AIc],
@@ -546,18 +584,6 @@ export var RemoveWorkloadResponse$ = [3, n0, _RWRe,
546
584
  [],
547
585
  []
548
586
  ];
549
- export var ResourceInUseException$ = [-3, n0, _RIUE,
550
- { [_aQE]: [`ResourceInUseException`, 400], [_e]: _c, [_hE]: 400 },
551
- [_M],
552
- [0]
553
- ];
554
- TypeRegistry.for(n0).registerError(ResourceInUseException$, ResourceInUseException);
555
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
556
- { [_aQE]: [`ResourceNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
557
- [_M],
558
- [0]
559
- ];
560
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
561
587
  export var Tag$ = [3, n0, _Tag,
562
588
  0,
563
589
  [_K, _Va],
@@ -573,18 +599,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
573
599
  [],
574
600
  []
575
601
  ];
576
- export var TagsAlreadyExistException$ = [-3, n0, _TAEE,
577
- { [_e]: _c, [_hE]: 400 },
578
- [_M],
579
- [0]
580
- ];
581
- TypeRegistry.for(n0).registerError(TagsAlreadyExistException$, TagsAlreadyExistException);
582
- export var TooManyTagsException$ = [-3, n0, _TMTE,
583
- { [_e]: _c, [_hE]: 400 },
584
- [_M, _RN],
585
- [0, 0]
586
- ];
587
- TypeRegistry.for(n0).registerError(TooManyTagsException$, TooManyTagsException);
588
602
  export var UntagResourceRequest$ = [3, n0, _URR,
589
603
  0,
590
604
  [_RARN, _TK],
@@ -655,12 +669,6 @@ export var UpdateWorkloadResponse$ = [3, n0, _UWRp,
655
669
  [_WI, _WC],
656
670
  [0, () => WorkloadConfiguration$]
657
671
  ];
658
- export var ValidationException$ = [-3, n0, _VE,
659
- { [_aQE]: [`ValidationException`, 400], [_e]: _c, [_hE]: 400 },
660
- [_M],
661
- [0]
662
- ];
663
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
664
672
  export var Workload$ = [3, n0, _W,
665
673
  0,
666
674
  [_WI, _CN, _WN, _T, _WR, _MWC],
@@ -671,8 +679,6 @@ export var WorkloadConfiguration$ = [3, n0, _WC,
671
679
  [_WN, _T, _C],
672
680
  [0, 0, 0]
673
681
  ];
674
- export var ApplicationInsightsServiceException$ = [-3, _sm, "ApplicationInsightsServiceException", 0, [], []];
675
- TypeRegistry.for(_sm).registerError(ApplicationInsightsServiceException$, ApplicationInsightsServiceException);
676
682
  var ApplicationComponentList = [1, n0, _ACL,
677
683
  0, () => ApplicationComponent$
678
684
  ];
@@ -1,10 +1,24 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var ApplicationInsightsServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var BadRequestException$: StaticErrorSchema;
6
+ export declare var InternalServerException$: StaticErrorSchema;
7
+ export declare var ResourceInUseException$: StaticErrorSchema;
8
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
9
+ export declare var TagsAlreadyExistException$: StaticErrorSchema;
10
+ export declare var TooManyTagsException$: StaticErrorSchema;
11
+ export declare var ValidationException$: StaticErrorSchema;
12
+ /**
13
+ * TypeRegistry instances containing modeled errors.
14
+ * @internal
15
+ *
16
+ */
17
+ export declare const errorTypeRegistries: TypeRegistry[];
3
18
  export declare var AddWorkloadRequest$: StaticStructureSchema;
4
19
  export declare var AddWorkloadResponse$: StaticStructureSchema;
5
20
  export declare var ApplicationComponent$: StaticStructureSchema;
6
21
  export declare var ApplicationInfo$: StaticStructureSchema;
7
- export declare var BadRequestException$: StaticErrorSchema;
8
22
  export declare var ConfigurationEvent$: StaticStructureSchema;
9
23
  export declare var CreateApplicationRequest$: StaticStructureSchema;
10
24
  export declare var CreateApplicationResponse$: StaticStructureSchema;
@@ -36,7 +50,6 @@ export declare var DescribeProblemRequest$: StaticStructureSchema;
36
50
  export declare var DescribeProblemResponse$: StaticStructureSchema;
37
51
  export declare var DescribeWorkloadRequest$: StaticStructureSchema;
38
52
  export declare var DescribeWorkloadResponse$: StaticStructureSchema;
39
- export declare var InternalServerException$: StaticErrorSchema;
40
53
  export declare var ListApplicationsRequest$: StaticStructureSchema;
41
54
  export declare var ListApplicationsResponse$: StaticStructureSchema;
42
55
  export declare var ListComponentsRequest$: StaticStructureSchema;
@@ -59,13 +72,9 @@ export declare var Problem$: StaticStructureSchema;
59
72
  export declare var RelatedObservations$: StaticStructureSchema;
60
73
  export declare var RemoveWorkloadRequest$: StaticStructureSchema;
61
74
  export declare var RemoveWorkloadResponse$: StaticStructureSchema;
62
- export declare var ResourceInUseException$: StaticErrorSchema;
63
- export declare var ResourceNotFoundException$: StaticErrorSchema;
64
75
  export declare var Tag$: StaticStructureSchema;
65
76
  export declare var TagResourceRequest$: StaticStructureSchema;
66
77
  export declare var TagResourceResponse$: StaticStructureSchema;
67
- export declare var TagsAlreadyExistException$: StaticErrorSchema;
68
- export declare var TooManyTagsException$: StaticErrorSchema;
69
78
  export declare var UntagResourceRequest$: StaticStructureSchema;
70
79
  export declare var UntagResourceResponse$: StaticStructureSchema;
71
80
  export declare var UpdateApplicationRequest$: StaticStructureSchema;
@@ -80,10 +89,8 @@ export declare var UpdateProblemRequest$: StaticStructureSchema;
80
89
  export declare var UpdateProblemResponse$: StaticStructureSchema;
81
90
  export declare var UpdateWorkloadRequest$: StaticStructureSchema;
82
91
  export declare var UpdateWorkloadResponse$: StaticStructureSchema;
83
- export declare var ValidationException$: StaticErrorSchema;
84
92
  export declare var Workload$: StaticStructureSchema;
85
93
  export declare var WorkloadConfiguration$: StaticStructureSchema;
86
- export declare var ApplicationInsightsServiceException$: StaticErrorSchema;
87
94
  export declare var AddWorkload$: StaticOperationSchema;
88
95
  export declare var CreateApplication$: StaticOperationSchema;
89
96
  export declare var CreateComponent$: StaticOperationSchema;
@@ -1,14 +1,23 @@
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 ApplicationInsightsServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
9
+ export declare var BadRequestException$: StaticErrorSchema;
10
+ export declare var InternalServerException$: StaticErrorSchema;
11
+ export declare var ResourceInUseException$: StaticErrorSchema;
12
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
13
+ export declare var TagsAlreadyExistException$: StaticErrorSchema;
14
+ export declare var TooManyTagsException$: StaticErrorSchema;
15
+ export declare var ValidationException$: StaticErrorSchema;
16
+ export declare const errorTypeRegistries: TypeRegistry[];
7
17
  export declare var AddWorkloadRequest$: StaticStructureSchema;
8
18
  export declare var AddWorkloadResponse$: StaticStructureSchema;
9
19
  export declare var ApplicationComponent$: StaticStructureSchema;
10
20
  export declare var ApplicationInfo$: StaticStructureSchema;
11
- export declare var BadRequestException$: StaticErrorSchema;
12
21
  export declare var ConfigurationEvent$: StaticStructureSchema;
13
22
  export declare var CreateApplicationRequest$: StaticStructureSchema;
14
23
  export declare var CreateApplicationResponse$: StaticStructureSchema;
@@ -40,7 +49,6 @@ export declare var DescribeProblemRequest$: StaticStructureSchema;
40
49
  export declare var DescribeProblemResponse$: StaticStructureSchema;
41
50
  export declare var DescribeWorkloadRequest$: StaticStructureSchema;
42
51
  export declare var DescribeWorkloadResponse$: StaticStructureSchema;
43
- export declare var InternalServerException$: StaticErrorSchema;
44
52
  export declare var ListApplicationsRequest$: StaticStructureSchema;
45
53
  export declare var ListApplicationsResponse$: StaticStructureSchema;
46
54
  export declare var ListComponentsRequest$: StaticStructureSchema;
@@ -63,13 +71,9 @@ export declare var Problem$: StaticStructureSchema;
63
71
  export declare var RelatedObservations$: StaticStructureSchema;
64
72
  export declare var RemoveWorkloadRequest$: StaticStructureSchema;
65
73
  export declare var RemoveWorkloadResponse$: StaticStructureSchema;
66
- export declare var ResourceInUseException$: StaticErrorSchema;
67
- export declare var ResourceNotFoundException$: StaticErrorSchema;
68
74
  export declare var Tag$: StaticStructureSchema;
69
75
  export declare var TagResourceRequest$: StaticStructureSchema;
70
76
  export declare var TagResourceResponse$: StaticStructureSchema;
71
- export declare var TagsAlreadyExistException$: StaticErrorSchema;
72
- export declare var TooManyTagsException$: StaticErrorSchema;
73
77
  export declare var UntagResourceRequest$: StaticStructureSchema;
74
78
  export declare var UntagResourceResponse$: StaticStructureSchema;
75
79
  export declare var UpdateApplicationRequest$: StaticStructureSchema;
@@ -84,10 +88,8 @@ export declare var UpdateProblemRequest$: StaticStructureSchema;
84
88
  export declare var UpdateProblemResponse$: StaticStructureSchema;
85
89
  export declare var UpdateWorkloadRequest$: StaticStructureSchema;
86
90
  export declare var UpdateWorkloadResponse$: StaticStructureSchema;
87
- export declare var ValidationException$: StaticErrorSchema;
88
91
  export declare var Workload$: StaticStructureSchema;
89
92
  export declare var WorkloadConfiguration$: StaticStructureSchema;
90
- export declare var ApplicationInsightsServiceException$: StaticErrorSchema;
91
93
  export declare var AddWorkload$: StaticOperationSchema;
92
94
  export declare var CreateApplication$: StaticOperationSchema;
93
95
  export declare var CreateComponent$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-application-insights",
3
3
  "description": "AWS SDK for JavaScript Application Insights 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-application-insights",
@@ -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",