@aws-sdk/client-pi 3.35.0 → 3.38.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/CHANGELOG.md +47 -0
- package/dist-cjs/PI.js +0 -25
- package/dist-cjs/PIClient.js +0 -30
- package/dist-cjs/commands/DescribeDimensionKeysCommand.js +0 -30
- package/dist-cjs/commands/GetDimensionKeyDetailsCommand.js +0 -28
- package/dist-cjs/commands/GetResourceMetricsCommand.js +0 -31
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +3 -6
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -52
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/PI.js +0 -1
- package/dist-es/PIClient.js +0 -1
- package/dist-es/commands/DescribeDimensionKeysCommand.js +0 -1
- package/dist-es/commands/GetDimensionKeyDetailsCommand.js +0 -1
- package/dist-es/commands/GetResourceMetricsCommand.js +0 -1
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +3 -6
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +3 -5
- package/dist-types/ts3.4/PI.d.ts +4 -47
- package/dist-types/ts3.4/PIClient.d.ts +24 -110
- package/dist-types/ts3.4/commands/DescribeDimensionKeysCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/GetDimensionKeyDetailsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetResourceMetricsCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/index.d.ts +3 -5
- package/dist-types/ts3.4/models/models_0.d.ts +82 -588
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/PI.js.map +0 -1
- package/dist-cjs/PIClient.js.map +0 -1
- package/dist-cjs/commands/DescribeDimensionKeysCommand.js.map +0 -1
- package/dist-cjs/commands/GetDimensionKeyDetailsCommand.js.map +0 -1
- package/dist-cjs/commands/GetResourceMetricsCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/PI.js.map +0 -1
- package/dist-es/PIClient.js.map +0 -1
- package/dist-es/commands/DescribeDimensionKeysCommand.js.map +0 -1
- package/dist-es/commands/GetDimensionKeyDetailsCommand.js.map +0 -1
- package/dist-es/commands/GetResourceMetricsCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/PI.ts +0 -154
- package/src/PIClient.ts +0 -272
- package/src/commands/DescribeDimensionKeysCommand.ts +0 -100
- package/src/commands/GetDimensionKeyDetailsCommand.ts +0 -98
- package/src/commands/GetResourceMetricsCommand.ts +0 -101
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -6
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -855
- package/src/protocols/Aws_json1_1.ts +0 -786
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/src/PIClient.ts
DELETED
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
|
-
RegionInputConfig,
|
|
5
|
-
RegionResolvedConfig,
|
|
6
|
-
resolveEndpointsConfig,
|
|
7
|
-
resolveRegionConfig,
|
|
8
|
-
} from "@aws-sdk/config-resolver";
|
|
9
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
-
import {
|
|
11
|
-
getHostHeaderPlugin,
|
|
12
|
-
HostHeaderInputConfig,
|
|
13
|
-
HostHeaderResolvedConfig,
|
|
14
|
-
resolveHostHeaderConfig,
|
|
15
|
-
} from "@aws-sdk/middleware-host-header";
|
|
16
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
-
import {
|
|
19
|
-
AwsAuthInputConfig,
|
|
20
|
-
AwsAuthResolvedConfig,
|
|
21
|
-
getAwsAuthPlugin,
|
|
22
|
-
resolveAwsAuthConfig,
|
|
23
|
-
} from "@aws-sdk/middleware-signing";
|
|
24
|
-
import {
|
|
25
|
-
getUserAgentPlugin,
|
|
26
|
-
resolveUserAgentConfig,
|
|
27
|
-
UserAgentInputConfig,
|
|
28
|
-
UserAgentResolvedConfig,
|
|
29
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
30
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
|
-
import {
|
|
32
|
-
Client as __Client,
|
|
33
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
34
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
-
} from "@aws-sdk/smithy-client";
|
|
36
|
-
import {
|
|
37
|
-
Credentials as __Credentials,
|
|
38
|
-
Decoder as __Decoder,
|
|
39
|
-
Encoder as __Encoder,
|
|
40
|
-
Hash as __Hash,
|
|
41
|
-
HashConstructor as __HashConstructor,
|
|
42
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
43
|
-
Logger as __Logger,
|
|
44
|
-
Provider as __Provider,
|
|
45
|
-
Provider,
|
|
46
|
-
RegionInfoProvider,
|
|
47
|
-
StreamCollector as __StreamCollector,
|
|
48
|
-
UrlParser as __UrlParser,
|
|
49
|
-
UserAgent as __UserAgent,
|
|
50
|
-
} from "@aws-sdk/types";
|
|
51
|
-
|
|
52
|
-
import {
|
|
53
|
-
DescribeDimensionKeysCommandInput,
|
|
54
|
-
DescribeDimensionKeysCommandOutput,
|
|
55
|
-
} from "./commands/DescribeDimensionKeysCommand";
|
|
56
|
-
import {
|
|
57
|
-
GetDimensionKeyDetailsCommandInput,
|
|
58
|
-
GetDimensionKeyDetailsCommandOutput,
|
|
59
|
-
} from "./commands/GetDimensionKeyDetailsCommand";
|
|
60
|
-
import { GetResourceMetricsCommandInput, GetResourceMetricsCommandOutput } from "./commands/GetResourceMetricsCommand";
|
|
61
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
62
|
-
|
|
63
|
-
export type ServiceInputTypes =
|
|
64
|
-
| DescribeDimensionKeysCommandInput
|
|
65
|
-
| GetDimensionKeyDetailsCommandInput
|
|
66
|
-
| GetResourceMetricsCommandInput;
|
|
67
|
-
|
|
68
|
-
export type ServiceOutputTypes =
|
|
69
|
-
| DescribeDimensionKeysCommandOutput
|
|
70
|
-
| GetDimensionKeyDetailsCommandOutput
|
|
71
|
-
| GetResourceMetricsCommandOutput;
|
|
72
|
-
|
|
73
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
74
|
-
/**
|
|
75
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
76
|
-
*/
|
|
77
|
-
requestHandler?: __HttpHandler;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
81
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
|
-
sha256?: __HashConstructor;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
88
|
-
* @internal
|
|
89
|
-
*/
|
|
90
|
-
urlParser?: __UrlParser;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* A function that can calculate the length of a request body.
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
96
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* A function that converts a stream into an array of bytes.
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
102
|
-
streamCollector?: __StreamCollector;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
106
|
-
* @internal
|
|
107
|
-
*/
|
|
108
|
-
base64Decoder?: __Decoder;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
112
|
-
* @internal
|
|
113
|
-
*/
|
|
114
|
-
base64Encoder?: __Encoder;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
118
|
-
* @internal
|
|
119
|
-
*/
|
|
120
|
-
utf8Decoder?: __Decoder;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
124
|
-
* @internal
|
|
125
|
-
*/
|
|
126
|
-
utf8Encoder?: __Encoder;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* The runtime environment.
|
|
130
|
-
* @internal
|
|
131
|
-
*/
|
|
132
|
-
runtime?: string;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
136
|
-
* trait of an operation.
|
|
137
|
-
*/
|
|
138
|
-
disableHostPrefix?: boolean;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
142
|
-
*/
|
|
143
|
-
maxAttempts?: number | __Provider<number>;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Specifies which retry algorithm to use.
|
|
147
|
-
*/
|
|
148
|
-
retryMode?: string | __Provider<string>;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Optional logger for logging debug/info/warn/error.
|
|
152
|
-
*/
|
|
153
|
-
logger?: __Logger;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Unique service identifier.
|
|
157
|
-
* @internal
|
|
158
|
-
*/
|
|
159
|
-
serviceId?: string;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* The AWS region to which this client will send requests
|
|
163
|
-
*/
|
|
164
|
-
region?: string | __Provider<string>;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Default credentials provider; Not available in browser runtime.
|
|
168
|
-
* @internal
|
|
169
|
-
*/
|
|
170
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
174
|
-
* @internal
|
|
175
|
-
*/
|
|
176
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
180
|
-
* @internal
|
|
181
|
-
*/
|
|
182
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
type PIClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
186
|
-
ClientDefaults &
|
|
187
|
-
RegionInputConfig &
|
|
188
|
-
EndpointsInputConfig &
|
|
189
|
-
RetryInputConfig &
|
|
190
|
-
HostHeaderInputConfig &
|
|
191
|
-
AwsAuthInputConfig &
|
|
192
|
-
UserAgentInputConfig;
|
|
193
|
-
/**
|
|
194
|
-
* The configuration interface of PIClient class constructor that set the region, credentials and other options.
|
|
195
|
-
*/
|
|
196
|
-
export interface PIClientConfig extends PIClientConfigType {}
|
|
197
|
-
|
|
198
|
-
type PIClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
199
|
-
Required<ClientDefaults> &
|
|
200
|
-
RegionResolvedConfig &
|
|
201
|
-
EndpointsResolvedConfig &
|
|
202
|
-
RetryResolvedConfig &
|
|
203
|
-
HostHeaderResolvedConfig &
|
|
204
|
-
AwsAuthResolvedConfig &
|
|
205
|
-
UserAgentResolvedConfig;
|
|
206
|
-
/**
|
|
207
|
-
* The resolved configuration interface of PIClient class. This is resolved and normalized from the {@link PIClientConfig | constructor configuration interface}.
|
|
208
|
-
*/
|
|
209
|
-
export interface PIClientResolvedConfig extends PIClientResolvedConfigType {}
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* <fullname>Amazon RDS Performance Insights</fullname>
|
|
213
|
-
*
|
|
214
|
-
* <p>Amazon RDS Performance Insights enables you to monitor and explore different dimensions of
|
|
215
|
-
* database load based on data captured from a running DB instance. The guide provides detailed
|
|
216
|
-
* information about Performance Insights data types, parameters and errors.</p>
|
|
217
|
-
*
|
|
218
|
-
* <p>When Performance Insights is enabled, the Amazon RDS Performance Insights API provides visibility into the performance of your DB instance. Amazon
|
|
219
|
-
* CloudWatch provides the authoritative source for AWS service-vended monitoring metrics. Performance Insights offers a domain-specific
|
|
220
|
-
* view of DB load. </p>
|
|
221
|
-
* <p>DB load is measured as Average Active Sessions. Performance Insights provides the data to API consumers as a two-dimensional
|
|
222
|
-
* time-series dataset. The time dimension provides DB load data for each time point in the queried time range. Each time
|
|
223
|
-
* point decomposes overall load in relation to the requested dimensions, measured at that time point. Examples include
|
|
224
|
-
* SQL, Wait event, User, and Host.</p>
|
|
225
|
-
*
|
|
226
|
-
* <ul>
|
|
227
|
-
* <li>
|
|
228
|
-
* <p>To learn more about Performance Insights and Amazon Aurora DB instances, go to the <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights.html">Amazon Aurora User Guide</a>.</p>
|
|
229
|
-
* </li>
|
|
230
|
-
* <li>
|
|
231
|
-
* <p>To learn more about Performance Insights and Amazon RDS DB instances, go to the <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html">Amazon RDS User Guide</a>.</p>
|
|
232
|
-
* </li>
|
|
233
|
-
* </ul>
|
|
234
|
-
*/
|
|
235
|
-
export class PIClient extends __Client<
|
|
236
|
-
__HttpHandlerOptions,
|
|
237
|
-
ServiceInputTypes,
|
|
238
|
-
ServiceOutputTypes,
|
|
239
|
-
PIClientResolvedConfig
|
|
240
|
-
> {
|
|
241
|
-
/**
|
|
242
|
-
* The resolved configuration of PIClient class. This is resolved and normalized from the {@link PIClientConfig | constructor configuration interface}.
|
|
243
|
-
*/
|
|
244
|
-
readonly config: PIClientResolvedConfig;
|
|
245
|
-
|
|
246
|
-
constructor(configuration: PIClientConfig) {
|
|
247
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
248
|
-
const _config_1 = resolveRegionConfig(_config_0);
|
|
249
|
-
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
250
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
251
|
-
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
252
|
-
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
253
|
-
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
254
|
-
super(_config_6);
|
|
255
|
-
this.config = _config_6;
|
|
256
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
257
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
258
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
259
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
260
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
261
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
266
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
267
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
268
|
-
*/
|
|
269
|
-
destroy(): void {
|
|
270
|
-
super.destroy();
|
|
271
|
-
}
|
|
272
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { DescribeDimensionKeysRequest, DescribeDimensionKeysResponse } from "../models/models_0";
|
|
15
|
-
import { PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PIClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DescribeDimensionKeysCommand,
|
|
18
|
-
serializeAws_json1_1DescribeDimensionKeysCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DescribeDimensionKeysCommandInput extends DescribeDimensionKeysRequest {}
|
|
22
|
-
export interface DescribeDimensionKeysCommandOutput extends DescribeDimensionKeysResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>For a specific time period, retrieve the top <code>N</code> dimension keys for a
|
|
26
|
-
* metric.</p>
|
|
27
|
-
* <note>
|
|
28
|
-
* <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements,
|
|
29
|
-
* only the first 500 bytes are returned.</p>
|
|
30
|
-
* </note>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { PIClient, DescribeDimensionKeysCommand } from "@aws-sdk/client-pi"; // ES Modules import
|
|
35
|
-
* // const { PIClient, DescribeDimensionKeysCommand } = require("@aws-sdk/client-pi"); // CommonJS import
|
|
36
|
-
* const client = new PIClient(config);
|
|
37
|
-
* const command = new DescribeDimensionKeysCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link DescribeDimensionKeysCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link DescribeDimensionKeysCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link PIClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class DescribeDimensionKeysCommand extends $Command<
|
|
47
|
-
DescribeDimensionKeysCommandInput,
|
|
48
|
-
DescribeDimensionKeysCommandOutput,
|
|
49
|
-
PIClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: DescribeDimensionKeysCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: PIClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<DescribeDimensionKeysCommandInput, DescribeDimensionKeysCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "PIClient";
|
|
74
|
-
const commandName = "DescribeDimensionKeysCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: DescribeDimensionKeysRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: DescribeDimensionKeysResponse.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(input: DescribeDimensionKeysCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
91
|
-
return serializeAws_json1_1DescribeDimensionKeysCommand(input, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeDimensionKeysCommandOutput> {
|
|
95
|
-
return deserializeAws_json1_1DescribeDimensionKeysCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { GetDimensionKeyDetailsRequest, GetDimensionKeyDetailsResponse } from "../models/models_0";
|
|
15
|
-
import { PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PIClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1GetDimensionKeyDetailsCommand,
|
|
18
|
-
serializeAws_json1_1GetDimensionKeyDetailsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface GetDimensionKeyDetailsCommandInput extends GetDimensionKeyDetailsRequest {}
|
|
22
|
-
export interface GetDimensionKeyDetailsCommandOutput extends GetDimensionKeyDetailsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Get the attributes of the specified dimension group for a DB instance or data source. For example, if you specify a
|
|
26
|
-
* SQL ID, <code>GetDimensionKeyDetails</code> retrieves the full text of the dimension <code>db.sql.statement</code>
|
|
27
|
-
* associated with this ID. This operation is useful because <code>GetResourceMetrics</code> and
|
|
28
|
-
* <code>DescribeDimensionKeys</code> don't support retrieval of large SQL statement text.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { PIClient, GetDimensionKeyDetailsCommand } from "@aws-sdk/client-pi"; // ES Modules import
|
|
33
|
-
* // const { PIClient, GetDimensionKeyDetailsCommand } = require("@aws-sdk/client-pi"); // CommonJS import
|
|
34
|
-
* const client = new PIClient(config);
|
|
35
|
-
* const command = new GetDimensionKeyDetailsCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link GetDimensionKeyDetailsCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link GetDimensionKeyDetailsCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link PIClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class GetDimensionKeyDetailsCommand extends $Command<
|
|
45
|
-
GetDimensionKeyDetailsCommandInput,
|
|
46
|
-
GetDimensionKeyDetailsCommandOutput,
|
|
47
|
-
PIClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: GetDimensionKeyDetailsCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: PIClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<GetDimensionKeyDetailsCommandInput, GetDimensionKeyDetailsCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "PIClient";
|
|
72
|
-
const commandName = "GetDimensionKeyDetailsCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: GetDimensionKeyDetailsRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: GetDimensionKeyDetailsResponse.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: GetDimensionKeyDetailsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_1GetDimensionKeyDetailsCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetDimensionKeyDetailsCommandOutput> {
|
|
93
|
-
return deserializeAws_json1_1GetDimensionKeyDetailsCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { GetResourceMetricsRequest, GetResourceMetricsResponse } from "../models/models_0";
|
|
15
|
-
import { PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PIClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1GetResourceMetricsCommand,
|
|
18
|
-
serializeAws_json1_1GetResourceMetricsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface GetResourceMetricsCommandInput extends GetResourceMetricsRequest {}
|
|
22
|
-
export interface GetResourceMetricsCommandOutput extends GetResourceMetricsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieve Performance Insights metrics for a set of data sources, over a time period. You can provide
|
|
26
|
-
* specific dimension groups and dimensions, and provide aggregation and filtering criteria for
|
|
27
|
-
* each group.</p>
|
|
28
|
-
* <note>
|
|
29
|
-
* <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements,
|
|
30
|
-
* only the first 500 bytes are returned.</p>
|
|
31
|
-
* </note>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { PIClient, GetResourceMetricsCommand } from "@aws-sdk/client-pi"; // ES Modules import
|
|
36
|
-
* // const { PIClient, GetResourceMetricsCommand } = require("@aws-sdk/client-pi"); // CommonJS import
|
|
37
|
-
* const client = new PIClient(config);
|
|
38
|
-
* const command = new GetResourceMetricsCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link GetResourceMetricsCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link GetResourceMetricsCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link PIClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
export class GetResourceMetricsCommand extends $Command<
|
|
48
|
-
GetResourceMetricsCommandInput,
|
|
49
|
-
GetResourceMetricsCommandOutput,
|
|
50
|
-
PIClientResolvedConfig
|
|
51
|
-
> {
|
|
52
|
-
// Start section: command_properties
|
|
53
|
-
// End section: command_properties
|
|
54
|
-
|
|
55
|
-
constructor(readonly input: GetResourceMetricsCommandInput) {
|
|
56
|
-
// Start section: command_constructor
|
|
57
|
-
super();
|
|
58
|
-
// End section: command_constructor
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
resolveMiddleware(
|
|
65
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
66
|
-
configuration: PIClientResolvedConfig,
|
|
67
|
-
options?: __HttpHandlerOptions
|
|
68
|
-
): Handler<GetResourceMetricsCommandInput, GetResourceMetricsCommandOutput> {
|
|
69
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
70
|
-
|
|
71
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
72
|
-
|
|
73
|
-
const { logger } = configuration;
|
|
74
|
-
const clientName = "PIClient";
|
|
75
|
-
const commandName = "GetResourceMetricsCommand";
|
|
76
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
77
|
-
logger,
|
|
78
|
-
clientName,
|
|
79
|
-
commandName,
|
|
80
|
-
inputFilterSensitiveLog: GetResourceMetricsRequest.filterSensitiveLog,
|
|
81
|
-
outputFilterSensitiveLog: GetResourceMetricsResponse.filterSensitiveLog,
|
|
82
|
-
};
|
|
83
|
-
const { requestHandler } = configuration;
|
|
84
|
-
return stack.resolve(
|
|
85
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
86
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
87
|
-
handlerExecutionContext
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private serialize(input: GetResourceMetricsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
92
|
-
return serializeAws_json1_1GetResourceMetricsCommand(input, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetResourceMetricsCommandOutput> {
|
|
96
|
-
return deserializeAws_json1_1GetResourceMetricsCommand(output, context);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Start section: command_body_extra
|
|
100
|
-
// End section: command_body_extra
|
|
101
|
-
}
|
package/src/endpoints.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
|
|
2
|
-
import { RegionInfoProvider } from "@aws-sdk/types";
|
|
3
|
-
|
|
4
|
-
const regionHash: RegionHash = {};
|
|
5
|
-
|
|
6
|
-
const partitionHash: PartitionHash = {
|
|
7
|
-
aws: {
|
|
8
|
-
regions: [
|
|
9
|
-
"af-south-1",
|
|
10
|
-
"ap-east-1",
|
|
11
|
-
"ap-northeast-1",
|
|
12
|
-
"ap-northeast-2",
|
|
13
|
-
"ap-northeast-3",
|
|
14
|
-
"ap-south-1",
|
|
15
|
-
"ap-southeast-1",
|
|
16
|
-
"ap-southeast-2",
|
|
17
|
-
"ca-central-1",
|
|
18
|
-
"eu-central-1",
|
|
19
|
-
"eu-north-1",
|
|
20
|
-
"eu-south-1",
|
|
21
|
-
"eu-west-1",
|
|
22
|
-
"eu-west-2",
|
|
23
|
-
"eu-west-3",
|
|
24
|
-
"me-south-1",
|
|
25
|
-
"sa-east-1",
|
|
26
|
-
"us-east-1",
|
|
27
|
-
"us-east-2",
|
|
28
|
-
"us-west-1",
|
|
29
|
-
"us-west-2",
|
|
30
|
-
],
|
|
31
|
-
hostname: "pi.{region}.amazonaws.com",
|
|
32
|
-
},
|
|
33
|
-
"aws-cn": {
|
|
34
|
-
regions: ["cn-north-1", "cn-northwest-1"],
|
|
35
|
-
hostname: "pi.{region}.amazonaws.com.cn",
|
|
36
|
-
},
|
|
37
|
-
"aws-iso": {
|
|
38
|
-
regions: ["us-iso-east-1"],
|
|
39
|
-
hostname: "pi.{region}.c2s.ic.gov",
|
|
40
|
-
},
|
|
41
|
-
"aws-iso-b": {
|
|
42
|
-
regions: ["us-isob-east-1"],
|
|
43
|
-
hostname: "pi.{region}.sc2s.sgov.gov",
|
|
44
|
-
},
|
|
45
|
-
"aws-us-gov": {
|
|
46
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
47
|
-
hostname: "pi.{region}.amazonaws.com",
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
|
|
52
|
-
getRegionInfo(region, {
|
|
53
|
-
...options,
|
|
54
|
-
signingService: "pi",
|
|
55
|
-
regionHash,
|
|
56
|
-
partitionHash,
|
|
57
|
-
});
|
package/src/index.ts
DELETED
package/src/models/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|