@aws-sdk/client-detective 3.987.0 → 3.989.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 { defaultDetectiveHttpAuthSchemeProvider } 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-10-26",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.detective",
30
+ errorTypeRegistries,
29
31
  version: "2018-10-26",
30
32
  serviceTarget: "AmazonDetective",
31
33
  },
@@ -136,14 +136,14 @@ const _NUAD = "NewUserAgentDetail";
136
136
  const _P = "Procedure";
137
137
  const _POGU = "PercentOfGraphUtilization";
138
138
  const _POGUUT = "PercentOfGraphUtilizationUpdatedTime";
139
- const _R = "Reason";
139
+ const _R = "Resources";
140
140
  const _RA = "ResourceArn";
141
141
  const _RFD = "RelatedFindingDetail";
142
142
  const _RFGD = "RelatedFindingGroupDetail";
143
143
  const _RI = "RejectInvitation";
144
144
  const _RIR = "RejectInvitationRequest";
145
145
  const _RNFE = "ResourceNotFoundException";
146
- const _Re = "Resources";
146
+ const _Re = "Reason";
147
147
  const _S = "Severity";
148
148
  const _SC = "SortCriteria";
149
149
  const _SEC = "SubErrorCode";
@@ -203,13 +203,63 @@ const _e = "error";
203
203
  const _h = "http";
204
204
  const _hE = "httpError";
205
205
  const _hQ = "httpQuery";
206
- const _s = "server";
207
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.detective";
206
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.detective";
207
+ const _se = "server";
208
208
  const _tK = "tagKeys";
209
209
  const n0 = "com.amazonaws.detective";
210
210
  import { TypeRegistry } from "@smithy/core/schema";
211
211
  import { DetectiveServiceException } from "../models/DetectiveServiceException";
212
212
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/errors";
213
+ const _s_registry = TypeRegistry.for(_s);
214
+ export var DetectiveServiceException$ = [-3, _s, "DetectiveServiceException", 0, [], []];
215
+ _s_registry.registerError(DetectiveServiceException$, DetectiveServiceException);
216
+ const n0_registry = TypeRegistry.for(n0);
217
+ export var AccessDeniedException$ = [-3, n0, _ADE,
218
+ { [_e]: _c, [_hE]: 403 },
219
+ [_M, _EC, _ECR, _SEC, _SECR],
220
+ [0, 0, 0, 0, 0]
221
+ ];
222
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
223
+ export var ConflictException$ = [-3, n0, _CE,
224
+ { [_e]: _c, [_hE]: 409 },
225
+ [_M],
226
+ [0]
227
+ ];
228
+ n0_registry.registerError(ConflictException$, ConflictException);
229
+ export var InternalServerException$ = [-3, n0, _ISE,
230
+ { [_e]: _se, [_hE]: 500 },
231
+ [_M],
232
+ [0]
233
+ ];
234
+ n0_registry.registerError(InternalServerException$, InternalServerException);
235
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
236
+ { [_e]: _c, [_hE]: 404 },
237
+ [_M],
238
+ [0]
239
+ ];
240
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
241
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
242
+ { [_e]: _c, [_hE]: 402 },
243
+ [_M, _R],
244
+ [0, 64 | 0]
245
+ ];
246
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
247
+ export var TooManyRequestsException$ = [-3, n0, _TMRE,
248
+ { [_e]: _c, [_hE]: 429 },
249
+ [_M],
250
+ [0]
251
+ ];
252
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
253
+ export var ValidationException$ = [-3, n0, _VE,
254
+ { [_e]: _c, [_hE]: 400 },
255
+ [_M, _EC, _ECR],
256
+ [0, 0, 0]
257
+ ];
258
+ n0_registry.registerError(ValidationException$, ValidationException);
259
+ export const errorTypeRegistries = [
260
+ _s_registry,
261
+ n0_registry,
262
+ ];
213
263
  var EmailAddress = [0, n0, _EA, 8, 0];
214
264
  var EmailMessage = [0, n0, _EM, 8, 0];
215
265
  export var AcceptInvitationRequest$ = [3, n0, _AIR,
@@ -217,12 +267,6 @@ export var AcceptInvitationRequest$ = [3, n0, _AIR,
217
267
  [_GA],
218
268
  [0], 1
219
269
  ];
220
- export var AccessDeniedException$ = [-3, n0, _ADE,
221
- { [_e]: _c, [_hE]: 403 },
222
- [_M, _EC, _ECR, _SEC, _SECR],
223
- [0, 0, 0, 0, 0]
224
- ];
225
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
226
270
  export var Account$ = [3, n0, _A,
227
271
  0,
228
272
  [_AI, _EA],
@@ -253,12 +297,6 @@ export var BatchGetMembershipDatasourcesResponse$ = [3, n0, _BGMDRa,
253
297
  [_MDe, _UG],
254
298
  [() => MembershipDatasourcesList, () => UnprocessedGraphList]
255
299
  ];
256
- export var ConflictException$ = [-3, n0, _CE,
257
- { [_e]: _c, [_hE]: 409 },
258
- [_M],
259
- [0]
260
- ];
261
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
262
300
  export var CreateGraphRequest$ = [3, n0, _CGR,
263
301
  0,
264
302
  [_T],
@@ -336,7 +374,7 @@ export var FilterCriteria$ = [3, n0, _FC,
336
374
  ];
337
375
  export var FlaggedIpAddressDetail$ = [3, n0, _FIAD,
338
376
  0,
339
- [_IA, _R],
377
+ [_IA, _Re],
340
378
  [0, 0]
341
379
  ];
342
380
  export var GetInvestigationRequest$ = [3, n0, _GIR,
@@ -379,12 +417,6 @@ export var IndicatorDetail$ = [3, n0, _ID,
379
417
  [_TTPOD, _ITD, _FIAD, _NGD, _NAD, _NUAD, _RFD, _RFGD],
380
418
  [() => TTPsObservedDetail$, () => ImpossibleTravelDetail$, () => FlaggedIpAddressDetail$, () => NewGeolocationDetail$, () => NewAsoDetail$, () => NewUserAgentDetail$, () => RelatedFindingDetail$, () => RelatedFindingGroupDetail$]
381
419
  ];
382
- export var InternalServerException$ = [-3, n0, _ISE,
383
- { [_e]: _s, [_hE]: 500 },
384
- [_M],
385
- [0]
386
- ];
387
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
388
420
  export var InvestigationDetail$ = [3, n0, _IDn,
389
421
  0,
390
422
  [_II, _S, _St, _Sta, _CT, _EAn, _ET],
@@ -510,18 +542,6 @@ export var RelatedFindingGroupDetail$ = [3, n0, _RFGD,
510
542
  [_Id],
511
543
  [0]
512
544
  ];
513
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
514
- { [_e]: _c, [_hE]: 404 },
515
- [_M],
516
- [0]
517
- ];
518
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
519
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
520
- { [_e]: _c, [_hE]: 402 },
521
- [_M, _Re],
522
- [0, 64 | 0]
523
- ];
524
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
525
545
  export var SortCriteria$ = [3, n0, _SC,
526
546
  0,
527
547
  [_F, _SO],
@@ -562,12 +582,6 @@ export var TimestampForCollection$ = [3, n0, _TFC,
562
582
  [_Ti],
563
583
  [5]
564
584
  ];
565
- export var TooManyRequestsException$ = [-3, n0, _TMRE,
566
- { [_e]: _c, [_hE]: 429 },
567
- [_M],
568
- [0]
569
- ];
570
- TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
571
585
  export var TTPsObservedDetail$ = [3, n0, _TTPOD,
572
586
  0,
573
587
  [_Ta, _Te, _P, _IA, _APIN, _APISC, _APIFC],
@@ -575,12 +589,12 @@ export var TTPsObservedDetail$ = [3, n0, _TTPOD,
575
589
  ];
576
590
  export var UnprocessedAccount$ = [3, n0, _UAn,
577
591
  0,
578
- [_AI, _R],
592
+ [_AI, _Re],
579
593
  [0, 0]
580
594
  ];
581
595
  export var UnprocessedGraph$ = [3, n0, _UGn,
582
596
  0,
583
- [_GA, _R],
597
+ [_GA, _Re],
584
598
  [0, 0]
585
599
  ];
586
600
  export var UntagResourceRequest$ = [3, n0, _URR,
@@ -608,15 +622,7 @@ export var UpdateOrganizationConfigurationRequest$ = [3, n0, _UOCR,
608
622
  [_GA, _AE],
609
623
  [0, 2], 1
610
624
  ];
611
- export var ValidationException$ = [-3, n0, _VE,
612
- { [_e]: _c, [_hE]: 400 },
613
- [_M, _EC, _ECR],
614
- [0, 0, 0]
615
- ];
616
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
617
625
  var __Unit = "unit";
618
- export var DetectiveServiceException$ = [-3, _sm, "DetectiveServiceException", 0, [], []];
619
- TypeRegistry.for(_sm).registerError(DetectiveServiceException$, DetectiveServiceException);
620
626
  var AccountIdExtendedList = 64 | 0;
621
627
  var AccountIdList = 64 | 0;
622
628
  var AccountList = [1, n0, _AL,
@@ -1,13 +1,26 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
- export declare var AcceptInvitationRequest$: StaticStructureSchema;
3
+ export declare var DetectiveServiceException$: StaticErrorSchema;
3
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var InternalServerException$: StaticErrorSchema;
7
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
8
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
9
+ export declare var TooManyRequestsException$: StaticErrorSchema;
10
+ export declare var ValidationException$: StaticErrorSchema;
11
+ /**
12
+ * TypeRegistry instances containing modeled errors.
13
+ * @internal
14
+ *
15
+ */
16
+ export declare const errorTypeRegistries: TypeRegistry[];
17
+ export declare var AcceptInvitationRequest$: StaticStructureSchema;
4
18
  export declare var Account$: StaticStructureSchema;
5
19
  export declare var Administrator$: StaticStructureSchema;
6
20
  export declare var BatchGetGraphMemberDatasourcesRequest$: StaticStructureSchema;
7
21
  export declare var BatchGetGraphMemberDatasourcesResponse$: StaticStructureSchema;
8
22
  export declare var BatchGetMembershipDatasourcesRequest$: StaticStructureSchema;
9
23
  export declare var BatchGetMembershipDatasourcesResponse$: StaticStructureSchema;
10
- export declare var ConflictException$: StaticErrorSchema;
11
24
  export declare var CreateGraphRequest$: StaticStructureSchema;
12
25
  export declare var CreateGraphResponse$: StaticStructureSchema;
13
26
  export declare var CreateMembersRequest$: StaticStructureSchema;
@@ -32,7 +45,6 @@ export declare var Graph$: StaticStructureSchema;
32
45
  export declare var ImpossibleTravelDetail$: StaticStructureSchema;
33
46
  export declare var Indicator$: StaticStructureSchema;
34
47
  export declare var IndicatorDetail$: StaticStructureSchema;
35
- export declare var InternalServerException$: StaticErrorSchema;
36
48
  export declare var InvestigationDetail$: StaticStructureSchema;
37
49
  export declare var ListDatasourcePackagesRequest$: StaticStructureSchema;
38
50
  export declare var ListDatasourcePackagesResponse$: StaticStructureSchema;
@@ -58,8 +70,6 @@ export declare var NewUserAgentDetail$: StaticStructureSchema;
58
70
  export declare var RejectInvitationRequest$: StaticStructureSchema;
59
71
  export declare var RelatedFindingDetail$: StaticStructureSchema;
60
72
  export declare var RelatedFindingGroupDetail$: StaticStructureSchema;
61
- export declare var ResourceNotFoundException$: StaticErrorSchema;
62
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
63
73
  export declare var SortCriteria$: StaticStructureSchema;
64
74
  export declare var StartInvestigationRequest$: StaticStructureSchema;
65
75
  export declare var StartInvestigationResponse$: StaticStructureSchema;
@@ -68,7 +78,6 @@ export declare var StringFilter$: StaticStructureSchema;
68
78
  export declare var TagResourceRequest$: StaticStructureSchema;
69
79
  export declare var TagResourceResponse$: StaticStructureSchema;
70
80
  export declare var TimestampForCollection$: StaticStructureSchema;
71
- export declare var TooManyRequestsException$: StaticErrorSchema;
72
81
  export declare var TTPsObservedDetail$: StaticStructureSchema;
73
82
  export declare var UnprocessedAccount$: StaticStructureSchema;
74
83
  export declare var UnprocessedGraph$: StaticStructureSchema;
@@ -77,8 +86,6 @@ export declare var UntagResourceResponse$: StaticStructureSchema;
77
86
  export declare var UpdateDatasourcePackagesRequest$: StaticStructureSchema;
78
87
  export declare var UpdateInvestigationStateRequest$: StaticStructureSchema;
79
88
  export declare var UpdateOrganizationConfigurationRequest$: StaticStructureSchema;
80
- export declare var ValidationException$: StaticErrorSchema;
81
- export declare var DetectiveServiceException$: StaticErrorSchema;
82
89
  export declare var AcceptInvitation$: StaticOperationSchema;
83
90
  export declare var BatchGetGraphMemberDatasources$: StaticOperationSchema;
84
91
  export declare var BatchGetMembershipDatasources$: StaticOperationSchema;
@@ -1,17 +1,25 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
6
- export declare var AcceptInvitationRequest$: StaticStructureSchema;
7
+ export declare var DetectiveServiceException$: StaticErrorSchema;
7
8
  export declare var AccessDeniedException$: StaticErrorSchema;
9
+ export declare var ConflictException$: StaticErrorSchema;
10
+ export declare var InternalServerException$: StaticErrorSchema;
11
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
12
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
13
+ export declare var TooManyRequestsException$: StaticErrorSchema;
14
+ export declare var ValidationException$: StaticErrorSchema;
15
+ export declare const errorTypeRegistries: TypeRegistry[];
16
+ export declare var AcceptInvitationRequest$: StaticStructureSchema;
8
17
  export declare var Account$: StaticStructureSchema;
9
18
  export declare var Administrator$: StaticStructureSchema;
10
19
  export declare var BatchGetGraphMemberDatasourcesRequest$: StaticStructureSchema;
11
20
  export declare var BatchGetGraphMemberDatasourcesResponse$: StaticStructureSchema;
12
21
  export declare var BatchGetMembershipDatasourcesRequest$: StaticStructureSchema;
13
22
  export declare var BatchGetMembershipDatasourcesResponse$: StaticStructureSchema;
14
- export declare var ConflictException$: StaticErrorSchema;
15
23
  export declare var CreateGraphRequest$: StaticStructureSchema;
16
24
  export declare var CreateGraphResponse$: StaticStructureSchema;
17
25
  export declare var CreateMembersRequest$: StaticStructureSchema;
@@ -36,7 +44,6 @@ export declare var Graph$: StaticStructureSchema;
36
44
  export declare var ImpossibleTravelDetail$: StaticStructureSchema;
37
45
  export declare var Indicator$: StaticStructureSchema;
38
46
  export declare var IndicatorDetail$: StaticStructureSchema;
39
- export declare var InternalServerException$: StaticErrorSchema;
40
47
  export declare var InvestigationDetail$: StaticStructureSchema;
41
48
  export declare var ListDatasourcePackagesRequest$: StaticStructureSchema;
42
49
  export declare var ListDatasourcePackagesResponse$: StaticStructureSchema;
@@ -62,8 +69,6 @@ export declare var NewUserAgentDetail$: StaticStructureSchema;
62
69
  export declare var RejectInvitationRequest$: StaticStructureSchema;
63
70
  export declare var RelatedFindingDetail$: StaticStructureSchema;
64
71
  export declare var RelatedFindingGroupDetail$: StaticStructureSchema;
65
- export declare var ResourceNotFoundException$: StaticErrorSchema;
66
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
67
72
  export declare var SortCriteria$: StaticStructureSchema;
68
73
  export declare var StartInvestigationRequest$: StaticStructureSchema;
69
74
  export declare var StartInvestigationResponse$: StaticStructureSchema;
@@ -72,7 +77,6 @@ export declare var StringFilter$: StaticStructureSchema;
72
77
  export declare var TagResourceRequest$: StaticStructureSchema;
73
78
  export declare var TagResourceResponse$: StaticStructureSchema;
74
79
  export declare var TimestampForCollection$: StaticStructureSchema;
75
- export declare var TooManyRequestsException$: StaticErrorSchema;
76
80
  export declare var TTPsObservedDetail$: StaticStructureSchema;
77
81
  export declare var UnprocessedAccount$: StaticStructureSchema;
78
82
  export declare var UnprocessedGraph$: StaticStructureSchema;
@@ -81,8 +85,6 @@ export declare var UntagResourceResponse$: StaticStructureSchema;
81
85
  export declare var UpdateDatasourcePackagesRequest$: StaticStructureSchema;
82
86
  export declare var UpdateInvestigationStateRequest$: StaticStructureSchema;
83
87
  export declare var UpdateOrganizationConfigurationRequest$: StaticStructureSchema;
84
- export declare var ValidationException$: StaticErrorSchema;
85
- export declare var DetectiveServiceException$: StaticErrorSchema;
86
88
  export declare var AcceptInvitation$: StaticOperationSchema;
87
89
  export declare var BatchGetGraphMemberDatasources$: StaticOperationSchema;
88
90
  export declare var BatchGetMembershipDatasources$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-detective",
3
3
  "description": "AWS SDK for JavaScript Detective Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.989.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-detective",
@@ -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.9",
25
+ "@aws-sdk/credential-provider-node": "^3.972.8",
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.9",
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.989.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.7",
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",