@aws-sdk/client-aiops 3.901.0 → 3.907.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 +876 -1033
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,1077 +1,920 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "aiops",
|
|
25
|
+
});
|
|
10
26
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
32
|
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
AIOps: () => AIOps,
|
|
25
|
-
AIOpsClient: () => AIOpsClient,
|
|
26
|
-
AIOpsServiceException: () => AIOpsServiceException,
|
|
27
|
-
AccessDeniedException: () => AccessDeniedException,
|
|
28
|
-
ConflictException: () => ConflictException,
|
|
29
|
-
CreateInvestigationGroupCommand: () => CreateInvestigationGroupCommand,
|
|
30
|
-
DeleteInvestigationGroupCommand: () => DeleteInvestigationGroupCommand,
|
|
31
|
-
DeleteInvestigationGroupPolicyCommand: () => DeleteInvestigationGroupPolicyCommand,
|
|
32
|
-
EncryptionConfigurationType: () => EncryptionConfigurationType,
|
|
33
|
-
ForbiddenException: () => ForbiddenException,
|
|
34
|
-
GetInvestigationGroupCommand: () => GetInvestigationGroupCommand,
|
|
35
|
-
GetInvestigationGroupPolicyCommand: () => GetInvestigationGroupPolicyCommand,
|
|
36
|
-
InternalServerException: () => InternalServerException,
|
|
37
|
-
ListInvestigationGroupsCommand: () => ListInvestigationGroupsCommand,
|
|
38
|
-
ListInvestigationGroupsInputFilterSensitiveLog: () => ListInvestigationGroupsInputFilterSensitiveLog,
|
|
39
|
-
ListInvestigationGroupsOutputFilterSensitiveLog: () => ListInvestigationGroupsOutputFilterSensitiveLog,
|
|
40
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
41
|
-
PutInvestigationGroupPolicyCommand: () => PutInvestigationGroupPolicyCommand,
|
|
42
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
43
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
44
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
45
|
-
ThrottlingException: () => ThrottlingException,
|
|
46
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
47
|
-
UpdateInvestigationGroupCommand: () => UpdateInvestigationGroupCommand,
|
|
48
|
-
ValidationException: () => ValidationException,
|
|
49
|
-
__Client: () => import_smithy_client.Client,
|
|
50
|
-
paginateListInvestigationGroups: () => paginateListInvestigationGroups
|
|
51
|
-
});
|
|
52
|
-
module.exports = __toCommonJS(index_exports);
|
|
53
|
-
|
|
54
|
-
// src/AIOpsClient.ts
|
|
55
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
56
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
57
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
58
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
59
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
60
|
-
var import_core = require("@smithy/core");
|
|
61
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
62
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
63
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
64
33
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
80
71
|
};
|
|
81
72
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
88
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
89
78
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
79
|
+
class AIOpsClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultAIOpsHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
118
107
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
124
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
125
|
-
credentials: config.credentials()
|
|
126
|
-
};
|
|
127
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
128
|
-
|
|
129
|
-
// src/runtimeExtensions.ts
|
|
130
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
131
|
-
const extensionConfiguration = Object.assign(
|
|
132
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
133
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
134
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
135
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
136
|
-
);
|
|
137
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
138
|
-
return Object.assign(
|
|
139
|
-
runtimeConfig,
|
|
140
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
141
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
142
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
143
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
144
|
-
);
|
|
145
|
-
}, "resolveRuntimeExtensions");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
146
112
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
113
|
+
class AIOpsServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, AIOpsServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class AccessDeniedException extends AIOpsServiceException {
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "AccessDeniedException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
class ConflictException extends AIOpsServiceException {
|
|
133
|
+
name = "ConflictException";
|
|
134
|
+
$fault = "client";
|
|
135
|
+
constructor(opts) {
|
|
136
|
+
super({
|
|
137
|
+
name: "ConflictException",
|
|
138
|
+
$fault: "client",
|
|
139
|
+
...opts,
|
|
140
|
+
});
|
|
141
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
class ForbiddenException extends AIOpsServiceException {
|
|
145
|
+
name = "ForbiddenException";
|
|
146
|
+
$fault = "client";
|
|
147
|
+
constructor(opts) {
|
|
148
|
+
super({
|
|
149
|
+
name: "ForbiddenException",
|
|
150
|
+
$fault: "client",
|
|
151
|
+
...opts,
|
|
152
|
+
});
|
|
153
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
class InternalServerException extends AIOpsServiceException {
|
|
157
|
+
name = "InternalServerException";
|
|
158
|
+
$fault = "server";
|
|
159
|
+
constructor(opts) {
|
|
160
|
+
super({
|
|
161
|
+
name: "InternalServerException",
|
|
162
|
+
$fault: "server",
|
|
163
|
+
...opts,
|
|
164
|
+
});
|
|
165
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
const EncryptionConfigurationType = {
|
|
169
|
+
AWS_OWNED_KEY: "AWS_OWNED_KEY",
|
|
170
|
+
CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY",
|
|
193
171
|
};
|
|
172
|
+
class ResourceNotFoundException extends AIOpsServiceException {
|
|
173
|
+
name = "ResourceNotFoundException";
|
|
174
|
+
$fault = "client";
|
|
175
|
+
constructor(opts) {
|
|
176
|
+
super({
|
|
177
|
+
name: "ResourceNotFoundException",
|
|
178
|
+
$fault: "client",
|
|
179
|
+
...opts,
|
|
180
|
+
});
|
|
181
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
class ServiceQuotaExceededException extends AIOpsServiceException {
|
|
185
|
+
name = "ServiceQuotaExceededException";
|
|
186
|
+
$fault = "client";
|
|
187
|
+
resourceId;
|
|
188
|
+
resourceType;
|
|
189
|
+
serviceCode;
|
|
190
|
+
quotaCode;
|
|
191
|
+
constructor(opts) {
|
|
192
|
+
super({
|
|
193
|
+
name: "ServiceQuotaExceededException",
|
|
194
|
+
$fault: "client",
|
|
195
|
+
...opts,
|
|
196
|
+
});
|
|
197
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
198
|
+
this.resourceId = opts.resourceId;
|
|
199
|
+
this.resourceType = opts.resourceType;
|
|
200
|
+
this.serviceCode = opts.serviceCode;
|
|
201
|
+
this.quotaCode = opts.quotaCode;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
class ThrottlingException extends AIOpsServiceException {
|
|
205
|
+
name = "ThrottlingException";
|
|
206
|
+
$fault = "client";
|
|
207
|
+
constructor(opts) {
|
|
208
|
+
super({
|
|
209
|
+
name: "ThrottlingException",
|
|
210
|
+
$fault: "client",
|
|
211
|
+
...opts,
|
|
212
|
+
});
|
|
213
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
class ValidationException extends AIOpsServiceException {
|
|
217
|
+
name = "ValidationException";
|
|
218
|
+
$fault = "client";
|
|
219
|
+
constructor(opts) {
|
|
220
|
+
super({
|
|
221
|
+
name: "ValidationException",
|
|
222
|
+
$fault: "client",
|
|
223
|
+
...opts,
|
|
224
|
+
});
|
|
225
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
const ListInvestigationGroupsInputFilterSensitiveLog = (obj) => ({
|
|
229
|
+
...obj,
|
|
230
|
+
...(obj.nextToken && { nextToken: smithyClient.SENSITIVE_STRING }),
|
|
231
|
+
});
|
|
232
|
+
const ListInvestigationGroupsOutputFilterSensitiveLog = (obj) => ({
|
|
233
|
+
...obj,
|
|
234
|
+
...(obj.nextToken && { nextToken: smithyClient.SENSITIVE_STRING }),
|
|
235
|
+
});
|
|
194
236
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
* @internal
|
|
216
|
-
*/
|
|
217
|
-
constructor(options) {
|
|
218
|
-
super(options);
|
|
219
|
-
Object.setPrototypeOf(this, _AIOpsServiceException.prototype);
|
|
220
|
-
}
|
|
237
|
+
const se_CreateInvestigationGroupCommand = async (input, context) => {
|
|
238
|
+
const b = core.requestBuilder(input, context);
|
|
239
|
+
const headers = {
|
|
240
|
+
"content-type": "application/json",
|
|
241
|
+
};
|
|
242
|
+
b.bp("/investigationGroups");
|
|
243
|
+
let body;
|
|
244
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
245
|
+
chatbotNotificationChannel: (_) => smithyClient._json(_),
|
|
246
|
+
crossAccountConfigurations: (_) => smithyClient._json(_),
|
|
247
|
+
encryptionConfiguration: (_) => smithyClient._json(_),
|
|
248
|
+
isCloudTrailEventHistoryEnabled: [],
|
|
249
|
+
name: [],
|
|
250
|
+
retentionInDays: [],
|
|
251
|
+
roleArn: [],
|
|
252
|
+
tagKeyBoundaries: (_) => smithyClient._json(_),
|
|
253
|
+
tags: (_) => smithyClient._json(_),
|
|
254
|
+
}));
|
|
255
|
+
b.m("POST").h(headers).b(body);
|
|
256
|
+
return b.build();
|
|
221
257
|
};
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
258
|
+
const se_DeleteInvestigationGroupCommand = async (input, context) => {
|
|
259
|
+
const b = core.requestBuilder(input, context);
|
|
260
|
+
const headers = {};
|
|
261
|
+
b.bp("/investigationGroups/{identifier}");
|
|
262
|
+
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
263
|
+
let body;
|
|
264
|
+
b.m("DELETE").h(headers).b(body);
|
|
265
|
+
return b.build();
|
|
266
|
+
};
|
|
267
|
+
const se_DeleteInvestigationGroupPolicyCommand = async (input, context) => {
|
|
268
|
+
const b = core.requestBuilder(input, context);
|
|
269
|
+
const headers = {};
|
|
270
|
+
b.bp("/investigationGroups/{identifier}/policy");
|
|
271
|
+
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
272
|
+
let body;
|
|
273
|
+
b.m("DELETE").h(headers).b(body);
|
|
274
|
+
return b.build();
|
|
275
|
+
};
|
|
276
|
+
const se_GetInvestigationGroupCommand = async (input, context) => {
|
|
277
|
+
const b = core.requestBuilder(input, context);
|
|
278
|
+
const headers = {};
|
|
279
|
+
b.bp("/investigationGroups/{identifier}");
|
|
280
|
+
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
281
|
+
let body;
|
|
282
|
+
b.m("GET").h(headers).b(body);
|
|
283
|
+
return b.build();
|
|
284
|
+
};
|
|
285
|
+
const se_GetInvestigationGroupPolicyCommand = async (input, context) => {
|
|
286
|
+
const b = core.requestBuilder(input, context);
|
|
287
|
+
const headers = {};
|
|
288
|
+
b.bp("/investigationGroups/{identifier}/policy");
|
|
289
|
+
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
290
|
+
let body;
|
|
291
|
+
b.m("GET").h(headers).b(body);
|
|
292
|
+
return b.build();
|
|
293
|
+
};
|
|
294
|
+
const se_ListInvestigationGroupsCommand = async (input, context) => {
|
|
295
|
+
const b = core.requestBuilder(input, context);
|
|
296
|
+
const headers = {};
|
|
297
|
+
b.bp("/investigationGroups");
|
|
298
|
+
const query = smithyClient.map({
|
|
299
|
+
[_nT]: [, input[_nT]],
|
|
300
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
239
301
|
});
|
|
240
|
-
|
|
241
|
-
|
|
302
|
+
let body;
|
|
303
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
304
|
+
return b.build();
|
|
242
305
|
};
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
306
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
307
|
+
const b = core.requestBuilder(input, context);
|
|
308
|
+
const headers = {};
|
|
309
|
+
b.bp("/tags/{resourceArn}");
|
|
310
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
311
|
+
let body;
|
|
312
|
+
b.m("GET").h(headers).b(body);
|
|
313
|
+
return b.build();
|
|
314
|
+
};
|
|
315
|
+
const se_PutInvestigationGroupPolicyCommand = async (input, context) => {
|
|
316
|
+
const b = core.requestBuilder(input, context);
|
|
317
|
+
const headers = {
|
|
318
|
+
"content-type": "application/json",
|
|
319
|
+
};
|
|
320
|
+
b.bp("/investigationGroups/{identifier}/policy");
|
|
321
|
+
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
322
|
+
let body;
|
|
323
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
324
|
+
policy: [],
|
|
325
|
+
}));
|
|
326
|
+
b.m("POST").h(headers).b(body);
|
|
327
|
+
return b.build();
|
|
328
|
+
};
|
|
329
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
330
|
+
const b = core.requestBuilder(input, context);
|
|
331
|
+
const headers = {
|
|
332
|
+
"content-type": "application/json",
|
|
333
|
+
};
|
|
334
|
+
b.bp("/tags/{resourceArn}");
|
|
335
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
336
|
+
let body;
|
|
337
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
338
|
+
tags: (_) => smithyClient._json(_),
|
|
339
|
+
}));
|
|
340
|
+
b.m("POST").h(headers).b(body);
|
|
341
|
+
return b.build();
|
|
342
|
+
};
|
|
343
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
344
|
+
const b = core.requestBuilder(input, context);
|
|
345
|
+
const headers = {};
|
|
346
|
+
b.bp("/tags/{resourceArn}");
|
|
347
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
348
|
+
const query = smithyClient.map({
|
|
349
|
+
[_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
257
350
|
});
|
|
258
|
-
|
|
259
|
-
|
|
351
|
+
let body;
|
|
352
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
353
|
+
return b.build();
|
|
354
|
+
};
|
|
355
|
+
const se_UpdateInvestigationGroupCommand = async (input, context) => {
|
|
356
|
+
const b = core.requestBuilder(input, context);
|
|
357
|
+
const headers = {
|
|
358
|
+
"content-type": "application/json",
|
|
359
|
+
};
|
|
360
|
+
b.bp("/investigationGroups/{identifier}");
|
|
361
|
+
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
362
|
+
let body;
|
|
363
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
364
|
+
chatbotNotificationChannel: (_) => smithyClient._json(_),
|
|
365
|
+
crossAccountConfigurations: (_) => smithyClient._json(_),
|
|
366
|
+
encryptionConfiguration: (_) => smithyClient._json(_),
|
|
367
|
+
isCloudTrailEventHistoryEnabled: [],
|
|
368
|
+
roleArn: [],
|
|
369
|
+
tagKeyBoundaries: (_) => smithyClient._json(_),
|
|
370
|
+
}));
|
|
371
|
+
b.m("PATCH").h(headers).b(body);
|
|
372
|
+
return b.build();
|
|
260
373
|
};
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
super({
|
|
272
|
-
name: "ForbiddenException",
|
|
273
|
-
$fault: "client",
|
|
274
|
-
...opts
|
|
374
|
+
const de_CreateInvestigationGroupCommand = async (output, context) => {
|
|
375
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
376
|
+
return de_CommandError(output, context);
|
|
377
|
+
}
|
|
378
|
+
const contents = smithyClient.map({
|
|
379
|
+
$metadata: deserializeMetadata(output),
|
|
380
|
+
});
|
|
381
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
382
|
+
const doc = smithyClient.take(data, {
|
|
383
|
+
arn: smithyClient.expectString,
|
|
275
384
|
});
|
|
276
|
-
Object.
|
|
277
|
-
|
|
385
|
+
Object.assign(contents, doc);
|
|
386
|
+
return contents;
|
|
278
387
|
};
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* @internal
|
|
287
|
-
*/
|
|
288
|
-
constructor(opts) {
|
|
289
|
-
super({
|
|
290
|
-
name: "InternalServerException",
|
|
291
|
-
$fault: "server",
|
|
292
|
-
...opts
|
|
388
|
+
const de_DeleteInvestigationGroupCommand = async (output, context) => {
|
|
389
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
390
|
+
return de_CommandError(output, context);
|
|
391
|
+
}
|
|
392
|
+
const contents = smithyClient.map({
|
|
393
|
+
$metadata: deserializeMetadata(output),
|
|
293
394
|
});
|
|
294
|
-
|
|
295
|
-
|
|
395
|
+
await smithyClient.collectBody(output.body, context);
|
|
396
|
+
return contents;
|
|
296
397
|
};
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
398
|
+
const de_DeleteInvestigationGroupPolicyCommand = async (output, context) => {
|
|
399
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
400
|
+
return de_CommandError(output, context);
|
|
401
|
+
}
|
|
402
|
+
const contents = smithyClient.map({
|
|
403
|
+
$metadata: deserializeMetadata(output),
|
|
404
|
+
});
|
|
405
|
+
await smithyClient.collectBody(output.body, context);
|
|
406
|
+
return contents;
|
|
300
407
|
};
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* @internal
|
|
309
|
-
*/
|
|
310
|
-
constructor(opts) {
|
|
311
|
-
super({
|
|
312
|
-
name: "ResourceNotFoundException",
|
|
313
|
-
$fault: "client",
|
|
314
|
-
...opts
|
|
408
|
+
const de_GetInvestigationGroupCommand = async (output, context) => {
|
|
409
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
410
|
+
return de_CommandError(output, context);
|
|
411
|
+
}
|
|
412
|
+
const contents = smithyClient.map({
|
|
413
|
+
$metadata: deserializeMetadata(output),
|
|
315
414
|
});
|
|
316
|
-
|
|
317
|
-
|
|
415
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
416
|
+
const doc = smithyClient.take(data, {
|
|
417
|
+
arn: smithyClient.expectString,
|
|
418
|
+
chatbotNotificationChannel: smithyClient._json,
|
|
419
|
+
createdAt: smithyClient.expectLong,
|
|
420
|
+
createdBy: smithyClient.expectString,
|
|
421
|
+
crossAccountConfigurations: smithyClient._json,
|
|
422
|
+
encryptionConfiguration: smithyClient._json,
|
|
423
|
+
isCloudTrailEventHistoryEnabled: smithyClient.expectBoolean,
|
|
424
|
+
lastModifiedAt: smithyClient.expectLong,
|
|
425
|
+
lastModifiedBy: smithyClient.expectString,
|
|
426
|
+
name: smithyClient.expectString,
|
|
427
|
+
retentionInDays: smithyClient.expectLong,
|
|
428
|
+
roleArn: smithyClient.expectString,
|
|
429
|
+
tagKeyBoundaries: smithyClient._json,
|
|
430
|
+
});
|
|
431
|
+
Object.assign(contents, doc);
|
|
432
|
+
return contents;
|
|
318
433
|
};
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* <p>The resource that caused the quota exception.</p>
|
|
327
|
-
* @public
|
|
328
|
-
*/
|
|
329
|
-
resourceId;
|
|
330
|
-
/**
|
|
331
|
-
* <p>The type of resource that caused the quota exception.</p>
|
|
332
|
-
* @public
|
|
333
|
-
*/
|
|
334
|
-
resourceType;
|
|
335
|
-
/**
|
|
336
|
-
* <p>This name of the service associated with the error.</p>
|
|
337
|
-
* @public
|
|
338
|
-
*/
|
|
339
|
-
serviceCode;
|
|
340
|
-
/**
|
|
341
|
-
* <p>This quota that was exceeded.</p>
|
|
342
|
-
* @public
|
|
343
|
-
*/
|
|
344
|
-
quotaCode;
|
|
345
|
-
/**
|
|
346
|
-
* @internal
|
|
347
|
-
*/
|
|
348
|
-
constructor(opts) {
|
|
349
|
-
super({
|
|
350
|
-
name: "ServiceQuotaExceededException",
|
|
351
|
-
$fault: "client",
|
|
352
|
-
...opts
|
|
434
|
+
const de_GetInvestigationGroupPolicyCommand = async (output, context) => {
|
|
435
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
436
|
+
return de_CommandError(output, context);
|
|
437
|
+
}
|
|
438
|
+
const contents = smithyClient.map({
|
|
439
|
+
$metadata: deserializeMetadata(output),
|
|
353
440
|
});
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
441
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
442
|
+
const doc = smithyClient.take(data, {
|
|
443
|
+
investigationGroupArn: smithyClient.expectString,
|
|
444
|
+
policy: smithyClient.expectString,
|
|
445
|
+
});
|
|
446
|
+
Object.assign(contents, doc);
|
|
447
|
+
return contents;
|
|
360
448
|
};
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* @internal
|
|
369
|
-
*/
|
|
370
|
-
constructor(opts) {
|
|
371
|
-
super({
|
|
372
|
-
name: "ThrottlingException",
|
|
373
|
-
$fault: "client",
|
|
374
|
-
...opts
|
|
449
|
+
const de_ListInvestigationGroupsCommand = async (output, context) => {
|
|
450
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
451
|
+
return de_CommandError(output, context);
|
|
452
|
+
}
|
|
453
|
+
const contents = smithyClient.map({
|
|
454
|
+
$metadata: deserializeMetadata(output),
|
|
375
455
|
});
|
|
376
|
-
|
|
377
|
-
|
|
456
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
457
|
+
const doc = smithyClient.take(data, {
|
|
458
|
+
investigationGroups: smithyClient._json,
|
|
459
|
+
nextToken: smithyClient.expectString,
|
|
460
|
+
});
|
|
461
|
+
Object.assign(contents, doc);
|
|
462
|
+
return contents;
|
|
378
463
|
};
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* @internal
|
|
387
|
-
*/
|
|
388
|
-
constructor(opts) {
|
|
389
|
-
super({
|
|
390
|
-
name: "ValidationException",
|
|
391
|
-
$fault: "client",
|
|
392
|
-
...opts
|
|
464
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
465
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
466
|
+
return de_CommandError(output, context);
|
|
467
|
+
}
|
|
468
|
+
const contents = smithyClient.map({
|
|
469
|
+
$metadata: deserializeMetadata(output),
|
|
393
470
|
});
|
|
394
|
-
|
|
395
|
-
|
|
471
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
472
|
+
const doc = smithyClient.take(data, {
|
|
473
|
+
tags: smithyClient._json,
|
|
474
|
+
});
|
|
475
|
+
Object.assign(contents, doc);
|
|
476
|
+
return contents;
|
|
396
477
|
};
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
"content-type": "application/json"
|
|
411
|
-
};
|
|
412
|
-
b.bp("/investigationGroups");
|
|
413
|
-
let body;
|
|
414
|
-
body = JSON.stringify(
|
|
415
|
-
(0, import_smithy_client.take)(input, {
|
|
416
|
-
chatbotNotificationChannel: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "chatbotNotificationChannel"),
|
|
417
|
-
crossAccountConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "crossAccountConfigurations"),
|
|
418
|
-
encryptionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfiguration"),
|
|
419
|
-
isCloudTrailEventHistoryEnabled: [],
|
|
420
|
-
name: [],
|
|
421
|
-
retentionInDays: [],
|
|
422
|
-
roleArn: [],
|
|
423
|
-
tagKeyBoundaries: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tagKeyBoundaries"),
|
|
424
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
425
|
-
})
|
|
426
|
-
);
|
|
427
|
-
b.m("POST").h(headers).b(body);
|
|
428
|
-
return b.build();
|
|
429
|
-
}, "se_CreateInvestigationGroupCommand");
|
|
430
|
-
var se_DeleteInvestigationGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
431
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
432
|
-
const headers = {};
|
|
433
|
-
b.bp("/investigationGroups/{identifier}");
|
|
434
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
435
|
-
let body;
|
|
436
|
-
b.m("DELETE").h(headers).b(body);
|
|
437
|
-
return b.build();
|
|
438
|
-
}, "se_DeleteInvestigationGroupCommand");
|
|
439
|
-
var se_DeleteInvestigationGroupPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
440
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
441
|
-
const headers = {};
|
|
442
|
-
b.bp("/investigationGroups/{identifier}/policy");
|
|
443
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
444
|
-
let body;
|
|
445
|
-
b.m("DELETE").h(headers).b(body);
|
|
446
|
-
return b.build();
|
|
447
|
-
}, "se_DeleteInvestigationGroupPolicyCommand");
|
|
448
|
-
var se_GetInvestigationGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
449
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
450
|
-
const headers = {};
|
|
451
|
-
b.bp("/investigationGroups/{identifier}");
|
|
452
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
453
|
-
let body;
|
|
454
|
-
b.m("GET").h(headers).b(body);
|
|
455
|
-
return b.build();
|
|
456
|
-
}, "se_GetInvestigationGroupCommand");
|
|
457
|
-
var se_GetInvestigationGroupPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
458
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
459
|
-
const headers = {};
|
|
460
|
-
b.bp("/investigationGroups/{identifier}/policy");
|
|
461
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
462
|
-
let body;
|
|
463
|
-
b.m("GET").h(headers).b(body);
|
|
464
|
-
return b.build();
|
|
465
|
-
}, "se_GetInvestigationGroupPolicyCommand");
|
|
466
|
-
var se_ListInvestigationGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
467
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
468
|
-
const headers = {};
|
|
469
|
-
b.bp("/investigationGroups");
|
|
470
|
-
const query = (0, import_smithy_client.map)({
|
|
471
|
-
[_nT]: [, input[_nT]],
|
|
472
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
473
|
-
});
|
|
474
|
-
let body;
|
|
475
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
476
|
-
return b.build();
|
|
477
|
-
}, "se_ListInvestigationGroupsCommand");
|
|
478
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
479
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
480
|
-
const headers = {};
|
|
481
|
-
b.bp("/tags/{resourceArn}");
|
|
482
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
483
|
-
let body;
|
|
484
|
-
b.m("GET").h(headers).b(body);
|
|
485
|
-
return b.build();
|
|
486
|
-
}, "se_ListTagsForResourceCommand");
|
|
487
|
-
var se_PutInvestigationGroupPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
488
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
489
|
-
const headers = {
|
|
490
|
-
"content-type": "application/json"
|
|
491
|
-
};
|
|
492
|
-
b.bp("/investigationGroups/{identifier}/policy");
|
|
493
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
494
|
-
let body;
|
|
495
|
-
body = JSON.stringify(
|
|
496
|
-
(0, import_smithy_client.take)(input, {
|
|
497
|
-
policy: []
|
|
498
|
-
})
|
|
499
|
-
);
|
|
500
|
-
b.m("POST").h(headers).b(body);
|
|
501
|
-
return b.build();
|
|
502
|
-
}, "se_PutInvestigationGroupPolicyCommand");
|
|
503
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
504
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
505
|
-
const headers = {
|
|
506
|
-
"content-type": "application/json"
|
|
507
|
-
};
|
|
508
|
-
b.bp("/tags/{resourceArn}");
|
|
509
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
510
|
-
let body;
|
|
511
|
-
body = JSON.stringify(
|
|
512
|
-
(0, import_smithy_client.take)(input, {
|
|
513
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
514
|
-
})
|
|
515
|
-
);
|
|
516
|
-
b.m("POST").h(headers).b(body);
|
|
517
|
-
return b.build();
|
|
518
|
-
}, "se_TagResourceCommand");
|
|
519
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
520
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
521
|
-
const headers = {};
|
|
522
|
-
b.bp("/tags/{resourceArn}");
|
|
523
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
524
|
-
const query = (0, import_smithy_client.map)({
|
|
525
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
|
|
526
|
-
});
|
|
527
|
-
let body;
|
|
528
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
529
|
-
return b.build();
|
|
530
|
-
}, "se_UntagResourceCommand");
|
|
531
|
-
var se_UpdateInvestigationGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
532
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
533
|
-
const headers = {
|
|
534
|
-
"content-type": "application/json"
|
|
535
|
-
};
|
|
536
|
-
b.bp("/investigationGroups/{identifier}");
|
|
537
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
538
|
-
let body;
|
|
539
|
-
body = JSON.stringify(
|
|
540
|
-
(0, import_smithy_client.take)(input, {
|
|
541
|
-
chatbotNotificationChannel: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "chatbotNotificationChannel"),
|
|
542
|
-
crossAccountConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "crossAccountConfigurations"),
|
|
543
|
-
encryptionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfiguration"),
|
|
544
|
-
isCloudTrailEventHistoryEnabled: [],
|
|
545
|
-
roleArn: [],
|
|
546
|
-
tagKeyBoundaries: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tagKeyBoundaries")
|
|
547
|
-
})
|
|
548
|
-
);
|
|
549
|
-
b.m("PATCH").h(headers).b(body);
|
|
550
|
-
return b.build();
|
|
551
|
-
}, "se_UpdateInvestigationGroupCommand");
|
|
552
|
-
var de_CreateInvestigationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
553
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
554
|
-
return de_CommandError(output, context);
|
|
555
|
-
}
|
|
556
|
-
const contents = (0, import_smithy_client.map)({
|
|
557
|
-
$metadata: deserializeMetadata(output)
|
|
558
|
-
});
|
|
559
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
560
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
561
|
-
arn: import_smithy_client.expectString
|
|
562
|
-
});
|
|
563
|
-
Object.assign(contents, doc);
|
|
564
|
-
return contents;
|
|
565
|
-
}, "de_CreateInvestigationGroupCommand");
|
|
566
|
-
var de_DeleteInvestigationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
567
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
568
|
-
return de_CommandError(output, context);
|
|
569
|
-
}
|
|
570
|
-
const contents = (0, import_smithy_client.map)({
|
|
571
|
-
$metadata: deserializeMetadata(output)
|
|
572
|
-
});
|
|
573
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
574
|
-
return contents;
|
|
575
|
-
}, "de_DeleteInvestigationGroupCommand");
|
|
576
|
-
var de_DeleteInvestigationGroupPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
577
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
578
|
-
return de_CommandError(output, context);
|
|
579
|
-
}
|
|
580
|
-
const contents = (0, import_smithy_client.map)({
|
|
581
|
-
$metadata: deserializeMetadata(output)
|
|
582
|
-
});
|
|
583
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
584
|
-
return contents;
|
|
585
|
-
}, "de_DeleteInvestigationGroupPolicyCommand");
|
|
586
|
-
var de_GetInvestigationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
587
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
588
|
-
return de_CommandError(output, context);
|
|
589
|
-
}
|
|
590
|
-
const contents = (0, import_smithy_client.map)({
|
|
591
|
-
$metadata: deserializeMetadata(output)
|
|
592
|
-
});
|
|
593
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
594
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
595
|
-
arn: import_smithy_client.expectString,
|
|
596
|
-
chatbotNotificationChannel: import_smithy_client._json,
|
|
597
|
-
createdAt: import_smithy_client.expectLong,
|
|
598
|
-
createdBy: import_smithy_client.expectString,
|
|
599
|
-
crossAccountConfigurations: import_smithy_client._json,
|
|
600
|
-
encryptionConfiguration: import_smithy_client._json,
|
|
601
|
-
isCloudTrailEventHistoryEnabled: import_smithy_client.expectBoolean,
|
|
602
|
-
lastModifiedAt: import_smithy_client.expectLong,
|
|
603
|
-
lastModifiedBy: import_smithy_client.expectString,
|
|
604
|
-
name: import_smithy_client.expectString,
|
|
605
|
-
retentionInDays: import_smithy_client.expectLong,
|
|
606
|
-
roleArn: import_smithy_client.expectString,
|
|
607
|
-
tagKeyBoundaries: import_smithy_client._json
|
|
608
|
-
});
|
|
609
|
-
Object.assign(contents, doc);
|
|
610
|
-
return contents;
|
|
611
|
-
}, "de_GetInvestigationGroupCommand");
|
|
612
|
-
var de_GetInvestigationGroupPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
613
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
614
|
-
return de_CommandError(output, context);
|
|
615
|
-
}
|
|
616
|
-
const contents = (0, import_smithy_client.map)({
|
|
617
|
-
$metadata: deserializeMetadata(output)
|
|
618
|
-
});
|
|
619
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
620
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
621
|
-
investigationGroupArn: import_smithy_client.expectString,
|
|
622
|
-
policy: import_smithy_client.expectString
|
|
623
|
-
});
|
|
624
|
-
Object.assign(contents, doc);
|
|
625
|
-
return contents;
|
|
626
|
-
}, "de_GetInvestigationGroupPolicyCommand");
|
|
627
|
-
var de_ListInvestigationGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
628
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
629
|
-
return de_CommandError(output, context);
|
|
630
|
-
}
|
|
631
|
-
const contents = (0, import_smithy_client.map)({
|
|
632
|
-
$metadata: deserializeMetadata(output)
|
|
633
|
-
});
|
|
634
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
635
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
636
|
-
investigationGroups: import_smithy_client._json,
|
|
637
|
-
nextToken: import_smithy_client.expectString
|
|
638
|
-
});
|
|
639
|
-
Object.assign(contents, doc);
|
|
640
|
-
return contents;
|
|
641
|
-
}, "de_ListInvestigationGroupsCommand");
|
|
642
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
643
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
644
|
-
return de_CommandError(output, context);
|
|
645
|
-
}
|
|
646
|
-
const contents = (0, import_smithy_client.map)({
|
|
647
|
-
$metadata: deserializeMetadata(output)
|
|
648
|
-
});
|
|
649
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
650
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
651
|
-
tags: import_smithy_client._json
|
|
652
|
-
});
|
|
653
|
-
Object.assign(contents, doc);
|
|
654
|
-
return contents;
|
|
655
|
-
}, "de_ListTagsForResourceCommand");
|
|
656
|
-
var de_PutInvestigationGroupPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
657
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
658
|
-
return de_CommandError(output, context);
|
|
659
|
-
}
|
|
660
|
-
const contents = (0, import_smithy_client.map)({
|
|
661
|
-
$metadata: deserializeMetadata(output)
|
|
662
|
-
});
|
|
663
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
664
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
665
|
-
investigationGroupArn: import_smithy_client.expectString
|
|
666
|
-
});
|
|
667
|
-
Object.assign(contents, doc);
|
|
668
|
-
return contents;
|
|
669
|
-
}, "de_PutInvestigationGroupPolicyCommand");
|
|
670
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
671
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
672
|
-
return de_CommandError(output, context);
|
|
673
|
-
}
|
|
674
|
-
const contents = (0, import_smithy_client.map)({
|
|
675
|
-
$metadata: deserializeMetadata(output)
|
|
676
|
-
});
|
|
677
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
678
|
-
return contents;
|
|
679
|
-
}, "de_TagResourceCommand");
|
|
680
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
681
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
|
-
return de_CommandError(output, context);
|
|
683
|
-
}
|
|
684
|
-
const contents = (0, import_smithy_client.map)({
|
|
685
|
-
$metadata: deserializeMetadata(output)
|
|
686
|
-
});
|
|
687
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
688
|
-
return contents;
|
|
689
|
-
}, "de_UntagResourceCommand");
|
|
690
|
-
var de_UpdateInvestigationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
691
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
692
|
-
return de_CommandError(output, context);
|
|
693
|
-
}
|
|
694
|
-
const contents = (0, import_smithy_client.map)({
|
|
695
|
-
$metadata: deserializeMetadata(output)
|
|
696
|
-
});
|
|
697
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
698
|
-
return contents;
|
|
699
|
-
}, "de_UpdateInvestigationGroupCommand");
|
|
700
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
701
|
-
const parsedOutput = {
|
|
702
|
-
...output,
|
|
703
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
704
|
-
};
|
|
705
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
706
|
-
switch (errorCode) {
|
|
707
|
-
case "AccessDeniedException":
|
|
708
|
-
case "com.amazonaws.aiops#AccessDeniedException":
|
|
709
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
710
|
-
case "ConflictException":
|
|
711
|
-
case "com.amazonaws.aiops#ConflictException":
|
|
712
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
713
|
-
case "ForbiddenException":
|
|
714
|
-
case "com.amazonaws.aiops#ForbiddenException":
|
|
715
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
716
|
-
case "InternalServerException":
|
|
717
|
-
case "com.amazonaws.aiops#InternalServerException":
|
|
718
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
719
|
-
case "ResourceNotFoundException":
|
|
720
|
-
case "com.amazonaws.aiops#ResourceNotFoundException":
|
|
721
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
722
|
-
case "ServiceQuotaExceededException":
|
|
723
|
-
case "com.amazonaws.aiops#ServiceQuotaExceededException":
|
|
724
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
725
|
-
case "ThrottlingException":
|
|
726
|
-
case "com.amazonaws.aiops#ThrottlingException":
|
|
727
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
728
|
-
case "ValidationException":
|
|
729
|
-
case "com.amazonaws.aiops#ValidationException":
|
|
730
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
731
|
-
default:
|
|
732
|
-
const parsedBody = parsedOutput.body;
|
|
733
|
-
return throwDefaultError({
|
|
734
|
-
output,
|
|
735
|
-
parsedBody,
|
|
736
|
-
errorCode
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
}, "de_CommandError");
|
|
740
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(AIOpsServiceException);
|
|
741
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
742
|
-
const contents = (0, import_smithy_client.map)({});
|
|
743
|
-
const data = parsedOutput.body;
|
|
744
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
745
|
-
message: import_smithy_client.expectString
|
|
746
|
-
});
|
|
747
|
-
Object.assign(contents, doc);
|
|
748
|
-
const exception = new AccessDeniedException({
|
|
749
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
750
|
-
...contents
|
|
751
|
-
});
|
|
752
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
753
|
-
}, "de_AccessDeniedExceptionRes");
|
|
754
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
755
|
-
const contents = (0, import_smithy_client.map)({});
|
|
756
|
-
const data = parsedOutput.body;
|
|
757
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
758
|
-
message: import_smithy_client.expectString
|
|
759
|
-
});
|
|
760
|
-
Object.assign(contents, doc);
|
|
761
|
-
const exception = new ConflictException({
|
|
762
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
763
|
-
...contents
|
|
764
|
-
});
|
|
765
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
766
|
-
}, "de_ConflictExceptionRes");
|
|
767
|
-
var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
768
|
-
const contents = (0, import_smithy_client.map)({});
|
|
769
|
-
const data = parsedOutput.body;
|
|
770
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
771
|
-
message: import_smithy_client.expectString
|
|
772
|
-
});
|
|
773
|
-
Object.assign(contents, doc);
|
|
774
|
-
const exception = new ForbiddenException({
|
|
775
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
776
|
-
...contents
|
|
777
|
-
});
|
|
778
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
779
|
-
}, "de_ForbiddenExceptionRes");
|
|
780
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
781
|
-
const contents = (0, import_smithy_client.map)({});
|
|
782
|
-
const data = parsedOutput.body;
|
|
783
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
784
|
-
message: import_smithy_client.expectString
|
|
785
|
-
});
|
|
786
|
-
Object.assign(contents, doc);
|
|
787
|
-
const exception = new InternalServerException({
|
|
788
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
789
|
-
...contents
|
|
790
|
-
});
|
|
791
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
792
|
-
}, "de_InternalServerExceptionRes");
|
|
793
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
794
|
-
const contents = (0, import_smithy_client.map)({});
|
|
795
|
-
const data = parsedOutput.body;
|
|
796
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
797
|
-
message: import_smithy_client.expectString
|
|
798
|
-
});
|
|
799
|
-
Object.assign(contents, doc);
|
|
800
|
-
const exception = new ResourceNotFoundException({
|
|
801
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
802
|
-
...contents
|
|
803
|
-
});
|
|
804
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
805
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
806
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
807
|
-
const contents = (0, import_smithy_client.map)({});
|
|
808
|
-
const data = parsedOutput.body;
|
|
809
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
810
|
-
message: import_smithy_client.expectString,
|
|
811
|
-
quotaCode: import_smithy_client.expectString,
|
|
812
|
-
resourceId: import_smithy_client.expectString,
|
|
813
|
-
resourceType: import_smithy_client.expectString,
|
|
814
|
-
serviceCode: import_smithy_client.expectString
|
|
815
|
-
});
|
|
816
|
-
Object.assign(contents, doc);
|
|
817
|
-
const exception = new ServiceQuotaExceededException({
|
|
818
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
819
|
-
...contents
|
|
820
|
-
});
|
|
821
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
822
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
823
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
824
|
-
const contents = (0, import_smithy_client.map)({});
|
|
825
|
-
const data = parsedOutput.body;
|
|
826
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
827
|
-
message: import_smithy_client.expectString
|
|
828
|
-
});
|
|
829
|
-
Object.assign(contents, doc);
|
|
830
|
-
const exception = new ThrottlingException({
|
|
831
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
832
|
-
...contents
|
|
833
|
-
});
|
|
834
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
835
|
-
}, "de_ThrottlingExceptionRes");
|
|
836
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
837
|
-
const contents = (0, import_smithy_client.map)({});
|
|
838
|
-
const data = parsedOutput.body;
|
|
839
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
840
|
-
message: import_smithy_client.expectString
|
|
841
|
-
});
|
|
842
|
-
Object.assign(contents, doc);
|
|
843
|
-
const exception = new ValidationException({
|
|
844
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
845
|
-
...contents
|
|
846
|
-
});
|
|
847
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
848
|
-
}, "de_ValidationExceptionRes");
|
|
849
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
850
|
-
httpStatusCode: output.statusCode,
|
|
851
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
852
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
853
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
854
|
-
}), "deserializeMetadata");
|
|
855
|
-
var _mR = "maxResults";
|
|
856
|
-
var _nT = "nextToken";
|
|
857
|
-
var _tK = "tagKeys";
|
|
858
|
-
|
|
859
|
-
// src/commands/CreateInvestigationGroupCommand.ts
|
|
860
|
-
var CreateInvestigationGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
861
|
-
return [
|
|
862
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
863
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
864
|
-
];
|
|
865
|
-
}).s("AIOps", "CreateInvestigationGroup", {}).n("AIOpsClient", "CreateInvestigationGroupCommand").f(void 0, void 0).ser(se_CreateInvestigationGroupCommand).de(de_CreateInvestigationGroupCommand).build() {
|
|
866
|
-
static {
|
|
867
|
-
__name(this, "CreateInvestigationGroupCommand");
|
|
868
|
-
}
|
|
478
|
+
const de_PutInvestigationGroupPolicyCommand = async (output, context) => {
|
|
479
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
480
|
+
return de_CommandError(output, context);
|
|
481
|
+
}
|
|
482
|
+
const contents = smithyClient.map({
|
|
483
|
+
$metadata: deserializeMetadata(output),
|
|
484
|
+
});
|
|
485
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
486
|
+
const doc = smithyClient.take(data, {
|
|
487
|
+
investigationGroupArn: smithyClient.expectString,
|
|
488
|
+
});
|
|
489
|
+
Object.assign(contents, doc);
|
|
490
|
+
return contents;
|
|
869
491
|
};
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
];
|
|
880
|
-
}).s("AIOps", "DeleteInvestigationGroup", {}).n("AIOpsClient", "DeleteInvestigationGroupCommand").f(void 0, void 0).ser(se_DeleteInvestigationGroupCommand).de(de_DeleteInvestigationGroupCommand).build() {
|
|
881
|
-
static {
|
|
882
|
-
__name(this, "DeleteInvestigationGroupCommand");
|
|
883
|
-
}
|
|
492
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
493
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
494
|
+
return de_CommandError(output, context);
|
|
495
|
+
}
|
|
496
|
+
const contents = smithyClient.map({
|
|
497
|
+
$metadata: deserializeMetadata(output),
|
|
498
|
+
});
|
|
499
|
+
await smithyClient.collectBody(output.body, context);
|
|
500
|
+
return contents;
|
|
884
501
|
};
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
];
|
|
895
|
-
}).s("AIOps", "DeleteInvestigationGroupPolicy", {}).n("AIOpsClient", "DeleteInvestigationGroupPolicyCommand").f(void 0, void 0).ser(se_DeleteInvestigationGroupPolicyCommand).de(de_DeleteInvestigationGroupPolicyCommand).build() {
|
|
896
|
-
static {
|
|
897
|
-
__name(this, "DeleteInvestigationGroupPolicyCommand");
|
|
898
|
-
}
|
|
502
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
503
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
504
|
+
return de_CommandError(output, context);
|
|
505
|
+
}
|
|
506
|
+
const contents = smithyClient.map({
|
|
507
|
+
$metadata: deserializeMetadata(output),
|
|
508
|
+
});
|
|
509
|
+
await smithyClient.collectBody(output.body, context);
|
|
510
|
+
return contents;
|
|
899
511
|
};
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
];
|
|
910
|
-
}).s("AIOps", "GetInvestigationGroup", {}).n("AIOpsClient", "GetInvestigationGroupCommand").f(void 0, void 0).ser(se_GetInvestigationGroupCommand).de(de_GetInvestigationGroupCommand).build() {
|
|
911
|
-
static {
|
|
912
|
-
__name(this, "GetInvestigationGroupCommand");
|
|
913
|
-
}
|
|
512
|
+
const de_UpdateInvestigationGroupCommand = async (output, context) => {
|
|
513
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
514
|
+
return de_CommandError(output, context);
|
|
515
|
+
}
|
|
516
|
+
const contents = smithyClient.map({
|
|
517
|
+
$metadata: deserializeMetadata(output),
|
|
518
|
+
});
|
|
519
|
+
await smithyClient.collectBody(output.body, context);
|
|
520
|
+
return contents;
|
|
914
521
|
};
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
522
|
+
const de_CommandError = async (output, context) => {
|
|
523
|
+
const parsedOutput = {
|
|
524
|
+
...output,
|
|
525
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
526
|
+
};
|
|
527
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
528
|
+
switch (errorCode) {
|
|
529
|
+
case "AccessDeniedException":
|
|
530
|
+
case "com.amazonaws.aiops#AccessDeniedException":
|
|
531
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
532
|
+
case "ConflictException":
|
|
533
|
+
case "com.amazonaws.aiops#ConflictException":
|
|
534
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
535
|
+
case "ForbiddenException":
|
|
536
|
+
case "com.amazonaws.aiops#ForbiddenException":
|
|
537
|
+
throw await de_ForbiddenExceptionRes(parsedOutput);
|
|
538
|
+
case "InternalServerException":
|
|
539
|
+
case "com.amazonaws.aiops#InternalServerException":
|
|
540
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
541
|
+
case "ResourceNotFoundException":
|
|
542
|
+
case "com.amazonaws.aiops#ResourceNotFoundException":
|
|
543
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
544
|
+
case "ServiceQuotaExceededException":
|
|
545
|
+
case "com.amazonaws.aiops#ServiceQuotaExceededException":
|
|
546
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
547
|
+
case "ThrottlingException":
|
|
548
|
+
case "com.amazonaws.aiops#ThrottlingException":
|
|
549
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
550
|
+
case "ValidationException":
|
|
551
|
+
case "com.amazonaws.aiops#ValidationException":
|
|
552
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
553
|
+
default:
|
|
554
|
+
const parsedBody = parsedOutput.body;
|
|
555
|
+
return throwDefaultError({
|
|
556
|
+
output,
|
|
557
|
+
parsedBody,
|
|
558
|
+
errorCode,
|
|
559
|
+
});
|
|
560
|
+
}
|
|
929
561
|
};
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
}
|
|
562
|
+
const throwDefaultError = smithyClient.withBaseException(AIOpsServiceException);
|
|
563
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
564
|
+
const contents = smithyClient.map({});
|
|
565
|
+
const data = parsedOutput.body;
|
|
566
|
+
const doc = smithyClient.take(data, {
|
|
567
|
+
message: smithyClient.expectString,
|
|
568
|
+
});
|
|
569
|
+
Object.assign(contents, doc);
|
|
570
|
+
const exception = new AccessDeniedException({
|
|
571
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
572
|
+
...contents,
|
|
573
|
+
});
|
|
574
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
944
575
|
};
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
})
|
|
956
|
-
|
|
957
|
-
__name(this, "ListTagsForResourceCommand");
|
|
958
|
-
}
|
|
576
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
577
|
+
const contents = smithyClient.map({});
|
|
578
|
+
const data = parsedOutput.body;
|
|
579
|
+
const doc = smithyClient.take(data, {
|
|
580
|
+
message: smithyClient.expectString,
|
|
581
|
+
});
|
|
582
|
+
Object.assign(contents, doc);
|
|
583
|
+
const exception = new ConflictException({
|
|
584
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
585
|
+
...contents,
|
|
586
|
+
});
|
|
587
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
959
588
|
};
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
})
|
|
971
|
-
|
|
972
|
-
__name(this, "PutInvestigationGroupPolicyCommand");
|
|
973
|
-
}
|
|
589
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
590
|
+
const contents = smithyClient.map({});
|
|
591
|
+
const data = parsedOutput.body;
|
|
592
|
+
const doc = smithyClient.take(data, {
|
|
593
|
+
message: smithyClient.expectString,
|
|
594
|
+
});
|
|
595
|
+
Object.assign(contents, doc);
|
|
596
|
+
const exception = new ForbiddenException({
|
|
597
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
598
|
+
...contents,
|
|
599
|
+
});
|
|
600
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
974
601
|
};
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
})
|
|
986
|
-
|
|
987
|
-
__name(this, "TagResourceCommand");
|
|
988
|
-
}
|
|
602
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
603
|
+
const contents = smithyClient.map({});
|
|
604
|
+
const data = parsedOutput.body;
|
|
605
|
+
const doc = smithyClient.take(data, {
|
|
606
|
+
message: smithyClient.expectString,
|
|
607
|
+
});
|
|
608
|
+
Object.assign(contents, doc);
|
|
609
|
+
const exception = new InternalServerException({
|
|
610
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
611
|
+
...contents,
|
|
612
|
+
});
|
|
613
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
989
614
|
};
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
})
|
|
1001
|
-
|
|
1002
|
-
__name(this, "UntagResourceCommand");
|
|
1003
|
-
}
|
|
615
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
616
|
+
const contents = smithyClient.map({});
|
|
617
|
+
const data = parsedOutput.body;
|
|
618
|
+
const doc = smithyClient.take(data, {
|
|
619
|
+
message: smithyClient.expectString,
|
|
620
|
+
});
|
|
621
|
+
Object.assign(contents, doc);
|
|
622
|
+
const exception = new ResourceNotFoundException({
|
|
623
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
624
|
+
...contents,
|
|
625
|
+
});
|
|
626
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1004
627
|
};
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
628
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
629
|
+
const contents = smithyClient.map({});
|
|
630
|
+
const data = parsedOutput.body;
|
|
631
|
+
const doc = smithyClient.take(data, {
|
|
632
|
+
message: smithyClient.expectString,
|
|
633
|
+
quotaCode: smithyClient.expectString,
|
|
634
|
+
resourceId: smithyClient.expectString,
|
|
635
|
+
resourceType: smithyClient.expectString,
|
|
636
|
+
serviceCode: smithyClient.expectString,
|
|
637
|
+
});
|
|
638
|
+
Object.assign(contents, doc);
|
|
639
|
+
const exception = new ServiceQuotaExceededException({
|
|
640
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
641
|
+
...contents,
|
|
642
|
+
});
|
|
643
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1019
644
|
};
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
UntagResourceCommand,
|
|
1033
|
-
UpdateInvestigationGroupCommand
|
|
645
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
646
|
+
const contents = smithyClient.map({});
|
|
647
|
+
const data = parsedOutput.body;
|
|
648
|
+
const doc = smithyClient.take(data, {
|
|
649
|
+
message: smithyClient.expectString,
|
|
650
|
+
});
|
|
651
|
+
Object.assign(contents, doc);
|
|
652
|
+
const exception = new ThrottlingException({
|
|
653
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
654
|
+
...contents,
|
|
655
|
+
});
|
|
656
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1034
657
|
};
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
658
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
659
|
+
const contents = smithyClient.map({});
|
|
660
|
+
const data = parsedOutput.body;
|
|
661
|
+
const doc = smithyClient.take(data, {
|
|
662
|
+
message: smithyClient.expectString,
|
|
663
|
+
});
|
|
664
|
+
Object.assign(contents, doc);
|
|
665
|
+
const exception = new ValidationException({
|
|
666
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
667
|
+
...contents,
|
|
668
|
+
});
|
|
669
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1039
670
|
};
|
|
1040
|
-
(
|
|
1041
|
-
|
|
1042
|
-
|
|
671
|
+
const deserializeMetadata = (output) => ({
|
|
672
|
+
httpStatusCode: output.statusCode,
|
|
673
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
674
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
675
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
676
|
+
});
|
|
677
|
+
const _mR = "maxResults";
|
|
678
|
+
const _nT = "nextToken";
|
|
679
|
+
const _tK = "tagKeys";
|
|
680
|
+
|
|
681
|
+
class CreateInvestigationGroupCommand extends smithyClient.Command
|
|
682
|
+
.classBuilder()
|
|
683
|
+
.ep(commonParams)
|
|
684
|
+
.m(function (Command, cs, config, o) {
|
|
685
|
+
return [
|
|
686
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
687
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
688
|
+
];
|
|
689
|
+
})
|
|
690
|
+
.s("AIOps", "CreateInvestigationGroup", {})
|
|
691
|
+
.n("AIOpsClient", "CreateInvestigationGroupCommand")
|
|
692
|
+
.f(void 0, void 0)
|
|
693
|
+
.ser(se_CreateInvestigationGroupCommand)
|
|
694
|
+
.de(de_CreateInvestigationGroupCommand)
|
|
695
|
+
.build() {
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
class DeleteInvestigationGroupCommand extends smithyClient.Command
|
|
699
|
+
.classBuilder()
|
|
700
|
+
.ep(commonParams)
|
|
701
|
+
.m(function (Command, cs, config, o) {
|
|
702
|
+
return [
|
|
703
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
704
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
705
|
+
];
|
|
706
|
+
})
|
|
707
|
+
.s("AIOps", "DeleteInvestigationGroup", {})
|
|
708
|
+
.n("AIOpsClient", "DeleteInvestigationGroupCommand")
|
|
709
|
+
.f(void 0, void 0)
|
|
710
|
+
.ser(se_DeleteInvestigationGroupCommand)
|
|
711
|
+
.de(de_DeleteInvestigationGroupCommand)
|
|
712
|
+
.build() {
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
class DeleteInvestigationGroupPolicyCommand extends smithyClient.Command
|
|
716
|
+
.classBuilder()
|
|
717
|
+
.ep(commonParams)
|
|
718
|
+
.m(function (Command, cs, config, o) {
|
|
719
|
+
return [
|
|
720
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
721
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
722
|
+
];
|
|
723
|
+
})
|
|
724
|
+
.s("AIOps", "DeleteInvestigationGroupPolicy", {})
|
|
725
|
+
.n("AIOpsClient", "DeleteInvestigationGroupPolicyCommand")
|
|
726
|
+
.f(void 0, void 0)
|
|
727
|
+
.ser(se_DeleteInvestigationGroupPolicyCommand)
|
|
728
|
+
.de(de_DeleteInvestigationGroupPolicyCommand)
|
|
729
|
+
.build() {
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
class GetInvestigationGroupCommand extends smithyClient.Command
|
|
733
|
+
.classBuilder()
|
|
734
|
+
.ep(commonParams)
|
|
735
|
+
.m(function (Command, cs, config, o) {
|
|
736
|
+
return [
|
|
737
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
738
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
739
|
+
];
|
|
740
|
+
})
|
|
741
|
+
.s("AIOps", "GetInvestigationGroup", {})
|
|
742
|
+
.n("AIOpsClient", "GetInvestigationGroupCommand")
|
|
743
|
+
.f(void 0, void 0)
|
|
744
|
+
.ser(se_GetInvestigationGroupCommand)
|
|
745
|
+
.de(de_GetInvestigationGroupCommand)
|
|
746
|
+
.build() {
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
class GetInvestigationGroupPolicyCommand extends smithyClient.Command
|
|
750
|
+
.classBuilder()
|
|
751
|
+
.ep(commonParams)
|
|
752
|
+
.m(function (Command, cs, config, o) {
|
|
753
|
+
return [
|
|
754
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
755
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
756
|
+
];
|
|
757
|
+
})
|
|
758
|
+
.s("AIOps", "GetInvestigationGroupPolicy", {})
|
|
759
|
+
.n("AIOpsClient", "GetInvestigationGroupPolicyCommand")
|
|
760
|
+
.f(void 0, void 0)
|
|
761
|
+
.ser(se_GetInvestigationGroupPolicyCommand)
|
|
762
|
+
.de(de_GetInvestigationGroupPolicyCommand)
|
|
763
|
+
.build() {
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
class ListInvestigationGroupsCommand extends smithyClient.Command
|
|
767
|
+
.classBuilder()
|
|
768
|
+
.ep(commonParams)
|
|
769
|
+
.m(function (Command, cs, config, o) {
|
|
770
|
+
return [
|
|
771
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
772
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
773
|
+
];
|
|
774
|
+
})
|
|
775
|
+
.s("AIOps", "ListInvestigationGroups", {})
|
|
776
|
+
.n("AIOpsClient", "ListInvestigationGroupsCommand")
|
|
777
|
+
.f(ListInvestigationGroupsInputFilterSensitiveLog, ListInvestigationGroupsOutputFilterSensitiveLog)
|
|
778
|
+
.ser(se_ListInvestigationGroupsCommand)
|
|
779
|
+
.de(de_ListInvestigationGroupsCommand)
|
|
780
|
+
.build() {
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
784
|
+
.classBuilder()
|
|
785
|
+
.ep(commonParams)
|
|
786
|
+
.m(function (Command, cs, config, o) {
|
|
787
|
+
return [
|
|
788
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
789
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
790
|
+
];
|
|
791
|
+
})
|
|
792
|
+
.s("AIOps", "ListTagsForResource", {})
|
|
793
|
+
.n("AIOpsClient", "ListTagsForResourceCommand")
|
|
794
|
+
.f(void 0, void 0)
|
|
795
|
+
.ser(se_ListTagsForResourceCommand)
|
|
796
|
+
.de(de_ListTagsForResourceCommand)
|
|
797
|
+
.build() {
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
class PutInvestigationGroupPolicyCommand extends smithyClient.Command
|
|
801
|
+
.classBuilder()
|
|
802
|
+
.ep(commonParams)
|
|
803
|
+
.m(function (Command, cs, config, o) {
|
|
804
|
+
return [
|
|
805
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
806
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
807
|
+
];
|
|
808
|
+
})
|
|
809
|
+
.s("AIOps", "PutInvestigationGroupPolicy", {})
|
|
810
|
+
.n("AIOpsClient", "PutInvestigationGroupPolicyCommand")
|
|
811
|
+
.f(void 0, void 0)
|
|
812
|
+
.ser(se_PutInvestigationGroupPolicyCommand)
|
|
813
|
+
.de(de_PutInvestigationGroupPolicyCommand)
|
|
814
|
+
.build() {
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
class TagResourceCommand extends smithyClient.Command
|
|
818
|
+
.classBuilder()
|
|
819
|
+
.ep(commonParams)
|
|
820
|
+
.m(function (Command, cs, config, o) {
|
|
821
|
+
return [
|
|
822
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
823
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
824
|
+
];
|
|
825
|
+
})
|
|
826
|
+
.s("AIOps", "TagResource", {})
|
|
827
|
+
.n("AIOpsClient", "TagResourceCommand")
|
|
828
|
+
.f(void 0, void 0)
|
|
829
|
+
.ser(se_TagResourceCommand)
|
|
830
|
+
.de(de_TagResourceCommand)
|
|
831
|
+
.build() {
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
835
|
+
.classBuilder()
|
|
836
|
+
.ep(commonParams)
|
|
837
|
+
.m(function (Command, cs, config, o) {
|
|
838
|
+
return [
|
|
839
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
840
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
841
|
+
];
|
|
842
|
+
})
|
|
843
|
+
.s("AIOps", "UntagResource", {})
|
|
844
|
+
.n("AIOpsClient", "UntagResourceCommand")
|
|
845
|
+
.f(void 0, void 0)
|
|
846
|
+
.ser(se_UntagResourceCommand)
|
|
847
|
+
.de(de_UntagResourceCommand)
|
|
848
|
+
.build() {
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
class UpdateInvestigationGroupCommand extends smithyClient.Command
|
|
852
|
+
.classBuilder()
|
|
853
|
+
.ep(commonParams)
|
|
854
|
+
.m(function (Command, cs, config, o) {
|
|
855
|
+
return [
|
|
856
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
857
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
858
|
+
];
|
|
859
|
+
})
|
|
860
|
+
.s("AIOps", "UpdateInvestigationGroup", {})
|
|
861
|
+
.n("AIOpsClient", "UpdateInvestigationGroupCommand")
|
|
862
|
+
.f(void 0, void 0)
|
|
863
|
+
.ser(se_UpdateInvestigationGroupCommand)
|
|
864
|
+
.de(de_UpdateInvestigationGroupCommand)
|
|
865
|
+
.build() {
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
const commands = {
|
|
869
|
+
CreateInvestigationGroupCommand,
|
|
870
|
+
DeleteInvestigationGroupCommand,
|
|
871
|
+
DeleteInvestigationGroupPolicyCommand,
|
|
872
|
+
GetInvestigationGroupCommand,
|
|
873
|
+
GetInvestigationGroupPolicyCommand,
|
|
874
|
+
ListInvestigationGroupsCommand,
|
|
875
|
+
ListTagsForResourceCommand,
|
|
876
|
+
PutInvestigationGroupPolicyCommand,
|
|
877
|
+
TagResourceCommand,
|
|
878
|
+
UntagResourceCommand,
|
|
879
|
+
UpdateInvestigationGroupCommand,
|
|
880
|
+
};
|
|
881
|
+
class AIOps extends AIOpsClient {
|
|
882
|
+
}
|
|
883
|
+
smithyClient.createAggregatedClient(commands, AIOps);
|
|
1043
884
|
|
|
1044
|
-
|
|
1045
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
885
|
+
const paginateListInvestigationGroups = core.createPaginator(AIOpsClient, ListInvestigationGroupsCommand, "nextToken", "nextToken", "maxResults");
|
|
1046
886
|
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
AIOpsClient,
|
|
1051
|
-
AIOps,
|
|
1052
|
-
$Command,
|
|
1053
|
-
CreateInvestigationGroupCommand,
|
|
1054
|
-
DeleteInvestigationGroupCommand,
|
|
1055
|
-
DeleteInvestigationGroupPolicyCommand,
|
|
1056
|
-
GetInvestigationGroupCommand,
|
|
1057
|
-
GetInvestigationGroupPolicyCommand,
|
|
1058
|
-
ListInvestigationGroupsCommand,
|
|
1059
|
-
ListTagsForResourceCommand,
|
|
1060
|
-
PutInvestigationGroupPolicyCommand,
|
|
1061
|
-
TagResourceCommand,
|
|
1062
|
-
UntagResourceCommand,
|
|
1063
|
-
UpdateInvestigationGroupCommand,
|
|
1064
|
-
paginateListInvestigationGroups,
|
|
1065
|
-
AccessDeniedException,
|
|
1066
|
-
ConflictException,
|
|
1067
|
-
ForbiddenException,
|
|
1068
|
-
InternalServerException,
|
|
1069
|
-
EncryptionConfigurationType,
|
|
1070
|
-
ResourceNotFoundException,
|
|
1071
|
-
ServiceQuotaExceededException,
|
|
1072
|
-
ThrottlingException,
|
|
1073
|
-
ValidationException,
|
|
1074
|
-
ListInvestigationGroupsInputFilterSensitiveLog,
|
|
1075
|
-
ListInvestigationGroupsOutputFilterSensitiveLog
|
|
887
|
+
Object.defineProperty(exports, "$Command", {
|
|
888
|
+
enumerable: true,
|
|
889
|
+
get: function () { return smithyClient.Command; }
|
|
1076
890
|
});
|
|
1077
|
-
|
|
891
|
+
Object.defineProperty(exports, "__Client", {
|
|
892
|
+
enumerable: true,
|
|
893
|
+
get: function () { return smithyClient.Client; }
|
|
894
|
+
});
|
|
895
|
+
exports.AIOps = AIOps;
|
|
896
|
+
exports.AIOpsClient = AIOpsClient;
|
|
897
|
+
exports.AIOpsServiceException = AIOpsServiceException;
|
|
898
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
899
|
+
exports.ConflictException = ConflictException;
|
|
900
|
+
exports.CreateInvestigationGroupCommand = CreateInvestigationGroupCommand;
|
|
901
|
+
exports.DeleteInvestigationGroupCommand = DeleteInvestigationGroupCommand;
|
|
902
|
+
exports.DeleteInvestigationGroupPolicyCommand = DeleteInvestigationGroupPolicyCommand;
|
|
903
|
+
exports.EncryptionConfigurationType = EncryptionConfigurationType;
|
|
904
|
+
exports.ForbiddenException = ForbiddenException;
|
|
905
|
+
exports.GetInvestigationGroupCommand = GetInvestigationGroupCommand;
|
|
906
|
+
exports.GetInvestigationGroupPolicyCommand = GetInvestigationGroupPolicyCommand;
|
|
907
|
+
exports.InternalServerException = InternalServerException;
|
|
908
|
+
exports.ListInvestigationGroupsCommand = ListInvestigationGroupsCommand;
|
|
909
|
+
exports.ListInvestigationGroupsInputFilterSensitiveLog = ListInvestigationGroupsInputFilterSensitiveLog;
|
|
910
|
+
exports.ListInvestigationGroupsOutputFilterSensitiveLog = ListInvestigationGroupsOutputFilterSensitiveLog;
|
|
911
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
912
|
+
exports.PutInvestigationGroupPolicyCommand = PutInvestigationGroupPolicyCommand;
|
|
913
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
914
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
915
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
916
|
+
exports.ThrottlingException = ThrottlingException;
|
|
917
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
918
|
+
exports.UpdateInvestigationGroupCommand = UpdateInvestigationGroupCommand;
|
|
919
|
+
exports.ValidationException = ValidationException;
|
|
920
|
+
exports.paginateListInvestigationGroups = paginateListInvestigationGroups;
|