@aws-sdk/client-amp 3.1045.0 → 3.1047.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/auth/httpAuthSchemeProvider.js +4 -4
- package/dist-cjs/endpoint/bdd.js +2 -2
- package/dist-cjs/endpoint/endpointResolver.js +4 -4
- package/dist-cjs/index.js +154 -156
- package/dist-cjs/models/AmpServiceException.js +3 -3
- package/dist-cjs/runtimeConfig.browser.js +12 -14
- package/dist-cjs/runtimeConfig.js +18 -22
- package/dist-cjs/runtimeConfig.shared.js +9 -10
- package/dist-es/Amp.js +1 -1
- package/dist-es/AmpClient.js +5 -5
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +2 -2
- package/dist-es/commands/CreateAnomalyDetectorCommand.js +2 -2
- package/dist-es/commands/CreateLoggingConfigurationCommand.js +2 -2
- package/dist-es/commands/CreateQueryLoggingConfigurationCommand.js +2 -2
- package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +2 -2
- package/dist-es/commands/CreateScraperCommand.js +2 -2
- package/dist-es/commands/CreateWorkspaceCommand.js +2 -2
- package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +2 -2
- package/dist-es/commands/DeleteAnomalyDetectorCommand.js +2 -2
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +2 -2
- package/dist-es/commands/DeleteQueryLoggingConfigurationCommand.js +2 -2
- package/dist-es/commands/DeleteResourcePolicyCommand.js +2 -2
- package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +2 -2
- package/dist-es/commands/DeleteScraperCommand.js +2 -2
- package/dist-es/commands/DeleteScraperLoggingConfigurationCommand.js +2 -2
- package/dist-es/commands/DeleteWorkspaceCommand.js +2 -2
- package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +2 -2
- package/dist-es/commands/DescribeAnomalyDetectorCommand.js +2 -2
- package/dist-es/commands/DescribeLoggingConfigurationCommand.js +2 -2
- package/dist-es/commands/DescribeQueryLoggingConfigurationCommand.js +2 -2
- package/dist-es/commands/DescribeResourcePolicyCommand.js +2 -2
- package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +2 -2
- package/dist-es/commands/DescribeScraperCommand.js +2 -2
- package/dist-es/commands/DescribeScraperLoggingConfigurationCommand.js +2 -2
- package/dist-es/commands/DescribeWorkspaceCommand.js +2 -2
- package/dist-es/commands/DescribeWorkspaceConfigurationCommand.js +2 -2
- package/dist-es/commands/GetDefaultScraperConfigurationCommand.js +2 -2
- package/dist-es/commands/ListAnomalyDetectorsCommand.js +2 -2
- package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +2 -2
- package/dist-es/commands/ListScrapersCommand.js +2 -2
- package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-es/commands/ListWorkspacesCommand.js +2 -2
- package/dist-es/commands/PutAlertManagerDefinitionCommand.js +2 -2
- package/dist-es/commands/PutAnomalyDetectorCommand.js +2 -2
- package/dist-es/commands/PutResourcePolicyCommand.js +2 -2
- package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +2 -2
- package/dist-es/commands/TagResourceCommand.js +2 -2
- package/dist-es/commands/UntagResourceCommand.js +2 -2
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js +2 -2
- package/dist-es/commands/UpdateQueryLoggingConfigurationCommand.js +2 -2
- package/dist-es/commands/UpdateScraperCommand.js +2 -2
- package/dist-es/commands/UpdateScraperLoggingConfigurationCommand.js +2 -2
- package/dist-es/commands/UpdateWorkspaceAliasCommand.js +2 -2
- package/dist-es/commands/UpdateWorkspaceConfigurationCommand.js +2 -2
- package/dist-es/endpoint/bdd.js +1 -1
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/AmpServiceException.js +1 -1
- package/dist-es/runtimeConfig.browser.js +4 -6
- package/dist-es/runtimeConfig.js +4 -8
- package/dist-es/runtimeConfig.shared.js +3 -4
- package/dist-es/runtimeExtensions.js +2 -2
- package/dist-es/waiters/waitForAnomalyDetectorActive.js +1 -1
- package/dist-es/waiters/waitForAnomalyDetectorDeleted.js +1 -1
- package/dist-es/waiters/waitForScraperActive.js +1 -1
- package/dist-es/waiters/waitForScraperDeleted.js +1 -1
- package/dist-es/waiters/waitForWorkspaceActive.js +1 -1
- package/dist-es/waiters/waitForWorkspaceDeleted.js +1 -1
- package/dist-types/Amp.d.ts +1 -1
- package/dist-types/AmpClient.d.ts +5 -5
- package/dist-types/commands/CreateAlertManagerDefinitionCommand.d.ts +6 -4
- package/dist-types/commands/CreateAnomalyDetectorCommand.d.ts +6 -4
- package/dist-types/commands/CreateLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/CreateQueryLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/CreateRuleGroupsNamespaceCommand.d.ts +6 -4
- package/dist-types/commands/CreateScraperCommand.d.ts +6 -4
- package/dist-types/commands/CreateWorkspaceCommand.d.ts +6 -4
- package/dist-types/commands/DeleteAlertManagerDefinitionCommand.d.ts +6 -4
- package/dist-types/commands/DeleteAnomalyDetectorCommand.d.ts +6 -4
- package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/DeleteQueryLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +6 -4
- package/dist-types/commands/DeleteRuleGroupsNamespaceCommand.d.ts +6 -4
- package/dist-types/commands/DeleteScraperCommand.d.ts +6 -4
- package/dist-types/commands/DeleteScraperLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/DeleteWorkspaceCommand.d.ts +6 -4
- package/dist-types/commands/DescribeAlertManagerDefinitionCommand.d.ts +6 -4
- package/dist-types/commands/DescribeAnomalyDetectorCommand.d.ts +6 -4
- package/dist-types/commands/DescribeLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/DescribeQueryLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +6 -4
- package/dist-types/commands/DescribeRuleGroupsNamespaceCommand.d.ts +6 -4
- package/dist-types/commands/DescribeScraperCommand.d.ts +6 -4
- package/dist-types/commands/DescribeScraperLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/DescribeWorkspaceCommand.d.ts +6 -4
- package/dist-types/commands/DescribeWorkspaceConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/GetDefaultScraperConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/ListAnomalyDetectorsCommand.d.ts +6 -4
- package/dist-types/commands/ListRuleGroupsNamespacesCommand.d.ts +6 -4
- package/dist-types/commands/ListScrapersCommand.d.ts +6 -4
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -4
- package/dist-types/commands/ListWorkspacesCommand.d.ts +6 -4
- package/dist-types/commands/PutAlertManagerDefinitionCommand.d.ts +6 -4
- package/dist-types/commands/PutAnomalyDetectorCommand.d.ts +6 -4
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +6 -4
- package/dist-types/commands/PutRuleGroupsNamespaceCommand.d.ts +6 -4
- package/dist-types/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -4
- package/dist-types/commands/UpdateLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/UpdateQueryLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/UpdateScraperCommand.d.ts +6 -4
- package/dist-types/commands/UpdateScraperLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/UpdateWorkspaceAliasCommand.d.ts +6 -4
- package/dist-types/commands/UpdateWorkspaceConfigurationCommand.d.ts +6 -4
- package/dist-types/endpoint/bdd.d.ts +1 -1
- package/dist-types/extensionConfiguration.d.ts +1 -1
- package/dist-types/models/AmpServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/Amp.d.ts +1 -1
- package/dist-types/ts3.4/AmpClient.d.ts +8 -14
- package/dist-types/ts3.4/commands/CreateAlertManagerDefinitionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateAnomalyDetectorCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateQueryLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateRuleGroupsNamespaceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateScraperCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateWorkspaceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteAlertManagerDefinitionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteAnomalyDetectorCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteQueryLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteRuleGroupsNamespaceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteScraperCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteScraperLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteWorkspaceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeAlertManagerDefinitionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeAnomalyDetectorCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeQueryLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeResourcePolicyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeRuleGroupsNamespaceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeScraperCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeScraperLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeWorkspaceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeWorkspaceConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetDefaultScraperConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListAnomalyDetectorsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListRuleGroupsNamespacesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListScrapersCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListWorkspacesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutAlertManagerDefinitionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutAnomalyDetectorCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutRuleGroupsNamespaceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateQueryLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateScraperCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateScraperLoggingConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateWorkspaceAliasCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateWorkspaceConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/AmpServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/waiters/waitForAnomalyDetectorActive.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForAnomalyDetectorDeleted.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForScraperActive.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForScraperDeleted.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForWorkspaceActive.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForWorkspaceDeleted.d.ts +1 -1
- package/dist-types/waiters/waitForAnomalyDetectorActive.d.ts +1 -1
- package/dist-types/waiters/waitForAnomalyDetectorDeleted.d.ts +1 -1
- package/dist-types/waiters/waitForScraperActive.d.ts +1 -1
- package/dist-types/waiters/waitForScraperDeleted.d.ts +1 -1
- package/dist-types/waiters/waitForWorkspaceActive.d.ts +1 -1
- package/dist-types/waiters/waitForWorkspaceDeleted.d.ts +1 -1
- package/package.json +13 -35
package/dist-cjs/index.js
CHANGED
|
@@ -4,19 +4,17 @@ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
|
4
4
|
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
5
|
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
-
var configResolver = require('@smithy/config-resolver');
|
|
8
7
|
var core = require('@smithy/core');
|
|
8
|
+
var client = require('@smithy/core/client');
|
|
9
|
+
var config = require('@smithy/core/config');
|
|
10
|
+
var endpoints = require('@smithy/core/endpoints');
|
|
11
|
+
var protocols = require('@smithy/core/protocols');
|
|
12
|
+
var retry = require('@smithy/core/retry');
|
|
9
13
|
var schema = require('@smithy/core/schema');
|
|
10
|
-
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
11
|
-
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
12
|
-
var middlewareRetry = require('@smithy/middleware-retry');
|
|
13
|
-
var smithyClient = require('@smithy/smithy-client');
|
|
14
14
|
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
15
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
|
-
var protocolHttp = require('@smithy/protocol-http');
|
|
18
17
|
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
-
var utilWaiter = require('@smithy/util-waiter');
|
|
20
18
|
var errors = require('./models/errors');
|
|
21
19
|
var AmpServiceException = require('./models/AmpServiceException');
|
|
22
20
|
|
|
@@ -74,12 +72,12 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
74
72
|
};
|
|
75
73
|
|
|
76
74
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
77
|
-
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig),
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
78
76
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
79
|
-
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
80
78
|
};
|
|
81
79
|
|
|
82
|
-
class AmpClient extends
|
|
80
|
+
class AmpClient extends client.Client {
|
|
83
81
|
config;
|
|
84
82
|
constructor(...[configuration]) {
|
|
85
83
|
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
@@ -87,17 +85,17 @@ class AmpClient extends smithyClient.Client {
|
|
|
87
85
|
this.initConfig = _config_0;
|
|
88
86
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
89
87
|
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
90
|
-
const _config_3 =
|
|
91
|
-
const _config_4 =
|
|
88
|
+
const _config_3 = retry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = config.resolveRegionConfig(_config_3);
|
|
92
90
|
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
93
|
-
const _config_6 =
|
|
91
|
+
const _config_6 = endpoints.resolveEndpointConfig(_config_5);
|
|
94
92
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
95
93
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
96
94
|
this.config = _config_8;
|
|
97
95
|
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
98
96
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
99
|
-
this.middlewareStack.use(
|
|
100
|
-
this.middlewareStack.use(
|
|
97
|
+
this.middlewareStack.use(retry.getRetryPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
|
|
101
99
|
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
102
100
|
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
103
101
|
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
@@ -114,11 +112,11 @@ class AmpClient extends smithyClient.Client {
|
|
|
114
112
|
}
|
|
115
113
|
}
|
|
116
114
|
|
|
117
|
-
class CreateAlertManagerDefinitionCommand extends
|
|
115
|
+
class CreateAlertManagerDefinitionCommand extends client.Command
|
|
118
116
|
.classBuilder()
|
|
119
117
|
.ep(commonParams)
|
|
120
118
|
.m(function (Command, cs, config, o) {
|
|
121
|
-
return [
|
|
119
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
122
120
|
})
|
|
123
121
|
.s("AmazonPrometheusService", "CreateAlertManagerDefinition", {})
|
|
124
122
|
.n("AmpClient", "CreateAlertManagerDefinitionCommand")
|
|
@@ -126,11 +124,11 @@ class CreateAlertManagerDefinitionCommand extends smithyClient.Command
|
|
|
126
124
|
.build() {
|
|
127
125
|
}
|
|
128
126
|
|
|
129
|
-
class CreateAnomalyDetectorCommand extends
|
|
127
|
+
class CreateAnomalyDetectorCommand extends client.Command
|
|
130
128
|
.classBuilder()
|
|
131
129
|
.ep(commonParams)
|
|
132
130
|
.m(function (Command, cs, config, o) {
|
|
133
|
-
return [
|
|
131
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
134
132
|
})
|
|
135
133
|
.s("AmazonPrometheusService", "CreateAnomalyDetector", {})
|
|
136
134
|
.n("AmpClient", "CreateAnomalyDetectorCommand")
|
|
@@ -138,11 +136,11 @@ class CreateAnomalyDetectorCommand extends smithyClient.Command
|
|
|
138
136
|
.build() {
|
|
139
137
|
}
|
|
140
138
|
|
|
141
|
-
class CreateLoggingConfigurationCommand extends
|
|
139
|
+
class CreateLoggingConfigurationCommand extends client.Command
|
|
142
140
|
.classBuilder()
|
|
143
141
|
.ep(commonParams)
|
|
144
142
|
.m(function (Command, cs, config, o) {
|
|
145
|
-
return [
|
|
143
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
146
144
|
})
|
|
147
145
|
.s("AmazonPrometheusService", "CreateLoggingConfiguration", {})
|
|
148
146
|
.n("AmpClient", "CreateLoggingConfigurationCommand")
|
|
@@ -150,11 +148,11 @@ class CreateLoggingConfigurationCommand extends smithyClient.Command
|
|
|
150
148
|
.build() {
|
|
151
149
|
}
|
|
152
150
|
|
|
153
|
-
class CreateQueryLoggingConfigurationCommand extends
|
|
151
|
+
class CreateQueryLoggingConfigurationCommand extends client.Command
|
|
154
152
|
.classBuilder()
|
|
155
153
|
.ep(commonParams)
|
|
156
154
|
.m(function (Command, cs, config, o) {
|
|
157
|
-
return [
|
|
155
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
158
156
|
})
|
|
159
157
|
.s("AmazonPrometheusService", "CreateQueryLoggingConfiguration", {})
|
|
160
158
|
.n("AmpClient", "CreateQueryLoggingConfigurationCommand")
|
|
@@ -162,11 +160,11 @@ class CreateQueryLoggingConfigurationCommand extends smithyClient.Command
|
|
|
162
160
|
.build() {
|
|
163
161
|
}
|
|
164
162
|
|
|
165
|
-
class CreateRuleGroupsNamespaceCommand extends
|
|
163
|
+
class CreateRuleGroupsNamespaceCommand extends client.Command
|
|
166
164
|
.classBuilder()
|
|
167
165
|
.ep(commonParams)
|
|
168
166
|
.m(function (Command, cs, config, o) {
|
|
169
|
-
return [
|
|
167
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
170
168
|
})
|
|
171
169
|
.s("AmazonPrometheusService", "CreateRuleGroupsNamespace", {})
|
|
172
170
|
.n("AmpClient", "CreateRuleGroupsNamespaceCommand")
|
|
@@ -174,11 +172,11 @@ class CreateRuleGroupsNamespaceCommand extends smithyClient.Command
|
|
|
174
172
|
.build() {
|
|
175
173
|
}
|
|
176
174
|
|
|
177
|
-
class CreateScraperCommand extends
|
|
175
|
+
class CreateScraperCommand extends client.Command
|
|
178
176
|
.classBuilder()
|
|
179
177
|
.ep(commonParams)
|
|
180
178
|
.m(function (Command, cs, config, o) {
|
|
181
|
-
return [
|
|
179
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
182
180
|
})
|
|
183
181
|
.s("AmazonPrometheusService", "CreateScraper", {})
|
|
184
182
|
.n("AmpClient", "CreateScraperCommand")
|
|
@@ -186,11 +184,11 @@ class CreateScraperCommand extends smithyClient.Command
|
|
|
186
184
|
.build() {
|
|
187
185
|
}
|
|
188
186
|
|
|
189
|
-
class CreateWorkspaceCommand extends
|
|
187
|
+
class CreateWorkspaceCommand extends client.Command
|
|
190
188
|
.classBuilder()
|
|
191
189
|
.ep(commonParams)
|
|
192
190
|
.m(function (Command, cs, config, o) {
|
|
193
|
-
return [
|
|
191
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
194
192
|
})
|
|
195
193
|
.s("AmazonPrometheusService", "CreateWorkspace", {})
|
|
196
194
|
.n("AmpClient", "CreateWorkspaceCommand")
|
|
@@ -198,11 +196,11 @@ class CreateWorkspaceCommand extends smithyClient.Command
|
|
|
198
196
|
.build() {
|
|
199
197
|
}
|
|
200
198
|
|
|
201
|
-
class DeleteAlertManagerDefinitionCommand extends
|
|
199
|
+
class DeleteAlertManagerDefinitionCommand extends client.Command
|
|
202
200
|
.classBuilder()
|
|
203
201
|
.ep(commonParams)
|
|
204
202
|
.m(function (Command, cs, config, o) {
|
|
205
|
-
return [
|
|
203
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
206
204
|
})
|
|
207
205
|
.s("AmazonPrometheusService", "DeleteAlertManagerDefinition", {})
|
|
208
206
|
.n("AmpClient", "DeleteAlertManagerDefinitionCommand")
|
|
@@ -210,11 +208,11 @@ class DeleteAlertManagerDefinitionCommand extends smithyClient.Command
|
|
|
210
208
|
.build() {
|
|
211
209
|
}
|
|
212
210
|
|
|
213
|
-
class DeleteAnomalyDetectorCommand extends
|
|
211
|
+
class DeleteAnomalyDetectorCommand extends client.Command
|
|
214
212
|
.classBuilder()
|
|
215
213
|
.ep(commonParams)
|
|
216
214
|
.m(function (Command, cs, config, o) {
|
|
217
|
-
return [
|
|
215
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
218
216
|
})
|
|
219
217
|
.s("AmazonPrometheusService", "DeleteAnomalyDetector", {})
|
|
220
218
|
.n("AmpClient", "DeleteAnomalyDetectorCommand")
|
|
@@ -222,11 +220,11 @@ class DeleteAnomalyDetectorCommand extends smithyClient.Command
|
|
|
222
220
|
.build() {
|
|
223
221
|
}
|
|
224
222
|
|
|
225
|
-
class DeleteLoggingConfigurationCommand extends
|
|
223
|
+
class DeleteLoggingConfigurationCommand extends client.Command
|
|
226
224
|
.classBuilder()
|
|
227
225
|
.ep(commonParams)
|
|
228
226
|
.m(function (Command, cs, config, o) {
|
|
229
|
-
return [
|
|
227
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
230
228
|
})
|
|
231
229
|
.s("AmazonPrometheusService", "DeleteLoggingConfiguration", {})
|
|
232
230
|
.n("AmpClient", "DeleteLoggingConfigurationCommand")
|
|
@@ -234,11 +232,11 @@ class DeleteLoggingConfigurationCommand extends smithyClient.Command
|
|
|
234
232
|
.build() {
|
|
235
233
|
}
|
|
236
234
|
|
|
237
|
-
class DeleteQueryLoggingConfigurationCommand extends
|
|
235
|
+
class DeleteQueryLoggingConfigurationCommand extends client.Command
|
|
238
236
|
.classBuilder()
|
|
239
237
|
.ep(commonParams)
|
|
240
238
|
.m(function (Command, cs, config, o) {
|
|
241
|
-
return [
|
|
239
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
242
240
|
})
|
|
243
241
|
.s("AmazonPrometheusService", "DeleteQueryLoggingConfiguration", {})
|
|
244
242
|
.n("AmpClient", "DeleteQueryLoggingConfigurationCommand")
|
|
@@ -246,11 +244,11 @@ class DeleteQueryLoggingConfigurationCommand extends smithyClient.Command
|
|
|
246
244
|
.build() {
|
|
247
245
|
}
|
|
248
246
|
|
|
249
|
-
class DeleteResourcePolicyCommand extends
|
|
247
|
+
class DeleteResourcePolicyCommand extends client.Command
|
|
250
248
|
.classBuilder()
|
|
251
249
|
.ep(commonParams)
|
|
252
250
|
.m(function (Command, cs, config, o) {
|
|
253
|
-
return [
|
|
251
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
254
252
|
})
|
|
255
253
|
.s("AmazonPrometheusService", "DeleteResourcePolicy", {})
|
|
256
254
|
.n("AmpClient", "DeleteResourcePolicyCommand")
|
|
@@ -258,11 +256,11 @@ class DeleteResourcePolicyCommand extends smithyClient.Command
|
|
|
258
256
|
.build() {
|
|
259
257
|
}
|
|
260
258
|
|
|
261
|
-
class DeleteRuleGroupsNamespaceCommand extends
|
|
259
|
+
class DeleteRuleGroupsNamespaceCommand extends client.Command
|
|
262
260
|
.classBuilder()
|
|
263
261
|
.ep(commonParams)
|
|
264
262
|
.m(function (Command, cs, config, o) {
|
|
265
|
-
return [
|
|
263
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
266
264
|
})
|
|
267
265
|
.s("AmazonPrometheusService", "DeleteRuleGroupsNamespace", {})
|
|
268
266
|
.n("AmpClient", "DeleteRuleGroupsNamespaceCommand")
|
|
@@ -270,11 +268,11 @@ class DeleteRuleGroupsNamespaceCommand extends smithyClient.Command
|
|
|
270
268
|
.build() {
|
|
271
269
|
}
|
|
272
270
|
|
|
273
|
-
class DeleteScraperCommand extends
|
|
271
|
+
class DeleteScraperCommand extends client.Command
|
|
274
272
|
.classBuilder()
|
|
275
273
|
.ep(commonParams)
|
|
276
274
|
.m(function (Command, cs, config, o) {
|
|
277
|
-
return [
|
|
275
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
278
276
|
})
|
|
279
277
|
.s("AmazonPrometheusService", "DeleteScraper", {})
|
|
280
278
|
.n("AmpClient", "DeleteScraperCommand")
|
|
@@ -282,11 +280,11 @@ class DeleteScraperCommand extends smithyClient.Command
|
|
|
282
280
|
.build() {
|
|
283
281
|
}
|
|
284
282
|
|
|
285
|
-
class DeleteScraperLoggingConfigurationCommand extends
|
|
283
|
+
class DeleteScraperLoggingConfigurationCommand extends client.Command
|
|
286
284
|
.classBuilder()
|
|
287
285
|
.ep(commonParams)
|
|
288
286
|
.m(function (Command, cs, config, o) {
|
|
289
|
-
return [
|
|
287
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
290
288
|
})
|
|
291
289
|
.s("AmazonPrometheusService", "DeleteScraperLoggingConfiguration", {})
|
|
292
290
|
.n("AmpClient", "DeleteScraperLoggingConfigurationCommand")
|
|
@@ -294,11 +292,11 @@ class DeleteScraperLoggingConfigurationCommand extends smithyClient.Command
|
|
|
294
292
|
.build() {
|
|
295
293
|
}
|
|
296
294
|
|
|
297
|
-
class DeleteWorkspaceCommand extends
|
|
295
|
+
class DeleteWorkspaceCommand extends client.Command
|
|
298
296
|
.classBuilder()
|
|
299
297
|
.ep(commonParams)
|
|
300
298
|
.m(function (Command, cs, config, o) {
|
|
301
|
-
return [
|
|
299
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
302
300
|
})
|
|
303
301
|
.s("AmazonPrometheusService", "DeleteWorkspace", {})
|
|
304
302
|
.n("AmpClient", "DeleteWorkspaceCommand")
|
|
@@ -306,11 +304,11 @@ class DeleteWorkspaceCommand extends smithyClient.Command
|
|
|
306
304
|
.build() {
|
|
307
305
|
}
|
|
308
306
|
|
|
309
|
-
class DescribeAlertManagerDefinitionCommand extends
|
|
307
|
+
class DescribeAlertManagerDefinitionCommand extends client.Command
|
|
310
308
|
.classBuilder()
|
|
311
309
|
.ep(commonParams)
|
|
312
310
|
.m(function (Command, cs, config, o) {
|
|
313
|
-
return [
|
|
311
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
314
312
|
})
|
|
315
313
|
.s("AmazonPrometheusService", "DescribeAlertManagerDefinition", {})
|
|
316
314
|
.n("AmpClient", "DescribeAlertManagerDefinitionCommand")
|
|
@@ -318,11 +316,11 @@ class DescribeAlertManagerDefinitionCommand extends smithyClient.Command
|
|
|
318
316
|
.build() {
|
|
319
317
|
}
|
|
320
318
|
|
|
321
|
-
class DescribeAnomalyDetectorCommand extends
|
|
319
|
+
class DescribeAnomalyDetectorCommand extends client.Command
|
|
322
320
|
.classBuilder()
|
|
323
321
|
.ep(commonParams)
|
|
324
322
|
.m(function (Command, cs, config, o) {
|
|
325
|
-
return [
|
|
323
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
326
324
|
})
|
|
327
325
|
.s("AmazonPrometheusService", "DescribeAnomalyDetector", {})
|
|
328
326
|
.n("AmpClient", "DescribeAnomalyDetectorCommand")
|
|
@@ -330,11 +328,11 @@ class DescribeAnomalyDetectorCommand extends smithyClient.Command
|
|
|
330
328
|
.build() {
|
|
331
329
|
}
|
|
332
330
|
|
|
333
|
-
class DescribeLoggingConfigurationCommand extends
|
|
331
|
+
class DescribeLoggingConfigurationCommand extends client.Command
|
|
334
332
|
.classBuilder()
|
|
335
333
|
.ep(commonParams)
|
|
336
334
|
.m(function (Command, cs, config, o) {
|
|
337
|
-
return [
|
|
335
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
338
336
|
})
|
|
339
337
|
.s("AmazonPrometheusService", "DescribeLoggingConfiguration", {})
|
|
340
338
|
.n("AmpClient", "DescribeLoggingConfigurationCommand")
|
|
@@ -342,11 +340,11 @@ class DescribeLoggingConfigurationCommand extends smithyClient.Command
|
|
|
342
340
|
.build() {
|
|
343
341
|
}
|
|
344
342
|
|
|
345
|
-
class DescribeQueryLoggingConfigurationCommand extends
|
|
343
|
+
class DescribeQueryLoggingConfigurationCommand extends client.Command
|
|
346
344
|
.classBuilder()
|
|
347
345
|
.ep(commonParams)
|
|
348
346
|
.m(function (Command, cs, config, o) {
|
|
349
|
-
return [
|
|
347
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
350
348
|
})
|
|
351
349
|
.s("AmazonPrometheusService", "DescribeQueryLoggingConfiguration", {})
|
|
352
350
|
.n("AmpClient", "DescribeQueryLoggingConfigurationCommand")
|
|
@@ -354,11 +352,11 @@ class DescribeQueryLoggingConfigurationCommand extends smithyClient.Command
|
|
|
354
352
|
.build() {
|
|
355
353
|
}
|
|
356
354
|
|
|
357
|
-
class DescribeResourcePolicyCommand extends
|
|
355
|
+
class DescribeResourcePolicyCommand extends client.Command
|
|
358
356
|
.classBuilder()
|
|
359
357
|
.ep(commonParams)
|
|
360
358
|
.m(function (Command, cs, config, o) {
|
|
361
|
-
return [
|
|
359
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
362
360
|
})
|
|
363
361
|
.s("AmazonPrometheusService", "DescribeResourcePolicy", {})
|
|
364
362
|
.n("AmpClient", "DescribeResourcePolicyCommand")
|
|
@@ -366,11 +364,11 @@ class DescribeResourcePolicyCommand extends smithyClient.Command
|
|
|
366
364
|
.build() {
|
|
367
365
|
}
|
|
368
366
|
|
|
369
|
-
class DescribeRuleGroupsNamespaceCommand extends
|
|
367
|
+
class DescribeRuleGroupsNamespaceCommand extends client.Command
|
|
370
368
|
.classBuilder()
|
|
371
369
|
.ep(commonParams)
|
|
372
370
|
.m(function (Command, cs, config, o) {
|
|
373
|
-
return [
|
|
371
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
374
372
|
})
|
|
375
373
|
.s("AmazonPrometheusService", "DescribeRuleGroupsNamespace", {})
|
|
376
374
|
.n("AmpClient", "DescribeRuleGroupsNamespaceCommand")
|
|
@@ -378,11 +376,11 @@ class DescribeRuleGroupsNamespaceCommand extends smithyClient.Command
|
|
|
378
376
|
.build() {
|
|
379
377
|
}
|
|
380
378
|
|
|
381
|
-
class DescribeScraperCommand extends
|
|
379
|
+
class DescribeScraperCommand extends client.Command
|
|
382
380
|
.classBuilder()
|
|
383
381
|
.ep(commonParams)
|
|
384
382
|
.m(function (Command, cs, config, o) {
|
|
385
|
-
return [
|
|
383
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
386
384
|
})
|
|
387
385
|
.s("AmazonPrometheusService", "DescribeScraper", {})
|
|
388
386
|
.n("AmpClient", "DescribeScraperCommand")
|
|
@@ -390,11 +388,11 @@ class DescribeScraperCommand extends smithyClient.Command
|
|
|
390
388
|
.build() {
|
|
391
389
|
}
|
|
392
390
|
|
|
393
|
-
class DescribeScraperLoggingConfigurationCommand extends
|
|
391
|
+
class DescribeScraperLoggingConfigurationCommand extends client.Command
|
|
394
392
|
.classBuilder()
|
|
395
393
|
.ep(commonParams)
|
|
396
394
|
.m(function (Command, cs, config, o) {
|
|
397
|
-
return [
|
|
395
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
398
396
|
})
|
|
399
397
|
.s("AmazonPrometheusService", "DescribeScraperLoggingConfiguration", {})
|
|
400
398
|
.n("AmpClient", "DescribeScraperLoggingConfigurationCommand")
|
|
@@ -402,11 +400,11 @@ class DescribeScraperLoggingConfigurationCommand extends smithyClient.Command
|
|
|
402
400
|
.build() {
|
|
403
401
|
}
|
|
404
402
|
|
|
405
|
-
class DescribeWorkspaceCommand extends
|
|
403
|
+
class DescribeWorkspaceCommand extends client.Command
|
|
406
404
|
.classBuilder()
|
|
407
405
|
.ep(commonParams)
|
|
408
406
|
.m(function (Command, cs, config, o) {
|
|
409
|
-
return [
|
|
407
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
410
408
|
})
|
|
411
409
|
.s("AmazonPrometheusService", "DescribeWorkspace", {})
|
|
412
410
|
.n("AmpClient", "DescribeWorkspaceCommand")
|
|
@@ -414,11 +412,11 @@ class DescribeWorkspaceCommand extends smithyClient.Command
|
|
|
414
412
|
.build() {
|
|
415
413
|
}
|
|
416
414
|
|
|
417
|
-
class DescribeWorkspaceConfigurationCommand extends
|
|
415
|
+
class DescribeWorkspaceConfigurationCommand extends client.Command
|
|
418
416
|
.classBuilder()
|
|
419
417
|
.ep(commonParams)
|
|
420
418
|
.m(function (Command, cs, config, o) {
|
|
421
|
-
return [
|
|
419
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
422
420
|
})
|
|
423
421
|
.s("AmazonPrometheusService", "DescribeWorkspaceConfiguration", {})
|
|
424
422
|
.n("AmpClient", "DescribeWorkspaceConfigurationCommand")
|
|
@@ -426,11 +424,11 @@ class DescribeWorkspaceConfigurationCommand extends smithyClient.Command
|
|
|
426
424
|
.build() {
|
|
427
425
|
}
|
|
428
426
|
|
|
429
|
-
class GetDefaultScraperConfigurationCommand extends
|
|
427
|
+
class GetDefaultScraperConfigurationCommand extends client.Command
|
|
430
428
|
.classBuilder()
|
|
431
429
|
.ep(commonParams)
|
|
432
430
|
.m(function (Command, cs, config, o) {
|
|
433
|
-
return [
|
|
431
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
434
432
|
})
|
|
435
433
|
.s("AmazonPrometheusService", "GetDefaultScraperConfiguration", {})
|
|
436
434
|
.n("AmpClient", "GetDefaultScraperConfigurationCommand")
|
|
@@ -438,11 +436,11 @@ class GetDefaultScraperConfigurationCommand extends smithyClient.Command
|
|
|
438
436
|
.build() {
|
|
439
437
|
}
|
|
440
438
|
|
|
441
|
-
class ListAnomalyDetectorsCommand extends
|
|
439
|
+
class ListAnomalyDetectorsCommand extends client.Command
|
|
442
440
|
.classBuilder()
|
|
443
441
|
.ep(commonParams)
|
|
444
442
|
.m(function (Command, cs, config, o) {
|
|
445
|
-
return [
|
|
443
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
446
444
|
})
|
|
447
445
|
.s("AmazonPrometheusService", "ListAnomalyDetectors", {})
|
|
448
446
|
.n("AmpClient", "ListAnomalyDetectorsCommand")
|
|
@@ -450,11 +448,11 @@ class ListAnomalyDetectorsCommand extends smithyClient.Command
|
|
|
450
448
|
.build() {
|
|
451
449
|
}
|
|
452
450
|
|
|
453
|
-
class ListRuleGroupsNamespacesCommand extends
|
|
451
|
+
class ListRuleGroupsNamespacesCommand extends client.Command
|
|
454
452
|
.classBuilder()
|
|
455
453
|
.ep(commonParams)
|
|
456
454
|
.m(function (Command, cs, config, o) {
|
|
457
|
-
return [
|
|
455
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
458
456
|
})
|
|
459
457
|
.s("AmazonPrometheusService", "ListRuleGroupsNamespaces", {})
|
|
460
458
|
.n("AmpClient", "ListRuleGroupsNamespacesCommand")
|
|
@@ -462,11 +460,11 @@ class ListRuleGroupsNamespacesCommand extends smithyClient.Command
|
|
|
462
460
|
.build() {
|
|
463
461
|
}
|
|
464
462
|
|
|
465
|
-
class ListScrapersCommand extends
|
|
463
|
+
class ListScrapersCommand extends client.Command
|
|
466
464
|
.classBuilder()
|
|
467
465
|
.ep(commonParams)
|
|
468
466
|
.m(function (Command, cs, config, o) {
|
|
469
|
-
return [
|
|
467
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
470
468
|
})
|
|
471
469
|
.s("AmazonPrometheusService", "ListScrapers", {})
|
|
472
470
|
.n("AmpClient", "ListScrapersCommand")
|
|
@@ -474,11 +472,11 @@ class ListScrapersCommand extends smithyClient.Command
|
|
|
474
472
|
.build() {
|
|
475
473
|
}
|
|
476
474
|
|
|
477
|
-
class ListTagsForResourceCommand extends
|
|
475
|
+
class ListTagsForResourceCommand extends client.Command
|
|
478
476
|
.classBuilder()
|
|
479
477
|
.ep(commonParams)
|
|
480
478
|
.m(function (Command, cs, config, o) {
|
|
481
|
-
return [
|
|
479
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
482
480
|
})
|
|
483
481
|
.s("AmazonPrometheusService", "ListTagsForResource", {})
|
|
484
482
|
.n("AmpClient", "ListTagsForResourceCommand")
|
|
@@ -486,11 +484,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
|
|
|
486
484
|
.build() {
|
|
487
485
|
}
|
|
488
486
|
|
|
489
|
-
class ListWorkspacesCommand extends
|
|
487
|
+
class ListWorkspacesCommand extends client.Command
|
|
490
488
|
.classBuilder()
|
|
491
489
|
.ep(commonParams)
|
|
492
490
|
.m(function (Command, cs, config, o) {
|
|
493
|
-
return [
|
|
491
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
494
492
|
})
|
|
495
493
|
.s("AmazonPrometheusService", "ListWorkspaces", {})
|
|
496
494
|
.n("AmpClient", "ListWorkspacesCommand")
|
|
@@ -498,11 +496,11 @@ class ListWorkspacesCommand extends smithyClient.Command
|
|
|
498
496
|
.build() {
|
|
499
497
|
}
|
|
500
498
|
|
|
501
|
-
class PutAlertManagerDefinitionCommand extends
|
|
499
|
+
class PutAlertManagerDefinitionCommand extends client.Command
|
|
502
500
|
.classBuilder()
|
|
503
501
|
.ep(commonParams)
|
|
504
502
|
.m(function (Command, cs, config, o) {
|
|
505
|
-
return [
|
|
503
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
506
504
|
})
|
|
507
505
|
.s("AmazonPrometheusService", "PutAlertManagerDefinition", {})
|
|
508
506
|
.n("AmpClient", "PutAlertManagerDefinitionCommand")
|
|
@@ -510,11 +508,11 @@ class PutAlertManagerDefinitionCommand extends smithyClient.Command
|
|
|
510
508
|
.build() {
|
|
511
509
|
}
|
|
512
510
|
|
|
513
|
-
class PutAnomalyDetectorCommand extends
|
|
511
|
+
class PutAnomalyDetectorCommand extends client.Command
|
|
514
512
|
.classBuilder()
|
|
515
513
|
.ep(commonParams)
|
|
516
514
|
.m(function (Command, cs, config, o) {
|
|
517
|
-
return [
|
|
515
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
518
516
|
})
|
|
519
517
|
.s("AmazonPrometheusService", "PutAnomalyDetector", {})
|
|
520
518
|
.n("AmpClient", "PutAnomalyDetectorCommand")
|
|
@@ -522,11 +520,11 @@ class PutAnomalyDetectorCommand extends smithyClient.Command
|
|
|
522
520
|
.build() {
|
|
523
521
|
}
|
|
524
522
|
|
|
525
|
-
class PutResourcePolicyCommand extends
|
|
523
|
+
class PutResourcePolicyCommand extends client.Command
|
|
526
524
|
.classBuilder()
|
|
527
525
|
.ep(commonParams)
|
|
528
526
|
.m(function (Command, cs, config, o) {
|
|
529
|
-
return [
|
|
527
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
530
528
|
})
|
|
531
529
|
.s("AmazonPrometheusService", "PutResourcePolicy", {})
|
|
532
530
|
.n("AmpClient", "PutResourcePolicyCommand")
|
|
@@ -534,11 +532,11 @@ class PutResourcePolicyCommand extends smithyClient.Command
|
|
|
534
532
|
.build() {
|
|
535
533
|
}
|
|
536
534
|
|
|
537
|
-
class PutRuleGroupsNamespaceCommand extends
|
|
535
|
+
class PutRuleGroupsNamespaceCommand extends client.Command
|
|
538
536
|
.classBuilder()
|
|
539
537
|
.ep(commonParams)
|
|
540
538
|
.m(function (Command, cs, config, o) {
|
|
541
|
-
return [
|
|
539
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
542
540
|
})
|
|
543
541
|
.s("AmazonPrometheusService", "PutRuleGroupsNamespace", {})
|
|
544
542
|
.n("AmpClient", "PutRuleGroupsNamespaceCommand")
|
|
@@ -546,11 +544,11 @@ class PutRuleGroupsNamespaceCommand extends smithyClient.Command
|
|
|
546
544
|
.build() {
|
|
547
545
|
}
|
|
548
546
|
|
|
549
|
-
class TagResourceCommand extends
|
|
547
|
+
class TagResourceCommand extends client.Command
|
|
550
548
|
.classBuilder()
|
|
551
549
|
.ep(commonParams)
|
|
552
550
|
.m(function (Command, cs, config, o) {
|
|
553
|
-
return [
|
|
551
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
554
552
|
})
|
|
555
553
|
.s("AmazonPrometheusService", "TagResource", {})
|
|
556
554
|
.n("AmpClient", "TagResourceCommand")
|
|
@@ -558,11 +556,11 @@ class TagResourceCommand extends smithyClient.Command
|
|
|
558
556
|
.build() {
|
|
559
557
|
}
|
|
560
558
|
|
|
561
|
-
class UntagResourceCommand extends
|
|
559
|
+
class UntagResourceCommand extends client.Command
|
|
562
560
|
.classBuilder()
|
|
563
561
|
.ep(commonParams)
|
|
564
562
|
.m(function (Command, cs, config, o) {
|
|
565
|
-
return [
|
|
563
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
566
564
|
})
|
|
567
565
|
.s("AmazonPrometheusService", "UntagResource", {})
|
|
568
566
|
.n("AmpClient", "UntagResourceCommand")
|
|
@@ -570,11 +568,11 @@ class UntagResourceCommand extends smithyClient.Command
|
|
|
570
568
|
.build() {
|
|
571
569
|
}
|
|
572
570
|
|
|
573
|
-
class UpdateLoggingConfigurationCommand extends
|
|
571
|
+
class UpdateLoggingConfigurationCommand extends client.Command
|
|
574
572
|
.classBuilder()
|
|
575
573
|
.ep(commonParams)
|
|
576
574
|
.m(function (Command, cs, config, o) {
|
|
577
|
-
return [
|
|
575
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
578
576
|
})
|
|
579
577
|
.s("AmazonPrometheusService", "UpdateLoggingConfiguration", {})
|
|
580
578
|
.n("AmpClient", "UpdateLoggingConfigurationCommand")
|
|
@@ -582,11 +580,11 @@ class UpdateLoggingConfigurationCommand extends smithyClient.Command
|
|
|
582
580
|
.build() {
|
|
583
581
|
}
|
|
584
582
|
|
|
585
|
-
class UpdateQueryLoggingConfigurationCommand extends
|
|
583
|
+
class UpdateQueryLoggingConfigurationCommand extends client.Command
|
|
586
584
|
.classBuilder()
|
|
587
585
|
.ep(commonParams)
|
|
588
586
|
.m(function (Command, cs, config, o) {
|
|
589
|
-
return [
|
|
587
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
590
588
|
})
|
|
591
589
|
.s("AmazonPrometheusService", "UpdateQueryLoggingConfiguration", {})
|
|
592
590
|
.n("AmpClient", "UpdateQueryLoggingConfigurationCommand")
|
|
@@ -594,11 +592,11 @@ class UpdateQueryLoggingConfigurationCommand extends smithyClient.Command
|
|
|
594
592
|
.build() {
|
|
595
593
|
}
|
|
596
594
|
|
|
597
|
-
class UpdateScraperCommand extends
|
|
595
|
+
class UpdateScraperCommand extends client.Command
|
|
598
596
|
.classBuilder()
|
|
599
597
|
.ep(commonParams)
|
|
600
598
|
.m(function (Command, cs, config, o) {
|
|
601
|
-
return [
|
|
599
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
602
600
|
})
|
|
603
601
|
.s("AmazonPrometheusService", "UpdateScraper", {})
|
|
604
602
|
.n("AmpClient", "UpdateScraperCommand")
|
|
@@ -606,11 +604,11 @@ class UpdateScraperCommand extends smithyClient.Command
|
|
|
606
604
|
.build() {
|
|
607
605
|
}
|
|
608
606
|
|
|
609
|
-
class UpdateScraperLoggingConfigurationCommand extends
|
|
607
|
+
class UpdateScraperLoggingConfigurationCommand extends client.Command
|
|
610
608
|
.classBuilder()
|
|
611
609
|
.ep(commonParams)
|
|
612
610
|
.m(function (Command, cs, config, o) {
|
|
613
|
-
return [
|
|
611
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
614
612
|
})
|
|
615
613
|
.s("AmazonPrometheusService", "UpdateScraperLoggingConfiguration", {})
|
|
616
614
|
.n("AmpClient", "UpdateScraperLoggingConfigurationCommand")
|
|
@@ -618,11 +616,11 @@ class UpdateScraperLoggingConfigurationCommand extends smithyClient.Command
|
|
|
618
616
|
.build() {
|
|
619
617
|
}
|
|
620
618
|
|
|
621
|
-
class UpdateWorkspaceAliasCommand extends
|
|
619
|
+
class UpdateWorkspaceAliasCommand extends client.Command
|
|
622
620
|
.classBuilder()
|
|
623
621
|
.ep(commonParams)
|
|
624
622
|
.m(function (Command, cs, config, o) {
|
|
625
|
-
return [
|
|
623
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
626
624
|
})
|
|
627
625
|
.s("AmazonPrometheusService", "UpdateWorkspaceAlias", {})
|
|
628
626
|
.n("AmpClient", "UpdateWorkspaceAliasCommand")
|
|
@@ -630,11 +628,11 @@ class UpdateWorkspaceAliasCommand extends smithyClient.Command
|
|
|
630
628
|
.build() {
|
|
631
629
|
}
|
|
632
630
|
|
|
633
|
-
class UpdateWorkspaceConfigurationCommand extends
|
|
631
|
+
class UpdateWorkspaceConfigurationCommand extends client.Command
|
|
634
632
|
.classBuilder()
|
|
635
633
|
.ep(commonParams)
|
|
636
634
|
.m(function (Command, cs, config, o) {
|
|
637
|
-
return [
|
|
635
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
638
636
|
})
|
|
639
637
|
.s("AmazonPrometheusService", "UpdateWorkspaceConfiguration", {})
|
|
640
638
|
.n("AmpClient", "UpdateWorkspaceConfigurationCommand")
|
|
@@ -650,17 +648,17 @@ const paginateListScrapers = core.createPaginator(AmpClient, ListScrapersCommand
|
|
|
650
648
|
|
|
651
649
|
const paginateListWorkspaces = core.createPaginator(AmpClient, ListWorkspacesCommand, "nextToken", "nextToken", "maxResults");
|
|
652
650
|
|
|
653
|
-
const checkState$5 = async (client, input) => {
|
|
651
|
+
const checkState$5 = async (client$1, input) => {
|
|
654
652
|
let reason;
|
|
655
653
|
try {
|
|
656
|
-
let result = await client.send(new DescribeAnomalyDetectorCommand(input));
|
|
654
|
+
let result = await client$1.send(new DescribeAnomalyDetectorCommand(input));
|
|
657
655
|
reason = result;
|
|
658
656
|
try {
|
|
659
657
|
const returnComparator = () => {
|
|
660
658
|
return result.anomalyDetector.status.statusCode;
|
|
661
659
|
};
|
|
662
660
|
if (returnComparator() === "ACTIVE") {
|
|
663
|
-
return { state:
|
|
661
|
+
return { state: client.WaiterState.SUCCESS, reason };
|
|
664
662
|
}
|
|
665
663
|
}
|
|
666
664
|
catch (e) { }
|
|
@@ -669,7 +667,7 @@ const checkState$5 = async (client, input) => {
|
|
|
669
667
|
return result.anomalyDetector.status.statusCode;
|
|
670
668
|
};
|
|
671
669
|
if (returnComparator() === "CREATING") {
|
|
672
|
-
return { state:
|
|
670
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
673
671
|
}
|
|
674
672
|
}
|
|
675
673
|
catch (e) { }
|
|
@@ -678,7 +676,7 @@ const checkState$5 = async (client, input) => {
|
|
|
678
676
|
return result.anomalyDetector.status.statusCode;
|
|
679
677
|
};
|
|
680
678
|
if (returnComparator() === "UPDATING") {
|
|
681
|
-
return { state:
|
|
679
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
682
680
|
}
|
|
683
681
|
}
|
|
684
682
|
catch (e) { }
|
|
@@ -686,29 +684,29 @@ const checkState$5 = async (client, input) => {
|
|
|
686
684
|
catch (exception) {
|
|
687
685
|
reason = exception;
|
|
688
686
|
}
|
|
689
|
-
return { state:
|
|
687
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
690
688
|
};
|
|
691
689
|
const waitForAnomalyDetectorActive = async (params, input) => {
|
|
692
690
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
693
|
-
return
|
|
691
|
+
return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
|
|
694
692
|
};
|
|
695
693
|
const waitUntilAnomalyDetectorActive = async (params, input) => {
|
|
696
694
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
697
|
-
const result = await
|
|
698
|
-
return
|
|
695
|
+
const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
|
|
696
|
+
return client.checkExceptions(result);
|
|
699
697
|
};
|
|
700
698
|
|
|
701
|
-
const checkState$4 = async (client, input) => {
|
|
699
|
+
const checkState$4 = async (client$1, input) => {
|
|
702
700
|
let reason;
|
|
703
701
|
try {
|
|
704
|
-
let result = await client.send(new DescribeAnomalyDetectorCommand(input));
|
|
702
|
+
let result = await client$1.send(new DescribeAnomalyDetectorCommand(input));
|
|
705
703
|
reason = result;
|
|
706
704
|
try {
|
|
707
705
|
const returnComparator = () => {
|
|
708
706
|
return result.anomalyDetector.status.statusCode;
|
|
709
707
|
};
|
|
710
708
|
if (returnComparator() === "DELETING") {
|
|
711
|
-
return { state:
|
|
709
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
712
710
|
}
|
|
713
711
|
}
|
|
714
712
|
catch (e) { }
|
|
@@ -716,32 +714,32 @@ const checkState$4 = async (client, input) => {
|
|
|
716
714
|
catch (exception) {
|
|
717
715
|
reason = exception;
|
|
718
716
|
if (exception.name === "ResourceNotFoundException") {
|
|
719
|
-
return { state:
|
|
717
|
+
return { state: client.WaiterState.SUCCESS, reason };
|
|
720
718
|
}
|
|
721
719
|
}
|
|
722
|
-
return { state:
|
|
720
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
723
721
|
};
|
|
724
722
|
const waitForAnomalyDetectorDeleted = async (params, input) => {
|
|
725
723
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
726
|
-
return
|
|
724
|
+
return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
727
725
|
};
|
|
728
726
|
const waitUntilAnomalyDetectorDeleted = async (params, input) => {
|
|
729
727
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
730
|
-
const result = await
|
|
731
|
-
return
|
|
728
|
+
const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
729
|
+
return client.checkExceptions(result);
|
|
732
730
|
};
|
|
733
731
|
|
|
734
|
-
const checkState$3 = async (client, input) => {
|
|
732
|
+
const checkState$3 = async (client$1, input) => {
|
|
735
733
|
let reason;
|
|
736
734
|
try {
|
|
737
|
-
let result = await client.send(new DescribeScraperCommand(input));
|
|
735
|
+
let result = await client$1.send(new DescribeScraperCommand(input));
|
|
738
736
|
reason = result;
|
|
739
737
|
try {
|
|
740
738
|
const returnComparator = () => {
|
|
741
739
|
return result.scraper.status.statusCode;
|
|
742
740
|
};
|
|
743
741
|
if (returnComparator() === "ACTIVE") {
|
|
744
|
-
return { state:
|
|
742
|
+
return { state: client.WaiterState.SUCCESS, reason };
|
|
745
743
|
}
|
|
746
744
|
}
|
|
747
745
|
catch (e) { }
|
|
@@ -750,7 +748,7 @@ const checkState$3 = async (client, input) => {
|
|
|
750
748
|
return result.scraper.status.statusCode;
|
|
751
749
|
};
|
|
752
750
|
if (returnComparator() === "CREATION_FAILED") {
|
|
753
|
-
return { state:
|
|
751
|
+
return { state: client.WaiterState.FAILURE, reason };
|
|
754
752
|
}
|
|
755
753
|
}
|
|
756
754
|
catch (e) { }
|
|
@@ -758,29 +756,29 @@ const checkState$3 = async (client, input) => {
|
|
|
758
756
|
catch (exception) {
|
|
759
757
|
reason = exception;
|
|
760
758
|
}
|
|
761
|
-
return { state:
|
|
759
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
762
760
|
};
|
|
763
761
|
const waitForScraperActive = async (params, input) => {
|
|
764
762
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
765
|
-
return
|
|
763
|
+
return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
766
764
|
};
|
|
767
765
|
const waitUntilScraperActive = async (params, input) => {
|
|
768
766
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
769
|
-
const result = await
|
|
770
|
-
return
|
|
767
|
+
const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
768
|
+
return client.checkExceptions(result);
|
|
771
769
|
};
|
|
772
770
|
|
|
773
|
-
const checkState$2 = async (client, input) => {
|
|
771
|
+
const checkState$2 = async (client$1, input) => {
|
|
774
772
|
let reason;
|
|
775
773
|
try {
|
|
776
|
-
let result = await client.send(new DescribeScraperCommand(input));
|
|
774
|
+
let result = await client$1.send(new DescribeScraperCommand(input));
|
|
777
775
|
reason = result;
|
|
778
776
|
try {
|
|
779
777
|
const returnComparator = () => {
|
|
780
778
|
return result.scraper.status.statusCode;
|
|
781
779
|
};
|
|
782
780
|
if (returnComparator() === "DELETION_FAILED") {
|
|
783
|
-
return { state:
|
|
781
|
+
return { state: client.WaiterState.FAILURE, reason };
|
|
784
782
|
}
|
|
785
783
|
}
|
|
786
784
|
catch (e) { }
|
|
@@ -788,32 +786,32 @@ const checkState$2 = async (client, input) => {
|
|
|
788
786
|
catch (exception) {
|
|
789
787
|
reason = exception;
|
|
790
788
|
if (exception.name === "ResourceNotFoundException") {
|
|
791
|
-
return { state:
|
|
789
|
+
return { state: client.WaiterState.SUCCESS, reason };
|
|
792
790
|
}
|
|
793
791
|
}
|
|
794
|
-
return { state:
|
|
792
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
795
793
|
};
|
|
796
794
|
const waitForScraperDeleted = async (params, input) => {
|
|
797
795
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
798
|
-
return
|
|
796
|
+
return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
799
797
|
};
|
|
800
798
|
const waitUntilScraperDeleted = async (params, input) => {
|
|
801
799
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
802
|
-
const result = await
|
|
803
|
-
return
|
|
800
|
+
const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
801
|
+
return client.checkExceptions(result);
|
|
804
802
|
};
|
|
805
803
|
|
|
806
|
-
const checkState$1 = async (client, input) => {
|
|
804
|
+
const checkState$1 = async (client$1, input) => {
|
|
807
805
|
let reason;
|
|
808
806
|
try {
|
|
809
|
-
let result = await client.send(new DescribeWorkspaceCommand(input));
|
|
807
|
+
let result = await client$1.send(new DescribeWorkspaceCommand(input));
|
|
810
808
|
reason = result;
|
|
811
809
|
try {
|
|
812
810
|
const returnComparator = () => {
|
|
813
811
|
return result.workspace.status.statusCode;
|
|
814
812
|
};
|
|
815
813
|
if (returnComparator() === "ACTIVE") {
|
|
816
|
-
return { state:
|
|
814
|
+
return { state: client.WaiterState.SUCCESS, reason };
|
|
817
815
|
}
|
|
818
816
|
}
|
|
819
817
|
catch (e) { }
|
|
@@ -822,7 +820,7 @@ const checkState$1 = async (client, input) => {
|
|
|
822
820
|
return result.workspace.status.statusCode;
|
|
823
821
|
};
|
|
824
822
|
if (returnComparator() === "UPDATING") {
|
|
825
|
-
return { state:
|
|
823
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
826
824
|
}
|
|
827
825
|
}
|
|
828
826
|
catch (e) { }
|
|
@@ -831,7 +829,7 @@ const checkState$1 = async (client, input) => {
|
|
|
831
829
|
return result.workspace.status.statusCode;
|
|
832
830
|
};
|
|
833
831
|
if (returnComparator() === "CREATING") {
|
|
834
|
-
return { state:
|
|
832
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
835
833
|
}
|
|
836
834
|
}
|
|
837
835
|
catch (e) { }
|
|
@@ -839,29 +837,29 @@ const checkState$1 = async (client, input) => {
|
|
|
839
837
|
catch (exception) {
|
|
840
838
|
reason = exception;
|
|
841
839
|
}
|
|
842
|
-
return { state:
|
|
840
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
843
841
|
};
|
|
844
842
|
const waitForWorkspaceActive = async (params, input) => {
|
|
845
843
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
846
|
-
return
|
|
844
|
+
return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
847
845
|
};
|
|
848
846
|
const waitUntilWorkspaceActive = async (params, input) => {
|
|
849
847
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
850
|
-
const result = await
|
|
851
|
-
return
|
|
848
|
+
const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
849
|
+
return client.checkExceptions(result);
|
|
852
850
|
};
|
|
853
851
|
|
|
854
|
-
const checkState = async (client, input) => {
|
|
852
|
+
const checkState = async (client$1, input) => {
|
|
855
853
|
let reason;
|
|
856
854
|
try {
|
|
857
|
-
let result = await client.send(new DescribeWorkspaceCommand(input));
|
|
855
|
+
let result = await client$1.send(new DescribeWorkspaceCommand(input));
|
|
858
856
|
reason = result;
|
|
859
857
|
try {
|
|
860
858
|
const returnComparator = () => {
|
|
861
859
|
return result.workspace.status.statusCode;
|
|
862
860
|
};
|
|
863
861
|
if (returnComparator() === "DELETING") {
|
|
864
|
-
return { state:
|
|
862
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
865
863
|
}
|
|
866
864
|
}
|
|
867
865
|
catch (e) { }
|
|
@@ -869,19 +867,19 @@ const checkState = async (client, input) => {
|
|
|
869
867
|
catch (exception) {
|
|
870
868
|
reason = exception;
|
|
871
869
|
if (exception.name === "ResourceNotFoundException") {
|
|
872
|
-
return { state:
|
|
870
|
+
return { state: client.WaiterState.SUCCESS, reason };
|
|
873
871
|
}
|
|
874
872
|
}
|
|
875
|
-
return { state:
|
|
873
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
876
874
|
};
|
|
877
875
|
const waitForWorkspaceDeleted = async (params, input) => {
|
|
878
876
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
879
|
-
return
|
|
877
|
+
return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
880
878
|
};
|
|
881
879
|
const waitUntilWorkspaceDeleted = async (params, input) => {
|
|
882
880
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
883
|
-
const result = await
|
|
884
|
-
return
|
|
881
|
+
const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
882
|
+
return client.checkExceptions(result);
|
|
885
883
|
};
|
|
886
884
|
|
|
887
885
|
const commands = {
|
|
@@ -946,7 +944,7 @@ const waiters = {
|
|
|
946
944
|
};
|
|
947
945
|
class Amp extends AmpClient {
|
|
948
946
|
}
|
|
949
|
-
|
|
947
|
+
client.createAggregatedClient(commands, Amp, { paginators, waiters });
|
|
950
948
|
|
|
951
949
|
const AlertManagerDefinitionStatusCode = {
|
|
952
950
|
ACTIVE: "ACTIVE",
|
|
@@ -1036,8 +1034,8 @@ const WorkspacePolicyStatusCode = {
|
|
|
1036
1034
|
UPDATING: "UPDATING",
|
|
1037
1035
|
};
|
|
1038
1036
|
|
|
1039
|
-
exports.$Command =
|
|
1040
|
-
exports.__Client =
|
|
1037
|
+
exports.$Command = client.Command;
|
|
1038
|
+
exports.__Client = client.Client;
|
|
1041
1039
|
exports.AmpServiceException = AmpServiceException.AmpServiceException;
|
|
1042
1040
|
exports.AlertManagerDefinitionStatusCode = AlertManagerDefinitionStatusCode;
|
|
1043
1041
|
exports.Amp = Amp;
|