@aws-sdk/client-dlm 3.181.0 → 3.183.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/CHANGELOG.md +19 -0
- package/README.md +3 -3
- package/dist-cjs/models/models_0.js +14 -1
- package/dist-cjs/protocols/Aws_restJson1.js +40 -0
- package/dist-es/DLM.js +34 -41
- package/dist-es/DLMClient.js +22 -28
- package/dist-es/commands/CreateLifecyclePolicyCommand.js +21 -28
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +21 -28
- package/dist-es/commands/GetLifecyclePoliciesCommand.js +21 -28
- package/dist-es/commands/GetLifecyclePolicyCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateLifecyclePolicyCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DLMServiceException.js +5 -10
- package/dist-es/models/models_0.js +171 -93
- package/dist-es/protocols/Aws_restJson1.js +901 -1026
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-types/DLM.d.ts +7 -3
- package/dist-types/DLMClient.d.ts +3 -3
- package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +2 -0
- package/dist-types/commands/UpdateLifecyclePolicyCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +140 -16
- package/dist-types/ts3.4/models/models_0.d.ts +19 -0
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-dlm
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.182.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.181.0...v3.182.0) (2022-09-30)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client-dlm:** This release adds support for archival of single-volume snapshots created by Amazon Data Lifecycle Manager policies ([a88a887](https://github.com/aws/aws-sdk-js-v3/commit/a88a88710933a67d956f02e85d6cf11296143410))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
26
|
|
|
8
27
|
|
package/README.md
CHANGED
|
@@ -14,9 +14,9 @@ AWS SDK for JavaScript DLM Client for Node.js, Browser and React Native.
|
|
|
14
14
|
<p>With Amazon Data Lifecycle Manager, you can manage the lifecycle of your Amazon Web Services resources. You create
|
|
15
15
|
lifecycle policies, which are used to automate operations on the specified
|
|
16
16
|
resources.</p>
|
|
17
|
-
<p>Amazon
|
|
18
|
-
with Amazon EBS, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-lifecycle.html">
|
|
19
|
-
|
|
17
|
+
<p>Amazon Data Lifecycle Manager supports Amazon EBS volumes and snapshots. For information about using Amazon Data Lifecycle Manager
|
|
18
|
+
with Amazon EBS, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-lifecycle.html">
|
|
19
|
+
Amazon Data Lifecycle Manager</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
20
20
|
|
|
21
21
|
## Installing
|
|
22
22
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.GetLifecyclePolicyResponseFilterSensitiveLog = exports.LifecyclePolicyFilterSensitiveLog = exports.GetLifecyclePolicyRequestFilterSensitiveLog = exports.GetLifecyclePoliciesResponseFilterSensitiveLog = exports.LifecyclePolicySummaryFilterSensitiveLog = exports.GetLifecyclePoliciesRequestFilterSensitiveLog = exports.DeleteLifecyclePolicyResponseFilterSensitiveLog = exports.DeleteLifecyclePolicyRequestFilterSensitiveLog = exports.CreateLifecyclePolicyResponseFilterSensitiveLog = exports.CreateLifecyclePolicyRequestFilterSensitiveLog = exports.PolicyDetailsFilterSensitiveLog = exports.ScheduleFilterSensitiveLog = exports.ShareRuleFilterSensitiveLog = exports.RetainRuleFilterSensitiveLog = exports.FastRestoreRuleFilterSensitiveLog = exports.DeprecateRuleFilterSensitiveLog = exports.CrossRegionCopyRuleFilterSensitiveLog = exports.CrossRegionCopyDeprecateRuleFilterSensitiveLog = exports.CreateRuleFilterSensitiveLog = exports._ParametersFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.EventSourceFilterSensitiveLog = exports.EventParametersFilterSensitiveLog = exports.ArchiveRuleFilterSensitiveLog = exports.ArchiveRetainRuleFilterSensitiveLog = exports.RetentionArchiveTierFilterSensitiveLog = exports.ActionFilterSensitiveLog = exports.CrossRegionCopyActionFilterSensitiveLog = exports.CrossRegionCopyRetainRuleFilterSensitiveLog = exports.EncryptionConfigurationFilterSensitiveLog = exports.GettablePolicyStateValues = exports.ResourceNotFoundException = exports.LimitExceededException = exports.InvalidRequestException = exports.InternalServerException = exports.SettablePolicyStateValues = exports.LocationValues = exports.IntervalUnitValues = exports.ResourceTypeValues = exports.ResourceLocationValues = exports.PolicyTypeValues = exports.EventSourceValues = exports.EventTypeValues = exports.RetentionIntervalUnitValues = void 0;
|
|
4
|
+
exports.UpdateLifecyclePolicyResponseFilterSensitiveLog = exports.UpdateLifecyclePolicyRequestFilterSensitiveLog = void 0;
|
|
4
5
|
const DLMServiceException_1 = require("./DLMServiceException");
|
|
5
6
|
var RetentionIntervalUnitValues;
|
|
6
7
|
(function (RetentionIntervalUnitValues) {
|
|
@@ -134,6 +135,18 @@ const ActionFilterSensitiveLog = (obj) => ({
|
|
|
134
135
|
...obj,
|
|
135
136
|
});
|
|
136
137
|
exports.ActionFilterSensitiveLog = ActionFilterSensitiveLog;
|
|
138
|
+
const RetentionArchiveTierFilterSensitiveLog = (obj) => ({
|
|
139
|
+
...obj,
|
|
140
|
+
});
|
|
141
|
+
exports.RetentionArchiveTierFilterSensitiveLog = RetentionArchiveTierFilterSensitiveLog;
|
|
142
|
+
const ArchiveRetainRuleFilterSensitiveLog = (obj) => ({
|
|
143
|
+
...obj,
|
|
144
|
+
});
|
|
145
|
+
exports.ArchiveRetainRuleFilterSensitiveLog = ArchiveRetainRuleFilterSensitiveLog;
|
|
146
|
+
const ArchiveRuleFilterSensitiveLog = (obj) => ({
|
|
147
|
+
...obj,
|
|
148
|
+
});
|
|
149
|
+
exports.ArchiveRuleFilterSensitiveLog = ArchiveRuleFilterSensitiveLog;
|
|
137
150
|
const EventParametersFilterSensitiveLog = (obj) => ({
|
|
138
151
|
...obj,
|
|
139
152
|
});
|
|
@@ -585,6 +585,18 @@ const serializeAws_restJson1ActionList = (input, context) => {
|
|
|
585
585
|
return serializeAws_restJson1Action(entry, context);
|
|
586
586
|
});
|
|
587
587
|
};
|
|
588
|
+
const serializeAws_restJson1ArchiveRetainRule = (input, context) => {
|
|
589
|
+
return {
|
|
590
|
+
...(input.RetentionArchiveTier != null && {
|
|
591
|
+
RetentionArchiveTier: serializeAws_restJson1RetentionArchiveTier(input.RetentionArchiveTier, context),
|
|
592
|
+
}),
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
const serializeAws_restJson1ArchiveRule = (input, context) => {
|
|
596
|
+
return {
|
|
597
|
+
...(input.RetainRule != null && { RetainRule: serializeAws_restJson1ArchiveRetainRule(input.RetainRule, context) }),
|
|
598
|
+
};
|
|
599
|
+
};
|
|
588
600
|
const serializeAws_restJson1AvailabilityZoneList = (input, context) => {
|
|
589
601
|
return input
|
|
590
602
|
.filter((e) => e != null)
|
|
@@ -744,8 +756,16 @@ const serializeAws_restJson1RetainRule = (input, context) => {
|
|
|
744
756
|
...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
|
|
745
757
|
};
|
|
746
758
|
};
|
|
759
|
+
const serializeAws_restJson1RetentionArchiveTier = (input, context) => {
|
|
760
|
+
return {
|
|
761
|
+
...(input.Count != null && { Count: input.Count }),
|
|
762
|
+
...(input.Interval != null && { Interval: input.Interval }),
|
|
763
|
+
...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
|
|
764
|
+
};
|
|
765
|
+
};
|
|
747
766
|
const serializeAws_restJson1Schedule = (input, context) => {
|
|
748
767
|
return {
|
|
768
|
+
...(input.ArchiveRule != null && { ArchiveRule: serializeAws_restJson1ArchiveRule(input.ArchiveRule, context) }),
|
|
749
769
|
...(input.CopyTags != null && { CopyTags: input.CopyTags }),
|
|
750
770
|
...(input.CreateRule != null && { CreateRule: serializeAws_restJson1CreateRule(input.CreateRule, context) }),
|
|
751
771
|
...(input.CrossRegionCopyRules != null && {
|
|
@@ -867,6 +887,18 @@ const deserializeAws_restJson1ActionList = (output, context) => {
|
|
|
867
887
|
});
|
|
868
888
|
return retVal;
|
|
869
889
|
};
|
|
890
|
+
const deserializeAws_restJson1ArchiveRetainRule = (output, context) => {
|
|
891
|
+
return {
|
|
892
|
+
RetentionArchiveTier: output.RetentionArchiveTier != null
|
|
893
|
+
? deserializeAws_restJson1RetentionArchiveTier(output.RetentionArchiveTier, context)
|
|
894
|
+
: undefined,
|
|
895
|
+
};
|
|
896
|
+
};
|
|
897
|
+
const deserializeAws_restJson1ArchiveRule = (output, context) => {
|
|
898
|
+
return {
|
|
899
|
+
RetainRule: output.RetainRule != null ? deserializeAws_restJson1ArchiveRetainRule(output.RetainRule, context) : undefined,
|
|
900
|
+
};
|
|
901
|
+
};
|
|
870
902
|
const deserializeAws_restJson1AvailabilityZoneList = (output, context) => {
|
|
871
903
|
const retVal = (output || [])
|
|
872
904
|
.filter((e) => e != null)
|
|
@@ -1110,8 +1142,16 @@ const deserializeAws_restJson1RetainRule = (output, context) => {
|
|
|
1110
1142
|
IntervalUnit: (0, smithy_client_1.expectString)(output.IntervalUnit),
|
|
1111
1143
|
};
|
|
1112
1144
|
};
|
|
1145
|
+
const deserializeAws_restJson1RetentionArchiveTier = (output, context) => {
|
|
1146
|
+
return {
|
|
1147
|
+
Count: (0, smithy_client_1.expectInt32)(output.Count),
|
|
1148
|
+
Interval: (0, smithy_client_1.expectInt32)(output.Interval),
|
|
1149
|
+
IntervalUnit: (0, smithy_client_1.expectString)(output.IntervalUnit),
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1113
1152
|
const deserializeAws_restJson1Schedule = (output, context) => {
|
|
1114
1153
|
return {
|
|
1154
|
+
ArchiveRule: output.ArchiveRule != null ? deserializeAws_restJson1ArchiveRule(output.ArchiveRule, context) : undefined,
|
|
1115
1155
|
CopyTags: (0, smithy_client_1.expectBoolean)(output.CopyTags),
|
|
1116
1156
|
CreateRule: output.CreateRule != null ? deserializeAws_restJson1CreateRule(output.CreateRule, context) : undefined,
|
|
1117
1157
|
CrossRegionCopyRules: output.CrossRegionCopyRules != null
|
package/dist-es/DLM.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { CreateLifecyclePolicyCommand, } from "./commands/CreateLifecyclePolicyCommand";
|
|
3
2
|
import { DeleteLifecyclePolicyCommand, } from "./commands/DeleteLifecyclePolicyCommand";
|
|
4
3
|
import { GetLifecyclePoliciesCommand, } from "./commands/GetLifecyclePoliciesCommand";
|
|
@@ -8,123 +7,117 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
8
7
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
9
8
|
import { UpdateLifecyclePolicyCommand, } from "./commands/UpdateLifecyclePolicyCommand";
|
|
10
9
|
import { DLMClient } from "./DLMClient";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
15
|
-
}
|
|
16
|
-
DLM.prototype.createLifecyclePolicy = function (args, optionsOrCb, cb) {
|
|
17
|
-
var command = new CreateLifecyclePolicyCommand(args);
|
|
10
|
+
export class DLM extends DLMClient {
|
|
11
|
+
createLifecyclePolicy(args, optionsOrCb, cb) {
|
|
12
|
+
const command = new CreateLifecyclePolicyCommand(args);
|
|
18
13
|
if (typeof optionsOrCb === "function") {
|
|
19
14
|
this.send(command, optionsOrCb);
|
|
20
15
|
}
|
|
21
16
|
else if (typeof cb === "function") {
|
|
22
17
|
if (typeof optionsOrCb !== "object")
|
|
23
|
-
throw new Error(
|
|
18
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
24
19
|
this.send(command, optionsOrCb || {}, cb);
|
|
25
20
|
}
|
|
26
21
|
else {
|
|
27
22
|
return this.send(command, optionsOrCb);
|
|
28
23
|
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
}
|
|
25
|
+
deleteLifecyclePolicy(args, optionsOrCb, cb) {
|
|
26
|
+
const command = new DeleteLifecyclePolicyCommand(args);
|
|
32
27
|
if (typeof optionsOrCb === "function") {
|
|
33
28
|
this.send(command, optionsOrCb);
|
|
34
29
|
}
|
|
35
30
|
else if (typeof cb === "function") {
|
|
36
31
|
if (typeof optionsOrCb !== "object")
|
|
37
|
-
throw new Error(
|
|
32
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
38
33
|
this.send(command, optionsOrCb || {}, cb);
|
|
39
34
|
}
|
|
40
35
|
else {
|
|
41
36
|
return this.send(command, optionsOrCb);
|
|
42
37
|
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
}
|
|
39
|
+
getLifecyclePolicies(args, optionsOrCb, cb) {
|
|
40
|
+
const command = new GetLifecyclePoliciesCommand(args);
|
|
46
41
|
if (typeof optionsOrCb === "function") {
|
|
47
42
|
this.send(command, optionsOrCb);
|
|
48
43
|
}
|
|
49
44
|
else if (typeof cb === "function") {
|
|
50
45
|
if (typeof optionsOrCb !== "object")
|
|
51
|
-
throw new Error(
|
|
46
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
52
47
|
this.send(command, optionsOrCb || {}, cb);
|
|
53
48
|
}
|
|
54
49
|
else {
|
|
55
50
|
return this.send(command, optionsOrCb);
|
|
56
51
|
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
52
|
+
}
|
|
53
|
+
getLifecyclePolicy(args, optionsOrCb, cb) {
|
|
54
|
+
const command = new GetLifecyclePolicyCommand(args);
|
|
60
55
|
if (typeof optionsOrCb === "function") {
|
|
61
56
|
this.send(command, optionsOrCb);
|
|
62
57
|
}
|
|
63
58
|
else if (typeof cb === "function") {
|
|
64
59
|
if (typeof optionsOrCb !== "object")
|
|
65
|
-
throw new Error(
|
|
60
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
66
61
|
this.send(command, optionsOrCb || {}, cb);
|
|
67
62
|
}
|
|
68
63
|
else {
|
|
69
64
|
return this.send(command, optionsOrCb);
|
|
70
65
|
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
}
|
|
67
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
68
|
+
const command = new ListTagsForResourceCommand(args);
|
|
74
69
|
if (typeof optionsOrCb === "function") {
|
|
75
70
|
this.send(command, optionsOrCb);
|
|
76
71
|
}
|
|
77
72
|
else if (typeof cb === "function") {
|
|
78
73
|
if (typeof optionsOrCb !== "object")
|
|
79
|
-
throw new Error(
|
|
74
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
80
75
|
this.send(command, optionsOrCb || {}, cb);
|
|
81
76
|
}
|
|
82
77
|
else {
|
|
83
78
|
return this.send(command, optionsOrCb);
|
|
84
79
|
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
}
|
|
81
|
+
tagResource(args, optionsOrCb, cb) {
|
|
82
|
+
const command = new TagResourceCommand(args);
|
|
88
83
|
if (typeof optionsOrCb === "function") {
|
|
89
84
|
this.send(command, optionsOrCb);
|
|
90
85
|
}
|
|
91
86
|
else if (typeof cb === "function") {
|
|
92
87
|
if (typeof optionsOrCb !== "object")
|
|
93
|
-
throw new Error(
|
|
88
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
94
89
|
this.send(command, optionsOrCb || {}, cb);
|
|
95
90
|
}
|
|
96
91
|
else {
|
|
97
92
|
return this.send(command, optionsOrCb);
|
|
98
93
|
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
}
|
|
95
|
+
untagResource(args, optionsOrCb, cb) {
|
|
96
|
+
const command = new UntagResourceCommand(args);
|
|
102
97
|
if (typeof optionsOrCb === "function") {
|
|
103
98
|
this.send(command, optionsOrCb);
|
|
104
99
|
}
|
|
105
100
|
else if (typeof cb === "function") {
|
|
106
101
|
if (typeof optionsOrCb !== "object")
|
|
107
|
-
throw new Error(
|
|
102
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
108
103
|
this.send(command, optionsOrCb || {}, cb);
|
|
109
104
|
}
|
|
110
105
|
else {
|
|
111
106
|
return this.send(command, optionsOrCb);
|
|
112
107
|
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
}
|
|
109
|
+
updateLifecyclePolicy(args, optionsOrCb, cb) {
|
|
110
|
+
const command = new UpdateLifecyclePolicyCommand(args);
|
|
116
111
|
if (typeof optionsOrCb === "function") {
|
|
117
112
|
this.send(command, optionsOrCb);
|
|
118
113
|
}
|
|
119
114
|
else if (typeof cb === "function") {
|
|
120
115
|
if (typeof optionsOrCb !== "object")
|
|
121
|
-
throw new Error(
|
|
116
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
122
117
|
this.send(command, optionsOrCb || {}, cb);
|
|
123
118
|
}
|
|
124
119
|
else {
|
|
125
120
|
return this.send(command, optionsOrCb);
|
|
126
121
|
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
}(DLMClient));
|
|
130
|
-
export { DLM };
|
|
122
|
+
}
|
|
123
|
+
}
|
package/dist-es/DLMClient.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class DLMClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { DLMClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CreateLifecyclePolicyRequestFilterSensitiveLog, CreateLifecyclePolicyResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1CreateLifecyclePolicyCommand, serializeAws_restJson1CreateLifecyclePolicyCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CreateLifecyclePolicyCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "DLMClient";
|
|
15
|
+
const commandName = "CreateLifecyclePolicyCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CreateLifecyclePolicyRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CreateLifecyclePolicyResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CreateLifecyclePolicyCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1CreateLifecyclePolicyCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1CreateLifecyclePolicyCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CreateLifecyclePolicyCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { DeleteLifecyclePolicyRequestFilterSensitiveLog, DeleteLifecyclePolicyResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1DeleteLifecyclePolicyCommand, serializeAws_restJson1DeleteLifecyclePolicyCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class DeleteLifecyclePolicyCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "DLMClient";
|
|
15
|
+
const commandName = "DeleteLifecyclePolicyCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: DeleteLifecyclePolicyRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: DeleteLifecyclePolicyResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
DeleteLifecyclePolicyCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1DeleteLifecyclePolicyCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1DeleteLifecyclePolicyCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { DeleteLifecyclePolicyCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { GetLifecyclePoliciesRequestFilterSensitiveLog, GetLifecyclePoliciesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1GetLifecyclePoliciesCommand, serializeAws_restJson1GetLifecyclePoliciesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class GetLifecyclePoliciesCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "DLMClient";
|
|
15
|
+
const commandName = "GetLifecyclePoliciesCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: GetLifecyclePoliciesRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: GetLifecyclePoliciesResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
GetLifecyclePoliciesCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1GetLifecyclePoliciesCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1GetLifecyclePoliciesCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { GetLifecyclePoliciesCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { GetLifecyclePolicyRequestFilterSensitiveLog, GetLifecyclePolicyResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1GetLifecyclePolicyCommand, serializeAws_restJson1GetLifecyclePolicyCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class GetLifecyclePolicyCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "DLMClient";
|
|
15
|
+
const commandName = "GetLifecyclePolicyCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: GetLifecyclePolicyRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: GetLifecyclePolicyResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
GetLifecyclePolicyCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1GetLifecyclePolicyCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1GetLifecyclePolicyCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { GetLifecyclePolicyCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|