@aws-sdk/client-aiops 3.927.0 → 3.929.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.
- package/dist-cjs/index.js +456 -556
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/AIOpsClient.js +2 -0
- package/dist-es/commands/CreateInvestigationGroupCommand.js +3 -9
- package/dist-es/commands/DeleteInvestigationGroupCommand.js +3 -9
- package/dist-es/commands/DeleteInvestigationGroupPolicyCommand.js +3 -9
- package/dist-es/commands/GetInvestigationGroupCommand.js +3 -9
- package/dist-es/commands/GetInvestigationGroupPolicyCommand.js +3 -9
- package/dist-es/commands/ListInvestigationGroupsCommand.js +3 -10
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/PutInvestigationGroupPolicyCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateInvestigationGroupCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +416 -0
- package/dist-types/AIOpsClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -8
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +54 -0
- package/dist-types/ts3.4/AIOpsClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -6
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +61 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_restJson1.js +0 -449
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -101
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -137
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticMapSchema,
|
|
5
|
+
StaticOperationSchema,
|
|
6
|
+
StaticSimpleSchema,
|
|
7
|
+
StaticStructureSchema,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
export declare var SensitiveStringWithLengthLimits: StaticSimpleSchema;
|
|
10
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
11
|
+
export declare var ConflictException: StaticErrorSchema;
|
|
12
|
+
export declare var CreateInvestigationGroupInput: StaticStructureSchema;
|
|
13
|
+
export declare var CreateInvestigationGroupOutput: StaticStructureSchema;
|
|
14
|
+
export declare var CrossAccountConfiguration: StaticStructureSchema;
|
|
15
|
+
export declare var DeleteInvestigationGroupPolicyOutput: StaticStructureSchema;
|
|
16
|
+
export declare var DeleteInvestigationGroupPolicyRequest: StaticStructureSchema;
|
|
17
|
+
export declare var DeleteInvestigationGroupRequest: StaticStructureSchema;
|
|
18
|
+
export declare var EncryptionConfiguration: StaticStructureSchema;
|
|
19
|
+
export declare var ForbiddenException: StaticErrorSchema;
|
|
20
|
+
export declare var GetInvestigationGroupPolicyRequest: StaticStructureSchema;
|
|
21
|
+
export declare var GetInvestigationGroupPolicyResponse: StaticStructureSchema;
|
|
22
|
+
export declare var GetInvestigationGroupRequest: StaticStructureSchema;
|
|
23
|
+
export declare var GetInvestigationGroupResponse: StaticStructureSchema;
|
|
24
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
25
|
+
export declare var ListInvestigationGroupsInput: StaticStructureSchema;
|
|
26
|
+
export declare var ListInvestigationGroupsModel: StaticStructureSchema;
|
|
27
|
+
export declare var ListInvestigationGroupsOutput: StaticStructureSchema;
|
|
28
|
+
export declare var ListTagsForResourceOutput: StaticStructureSchema;
|
|
29
|
+
export declare var ListTagsForResourceRequest: StaticStructureSchema;
|
|
30
|
+
export declare var PutInvestigationGroupPolicyRequest: StaticStructureSchema;
|
|
31
|
+
export declare var PutInvestigationGroupPolicyResponse: StaticStructureSchema;
|
|
32
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
33
|
+
export declare var ServiceQuotaExceededException: StaticErrorSchema;
|
|
34
|
+
export declare var TagResourceRequest: StaticStructureSchema;
|
|
35
|
+
export declare var TagResourceResponse: StaticStructureSchema;
|
|
36
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
37
|
+
export declare var UntagResourceRequest: StaticStructureSchema;
|
|
38
|
+
export declare var UntagResourceResponse: StaticStructureSchema;
|
|
39
|
+
export declare var UpdateInvestigationGroupOutput: StaticStructureSchema;
|
|
40
|
+
export declare var UpdateInvestigationGroupRequest: StaticStructureSchema;
|
|
41
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
42
|
+
export declare var __Unit: "unit";
|
|
43
|
+
export declare var AIOpsServiceException: StaticErrorSchema;
|
|
44
|
+
export declare var ChatConfigurationArns: number;
|
|
45
|
+
export declare var CrossAccountConfigurations: StaticListSchema;
|
|
46
|
+
export declare var InvestigationGroups: StaticListSchema;
|
|
47
|
+
export declare var TagKeyBoundaries: number;
|
|
48
|
+
export declare var TagKeys: number;
|
|
49
|
+
export declare var ChatbotNotificationChannel: StaticMapSchema;
|
|
50
|
+
export declare var Tags: number;
|
|
51
|
+
export declare var CreateInvestigationGroup: StaticOperationSchema;
|
|
52
|
+
export declare var DeleteInvestigationGroup: StaticOperationSchema;
|
|
53
|
+
export declare var DeleteInvestigationGroupPolicy: StaticOperationSchema;
|
|
54
|
+
export declare var GetInvestigationGroup: StaticOperationSchema;
|
|
55
|
+
export declare var GetInvestigationGroupPolicy: StaticOperationSchema;
|
|
56
|
+
export declare var ListInvestigationGroups: StaticOperationSchema;
|
|
57
|
+
export declare var ListTagsForResource: StaticOperationSchema;
|
|
58
|
+
export declare var PutInvestigationGroupPolicy: StaticOperationSchema;
|
|
59
|
+
export declare var TagResource: StaticOperationSchema;
|
|
60
|
+
export declare var UntagResource: StaticOperationSchema;
|
|
61
|
+
export declare var UpdateInvestigationGroup: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-aiops",
|
|
3
3
|
"description": "AWS SDK for JavaScript Aiops Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.929.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-aiops",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.928.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
30
30
|
"@aws-sdk/types": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.2",
|
|
35
35
|
"@smithy/core": "^3.17.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.5",
|
|
@@ -1,449 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AIOpsServiceException as __BaseException } from "../models/AIOpsServiceException";
|
|
5
|
-
import { AccessDeniedException, ConflictException, ForbiddenException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_CreateInvestigationGroupCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/investigationGroups");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
chatbotNotificationChannel: (_) => _json(_),
|
|
15
|
-
crossAccountConfigurations: (_) => _json(_),
|
|
16
|
-
encryptionConfiguration: (_) => _json(_),
|
|
17
|
-
isCloudTrailEventHistoryEnabled: [],
|
|
18
|
-
name: [],
|
|
19
|
-
retentionInDays: [],
|
|
20
|
-
roleArn: [],
|
|
21
|
-
tagKeyBoundaries: (_) => _json(_),
|
|
22
|
-
tags: (_) => _json(_),
|
|
23
|
-
}));
|
|
24
|
-
b.m("POST").h(headers).b(body);
|
|
25
|
-
return b.build();
|
|
26
|
-
};
|
|
27
|
-
export const se_DeleteInvestigationGroupCommand = async (input, context) => {
|
|
28
|
-
const b = rb(input, context);
|
|
29
|
-
const headers = {};
|
|
30
|
-
b.bp("/investigationGroups/{identifier}");
|
|
31
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
32
|
-
let body;
|
|
33
|
-
b.m("DELETE").h(headers).b(body);
|
|
34
|
-
return b.build();
|
|
35
|
-
};
|
|
36
|
-
export const se_DeleteInvestigationGroupPolicyCommand = async (input, context) => {
|
|
37
|
-
const b = rb(input, context);
|
|
38
|
-
const headers = {};
|
|
39
|
-
b.bp("/investigationGroups/{identifier}/policy");
|
|
40
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
41
|
-
let body;
|
|
42
|
-
b.m("DELETE").h(headers).b(body);
|
|
43
|
-
return b.build();
|
|
44
|
-
};
|
|
45
|
-
export const se_GetInvestigationGroupCommand = async (input, context) => {
|
|
46
|
-
const b = rb(input, context);
|
|
47
|
-
const headers = {};
|
|
48
|
-
b.bp("/investigationGroups/{identifier}");
|
|
49
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
50
|
-
let body;
|
|
51
|
-
b.m("GET").h(headers).b(body);
|
|
52
|
-
return b.build();
|
|
53
|
-
};
|
|
54
|
-
export const se_GetInvestigationGroupPolicyCommand = async (input, context) => {
|
|
55
|
-
const b = rb(input, context);
|
|
56
|
-
const headers = {};
|
|
57
|
-
b.bp("/investigationGroups/{identifier}/policy");
|
|
58
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
59
|
-
let body;
|
|
60
|
-
b.m("GET").h(headers).b(body);
|
|
61
|
-
return b.build();
|
|
62
|
-
};
|
|
63
|
-
export const se_ListInvestigationGroupsCommand = async (input, context) => {
|
|
64
|
-
const b = rb(input, context);
|
|
65
|
-
const headers = {};
|
|
66
|
-
b.bp("/investigationGroups");
|
|
67
|
-
const query = map({
|
|
68
|
-
[_nT]: [, input[_nT]],
|
|
69
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
70
|
-
});
|
|
71
|
-
let body;
|
|
72
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
73
|
-
return b.build();
|
|
74
|
-
};
|
|
75
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
76
|
-
const b = rb(input, context);
|
|
77
|
-
const headers = {};
|
|
78
|
-
b.bp("/tags/{resourceArn}");
|
|
79
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
80
|
-
let body;
|
|
81
|
-
b.m("GET").h(headers).b(body);
|
|
82
|
-
return b.build();
|
|
83
|
-
};
|
|
84
|
-
export const se_PutInvestigationGroupPolicyCommand = async (input, context) => {
|
|
85
|
-
const b = rb(input, context);
|
|
86
|
-
const headers = {
|
|
87
|
-
"content-type": "application/json",
|
|
88
|
-
};
|
|
89
|
-
b.bp("/investigationGroups/{identifier}/policy");
|
|
90
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
91
|
-
let body;
|
|
92
|
-
body = JSON.stringify(take(input, {
|
|
93
|
-
policy: [],
|
|
94
|
-
}));
|
|
95
|
-
b.m("POST").h(headers).b(body);
|
|
96
|
-
return b.build();
|
|
97
|
-
};
|
|
98
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
99
|
-
const b = rb(input, context);
|
|
100
|
-
const headers = {
|
|
101
|
-
"content-type": "application/json",
|
|
102
|
-
};
|
|
103
|
-
b.bp("/tags/{resourceArn}");
|
|
104
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
105
|
-
let body;
|
|
106
|
-
body = JSON.stringify(take(input, {
|
|
107
|
-
tags: (_) => _json(_),
|
|
108
|
-
}));
|
|
109
|
-
b.m("POST").h(headers).b(body);
|
|
110
|
-
return b.build();
|
|
111
|
-
};
|
|
112
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
113
|
-
const b = rb(input, context);
|
|
114
|
-
const headers = {};
|
|
115
|
-
b.bp("/tags/{resourceArn}");
|
|
116
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
117
|
-
const query = map({
|
|
118
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
119
|
-
});
|
|
120
|
-
let body;
|
|
121
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
122
|
-
return b.build();
|
|
123
|
-
};
|
|
124
|
-
export const se_UpdateInvestigationGroupCommand = async (input, context) => {
|
|
125
|
-
const b = rb(input, context);
|
|
126
|
-
const headers = {
|
|
127
|
-
"content-type": "application/json",
|
|
128
|
-
};
|
|
129
|
-
b.bp("/investigationGroups/{identifier}");
|
|
130
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify(take(input, {
|
|
133
|
-
chatbotNotificationChannel: (_) => _json(_),
|
|
134
|
-
crossAccountConfigurations: (_) => _json(_),
|
|
135
|
-
encryptionConfiguration: (_) => _json(_),
|
|
136
|
-
isCloudTrailEventHistoryEnabled: [],
|
|
137
|
-
roleArn: [],
|
|
138
|
-
tagKeyBoundaries: (_) => _json(_),
|
|
139
|
-
}));
|
|
140
|
-
b.m("PATCH").h(headers).b(body);
|
|
141
|
-
return b.build();
|
|
142
|
-
};
|
|
143
|
-
export const de_CreateInvestigationGroupCommand = async (output, context) => {
|
|
144
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
145
|
-
return de_CommandError(output, context);
|
|
146
|
-
}
|
|
147
|
-
const contents = map({
|
|
148
|
-
$metadata: deserializeMetadata(output),
|
|
149
|
-
});
|
|
150
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
151
|
-
const doc = take(data, {
|
|
152
|
-
arn: __expectString,
|
|
153
|
-
});
|
|
154
|
-
Object.assign(contents, doc);
|
|
155
|
-
return contents;
|
|
156
|
-
};
|
|
157
|
-
export const de_DeleteInvestigationGroupCommand = async (output, context) => {
|
|
158
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
159
|
-
return de_CommandError(output, context);
|
|
160
|
-
}
|
|
161
|
-
const contents = map({
|
|
162
|
-
$metadata: deserializeMetadata(output),
|
|
163
|
-
});
|
|
164
|
-
await collectBody(output.body, context);
|
|
165
|
-
return contents;
|
|
166
|
-
};
|
|
167
|
-
export const de_DeleteInvestigationGroupPolicyCommand = async (output, context) => {
|
|
168
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
169
|
-
return de_CommandError(output, context);
|
|
170
|
-
}
|
|
171
|
-
const contents = map({
|
|
172
|
-
$metadata: deserializeMetadata(output),
|
|
173
|
-
});
|
|
174
|
-
await collectBody(output.body, context);
|
|
175
|
-
return contents;
|
|
176
|
-
};
|
|
177
|
-
export const de_GetInvestigationGroupCommand = async (output, context) => {
|
|
178
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
179
|
-
return de_CommandError(output, context);
|
|
180
|
-
}
|
|
181
|
-
const contents = map({
|
|
182
|
-
$metadata: deserializeMetadata(output),
|
|
183
|
-
});
|
|
184
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
185
|
-
const doc = take(data, {
|
|
186
|
-
arn: __expectString,
|
|
187
|
-
chatbotNotificationChannel: _json,
|
|
188
|
-
createdAt: __expectLong,
|
|
189
|
-
createdBy: __expectString,
|
|
190
|
-
crossAccountConfigurations: _json,
|
|
191
|
-
encryptionConfiguration: _json,
|
|
192
|
-
isCloudTrailEventHistoryEnabled: __expectBoolean,
|
|
193
|
-
lastModifiedAt: __expectLong,
|
|
194
|
-
lastModifiedBy: __expectString,
|
|
195
|
-
name: __expectString,
|
|
196
|
-
retentionInDays: __expectLong,
|
|
197
|
-
roleArn: __expectString,
|
|
198
|
-
tagKeyBoundaries: _json,
|
|
199
|
-
});
|
|
200
|
-
Object.assign(contents, doc);
|
|
201
|
-
return contents;
|
|
202
|
-
};
|
|
203
|
-
export const de_GetInvestigationGroupPolicyCommand = async (output, context) => {
|
|
204
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
205
|
-
return de_CommandError(output, context);
|
|
206
|
-
}
|
|
207
|
-
const contents = map({
|
|
208
|
-
$metadata: deserializeMetadata(output),
|
|
209
|
-
});
|
|
210
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
211
|
-
const doc = take(data, {
|
|
212
|
-
investigationGroupArn: __expectString,
|
|
213
|
-
policy: __expectString,
|
|
214
|
-
});
|
|
215
|
-
Object.assign(contents, doc);
|
|
216
|
-
return contents;
|
|
217
|
-
};
|
|
218
|
-
export const de_ListInvestigationGroupsCommand = async (output, context) => {
|
|
219
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
220
|
-
return de_CommandError(output, context);
|
|
221
|
-
}
|
|
222
|
-
const contents = map({
|
|
223
|
-
$metadata: deserializeMetadata(output),
|
|
224
|
-
});
|
|
225
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
226
|
-
const doc = take(data, {
|
|
227
|
-
investigationGroups: _json,
|
|
228
|
-
nextToken: __expectString,
|
|
229
|
-
});
|
|
230
|
-
Object.assign(contents, doc);
|
|
231
|
-
return contents;
|
|
232
|
-
};
|
|
233
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
234
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
235
|
-
return de_CommandError(output, context);
|
|
236
|
-
}
|
|
237
|
-
const contents = map({
|
|
238
|
-
$metadata: deserializeMetadata(output),
|
|
239
|
-
});
|
|
240
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
241
|
-
const doc = take(data, {
|
|
242
|
-
tags: _json,
|
|
243
|
-
});
|
|
244
|
-
Object.assign(contents, doc);
|
|
245
|
-
return contents;
|
|
246
|
-
};
|
|
247
|
-
export const de_PutInvestigationGroupPolicyCommand = async (output, context) => {
|
|
248
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
249
|
-
return de_CommandError(output, context);
|
|
250
|
-
}
|
|
251
|
-
const contents = map({
|
|
252
|
-
$metadata: deserializeMetadata(output),
|
|
253
|
-
});
|
|
254
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
255
|
-
const doc = take(data, {
|
|
256
|
-
investigationGroupArn: __expectString,
|
|
257
|
-
});
|
|
258
|
-
Object.assign(contents, doc);
|
|
259
|
-
return contents;
|
|
260
|
-
};
|
|
261
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
262
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
263
|
-
return de_CommandError(output, context);
|
|
264
|
-
}
|
|
265
|
-
const contents = map({
|
|
266
|
-
$metadata: deserializeMetadata(output),
|
|
267
|
-
});
|
|
268
|
-
await collectBody(output.body, context);
|
|
269
|
-
return contents;
|
|
270
|
-
};
|
|
271
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
272
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
273
|
-
return de_CommandError(output, context);
|
|
274
|
-
}
|
|
275
|
-
const contents = map({
|
|
276
|
-
$metadata: deserializeMetadata(output),
|
|
277
|
-
});
|
|
278
|
-
await collectBody(output.body, context);
|
|
279
|
-
return contents;
|
|
280
|
-
};
|
|
281
|
-
export const de_UpdateInvestigationGroupCommand = async (output, context) => {
|
|
282
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
283
|
-
return de_CommandError(output, context);
|
|
284
|
-
}
|
|
285
|
-
const contents = map({
|
|
286
|
-
$metadata: deserializeMetadata(output),
|
|
287
|
-
});
|
|
288
|
-
await collectBody(output.body, context);
|
|
289
|
-
return contents;
|
|
290
|
-
};
|
|
291
|
-
const de_CommandError = async (output, context) => {
|
|
292
|
-
const parsedOutput = {
|
|
293
|
-
...output,
|
|
294
|
-
body: await parseErrorBody(output.body, context),
|
|
295
|
-
};
|
|
296
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
297
|
-
switch (errorCode) {
|
|
298
|
-
case "AccessDeniedException":
|
|
299
|
-
case "com.amazonaws.aiops#AccessDeniedException":
|
|
300
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
301
|
-
case "ConflictException":
|
|
302
|
-
case "com.amazonaws.aiops#ConflictException":
|
|
303
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
304
|
-
case "ForbiddenException":
|
|
305
|
-
case "com.amazonaws.aiops#ForbiddenException":
|
|
306
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
307
|
-
case "InternalServerException":
|
|
308
|
-
case "com.amazonaws.aiops#InternalServerException":
|
|
309
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
310
|
-
case "ResourceNotFoundException":
|
|
311
|
-
case "com.amazonaws.aiops#ResourceNotFoundException":
|
|
312
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
313
|
-
case "ServiceQuotaExceededException":
|
|
314
|
-
case "com.amazonaws.aiops#ServiceQuotaExceededException":
|
|
315
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
316
|
-
case "ThrottlingException":
|
|
317
|
-
case "com.amazonaws.aiops#ThrottlingException":
|
|
318
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
319
|
-
case "ValidationException":
|
|
320
|
-
case "com.amazonaws.aiops#ValidationException":
|
|
321
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
322
|
-
default:
|
|
323
|
-
const parsedBody = parsedOutput.body;
|
|
324
|
-
return throwDefaultError({
|
|
325
|
-
output,
|
|
326
|
-
parsedBody,
|
|
327
|
-
errorCode,
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
332
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
333
|
-
const contents = map({});
|
|
334
|
-
const data = parsedOutput.body;
|
|
335
|
-
const doc = take(data, {
|
|
336
|
-
message: __expectString,
|
|
337
|
-
});
|
|
338
|
-
Object.assign(contents, doc);
|
|
339
|
-
const exception = new AccessDeniedException({
|
|
340
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
341
|
-
...contents,
|
|
342
|
-
});
|
|
343
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
344
|
-
};
|
|
345
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
346
|
-
const contents = map({});
|
|
347
|
-
const data = parsedOutput.body;
|
|
348
|
-
const doc = take(data, {
|
|
349
|
-
message: __expectString,
|
|
350
|
-
});
|
|
351
|
-
Object.assign(contents, doc);
|
|
352
|
-
const exception = new ConflictException({
|
|
353
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
354
|
-
...contents,
|
|
355
|
-
});
|
|
356
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
357
|
-
};
|
|
358
|
-
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
359
|
-
const contents = map({});
|
|
360
|
-
const data = parsedOutput.body;
|
|
361
|
-
const doc = take(data, {
|
|
362
|
-
message: __expectString,
|
|
363
|
-
});
|
|
364
|
-
Object.assign(contents, doc);
|
|
365
|
-
const exception = new ForbiddenException({
|
|
366
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
367
|
-
...contents,
|
|
368
|
-
});
|
|
369
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
370
|
-
};
|
|
371
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
372
|
-
const contents = map({});
|
|
373
|
-
const data = parsedOutput.body;
|
|
374
|
-
const doc = take(data, {
|
|
375
|
-
message: __expectString,
|
|
376
|
-
});
|
|
377
|
-
Object.assign(contents, doc);
|
|
378
|
-
const exception = new InternalServerException({
|
|
379
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
380
|
-
...contents,
|
|
381
|
-
});
|
|
382
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
383
|
-
};
|
|
384
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
385
|
-
const contents = map({});
|
|
386
|
-
const data = parsedOutput.body;
|
|
387
|
-
const doc = take(data, {
|
|
388
|
-
message: __expectString,
|
|
389
|
-
});
|
|
390
|
-
Object.assign(contents, doc);
|
|
391
|
-
const exception = new ResourceNotFoundException({
|
|
392
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
393
|
-
...contents,
|
|
394
|
-
});
|
|
395
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
396
|
-
};
|
|
397
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
398
|
-
const contents = map({});
|
|
399
|
-
const data = parsedOutput.body;
|
|
400
|
-
const doc = take(data, {
|
|
401
|
-
message: __expectString,
|
|
402
|
-
quotaCode: __expectString,
|
|
403
|
-
resourceId: __expectString,
|
|
404
|
-
resourceType: __expectString,
|
|
405
|
-
serviceCode: __expectString,
|
|
406
|
-
});
|
|
407
|
-
Object.assign(contents, doc);
|
|
408
|
-
const exception = new ServiceQuotaExceededException({
|
|
409
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
410
|
-
...contents,
|
|
411
|
-
});
|
|
412
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
413
|
-
};
|
|
414
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
415
|
-
const contents = map({});
|
|
416
|
-
const data = parsedOutput.body;
|
|
417
|
-
const doc = take(data, {
|
|
418
|
-
message: __expectString,
|
|
419
|
-
});
|
|
420
|
-
Object.assign(contents, doc);
|
|
421
|
-
const exception = new ThrottlingException({
|
|
422
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
423
|
-
...contents,
|
|
424
|
-
});
|
|
425
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
426
|
-
};
|
|
427
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
428
|
-
const contents = map({});
|
|
429
|
-
const data = parsedOutput.body;
|
|
430
|
-
const doc = take(data, {
|
|
431
|
-
message: __expectString,
|
|
432
|
-
});
|
|
433
|
-
Object.assign(contents, doc);
|
|
434
|
-
const exception = new ValidationException({
|
|
435
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
436
|
-
...contents,
|
|
437
|
-
});
|
|
438
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
439
|
-
};
|
|
440
|
-
const deserializeMetadata = (output) => ({
|
|
441
|
-
httpStatusCode: output.statusCode,
|
|
442
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
443
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
444
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
445
|
-
});
|
|
446
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
447
|
-
const _mR = "maxResults";
|
|
448
|
-
const _nT = "nextToken";
|
|
449
|
-
const _tK = "tagKeys";
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { CreateInvestigationGroupCommandInput, CreateInvestigationGroupCommandOutput } from "../commands/CreateInvestigationGroupCommand";
|
|
4
|
-
import { DeleteInvestigationGroupCommandInput, DeleteInvestigationGroupCommandOutput } from "../commands/DeleteInvestigationGroupCommand";
|
|
5
|
-
import { DeleteInvestigationGroupPolicyCommandInput, DeleteInvestigationGroupPolicyCommandOutput } from "../commands/DeleteInvestigationGroupPolicyCommand";
|
|
6
|
-
import { GetInvestigationGroupCommandInput, GetInvestigationGroupCommandOutput } from "../commands/GetInvestigationGroupCommand";
|
|
7
|
-
import { GetInvestigationGroupPolicyCommandInput, GetInvestigationGroupPolicyCommandOutput } from "../commands/GetInvestigationGroupPolicyCommand";
|
|
8
|
-
import { ListInvestigationGroupsCommandInput, ListInvestigationGroupsCommandOutput } from "../commands/ListInvestigationGroupsCommand";
|
|
9
|
-
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
10
|
-
import { PutInvestigationGroupPolicyCommandInput, PutInvestigationGroupPolicyCommandOutput } from "../commands/PutInvestigationGroupPolicyCommand";
|
|
11
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
12
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
13
|
-
import { UpdateInvestigationGroupCommandInput, UpdateInvestigationGroupCommandOutput } from "../commands/UpdateInvestigationGroupCommand";
|
|
14
|
-
/**
|
|
15
|
-
* serializeAws_restJson1CreateInvestigationGroupCommand
|
|
16
|
-
*/
|
|
17
|
-
export declare const se_CreateInvestigationGroupCommand: (input: CreateInvestigationGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
18
|
-
/**
|
|
19
|
-
* serializeAws_restJson1DeleteInvestigationGroupCommand
|
|
20
|
-
*/
|
|
21
|
-
export declare const se_DeleteInvestigationGroupCommand: (input: DeleteInvestigationGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
22
|
-
/**
|
|
23
|
-
* serializeAws_restJson1DeleteInvestigationGroupPolicyCommand
|
|
24
|
-
*/
|
|
25
|
-
export declare const se_DeleteInvestigationGroupPolicyCommand: (input: DeleteInvestigationGroupPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
26
|
-
/**
|
|
27
|
-
* serializeAws_restJson1GetInvestigationGroupCommand
|
|
28
|
-
*/
|
|
29
|
-
export declare const se_GetInvestigationGroupCommand: (input: GetInvestigationGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
30
|
-
/**
|
|
31
|
-
* serializeAws_restJson1GetInvestigationGroupPolicyCommand
|
|
32
|
-
*/
|
|
33
|
-
export declare const se_GetInvestigationGroupPolicyCommand: (input: GetInvestigationGroupPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
34
|
-
/**
|
|
35
|
-
* serializeAws_restJson1ListInvestigationGroupsCommand
|
|
36
|
-
*/
|
|
37
|
-
export declare const se_ListInvestigationGroupsCommand: (input: ListInvestigationGroupsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
38
|
-
/**
|
|
39
|
-
* serializeAws_restJson1ListTagsForResourceCommand
|
|
40
|
-
*/
|
|
41
|
-
export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
42
|
-
/**
|
|
43
|
-
* serializeAws_restJson1PutInvestigationGroupPolicyCommand
|
|
44
|
-
*/
|
|
45
|
-
export declare const se_PutInvestigationGroupPolicyCommand: (input: PutInvestigationGroupPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
46
|
-
/**
|
|
47
|
-
* serializeAws_restJson1TagResourceCommand
|
|
48
|
-
*/
|
|
49
|
-
export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
50
|
-
/**
|
|
51
|
-
* serializeAws_restJson1UntagResourceCommand
|
|
52
|
-
*/
|
|
53
|
-
export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
54
|
-
/**
|
|
55
|
-
* serializeAws_restJson1UpdateInvestigationGroupCommand
|
|
56
|
-
*/
|
|
57
|
-
export declare const se_UpdateInvestigationGroupCommand: (input: UpdateInvestigationGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
58
|
-
/**
|
|
59
|
-
* deserializeAws_restJson1CreateInvestigationGroupCommand
|
|
60
|
-
*/
|
|
61
|
-
export declare const de_CreateInvestigationGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateInvestigationGroupCommandOutput>;
|
|
62
|
-
/**
|
|
63
|
-
* deserializeAws_restJson1DeleteInvestigationGroupCommand
|
|
64
|
-
*/
|
|
65
|
-
export declare const de_DeleteInvestigationGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteInvestigationGroupCommandOutput>;
|
|
66
|
-
/**
|
|
67
|
-
* deserializeAws_restJson1DeleteInvestigationGroupPolicyCommand
|
|
68
|
-
*/
|
|
69
|
-
export declare const de_DeleteInvestigationGroupPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteInvestigationGroupPolicyCommandOutput>;
|
|
70
|
-
/**
|
|
71
|
-
* deserializeAws_restJson1GetInvestigationGroupCommand
|
|
72
|
-
*/
|
|
73
|
-
export declare const de_GetInvestigationGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetInvestigationGroupCommandOutput>;
|
|
74
|
-
/**
|
|
75
|
-
* deserializeAws_restJson1GetInvestigationGroupPolicyCommand
|
|
76
|
-
*/
|
|
77
|
-
export declare const de_GetInvestigationGroupPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetInvestigationGroupPolicyCommandOutput>;
|
|
78
|
-
/**
|
|
79
|
-
* deserializeAws_restJson1ListInvestigationGroupsCommand
|
|
80
|
-
*/
|
|
81
|
-
export declare const de_ListInvestigationGroupsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListInvestigationGroupsCommandOutput>;
|
|
82
|
-
/**
|
|
83
|
-
* deserializeAws_restJson1ListTagsForResourceCommand
|
|
84
|
-
*/
|
|
85
|
-
export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
86
|
-
/**
|
|
87
|
-
* deserializeAws_restJson1PutInvestigationGroupPolicyCommand
|
|
88
|
-
*/
|
|
89
|
-
export declare const de_PutInvestigationGroupPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutInvestigationGroupPolicyCommandOutput>;
|
|
90
|
-
/**
|
|
91
|
-
* deserializeAws_restJson1TagResourceCommand
|
|
92
|
-
*/
|
|
93
|
-
export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
94
|
-
/**
|
|
95
|
-
* deserializeAws_restJson1UntagResourceCommand
|
|
96
|
-
*/
|
|
97
|
-
export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
98
|
-
/**
|
|
99
|
-
* deserializeAws_restJson1UpdateInvestigationGroupCommand
|
|
100
|
-
*/
|
|
101
|
-
export declare const de_UpdateInvestigationGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateInvestigationGroupCommandOutput>;
|