@aws-sdk/client-networkflowmonitor 3.901.0 → 3.906.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 +1631 -1784
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,1826 +1,1673 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
GetMonitorCommand: () => GetMonitorCommand,
|
|
32
|
-
GetQueryResultsMonitorTopContributorsCommand: () => GetQueryResultsMonitorTopContributorsCommand,
|
|
33
|
-
GetQueryResultsWorkloadInsightsTopContributorsCommand: () => GetQueryResultsWorkloadInsightsTopContributorsCommand,
|
|
34
|
-
GetQueryResultsWorkloadInsightsTopContributorsDataCommand: () => GetQueryResultsWorkloadInsightsTopContributorsDataCommand,
|
|
35
|
-
GetQueryStatusMonitorTopContributorsCommand: () => GetQueryStatusMonitorTopContributorsCommand,
|
|
36
|
-
GetQueryStatusWorkloadInsightsTopContributorsCommand: () => GetQueryStatusWorkloadInsightsTopContributorsCommand,
|
|
37
|
-
GetQueryStatusWorkloadInsightsTopContributorsDataCommand: () => GetQueryStatusWorkloadInsightsTopContributorsDataCommand,
|
|
38
|
-
GetScopeCommand: () => GetScopeCommand,
|
|
39
|
-
InternalServerException: () => InternalServerException,
|
|
40
|
-
ListMonitorsCommand: () => ListMonitorsCommand,
|
|
41
|
-
ListScopesCommand: () => ListScopesCommand,
|
|
42
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
43
|
-
MetricUnit: () => MetricUnit,
|
|
44
|
-
MonitorLocalResourceType: () => MonitorLocalResourceType,
|
|
45
|
-
MonitorMetric: () => MonitorMetric,
|
|
46
|
-
MonitorRemoteResourceType: () => MonitorRemoteResourceType,
|
|
47
|
-
MonitorStatus: () => MonitorStatus,
|
|
48
|
-
NetworkFlowMonitor: () => NetworkFlowMonitor,
|
|
49
|
-
NetworkFlowMonitorClient: () => NetworkFlowMonitorClient,
|
|
50
|
-
NetworkFlowMonitorServiceException: () => NetworkFlowMonitorServiceException,
|
|
51
|
-
QueryStatus: () => QueryStatus,
|
|
52
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
53
|
-
ScopeStatus: () => ScopeStatus,
|
|
54
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
55
|
-
StartQueryMonitorTopContributorsCommand: () => StartQueryMonitorTopContributorsCommand,
|
|
56
|
-
StartQueryWorkloadInsightsTopContributorsCommand: () => StartQueryWorkloadInsightsTopContributorsCommand,
|
|
57
|
-
StartQueryWorkloadInsightsTopContributorsDataCommand: () => StartQueryWorkloadInsightsTopContributorsDataCommand,
|
|
58
|
-
StopQueryMonitorTopContributorsCommand: () => StopQueryMonitorTopContributorsCommand,
|
|
59
|
-
StopQueryWorkloadInsightsTopContributorsCommand: () => StopQueryWorkloadInsightsTopContributorsCommand,
|
|
60
|
-
StopQueryWorkloadInsightsTopContributorsDataCommand: () => StopQueryWorkloadInsightsTopContributorsDataCommand,
|
|
61
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
62
|
-
TargetId: () => TargetId,
|
|
63
|
-
TargetType: () => TargetType,
|
|
64
|
-
ThrottlingException: () => ThrottlingException,
|
|
65
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
66
|
-
UpdateMonitorCommand: () => UpdateMonitorCommand,
|
|
67
|
-
UpdateScopeCommand: () => UpdateScopeCommand,
|
|
68
|
-
ValidationException: () => ValidationException,
|
|
69
|
-
WorkloadInsightsMetric: () => WorkloadInsightsMetric,
|
|
70
|
-
__Client: () => import_smithy_client.Client,
|
|
71
|
-
paginateGetQueryResultsMonitorTopContributors: () => paginateGetQueryResultsMonitorTopContributors,
|
|
72
|
-
paginateGetQueryResultsWorkloadInsightsTopContributors: () => paginateGetQueryResultsWorkloadInsightsTopContributors,
|
|
73
|
-
paginateGetQueryResultsWorkloadInsightsTopContributorsData: () => paginateGetQueryResultsWorkloadInsightsTopContributorsData,
|
|
74
|
-
paginateListMonitors: () => paginateListMonitors,
|
|
75
|
-
paginateListScopes: () => paginateListScopes
|
|
76
|
-
});
|
|
77
|
-
module.exports = __toCommonJS(index_exports);
|
|
78
|
-
|
|
79
|
-
// src/NetworkFlowMonitorClient.ts
|
|
80
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
81
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
82
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
83
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
84
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
85
|
-
var import_core = require("@smithy/core");
|
|
86
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
87
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
88
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
89
|
-
|
|
90
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
91
|
-
|
|
92
|
-
// src/endpoint/EndpointParameters.ts
|
|
93
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
94
|
-
return Object.assign(options, {
|
|
95
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
96
|
-
defaultSigningName: "networkflowmonitor"
|
|
97
|
-
});
|
|
98
|
-
}, "resolveClientEndpointParameters");
|
|
99
|
-
var commonParams = {
|
|
100
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
101
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
102
|
-
Region: { type: "builtInParams", name: "region" }
|
|
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
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "networkflowmonitor",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
103
31
|
};
|
|
104
32
|
|
|
105
|
-
|
|
106
|
-
|
|
33
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
34
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
35
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
36
|
+
let _credentials = runtimeConfig.credentials;
|
|
37
|
+
return {
|
|
38
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
39
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
40
|
+
if (index === -1) {
|
|
41
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
httpAuthSchemes() {
|
|
48
|
+
return _httpAuthSchemes;
|
|
49
|
+
},
|
|
50
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
51
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
52
|
+
},
|
|
53
|
+
httpAuthSchemeProvider() {
|
|
54
|
+
return _httpAuthSchemeProvider;
|
|
55
|
+
},
|
|
56
|
+
setCredentials(credentials) {
|
|
57
|
+
_credentials = credentials;
|
|
58
|
+
},
|
|
59
|
+
credentials() {
|
|
60
|
+
return _credentials;
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
65
|
+
return {
|
|
66
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
67
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
68
|
+
credentials: config.credentials(),
|
|
69
|
+
};
|
|
70
|
+
};
|
|
107
71
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
72
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
73
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
74
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
75
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
76
|
+
};
|
|
112
77
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
78
|
+
class NetworkFlowMonitorClient extends smithyClient.Client {
|
|
79
|
+
config;
|
|
80
|
+
constructor(...[configuration]) {
|
|
81
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
82
|
+
super(_config_0);
|
|
83
|
+
this.initConfig = _config_0;
|
|
84
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
85
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
86
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
87
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
88
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
89
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
90
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
91
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
92
|
+
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
94
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
100
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultNetworkFlowMonitorHttpAuthSchemeParametersProvider,
|
|
101
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
102
|
+
"aws.auth#sigv4": config.credentials,
|
|
103
|
+
}),
|
|
104
|
+
}));
|
|
105
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
141
106
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
147
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
148
|
-
credentials: config.credentials()
|
|
149
|
-
};
|
|
150
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
151
|
-
|
|
152
|
-
// src/runtimeExtensions.ts
|
|
153
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
154
|
-
const extensionConfiguration = Object.assign(
|
|
155
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
156
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
157
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
158
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
159
|
-
);
|
|
160
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
161
|
-
return Object.assign(
|
|
162
|
-
runtimeConfig,
|
|
163
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
164
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
165
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
166
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
167
|
-
);
|
|
168
|
-
}, "resolveRuntimeExtensions");
|
|
107
|
+
destroy() {
|
|
108
|
+
super.destroy();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
169
111
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
210
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
211
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
212
|
-
*/
|
|
213
|
-
destroy() {
|
|
214
|
-
super.destroy();
|
|
215
|
-
}
|
|
112
|
+
class NetworkFlowMonitorServiceException extends smithyClient.ServiceException {
|
|
113
|
+
constructor(options) {
|
|
114
|
+
super(options);
|
|
115
|
+
Object.setPrototypeOf(this, NetworkFlowMonitorServiceException.prototype);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
class AccessDeniedException extends NetworkFlowMonitorServiceException {
|
|
120
|
+
name = "AccessDeniedException";
|
|
121
|
+
$fault = "client";
|
|
122
|
+
constructor(opts) {
|
|
123
|
+
super({
|
|
124
|
+
name: "AccessDeniedException",
|
|
125
|
+
$fault: "client",
|
|
126
|
+
...opts,
|
|
127
|
+
});
|
|
128
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
class ConflictException extends NetworkFlowMonitorServiceException {
|
|
132
|
+
name = "ConflictException";
|
|
133
|
+
$fault = "client";
|
|
134
|
+
constructor(opts) {
|
|
135
|
+
super({
|
|
136
|
+
name: "ConflictException",
|
|
137
|
+
$fault: "client",
|
|
138
|
+
...opts,
|
|
139
|
+
});
|
|
140
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const MonitorLocalResourceType = {
|
|
144
|
+
AWS_AZ: "AWS::AvailabilityZone",
|
|
145
|
+
AWS_REGION: "AWS::Region",
|
|
146
|
+
AWS_SUBNET: "AWS::EC2::Subnet",
|
|
147
|
+
AWS_VPC: "AWS::EC2::VPC",
|
|
216
148
|
};
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
// src/protocols/Aws_restJson1.ts
|
|
227
|
-
var import_core2 = require("@aws-sdk/core");
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
var import_uuid = require("@smithy/uuid");
|
|
231
|
-
|
|
232
|
-
// src/models/NetworkFlowMonitorServiceException.ts
|
|
233
|
-
|
|
234
|
-
var NetworkFlowMonitorServiceException = class _NetworkFlowMonitorServiceException extends import_smithy_client.ServiceException {
|
|
235
|
-
static {
|
|
236
|
-
__name(this, "NetworkFlowMonitorServiceException");
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* @internal
|
|
240
|
-
*/
|
|
241
|
-
constructor(options) {
|
|
242
|
-
super(options);
|
|
243
|
-
Object.setPrototypeOf(this, _NetworkFlowMonitorServiceException.prototype);
|
|
244
|
-
}
|
|
149
|
+
const MonitorRemoteResourceType = {
|
|
150
|
+
AWS_AZ: "AWS::AvailabilityZone",
|
|
151
|
+
AWS_REGION: "AWS::Region",
|
|
152
|
+
AWS_SERVICE: "AWS::AWSService",
|
|
153
|
+
AWS_SUBNET: "AWS::EC2::Subnet",
|
|
154
|
+
AWS_VPC: "AWS::EC2::VPC",
|
|
245
155
|
};
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
name = "AccessDeniedException";
|
|
253
|
-
$fault = "client";
|
|
254
|
-
/**
|
|
255
|
-
* @internal
|
|
256
|
-
*/
|
|
257
|
-
constructor(opts) {
|
|
258
|
-
super({
|
|
259
|
-
name: "AccessDeniedException",
|
|
260
|
-
$fault: "client",
|
|
261
|
-
...opts
|
|
262
|
-
});
|
|
263
|
-
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
264
|
-
}
|
|
265
|
-
};
|
|
266
|
-
var ConflictException = class _ConflictException extends NetworkFlowMonitorServiceException {
|
|
267
|
-
static {
|
|
268
|
-
__name(this, "ConflictException");
|
|
269
|
-
}
|
|
270
|
-
name = "ConflictException";
|
|
271
|
-
$fault = "client";
|
|
272
|
-
/**
|
|
273
|
-
* @internal
|
|
274
|
-
*/
|
|
275
|
-
constructor(opts) {
|
|
276
|
-
super({
|
|
277
|
-
name: "ConflictException",
|
|
278
|
-
$fault: "client",
|
|
279
|
-
...opts
|
|
280
|
-
});
|
|
281
|
-
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
282
|
-
}
|
|
283
|
-
};
|
|
284
|
-
var MonitorLocalResourceType = {
|
|
285
|
-
AWS_AZ: "AWS::AvailabilityZone",
|
|
286
|
-
AWS_REGION: "AWS::Region",
|
|
287
|
-
AWS_SUBNET: "AWS::EC2::Subnet",
|
|
288
|
-
AWS_VPC: "AWS::EC2::VPC"
|
|
289
|
-
};
|
|
290
|
-
var MonitorRemoteResourceType = {
|
|
291
|
-
AWS_AZ: "AWS::AvailabilityZone",
|
|
292
|
-
AWS_REGION: "AWS::Region",
|
|
293
|
-
AWS_SERVICE: "AWS::AWSService",
|
|
294
|
-
AWS_SUBNET: "AWS::EC2::Subnet",
|
|
295
|
-
AWS_VPC: "AWS::EC2::VPC"
|
|
296
|
-
};
|
|
297
|
-
var MonitorStatus = {
|
|
298
|
-
ACTIVE: "ACTIVE",
|
|
299
|
-
DELETING: "DELETING",
|
|
300
|
-
ERROR: "ERROR",
|
|
301
|
-
INACTIVE: "INACTIVE",
|
|
302
|
-
PENDING: "PENDING"
|
|
303
|
-
};
|
|
304
|
-
var InternalServerException = class _InternalServerException extends NetworkFlowMonitorServiceException {
|
|
305
|
-
static {
|
|
306
|
-
__name(this, "InternalServerException");
|
|
307
|
-
}
|
|
308
|
-
name = "InternalServerException";
|
|
309
|
-
$fault = "server";
|
|
310
|
-
$retryable = {};
|
|
311
|
-
/**
|
|
312
|
-
* @internal
|
|
313
|
-
*/
|
|
314
|
-
constructor(opts) {
|
|
315
|
-
super({
|
|
316
|
-
name: "InternalServerException",
|
|
317
|
-
$fault: "server",
|
|
318
|
-
...opts
|
|
319
|
-
});
|
|
320
|
-
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends NetworkFlowMonitorServiceException {
|
|
324
|
-
static {
|
|
325
|
-
__name(this, "ServiceQuotaExceededException");
|
|
326
|
-
}
|
|
327
|
-
name = "ServiceQuotaExceededException";
|
|
328
|
-
$fault = "client";
|
|
329
|
-
/**
|
|
330
|
-
* @internal
|
|
331
|
-
*/
|
|
332
|
-
constructor(opts) {
|
|
333
|
-
super({
|
|
334
|
-
name: "ServiceQuotaExceededException",
|
|
335
|
-
$fault: "client",
|
|
336
|
-
...opts
|
|
337
|
-
});
|
|
338
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
var ThrottlingException = class _ThrottlingException extends NetworkFlowMonitorServiceException {
|
|
342
|
-
static {
|
|
343
|
-
__name(this, "ThrottlingException");
|
|
344
|
-
}
|
|
345
|
-
name = "ThrottlingException";
|
|
346
|
-
$fault = "client";
|
|
347
|
-
$retryable = {
|
|
348
|
-
throttling: true
|
|
349
|
-
};
|
|
350
|
-
/**
|
|
351
|
-
* @internal
|
|
352
|
-
*/
|
|
353
|
-
constructor(opts) {
|
|
354
|
-
super({
|
|
355
|
-
name: "ThrottlingException",
|
|
356
|
-
$fault: "client",
|
|
357
|
-
...opts
|
|
358
|
-
});
|
|
359
|
-
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
|
-
var ValidationException = class _ValidationException extends NetworkFlowMonitorServiceException {
|
|
363
|
-
static {
|
|
364
|
-
__name(this, "ValidationException");
|
|
365
|
-
}
|
|
366
|
-
name = "ValidationException";
|
|
367
|
-
$fault = "client";
|
|
368
|
-
/**
|
|
369
|
-
* @internal
|
|
370
|
-
*/
|
|
371
|
-
constructor(opts) {
|
|
372
|
-
super({
|
|
373
|
-
name: "ValidationException",
|
|
374
|
-
$fault: "client",
|
|
375
|
-
...opts
|
|
376
|
-
});
|
|
377
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
378
|
-
}
|
|
379
|
-
};
|
|
380
|
-
var TargetId;
|
|
381
|
-
((TargetId3) => {
|
|
382
|
-
TargetId3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
383
|
-
if (value.accountId !== void 0) return visitor.accountId(value.accountId);
|
|
384
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
385
|
-
}, "visit");
|
|
386
|
-
})(TargetId || (TargetId = {}));
|
|
387
|
-
var TargetType = {
|
|
388
|
-
ACCOUNT: "ACCOUNT"
|
|
389
|
-
};
|
|
390
|
-
var ScopeStatus = {
|
|
391
|
-
DEACTIVATED: "DEACTIVATED",
|
|
392
|
-
DEACTIVATING: "DEACTIVATING",
|
|
393
|
-
FAILED: "FAILED",
|
|
394
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
395
|
-
SUCCEEDED: "SUCCEEDED"
|
|
396
|
-
};
|
|
397
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends NetworkFlowMonitorServiceException {
|
|
398
|
-
static {
|
|
399
|
-
__name(this, "ResourceNotFoundException");
|
|
400
|
-
}
|
|
401
|
-
name = "ResourceNotFoundException";
|
|
402
|
-
$fault = "client";
|
|
403
|
-
/**
|
|
404
|
-
* @internal
|
|
405
|
-
*/
|
|
406
|
-
constructor(opts) {
|
|
407
|
-
super({
|
|
408
|
-
name: "ResourceNotFoundException",
|
|
409
|
-
$fault: "client",
|
|
410
|
-
...opts
|
|
411
|
-
});
|
|
412
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
|
-
var DestinationCategory = {
|
|
416
|
-
AMAZON_DYNAMODB: "AMAZON_DYNAMODB",
|
|
417
|
-
AMAZON_S3: "AMAZON_S3",
|
|
418
|
-
INTER_AZ: "INTER_AZ",
|
|
419
|
-
INTER_REGION: "INTER_REGION",
|
|
420
|
-
INTER_VPC: "INTER_VPC",
|
|
421
|
-
INTRA_AZ: "INTRA_AZ",
|
|
422
|
-
UNCLASSIFIED: "UNCLASSIFIED"
|
|
423
|
-
};
|
|
424
|
-
var MetricUnit = {
|
|
425
|
-
BITS: "Bits",
|
|
426
|
-
BITS_PER_SECOND: "Bits/Second",
|
|
427
|
-
BYTES: "Bytes",
|
|
428
|
-
BYTES_PER_SECOND: "Bytes/Second",
|
|
429
|
-
COUNT: "Count",
|
|
430
|
-
COUNT_PER_SECOND: "Count/Second",
|
|
431
|
-
GIGABITS: "Gigabits",
|
|
432
|
-
GIGABITS_PER_SECOND: "Gigabits/Second",
|
|
433
|
-
GIGABYTES: "Gigabytes",
|
|
434
|
-
GIGABYTES_PER_SECOND: "Gigabytes/Second",
|
|
435
|
-
KILOBITS: "Kilobits",
|
|
436
|
-
KILOBITS_PER_SECOND: "Kilobits/Second",
|
|
437
|
-
KILOBYTES: "Kilobytes",
|
|
438
|
-
KILOBYTES_PER_SECOND: "Kilobytes/Second",
|
|
439
|
-
MEGABITS: "Megabits",
|
|
440
|
-
MEGABITS_PER_SECOND: "Megabits/Second",
|
|
441
|
-
MEGABYTES: "Megabytes",
|
|
442
|
-
MEGABYTES_PER_SECOND: "Megabytes/Second",
|
|
443
|
-
MICROSECONDS: "Microseconds",
|
|
444
|
-
MILLISECONDS: "Milliseconds",
|
|
445
|
-
NONE: "None",
|
|
446
|
-
PERCENT: "Percent",
|
|
447
|
-
SECONDS: "Seconds",
|
|
448
|
-
TERABITS: "Terabits",
|
|
449
|
-
TERABITS_PER_SECOND: "Terabits/Second",
|
|
450
|
-
TERABYTES: "Terabytes",
|
|
451
|
-
TERABYTES_PER_SECOND: "Terabytes/Second"
|
|
452
|
-
};
|
|
453
|
-
var QueryStatus = {
|
|
454
|
-
CANCELED: "CANCELED",
|
|
455
|
-
FAILED: "FAILED",
|
|
456
|
-
QUEUED: "QUEUED",
|
|
457
|
-
RUNNING: "RUNNING",
|
|
458
|
-
SUCCEEDED: "SUCCEEDED"
|
|
459
|
-
};
|
|
460
|
-
var MonitorMetric = {
|
|
461
|
-
DATA_TRANSFERRED: "DATA_TRANSFERRED",
|
|
462
|
-
RETRANSMISSIONS: "RETRANSMISSIONS",
|
|
463
|
-
ROUND_TRIP_TIME: "ROUND_TRIP_TIME",
|
|
464
|
-
TIMEOUTS: "TIMEOUTS"
|
|
465
|
-
};
|
|
466
|
-
var WorkloadInsightsMetric = {
|
|
467
|
-
DATA_TRANSFERRED: "DATA_TRANSFERRED",
|
|
468
|
-
RETRANSMISSIONS: "RETRANSMISSIONS",
|
|
469
|
-
TIMEOUTS: "TIMEOUTS"
|
|
156
|
+
const MonitorStatus = {
|
|
157
|
+
ACTIVE: "ACTIVE",
|
|
158
|
+
DELETING: "DELETING",
|
|
159
|
+
ERROR: "ERROR",
|
|
160
|
+
INACTIVE: "INACTIVE",
|
|
161
|
+
PENDING: "PENDING",
|
|
470
162
|
};
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
let body;
|
|
534
|
-
b.m("GET").h(headers).b(body);
|
|
535
|
-
return b.build();
|
|
536
|
-
}, "se_GetMonitorCommand");
|
|
537
|
-
var se_GetQueryResultsMonitorTopContributorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
538
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
539
|
-
const headers = {};
|
|
540
|
-
b.bp("/monitors/{monitorName}/topContributorsQueries/{queryId}/results");
|
|
541
|
-
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
542
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
543
|
-
const query = (0, import_smithy_client.map)({
|
|
544
|
-
[_nT]: [, input[_nT]],
|
|
545
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
546
|
-
});
|
|
547
|
-
let body;
|
|
548
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
549
|
-
return b.build();
|
|
550
|
-
}, "se_GetQueryResultsMonitorTopContributorsCommand");
|
|
551
|
-
var se_GetQueryResultsWorkloadInsightsTopContributorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
552
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
553
|
-
const headers = {};
|
|
554
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsQueries/{queryId}/results");
|
|
555
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
556
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
557
|
-
const query = (0, import_smithy_client.map)({
|
|
558
|
-
[_nT]: [, input[_nT]],
|
|
559
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
560
|
-
});
|
|
561
|
-
let body;
|
|
562
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
563
|
-
return b.build();
|
|
564
|
-
}, "se_GetQueryResultsWorkloadInsightsTopContributorsCommand");
|
|
565
|
-
var se_GetQueryResultsWorkloadInsightsTopContributorsDataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
566
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
567
|
-
const headers = {};
|
|
568
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsDataQueries/{queryId}/results");
|
|
569
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
570
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
571
|
-
const query = (0, import_smithy_client.map)({
|
|
572
|
-
[_nT]: [, input[_nT]],
|
|
573
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
574
|
-
});
|
|
575
|
-
let body;
|
|
576
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
577
|
-
return b.build();
|
|
578
|
-
}, "se_GetQueryResultsWorkloadInsightsTopContributorsDataCommand");
|
|
579
|
-
var se_GetQueryStatusMonitorTopContributorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
580
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
581
|
-
const headers = {};
|
|
582
|
-
b.bp("/monitors/{monitorName}/topContributorsQueries/{queryId}/status");
|
|
583
|
-
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
584
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
585
|
-
let body;
|
|
586
|
-
b.m("GET").h(headers).b(body);
|
|
587
|
-
return b.build();
|
|
588
|
-
}, "se_GetQueryStatusMonitorTopContributorsCommand");
|
|
589
|
-
var se_GetQueryStatusWorkloadInsightsTopContributorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
590
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
591
|
-
const headers = {};
|
|
592
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsQueries/{queryId}/status");
|
|
593
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
594
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
595
|
-
let body;
|
|
596
|
-
b.m("GET").h(headers).b(body);
|
|
597
|
-
return b.build();
|
|
598
|
-
}, "se_GetQueryStatusWorkloadInsightsTopContributorsCommand");
|
|
599
|
-
var se_GetQueryStatusWorkloadInsightsTopContributorsDataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
600
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
601
|
-
const headers = {};
|
|
602
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsDataQueries/{queryId}/status");
|
|
603
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
604
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
605
|
-
let body;
|
|
606
|
-
b.m("GET").h(headers).b(body);
|
|
607
|
-
return b.build();
|
|
608
|
-
}, "se_GetQueryStatusWorkloadInsightsTopContributorsDataCommand");
|
|
609
|
-
var se_GetScopeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
610
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
611
|
-
const headers = {};
|
|
612
|
-
b.bp("/scopes/{scopeId}");
|
|
613
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
614
|
-
let body;
|
|
615
|
-
b.m("GET").h(headers).b(body);
|
|
616
|
-
return b.build();
|
|
617
|
-
}, "se_GetScopeCommand");
|
|
618
|
-
var se_ListMonitorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
619
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
620
|
-
const headers = {};
|
|
621
|
-
b.bp("/monitors");
|
|
622
|
-
const query = (0, import_smithy_client.map)({
|
|
623
|
-
[_nT]: [, input[_nT]],
|
|
624
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
625
|
-
[_mS]: [, input[_mS]]
|
|
626
|
-
});
|
|
627
|
-
let body;
|
|
628
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
629
|
-
return b.build();
|
|
630
|
-
}, "se_ListMonitorsCommand");
|
|
631
|
-
var se_ListScopesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
632
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
633
|
-
const headers = {};
|
|
634
|
-
b.bp("/scopes");
|
|
635
|
-
const query = (0, import_smithy_client.map)({
|
|
636
|
-
[_nT]: [, input[_nT]],
|
|
637
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
638
|
-
});
|
|
639
|
-
let body;
|
|
640
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
641
|
-
return b.build();
|
|
642
|
-
}, "se_ListScopesCommand");
|
|
643
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
644
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
645
|
-
const headers = {};
|
|
646
|
-
b.bp("/tags/{resourceArn}");
|
|
647
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
648
|
-
let body;
|
|
649
|
-
b.m("GET").h(headers).b(body);
|
|
650
|
-
return b.build();
|
|
651
|
-
}, "se_ListTagsForResourceCommand");
|
|
652
|
-
var se_StartQueryMonitorTopContributorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
653
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
654
|
-
const headers = {
|
|
655
|
-
"content-type": "application/json"
|
|
656
|
-
};
|
|
657
|
-
b.bp("/monitors/{monitorName}/topContributorsQueries");
|
|
658
|
-
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
659
|
-
let body;
|
|
660
|
-
body = JSON.stringify(
|
|
661
|
-
(0, import_smithy_client.take)(input, {
|
|
662
|
-
destinationCategory: [],
|
|
663
|
-
endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.serializeDateTime)(_), "endTime"),
|
|
664
|
-
limit: [],
|
|
665
|
-
metricName: [],
|
|
666
|
-
startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.serializeDateTime)(_), "startTime")
|
|
667
|
-
})
|
|
668
|
-
);
|
|
669
|
-
b.m("POST").h(headers).b(body);
|
|
670
|
-
return b.build();
|
|
671
|
-
}, "se_StartQueryMonitorTopContributorsCommand");
|
|
672
|
-
var se_StartQueryWorkloadInsightsTopContributorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
673
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
674
|
-
const headers = {
|
|
675
|
-
"content-type": "application/json"
|
|
676
|
-
};
|
|
677
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsQueries");
|
|
678
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
679
|
-
let body;
|
|
680
|
-
body = JSON.stringify(
|
|
681
|
-
(0, import_smithy_client.take)(input, {
|
|
682
|
-
destinationCategory: [],
|
|
683
|
-
endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.serializeDateTime)(_), "endTime"),
|
|
684
|
-
limit: [],
|
|
685
|
-
metricName: [],
|
|
686
|
-
startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.serializeDateTime)(_), "startTime")
|
|
687
|
-
})
|
|
688
|
-
);
|
|
689
|
-
b.m("POST").h(headers).b(body);
|
|
690
|
-
return b.build();
|
|
691
|
-
}, "se_StartQueryWorkloadInsightsTopContributorsCommand");
|
|
692
|
-
var se_StartQueryWorkloadInsightsTopContributorsDataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
693
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
694
|
-
const headers = {
|
|
695
|
-
"content-type": "application/json"
|
|
696
|
-
};
|
|
697
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsDataQueries");
|
|
698
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
699
|
-
let body;
|
|
700
|
-
body = JSON.stringify(
|
|
701
|
-
(0, import_smithy_client.take)(input, {
|
|
702
|
-
destinationCategory: [],
|
|
703
|
-
endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.serializeDateTime)(_), "endTime"),
|
|
704
|
-
metricName: [],
|
|
705
|
-
startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.serializeDateTime)(_), "startTime")
|
|
706
|
-
})
|
|
707
|
-
);
|
|
708
|
-
b.m("POST").h(headers).b(body);
|
|
709
|
-
return b.build();
|
|
710
|
-
}, "se_StartQueryWorkloadInsightsTopContributorsDataCommand");
|
|
711
|
-
var se_StopQueryMonitorTopContributorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
712
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
713
|
-
const headers = {};
|
|
714
|
-
b.bp("/monitors/{monitorName}/topContributorsQueries/{queryId}");
|
|
715
|
-
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
716
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
717
|
-
let body;
|
|
718
|
-
b.m("DELETE").h(headers).b(body);
|
|
719
|
-
return b.build();
|
|
720
|
-
}, "se_StopQueryMonitorTopContributorsCommand");
|
|
721
|
-
var se_StopQueryWorkloadInsightsTopContributorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
722
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
723
|
-
const headers = {};
|
|
724
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsQueries/{queryId}");
|
|
725
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
726
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
727
|
-
let body;
|
|
728
|
-
b.m("DELETE").h(headers).b(body);
|
|
729
|
-
return b.build();
|
|
730
|
-
}, "se_StopQueryWorkloadInsightsTopContributorsCommand");
|
|
731
|
-
var se_StopQueryWorkloadInsightsTopContributorsDataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
732
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
733
|
-
const headers = {};
|
|
734
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsDataQueries/{queryId}");
|
|
735
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
736
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
737
|
-
let body;
|
|
738
|
-
b.m("DELETE").h(headers).b(body);
|
|
739
|
-
return b.build();
|
|
740
|
-
}, "se_StopQueryWorkloadInsightsTopContributorsDataCommand");
|
|
741
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
742
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
743
|
-
const headers = {
|
|
744
|
-
"content-type": "application/json"
|
|
745
|
-
};
|
|
746
|
-
b.bp("/tags/{resourceArn}");
|
|
747
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
748
|
-
let body;
|
|
749
|
-
body = JSON.stringify(
|
|
750
|
-
(0, import_smithy_client.take)(input, {
|
|
751
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
752
|
-
})
|
|
753
|
-
);
|
|
754
|
-
b.m("POST").h(headers).b(body);
|
|
755
|
-
return b.build();
|
|
756
|
-
}, "se_TagResourceCommand");
|
|
757
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
758
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
759
|
-
const headers = {};
|
|
760
|
-
b.bp("/tags/{resourceArn}");
|
|
761
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
762
|
-
const query = (0, import_smithy_client.map)({
|
|
763
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
|
|
764
|
-
});
|
|
765
|
-
let body;
|
|
766
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
767
|
-
return b.build();
|
|
768
|
-
}, "se_UntagResourceCommand");
|
|
769
|
-
var se_UpdateMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
770
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
771
|
-
const headers = {
|
|
772
|
-
"content-type": "application/json"
|
|
773
|
-
};
|
|
774
|
-
b.bp("/monitors/{monitorName}");
|
|
775
|
-
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
776
|
-
let body;
|
|
777
|
-
body = JSON.stringify(
|
|
778
|
-
(0, import_smithy_client.take)(input, {
|
|
779
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
780
|
-
localResourcesToAdd: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "localResourcesToAdd"),
|
|
781
|
-
localResourcesToRemove: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "localResourcesToRemove"),
|
|
782
|
-
remoteResourcesToAdd: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "remoteResourcesToAdd"),
|
|
783
|
-
remoteResourcesToRemove: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "remoteResourcesToRemove")
|
|
784
|
-
})
|
|
785
|
-
);
|
|
786
|
-
b.m("PATCH").h(headers).b(body);
|
|
787
|
-
return b.build();
|
|
788
|
-
}, "se_UpdateMonitorCommand");
|
|
789
|
-
var se_UpdateScopeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
790
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
791
|
-
const headers = {
|
|
792
|
-
"content-type": "application/json"
|
|
793
|
-
};
|
|
794
|
-
b.bp("/scopes/{scopeId}");
|
|
795
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
796
|
-
let body;
|
|
797
|
-
body = JSON.stringify(
|
|
798
|
-
(0, import_smithy_client.take)(input, {
|
|
799
|
-
resourcesToAdd: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "resourcesToAdd"),
|
|
800
|
-
resourcesToDelete: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "resourcesToDelete")
|
|
801
|
-
})
|
|
802
|
-
);
|
|
803
|
-
b.m("PATCH").h(headers).b(body);
|
|
804
|
-
return b.build();
|
|
805
|
-
}, "se_UpdateScopeCommand");
|
|
806
|
-
var de_CreateMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
807
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
808
|
-
return de_CommandError(output, context);
|
|
809
|
-
}
|
|
810
|
-
const contents = (0, import_smithy_client.map)({
|
|
811
|
-
$metadata: deserializeMetadata(output)
|
|
812
|
-
});
|
|
813
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
814
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
815
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
816
|
-
localResources: import_smithy_client._json,
|
|
817
|
-
modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "modifiedAt"),
|
|
818
|
-
monitorArn: import_smithy_client.expectString,
|
|
819
|
-
monitorName: import_smithy_client.expectString,
|
|
820
|
-
monitorStatus: import_smithy_client.expectString,
|
|
821
|
-
remoteResources: import_smithy_client._json,
|
|
822
|
-
tags: import_smithy_client._json
|
|
823
|
-
});
|
|
824
|
-
Object.assign(contents, doc);
|
|
825
|
-
return contents;
|
|
826
|
-
}, "de_CreateMonitorCommand");
|
|
827
|
-
var de_CreateScopeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
828
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
829
|
-
return de_CommandError(output, context);
|
|
830
|
-
}
|
|
831
|
-
const contents = (0, import_smithy_client.map)({
|
|
832
|
-
$metadata: deserializeMetadata(output)
|
|
833
|
-
});
|
|
834
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
835
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
836
|
-
scopeArn: import_smithy_client.expectString,
|
|
837
|
-
scopeId: import_smithy_client.expectString,
|
|
838
|
-
status: import_smithy_client.expectString,
|
|
839
|
-
tags: import_smithy_client._json
|
|
840
|
-
});
|
|
841
|
-
Object.assign(contents, doc);
|
|
842
|
-
return contents;
|
|
843
|
-
}, "de_CreateScopeCommand");
|
|
844
|
-
var de_DeleteMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
845
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
|
-
return de_CommandError(output, context);
|
|
847
|
-
}
|
|
848
|
-
const contents = (0, import_smithy_client.map)({
|
|
849
|
-
$metadata: deserializeMetadata(output)
|
|
850
|
-
});
|
|
851
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
852
|
-
return contents;
|
|
853
|
-
}, "de_DeleteMonitorCommand");
|
|
854
|
-
var de_DeleteScopeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
855
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
856
|
-
return de_CommandError(output, context);
|
|
857
|
-
}
|
|
858
|
-
const contents = (0, import_smithy_client.map)({
|
|
859
|
-
$metadata: deserializeMetadata(output)
|
|
860
|
-
});
|
|
861
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
862
|
-
return contents;
|
|
863
|
-
}, "de_DeleteScopeCommand");
|
|
864
|
-
var de_GetMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
865
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
866
|
-
return de_CommandError(output, context);
|
|
867
|
-
}
|
|
868
|
-
const contents = (0, import_smithy_client.map)({
|
|
869
|
-
$metadata: deserializeMetadata(output)
|
|
870
|
-
});
|
|
871
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
872
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
873
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
874
|
-
localResources: import_smithy_client._json,
|
|
875
|
-
modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "modifiedAt"),
|
|
876
|
-
monitorArn: import_smithy_client.expectString,
|
|
877
|
-
monitorName: import_smithy_client.expectString,
|
|
878
|
-
monitorStatus: import_smithy_client.expectString,
|
|
879
|
-
remoteResources: import_smithy_client._json,
|
|
880
|
-
tags: import_smithy_client._json
|
|
881
|
-
});
|
|
882
|
-
Object.assign(contents, doc);
|
|
883
|
-
return contents;
|
|
884
|
-
}, "de_GetMonitorCommand");
|
|
885
|
-
var de_GetQueryResultsMonitorTopContributorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
886
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
|
-
return de_CommandError(output, context);
|
|
888
|
-
}
|
|
889
|
-
const contents = (0, import_smithy_client.map)({
|
|
890
|
-
$metadata: deserializeMetadata(output)
|
|
891
|
-
});
|
|
892
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
893
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
894
|
-
nextToken: import_smithy_client.expectString,
|
|
895
|
-
topContributors: import_smithy_client._json,
|
|
896
|
-
unit: import_smithy_client.expectString
|
|
897
|
-
});
|
|
898
|
-
Object.assign(contents, doc);
|
|
899
|
-
return contents;
|
|
900
|
-
}, "de_GetQueryResultsMonitorTopContributorsCommand");
|
|
901
|
-
var de_GetQueryResultsWorkloadInsightsTopContributorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
902
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
903
|
-
return de_CommandError(output, context);
|
|
904
|
-
}
|
|
905
|
-
const contents = (0, import_smithy_client.map)({
|
|
906
|
-
$metadata: deserializeMetadata(output)
|
|
907
|
-
});
|
|
908
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
909
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
910
|
-
nextToken: import_smithy_client.expectString,
|
|
911
|
-
topContributors: import_smithy_client._json
|
|
912
|
-
});
|
|
913
|
-
Object.assign(contents, doc);
|
|
914
|
-
return contents;
|
|
915
|
-
}, "de_GetQueryResultsWorkloadInsightsTopContributorsCommand");
|
|
916
|
-
var de_GetQueryResultsWorkloadInsightsTopContributorsDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
917
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
918
|
-
return de_CommandError(output, context);
|
|
919
|
-
}
|
|
920
|
-
const contents = (0, import_smithy_client.map)({
|
|
921
|
-
$metadata: deserializeMetadata(output)
|
|
922
|
-
});
|
|
923
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
924
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
925
|
-
datapoints: /* @__PURE__ */ __name((_) => de_WorkloadInsightsTopContributorsDataPoints(_, context), "datapoints"),
|
|
926
|
-
nextToken: import_smithy_client.expectString,
|
|
927
|
-
unit: import_smithy_client.expectString
|
|
928
|
-
});
|
|
929
|
-
Object.assign(contents, doc);
|
|
930
|
-
return contents;
|
|
931
|
-
}, "de_GetQueryResultsWorkloadInsightsTopContributorsDataCommand");
|
|
932
|
-
var de_GetQueryStatusMonitorTopContributorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
933
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
934
|
-
return de_CommandError(output, context);
|
|
935
|
-
}
|
|
936
|
-
const contents = (0, import_smithy_client.map)({
|
|
937
|
-
$metadata: deserializeMetadata(output)
|
|
938
|
-
});
|
|
939
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
940
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
941
|
-
status: import_smithy_client.expectString
|
|
942
|
-
});
|
|
943
|
-
Object.assign(contents, doc);
|
|
944
|
-
return contents;
|
|
945
|
-
}, "de_GetQueryStatusMonitorTopContributorsCommand");
|
|
946
|
-
var de_GetQueryStatusWorkloadInsightsTopContributorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
947
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
948
|
-
return de_CommandError(output, context);
|
|
949
|
-
}
|
|
950
|
-
const contents = (0, import_smithy_client.map)({
|
|
951
|
-
$metadata: deserializeMetadata(output)
|
|
952
|
-
});
|
|
953
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
954
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
955
|
-
status: import_smithy_client.expectString
|
|
956
|
-
});
|
|
957
|
-
Object.assign(contents, doc);
|
|
958
|
-
return contents;
|
|
959
|
-
}, "de_GetQueryStatusWorkloadInsightsTopContributorsCommand");
|
|
960
|
-
var de_GetQueryStatusWorkloadInsightsTopContributorsDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
961
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
962
|
-
return de_CommandError(output, context);
|
|
963
|
-
}
|
|
964
|
-
const contents = (0, import_smithy_client.map)({
|
|
965
|
-
$metadata: deserializeMetadata(output)
|
|
966
|
-
});
|
|
967
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
968
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
969
|
-
status: import_smithy_client.expectString
|
|
970
|
-
});
|
|
971
|
-
Object.assign(contents, doc);
|
|
972
|
-
return contents;
|
|
973
|
-
}, "de_GetQueryStatusWorkloadInsightsTopContributorsDataCommand");
|
|
974
|
-
var de_GetScopeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
975
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
976
|
-
return de_CommandError(output, context);
|
|
977
|
-
}
|
|
978
|
-
const contents = (0, import_smithy_client.map)({
|
|
979
|
-
$metadata: deserializeMetadata(output)
|
|
980
|
-
});
|
|
981
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
982
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
983
|
-
scopeArn: import_smithy_client.expectString,
|
|
984
|
-
scopeId: import_smithy_client.expectString,
|
|
985
|
-
status: import_smithy_client.expectString,
|
|
986
|
-
tags: import_smithy_client._json,
|
|
987
|
-
targets: import_smithy_client._json
|
|
988
|
-
});
|
|
989
|
-
Object.assign(contents, doc);
|
|
990
|
-
return contents;
|
|
991
|
-
}, "de_GetScopeCommand");
|
|
992
|
-
var de_ListMonitorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
993
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
994
|
-
return de_CommandError(output, context);
|
|
995
|
-
}
|
|
996
|
-
const contents = (0, import_smithy_client.map)({
|
|
997
|
-
$metadata: deserializeMetadata(output)
|
|
998
|
-
});
|
|
999
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1000
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1001
|
-
monitors: import_smithy_client._json,
|
|
1002
|
-
nextToken: import_smithy_client.expectString
|
|
1003
|
-
});
|
|
1004
|
-
Object.assign(contents, doc);
|
|
1005
|
-
return contents;
|
|
1006
|
-
}, "de_ListMonitorsCommand");
|
|
1007
|
-
var de_ListScopesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1008
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1009
|
-
return de_CommandError(output, context);
|
|
1010
|
-
}
|
|
1011
|
-
const contents = (0, import_smithy_client.map)({
|
|
1012
|
-
$metadata: deserializeMetadata(output)
|
|
1013
|
-
});
|
|
1014
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1015
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1016
|
-
nextToken: import_smithy_client.expectString,
|
|
1017
|
-
scopes: import_smithy_client._json
|
|
1018
|
-
});
|
|
1019
|
-
Object.assign(contents, doc);
|
|
1020
|
-
return contents;
|
|
1021
|
-
}, "de_ListScopesCommand");
|
|
1022
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1023
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1024
|
-
return de_CommandError(output, context);
|
|
1025
|
-
}
|
|
1026
|
-
const contents = (0, import_smithy_client.map)({
|
|
1027
|
-
$metadata: deserializeMetadata(output)
|
|
1028
|
-
});
|
|
1029
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1030
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1031
|
-
tags: import_smithy_client._json
|
|
1032
|
-
});
|
|
1033
|
-
Object.assign(contents, doc);
|
|
1034
|
-
return contents;
|
|
1035
|
-
}, "de_ListTagsForResourceCommand");
|
|
1036
|
-
var de_StartQueryMonitorTopContributorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1037
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1038
|
-
return de_CommandError(output, context);
|
|
1039
|
-
}
|
|
1040
|
-
const contents = (0, import_smithy_client.map)({
|
|
1041
|
-
$metadata: deserializeMetadata(output)
|
|
1042
|
-
});
|
|
1043
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1044
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1045
|
-
queryId: import_smithy_client.expectString
|
|
1046
|
-
});
|
|
1047
|
-
Object.assign(contents, doc);
|
|
1048
|
-
return contents;
|
|
1049
|
-
}, "de_StartQueryMonitorTopContributorsCommand");
|
|
1050
|
-
var de_StartQueryWorkloadInsightsTopContributorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1051
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1052
|
-
return de_CommandError(output, context);
|
|
1053
|
-
}
|
|
1054
|
-
const contents = (0, import_smithy_client.map)({
|
|
1055
|
-
$metadata: deserializeMetadata(output)
|
|
1056
|
-
});
|
|
1057
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1058
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1059
|
-
queryId: import_smithy_client.expectString
|
|
1060
|
-
});
|
|
1061
|
-
Object.assign(contents, doc);
|
|
1062
|
-
return contents;
|
|
1063
|
-
}, "de_StartQueryWorkloadInsightsTopContributorsCommand");
|
|
1064
|
-
var de_StartQueryWorkloadInsightsTopContributorsDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1065
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1066
|
-
return de_CommandError(output, context);
|
|
1067
|
-
}
|
|
1068
|
-
const contents = (0, import_smithy_client.map)({
|
|
1069
|
-
$metadata: deserializeMetadata(output)
|
|
1070
|
-
});
|
|
1071
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1072
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1073
|
-
queryId: import_smithy_client.expectString
|
|
1074
|
-
});
|
|
1075
|
-
Object.assign(contents, doc);
|
|
1076
|
-
return contents;
|
|
1077
|
-
}, "de_StartQueryWorkloadInsightsTopContributorsDataCommand");
|
|
1078
|
-
var de_StopQueryMonitorTopContributorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1079
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1080
|
-
return de_CommandError(output, context);
|
|
1081
|
-
}
|
|
1082
|
-
const contents = (0, import_smithy_client.map)({
|
|
1083
|
-
$metadata: deserializeMetadata(output)
|
|
1084
|
-
});
|
|
1085
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1086
|
-
return contents;
|
|
1087
|
-
}, "de_StopQueryMonitorTopContributorsCommand");
|
|
1088
|
-
var de_StopQueryWorkloadInsightsTopContributorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1089
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1090
|
-
return de_CommandError(output, context);
|
|
1091
|
-
}
|
|
1092
|
-
const contents = (0, import_smithy_client.map)({
|
|
1093
|
-
$metadata: deserializeMetadata(output)
|
|
1094
|
-
});
|
|
1095
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1096
|
-
return contents;
|
|
1097
|
-
}, "de_StopQueryWorkloadInsightsTopContributorsCommand");
|
|
1098
|
-
var de_StopQueryWorkloadInsightsTopContributorsDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1099
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1100
|
-
return de_CommandError(output, context);
|
|
1101
|
-
}
|
|
1102
|
-
const contents = (0, import_smithy_client.map)({
|
|
1103
|
-
$metadata: deserializeMetadata(output)
|
|
1104
|
-
});
|
|
1105
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1106
|
-
return contents;
|
|
1107
|
-
}, "de_StopQueryWorkloadInsightsTopContributorsDataCommand");
|
|
1108
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1109
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1110
|
-
return de_CommandError(output, context);
|
|
1111
|
-
}
|
|
1112
|
-
const contents = (0, import_smithy_client.map)({
|
|
1113
|
-
$metadata: deserializeMetadata(output)
|
|
1114
|
-
});
|
|
1115
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1116
|
-
return contents;
|
|
1117
|
-
}, "de_TagResourceCommand");
|
|
1118
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1119
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1120
|
-
return de_CommandError(output, context);
|
|
1121
|
-
}
|
|
1122
|
-
const contents = (0, import_smithy_client.map)({
|
|
1123
|
-
$metadata: deserializeMetadata(output)
|
|
1124
|
-
});
|
|
1125
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1126
|
-
return contents;
|
|
1127
|
-
}, "de_UntagResourceCommand");
|
|
1128
|
-
var de_UpdateMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1129
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1130
|
-
return de_CommandError(output, context);
|
|
1131
|
-
}
|
|
1132
|
-
const contents = (0, import_smithy_client.map)({
|
|
1133
|
-
$metadata: deserializeMetadata(output)
|
|
1134
|
-
});
|
|
1135
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1136
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1137
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
1138
|
-
localResources: import_smithy_client._json,
|
|
1139
|
-
modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "modifiedAt"),
|
|
1140
|
-
monitorArn: import_smithy_client.expectString,
|
|
1141
|
-
monitorName: import_smithy_client.expectString,
|
|
1142
|
-
monitorStatus: import_smithy_client.expectString,
|
|
1143
|
-
remoteResources: import_smithy_client._json,
|
|
1144
|
-
tags: import_smithy_client._json
|
|
1145
|
-
});
|
|
1146
|
-
Object.assign(contents, doc);
|
|
1147
|
-
return contents;
|
|
1148
|
-
}, "de_UpdateMonitorCommand");
|
|
1149
|
-
var de_UpdateScopeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1150
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1151
|
-
return de_CommandError(output, context);
|
|
1152
|
-
}
|
|
1153
|
-
const contents = (0, import_smithy_client.map)({
|
|
1154
|
-
$metadata: deserializeMetadata(output)
|
|
1155
|
-
});
|
|
1156
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1157
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1158
|
-
scopeArn: import_smithy_client.expectString,
|
|
1159
|
-
scopeId: import_smithy_client.expectString,
|
|
1160
|
-
status: import_smithy_client.expectString,
|
|
1161
|
-
tags: import_smithy_client._json
|
|
1162
|
-
});
|
|
1163
|
-
Object.assign(contents, doc);
|
|
1164
|
-
return contents;
|
|
1165
|
-
}, "de_UpdateScopeCommand");
|
|
1166
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1167
|
-
const parsedOutput = {
|
|
1168
|
-
...output,
|
|
1169
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1170
|
-
};
|
|
1171
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1172
|
-
switch (errorCode) {
|
|
1173
|
-
case "AccessDeniedException":
|
|
1174
|
-
case "com.amazonaws.networkflowmonitor#AccessDeniedException":
|
|
1175
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "ConflictException":
|
|
1177
|
-
case "com.amazonaws.networkflowmonitor#ConflictException":
|
|
1178
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "InternalServerException":
|
|
1180
|
-
case "com.amazonaws.networkflowmonitor#InternalServerException":
|
|
1181
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ServiceQuotaExceededException":
|
|
1183
|
-
case "com.amazonaws.networkflowmonitor#ServiceQuotaExceededException":
|
|
1184
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ThrottlingException":
|
|
1186
|
-
case "com.amazonaws.networkflowmonitor#ThrottlingException":
|
|
1187
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ValidationException":
|
|
1189
|
-
case "com.amazonaws.networkflowmonitor#ValidationException":
|
|
1190
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "ResourceNotFoundException":
|
|
1192
|
-
case "com.amazonaws.networkflowmonitor#ResourceNotFoundException":
|
|
1193
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1194
|
-
default:
|
|
1195
|
-
const parsedBody = parsedOutput.body;
|
|
1196
|
-
return throwDefaultError({
|
|
1197
|
-
output,
|
|
1198
|
-
parsedBody,
|
|
1199
|
-
errorCode
|
|
1200
|
-
});
|
|
1201
|
-
}
|
|
1202
|
-
}, "de_CommandError");
|
|
1203
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(NetworkFlowMonitorServiceException);
|
|
1204
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1205
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1206
|
-
const data = parsedOutput.body;
|
|
1207
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1208
|
-
message: import_smithy_client.expectString
|
|
1209
|
-
});
|
|
1210
|
-
Object.assign(contents, doc);
|
|
1211
|
-
const exception = new AccessDeniedException({
|
|
1212
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1213
|
-
...contents
|
|
1214
|
-
});
|
|
1215
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1216
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1217
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1218
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1219
|
-
const data = parsedOutput.body;
|
|
1220
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1221
|
-
message: import_smithy_client.expectString
|
|
1222
|
-
});
|
|
1223
|
-
Object.assign(contents, doc);
|
|
1224
|
-
const exception = new ConflictException({
|
|
1225
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1226
|
-
...contents
|
|
1227
|
-
});
|
|
1228
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1229
|
-
}, "de_ConflictExceptionRes");
|
|
1230
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1231
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1232
|
-
const data = parsedOutput.body;
|
|
1233
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1234
|
-
message: import_smithy_client.expectString
|
|
1235
|
-
});
|
|
1236
|
-
Object.assign(contents, doc);
|
|
1237
|
-
const exception = new InternalServerException({
|
|
1238
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1239
|
-
...contents
|
|
1240
|
-
});
|
|
1241
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1242
|
-
}, "de_InternalServerExceptionRes");
|
|
1243
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1244
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1245
|
-
const data = parsedOutput.body;
|
|
1246
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1247
|
-
message: import_smithy_client.expectString
|
|
1248
|
-
});
|
|
1249
|
-
Object.assign(contents, doc);
|
|
1250
|
-
const exception = new ResourceNotFoundException({
|
|
1251
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1252
|
-
...contents
|
|
1253
|
-
});
|
|
1254
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1255
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1256
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1257
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1258
|
-
const data = parsedOutput.body;
|
|
1259
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1260
|
-
message: import_smithy_client.expectString
|
|
1261
|
-
});
|
|
1262
|
-
Object.assign(contents, doc);
|
|
1263
|
-
const exception = new ServiceQuotaExceededException({
|
|
1264
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1265
|
-
...contents
|
|
1266
|
-
});
|
|
1267
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1268
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1269
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1270
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1271
|
-
const data = parsedOutput.body;
|
|
1272
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1273
|
-
message: import_smithy_client.expectString
|
|
1274
|
-
});
|
|
1275
|
-
Object.assign(contents, doc);
|
|
1276
|
-
const exception = new ThrottlingException({
|
|
1277
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1278
|
-
...contents
|
|
1279
|
-
});
|
|
1280
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1281
|
-
}, "de_ThrottlingExceptionRes");
|
|
1282
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1283
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1284
|
-
const data = parsedOutput.body;
|
|
1285
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1286
|
-
message: import_smithy_client.expectString
|
|
1287
|
-
});
|
|
1288
|
-
Object.assign(contents, doc);
|
|
1289
|
-
const exception = new ValidationException({
|
|
1290
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1291
|
-
...contents
|
|
1292
|
-
});
|
|
1293
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1294
|
-
}, "de_ValidationExceptionRes");
|
|
1295
|
-
var de_WorkloadInsightsTopContributorsDataPoint = /* @__PURE__ */ __name((output, context) => {
|
|
1296
|
-
return (0, import_smithy_client.take)(output, {
|
|
1297
|
-
label: import_smithy_client.expectString,
|
|
1298
|
-
timestamps: /* @__PURE__ */ __name((_) => de_WorkloadInsightsTopContributorsTimestampsList(_, context), "timestamps"),
|
|
1299
|
-
values: /* @__PURE__ */ __name((_) => de_WorkloadInsightsTopContributorsValuesList(_, context), "values")
|
|
1300
|
-
});
|
|
1301
|
-
}, "de_WorkloadInsightsTopContributorsDataPoint");
|
|
1302
|
-
var de_WorkloadInsightsTopContributorsDataPoints = /* @__PURE__ */ __name((output, context) => {
|
|
1303
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1304
|
-
return de_WorkloadInsightsTopContributorsDataPoint(entry, context);
|
|
1305
|
-
});
|
|
1306
|
-
return retVal;
|
|
1307
|
-
}, "de_WorkloadInsightsTopContributorsDataPoints");
|
|
1308
|
-
var de_WorkloadInsightsTopContributorsTimestampsList = /* @__PURE__ */ __name((output, context) => {
|
|
1309
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1310
|
-
return (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(entry));
|
|
1311
|
-
});
|
|
1312
|
-
return retVal;
|
|
1313
|
-
}, "de_WorkloadInsightsTopContributorsTimestampsList");
|
|
1314
|
-
var de_WorkloadInsightsTopContributorsValuesList = /* @__PURE__ */ __name((output, context) => {
|
|
1315
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1316
|
-
return (0, import_smithy_client.limitedParseDouble)(entry);
|
|
1317
|
-
});
|
|
1318
|
-
return retVal;
|
|
1319
|
-
}, "de_WorkloadInsightsTopContributorsValuesList");
|
|
1320
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1321
|
-
httpStatusCode: output.statusCode,
|
|
1322
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1323
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1324
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1325
|
-
}), "deserializeMetadata");
|
|
1326
|
-
var _mR = "maxResults";
|
|
1327
|
-
var _mS = "monitorStatus";
|
|
1328
|
-
var _nT = "nextToken";
|
|
1329
|
-
var _tK = "tagKeys";
|
|
1330
|
-
|
|
1331
|
-
// src/commands/CreateMonitorCommand.ts
|
|
1332
|
-
var CreateMonitorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1333
|
-
return [
|
|
1334
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1335
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1336
|
-
];
|
|
1337
|
-
}).s("NetworkFlowMonitor", "CreateMonitor", {}).n("NetworkFlowMonitorClient", "CreateMonitorCommand").f(void 0, void 0).ser(se_CreateMonitorCommand).de(de_CreateMonitorCommand).build() {
|
|
1338
|
-
static {
|
|
1339
|
-
__name(this, "CreateMonitorCommand");
|
|
1340
|
-
}
|
|
163
|
+
class InternalServerException extends NetworkFlowMonitorServiceException {
|
|
164
|
+
name = "InternalServerException";
|
|
165
|
+
$fault = "server";
|
|
166
|
+
$retryable = {};
|
|
167
|
+
constructor(opts) {
|
|
168
|
+
super({
|
|
169
|
+
name: "InternalServerException",
|
|
170
|
+
$fault: "server",
|
|
171
|
+
...opts,
|
|
172
|
+
});
|
|
173
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
class ServiceQuotaExceededException extends NetworkFlowMonitorServiceException {
|
|
177
|
+
name = "ServiceQuotaExceededException";
|
|
178
|
+
$fault = "client";
|
|
179
|
+
constructor(opts) {
|
|
180
|
+
super({
|
|
181
|
+
name: "ServiceQuotaExceededException",
|
|
182
|
+
$fault: "client",
|
|
183
|
+
...opts,
|
|
184
|
+
});
|
|
185
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
class ThrottlingException extends NetworkFlowMonitorServiceException {
|
|
189
|
+
name = "ThrottlingException";
|
|
190
|
+
$fault = "client";
|
|
191
|
+
$retryable = {
|
|
192
|
+
throttling: true,
|
|
193
|
+
};
|
|
194
|
+
constructor(opts) {
|
|
195
|
+
super({
|
|
196
|
+
name: "ThrottlingException",
|
|
197
|
+
$fault: "client",
|
|
198
|
+
...opts,
|
|
199
|
+
});
|
|
200
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
class ValidationException extends NetworkFlowMonitorServiceException {
|
|
204
|
+
name = "ValidationException";
|
|
205
|
+
$fault = "client";
|
|
206
|
+
constructor(opts) {
|
|
207
|
+
super({
|
|
208
|
+
name: "ValidationException",
|
|
209
|
+
$fault: "client",
|
|
210
|
+
...opts,
|
|
211
|
+
});
|
|
212
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
exports.TargetId = void 0;
|
|
216
|
+
(function (TargetId) {
|
|
217
|
+
TargetId.visit = (value, visitor) => {
|
|
218
|
+
if (value.accountId !== undefined)
|
|
219
|
+
return visitor.accountId(value.accountId);
|
|
220
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
221
|
+
};
|
|
222
|
+
})(exports.TargetId || (exports.TargetId = {}));
|
|
223
|
+
const TargetType = {
|
|
224
|
+
ACCOUNT: "ACCOUNT",
|
|
1341
225
|
};
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
return [
|
|
1349
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1350
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1351
|
-
];
|
|
1352
|
-
}).s("NetworkFlowMonitor", "CreateScope", {}).n("NetworkFlowMonitorClient", "CreateScopeCommand").f(void 0, void 0).ser(se_CreateScopeCommand).de(de_CreateScopeCommand).build() {
|
|
1353
|
-
static {
|
|
1354
|
-
__name(this, "CreateScopeCommand");
|
|
1355
|
-
}
|
|
226
|
+
const ScopeStatus = {
|
|
227
|
+
DEACTIVATED: "DEACTIVATED",
|
|
228
|
+
DEACTIVATING: "DEACTIVATING",
|
|
229
|
+
FAILED: "FAILED",
|
|
230
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
231
|
+
SUCCEEDED: "SUCCEEDED",
|
|
1356
232
|
};
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
}
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
233
|
+
class ResourceNotFoundException extends NetworkFlowMonitorServiceException {
|
|
234
|
+
name = "ResourceNotFoundException";
|
|
235
|
+
$fault = "client";
|
|
236
|
+
constructor(opts) {
|
|
237
|
+
super({
|
|
238
|
+
name: "ResourceNotFoundException",
|
|
239
|
+
$fault: "client",
|
|
240
|
+
...opts,
|
|
241
|
+
});
|
|
242
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
const DestinationCategory = {
|
|
246
|
+
AMAZON_DYNAMODB: "AMAZON_DYNAMODB",
|
|
247
|
+
AMAZON_S3: "AMAZON_S3",
|
|
248
|
+
INTER_AZ: "INTER_AZ",
|
|
249
|
+
INTER_REGION: "INTER_REGION",
|
|
250
|
+
INTER_VPC: "INTER_VPC",
|
|
251
|
+
INTRA_AZ: "INTRA_AZ",
|
|
252
|
+
UNCLASSIFIED: "UNCLASSIFIED",
|
|
1371
253
|
};
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
254
|
+
const MetricUnit = {
|
|
255
|
+
BITS: "Bits",
|
|
256
|
+
BITS_PER_SECOND: "Bits/Second",
|
|
257
|
+
BYTES: "Bytes",
|
|
258
|
+
BYTES_PER_SECOND: "Bytes/Second",
|
|
259
|
+
COUNT: "Count",
|
|
260
|
+
COUNT_PER_SECOND: "Count/Second",
|
|
261
|
+
GIGABITS: "Gigabits",
|
|
262
|
+
GIGABITS_PER_SECOND: "Gigabits/Second",
|
|
263
|
+
GIGABYTES: "Gigabytes",
|
|
264
|
+
GIGABYTES_PER_SECOND: "Gigabytes/Second",
|
|
265
|
+
KILOBITS: "Kilobits",
|
|
266
|
+
KILOBITS_PER_SECOND: "Kilobits/Second",
|
|
267
|
+
KILOBYTES: "Kilobytes",
|
|
268
|
+
KILOBYTES_PER_SECOND: "Kilobytes/Second",
|
|
269
|
+
MEGABITS: "Megabits",
|
|
270
|
+
MEGABITS_PER_SECOND: "Megabits/Second",
|
|
271
|
+
MEGABYTES: "Megabytes",
|
|
272
|
+
MEGABYTES_PER_SECOND: "Megabytes/Second",
|
|
273
|
+
MICROSECONDS: "Microseconds",
|
|
274
|
+
MILLISECONDS: "Milliseconds",
|
|
275
|
+
NONE: "None",
|
|
276
|
+
PERCENT: "Percent",
|
|
277
|
+
SECONDS: "Seconds",
|
|
278
|
+
TERABITS: "Terabits",
|
|
279
|
+
TERABITS_PER_SECOND: "Terabits/Second",
|
|
280
|
+
TERABYTES: "Terabytes",
|
|
281
|
+
TERABYTES_PER_SECOND: "Terabytes/Second",
|
|
1386
282
|
};
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
return [
|
|
1394
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1395
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1396
|
-
];
|
|
1397
|
-
}).s("NetworkFlowMonitor", "GetMonitor", {}).n("NetworkFlowMonitorClient", "GetMonitorCommand").f(void 0, void 0).ser(se_GetMonitorCommand).de(de_GetMonitorCommand).build() {
|
|
1398
|
-
static {
|
|
1399
|
-
__name(this, "GetMonitorCommand");
|
|
1400
|
-
}
|
|
283
|
+
const QueryStatus = {
|
|
284
|
+
CANCELED: "CANCELED",
|
|
285
|
+
FAILED: "FAILED",
|
|
286
|
+
QUEUED: "QUEUED",
|
|
287
|
+
RUNNING: "RUNNING",
|
|
288
|
+
SUCCEEDED: "SUCCEEDED",
|
|
1401
289
|
};
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
var GetQueryResultsMonitorTopContributorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1408
|
-
return [
|
|
1409
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1410
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1411
|
-
];
|
|
1412
|
-
}).s("NetworkFlowMonitor", "GetQueryResultsMonitorTopContributors", {}).n("NetworkFlowMonitorClient", "GetQueryResultsMonitorTopContributorsCommand").f(void 0, void 0).ser(se_GetQueryResultsMonitorTopContributorsCommand).de(de_GetQueryResultsMonitorTopContributorsCommand).build() {
|
|
1413
|
-
static {
|
|
1414
|
-
__name(this, "GetQueryResultsMonitorTopContributorsCommand");
|
|
1415
|
-
}
|
|
290
|
+
const MonitorMetric = {
|
|
291
|
+
DATA_TRANSFERRED: "DATA_TRANSFERRED",
|
|
292
|
+
RETRANSMISSIONS: "RETRANSMISSIONS",
|
|
293
|
+
ROUND_TRIP_TIME: "ROUND_TRIP_TIME",
|
|
294
|
+
TIMEOUTS: "TIMEOUTS",
|
|
1416
295
|
};
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
var GetQueryResultsWorkloadInsightsTopContributorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1423
|
-
return [
|
|
1424
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1425
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1426
|
-
];
|
|
1427
|
-
}).s("NetworkFlowMonitor", "GetQueryResultsWorkloadInsightsTopContributors", {}).n("NetworkFlowMonitorClient", "GetQueryResultsWorkloadInsightsTopContributorsCommand").f(void 0, void 0).ser(se_GetQueryResultsWorkloadInsightsTopContributorsCommand).de(de_GetQueryResultsWorkloadInsightsTopContributorsCommand).build() {
|
|
1428
|
-
static {
|
|
1429
|
-
__name(this, "GetQueryResultsWorkloadInsightsTopContributorsCommand");
|
|
1430
|
-
}
|
|
296
|
+
const WorkloadInsightsMetric = {
|
|
297
|
+
DATA_TRANSFERRED: "DATA_TRANSFERRED",
|
|
298
|
+
RETRANSMISSIONS: "RETRANSMISSIONS",
|
|
299
|
+
TIMEOUTS: "TIMEOUTS",
|
|
1431
300
|
};
|
|
1432
301
|
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
302
|
+
const se_CreateMonitorCommand = async (input, context) => {
|
|
303
|
+
const b = core.requestBuilder(input, context);
|
|
304
|
+
const headers = {
|
|
305
|
+
"content-type": "application/json",
|
|
306
|
+
};
|
|
307
|
+
b.bp("/monitors");
|
|
308
|
+
let body;
|
|
309
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
310
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
311
|
+
localResources: (_) => smithyClient._json(_),
|
|
312
|
+
monitorName: [],
|
|
313
|
+
remoteResources: (_) => smithyClient._json(_),
|
|
314
|
+
scopeArn: [],
|
|
315
|
+
tags: (_) => smithyClient._json(_),
|
|
316
|
+
}));
|
|
317
|
+
b.m("POST").h(headers).b(body);
|
|
318
|
+
return b.build();
|
|
1446
319
|
};
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
320
|
+
const se_CreateScopeCommand = async (input, context) => {
|
|
321
|
+
const b = core.requestBuilder(input, context);
|
|
322
|
+
const headers = {
|
|
323
|
+
"content-type": "application/json",
|
|
324
|
+
};
|
|
325
|
+
b.bp("/scopes");
|
|
326
|
+
let body;
|
|
327
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
328
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
329
|
+
tags: (_) => smithyClient._json(_),
|
|
330
|
+
targets: (_) => smithyClient._json(_),
|
|
331
|
+
}));
|
|
332
|
+
b.m("POST").h(headers).b(body);
|
|
333
|
+
return b.build();
|
|
1461
334
|
};
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1471
|
-
];
|
|
1472
|
-
}).s("NetworkFlowMonitor", "GetQueryStatusWorkloadInsightsTopContributors", {}).n("NetworkFlowMonitorClient", "GetQueryStatusWorkloadInsightsTopContributorsCommand").f(void 0, void 0).ser(se_GetQueryStatusWorkloadInsightsTopContributorsCommand).de(de_GetQueryStatusWorkloadInsightsTopContributorsCommand).build() {
|
|
1473
|
-
static {
|
|
1474
|
-
__name(this, "GetQueryStatusWorkloadInsightsTopContributorsCommand");
|
|
1475
|
-
}
|
|
335
|
+
const se_DeleteMonitorCommand = async (input, context) => {
|
|
336
|
+
const b = core.requestBuilder(input, context);
|
|
337
|
+
const headers = {};
|
|
338
|
+
b.bp("/monitors/{monitorName}");
|
|
339
|
+
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
340
|
+
let body;
|
|
341
|
+
b.m("DELETE").h(headers).b(body);
|
|
342
|
+
return b.build();
|
|
1476
343
|
};
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1486
|
-
];
|
|
1487
|
-
}).s("NetworkFlowMonitor", "GetQueryStatusWorkloadInsightsTopContributorsData", {}).n("NetworkFlowMonitorClient", "GetQueryStatusWorkloadInsightsTopContributorsDataCommand").f(void 0, void 0).ser(se_GetQueryStatusWorkloadInsightsTopContributorsDataCommand).de(de_GetQueryStatusWorkloadInsightsTopContributorsDataCommand).build() {
|
|
1488
|
-
static {
|
|
1489
|
-
__name(this, "GetQueryStatusWorkloadInsightsTopContributorsDataCommand");
|
|
1490
|
-
}
|
|
344
|
+
const se_DeleteScopeCommand = async (input, context) => {
|
|
345
|
+
const b = core.requestBuilder(input, context);
|
|
346
|
+
const headers = {};
|
|
347
|
+
b.bp("/scopes/{scopeId}");
|
|
348
|
+
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
349
|
+
let body;
|
|
350
|
+
b.m("DELETE").h(headers).b(body);
|
|
351
|
+
return b.build();
|
|
1491
352
|
};
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1501
|
-
];
|
|
1502
|
-
}).s("NetworkFlowMonitor", "GetScope", {}).n("NetworkFlowMonitorClient", "GetScopeCommand").f(void 0, void 0).ser(se_GetScopeCommand).de(de_GetScopeCommand).build() {
|
|
1503
|
-
static {
|
|
1504
|
-
__name(this, "GetScopeCommand");
|
|
1505
|
-
}
|
|
353
|
+
const se_GetMonitorCommand = async (input, context) => {
|
|
354
|
+
const b = core.requestBuilder(input, context);
|
|
355
|
+
const headers = {};
|
|
356
|
+
b.bp("/monitors/{monitorName}");
|
|
357
|
+
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
358
|
+
let body;
|
|
359
|
+
b.m("GET").h(headers).b(body);
|
|
360
|
+
return b.build();
|
|
1506
361
|
};
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
}
|
|
362
|
+
const se_GetQueryResultsMonitorTopContributorsCommand = async (input, context) => {
|
|
363
|
+
const b = core.requestBuilder(input, context);
|
|
364
|
+
const headers = {};
|
|
365
|
+
b.bp("/monitors/{monitorName}/topContributorsQueries/{queryId}/results");
|
|
366
|
+
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
367
|
+
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
368
|
+
const query = smithyClient.map({
|
|
369
|
+
[_nT]: [, input[_nT]],
|
|
370
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
371
|
+
});
|
|
372
|
+
let body;
|
|
373
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
374
|
+
return b.build();
|
|
1521
375
|
};
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
}
|
|
376
|
+
const se_GetQueryResultsWorkloadInsightsTopContributorsCommand = async (input, context) => {
|
|
377
|
+
const b = core.requestBuilder(input, context);
|
|
378
|
+
const headers = {};
|
|
379
|
+
b.bp("/workloadInsights/{scopeId}/topContributorsQueries/{queryId}/results");
|
|
380
|
+
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
381
|
+
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
382
|
+
const query = smithyClient.map({
|
|
383
|
+
[_nT]: [, input[_nT]],
|
|
384
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
385
|
+
});
|
|
386
|
+
let body;
|
|
387
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
388
|
+
return b.build();
|
|
1536
389
|
};
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
}
|
|
390
|
+
const se_GetQueryResultsWorkloadInsightsTopContributorsDataCommand = async (input, context) => {
|
|
391
|
+
const b = core.requestBuilder(input, context);
|
|
392
|
+
const headers = {};
|
|
393
|
+
b.bp("/workloadInsights/{scopeId}/topContributorsDataQueries/{queryId}/results");
|
|
394
|
+
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
395
|
+
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
396
|
+
const query = smithyClient.map({
|
|
397
|
+
[_nT]: [, input[_nT]],
|
|
398
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
399
|
+
});
|
|
400
|
+
let body;
|
|
401
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
402
|
+
return b.build();
|
|
1551
403
|
};
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
(
|
|
1560
|
-
|
|
1561
|
-
];
|
|
1562
|
-
}).s("NetworkFlowMonitor", "StartQueryMonitorTopContributors", {}).n("NetworkFlowMonitorClient", "StartQueryMonitorTopContributorsCommand").f(void 0, void 0).ser(se_StartQueryMonitorTopContributorsCommand).de(de_StartQueryMonitorTopContributorsCommand).build() {
|
|
1563
|
-
static {
|
|
1564
|
-
__name(this, "StartQueryMonitorTopContributorsCommand");
|
|
1565
|
-
}
|
|
404
|
+
const se_GetQueryStatusMonitorTopContributorsCommand = async (input, context) => {
|
|
405
|
+
const b = core.requestBuilder(input, context);
|
|
406
|
+
const headers = {};
|
|
407
|
+
b.bp("/monitors/{monitorName}/topContributorsQueries/{queryId}/status");
|
|
408
|
+
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
409
|
+
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
410
|
+
let body;
|
|
411
|
+
b.m("GET").h(headers).b(body);
|
|
412
|
+
return b.build();
|
|
1566
413
|
};
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
(
|
|
1575
|
-
|
|
1576
|
-
];
|
|
1577
|
-
}).s("NetworkFlowMonitor", "StartQueryWorkloadInsightsTopContributors", {}).n("NetworkFlowMonitorClient", "StartQueryWorkloadInsightsTopContributorsCommand").f(void 0, void 0).ser(se_StartQueryWorkloadInsightsTopContributorsCommand).de(de_StartQueryWorkloadInsightsTopContributorsCommand).build() {
|
|
1578
|
-
static {
|
|
1579
|
-
__name(this, "StartQueryWorkloadInsightsTopContributorsCommand");
|
|
1580
|
-
}
|
|
414
|
+
const se_GetQueryStatusWorkloadInsightsTopContributorsCommand = async (input, context) => {
|
|
415
|
+
const b = core.requestBuilder(input, context);
|
|
416
|
+
const headers = {};
|
|
417
|
+
b.bp("/workloadInsights/{scopeId}/topContributorsQueries/{queryId}/status");
|
|
418
|
+
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
419
|
+
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
420
|
+
let body;
|
|
421
|
+
b.m("GET").h(headers).b(body);
|
|
422
|
+
return b.build();
|
|
1581
423
|
};
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
(
|
|
1590
|
-
|
|
1591
|
-
];
|
|
1592
|
-
}).s("NetworkFlowMonitor", "StartQueryWorkloadInsightsTopContributorsData", {}).n("NetworkFlowMonitorClient", "StartQueryWorkloadInsightsTopContributorsDataCommand").f(void 0, void 0).ser(se_StartQueryWorkloadInsightsTopContributorsDataCommand).de(de_StartQueryWorkloadInsightsTopContributorsDataCommand).build() {
|
|
1593
|
-
static {
|
|
1594
|
-
__name(this, "StartQueryWorkloadInsightsTopContributorsDataCommand");
|
|
1595
|
-
}
|
|
424
|
+
const se_GetQueryStatusWorkloadInsightsTopContributorsDataCommand = async (input, context) => {
|
|
425
|
+
const b = core.requestBuilder(input, context);
|
|
426
|
+
const headers = {};
|
|
427
|
+
b.bp("/workloadInsights/{scopeId}/topContributorsDataQueries/{queryId}/status");
|
|
428
|
+
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
429
|
+
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
430
|
+
let body;
|
|
431
|
+
b.m("GET").h(headers).b(body);
|
|
432
|
+
return b.build();
|
|
1596
433
|
};
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1606
|
-
];
|
|
1607
|
-
}).s("NetworkFlowMonitor", "StopQueryMonitorTopContributors", {}).n("NetworkFlowMonitorClient", "StopQueryMonitorTopContributorsCommand").f(void 0, void 0).ser(se_StopQueryMonitorTopContributorsCommand).de(de_StopQueryMonitorTopContributorsCommand).build() {
|
|
1608
|
-
static {
|
|
1609
|
-
__name(this, "StopQueryMonitorTopContributorsCommand");
|
|
1610
|
-
}
|
|
434
|
+
const se_GetScopeCommand = async (input, context) => {
|
|
435
|
+
const b = core.requestBuilder(input, context);
|
|
436
|
+
const headers = {};
|
|
437
|
+
b.bp("/scopes/{scopeId}");
|
|
438
|
+
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
439
|
+
let body;
|
|
440
|
+
b.m("GET").h(headers).b(body);
|
|
441
|
+
return b.build();
|
|
1611
442
|
};
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
__name(this, "StopQueryWorkloadInsightsTopContributorsCommand");
|
|
1625
|
-
}
|
|
443
|
+
const se_ListMonitorsCommand = async (input, context) => {
|
|
444
|
+
const b = core.requestBuilder(input, context);
|
|
445
|
+
const headers = {};
|
|
446
|
+
b.bp("/monitors");
|
|
447
|
+
const query = smithyClient.map({
|
|
448
|
+
[_nT]: [, input[_nT]],
|
|
449
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
450
|
+
[_mS]: [, input[_mS]],
|
|
451
|
+
});
|
|
452
|
+
let body;
|
|
453
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
454
|
+
return b.build();
|
|
1626
455
|
};
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
static {
|
|
1639
|
-
__name(this, "StopQueryWorkloadInsightsTopContributorsDataCommand");
|
|
1640
|
-
}
|
|
456
|
+
const se_ListScopesCommand = async (input, context) => {
|
|
457
|
+
const b = core.requestBuilder(input, context);
|
|
458
|
+
const headers = {};
|
|
459
|
+
b.bp("/scopes");
|
|
460
|
+
const query = smithyClient.map({
|
|
461
|
+
[_nT]: [, input[_nT]],
|
|
462
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
463
|
+
});
|
|
464
|
+
let body;
|
|
465
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
466
|
+
return b.build();
|
|
1641
467
|
};
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1651
|
-
];
|
|
1652
|
-
}).s("NetworkFlowMonitor", "TagResource", {}).n("NetworkFlowMonitorClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1653
|
-
static {
|
|
1654
|
-
__name(this, "TagResourceCommand");
|
|
1655
|
-
}
|
|
468
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
469
|
+
const b = core.requestBuilder(input, context);
|
|
470
|
+
const headers = {};
|
|
471
|
+
b.bp("/tags/{resourceArn}");
|
|
472
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
473
|
+
let body;
|
|
474
|
+
b.m("GET").h(headers).b(body);
|
|
475
|
+
return b.build();
|
|
1656
476
|
};
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
477
|
+
const se_StartQueryMonitorTopContributorsCommand = async (input, context) => {
|
|
478
|
+
const b = core.requestBuilder(input, context);
|
|
479
|
+
const headers = {
|
|
480
|
+
"content-type": "application/json",
|
|
481
|
+
};
|
|
482
|
+
b.bp("/monitors/{monitorName}/topContributorsQueries");
|
|
483
|
+
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
484
|
+
let body;
|
|
485
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
486
|
+
destinationCategory: [],
|
|
487
|
+
endTime: (_) => smithyClient.serializeDateTime(_),
|
|
488
|
+
limit: [],
|
|
489
|
+
metricName: [],
|
|
490
|
+
startTime: (_) => smithyClient.serializeDateTime(_),
|
|
491
|
+
}));
|
|
492
|
+
b.m("POST").h(headers).b(body);
|
|
493
|
+
return b.build();
|
|
1671
494
|
};
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
495
|
+
const se_StartQueryWorkloadInsightsTopContributorsCommand = async (input, context) => {
|
|
496
|
+
const b = core.requestBuilder(input, context);
|
|
497
|
+
const headers = {
|
|
498
|
+
"content-type": "application/json",
|
|
499
|
+
};
|
|
500
|
+
b.bp("/workloadInsights/{scopeId}/topContributorsQueries");
|
|
501
|
+
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
502
|
+
let body;
|
|
503
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
504
|
+
destinationCategory: [],
|
|
505
|
+
endTime: (_) => smithyClient.serializeDateTime(_),
|
|
506
|
+
limit: [],
|
|
507
|
+
metricName: [],
|
|
508
|
+
startTime: (_) => smithyClient.serializeDateTime(_),
|
|
509
|
+
}));
|
|
510
|
+
b.m("POST").h(headers).b(body);
|
|
511
|
+
return b.build();
|
|
1686
512
|
};
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
513
|
+
const se_StartQueryWorkloadInsightsTopContributorsDataCommand = async (input, context) => {
|
|
514
|
+
const b = core.requestBuilder(input, context);
|
|
515
|
+
const headers = {
|
|
516
|
+
"content-type": "application/json",
|
|
517
|
+
};
|
|
518
|
+
b.bp("/workloadInsights/{scopeId}/topContributorsDataQueries");
|
|
519
|
+
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
520
|
+
let body;
|
|
521
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
522
|
+
destinationCategory: [],
|
|
523
|
+
endTime: (_) => smithyClient.serializeDateTime(_),
|
|
524
|
+
metricName: [],
|
|
525
|
+
startTime: (_) => smithyClient.serializeDateTime(_),
|
|
526
|
+
}));
|
|
527
|
+
b.m("POST").h(headers).b(body);
|
|
528
|
+
return b.build();
|
|
1701
529
|
};
|
|
530
|
+
const se_StopQueryMonitorTopContributorsCommand = async (input, context) => {
|
|
531
|
+
const b = core.requestBuilder(input, context);
|
|
532
|
+
const headers = {};
|
|
533
|
+
b.bp("/monitors/{monitorName}/topContributorsQueries/{queryId}");
|
|
534
|
+
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
535
|
+
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
536
|
+
let body;
|
|
537
|
+
b.m("DELETE").h(headers).b(body);
|
|
538
|
+
return b.build();
|
|
539
|
+
};
|
|
540
|
+
const se_StopQueryWorkloadInsightsTopContributorsCommand = async (input, context) => {
|
|
541
|
+
const b = core.requestBuilder(input, context);
|
|
542
|
+
const headers = {};
|
|
543
|
+
b.bp("/workloadInsights/{scopeId}/topContributorsQueries/{queryId}");
|
|
544
|
+
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
545
|
+
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
546
|
+
let body;
|
|
547
|
+
b.m("DELETE").h(headers).b(body);
|
|
548
|
+
return b.build();
|
|
549
|
+
};
|
|
550
|
+
const se_StopQueryWorkloadInsightsTopContributorsDataCommand = async (input, context) => {
|
|
551
|
+
const b = core.requestBuilder(input, context);
|
|
552
|
+
const headers = {};
|
|
553
|
+
b.bp("/workloadInsights/{scopeId}/topContributorsDataQueries/{queryId}");
|
|
554
|
+
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
555
|
+
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
556
|
+
let body;
|
|
557
|
+
b.m("DELETE").h(headers).b(body);
|
|
558
|
+
return b.build();
|
|
559
|
+
};
|
|
560
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
561
|
+
const b = core.requestBuilder(input, context);
|
|
562
|
+
const headers = {
|
|
563
|
+
"content-type": "application/json",
|
|
564
|
+
};
|
|
565
|
+
b.bp("/tags/{resourceArn}");
|
|
566
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
567
|
+
let body;
|
|
568
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
569
|
+
tags: (_) => smithyClient._json(_),
|
|
570
|
+
}));
|
|
571
|
+
b.m("POST").h(headers).b(body);
|
|
572
|
+
return b.build();
|
|
573
|
+
};
|
|
574
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
575
|
+
const b = core.requestBuilder(input, context);
|
|
576
|
+
const headers = {};
|
|
577
|
+
b.bp("/tags/{resourceArn}");
|
|
578
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
579
|
+
const query = smithyClient.map({
|
|
580
|
+
[_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
581
|
+
});
|
|
582
|
+
let body;
|
|
583
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
584
|
+
return b.build();
|
|
585
|
+
};
|
|
586
|
+
const se_UpdateMonitorCommand = async (input, context) => {
|
|
587
|
+
const b = core.requestBuilder(input, context);
|
|
588
|
+
const headers = {
|
|
589
|
+
"content-type": "application/json",
|
|
590
|
+
};
|
|
591
|
+
b.bp("/monitors/{monitorName}");
|
|
592
|
+
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
593
|
+
let body;
|
|
594
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
595
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
596
|
+
localResourcesToAdd: (_) => smithyClient._json(_),
|
|
597
|
+
localResourcesToRemove: (_) => smithyClient._json(_),
|
|
598
|
+
remoteResourcesToAdd: (_) => smithyClient._json(_),
|
|
599
|
+
remoteResourcesToRemove: (_) => smithyClient._json(_),
|
|
600
|
+
}));
|
|
601
|
+
b.m("PATCH").h(headers).b(body);
|
|
602
|
+
return b.build();
|
|
603
|
+
};
|
|
604
|
+
const se_UpdateScopeCommand = async (input, context) => {
|
|
605
|
+
const b = core.requestBuilder(input, context);
|
|
606
|
+
const headers = {
|
|
607
|
+
"content-type": "application/json",
|
|
608
|
+
};
|
|
609
|
+
b.bp("/scopes/{scopeId}");
|
|
610
|
+
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
611
|
+
let body;
|
|
612
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
613
|
+
resourcesToAdd: (_) => smithyClient._json(_),
|
|
614
|
+
resourcesToDelete: (_) => smithyClient._json(_),
|
|
615
|
+
}));
|
|
616
|
+
b.m("PATCH").h(headers).b(body);
|
|
617
|
+
return b.build();
|
|
618
|
+
};
|
|
619
|
+
const de_CreateMonitorCommand = async (output, context) => {
|
|
620
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
621
|
+
return de_CommandError(output, context);
|
|
622
|
+
}
|
|
623
|
+
const contents = smithyClient.map({
|
|
624
|
+
$metadata: deserializeMetadata(output),
|
|
625
|
+
});
|
|
626
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
627
|
+
const doc = smithyClient.take(data, {
|
|
628
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
629
|
+
localResources: smithyClient._json,
|
|
630
|
+
modifiedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
631
|
+
monitorArn: smithyClient.expectString,
|
|
632
|
+
monitorName: smithyClient.expectString,
|
|
633
|
+
monitorStatus: smithyClient.expectString,
|
|
634
|
+
remoteResources: smithyClient._json,
|
|
635
|
+
tags: smithyClient._json,
|
|
636
|
+
});
|
|
637
|
+
Object.assign(contents, doc);
|
|
638
|
+
return contents;
|
|
639
|
+
};
|
|
640
|
+
const de_CreateScopeCommand = async (output, context) => {
|
|
641
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
642
|
+
return de_CommandError(output, context);
|
|
643
|
+
}
|
|
644
|
+
const contents = smithyClient.map({
|
|
645
|
+
$metadata: deserializeMetadata(output),
|
|
646
|
+
});
|
|
647
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
648
|
+
const doc = smithyClient.take(data, {
|
|
649
|
+
scopeArn: smithyClient.expectString,
|
|
650
|
+
scopeId: smithyClient.expectString,
|
|
651
|
+
status: smithyClient.expectString,
|
|
652
|
+
tags: smithyClient._json,
|
|
653
|
+
});
|
|
654
|
+
Object.assign(contents, doc);
|
|
655
|
+
return contents;
|
|
656
|
+
};
|
|
657
|
+
const de_DeleteMonitorCommand = async (output, context) => {
|
|
658
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
659
|
+
return de_CommandError(output, context);
|
|
660
|
+
}
|
|
661
|
+
const contents = smithyClient.map({
|
|
662
|
+
$metadata: deserializeMetadata(output),
|
|
663
|
+
});
|
|
664
|
+
await smithyClient.collectBody(output.body, context);
|
|
665
|
+
return contents;
|
|
666
|
+
};
|
|
667
|
+
const de_DeleteScopeCommand = async (output, context) => {
|
|
668
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
669
|
+
return de_CommandError(output, context);
|
|
670
|
+
}
|
|
671
|
+
const contents = smithyClient.map({
|
|
672
|
+
$metadata: deserializeMetadata(output),
|
|
673
|
+
});
|
|
674
|
+
await smithyClient.collectBody(output.body, context);
|
|
675
|
+
return contents;
|
|
676
|
+
};
|
|
677
|
+
const de_GetMonitorCommand = async (output, context) => {
|
|
678
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
679
|
+
return de_CommandError(output, context);
|
|
680
|
+
}
|
|
681
|
+
const contents = smithyClient.map({
|
|
682
|
+
$metadata: deserializeMetadata(output),
|
|
683
|
+
});
|
|
684
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
685
|
+
const doc = smithyClient.take(data, {
|
|
686
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
687
|
+
localResources: smithyClient._json,
|
|
688
|
+
modifiedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
689
|
+
monitorArn: smithyClient.expectString,
|
|
690
|
+
monitorName: smithyClient.expectString,
|
|
691
|
+
monitorStatus: smithyClient.expectString,
|
|
692
|
+
remoteResources: smithyClient._json,
|
|
693
|
+
tags: smithyClient._json,
|
|
694
|
+
});
|
|
695
|
+
Object.assign(contents, doc);
|
|
696
|
+
return contents;
|
|
697
|
+
};
|
|
698
|
+
const de_GetQueryResultsMonitorTopContributorsCommand = async (output, context) => {
|
|
699
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
700
|
+
return de_CommandError(output, context);
|
|
701
|
+
}
|
|
702
|
+
const contents = smithyClient.map({
|
|
703
|
+
$metadata: deserializeMetadata(output),
|
|
704
|
+
});
|
|
705
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
706
|
+
const doc = smithyClient.take(data, {
|
|
707
|
+
nextToken: smithyClient.expectString,
|
|
708
|
+
topContributors: smithyClient._json,
|
|
709
|
+
unit: smithyClient.expectString,
|
|
710
|
+
});
|
|
711
|
+
Object.assign(contents, doc);
|
|
712
|
+
return contents;
|
|
713
|
+
};
|
|
714
|
+
const de_GetQueryResultsWorkloadInsightsTopContributorsCommand = async (output, context) => {
|
|
715
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
716
|
+
return de_CommandError(output, context);
|
|
717
|
+
}
|
|
718
|
+
const contents = smithyClient.map({
|
|
719
|
+
$metadata: deserializeMetadata(output),
|
|
720
|
+
});
|
|
721
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
722
|
+
const doc = smithyClient.take(data, {
|
|
723
|
+
nextToken: smithyClient.expectString,
|
|
724
|
+
topContributors: smithyClient._json,
|
|
725
|
+
});
|
|
726
|
+
Object.assign(contents, doc);
|
|
727
|
+
return contents;
|
|
728
|
+
};
|
|
729
|
+
const de_GetQueryResultsWorkloadInsightsTopContributorsDataCommand = async (output, context) => {
|
|
730
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
731
|
+
return de_CommandError(output, context);
|
|
732
|
+
}
|
|
733
|
+
const contents = smithyClient.map({
|
|
734
|
+
$metadata: deserializeMetadata(output),
|
|
735
|
+
});
|
|
736
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
737
|
+
const doc = smithyClient.take(data, {
|
|
738
|
+
datapoints: (_) => de_WorkloadInsightsTopContributorsDataPoints(_),
|
|
739
|
+
nextToken: smithyClient.expectString,
|
|
740
|
+
unit: smithyClient.expectString,
|
|
741
|
+
});
|
|
742
|
+
Object.assign(contents, doc);
|
|
743
|
+
return contents;
|
|
744
|
+
};
|
|
745
|
+
const de_GetQueryStatusMonitorTopContributorsCommand = async (output, context) => {
|
|
746
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
747
|
+
return de_CommandError(output, context);
|
|
748
|
+
}
|
|
749
|
+
const contents = smithyClient.map({
|
|
750
|
+
$metadata: deserializeMetadata(output),
|
|
751
|
+
});
|
|
752
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
753
|
+
const doc = smithyClient.take(data, {
|
|
754
|
+
status: smithyClient.expectString,
|
|
755
|
+
});
|
|
756
|
+
Object.assign(contents, doc);
|
|
757
|
+
return contents;
|
|
758
|
+
};
|
|
759
|
+
const de_GetQueryStatusWorkloadInsightsTopContributorsCommand = async (output, context) => {
|
|
760
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
761
|
+
return de_CommandError(output, context);
|
|
762
|
+
}
|
|
763
|
+
const contents = smithyClient.map({
|
|
764
|
+
$metadata: deserializeMetadata(output),
|
|
765
|
+
});
|
|
766
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
767
|
+
const doc = smithyClient.take(data, {
|
|
768
|
+
status: smithyClient.expectString,
|
|
769
|
+
});
|
|
770
|
+
Object.assign(contents, doc);
|
|
771
|
+
return contents;
|
|
772
|
+
};
|
|
773
|
+
const de_GetQueryStatusWorkloadInsightsTopContributorsDataCommand = async (output, context) => {
|
|
774
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
775
|
+
return de_CommandError(output, context);
|
|
776
|
+
}
|
|
777
|
+
const contents = smithyClient.map({
|
|
778
|
+
$metadata: deserializeMetadata(output),
|
|
779
|
+
});
|
|
780
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
781
|
+
const doc = smithyClient.take(data, {
|
|
782
|
+
status: smithyClient.expectString,
|
|
783
|
+
});
|
|
784
|
+
Object.assign(contents, doc);
|
|
785
|
+
return contents;
|
|
786
|
+
};
|
|
787
|
+
const de_GetScopeCommand = async (output, context) => {
|
|
788
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
789
|
+
return de_CommandError(output, context);
|
|
790
|
+
}
|
|
791
|
+
const contents = smithyClient.map({
|
|
792
|
+
$metadata: deserializeMetadata(output),
|
|
793
|
+
});
|
|
794
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
795
|
+
const doc = smithyClient.take(data, {
|
|
796
|
+
scopeArn: smithyClient.expectString,
|
|
797
|
+
scopeId: smithyClient.expectString,
|
|
798
|
+
status: smithyClient.expectString,
|
|
799
|
+
tags: smithyClient._json,
|
|
800
|
+
targets: smithyClient._json,
|
|
801
|
+
});
|
|
802
|
+
Object.assign(contents, doc);
|
|
803
|
+
return contents;
|
|
804
|
+
};
|
|
805
|
+
const de_ListMonitorsCommand = async (output, context) => {
|
|
806
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
807
|
+
return de_CommandError(output, context);
|
|
808
|
+
}
|
|
809
|
+
const contents = smithyClient.map({
|
|
810
|
+
$metadata: deserializeMetadata(output),
|
|
811
|
+
});
|
|
812
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
813
|
+
const doc = smithyClient.take(data, {
|
|
814
|
+
monitors: smithyClient._json,
|
|
815
|
+
nextToken: smithyClient.expectString,
|
|
816
|
+
});
|
|
817
|
+
Object.assign(contents, doc);
|
|
818
|
+
return contents;
|
|
819
|
+
};
|
|
820
|
+
const de_ListScopesCommand = async (output, context) => {
|
|
821
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
+
return de_CommandError(output, context);
|
|
823
|
+
}
|
|
824
|
+
const contents = smithyClient.map({
|
|
825
|
+
$metadata: deserializeMetadata(output),
|
|
826
|
+
});
|
|
827
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
828
|
+
const doc = smithyClient.take(data, {
|
|
829
|
+
nextToken: smithyClient.expectString,
|
|
830
|
+
scopes: smithyClient._json,
|
|
831
|
+
});
|
|
832
|
+
Object.assign(contents, doc);
|
|
833
|
+
return contents;
|
|
834
|
+
};
|
|
835
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
836
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
837
|
+
return de_CommandError(output, context);
|
|
838
|
+
}
|
|
839
|
+
const contents = smithyClient.map({
|
|
840
|
+
$metadata: deserializeMetadata(output),
|
|
841
|
+
});
|
|
842
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
843
|
+
const doc = smithyClient.take(data, {
|
|
844
|
+
tags: smithyClient._json,
|
|
845
|
+
});
|
|
846
|
+
Object.assign(contents, doc);
|
|
847
|
+
return contents;
|
|
848
|
+
};
|
|
849
|
+
const de_StartQueryMonitorTopContributorsCommand = async (output, context) => {
|
|
850
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
851
|
+
return de_CommandError(output, context);
|
|
852
|
+
}
|
|
853
|
+
const contents = smithyClient.map({
|
|
854
|
+
$metadata: deserializeMetadata(output),
|
|
855
|
+
});
|
|
856
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
857
|
+
const doc = smithyClient.take(data, {
|
|
858
|
+
queryId: smithyClient.expectString,
|
|
859
|
+
});
|
|
860
|
+
Object.assign(contents, doc);
|
|
861
|
+
return contents;
|
|
862
|
+
};
|
|
863
|
+
const de_StartQueryWorkloadInsightsTopContributorsCommand = async (output, context) => {
|
|
864
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
865
|
+
return de_CommandError(output, context);
|
|
866
|
+
}
|
|
867
|
+
const contents = smithyClient.map({
|
|
868
|
+
$metadata: deserializeMetadata(output),
|
|
869
|
+
});
|
|
870
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
871
|
+
const doc = smithyClient.take(data, {
|
|
872
|
+
queryId: smithyClient.expectString,
|
|
873
|
+
});
|
|
874
|
+
Object.assign(contents, doc);
|
|
875
|
+
return contents;
|
|
876
|
+
};
|
|
877
|
+
const de_StartQueryWorkloadInsightsTopContributorsDataCommand = async (output, context) => {
|
|
878
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
879
|
+
return de_CommandError(output, context);
|
|
880
|
+
}
|
|
881
|
+
const contents = smithyClient.map({
|
|
882
|
+
$metadata: deserializeMetadata(output),
|
|
883
|
+
});
|
|
884
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
885
|
+
const doc = smithyClient.take(data, {
|
|
886
|
+
queryId: smithyClient.expectString,
|
|
887
|
+
});
|
|
888
|
+
Object.assign(contents, doc);
|
|
889
|
+
return contents;
|
|
890
|
+
};
|
|
891
|
+
const de_StopQueryMonitorTopContributorsCommand = async (output, context) => {
|
|
892
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
893
|
+
return de_CommandError(output, context);
|
|
894
|
+
}
|
|
895
|
+
const contents = smithyClient.map({
|
|
896
|
+
$metadata: deserializeMetadata(output),
|
|
897
|
+
});
|
|
898
|
+
await smithyClient.collectBody(output.body, context);
|
|
899
|
+
return contents;
|
|
900
|
+
};
|
|
901
|
+
const de_StopQueryWorkloadInsightsTopContributorsCommand = async (output, context) => {
|
|
902
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
903
|
+
return de_CommandError(output, context);
|
|
904
|
+
}
|
|
905
|
+
const contents = smithyClient.map({
|
|
906
|
+
$metadata: deserializeMetadata(output),
|
|
907
|
+
});
|
|
908
|
+
await smithyClient.collectBody(output.body, context);
|
|
909
|
+
return contents;
|
|
910
|
+
};
|
|
911
|
+
const de_StopQueryWorkloadInsightsTopContributorsDataCommand = async (output, context) => {
|
|
912
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
913
|
+
return de_CommandError(output, context);
|
|
914
|
+
}
|
|
915
|
+
const contents = smithyClient.map({
|
|
916
|
+
$metadata: deserializeMetadata(output),
|
|
917
|
+
});
|
|
918
|
+
await smithyClient.collectBody(output.body, context);
|
|
919
|
+
return contents;
|
|
920
|
+
};
|
|
921
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
922
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
923
|
+
return de_CommandError(output, context);
|
|
924
|
+
}
|
|
925
|
+
const contents = smithyClient.map({
|
|
926
|
+
$metadata: deserializeMetadata(output),
|
|
927
|
+
});
|
|
928
|
+
await smithyClient.collectBody(output.body, context);
|
|
929
|
+
return contents;
|
|
930
|
+
};
|
|
931
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
932
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
933
|
+
return de_CommandError(output, context);
|
|
934
|
+
}
|
|
935
|
+
const contents = smithyClient.map({
|
|
936
|
+
$metadata: deserializeMetadata(output),
|
|
937
|
+
});
|
|
938
|
+
await smithyClient.collectBody(output.body, context);
|
|
939
|
+
return contents;
|
|
940
|
+
};
|
|
941
|
+
const de_UpdateMonitorCommand = async (output, context) => {
|
|
942
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
943
|
+
return de_CommandError(output, context);
|
|
944
|
+
}
|
|
945
|
+
const contents = smithyClient.map({
|
|
946
|
+
$metadata: deserializeMetadata(output),
|
|
947
|
+
});
|
|
948
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
949
|
+
const doc = smithyClient.take(data, {
|
|
950
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
951
|
+
localResources: smithyClient._json,
|
|
952
|
+
modifiedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
953
|
+
monitorArn: smithyClient.expectString,
|
|
954
|
+
monitorName: smithyClient.expectString,
|
|
955
|
+
monitorStatus: smithyClient.expectString,
|
|
956
|
+
remoteResources: smithyClient._json,
|
|
957
|
+
tags: smithyClient._json,
|
|
958
|
+
});
|
|
959
|
+
Object.assign(contents, doc);
|
|
960
|
+
return contents;
|
|
961
|
+
};
|
|
962
|
+
const de_UpdateScopeCommand = async (output, context) => {
|
|
963
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
964
|
+
return de_CommandError(output, context);
|
|
965
|
+
}
|
|
966
|
+
const contents = smithyClient.map({
|
|
967
|
+
$metadata: deserializeMetadata(output),
|
|
968
|
+
});
|
|
969
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
970
|
+
const doc = smithyClient.take(data, {
|
|
971
|
+
scopeArn: smithyClient.expectString,
|
|
972
|
+
scopeId: smithyClient.expectString,
|
|
973
|
+
status: smithyClient.expectString,
|
|
974
|
+
tags: smithyClient._json,
|
|
975
|
+
});
|
|
976
|
+
Object.assign(contents, doc);
|
|
977
|
+
return contents;
|
|
978
|
+
};
|
|
979
|
+
const de_CommandError = async (output, context) => {
|
|
980
|
+
const parsedOutput = {
|
|
981
|
+
...output,
|
|
982
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
983
|
+
};
|
|
984
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
|
+
switch (errorCode) {
|
|
986
|
+
case "AccessDeniedException":
|
|
987
|
+
case "com.amazonaws.networkflowmonitor#AccessDeniedException":
|
|
988
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
989
|
+
case "ConflictException":
|
|
990
|
+
case "com.amazonaws.networkflowmonitor#ConflictException":
|
|
991
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
992
|
+
case "InternalServerException":
|
|
993
|
+
case "com.amazonaws.networkflowmonitor#InternalServerException":
|
|
994
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
995
|
+
case "ServiceQuotaExceededException":
|
|
996
|
+
case "com.amazonaws.networkflowmonitor#ServiceQuotaExceededException":
|
|
997
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
998
|
+
case "ThrottlingException":
|
|
999
|
+
case "com.amazonaws.networkflowmonitor#ThrottlingException":
|
|
1000
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
1001
|
+
case "ValidationException":
|
|
1002
|
+
case "com.amazonaws.networkflowmonitor#ValidationException":
|
|
1003
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
1004
|
+
case "ResourceNotFoundException":
|
|
1005
|
+
case "com.amazonaws.networkflowmonitor#ResourceNotFoundException":
|
|
1006
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
1007
|
+
default:
|
|
1008
|
+
const parsedBody = parsedOutput.body;
|
|
1009
|
+
return throwDefaultError({
|
|
1010
|
+
output,
|
|
1011
|
+
parsedBody,
|
|
1012
|
+
errorCode,
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
};
|
|
1016
|
+
const throwDefaultError = smithyClient.withBaseException(NetworkFlowMonitorServiceException);
|
|
1017
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1018
|
+
const contents = smithyClient.map({});
|
|
1019
|
+
const data = parsedOutput.body;
|
|
1020
|
+
const doc = smithyClient.take(data, {
|
|
1021
|
+
message: smithyClient.expectString,
|
|
1022
|
+
});
|
|
1023
|
+
Object.assign(contents, doc);
|
|
1024
|
+
const exception = new AccessDeniedException({
|
|
1025
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1026
|
+
...contents,
|
|
1027
|
+
});
|
|
1028
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1029
|
+
};
|
|
1030
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1031
|
+
const contents = smithyClient.map({});
|
|
1032
|
+
const data = parsedOutput.body;
|
|
1033
|
+
const doc = smithyClient.take(data, {
|
|
1034
|
+
message: smithyClient.expectString,
|
|
1035
|
+
});
|
|
1036
|
+
Object.assign(contents, doc);
|
|
1037
|
+
const exception = new ConflictException({
|
|
1038
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1039
|
+
...contents,
|
|
1040
|
+
});
|
|
1041
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1042
|
+
};
|
|
1043
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1044
|
+
const contents = smithyClient.map({});
|
|
1045
|
+
const data = parsedOutput.body;
|
|
1046
|
+
const doc = smithyClient.take(data, {
|
|
1047
|
+
message: smithyClient.expectString,
|
|
1048
|
+
});
|
|
1049
|
+
Object.assign(contents, doc);
|
|
1050
|
+
const exception = new InternalServerException({
|
|
1051
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1052
|
+
...contents,
|
|
1053
|
+
});
|
|
1054
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1055
|
+
};
|
|
1056
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1057
|
+
const contents = smithyClient.map({});
|
|
1058
|
+
const data = parsedOutput.body;
|
|
1059
|
+
const doc = smithyClient.take(data, {
|
|
1060
|
+
message: smithyClient.expectString,
|
|
1061
|
+
});
|
|
1062
|
+
Object.assign(contents, doc);
|
|
1063
|
+
const exception = new ResourceNotFoundException({
|
|
1064
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1065
|
+
...contents,
|
|
1066
|
+
});
|
|
1067
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1068
|
+
};
|
|
1069
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1070
|
+
const contents = smithyClient.map({});
|
|
1071
|
+
const data = parsedOutput.body;
|
|
1072
|
+
const doc = smithyClient.take(data, {
|
|
1073
|
+
message: smithyClient.expectString,
|
|
1074
|
+
});
|
|
1075
|
+
Object.assign(contents, doc);
|
|
1076
|
+
const exception = new ServiceQuotaExceededException({
|
|
1077
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1078
|
+
...contents,
|
|
1079
|
+
});
|
|
1080
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1081
|
+
};
|
|
1082
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1083
|
+
const contents = smithyClient.map({});
|
|
1084
|
+
const data = parsedOutput.body;
|
|
1085
|
+
const doc = smithyClient.take(data, {
|
|
1086
|
+
message: smithyClient.expectString,
|
|
1087
|
+
});
|
|
1088
|
+
Object.assign(contents, doc);
|
|
1089
|
+
const exception = new ThrottlingException({
|
|
1090
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1091
|
+
...contents,
|
|
1092
|
+
});
|
|
1093
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1094
|
+
};
|
|
1095
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1096
|
+
const contents = smithyClient.map({});
|
|
1097
|
+
const data = parsedOutput.body;
|
|
1098
|
+
const doc = smithyClient.take(data, {
|
|
1099
|
+
message: smithyClient.expectString,
|
|
1100
|
+
});
|
|
1101
|
+
Object.assign(contents, doc);
|
|
1102
|
+
const exception = new ValidationException({
|
|
1103
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1104
|
+
...contents,
|
|
1105
|
+
});
|
|
1106
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1107
|
+
};
|
|
1108
|
+
const de_WorkloadInsightsTopContributorsDataPoint = (output, context) => {
|
|
1109
|
+
return smithyClient.take(output, {
|
|
1110
|
+
label: smithyClient.expectString,
|
|
1111
|
+
timestamps: (_) => de_WorkloadInsightsTopContributorsTimestampsList(_),
|
|
1112
|
+
values: (_) => de_WorkloadInsightsTopContributorsValuesList(_),
|
|
1113
|
+
});
|
|
1114
|
+
};
|
|
1115
|
+
const de_WorkloadInsightsTopContributorsDataPoints = (output, context) => {
|
|
1116
|
+
const retVal = (output || [])
|
|
1117
|
+
.filter((e) => e != null)
|
|
1118
|
+
.map((entry) => {
|
|
1119
|
+
return de_WorkloadInsightsTopContributorsDataPoint(entry);
|
|
1120
|
+
});
|
|
1121
|
+
return retVal;
|
|
1122
|
+
};
|
|
1123
|
+
const de_WorkloadInsightsTopContributorsTimestampsList = (output, context) => {
|
|
1124
|
+
const retVal = (output || [])
|
|
1125
|
+
.filter((e) => e != null)
|
|
1126
|
+
.map((entry) => {
|
|
1127
|
+
return smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(entry));
|
|
1128
|
+
});
|
|
1129
|
+
return retVal;
|
|
1130
|
+
};
|
|
1131
|
+
const de_WorkloadInsightsTopContributorsValuesList = (output, context) => {
|
|
1132
|
+
const retVal = (output || [])
|
|
1133
|
+
.filter((e) => e != null)
|
|
1134
|
+
.map((entry) => {
|
|
1135
|
+
return smithyClient.limitedParseDouble(entry);
|
|
1136
|
+
});
|
|
1137
|
+
return retVal;
|
|
1138
|
+
};
|
|
1139
|
+
const deserializeMetadata = (output) => ({
|
|
1140
|
+
httpStatusCode: output.statusCode,
|
|
1141
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1142
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1143
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1144
|
+
});
|
|
1145
|
+
const _mR = "maxResults";
|
|
1146
|
+
const _mS = "monitorStatus";
|
|
1147
|
+
const _nT = "nextToken";
|
|
1148
|
+
const _tK = "tagKeys";
|
|
1149
|
+
|
|
1150
|
+
class CreateMonitorCommand extends smithyClient.Command
|
|
1151
|
+
.classBuilder()
|
|
1152
|
+
.ep(commonParams)
|
|
1153
|
+
.m(function (Command, cs, config, o) {
|
|
1154
|
+
return [
|
|
1155
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1156
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1157
|
+
];
|
|
1158
|
+
})
|
|
1159
|
+
.s("NetworkFlowMonitor", "CreateMonitor", {})
|
|
1160
|
+
.n("NetworkFlowMonitorClient", "CreateMonitorCommand")
|
|
1161
|
+
.f(void 0, void 0)
|
|
1162
|
+
.ser(se_CreateMonitorCommand)
|
|
1163
|
+
.de(de_CreateMonitorCommand)
|
|
1164
|
+
.build() {
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
class CreateScopeCommand extends smithyClient.Command
|
|
1168
|
+
.classBuilder()
|
|
1169
|
+
.ep(commonParams)
|
|
1170
|
+
.m(function (Command, cs, config, o) {
|
|
1171
|
+
return [
|
|
1172
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1173
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1174
|
+
];
|
|
1175
|
+
})
|
|
1176
|
+
.s("NetworkFlowMonitor", "CreateScope", {})
|
|
1177
|
+
.n("NetworkFlowMonitorClient", "CreateScopeCommand")
|
|
1178
|
+
.f(void 0, void 0)
|
|
1179
|
+
.ser(se_CreateScopeCommand)
|
|
1180
|
+
.de(de_CreateScopeCommand)
|
|
1181
|
+
.build() {
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
class DeleteMonitorCommand extends smithyClient.Command
|
|
1185
|
+
.classBuilder()
|
|
1186
|
+
.ep(commonParams)
|
|
1187
|
+
.m(function (Command, cs, config, o) {
|
|
1188
|
+
return [
|
|
1189
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1190
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1191
|
+
];
|
|
1192
|
+
})
|
|
1193
|
+
.s("NetworkFlowMonitor", "DeleteMonitor", {})
|
|
1194
|
+
.n("NetworkFlowMonitorClient", "DeleteMonitorCommand")
|
|
1195
|
+
.f(void 0, void 0)
|
|
1196
|
+
.ser(se_DeleteMonitorCommand)
|
|
1197
|
+
.de(de_DeleteMonitorCommand)
|
|
1198
|
+
.build() {
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
class DeleteScopeCommand extends smithyClient.Command
|
|
1202
|
+
.classBuilder()
|
|
1203
|
+
.ep(commonParams)
|
|
1204
|
+
.m(function (Command, cs, config, o) {
|
|
1205
|
+
return [
|
|
1206
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1207
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1208
|
+
];
|
|
1209
|
+
})
|
|
1210
|
+
.s("NetworkFlowMonitor", "DeleteScope", {})
|
|
1211
|
+
.n("NetworkFlowMonitorClient", "DeleteScopeCommand")
|
|
1212
|
+
.f(void 0, void 0)
|
|
1213
|
+
.ser(se_DeleteScopeCommand)
|
|
1214
|
+
.de(de_DeleteScopeCommand)
|
|
1215
|
+
.build() {
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
class GetMonitorCommand extends smithyClient.Command
|
|
1219
|
+
.classBuilder()
|
|
1220
|
+
.ep(commonParams)
|
|
1221
|
+
.m(function (Command, cs, config, o) {
|
|
1222
|
+
return [
|
|
1223
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1224
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1225
|
+
];
|
|
1226
|
+
})
|
|
1227
|
+
.s("NetworkFlowMonitor", "GetMonitor", {})
|
|
1228
|
+
.n("NetworkFlowMonitorClient", "GetMonitorCommand")
|
|
1229
|
+
.f(void 0, void 0)
|
|
1230
|
+
.ser(se_GetMonitorCommand)
|
|
1231
|
+
.de(de_GetMonitorCommand)
|
|
1232
|
+
.build() {
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
class GetQueryResultsMonitorTopContributorsCommand extends smithyClient.Command
|
|
1236
|
+
.classBuilder()
|
|
1237
|
+
.ep(commonParams)
|
|
1238
|
+
.m(function (Command, cs, config, o) {
|
|
1239
|
+
return [
|
|
1240
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1241
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1242
|
+
];
|
|
1243
|
+
})
|
|
1244
|
+
.s("NetworkFlowMonitor", "GetQueryResultsMonitorTopContributors", {})
|
|
1245
|
+
.n("NetworkFlowMonitorClient", "GetQueryResultsMonitorTopContributorsCommand")
|
|
1246
|
+
.f(void 0, void 0)
|
|
1247
|
+
.ser(se_GetQueryResultsMonitorTopContributorsCommand)
|
|
1248
|
+
.de(de_GetQueryResultsMonitorTopContributorsCommand)
|
|
1249
|
+
.build() {
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
class GetQueryResultsWorkloadInsightsTopContributorsCommand extends smithyClient.Command
|
|
1253
|
+
.classBuilder()
|
|
1254
|
+
.ep(commonParams)
|
|
1255
|
+
.m(function (Command, cs, config, o) {
|
|
1256
|
+
return [
|
|
1257
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1258
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1259
|
+
];
|
|
1260
|
+
})
|
|
1261
|
+
.s("NetworkFlowMonitor", "GetQueryResultsWorkloadInsightsTopContributors", {})
|
|
1262
|
+
.n("NetworkFlowMonitorClient", "GetQueryResultsWorkloadInsightsTopContributorsCommand")
|
|
1263
|
+
.f(void 0, void 0)
|
|
1264
|
+
.ser(se_GetQueryResultsWorkloadInsightsTopContributorsCommand)
|
|
1265
|
+
.de(de_GetQueryResultsWorkloadInsightsTopContributorsCommand)
|
|
1266
|
+
.build() {
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
class GetQueryResultsWorkloadInsightsTopContributorsDataCommand extends smithyClient.Command
|
|
1270
|
+
.classBuilder()
|
|
1271
|
+
.ep(commonParams)
|
|
1272
|
+
.m(function (Command, cs, config, o) {
|
|
1273
|
+
return [
|
|
1274
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1275
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1276
|
+
];
|
|
1277
|
+
})
|
|
1278
|
+
.s("NetworkFlowMonitor", "GetQueryResultsWorkloadInsightsTopContributorsData", {})
|
|
1279
|
+
.n("NetworkFlowMonitorClient", "GetQueryResultsWorkloadInsightsTopContributorsDataCommand")
|
|
1280
|
+
.f(void 0, void 0)
|
|
1281
|
+
.ser(se_GetQueryResultsWorkloadInsightsTopContributorsDataCommand)
|
|
1282
|
+
.de(de_GetQueryResultsWorkloadInsightsTopContributorsDataCommand)
|
|
1283
|
+
.build() {
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
class GetQueryStatusMonitorTopContributorsCommand extends smithyClient.Command
|
|
1287
|
+
.classBuilder()
|
|
1288
|
+
.ep(commonParams)
|
|
1289
|
+
.m(function (Command, cs, config, o) {
|
|
1290
|
+
return [
|
|
1291
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1292
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1293
|
+
];
|
|
1294
|
+
})
|
|
1295
|
+
.s("NetworkFlowMonitor", "GetQueryStatusMonitorTopContributors", {})
|
|
1296
|
+
.n("NetworkFlowMonitorClient", "GetQueryStatusMonitorTopContributorsCommand")
|
|
1297
|
+
.f(void 0, void 0)
|
|
1298
|
+
.ser(se_GetQueryStatusMonitorTopContributorsCommand)
|
|
1299
|
+
.de(de_GetQueryStatusMonitorTopContributorsCommand)
|
|
1300
|
+
.build() {
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
class GetQueryStatusWorkloadInsightsTopContributorsCommand extends smithyClient.Command
|
|
1304
|
+
.classBuilder()
|
|
1305
|
+
.ep(commonParams)
|
|
1306
|
+
.m(function (Command, cs, config, o) {
|
|
1307
|
+
return [
|
|
1308
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1309
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1310
|
+
];
|
|
1311
|
+
})
|
|
1312
|
+
.s("NetworkFlowMonitor", "GetQueryStatusWorkloadInsightsTopContributors", {})
|
|
1313
|
+
.n("NetworkFlowMonitorClient", "GetQueryStatusWorkloadInsightsTopContributorsCommand")
|
|
1314
|
+
.f(void 0, void 0)
|
|
1315
|
+
.ser(se_GetQueryStatusWorkloadInsightsTopContributorsCommand)
|
|
1316
|
+
.de(de_GetQueryStatusWorkloadInsightsTopContributorsCommand)
|
|
1317
|
+
.build() {
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
class GetQueryStatusWorkloadInsightsTopContributorsDataCommand extends smithyClient.Command
|
|
1321
|
+
.classBuilder()
|
|
1322
|
+
.ep(commonParams)
|
|
1323
|
+
.m(function (Command, cs, config, o) {
|
|
1324
|
+
return [
|
|
1325
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1326
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1327
|
+
];
|
|
1328
|
+
})
|
|
1329
|
+
.s("NetworkFlowMonitor", "GetQueryStatusWorkloadInsightsTopContributorsData", {})
|
|
1330
|
+
.n("NetworkFlowMonitorClient", "GetQueryStatusWorkloadInsightsTopContributorsDataCommand")
|
|
1331
|
+
.f(void 0, void 0)
|
|
1332
|
+
.ser(se_GetQueryStatusWorkloadInsightsTopContributorsDataCommand)
|
|
1333
|
+
.de(de_GetQueryStatusWorkloadInsightsTopContributorsDataCommand)
|
|
1334
|
+
.build() {
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
class GetScopeCommand extends smithyClient.Command
|
|
1338
|
+
.classBuilder()
|
|
1339
|
+
.ep(commonParams)
|
|
1340
|
+
.m(function (Command, cs, config, o) {
|
|
1341
|
+
return [
|
|
1342
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1343
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1344
|
+
];
|
|
1345
|
+
})
|
|
1346
|
+
.s("NetworkFlowMonitor", "GetScope", {})
|
|
1347
|
+
.n("NetworkFlowMonitorClient", "GetScopeCommand")
|
|
1348
|
+
.f(void 0, void 0)
|
|
1349
|
+
.ser(se_GetScopeCommand)
|
|
1350
|
+
.de(de_GetScopeCommand)
|
|
1351
|
+
.build() {
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
class ListMonitorsCommand extends smithyClient.Command
|
|
1355
|
+
.classBuilder()
|
|
1356
|
+
.ep(commonParams)
|
|
1357
|
+
.m(function (Command, cs, config, o) {
|
|
1358
|
+
return [
|
|
1359
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1360
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1361
|
+
];
|
|
1362
|
+
})
|
|
1363
|
+
.s("NetworkFlowMonitor", "ListMonitors", {})
|
|
1364
|
+
.n("NetworkFlowMonitorClient", "ListMonitorsCommand")
|
|
1365
|
+
.f(void 0, void 0)
|
|
1366
|
+
.ser(se_ListMonitorsCommand)
|
|
1367
|
+
.de(de_ListMonitorsCommand)
|
|
1368
|
+
.build() {
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
class ListScopesCommand extends smithyClient.Command
|
|
1372
|
+
.classBuilder()
|
|
1373
|
+
.ep(commonParams)
|
|
1374
|
+
.m(function (Command, cs, config, o) {
|
|
1375
|
+
return [
|
|
1376
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1377
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1378
|
+
];
|
|
1379
|
+
})
|
|
1380
|
+
.s("NetworkFlowMonitor", "ListScopes", {})
|
|
1381
|
+
.n("NetworkFlowMonitorClient", "ListScopesCommand")
|
|
1382
|
+
.f(void 0, void 0)
|
|
1383
|
+
.ser(se_ListScopesCommand)
|
|
1384
|
+
.de(de_ListScopesCommand)
|
|
1385
|
+
.build() {
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1389
|
+
.classBuilder()
|
|
1390
|
+
.ep(commonParams)
|
|
1391
|
+
.m(function (Command, cs, config, o) {
|
|
1392
|
+
return [
|
|
1393
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1394
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1395
|
+
];
|
|
1396
|
+
})
|
|
1397
|
+
.s("NetworkFlowMonitor", "ListTagsForResource", {})
|
|
1398
|
+
.n("NetworkFlowMonitorClient", "ListTagsForResourceCommand")
|
|
1399
|
+
.f(void 0, void 0)
|
|
1400
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1401
|
+
.de(de_ListTagsForResourceCommand)
|
|
1402
|
+
.build() {
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
class StartQueryMonitorTopContributorsCommand extends smithyClient.Command
|
|
1406
|
+
.classBuilder()
|
|
1407
|
+
.ep(commonParams)
|
|
1408
|
+
.m(function (Command, cs, config, o) {
|
|
1409
|
+
return [
|
|
1410
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1411
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1412
|
+
];
|
|
1413
|
+
})
|
|
1414
|
+
.s("NetworkFlowMonitor", "StartQueryMonitorTopContributors", {})
|
|
1415
|
+
.n("NetworkFlowMonitorClient", "StartQueryMonitorTopContributorsCommand")
|
|
1416
|
+
.f(void 0, void 0)
|
|
1417
|
+
.ser(se_StartQueryMonitorTopContributorsCommand)
|
|
1418
|
+
.de(de_StartQueryMonitorTopContributorsCommand)
|
|
1419
|
+
.build() {
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
class StartQueryWorkloadInsightsTopContributorsCommand extends smithyClient.Command
|
|
1423
|
+
.classBuilder()
|
|
1424
|
+
.ep(commonParams)
|
|
1425
|
+
.m(function (Command, cs, config, o) {
|
|
1426
|
+
return [
|
|
1427
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1428
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1429
|
+
];
|
|
1430
|
+
})
|
|
1431
|
+
.s("NetworkFlowMonitor", "StartQueryWorkloadInsightsTopContributors", {})
|
|
1432
|
+
.n("NetworkFlowMonitorClient", "StartQueryWorkloadInsightsTopContributorsCommand")
|
|
1433
|
+
.f(void 0, void 0)
|
|
1434
|
+
.ser(se_StartQueryWorkloadInsightsTopContributorsCommand)
|
|
1435
|
+
.de(de_StartQueryWorkloadInsightsTopContributorsCommand)
|
|
1436
|
+
.build() {
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
class StartQueryWorkloadInsightsTopContributorsDataCommand extends smithyClient.Command
|
|
1440
|
+
.classBuilder()
|
|
1441
|
+
.ep(commonParams)
|
|
1442
|
+
.m(function (Command, cs, config, o) {
|
|
1443
|
+
return [
|
|
1444
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1445
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1446
|
+
];
|
|
1447
|
+
})
|
|
1448
|
+
.s("NetworkFlowMonitor", "StartQueryWorkloadInsightsTopContributorsData", {})
|
|
1449
|
+
.n("NetworkFlowMonitorClient", "StartQueryWorkloadInsightsTopContributorsDataCommand")
|
|
1450
|
+
.f(void 0, void 0)
|
|
1451
|
+
.ser(se_StartQueryWorkloadInsightsTopContributorsDataCommand)
|
|
1452
|
+
.de(de_StartQueryWorkloadInsightsTopContributorsDataCommand)
|
|
1453
|
+
.build() {
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
class StopQueryMonitorTopContributorsCommand extends smithyClient.Command
|
|
1457
|
+
.classBuilder()
|
|
1458
|
+
.ep(commonParams)
|
|
1459
|
+
.m(function (Command, cs, config, o) {
|
|
1460
|
+
return [
|
|
1461
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1462
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1463
|
+
];
|
|
1464
|
+
})
|
|
1465
|
+
.s("NetworkFlowMonitor", "StopQueryMonitorTopContributors", {})
|
|
1466
|
+
.n("NetworkFlowMonitorClient", "StopQueryMonitorTopContributorsCommand")
|
|
1467
|
+
.f(void 0, void 0)
|
|
1468
|
+
.ser(se_StopQueryMonitorTopContributorsCommand)
|
|
1469
|
+
.de(de_StopQueryMonitorTopContributorsCommand)
|
|
1470
|
+
.build() {
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
class StopQueryWorkloadInsightsTopContributorsCommand extends smithyClient.Command
|
|
1474
|
+
.classBuilder()
|
|
1475
|
+
.ep(commonParams)
|
|
1476
|
+
.m(function (Command, cs, config, o) {
|
|
1477
|
+
return [
|
|
1478
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1479
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1480
|
+
];
|
|
1481
|
+
})
|
|
1482
|
+
.s("NetworkFlowMonitor", "StopQueryWorkloadInsightsTopContributors", {})
|
|
1483
|
+
.n("NetworkFlowMonitorClient", "StopQueryWorkloadInsightsTopContributorsCommand")
|
|
1484
|
+
.f(void 0, void 0)
|
|
1485
|
+
.ser(se_StopQueryWorkloadInsightsTopContributorsCommand)
|
|
1486
|
+
.de(de_StopQueryWorkloadInsightsTopContributorsCommand)
|
|
1487
|
+
.build() {
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
class StopQueryWorkloadInsightsTopContributorsDataCommand extends smithyClient.Command
|
|
1491
|
+
.classBuilder()
|
|
1492
|
+
.ep(commonParams)
|
|
1493
|
+
.m(function (Command, cs, config, o) {
|
|
1494
|
+
return [
|
|
1495
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1496
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1497
|
+
];
|
|
1498
|
+
})
|
|
1499
|
+
.s("NetworkFlowMonitor", "StopQueryWorkloadInsightsTopContributorsData", {})
|
|
1500
|
+
.n("NetworkFlowMonitorClient", "StopQueryWorkloadInsightsTopContributorsDataCommand")
|
|
1501
|
+
.f(void 0, void 0)
|
|
1502
|
+
.ser(se_StopQueryWorkloadInsightsTopContributorsDataCommand)
|
|
1503
|
+
.de(de_StopQueryWorkloadInsightsTopContributorsDataCommand)
|
|
1504
|
+
.build() {
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1508
|
+
.classBuilder()
|
|
1509
|
+
.ep(commonParams)
|
|
1510
|
+
.m(function (Command, cs, config, o) {
|
|
1511
|
+
return [
|
|
1512
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1513
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1514
|
+
];
|
|
1515
|
+
})
|
|
1516
|
+
.s("NetworkFlowMonitor", "TagResource", {})
|
|
1517
|
+
.n("NetworkFlowMonitorClient", "TagResourceCommand")
|
|
1518
|
+
.f(void 0, void 0)
|
|
1519
|
+
.ser(se_TagResourceCommand)
|
|
1520
|
+
.de(de_TagResourceCommand)
|
|
1521
|
+
.build() {
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1525
|
+
.classBuilder()
|
|
1526
|
+
.ep(commonParams)
|
|
1527
|
+
.m(function (Command, cs, config, o) {
|
|
1528
|
+
return [
|
|
1529
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1530
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1531
|
+
];
|
|
1532
|
+
})
|
|
1533
|
+
.s("NetworkFlowMonitor", "UntagResource", {})
|
|
1534
|
+
.n("NetworkFlowMonitorClient", "UntagResourceCommand")
|
|
1535
|
+
.f(void 0, void 0)
|
|
1536
|
+
.ser(se_UntagResourceCommand)
|
|
1537
|
+
.de(de_UntagResourceCommand)
|
|
1538
|
+
.build() {
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
class UpdateMonitorCommand extends smithyClient.Command
|
|
1542
|
+
.classBuilder()
|
|
1543
|
+
.ep(commonParams)
|
|
1544
|
+
.m(function (Command, cs, config, o) {
|
|
1545
|
+
return [
|
|
1546
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1547
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1548
|
+
];
|
|
1549
|
+
})
|
|
1550
|
+
.s("NetworkFlowMonitor", "UpdateMonitor", {})
|
|
1551
|
+
.n("NetworkFlowMonitorClient", "UpdateMonitorCommand")
|
|
1552
|
+
.f(void 0, void 0)
|
|
1553
|
+
.ser(se_UpdateMonitorCommand)
|
|
1554
|
+
.de(de_UpdateMonitorCommand)
|
|
1555
|
+
.build() {
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
class UpdateScopeCommand extends smithyClient.Command
|
|
1559
|
+
.classBuilder()
|
|
1560
|
+
.ep(commonParams)
|
|
1561
|
+
.m(function (Command, cs, config, o) {
|
|
1562
|
+
return [
|
|
1563
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1564
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1565
|
+
];
|
|
1566
|
+
})
|
|
1567
|
+
.s("NetworkFlowMonitor", "UpdateScope", {})
|
|
1568
|
+
.n("NetworkFlowMonitorClient", "UpdateScopeCommand")
|
|
1569
|
+
.f(void 0, void 0)
|
|
1570
|
+
.ser(se_UpdateScopeCommand)
|
|
1571
|
+
.de(de_UpdateScopeCommand)
|
|
1572
|
+
.build() {
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
const commands = {
|
|
1576
|
+
CreateMonitorCommand,
|
|
1577
|
+
CreateScopeCommand,
|
|
1578
|
+
DeleteMonitorCommand,
|
|
1579
|
+
DeleteScopeCommand,
|
|
1580
|
+
GetMonitorCommand,
|
|
1581
|
+
GetQueryResultsMonitorTopContributorsCommand,
|
|
1582
|
+
GetQueryResultsWorkloadInsightsTopContributorsCommand,
|
|
1583
|
+
GetQueryResultsWorkloadInsightsTopContributorsDataCommand,
|
|
1584
|
+
GetQueryStatusMonitorTopContributorsCommand,
|
|
1585
|
+
GetQueryStatusWorkloadInsightsTopContributorsCommand,
|
|
1586
|
+
GetQueryStatusWorkloadInsightsTopContributorsDataCommand,
|
|
1587
|
+
GetScopeCommand,
|
|
1588
|
+
ListMonitorsCommand,
|
|
1589
|
+
ListScopesCommand,
|
|
1590
|
+
ListTagsForResourceCommand,
|
|
1591
|
+
StartQueryMonitorTopContributorsCommand,
|
|
1592
|
+
StartQueryWorkloadInsightsTopContributorsCommand,
|
|
1593
|
+
StartQueryWorkloadInsightsTopContributorsDataCommand,
|
|
1594
|
+
StopQueryMonitorTopContributorsCommand,
|
|
1595
|
+
StopQueryWorkloadInsightsTopContributorsCommand,
|
|
1596
|
+
StopQueryWorkloadInsightsTopContributorsDataCommand,
|
|
1597
|
+
TagResourceCommand,
|
|
1598
|
+
UntagResourceCommand,
|
|
1599
|
+
UpdateMonitorCommand,
|
|
1600
|
+
UpdateScopeCommand,
|
|
1601
|
+
};
|
|
1602
|
+
class NetworkFlowMonitor extends NetworkFlowMonitorClient {
|
|
1603
|
+
}
|
|
1604
|
+
smithyClient.createAggregatedClient(commands, NetworkFlowMonitor);
|
|
1702
1605
|
|
|
1703
|
-
|
|
1704
|
-
var commands = {
|
|
1705
|
-
CreateMonitorCommand,
|
|
1706
|
-
CreateScopeCommand,
|
|
1707
|
-
DeleteMonitorCommand,
|
|
1708
|
-
DeleteScopeCommand,
|
|
1709
|
-
GetMonitorCommand,
|
|
1710
|
-
GetQueryResultsMonitorTopContributorsCommand,
|
|
1711
|
-
GetQueryResultsWorkloadInsightsTopContributorsCommand,
|
|
1712
|
-
GetQueryResultsWorkloadInsightsTopContributorsDataCommand,
|
|
1713
|
-
GetQueryStatusMonitorTopContributorsCommand,
|
|
1714
|
-
GetQueryStatusWorkloadInsightsTopContributorsCommand,
|
|
1715
|
-
GetQueryStatusWorkloadInsightsTopContributorsDataCommand,
|
|
1716
|
-
GetScopeCommand,
|
|
1717
|
-
ListMonitorsCommand,
|
|
1718
|
-
ListScopesCommand,
|
|
1719
|
-
ListTagsForResourceCommand,
|
|
1720
|
-
StartQueryMonitorTopContributorsCommand,
|
|
1721
|
-
StartQueryWorkloadInsightsTopContributorsCommand,
|
|
1722
|
-
StartQueryWorkloadInsightsTopContributorsDataCommand,
|
|
1723
|
-
StopQueryMonitorTopContributorsCommand,
|
|
1724
|
-
StopQueryWorkloadInsightsTopContributorsCommand,
|
|
1725
|
-
StopQueryWorkloadInsightsTopContributorsDataCommand,
|
|
1726
|
-
TagResourceCommand,
|
|
1727
|
-
UntagResourceCommand,
|
|
1728
|
-
UpdateMonitorCommand,
|
|
1729
|
-
UpdateScopeCommand
|
|
1730
|
-
};
|
|
1731
|
-
var NetworkFlowMonitor = class extends NetworkFlowMonitorClient {
|
|
1732
|
-
static {
|
|
1733
|
-
__name(this, "NetworkFlowMonitor");
|
|
1734
|
-
}
|
|
1735
|
-
};
|
|
1736
|
-
(0, import_smithy_client.createAggregatedClient)(commands, NetworkFlowMonitor);
|
|
1737
|
-
|
|
1738
|
-
// src/pagination/GetQueryResultsMonitorTopContributorsPaginator.ts
|
|
1739
|
-
|
|
1740
|
-
var paginateGetQueryResultsMonitorTopContributors = (0, import_core.createPaginator)(NetworkFlowMonitorClient, GetQueryResultsMonitorTopContributorsCommand, "nextToken", "nextToken", "maxResults");
|
|
1741
|
-
|
|
1742
|
-
// src/pagination/GetQueryResultsWorkloadInsightsTopContributorsDataPaginator.ts
|
|
1743
|
-
|
|
1744
|
-
var paginateGetQueryResultsWorkloadInsightsTopContributorsData = (0, import_core.createPaginator)(
|
|
1745
|
-
NetworkFlowMonitorClient,
|
|
1746
|
-
GetQueryResultsWorkloadInsightsTopContributorsDataCommand,
|
|
1747
|
-
"nextToken",
|
|
1748
|
-
"nextToken",
|
|
1749
|
-
"maxResults"
|
|
1750
|
-
);
|
|
1751
|
-
|
|
1752
|
-
// src/pagination/GetQueryResultsWorkloadInsightsTopContributorsPaginator.ts
|
|
1753
|
-
|
|
1754
|
-
var paginateGetQueryResultsWorkloadInsightsTopContributors = (0, import_core.createPaginator)(
|
|
1755
|
-
NetworkFlowMonitorClient,
|
|
1756
|
-
GetQueryResultsWorkloadInsightsTopContributorsCommand,
|
|
1757
|
-
"nextToken",
|
|
1758
|
-
"nextToken",
|
|
1759
|
-
"maxResults"
|
|
1760
|
-
);
|
|
1606
|
+
const paginateGetQueryResultsMonitorTopContributors = core.createPaginator(NetworkFlowMonitorClient, GetQueryResultsMonitorTopContributorsCommand, "nextToken", "nextToken", "maxResults");
|
|
1761
1607
|
|
|
1762
|
-
|
|
1608
|
+
const paginateGetQueryResultsWorkloadInsightsTopContributorsData = core.createPaginator(NetworkFlowMonitorClient, GetQueryResultsWorkloadInsightsTopContributorsDataCommand, "nextToken", "nextToken", "maxResults");
|
|
1763
1609
|
|
|
1764
|
-
|
|
1610
|
+
const paginateGetQueryResultsWorkloadInsightsTopContributors = core.createPaginator(NetworkFlowMonitorClient, GetQueryResultsWorkloadInsightsTopContributorsCommand, "nextToken", "nextToken", "maxResults");
|
|
1765
1611
|
|
|
1766
|
-
|
|
1612
|
+
const paginateListMonitors = core.createPaginator(NetworkFlowMonitorClient, ListMonitorsCommand, "nextToken", "nextToken", "maxResults");
|
|
1767
1613
|
|
|
1768
|
-
|
|
1769
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1614
|
+
const paginateListScopes = core.createPaginator(NetworkFlowMonitorClient, ListScopesCommand, "nextToken", "nextToken", "maxResults");
|
|
1770
1615
|
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
NetworkFlowMonitorClient,
|
|
1775
|
-
NetworkFlowMonitor,
|
|
1776
|
-
$Command,
|
|
1777
|
-
CreateMonitorCommand,
|
|
1778
|
-
CreateScopeCommand,
|
|
1779
|
-
DeleteMonitorCommand,
|
|
1780
|
-
DeleteScopeCommand,
|
|
1781
|
-
GetMonitorCommand,
|
|
1782
|
-
GetQueryResultsMonitorTopContributorsCommand,
|
|
1783
|
-
GetQueryResultsWorkloadInsightsTopContributorsCommand,
|
|
1784
|
-
GetQueryResultsWorkloadInsightsTopContributorsDataCommand,
|
|
1785
|
-
GetQueryStatusMonitorTopContributorsCommand,
|
|
1786
|
-
GetQueryStatusWorkloadInsightsTopContributorsCommand,
|
|
1787
|
-
GetQueryStatusWorkloadInsightsTopContributorsDataCommand,
|
|
1788
|
-
GetScopeCommand,
|
|
1789
|
-
ListMonitorsCommand,
|
|
1790
|
-
ListScopesCommand,
|
|
1791
|
-
ListTagsForResourceCommand,
|
|
1792
|
-
StartQueryMonitorTopContributorsCommand,
|
|
1793
|
-
StartQueryWorkloadInsightsTopContributorsCommand,
|
|
1794
|
-
StartQueryWorkloadInsightsTopContributorsDataCommand,
|
|
1795
|
-
StopQueryMonitorTopContributorsCommand,
|
|
1796
|
-
StopQueryWorkloadInsightsTopContributorsCommand,
|
|
1797
|
-
StopQueryWorkloadInsightsTopContributorsDataCommand,
|
|
1798
|
-
TagResourceCommand,
|
|
1799
|
-
UntagResourceCommand,
|
|
1800
|
-
UpdateMonitorCommand,
|
|
1801
|
-
UpdateScopeCommand,
|
|
1802
|
-
paginateGetQueryResultsMonitorTopContributors,
|
|
1803
|
-
paginateGetQueryResultsWorkloadInsightsTopContributorsData,
|
|
1804
|
-
paginateGetQueryResultsWorkloadInsightsTopContributors,
|
|
1805
|
-
paginateListMonitors,
|
|
1806
|
-
paginateListScopes,
|
|
1807
|
-
AccessDeniedException,
|
|
1808
|
-
ConflictException,
|
|
1809
|
-
MonitorLocalResourceType,
|
|
1810
|
-
MonitorRemoteResourceType,
|
|
1811
|
-
MonitorStatus,
|
|
1812
|
-
InternalServerException,
|
|
1813
|
-
ServiceQuotaExceededException,
|
|
1814
|
-
ThrottlingException,
|
|
1815
|
-
ValidationException,
|
|
1816
|
-
TargetId,
|
|
1817
|
-
TargetType,
|
|
1818
|
-
ScopeStatus,
|
|
1819
|
-
ResourceNotFoundException,
|
|
1820
|
-
DestinationCategory,
|
|
1821
|
-
MetricUnit,
|
|
1822
|
-
QueryStatus,
|
|
1823
|
-
MonitorMetric,
|
|
1824
|
-
WorkloadInsightsMetric
|
|
1616
|
+
Object.defineProperty(exports, "$Command", {
|
|
1617
|
+
enumerable: true,
|
|
1618
|
+
get: function () { return smithyClient.Command; }
|
|
1825
1619
|
});
|
|
1826
|
-
|
|
1620
|
+
Object.defineProperty(exports, "__Client", {
|
|
1621
|
+
enumerable: true,
|
|
1622
|
+
get: function () { return smithyClient.Client; }
|
|
1623
|
+
});
|
|
1624
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1625
|
+
exports.ConflictException = ConflictException;
|
|
1626
|
+
exports.CreateMonitorCommand = CreateMonitorCommand;
|
|
1627
|
+
exports.CreateScopeCommand = CreateScopeCommand;
|
|
1628
|
+
exports.DeleteMonitorCommand = DeleteMonitorCommand;
|
|
1629
|
+
exports.DeleteScopeCommand = DeleteScopeCommand;
|
|
1630
|
+
exports.DestinationCategory = DestinationCategory;
|
|
1631
|
+
exports.GetMonitorCommand = GetMonitorCommand;
|
|
1632
|
+
exports.GetQueryResultsMonitorTopContributorsCommand = GetQueryResultsMonitorTopContributorsCommand;
|
|
1633
|
+
exports.GetQueryResultsWorkloadInsightsTopContributorsCommand = GetQueryResultsWorkloadInsightsTopContributorsCommand;
|
|
1634
|
+
exports.GetQueryResultsWorkloadInsightsTopContributorsDataCommand = GetQueryResultsWorkloadInsightsTopContributorsDataCommand;
|
|
1635
|
+
exports.GetQueryStatusMonitorTopContributorsCommand = GetQueryStatusMonitorTopContributorsCommand;
|
|
1636
|
+
exports.GetQueryStatusWorkloadInsightsTopContributorsCommand = GetQueryStatusWorkloadInsightsTopContributorsCommand;
|
|
1637
|
+
exports.GetQueryStatusWorkloadInsightsTopContributorsDataCommand = GetQueryStatusWorkloadInsightsTopContributorsDataCommand;
|
|
1638
|
+
exports.GetScopeCommand = GetScopeCommand;
|
|
1639
|
+
exports.InternalServerException = InternalServerException;
|
|
1640
|
+
exports.ListMonitorsCommand = ListMonitorsCommand;
|
|
1641
|
+
exports.ListScopesCommand = ListScopesCommand;
|
|
1642
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1643
|
+
exports.MetricUnit = MetricUnit;
|
|
1644
|
+
exports.MonitorLocalResourceType = MonitorLocalResourceType;
|
|
1645
|
+
exports.MonitorMetric = MonitorMetric;
|
|
1646
|
+
exports.MonitorRemoteResourceType = MonitorRemoteResourceType;
|
|
1647
|
+
exports.MonitorStatus = MonitorStatus;
|
|
1648
|
+
exports.NetworkFlowMonitor = NetworkFlowMonitor;
|
|
1649
|
+
exports.NetworkFlowMonitorClient = NetworkFlowMonitorClient;
|
|
1650
|
+
exports.NetworkFlowMonitorServiceException = NetworkFlowMonitorServiceException;
|
|
1651
|
+
exports.QueryStatus = QueryStatus;
|
|
1652
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1653
|
+
exports.ScopeStatus = ScopeStatus;
|
|
1654
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1655
|
+
exports.StartQueryMonitorTopContributorsCommand = StartQueryMonitorTopContributorsCommand;
|
|
1656
|
+
exports.StartQueryWorkloadInsightsTopContributorsCommand = StartQueryWorkloadInsightsTopContributorsCommand;
|
|
1657
|
+
exports.StartQueryWorkloadInsightsTopContributorsDataCommand = StartQueryWorkloadInsightsTopContributorsDataCommand;
|
|
1658
|
+
exports.StopQueryMonitorTopContributorsCommand = StopQueryMonitorTopContributorsCommand;
|
|
1659
|
+
exports.StopQueryWorkloadInsightsTopContributorsCommand = StopQueryWorkloadInsightsTopContributorsCommand;
|
|
1660
|
+
exports.StopQueryWorkloadInsightsTopContributorsDataCommand = StopQueryWorkloadInsightsTopContributorsDataCommand;
|
|
1661
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1662
|
+
exports.TargetType = TargetType;
|
|
1663
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1664
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1665
|
+
exports.UpdateMonitorCommand = UpdateMonitorCommand;
|
|
1666
|
+
exports.UpdateScopeCommand = UpdateScopeCommand;
|
|
1667
|
+
exports.ValidationException = ValidationException;
|
|
1668
|
+
exports.WorkloadInsightsMetric = WorkloadInsightsMetric;
|
|
1669
|
+
exports.paginateGetQueryResultsMonitorTopContributors = paginateGetQueryResultsMonitorTopContributors;
|
|
1670
|
+
exports.paginateGetQueryResultsWorkloadInsightsTopContributors = paginateGetQueryResultsWorkloadInsightsTopContributors;
|
|
1671
|
+
exports.paginateGetQueryResultsWorkloadInsightsTopContributorsData = paginateGetQueryResultsWorkloadInsightsTopContributorsData;
|
|
1672
|
+
exports.paginateListMonitors = paginateListMonitors;
|
|
1673
|
+
exports.paginateListScopes = paginateListScopes;
|