@aws-sdk/client-amp 3.35.0 → 3.36.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.
Files changed (171) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/Amp.js +0 -1
  3. package/dist-cjs/AmpClient.js +0 -1
  4. package/dist-cjs/commands/CreateAlertManagerDefinitionCommand.js +0 -1
  5. package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js +0 -1
  6. package/dist-cjs/commands/CreateWorkspaceCommand.js +0 -1
  7. package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js +0 -1
  8. package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js +0 -1
  9. package/dist-cjs/commands/DeleteWorkspaceCommand.js +0 -1
  10. package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js +0 -1
  11. package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js +0 -1
  12. package/dist-cjs/commands/DescribeWorkspaceCommand.js +0 -1
  13. package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js +0 -1
  14. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  15. package/dist-cjs/commands/ListWorkspacesCommand.js +0 -1
  16. package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js +0 -1
  17. package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js +0 -1
  18. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  19. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  20. package/dist-cjs/commands/UpdateWorkspaceAliasCommand.js +0 -1
  21. package/dist-cjs/endpoints.js +0 -1
  22. package/dist-cjs/index.js +0 -1
  23. package/dist-cjs/models/index.js +0 -1
  24. package/dist-cjs/models/models_0.js +0 -1
  25. package/dist-cjs/pagination/Interfaces.js +0 -1
  26. package/dist-cjs/pagination/ListRuleGroupsNamespacesPaginator.js +0 -1
  27. package/dist-cjs/pagination/ListWorkspacesPaginator.js +0 -1
  28. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  29. package/dist-cjs/runtimeConfig.browser.js +2 -3
  30. package/dist-cjs/runtimeConfig.js +3 -4
  31. package/dist-cjs/runtimeConfig.native.js +0 -1
  32. package/dist-cjs/runtimeConfig.shared.js +0 -1
  33. package/dist-cjs/waiters/waitForWorkspaceActive.js +0 -1
  34. package/dist-cjs/waiters/waitForWorkspaceDeleted.js +0 -1
  35. package/dist-es/Amp.js +0 -1
  36. package/dist-es/AmpClient.js +0 -1
  37. package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +0 -1
  38. package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +0 -1
  39. package/dist-es/commands/CreateWorkspaceCommand.js +0 -1
  40. package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +0 -1
  41. package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +0 -1
  42. package/dist-es/commands/DeleteWorkspaceCommand.js +0 -1
  43. package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +0 -1
  44. package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +0 -1
  45. package/dist-es/commands/DescribeWorkspaceCommand.js +0 -1
  46. package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +0 -1
  47. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  48. package/dist-es/commands/ListWorkspacesCommand.js +0 -1
  49. package/dist-es/commands/PutAlertManagerDefinitionCommand.js +0 -1
  50. package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +0 -1
  51. package/dist-es/commands/TagResourceCommand.js +0 -1
  52. package/dist-es/commands/UntagResourceCommand.js +0 -1
  53. package/dist-es/commands/UpdateWorkspaceAliasCommand.js +0 -1
  54. package/dist-es/endpoints.js +0 -1
  55. package/dist-es/index.js +0 -1
  56. package/dist-es/models/index.js +0 -1
  57. package/dist-es/models/models_0.js +0 -1
  58. package/dist-es/pagination/Interfaces.js +0 -1
  59. package/dist-es/pagination/ListRuleGroupsNamespacesPaginator.js +0 -1
  60. package/dist-es/pagination/ListWorkspacesPaginator.js +0 -1
  61. package/dist-es/protocols/Aws_restJson1.js +0 -1
  62. package/dist-es/runtimeConfig.browser.js +1 -2
  63. package/dist-es/runtimeConfig.js +2 -3
  64. package/dist-es/runtimeConfig.native.js +0 -1
  65. package/dist-es/runtimeConfig.shared.js +0 -1
  66. package/dist-es/waiters/waitForWorkspaceActive.js +0 -1
  67. package/dist-es/waiters/waitForWorkspaceDeleted.js +0 -1
  68. package/package.json +34 -31
  69. package/dist-cjs/Amp.js.map +0 -1
  70. package/dist-cjs/AmpClient.js.map +0 -1
  71. package/dist-cjs/commands/CreateAlertManagerDefinitionCommand.js.map +0 -1
  72. package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js.map +0 -1
  73. package/dist-cjs/commands/CreateWorkspaceCommand.js.map +0 -1
  74. package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js.map +0 -1
  75. package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js.map +0 -1
  76. package/dist-cjs/commands/DeleteWorkspaceCommand.js.map +0 -1
  77. package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js.map +0 -1
  78. package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js.map +0 -1
  79. package/dist-cjs/commands/DescribeWorkspaceCommand.js.map +0 -1
  80. package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js.map +0 -1
  81. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  82. package/dist-cjs/commands/ListWorkspacesCommand.js.map +0 -1
  83. package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js.map +0 -1
  84. package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js.map +0 -1
  85. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  86. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  87. package/dist-cjs/commands/UpdateWorkspaceAliasCommand.js.map +0 -1
  88. package/dist-cjs/endpoints.js.map +0 -1
  89. package/dist-cjs/index.js.map +0 -1
  90. package/dist-cjs/models/index.js.map +0 -1
  91. package/dist-cjs/models/models_0.js.map +0 -1
  92. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  93. package/dist-cjs/pagination/ListRuleGroupsNamespacesPaginator.js.map +0 -1
  94. package/dist-cjs/pagination/ListWorkspacesPaginator.js.map +0 -1
  95. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  96. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  97. package/dist-cjs/runtimeConfig.js.map +0 -1
  98. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  99. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  100. package/dist-cjs/waiters/waitForWorkspaceActive.js.map +0 -1
  101. package/dist-cjs/waiters/waitForWorkspaceDeleted.js.map +0 -1
  102. package/dist-es/Amp.js.map +0 -1
  103. package/dist-es/AmpClient.js.map +0 -1
  104. package/dist-es/commands/CreateAlertManagerDefinitionCommand.js.map +0 -1
  105. package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js.map +0 -1
  106. package/dist-es/commands/CreateWorkspaceCommand.js.map +0 -1
  107. package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js.map +0 -1
  108. package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js.map +0 -1
  109. package/dist-es/commands/DeleteWorkspaceCommand.js.map +0 -1
  110. package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js.map +0 -1
  111. package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js.map +0 -1
  112. package/dist-es/commands/DescribeWorkspaceCommand.js.map +0 -1
  113. package/dist-es/commands/ListRuleGroupsNamespacesCommand.js.map +0 -1
  114. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  115. package/dist-es/commands/ListWorkspacesCommand.js.map +0 -1
  116. package/dist-es/commands/PutAlertManagerDefinitionCommand.js.map +0 -1
  117. package/dist-es/commands/PutRuleGroupsNamespaceCommand.js.map +0 -1
  118. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  119. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  120. package/dist-es/commands/UpdateWorkspaceAliasCommand.js.map +0 -1
  121. package/dist-es/endpoints.js.map +0 -1
  122. package/dist-es/index.js.map +0 -1
  123. package/dist-es/models/index.js.map +0 -1
  124. package/dist-es/models/models_0.js.map +0 -1
  125. package/dist-es/pagination/Interfaces.js.map +0 -1
  126. package/dist-es/pagination/ListRuleGroupsNamespacesPaginator.js.map +0 -1
  127. package/dist-es/pagination/ListWorkspacesPaginator.js.map +0 -1
  128. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  129. package/dist-es/runtimeConfig.browser.js.map +0 -1
  130. package/dist-es/runtimeConfig.js.map +0 -1
  131. package/dist-es/runtimeConfig.native.js.map +0 -1
  132. package/dist-es/runtimeConfig.shared.js.map +0 -1
  133. package/dist-es/waiters/waitForWorkspaceActive.js.map +0 -1
  134. package/dist-es/waiters/waitForWorkspaceDeleted.js.map +0 -1
  135. package/jest.config.js +0 -4
  136. package/src/Amp.ts +0 -627
  137. package/src/AmpClient.ts +0 -320
  138. package/src/commands/CreateAlertManagerDefinitionCommand.ts +0 -100
  139. package/src/commands/CreateRuleGroupsNamespaceCommand.ts +0 -98
  140. package/src/commands/CreateWorkspaceCommand.ts +0 -95
  141. package/src/commands/DeleteAlertManagerDefinitionCommand.ts +0 -98
  142. package/src/commands/DeleteRuleGroupsNamespaceCommand.ts +0 -98
  143. package/src/commands/DeleteWorkspaceCommand.ts +0 -95
  144. package/src/commands/DescribeAlertManagerDefinitionCommand.ts +0 -103
  145. package/src/commands/DescribeRuleGroupsNamespaceCommand.ts +0 -100
  146. package/src/commands/DescribeWorkspaceCommand.ts +0 -95
  147. package/src/commands/ListRuleGroupsNamespacesCommand.ts +0 -95
  148. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  149. package/src/commands/ListWorkspacesCommand.ts +0 -95
  150. package/src/commands/PutAlertManagerDefinitionCommand.ts +0 -98
  151. package/src/commands/PutRuleGroupsNamespaceCommand.ts +0 -95
  152. package/src/commands/TagResourceCommand.ts +0 -95
  153. package/src/commands/UntagResourceCommand.ts +0 -95
  154. package/src/commands/UpdateWorkspaceAliasCommand.ts +0 -95
  155. package/src/endpoints.ts +0 -57
  156. package/src/index.ts +0 -25
  157. package/src/models/index.ts +0 -1
  158. package/src/models/models_0.ts +0 -1347
  159. package/src/pagination/Interfaces.ts +0 -8
  160. package/src/pagination/ListRuleGroupsNamespacesPaginator.ts +0 -59
  161. package/src/pagination/ListWorkspacesPaginator.ts +0 -59
  162. package/src/protocols/Aws_restJson1.ts +0 -2735
  163. package/src/runtimeConfig.browser.ts +0 -41
  164. package/src/runtimeConfig.native.ts +0 -17
  165. package/src/runtimeConfig.shared.ts +0 -17
  166. package/src/runtimeConfig.ts +0 -46
  167. package/src/waiters/waitForWorkspaceActive.ts +0 -63
  168. package/src/waiters/waitForWorkspaceDeleted.ts +0 -50
  169. package/tsconfig.es.json +0 -10
  170. package/tsconfig.json +0 -33
  171. package/tsconfig.types.json +0 -9
package/src/AmpClient.ts DELETED
@@ -1,320 +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
- CreateAlertManagerDefinitionCommandInput,
54
- CreateAlertManagerDefinitionCommandOutput,
55
- } from "./commands/CreateAlertManagerDefinitionCommand";
56
- import {
57
- CreateRuleGroupsNamespaceCommandInput,
58
- CreateRuleGroupsNamespaceCommandOutput,
59
- } from "./commands/CreateRuleGroupsNamespaceCommand";
60
- import { CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput } from "./commands/CreateWorkspaceCommand";
61
- import {
62
- DeleteAlertManagerDefinitionCommandInput,
63
- DeleteAlertManagerDefinitionCommandOutput,
64
- } from "./commands/DeleteAlertManagerDefinitionCommand";
65
- import {
66
- DeleteRuleGroupsNamespaceCommandInput,
67
- DeleteRuleGroupsNamespaceCommandOutput,
68
- } from "./commands/DeleteRuleGroupsNamespaceCommand";
69
- import { DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput } from "./commands/DeleteWorkspaceCommand";
70
- import {
71
- DescribeAlertManagerDefinitionCommandInput,
72
- DescribeAlertManagerDefinitionCommandOutput,
73
- } from "./commands/DescribeAlertManagerDefinitionCommand";
74
- import {
75
- DescribeRuleGroupsNamespaceCommandInput,
76
- DescribeRuleGroupsNamespaceCommandOutput,
77
- } from "./commands/DescribeRuleGroupsNamespaceCommand";
78
- import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "./commands/DescribeWorkspaceCommand";
79
- import {
80
- ListRuleGroupsNamespacesCommandInput,
81
- ListRuleGroupsNamespacesCommandOutput,
82
- } from "./commands/ListRuleGroupsNamespacesCommand";
83
- import {
84
- ListTagsForResourceCommandInput,
85
- ListTagsForResourceCommandOutput,
86
- } from "./commands/ListTagsForResourceCommand";
87
- import { ListWorkspacesCommandInput, ListWorkspacesCommandOutput } from "./commands/ListWorkspacesCommand";
88
- import {
89
- PutAlertManagerDefinitionCommandInput,
90
- PutAlertManagerDefinitionCommandOutput,
91
- } from "./commands/PutAlertManagerDefinitionCommand";
92
- import {
93
- PutRuleGroupsNamespaceCommandInput,
94
- PutRuleGroupsNamespaceCommandOutput,
95
- } from "./commands/PutRuleGroupsNamespaceCommand";
96
- import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
97
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
98
- import {
99
- UpdateWorkspaceAliasCommandInput,
100
- UpdateWorkspaceAliasCommandOutput,
101
- } from "./commands/UpdateWorkspaceAliasCommand";
102
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
103
-
104
- export type ServiceInputTypes =
105
- | CreateAlertManagerDefinitionCommandInput
106
- | CreateRuleGroupsNamespaceCommandInput
107
- | CreateWorkspaceCommandInput
108
- | DeleteAlertManagerDefinitionCommandInput
109
- | DeleteRuleGroupsNamespaceCommandInput
110
- | DeleteWorkspaceCommandInput
111
- | DescribeAlertManagerDefinitionCommandInput
112
- | DescribeRuleGroupsNamespaceCommandInput
113
- | DescribeWorkspaceCommandInput
114
- | ListRuleGroupsNamespacesCommandInput
115
- | ListTagsForResourceCommandInput
116
- | ListWorkspacesCommandInput
117
- | PutAlertManagerDefinitionCommandInput
118
- | PutRuleGroupsNamespaceCommandInput
119
- | TagResourceCommandInput
120
- | UntagResourceCommandInput
121
- | UpdateWorkspaceAliasCommandInput;
122
-
123
- export type ServiceOutputTypes =
124
- | CreateAlertManagerDefinitionCommandOutput
125
- | CreateRuleGroupsNamespaceCommandOutput
126
- | CreateWorkspaceCommandOutput
127
- | DeleteAlertManagerDefinitionCommandOutput
128
- | DeleteRuleGroupsNamespaceCommandOutput
129
- | DeleteWorkspaceCommandOutput
130
- | DescribeAlertManagerDefinitionCommandOutput
131
- | DescribeRuleGroupsNamespaceCommandOutput
132
- | DescribeWorkspaceCommandOutput
133
- | ListRuleGroupsNamespacesCommandOutput
134
- | ListTagsForResourceCommandOutput
135
- | ListWorkspacesCommandOutput
136
- | PutAlertManagerDefinitionCommandOutput
137
- | PutRuleGroupsNamespaceCommandOutput
138
- | TagResourceCommandOutput
139
- | UntagResourceCommandOutput
140
- | UpdateWorkspaceAliasCommandOutput;
141
-
142
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
143
- /**
144
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
145
- */
146
- requestHandler?: __HttpHandler;
147
-
148
- /**
149
- * A constructor for a class implementing the {@link __Hash} interface
150
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
151
- * @internal
152
- */
153
- sha256?: __HashConstructor;
154
-
155
- /**
156
- * The function that will be used to convert strings into HTTP endpoints.
157
- * @internal
158
- */
159
- urlParser?: __UrlParser;
160
-
161
- /**
162
- * A function that can calculate the length of a request body.
163
- * @internal
164
- */
165
- bodyLengthChecker?: (body: any) => number | undefined;
166
-
167
- /**
168
- * A function that converts a stream into an array of bytes.
169
- * @internal
170
- */
171
- streamCollector?: __StreamCollector;
172
-
173
- /**
174
- * The function that will be used to convert a base64-encoded string to a byte array.
175
- * @internal
176
- */
177
- base64Decoder?: __Decoder;
178
-
179
- /**
180
- * The function that will be used to convert binary data to a base64-encoded string.
181
- * @internal
182
- */
183
- base64Encoder?: __Encoder;
184
-
185
- /**
186
- * The function that will be used to convert a UTF8-encoded string to a byte array.
187
- * @internal
188
- */
189
- utf8Decoder?: __Decoder;
190
-
191
- /**
192
- * The function that will be used to convert binary data to a UTF-8 encoded string.
193
- * @internal
194
- */
195
- utf8Encoder?: __Encoder;
196
-
197
- /**
198
- * The runtime environment.
199
- * @internal
200
- */
201
- runtime?: string;
202
-
203
- /**
204
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
205
- * trait of an operation.
206
- */
207
- disableHostPrefix?: boolean;
208
-
209
- /**
210
- * Value for how many times a request will be made at most in case of retry.
211
- */
212
- maxAttempts?: number | __Provider<number>;
213
-
214
- /**
215
- * Specifies which retry algorithm to use.
216
- */
217
- retryMode?: string | __Provider<string>;
218
-
219
- /**
220
- * Optional logger for logging debug/info/warn/error.
221
- */
222
- logger?: __Logger;
223
-
224
- /**
225
- * Unique service identifier.
226
- * @internal
227
- */
228
- serviceId?: string;
229
-
230
- /**
231
- * The AWS region to which this client will send requests
232
- */
233
- region?: string | __Provider<string>;
234
-
235
- /**
236
- * Default credentials provider; Not available in browser runtime.
237
- * @internal
238
- */
239
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
240
-
241
- /**
242
- * Fetch related hostname, signing name or signing region with given region.
243
- * @internal
244
- */
245
- regionInfoProvider?: RegionInfoProvider;
246
-
247
- /**
248
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
249
- * @internal
250
- */
251
- defaultUserAgentProvider?: Provider<__UserAgent>;
252
- }
253
-
254
- type AmpClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
255
- ClientDefaults &
256
- RegionInputConfig &
257
- EndpointsInputConfig &
258
- RetryInputConfig &
259
- HostHeaderInputConfig &
260
- AwsAuthInputConfig &
261
- UserAgentInputConfig;
262
- /**
263
- * The configuration interface of AmpClient class constructor that set the region, credentials and other options.
264
- */
265
- export interface AmpClientConfig extends AmpClientConfigType {}
266
-
267
- type AmpClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
268
- Required<ClientDefaults> &
269
- RegionResolvedConfig &
270
- EndpointsResolvedConfig &
271
- RetryResolvedConfig &
272
- HostHeaderResolvedConfig &
273
- AwsAuthResolvedConfig &
274
- UserAgentResolvedConfig;
275
- /**
276
- * The resolved configuration interface of AmpClient class. This is resolved and normalized from the {@link AmpClientConfig | constructor configuration interface}.
277
- */
278
- export interface AmpClientResolvedConfig extends AmpClientResolvedConfigType {}
279
-
280
- /**
281
- * Amazon Managed Service for Prometheus
282
- */
283
- export class AmpClient extends __Client<
284
- __HttpHandlerOptions,
285
- ServiceInputTypes,
286
- ServiceOutputTypes,
287
- AmpClientResolvedConfig
288
- > {
289
- /**
290
- * The resolved configuration of AmpClient class. This is resolved and normalized from the {@link AmpClientConfig | constructor configuration interface}.
291
- */
292
- readonly config: AmpClientResolvedConfig;
293
-
294
- constructor(configuration: AmpClientConfig) {
295
- const _config_0 = __getRuntimeConfig(configuration);
296
- const _config_1 = resolveRegionConfig(_config_0);
297
- const _config_2 = resolveEndpointsConfig(_config_1);
298
- const _config_3 = resolveRetryConfig(_config_2);
299
- const _config_4 = resolveHostHeaderConfig(_config_3);
300
- const _config_5 = resolveAwsAuthConfig(_config_4);
301
- const _config_6 = resolveUserAgentConfig(_config_5);
302
- super(_config_6);
303
- this.config = _config_6;
304
- this.middlewareStack.use(getRetryPlugin(this.config));
305
- this.middlewareStack.use(getContentLengthPlugin(this.config));
306
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
307
- this.middlewareStack.use(getLoggerPlugin(this.config));
308
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
309
- this.middlewareStack.use(getUserAgentPlugin(this.config));
310
- }
311
-
312
- /**
313
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
314
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
315
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
316
- */
317
- destroy(): void {
318
- super.destroy();
319
- }
320
- }
@@ -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 { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
15
- import { CreateAlertManagerDefinitionRequest, CreateAlertManagerDefinitionResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1CreateAlertManagerDefinitionCommand,
18
- serializeAws_restJson1CreateAlertManagerDefinitionCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface CreateAlertManagerDefinitionCommandInput extends CreateAlertManagerDefinitionRequest {}
22
- export interface CreateAlertManagerDefinitionCommandOutput
23
- extends CreateAlertManagerDefinitionResponse,
24
- __MetadataBearer {}
25
-
26
- /**
27
- * Create an alert manager definition.
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { AmpClient, CreateAlertManagerDefinitionCommand } from "@aws-sdk/client-amp"; // ES Modules import
32
- * // const { AmpClient, CreateAlertManagerDefinitionCommand } = require("@aws-sdk/client-amp"); // CommonJS import
33
- * const client = new AmpClient(config);
34
- * const command = new CreateAlertManagerDefinitionCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link CreateAlertManagerDefinitionCommandInput} for command's `input` shape.
39
- * @see {@link CreateAlertManagerDefinitionCommandOutput} for command's `response` shape.
40
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
- export class CreateAlertManagerDefinitionCommand extends $Command<
44
- CreateAlertManagerDefinitionCommandInput,
45
- CreateAlertManagerDefinitionCommandOutput,
46
- AmpClientResolvedConfig
47
- > {
48
- // Start section: command_properties
49
- // End section: command_properties
50
-
51
- constructor(readonly input: CreateAlertManagerDefinitionCommandInput) {
52
- // Start section: command_constructor
53
- super();
54
- // End section: command_constructor
55
- }
56
-
57
- /**
58
- * @internal
59
- */
60
- resolveMiddleware(
61
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
62
- configuration: AmpClientResolvedConfig,
63
- options?: __HttpHandlerOptions
64
- ): Handler<CreateAlertManagerDefinitionCommandInput, CreateAlertManagerDefinitionCommandOutput> {
65
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66
-
67
- const stack = clientStack.concat(this.middlewareStack);
68
-
69
- const { logger } = configuration;
70
- const clientName = "AmpClient";
71
- const commandName = "CreateAlertManagerDefinitionCommand";
72
- const handlerExecutionContext: HandlerExecutionContext = {
73
- logger,
74
- clientName,
75
- commandName,
76
- inputFilterSensitiveLog: CreateAlertManagerDefinitionRequest.filterSensitiveLog,
77
- outputFilterSensitiveLog: CreateAlertManagerDefinitionResponse.filterSensitiveLog,
78
- };
79
- const { requestHandler } = configuration;
80
- return stack.resolve(
81
- (request: FinalizeHandlerArguments<any>) =>
82
- requestHandler.handle(request.request as __HttpRequest, options || {}),
83
- handlerExecutionContext
84
- );
85
- }
86
-
87
- private serialize(input: CreateAlertManagerDefinitionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
88
- return serializeAws_restJson1CreateAlertManagerDefinitionCommand(input, context);
89
- }
90
-
91
- private deserialize(
92
- output: __HttpResponse,
93
- context: __SerdeContext
94
- ): Promise<CreateAlertManagerDefinitionCommandOutput> {
95
- return deserializeAws_restJson1CreateAlertManagerDefinitionCommand(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 { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
15
- import { CreateRuleGroupsNamespaceRequest, CreateRuleGroupsNamespaceResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1CreateRuleGroupsNamespaceCommand,
18
- serializeAws_restJson1CreateRuleGroupsNamespaceCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface CreateRuleGroupsNamespaceCommandInput extends CreateRuleGroupsNamespaceRequest {}
22
- export interface CreateRuleGroupsNamespaceCommandOutput extends CreateRuleGroupsNamespaceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * Create a rule group namespace.
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { AmpClient, CreateRuleGroupsNamespaceCommand } from "@aws-sdk/client-amp"; // ES Modules import
30
- * // const { AmpClient, CreateRuleGroupsNamespaceCommand } = require("@aws-sdk/client-amp"); // CommonJS import
31
- * const client = new AmpClient(config);
32
- * const command = new CreateRuleGroupsNamespaceCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link CreateRuleGroupsNamespaceCommandInput} for command's `input` shape.
37
- * @see {@link CreateRuleGroupsNamespaceCommandOutput} for command's `response` shape.
38
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class CreateRuleGroupsNamespaceCommand extends $Command<
42
- CreateRuleGroupsNamespaceCommandInput,
43
- CreateRuleGroupsNamespaceCommandOutput,
44
- AmpClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: CreateRuleGroupsNamespaceCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: AmpClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<CreateRuleGroupsNamespaceCommandInput, CreateRuleGroupsNamespaceCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "AmpClient";
69
- const commandName = "CreateRuleGroupsNamespaceCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: CreateRuleGroupsNamespaceRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: CreateRuleGroupsNamespaceResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: CreateRuleGroupsNamespaceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1CreateRuleGroupsNamespaceCommand(input, context);
87
- }
88
-
89
- private deserialize(
90
- output: __HttpResponse,
91
- context: __SerdeContext
92
- ): Promise<CreateRuleGroupsNamespaceCommandOutput> {
93
- return deserializeAws_restJson1CreateRuleGroupsNamespaceCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,95 +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 { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
15
- import { CreateWorkspaceRequest, CreateWorkspaceResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1CreateWorkspaceCommand,
18
- serializeAws_restJson1CreateWorkspaceCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface CreateWorkspaceCommandInput extends CreateWorkspaceRequest {}
22
- export interface CreateWorkspaceCommandOutput extends CreateWorkspaceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * Creates a new AMP workspace.
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { AmpClient, CreateWorkspaceCommand } from "@aws-sdk/client-amp"; // ES Modules import
30
- * // const { AmpClient, CreateWorkspaceCommand } = require("@aws-sdk/client-amp"); // CommonJS import
31
- * const client = new AmpClient(config);
32
- * const command = new CreateWorkspaceCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link CreateWorkspaceCommandInput} for command's `input` shape.
37
- * @see {@link CreateWorkspaceCommandOutput} for command's `response` shape.
38
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class CreateWorkspaceCommand extends $Command<
42
- CreateWorkspaceCommandInput,
43
- CreateWorkspaceCommandOutput,
44
- AmpClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: CreateWorkspaceCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: AmpClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "AmpClient";
69
- const commandName = "CreateWorkspaceCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: CreateWorkspaceRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: CreateWorkspaceResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: CreateWorkspaceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1CreateWorkspaceCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateWorkspaceCommandOutput> {
90
- return deserializeAws_restJson1CreateWorkspaceCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }