@aws-sdk/client-aiops 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.
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ForbiddenException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const AIOpsServiceException_1 = require("./AIOpsServiceException");
5
+ class AccessDeniedException extends AIOpsServiceException_1.AIOpsServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class ConflictException extends AIOpsServiceException_1.AIOpsServiceException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "ConflictException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, ConflictException.prototype);
28
+ }
29
+ }
30
+ exports.ConflictException = ConflictException;
31
+ class ForbiddenException extends AIOpsServiceException_1.AIOpsServiceException {
32
+ name = "ForbiddenException";
33
+ $fault = "client";
34
+ constructor(opts) {
35
+ super({
36
+ name: "ForbiddenException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
41
+ }
42
+ }
43
+ exports.ForbiddenException = ForbiddenException;
44
+ class InternalServerException extends AIOpsServiceException_1.AIOpsServiceException {
45
+ name = "InternalServerException";
46
+ $fault = "server";
47
+ constructor(opts) {
48
+ super({
49
+ name: "InternalServerException",
50
+ $fault: "server",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, InternalServerException.prototype);
54
+ }
55
+ }
56
+ exports.InternalServerException = InternalServerException;
57
+ class ResourceNotFoundException extends AIOpsServiceException_1.AIOpsServiceException {
58
+ name = "ResourceNotFoundException";
59
+ $fault = "client";
60
+ constructor(opts) {
61
+ super({
62
+ name: "ResourceNotFoundException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
67
+ }
68
+ }
69
+ exports.ResourceNotFoundException = ResourceNotFoundException;
70
+ class ServiceQuotaExceededException extends AIOpsServiceException_1.AIOpsServiceException {
71
+ name = "ServiceQuotaExceededException";
72
+ $fault = "client";
73
+ resourceId;
74
+ resourceType;
75
+ serviceCode;
76
+ quotaCode;
77
+ constructor(opts) {
78
+ super({
79
+ name: "ServiceQuotaExceededException",
80
+ $fault: "client",
81
+ ...opts,
82
+ });
83
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
84
+ this.resourceId = opts.resourceId;
85
+ this.resourceType = opts.resourceType;
86
+ this.serviceCode = opts.serviceCode;
87
+ this.quotaCode = opts.quotaCode;
88
+ }
89
+ }
90
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
91
+ class ThrottlingException extends AIOpsServiceException_1.AIOpsServiceException {
92
+ name = "ThrottlingException";
93
+ $fault = "client";
94
+ constructor(opts) {
95
+ super({
96
+ name: "ThrottlingException",
97
+ $fault: "client",
98
+ ...opts,
99
+ });
100
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
101
+ }
102
+ }
103
+ exports.ThrottlingException = ThrottlingException;
104
+ class ValidationException extends AIOpsServiceException_1.AIOpsServiceException {
105
+ name = "ValidationException";
106
+ $fault = "client";
107
+ constructor(opts) {
108
+ super({
109
+ name: "ValidationException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ Object.setPrototypeOf(this, ValidationException.prototype);
114
+ }
115
+ }
116
+ exports.ValidationException = ValidationException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2018-05-10",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.aiops",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2018-05-10",
33
35
  serviceTarget: "AIOps",
34
36
  },
@@ -0,0 +1,315 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateInvestigationGroup$ = exports.UntagResource$ = exports.TagResource$ = exports.PutInvestigationGroupPolicy$ = exports.ListTagsForResource$ = exports.ListInvestigationGroups$ = exports.GetInvestigationGroupPolicy$ = exports.GetInvestigationGroup$ = exports.DeleteInvestigationGroupPolicy$ = exports.DeleteInvestigationGroup$ = exports.CreateInvestigationGroup$ = exports.UpdateInvestigationGroupRequest$ = exports.UpdateInvestigationGroupOutput$ = exports.UntagResourceResponse$ = exports.UntagResourceRequest$ = exports.TagResourceResponse$ = exports.TagResourceRequest$ = exports.PutInvestigationGroupPolicyResponse$ = exports.PutInvestigationGroupPolicyRequest$ = exports.ListTagsForResourceRequest$ = exports.ListTagsForResourceOutput$ = exports.ListInvestigationGroupsOutput$ = exports.ListInvestigationGroupsModel$ = exports.ListInvestigationGroupsInput$ = exports.GetInvestigationGroupResponse$ = exports.GetInvestigationGroupRequest$ = exports.GetInvestigationGroupPolicyResponse$ = exports.GetInvestigationGroupPolicyRequest$ = exports.EncryptionConfiguration$ = exports.DeleteInvestigationGroupRequest$ = exports.DeleteInvestigationGroupPolicyRequest$ = exports.DeleteInvestigationGroupPolicyOutput$ = exports.CrossAccountConfiguration$ = exports.CreateInvestigationGroupOutput$ = exports.CreateInvestigationGroupInput$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ThrottlingException$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ForbiddenException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.AIOpsServiceException$ = void 0;
4
+ const _ADE = "AccessDeniedException";
5
+ const _CAC = "CrossAccountConfiguration";
6
+ const _CACr = "CrossAccountConfigurations";
7
+ const _CE = "ConflictException";
8
+ const _CIG = "CreateInvestigationGroup";
9
+ const _CIGI = "CreateInvestigationGroupInput";
10
+ const _CIGO = "CreateInvestigationGroupOutput";
11
+ const _CNC = "ChatbotNotificationChannel";
12
+ const _DIG = "DeleteInvestigationGroup";
13
+ const _DIGP = "DeleteInvestigationGroupPolicy";
14
+ const _DIGPO = "DeleteInvestigationGroupPolicyOutput";
15
+ const _DIGPR = "DeleteInvestigationGroupPolicyRequest";
16
+ const _DIGR = "DeleteInvestigationGroupRequest";
17
+ const _EC = "EncryptionConfiguration";
18
+ const _FE = "ForbiddenException";
19
+ const _GIG = "GetInvestigationGroup";
20
+ const _GIGP = "GetInvestigationGroupPolicy";
21
+ const _GIGPR = "GetInvestigationGroupPolicyRequest";
22
+ const _GIGPRe = "GetInvestigationGroupPolicyResponse";
23
+ const _GIGR = "GetInvestigationGroupRequest";
24
+ const _GIGRe = "GetInvestigationGroupResponse";
25
+ const _IG = "InvestigationGroups";
26
+ const _ISE = "InternalServerException";
27
+ const _LIG = "ListInvestigationGroups";
28
+ const _LIGI = "ListInvestigationGroupsInput";
29
+ const _LIGM = "ListInvestigationGroupsModel";
30
+ const _LIGO = "ListInvestigationGroupsOutput";
31
+ const _LTFR = "ListTagsForResource";
32
+ const _LTFRO = "ListTagsForResourceOutput";
33
+ const _LTFRR = "ListTagsForResourceRequest";
34
+ const _PIGP = "PutInvestigationGroupPolicy";
35
+ const _PIGPR = "PutInvestigationGroupPolicyRequest";
36
+ const _PIGPRu = "PutInvestigationGroupPolicyResponse";
37
+ const _RNFE = "ResourceNotFoundException";
38
+ const _SQEE = "ServiceQuotaExceededException";
39
+ const _SSWLL = "SensitiveStringWithLengthLimits";
40
+ const _TE = "ThrottlingException";
41
+ const _TR = "TagResource";
42
+ const _TRR = "TagResourceRequest";
43
+ const _TRRa = "TagResourceResponse";
44
+ const _UIG = "UpdateInvestigationGroup";
45
+ const _UIGO = "UpdateInvestigationGroupOutput";
46
+ const _UIGR = "UpdateInvestigationGroupRequest";
47
+ const _UR = "UntagResource";
48
+ const _URR = "UntagResourceRequest";
49
+ const _URRn = "UntagResourceResponse";
50
+ const _VE = "ValidationException";
51
+ const _a = "arn";
52
+ const _c = "client";
53
+ const _cA = "createdAt";
54
+ const _cAC = "crossAccountConfigurations";
55
+ const _cB = "createdBy";
56
+ const _cNC = "chatbotNotificationChannel";
57
+ const _e = "error";
58
+ const _eC = "encryptionConfiguration";
59
+ const _h = "http";
60
+ const _hE = "httpError";
61
+ const _hQ = "httpQuery";
62
+ const _i = "identifier";
63
+ const _iCTEHE = "isCloudTrailEventHistoryEnabled";
64
+ const _iG = "investigationGroups";
65
+ const _iGA = "investigationGroupArn";
66
+ const _kKI = "kmsKeyId";
67
+ const _lMA = "lastModifiedAt";
68
+ const _lMB = "lastModifiedBy";
69
+ const _m = "message";
70
+ const _mR = "maxResults";
71
+ const _n = "name";
72
+ const _nT = "nextToken";
73
+ const _p = "policy";
74
+ const _qC = "quotaCode";
75
+ const _rA = "roleArn";
76
+ const _rAe = "resourceArn";
77
+ const _rI = "resourceId";
78
+ const _rID = "retentionInDays";
79
+ const _rT = "resourceType";
80
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.aiops";
81
+ const _sC = "serviceCode";
82
+ const _sRA = "sourceRoleArn";
83
+ const _se = "server";
84
+ const _t = "tags";
85
+ const _tK = "tagKeys";
86
+ const _tKB = "tagKeyBoundaries";
87
+ const _ty = "type";
88
+ const n0 = "com.amazonaws.aiops";
89
+ const schema_1 = require("@smithy/core/schema");
90
+ const AIOpsServiceException_1 = require("../models/AIOpsServiceException");
91
+ const errors_1 = require("../models/errors");
92
+ const _s_registry = schema_1.TypeRegistry.for(_s);
93
+ exports.AIOpsServiceException$ = [-3, _s, "AIOpsServiceException", 0, [], []];
94
+ _s_registry.registerError(exports.AIOpsServiceException$, AIOpsServiceException_1.AIOpsServiceException);
95
+ const n0_registry = schema_1.TypeRegistry.for(n0);
96
+ exports.AccessDeniedException$ = [-3, n0, _ADE,
97
+ { [_e]: _c, [_hE]: 403 },
98
+ [_m],
99
+ [0]
100
+ ];
101
+ n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
102
+ exports.ConflictException$ = [-3, n0, _CE,
103
+ { [_e]: _c, [_hE]: 409 },
104
+ [_m],
105
+ [0]
106
+ ];
107
+ n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
108
+ exports.ForbiddenException$ = [-3, n0, _FE,
109
+ { [_e]: _c, [_hE]: 403 },
110
+ [_m],
111
+ [0]
112
+ ];
113
+ n0_registry.registerError(exports.ForbiddenException$, errors_1.ForbiddenException);
114
+ exports.InternalServerException$ = [-3, n0, _ISE,
115
+ { [_e]: _se, [_hE]: 500 },
116
+ [_m],
117
+ [0]
118
+ ];
119
+ n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
120
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
121
+ { [_e]: _c, [_hE]: 404 },
122
+ [_m],
123
+ [0]
124
+ ];
125
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
126
+ exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
127
+ { [_e]: _c, [_hE]: 402 },
128
+ [_m, _rI, _rT, _sC, _qC],
129
+ [0, 0, 0, 0, 0]
130
+ ];
131
+ n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
132
+ exports.ThrottlingException$ = [-3, n0, _TE,
133
+ { [_e]: _c, [_hE]: 429 },
134
+ [_m],
135
+ [0]
136
+ ];
137
+ n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
138
+ exports.ValidationException$ = [-3, n0, _VE,
139
+ { [_e]: _c, [_hE]: 400 },
140
+ [_m],
141
+ [0]
142
+ ];
143
+ n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
144
+ exports.errorTypeRegistries = [
145
+ _s_registry,
146
+ n0_registry,
147
+ ];
148
+ var SensitiveStringWithLengthLimits = [0, n0, _SSWLL, 8, 0];
149
+ exports.CreateInvestigationGroupInput$ = [3, n0, _CIGI,
150
+ 0,
151
+ [_n, _rA, _eC, _rID, _t, _tKB, _cNC, _iCTEHE, _cAC],
152
+ [0, 0, () => exports.EncryptionConfiguration$, 1, 128 | 0, 64 | 0, [2, n0, _CNC, 0, 0, 64 | 0], 2, () => CrossAccountConfigurations], 2
153
+ ];
154
+ exports.CreateInvestigationGroupOutput$ = [3, n0, _CIGO,
155
+ 0,
156
+ [_a],
157
+ [0]
158
+ ];
159
+ exports.CrossAccountConfiguration$ = [3, n0, _CAC,
160
+ 0,
161
+ [_sRA],
162
+ [0]
163
+ ];
164
+ exports.DeleteInvestigationGroupPolicyOutput$ = [3, n0, _DIGPO,
165
+ 0,
166
+ [],
167
+ []
168
+ ];
169
+ exports.DeleteInvestigationGroupPolicyRequest$ = [3, n0, _DIGPR,
170
+ 0,
171
+ [_i],
172
+ [[0, 1]], 1
173
+ ];
174
+ exports.DeleteInvestigationGroupRequest$ = [3, n0, _DIGR,
175
+ 0,
176
+ [_i],
177
+ [[0, 1]], 1
178
+ ];
179
+ exports.EncryptionConfiguration$ = [3, n0, _EC,
180
+ 0,
181
+ [_ty, _kKI],
182
+ [0, 0]
183
+ ];
184
+ exports.GetInvestigationGroupPolicyRequest$ = [3, n0, _GIGPR,
185
+ 0,
186
+ [_i],
187
+ [[0, 1]], 1
188
+ ];
189
+ exports.GetInvestigationGroupPolicyResponse$ = [3, n0, _GIGPRe,
190
+ 0,
191
+ [_iGA, _p],
192
+ [0, 0]
193
+ ];
194
+ exports.GetInvestigationGroupRequest$ = [3, n0, _GIGR,
195
+ 0,
196
+ [_i],
197
+ [[0, 1]], 1
198
+ ];
199
+ exports.GetInvestigationGroupResponse$ = [3, n0, _GIGRe,
200
+ 0,
201
+ [_cB, _cA, _lMB, _lMA, _n, _a, _rA, _eC, _rID, _cNC, _tKB, _iCTEHE, _cAC],
202
+ [0, 1, 0, 1, 0, 0, 0, () => exports.EncryptionConfiguration$, 1, [2, n0, _CNC, 0, 0, 64 | 0], 64 | 0, 2, () => CrossAccountConfigurations]
203
+ ];
204
+ exports.ListInvestigationGroupsInput$ = [3, n0, _LIGI,
205
+ 0,
206
+ [_nT, _mR],
207
+ [[() => SensitiveStringWithLengthLimits, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
208
+ ];
209
+ exports.ListInvestigationGroupsModel$ = [3, n0, _LIGM,
210
+ 0,
211
+ [_a, _n],
212
+ [0, 0]
213
+ ];
214
+ exports.ListInvestigationGroupsOutput$ = [3, n0, _LIGO,
215
+ 0,
216
+ [_nT, _iG],
217
+ [[() => SensitiveStringWithLengthLimits, 0], () => InvestigationGroups]
218
+ ];
219
+ exports.ListTagsForResourceOutput$ = [3, n0, _LTFRO,
220
+ 0,
221
+ [_t],
222
+ [128 | 0]
223
+ ];
224
+ exports.ListTagsForResourceRequest$ = [3, n0, _LTFRR,
225
+ 0,
226
+ [_rAe],
227
+ [[0, 1]], 1
228
+ ];
229
+ exports.PutInvestigationGroupPolicyRequest$ = [3, n0, _PIGPR,
230
+ 0,
231
+ [_i, _p],
232
+ [[0, 1], 0], 2
233
+ ];
234
+ exports.PutInvestigationGroupPolicyResponse$ = [3, n0, _PIGPRu,
235
+ 0,
236
+ [_iGA],
237
+ [0]
238
+ ];
239
+ exports.TagResourceRequest$ = [3, n0, _TRR,
240
+ 0,
241
+ [_rAe, _t],
242
+ [[0, 1], 128 | 0], 2
243
+ ];
244
+ exports.TagResourceResponse$ = [3, n0, _TRRa,
245
+ 0,
246
+ [],
247
+ []
248
+ ];
249
+ exports.UntagResourceRequest$ = [3, n0, _URR,
250
+ 0,
251
+ [_rAe, _tK],
252
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
253
+ ];
254
+ exports.UntagResourceResponse$ = [3, n0, _URRn,
255
+ 0,
256
+ [],
257
+ []
258
+ ];
259
+ exports.UpdateInvestigationGroupOutput$ = [3, n0, _UIGO,
260
+ 0,
261
+ [],
262
+ []
263
+ ];
264
+ exports.UpdateInvestigationGroupRequest$ = [3, n0, _UIGR,
265
+ 0,
266
+ [_i, _rA, _eC, _tKB, _cNC, _iCTEHE, _cAC],
267
+ [[0, 1], 0, () => exports.EncryptionConfiguration$, 64 | 0, [2, n0, _CNC, 0, 0, 64 | 0], 2, () => CrossAccountConfigurations], 1
268
+ ];
269
+ var __Unit = "unit";
270
+ var ChatConfigurationArns = 64 | 0;
271
+ var CrossAccountConfigurations = [1, n0, _CACr,
272
+ 0, () => exports.CrossAccountConfiguration$
273
+ ];
274
+ var InvestigationGroups = [1, n0, _IG,
275
+ 0, () => exports.ListInvestigationGroupsModel$
276
+ ];
277
+ var TagKeyBoundaries = 64 | 0;
278
+ var TagKeys = 64 | 0;
279
+ var ChatbotNotificationChannel = [2, n0, _CNC,
280
+ 0, 0, 64 | 0
281
+ ];
282
+ var Tags = 128 | 0;
283
+ exports.CreateInvestigationGroup$ = [9, n0, _CIG,
284
+ { [_h]: ["POST", "/investigationGroups", 201] }, () => exports.CreateInvestigationGroupInput$, () => exports.CreateInvestigationGroupOutput$
285
+ ];
286
+ exports.DeleteInvestigationGroup$ = [9, n0, _DIG,
287
+ { [_h]: ["DELETE", "/investigationGroups/{identifier}", 200] }, () => exports.DeleteInvestigationGroupRequest$, () => __Unit
288
+ ];
289
+ exports.DeleteInvestigationGroupPolicy$ = [9, n0, _DIGP,
290
+ { [_h]: ["DELETE", "/investigationGroups/{identifier}/policy", 200] }, () => exports.DeleteInvestigationGroupPolicyRequest$, () => exports.DeleteInvestigationGroupPolicyOutput$
291
+ ];
292
+ exports.GetInvestigationGroup$ = [9, n0, _GIG,
293
+ { [_h]: ["GET", "/investigationGroups/{identifier}", 200] }, () => exports.GetInvestigationGroupRequest$, () => exports.GetInvestigationGroupResponse$
294
+ ];
295
+ exports.GetInvestigationGroupPolicy$ = [9, n0, _GIGP,
296
+ { [_h]: ["GET", "/investigationGroups/{identifier}/policy", 200] }, () => exports.GetInvestigationGroupPolicyRequest$, () => exports.GetInvestigationGroupPolicyResponse$
297
+ ];
298
+ exports.ListInvestigationGroups$ = [9, n0, _LIG,
299
+ { [_h]: ["GET", "/investigationGroups", 200] }, () => exports.ListInvestigationGroupsInput$, () => exports.ListInvestigationGroupsOutput$
300
+ ];
301
+ exports.ListTagsForResource$ = [9, n0, _LTFR,
302
+ { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => exports.ListTagsForResourceRequest$, () => exports.ListTagsForResourceOutput$
303
+ ];
304
+ exports.PutInvestigationGroupPolicy$ = [9, n0, _PIGP,
305
+ { [_h]: ["POST", "/investigationGroups/{identifier}/policy", 200] }, () => exports.PutInvestigationGroupPolicyRequest$, () => exports.PutInvestigationGroupPolicyResponse$
306
+ ];
307
+ exports.TagResource$ = [9, n0, _TR,
308
+ { [_h]: ["POST", "/tags/{resourceArn}", 200] }, () => exports.TagResourceRequest$, () => exports.TagResourceResponse$
309
+ ];
310
+ exports.UntagResource$ = [9, n0, _UR,
311
+ { [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => exports.UntagResourceRequest$, () => exports.UntagResourceResponse$
312
+ ];
313
+ exports.UpdateInvestigationGroup$ = [9, n0, _UIG,
314
+ { [_h]: ["PATCH", "/investigationGroups/{identifier}", 200] }, () => exports.UpdateInvestigationGroupRequest$, () => exports.UpdateInvestigationGroupOutput$
315
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultAIOpsHttpAuthSchemeProvider } 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-05-10",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.aiops",
30
+ errorTypeRegistries,
29
31
  version: "2018-05-10",
30
32
  serviceTarget: "AIOps",
31
33
  },
@@ -74,10 +74,10 @@ const _rAe = "resourceArn";
74
74
  const _rI = "resourceId";
75
75
  const _rID = "retentionInDays";
76
76
  const _rT = "resourceType";
77
- const _s = "server";
77
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.aiops";
78
78
  const _sC = "serviceCode";
79
79
  const _sRA = "sourceRoleArn";
80
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.aiops";
80
+ const _se = "server";
81
81
  const _t = "tags";
82
82
  const _tK = "tagKeys";
83
83
  const _tKB = "tagKeyBoundaries";
@@ -86,19 +86,63 @@ const n0 = "com.amazonaws.aiops";
86
86
  import { TypeRegistry } from "@smithy/core/schema";
87
87
  import { AIOpsServiceException } from "../models/AIOpsServiceException";
88
88
  import { AccessDeniedException, ConflictException, ForbiddenException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
89
- var SensitiveStringWithLengthLimits = [0, n0, _SSWLL, 8, 0];
89
+ const _s_registry = TypeRegistry.for(_s);
90
+ export var AIOpsServiceException$ = [-3, _s, "AIOpsServiceException", 0, [], []];
91
+ _s_registry.registerError(AIOpsServiceException$, AIOpsServiceException);
92
+ const n0_registry = TypeRegistry.for(n0);
90
93
  export var AccessDeniedException$ = [-3, n0, _ADE,
91
94
  { [_e]: _c, [_hE]: 403 },
92
95
  [_m],
93
96
  [0]
94
97
  ];
95
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
98
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
96
99
  export var ConflictException$ = [-3, n0, _CE,
97
100
  { [_e]: _c, [_hE]: 409 },
98
101
  [_m],
99
102
  [0]
100
103
  ];
101
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
104
+ n0_registry.registerError(ConflictException$, ConflictException);
105
+ export var ForbiddenException$ = [-3, n0, _FE,
106
+ { [_e]: _c, [_hE]: 403 },
107
+ [_m],
108
+ [0]
109
+ ];
110
+ n0_registry.registerError(ForbiddenException$, ForbiddenException);
111
+ export var InternalServerException$ = [-3, n0, _ISE,
112
+ { [_e]: _se, [_hE]: 500 },
113
+ [_m],
114
+ [0]
115
+ ];
116
+ n0_registry.registerError(InternalServerException$, InternalServerException);
117
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
118
+ { [_e]: _c, [_hE]: 404 },
119
+ [_m],
120
+ [0]
121
+ ];
122
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
123
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
124
+ { [_e]: _c, [_hE]: 402 },
125
+ [_m, _rI, _rT, _sC, _qC],
126
+ [0, 0, 0, 0, 0]
127
+ ];
128
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
129
+ export var ThrottlingException$ = [-3, n0, _TE,
130
+ { [_e]: _c, [_hE]: 429 },
131
+ [_m],
132
+ [0]
133
+ ];
134
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
135
+ export var ValidationException$ = [-3, n0, _VE,
136
+ { [_e]: _c, [_hE]: 400 },
137
+ [_m],
138
+ [0]
139
+ ];
140
+ n0_registry.registerError(ValidationException$, ValidationException);
141
+ export const errorTypeRegistries = [
142
+ _s_registry,
143
+ n0_registry,
144
+ ];
145
+ var SensitiveStringWithLengthLimits = [0, n0, _SSWLL, 8, 0];
102
146
  export var CreateInvestigationGroupInput$ = [3, n0, _CIGI,
103
147
  0,
104
148
  [_n, _rA, _eC, _rID, _t, _tKB, _cNC, _iCTEHE, _cAC],
@@ -134,12 +178,6 @@ export var EncryptionConfiguration$ = [3, n0, _EC,
134
178
  [_ty, _kKI],
135
179
  [0, 0]
136
180
  ];
137
- export var ForbiddenException$ = [-3, n0, _FE,
138
- { [_e]: _c, [_hE]: 403 },
139
- [_m],
140
- [0]
141
- ];
142
- TypeRegistry.for(n0).registerError(ForbiddenException$, ForbiddenException);
143
181
  export var GetInvestigationGroupPolicyRequest$ = [3, n0, _GIGPR,
144
182
  0,
145
183
  [_i],
@@ -160,12 +198,6 @@ export var GetInvestigationGroupResponse$ = [3, n0, _GIGRe,
160
198
  [_cB, _cA, _lMB, _lMA, _n, _a, _rA, _eC, _rID, _cNC, _tKB, _iCTEHE, _cAC],
161
199
  [0, 1, 0, 1, 0, 0, 0, () => EncryptionConfiguration$, 1, [2, n0, _CNC, 0, 0, 64 | 0], 64 | 0, 2, () => CrossAccountConfigurations]
162
200
  ];
163
- export var InternalServerException$ = [-3, n0, _ISE,
164
- { [_e]: _s, [_hE]: 500 },
165
- [_m],
166
- [0]
167
- ];
168
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
169
201
  export var ListInvestigationGroupsInput$ = [3, n0, _LIGI,
170
202
  0,
171
203
  [_nT, _mR],
@@ -201,18 +233,6 @@ export var PutInvestigationGroupPolicyResponse$ = [3, n0, _PIGPRu,
201
233
  [_iGA],
202
234
  [0]
203
235
  ];
204
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
205
- { [_e]: _c, [_hE]: 404 },
206
- [_m],
207
- [0]
208
- ];
209
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
210
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
211
- { [_e]: _c, [_hE]: 402 },
212
- [_m, _rI, _rT, _sC, _qC],
213
- [0, 0, 0, 0, 0]
214
- ];
215
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
216
236
  export var TagResourceRequest$ = [3, n0, _TRR,
217
237
  0,
218
238
  [_rAe, _t],
@@ -223,12 +243,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
223
243
  [],
224
244
  []
225
245
  ];
226
- export var ThrottlingException$ = [-3, n0, _TE,
227
- { [_e]: _c, [_hE]: 429 },
228
- [_m],
229
- [0]
230
- ];
231
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
232
246
  export var UntagResourceRequest$ = [3, n0, _URR,
233
247
  0,
234
248
  [_rAe, _tK],
@@ -249,15 +263,7 @@ export var UpdateInvestigationGroupRequest$ = [3, n0, _UIGR,
249
263
  [_i, _rA, _eC, _tKB, _cNC, _iCTEHE, _cAC],
250
264
  [[0, 1], 0, () => EncryptionConfiguration$, 64 | 0, [2, n0, _CNC, 0, 0, 64 | 0], 2, () => CrossAccountConfigurations], 1
251
265
  ];
252
- export var ValidationException$ = [-3, n0, _VE,
253
- { [_e]: _c, [_hE]: 400 },
254
- [_m],
255
- [0]
256
- ];
257
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
258
266
  var __Unit = "unit";
259
- export var AIOpsServiceException$ = [-3, _sm, "AIOpsServiceException", 0, [], []];
260
- TypeRegistry.for(_sm).registerError(AIOpsServiceException$, AIOpsServiceException);
261
267
  var ChatConfigurationArns = 64 | 0;
262
268
  var CrossAccountConfigurations = [1, n0, _CACr,
263
269
  0, () => CrossAccountConfiguration$
@@ -1,6 +1,20 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var AIOpsServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
3
5
  export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var ForbiddenException$: StaticErrorSchema;
7
+ export declare var InternalServerException$: StaticErrorSchema;
8
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
9
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
10
+ export declare var ThrottlingException$: StaticErrorSchema;
11
+ export declare var ValidationException$: StaticErrorSchema;
12
+ /**
13
+ * TypeRegistry instances containing modeled errors.
14
+ * @internal
15
+ *
16
+ */
17
+ export declare const errorTypeRegistries: TypeRegistry[];
4
18
  export declare var CreateInvestigationGroupInput$: StaticStructureSchema;
5
19
  export declare var CreateInvestigationGroupOutput$: StaticStructureSchema;
6
20
  export declare var CrossAccountConfiguration$: StaticStructureSchema;
@@ -8,12 +22,10 @@ export declare var DeleteInvestigationGroupPolicyOutput$: StaticStructureSchema;
8
22
  export declare var DeleteInvestigationGroupPolicyRequest$: StaticStructureSchema;
9
23
  export declare var DeleteInvestigationGroupRequest$: StaticStructureSchema;
10
24
  export declare var EncryptionConfiguration$: StaticStructureSchema;
11
- export declare var ForbiddenException$: StaticErrorSchema;
12
25
  export declare var GetInvestigationGroupPolicyRequest$: StaticStructureSchema;
13
26
  export declare var GetInvestigationGroupPolicyResponse$: StaticStructureSchema;
14
27
  export declare var GetInvestigationGroupRequest$: StaticStructureSchema;
15
28
  export declare var GetInvestigationGroupResponse$: StaticStructureSchema;
16
- export declare var InternalServerException$: StaticErrorSchema;
17
29
  export declare var ListInvestigationGroupsInput$: StaticStructureSchema;
18
30
  export declare var ListInvestigationGroupsModel$: StaticStructureSchema;
19
31
  export declare var ListInvestigationGroupsOutput$: StaticStructureSchema;
@@ -21,17 +33,12 @@ export declare var ListTagsForResourceOutput$: StaticStructureSchema;
21
33
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
22
34
  export declare var PutInvestigationGroupPolicyRequest$: StaticStructureSchema;
23
35
  export declare var PutInvestigationGroupPolicyResponse$: StaticStructureSchema;
24
- export declare var ResourceNotFoundException$: StaticErrorSchema;
25
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
26
36
  export declare var TagResourceRequest$: StaticStructureSchema;
27
37
  export declare var TagResourceResponse$: StaticStructureSchema;
28
- export declare var ThrottlingException$: StaticErrorSchema;
29
38
  export declare var UntagResourceRequest$: StaticStructureSchema;
30
39
  export declare var UntagResourceResponse$: StaticStructureSchema;
31
40
  export declare var UpdateInvestigationGroupOutput$: StaticStructureSchema;
32
41
  export declare var UpdateInvestigationGroupRequest$: StaticStructureSchema;
33
- export declare var ValidationException$: StaticErrorSchema;
34
- export declare var AIOpsServiceException$: StaticErrorSchema;
35
42
  export declare var CreateInvestigationGroup$: StaticOperationSchema;
36
43
  export declare var DeleteInvestigationGroup$: StaticOperationSchema;
37
44
  export declare var DeleteInvestigationGroupPolicy$: StaticOperationSchema;