@aws-sdk/client-dlm 3.901.0 → 3.906.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 +766 -908
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,925 +1,783 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
DLMClient: () => DLMClient,
|
|
27
|
-
DLMServiceException: () => DLMServiceException,
|
|
28
|
-
DefaultPoliciesTypeValues: () => DefaultPoliciesTypeValues,
|
|
29
|
-
DefaultPolicyTypeValues: () => DefaultPolicyTypeValues,
|
|
30
|
-
DeleteLifecyclePolicyCommand: () => DeleteLifecyclePolicyCommand,
|
|
31
|
-
EventSourceValues: () => EventSourceValues,
|
|
32
|
-
EventTypeValues: () => EventTypeValues,
|
|
33
|
-
ExecutionHandlerServiceValues: () => ExecutionHandlerServiceValues,
|
|
34
|
-
GetLifecyclePoliciesCommand: () => GetLifecyclePoliciesCommand,
|
|
35
|
-
GetLifecyclePolicyCommand: () => GetLifecyclePolicyCommand,
|
|
36
|
-
GettablePolicyStateValues: () => GettablePolicyStateValues,
|
|
37
|
-
InternalServerException: () => InternalServerException,
|
|
38
|
-
IntervalUnitValues: () => IntervalUnitValues,
|
|
39
|
-
InvalidRequestException: () => InvalidRequestException,
|
|
40
|
-
LimitExceededException: () => LimitExceededException,
|
|
41
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
42
|
-
LocationValues: () => LocationValues,
|
|
43
|
-
PolicyLanguageValues: () => PolicyLanguageValues,
|
|
44
|
-
PolicyTypeValues: () => PolicyTypeValues,
|
|
45
|
-
ResourceLocationValues: () => ResourceLocationValues,
|
|
46
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
47
|
-
ResourceTypeValues: () => ResourceTypeValues,
|
|
48
|
-
RetentionIntervalUnitValues: () => RetentionIntervalUnitValues,
|
|
49
|
-
SettablePolicyStateValues: () => SettablePolicyStateValues,
|
|
50
|
-
StageValues: () => StageValues,
|
|
51
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
52
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
53
|
-
UpdateLifecyclePolicyCommand: () => UpdateLifecyclePolicyCommand,
|
|
54
|
-
__Client: () => import_smithy_client.Client
|
|
55
|
-
});
|
|
56
|
-
module.exports = __toCommonJS(index_exports);
|
|
57
|
-
|
|
58
|
-
// src/DLMClient.ts
|
|
59
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
60
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
61
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
62
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
63
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
64
|
-
var import_core = require("@smithy/core");
|
|
65
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
66
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
67
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
68
|
-
|
|
69
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
70
|
-
|
|
71
|
-
// src/endpoint/EndpointParameters.ts
|
|
72
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
73
|
-
return Object.assign(options, {
|
|
74
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
75
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
76
|
-
defaultSigningName: "dlm"
|
|
77
|
-
});
|
|
78
|
-
}, "resolveClientEndpointParameters");
|
|
79
|
-
var commonParams = {
|
|
80
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
81
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
82
|
-
Region: { type: "builtInParams", name: "region" },
|
|
83
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "dlm",
|
|
25
|
+
});
|
|
84
26
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
class DLMClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultDLMHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
122
107
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
128
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
129
|
-
credentials: config.credentials()
|
|
130
|
-
};
|
|
131
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
132
|
-
|
|
133
|
-
// src/runtimeExtensions.ts
|
|
134
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
135
|
-
const extensionConfiguration = Object.assign(
|
|
136
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
137
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
138
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
139
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
140
|
-
);
|
|
141
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
142
|
-
return Object.assign(
|
|
143
|
-
runtimeConfig,
|
|
144
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
145
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
146
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
147
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
148
|
-
);
|
|
149
|
-
}, "resolveRuntimeExtensions");
|
|
150
|
-
|
|
151
|
-
// src/DLMClient.ts
|
|
152
|
-
var DLMClient = class extends import_smithy_client.Client {
|
|
153
|
-
static {
|
|
154
|
-
__name(this, "DLMClient");
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* The resolved configuration of DLMClient class. This is resolved and normalized from the {@link DLMClientConfig | constructor configuration interface}.
|
|
158
|
-
*/
|
|
159
|
-
config;
|
|
160
|
-
constructor(...[configuration]) {
|
|
161
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
162
|
-
super(_config_0);
|
|
163
|
-
this.initConfig = _config_0;
|
|
164
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
165
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
166
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
167
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
168
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
169
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
170
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
171
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
172
|
-
this.config = _config_8;
|
|
173
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
174
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
175
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
176
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
177
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
178
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
179
|
-
this.middlewareStack.use(
|
|
180
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
181
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultDLMHttpAuthSchemeParametersProvider,
|
|
182
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
183
|
-
"aws.auth#sigv4": config.credentials
|
|
184
|
-
}), "identityProviderConfigProvider")
|
|
185
|
-
})
|
|
186
|
-
);
|
|
187
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
191
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
192
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
193
|
-
*/
|
|
194
|
-
destroy() {
|
|
195
|
-
super.destroy();
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
// src/DLM.ts
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
// src/commands/CreateLifecyclePolicyCommand.ts
|
|
203
|
-
|
|
204
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
// src/protocols/Aws_restJson1.ts
|
|
208
|
-
var import_core2 = require("@aws-sdk/core");
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
// src/models/DLMServiceException.ts
|
|
213
|
-
|
|
214
|
-
var DLMServiceException = class _DLMServiceException extends import_smithy_client.ServiceException {
|
|
215
|
-
static {
|
|
216
|
-
__name(this, "DLMServiceException");
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* @internal
|
|
220
|
-
*/
|
|
221
|
-
constructor(options) {
|
|
222
|
-
super(options);
|
|
223
|
-
Object.setPrototypeOf(this, _DLMServiceException.prototype);
|
|
224
|
-
}
|
|
225
|
-
};
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
226
112
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
113
|
+
class DLMServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, DLMServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
const RetentionIntervalUnitValues = {
|
|
121
|
+
DAYS: "DAYS",
|
|
122
|
+
MONTHS: "MONTHS",
|
|
123
|
+
WEEKS: "WEEKS",
|
|
124
|
+
YEARS: "YEARS",
|
|
125
|
+
};
|
|
126
|
+
const DefaultPolicyTypeValues = {
|
|
127
|
+
INSTANCE: "INSTANCE",
|
|
128
|
+
VOLUME: "VOLUME",
|
|
129
|
+
};
|
|
130
|
+
const EventTypeValues = {
|
|
131
|
+
SHARE_SNAPSHOT: "shareSnapshot",
|
|
132
|
+
};
|
|
133
|
+
const EventSourceValues = {
|
|
134
|
+
MANAGED_CWE: "MANAGED_CWE",
|
|
135
|
+
};
|
|
136
|
+
const PolicyLanguageValues = {
|
|
137
|
+
SIMPLIFIED: "SIMPLIFIED",
|
|
138
|
+
STANDARD: "STANDARD",
|
|
139
|
+
};
|
|
140
|
+
const PolicyTypeValues = {
|
|
141
|
+
EBS_SNAPSHOT_MANAGEMENT: "EBS_SNAPSHOT_MANAGEMENT",
|
|
142
|
+
EVENT_BASED_POLICY: "EVENT_BASED_POLICY",
|
|
143
|
+
IMAGE_MANAGEMENT: "IMAGE_MANAGEMENT",
|
|
144
|
+
};
|
|
145
|
+
const ResourceLocationValues = {
|
|
146
|
+
CLOUD: "CLOUD",
|
|
147
|
+
LOCAL_ZONE: "LOCAL_ZONE",
|
|
148
|
+
OUTPOST: "OUTPOST",
|
|
149
|
+
};
|
|
150
|
+
const ResourceTypeValues = {
|
|
151
|
+
INSTANCE: "INSTANCE",
|
|
152
|
+
VOLUME: "VOLUME",
|
|
153
|
+
};
|
|
154
|
+
const IntervalUnitValues = {
|
|
155
|
+
HOURS: "HOURS",
|
|
156
|
+
};
|
|
157
|
+
const LocationValues = {
|
|
158
|
+
CLOUD: "CLOUD",
|
|
159
|
+
LOCAL_ZONE: "LOCAL_ZONE",
|
|
160
|
+
OUTPOST_LOCAL: "OUTPOST_LOCAL",
|
|
161
|
+
};
|
|
162
|
+
const ExecutionHandlerServiceValues = {
|
|
163
|
+
AWS_SYSTEMS_MANAGER: "AWS_SYSTEMS_MANAGER",
|
|
164
|
+
};
|
|
165
|
+
const StageValues = {
|
|
166
|
+
POST: "POST",
|
|
167
|
+
PRE: "PRE",
|
|
168
|
+
};
|
|
169
|
+
const SettablePolicyStateValues = {
|
|
170
|
+
DISABLED: "DISABLED",
|
|
171
|
+
ENABLED: "ENABLED",
|
|
172
|
+
};
|
|
173
|
+
class InternalServerException extends DLMServiceException {
|
|
174
|
+
name = "InternalServerException";
|
|
175
|
+
$fault = "server";
|
|
176
|
+
Message;
|
|
177
|
+
Code;
|
|
178
|
+
constructor(opts) {
|
|
179
|
+
super({
|
|
180
|
+
name: "InternalServerException",
|
|
181
|
+
$fault: "server",
|
|
182
|
+
...opts,
|
|
183
|
+
});
|
|
184
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
185
|
+
this.Message = opts.Message;
|
|
186
|
+
this.Code = opts.Code;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
class InvalidRequestException extends DLMServiceException {
|
|
190
|
+
name = "InvalidRequestException";
|
|
191
|
+
$fault = "client";
|
|
192
|
+
Message;
|
|
193
|
+
Code;
|
|
194
|
+
RequiredParameters;
|
|
195
|
+
MutuallyExclusiveParameters;
|
|
196
|
+
constructor(opts) {
|
|
197
|
+
super({
|
|
198
|
+
name: "InvalidRequestException",
|
|
199
|
+
$fault: "client",
|
|
200
|
+
...opts,
|
|
201
|
+
});
|
|
202
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
203
|
+
this.Message = opts.Message;
|
|
204
|
+
this.Code = opts.Code;
|
|
205
|
+
this.RequiredParameters = opts.RequiredParameters;
|
|
206
|
+
this.MutuallyExclusiveParameters = opts.MutuallyExclusiveParameters;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
class LimitExceededException extends DLMServiceException {
|
|
210
|
+
name = "LimitExceededException";
|
|
211
|
+
$fault = "client";
|
|
212
|
+
Message;
|
|
213
|
+
Code;
|
|
214
|
+
ResourceType;
|
|
215
|
+
constructor(opts) {
|
|
216
|
+
super({
|
|
217
|
+
name: "LimitExceededException",
|
|
218
|
+
$fault: "client",
|
|
219
|
+
...opts,
|
|
220
|
+
});
|
|
221
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
222
|
+
this.Message = opts.Message;
|
|
223
|
+
this.Code = opts.Code;
|
|
224
|
+
this.ResourceType = opts.ResourceType;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
const DefaultPoliciesTypeValues = {
|
|
228
|
+
ALL: "ALL",
|
|
229
|
+
INSTANCE: "INSTANCE",
|
|
230
|
+
VOLUME: "VOLUME",
|
|
231
|
+
};
|
|
232
|
+
class ResourceNotFoundException extends DLMServiceException {
|
|
233
|
+
name = "ResourceNotFoundException";
|
|
234
|
+
$fault = "client";
|
|
235
|
+
Message;
|
|
236
|
+
Code;
|
|
237
|
+
ResourceType;
|
|
238
|
+
ResourceIds;
|
|
239
|
+
constructor(opts) {
|
|
240
|
+
super({
|
|
241
|
+
name: "ResourceNotFoundException",
|
|
242
|
+
$fault: "client",
|
|
243
|
+
...opts,
|
|
244
|
+
});
|
|
245
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
246
|
+
this.Message = opts.Message;
|
|
247
|
+
this.Code = opts.Code;
|
|
248
|
+
this.ResourceType = opts.ResourceType;
|
|
249
|
+
this.ResourceIds = opts.ResourceIds;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
const GettablePolicyStateValues = {
|
|
253
|
+
DISABLED: "DISABLED",
|
|
254
|
+
ENABLED: "ENABLED",
|
|
255
|
+
ERROR: "ERROR",
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
const se_CreateLifecyclePolicyCommand = async (input, context) => {
|
|
259
|
+
const b = core.requestBuilder(input, context);
|
|
260
|
+
const headers = {
|
|
261
|
+
"content-type": "application/json",
|
|
262
|
+
};
|
|
263
|
+
b.bp("/policies");
|
|
264
|
+
let body;
|
|
265
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
266
|
+
CopyTags: [],
|
|
267
|
+
CreateInterval: [],
|
|
268
|
+
CrossRegionCopyTargets: (_) => smithyClient._json(_),
|
|
269
|
+
DefaultPolicy: [],
|
|
270
|
+
Description: [],
|
|
271
|
+
Exclusions: (_) => smithyClient._json(_),
|
|
272
|
+
ExecutionRoleArn: [],
|
|
273
|
+
ExtendDeletion: [],
|
|
274
|
+
PolicyDetails: (_) => smithyClient._json(_),
|
|
275
|
+
RetainInterval: [],
|
|
276
|
+
State: [],
|
|
277
|
+
Tags: (_) => smithyClient._json(_),
|
|
278
|
+
}));
|
|
279
|
+
b.m("POST").h(headers).b(body);
|
|
280
|
+
return b.build();
|
|
281
|
+
};
|
|
282
|
+
const se_DeleteLifecyclePolicyCommand = async (input, context) => {
|
|
283
|
+
const b = core.requestBuilder(input, context);
|
|
284
|
+
const headers = {};
|
|
285
|
+
b.bp("/policies/{PolicyId}");
|
|
286
|
+
b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
|
|
287
|
+
let body;
|
|
288
|
+
b.m("DELETE").h(headers).b(body);
|
|
289
|
+
return b.build();
|
|
290
|
+
};
|
|
291
|
+
const se_GetLifecyclePoliciesCommand = async (input, context) => {
|
|
292
|
+
const b = core.requestBuilder(input, context);
|
|
293
|
+
const headers = {};
|
|
294
|
+
b.bp("/policies");
|
|
295
|
+
const query = smithyClient.map({
|
|
296
|
+
[_pI]: [() => input.PolicyIds !== void 0, () => input[_PI] || []],
|
|
297
|
+
[_s]: [, input[_S]],
|
|
298
|
+
[_rT]: [() => input.ResourceTypes !== void 0, () => input[_RT] || []],
|
|
299
|
+
[_tT]: [() => input.TargetTags !== void 0, () => input[_TT] || []],
|
|
300
|
+
[_tTA]: [() => input.TagsToAdd !== void 0, () => input[_TTA] || []],
|
|
301
|
+
[_dPT]: [, input[_DPT]],
|
|
297
302
|
});
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
303
|
+
let body;
|
|
304
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
305
|
+
return b.build();
|
|
306
|
+
};
|
|
307
|
+
const se_GetLifecyclePolicyCommand = async (input, context) => {
|
|
308
|
+
const b = core.requestBuilder(input, context);
|
|
309
|
+
const headers = {};
|
|
310
|
+
b.bp("/policies/{PolicyId}");
|
|
311
|
+
b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
|
|
312
|
+
let body;
|
|
313
|
+
b.m("GET").h(headers).b(body);
|
|
314
|
+
return b.build();
|
|
315
|
+
};
|
|
316
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
317
|
+
const b = core.requestBuilder(input, context);
|
|
318
|
+
const headers = {};
|
|
319
|
+
b.bp("/tags/{ResourceArn}");
|
|
320
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
321
|
+
let body;
|
|
322
|
+
b.m("GET").h(headers).b(body);
|
|
323
|
+
return b.build();
|
|
324
|
+
};
|
|
325
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
326
|
+
const b = core.requestBuilder(input, context);
|
|
327
|
+
const headers = {
|
|
328
|
+
"content-type": "application/json",
|
|
329
|
+
};
|
|
330
|
+
b.bp("/tags/{ResourceArn}");
|
|
331
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
332
|
+
let body;
|
|
333
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
334
|
+
Tags: (_) => smithyClient._json(_),
|
|
335
|
+
}));
|
|
336
|
+
b.m("POST").h(headers).b(body);
|
|
337
|
+
return b.build();
|
|
338
|
+
};
|
|
339
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
340
|
+
const b = core.requestBuilder(input, context);
|
|
341
|
+
const headers = {};
|
|
342
|
+
b.bp("/tags/{ResourceArn}");
|
|
343
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
344
|
+
const query = smithyClient.map({
|
|
345
|
+
[_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
329
346
|
});
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
347
|
+
let body;
|
|
348
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
349
|
+
return b.build();
|
|
350
|
+
};
|
|
351
|
+
const se_UpdateLifecyclePolicyCommand = async (input, context) => {
|
|
352
|
+
const b = core.requestBuilder(input, context);
|
|
353
|
+
const headers = {
|
|
354
|
+
"content-type": "application/json",
|
|
355
|
+
};
|
|
356
|
+
b.bp("/policies/{PolicyId}");
|
|
357
|
+
b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
|
|
358
|
+
let body;
|
|
359
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
360
|
+
CopyTags: [],
|
|
361
|
+
CreateInterval: [],
|
|
362
|
+
CrossRegionCopyTargets: (_) => smithyClient._json(_),
|
|
363
|
+
Description: [],
|
|
364
|
+
Exclusions: (_) => smithyClient._json(_),
|
|
365
|
+
ExecutionRoleArn: [],
|
|
366
|
+
ExtendDeletion: [],
|
|
367
|
+
PolicyDetails: (_) => smithyClient._json(_),
|
|
368
|
+
RetainInterval: [],
|
|
369
|
+
State: [],
|
|
370
|
+
}));
|
|
371
|
+
b.m("PATCH").h(headers).b(body);
|
|
372
|
+
return b.build();
|
|
373
|
+
};
|
|
374
|
+
const de_CreateLifecyclePolicyCommand = async (output, context) => {
|
|
375
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
376
|
+
return de_CommandError(output, context);
|
|
377
|
+
}
|
|
378
|
+
const contents = smithyClient.map({
|
|
379
|
+
$metadata: deserializeMetadata(output),
|
|
358
380
|
});
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
this.ResourceType = opts.ResourceType;
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
|
-
var DefaultPoliciesTypeValues = {
|
|
366
|
-
ALL: "ALL",
|
|
367
|
-
INSTANCE: "INSTANCE",
|
|
368
|
-
VOLUME: "VOLUME"
|
|
369
|
-
};
|
|
370
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends DLMServiceException {
|
|
371
|
-
static {
|
|
372
|
-
__name(this, "ResourceNotFoundException");
|
|
373
|
-
}
|
|
374
|
-
name = "ResourceNotFoundException";
|
|
375
|
-
$fault = "client";
|
|
376
|
-
Message;
|
|
377
|
-
Code;
|
|
378
|
-
/**
|
|
379
|
-
* <p>Value is the type of resource that was not found.</p>
|
|
380
|
-
* @public
|
|
381
|
-
*/
|
|
382
|
-
ResourceType;
|
|
383
|
-
/**
|
|
384
|
-
* <p>Value is a list of resource IDs that were not found.</p>
|
|
385
|
-
* @public
|
|
386
|
-
*/
|
|
387
|
-
ResourceIds;
|
|
388
|
-
/**
|
|
389
|
-
* @internal
|
|
390
|
-
*/
|
|
391
|
-
constructor(opts) {
|
|
392
|
-
super({
|
|
393
|
-
name: "ResourceNotFoundException",
|
|
394
|
-
$fault: "client",
|
|
395
|
-
...opts
|
|
381
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
382
|
+
const doc = smithyClient.take(data, {
|
|
383
|
+
PolicyId: smithyClient.expectString,
|
|
396
384
|
});
|
|
397
|
-
Object.
|
|
398
|
-
|
|
399
|
-
this.Code = opts.Code;
|
|
400
|
-
this.ResourceType = opts.ResourceType;
|
|
401
|
-
this.ResourceIds = opts.ResourceIds;
|
|
402
|
-
}
|
|
403
|
-
};
|
|
404
|
-
var GettablePolicyStateValues = {
|
|
405
|
-
DISABLED: "DISABLED",
|
|
406
|
-
ENABLED: "ENABLED",
|
|
407
|
-
ERROR: "ERROR"
|
|
385
|
+
Object.assign(contents, doc);
|
|
386
|
+
return contents;
|
|
408
387
|
};
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
body = JSON.stringify(
|
|
419
|
-
(0, import_smithy_client.take)(input, {
|
|
420
|
-
CopyTags: [],
|
|
421
|
-
CreateInterval: [],
|
|
422
|
-
CrossRegionCopyTargets: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "CrossRegionCopyTargets"),
|
|
423
|
-
DefaultPolicy: [],
|
|
424
|
-
Description: [],
|
|
425
|
-
Exclusions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Exclusions"),
|
|
426
|
-
ExecutionRoleArn: [],
|
|
427
|
-
ExtendDeletion: [],
|
|
428
|
-
PolicyDetails: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "PolicyDetails"),
|
|
429
|
-
RetainInterval: [],
|
|
430
|
-
State: [],
|
|
431
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
|
|
432
|
-
})
|
|
433
|
-
);
|
|
434
|
-
b.m("POST").h(headers).b(body);
|
|
435
|
-
return b.build();
|
|
436
|
-
}, "se_CreateLifecyclePolicyCommand");
|
|
437
|
-
var se_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
438
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
439
|
-
const headers = {};
|
|
440
|
-
b.bp("/policies/{PolicyId}");
|
|
441
|
-
b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
|
|
442
|
-
let body;
|
|
443
|
-
b.m("DELETE").h(headers).b(body);
|
|
444
|
-
return b.build();
|
|
445
|
-
}, "se_DeleteLifecyclePolicyCommand");
|
|
446
|
-
var se_GetLifecyclePoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
447
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
448
|
-
const headers = {};
|
|
449
|
-
b.bp("/policies");
|
|
450
|
-
const query = (0, import_smithy_client.map)({
|
|
451
|
-
[_pI]: [() => input.PolicyIds !== void 0, () => input[_PI] || []],
|
|
452
|
-
[_s]: [, input[_S]],
|
|
453
|
-
[_rT]: [() => input.ResourceTypes !== void 0, () => input[_RT] || []],
|
|
454
|
-
[_tT]: [() => input.TargetTags !== void 0, () => input[_TT] || []],
|
|
455
|
-
[_tTA]: [() => input.TagsToAdd !== void 0, () => input[_TTA] || []],
|
|
456
|
-
[_dPT]: [, input[_DPT]]
|
|
457
|
-
});
|
|
458
|
-
let body;
|
|
459
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
460
|
-
return b.build();
|
|
461
|
-
}, "se_GetLifecyclePoliciesCommand");
|
|
462
|
-
var se_GetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
463
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
464
|
-
const headers = {};
|
|
465
|
-
b.bp("/policies/{PolicyId}");
|
|
466
|
-
b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
|
|
467
|
-
let body;
|
|
468
|
-
b.m("GET").h(headers).b(body);
|
|
469
|
-
return b.build();
|
|
470
|
-
}, "se_GetLifecyclePolicyCommand");
|
|
471
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
472
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
473
|
-
const headers = {};
|
|
474
|
-
b.bp("/tags/{ResourceArn}");
|
|
475
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
476
|
-
let body;
|
|
477
|
-
b.m("GET").h(headers).b(body);
|
|
478
|
-
return b.build();
|
|
479
|
-
}, "se_ListTagsForResourceCommand");
|
|
480
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
481
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
482
|
-
const headers = {
|
|
483
|
-
"content-type": "application/json"
|
|
484
|
-
};
|
|
485
|
-
b.bp("/tags/{ResourceArn}");
|
|
486
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
487
|
-
let body;
|
|
488
|
-
body = JSON.stringify(
|
|
489
|
-
(0, import_smithy_client.take)(input, {
|
|
490
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
|
|
491
|
-
})
|
|
492
|
-
);
|
|
493
|
-
b.m("POST").h(headers).b(body);
|
|
494
|
-
return b.build();
|
|
495
|
-
}, "se_TagResourceCommand");
|
|
496
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
497
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
498
|
-
const headers = {};
|
|
499
|
-
b.bp("/tags/{ResourceArn}");
|
|
500
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
501
|
-
const query = (0, import_smithy_client.map)({
|
|
502
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
|
|
503
|
-
});
|
|
504
|
-
let body;
|
|
505
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
506
|
-
return b.build();
|
|
507
|
-
}, "se_UntagResourceCommand");
|
|
508
|
-
var se_UpdateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
509
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
510
|
-
const headers = {
|
|
511
|
-
"content-type": "application/json"
|
|
512
|
-
};
|
|
513
|
-
b.bp("/policies/{PolicyId}");
|
|
514
|
-
b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
|
|
515
|
-
let body;
|
|
516
|
-
body = JSON.stringify(
|
|
517
|
-
(0, import_smithy_client.take)(input, {
|
|
518
|
-
CopyTags: [],
|
|
519
|
-
CreateInterval: [],
|
|
520
|
-
CrossRegionCopyTargets: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "CrossRegionCopyTargets"),
|
|
521
|
-
Description: [],
|
|
522
|
-
Exclusions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Exclusions"),
|
|
523
|
-
ExecutionRoleArn: [],
|
|
524
|
-
ExtendDeletion: [],
|
|
525
|
-
PolicyDetails: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "PolicyDetails"),
|
|
526
|
-
RetainInterval: [],
|
|
527
|
-
State: []
|
|
528
|
-
})
|
|
529
|
-
);
|
|
530
|
-
b.m("PATCH").h(headers).b(body);
|
|
531
|
-
return b.build();
|
|
532
|
-
}, "se_UpdateLifecyclePolicyCommand");
|
|
533
|
-
var de_CreateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
534
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
535
|
-
return de_CommandError(output, context);
|
|
536
|
-
}
|
|
537
|
-
const contents = (0, import_smithy_client.map)({
|
|
538
|
-
$metadata: deserializeMetadata(output)
|
|
539
|
-
});
|
|
540
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
541
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
542
|
-
PolicyId: import_smithy_client.expectString
|
|
543
|
-
});
|
|
544
|
-
Object.assign(contents, doc);
|
|
545
|
-
return contents;
|
|
546
|
-
}, "de_CreateLifecyclePolicyCommand");
|
|
547
|
-
var de_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
548
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
549
|
-
return de_CommandError(output, context);
|
|
550
|
-
}
|
|
551
|
-
const contents = (0, import_smithy_client.map)({
|
|
552
|
-
$metadata: deserializeMetadata(output)
|
|
553
|
-
});
|
|
554
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
555
|
-
return contents;
|
|
556
|
-
}, "de_DeleteLifecyclePolicyCommand");
|
|
557
|
-
var de_GetLifecyclePoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
558
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
|
-
return de_CommandError(output, context);
|
|
560
|
-
}
|
|
561
|
-
const contents = (0, import_smithy_client.map)({
|
|
562
|
-
$metadata: deserializeMetadata(output)
|
|
563
|
-
});
|
|
564
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
565
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
566
|
-
Policies: import_smithy_client._json
|
|
567
|
-
});
|
|
568
|
-
Object.assign(contents, doc);
|
|
569
|
-
return contents;
|
|
570
|
-
}, "de_GetLifecyclePoliciesCommand");
|
|
571
|
-
var de_GetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
572
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
573
|
-
return de_CommandError(output, context);
|
|
574
|
-
}
|
|
575
|
-
const contents = (0, import_smithy_client.map)({
|
|
576
|
-
$metadata: deserializeMetadata(output)
|
|
577
|
-
});
|
|
578
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
579
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
580
|
-
Policy: /* @__PURE__ */ __name((_) => de_LifecyclePolicy(_, context), "Policy")
|
|
581
|
-
});
|
|
582
|
-
Object.assign(contents, doc);
|
|
583
|
-
return contents;
|
|
584
|
-
}, "de_GetLifecyclePolicyCommand");
|
|
585
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
586
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
587
|
-
return de_CommandError(output, context);
|
|
588
|
-
}
|
|
589
|
-
const contents = (0, import_smithy_client.map)({
|
|
590
|
-
$metadata: deserializeMetadata(output)
|
|
591
|
-
});
|
|
592
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
593
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
594
|
-
Tags: import_smithy_client._json
|
|
595
|
-
});
|
|
596
|
-
Object.assign(contents, doc);
|
|
597
|
-
return contents;
|
|
598
|
-
}, "de_ListTagsForResourceCommand");
|
|
599
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
600
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
601
|
-
return de_CommandError(output, context);
|
|
602
|
-
}
|
|
603
|
-
const contents = (0, import_smithy_client.map)({
|
|
604
|
-
$metadata: deserializeMetadata(output)
|
|
605
|
-
});
|
|
606
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
607
|
-
return contents;
|
|
608
|
-
}, "de_TagResourceCommand");
|
|
609
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
610
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
611
|
-
return de_CommandError(output, context);
|
|
612
|
-
}
|
|
613
|
-
const contents = (0, import_smithy_client.map)({
|
|
614
|
-
$metadata: deserializeMetadata(output)
|
|
615
|
-
});
|
|
616
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
617
|
-
return contents;
|
|
618
|
-
}, "de_UntagResourceCommand");
|
|
619
|
-
var de_UpdateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
620
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
621
|
-
return de_CommandError(output, context);
|
|
622
|
-
}
|
|
623
|
-
const contents = (0, import_smithy_client.map)({
|
|
624
|
-
$metadata: deserializeMetadata(output)
|
|
625
|
-
});
|
|
626
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
627
|
-
return contents;
|
|
628
|
-
}, "de_UpdateLifecyclePolicyCommand");
|
|
629
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
630
|
-
const parsedOutput = {
|
|
631
|
-
...output,
|
|
632
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
633
|
-
};
|
|
634
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
635
|
-
switch (errorCode) {
|
|
636
|
-
case "InternalServerException":
|
|
637
|
-
case "com.amazonaws.dlm#InternalServerException":
|
|
638
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
639
|
-
case "InvalidRequestException":
|
|
640
|
-
case "com.amazonaws.dlm#InvalidRequestException":
|
|
641
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
642
|
-
case "LimitExceededException":
|
|
643
|
-
case "com.amazonaws.dlm#LimitExceededException":
|
|
644
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
645
|
-
case "ResourceNotFoundException":
|
|
646
|
-
case "com.amazonaws.dlm#ResourceNotFoundException":
|
|
647
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
648
|
-
default:
|
|
649
|
-
const parsedBody = parsedOutput.body;
|
|
650
|
-
return throwDefaultError({
|
|
651
|
-
output,
|
|
652
|
-
parsedBody,
|
|
653
|
-
errorCode
|
|
654
|
-
});
|
|
655
|
-
}
|
|
656
|
-
}, "de_CommandError");
|
|
657
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(DLMServiceException);
|
|
658
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
659
|
-
const contents = (0, import_smithy_client.map)({});
|
|
660
|
-
const data = parsedOutput.body;
|
|
661
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
662
|
-
Code: import_smithy_client.expectString,
|
|
663
|
-
Message: import_smithy_client.expectString
|
|
664
|
-
});
|
|
665
|
-
Object.assign(contents, doc);
|
|
666
|
-
const exception = new InternalServerException({
|
|
667
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
668
|
-
...contents
|
|
669
|
-
});
|
|
670
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
671
|
-
}, "de_InternalServerExceptionRes");
|
|
672
|
-
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
673
|
-
const contents = (0, import_smithy_client.map)({});
|
|
674
|
-
const data = parsedOutput.body;
|
|
675
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
676
|
-
Code: import_smithy_client.expectString,
|
|
677
|
-
Message: import_smithy_client.expectString,
|
|
678
|
-
MutuallyExclusiveParameters: import_smithy_client._json,
|
|
679
|
-
RequiredParameters: import_smithy_client._json
|
|
680
|
-
});
|
|
681
|
-
Object.assign(contents, doc);
|
|
682
|
-
const exception = new InvalidRequestException({
|
|
683
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
684
|
-
...contents
|
|
685
|
-
});
|
|
686
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
687
|
-
}, "de_InvalidRequestExceptionRes");
|
|
688
|
-
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
689
|
-
const contents = (0, import_smithy_client.map)({});
|
|
690
|
-
const data = parsedOutput.body;
|
|
691
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
692
|
-
Code: import_smithy_client.expectString,
|
|
693
|
-
Message: import_smithy_client.expectString,
|
|
694
|
-
ResourceType: import_smithy_client.expectString
|
|
695
|
-
});
|
|
696
|
-
Object.assign(contents, doc);
|
|
697
|
-
const exception = new LimitExceededException({
|
|
698
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
699
|
-
...contents
|
|
700
|
-
});
|
|
701
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
702
|
-
}, "de_LimitExceededExceptionRes");
|
|
703
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
704
|
-
const contents = (0, import_smithy_client.map)({});
|
|
705
|
-
const data = parsedOutput.body;
|
|
706
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
707
|
-
Code: import_smithy_client.expectString,
|
|
708
|
-
Message: import_smithy_client.expectString,
|
|
709
|
-
ResourceIds: import_smithy_client._json,
|
|
710
|
-
ResourceType: import_smithy_client.expectString
|
|
711
|
-
});
|
|
712
|
-
Object.assign(contents, doc);
|
|
713
|
-
const exception = new ResourceNotFoundException({
|
|
714
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
715
|
-
...contents
|
|
716
|
-
});
|
|
717
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
718
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
719
|
-
var de_LifecyclePolicy = /* @__PURE__ */ __name((output, context) => {
|
|
720
|
-
return (0, import_smithy_client.take)(output, {
|
|
721
|
-
DateCreated: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "DateCreated"),
|
|
722
|
-
DateModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "DateModified"),
|
|
723
|
-
DefaultPolicy: import_smithy_client.expectBoolean,
|
|
724
|
-
Description: import_smithy_client.expectString,
|
|
725
|
-
ExecutionRoleArn: import_smithy_client.expectString,
|
|
726
|
-
PolicyArn: import_smithy_client.expectString,
|
|
727
|
-
PolicyDetails: import_smithy_client._json,
|
|
728
|
-
PolicyId: import_smithy_client.expectString,
|
|
729
|
-
State: import_smithy_client.expectString,
|
|
730
|
-
StatusMessage: import_smithy_client.expectString,
|
|
731
|
-
Tags: import_smithy_client._json
|
|
732
|
-
});
|
|
733
|
-
}, "de_LifecyclePolicy");
|
|
734
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
735
|
-
httpStatusCode: output.statusCode,
|
|
736
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
737
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
738
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
739
|
-
}), "deserializeMetadata");
|
|
740
|
-
var _DPT = "DefaultPolicyType";
|
|
741
|
-
var _PI = "PolicyIds";
|
|
742
|
-
var _RT = "ResourceTypes";
|
|
743
|
-
var _S = "State";
|
|
744
|
-
var _TK = "TagKeys";
|
|
745
|
-
var _TT = "TargetTags";
|
|
746
|
-
var _TTA = "TagsToAdd";
|
|
747
|
-
var _dPT = "defaultPolicyType";
|
|
748
|
-
var _pI = "policyIds";
|
|
749
|
-
var _rT = "resourceTypes";
|
|
750
|
-
var _s = "state";
|
|
751
|
-
var _tK = "tagKeys";
|
|
752
|
-
var _tT = "targetTags";
|
|
753
|
-
var _tTA = "tagsToAdd";
|
|
754
|
-
|
|
755
|
-
// src/commands/CreateLifecyclePolicyCommand.ts
|
|
756
|
-
var CreateLifecyclePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
757
|
-
return [
|
|
758
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
759
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
760
|
-
];
|
|
761
|
-
}).s("dlm_20180112", "CreateLifecyclePolicy", {}).n("DLMClient", "CreateLifecyclePolicyCommand").f(void 0, void 0).ser(se_CreateLifecyclePolicyCommand).de(de_CreateLifecyclePolicyCommand).build() {
|
|
762
|
-
static {
|
|
763
|
-
__name(this, "CreateLifecyclePolicyCommand");
|
|
764
|
-
}
|
|
388
|
+
const de_DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
389
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
390
|
+
return de_CommandError(output, context);
|
|
391
|
+
}
|
|
392
|
+
const contents = smithyClient.map({
|
|
393
|
+
$metadata: deserializeMetadata(output),
|
|
394
|
+
});
|
|
395
|
+
await smithyClient.collectBody(output.body, context);
|
|
396
|
+
return contents;
|
|
765
397
|
};
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
(
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
})
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
}
|
|
398
|
+
const de_GetLifecyclePoliciesCommand = async (output, context) => {
|
|
399
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
400
|
+
return de_CommandError(output, context);
|
|
401
|
+
}
|
|
402
|
+
const contents = smithyClient.map({
|
|
403
|
+
$metadata: deserializeMetadata(output),
|
|
404
|
+
});
|
|
405
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
406
|
+
const doc = smithyClient.take(data, {
|
|
407
|
+
Policies: smithyClient._json,
|
|
408
|
+
});
|
|
409
|
+
Object.assign(contents, doc);
|
|
410
|
+
return contents;
|
|
780
411
|
};
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
(
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
})
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
}
|
|
412
|
+
const de_GetLifecyclePolicyCommand = async (output, context) => {
|
|
413
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
414
|
+
return de_CommandError(output, context);
|
|
415
|
+
}
|
|
416
|
+
const contents = smithyClient.map({
|
|
417
|
+
$metadata: deserializeMetadata(output),
|
|
418
|
+
});
|
|
419
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
420
|
+
const doc = smithyClient.take(data, {
|
|
421
|
+
Policy: (_) => de_LifecyclePolicy(_),
|
|
422
|
+
});
|
|
423
|
+
Object.assign(contents, doc);
|
|
424
|
+
return contents;
|
|
795
425
|
};
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
(
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
})
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
}
|
|
426
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
427
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
428
|
+
return de_CommandError(output, context);
|
|
429
|
+
}
|
|
430
|
+
const contents = smithyClient.map({
|
|
431
|
+
$metadata: deserializeMetadata(output),
|
|
432
|
+
});
|
|
433
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
434
|
+
const doc = smithyClient.take(data, {
|
|
435
|
+
Tags: smithyClient._json,
|
|
436
|
+
});
|
|
437
|
+
Object.assign(contents, doc);
|
|
438
|
+
return contents;
|
|
810
439
|
};
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
];
|
|
821
|
-
}).s("dlm_20180112", "ListTagsForResource", {}).n("DLMClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
822
|
-
static {
|
|
823
|
-
__name(this, "ListTagsForResourceCommand");
|
|
824
|
-
}
|
|
440
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
441
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
442
|
+
return de_CommandError(output, context);
|
|
443
|
+
}
|
|
444
|
+
const contents = smithyClient.map({
|
|
445
|
+
$metadata: deserializeMetadata(output),
|
|
446
|
+
});
|
|
447
|
+
await smithyClient.collectBody(output.body, context);
|
|
448
|
+
return contents;
|
|
825
449
|
};
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
];
|
|
836
|
-
}).s("dlm_20180112", "TagResource", {}).n("DLMClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
837
|
-
static {
|
|
838
|
-
__name(this, "TagResourceCommand");
|
|
839
|
-
}
|
|
450
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
451
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
452
|
+
return de_CommandError(output, context);
|
|
453
|
+
}
|
|
454
|
+
const contents = smithyClient.map({
|
|
455
|
+
$metadata: deserializeMetadata(output),
|
|
456
|
+
});
|
|
457
|
+
await smithyClient.collectBody(output.body, context);
|
|
458
|
+
return contents;
|
|
840
459
|
};
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
460
|
+
const de_UpdateLifecyclePolicyCommand = async (output, context) => {
|
|
461
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
462
|
+
return de_CommandError(output, context);
|
|
463
|
+
}
|
|
464
|
+
const contents = smithyClient.map({
|
|
465
|
+
$metadata: deserializeMetadata(output),
|
|
466
|
+
});
|
|
467
|
+
await smithyClient.collectBody(output.body, context);
|
|
468
|
+
return contents;
|
|
469
|
+
};
|
|
470
|
+
const de_CommandError = async (output, context) => {
|
|
471
|
+
const parsedOutput = {
|
|
472
|
+
...output,
|
|
473
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
474
|
+
};
|
|
475
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
476
|
+
switch (errorCode) {
|
|
477
|
+
case "InternalServerException":
|
|
478
|
+
case "com.amazonaws.dlm#InternalServerException":
|
|
479
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
480
|
+
case "InvalidRequestException":
|
|
481
|
+
case "com.amazonaws.dlm#InvalidRequestException":
|
|
482
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput);
|
|
483
|
+
case "LimitExceededException":
|
|
484
|
+
case "com.amazonaws.dlm#LimitExceededException":
|
|
485
|
+
throw await de_LimitExceededExceptionRes(parsedOutput);
|
|
486
|
+
case "ResourceNotFoundException":
|
|
487
|
+
case "com.amazonaws.dlm#ResourceNotFoundException":
|
|
488
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
489
|
+
default:
|
|
490
|
+
const parsedBody = parsedOutput.body;
|
|
491
|
+
return throwDefaultError({
|
|
492
|
+
output,
|
|
493
|
+
parsedBody,
|
|
494
|
+
errorCode,
|
|
495
|
+
});
|
|
496
|
+
}
|
|
855
497
|
};
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
498
|
+
const throwDefaultError = smithyClient.withBaseException(DLMServiceException);
|
|
499
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
500
|
+
const contents = smithyClient.map({});
|
|
501
|
+
const data = parsedOutput.body;
|
|
502
|
+
const doc = smithyClient.take(data, {
|
|
503
|
+
Code: smithyClient.expectString,
|
|
504
|
+
Message: smithyClient.expectString,
|
|
505
|
+
});
|
|
506
|
+
Object.assign(contents, doc);
|
|
507
|
+
const exception = new InternalServerException({
|
|
508
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
509
|
+
...contents,
|
|
510
|
+
});
|
|
511
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
512
|
+
};
|
|
513
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
514
|
+
const contents = smithyClient.map({});
|
|
515
|
+
const data = parsedOutput.body;
|
|
516
|
+
const doc = smithyClient.take(data, {
|
|
517
|
+
Code: smithyClient.expectString,
|
|
518
|
+
Message: smithyClient.expectString,
|
|
519
|
+
MutuallyExclusiveParameters: smithyClient._json,
|
|
520
|
+
RequiredParameters: smithyClient._json,
|
|
521
|
+
});
|
|
522
|
+
Object.assign(contents, doc);
|
|
523
|
+
const exception = new InvalidRequestException({
|
|
524
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
525
|
+
...contents,
|
|
526
|
+
});
|
|
527
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
528
|
+
};
|
|
529
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
530
|
+
const contents = smithyClient.map({});
|
|
531
|
+
const data = parsedOutput.body;
|
|
532
|
+
const doc = smithyClient.take(data, {
|
|
533
|
+
Code: smithyClient.expectString,
|
|
534
|
+
Message: smithyClient.expectString,
|
|
535
|
+
ResourceType: smithyClient.expectString,
|
|
536
|
+
});
|
|
537
|
+
Object.assign(contents, doc);
|
|
538
|
+
const exception = new LimitExceededException({
|
|
539
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
540
|
+
...contents,
|
|
541
|
+
});
|
|
542
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
543
|
+
};
|
|
544
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
545
|
+
const contents = smithyClient.map({});
|
|
546
|
+
const data = parsedOutput.body;
|
|
547
|
+
const doc = smithyClient.take(data, {
|
|
548
|
+
Code: smithyClient.expectString,
|
|
549
|
+
Message: smithyClient.expectString,
|
|
550
|
+
ResourceIds: smithyClient._json,
|
|
551
|
+
ResourceType: smithyClient.expectString,
|
|
552
|
+
});
|
|
553
|
+
Object.assign(contents, doc);
|
|
554
|
+
const exception = new ResourceNotFoundException({
|
|
555
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
556
|
+
...contents,
|
|
557
|
+
});
|
|
558
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
559
|
+
};
|
|
560
|
+
const de_LifecyclePolicy = (output, context) => {
|
|
561
|
+
return smithyClient.take(output, {
|
|
562
|
+
DateCreated: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
563
|
+
DateModified: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
564
|
+
DefaultPolicy: smithyClient.expectBoolean,
|
|
565
|
+
Description: smithyClient.expectString,
|
|
566
|
+
ExecutionRoleArn: smithyClient.expectString,
|
|
567
|
+
PolicyArn: smithyClient.expectString,
|
|
568
|
+
PolicyDetails: smithyClient._json,
|
|
569
|
+
PolicyId: smithyClient.expectString,
|
|
570
|
+
State: smithyClient.expectString,
|
|
571
|
+
StatusMessage: smithyClient.expectString,
|
|
572
|
+
Tags: smithyClient._json,
|
|
573
|
+
});
|
|
870
574
|
};
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
GetLifecyclePoliciesCommand,
|
|
877
|
-
GetLifecyclePolicyCommand,
|
|
878
|
-
ListTagsForResourceCommand,
|
|
879
|
-
TagResourceCommand,
|
|
880
|
-
UntagResourceCommand,
|
|
881
|
-
UpdateLifecyclePolicyCommand
|
|
882
|
-
};
|
|
883
|
-
var DLM = class extends DLMClient {
|
|
884
|
-
static {
|
|
885
|
-
__name(this, "DLM");
|
|
886
|
-
}
|
|
887
|
-
};
|
|
888
|
-
(0, import_smithy_client.createAggregatedClient)(commands, DLM);
|
|
889
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
890
|
-
|
|
891
|
-
0 && (module.exports = {
|
|
892
|
-
DLMServiceException,
|
|
893
|
-
__Client,
|
|
894
|
-
DLMClient,
|
|
895
|
-
DLM,
|
|
896
|
-
$Command,
|
|
897
|
-
CreateLifecyclePolicyCommand,
|
|
898
|
-
DeleteLifecyclePolicyCommand,
|
|
899
|
-
GetLifecyclePoliciesCommand,
|
|
900
|
-
GetLifecyclePolicyCommand,
|
|
901
|
-
ListTagsForResourceCommand,
|
|
902
|
-
TagResourceCommand,
|
|
903
|
-
UntagResourceCommand,
|
|
904
|
-
UpdateLifecyclePolicyCommand,
|
|
905
|
-
RetentionIntervalUnitValues,
|
|
906
|
-
DefaultPolicyTypeValues,
|
|
907
|
-
EventTypeValues,
|
|
908
|
-
EventSourceValues,
|
|
909
|
-
PolicyLanguageValues,
|
|
910
|
-
PolicyTypeValues,
|
|
911
|
-
ResourceLocationValues,
|
|
912
|
-
ResourceTypeValues,
|
|
913
|
-
IntervalUnitValues,
|
|
914
|
-
LocationValues,
|
|
915
|
-
ExecutionHandlerServiceValues,
|
|
916
|
-
StageValues,
|
|
917
|
-
SettablePolicyStateValues,
|
|
918
|
-
InternalServerException,
|
|
919
|
-
InvalidRequestException,
|
|
920
|
-
LimitExceededException,
|
|
921
|
-
DefaultPoliciesTypeValues,
|
|
922
|
-
ResourceNotFoundException,
|
|
923
|
-
GettablePolicyStateValues
|
|
575
|
+
const deserializeMetadata = (output) => ({
|
|
576
|
+
httpStatusCode: output.statusCode,
|
|
577
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
578
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
579
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
924
580
|
});
|
|
925
|
-
|
|
581
|
+
const _DPT = "DefaultPolicyType";
|
|
582
|
+
const _PI = "PolicyIds";
|
|
583
|
+
const _RT = "ResourceTypes";
|
|
584
|
+
const _S = "State";
|
|
585
|
+
const _TK = "TagKeys";
|
|
586
|
+
const _TT = "TargetTags";
|
|
587
|
+
const _TTA = "TagsToAdd";
|
|
588
|
+
const _dPT = "defaultPolicyType";
|
|
589
|
+
const _pI = "policyIds";
|
|
590
|
+
const _rT = "resourceTypes";
|
|
591
|
+
const _s = "state";
|
|
592
|
+
const _tK = "tagKeys";
|
|
593
|
+
const _tT = "targetTags";
|
|
594
|
+
const _tTA = "tagsToAdd";
|
|
595
|
+
|
|
596
|
+
class CreateLifecyclePolicyCommand extends smithyClient.Command
|
|
597
|
+
.classBuilder()
|
|
598
|
+
.ep(commonParams)
|
|
599
|
+
.m(function (Command, cs, config, o) {
|
|
600
|
+
return [
|
|
601
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
602
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
603
|
+
];
|
|
604
|
+
})
|
|
605
|
+
.s("dlm_20180112", "CreateLifecyclePolicy", {})
|
|
606
|
+
.n("DLMClient", "CreateLifecyclePolicyCommand")
|
|
607
|
+
.f(void 0, void 0)
|
|
608
|
+
.ser(se_CreateLifecyclePolicyCommand)
|
|
609
|
+
.de(de_CreateLifecyclePolicyCommand)
|
|
610
|
+
.build() {
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
class DeleteLifecyclePolicyCommand extends smithyClient.Command
|
|
614
|
+
.classBuilder()
|
|
615
|
+
.ep(commonParams)
|
|
616
|
+
.m(function (Command, cs, config, o) {
|
|
617
|
+
return [
|
|
618
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
619
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
620
|
+
];
|
|
621
|
+
})
|
|
622
|
+
.s("dlm_20180112", "DeleteLifecyclePolicy", {})
|
|
623
|
+
.n("DLMClient", "DeleteLifecyclePolicyCommand")
|
|
624
|
+
.f(void 0, void 0)
|
|
625
|
+
.ser(se_DeleteLifecyclePolicyCommand)
|
|
626
|
+
.de(de_DeleteLifecyclePolicyCommand)
|
|
627
|
+
.build() {
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
class GetLifecyclePoliciesCommand extends smithyClient.Command
|
|
631
|
+
.classBuilder()
|
|
632
|
+
.ep(commonParams)
|
|
633
|
+
.m(function (Command, cs, config, o) {
|
|
634
|
+
return [
|
|
635
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
636
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
637
|
+
];
|
|
638
|
+
})
|
|
639
|
+
.s("dlm_20180112", "GetLifecyclePolicies", {})
|
|
640
|
+
.n("DLMClient", "GetLifecyclePoliciesCommand")
|
|
641
|
+
.f(void 0, void 0)
|
|
642
|
+
.ser(se_GetLifecyclePoliciesCommand)
|
|
643
|
+
.de(de_GetLifecyclePoliciesCommand)
|
|
644
|
+
.build() {
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
class GetLifecyclePolicyCommand extends smithyClient.Command
|
|
648
|
+
.classBuilder()
|
|
649
|
+
.ep(commonParams)
|
|
650
|
+
.m(function (Command, cs, config, o) {
|
|
651
|
+
return [
|
|
652
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
653
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
654
|
+
];
|
|
655
|
+
})
|
|
656
|
+
.s("dlm_20180112", "GetLifecyclePolicy", {})
|
|
657
|
+
.n("DLMClient", "GetLifecyclePolicyCommand")
|
|
658
|
+
.f(void 0, void 0)
|
|
659
|
+
.ser(se_GetLifecyclePolicyCommand)
|
|
660
|
+
.de(de_GetLifecyclePolicyCommand)
|
|
661
|
+
.build() {
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
665
|
+
.classBuilder()
|
|
666
|
+
.ep(commonParams)
|
|
667
|
+
.m(function (Command, cs, config, o) {
|
|
668
|
+
return [
|
|
669
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
670
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
671
|
+
];
|
|
672
|
+
})
|
|
673
|
+
.s("dlm_20180112", "ListTagsForResource", {})
|
|
674
|
+
.n("DLMClient", "ListTagsForResourceCommand")
|
|
675
|
+
.f(void 0, void 0)
|
|
676
|
+
.ser(se_ListTagsForResourceCommand)
|
|
677
|
+
.de(de_ListTagsForResourceCommand)
|
|
678
|
+
.build() {
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
class TagResourceCommand extends smithyClient.Command
|
|
682
|
+
.classBuilder()
|
|
683
|
+
.ep(commonParams)
|
|
684
|
+
.m(function (Command, cs, config, o) {
|
|
685
|
+
return [
|
|
686
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
687
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
688
|
+
];
|
|
689
|
+
})
|
|
690
|
+
.s("dlm_20180112", "TagResource", {})
|
|
691
|
+
.n("DLMClient", "TagResourceCommand")
|
|
692
|
+
.f(void 0, void 0)
|
|
693
|
+
.ser(se_TagResourceCommand)
|
|
694
|
+
.de(de_TagResourceCommand)
|
|
695
|
+
.build() {
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
699
|
+
.classBuilder()
|
|
700
|
+
.ep(commonParams)
|
|
701
|
+
.m(function (Command, cs, config, o) {
|
|
702
|
+
return [
|
|
703
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
704
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
705
|
+
];
|
|
706
|
+
})
|
|
707
|
+
.s("dlm_20180112", "UntagResource", {})
|
|
708
|
+
.n("DLMClient", "UntagResourceCommand")
|
|
709
|
+
.f(void 0, void 0)
|
|
710
|
+
.ser(se_UntagResourceCommand)
|
|
711
|
+
.de(de_UntagResourceCommand)
|
|
712
|
+
.build() {
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
class UpdateLifecyclePolicyCommand extends smithyClient.Command
|
|
716
|
+
.classBuilder()
|
|
717
|
+
.ep(commonParams)
|
|
718
|
+
.m(function (Command, cs, config, o) {
|
|
719
|
+
return [
|
|
720
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
721
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
722
|
+
];
|
|
723
|
+
})
|
|
724
|
+
.s("dlm_20180112", "UpdateLifecyclePolicy", {})
|
|
725
|
+
.n("DLMClient", "UpdateLifecyclePolicyCommand")
|
|
726
|
+
.f(void 0, void 0)
|
|
727
|
+
.ser(se_UpdateLifecyclePolicyCommand)
|
|
728
|
+
.de(de_UpdateLifecyclePolicyCommand)
|
|
729
|
+
.build() {
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
const commands = {
|
|
733
|
+
CreateLifecyclePolicyCommand,
|
|
734
|
+
DeleteLifecyclePolicyCommand,
|
|
735
|
+
GetLifecyclePoliciesCommand,
|
|
736
|
+
GetLifecyclePolicyCommand,
|
|
737
|
+
ListTagsForResourceCommand,
|
|
738
|
+
TagResourceCommand,
|
|
739
|
+
UntagResourceCommand,
|
|
740
|
+
UpdateLifecyclePolicyCommand,
|
|
741
|
+
};
|
|
742
|
+
class DLM extends DLMClient {
|
|
743
|
+
}
|
|
744
|
+
smithyClient.createAggregatedClient(commands, DLM);
|
|
745
|
+
|
|
746
|
+
Object.defineProperty(exports, "$Command", {
|
|
747
|
+
enumerable: true,
|
|
748
|
+
get: function () { return smithyClient.Command; }
|
|
749
|
+
});
|
|
750
|
+
Object.defineProperty(exports, "__Client", {
|
|
751
|
+
enumerable: true,
|
|
752
|
+
get: function () { return smithyClient.Client; }
|
|
753
|
+
});
|
|
754
|
+
exports.CreateLifecyclePolicyCommand = CreateLifecyclePolicyCommand;
|
|
755
|
+
exports.DLM = DLM;
|
|
756
|
+
exports.DLMClient = DLMClient;
|
|
757
|
+
exports.DLMServiceException = DLMServiceException;
|
|
758
|
+
exports.DefaultPoliciesTypeValues = DefaultPoliciesTypeValues;
|
|
759
|
+
exports.DefaultPolicyTypeValues = DefaultPolicyTypeValues;
|
|
760
|
+
exports.DeleteLifecyclePolicyCommand = DeleteLifecyclePolicyCommand;
|
|
761
|
+
exports.EventSourceValues = EventSourceValues;
|
|
762
|
+
exports.EventTypeValues = EventTypeValues;
|
|
763
|
+
exports.ExecutionHandlerServiceValues = ExecutionHandlerServiceValues;
|
|
764
|
+
exports.GetLifecyclePoliciesCommand = GetLifecyclePoliciesCommand;
|
|
765
|
+
exports.GetLifecyclePolicyCommand = GetLifecyclePolicyCommand;
|
|
766
|
+
exports.GettablePolicyStateValues = GettablePolicyStateValues;
|
|
767
|
+
exports.InternalServerException = InternalServerException;
|
|
768
|
+
exports.IntervalUnitValues = IntervalUnitValues;
|
|
769
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
770
|
+
exports.LimitExceededException = LimitExceededException;
|
|
771
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
772
|
+
exports.LocationValues = LocationValues;
|
|
773
|
+
exports.PolicyLanguageValues = PolicyLanguageValues;
|
|
774
|
+
exports.PolicyTypeValues = PolicyTypeValues;
|
|
775
|
+
exports.ResourceLocationValues = ResourceLocationValues;
|
|
776
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
777
|
+
exports.ResourceTypeValues = ResourceTypeValues;
|
|
778
|
+
exports.RetentionIntervalUnitValues = RetentionIntervalUnitValues;
|
|
779
|
+
exports.SettablePolicyStateValues = SettablePolicyStateValues;
|
|
780
|
+
exports.StageValues = StageValues;
|
|
781
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
782
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
783
|
+
exports.UpdateLifecyclePolicyCommand = UpdateLifecyclePolicyCommand;
|