@aws-sdk/client-rum 3.899.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 +1511 -1724
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -1,1760 +1,1547 @@
|
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
|
|
33
|
-
DeleteRumMetricsDestinationCommand: () => DeleteRumMetricsDestinationCommand,
|
|
34
|
-
DeobfuscationStatus: () => DeobfuscationStatus,
|
|
35
|
-
GetAppMonitorCommand: () => GetAppMonitorCommand,
|
|
36
|
-
GetAppMonitorDataCommand: () => GetAppMonitorDataCommand,
|
|
37
|
-
GetResourcePolicyCommand: () => GetResourcePolicyCommand,
|
|
38
|
-
InternalServerException: () => InternalServerException,
|
|
39
|
-
InvalidPolicyRevisionIdException: () => InvalidPolicyRevisionIdException,
|
|
40
|
-
ListAppMonitorsCommand: () => ListAppMonitorsCommand,
|
|
41
|
-
ListRumMetricsDestinationsCommand: () => ListRumMetricsDestinationsCommand,
|
|
42
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
43
|
-
MalformedPolicyDocumentException: () => MalformedPolicyDocumentException,
|
|
44
|
-
MetricDestination: () => MetricDestination,
|
|
45
|
-
PolicyNotFoundException: () => PolicyNotFoundException,
|
|
46
|
-
PolicySizeLimitExceededException: () => PolicySizeLimitExceededException,
|
|
47
|
-
PutResourcePolicyCommand: () => PutResourcePolicyCommand,
|
|
48
|
-
PutRumEventsCommand: () => PutRumEventsCommand,
|
|
49
|
-
PutRumMetricsDestinationCommand: () => PutRumMetricsDestinationCommand,
|
|
50
|
-
RUM: () => RUM,
|
|
51
|
-
RUMClient: () => RUMClient,
|
|
52
|
-
RUMServiceException: () => RUMServiceException,
|
|
53
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
54
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
55
|
-
StateEnum: () => StateEnum,
|
|
56
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
57
|
-
Telemetry: () => Telemetry,
|
|
58
|
-
ThrottlingException: () => ThrottlingException,
|
|
59
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
60
|
-
UpdateAppMonitorCommand: () => UpdateAppMonitorCommand,
|
|
61
|
-
UpdateRumMetricDefinitionCommand: () => UpdateRumMetricDefinitionCommand,
|
|
62
|
-
ValidationException: () => ValidationException,
|
|
63
|
-
__Client: () => import_smithy_client.Client,
|
|
64
|
-
paginateBatchGetRumMetricDefinitions: () => paginateBatchGetRumMetricDefinitions,
|
|
65
|
-
paginateGetAppMonitorData: () => paginateGetAppMonitorData,
|
|
66
|
-
paginateListAppMonitors: () => paginateListAppMonitors,
|
|
67
|
-
paginateListRumMetricsDestinations: () => paginateListRumMetricsDestinations
|
|
68
|
-
});
|
|
69
|
-
module.exports = __toCommonJS(index_exports);
|
|
70
|
-
|
|
71
|
-
// src/RUMClient.ts
|
|
72
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
73
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
74
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
75
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
76
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
77
|
-
var import_core = require("@smithy/core");
|
|
78
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
79
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
80
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
81
|
-
|
|
82
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
83
|
-
|
|
84
|
-
// src/endpoint/EndpointParameters.ts
|
|
85
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
86
|
-
return Object.assign(options, {
|
|
87
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
88
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
89
|
-
defaultSigningName: "rum"
|
|
90
|
-
});
|
|
91
|
-
}, "resolveClientEndpointParameters");
|
|
92
|
-
var commonParams = {
|
|
93
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
94
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
95
|
-
Region: { type: "builtInParams", name: "region" },
|
|
96
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "rum",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
97
32
|
};
|
|
98
33
|
|
|
99
|
-
|
|
100
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
101
72
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
106
78
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
79
|
+
class RUMClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultRUMHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
135
107
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
141
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
142
|
-
credentials: config.credentials()
|
|
143
|
-
};
|
|
144
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
145
|
-
|
|
146
|
-
// src/runtimeExtensions.ts
|
|
147
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
148
|
-
const extensionConfiguration = Object.assign(
|
|
149
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
150
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
151
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
152
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
153
|
-
);
|
|
154
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
155
|
-
return Object.assign(
|
|
156
|
-
runtimeConfig,
|
|
157
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
158
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
159
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
160
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
161
|
-
);
|
|
162
|
-
}, "resolveRuntimeExtensions");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
163
112
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
188
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
189
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
190
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
191
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
192
|
-
this.middlewareStack.use(
|
|
193
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
194
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultRUMHttpAuthSchemeParametersProvider,
|
|
195
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
196
|
-
"aws.auth#sigv4": config.credentials
|
|
197
|
-
}), "identityProviderConfigProvider")
|
|
198
|
-
})
|
|
199
|
-
);
|
|
200
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
204
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
205
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
206
|
-
*/
|
|
207
|
-
destroy() {
|
|
208
|
-
super.destroy();
|
|
209
|
-
}
|
|
113
|
+
class RUMServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, RUMServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class AccessDeniedException extends RUMServiceException {
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "AccessDeniedException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
const Telemetry = {
|
|
133
|
+
ERRORS: "errors",
|
|
134
|
+
HTTP: "http",
|
|
135
|
+
PERFORMANCE: "performance",
|
|
210
136
|
};
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
// src/commands/BatchCreateRumMetricDefinitionsCommand.ts
|
|
216
|
-
|
|
217
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
// src/protocols/Aws_restJson1.ts
|
|
221
|
-
var import_core2 = require("@aws-sdk/core");
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
// src/models/RUMServiceException.ts
|
|
227
|
-
|
|
228
|
-
var RUMServiceException = class _RUMServiceException extends import_smithy_client.ServiceException {
|
|
229
|
-
static {
|
|
230
|
-
__name(this, "RUMServiceException");
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* @internal
|
|
234
|
-
*/
|
|
235
|
-
constructor(options) {
|
|
236
|
-
super(options);
|
|
237
|
-
Object.setPrototypeOf(this, _RUMServiceException.prototype);
|
|
238
|
-
}
|
|
137
|
+
const CustomEventsStatus = {
|
|
138
|
+
DISABLED: "DISABLED",
|
|
139
|
+
ENABLED: "ENABLED",
|
|
239
140
|
};
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
static {
|
|
244
|
-
__name(this, "AccessDeniedException");
|
|
245
|
-
}
|
|
246
|
-
name = "AccessDeniedException";
|
|
247
|
-
$fault = "client";
|
|
248
|
-
/**
|
|
249
|
-
* @internal
|
|
250
|
-
*/
|
|
251
|
-
constructor(opts) {
|
|
252
|
-
super({
|
|
253
|
-
name: "AccessDeniedException",
|
|
254
|
-
$fault: "client",
|
|
255
|
-
...opts
|
|
256
|
-
});
|
|
257
|
-
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
var Telemetry = {
|
|
261
|
-
/**
|
|
262
|
-
* Includes JS error event plugin
|
|
263
|
-
*/
|
|
264
|
-
ERRORS: "errors",
|
|
265
|
-
/**
|
|
266
|
-
* Includes X-Ray Xhr and X-Ray Fetch plugin
|
|
267
|
-
*/
|
|
268
|
-
HTTP: "http",
|
|
269
|
-
/**
|
|
270
|
-
* Includes navigation, paint, resource and web vital event plugins
|
|
271
|
-
*/
|
|
272
|
-
PERFORMANCE: "performance"
|
|
273
|
-
};
|
|
274
|
-
var CustomEventsStatus = {
|
|
275
|
-
DISABLED: "DISABLED",
|
|
276
|
-
ENABLED: "ENABLED"
|
|
277
|
-
};
|
|
278
|
-
var DeobfuscationStatus = {
|
|
279
|
-
DISABLED: "DISABLED",
|
|
280
|
-
ENABLED: "ENABLED"
|
|
281
|
-
};
|
|
282
|
-
var StateEnum = {
|
|
283
|
-
ACTIVE: "ACTIVE",
|
|
284
|
-
CREATED: "CREATED",
|
|
285
|
-
DELETING: "DELETING"
|
|
286
|
-
};
|
|
287
|
-
var MetricDestination = {
|
|
288
|
-
CloudWatch: "CloudWatch",
|
|
289
|
-
Evidently: "Evidently"
|
|
290
|
-
};
|
|
291
|
-
var ConflictException = class _ConflictException extends RUMServiceException {
|
|
292
|
-
static {
|
|
293
|
-
__name(this, "ConflictException");
|
|
294
|
-
}
|
|
295
|
-
name = "ConflictException";
|
|
296
|
-
$fault = "client";
|
|
297
|
-
/**
|
|
298
|
-
* <p>The name of the resource that is associated with the error.</p>
|
|
299
|
-
* @public
|
|
300
|
-
*/
|
|
301
|
-
resourceName;
|
|
302
|
-
/**
|
|
303
|
-
* <p>The type of the resource that is associated with the error.</p>
|
|
304
|
-
* @public
|
|
305
|
-
*/
|
|
306
|
-
resourceType;
|
|
307
|
-
/**
|
|
308
|
-
* @internal
|
|
309
|
-
*/
|
|
310
|
-
constructor(opts) {
|
|
311
|
-
super({
|
|
312
|
-
name: "ConflictException",
|
|
313
|
-
$fault: "client",
|
|
314
|
-
...opts
|
|
315
|
-
});
|
|
316
|
-
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
317
|
-
this.resourceName = opts.resourceName;
|
|
318
|
-
this.resourceType = opts.resourceType;
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
|
-
var InternalServerException = class _InternalServerException extends RUMServiceException {
|
|
322
|
-
static {
|
|
323
|
-
__name(this, "InternalServerException");
|
|
324
|
-
}
|
|
325
|
-
name = "InternalServerException";
|
|
326
|
-
$fault = "server";
|
|
327
|
-
$retryable = {};
|
|
328
|
-
/**
|
|
329
|
-
* <p>The value of a parameter in the request caused an error.</p>
|
|
330
|
-
* @public
|
|
331
|
-
*/
|
|
332
|
-
retryAfterSeconds;
|
|
333
|
-
/**
|
|
334
|
-
* @internal
|
|
335
|
-
*/
|
|
336
|
-
constructor(opts) {
|
|
337
|
-
super({
|
|
338
|
-
name: "InternalServerException",
|
|
339
|
-
$fault: "server",
|
|
340
|
-
...opts
|
|
341
|
-
});
|
|
342
|
-
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
343
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends RUMServiceException {
|
|
347
|
-
static {
|
|
348
|
-
__name(this, "ResourceNotFoundException");
|
|
349
|
-
}
|
|
350
|
-
name = "ResourceNotFoundException";
|
|
351
|
-
$fault = "client";
|
|
352
|
-
/**
|
|
353
|
-
* <p>The name of the resource that is associated with the error.</p>
|
|
354
|
-
* @public
|
|
355
|
-
*/
|
|
356
|
-
resourceName;
|
|
357
|
-
/**
|
|
358
|
-
* <p>The type of the resource that is associated with the error.</p>
|
|
359
|
-
* @public
|
|
360
|
-
*/
|
|
361
|
-
resourceType;
|
|
362
|
-
/**
|
|
363
|
-
* @internal
|
|
364
|
-
*/
|
|
365
|
-
constructor(opts) {
|
|
366
|
-
super({
|
|
367
|
-
name: "ResourceNotFoundException",
|
|
368
|
-
$fault: "client",
|
|
369
|
-
...opts
|
|
370
|
-
});
|
|
371
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
372
|
-
this.resourceName = opts.resourceName;
|
|
373
|
-
this.resourceType = opts.resourceType;
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends RUMServiceException {
|
|
377
|
-
static {
|
|
378
|
-
__name(this, "ServiceQuotaExceededException");
|
|
379
|
-
}
|
|
380
|
-
name = "ServiceQuotaExceededException";
|
|
381
|
-
$fault = "client";
|
|
382
|
-
/**
|
|
383
|
-
* @internal
|
|
384
|
-
*/
|
|
385
|
-
constructor(opts) {
|
|
386
|
-
super({
|
|
387
|
-
name: "ServiceQuotaExceededException",
|
|
388
|
-
$fault: "client",
|
|
389
|
-
...opts
|
|
390
|
-
});
|
|
391
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
var ThrottlingException = class _ThrottlingException extends RUMServiceException {
|
|
395
|
-
static {
|
|
396
|
-
__name(this, "ThrottlingException");
|
|
397
|
-
}
|
|
398
|
-
name = "ThrottlingException";
|
|
399
|
-
$fault = "client";
|
|
400
|
-
$retryable = {
|
|
401
|
-
throttling: true
|
|
402
|
-
};
|
|
403
|
-
/**
|
|
404
|
-
* <p>The ID of the service that is associated with the error.</p>
|
|
405
|
-
* @public
|
|
406
|
-
*/
|
|
407
|
-
serviceCode;
|
|
408
|
-
/**
|
|
409
|
-
* <p>The ID of the service quota that was exceeded.</p>
|
|
410
|
-
* @public
|
|
411
|
-
*/
|
|
412
|
-
quotaCode;
|
|
413
|
-
/**
|
|
414
|
-
* <p>The value of a parameter in the request caused an error.</p>
|
|
415
|
-
* @public
|
|
416
|
-
*/
|
|
417
|
-
retryAfterSeconds;
|
|
418
|
-
/**
|
|
419
|
-
* @internal
|
|
420
|
-
*/
|
|
421
|
-
constructor(opts) {
|
|
422
|
-
super({
|
|
423
|
-
name: "ThrottlingException",
|
|
424
|
-
$fault: "client",
|
|
425
|
-
...opts
|
|
426
|
-
});
|
|
427
|
-
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
428
|
-
this.serviceCode = opts.serviceCode;
|
|
429
|
-
this.quotaCode = opts.quotaCode;
|
|
430
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
var ValidationException = class _ValidationException extends RUMServiceException {
|
|
434
|
-
static {
|
|
435
|
-
__name(this, "ValidationException");
|
|
436
|
-
}
|
|
437
|
-
name = "ValidationException";
|
|
438
|
-
$fault = "client";
|
|
439
|
-
/**
|
|
440
|
-
* @internal
|
|
441
|
-
*/
|
|
442
|
-
constructor(opts) {
|
|
443
|
-
super({
|
|
444
|
-
name: "ValidationException",
|
|
445
|
-
$fault: "client",
|
|
446
|
-
...opts
|
|
447
|
-
});
|
|
448
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
449
|
-
}
|
|
450
|
-
};
|
|
451
|
-
var InvalidPolicyRevisionIdException = class _InvalidPolicyRevisionIdException extends RUMServiceException {
|
|
452
|
-
static {
|
|
453
|
-
__name(this, "InvalidPolicyRevisionIdException");
|
|
454
|
-
}
|
|
455
|
-
name = "InvalidPolicyRevisionIdException";
|
|
456
|
-
$fault = "client";
|
|
457
|
-
/**
|
|
458
|
-
* @internal
|
|
459
|
-
*/
|
|
460
|
-
constructor(opts) {
|
|
461
|
-
super({
|
|
462
|
-
name: "InvalidPolicyRevisionIdException",
|
|
463
|
-
$fault: "client",
|
|
464
|
-
...opts
|
|
465
|
-
});
|
|
466
|
-
Object.setPrototypeOf(this, _InvalidPolicyRevisionIdException.prototype);
|
|
467
|
-
}
|
|
468
|
-
};
|
|
469
|
-
var PolicyNotFoundException = class _PolicyNotFoundException extends RUMServiceException {
|
|
470
|
-
static {
|
|
471
|
-
__name(this, "PolicyNotFoundException");
|
|
472
|
-
}
|
|
473
|
-
name = "PolicyNotFoundException";
|
|
474
|
-
$fault = "client";
|
|
475
|
-
/**
|
|
476
|
-
* @internal
|
|
477
|
-
*/
|
|
478
|
-
constructor(opts) {
|
|
479
|
-
super({
|
|
480
|
-
name: "PolicyNotFoundException",
|
|
481
|
-
$fault: "client",
|
|
482
|
-
...opts
|
|
483
|
-
});
|
|
484
|
-
Object.setPrototypeOf(this, _PolicyNotFoundException.prototype);
|
|
485
|
-
}
|
|
486
|
-
};
|
|
487
|
-
var MalformedPolicyDocumentException = class _MalformedPolicyDocumentException extends RUMServiceException {
|
|
488
|
-
static {
|
|
489
|
-
__name(this, "MalformedPolicyDocumentException");
|
|
490
|
-
}
|
|
491
|
-
name = "MalformedPolicyDocumentException";
|
|
492
|
-
$fault = "client";
|
|
493
|
-
/**
|
|
494
|
-
* @internal
|
|
495
|
-
*/
|
|
496
|
-
constructor(opts) {
|
|
497
|
-
super({
|
|
498
|
-
name: "MalformedPolicyDocumentException",
|
|
499
|
-
$fault: "client",
|
|
500
|
-
...opts
|
|
501
|
-
});
|
|
502
|
-
Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype);
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
var PolicySizeLimitExceededException = class _PolicySizeLimitExceededException extends RUMServiceException {
|
|
506
|
-
static {
|
|
507
|
-
__name(this, "PolicySizeLimitExceededException");
|
|
508
|
-
}
|
|
509
|
-
name = "PolicySizeLimitExceededException";
|
|
510
|
-
$fault = "client";
|
|
511
|
-
/**
|
|
512
|
-
* @internal
|
|
513
|
-
*/
|
|
514
|
-
constructor(opts) {
|
|
515
|
-
super({
|
|
516
|
-
name: "PolicySizeLimitExceededException",
|
|
517
|
-
$fault: "client",
|
|
518
|
-
...opts
|
|
519
|
-
});
|
|
520
|
-
Object.setPrototypeOf(this, _PolicySizeLimitExceededException.prototype);
|
|
521
|
-
}
|
|
141
|
+
const DeobfuscationStatus = {
|
|
142
|
+
DISABLED: "DISABLED",
|
|
143
|
+
ENABLED: "ENABLED",
|
|
522
144
|
};
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
547
|
-
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
548
|
-
const query = (0, import_smithy_client.map)({
|
|
549
|
-
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_D], `Destination`)],
|
|
550
|
-
[_dA]: [, input[_DA]],
|
|
551
|
-
[_mDI]: [(0, import_smithy_client.expectNonNull)(input.MetricDefinitionIds, `MetricDefinitionIds`) != null, () => input[_MDI] || []]
|
|
552
|
-
});
|
|
553
|
-
let body;
|
|
554
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
555
|
-
return b.build();
|
|
556
|
-
}, "se_BatchDeleteRumMetricDefinitionsCommand");
|
|
557
|
-
var se_BatchGetRumMetricDefinitionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
558
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
559
|
-
const headers = {};
|
|
560
|
-
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
561
|
-
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
562
|
-
const query = (0, import_smithy_client.map)({
|
|
563
|
-
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_D], `Destination`)],
|
|
564
|
-
[_dA]: [, input[_DA]],
|
|
565
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
566
|
-
[_nT]: [, input[_NT]]
|
|
567
|
-
});
|
|
568
|
-
let body;
|
|
569
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
570
|
-
return b.build();
|
|
571
|
-
}, "se_BatchGetRumMetricDefinitionsCommand");
|
|
572
|
-
var se_CreateAppMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
573
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
574
|
-
const headers = {
|
|
575
|
-
"content-type": "application/json"
|
|
576
|
-
};
|
|
577
|
-
b.bp("/appmonitor");
|
|
578
|
-
let body;
|
|
579
|
-
body = JSON.stringify(
|
|
580
|
-
(0, import_smithy_client.take)(input, {
|
|
581
|
-
AppMonitorConfiguration: /* @__PURE__ */ __name((_) => se_AppMonitorConfiguration(_, context), "AppMonitorConfiguration"),
|
|
582
|
-
CustomEvents: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "CustomEvents"),
|
|
583
|
-
CwLogEnabled: [],
|
|
584
|
-
DeobfuscationConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "DeobfuscationConfiguration"),
|
|
585
|
-
Domain: [],
|
|
586
|
-
DomainList: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "DomainList"),
|
|
587
|
-
Name: [],
|
|
588
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
|
|
589
|
-
})
|
|
590
|
-
);
|
|
591
|
-
b.m("POST").h(headers).b(body);
|
|
592
|
-
return b.build();
|
|
593
|
-
}, "se_CreateAppMonitorCommand");
|
|
594
|
-
var se_DeleteAppMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
595
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
596
|
-
const headers = {};
|
|
597
|
-
b.bp("/appmonitor/{Name}");
|
|
598
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
599
|
-
let body;
|
|
600
|
-
b.m("DELETE").h(headers).b(body);
|
|
601
|
-
return b.build();
|
|
602
|
-
}, "se_DeleteAppMonitorCommand");
|
|
603
|
-
var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
604
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
605
|
-
const headers = {};
|
|
606
|
-
b.bp("/appmonitor/{Name}/policy");
|
|
607
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
608
|
-
const query = (0, import_smithy_client.map)({
|
|
609
|
-
[_pRI]: [, input[_PRI]]
|
|
610
|
-
});
|
|
611
|
-
let body;
|
|
612
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
613
|
-
return b.build();
|
|
614
|
-
}, "se_DeleteResourcePolicyCommand");
|
|
615
|
-
var se_DeleteRumMetricsDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
616
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
617
|
-
const headers = {};
|
|
618
|
-
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
619
|
-
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
620
|
-
const query = (0, import_smithy_client.map)({
|
|
621
|
-
[_d]: [, (0, import_smithy_client.expectNonNull)(input[_D], `Destination`)],
|
|
622
|
-
[_dA]: [, input[_DA]]
|
|
623
|
-
});
|
|
624
|
-
let body;
|
|
625
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
626
|
-
return b.build();
|
|
627
|
-
}, "se_DeleteRumMetricsDestinationCommand");
|
|
628
|
-
var se_GetAppMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
629
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
630
|
-
const headers = {};
|
|
631
|
-
b.bp("/appmonitor/{Name}");
|
|
632
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
633
|
-
let body;
|
|
634
|
-
b.m("GET").h(headers).b(body);
|
|
635
|
-
return b.build();
|
|
636
|
-
}, "se_GetAppMonitorCommand");
|
|
637
|
-
var se_GetAppMonitorDataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
638
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
639
|
-
const headers = {
|
|
640
|
-
"content-type": "application/json"
|
|
641
|
-
};
|
|
642
|
-
b.bp("/appmonitor/{Name}/data");
|
|
643
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
644
|
-
let body;
|
|
645
|
-
body = JSON.stringify(
|
|
646
|
-
(0, import_smithy_client.take)(input, {
|
|
647
|
-
Filters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Filters"),
|
|
648
|
-
MaxResults: [],
|
|
649
|
-
NextToken: [],
|
|
650
|
-
TimeRange: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "TimeRange")
|
|
651
|
-
})
|
|
652
|
-
);
|
|
653
|
-
b.m("POST").h(headers).b(body);
|
|
654
|
-
return b.build();
|
|
655
|
-
}, "se_GetAppMonitorDataCommand");
|
|
656
|
-
var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
657
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
658
|
-
const headers = {};
|
|
659
|
-
b.bp("/appmonitor/{Name}/policy");
|
|
660
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
661
|
-
let body;
|
|
662
|
-
b.m("GET").h(headers).b(body);
|
|
663
|
-
return b.build();
|
|
664
|
-
}, "se_GetResourcePolicyCommand");
|
|
665
|
-
var se_ListAppMonitorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
666
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
667
|
-
const headers = {};
|
|
668
|
-
b.bp("/appmonitors");
|
|
669
|
-
const query = (0, import_smithy_client.map)({
|
|
670
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
671
|
-
[_nT]: [, input[_NT]]
|
|
672
|
-
});
|
|
673
|
-
let body;
|
|
674
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
675
|
-
return b.build();
|
|
676
|
-
}, "se_ListAppMonitorsCommand");
|
|
677
|
-
var se_ListRumMetricsDestinationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
678
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
679
|
-
const headers = {};
|
|
680
|
-
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
681
|
-
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
682
|
-
const query = (0, import_smithy_client.map)({
|
|
683
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
684
|
-
[_nT]: [, input[_NT]]
|
|
685
|
-
});
|
|
686
|
-
let body;
|
|
687
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
688
|
-
return b.build();
|
|
689
|
-
}, "se_ListRumMetricsDestinationsCommand");
|
|
690
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
691
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
692
|
-
const headers = {};
|
|
693
|
-
b.bp("/tags/{ResourceArn}");
|
|
694
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
695
|
-
let body;
|
|
696
|
-
b.m("GET").h(headers).b(body);
|
|
697
|
-
return b.build();
|
|
698
|
-
}, "se_ListTagsForResourceCommand");
|
|
699
|
-
var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
700
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
701
|
-
const headers = {
|
|
702
|
-
"content-type": "application/json"
|
|
703
|
-
};
|
|
704
|
-
b.bp("/appmonitor/{Name}/policy");
|
|
705
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
706
|
-
let body;
|
|
707
|
-
body = JSON.stringify(
|
|
708
|
-
(0, import_smithy_client.take)(input, {
|
|
709
|
-
PolicyDocument: [],
|
|
710
|
-
PolicyRevisionId: []
|
|
711
|
-
})
|
|
712
|
-
);
|
|
713
|
-
b.m("PUT").h(headers).b(body);
|
|
714
|
-
return b.build();
|
|
715
|
-
}, "se_PutResourcePolicyCommand");
|
|
716
|
-
var se_PutRumEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
717
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
718
|
-
const headers = {
|
|
719
|
-
"content-type": "application/json"
|
|
720
|
-
};
|
|
721
|
-
b.bp("/appmonitors/{Id}");
|
|
722
|
-
b.p("Id", () => input.Id, "{Id}", false);
|
|
723
|
-
let body;
|
|
724
|
-
body = JSON.stringify(
|
|
725
|
-
(0, import_smithy_client.take)(input, {
|
|
726
|
-
Alias: [],
|
|
727
|
-
AppMonitorDetails: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "AppMonitorDetails"),
|
|
728
|
-
BatchId: [],
|
|
729
|
-
RumEvents: /* @__PURE__ */ __name((_) => se_RumEventList(_, context), "RumEvents"),
|
|
730
|
-
UserDetails: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "UserDetails")
|
|
731
|
-
})
|
|
732
|
-
);
|
|
733
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
734
|
-
if (context.disableHostPrefix !== true) {
|
|
735
|
-
resolvedHostname = "dataplane." + resolvedHostname;
|
|
736
|
-
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
737
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
145
|
+
const StateEnum = {
|
|
146
|
+
ACTIVE: "ACTIVE",
|
|
147
|
+
CREATED: "CREATED",
|
|
148
|
+
DELETING: "DELETING",
|
|
149
|
+
};
|
|
150
|
+
const MetricDestination = {
|
|
151
|
+
CloudWatch: "CloudWatch",
|
|
152
|
+
Evidently: "Evidently",
|
|
153
|
+
};
|
|
154
|
+
class ConflictException extends RUMServiceException {
|
|
155
|
+
name = "ConflictException";
|
|
156
|
+
$fault = "client";
|
|
157
|
+
resourceName;
|
|
158
|
+
resourceType;
|
|
159
|
+
constructor(opts) {
|
|
160
|
+
super({
|
|
161
|
+
name: "ConflictException",
|
|
162
|
+
$fault: "client",
|
|
163
|
+
...opts,
|
|
164
|
+
});
|
|
165
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
166
|
+
this.resourceName = opts.resourceName;
|
|
167
|
+
this.resourceType = opts.resourceType;
|
|
738
168
|
}
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
$metadata: deserializeMetadata(output)
|
|
881
|
-
});
|
|
882
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
883
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
884
|
-
Id: import_smithy_client.expectString
|
|
885
|
-
});
|
|
886
|
-
Object.assign(contents, doc);
|
|
887
|
-
return contents;
|
|
888
|
-
}, "de_CreateAppMonitorCommand");
|
|
889
|
-
var de_DeleteAppMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
890
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
891
|
-
return de_CommandError(output, context);
|
|
892
|
-
}
|
|
893
|
-
const contents = (0, import_smithy_client.map)({
|
|
894
|
-
$metadata: deserializeMetadata(output)
|
|
895
|
-
});
|
|
896
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
897
|
-
return contents;
|
|
898
|
-
}, "de_DeleteAppMonitorCommand");
|
|
899
|
-
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
900
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
901
|
-
return de_CommandError(output, context);
|
|
902
|
-
}
|
|
903
|
-
const contents = (0, import_smithy_client.map)({
|
|
904
|
-
$metadata: deserializeMetadata(output)
|
|
905
|
-
});
|
|
906
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
907
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
908
|
-
PolicyRevisionId: import_smithy_client.expectString
|
|
909
|
-
});
|
|
910
|
-
Object.assign(contents, doc);
|
|
911
|
-
return contents;
|
|
912
|
-
}, "de_DeleteResourcePolicyCommand");
|
|
913
|
-
var de_DeleteRumMetricsDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
914
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
915
|
-
return de_CommandError(output, context);
|
|
916
|
-
}
|
|
917
|
-
const contents = (0, import_smithy_client.map)({
|
|
918
|
-
$metadata: deserializeMetadata(output)
|
|
919
|
-
});
|
|
920
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
921
|
-
return contents;
|
|
922
|
-
}, "de_DeleteRumMetricsDestinationCommand");
|
|
923
|
-
var de_GetAppMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
924
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
925
|
-
return de_CommandError(output, context);
|
|
926
|
-
}
|
|
927
|
-
const contents = (0, import_smithy_client.map)({
|
|
928
|
-
$metadata: deserializeMetadata(output)
|
|
929
|
-
});
|
|
930
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
931
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
932
|
-
AppMonitor: /* @__PURE__ */ __name((_) => de_AppMonitor(_, context), "AppMonitor")
|
|
933
|
-
});
|
|
934
|
-
Object.assign(contents, doc);
|
|
935
|
-
return contents;
|
|
936
|
-
}, "de_GetAppMonitorCommand");
|
|
937
|
-
var de_GetAppMonitorDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
938
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
939
|
-
return de_CommandError(output, context);
|
|
940
|
-
}
|
|
941
|
-
const contents = (0, import_smithy_client.map)({
|
|
942
|
-
$metadata: deserializeMetadata(output)
|
|
943
|
-
});
|
|
944
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
945
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
946
|
-
Events: import_smithy_client._json,
|
|
947
|
-
NextToken: import_smithy_client.expectString
|
|
948
|
-
});
|
|
949
|
-
Object.assign(contents, doc);
|
|
950
|
-
return contents;
|
|
951
|
-
}, "de_GetAppMonitorDataCommand");
|
|
952
|
-
var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
953
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
954
|
-
return de_CommandError(output, context);
|
|
955
|
-
}
|
|
956
|
-
const contents = (0, import_smithy_client.map)({
|
|
957
|
-
$metadata: deserializeMetadata(output)
|
|
958
|
-
});
|
|
959
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
960
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
961
|
-
PolicyDocument: import_smithy_client.expectString,
|
|
962
|
-
PolicyRevisionId: import_smithy_client.expectString
|
|
963
|
-
});
|
|
964
|
-
Object.assign(contents, doc);
|
|
965
|
-
return contents;
|
|
966
|
-
}, "de_GetResourcePolicyCommand");
|
|
967
|
-
var de_ListAppMonitorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
968
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
969
|
-
return de_CommandError(output, context);
|
|
970
|
-
}
|
|
971
|
-
const contents = (0, import_smithy_client.map)({
|
|
972
|
-
$metadata: deserializeMetadata(output)
|
|
973
|
-
});
|
|
974
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
975
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
976
|
-
AppMonitorSummaries: import_smithy_client._json,
|
|
977
|
-
NextToken: import_smithy_client.expectString
|
|
978
|
-
});
|
|
979
|
-
Object.assign(contents, doc);
|
|
980
|
-
return contents;
|
|
981
|
-
}, "de_ListAppMonitorsCommand");
|
|
982
|
-
var de_ListRumMetricsDestinationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
983
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
984
|
-
return de_CommandError(output, context);
|
|
985
|
-
}
|
|
986
|
-
const contents = (0, import_smithy_client.map)({
|
|
987
|
-
$metadata: deserializeMetadata(output)
|
|
988
|
-
});
|
|
989
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
990
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
991
|
-
Destinations: import_smithy_client._json,
|
|
992
|
-
NextToken: import_smithy_client.expectString
|
|
993
|
-
});
|
|
994
|
-
Object.assign(contents, doc);
|
|
995
|
-
return contents;
|
|
996
|
-
}, "de_ListRumMetricsDestinationsCommand");
|
|
997
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
998
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
999
|
-
return de_CommandError(output, context);
|
|
1000
|
-
}
|
|
1001
|
-
const contents = (0, import_smithy_client.map)({
|
|
1002
|
-
$metadata: deserializeMetadata(output)
|
|
1003
|
-
});
|
|
1004
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1005
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1006
|
-
ResourceArn: import_smithy_client.expectString,
|
|
1007
|
-
Tags: import_smithy_client._json
|
|
1008
|
-
});
|
|
1009
|
-
Object.assign(contents, doc);
|
|
1010
|
-
return contents;
|
|
1011
|
-
}, "de_ListTagsForResourceCommand");
|
|
1012
|
-
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1013
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1014
|
-
return de_CommandError(output, context);
|
|
1015
|
-
}
|
|
1016
|
-
const contents = (0, import_smithy_client.map)({
|
|
1017
|
-
$metadata: deserializeMetadata(output)
|
|
1018
|
-
});
|
|
1019
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1020
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1021
|
-
PolicyDocument: import_smithy_client.expectString,
|
|
1022
|
-
PolicyRevisionId: import_smithy_client.expectString
|
|
1023
|
-
});
|
|
1024
|
-
Object.assign(contents, doc);
|
|
1025
|
-
return contents;
|
|
1026
|
-
}, "de_PutResourcePolicyCommand");
|
|
1027
|
-
var de_PutRumEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1028
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1029
|
-
return de_CommandError(output, context);
|
|
1030
|
-
}
|
|
1031
|
-
const contents = (0, import_smithy_client.map)({
|
|
1032
|
-
$metadata: deserializeMetadata(output)
|
|
1033
|
-
});
|
|
1034
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1035
|
-
return contents;
|
|
1036
|
-
}, "de_PutRumEventsCommand");
|
|
1037
|
-
var de_PutRumMetricsDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1038
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1039
|
-
return de_CommandError(output, context);
|
|
1040
|
-
}
|
|
1041
|
-
const contents = (0, import_smithy_client.map)({
|
|
1042
|
-
$metadata: deserializeMetadata(output)
|
|
1043
|
-
});
|
|
1044
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1045
|
-
return contents;
|
|
1046
|
-
}, "de_PutRumMetricsDestinationCommand");
|
|
1047
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1048
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1049
|
-
return de_CommandError(output, context);
|
|
1050
|
-
}
|
|
1051
|
-
const contents = (0, import_smithy_client.map)({
|
|
1052
|
-
$metadata: deserializeMetadata(output)
|
|
1053
|
-
});
|
|
1054
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1055
|
-
return contents;
|
|
1056
|
-
}, "de_TagResourceCommand");
|
|
1057
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1058
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1059
|
-
return de_CommandError(output, context);
|
|
1060
|
-
}
|
|
1061
|
-
const contents = (0, import_smithy_client.map)({
|
|
1062
|
-
$metadata: deserializeMetadata(output)
|
|
1063
|
-
});
|
|
1064
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1065
|
-
return contents;
|
|
1066
|
-
}, "de_UntagResourceCommand");
|
|
1067
|
-
var de_UpdateAppMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1068
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1069
|
-
return de_CommandError(output, context);
|
|
1070
|
-
}
|
|
1071
|
-
const contents = (0, import_smithy_client.map)({
|
|
1072
|
-
$metadata: deserializeMetadata(output)
|
|
1073
|
-
});
|
|
1074
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1075
|
-
return contents;
|
|
1076
|
-
}, "de_UpdateAppMonitorCommand");
|
|
1077
|
-
var de_UpdateRumMetricDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1078
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1079
|
-
return de_CommandError(output, context);
|
|
1080
|
-
}
|
|
1081
|
-
const contents = (0, import_smithy_client.map)({
|
|
1082
|
-
$metadata: deserializeMetadata(output)
|
|
1083
|
-
});
|
|
1084
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1085
|
-
return contents;
|
|
1086
|
-
}, "de_UpdateRumMetricDefinitionCommand");
|
|
1087
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1088
|
-
const parsedOutput = {
|
|
1089
|
-
...output,
|
|
1090
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1091
|
-
};
|
|
1092
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1093
|
-
switch (errorCode) {
|
|
1094
|
-
case "AccessDeniedException":
|
|
1095
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
1096
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1097
|
-
case "ConflictException":
|
|
1098
|
-
case "com.amazonaws.rum#ConflictException":
|
|
1099
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1100
|
-
case "InternalServerException":
|
|
1101
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
1102
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1103
|
-
case "ResourceNotFoundException":
|
|
1104
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
1105
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1106
|
-
case "ServiceQuotaExceededException":
|
|
1107
|
-
case "com.amazonaws.rum#ServiceQuotaExceededException":
|
|
1108
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1109
|
-
case "ThrottlingException":
|
|
1110
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
1111
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "ValidationException":
|
|
1113
|
-
case "com.amazonaws.rum#ValidationException":
|
|
1114
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "InvalidPolicyRevisionIdException":
|
|
1116
|
-
case "com.amazonaws.rum#InvalidPolicyRevisionIdException":
|
|
1117
|
-
throw await de_InvalidPolicyRevisionIdExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "PolicyNotFoundException":
|
|
1119
|
-
case "com.amazonaws.rum#PolicyNotFoundException":
|
|
1120
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "MalformedPolicyDocumentException":
|
|
1122
|
-
case "com.amazonaws.rum#MalformedPolicyDocumentException":
|
|
1123
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "PolicySizeLimitExceededException":
|
|
1125
|
-
case "com.amazonaws.rum#PolicySizeLimitExceededException":
|
|
1126
|
-
throw await de_PolicySizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1127
|
-
default:
|
|
1128
|
-
const parsedBody = parsedOutput.body;
|
|
1129
|
-
return throwDefaultError({
|
|
1130
|
-
output,
|
|
1131
|
-
parsedBody,
|
|
1132
|
-
errorCode
|
|
1133
|
-
});
|
|
1134
|
-
}
|
|
1135
|
-
}, "de_CommandError");
|
|
1136
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(RUMServiceException);
|
|
1137
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1138
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1139
|
-
const data = parsedOutput.body;
|
|
1140
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1141
|
-
message: import_smithy_client.expectString
|
|
1142
|
-
});
|
|
1143
|
-
Object.assign(contents, doc);
|
|
1144
|
-
const exception = new AccessDeniedException({
|
|
1145
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1146
|
-
...contents
|
|
1147
|
-
});
|
|
1148
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1149
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1150
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1151
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1152
|
-
const data = parsedOutput.body;
|
|
1153
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1154
|
-
message: import_smithy_client.expectString,
|
|
1155
|
-
resourceName: import_smithy_client.expectString,
|
|
1156
|
-
resourceType: import_smithy_client.expectString
|
|
1157
|
-
});
|
|
1158
|
-
Object.assign(contents, doc);
|
|
1159
|
-
const exception = new ConflictException({
|
|
1160
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1161
|
-
...contents
|
|
1162
|
-
});
|
|
1163
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1164
|
-
}, "de_ConflictExceptionRes");
|
|
1165
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1166
|
-
const contents = (0, import_smithy_client.map)({
|
|
1167
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1168
|
-
});
|
|
1169
|
-
const data = parsedOutput.body;
|
|
1170
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1171
|
-
message: import_smithy_client.expectString
|
|
1172
|
-
});
|
|
1173
|
-
Object.assign(contents, doc);
|
|
1174
|
-
const exception = new InternalServerException({
|
|
1175
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1176
|
-
...contents
|
|
1177
|
-
});
|
|
1178
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1179
|
-
}, "de_InternalServerExceptionRes");
|
|
1180
|
-
var de_InvalidPolicyRevisionIdExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1181
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1182
|
-
const data = parsedOutput.body;
|
|
1183
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1184
|
-
message: import_smithy_client.expectString
|
|
1185
|
-
});
|
|
1186
|
-
Object.assign(contents, doc);
|
|
1187
|
-
const exception = new InvalidPolicyRevisionIdException({
|
|
1188
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1189
|
-
...contents
|
|
1190
|
-
});
|
|
1191
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1192
|
-
}, "de_InvalidPolicyRevisionIdExceptionRes");
|
|
1193
|
-
var de_MalformedPolicyDocumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1194
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1195
|
-
const data = parsedOutput.body;
|
|
1196
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1197
|
-
message: import_smithy_client.expectString
|
|
1198
|
-
});
|
|
1199
|
-
Object.assign(contents, doc);
|
|
1200
|
-
const exception = new MalformedPolicyDocumentException({
|
|
1201
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1202
|
-
...contents
|
|
1203
|
-
});
|
|
1204
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1205
|
-
}, "de_MalformedPolicyDocumentExceptionRes");
|
|
1206
|
-
var de_PolicyNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1207
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1208
|
-
const data = parsedOutput.body;
|
|
1209
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1210
|
-
message: import_smithy_client.expectString
|
|
1211
|
-
});
|
|
1212
|
-
Object.assign(contents, doc);
|
|
1213
|
-
const exception = new PolicyNotFoundException({
|
|
1214
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1215
|
-
...contents
|
|
1216
|
-
});
|
|
1217
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1218
|
-
}, "de_PolicyNotFoundExceptionRes");
|
|
1219
|
-
var de_PolicySizeLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1220
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1221
|
-
const data = parsedOutput.body;
|
|
1222
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1223
|
-
message: import_smithy_client.expectString
|
|
1224
|
-
});
|
|
1225
|
-
Object.assign(contents, doc);
|
|
1226
|
-
const exception = new PolicySizeLimitExceededException({
|
|
1227
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1228
|
-
...contents
|
|
1229
|
-
});
|
|
1230
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1231
|
-
}, "de_PolicySizeLimitExceededExceptionRes");
|
|
1232
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1233
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1234
|
-
const data = parsedOutput.body;
|
|
1235
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1236
|
-
message: import_smithy_client.expectString,
|
|
1237
|
-
resourceName: import_smithy_client.expectString,
|
|
1238
|
-
resourceType: import_smithy_client.expectString
|
|
1239
|
-
});
|
|
1240
|
-
Object.assign(contents, doc);
|
|
1241
|
-
const exception = new ResourceNotFoundException({
|
|
1242
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1243
|
-
...contents
|
|
1244
|
-
});
|
|
1245
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1246
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1247
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1248
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1249
|
-
const data = parsedOutput.body;
|
|
1250
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1251
|
-
message: import_smithy_client.expectString
|
|
1252
|
-
});
|
|
1253
|
-
Object.assign(contents, doc);
|
|
1254
|
-
const exception = new ServiceQuotaExceededException({
|
|
1255
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1256
|
-
...contents
|
|
1257
|
-
});
|
|
1258
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1259
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1260
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1261
|
-
const contents = (0, import_smithy_client.map)({
|
|
1262
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1263
|
-
});
|
|
1264
|
-
const data = parsedOutput.body;
|
|
1265
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1266
|
-
message: import_smithy_client.expectString,
|
|
1267
|
-
quotaCode: import_smithy_client.expectString,
|
|
1268
|
-
serviceCode: import_smithy_client.expectString
|
|
1269
|
-
});
|
|
1270
|
-
Object.assign(contents, doc);
|
|
1271
|
-
const exception = new ThrottlingException({
|
|
1272
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1273
|
-
...contents
|
|
1274
|
-
});
|
|
1275
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1276
|
-
}, "de_ThrottlingExceptionRes");
|
|
1277
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1278
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1279
|
-
const data = parsedOutput.body;
|
|
1280
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1281
|
-
message: import_smithy_client.expectString
|
|
1282
|
-
});
|
|
1283
|
-
Object.assign(contents, doc);
|
|
1284
|
-
const exception = new ValidationException({
|
|
1285
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1286
|
-
...contents
|
|
1287
|
-
});
|
|
1288
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1289
|
-
}, "de_ValidationExceptionRes");
|
|
1290
|
-
var se_AppMonitorConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
1291
|
-
return (0, import_smithy_client.take)(input, {
|
|
1292
|
-
AllowCookies: [],
|
|
1293
|
-
EnableXRay: [],
|
|
1294
|
-
ExcludedPages: import_smithy_client._json,
|
|
1295
|
-
FavoritePages: import_smithy_client._json,
|
|
1296
|
-
GuestRoleArn: [],
|
|
1297
|
-
IdentityPoolId: [],
|
|
1298
|
-
IncludedPages: import_smithy_client._json,
|
|
1299
|
-
SessionSampleRate: import_smithy_client.serializeFloat,
|
|
1300
|
-
Telemetries: import_smithy_client._json
|
|
1301
|
-
});
|
|
1302
|
-
}, "se_AppMonitorConfiguration");
|
|
1303
|
-
var se_RumEvent = /* @__PURE__ */ __name((input, context) => {
|
|
1304
|
-
return (0, import_smithy_client.take)(input, {
|
|
1305
|
-
details: import_smithy_client.LazyJsonString.from,
|
|
1306
|
-
id: [],
|
|
1307
|
-
metadata: import_smithy_client.LazyJsonString.from,
|
|
1308
|
-
timestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "timestamp"),
|
|
1309
|
-
type: []
|
|
1310
|
-
});
|
|
1311
|
-
}, "se_RumEvent");
|
|
1312
|
-
var se_RumEventList = /* @__PURE__ */ __name((input, context) => {
|
|
1313
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1314
|
-
return se_RumEvent(entry, context);
|
|
1315
|
-
});
|
|
1316
|
-
}, "se_RumEventList");
|
|
1317
|
-
var de_AppMonitor = /* @__PURE__ */ __name((output, context) => {
|
|
1318
|
-
return (0, import_smithy_client.take)(output, {
|
|
1319
|
-
AppMonitorConfiguration: /* @__PURE__ */ __name((_) => de_AppMonitorConfiguration(_, context), "AppMonitorConfiguration"),
|
|
1320
|
-
Created: import_smithy_client.expectString,
|
|
1321
|
-
CustomEvents: import_smithy_client._json,
|
|
1322
|
-
DataStorage: import_smithy_client._json,
|
|
1323
|
-
DeobfuscationConfiguration: import_smithy_client._json,
|
|
1324
|
-
Domain: import_smithy_client.expectString,
|
|
1325
|
-
DomainList: import_smithy_client._json,
|
|
1326
|
-
Id: import_smithy_client.expectString,
|
|
1327
|
-
LastModified: import_smithy_client.expectString,
|
|
1328
|
-
Name: import_smithy_client.expectString,
|
|
1329
|
-
State: import_smithy_client.expectString,
|
|
1330
|
-
Tags: import_smithy_client._json
|
|
1331
|
-
});
|
|
1332
|
-
}, "de_AppMonitor");
|
|
1333
|
-
var de_AppMonitorConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
1334
|
-
return (0, import_smithy_client.take)(output, {
|
|
1335
|
-
AllowCookies: import_smithy_client.expectBoolean,
|
|
1336
|
-
EnableXRay: import_smithy_client.expectBoolean,
|
|
1337
|
-
ExcludedPages: import_smithy_client._json,
|
|
1338
|
-
FavoritePages: import_smithy_client._json,
|
|
1339
|
-
GuestRoleArn: import_smithy_client.expectString,
|
|
1340
|
-
IdentityPoolId: import_smithy_client.expectString,
|
|
1341
|
-
IncludedPages: import_smithy_client._json,
|
|
1342
|
-
SessionSampleRate: import_smithy_client.limitedParseDouble,
|
|
1343
|
-
Telemetries: import_smithy_client._json
|
|
1344
|
-
});
|
|
1345
|
-
}, "de_AppMonitorConfiguration");
|
|
1346
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1347
|
-
httpStatusCode: output.statusCode,
|
|
1348
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1349
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1350
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1351
|
-
}), "deserializeMetadata");
|
|
1352
|
-
var _D = "Destination";
|
|
1353
|
-
var _DA = "DestinationArn";
|
|
1354
|
-
var _MDI = "MetricDefinitionIds";
|
|
1355
|
-
var _MR = "MaxResults";
|
|
1356
|
-
var _NT = "NextToken";
|
|
1357
|
-
var _PRI = "PolicyRevisionId";
|
|
1358
|
-
var _TK = "TagKeys";
|
|
1359
|
-
var _d = "destination";
|
|
1360
|
-
var _dA = "destinationArn";
|
|
1361
|
-
var _mDI = "metricDefinitionIds";
|
|
1362
|
-
var _mR = "maxResults";
|
|
1363
|
-
var _nT = "nextToken";
|
|
1364
|
-
var _pRI = "policyRevisionId";
|
|
1365
|
-
var _rAS = "retryAfterSeconds";
|
|
1366
|
-
var _ra = "retry-after";
|
|
1367
|
-
var _tK = "tagKeys";
|
|
1368
|
-
|
|
1369
|
-
// src/commands/BatchCreateRumMetricDefinitionsCommand.ts
|
|
1370
|
-
var BatchCreateRumMetricDefinitionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1371
|
-
return [
|
|
1372
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1373
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1374
|
-
];
|
|
1375
|
-
}).s("RUM", "BatchCreateRumMetricDefinitions", {}).n("RUMClient", "BatchCreateRumMetricDefinitionsCommand").f(void 0, void 0).ser(se_BatchCreateRumMetricDefinitionsCommand).de(de_BatchCreateRumMetricDefinitionsCommand).build() {
|
|
1376
|
-
static {
|
|
1377
|
-
__name(this, "BatchCreateRumMetricDefinitionsCommand");
|
|
1378
|
-
}
|
|
169
|
+
}
|
|
170
|
+
class InternalServerException extends RUMServiceException {
|
|
171
|
+
name = "InternalServerException";
|
|
172
|
+
$fault = "server";
|
|
173
|
+
$retryable = {};
|
|
174
|
+
retryAfterSeconds;
|
|
175
|
+
constructor(opts) {
|
|
176
|
+
super({
|
|
177
|
+
name: "InternalServerException",
|
|
178
|
+
$fault: "server",
|
|
179
|
+
...opts,
|
|
180
|
+
});
|
|
181
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
182
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
class ResourceNotFoundException extends RUMServiceException {
|
|
186
|
+
name = "ResourceNotFoundException";
|
|
187
|
+
$fault = "client";
|
|
188
|
+
resourceName;
|
|
189
|
+
resourceType;
|
|
190
|
+
constructor(opts) {
|
|
191
|
+
super({
|
|
192
|
+
name: "ResourceNotFoundException",
|
|
193
|
+
$fault: "client",
|
|
194
|
+
...opts,
|
|
195
|
+
});
|
|
196
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
197
|
+
this.resourceName = opts.resourceName;
|
|
198
|
+
this.resourceType = opts.resourceType;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
class ServiceQuotaExceededException extends RUMServiceException {
|
|
202
|
+
name = "ServiceQuotaExceededException";
|
|
203
|
+
$fault = "client";
|
|
204
|
+
constructor(opts) {
|
|
205
|
+
super({
|
|
206
|
+
name: "ServiceQuotaExceededException",
|
|
207
|
+
$fault: "client",
|
|
208
|
+
...opts,
|
|
209
|
+
});
|
|
210
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
class ThrottlingException extends RUMServiceException {
|
|
214
|
+
name = "ThrottlingException";
|
|
215
|
+
$fault = "client";
|
|
216
|
+
$retryable = {
|
|
217
|
+
throttling: true,
|
|
218
|
+
};
|
|
219
|
+
serviceCode;
|
|
220
|
+
quotaCode;
|
|
221
|
+
retryAfterSeconds;
|
|
222
|
+
constructor(opts) {
|
|
223
|
+
super({
|
|
224
|
+
name: "ThrottlingException",
|
|
225
|
+
$fault: "client",
|
|
226
|
+
...opts,
|
|
227
|
+
});
|
|
228
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
229
|
+
this.serviceCode = opts.serviceCode;
|
|
230
|
+
this.quotaCode = opts.quotaCode;
|
|
231
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
class ValidationException extends RUMServiceException {
|
|
235
|
+
name = "ValidationException";
|
|
236
|
+
$fault = "client";
|
|
237
|
+
constructor(opts) {
|
|
238
|
+
super({
|
|
239
|
+
name: "ValidationException",
|
|
240
|
+
$fault: "client",
|
|
241
|
+
...opts,
|
|
242
|
+
});
|
|
243
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
class InvalidPolicyRevisionIdException extends RUMServiceException {
|
|
247
|
+
name = "InvalidPolicyRevisionIdException";
|
|
248
|
+
$fault = "client";
|
|
249
|
+
constructor(opts) {
|
|
250
|
+
super({
|
|
251
|
+
name: "InvalidPolicyRevisionIdException",
|
|
252
|
+
$fault: "client",
|
|
253
|
+
...opts,
|
|
254
|
+
});
|
|
255
|
+
Object.setPrototypeOf(this, InvalidPolicyRevisionIdException.prototype);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
class PolicyNotFoundException extends RUMServiceException {
|
|
259
|
+
name = "PolicyNotFoundException";
|
|
260
|
+
$fault = "client";
|
|
261
|
+
constructor(opts) {
|
|
262
|
+
super({
|
|
263
|
+
name: "PolicyNotFoundException",
|
|
264
|
+
$fault: "client",
|
|
265
|
+
...opts,
|
|
266
|
+
});
|
|
267
|
+
Object.setPrototypeOf(this, PolicyNotFoundException.prototype);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
class MalformedPolicyDocumentException extends RUMServiceException {
|
|
271
|
+
name = "MalformedPolicyDocumentException";
|
|
272
|
+
$fault = "client";
|
|
273
|
+
constructor(opts) {
|
|
274
|
+
super({
|
|
275
|
+
name: "MalformedPolicyDocumentException",
|
|
276
|
+
$fault: "client",
|
|
277
|
+
...opts,
|
|
278
|
+
});
|
|
279
|
+
Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
class PolicySizeLimitExceededException extends RUMServiceException {
|
|
283
|
+
name = "PolicySizeLimitExceededException";
|
|
284
|
+
$fault = "client";
|
|
285
|
+
constructor(opts) {
|
|
286
|
+
super({
|
|
287
|
+
name: "PolicySizeLimitExceededException",
|
|
288
|
+
$fault: "client",
|
|
289
|
+
...opts,
|
|
290
|
+
});
|
|
291
|
+
Object.setPrototypeOf(this, PolicySizeLimitExceededException.prototype);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
const se_BatchCreateRumMetricDefinitionsCommand = async (input, context) => {
|
|
296
|
+
const b = core.requestBuilder(input, context);
|
|
297
|
+
const headers = {
|
|
298
|
+
"content-type": "application/json",
|
|
299
|
+
};
|
|
300
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
301
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
302
|
+
let body;
|
|
303
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
304
|
+
Destination: [],
|
|
305
|
+
DestinationArn: [],
|
|
306
|
+
MetricDefinitions: (_) => smithyClient._json(_),
|
|
307
|
+
}));
|
|
308
|
+
b.m("POST").h(headers).b(body);
|
|
309
|
+
return b.build();
|
|
1379
310
|
};
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
}
|
|
311
|
+
const se_BatchDeleteRumMetricDefinitionsCommand = async (input, context) => {
|
|
312
|
+
const b = core.requestBuilder(input, context);
|
|
313
|
+
const headers = {};
|
|
314
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
315
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
316
|
+
const query = smithyClient.map({
|
|
317
|
+
[_d]: [, smithyClient.expectNonNull(input[_D], `Destination`)],
|
|
318
|
+
[_dA]: [, input[_DA]],
|
|
319
|
+
[_mDI]: [smithyClient.expectNonNull(input.MetricDefinitionIds, `MetricDefinitionIds`) != null, () => input[_MDI] || []],
|
|
320
|
+
});
|
|
321
|
+
let body;
|
|
322
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
323
|
+
return b.build();
|
|
1394
324
|
};
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
})
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
325
|
+
const se_BatchGetRumMetricDefinitionsCommand = async (input, context) => {
|
|
326
|
+
const b = core.requestBuilder(input, context);
|
|
327
|
+
const headers = {};
|
|
328
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
329
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
330
|
+
const query = smithyClient.map({
|
|
331
|
+
[_d]: [, smithyClient.expectNonNull(input[_D], `Destination`)],
|
|
332
|
+
[_dA]: [, input[_DA]],
|
|
333
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
334
|
+
[_nT]: [, input[_NT]],
|
|
335
|
+
});
|
|
336
|
+
let body;
|
|
337
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
338
|
+
return b.build();
|
|
1409
339
|
};
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
340
|
+
const se_CreateAppMonitorCommand = async (input, context) => {
|
|
341
|
+
const b = core.requestBuilder(input, context);
|
|
342
|
+
const headers = {
|
|
343
|
+
"content-type": "application/json",
|
|
344
|
+
};
|
|
345
|
+
b.bp("/appmonitor");
|
|
346
|
+
let body;
|
|
347
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
348
|
+
AppMonitorConfiguration: (_) => se_AppMonitorConfiguration(_),
|
|
349
|
+
CustomEvents: (_) => smithyClient._json(_),
|
|
350
|
+
CwLogEnabled: [],
|
|
351
|
+
DeobfuscationConfiguration: (_) => smithyClient._json(_),
|
|
352
|
+
Domain: [],
|
|
353
|
+
DomainList: (_) => smithyClient._json(_),
|
|
354
|
+
Name: [],
|
|
355
|
+
Tags: (_) => smithyClient._json(_),
|
|
356
|
+
}));
|
|
357
|
+
b.m("POST").h(headers).b(body);
|
|
358
|
+
return b.build();
|
|
1424
359
|
};
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1434
|
-
];
|
|
1435
|
-
}).s("RUM", "DeleteAppMonitor", {}).n("RUMClient", "DeleteAppMonitorCommand").f(void 0, void 0).ser(se_DeleteAppMonitorCommand).de(de_DeleteAppMonitorCommand).build() {
|
|
1436
|
-
static {
|
|
1437
|
-
__name(this, "DeleteAppMonitorCommand");
|
|
1438
|
-
}
|
|
360
|
+
const se_DeleteAppMonitorCommand = async (input, context) => {
|
|
361
|
+
const b = core.requestBuilder(input, context);
|
|
362
|
+
const headers = {};
|
|
363
|
+
b.bp("/appmonitor/{Name}");
|
|
364
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
365
|
+
let body;
|
|
366
|
+
b.m("DELETE").h(headers).b(body);
|
|
367
|
+
return b.build();
|
|
1439
368
|
};
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
static {
|
|
1452
|
-
__name(this, "DeleteResourcePolicyCommand");
|
|
1453
|
-
}
|
|
369
|
+
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
370
|
+
const b = core.requestBuilder(input, context);
|
|
371
|
+
const headers = {};
|
|
372
|
+
b.bp("/appmonitor/{Name}/policy");
|
|
373
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
374
|
+
const query = smithyClient.map({
|
|
375
|
+
[_pRI]: [, input[_PRI]],
|
|
376
|
+
});
|
|
377
|
+
let body;
|
|
378
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
379
|
+
return b.build();
|
|
1454
380
|
};
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
__name(this, "DeleteRumMetricsDestinationCommand");
|
|
1468
|
-
}
|
|
381
|
+
const se_DeleteRumMetricsDestinationCommand = async (input, context) => {
|
|
382
|
+
const b = core.requestBuilder(input, context);
|
|
383
|
+
const headers = {};
|
|
384
|
+
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
385
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
386
|
+
const query = smithyClient.map({
|
|
387
|
+
[_d]: [, smithyClient.expectNonNull(input[_D], `Destination`)],
|
|
388
|
+
[_dA]: [, input[_DA]],
|
|
389
|
+
});
|
|
390
|
+
let body;
|
|
391
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
392
|
+
return b.build();
|
|
1469
393
|
};
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1479
|
-
];
|
|
1480
|
-
}).s("RUM", "GetAppMonitor", {}).n("RUMClient", "GetAppMonitorCommand").f(void 0, void 0).ser(se_GetAppMonitorCommand).de(de_GetAppMonitorCommand).build() {
|
|
1481
|
-
static {
|
|
1482
|
-
__name(this, "GetAppMonitorCommand");
|
|
1483
|
-
}
|
|
394
|
+
const se_GetAppMonitorCommand = async (input, context) => {
|
|
395
|
+
const b = core.requestBuilder(input, context);
|
|
396
|
+
const headers = {};
|
|
397
|
+
b.bp("/appmonitor/{Name}");
|
|
398
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
399
|
+
let body;
|
|
400
|
+
b.m("GET").h(headers).b(body);
|
|
401
|
+
return b.build();
|
|
1484
402
|
};
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
403
|
+
const se_GetAppMonitorDataCommand = async (input, context) => {
|
|
404
|
+
const b = core.requestBuilder(input, context);
|
|
405
|
+
const headers = {
|
|
406
|
+
"content-type": "application/json",
|
|
407
|
+
};
|
|
408
|
+
b.bp("/appmonitor/{Name}/data");
|
|
409
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
410
|
+
let body;
|
|
411
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
412
|
+
Filters: (_) => smithyClient._json(_),
|
|
413
|
+
MaxResults: [],
|
|
414
|
+
NextToken: [],
|
|
415
|
+
TimeRange: (_) => smithyClient._json(_),
|
|
416
|
+
}));
|
|
417
|
+
b.m("POST").h(headers).b(body);
|
|
418
|
+
return b.build();
|
|
1499
419
|
};
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1509
|
-
];
|
|
1510
|
-
}).s("RUM", "GetResourcePolicy", {}).n("RUMClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
|
|
1511
|
-
static {
|
|
1512
|
-
__name(this, "GetResourcePolicyCommand");
|
|
1513
|
-
}
|
|
420
|
+
const se_GetResourcePolicyCommand = async (input, context) => {
|
|
421
|
+
const b = core.requestBuilder(input, context);
|
|
422
|
+
const headers = {};
|
|
423
|
+
b.bp("/appmonitor/{Name}/policy");
|
|
424
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
425
|
+
let body;
|
|
426
|
+
b.m("GET").h(headers).b(body);
|
|
427
|
+
return b.build();
|
|
1514
428
|
};
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
static {
|
|
1527
|
-
__name(this, "ListAppMonitorsCommand");
|
|
1528
|
-
}
|
|
429
|
+
const se_ListAppMonitorsCommand = async (input, context) => {
|
|
430
|
+
const b = core.requestBuilder(input, context);
|
|
431
|
+
const headers = {};
|
|
432
|
+
b.bp("/appmonitors");
|
|
433
|
+
const query = smithyClient.map({
|
|
434
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
435
|
+
[_nT]: [, input[_NT]],
|
|
436
|
+
});
|
|
437
|
+
let body;
|
|
438
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
439
|
+
return b.build();
|
|
1529
440
|
};
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
__name(this, "ListRumMetricsDestinationsCommand");
|
|
1543
|
-
}
|
|
441
|
+
const se_ListRumMetricsDestinationsCommand = async (input, context) => {
|
|
442
|
+
const b = core.requestBuilder(input, context);
|
|
443
|
+
const headers = {};
|
|
444
|
+
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
445
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
446
|
+
const query = smithyClient.map({
|
|
447
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
448
|
+
[_nT]: [, input[_NT]],
|
|
449
|
+
});
|
|
450
|
+
let body;
|
|
451
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
452
|
+
return b.build();
|
|
1544
453
|
};
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1554
|
-
];
|
|
1555
|
-
}).s("RUM", "ListTagsForResource", {}).n("RUMClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1556
|
-
static {
|
|
1557
|
-
__name(this, "ListTagsForResourceCommand");
|
|
1558
|
-
}
|
|
454
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
455
|
+
const b = core.requestBuilder(input, context);
|
|
456
|
+
const headers = {};
|
|
457
|
+
b.bp("/tags/{ResourceArn}");
|
|
458
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
459
|
+
let body;
|
|
460
|
+
b.m("GET").h(headers).b(body);
|
|
461
|
+
return b.build();
|
|
1559
462
|
};
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
463
|
+
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
464
|
+
const b = core.requestBuilder(input, context);
|
|
465
|
+
const headers = {
|
|
466
|
+
"content-type": "application/json",
|
|
467
|
+
};
|
|
468
|
+
b.bp("/appmonitor/{Name}/policy");
|
|
469
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
470
|
+
let body;
|
|
471
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
472
|
+
PolicyDocument: [],
|
|
473
|
+
PolicyRevisionId: [],
|
|
474
|
+
}));
|
|
475
|
+
b.m("PUT").h(headers).b(body);
|
|
476
|
+
return b.build();
|
|
1574
477
|
};
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
478
|
+
const se_PutRumEventsCommand = async (input, context) => {
|
|
479
|
+
const b = core.requestBuilder(input, context);
|
|
480
|
+
const headers = {
|
|
481
|
+
"content-type": "application/json",
|
|
482
|
+
};
|
|
483
|
+
b.bp("/appmonitors/{Id}");
|
|
484
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
485
|
+
let body;
|
|
486
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
487
|
+
Alias: [],
|
|
488
|
+
AppMonitorDetails: (_) => smithyClient._json(_),
|
|
489
|
+
BatchId: [],
|
|
490
|
+
RumEvents: (_) => se_RumEventList(_),
|
|
491
|
+
UserDetails: (_) => smithyClient._json(_),
|
|
492
|
+
}));
|
|
493
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
494
|
+
if (context.disableHostPrefix !== true) {
|
|
495
|
+
resolvedHostname = "dataplane." + resolvedHostname;
|
|
496
|
+
if (!protocolHttp.isValidHostname(resolvedHostname)) {
|
|
497
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
b.hn(resolvedHostname);
|
|
501
|
+
b.m("POST").h(headers).b(body);
|
|
502
|
+
return b.build();
|
|
1589
503
|
};
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
504
|
+
const se_PutRumMetricsDestinationCommand = async (input, context) => {
|
|
505
|
+
const b = core.requestBuilder(input, context);
|
|
506
|
+
const headers = {
|
|
507
|
+
"content-type": "application/json",
|
|
508
|
+
};
|
|
509
|
+
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
510
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
511
|
+
let body;
|
|
512
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
513
|
+
Destination: [],
|
|
514
|
+
DestinationArn: [],
|
|
515
|
+
IamRoleArn: [],
|
|
516
|
+
}));
|
|
517
|
+
b.m("POST").h(headers).b(body);
|
|
518
|
+
return b.build();
|
|
1604
519
|
};
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
})
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
}
|
|
520
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
521
|
+
const b = core.requestBuilder(input, context);
|
|
522
|
+
const headers = {
|
|
523
|
+
"content-type": "application/json",
|
|
524
|
+
};
|
|
525
|
+
b.bp("/tags/{ResourceArn}");
|
|
526
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
527
|
+
let body;
|
|
528
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
529
|
+
Tags: (_) => smithyClient._json(_),
|
|
530
|
+
}));
|
|
531
|
+
b.m("POST").h(headers).b(body);
|
|
532
|
+
return b.build();
|
|
1619
533
|
};
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
static {
|
|
1632
|
-
__name(this, "UntagResourceCommand");
|
|
1633
|
-
}
|
|
534
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
535
|
+
const b = core.requestBuilder(input, context);
|
|
536
|
+
const headers = {};
|
|
537
|
+
b.bp("/tags/{ResourceArn}");
|
|
538
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
539
|
+
const query = smithyClient.map({
|
|
540
|
+
[_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
541
|
+
});
|
|
542
|
+
let body;
|
|
543
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
544
|
+
return b.build();
|
|
1634
545
|
};
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
546
|
+
const se_UpdateAppMonitorCommand = async (input, context) => {
|
|
547
|
+
const b = core.requestBuilder(input, context);
|
|
548
|
+
const headers = {
|
|
549
|
+
"content-type": "application/json",
|
|
550
|
+
};
|
|
551
|
+
b.bp("/appmonitor/{Name}");
|
|
552
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
553
|
+
let body;
|
|
554
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
555
|
+
AppMonitorConfiguration: (_) => se_AppMonitorConfiguration(_),
|
|
556
|
+
CustomEvents: (_) => smithyClient._json(_),
|
|
557
|
+
CwLogEnabled: [],
|
|
558
|
+
DeobfuscationConfiguration: (_) => smithyClient._json(_),
|
|
559
|
+
Domain: [],
|
|
560
|
+
DomainList: (_) => smithyClient._json(_),
|
|
561
|
+
}));
|
|
562
|
+
b.m("PATCH").h(headers).b(body);
|
|
563
|
+
return b.build();
|
|
1649
564
|
};
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
565
|
+
const se_UpdateRumMetricDefinitionCommand = async (input, context) => {
|
|
566
|
+
const b = core.requestBuilder(input, context);
|
|
567
|
+
const headers = {
|
|
568
|
+
"content-type": "application/json",
|
|
569
|
+
};
|
|
570
|
+
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
571
|
+
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
572
|
+
let body;
|
|
573
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
574
|
+
Destination: [],
|
|
575
|
+
DestinationArn: [],
|
|
576
|
+
MetricDefinition: (_) => smithyClient._json(_),
|
|
577
|
+
MetricDefinitionId: [],
|
|
578
|
+
}));
|
|
579
|
+
b.m("PATCH").h(headers).b(body);
|
|
580
|
+
return b.build();
|
|
1664
581
|
};
|
|
582
|
+
const de_BatchCreateRumMetricDefinitionsCommand = async (output, context) => {
|
|
583
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
584
|
+
return de_CommandError(output, context);
|
|
585
|
+
}
|
|
586
|
+
const contents = smithyClient.map({
|
|
587
|
+
$metadata: deserializeMetadata(output),
|
|
588
|
+
});
|
|
589
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
590
|
+
const doc = smithyClient.take(data, {
|
|
591
|
+
Errors: smithyClient._json,
|
|
592
|
+
MetricDefinitions: smithyClient._json,
|
|
593
|
+
});
|
|
594
|
+
Object.assign(contents, doc);
|
|
595
|
+
return contents;
|
|
596
|
+
};
|
|
597
|
+
const de_BatchDeleteRumMetricDefinitionsCommand = async (output, context) => {
|
|
598
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
599
|
+
return de_CommandError(output, context);
|
|
600
|
+
}
|
|
601
|
+
const contents = smithyClient.map({
|
|
602
|
+
$metadata: deserializeMetadata(output),
|
|
603
|
+
});
|
|
604
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
605
|
+
const doc = smithyClient.take(data, {
|
|
606
|
+
Errors: smithyClient._json,
|
|
607
|
+
MetricDefinitionIds: smithyClient._json,
|
|
608
|
+
});
|
|
609
|
+
Object.assign(contents, doc);
|
|
610
|
+
return contents;
|
|
611
|
+
};
|
|
612
|
+
const de_BatchGetRumMetricDefinitionsCommand = async (output, context) => {
|
|
613
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
614
|
+
return de_CommandError(output, context);
|
|
615
|
+
}
|
|
616
|
+
const contents = smithyClient.map({
|
|
617
|
+
$metadata: deserializeMetadata(output),
|
|
618
|
+
});
|
|
619
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
620
|
+
const doc = smithyClient.take(data, {
|
|
621
|
+
MetricDefinitions: smithyClient._json,
|
|
622
|
+
NextToken: smithyClient.expectString,
|
|
623
|
+
});
|
|
624
|
+
Object.assign(contents, doc);
|
|
625
|
+
return contents;
|
|
626
|
+
};
|
|
627
|
+
const de_CreateAppMonitorCommand = async (output, context) => {
|
|
628
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
629
|
+
return de_CommandError(output, context);
|
|
630
|
+
}
|
|
631
|
+
const contents = smithyClient.map({
|
|
632
|
+
$metadata: deserializeMetadata(output),
|
|
633
|
+
});
|
|
634
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
635
|
+
const doc = smithyClient.take(data, {
|
|
636
|
+
Id: smithyClient.expectString,
|
|
637
|
+
});
|
|
638
|
+
Object.assign(contents, doc);
|
|
639
|
+
return contents;
|
|
640
|
+
};
|
|
641
|
+
const de_DeleteAppMonitorCommand = async (output, context) => {
|
|
642
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
643
|
+
return de_CommandError(output, context);
|
|
644
|
+
}
|
|
645
|
+
const contents = smithyClient.map({
|
|
646
|
+
$metadata: deserializeMetadata(output),
|
|
647
|
+
});
|
|
648
|
+
await smithyClient.collectBody(output.body, context);
|
|
649
|
+
return contents;
|
|
650
|
+
};
|
|
651
|
+
const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
652
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
653
|
+
return de_CommandError(output, context);
|
|
654
|
+
}
|
|
655
|
+
const contents = smithyClient.map({
|
|
656
|
+
$metadata: deserializeMetadata(output),
|
|
657
|
+
});
|
|
658
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
659
|
+
const doc = smithyClient.take(data, {
|
|
660
|
+
PolicyRevisionId: smithyClient.expectString,
|
|
661
|
+
});
|
|
662
|
+
Object.assign(contents, doc);
|
|
663
|
+
return contents;
|
|
664
|
+
};
|
|
665
|
+
const de_DeleteRumMetricsDestinationCommand = async (output, context) => {
|
|
666
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
667
|
+
return de_CommandError(output, context);
|
|
668
|
+
}
|
|
669
|
+
const contents = smithyClient.map({
|
|
670
|
+
$metadata: deserializeMetadata(output),
|
|
671
|
+
});
|
|
672
|
+
await smithyClient.collectBody(output.body, context);
|
|
673
|
+
return contents;
|
|
674
|
+
};
|
|
675
|
+
const de_GetAppMonitorCommand = async (output, context) => {
|
|
676
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
677
|
+
return de_CommandError(output, context);
|
|
678
|
+
}
|
|
679
|
+
const contents = smithyClient.map({
|
|
680
|
+
$metadata: deserializeMetadata(output),
|
|
681
|
+
});
|
|
682
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
683
|
+
const doc = smithyClient.take(data, {
|
|
684
|
+
AppMonitor: (_) => de_AppMonitor(_),
|
|
685
|
+
});
|
|
686
|
+
Object.assign(contents, doc);
|
|
687
|
+
return contents;
|
|
688
|
+
};
|
|
689
|
+
const de_GetAppMonitorDataCommand = async (output, context) => {
|
|
690
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
691
|
+
return de_CommandError(output, context);
|
|
692
|
+
}
|
|
693
|
+
const contents = smithyClient.map({
|
|
694
|
+
$metadata: deserializeMetadata(output),
|
|
695
|
+
});
|
|
696
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
697
|
+
const doc = smithyClient.take(data, {
|
|
698
|
+
Events: smithyClient._json,
|
|
699
|
+
NextToken: smithyClient.expectString,
|
|
700
|
+
});
|
|
701
|
+
Object.assign(contents, doc);
|
|
702
|
+
return contents;
|
|
703
|
+
};
|
|
704
|
+
const de_GetResourcePolicyCommand = async (output, context) => {
|
|
705
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
706
|
+
return de_CommandError(output, context);
|
|
707
|
+
}
|
|
708
|
+
const contents = smithyClient.map({
|
|
709
|
+
$metadata: deserializeMetadata(output),
|
|
710
|
+
});
|
|
711
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
712
|
+
const doc = smithyClient.take(data, {
|
|
713
|
+
PolicyDocument: smithyClient.expectString,
|
|
714
|
+
PolicyRevisionId: smithyClient.expectString,
|
|
715
|
+
});
|
|
716
|
+
Object.assign(contents, doc);
|
|
717
|
+
return contents;
|
|
718
|
+
};
|
|
719
|
+
const de_ListAppMonitorsCommand = async (output, context) => {
|
|
720
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
721
|
+
return de_CommandError(output, context);
|
|
722
|
+
}
|
|
723
|
+
const contents = smithyClient.map({
|
|
724
|
+
$metadata: deserializeMetadata(output),
|
|
725
|
+
});
|
|
726
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
727
|
+
const doc = smithyClient.take(data, {
|
|
728
|
+
AppMonitorSummaries: smithyClient._json,
|
|
729
|
+
NextToken: smithyClient.expectString,
|
|
730
|
+
});
|
|
731
|
+
Object.assign(contents, doc);
|
|
732
|
+
return contents;
|
|
733
|
+
};
|
|
734
|
+
const de_ListRumMetricsDestinationsCommand = async (output, context) => {
|
|
735
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
736
|
+
return de_CommandError(output, context);
|
|
737
|
+
}
|
|
738
|
+
const contents = smithyClient.map({
|
|
739
|
+
$metadata: deserializeMetadata(output),
|
|
740
|
+
});
|
|
741
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
742
|
+
const doc = smithyClient.take(data, {
|
|
743
|
+
Destinations: smithyClient._json,
|
|
744
|
+
NextToken: smithyClient.expectString,
|
|
745
|
+
});
|
|
746
|
+
Object.assign(contents, doc);
|
|
747
|
+
return contents;
|
|
748
|
+
};
|
|
749
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
750
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
751
|
+
return de_CommandError(output, context);
|
|
752
|
+
}
|
|
753
|
+
const contents = smithyClient.map({
|
|
754
|
+
$metadata: deserializeMetadata(output),
|
|
755
|
+
});
|
|
756
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
757
|
+
const doc = smithyClient.take(data, {
|
|
758
|
+
ResourceArn: smithyClient.expectString,
|
|
759
|
+
Tags: smithyClient._json,
|
|
760
|
+
});
|
|
761
|
+
Object.assign(contents, doc);
|
|
762
|
+
return contents;
|
|
763
|
+
};
|
|
764
|
+
const de_PutResourcePolicyCommand = async (output, context) => {
|
|
765
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
766
|
+
return de_CommandError(output, context);
|
|
767
|
+
}
|
|
768
|
+
const contents = smithyClient.map({
|
|
769
|
+
$metadata: deserializeMetadata(output),
|
|
770
|
+
});
|
|
771
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
772
|
+
const doc = smithyClient.take(data, {
|
|
773
|
+
PolicyDocument: smithyClient.expectString,
|
|
774
|
+
PolicyRevisionId: smithyClient.expectString,
|
|
775
|
+
});
|
|
776
|
+
Object.assign(contents, doc);
|
|
777
|
+
return contents;
|
|
778
|
+
};
|
|
779
|
+
const de_PutRumEventsCommand = async (output, context) => {
|
|
780
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
781
|
+
return de_CommandError(output, context);
|
|
782
|
+
}
|
|
783
|
+
const contents = smithyClient.map({
|
|
784
|
+
$metadata: deserializeMetadata(output),
|
|
785
|
+
});
|
|
786
|
+
await smithyClient.collectBody(output.body, context);
|
|
787
|
+
return contents;
|
|
788
|
+
};
|
|
789
|
+
const de_PutRumMetricsDestinationCommand = async (output, context) => {
|
|
790
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
791
|
+
return de_CommandError(output, context);
|
|
792
|
+
}
|
|
793
|
+
const contents = smithyClient.map({
|
|
794
|
+
$metadata: deserializeMetadata(output),
|
|
795
|
+
});
|
|
796
|
+
await smithyClient.collectBody(output.body, context);
|
|
797
|
+
return contents;
|
|
798
|
+
};
|
|
799
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
800
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
801
|
+
return de_CommandError(output, context);
|
|
802
|
+
}
|
|
803
|
+
const contents = smithyClient.map({
|
|
804
|
+
$metadata: deserializeMetadata(output),
|
|
805
|
+
});
|
|
806
|
+
await smithyClient.collectBody(output.body, context);
|
|
807
|
+
return contents;
|
|
808
|
+
};
|
|
809
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
810
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
811
|
+
return de_CommandError(output, context);
|
|
812
|
+
}
|
|
813
|
+
const contents = smithyClient.map({
|
|
814
|
+
$metadata: deserializeMetadata(output),
|
|
815
|
+
});
|
|
816
|
+
await smithyClient.collectBody(output.body, context);
|
|
817
|
+
return contents;
|
|
818
|
+
};
|
|
819
|
+
const de_UpdateAppMonitorCommand = async (output, context) => {
|
|
820
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
821
|
+
return de_CommandError(output, context);
|
|
822
|
+
}
|
|
823
|
+
const contents = smithyClient.map({
|
|
824
|
+
$metadata: deserializeMetadata(output),
|
|
825
|
+
});
|
|
826
|
+
await smithyClient.collectBody(output.body, context);
|
|
827
|
+
return contents;
|
|
828
|
+
};
|
|
829
|
+
const de_UpdateRumMetricDefinitionCommand = async (output, context) => {
|
|
830
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
831
|
+
return de_CommandError(output, context);
|
|
832
|
+
}
|
|
833
|
+
const contents = smithyClient.map({
|
|
834
|
+
$metadata: deserializeMetadata(output),
|
|
835
|
+
});
|
|
836
|
+
await smithyClient.collectBody(output.body, context);
|
|
837
|
+
return contents;
|
|
838
|
+
};
|
|
839
|
+
const de_CommandError = async (output, context) => {
|
|
840
|
+
const parsedOutput = {
|
|
841
|
+
...output,
|
|
842
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
843
|
+
};
|
|
844
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
845
|
+
switch (errorCode) {
|
|
846
|
+
case "AccessDeniedException":
|
|
847
|
+
case "com.amazonaws.rum#AccessDeniedException":
|
|
848
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
849
|
+
case "ConflictException":
|
|
850
|
+
case "com.amazonaws.rum#ConflictException":
|
|
851
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
852
|
+
case "InternalServerException":
|
|
853
|
+
case "com.amazonaws.rum#InternalServerException":
|
|
854
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
855
|
+
case "ResourceNotFoundException":
|
|
856
|
+
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
857
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
858
|
+
case "ServiceQuotaExceededException":
|
|
859
|
+
case "com.amazonaws.rum#ServiceQuotaExceededException":
|
|
860
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
861
|
+
case "ThrottlingException":
|
|
862
|
+
case "com.amazonaws.rum#ThrottlingException":
|
|
863
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
864
|
+
case "ValidationException":
|
|
865
|
+
case "com.amazonaws.rum#ValidationException":
|
|
866
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
867
|
+
case "InvalidPolicyRevisionIdException":
|
|
868
|
+
case "com.amazonaws.rum#InvalidPolicyRevisionIdException":
|
|
869
|
+
throw await de_InvalidPolicyRevisionIdExceptionRes(parsedOutput);
|
|
870
|
+
case "PolicyNotFoundException":
|
|
871
|
+
case "com.amazonaws.rum#PolicyNotFoundException":
|
|
872
|
+
throw await de_PolicyNotFoundExceptionRes(parsedOutput);
|
|
873
|
+
case "MalformedPolicyDocumentException":
|
|
874
|
+
case "com.amazonaws.rum#MalformedPolicyDocumentException":
|
|
875
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput);
|
|
876
|
+
case "PolicySizeLimitExceededException":
|
|
877
|
+
case "com.amazonaws.rum#PolicySizeLimitExceededException":
|
|
878
|
+
throw await de_PolicySizeLimitExceededExceptionRes(parsedOutput);
|
|
879
|
+
default:
|
|
880
|
+
const parsedBody = parsedOutput.body;
|
|
881
|
+
return throwDefaultError({
|
|
882
|
+
output,
|
|
883
|
+
parsedBody,
|
|
884
|
+
errorCode,
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
};
|
|
888
|
+
const throwDefaultError = smithyClient.withBaseException(RUMServiceException);
|
|
889
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
890
|
+
const contents = smithyClient.map({});
|
|
891
|
+
const data = parsedOutput.body;
|
|
892
|
+
const doc = smithyClient.take(data, {
|
|
893
|
+
message: smithyClient.expectString,
|
|
894
|
+
});
|
|
895
|
+
Object.assign(contents, doc);
|
|
896
|
+
const exception = new AccessDeniedException({
|
|
897
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
898
|
+
...contents,
|
|
899
|
+
});
|
|
900
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
901
|
+
};
|
|
902
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
903
|
+
const contents = smithyClient.map({});
|
|
904
|
+
const data = parsedOutput.body;
|
|
905
|
+
const doc = smithyClient.take(data, {
|
|
906
|
+
message: smithyClient.expectString,
|
|
907
|
+
resourceName: smithyClient.expectString,
|
|
908
|
+
resourceType: smithyClient.expectString,
|
|
909
|
+
});
|
|
910
|
+
Object.assign(contents, doc);
|
|
911
|
+
const exception = new ConflictException({
|
|
912
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
913
|
+
...contents,
|
|
914
|
+
});
|
|
915
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
916
|
+
};
|
|
917
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
918
|
+
const contents = smithyClient.map({
|
|
919
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
920
|
+
});
|
|
921
|
+
const data = parsedOutput.body;
|
|
922
|
+
const doc = smithyClient.take(data, {
|
|
923
|
+
message: smithyClient.expectString,
|
|
924
|
+
});
|
|
925
|
+
Object.assign(contents, doc);
|
|
926
|
+
const exception = new InternalServerException({
|
|
927
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
928
|
+
...contents,
|
|
929
|
+
});
|
|
930
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
931
|
+
};
|
|
932
|
+
const de_InvalidPolicyRevisionIdExceptionRes = async (parsedOutput, context) => {
|
|
933
|
+
const contents = smithyClient.map({});
|
|
934
|
+
const data = parsedOutput.body;
|
|
935
|
+
const doc = smithyClient.take(data, {
|
|
936
|
+
message: smithyClient.expectString,
|
|
937
|
+
});
|
|
938
|
+
Object.assign(contents, doc);
|
|
939
|
+
const exception = new InvalidPolicyRevisionIdException({
|
|
940
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
941
|
+
...contents,
|
|
942
|
+
});
|
|
943
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
944
|
+
};
|
|
945
|
+
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
946
|
+
const contents = smithyClient.map({});
|
|
947
|
+
const data = parsedOutput.body;
|
|
948
|
+
const doc = smithyClient.take(data, {
|
|
949
|
+
message: smithyClient.expectString,
|
|
950
|
+
});
|
|
951
|
+
Object.assign(contents, doc);
|
|
952
|
+
const exception = new MalformedPolicyDocumentException({
|
|
953
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
954
|
+
...contents,
|
|
955
|
+
});
|
|
956
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
957
|
+
};
|
|
958
|
+
const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
959
|
+
const contents = smithyClient.map({});
|
|
960
|
+
const data = parsedOutput.body;
|
|
961
|
+
const doc = smithyClient.take(data, {
|
|
962
|
+
message: smithyClient.expectString,
|
|
963
|
+
});
|
|
964
|
+
Object.assign(contents, doc);
|
|
965
|
+
const exception = new PolicyNotFoundException({
|
|
966
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
967
|
+
...contents,
|
|
968
|
+
});
|
|
969
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
970
|
+
};
|
|
971
|
+
const de_PolicySizeLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
972
|
+
const contents = smithyClient.map({});
|
|
973
|
+
const data = parsedOutput.body;
|
|
974
|
+
const doc = smithyClient.take(data, {
|
|
975
|
+
message: smithyClient.expectString,
|
|
976
|
+
});
|
|
977
|
+
Object.assign(contents, doc);
|
|
978
|
+
const exception = new PolicySizeLimitExceededException({
|
|
979
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
980
|
+
...contents,
|
|
981
|
+
});
|
|
982
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
983
|
+
};
|
|
984
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
985
|
+
const contents = smithyClient.map({});
|
|
986
|
+
const data = parsedOutput.body;
|
|
987
|
+
const doc = smithyClient.take(data, {
|
|
988
|
+
message: smithyClient.expectString,
|
|
989
|
+
resourceName: smithyClient.expectString,
|
|
990
|
+
resourceType: smithyClient.expectString,
|
|
991
|
+
});
|
|
992
|
+
Object.assign(contents, doc);
|
|
993
|
+
const exception = new ResourceNotFoundException({
|
|
994
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
995
|
+
...contents,
|
|
996
|
+
});
|
|
997
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
998
|
+
};
|
|
999
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1000
|
+
const contents = smithyClient.map({});
|
|
1001
|
+
const data = parsedOutput.body;
|
|
1002
|
+
const doc = smithyClient.take(data, {
|
|
1003
|
+
message: smithyClient.expectString,
|
|
1004
|
+
});
|
|
1005
|
+
Object.assign(contents, doc);
|
|
1006
|
+
const exception = new ServiceQuotaExceededException({
|
|
1007
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1008
|
+
...contents,
|
|
1009
|
+
});
|
|
1010
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1011
|
+
};
|
|
1012
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1013
|
+
const contents = smithyClient.map({
|
|
1014
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
1015
|
+
});
|
|
1016
|
+
const data = parsedOutput.body;
|
|
1017
|
+
const doc = smithyClient.take(data, {
|
|
1018
|
+
message: smithyClient.expectString,
|
|
1019
|
+
quotaCode: smithyClient.expectString,
|
|
1020
|
+
serviceCode: smithyClient.expectString,
|
|
1021
|
+
});
|
|
1022
|
+
Object.assign(contents, doc);
|
|
1023
|
+
const exception = new ThrottlingException({
|
|
1024
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1025
|
+
...contents,
|
|
1026
|
+
});
|
|
1027
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1028
|
+
};
|
|
1029
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1030
|
+
const contents = smithyClient.map({});
|
|
1031
|
+
const data = parsedOutput.body;
|
|
1032
|
+
const doc = smithyClient.take(data, {
|
|
1033
|
+
message: smithyClient.expectString,
|
|
1034
|
+
});
|
|
1035
|
+
Object.assign(contents, doc);
|
|
1036
|
+
const exception = new ValidationException({
|
|
1037
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1038
|
+
...contents,
|
|
1039
|
+
});
|
|
1040
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1041
|
+
};
|
|
1042
|
+
const se_AppMonitorConfiguration = (input, context) => {
|
|
1043
|
+
return smithyClient.take(input, {
|
|
1044
|
+
AllowCookies: [],
|
|
1045
|
+
EnableXRay: [],
|
|
1046
|
+
ExcludedPages: smithyClient._json,
|
|
1047
|
+
FavoritePages: smithyClient._json,
|
|
1048
|
+
GuestRoleArn: [],
|
|
1049
|
+
IdentityPoolId: [],
|
|
1050
|
+
IncludedPages: smithyClient._json,
|
|
1051
|
+
SessionSampleRate: smithyClient.serializeFloat,
|
|
1052
|
+
Telemetries: smithyClient._json,
|
|
1053
|
+
});
|
|
1054
|
+
};
|
|
1055
|
+
const se_RumEvent = (input, context) => {
|
|
1056
|
+
return smithyClient.take(input, {
|
|
1057
|
+
details: smithyClient.LazyJsonString.from,
|
|
1058
|
+
id: [],
|
|
1059
|
+
metadata: smithyClient.LazyJsonString.from,
|
|
1060
|
+
timestamp: (_) => _.getTime() / 1_000,
|
|
1061
|
+
type: [],
|
|
1062
|
+
});
|
|
1063
|
+
};
|
|
1064
|
+
const se_RumEventList = (input, context) => {
|
|
1065
|
+
return input
|
|
1066
|
+
.filter((e) => e != null)
|
|
1067
|
+
.map((entry) => {
|
|
1068
|
+
return se_RumEvent(entry);
|
|
1069
|
+
});
|
|
1070
|
+
};
|
|
1071
|
+
const de_AppMonitor = (output, context) => {
|
|
1072
|
+
return smithyClient.take(output, {
|
|
1073
|
+
AppMonitorConfiguration: (_) => de_AppMonitorConfiguration(_),
|
|
1074
|
+
Created: smithyClient.expectString,
|
|
1075
|
+
CustomEvents: smithyClient._json,
|
|
1076
|
+
DataStorage: smithyClient._json,
|
|
1077
|
+
DeobfuscationConfiguration: smithyClient._json,
|
|
1078
|
+
Domain: smithyClient.expectString,
|
|
1079
|
+
DomainList: smithyClient._json,
|
|
1080
|
+
Id: smithyClient.expectString,
|
|
1081
|
+
LastModified: smithyClient.expectString,
|
|
1082
|
+
Name: smithyClient.expectString,
|
|
1083
|
+
State: smithyClient.expectString,
|
|
1084
|
+
Tags: smithyClient._json,
|
|
1085
|
+
});
|
|
1086
|
+
};
|
|
1087
|
+
const de_AppMonitorConfiguration = (output, context) => {
|
|
1088
|
+
return smithyClient.take(output, {
|
|
1089
|
+
AllowCookies: smithyClient.expectBoolean,
|
|
1090
|
+
EnableXRay: smithyClient.expectBoolean,
|
|
1091
|
+
ExcludedPages: smithyClient._json,
|
|
1092
|
+
FavoritePages: smithyClient._json,
|
|
1093
|
+
GuestRoleArn: smithyClient.expectString,
|
|
1094
|
+
IdentityPoolId: smithyClient.expectString,
|
|
1095
|
+
IncludedPages: smithyClient._json,
|
|
1096
|
+
SessionSampleRate: smithyClient.limitedParseDouble,
|
|
1097
|
+
Telemetries: smithyClient._json,
|
|
1098
|
+
});
|
|
1099
|
+
};
|
|
1100
|
+
const deserializeMetadata = (output) => ({
|
|
1101
|
+
httpStatusCode: output.statusCode,
|
|
1102
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1103
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1104
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1105
|
+
});
|
|
1106
|
+
const _D = "Destination";
|
|
1107
|
+
const _DA = "DestinationArn";
|
|
1108
|
+
const _MDI = "MetricDefinitionIds";
|
|
1109
|
+
const _MR = "MaxResults";
|
|
1110
|
+
const _NT = "NextToken";
|
|
1111
|
+
const _PRI = "PolicyRevisionId";
|
|
1112
|
+
const _TK = "TagKeys";
|
|
1113
|
+
const _d = "destination";
|
|
1114
|
+
const _dA = "destinationArn";
|
|
1115
|
+
const _mDI = "metricDefinitionIds";
|
|
1116
|
+
const _mR = "maxResults";
|
|
1117
|
+
const _nT = "nextToken";
|
|
1118
|
+
const _pRI = "policyRevisionId";
|
|
1119
|
+
const _rAS = "retryAfterSeconds";
|
|
1120
|
+
const _ra = "retry-after";
|
|
1121
|
+
const _tK = "tagKeys";
|
|
1122
|
+
|
|
1123
|
+
class BatchCreateRumMetricDefinitionsCommand extends smithyClient.Command
|
|
1124
|
+
.classBuilder()
|
|
1125
|
+
.ep(commonParams)
|
|
1126
|
+
.m(function (Command, cs, config, o) {
|
|
1127
|
+
return [
|
|
1128
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1129
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1130
|
+
];
|
|
1131
|
+
})
|
|
1132
|
+
.s("RUM", "BatchCreateRumMetricDefinitions", {})
|
|
1133
|
+
.n("RUMClient", "BatchCreateRumMetricDefinitionsCommand")
|
|
1134
|
+
.f(void 0, void 0)
|
|
1135
|
+
.ser(se_BatchCreateRumMetricDefinitionsCommand)
|
|
1136
|
+
.de(de_BatchCreateRumMetricDefinitionsCommand)
|
|
1137
|
+
.build() {
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
class BatchDeleteRumMetricDefinitionsCommand extends smithyClient.Command
|
|
1141
|
+
.classBuilder()
|
|
1142
|
+
.ep(commonParams)
|
|
1143
|
+
.m(function (Command, cs, config, o) {
|
|
1144
|
+
return [
|
|
1145
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1146
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1147
|
+
];
|
|
1148
|
+
})
|
|
1149
|
+
.s("RUM", "BatchDeleteRumMetricDefinitions", {})
|
|
1150
|
+
.n("RUMClient", "BatchDeleteRumMetricDefinitionsCommand")
|
|
1151
|
+
.f(void 0, void 0)
|
|
1152
|
+
.ser(se_BatchDeleteRumMetricDefinitionsCommand)
|
|
1153
|
+
.de(de_BatchDeleteRumMetricDefinitionsCommand)
|
|
1154
|
+
.build() {
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
class BatchGetRumMetricDefinitionsCommand extends smithyClient.Command
|
|
1158
|
+
.classBuilder()
|
|
1159
|
+
.ep(commonParams)
|
|
1160
|
+
.m(function (Command, cs, config, o) {
|
|
1161
|
+
return [
|
|
1162
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1163
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1164
|
+
];
|
|
1165
|
+
})
|
|
1166
|
+
.s("RUM", "BatchGetRumMetricDefinitions", {})
|
|
1167
|
+
.n("RUMClient", "BatchGetRumMetricDefinitionsCommand")
|
|
1168
|
+
.f(void 0, void 0)
|
|
1169
|
+
.ser(se_BatchGetRumMetricDefinitionsCommand)
|
|
1170
|
+
.de(de_BatchGetRumMetricDefinitionsCommand)
|
|
1171
|
+
.build() {
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
class CreateAppMonitorCommand extends smithyClient.Command
|
|
1175
|
+
.classBuilder()
|
|
1176
|
+
.ep(commonParams)
|
|
1177
|
+
.m(function (Command, cs, config, o) {
|
|
1178
|
+
return [
|
|
1179
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1180
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1181
|
+
];
|
|
1182
|
+
})
|
|
1183
|
+
.s("RUM", "CreateAppMonitor", {})
|
|
1184
|
+
.n("RUMClient", "CreateAppMonitorCommand")
|
|
1185
|
+
.f(void 0, void 0)
|
|
1186
|
+
.ser(se_CreateAppMonitorCommand)
|
|
1187
|
+
.de(de_CreateAppMonitorCommand)
|
|
1188
|
+
.build() {
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
class DeleteAppMonitorCommand extends smithyClient.Command
|
|
1192
|
+
.classBuilder()
|
|
1193
|
+
.ep(commonParams)
|
|
1194
|
+
.m(function (Command, cs, config, o) {
|
|
1195
|
+
return [
|
|
1196
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1197
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1198
|
+
];
|
|
1199
|
+
})
|
|
1200
|
+
.s("RUM", "DeleteAppMonitor", {})
|
|
1201
|
+
.n("RUMClient", "DeleteAppMonitorCommand")
|
|
1202
|
+
.f(void 0, void 0)
|
|
1203
|
+
.ser(se_DeleteAppMonitorCommand)
|
|
1204
|
+
.de(de_DeleteAppMonitorCommand)
|
|
1205
|
+
.build() {
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
class DeleteResourcePolicyCommand extends smithyClient.Command
|
|
1209
|
+
.classBuilder()
|
|
1210
|
+
.ep(commonParams)
|
|
1211
|
+
.m(function (Command, cs, config, o) {
|
|
1212
|
+
return [
|
|
1213
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1214
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1215
|
+
];
|
|
1216
|
+
})
|
|
1217
|
+
.s("RUM", "DeleteResourcePolicy", {})
|
|
1218
|
+
.n("RUMClient", "DeleteResourcePolicyCommand")
|
|
1219
|
+
.f(void 0, void 0)
|
|
1220
|
+
.ser(se_DeleteResourcePolicyCommand)
|
|
1221
|
+
.de(de_DeleteResourcePolicyCommand)
|
|
1222
|
+
.build() {
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
class DeleteRumMetricsDestinationCommand extends smithyClient.Command
|
|
1226
|
+
.classBuilder()
|
|
1227
|
+
.ep(commonParams)
|
|
1228
|
+
.m(function (Command, cs, config, o) {
|
|
1229
|
+
return [
|
|
1230
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1231
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1232
|
+
];
|
|
1233
|
+
})
|
|
1234
|
+
.s("RUM", "DeleteRumMetricsDestination", {})
|
|
1235
|
+
.n("RUMClient", "DeleteRumMetricsDestinationCommand")
|
|
1236
|
+
.f(void 0, void 0)
|
|
1237
|
+
.ser(se_DeleteRumMetricsDestinationCommand)
|
|
1238
|
+
.de(de_DeleteRumMetricsDestinationCommand)
|
|
1239
|
+
.build() {
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
class GetAppMonitorCommand extends smithyClient.Command
|
|
1243
|
+
.classBuilder()
|
|
1244
|
+
.ep(commonParams)
|
|
1245
|
+
.m(function (Command, cs, config, o) {
|
|
1246
|
+
return [
|
|
1247
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1248
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1249
|
+
];
|
|
1250
|
+
})
|
|
1251
|
+
.s("RUM", "GetAppMonitor", {})
|
|
1252
|
+
.n("RUMClient", "GetAppMonitorCommand")
|
|
1253
|
+
.f(void 0, void 0)
|
|
1254
|
+
.ser(se_GetAppMonitorCommand)
|
|
1255
|
+
.de(de_GetAppMonitorCommand)
|
|
1256
|
+
.build() {
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
class GetAppMonitorDataCommand extends smithyClient.Command
|
|
1260
|
+
.classBuilder()
|
|
1261
|
+
.ep(commonParams)
|
|
1262
|
+
.m(function (Command, cs, config, o) {
|
|
1263
|
+
return [
|
|
1264
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1265
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1266
|
+
];
|
|
1267
|
+
})
|
|
1268
|
+
.s("RUM", "GetAppMonitorData", {})
|
|
1269
|
+
.n("RUMClient", "GetAppMonitorDataCommand")
|
|
1270
|
+
.f(void 0, void 0)
|
|
1271
|
+
.ser(se_GetAppMonitorDataCommand)
|
|
1272
|
+
.de(de_GetAppMonitorDataCommand)
|
|
1273
|
+
.build() {
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
class GetResourcePolicyCommand extends smithyClient.Command
|
|
1277
|
+
.classBuilder()
|
|
1278
|
+
.ep(commonParams)
|
|
1279
|
+
.m(function (Command, cs, config, o) {
|
|
1280
|
+
return [
|
|
1281
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1282
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1283
|
+
];
|
|
1284
|
+
})
|
|
1285
|
+
.s("RUM", "GetResourcePolicy", {})
|
|
1286
|
+
.n("RUMClient", "GetResourcePolicyCommand")
|
|
1287
|
+
.f(void 0, void 0)
|
|
1288
|
+
.ser(se_GetResourcePolicyCommand)
|
|
1289
|
+
.de(de_GetResourcePolicyCommand)
|
|
1290
|
+
.build() {
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
class ListAppMonitorsCommand extends smithyClient.Command
|
|
1294
|
+
.classBuilder()
|
|
1295
|
+
.ep(commonParams)
|
|
1296
|
+
.m(function (Command, cs, config, o) {
|
|
1297
|
+
return [
|
|
1298
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1299
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1300
|
+
];
|
|
1301
|
+
})
|
|
1302
|
+
.s("RUM", "ListAppMonitors", {})
|
|
1303
|
+
.n("RUMClient", "ListAppMonitorsCommand")
|
|
1304
|
+
.f(void 0, void 0)
|
|
1305
|
+
.ser(se_ListAppMonitorsCommand)
|
|
1306
|
+
.de(de_ListAppMonitorsCommand)
|
|
1307
|
+
.build() {
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
class ListRumMetricsDestinationsCommand extends smithyClient.Command
|
|
1311
|
+
.classBuilder()
|
|
1312
|
+
.ep(commonParams)
|
|
1313
|
+
.m(function (Command, cs, config, o) {
|
|
1314
|
+
return [
|
|
1315
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1316
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1317
|
+
];
|
|
1318
|
+
})
|
|
1319
|
+
.s("RUM", "ListRumMetricsDestinations", {})
|
|
1320
|
+
.n("RUMClient", "ListRumMetricsDestinationsCommand")
|
|
1321
|
+
.f(void 0, void 0)
|
|
1322
|
+
.ser(se_ListRumMetricsDestinationsCommand)
|
|
1323
|
+
.de(de_ListRumMetricsDestinationsCommand)
|
|
1324
|
+
.build() {
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1328
|
+
.classBuilder()
|
|
1329
|
+
.ep(commonParams)
|
|
1330
|
+
.m(function (Command, cs, config, o) {
|
|
1331
|
+
return [
|
|
1332
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1333
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1334
|
+
];
|
|
1335
|
+
})
|
|
1336
|
+
.s("RUM", "ListTagsForResource", {})
|
|
1337
|
+
.n("RUMClient", "ListTagsForResourceCommand")
|
|
1338
|
+
.f(void 0, void 0)
|
|
1339
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1340
|
+
.de(de_ListTagsForResourceCommand)
|
|
1341
|
+
.build() {
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
class PutResourcePolicyCommand extends smithyClient.Command
|
|
1345
|
+
.classBuilder()
|
|
1346
|
+
.ep(commonParams)
|
|
1347
|
+
.m(function (Command, cs, config, o) {
|
|
1348
|
+
return [
|
|
1349
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1350
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1351
|
+
];
|
|
1352
|
+
})
|
|
1353
|
+
.s("RUM", "PutResourcePolicy", {})
|
|
1354
|
+
.n("RUMClient", "PutResourcePolicyCommand")
|
|
1355
|
+
.f(void 0, void 0)
|
|
1356
|
+
.ser(se_PutResourcePolicyCommand)
|
|
1357
|
+
.de(de_PutResourcePolicyCommand)
|
|
1358
|
+
.build() {
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
class PutRumEventsCommand extends smithyClient.Command
|
|
1362
|
+
.classBuilder()
|
|
1363
|
+
.ep(commonParams)
|
|
1364
|
+
.m(function (Command, cs, config, o) {
|
|
1365
|
+
return [
|
|
1366
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1367
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1368
|
+
];
|
|
1369
|
+
})
|
|
1370
|
+
.s("RUM", "PutRumEvents", {})
|
|
1371
|
+
.n("RUMClient", "PutRumEventsCommand")
|
|
1372
|
+
.f(void 0, void 0)
|
|
1373
|
+
.ser(se_PutRumEventsCommand)
|
|
1374
|
+
.de(de_PutRumEventsCommand)
|
|
1375
|
+
.build() {
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
class PutRumMetricsDestinationCommand extends smithyClient.Command
|
|
1379
|
+
.classBuilder()
|
|
1380
|
+
.ep(commonParams)
|
|
1381
|
+
.m(function (Command, cs, config, o) {
|
|
1382
|
+
return [
|
|
1383
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1384
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1385
|
+
];
|
|
1386
|
+
})
|
|
1387
|
+
.s("RUM", "PutRumMetricsDestination", {})
|
|
1388
|
+
.n("RUMClient", "PutRumMetricsDestinationCommand")
|
|
1389
|
+
.f(void 0, void 0)
|
|
1390
|
+
.ser(se_PutRumMetricsDestinationCommand)
|
|
1391
|
+
.de(de_PutRumMetricsDestinationCommand)
|
|
1392
|
+
.build() {
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1396
|
+
.classBuilder()
|
|
1397
|
+
.ep(commonParams)
|
|
1398
|
+
.m(function (Command, cs, config, o) {
|
|
1399
|
+
return [
|
|
1400
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1401
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1402
|
+
];
|
|
1403
|
+
})
|
|
1404
|
+
.s("RUM", "TagResource", {})
|
|
1405
|
+
.n("RUMClient", "TagResourceCommand")
|
|
1406
|
+
.f(void 0, void 0)
|
|
1407
|
+
.ser(se_TagResourceCommand)
|
|
1408
|
+
.de(de_TagResourceCommand)
|
|
1409
|
+
.build() {
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1413
|
+
.classBuilder()
|
|
1414
|
+
.ep(commonParams)
|
|
1415
|
+
.m(function (Command, cs, config, o) {
|
|
1416
|
+
return [
|
|
1417
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1418
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1419
|
+
];
|
|
1420
|
+
})
|
|
1421
|
+
.s("RUM", "UntagResource", {})
|
|
1422
|
+
.n("RUMClient", "UntagResourceCommand")
|
|
1423
|
+
.f(void 0, void 0)
|
|
1424
|
+
.ser(se_UntagResourceCommand)
|
|
1425
|
+
.de(de_UntagResourceCommand)
|
|
1426
|
+
.build() {
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
class UpdateAppMonitorCommand extends smithyClient.Command
|
|
1430
|
+
.classBuilder()
|
|
1431
|
+
.ep(commonParams)
|
|
1432
|
+
.m(function (Command, cs, config, o) {
|
|
1433
|
+
return [
|
|
1434
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1435
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1436
|
+
];
|
|
1437
|
+
})
|
|
1438
|
+
.s("RUM", "UpdateAppMonitor", {})
|
|
1439
|
+
.n("RUMClient", "UpdateAppMonitorCommand")
|
|
1440
|
+
.f(void 0, void 0)
|
|
1441
|
+
.ser(se_UpdateAppMonitorCommand)
|
|
1442
|
+
.de(de_UpdateAppMonitorCommand)
|
|
1443
|
+
.build() {
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
class UpdateRumMetricDefinitionCommand extends smithyClient.Command
|
|
1447
|
+
.classBuilder()
|
|
1448
|
+
.ep(commonParams)
|
|
1449
|
+
.m(function (Command, cs, config, o) {
|
|
1450
|
+
return [
|
|
1451
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1452
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1453
|
+
];
|
|
1454
|
+
})
|
|
1455
|
+
.s("RUM", "UpdateRumMetricDefinition", {})
|
|
1456
|
+
.n("RUMClient", "UpdateRumMetricDefinitionCommand")
|
|
1457
|
+
.f(void 0, void 0)
|
|
1458
|
+
.ser(se_UpdateRumMetricDefinitionCommand)
|
|
1459
|
+
.de(de_UpdateRumMetricDefinitionCommand)
|
|
1460
|
+
.build() {
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
const commands = {
|
|
1464
|
+
BatchCreateRumMetricDefinitionsCommand,
|
|
1465
|
+
BatchDeleteRumMetricDefinitionsCommand,
|
|
1466
|
+
BatchGetRumMetricDefinitionsCommand,
|
|
1467
|
+
CreateAppMonitorCommand,
|
|
1468
|
+
DeleteAppMonitorCommand,
|
|
1469
|
+
DeleteResourcePolicyCommand,
|
|
1470
|
+
DeleteRumMetricsDestinationCommand,
|
|
1471
|
+
GetAppMonitorCommand,
|
|
1472
|
+
GetAppMonitorDataCommand,
|
|
1473
|
+
GetResourcePolicyCommand,
|
|
1474
|
+
ListAppMonitorsCommand,
|
|
1475
|
+
ListRumMetricsDestinationsCommand,
|
|
1476
|
+
ListTagsForResourceCommand,
|
|
1477
|
+
PutResourcePolicyCommand,
|
|
1478
|
+
PutRumEventsCommand,
|
|
1479
|
+
PutRumMetricsDestinationCommand,
|
|
1480
|
+
TagResourceCommand,
|
|
1481
|
+
UntagResourceCommand,
|
|
1482
|
+
UpdateAppMonitorCommand,
|
|
1483
|
+
UpdateRumMetricDefinitionCommand,
|
|
1484
|
+
};
|
|
1485
|
+
class RUM extends RUMClient {
|
|
1486
|
+
}
|
|
1487
|
+
smithyClient.createAggregatedClient(commands, RUM);
|
|
1665
1488
|
|
|
1666
|
-
|
|
1667
|
-
var commands = {
|
|
1668
|
-
BatchCreateRumMetricDefinitionsCommand,
|
|
1669
|
-
BatchDeleteRumMetricDefinitionsCommand,
|
|
1670
|
-
BatchGetRumMetricDefinitionsCommand,
|
|
1671
|
-
CreateAppMonitorCommand,
|
|
1672
|
-
DeleteAppMonitorCommand,
|
|
1673
|
-
DeleteResourcePolicyCommand,
|
|
1674
|
-
DeleteRumMetricsDestinationCommand,
|
|
1675
|
-
GetAppMonitorCommand,
|
|
1676
|
-
GetAppMonitorDataCommand,
|
|
1677
|
-
GetResourcePolicyCommand,
|
|
1678
|
-
ListAppMonitorsCommand,
|
|
1679
|
-
ListRumMetricsDestinationsCommand,
|
|
1680
|
-
ListTagsForResourceCommand,
|
|
1681
|
-
PutResourcePolicyCommand,
|
|
1682
|
-
PutRumEventsCommand,
|
|
1683
|
-
PutRumMetricsDestinationCommand,
|
|
1684
|
-
TagResourceCommand,
|
|
1685
|
-
UntagResourceCommand,
|
|
1686
|
-
UpdateAppMonitorCommand,
|
|
1687
|
-
UpdateRumMetricDefinitionCommand
|
|
1688
|
-
};
|
|
1689
|
-
var RUM = class extends RUMClient {
|
|
1690
|
-
static {
|
|
1691
|
-
__name(this, "RUM");
|
|
1692
|
-
}
|
|
1693
|
-
};
|
|
1694
|
-
(0, import_smithy_client.createAggregatedClient)(commands, RUM);
|
|
1695
|
-
|
|
1696
|
-
// src/pagination/BatchGetRumMetricDefinitionsPaginator.ts
|
|
1697
|
-
|
|
1698
|
-
var paginateBatchGetRumMetricDefinitions = (0, import_core.createPaginator)(RUMClient, BatchGetRumMetricDefinitionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1699
|
-
|
|
1700
|
-
// src/pagination/GetAppMonitorDataPaginator.ts
|
|
1701
|
-
|
|
1702
|
-
var paginateGetAppMonitorData = (0, import_core.createPaginator)(RUMClient, GetAppMonitorDataCommand, "NextToken", "NextToken", "MaxResults");
|
|
1703
|
-
|
|
1704
|
-
// src/pagination/ListAppMonitorsPaginator.ts
|
|
1489
|
+
const paginateBatchGetRumMetricDefinitions = core.createPaginator(RUMClient, BatchGetRumMetricDefinitionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1705
1490
|
|
|
1706
|
-
|
|
1491
|
+
const paginateGetAppMonitorData = core.createPaginator(RUMClient, GetAppMonitorDataCommand, "NextToken", "NextToken", "MaxResults");
|
|
1707
1492
|
|
|
1708
|
-
|
|
1493
|
+
const paginateListAppMonitors = core.createPaginator(RUMClient, ListAppMonitorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1709
1494
|
|
|
1710
|
-
|
|
1711
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1495
|
+
const paginateListRumMetricsDestinations = core.createPaginator(RUMClient, ListRumMetricsDestinationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1712
1496
|
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
RUMClient,
|
|
1717
|
-
RUM,
|
|
1718
|
-
$Command,
|
|
1719
|
-
BatchCreateRumMetricDefinitionsCommand,
|
|
1720
|
-
BatchDeleteRumMetricDefinitionsCommand,
|
|
1721
|
-
BatchGetRumMetricDefinitionsCommand,
|
|
1722
|
-
CreateAppMonitorCommand,
|
|
1723
|
-
DeleteAppMonitorCommand,
|
|
1724
|
-
DeleteResourcePolicyCommand,
|
|
1725
|
-
DeleteRumMetricsDestinationCommand,
|
|
1726
|
-
GetAppMonitorCommand,
|
|
1727
|
-
GetAppMonitorDataCommand,
|
|
1728
|
-
GetResourcePolicyCommand,
|
|
1729
|
-
ListAppMonitorsCommand,
|
|
1730
|
-
ListRumMetricsDestinationsCommand,
|
|
1731
|
-
ListTagsForResourceCommand,
|
|
1732
|
-
PutResourcePolicyCommand,
|
|
1733
|
-
PutRumEventsCommand,
|
|
1734
|
-
PutRumMetricsDestinationCommand,
|
|
1735
|
-
TagResourceCommand,
|
|
1736
|
-
UntagResourceCommand,
|
|
1737
|
-
UpdateAppMonitorCommand,
|
|
1738
|
-
UpdateRumMetricDefinitionCommand,
|
|
1739
|
-
paginateBatchGetRumMetricDefinitions,
|
|
1740
|
-
paginateGetAppMonitorData,
|
|
1741
|
-
paginateListAppMonitors,
|
|
1742
|
-
paginateListRumMetricsDestinations,
|
|
1743
|
-
AccessDeniedException,
|
|
1744
|
-
Telemetry,
|
|
1745
|
-
CustomEventsStatus,
|
|
1746
|
-
DeobfuscationStatus,
|
|
1747
|
-
StateEnum,
|
|
1748
|
-
MetricDestination,
|
|
1749
|
-
ConflictException,
|
|
1750
|
-
InternalServerException,
|
|
1751
|
-
ResourceNotFoundException,
|
|
1752
|
-
ServiceQuotaExceededException,
|
|
1753
|
-
ThrottlingException,
|
|
1754
|
-
ValidationException,
|
|
1755
|
-
InvalidPolicyRevisionIdException,
|
|
1756
|
-
PolicyNotFoundException,
|
|
1757
|
-
MalformedPolicyDocumentException,
|
|
1758
|
-
PolicySizeLimitExceededException
|
|
1497
|
+
Object.defineProperty(exports, "$Command", {
|
|
1498
|
+
enumerable: true,
|
|
1499
|
+
get: function () { return smithyClient.Command; }
|
|
1759
1500
|
});
|
|
1760
|
-
|
|
1501
|
+
Object.defineProperty(exports, "__Client", {
|
|
1502
|
+
enumerable: true,
|
|
1503
|
+
get: function () { return smithyClient.Client; }
|
|
1504
|
+
});
|
|
1505
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1506
|
+
exports.BatchCreateRumMetricDefinitionsCommand = BatchCreateRumMetricDefinitionsCommand;
|
|
1507
|
+
exports.BatchDeleteRumMetricDefinitionsCommand = BatchDeleteRumMetricDefinitionsCommand;
|
|
1508
|
+
exports.BatchGetRumMetricDefinitionsCommand = BatchGetRumMetricDefinitionsCommand;
|
|
1509
|
+
exports.ConflictException = ConflictException;
|
|
1510
|
+
exports.CreateAppMonitorCommand = CreateAppMonitorCommand;
|
|
1511
|
+
exports.CustomEventsStatus = CustomEventsStatus;
|
|
1512
|
+
exports.DeleteAppMonitorCommand = DeleteAppMonitorCommand;
|
|
1513
|
+
exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
|
|
1514
|
+
exports.DeleteRumMetricsDestinationCommand = DeleteRumMetricsDestinationCommand;
|
|
1515
|
+
exports.DeobfuscationStatus = DeobfuscationStatus;
|
|
1516
|
+
exports.GetAppMonitorCommand = GetAppMonitorCommand;
|
|
1517
|
+
exports.GetAppMonitorDataCommand = GetAppMonitorDataCommand;
|
|
1518
|
+
exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
|
|
1519
|
+
exports.InternalServerException = InternalServerException;
|
|
1520
|
+
exports.InvalidPolicyRevisionIdException = InvalidPolicyRevisionIdException;
|
|
1521
|
+
exports.ListAppMonitorsCommand = ListAppMonitorsCommand;
|
|
1522
|
+
exports.ListRumMetricsDestinationsCommand = ListRumMetricsDestinationsCommand;
|
|
1523
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1524
|
+
exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
|
|
1525
|
+
exports.MetricDestination = MetricDestination;
|
|
1526
|
+
exports.PolicyNotFoundException = PolicyNotFoundException;
|
|
1527
|
+
exports.PolicySizeLimitExceededException = PolicySizeLimitExceededException;
|
|
1528
|
+
exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
|
|
1529
|
+
exports.PutRumEventsCommand = PutRumEventsCommand;
|
|
1530
|
+
exports.PutRumMetricsDestinationCommand = PutRumMetricsDestinationCommand;
|
|
1531
|
+
exports.RUM = RUM;
|
|
1532
|
+
exports.RUMClient = RUMClient;
|
|
1533
|
+
exports.RUMServiceException = RUMServiceException;
|
|
1534
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1535
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1536
|
+
exports.StateEnum = StateEnum;
|
|
1537
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1538
|
+
exports.Telemetry = Telemetry;
|
|
1539
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1540
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1541
|
+
exports.UpdateAppMonitorCommand = UpdateAppMonitorCommand;
|
|
1542
|
+
exports.UpdateRumMetricDefinitionCommand = UpdateRumMetricDefinitionCommand;
|
|
1543
|
+
exports.ValidationException = ValidationException;
|
|
1544
|
+
exports.paginateBatchGetRumMetricDefinitions = paginateBatchGetRumMetricDefinitions;
|
|
1545
|
+
exports.paginateGetAppMonitorData = paginateGetAppMonitorData;
|
|
1546
|
+
exports.paginateListAppMonitors = paginateListAppMonitors;
|
|
1547
|
+
exports.paginateListRumMetricsDestinations = paginateListRumMetricsDestinations;
|