@aws-sdk/client-dlm 3.927.0 → 3.929.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 +528 -397
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/DLMClient.js +2 -0
- package/dist-es/commands/CreateLifecyclePolicyCommand.js +3 -9
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +3 -9
- package/dist-es/commands/GetLifecyclePoliciesCommand.js +3 -9
- package/dist-es/commands/GetLifecyclePolicyCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateLifecyclePolicyCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +526 -0
- package/dist-types/DLMClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +83 -0
- package/dist-types/ts3.4/DLMClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +88 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_restJson1.js +0 -343
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -74
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -101
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: DLMClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
userAgentAppId?:
|
|
43
47
|
| string
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: DLMClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
retryStrategy?:
|
|
43
47
|
| import("@smithy/types").RetryStrategy
|
|
@@ -37,6 +37,10 @@ export declare const getRuntimeConfig: (config: DLMClientConfig) => {
|
|
|
37
37
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
38
38
|
logger: import("@smithy/types").Logger;
|
|
39
39
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
40
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
41
|
+
import("@smithy/types").HttpRequest,
|
|
42
|
+
import("@smithy/types").HttpResponse
|
|
43
|
+
>;
|
|
40
44
|
defaultsMode:
|
|
41
45
|
| import("@smithy/smithy-client").DefaultsMode
|
|
42
46
|
| import("@smithy/types").Provider<
|
|
@@ -14,6 +14,10 @@ export declare const getRuntimeConfig: (config: DLMClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DLMHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
18
|
+
import("@smithy/types").HttpRequest,
|
|
19
|
+
import("@smithy/types").HttpResponse
|
|
20
|
+
>;
|
|
17
21
|
serviceId: string;
|
|
18
22
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
23
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticStructureSchema,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export declare var Action: StaticStructureSchema;
|
|
8
|
+
export declare var ArchiveRetainRule: StaticStructureSchema;
|
|
9
|
+
export declare var ArchiveRule: StaticStructureSchema;
|
|
10
|
+
export declare var CreateLifecyclePolicyRequest: StaticStructureSchema;
|
|
11
|
+
export declare var CreateLifecyclePolicyResponse: StaticStructureSchema;
|
|
12
|
+
export declare var CreateRule: StaticStructureSchema;
|
|
13
|
+
export declare var CrossRegionCopyAction: StaticStructureSchema;
|
|
14
|
+
export declare var CrossRegionCopyDeprecateRule: StaticStructureSchema;
|
|
15
|
+
export declare var CrossRegionCopyRetainRule: StaticStructureSchema;
|
|
16
|
+
export declare var CrossRegionCopyRule: StaticStructureSchema;
|
|
17
|
+
export declare var CrossRegionCopyTarget: StaticStructureSchema;
|
|
18
|
+
export declare var DeleteLifecyclePolicyRequest: StaticStructureSchema;
|
|
19
|
+
export declare var DeleteLifecyclePolicyResponse: StaticStructureSchema;
|
|
20
|
+
export declare var DeprecateRule: StaticStructureSchema;
|
|
21
|
+
export declare var EncryptionConfiguration: StaticStructureSchema;
|
|
22
|
+
export declare var EventParameters: StaticStructureSchema;
|
|
23
|
+
export declare var EventSource: StaticStructureSchema;
|
|
24
|
+
export declare var Exclusions: StaticStructureSchema;
|
|
25
|
+
export declare var FastRestoreRule: StaticStructureSchema;
|
|
26
|
+
export declare var GetLifecyclePoliciesRequest: StaticStructureSchema;
|
|
27
|
+
export declare var GetLifecyclePoliciesResponse: StaticStructureSchema;
|
|
28
|
+
export declare var GetLifecyclePolicyRequest: StaticStructureSchema;
|
|
29
|
+
export declare var GetLifecyclePolicyResponse: StaticStructureSchema;
|
|
30
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
31
|
+
export declare var InvalidRequestException: StaticErrorSchema;
|
|
32
|
+
export declare var LifecyclePolicy: StaticStructureSchema;
|
|
33
|
+
export declare var LifecyclePolicySummary: StaticStructureSchema;
|
|
34
|
+
export declare var LimitExceededException: StaticErrorSchema;
|
|
35
|
+
export declare var ListTagsForResourceRequest: StaticStructureSchema;
|
|
36
|
+
export declare var ListTagsForResourceResponse: StaticStructureSchema;
|
|
37
|
+
export declare var _Parameters: StaticStructureSchema;
|
|
38
|
+
export declare var PolicyDetails: StaticStructureSchema;
|
|
39
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
40
|
+
export declare var RetainRule: StaticStructureSchema;
|
|
41
|
+
export declare var RetentionArchiveTier: StaticStructureSchema;
|
|
42
|
+
export declare var Schedule: StaticStructureSchema;
|
|
43
|
+
export declare var Script: StaticStructureSchema;
|
|
44
|
+
export declare var ShareRule: StaticStructureSchema;
|
|
45
|
+
export declare var Tag: StaticStructureSchema;
|
|
46
|
+
export declare var TagResourceRequest: StaticStructureSchema;
|
|
47
|
+
export declare var TagResourceResponse: StaticStructureSchema;
|
|
48
|
+
export declare var UntagResourceRequest: StaticStructureSchema;
|
|
49
|
+
export declare var UntagResourceResponse: StaticStructureSchema;
|
|
50
|
+
export declare var UpdateLifecyclePolicyRequest: StaticStructureSchema;
|
|
51
|
+
export declare var UpdateLifecyclePolicyResponse: StaticStructureSchema;
|
|
52
|
+
export declare var __Unit: "unit";
|
|
53
|
+
export declare var DLMServiceException: StaticErrorSchema;
|
|
54
|
+
export declare var ActionList: StaticListSchema;
|
|
55
|
+
export declare var AvailabilityZoneList: number;
|
|
56
|
+
export declare var CrossRegionCopyActionList: StaticListSchema;
|
|
57
|
+
export declare var CrossRegionCopyRules: StaticListSchema;
|
|
58
|
+
export declare var CrossRegionCopyTargetList: StaticListSchema;
|
|
59
|
+
export declare var ExcludeDataVolumeTagList: StaticListSchema;
|
|
60
|
+
export declare var ExcludeTagsList: StaticListSchema;
|
|
61
|
+
export declare var ExcludeVolumeTypesList: number;
|
|
62
|
+
export declare var LifecyclePolicySummaryList: StaticListSchema;
|
|
63
|
+
export declare var ParameterList: number;
|
|
64
|
+
export declare var PolicyIdList: number;
|
|
65
|
+
export declare var ResourceLocationList: number;
|
|
66
|
+
export declare var ResourceTypeValuesList: number;
|
|
67
|
+
export declare var ScheduleList: StaticListSchema;
|
|
68
|
+
export declare var ScriptsList: StaticListSchema;
|
|
69
|
+
export declare var ShareRules: StaticListSchema;
|
|
70
|
+
export declare var ShareTargetAccountList: number;
|
|
71
|
+
export declare var SnapshotOwnerList: number;
|
|
72
|
+
export declare var StagesList: number;
|
|
73
|
+
export declare var TagKeyList: number;
|
|
74
|
+
export declare var TagsToAddFilterList: number;
|
|
75
|
+
export declare var TagsToAddList: StaticListSchema;
|
|
76
|
+
export declare var TargetTagList: StaticListSchema;
|
|
77
|
+
export declare var TargetTagsFilterList: number;
|
|
78
|
+
export declare var TimesList: number;
|
|
79
|
+
export declare var VariableTagsList: StaticListSchema;
|
|
80
|
+
export declare var TagMap: number;
|
|
81
|
+
export declare var CreateLifecyclePolicy: StaticOperationSchema;
|
|
82
|
+
export declare var DeleteLifecyclePolicy: StaticOperationSchema;
|
|
83
|
+
export declare var GetLifecyclePolicies: StaticOperationSchema;
|
|
84
|
+
export declare var GetLifecyclePolicy: StaticOperationSchema;
|
|
85
|
+
export declare var ListTagsForResource: StaticOperationSchema;
|
|
86
|
+
export declare var TagResource: StaticOperationSchema;
|
|
87
|
+
export declare var UntagResource: StaticOperationSchema;
|
|
88
|
+
export declare var UpdateLifecyclePolicy: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dlm",
|
|
3
3
|
"description": "AWS SDK for JavaScript Dlm Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.929.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-dlm",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.928.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
30
30
|
"@aws-sdk/types": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.2",
|
|
35
35
|
"@smithy/core": "^3.17.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.5",
|
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { DLMServiceException as __BaseException } from "../models/DLMServiceException";
|
|
5
|
-
import { InternalServerException, InvalidRequestException, LimitExceededException, ResourceNotFoundException, } from "../models/models_0";
|
|
6
|
-
export const se_CreateLifecyclePolicyCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/policies");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
CopyTags: [],
|
|
15
|
-
CreateInterval: [],
|
|
16
|
-
CrossRegionCopyTargets: (_) => _json(_),
|
|
17
|
-
DefaultPolicy: [],
|
|
18
|
-
Description: [],
|
|
19
|
-
Exclusions: (_) => _json(_),
|
|
20
|
-
ExecutionRoleArn: [],
|
|
21
|
-
ExtendDeletion: [],
|
|
22
|
-
PolicyDetails: (_) => _json(_),
|
|
23
|
-
RetainInterval: [],
|
|
24
|
-
State: [],
|
|
25
|
-
Tags: (_) => _json(_),
|
|
26
|
-
}));
|
|
27
|
-
b.m("POST").h(headers).b(body);
|
|
28
|
-
return b.build();
|
|
29
|
-
};
|
|
30
|
-
export const se_DeleteLifecyclePolicyCommand = async (input, context) => {
|
|
31
|
-
const b = rb(input, context);
|
|
32
|
-
const headers = {};
|
|
33
|
-
b.bp("/policies/{PolicyId}");
|
|
34
|
-
b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
|
|
35
|
-
let body;
|
|
36
|
-
b.m("DELETE").h(headers).b(body);
|
|
37
|
-
return b.build();
|
|
38
|
-
};
|
|
39
|
-
export const se_GetLifecyclePoliciesCommand = async (input, context) => {
|
|
40
|
-
const b = rb(input, context);
|
|
41
|
-
const headers = {};
|
|
42
|
-
b.bp("/policies");
|
|
43
|
-
const query = map({
|
|
44
|
-
[_pI]: [() => input.PolicyIds !== void 0, () => input[_PI] || []],
|
|
45
|
-
[_s]: [, input[_S]],
|
|
46
|
-
[_rT]: [() => input.ResourceTypes !== void 0, () => input[_RT] || []],
|
|
47
|
-
[_tT]: [() => input.TargetTags !== void 0, () => input[_TT] || []],
|
|
48
|
-
[_tTA]: [() => input.TagsToAdd !== void 0, () => input[_TTA] || []],
|
|
49
|
-
[_dPT]: [, input[_DPT]],
|
|
50
|
-
});
|
|
51
|
-
let body;
|
|
52
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
53
|
-
return b.build();
|
|
54
|
-
};
|
|
55
|
-
export const se_GetLifecyclePolicyCommand = async (input, context) => {
|
|
56
|
-
const b = rb(input, context);
|
|
57
|
-
const headers = {};
|
|
58
|
-
b.bp("/policies/{PolicyId}");
|
|
59
|
-
b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
|
|
60
|
-
let body;
|
|
61
|
-
b.m("GET").h(headers).b(body);
|
|
62
|
-
return b.build();
|
|
63
|
-
};
|
|
64
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
65
|
-
const b = rb(input, context);
|
|
66
|
-
const headers = {};
|
|
67
|
-
b.bp("/tags/{ResourceArn}");
|
|
68
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
69
|
-
let body;
|
|
70
|
-
b.m("GET").h(headers).b(body);
|
|
71
|
-
return b.build();
|
|
72
|
-
};
|
|
73
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
74
|
-
const b = rb(input, context);
|
|
75
|
-
const headers = {
|
|
76
|
-
"content-type": "application/json",
|
|
77
|
-
};
|
|
78
|
-
b.bp("/tags/{ResourceArn}");
|
|
79
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(take(input, {
|
|
82
|
-
Tags: (_) => _json(_),
|
|
83
|
-
}));
|
|
84
|
-
b.m("POST").h(headers).b(body);
|
|
85
|
-
return b.build();
|
|
86
|
-
};
|
|
87
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
88
|
-
const b = rb(input, context);
|
|
89
|
-
const headers = {};
|
|
90
|
-
b.bp("/tags/{ResourceArn}");
|
|
91
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
92
|
-
const query = map({
|
|
93
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
94
|
-
});
|
|
95
|
-
let body;
|
|
96
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
97
|
-
return b.build();
|
|
98
|
-
};
|
|
99
|
-
export const se_UpdateLifecyclePolicyCommand = async (input, context) => {
|
|
100
|
-
const b = rb(input, context);
|
|
101
|
-
const headers = {
|
|
102
|
-
"content-type": "application/json",
|
|
103
|
-
};
|
|
104
|
-
b.bp("/policies/{PolicyId}");
|
|
105
|
-
b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
|
|
106
|
-
let body;
|
|
107
|
-
body = JSON.stringify(take(input, {
|
|
108
|
-
CopyTags: [],
|
|
109
|
-
CreateInterval: [],
|
|
110
|
-
CrossRegionCopyTargets: (_) => _json(_),
|
|
111
|
-
Description: [],
|
|
112
|
-
Exclusions: (_) => _json(_),
|
|
113
|
-
ExecutionRoleArn: [],
|
|
114
|
-
ExtendDeletion: [],
|
|
115
|
-
PolicyDetails: (_) => _json(_),
|
|
116
|
-
RetainInterval: [],
|
|
117
|
-
State: [],
|
|
118
|
-
}));
|
|
119
|
-
b.m("PATCH").h(headers).b(body);
|
|
120
|
-
return b.build();
|
|
121
|
-
};
|
|
122
|
-
export const de_CreateLifecyclePolicyCommand = async (output, context) => {
|
|
123
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
124
|
-
return de_CommandError(output, context);
|
|
125
|
-
}
|
|
126
|
-
const contents = map({
|
|
127
|
-
$metadata: deserializeMetadata(output),
|
|
128
|
-
});
|
|
129
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
130
|
-
const doc = take(data, {
|
|
131
|
-
PolicyId: __expectString,
|
|
132
|
-
});
|
|
133
|
-
Object.assign(contents, doc);
|
|
134
|
-
return contents;
|
|
135
|
-
};
|
|
136
|
-
export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
137
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
138
|
-
return de_CommandError(output, context);
|
|
139
|
-
}
|
|
140
|
-
const contents = map({
|
|
141
|
-
$metadata: deserializeMetadata(output),
|
|
142
|
-
});
|
|
143
|
-
await collectBody(output.body, context);
|
|
144
|
-
return contents;
|
|
145
|
-
};
|
|
146
|
-
export const de_GetLifecyclePoliciesCommand = async (output, context) => {
|
|
147
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
148
|
-
return de_CommandError(output, context);
|
|
149
|
-
}
|
|
150
|
-
const contents = map({
|
|
151
|
-
$metadata: deserializeMetadata(output),
|
|
152
|
-
});
|
|
153
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
154
|
-
const doc = take(data, {
|
|
155
|
-
Policies: _json,
|
|
156
|
-
});
|
|
157
|
-
Object.assign(contents, doc);
|
|
158
|
-
return contents;
|
|
159
|
-
};
|
|
160
|
-
export const de_GetLifecyclePolicyCommand = async (output, context) => {
|
|
161
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
162
|
-
return de_CommandError(output, context);
|
|
163
|
-
}
|
|
164
|
-
const contents = map({
|
|
165
|
-
$metadata: deserializeMetadata(output),
|
|
166
|
-
});
|
|
167
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
168
|
-
const doc = take(data, {
|
|
169
|
-
Policy: (_) => de_LifecyclePolicy(_, context),
|
|
170
|
-
});
|
|
171
|
-
Object.assign(contents, doc);
|
|
172
|
-
return contents;
|
|
173
|
-
};
|
|
174
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
175
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
176
|
-
return de_CommandError(output, context);
|
|
177
|
-
}
|
|
178
|
-
const contents = map({
|
|
179
|
-
$metadata: deserializeMetadata(output),
|
|
180
|
-
});
|
|
181
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
182
|
-
const doc = take(data, {
|
|
183
|
-
Tags: _json,
|
|
184
|
-
});
|
|
185
|
-
Object.assign(contents, doc);
|
|
186
|
-
return contents;
|
|
187
|
-
};
|
|
188
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
189
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
190
|
-
return de_CommandError(output, context);
|
|
191
|
-
}
|
|
192
|
-
const contents = map({
|
|
193
|
-
$metadata: deserializeMetadata(output),
|
|
194
|
-
});
|
|
195
|
-
await collectBody(output.body, context);
|
|
196
|
-
return contents;
|
|
197
|
-
};
|
|
198
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
199
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
200
|
-
return de_CommandError(output, context);
|
|
201
|
-
}
|
|
202
|
-
const contents = map({
|
|
203
|
-
$metadata: deserializeMetadata(output),
|
|
204
|
-
});
|
|
205
|
-
await collectBody(output.body, context);
|
|
206
|
-
return contents;
|
|
207
|
-
};
|
|
208
|
-
export const de_UpdateLifecyclePolicyCommand = async (output, context) => {
|
|
209
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
210
|
-
return de_CommandError(output, context);
|
|
211
|
-
}
|
|
212
|
-
const contents = map({
|
|
213
|
-
$metadata: deserializeMetadata(output),
|
|
214
|
-
});
|
|
215
|
-
await collectBody(output.body, context);
|
|
216
|
-
return contents;
|
|
217
|
-
};
|
|
218
|
-
const de_CommandError = async (output, context) => {
|
|
219
|
-
const parsedOutput = {
|
|
220
|
-
...output,
|
|
221
|
-
body: await parseErrorBody(output.body, context),
|
|
222
|
-
};
|
|
223
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
224
|
-
switch (errorCode) {
|
|
225
|
-
case "InternalServerException":
|
|
226
|
-
case "com.amazonaws.dlm#InternalServerException":
|
|
227
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
228
|
-
case "InvalidRequestException":
|
|
229
|
-
case "com.amazonaws.dlm#InvalidRequestException":
|
|
230
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
231
|
-
case "LimitExceededException":
|
|
232
|
-
case "com.amazonaws.dlm#LimitExceededException":
|
|
233
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
234
|
-
case "ResourceNotFoundException":
|
|
235
|
-
case "com.amazonaws.dlm#ResourceNotFoundException":
|
|
236
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
237
|
-
default:
|
|
238
|
-
const parsedBody = parsedOutput.body;
|
|
239
|
-
return throwDefaultError({
|
|
240
|
-
output,
|
|
241
|
-
parsedBody,
|
|
242
|
-
errorCode,
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
247
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
248
|
-
const contents = map({});
|
|
249
|
-
const data = parsedOutput.body;
|
|
250
|
-
const doc = take(data, {
|
|
251
|
-
Code: __expectString,
|
|
252
|
-
Message: __expectString,
|
|
253
|
-
});
|
|
254
|
-
Object.assign(contents, doc);
|
|
255
|
-
const exception = new InternalServerException({
|
|
256
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
257
|
-
...contents,
|
|
258
|
-
});
|
|
259
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
260
|
-
};
|
|
261
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
262
|
-
const contents = map({});
|
|
263
|
-
const data = parsedOutput.body;
|
|
264
|
-
const doc = take(data, {
|
|
265
|
-
Code: __expectString,
|
|
266
|
-
Message: __expectString,
|
|
267
|
-
MutuallyExclusiveParameters: _json,
|
|
268
|
-
RequiredParameters: _json,
|
|
269
|
-
});
|
|
270
|
-
Object.assign(contents, doc);
|
|
271
|
-
const exception = new InvalidRequestException({
|
|
272
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
273
|
-
...contents,
|
|
274
|
-
});
|
|
275
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
276
|
-
};
|
|
277
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
278
|
-
const contents = map({});
|
|
279
|
-
const data = parsedOutput.body;
|
|
280
|
-
const doc = take(data, {
|
|
281
|
-
Code: __expectString,
|
|
282
|
-
Message: __expectString,
|
|
283
|
-
ResourceType: __expectString,
|
|
284
|
-
});
|
|
285
|
-
Object.assign(contents, doc);
|
|
286
|
-
const exception = new LimitExceededException({
|
|
287
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
288
|
-
...contents,
|
|
289
|
-
});
|
|
290
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
291
|
-
};
|
|
292
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
293
|
-
const contents = map({});
|
|
294
|
-
const data = parsedOutput.body;
|
|
295
|
-
const doc = take(data, {
|
|
296
|
-
Code: __expectString,
|
|
297
|
-
Message: __expectString,
|
|
298
|
-
ResourceIds: _json,
|
|
299
|
-
ResourceType: __expectString,
|
|
300
|
-
});
|
|
301
|
-
Object.assign(contents, doc);
|
|
302
|
-
const exception = new ResourceNotFoundException({
|
|
303
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
304
|
-
...contents,
|
|
305
|
-
});
|
|
306
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
307
|
-
};
|
|
308
|
-
const de_LifecyclePolicy = (output, context) => {
|
|
309
|
-
return take(output, {
|
|
310
|
-
DateCreated: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
311
|
-
DateModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
312
|
-
DefaultPolicy: __expectBoolean,
|
|
313
|
-
Description: __expectString,
|
|
314
|
-
ExecutionRoleArn: __expectString,
|
|
315
|
-
PolicyArn: __expectString,
|
|
316
|
-
PolicyDetails: _json,
|
|
317
|
-
PolicyId: __expectString,
|
|
318
|
-
State: __expectString,
|
|
319
|
-
StatusMessage: __expectString,
|
|
320
|
-
Tags: _json,
|
|
321
|
-
});
|
|
322
|
-
};
|
|
323
|
-
const deserializeMetadata = (output) => ({
|
|
324
|
-
httpStatusCode: output.statusCode,
|
|
325
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
326
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
327
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
328
|
-
});
|
|
329
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
330
|
-
const _DPT = "DefaultPolicyType";
|
|
331
|
-
const _PI = "PolicyIds";
|
|
332
|
-
const _RT = "ResourceTypes";
|
|
333
|
-
const _S = "State";
|
|
334
|
-
const _TK = "TagKeys";
|
|
335
|
-
const _TT = "TargetTags";
|
|
336
|
-
const _TTA = "TagsToAdd";
|
|
337
|
-
const _dPT = "defaultPolicyType";
|
|
338
|
-
const _pI = "policyIds";
|
|
339
|
-
const _rT = "resourceTypes";
|
|
340
|
-
const _s = "state";
|
|
341
|
-
const _tK = "tagKeys";
|
|
342
|
-
const _tT = "targetTags";
|
|
343
|
-
const _tTA = "tagsToAdd";
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { CreateLifecyclePolicyCommandInput, CreateLifecyclePolicyCommandOutput } from "../commands/CreateLifecyclePolicyCommand";
|
|
4
|
-
import { DeleteLifecyclePolicyCommandInput, DeleteLifecyclePolicyCommandOutput } from "../commands/DeleteLifecyclePolicyCommand";
|
|
5
|
-
import { GetLifecyclePoliciesCommandInput, GetLifecyclePoliciesCommandOutput } from "../commands/GetLifecyclePoliciesCommand";
|
|
6
|
-
import { GetLifecyclePolicyCommandInput, GetLifecyclePolicyCommandOutput } from "../commands/GetLifecyclePolicyCommand";
|
|
7
|
-
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
8
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
9
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
10
|
-
import { UpdateLifecyclePolicyCommandInput, UpdateLifecyclePolicyCommandOutput } from "../commands/UpdateLifecyclePolicyCommand";
|
|
11
|
-
/**
|
|
12
|
-
* serializeAws_restJson1CreateLifecyclePolicyCommand
|
|
13
|
-
*/
|
|
14
|
-
export declare const se_CreateLifecyclePolicyCommand: (input: CreateLifecyclePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
|
-
/**
|
|
16
|
-
* serializeAws_restJson1DeleteLifecyclePolicyCommand
|
|
17
|
-
*/
|
|
18
|
-
export declare const se_DeleteLifecyclePolicyCommand: (input: DeleteLifecyclePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
19
|
-
/**
|
|
20
|
-
* serializeAws_restJson1GetLifecyclePoliciesCommand
|
|
21
|
-
*/
|
|
22
|
-
export declare const se_GetLifecyclePoliciesCommand: (input: GetLifecyclePoliciesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
23
|
-
/**
|
|
24
|
-
* serializeAws_restJson1GetLifecyclePolicyCommand
|
|
25
|
-
*/
|
|
26
|
-
export declare const se_GetLifecyclePolicyCommand: (input: GetLifecyclePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
27
|
-
/**
|
|
28
|
-
* serializeAws_restJson1ListTagsForResourceCommand
|
|
29
|
-
*/
|
|
30
|
-
export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
31
|
-
/**
|
|
32
|
-
* serializeAws_restJson1TagResourceCommand
|
|
33
|
-
*/
|
|
34
|
-
export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
35
|
-
/**
|
|
36
|
-
* serializeAws_restJson1UntagResourceCommand
|
|
37
|
-
*/
|
|
38
|
-
export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
39
|
-
/**
|
|
40
|
-
* serializeAws_restJson1UpdateLifecyclePolicyCommand
|
|
41
|
-
*/
|
|
42
|
-
export declare const se_UpdateLifecyclePolicyCommand: (input: UpdateLifecyclePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
43
|
-
/**
|
|
44
|
-
* deserializeAws_restJson1CreateLifecyclePolicyCommand
|
|
45
|
-
*/
|
|
46
|
-
export declare const de_CreateLifecyclePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateLifecyclePolicyCommandOutput>;
|
|
47
|
-
/**
|
|
48
|
-
* deserializeAws_restJson1DeleteLifecyclePolicyCommand
|
|
49
|
-
*/
|
|
50
|
-
export declare const de_DeleteLifecyclePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteLifecyclePolicyCommandOutput>;
|
|
51
|
-
/**
|
|
52
|
-
* deserializeAws_restJson1GetLifecyclePoliciesCommand
|
|
53
|
-
*/
|
|
54
|
-
export declare const de_GetLifecyclePoliciesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLifecyclePoliciesCommandOutput>;
|
|
55
|
-
/**
|
|
56
|
-
* deserializeAws_restJson1GetLifecyclePolicyCommand
|
|
57
|
-
*/
|
|
58
|
-
export declare const de_GetLifecyclePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLifecyclePolicyCommandOutput>;
|
|
59
|
-
/**
|
|
60
|
-
* deserializeAws_restJson1ListTagsForResourceCommand
|
|
61
|
-
*/
|
|
62
|
-
export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
63
|
-
/**
|
|
64
|
-
* deserializeAws_restJson1TagResourceCommand
|
|
65
|
-
*/
|
|
66
|
-
export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
67
|
-
/**
|
|
68
|
-
* deserializeAws_restJson1UntagResourceCommand
|
|
69
|
-
*/
|
|
70
|
-
export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
71
|
-
/**
|
|
72
|
-
* deserializeAws_restJson1UpdateLifecyclePolicyCommand
|
|
73
|
-
*/
|
|
74
|
-
export declare const de_UpdateLifecyclePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateLifecyclePolicyCommandOutput>;
|