@aws-sdk/client-dlm 3.183.0 → 3.185.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.
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class UntagResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UntagResourceCommand = (function (_super) {
7
+ __extends(UntagResourceCommand, _super);
8
+ function UntagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "DLMClient";
15
- const commandName = "UntagResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DLMClient";
18
+ var commandName = "UntagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UntagResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UntagResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UntagResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UntagResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UntagResourceCommand;
38
+ }($Command));
39
+ export { UntagResourceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateLifecyclePolicyRequestFilterSensitiveLog, UpdateLifecyclePolicyResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UpdateLifecyclePolicyCommand, serializeAws_restJson1UpdateLifecyclePolicyCommand, } from "../protocols/Aws_restJson1";
5
- export class UpdateLifecyclePolicyCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateLifecyclePolicyCommand = (function (_super) {
7
+ __extends(UpdateLifecyclePolicyCommand, _super);
8
+ function UpdateLifecyclePolicyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateLifecyclePolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "DLMClient";
15
- const commandName = "UpdateLifecyclePolicyCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DLMClient";
18
+ var commandName = "UpdateLifecyclePolicyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateLifecyclePolicyRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateLifecyclePolicyResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateLifecyclePolicyCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UpdateLifecyclePolicyCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateLifecyclePolicyCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UpdateLifecyclePolicyCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateLifecyclePolicyCommand;
38
+ }($Command));
39
+ export { UpdateLifecyclePolicyCommand };
@@ -1,6 +1,7 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {};
3
- const partitionHash = {
3
+ var regionHash = {};
4
+ var partitionHash = {
4
5
  aws: {
5
6
  regions: [
6
7
  "af-south-1",
@@ -120,9 +121,8 @@ const partitionHash = {
120
121
  ],
121
122
  },
122
123
  };
123
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
- ...options,
125
- signingService: "dlm",
126
- regionHash,
127
- partitionHash,
128
- });
124
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
+ return __generator(this, function (_a) {
126
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "dlm", regionHash: regionHash, partitionHash: partitionHash }))];
127
+ });
128
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class DLMServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, DLMServiceException.prototype);
3
+ var DLMServiceException = (function (_super) {
4
+ __extends(DLMServiceException, _super);
5
+ function DLMServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, DLMServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return DLMServiceException;
11
+ }(__ServiceException));
12
+ export { DLMServiceException };
@@ -1,3 +1,4 @@
1
+ import { __assign, __extends } from "tslib";
1
2
  import { DLMServiceException as __BaseException } from "./DLMServiceException";
2
3
  export var RetentionIntervalUnitValues;
3
4
  (function (RetentionIntervalUnitValues) {
@@ -44,184 +45,108 @@ export var SettablePolicyStateValues;
44
45
  SettablePolicyStateValues["DISABLED"] = "DISABLED";
45
46
  SettablePolicyStateValues["ENABLED"] = "ENABLED";
46
47
  })(SettablePolicyStateValues || (SettablePolicyStateValues = {}));
47
- export class InternalServerException extends __BaseException {
48
- constructor(opts) {
49
- super({
50
- name: "InternalServerException",
51
- $fault: "server",
52
- ...opts,
53
- });
54
- this.name = "InternalServerException";
55
- this.$fault = "server";
56
- Object.setPrototypeOf(this, InternalServerException.prototype);
57
- this.Message = opts.Message;
58
- this.Code = opts.Code;
48
+ var InternalServerException = (function (_super) {
49
+ __extends(InternalServerException, _super);
50
+ function InternalServerException(opts) {
51
+ var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
52
+ _this.name = "InternalServerException";
53
+ _this.$fault = "server";
54
+ Object.setPrototypeOf(_this, InternalServerException.prototype);
55
+ _this.Message = opts.Message;
56
+ _this.Code = opts.Code;
57
+ return _this;
59
58
  }
60
- }
61
- export class InvalidRequestException extends __BaseException {
62
- constructor(opts) {
63
- super({
64
- name: "InvalidRequestException",
65
- $fault: "client",
66
- ...opts,
67
- });
68
- this.name = "InvalidRequestException";
69
- this.$fault = "client";
70
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
71
- this.Message = opts.Message;
72
- this.Code = opts.Code;
73
- this.RequiredParameters = opts.RequiredParameters;
74
- this.MutuallyExclusiveParameters = opts.MutuallyExclusiveParameters;
59
+ return InternalServerException;
60
+ }(__BaseException));
61
+ export { InternalServerException };
62
+ var InvalidRequestException = (function (_super) {
63
+ __extends(InvalidRequestException, _super);
64
+ function InvalidRequestException(opts) {
65
+ var _this = _super.call(this, __assign({ name: "InvalidRequestException", $fault: "client" }, opts)) || this;
66
+ _this.name = "InvalidRequestException";
67
+ _this.$fault = "client";
68
+ Object.setPrototypeOf(_this, InvalidRequestException.prototype);
69
+ _this.Message = opts.Message;
70
+ _this.Code = opts.Code;
71
+ _this.RequiredParameters = opts.RequiredParameters;
72
+ _this.MutuallyExclusiveParameters = opts.MutuallyExclusiveParameters;
73
+ return _this;
75
74
  }
76
- }
77
- export class LimitExceededException extends __BaseException {
78
- constructor(opts) {
79
- super({
80
- name: "LimitExceededException",
81
- $fault: "client",
82
- ...opts,
83
- });
84
- this.name = "LimitExceededException";
85
- this.$fault = "client";
86
- Object.setPrototypeOf(this, LimitExceededException.prototype);
87
- this.Message = opts.Message;
88
- this.Code = opts.Code;
89
- this.ResourceType = opts.ResourceType;
75
+ return InvalidRequestException;
76
+ }(__BaseException));
77
+ export { InvalidRequestException };
78
+ var LimitExceededException = (function (_super) {
79
+ __extends(LimitExceededException, _super);
80
+ function LimitExceededException(opts) {
81
+ var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
82
+ _this.name = "LimitExceededException";
83
+ _this.$fault = "client";
84
+ Object.setPrototypeOf(_this, LimitExceededException.prototype);
85
+ _this.Message = opts.Message;
86
+ _this.Code = opts.Code;
87
+ _this.ResourceType = opts.ResourceType;
88
+ return _this;
90
89
  }
91
- }
92
- export class ResourceNotFoundException extends __BaseException {
93
- constructor(opts) {
94
- super({
95
- name: "ResourceNotFoundException",
96
- $fault: "client",
97
- ...opts,
98
- });
99
- this.name = "ResourceNotFoundException";
100
- this.$fault = "client";
101
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
102
- this.Message = opts.Message;
103
- this.Code = opts.Code;
104
- this.ResourceType = opts.ResourceType;
105
- this.ResourceIds = opts.ResourceIds;
90
+ return LimitExceededException;
91
+ }(__BaseException));
92
+ export { LimitExceededException };
93
+ var ResourceNotFoundException = (function (_super) {
94
+ __extends(ResourceNotFoundException, _super);
95
+ function ResourceNotFoundException(opts) {
96
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
97
+ _this.name = "ResourceNotFoundException";
98
+ _this.$fault = "client";
99
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
100
+ _this.Message = opts.Message;
101
+ _this.Code = opts.Code;
102
+ _this.ResourceType = opts.ResourceType;
103
+ _this.ResourceIds = opts.ResourceIds;
104
+ return _this;
106
105
  }
107
- }
106
+ return ResourceNotFoundException;
107
+ }(__BaseException));
108
+ export { ResourceNotFoundException };
108
109
  export var GettablePolicyStateValues;
109
110
  (function (GettablePolicyStateValues) {
110
111
  GettablePolicyStateValues["DISABLED"] = "DISABLED";
111
112
  GettablePolicyStateValues["ENABLED"] = "ENABLED";
112
113
  GettablePolicyStateValues["ERROR"] = "ERROR";
113
114
  })(GettablePolicyStateValues || (GettablePolicyStateValues = {}));
114
- export const EncryptionConfigurationFilterSensitiveLog = (obj) => ({
115
- ...obj,
116
- });
117
- export const CrossRegionCopyRetainRuleFilterSensitiveLog = (obj) => ({
118
- ...obj,
119
- });
120
- export const CrossRegionCopyActionFilterSensitiveLog = (obj) => ({
121
- ...obj,
122
- });
123
- export const ActionFilterSensitiveLog = (obj) => ({
124
- ...obj,
125
- });
126
- export const RetentionArchiveTierFilterSensitiveLog = (obj) => ({
127
- ...obj,
128
- });
129
- export const ArchiveRetainRuleFilterSensitiveLog = (obj) => ({
130
- ...obj,
131
- });
132
- export const ArchiveRuleFilterSensitiveLog = (obj) => ({
133
- ...obj,
134
- });
135
- export const EventParametersFilterSensitiveLog = (obj) => ({
136
- ...obj,
137
- });
138
- export const EventSourceFilterSensitiveLog = (obj) => ({
139
- ...obj,
140
- });
141
- export const TagFilterSensitiveLog = (obj) => ({
142
- ...obj,
143
- });
144
- export const _ParametersFilterSensitiveLog = (obj) => ({
145
- ...obj,
146
- });
147
- export const CreateRuleFilterSensitiveLog = (obj) => ({
148
- ...obj,
149
- });
150
- export const CrossRegionCopyDeprecateRuleFilterSensitiveLog = (obj) => ({
151
- ...obj,
152
- });
153
- export const CrossRegionCopyRuleFilterSensitiveLog = (obj) => ({
154
- ...obj,
155
- });
156
- export const DeprecateRuleFilterSensitiveLog = (obj) => ({
157
- ...obj,
158
- });
159
- export const FastRestoreRuleFilterSensitiveLog = (obj) => ({
160
- ...obj,
161
- });
162
- export const RetainRuleFilterSensitiveLog = (obj) => ({
163
- ...obj,
164
- });
165
- export const ShareRuleFilterSensitiveLog = (obj) => ({
166
- ...obj,
167
- });
168
- export const ScheduleFilterSensitiveLog = (obj) => ({
169
- ...obj,
170
- });
171
- export const PolicyDetailsFilterSensitiveLog = (obj) => ({
172
- ...obj,
173
- });
174
- export const CreateLifecyclePolicyRequestFilterSensitiveLog = (obj) => ({
175
- ...obj,
176
- });
177
- export const CreateLifecyclePolicyResponseFilterSensitiveLog = (obj) => ({
178
- ...obj,
179
- });
180
- export const DeleteLifecyclePolicyRequestFilterSensitiveLog = (obj) => ({
181
- ...obj,
182
- });
183
- export const DeleteLifecyclePolicyResponseFilterSensitiveLog = (obj) => ({
184
- ...obj,
185
- });
186
- export const GetLifecyclePoliciesRequestFilterSensitiveLog = (obj) => ({
187
- ...obj,
188
- });
189
- export const LifecyclePolicySummaryFilterSensitiveLog = (obj) => ({
190
- ...obj,
191
- });
192
- export const GetLifecyclePoliciesResponseFilterSensitiveLog = (obj) => ({
193
- ...obj,
194
- });
195
- export const GetLifecyclePolicyRequestFilterSensitiveLog = (obj) => ({
196
- ...obj,
197
- });
198
- export const LifecyclePolicyFilterSensitiveLog = (obj) => ({
199
- ...obj,
200
- });
201
- export const GetLifecyclePolicyResponseFilterSensitiveLog = (obj) => ({
202
- ...obj,
203
- });
204
- export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
205
- ...obj,
206
- });
207
- export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
208
- ...obj,
209
- });
210
- export const TagResourceRequestFilterSensitiveLog = (obj) => ({
211
- ...obj,
212
- });
213
- export const TagResourceResponseFilterSensitiveLog = (obj) => ({
214
- ...obj,
215
- });
216
- export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
217
- ...obj,
218
- });
219
- export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
220
- ...obj,
221
- });
222
- export const UpdateLifecyclePolicyRequestFilterSensitiveLog = (obj) => ({
223
- ...obj,
224
- });
225
- export const UpdateLifecyclePolicyResponseFilterSensitiveLog = (obj) => ({
226
- ...obj,
227
- });
115
+ export var EncryptionConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
116
+ export var CrossRegionCopyRetainRuleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
117
+ export var CrossRegionCopyActionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
118
+ export var ActionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
119
+ export var RetentionArchiveTierFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
120
+ export var ArchiveRetainRuleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
121
+ export var ArchiveRuleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
122
+ export var EventParametersFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
123
+ export var EventSourceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
124
+ export var TagFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
125
+ export var _ParametersFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
126
+ export var CreateRuleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
127
+ export var CrossRegionCopyDeprecateRuleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
128
+ export var CrossRegionCopyRuleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
129
+ export var DeprecateRuleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
130
+ export var FastRestoreRuleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
131
+ export var RetainRuleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
132
+ export var ShareRuleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
133
+ export var ScheduleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
134
+ export var PolicyDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
135
+ export var CreateLifecyclePolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
136
+ export var CreateLifecyclePolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
137
+ export var DeleteLifecyclePolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
138
+ export var DeleteLifecyclePolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
139
+ export var GetLifecyclePoliciesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
+ export var LifecyclePolicySummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
141
+ export var GetLifecyclePoliciesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
142
+ export var GetLifecyclePolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
143
+ export var LifecyclePolicyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
144
+ export var GetLifecyclePolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
145
+ export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
146
+ export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
147
+ export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
148
+ export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
149
+ export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
150
+ export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
151
+ export var UpdateLifecyclePolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
152
+ export var UpdateLifecyclePolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };