@aws-sdk/client-amp 3.928.0 → 3.930.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1780 -1955
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/AmpClient.js +2 -0
- package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +3 -9
- package/dist-es/commands/CreateAnomalyDetectorCommand.js +3 -9
- package/dist-es/commands/CreateLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/CreateQueryLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +3 -9
- package/dist-es/commands/CreateScraperCommand.js +3 -9
- package/dist-es/commands/CreateWorkspaceCommand.js +3 -9
- package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +3 -9
- package/dist-es/commands/DeleteAnomalyDetectorCommand.js +3 -9
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteQueryLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
- package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +3 -9
- package/dist-es/commands/DeleteScraperCommand.js +3 -9
- package/dist-es/commands/DeleteScraperLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteWorkspaceCommand.js +3 -9
- package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +3 -9
- package/dist-es/commands/DescribeAnomalyDetectorCommand.js +3 -9
- package/dist-es/commands/DescribeLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/DescribeQueryLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/DescribeResourcePolicyCommand.js +3 -9
- package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +3 -9
- package/dist-es/commands/DescribeScraperCommand.js +3 -9
- package/dist-es/commands/DescribeScraperLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/DescribeWorkspaceCommand.js +3 -9
- package/dist-es/commands/DescribeWorkspaceConfigurationCommand.js +3 -9
- package/dist-es/commands/GetDefaultScraperConfigurationCommand.js +3 -9
- package/dist-es/commands/ListAnomalyDetectorsCommand.js +3 -9
- package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +3 -9
- package/dist-es/commands/ListScrapersCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListWorkspacesCommand.js +3 -9
- package/dist-es/commands/PutAlertManagerDefinitionCommand.js +3 -9
- package/dist-es/commands/PutAnomalyDetectorCommand.js +3 -9
- package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
- package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateQueryLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateScraperCommand.js +3 -9
- package/dist-es/commands/UpdateScraperLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateWorkspaceAliasCommand.js +3 -9
- package/dist-es/commands/UpdateWorkspaceConfigurationCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -60
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1684 -0
- package/dist-types/AmpClient.d.ts +10 -1
- package/dist-types/commands/CreateRuleGroupsNamespaceCommand.d.ts +1 -1
- package/dist-types/commands/CreateScraperCommand.d.ts +53 -1
- package/dist-types/commands/DescribeScraperCommand.d.ts +8 -0
- package/dist-types/commands/ListScrapersCommand.d.ts +8 -0
- package/dist-types/commands/PutRuleGroupsNamespaceCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +58 -9
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +191 -0
- package/dist-types/ts3.4/AmpClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +16 -14
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +197 -0
- package/package.json +34 -35
- package/dist-es/protocols/Aws_restJson1.js +0 -1573
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -398
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -533
|
@@ -127,30 +127,6 @@ export class ValidationException extends __BaseException {
|
|
|
127
127
|
this.fieldList = opts.fieldList;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
export var Destination;
|
|
131
|
-
(function (Destination) {
|
|
132
|
-
Destination.visit = (value, visitor) => {
|
|
133
|
-
if (value.ampConfiguration !== undefined)
|
|
134
|
-
return visitor.ampConfiguration(value.ampConfiguration);
|
|
135
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
136
|
-
};
|
|
137
|
-
})(Destination || (Destination = {}));
|
|
138
|
-
export var ScrapeConfiguration;
|
|
139
|
-
(function (ScrapeConfiguration) {
|
|
140
|
-
ScrapeConfiguration.visit = (value, visitor) => {
|
|
141
|
-
if (value.configurationBlob !== undefined)
|
|
142
|
-
return visitor.configurationBlob(value.configurationBlob);
|
|
143
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
144
|
-
};
|
|
145
|
-
})(ScrapeConfiguration || (ScrapeConfiguration = {}));
|
|
146
|
-
export var Source;
|
|
147
|
-
(function (Source) {
|
|
148
|
-
Source.visit = (value, visitor) => {
|
|
149
|
-
if (value.eksConfiguration !== undefined)
|
|
150
|
-
return visitor.eksConfiguration(value.eksConfiguration);
|
|
151
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
152
|
-
};
|
|
153
|
-
})(Source || (Source = {}));
|
|
154
130
|
export const ScraperStatusCode = {
|
|
155
131
|
ACTIVE: "ACTIVE",
|
|
156
132
|
CREATING: "CREATING",
|
|
@@ -160,14 +136,6 @@ export const ScraperStatusCode = {
|
|
|
160
136
|
UPDATE_FAILED: "UPDATE_FAILED",
|
|
161
137
|
UPDATING: "UPDATING",
|
|
162
138
|
};
|
|
163
|
-
export var ScraperLoggingDestination;
|
|
164
|
-
(function (ScraperLoggingDestination) {
|
|
165
|
-
ScraperLoggingDestination.visit = (value, visitor) => {
|
|
166
|
-
if (value.cloudWatchLogs !== undefined)
|
|
167
|
-
return visitor.cloudWatchLogs(value.cloudWatchLogs);
|
|
168
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
169
|
-
};
|
|
170
|
-
})(ScraperLoggingDestination || (ScraperLoggingDestination = {}));
|
|
171
139
|
export const ScraperComponentType = {
|
|
172
140
|
COLLECTOR: "COLLECTOR",
|
|
173
141
|
EXPORTER: "EXPORTER",
|
|
@@ -181,34 +149,6 @@ export const ScraperLoggingConfigurationStatusCode = {
|
|
|
181
149
|
UPDATE_FAILED: "UPDATE_FAILED",
|
|
182
150
|
UPDATING: "UPDATING",
|
|
183
151
|
};
|
|
184
|
-
export var IgnoreNearExpected;
|
|
185
|
-
(function (IgnoreNearExpected) {
|
|
186
|
-
IgnoreNearExpected.visit = (value, visitor) => {
|
|
187
|
-
if (value.amount !== undefined)
|
|
188
|
-
return visitor.amount(value.amount);
|
|
189
|
-
if (value.ratio !== undefined)
|
|
190
|
-
return visitor.ratio(value.ratio);
|
|
191
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
192
|
-
};
|
|
193
|
-
})(IgnoreNearExpected || (IgnoreNearExpected = {}));
|
|
194
|
-
export var AnomalyDetectorConfiguration;
|
|
195
|
-
(function (AnomalyDetectorConfiguration) {
|
|
196
|
-
AnomalyDetectorConfiguration.visit = (value, visitor) => {
|
|
197
|
-
if (value.randomCutForest !== undefined)
|
|
198
|
-
return visitor.randomCutForest(value.randomCutForest);
|
|
199
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
200
|
-
};
|
|
201
|
-
})(AnomalyDetectorConfiguration || (AnomalyDetectorConfiguration = {}));
|
|
202
|
-
export var AnomalyDetectorMissingDataAction;
|
|
203
|
-
(function (AnomalyDetectorMissingDataAction) {
|
|
204
|
-
AnomalyDetectorMissingDataAction.visit = (value, visitor) => {
|
|
205
|
-
if (value.markAsAnomaly !== undefined)
|
|
206
|
-
return visitor.markAsAnomaly(value.markAsAnomaly);
|
|
207
|
-
if (value.skip !== undefined)
|
|
208
|
-
return visitor.skip(value.skip);
|
|
209
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
210
|
-
};
|
|
211
|
-
})(AnomalyDetectorMissingDataAction || (AnomalyDetectorMissingDataAction = {}));
|
|
212
152
|
export const AnomalyDetectorStatusCode = {
|
|
213
153
|
ACTIVE: "ACTIVE",
|
|
214
154
|
CREATING: "CREATING",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.amp" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "amp",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|