@aws-sdk/client-amp 3.787.0 → 3.796.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.
@@ -0,0 +1,111 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
4
+ import { UpdateWorkspaceConfigurationRequest, UpdateWorkspaceConfigurationResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateWorkspaceConfigurationCommand}.
14
+ */
15
+ export interface UpdateWorkspaceConfigurationCommandInput extends UpdateWorkspaceConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateWorkspaceConfigurationCommand}.
21
+ */
22
+ export interface UpdateWorkspaceConfigurationCommandOutput extends UpdateWorkspaceConfigurationResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateWorkspaceConfigurationCommand_base: {
25
+ new (input: UpdateWorkspaceConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateWorkspaceConfigurationCommandInput, UpdateWorkspaceConfigurationCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateWorkspaceConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateWorkspaceConfigurationCommandInput, UpdateWorkspaceConfigurationCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Use this operation to create or update the label sets, label set limits, and retention period of a workspace.</p>
31
+ * <p>You must specify at least one of <code>limitsPerLabelSet</code> or <code>retentionPeriodInDays</code> for the
32
+ * request to be valid.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { AmpClient, UpdateWorkspaceConfigurationCommand } from "@aws-sdk/client-amp"; // ES Modules import
37
+ * // const { AmpClient, UpdateWorkspaceConfigurationCommand } = require("@aws-sdk/client-amp"); // CommonJS import
38
+ * const client = new AmpClient(config);
39
+ * const input = { // UpdateWorkspaceConfigurationRequest
40
+ * workspaceId: "STRING_VALUE", // required
41
+ * clientToken: "STRING_VALUE",
42
+ * limitsPerLabelSet: [ // LimitsPerLabelSetList
43
+ * { // LimitsPerLabelSet
44
+ * limits: { // LimitsPerLabelSetEntry
45
+ * maxSeries: Number("long"),
46
+ * },
47
+ * labelSet: { // LabelSet // required
48
+ * "<keys>": "STRING_VALUE",
49
+ * },
50
+ * },
51
+ * ],
52
+ * retentionPeriodInDays: Number("int"),
53
+ * };
54
+ * const command = new UpdateWorkspaceConfigurationCommand(input);
55
+ * const response = await client.send(command);
56
+ * // { // UpdateWorkspaceConfigurationResponse
57
+ * // status: { // WorkspaceConfigurationStatus
58
+ * // statusCode: "STRING_VALUE", // required
59
+ * // statusReason: "STRING_VALUE",
60
+ * // },
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param UpdateWorkspaceConfigurationCommandInput - {@link UpdateWorkspaceConfigurationCommandInput}
66
+ * @returns {@link UpdateWorkspaceConfigurationCommandOutput}
67
+ * @see {@link UpdateWorkspaceConfigurationCommandInput} for command's `input` shape.
68
+ * @see {@link UpdateWorkspaceConfigurationCommandOutput} for command's `response` shape.
69
+ * @see {@link AmpClientResolvedConfig | config} for AmpClient's `config` shape.
70
+ *
71
+ * @throws {@link AccessDeniedException} (client fault)
72
+ * <p>You do not have sufficient access to perform this action.</p>
73
+ *
74
+ * @throws {@link ConflictException} (client fault)
75
+ * <p>The request would cause an inconsistent state.</p>
76
+ *
77
+ * @throws {@link InternalServerException} (server fault)
78
+ * <p>An unexpected error occurred during the processing of the request.</p>
79
+ *
80
+ * @throws {@link ResourceNotFoundException} (client fault)
81
+ * <p>The request references a resources that doesn't exist.</p>
82
+ *
83
+ * @throws {@link ServiceQuotaExceededException} (client fault)
84
+ * <p>Completing the request would cause a service quota to be exceeded.</p>
85
+ *
86
+ * @throws {@link ThrottlingException} (client fault)
87
+ * <p>The request was denied due to request throttling.</p>
88
+ *
89
+ * @throws {@link ValidationException} (client fault)
90
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services
91
+ * service.</p>
92
+ *
93
+ * @throws {@link AmpServiceException}
94
+ * <p>Base exception class for all service exceptions from Amp service.</p>
95
+ *
96
+ *
97
+ * @public
98
+ */
99
+ export declare class UpdateWorkspaceConfigurationCommand extends UpdateWorkspaceConfigurationCommand_base {
100
+ /** @internal type navigation helper, not in runtime. */
101
+ protected static __types: {
102
+ api: {
103
+ input: UpdateWorkspaceConfigurationRequest;
104
+ output: UpdateWorkspaceConfigurationResponse;
105
+ };
106
+ sdk: {
107
+ input: UpdateWorkspaceConfigurationCommandInput;
108
+ output: UpdateWorkspaceConfigurationCommandOutput;
109
+ };
110
+ };
111
+ }
@@ -13,6 +13,7 @@ export * from "./DescribeLoggingConfigurationCommand";
13
13
  export * from "./DescribeRuleGroupsNamespaceCommand";
14
14
  export * from "./DescribeScraperCommand";
15
15
  export * from "./DescribeWorkspaceCommand";
16
+ export * from "./DescribeWorkspaceConfigurationCommand";
16
17
  export * from "./GetDefaultScraperConfigurationCommand";
17
18
  export * from "./ListRuleGroupsNamespacesCommand";
18
19
  export * from "./ListScrapersCommand";
@@ -25,3 +26,4 @@ export * from "./UntagResourceCommand";
25
26
  export * from "./UpdateLoggingConfigurationCommand";
26
27
  export * from "./UpdateScraperCommand";
27
28
  export * from "./UpdateWorkspaceAliasCommand";
29
+ export * from "./UpdateWorkspaceConfigurationCommand";
@@ -457,17 +457,19 @@ export declare namespace Destination {
457
457
  const visit: <T>(value: Destination, visitor: Visitor<T>) => T;
458
458
  }
459
459
  /**
460
- * <p>To configure roles that allows users to write to an Amazon Managed Service for Prometheus workspace in a different account.</p>
460
+ * <p>Use this structure to enable cross-account access, so that you can use a target account to access Prometheus metrics from source accounts.</p>
461
461
  * @public
462
462
  */
463
463
  export interface RoleConfiguration {
464
464
  /**
465
- * <p>A ARN identifying the source role configuration.</p>
465
+ * <p>The Amazon Resource Name (ARN) of the role used in the source account to enable cross-account scraping. For information about
466
+ * the contents of this policy, see <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#cross-account-remote-write">Cross-account setup</a>.</p>
466
467
  * @public
467
468
  */
468
469
  sourceRoleArn?: string | undefined;
469
470
  /**
470
- * <p>A ARN identifying the target role configuration.</p>
471
+ * <p>The Amazon Resource Name (ARN) of the role used in the target account to enable cross-account scraping. For information about
472
+ * the contents of this policy, see <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#cross-account-remote-write">Cross-account setup</a>.</p>
471
473
  * @public
472
474
  */
473
475
  targetRoleArn?: string | undefined;
@@ -583,7 +585,7 @@ export interface CreateScraperRequest {
583
585
  */
584
586
  destination: Destination | undefined;
585
587
  /**
586
- * <p>The scraper role configuration for the workspace.</p>
588
+ * <p>Use this structure to enable cross-account access, so that you can use a target account to access Prometheus metrics from source accounts.</p>
587
589
  * @public
588
590
  */
589
591
  roleConfiguration?: RoleConfiguration | undefined;
@@ -789,7 +791,7 @@ export interface ScraperDescription {
789
791
  */
790
792
  destination: Destination | undefined;
791
793
  /**
792
- * <p>To configure roles that allows users to write to an Amazon Managed Service for Prometheus workspace in a different account.</p>
794
+ * <p>This structure displays information about the IAM roles used for cross-account scraping configuration.</p>
793
795
  * @public
794
796
  */
795
797
  roleConfiguration?: RoleConfiguration | undefined;
@@ -906,7 +908,7 @@ export interface ScraperSummary {
906
908
  */
907
909
  destination: Destination | undefined;
908
910
  /**
909
- * <p>To configure roles that allows users to write to an Amazon Managed Service for Prometheus workspace in a different account.</p>
911
+ * <p>This structure displays information about the IAM roles used for cross-account scraping configuration.</p>
910
912
  * @public
911
913
  */
912
914
  roleConfiguration?: RoleConfiguration | undefined;
@@ -960,7 +962,7 @@ export interface UpdateScraperRequest {
960
962
  */
961
963
  destination?: Destination | undefined;
962
964
  /**
963
- * <p>The scraper role configuration for the workspace.</p>
965
+ * <p>Use this structure to enable cross-account access, so that you can use a target account to access Prometheus metrics from source accounts.</p>
964
966
  * @public
965
967
  */
966
968
  roleConfiguration?: RoleConfiguration | undefined;
@@ -1886,3 +1888,156 @@ export interface UpdateWorkspaceAliasRequest {
1886
1888
  */
1887
1889
  clientToken?: string | undefined;
1888
1890
  }
1891
+ /**
1892
+ * @public
1893
+ */
1894
+ export interface DescribeWorkspaceConfigurationRequest {
1895
+ /**
1896
+ * <p>The ID of the workspace that you want to retrieve information for. To find the IDs of your workspaces, use
1897
+ * the <a href="https://docs.aws.amazon.com/prometheus/latest/APIReference/API_ListWorkspaces.htm">ListWorkspaces</a> operation.</p>
1898
+ * @public
1899
+ */
1900
+ workspaceId: string | undefined;
1901
+ }
1902
+ /**
1903
+ * <p>This structure contains the information about the limits that apply to time series that match one label set.</p>
1904
+ * @public
1905
+ */
1906
+ export interface LimitsPerLabelSetEntry {
1907
+ /**
1908
+ * <p>The maximum number of active series that can be ingested that match this label set. </p>
1909
+ * <p>Setting this to 0 causes no label set limit to be enforced, but it does cause Amazon Managed Service for Prometheus to vend label set metrics to CloudWatch</p>
1910
+ * @public
1911
+ */
1912
+ maxSeries?: number | undefined;
1913
+ }
1914
+ /**
1915
+ * <p>This structure defines one label set used to enforce ingestion limits for the workspace, and defines the limit for that label set.</p>
1916
+ * <p>A label set is
1917
+ * a unique combination of label-value pairs. Use them to control time series ingestion limits and to monitor usage by specific label groups.
1918
+ * Example label sets might be <code>team:finance</code> or <code>env:prod</code>
1919
+ * </p>
1920
+ * @public
1921
+ */
1922
+ export interface LimitsPerLabelSet {
1923
+ /**
1924
+ * <p>This structure contains the information about the limits that apply to time series that match this label set.</p>
1925
+ * @public
1926
+ */
1927
+ limits: LimitsPerLabelSetEntry | undefined;
1928
+ /**
1929
+ * <p>This defines one label set that will have an enforced ingestion limit. </p>
1930
+ * <p>Label values accept ASCII characters and must contain at least one character that isn't whitespace. ASCII control characters are not accepted.
1931
+ * If the label name is metric name label <code>__<i>name</i>__</code>, then the <i>metric</i> part of the name
1932
+ * must conform to the following pattern: <code>[a-zA-Z_:][a-zA-Z0-9_:]*</code>
1933
+ * </p>
1934
+ * @public
1935
+ */
1936
+ labelSet: Record<string, string> | undefined;
1937
+ }
1938
+ /**
1939
+ * @public
1940
+ * @enum
1941
+ */
1942
+ export declare const WorkspaceConfigurationStatusCode: {
1943
+ /**
1944
+ * Workspace configuration has been updated. Update is disallowed until workspace configuration is ACTIVE and workspace status is ACTIVE.
1945
+ */
1946
+ readonly ACTIVE: "ACTIVE";
1947
+ /**
1948
+ * Workspace configuration update failed.
1949
+ */
1950
+ readonly UPDATE_FAILED: "UPDATE_FAILED";
1951
+ /**
1952
+ * Workspace configuration is being updated. Update is disallowed until workspace configuration is ACTIVE and workspace status is ACTIVE.
1953
+ */
1954
+ readonly UPDATING: "UPDATING";
1955
+ };
1956
+ /**
1957
+ * @public
1958
+ */
1959
+ export type WorkspaceConfigurationStatusCode = (typeof WorkspaceConfigurationStatusCode)[keyof typeof WorkspaceConfigurationStatusCode];
1960
+ /**
1961
+ * <p>This structure displays the current status of the workspace configuration, and might also contain a reason for that status.</p>
1962
+ * @public
1963
+ */
1964
+ export interface WorkspaceConfigurationStatus {
1965
+ /**
1966
+ * <p>The current status of the workspace configuration.</p>
1967
+ * @public
1968
+ */
1969
+ statusCode: WorkspaceConfigurationStatusCode | undefined;
1970
+ /**
1971
+ * <p>The reason for the current status, if a reason is available.</p>
1972
+ * @public
1973
+ */
1974
+ statusReason?: string | undefined;
1975
+ }
1976
+ /**
1977
+ * <p>This structure contains the description of the workspace configuration.</p>
1978
+ * @public
1979
+ */
1980
+ export interface WorkspaceConfigurationDescription {
1981
+ /**
1982
+ * <p>This structure displays the current status of the workspace configuration, and might also contain a reason for that status.</p>
1983
+ * @public
1984
+ */
1985
+ status: WorkspaceConfigurationStatus | undefined;
1986
+ /**
1987
+ * <p>This is an array of structures, where each structure displays one label sets for the workspace and the limits for that label set.</p>
1988
+ * @public
1989
+ */
1990
+ limitsPerLabelSet?: LimitsPerLabelSet[] | undefined;
1991
+ /**
1992
+ * <p>This field displays how many days that metrics are retained in the workspace.</p>
1993
+ * @public
1994
+ */
1995
+ retentionPeriodInDays?: number | undefined;
1996
+ }
1997
+ /**
1998
+ * @public
1999
+ */
2000
+ export interface DescribeWorkspaceConfigurationResponse {
2001
+ /**
2002
+ * <p>This structure contains the information about the workspace configuration.</p>
2003
+ * @public
2004
+ */
2005
+ workspaceConfiguration: WorkspaceConfigurationDescription | undefined;
2006
+ }
2007
+ /**
2008
+ * @public
2009
+ */
2010
+ export interface UpdateWorkspaceConfigurationRequest {
2011
+ /**
2012
+ * <p>The ID of the workspace that you want to update. To find the IDs of your workspaces, use
2013
+ * the <a href="https://docs.aws.amazon.com/prometheus/latest/APIReference/API_ListWorkspaces.htm">ListWorkspaces</a> operation.</p>
2014
+ * @public
2015
+ */
2016
+ workspaceId: string | undefined;
2017
+ /**
2018
+ * <p>You can include a token in your operation to make it an idempotent opeartion. </p>
2019
+ * @public
2020
+ */
2021
+ clientToken?: string | undefined;
2022
+ /**
2023
+ * <p>This is an array of structures, where each structure defines a label set for the workspace, and
2024
+ * defines the ingestion limit for active time series for each of those label sets. Each label name in a label set must be unique.</p>
2025
+ * @public
2026
+ */
2027
+ limitsPerLabelSet?: LimitsPerLabelSet[] | undefined;
2028
+ /**
2029
+ * <p>Specifies how many days that metrics will be retained in the workspace.</p>
2030
+ * @public
2031
+ */
2032
+ retentionPeriodInDays?: number | undefined;
2033
+ }
2034
+ /**
2035
+ * @public
2036
+ */
2037
+ export interface UpdateWorkspaceConfigurationResponse {
2038
+ /**
2039
+ * <p>The status of the workspace configuration.</p>
2040
+ * @public
2041
+ */
2042
+ status: WorkspaceConfigurationStatus | undefined;
2043
+ }
@@ -15,6 +15,7 @@ import { DescribeLoggingConfigurationCommandInput, DescribeLoggingConfigurationC
15
15
  import { DescribeRuleGroupsNamespaceCommandInput, DescribeRuleGroupsNamespaceCommandOutput } from "../commands/DescribeRuleGroupsNamespaceCommand";
16
16
  import { DescribeScraperCommandInput, DescribeScraperCommandOutput } from "../commands/DescribeScraperCommand";
17
17
  import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "../commands/DescribeWorkspaceCommand";
18
+ import { DescribeWorkspaceConfigurationCommandInput, DescribeWorkspaceConfigurationCommandOutput } from "../commands/DescribeWorkspaceConfigurationCommand";
18
19
  import { GetDefaultScraperConfigurationCommandInput, GetDefaultScraperConfigurationCommandOutput } from "../commands/GetDefaultScraperConfigurationCommand";
19
20
  import { ListRuleGroupsNamespacesCommandInput, ListRuleGroupsNamespacesCommandOutput } from "../commands/ListRuleGroupsNamespacesCommand";
20
21
  import { ListScrapersCommandInput, ListScrapersCommandOutput } from "../commands/ListScrapersCommand";
@@ -27,6 +28,7 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../comman
27
28
  import { UpdateLoggingConfigurationCommandInput, UpdateLoggingConfigurationCommandOutput } from "../commands/UpdateLoggingConfigurationCommand";
28
29
  import { UpdateScraperCommandInput, UpdateScraperCommandOutput } from "../commands/UpdateScraperCommand";
29
30
  import { UpdateWorkspaceAliasCommandInput, UpdateWorkspaceAliasCommandOutput } from "../commands/UpdateWorkspaceAliasCommand";
31
+ import { UpdateWorkspaceConfigurationCommandInput, UpdateWorkspaceConfigurationCommandOutput } from "../commands/UpdateWorkspaceConfigurationCommand";
30
32
  /**
31
33
  * serializeAws_restJson1CreateAlertManagerDefinitionCommand
32
34
  */
@@ -87,6 +89,10 @@ export declare const se_DescribeScraperCommand: (input: DescribeScraperCommandIn
87
89
  * serializeAws_restJson1DescribeWorkspaceCommand
88
90
  */
89
91
  export declare const se_DescribeWorkspaceCommand: (input: DescribeWorkspaceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
92
+ /**
93
+ * serializeAws_restJson1DescribeWorkspaceConfigurationCommand
94
+ */
95
+ export declare const se_DescribeWorkspaceConfigurationCommand: (input: DescribeWorkspaceConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
90
96
  /**
91
97
  * serializeAws_restJson1GetDefaultScraperConfigurationCommand
92
98
  */
@@ -135,6 +141,10 @@ export declare const se_UpdateScraperCommand: (input: UpdateScraperCommandInput,
135
141
  * serializeAws_restJson1UpdateWorkspaceAliasCommand
136
142
  */
137
143
  export declare const se_UpdateWorkspaceAliasCommand: (input: UpdateWorkspaceAliasCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
144
+ /**
145
+ * serializeAws_restJson1UpdateWorkspaceConfigurationCommand
146
+ */
147
+ export declare const se_UpdateWorkspaceConfigurationCommand: (input: UpdateWorkspaceConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
138
148
  /**
139
149
  * deserializeAws_restJson1CreateAlertManagerDefinitionCommand
140
150
  */
@@ -195,6 +205,10 @@ export declare const de_DescribeScraperCommand: (output: __HttpResponse, context
195
205
  * deserializeAws_restJson1DescribeWorkspaceCommand
196
206
  */
197
207
  export declare const de_DescribeWorkspaceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeWorkspaceCommandOutput>;
208
+ /**
209
+ * deserializeAws_restJson1DescribeWorkspaceConfigurationCommand
210
+ */
211
+ export declare const de_DescribeWorkspaceConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeWorkspaceConfigurationCommandOutput>;
198
212
  /**
199
213
  * deserializeAws_restJson1GetDefaultScraperConfigurationCommand
200
214
  */
@@ -243,3 +257,7 @@ export declare const de_UpdateScraperCommand: (output: __HttpResponse, context:
243
257
  * deserializeAws_restJson1UpdateWorkspaceAliasCommand
244
258
  */
245
259
  export declare const de_UpdateWorkspaceAliasCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateWorkspaceAliasCommandOutput>;
260
+ /**
261
+ * deserializeAws_restJson1UpdateWorkspaceConfigurationCommand
262
+ */
263
+ export declare const de_UpdateWorkspaceConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateWorkspaceConfigurationCommandOutput>;
@@ -60,6 +60,10 @@ import {
60
60
  DescribeWorkspaceCommandInput,
61
61
  DescribeWorkspaceCommandOutput,
62
62
  } from "./commands/DescribeWorkspaceCommand";
63
+ import {
64
+ DescribeWorkspaceConfigurationCommandInput,
65
+ DescribeWorkspaceConfigurationCommandOutput,
66
+ } from "./commands/DescribeWorkspaceConfigurationCommand";
63
67
  import {
64
68
  GetDefaultScraperConfigurationCommandInput,
65
69
  GetDefaultScraperConfigurationCommandOutput,
@@ -108,6 +112,10 @@ import {
108
112
  UpdateWorkspaceAliasCommandInput,
109
113
  UpdateWorkspaceAliasCommandOutput,
110
114
  } from "./commands/UpdateWorkspaceAliasCommand";
115
+ import {
116
+ UpdateWorkspaceConfigurationCommandInput,
117
+ UpdateWorkspaceConfigurationCommandOutput,
118
+ } from "./commands/UpdateWorkspaceConfigurationCommand";
111
119
  export interface Amp {
112
120
  createAlertManagerDefinition(
113
121
  args: CreateAlertManagerDefinitionCommandInput,
@@ -305,6 +313,19 @@ export interface Amp {
305
313
  options: __HttpHandlerOptions,
306
314
  cb: (err: any, data?: DescribeWorkspaceCommandOutput) => void
307
315
  ): void;
316
+ describeWorkspaceConfiguration(
317
+ args: DescribeWorkspaceConfigurationCommandInput,
318
+ options?: __HttpHandlerOptions
319
+ ): Promise<DescribeWorkspaceConfigurationCommandOutput>;
320
+ describeWorkspaceConfiguration(
321
+ args: DescribeWorkspaceConfigurationCommandInput,
322
+ cb: (err: any, data?: DescribeWorkspaceConfigurationCommandOutput) => void
323
+ ): void;
324
+ describeWorkspaceConfiguration(
325
+ args: DescribeWorkspaceConfigurationCommandInput,
326
+ options: __HttpHandlerOptions,
327
+ cb: (err: any, data?: DescribeWorkspaceConfigurationCommandOutput) => void
328
+ ): void;
308
329
  getDefaultScraperConfiguration(): Promise<GetDefaultScraperConfigurationCommandOutput>;
309
330
  getDefaultScraperConfiguration(
310
331
  args: GetDefaultScraperConfigurationCommandInput,
@@ -464,5 +485,18 @@ export interface Amp {
464
485
  options: __HttpHandlerOptions,
465
486
  cb: (err: any, data?: UpdateWorkspaceAliasCommandOutput) => void
466
487
  ): void;
488
+ updateWorkspaceConfiguration(
489
+ args: UpdateWorkspaceConfigurationCommandInput,
490
+ options?: __HttpHandlerOptions
491
+ ): Promise<UpdateWorkspaceConfigurationCommandOutput>;
492
+ updateWorkspaceConfiguration(
493
+ args: UpdateWorkspaceConfigurationCommandInput,
494
+ cb: (err: any, data?: UpdateWorkspaceConfigurationCommandOutput) => void
495
+ ): void;
496
+ updateWorkspaceConfiguration(
497
+ args: UpdateWorkspaceConfigurationCommandInput,
498
+ options: __HttpHandlerOptions,
499
+ cb: (err: any, data?: UpdateWorkspaceConfigurationCommandOutput) => void
500
+ ): void;
467
501
  }
468
502
  export declare class Amp extends AmpClient implements Amp {}
@@ -105,6 +105,10 @@ import {
105
105
  DescribeWorkspaceCommandInput,
106
106
  DescribeWorkspaceCommandOutput,
107
107
  } from "./commands/DescribeWorkspaceCommand";
108
+ import {
109
+ DescribeWorkspaceConfigurationCommandInput,
110
+ DescribeWorkspaceConfigurationCommandOutput,
111
+ } from "./commands/DescribeWorkspaceConfigurationCommand";
108
112
  import {
109
113
  GetDefaultScraperConfigurationCommandInput,
110
114
  GetDefaultScraperConfigurationCommandOutput,
@@ -153,6 +157,10 @@ import {
153
157
  UpdateWorkspaceAliasCommandInput,
154
158
  UpdateWorkspaceAliasCommandOutput,
155
159
  } from "./commands/UpdateWorkspaceAliasCommand";
160
+ import {
161
+ UpdateWorkspaceConfigurationCommandInput,
162
+ UpdateWorkspaceConfigurationCommandOutput,
163
+ } from "./commands/UpdateWorkspaceConfigurationCommand";
156
164
  import {
157
165
  ClientInputEndpointParameters,
158
166
  ClientResolvedEndpointParameters,
@@ -176,6 +184,7 @@ export type ServiceInputTypes =
176
184
  | DescribeRuleGroupsNamespaceCommandInput
177
185
  | DescribeScraperCommandInput
178
186
  | DescribeWorkspaceCommandInput
187
+ | DescribeWorkspaceConfigurationCommandInput
179
188
  | GetDefaultScraperConfigurationCommandInput
180
189
  | ListRuleGroupsNamespacesCommandInput
181
190
  | ListScrapersCommandInput
@@ -187,7 +196,8 @@ export type ServiceInputTypes =
187
196
  | UntagResourceCommandInput
188
197
  | UpdateLoggingConfigurationCommandInput
189
198
  | UpdateScraperCommandInput
190
- | UpdateWorkspaceAliasCommandInput;
199
+ | UpdateWorkspaceAliasCommandInput
200
+ | UpdateWorkspaceConfigurationCommandInput;
191
201
  export type ServiceOutputTypes =
192
202
  | CreateAlertManagerDefinitionCommandOutput
193
203
  | CreateLoggingConfigurationCommandOutput
@@ -204,6 +214,7 @@ export type ServiceOutputTypes =
204
214
  | DescribeRuleGroupsNamespaceCommandOutput
205
215
  | DescribeScraperCommandOutput
206
216
  | DescribeWorkspaceCommandOutput
217
+ | DescribeWorkspaceConfigurationCommandOutput
207
218
  | GetDefaultScraperConfigurationCommandOutput
208
219
  | ListRuleGroupsNamespacesCommandOutput
209
220
  | ListScrapersCommandOutput
@@ -215,7 +226,8 @@ export type ServiceOutputTypes =
215
226
  | UntagResourceCommandOutput
216
227
  | UpdateLoggingConfigurationCommandOutput
217
228
  | UpdateScraperCommandOutput
218
- | UpdateWorkspaceAliasCommandOutput;
229
+ | UpdateWorkspaceAliasCommandOutput
230
+ | UpdateWorkspaceConfigurationCommandOutput;
219
231
  export interface ClientDefaults
220
232
  extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
221
233
  requestHandler?: __HttpHandlerUserInput;
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ AmpClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../AmpClient";
8
+ import {
9
+ DescribeWorkspaceConfigurationRequest,
10
+ DescribeWorkspaceConfigurationResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface DescribeWorkspaceConfigurationCommandInput
15
+ extends DescribeWorkspaceConfigurationRequest {}
16
+ export interface DescribeWorkspaceConfigurationCommandOutput
17
+ extends DescribeWorkspaceConfigurationResponse,
18
+ __MetadataBearer {}
19
+ declare const DescribeWorkspaceConfigurationCommand_base: {
20
+ new (
21
+ input: DescribeWorkspaceConfigurationCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ DescribeWorkspaceConfigurationCommandInput,
24
+ DescribeWorkspaceConfigurationCommandOutput,
25
+ AmpClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ __0_0: DescribeWorkspaceConfigurationCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ DescribeWorkspaceConfigurationCommandInput,
33
+ DescribeWorkspaceConfigurationCommandOutput,
34
+ AmpClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class DescribeWorkspaceConfigurationCommand extends DescribeWorkspaceConfigurationCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: DescribeWorkspaceConfigurationRequest;
44
+ output: DescribeWorkspaceConfigurationResponse;
45
+ };
46
+ sdk: {
47
+ input: DescribeWorkspaceConfigurationCommandInput;
48
+ output: DescribeWorkspaceConfigurationCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ AmpClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../AmpClient";
8
+ import {
9
+ UpdateWorkspaceConfigurationRequest,
10
+ UpdateWorkspaceConfigurationResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface UpdateWorkspaceConfigurationCommandInput
15
+ extends UpdateWorkspaceConfigurationRequest {}
16
+ export interface UpdateWorkspaceConfigurationCommandOutput
17
+ extends UpdateWorkspaceConfigurationResponse,
18
+ __MetadataBearer {}
19
+ declare const UpdateWorkspaceConfigurationCommand_base: {
20
+ new (
21
+ input: UpdateWorkspaceConfigurationCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ UpdateWorkspaceConfigurationCommandInput,
24
+ UpdateWorkspaceConfigurationCommandOutput,
25
+ AmpClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ __0_0: UpdateWorkspaceConfigurationCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ UpdateWorkspaceConfigurationCommandInput,
33
+ UpdateWorkspaceConfigurationCommandOutput,
34
+ AmpClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class UpdateWorkspaceConfigurationCommand extends UpdateWorkspaceConfigurationCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: UpdateWorkspaceConfigurationRequest;
44
+ output: UpdateWorkspaceConfigurationResponse;
45
+ };
46
+ sdk: {
47
+ input: UpdateWorkspaceConfigurationCommandInput;
48
+ output: UpdateWorkspaceConfigurationCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -13,6 +13,7 @@ export * from "./DescribeLoggingConfigurationCommand";
13
13
  export * from "./DescribeRuleGroupsNamespaceCommand";
14
14
  export * from "./DescribeScraperCommand";
15
15
  export * from "./DescribeWorkspaceCommand";
16
+ export * from "./DescribeWorkspaceConfigurationCommand";
16
17
  export * from "./GetDefaultScraperConfigurationCommand";
17
18
  export * from "./ListRuleGroupsNamespacesCommand";
18
19
  export * from "./ListScrapersCommand";
@@ -25,3 +26,4 @@ export * from "./UntagResourceCommand";
25
26
  export * from "./UpdateLoggingConfigurationCommand";
26
27
  export * from "./UpdateScraperCommand";
27
28
  export * from "./UpdateWorkspaceAliasCommand";
29
+ export * from "./UpdateWorkspaceConfigurationCommand";
@@ -493,3 +493,41 @@ export interface UpdateWorkspaceAliasRequest {
493
493
  alias?: string | undefined;
494
494
  clientToken?: string | undefined;
495
495
  }
496
+ export interface DescribeWorkspaceConfigurationRequest {
497
+ workspaceId: string | undefined;
498
+ }
499
+ export interface LimitsPerLabelSetEntry {
500
+ maxSeries?: number | undefined;
501
+ }
502
+ export interface LimitsPerLabelSet {
503
+ limits: LimitsPerLabelSetEntry | undefined;
504
+ labelSet: Record<string, string> | undefined;
505
+ }
506
+ export declare const WorkspaceConfigurationStatusCode: {
507
+ readonly ACTIVE: "ACTIVE";
508
+ readonly UPDATE_FAILED: "UPDATE_FAILED";
509
+ readonly UPDATING: "UPDATING";
510
+ };
511
+ export type WorkspaceConfigurationStatusCode =
512
+ (typeof WorkspaceConfigurationStatusCode)[keyof typeof WorkspaceConfigurationStatusCode];
513
+ export interface WorkspaceConfigurationStatus {
514
+ statusCode: WorkspaceConfigurationStatusCode | undefined;
515
+ statusReason?: string | undefined;
516
+ }
517
+ export interface WorkspaceConfigurationDescription {
518
+ status: WorkspaceConfigurationStatus | undefined;
519
+ limitsPerLabelSet?: LimitsPerLabelSet[] | undefined;
520
+ retentionPeriodInDays?: number | undefined;
521
+ }
522
+ export interface DescribeWorkspaceConfigurationResponse {
523
+ workspaceConfiguration: WorkspaceConfigurationDescription | undefined;
524
+ }
525
+ export interface UpdateWorkspaceConfigurationRequest {
526
+ workspaceId: string | undefined;
527
+ clientToken?: string | undefined;
528
+ limitsPerLabelSet?: LimitsPerLabelSet[] | undefined;
529
+ retentionPeriodInDays?: number | undefined;
530
+ }
531
+ export interface UpdateWorkspaceConfigurationResponse {
532
+ status: WorkspaceConfigurationStatus | undefined;
533
+ }