@aws-sdk/client-pi 3.901.0 → 3.907.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1013 -1124
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,1169 +1,1058 @@
|
|
|
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
|
-
FeatureStatus: () => FeatureStatus,
|
|
33
|
-
FineGrainedAction: () => FineGrainedAction,
|
|
34
|
-
GetDimensionKeyDetailsCommand: () => GetDimensionKeyDetailsCommand,
|
|
35
|
-
GetPerformanceAnalysisReportCommand: () => GetPerformanceAnalysisReportCommand,
|
|
36
|
-
GetPerformanceAnalysisReportResponseFilterSensitiveLog: () => GetPerformanceAnalysisReportResponseFilterSensitiveLog,
|
|
37
|
-
GetResourceMetadataCommand: () => GetResourceMetadataCommand,
|
|
38
|
-
GetResourceMetricsCommand: () => GetResourceMetricsCommand,
|
|
39
|
-
InsightFilterSensitiveLog: () => InsightFilterSensitiveLog,
|
|
40
|
-
InternalServiceError: () => InternalServiceError,
|
|
41
|
-
InvalidArgumentException: () => InvalidArgumentException,
|
|
42
|
-
ListAvailableResourceDimensionsCommand: () => ListAvailableResourceDimensionsCommand,
|
|
43
|
-
ListAvailableResourceMetricsCommand: () => ListAvailableResourceMetricsCommand,
|
|
44
|
-
ListPerformanceAnalysisReportsCommand: () => ListPerformanceAnalysisReportsCommand,
|
|
45
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
46
|
-
NotAuthorizedException: () => NotAuthorizedException,
|
|
47
|
-
PI: () => PI,
|
|
48
|
-
PIClient: () => PIClient,
|
|
49
|
-
PIServiceException: () => PIServiceException,
|
|
50
|
-
PeriodAlignment: () => PeriodAlignment,
|
|
51
|
-
RecommendationFilterSensitiveLog: () => RecommendationFilterSensitiveLog,
|
|
52
|
-
ServiceType: () => ServiceType,
|
|
53
|
-
Severity: () => Severity,
|
|
54
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
55
|
-
TextFormat: () => TextFormat,
|
|
56
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
57
|
-
__Client: () => import_smithy_client.Client,
|
|
58
|
-
paginateDescribeDimensionKeys: () => paginateDescribeDimensionKeys,
|
|
59
|
-
paginateGetResourceMetrics: () => paginateGetResourceMetrics,
|
|
60
|
-
paginateListAvailableResourceDimensions: () => paginateListAvailableResourceDimensions,
|
|
61
|
-
paginateListAvailableResourceMetrics: () => paginateListAvailableResourceMetrics,
|
|
62
|
-
paginateListPerformanceAnalysisReports: () => paginateListPerformanceAnalysisReports
|
|
63
|
-
});
|
|
64
|
-
module.exports = __toCommonJS(index_exports);
|
|
65
|
-
|
|
66
|
-
// src/PIClient.ts
|
|
67
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
68
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
69
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
70
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
71
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
72
|
-
var import_core = require("@smithy/core");
|
|
73
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
74
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
75
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
76
|
-
|
|
77
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
78
|
-
|
|
79
|
-
// src/endpoint/EndpointParameters.ts
|
|
80
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
81
|
-
return Object.assign(options, {
|
|
82
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
83
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
84
|
-
defaultSigningName: "pi"
|
|
85
|
-
});
|
|
86
|
-
}, "resolveClientEndpointParameters");
|
|
87
|
-
var commonParams = {
|
|
88
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
89
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
90
|
-
Region: { type: "builtInParams", name: "region" },
|
|
91
|
-
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: "pi",
|
|
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" },
|
|
92
32
|
};
|
|
93
33
|
|
|
94
|
-
|
|
95
|
-
|
|
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
|
+
};
|
|
96
72
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
+
};
|
|
101
78
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
79
|
+
class PIClient 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.defaultPIHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
107
|
+
}
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
130
110
|
}
|
|
131
|
-
|
|
132
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
133
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
134
|
-
return {
|
|
135
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
136
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
137
|
-
credentials: config.credentials()
|
|
138
|
-
};
|
|
139
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
111
|
+
}
|
|
140
112
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
148
|
-
);
|
|
149
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
150
|
-
return Object.assign(
|
|
151
|
-
runtimeConfig,
|
|
152
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
153
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
154
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
155
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
156
|
-
);
|
|
157
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class PIServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, PIServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
158
119
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
static {
|
|
162
|
-
__name(this, "PIClient");
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* The resolved configuration of PIClient class. This is resolved and normalized from the {@link PIClientConfig | constructor configuration interface}.
|
|
166
|
-
*/
|
|
167
|
-
config;
|
|
168
|
-
constructor(...[configuration]) {
|
|
169
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
170
|
-
super(_config_0);
|
|
171
|
-
this.initConfig = _config_0;
|
|
172
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
173
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
174
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
175
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
176
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
177
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
178
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
179
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
180
|
-
this.config = _config_8;
|
|
181
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
182
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
183
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
184
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
185
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
186
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
187
|
-
this.middlewareStack.use(
|
|
188
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
189
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultPIHttpAuthSchemeParametersProvider,
|
|
190
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
191
|
-
"aws.auth#sigv4": config.credentials
|
|
192
|
-
}), "identityProviderConfigProvider")
|
|
193
|
-
})
|
|
194
|
-
);
|
|
195
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
199
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
200
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
201
|
-
*/
|
|
202
|
-
destroy() {
|
|
203
|
-
super.destroy();
|
|
204
|
-
}
|
|
120
|
+
const AcceptLanguage = {
|
|
121
|
+
EN_US: "EN_US",
|
|
205
122
|
};
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
123
|
+
const ContextType = {
|
|
124
|
+
CAUSAL: "CAUSAL",
|
|
125
|
+
CONTEXTUAL: "CONTEXTUAL",
|
|
126
|
+
};
|
|
127
|
+
const Severity = {
|
|
128
|
+
HIGH: "HIGH",
|
|
129
|
+
LOW: "LOW",
|
|
130
|
+
MEDIUM: "MEDIUM",
|
|
131
|
+
};
|
|
132
|
+
const ServiceType = {
|
|
133
|
+
DOCDB: "DOCDB",
|
|
134
|
+
RDS: "RDS",
|
|
135
|
+
};
|
|
136
|
+
const AnalysisStatus = {
|
|
137
|
+
FAILED: "FAILED",
|
|
138
|
+
RUNNING: "RUNNING",
|
|
139
|
+
SUCCEEDED: "SUCCEEDED",
|
|
140
|
+
};
|
|
141
|
+
const FineGrainedAction = {
|
|
142
|
+
DESCRIBE_DIMENSION_KEYS: "DescribeDimensionKeys",
|
|
143
|
+
GET_DIMENSION_KEY_DETAILS: "GetDimensionKeyDetails",
|
|
144
|
+
GET_RESOURCE_METRICS: "GetResourceMetrics",
|
|
145
|
+
};
|
|
146
|
+
class InternalServiceError extends PIServiceException {
|
|
147
|
+
name = "InternalServiceError";
|
|
148
|
+
$fault = "server";
|
|
149
|
+
Message;
|
|
150
|
+
constructor(opts) {
|
|
151
|
+
super({
|
|
152
|
+
name: "InternalServiceError",
|
|
153
|
+
$fault: "server",
|
|
154
|
+
...opts,
|
|
155
|
+
});
|
|
156
|
+
Object.setPrototypeOf(this, InternalServiceError.prototype);
|
|
157
|
+
this.Message = opts.Message;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
class InvalidArgumentException extends PIServiceException {
|
|
161
|
+
name = "InvalidArgumentException";
|
|
162
|
+
$fault = "client";
|
|
163
|
+
Message;
|
|
164
|
+
constructor(opts) {
|
|
165
|
+
super({
|
|
166
|
+
name: "InvalidArgumentException",
|
|
167
|
+
$fault: "client",
|
|
168
|
+
...opts,
|
|
169
|
+
});
|
|
170
|
+
Object.setPrototypeOf(this, InvalidArgumentException.prototype);
|
|
171
|
+
this.Message = opts.Message;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
class NotAuthorizedException extends PIServiceException {
|
|
175
|
+
name = "NotAuthorizedException";
|
|
176
|
+
$fault = "client";
|
|
177
|
+
Message;
|
|
178
|
+
constructor(opts) {
|
|
179
|
+
super({
|
|
180
|
+
name: "NotAuthorizedException",
|
|
181
|
+
$fault: "client",
|
|
182
|
+
...opts,
|
|
183
|
+
});
|
|
184
|
+
Object.setPrototypeOf(this, NotAuthorizedException.prototype);
|
|
185
|
+
this.Message = opts.Message;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
const DetailStatus = {
|
|
189
|
+
AVAILABLE: "AVAILABLE",
|
|
190
|
+
PROCESSING: "PROCESSING",
|
|
191
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
192
|
+
};
|
|
193
|
+
const FeatureStatus = {
|
|
194
|
+
DISABLED: "DISABLED",
|
|
195
|
+
DISABLED_PENDING_REBOOT: "DISABLED_PENDING_REBOOT",
|
|
196
|
+
ENABLED: "ENABLED",
|
|
197
|
+
ENABLED_PENDING_REBOOT: "ENABLED_PENDING_REBOOT",
|
|
198
|
+
UNKNOWN: "UNKNOWN",
|
|
199
|
+
UNSUPPORTED: "UNSUPPORTED",
|
|
200
|
+
};
|
|
201
|
+
const TextFormat = {
|
|
202
|
+
MARKDOWN: "MARKDOWN",
|
|
203
|
+
PLAIN_TEXT: "PLAIN_TEXT",
|
|
236
204
|
};
|
|
205
|
+
const PeriodAlignment = {
|
|
206
|
+
END_TIME: "END_TIME",
|
|
207
|
+
START_TIME: "START_TIME",
|
|
208
|
+
};
|
|
209
|
+
const RecommendationFilterSensitiveLog = (obj) => ({
|
|
210
|
+
...obj,
|
|
211
|
+
...(obj.RecommendationDescription && { RecommendationDescription: smithyClient.SENSITIVE_STRING }),
|
|
212
|
+
});
|
|
213
|
+
const InsightFilterSensitiveLog = (obj) => ({
|
|
214
|
+
...obj,
|
|
215
|
+
...(obj.SupportingInsights && {
|
|
216
|
+
SupportingInsights: obj.SupportingInsights.map((item) => InsightFilterSensitiveLog(item)),
|
|
217
|
+
}),
|
|
218
|
+
...(obj.Description && { Description: smithyClient.SENSITIVE_STRING }),
|
|
219
|
+
...(obj.Recommendations && {
|
|
220
|
+
Recommendations: obj.Recommendations.map((item) => RecommendationFilterSensitiveLog(item)),
|
|
221
|
+
}),
|
|
222
|
+
});
|
|
223
|
+
const AnalysisReportFilterSensitiveLog = (obj) => ({
|
|
224
|
+
...obj,
|
|
225
|
+
...(obj.Insights && { Insights: obj.Insights.map((item) => InsightFilterSensitiveLog(item)) }),
|
|
226
|
+
});
|
|
227
|
+
const GetPerformanceAnalysisReportResponseFilterSensitiveLog = (obj) => ({
|
|
228
|
+
...obj,
|
|
229
|
+
...(obj.AnalysisReport && { AnalysisReport: AnalysisReportFilterSensitiveLog(obj.AnalysisReport) }),
|
|
230
|
+
});
|
|
237
231
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
232
|
+
const se_CreatePerformanceAnalysisReportCommand = async (input, context) => {
|
|
233
|
+
const headers = sharedHeaders("CreatePerformanceAnalysisReport");
|
|
234
|
+
let body;
|
|
235
|
+
body = JSON.stringify(se_CreatePerformanceAnalysisReportRequest(input));
|
|
236
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
|
+
};
|
|
238
|
+
const se_DeletePerformanceAnalysisReportCommand = async (input, context) => {
|
|
239
|
+
const headers = sharedHeaders("DeletePerformanceAnalysisReport");
|
|
240
|
+
let body;
|
|
241
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
242
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
243
|
+
};
|
|
244
|
+
const se_DescribeDimensionKeysCommand = async (input, context) => {
|
|
245
|
+
const headers = sharedHeaders("DescribeDimensionKeys");
|
|
246
|
+
let body;
|
|
247
|
+
body = JSON.stringify(se_DescribeDimensionKeysRequest(input));
|
|
248
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
249
|
+
};
|
|
250
|
+
const se_GetDimensionKeyDetailsCommand = async (input, context) => {
|
|
251
|
+
const headers = sharedHeaders("GetDimensionKeyDetails");
|
|
252
|
+
let body;
|
|
253
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
254
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
255
|
+
};
|
|
256
|
+
const se_GetPerformanceAnalysisReportCommand = async (input, context) => {
|
|
257
|
+
const headers = sharedHeaders("GetPerformanceAnalysisReport");
|
|
258
|
+
let body;
|
|
259
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
260
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
|
+
};
|
|
262
|
+
const se_GetResourceMetadataCommand = async (input, context) => {
|
|
263
|
+
const headers = sharedHeaders("GetResourceMetadata");
|
|
264
|
+
let body;
|
|
265
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
266
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
|
+
};
|
|
268
|
+
const se_GetResourceMetricsCommand = async (input, context) => {
|
|
269
|
+
const headers = sharedHeaders("GetResourceMetrics");
|
|
270
|
+
let body;
|
|
271
|
+
body = JSON.stringify(se_GetResourceMetricsRequest(input));
|
|
272
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
273
|
+
};
|
|
274
|
+
const se_ListAvailableResourceDimensionsCommand = async (input, context) => {
|
|
275
|
+
const headers = sharedHeaders("ListAvailableResourceDimensions");
|
|
276
|
+
let body;
|
|
277
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
278
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
279
|
+
};
|
|
280
|
+
const se_ListAvailableResourceMetricsCommand = async (input, context) => {
|
|
281
|
+
const headers = sharedHeaders("ListAvailableResourceMetrics");
|
|
282
|
+
let body;
|
|
283
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
284
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
285
|
+
};
|
|
286
|
+
const se_ListPerformanceAnalysisReportsCommand = async (input, context) => {
|
|
287
|
+
const headers = sharedHeaders("ListPerformanceAnalysisReports");
|
|
288
|
+
let body;
|
|
289
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
290
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
291
|
+
};
|
|
292
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
293
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
294
|
+
let body;
|
|
295
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
296
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
|
+
};
|
|
298
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
299
|
+
const headers = sharedHeaders("TagResource");
|
|
300
|
+
let body;
|
|
301
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
302
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
|
+
};
|
|
304
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
305
|
+
const headers = sharedHeaders("UntagResource");
|
|
306
|
+
let body;
|
|
307
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
308
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
309
|
+
};
|
|
310
|
+
const de_CreatePerformanceAnalysisReportCommand = async (output, context) => {
|
|
311
|
+
if (output.statusCode >= 300) {
|
|
312
|
+
return de_CommandError(output, context);
|
|
313
|
+
}
|
|
314
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
315
|
+
let contents = {};
|
|
316
|
+
contents = smithyClient._json(data);
|
|
317
|
+
const response = {
|
|
318
|
+
$metadata: deserializeMetadata(output),
|
|
319
|
+
...contents,
|
|
320
|
+
};
|
|
321
|
+
return response;
|
|
322
|
+
};
|
|
323
|
+
const de_DeletePerformanceAnalysisReportCommand = async (output, context) => {
|
|
324
|
+
if (output.statusCode >= 300) {
|
|
325
|
+
return de_CommandError(output, context);
|
|
326
|
+
}
|
|
327
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
328
|
+
let contents = {};
|
|
329
|
+
contents = smithyClient._json(data);
|
|
330
|
+
const response = {
|
|
331
|
+
$metadata: deserializeMetadata(output),
|
|
332
|
+
...contents,
|
|
333
|
+
};
|
|
334
|
+
return response;
|
|
335
|
+
};
|
|
336
|
+
const de_DescribeDimensionKeysCommand = async (output, context) => {
|
|
337
|
+
if (output.statusCode >= 300) {
|
|
338
|
+
return de_CommandError(output, context);
|
|
339
|
+
}
|
|
340
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
341
|
+
let contents = {};
|
|
342
|
+
contents = de_DescribeDimensionKeysResponse(data);
|
|
343
|
+
const response = {
|
|
344
|
+
$metadata: deserializeMetadata(output),
|
|
345
|
+
...contents,
|
|
346
|
+
};
|
|
347
|
+
return response;
|
|
348
|
+
};
|
|
349
|
+
const de_GetDimensionKeyDetailsCommand = async (output, context) => {
|
|
350
|
+
if (output.statusCode >= 300) {
|
|
351
|
+
return de_CommandError(output, context);
|
|
352
|
+
}
|
|
353
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
354
|
+
let contents = {};
|
|
355
|
+
contents = smithyClient._json(data);
|
|
356
|
+
const response = {
|
|
357
|
+
$metadata: deserializeMetadata(output),
|
|
358
|
+
...contents,
|
|
359
|
+
};
|
|
360
|
+
return response;
|
|
361
|
+
};
|
|
362
|
+
const de_GetPerformanceAnalysisReportCommand = async (output, context) => {
|
|
363
|
+
if (output.statusCode >= 300) {
|
|
364
|
+
return de_CommandError(output, context);
|
|
365
|
+
}
|
|
366
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
367
|
+
let contents = {};
|
|
368
|
+
contents = de_GetPerformanceAnalysisReportResponse(data);
|
|
369
|
+
const response = {
|
|
370
|
+
$metadata: deserializeMetadata(output),
|
|
371
|
+
...contents,
|
|
372
|
+
};
|
|
373
|
+
return response;
|
|
374
|
+
};
|
|
375
|
+
const de_GetResourceMetadataCommand = async (output, context) => {
|
|
376
|
+
if (output.statusCode >= 300) {
|
|
377
|
+
return de_CommandError(output, context);
|
|
378
|
+
}
|
|
379
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
380
|
+
let contents = {};
|
|
381
|
+
contents = smithyClient._json(data);
|
|
382
|
+
const response = {
|
|
383
|
+
$metadata: deserializeMetadata(output),
|
|
384
|
+
...contents,
|
|
385
|
+
};
|
|
386
|
+
return response;
|
|
387
|
+
};
|
|
388
|
+
const de_GetResourceMetricsCommand = async (output, context) => {
|
|
389
|
+
if (output.statusCode >= 300) {
|
|
390
|
+
return de_CommandError(output, context);
|
|
391
|
+
}
|
|
392
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
393
|
+
let contents = {};
|
|
394
|
+
contents = de_GetResourceMetricsResponse(data);
|
|
395
|
+
const response = {
|
|
396
|
+
$metadata: deserializeMetadata(output),
|
|
397
|
+
...contents,
|
|
398
|
+
};
|
|
399
|
+
return response;
|
|
400
|
+
};
|
|
401
|
+
const de_ListAvailableResourceDimensionsCommand = async (output, context) => {
|
|
402
|
+
if (output.statusCode >= 300) {
|
|
403
|
+
return de_CommandError(output, context);
|
|
404
|
+
}
|
|
405
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
406
|
+
let contents = {};
|
|
407
|
+
contents = smithyClient._json(data);
|
|
408
|
+
const response = {
|
|
409
|
+
$metadata: deserializeMetadata(output),
|
|
410
|
+
...contents,
|
|
411
|
+
};
|
|
412
|
+
return response;
|
|
413
|
+
};
|
|
414
|
+
const de_ListAvailableResourceMetricsCommand = async (output, context) => {
|
|
415
|
+
if (output.statusCode >= 300) {
|
|
416
|
+
return de_CommandError(output, context);
|
|
417
|
+
}
|
|
418
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
419
|
+
let contents = {};
|
|
420
|
+
contents = smithyClient._json(data);
|
|
421
|
+
const response = {
|
|
422
|
+
$metadata: deserializeMetadata(output),
|
|
423
|
+
...contents,
|
|
424
|
+
};
|
|
425
|
+
return response;
|
|
426
|
+
};
|
|
427
|
+
const de_ListPerformanceAnalysisReportsCommand = async (output, context) => {
|
|
428
|
+
if (output.statusCode >= 300) {
|
|
429
|
+
return de_CommandError(output, context);
|
|
430
|
+
}
|
|
431
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
432
|
+
let contents = {};
|
|
433
|
+
contents = de_ListPerformanceAnalysisReportsResponse(data);
|
|
434
|
+
const response = {
|
|
435
|
+
$metadata: deserializeMetadata(output),
|
|
436
|
+
...contents,
|
|
437
|
+
};
|
|
438
|
+
return response;
|
|
439
|
+
};
|
|
440
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
441
|
+
if (output.statusCode >= 300) {
|
|
442
|
+
return de_CommandError(output, context);
|
|
443
|
+
}
|
|
444
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
445
|
+
let contents = {};
|
|
446
|
+
contents = smithyClient._json(data);
|
|
447
|
+
const response = {
|
|
448
|
+
$metadata: deserializeMetadata(output),
|
|
449
|
+
...contents,
|
|
450
|
+
};
|
|
451
|
+
return response;
|
|
452
|
+
};
|
|
453
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
454
|
+
if (output.statusCode >= 300) {
|
|
455
|
+
return de_CommandError(output, context);
|
|
456
|
+
}
|
|
457
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
458
|
+
let contents = {};
|
|
459
|
+
contents = smithyClient._json(data);
|
|
460
|
+
const response = {
|
|
461
|
+
$metadata: deserializeMetadata(output),
|
|
462
|
+
...contents,
|
|
463
|
+
};
|
|
464
|
+
return response;
|
|
465
|
+
};
|
|
466
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
467
|
+
if (output.statusCode >= 300) {
|
|
468
|
+
return de_CommandError(output, context);
|
|
469
|
+
}
|
|
470
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
471
|
+
let contents = {};
|
|
472
|
+
contents = smithyClient._json(data);
|
|
473
|
+
const response = {
|
|
474
|
+
$metadata: deserializeMetadata(output),
|
|
475
|
+
...contents,
|
|
476
|
+
};
|
|
477
|
+
return response;
|
|
478
|
+
};
|
|
479
|
+
const de_CommandError = async (output, context) => {
|
|
480
|
+
const parsedOutput = {
|
|
481
|
+
...output,
|
|
482
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
483
|
+
};
|
|
484
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
485
|
+
switch (errorCode) {
|
|
486
|
+
case "InternalServiceError":
|
|
487
|
+
case "com.amazonaws.pi#InternalServiceError":
|
|
488
|
+
throw await de_InternalServiceErrorRes(parsedOutput);
|
|
489
|
+
case "InvalidArgumentException":
|
|
490
|
+
case "com.amazonaws.pi#InvalidArgumentException":
|
|
491
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput);
|
|
492
|
+
case "NotAuthorizedException":
|
|
493
|
+
case "com.amazonaws.pi#NotAuthorizedException":
|
|
494
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput);
|
|
495
|
+
default:
|
|
496
|
+
const parsedBody = parsedOutput.body;
|
|
497
|
+
return throwDefaultError({
|
|
498
|
+
output,
|
|
499
|
+
parsedBody,
|
|
500
|
+
errorCode,
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
505
|
+
const body = parsedOutput.body;
|
|
506
|
+
const deserialized = smithyClient._json(body);
|
|
507
|
+
const exception = new InternalServiceError({
|
|
508
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
509
|
+
...deserialized,
|
|
280
510
|
});
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
name = "InvalidArgumentException";
|
|
290
|
-
$fault = "client";
|
|
291
|
-
Message;
|
|
292
|
-
/**
|
|
293
|
-
* @internal
|
|
294
|
-
*/
|
|
295
|
-
constructor(opts) {
|
|
296
|
-
super({
|
|
297
|
-
name: "InvalidArgumentException",
|
|
298
|
-
$fault: "client",
|
|
299
|
-
...opts
|
|
511
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
512
|
+
};
|
|
513
|
+
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
514
|
+
const body = parsedOutput.body;
|
|
515
|
+
const deserialized = smithyClient._json(body);
|
|
516
|
+
const exception = new InvalidArgumentException({
|
|
517
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
518
|
+
...deserialized,
|
|
300
519
|
});
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
name = "NotAuthorizedException";
|
|
310
|
-
$fault = "client";
|
|
311
|
-
Message;
|
|
312
|
-
/**
|
|
313
|
-
* @internal
|
|
314
|
-
*/
|
|
315
|
-
constructor(opts) {
|
|
316
|
-
super({
|
|
317
|
-
name: "NotAuthorizedException",
|
|
318
|
-
$fault: "client",
|
|
319
|
-
...opts
|
|
520
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
521
|
+
};
|
|
522
|
+
const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
|
|
523
|
+
const body = parsedOutput.body;
|
|
524
|
+
const deserialized = smithyClient._json(body);
|
|
525
|
+
const exception = new NotAuthorizedException({
|
|
526
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
527
|
+
...deserialized,
|
|
320
528
|
});
|
|
321
|
-
|
|
322
|
-
this.Message = opts.Message;
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
var DetailStatus = {
|
|
326
|
-
AVAILABLE: "AVAILABLE",
|
|
327
|
-
PROCESSING: "PROCESSING",
|
|
328
|
-
UNAVAILABLE: "UNAVAILABLE"
|
|
329
|
-
};
|
|
330
|
-
var FeatureStatus = {
|
|
331
|
-
DISABLED: "DISABLED",
|
|
332
|
-
DISABLED_PENDING_REBOOT: "DISABLED_PENDING_REBOOT",
|
|
333
|
-
ENABLED: "ENABLED",
|
|
334
|
-
ENABLED_PENDING_REBOOT: "ENABLED_PENDING_REBOOT",
|
|
335
|
-
UNKNOWN: "UNKNOWN",
|
|
336
|
-
UNSUPPORTED: "UNSUPPORTED"
|
|
337
|
-
};
|
|
338
|
-
var TextFormat = {
|
|
339
|
-
MARKDOWN: "MARKDOWN",
|
|
340
|
-
PLAIN_TEXT: "PLAIN_TEXT"
|
|
341
|
-
};
|
|
342
|
-
var PeriodAlignment = {
|
|
343
|
-
END_TIME: "END_TIME",
|
|
344
|
-
START_TIME: "START_TIME"
|
|
345
|
-
};
|
|
346
|
-
var RecommendationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
347
|
-
...obj,
|
|
348
|
-
...obj.RecommendationDescription && { RecommendationDescription: import_smithy_client.SENSITIVE_STRING }
|
|
349
|
-
}), "RecommendationFilterSensitiveLog");
|
|
350
|
-
var InsightFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
351
|
-
...obj,
|
|
352
|
-
...obj.SupportingInsights && {
|
|
353
|
-
SupportingInsights: obj.SupportingInsights.map((item) => InsightFilterSensitiveLog(item))
|
|
354
|
-
},
|
|
355
|
-
...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING },
|
|
356
|
-
...obj.Recommendations && {
|
|
357
|
-
Recommendations: obj.Recommendations.map((item) => RecommendationFilterSensitiveLog(item))
|
|
358
|
-
}
|
|
359
|
-
}), "InsightFilterSensitiveLog");
|
|
360
|
-
var AnalysisReportFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
361
|
-
...obj,
|
|
362
|
-
...obj.Insights && { Insights: obj.Insights.map((item) => InsightFilterSensitiveLog(item)) }
|
|
363
|
-
}), "AnalysisReportFilterSensitiveLog");
|
|
364
|
-
var GetPerformanceAnalysisReportResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
365
|
-
...obj,
|
|
366
|
-
...obj.AnalysisReport && { AnalysisReport: AnalysisReportFilterSensitiveLog(obj.AnalysisReport) }
|
|
367
|
-
}), "GetPerformanceAnalysisReportResponseFilterSensitiveLog");
|
|
368
|
-
|
|
369
|
-
// src/protocols/Aws_json1_1.ts
|
|
370
|
-
var se_CreatePerformanceAnalysisReportCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
371
|
-
const headers = sharedHeaders("CreatePerformanceAnalysisReport");
|
|
372
|
-
let body;
|
|
373
|
-
body = JSON.stringify(se_CreatePerformanceAnalysisReportRequest(input, context));
|
|
374
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
375
|
-
}, "se_CreatePerformanceAnalysisReportCommand");
|
|
376
|
-
var se_DeletePerformanceAnalysisReportCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
377
|
-
const headers = sharedHeaders("DeletePerformanceAnalysisReport");
|
|
378
|
-
let body;
|
|
379
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
380
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
381
|
-
}, "se_DeletePerformanceAnalysisReportCommand");
|
|
382
|
-
var se_DescribeDimensionKeysCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
383
|
-
const headers = sharedHeaders("DescribeDimensionKeys");
|
|
384
|
-
let body;
|
|
385
|
-
body = JSON.stringify(se_DescribeDimensionKeysRequest(input, context));
|
|
386
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
387
|
-
}, "se_DescribeDimensionKeysCommand");
|
|
388
|
-
var se_GetDimensionKeyDetailsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
389
|
-
const headers = sharedHeaders("GetDimensionKeyDetails");
|
|
390
|
-
let body;
|
|
391
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
392
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
393
|
-
}, "se_GetDimensionKeyDetailsCommand");
|
|
394
|
-
var se_GetPerformanceAnalysisReportCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
395
|
-
const headers = sharedHeaders("GetPerformanceAnalysisReport");
|
|
396
|
-
let body;
|
|
397
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
398
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
399
|
-
}, "se_GetPerformanceAnalysisReportCommand");
|
|
400
|
-
var se_GetResourceMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
401
|
-
const headers = sharedHeaders("GetResourceMetadata");
|
|
402
|
-
let body;
|
|
403
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
404
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
405
|
-
}, "se_GetResourceMetadataCommand");
|
|
406
|
-
var se_GetResourceMetricsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
407
|
-
const headers = sharedHeaders("GetResourceMetrics");
|
|
408
|
-
let body;
|
|
409
|
-
body = JSON.stringify(se_GetResourceMetricsRequest(input, context));
|
|
410
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
411
|
-
}, "se_GetResourceMetricsCommand");
|
|
412
|
-
var se_ListAvailableResourceDimensionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
413
|
-
const headers = sharedHeaders("ListAvailableResourceDimensions");
|
|
414
|
-
let body;
|
|
415
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
416
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
417
|
-
}, "se_ListAvailableResourceDimensionsCommand");
|
|
418
|
-
var se_ListAvailableResourceMetricsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
419
|
-
const headers = sharedHeaders("ListAvailableResourceMetrics");
|
|
420
|
-
let body;
|
|
421
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
422
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
423
|
-
}, "se_ListAvailableResourceMetricsCommand");
|
|
424
|
-
var se_ListPerformanceAnalysisReportsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
425
|
-
const headers = sharedHeaders("ListPerformanceAnalysisReports");
|
|
426
|
-
let body;
|
|
427
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
428
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
429
|
-
}, "se_ListPerformanceAnalysisReportsCommand");
|
|
430
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
431
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
432
|
-
let body;
|
|
433
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
434
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
435
|
-
}, "se_ListTagsForResourceCommand");
|
|
436
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
437
|
-
const headers = sharedHeaders("TagResource");
|
|
438
|
-
let body;
|
|
439
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
440
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
441
|
-
}, "se_TagResourceCommand");
|
|
442
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
443
|
-
const headers = sharedHeaders("UntagResource");
|
|
444
|
-
let body;
|
|
445
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
446
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
447
|
-
}, "se_UntagResourceCommand");
|
|
448
|
-
var de_CreatePerformanceAnalysisReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
449
|
-
if (output.statusCode >= 300) {
|
|
450
|
-
return de_CommandError(output, context);
|
|
451
|
-
}
|
|
452
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
453
|
-
let contents = {};
|
|
454
|
-
contents = (0, import_smithy_client._json)(data);
|
|
455
|
-
const response = {
|
|
456
|
-
$metadata: deserializeMetadata(output),
|
|
457
|
-
...contents
|
|
458
|
-
};
|
|
459
|
-
return response;
|
|
460
|
-
}, "de_CreatePerformanceAnalysisReportCommand");
|
|
461
|
-
var de_DeletePerformanceAnalysisReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
462
|
-
if (output.statusCode >= 300) {
|
|
463
|
-
return de_CommandError(output, context);
|
|
464
|
-
}
|
|
465
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
466
|
-
let contents = {};
|
|
467
|
-
contents = (0, import_smithy_client._json)(data);
|
|
468
|
-
const response = {
|
|
469
|
-
$metadata: deserializeMetadata(output),
|
|
470
|
-
...contents
|
|
471
|
-
};
|
|
472
|
-
return response;
|
|
473
|
-
}, "de_DeletePerformanceAnalysisReportCommand");
|
|
474
|
-
var de_DescribeDimensionKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
475
|
-
if (output.statusCode >= 300) {
|
|
476
|
-
return de_CommandError(output, context);
|
|
477
|
-
}
|
|
478
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
479
|
-
let contents = {};
|
|
480
|
-
contents = de_DescribeDimensionKeysResponse(data, context);
|
|
481
|
-
const response = {
|
|
482
|
-
$metadata: deserializeMetadata(output),
|
|
483
|
-
...contents
|
|
484
|
-
};
|
|
485
|
-
return response;
|
|
486
|
-
}, "de_DescribeDimensionKeysCommand");
|
|
487
|
-
var de_GetDimensionKeyDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
488
|
-
if (output.statusCode >= 300) {
|
|
489
|
-
return de_CommandError(output, context);
|
|
490
|
-
}
|
|
491
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
492
|
-
let contents = {};
|
|
493
|
-
contents = (0, import_smithy_client._json)(data);
|
|
494
|
-
const response = {
|
|
495
|
-
$metadata: deserializeMetadata(output),
|
|
496
|
-
...contents
|
|
497
|
-
};
|
|
498
|
-
return response;
|
|
499
|
-
}, "de_GetDimensionKeyDetailsCommand");
|
|
500
|
-
var de_GetPerformanceAnalysisReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
501
|
-
if (output.statusCode >= 300) {
|
|
502
|
-
return de_CommandError(output, context);
|
|
503
|
-
}
|
|
504
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
505
|
-
let contents = {};
|
|
506
|
-
contents = de_GetPerformanceAnalysisReportResponse(data, context);
|
|
507
|
-
const response = {
|
|
508
|
-
$metadata: deserializeMetadata(output),
|
|
509
|
-
...contents
|
|
510
|
-
};
|
|
511
|
-
return response;
|
|
512
|
-
}, "de_GetPerformanceAnalysisReportCommand");
|
|
513
|
-
var de_GetResourceMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
514
|
-
if (output.statusCode >= 300) {
|
|
515
|
-
return de_CommandError(output, context);
|
|
516
|
-
}
|
|
517
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
518
|
-
let contents = {};
|
|
519
|
-
contents = (0, import_smithy_client._json)(data);
|
|
520
|
-
const response = {
|
|
521
|
-
$metadata: deserializeMetadata(output),
|
|
522
|
-
...contents
|
|
523
|
-
};
|
|
524
|
-
return response;
|
|
525
|
-
}, "de_GetResourceMetadataCommand");
|
|
526
|
-
var de_GetResourceMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
527
|
-
if (output.statusCode >= 300) {
|
|
528
|
-
return de_CommandError(output, context);
|
|
529
|
-
}
|
|
530
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
531
|
-
let contents = {};
|
|
532
|
-
contents = de_GetResourceMetricsResponse(data, context);
|
|
533
|
-
const response = {
|
|
534
|
-
$metadata: deserializeMetadata(output),
|
|
535
|
-
...contents
|
|
536
|
-
};
|
|
537
|
-
return response;
|
|
538
|
-
}, "de_GetResourceMetricsCommand");
|
|
539
|
-
var de_ListAvailableResourceDimensionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
540
|
-
if (output.statusCode >= 300) {
|
|
541
|
-
return de_CommandError(output, context);
|
|
542
|
-
}
|
|
543
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
544
|
-
let contents = {};
|
|
545
|
-
contents = (0, import_smithy_client._json)(data);
|
|
546
|
-
const response = {
|
|
547
|
-
$metadata: deserializeMetadata(output),
|
|
548
|
-
...contents
|
|
549
|
-
};
|
|
550
|
-
return response;
|
|
551
|
-
}, "de_ListAvailableResourceDimensionsCommand");
|
|
552
|
-
var de_ListAvailableResourceMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
553
|
-
if (output.statusCode >= 300) {
|
|
554
|
-
return de_CommandError(output, context);
|
|
555
|
-
}
|
|
556
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
557
|
-
let contents = {};
|
|
558
|
-
contents = (0, import_smithy_client._json)(data);
|
|
559
|
-
const response = {
|
|
560
|
-
$metadata: deserializeMetadata(output),
|
|
561
|
-
...contents
|
|
562
|
-
};
|
|
563
|
-
return response;
|
|
564
|
-
}, "de_ListAvailableResourceMetricsCommand");
|
|
565
|
-
var de_ListPerformanceAnalysisReportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
566
|
-
if (output.statusCode >= 300) {
|
|
567
|
-
return de_CommandError(output, context);
|
|
568
|
-
}
|
|
569
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
570
|
-
let contents = {};
|
|
571
|
-
contents = de_ListPerformanceAnalysisReportsResponse(data, context);
|
|
572
|
-
const response = {
|
|
573
|
-
$metadata: deserializeMetadata(output),
|
|
574
|
-
...contents
|
|
575
|
-
};
|
|
576
|
-
return response;
|
|
577
|
-
}, "de_ListPerformanceAnalysisReportsCommand");
|
|
578
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
579
|
-
if (output.statusCode >= 300) {
|
|
580
|
-
return de_CommandError(output, context);
|
|
581
|
-
}
|
|
582
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
583
|
-
let contents = {};
|
|
584
|
-
contents = (0, import_smithy_client._json)(data);
|
|
585
|
-
const response = {
|
|
586
|
-
$metadata: deserializeMetadata(output),
|
|
587
|
-
...contents
|
|
588
|
-
};
|
|
589
|
-
return response;
|
|
590
|
-
}, "de_ListTagsForResourceCommand");
|
|
591
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
592
|
-
if (output.statusCode >= 300) {
|
|
593
|
-
return de_CommandError(output, context);
|
|
594
|
-
}
|
|
595
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
596
|
-
let contents = {};
|
|
597
|
-
contents = (0, import_smithy_client._json)(data);
|
|
598
|
-
const response = {
|
|
599
|
-
$metadata: deserializeMetadata(output),
|
|
600
|
-
...contents
|
|
601
|
-
};
|
|
602
|
-
return response;
|
|
603
|
-
}, "de_TagResourceCommand");
|
|
604
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
605
|
-
if (output.statusCode >= 300) {
|
|
606
|
-
return de_CommandError(output, context);
|
|
607
|
-
}
|
|
608
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
609
|
-
let contents = {};
|
|
610
|
-
contents = (0, import_smithy_client._json)(data);
|
|
611
|
-
const response = {
|
|
612
|
-
$metadata: deserializeMetadata(output),
|
|
613
|
-
...contents
|
|
614
|
-
};
|
|
615
|
-
return response;
|
|
616
|
-
}, "de_UntagResourceCommand");
|
|
617
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
618
|
-
const parsedOutput = {
|
|
619
|
-
...output,
|
|
620
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
621
|
-
};
|
|
622
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
623
|
-
switch (errorCode) {
|
|
624
|
-
case "InternalServiceError":
|
|
625
|
-
case "com.amazonaws.pi#InternalServiceError":
|
|
626
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
627
|
-
case "InvalidArgumentException":
|
|
628
|
-
case "com.amazonaws.pi#InvalidArgumentException":
|
|
629
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
630
|
-
case "NotAuthorizedException":
|
|
631
|
-
case "com.amazonaws.pi#NotAuthorizedException":
|
|
632
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
633
|
-
default:
|
|
634
|
-
const parsedBody = parsedOutput.body;
|
|
635
|
-
return throwDefaultError({
|
|
636
|
-
output,
|
|
637
|
-
parsedBody,
|
|
638
|
-
errorCode
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
}, "de_CommandError");
|
|
642
|
-
var de_InternalServiceErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
643
|
-
const body = parsedOutput.body;
|
|
644
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
645
|
-
const exception = new InternalServiceError({
|
|
646
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
647
|
-
...deserialized
|
|
648
|
-
});
|
|
649
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
650
|
-
}, "de_InternalServiceErrorRes");
|
|
651
|
-
var de_InvalidArgumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
652
|
-
const body = parsedOutput.body;
|
|
653
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
654
|
-
const exception = new InvalidArgumentException({
|
|
655
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
656
|
-
...deserialized
|
|
657
|
-
});
|
|
658
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
659
|
-
}, "de_InvalidArgumentExceptionRes");
|
|
660
|
-
var de_NotAuthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
661
|
-
const body = parsedOutput.body;
|
|
662
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
663
|
-
const exception = new NotAuthorizedException({
|
|
664
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
665
|
-
...deserialized
|
|
666
|
-
});
|
|
667
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
668
|
-
}, "de_NotAuthorizedExceptionRes");
|
|
669
|
-
var se_CreatePerformanceAnalysisReportRequest = /* @__PURE__ */ __name((input, context) => {
|
|
670
|
-
return (0, import_smithy_client.take)(input, {
|
|
671
|
-
EndTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndTime"),
|
|
672
|
-
Identifier: [],
|
|
673
|
-
ServiceType: [],
|
|
674
|
-
StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime"),
|
|
675
|
-
Tags: import_smithy_client._json
|
|
676
|
-
});
|
|
677
|
-
}, "se_CreatePerformanceAnalysisReportRequest");
|
|
678
|
-
var se_DescribeDimensionKeysRequest = /* @__PURE__ */ __name((input, context) => {
|
|
679
|
-
return (0, import_smithy_client.take)(input, {
|
|
680
|
-
AdditionalMetrics: import_smithy_client._json,
|
|
681
|
-
EndTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndTime"),
|
|
682
|
-
Filter: import_smithy_client._json,
|
|
683
|
-
GroupBy: import_smithy_client._json,
|
|
684
|
-
Identifier: [],
|
|
685
|
-
MaxResults: [],
|
|
686
|
-
Metric: [],
|
|
687
|
-
NextToken: [],
|
|
688
|
-
PartitionBy: import_smithy_client._json,
|
|
689
|
-
PeriodInSeconds: [],
|
|
690
|
-
ServiceType: [],
|
|
691
|
-
StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime")
|
|
692
|
-
});
|
|
693
|
-
}, "se_DescribeDimensionKeysRequest");
|
|
694
|
-
var se_GetResourceMetricsRequest = /* @__PURE__ */ __name((input, context) => {
|
|
695
|
-
return (0, import_smithy_client.take)(input, {
|
|
696
|
-
EndTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndTime"),
|
|
697
|
-
Identifier: [],
|
|
698
|
-
MaxResults: [],
|
|
699
|
-
MetricQueries: import_smithy_client._json,
|
|
700
|
-
NextToken: [],
|
|
701
|
-
PeriodAlignment: [],
|
|
702
|
-
PeriodInSeconds: [],
|
|
703
|
-
ServiceType: [],
|
|
704
|
-
StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime")
|
|
705
|
-
});
|
|
706
|
-
}, "se_GetResourceMetricsRequest");
|
|
707
|
-
var de_AdditionalMetricsMap = /* @__PURE__ */ __name((output, context) => {
|
|
708
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
709
|
-
if (value === null) {
|
|
710
|
-
return acc;
|
|
711
|
-
}
|
|
712
|
-
acc[key] = (0, import_smithy_client.limitedParseDouble)(value);
|
|
713
|
-
return acc;
|
|
714
|
-
}, {});
|
|
715
|
-
}, "de_AdditionalMetricsMap");
|
|
716
|
-
var de_AnalysisReport = /* @__PURE__ */ __name((output, context) => {
|
|
717
|
-
return (0, import_smithy_client.take)(output, {
|
|
718
|
-
AnalysisReportId: import_smithy_client.expectString,
|
|
719
|
-
CreateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreateTime"),
|
|
720
|
-
EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
|
|
721
|
-
Identifier: import_smithy_client.expectString,
|
|
722
|
-
Insights: /* @__PURE__ */ __name((_) => de_InsightList(_, context), "Insights"),
|
|
723
|
-
ServiceType: import_smithy_client.expectString,
|
|
724
|
-
StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
|
|
725
|
-
Status: import_smithy_client.expectString
|
|
726
|
-
});
|
|
727
|
-
}, "de_AnalysisReport");
|
|
728
|
-
var de_AnalysisReportSummary = /* @__PURE__ */ __name((output, context) => {
|
|
729
|
-
return (0, import_smithy_client.take)(output, {
|
|
730
|
-
AnalysisReportId: import_smithy_client.expectString,
|
|
731
|
-
CreateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreateTime"),
|
|
732
|
-
EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
|
|
733
|
-
StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
|
|
734
|
-
Status: import_smithy_client.expectString,
|
|
735
|
-
Tags: import_smithy_client._json
|
|
736
|
-
});
|
|
737
|
-
}, "de_AnalysisReportSummary");
|
|
738
|
-
var de_AnalysisReportSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
739
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
740
|
-
return de_AnalysisReportSummary(entry, context);
|
|
741
|
-
});
|
|
742
|
-
return retVal;
|
|
743
|
-
}, "de_AnalysisReportSummaryList");
|
|
744
|
-
var de_Data = /* @__PURE__ */ __name((output, context) => {
|
|
745
|
-
return (0, import_smithy_client.take)(output, {
|
|
746
|
-
PerformanceInsightsMetric: /* @__PURE__ */ __name((_) => de_PerformanceInsightsMetric(_, context), "PerformanceInsightsMetric")
|
|
747
|
-
});
|
|
748
|
-
}, "de_Data");
|
|
749
|
-
var de_DataList = /* @__PURE__ */ __name((output, context) => {
|
|
750
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
751
|
-
return de_Data(entry, context);
|
|
752
|
-
});
|
|
753
|
-
return retVal;
|
|
754
|
-
}, "de_DataList");
|
|
755
|
-
var de_DataPoint = /* @__PURE__ */ __name((output, context) => {
|
|
756
|
-
return (0, import_smithy_client.take)(output, {
|
|
757
|
-
Timestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Timestamp"),
|
|
758
|
-
Value: import_smithy_client.limitedParseDouble
|
|
759
|
-
});
|
|
760
|
-
}, "de_DataPoint");
|
|
761
|
-
var de_DataPointsList = /* @__PURE__ */ __name((output, context) => {
|
|
762
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
763
|
-
return de_DataPoint(entry, context);
|
|
764
|
-
});
|
|
765
|
-
return retVal;
|
|
766
|
-
}, "de_DataPointsList");
|
|
767
|
-
var de_DescribeDimensionKeysResponse = /* @__PURE__ */ __name((output, context) => {
|
|
768
|
-
return (0, import_smithy_client.take)(output, {
|
|
769
|
-
AlignedEndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "AlignedEndTime"),
|
|
770
|
-
AlignedStartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "AlignedStartTime"),
|
|
771
|
-
Keys: /* @__PURE__ */ __name((_) => de_DimensionKeyDescriptionList(_, context), "Keys"),
|
|
772
|
-
NextToken: import_smithy_client.expectString,
|
|
773
|
-
PartitionKeys: import_smithy_client._json
|
|
774
|
-
});
|
|
775
|
-
}, "de_DescribeDimensionKeysResponse");
|
|
776
|
-
var de_DimensionKeyDescription = /* @__PURE__ */ __name((output, context) => {
|
|
777
|
-
return (0, import_smithy_client.take)(output, {
|
|
778
|
-
AdditionalMetrics: /* @__PURE__ */ __name((_) => de_AdditionalMetricsMap(_, context), "AdditionalMetrics"),
|
|
779
|
-
Dimensions: import_smithy_client._json,
|
|
780
|
-
Partitions: /* @__PURE__ */ __name((_) => de_MetricValuesList(_, context), "Partitions"),
|
|
781
|
-
Total: import_smithy_client.limitedParseDouble
|
|
782
|
-
});
|
|
783
|
-
}, "de_DimensionKeyDescription");
|
|
784
|
-
var de_DimensionKeyDescriptionList = /* @__PURE__ */ __name((output, context) => {
|
|
785
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
786
|
-
return de_DimensionKeyDescription(entry, context);
|
|
787
|
-
});
|
|
788
|
-
return retVal;
|
|
789
|
-
}, "de_DimensionKeyDescriptionList");
|
|
790
|
-
var de_GetPerformanceAnalysisReportResponse = /* @__PURE__ */ __name((output, context) => {
|
|
791
|
-
return (0, import_smithy_client.take)(output, {
|
|
792
|
-
AnalysisReport: /* @__PURE__ */ __name((_) => de_AnalysisReport(_, context), "AnalysisReport")
|
|
793
|
-
});
|
|
794
|
-
}, "de_GetPerformanceAnalysisReportResponse");
|
|
795
|
-
var de_GetResourceMetricsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
796
|
-
return (0, import_smithy_client.take)(output, {
|
|
797
|
-
AlignedEndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "AlignedEndTime"),
|
|
798
|
-
AlignedStartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "AlignedStartTime"),
|
|
799
|
-
Identifier: import_smithy_client.expectString,
|
|
800
|
-
MetricList: /* @__PURE__ */ __name((_) => de_MetricKeyDataPointsList(_, context), "MetricList"),
|
|
801
|
-
NextToken: import_smithy_client.expectString
|
|
802
|
-
});
|
|
803
|
-
}, "de_GetResourceMetricsResponse");
|
|
804
|
-
var de_Insight = /* @__PURE__ */ __name((output, context) => {
|
|
805
|
-
return (0, import_smithy_client.take)(output, {
|
|
806
|
-
BaselineData: /* @__PURE__ */ __name((_) => de_DataList(_, context), "BaselineData"),
|
|
807
|
-
Context: import_smithy_client.expectString,
|
|
808
|
-
Description: import_smithy_client.expectString,
|
|
809
|
-
EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
|
|
810
|
-
InsightData: /* @__PURE__ */ __name((_) => de_DataList(_, context), "InsightData"),
|
|
811
|
-
InsightId: import_smithy_client.expectString,
|
|
812
|
-
InsightType: import_smithy_client.expectString,
|
|
813
|
-
Recommendations: import_smithy_client._json,
|
|
814
|
-
Severity: import_smithy_client.expectString,
|
|
815
|
-
StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
|
|
816
|
-
SupportingInsights: /* @__PURE__ */ __name((_) => de_InsightList(_, context), "SupportingInsights")
|
|
817
|
-
});
|
|
818
|
-
}, "de_Insight");
|
|
819
|
-
var de_InsightList = /* @__PURE__ */ __name((output, context) => {
|
|
820
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
821
|
-
return de_Insight(entry, context);
|
|
822
|
-
});
|
|
823
|
-
return retVal;
|
|
824
|
-
}, "de_InsightList");
|
|
825
|
-
var de_ListPerformanceAnalysisReportsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
826
|
-
return (0, import_smithy_client.take)(output, {
|
|
827
|
-
AnalysisReports: /* @__PURE__ */ __name((_) => de_AnalysisReportSummaryList(_, context), "AnalysisReports"),
|
|
828
|
-
NextToken: import_smithy_client.expectString
|
|
829
|
-
});
|
|
830
|
-
}, "de_ListPerformanceAnalysisReportsResponse");
|
|
831
|
-
var de_MetricKeyDataPoints = /* @__PURE__ */ __name((output, context) => {
|
|
832
|
-
return (0, import_smithy_client.take)(output, {
|
|
833
|
-
DataPoints: /* @__PURE__ */ __name((_) => de_DataPointsList(_, context), "DataPoints"),
|
|
834
|
-
Key: import_smithy_client._json
|
|
835
|
-
});
|
|
836
|
-
}, "de_MetricKeyDataPoints");
|
|
837
|
-
var de_MetricKeyDataPointsList = /* @__PURE__ */ __name((output, context) => {
|
|
838
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
839
|
-
return de_MetricKeyDataPoints(entry, context);
|
|
840
|
-
});
|
|
841
|
-
return retVal;
|
|
842
|
-
}, "de_MetricKeyDataPointsList");
|
|
843
|
-
var de_MetricValuesList = /* @__PURE__ */ __name((output, context) => {
|
|
844
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
845
|
-
return (0, import_smithy_client.limitedParseDouble)(entry);
|
|
846
|
-
});
|
|
847
|
-
return retVal;
|
|
848
|
-
}, "de_MetricValuesList");
|
|
849
|
-
var de_PerformanceInsightsMetric = /* @__PURE__ */ __name((output, context) => {
|
|
850
|
-
return (0, import_smithy_client.take)(output, {
|
|
851
|
-
Dimensions: import_smithy_client._json,
|
|
852
|
-
DisplayName: import_smithy_client.expectString,
|
|
853
|
-
Filter: import_smithy_client._json,
|
|
854
|
-
Metric: import_smithy_client.expectString,
|
|
855
|
-
Value: import_smithy_client.limitedParseDouble
|
|
856
|
-
});
|
|
857
|
-
}, "de_PerformanceInsightsMetric");
|
|
858
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
859
|
-
httpStatusCode: output.statusCode,
|
|
860
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
861
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
862
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
863
|
-
}), "deserializeMetadata");
|
|
864
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(PIServiceException);
|
|
865
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
866
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
867
|
-
const contents = {
|
|
868
|
-
protocol,
|
|
869
|
-
hostname,
|
|
870
|
-
port,
|
|
871
|
-
method: "POST",
|
|
872
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
873
|
-
headers
|
|
874
|
-
};
|
|
875
|
-
if (resolvedHostname !== void 0) {
|
|
876
|
-
contents.hostname = resolvedHostname;
|
|
877
|
-
}
|
|
878
|
-
if (body !== void 0) {
|
|
879
|
-
contents.body = body;
|
|
880
|
-
}
|
|
881
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
882
|
-
}, "buildHttpRpcRequest");
|
|
883
|
-
function sharedHeaders(operation) {
|
|
884
|
-
return {
|
|
885
|
-
"content-type": "application/x-amz-json-1.1",
|
|
886
|
-
"x-amz-target": `PerformanceInsightsv20180227.${operation}`
|
|
887
|
-
};
|
|
888
|
-
}
|
|
889
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
890
|
-
|
|
891
|
-
// src/commands/CreatePerformanceAnalysisReportCommand.ts
|
|
892
|
-
var CreatePerformanceAnalysisReportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
893
|
-
return [
|
|
894
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
895
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
896
|
-
];
|
|
897
|
-
}).s("PerformanceInsightsv20180227", "CreatePerformanceAnalysisReport", {}).n("PIClient", "CreatePerformanceAnalysisReportCommand").f(void 0, void 0).ser(se_CreatePerformanceAnalysisReportCommand).de(de_CreatePerformanceAnalysisReportCommand).build() {
|
|
898
|
-
static {
|
|
899
|
-
__name(this, "CreatePerformanceAnalysisReportCommand");
|
|
900
|
-
}
|
|
529
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
901
530
|
};
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
911
|
-
];
|
|
912
|
-
}).s("PerformanceInsightsv20180227", "DeletePerformanceAnalysisReport", {}).n("PIClient", "DeletePerformanceAnalysisReportCommand").f(void 0, void 0).ser(se_DeletePerformanceAnalysisReportCommand).de(de_DeletePerformanceAnalysisReportCommand).build() {
|
|
913
|
-
static {
|
|
914
|
-
__name(this, "DeletePerformanceAnalysisReportCommand");
|
|
915
|
-
}
|
|
531
|
+
const se_CreatePerformanceAnalysisReportRequest = (input, context) => {
|
|
532
|
+
return smithyClient.take(input, {
|
|
533
|
+
EndTime: (_) => _.getTime() / 1_000,
|
|
534
|
+
Identifier: [],
|
|
535
|
+
ServiceType: [],
|
|
536
|
+
StartTime: (_) => _.getTime() / 1_000,
|
|
537
|
+
Tags: smithyClient._json,
|
|
538
|
+
});
|
|
916
539
|
};
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
540
|
+
const se_DescribeDimensionKeysRequest = (input, context) => {
|
|
541
|
+
return smithyClient.take(input, {
|
|
542
|
+
AdditionalMetrics: smithyClient._json,
|
|
543
|
+
EndTime: (_) => _.getTime() / 1_000,
|
|
544
|
+
Filter: smithyClient._json,
|
|
545
|
+
GroupBy: smithyClient._json,
|
|
546
|
+
Identifier: [],
|
|
547
|
+
MaxResults: [],
|
|
548
|
+
Metric: [],
|
|
549
|
+
NextToken: [],
|
|
550
|
+
PartitionBy: smithyClient._json,
|
|
551
|
+
PeriodInSeconds: [],
|
|
552
|
+
ServiceType: [],
|
|
553
|
+
StartTime: (_) => _.getTime() / 1_000,
|
|
554
|
+
});
|
|
931
555
|
};
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
__name(this, "GetDimensionKeyDetailsCommand");
|
|
945
|
-
}
|
|
556
|
+
const se_GetResourceMetricsRequest = (input, context) => {
|
|
557
|
+
return smithyClient.take(input, {
|
|
558
|
+
EndTime: (_) => _.getTime() / 1_000,
|
|
559
|
+
Identifier: [],
|
|
560
|
+
MaxResults: [],
|
|
561
|
+
MetricQueries: smithyClient._json,
|
|
562
|
+
NextToken: [],
|
|
563
|
+
PeriodAlignment: [],
|
|
564
|
+
PeriodInSeconds: [],
|
|
565
|
+
ServiceType: [],
|
|
566
|
+
StartTime: (_) => _.getTime() / 1_000,
|
|
567
|
+
});
|
|
946
568
|
};
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
956
|
-
];
|
|
957
|
-
}).s("PerformanceInsightsv20180227", "GetPerformanceAnalysisReport", {}).n("PIClient", "GetPerformanceAnalysisReportCommand").f(void 0, GetPerformanceAnalysisReportResponseFilterSensitiveLog).ser(se_GetPerformanceAnalysisReportCommand).de(de_GetPerformanceAnalysisReportCommand).build() {
|
|
958
|
-
static {
|
|
959
|
-
__name(this, "GetPerformanceAnalysisReportCommand");
|
|
960
|
-
}
|
|
569
|
+
const de_AdditionalMetricsMap = (output, context) => {
|
|
570
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
571
|
+
if (value === null) {
|
|
572
|
+
return acc;
|
|
573
|
+
}
|
|
574
|
+
acc[key] = smithyClient.limitedParseDouble(value);
|
|
575
|
+
return acc;
|
|
576
|
+
}, {});
|
|
961
577
|
};
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
})
|
|
973
|
-
static {
|
|
974
|
-
__name(this, "GetResourceMetadataCommand");
|
|
975
|
-
}
|
|
578
|
+
const de_AnalysisReport = (output, context) => {
|
|
579
|
+
return smithyClient.take(output, {
|
|
580
|
+
AnalysisReportId: smithyClient.expectString,
|
|
581
|
+
CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
582
|
+
EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
583
|
+
Identifier: smithyClient.expectString,
|
|
584
|
+
Insights: (_) => de_InsightList(_),
|
|
585
|
+
ServiceType: smithyClient.expectString,
|
|
586
|
+
StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
587
|
+
Status: smithyClient.expectString,
|
|
588
|
+
});
|
|
976
589
|
};
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
];
|
|
987
|
-
}).s("PerformanceInsightsv20180227", "GetResourceMetrics", {}).n("PIClient", "GetResourceMetricsCommand").f(void 0, void 0).ser(se_GetResourceMetricsCommand).de(de_GetResourceMetricsCommand).build() {
|
|
988
|
-
static {
|
|
989
|
-
__name(this, "GetResourceMetricsCommand");
|
|
990
|
-
}
|
|
590
|
+
const de_AnalysisReportSummary = (output, context) => {
|
|
591
|
+
return smithyClient.take(output, {
|
|
592
|
+
AnalysisReportId: smithyClient.expectString,
|
|
593
|
+
CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
594
|
+
EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
595
|
+
StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
596
|
+
Status: smithyClient.expectString,
|
|
597
|
+
Tags: smithyClient._json,
|
|
598
|
+
});
|
|
991
599
|
};
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1000
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1001
|
-
];
|
|
1002
|
-
}).s("PerformanceInsightsv20180227", "ListAvailableResourceDimensions", {}).n("PIClient", "ListAvailableResourceDimensionsCommand").f(void 0, void 0).ser(se_ListAvailableResourceDimensionsCommand).de(de_ListAvailableResourceDimensionsCommand).build() {
|
|
1003
|
-
static {
|
|
1004
|
-
__name(this, "ListAvailableResourceDimensionsCommand");
|
|
1005
|
-
}
|
|
600
|
+
const de_AnalysisReportSummaryList = (output, context) => {
|
|
601
|
+
const retVal = (output || [])
|
|
602
|
+
.filter((e) => e != null)
|
|
603
|
+
.map((entry) => {
|
|
604
|
+
return de_AnalysisReportSummary(entry);
|
|
605
|
+
});
|
|
606
|
+
return retVal;
|
|
1006
607
|
};
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
var ListAvailableResourceMetricsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1013
|
-
return [
|
|
1014
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1015
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1016
|
-
];
|
|
1017
|
-
}).s("PerformanceInsightsv20180227", "ListAvailableResourceMetrics", {}).n("PIClient", "ListAvailableResourceMetricsCommand").f(void 0, void 0).ser(se_ListAvailableResourceMetricsCommand).de(de_ListAvailableResourceMetricsCommand).build() {
|
|
1018
|
-
static {
|
|
1019
|
-
__name(this, "ListAvailableResourceMetricsCommand");
|
|
1020
|
-
}
|
|
608
|
+
const de_Data = (output, context) => {
|
|
609
|
+
return smithyClient.take(output, {
|
|
610
|
+
PerformanceInsightsMetric: (_) => de_PerformanceInsightsMetric(_),
|
|
611
|
+
});
|
|
1021
612
|
};
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1030
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1031
|
-
];
|
|
1032
|
-
}).s("PerformanceInsightsv20180227", "ListPerformanceAnalysisReports", {}).n("PIClient", "ListPerformanceAnalysisReportsCommand").f(void 0, void 0).ser(se_ListPerformanceAnalysisReportsCommand).de(de_ListPerformanceAnalysisReportsCommand).build() {
|
|
1033
|
-
static {
|
|
1034
|
-
__name(this, "ListPerformanceAnalysisReportsCommand");
|
|
1035
|
-
}
|
|
613
|
+
const de_DataList = (output, context) => {
|
|
614
|
+
const retVal = (output || [])
|
|
615
|
+
.filter((e) => e != null)
|
|
616
|
+
.map((entry) => {
|
|
617
|
+
return de_Data(entry);
|
|
618
|
+
});
|
|
619
|
+
return retVal;
|
|
1036
620
|
};
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1043
|
-
return [
|
|
1044
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1045
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1046
|
-
];
|
|
1047
|
-
}).s("PerformanceInsightsv20180227", "ListTagsForResource", {}).n("PIClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1048
|
-
static {
|
|
1049
|
-
__name(this, "ListTagsForResourceCommand");
|
|
1050
|
-
}
|
|
621
|
+
const de_DataPoint = (output, context) => {
|
|
622
|
+
return smithyClient.take(output, {
|
|
623
|
+
Timestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
624
|
+
Value: smithyClient.limitedParseDouble,
|
|
625
|
+
});
|
|
1051
626
|
};
|
|
627
|
+
const de_DataPointsList = (output, context) => {
|
|
628
|
+
const retVal = (output || [])
|
|
629
|
+
.filter((e) => e != null)
|
|
630
|
+
.map((entry) => {
|
|
631
|
+
return de_DataPoint(entry);
|
|
632
|
+
});
|
|
633
|
+
return retVal;
|
|
634
|
+
};
|
|
635
|
+
const de_DescribeDimensionKeysResponse = (output, context) => {
|
|
636
|
+
return smithyClient.take(output, {
|
|
637
|
+
AlignedEndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
638
|
+
AlignedStartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
639
|
+
Keys: (_) => de_DimensionKeyDescriptionList(_),
|
|
640
|
+
NextToken: smithyClient.expectString,
|
|
641
|
+
PartitionKeys: smithyClient._json,
|
|
642
|
+
});
|
|
643
|
+
};
|
|
644
|
+
const de_DimensionKeyDescription = (output, context) => {
|
|
645
|
+
return smithyClient.take(output, {
|
|
646
|
+
AdditionalMetrics: (_) => de_AdditionalMetricsMap(_),
|
|
647
|
+
Dimensions: smithyClient._json,
|
|
648
|
+
Partitions: (_) => de_MetricValuesList(_),
|
|
649
|
+
Total: smithyClient.limitedParseDouble,
|
|
650
|
+
});
|
|
651
|
+
};
|
|
652
|
+
const de_DimensionKeyDescriptionList = (output, context) => {
|
|
653
|
+
const retVal = (output || [])
|
|
654
|
+
.filter((e) => e != null)
|
|
655
|
+
.map((entry) => {
|
|
656
|
+
return de_DimensionKeyDescription(entry);
|
|
657
|
+
});
|
|
658
|
+
return retVal;
|
|
659
|
+
};
|
|
660
|
+
const de_GetPerformanceAnalysisReportResponse = (output, context) => {
|
|
661
|
+
return smithyClient.take(output, {
|
|
662
|
+
AnalysisReport: (_) => de_AnalysisReport(_),
|
|
663
|
+
});
|
|
664
|
+
};
|
|
665
|
+
const de_GetResourceMetricsResponse = (output, context) => {
|
|
666
|
+
return smithyClient.take(output, {
|
|
667
|
+
AlignedEndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
668
|
+
AlignedStartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
669
|
+
Identifier: smithyClient.expectString,
|
|
670
|
+
MetricList: (_) => de_MetricKeyDataPointsList(_),
|
|
671
|
+
NextToken: smithyClient.expectString,
|
|
672
|
+
});
|
|
673
|
+
};
|
|
674
|
+
const de_Insight = (output, context) => {
|
|
675
|
+
return smithyClient.take(output, {
|
|
676
|
+
BaselineData: (_) => de_DataList(_),
|
|
677
|
+
Context: smithyClient.expectString,
|
|
678
|
+
Description: smithyClient.expectString,
|
|
679
|
+
EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
680
|
+
InsightData: (_) => de_DataList(_),
|
|
681
|
+
InsightId: smithyClient.expectString,
|
|
682
|
+
InsightType: smithyClient.expectString,
|
|
683
|
+
Recommendations: smithyClient._json,
|
|
684
|
+
Severity: smithyClient.expectString,
|
|
685
|
+
StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
686
|
+
SupportingInsights: (_) => de_InsightList(_),
|
|
687
|
+
});
|
|
688
|
+
};
|
|
689
|
+
const de_InsightList = (output, context) => {
|
|
690
|
+
const retVal = (output || [])
|
|
691
|
+
.filter((e) => e != null)
|
|
692
|
+
.map((entry) => {
|
|
693
|
+
return de_Insight(entry);
|
|
694
|
+
});
|
|
695
|
+
return retVal;
|
|
696
|
+
};
|
|
697
|
+
const de_ListPerformanceAnalysisReportsResponse = (output, context) => {
|
|
698
|
+
return smithyClient.take(output, {
|
|
699
|
+
AnalysisReports: (_) => de_AnalysisReportSummaryList(_),
|
|
700
|
+
NextToken: smithyClient.expectString,
|
|
701
|
+
});
|
|
702
|
+
};
|
|
703
|
+
const de_MetricKeyDataPoints = (output, context) => {
|
|
704
|
+
return smithyClient.take(output, {
|
|
705
|
+
DataPoints: (_) => de_DataPointsList(_),
|
|
706
|
+
Key: smithyClient._json,
|
|
707
|
+
});
|
|
708
|
+
};
|
|
709
|
+
const de_MetricKeyDataPointsList = (output, context) => {
|
|
710
|
+
const retVal = (output || [])
|
|
711
|
+
.filter((e) => e != null)
|
|
712
|
+
.map((entry) => {
|
|
713
|
+
return de_MetricKeyDataPoints(entry);
|
|
714
|
+
});
|
|
715
|
+
return retVal;
|
|
716
|
+
};
|
|
717
|
+
const de_MetricValuesList = (output, context) => {
|
|
718
|
+
const retVal = (output || [])
|
|
719
|
+
.filter((e) => e != null)
|
|
720
|
+
.map((entry) => {
|
|
721
|
+
return smithyClient.limitedParseDouble(entry);
|
|
722
|
+
});
|
|
723
|
+
return retVal;
|
|
724
|
+
};
|
|
725
|
+
const de_PerformanceInsightsMetric = (output, context) => {
|
|
726
|
+
return smithyClient.take(output, {
|
|
727
|
+
Dimensions: smithyClient._json,
|
|
728
|
+
DisplayName: smithyClient.expectString,
|
|
729
|
+
Filter: smithyClient._json,
|
|
730
|
+
Metric: smithyClient.expectString,
|
|
731
|
+
Value: smithyClient.limitedParseDouble,
|
|
732
|
+
});
|
|
733
|
+
};
|
|
734
|
+
const deserializeMetadata = (output) => ({
|
|
735
|
+
httpStatusCode: output.statusCode,
|
|
736
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
737
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
738
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
739
|
+
});
|
|
740
|
+
const throwDefaultError = smithyClient.withBaseException(PIServiceException);
|
|
741
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
742
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
743
|
+
const contents = {
|
|
744
|
+
protocol,
|
|
745
|
+
hostname,
|
|
746
|
+
port,
|
|
747
|
+
method: "POST",
|
|
748
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
749
|
+
headers,
|
|
750
|
+
};
|
|
751
|
+
if (body !== undefined) {
|
|
752
|
+
contents.body = body;
|
|
753
|
+
}
|
|
754
|
+
return new protocolHttp.HttpRequest(contents);
|
|
755
|
+
};
|
|
756
|
+
function sharedHeaders(operation) {
|
|
757
|
+
return {
|
|
758
|
+
"content-type": "application/x-amz-json-1.1",
|
|
759
|
+
"x-amz-target": `PerformanceInsightsv20180227.${operation}`,
|
|
760
|
+
};
|
|
761
|
+
}
|
|
1052
762
|
|
|
1053
|
-
|
|
763
|
+
class CreatePerformanceAnalysisReportCommand extends smithyClient.Command
|
|
764
|
+
.classBuilder()
|
|
765
|
+
.ep(commonParams)
|
|
766
|
+
.m(function (Command, cs, config, o) {
|
|
767
|
+
return [
|
|
768
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
769
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
770
|
+
];
|
|
771
|
+
})
|
|
772
|
+
.s("PerformanceInsightsv20180227", "CreatePerformanceAnalysisReport", {})
|
|
773
|
+
.n("PIClient", "CreatePerformanceAnalysisReportCommand")
|
|
774
|
+
.f(void 0, void 0)
|
|
775
|
+
.ser(se_CreatePerformanceAnalysisReportCommand)
|
|
776
|
+
.de(de_CreatePerformanceAnalysisReportCommand)
|
|
777
|
+
.build() {
|
|
778
|
+
}
|
|
1054
779
|
|
|
780
|
+
class DeletePerformanceAnalysisReportCommand extends smithyClient.Command
|
|
781
|
+
.classBuilder()
|
|
782
|
+
.ep(commonParams)
|
|
783
|
+
.m(function (Command, cs, config, o) {
|
|
784
|
+
return [
|
|
785
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
786
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
787
|
+
];
|
|
788
|
+
})
|
|
789
|
+
.s("PerformanceInsightsv20180227", "DeletePerformanceAnalysisReport", {})
|
|
790
|
+
.n("PIClient", "DeletePerformanceAnalysisReportCommand")
|
|
791
|
+
.f(void 0, void 0)
|
|
792
|
+
.ser(se_DeletePerformanceAnalysisReportCommand)
|
|
793
|
+
.de(de_DeletePerformanceAnalysisReportCommand)
|
|
794
|
+
.build() {
|
|
795
|
+
}
|
|
1055
796
|
|
|
797
|
+
class DescribeDimensionKeysCommand extends smithyClient.Command
|
|
798
|
+
.classBuilder()
|
|
799
|
+
.ep(commonParams)
|
|
800
|
+
.m(function (Command, cs, config, o) {
|
|
801
|
+
return [
|
|
802
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
803
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
804
|
+
];
|
|
805
|
+
})
|
|
806
|
+
.s("PerformanceInsightsv20180227", "DescribeDimensionKeys", {})
|
|
807
|
+
.n("PIClient", "DescribeDimensionKeysCommand")
|
|
808
|
+
.f(void 0, void 0)
|
|
809
|
+
.ser(se_DescribeDimensionKeysCommand)
|
|
810
|
+
.de(de_DescribeDimensionKeysCommand)
|
|
811
|
+
.build() {
|
|
812
|
+
}
|
|
1056
813
|
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
(
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
}
|
|
814
|
+
class GetDimensionKeyDetailsCommand extends smithyClient.Command
|
|
815
|
+
.classBuilder()
|
|
816
|
+
.ep(commonParams)
|
|
817
|
+
.m(function (Command, cs, config, o) {
|
|
818
|
+
return [
|
|
819
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
820
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
821
|
+
];
|
|
822
|
+
})
|
|
823
|
+
.s("PerformanceInsightsv20180227", "GetDimensionKeyDetails", {})
|
|
824
|
+
.n("PIClient", "GetDimensionKeyDetailsCommand")
|
|
825
|
+
.f(void 0, void 0)
|
|
826
|
+
.ser(se_GetDimensionKeyDetailsCommand)
|
|
827
|
+
.de(de_GetDimensionKeyDetailsCommand)
|
|
828
|
+
.build() {
|
|
829
|
+
}
|
|
1067
830
|
|
|
1068
|
-
|
|
831
|
+
class GetPerformanceAnalysisReportCommand extends smithyClient.Command
|
|
832
|
+
.classBuilder()
|
|
833
|
+
.ep(commonParams)
|
|
834
|
+
.m(function (Command, cs, config, o) {
|
|
835
|
+
return [
|
|
836
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
837
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
838
|
+
];
|
|
839
|
+
})
|
|
840
|
+
.s("PerformanceInsightsv20180227", "GetPerformanceAnalysisReport", {})
|
|
841
|
+
.n("PIClient", "GetPerformanceAnalysisReportCommand")
|
|
842
|
+
.f(void 0, GetPerformanceAnalysisReportResponseFilterSensitiveLog)
|
|
843
|
+
.ser(se_GetPerformanceAnalysisReportCommand)
|
|
844
|
+
.de(de_GetPerformanceAnalysisReportCommand)
|
|
845
|
+
.build() {
|
|
846
|
+
}
|
|
1069
847
|
|
|
848
|
+
class GetResourceMetadataCommand extends smithyClient.Command
|
|
849
|
+
.classBuilder()
|
|
850
|
+
.ep(commonParams)
|
|
851
|
+
.m(function (Command, cs, config, o) {
|
|
852
|
+
return [
|
|
853
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
854
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
855
|
+
];
|
|
856
|
+
})
|
|
857
|
+
.s("PerformanceInsightsv20180227", "GetResourceMetadata", {})
|
|
858
|
+
.n("PIClient", "GetResourceMetadataCommand")
|
|
859
|
+
.f(void 0, void 0)
|
|
860
|
+
.ser(se_GetResourceMetadataCommand)
|
|
861
|
+
.de(de_GetResourceMetadataCommand)
|
|
862
|
+
.build() {
|
|
863
|
+
}
|
|
1070
864
|
|
|
865
|
+
class GetResourceMetricsCommand extends smithyClient.Command
|
|
866
|
+
.classBuilder()
|
|
867
|
+
.ep(commonParams)
|
|
868
|
+
.m(function (Command, cs, config, o) {
|
|
869
|
+
return [
|
|
870
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
871
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
872
|
+
];
|
|
873
|
+
})
|
|
874
|
+
.s("PerformanceInsightsv20180227", "GetResourceMetrics", {})
|
|
875
|
+
.n("PIClient", "GetResourceMetricsCommand")
|
|
876
|
+
.f(void 0, void 0)
|
|
877
|
+
.ser(se_GetResourceMetricsCommand)
|
|
878
|
+
.de(de_GetResourceMetricsCommand)
|
|
879
|
+
.build() {
|
|
880
|
+
}
|
|
1071
881
|
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
(
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
}
|
|
882
|
+
class ListAvailableResourceDimensionsCommand extends smithyClient.Command
|
|
883
|
+
.classBuilder()
|
|
884
|
+
.ep(commonParams)
|
|
885
|
+
.m(function (Command, cs, config, o) {
|
|
886
|
+
return [
|
|
887
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
888
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
889
|
+
];
|
|
890
|
+
})
|
|
891
|
+
.s("PerformanceInsightsv20180227", "ListAvailableResourceDimensions", {})
|
|
892
|
+
.n("PIClient", "ListAvailableResourceDimensionsCommand")
|
|
893
|
+
.f(void 0, void 0)
|
|
894
|
+
.ser(se_ListAvailableResourceDimensionsCommand)
|
|
895
|
+
.de(de_ListAvailableResourceDimensionsCommand)
|
|
896
|
+
.build() {
|
|
897
|
+
}
|
|
1082
898
|
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
}
|
|
1099
|
-
var PI = class extends PIClient {
|
|
1100
|
-
static {
|
|
1101
|
-
__name(this, "PI");
|
|
1102
|
-
}
|
|
1103
|
-
};
|
|
1104
|
-
(0, import_smithy_client.createAggregatedClient)(commands, PI);
|
|
899
|
+
class ListAvailableResourceMetricsCommand extends smithyClient.Command
|
|
900
|
+
.classBuilder()
|
|
901
|
+
.ep(commonParams)
|
|
902
|
+
.m(function (Command, cs, config, o) {
|
|
903
|
+
return [
|
|
904
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
905
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
906
|
+
];
|
|
907
|
+
})
|
|
908
|
+
.s("PerformanceInsightsv20180227", "ListAvailableResourceMetrics", {})
|
|
909
|
+
.n("PIClient", "ListAvailableResourceMetricsCommand")
|
|
910
|
+
.f(void 0, void 0)
|
|
911
|
+
.ser(se_ListAvailableResourceMetricsCommand)
|
|
912
|
+
.de(de_ListAvailableResourceMetricsCommand)
|
|
913
|
+
.build() {
|
|
914
|
+
}
|
|
1105
915
|
|
|
1106
|
-
|
|
916
|
+
class ListPerformanceAnalysisReportsCommand extends smithyClient.Command
|
|
917
|
+
.classBuilder()
|
|
918
|
+
.ep(commonParams)
|
|
919
|
+
.m(function (Command, cs, config, o) {
|
|
920
|
+
return [
|
|
921
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
922
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
923
|
+
];
|
|
924
|
+
})
|
|
925
|
+
.s("PerformanceInsightsv20180227", "ListPerformanceAnalysisReports", {})
|
|
926
|
+
.n("PIClient", "ListPerformanceAnalysisReportsCommand")
|
|
927
|
+
.f(void 0, void 0)
|
|
928
|
+
.ser(se_ListPerformanceAnalysisReportsCommand)
|
|
929
|
+
.de(de_ListPerformanceAnalysisReportsCommand)
|
|
930
|
+
.build() {
|
|
931
|
+
}
|
|
1107
932
|
|
|
1108
|
-
|
|
933
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
934
|
+
.classBuilder()
|
|
935
|
+
.ep(commonParams)
|
|
936
|
+
.m(function (Command, cs, config, o) {
|
|
937
|
+
return [
|
|
938
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
939
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
940
|
+
];
|
|
941
|
+
})
|
|
942
|
+
.s("PerformanceInsightsv20180227", "ListTagsForResource", {})
|
|
943
|
+
.n("PIClient", "ListTagsForResourceCommand")
|
|
944
|
+
.f(void 0, void 0)
|
|
945
|
+
.ser(se_ListTagsForResourceCommand)
|
|
946
|
+
.de(de_ListTagsForResourceCommand)
|
|
947
|
+
.build() {
|
|
948
|
+
}
|
|
1109
949
|
|
|
1110
|
-
|
|
950
|
+
class TagResourceCommand extends smithyClient.Command
|
|
951
|
+
.classBuilder()
|
|
952
|
+
.ep(commonParams)
|
|
953
|
+
.m(function (Command, cs, config, o) {
|
|
954
|
+
return [
|
|
955
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
956
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
957
|
+
];
|
|
958
|
+
})
|
|
959
|
+
.s("PerformanceInsightsv20180227", "TagResource", {})
|
|
960
|
+
.n("PIClient", "TagResourceCommand")
|
|
961
|
+
.f(void 0, void 0)
|
|
962
|
+
.ser(se_TagResourceCommand)
|
|
963
|
+
.de(de_TagResourceCommand)
|
|
964
|
+
.build() {
|
|
965
|
+
}
|
|
1111
966
|
|
|
1112
|
-
|
|
967
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
968
|
+
.classBuilder()
|
|
969
|
+
.ep(commonParams)
|
|
970
|
+
.m(function (Command, cs, config, o) {
|
|
971
|
+
return [
|
|
972
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
973
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
974
|
+
];
|
|
975
|
+
})
|
|
976
|
+
.s("PerformanceInsightsv20180227", "UntagResource", {})
|
|
977
|
+
.n("PIClient", "UntagResourceCommand")
|
|
978
|
+
.f(void 0, void 0)
|
|
979
|
+
.ser(se_UntagResourceCommand)
|
|
980
|
+
.de(de_UntagResourceCommand)
|
|
981
|
+
.build() {
|
|
982
|
+
}
|
|
1113
983
|
|
|
1114
|
-
|
|
984
|
+
const commands = {
|
|
985
|
+
CreatePerformanceAnalysisReportCommand,
|
|
986
|
+
DeletePerformanceAnalysisReportCommand,
|
|
987
|
+
DescribeDimensionKeysCommand,
|
|
988
|
+
GetDimensionKeyDetailsCommand,
|
|
989
|
+
GetPerformanceAnalysisReportCommand,
|
|
990
|
+
GetResourceMetadataCommand,
|
|
991
|
+
GetResourceMetricsCommand,
|
|
992
|
+
ListAvailableResourceDimensionsCommand,
|
|
993
|
+
ListAvailableResourceMetricsCommand,
|
|
994
|
+
ListPerformanceAnalysisReportsCommand,
|
|
995
|
+
ListTagsForResourceCommand,
|
|
996
|
+
TagResourceCommand,
|
|
997
|
+
UntagResourceCommand,
|
|
998
|
+
};
|
|
999
|
+
class PI extends PIClient {
|
|
1000
|
+
}
|
|
1001
|
+
smithyClient.createAggregatedClient(commands, PI);
|
|
1115
1002
|
|
|
1116
|
-
|
|
1003
|
+
const paginateDescribeDimensionKeys = core.createPaginator(PIClient, DescribeDimensionKeysCommand, "NextToken", "NextToken", "MaxResults");
|
|
1117
1004
|
|
|
1118
|
-
|
|
1005
|
+
const paginateGetResourceMetrics = core.createPaginator(PIClient, GetResourceMetricsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1119
1006
|
|
|
1120
|
-
|
|
1007
|
+
const paginateListAvailableResourceDimensions = core.createPaginator(PIClient, ListAvailableResourceDimensionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1121
1008
|
|
|
1122
|
-
|
|
1009
|
+
const paginateListAvailableResourceMetrics = core.createPaginator(PIClient, ListAvailableResourceMetricsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1123
1010
|
|
|
1124
|
-
|
|
1125
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1011
|
+
const paginateListPerformanceAnalysisReports = core.createPaginator(PIClient, ListPerformanceAnalysisReportsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1126
1012
|
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
PIClient,
|
|
1131
|
-
PI,
|
|
1132
|
-
$Command,
|
|
1133
|
-
CreatePerformanceAnalysisReportCommand,
|
|
1134
|
-
DeletePerformanceAnalysisReportCommand,
|
|
1135
|
-
DescribeDimensionKeysCommand,
|
|
1136
|
-
GetDimensionKeyDetailsCommand,
|
|
1137
|
-
GetPerformanceAnalysisReportCommand,
|
|
1138
|
-
GetResourceMetadataCommand,
|
|
1139
|
-
GetResourceMetricsCommand,
|
|
1140
|
-
ListAvailableResourceDimensionsCommand,
|
|
1141
|
-
ListAvailableResourceMetricsCommand,
|
|
1142
|
-
ListPerformanceAnalysisReportsCommand,
|
|
1143
|
-
ListTagsForResourceCommand,
|
|
1144
|
-
TagResourceCommand,
|
|
1145
|
-
UntagResourceCommand,
|
|
1146
|
-
paginateDescribeDimensionKeys,
|
|
1147
|
-
paginateGetResourceMetrics,
|
|
1148
|
-
paginateListAvailableResourceDimensions,
|
|
1149
|
-
paginateListAvailableResourceMetrics,
|
|
1150
|
-
paginateListPerformanceAnalysisReports,
|
|
1151
|
-
AcceptLanguage,
|
|
1152
|
-
ContextType,
|
|
1153
|
-
Severity,
|
|
1154
|
-
ServiceType,
|
|
1155
|
-
AnalysisStatus,
|
|
1156
|
-
FineGrainedAction,
|
|
1157
|
-
InternalServiceError,
|
|
1158
|
-
InvalidArgumentException,
|
|
1159
|
-
NotAuthorizedException,
|
|
1160
|
-
DetailStatus,
|
|
1161
|
-
FeatureStatus,
|
|
1162
|
-
TextFormat,
|
|
1163
|
-
PeriodAlignment,
|
|
1164
|
-
RecommendationFilterSensitiveLog,
|
|
1165
|
-
InsightFilterSensitiveLog,
|
|
1166
|
-
AnalysisReportFilterSensitiveLog,
|
|
1167
|
-
GetPerformanceAnalysisReportResponseFilterSensitiveLog
|
|
1013
|
+
Object.defineProperty(exports, "$Command", {
|
|
1014
|
+
enumerable: true,
|
|
1015
|
+
get: function () { return smithyClient.Command; }
|
|
1168
1016
|
});
|
|
1169
|
-
|
|
1017
|
+
Object.defineProperty(exports, "__Client", {
|
|
1018
|
+
enumerable: true,
|
|
1019
|
+
get: function () { return smithyClient.Client; }
|
|
1020
|
+
});
|
|
1021
|
+
exports.AcceptLanguage = AcceptLanguage;
|
|
1022
|
+
exports.AnalysisReportFilterSensitiveLog = AnalysisReportFilterSensitiveLog;
|
|
1023
|
+
exports.AnalysisStatus = AnalysisStatus;
|
|
1024
|
+
exports.ContextType = ContextType;
|
|
1025
|
+
exports.CreatePerformanceAnalysisReportCommand = CreatePerformanceAnalysisReportCommand;
|
|
1026
|
+
exports.DeletePerformanceAnalysisReportCommand = DeletePerformanceAnalysisReportCommand;
|
|
1027
|
+
exports.DescribeDimensionKeysCommand = DescribeDimensionKeysCommand;
|
|
1028
|
+
exports.DetailStatus = DetailStatus;
|
|
1029
|
+
exports.FeatureStatus = FeatureStatus;
|
|
1030
|
+
exports.FineGrainedAction = FineGrainedAction;
|
|
1031
|
+
exports.GetDimensionKeyDetailsCommand = GetDimensionKeyDetailsCommand;
|
|
1032
|
+
exports.GetPerformanceAnalysisReportCommand = GetPerformanceAnalysisReportCommand;
|
|
1033
|
+
exports.GetPerformanceAnalysisReportResponseFilterSensitiveLog = GetPerformanceAnalysisReportResponseFilterSensitiveLog;
|
|
1034
|
+
exports.GetResourceMetadataCommand = GetResourceMetadataCommand;
|
|
1035
|
+
exports.GetResourceMetricsCommand = GetResourceMetricsCommand;
|
|
1036
|
+
exports.InsightFilterSensitiveLog = InsightFilterSensitiveLog;
|
|
1037
|
+
exports.InternalServiceError = InternalServiceError;
|
|
1038
|
+
exports.InvalidArgumentException = InvalidArgumentException;
|
|
1039
|
+
exports.ListAvailableResourceDimensionsCommand = ListAvailableResourceDimensionsCommand;
|
|
1040
|
+
exports.ListAvailableResourceMetricsCommand = ListAvailableResourceMetricsCommand;
|
|
1041
|
+
exports.ListPerformanceAnalysisReportsCommand = ListPerformanceAnalysisReportsCommand;
|
|
1042
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1043
|
+
exports.NotAuthorizedException = NotAuthorizedException;
|
|
1044
|
+
exports.PI = PI;
|
|
1045
|
+
exports.PIClient = PIClient;
|
|
1046
|
+
exports.PIServiceException = PIServiceException;
|
|
1047
|
+
exports.PeriodAlignment = PeriodAlignment;
|
|
1048
|
+
exports.RecommendationFilterSensitiveLog = RecommendationFilterSensitiveLog;
|
|
1049
|
+
exports.ServiceType = ServiceType;
|
|
1050
|
+
exports.Severity = Severity;
|
|
1051
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1052
|
+
exports.TextFormat = TextFormat;
|
|
1053
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1054
|
+
exports.paginateDescribeDimensionKeys = paginateDescribeDimensionKeys;
|
|
1055
|
+
exports.paginateGetResourceMetrics = paginateGetResourceMetrics;
|
|
1056
|
+
exports.paginateListAvailableResourceDimensions = paginateListAvailableResourceDimensions;
|
|
1057
|
+
exports.paginateListAvailableResourceMetrics = paginateListAvailableResourceMetrics;
|
|
1058
|
+
exports.paginateListPerformanceAnalysisReports = paginateListPerformanceAnalysisReports;
|