@aws-sdk/client-dlm 3.476.0 → 3.478.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,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UpdateLifecyclePolicyCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_GetLifecyclePolicyCommand = exports.de_GetLifecyclePoliciesCommand = exports.de_DeleteLifecyclePolicyCommand = exports.de_CreateLifecyclePolicyCommand = exports.se_UpdateLifecyclePolicyCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_GetLifecyclePolicyCommand = exports.se_GetLifecyclePoliciesCommand = exports.se_DeleteLifecyclePolicyCommand = exports.se_CreateLifecyclePolicyCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
4
+ const core_1 = require("@smithy/core");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const DLMServiceException_1 = require("../models/DLMServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const se_CreateLifecyclePolicyCommand = async (input, context) => {
9
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9
+ const b = (0, core_1.requestBuilder)(input, context);
10
10
  const headers = {
11
11
  "content-type": "application/json",
12
12
  };
13
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies";
13
+ b.bp("/policies");
14
14
  let body;
15
15
  body = JSON.stringify((0, smithy_client_1.take)(input, {
16
16
  CopyTags: [],
@@ -26,149 +26,95 @@ const se_CreateLifecyclePolicyCommand = async (input, context) => {
26
26
  State: [],
27
27
  Tags: (_) => (0, smithy_client_1._json)(_),
28
28
  }));
29
- return new protocol_http_1.HttpRequest({
30
- protocol,
31
- hostname,
32
- port,
33
- method: "POST",
34
- headers,
35
- path: resolvedPath,
36
- body,
37
- });
29
+ b.m("POST").h(headers).b(body);
30
+ return b.build();
38
31
  };
39
32
  exports.se_CreateLifecyclePolicyCommand = se_CreateLifecyclePolicyCommand;
40
33
  const se_DeleteLifecyclePolicyCommand = async (input, context) => {
41
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
34
+ const b = (0, core_1.requestBuilder)(input, context);
42
35
  const headers = {};
43
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{PolicyId}";
44
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyId", () => input.PolicyId, "{PolicyId}", false);
36
+ b.bp("/policies/{PolicyId}");
37
+ b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
45
38
  let body;
46
- return new protocol_http_1.HttpRequest({
47
- protocol,
48
- hostname,
49
- port,
50
- method: "DELETE",
51
- headers,
52
- path: resolvedPath,
53
- body,
54
- });
39
+ b.m("DELETE").h(headers).b(body);
40
+ return b.build();
55
41
  };
56
42
  exports.se_DeleteLifecyclePolicyCommand = se_DeleteLifecyclePolicyCommand;
57
43
  const se_GetLifecyclePoliciesCommand = async (input, context) => {
58
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
44
+ const b = (0, core_1.requestBuilder)(input, context);
59
45
  const headers = {};
60
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies";
46
+ b.bp("/policies");
61
47
  const query = (0, smithy_client_1.map)({
62
- policyIds: [() => input.PolicyIds !== void 0, () => (input.PolicyIds || []).map((_entry) => _entry)],
63
- state: [, input.State],
64
- resourceTypes: [
65
- () => input.ResourceTypes !== void 0,
66
- () => (input.ResourceTypes || []).map((_entry) => _entry),
67
- ],
68
- targetTags: [() => input.TargetTags !== void 0, () => (input.TargetTags || []).map((_entry) => _entry)],
69
- tagsToAdd: [() => input.TagsToAdd !== void 0, () => (input.TagsToAdd || []).map((_entry) => _entry)],
70
- defaultPolicyType: [, input.DefaultPolicyType],
48
+ [_pI]: [() => input.PolicyIds !== void 0, () => (input[_PI] || []).map((_entry) => _entry)],
49
+ [_s]: [, input[_S]],
50
+ [_rT]: [() => input.ResourceTypes !== void 0, () => (input[_RT] || []).map((_entry) => _entry)],
51
+ [_tT]: [() => input.TargetTags !== void 0, () => (input[_TT] || []).map((_entry) => _entry)],
52
+ [_tTA]: [() => input.TagsToAdd !== void 0, () => (input[_TTA] || []).map((_entry) => _entry)],
53
+ [_dPT]: [, input[_DPT]],
71
54
  });
72
55
  let body;
73
- return new protocol_http_1.HttpRequest({
74
- protocol,
75
- hostname,
76
- port,
77
- method: "GET",
78
- headers,
79
- path: resolvedPath,
80
- query,
81
- body,
82
- });
56
+ b.m("GET").h(headers).q(query).b(body);
57
+ return b.build();
83
58
  };
84
59
  exports.se_GetLifecyclePoliciesCommand = se_GetLifecyclePoliciesCommand;
85
60
  const se_GetLifecyclePolicyCommand = async (input, context) => {
86
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
61
+ const b = (0, core_1.requestBuilder)(input, context);
87
62
  const headers = {};
88
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{PolicyId}";
89
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyId", () => input.PolicyId, "{PolicyId}", false);
63
+ b.bp("/policies/{PolicyId}");
64
+ b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
90
65
  let body;
91
- return new protocol_http_1.HttpRequest({
92
- protocol,
93
- hostname,
94
- port,
95
- method: "GET",
96
- headers,
97
- path: resolvedPath,
98
- body,
99
- });
66
+ b.m("GET").h(headers).b(body);
67
+ return b.build();
100
68
  };
101
69
  exports.se_GetLifecyclePolicyCommand = se_GetLifecyclePolicyCommand;
102
70
  const se_ListTagsForResourceCommand = async (input, context) => {
103
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
71
+ const b = (0, core_1.requestBuilder)(input, context);
104
72
  const headers = {};
105
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
106
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
73
+ b.bp("/tags/{ResourceArn}");
74
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
107
75
  let body;
108
- return new protocol_http_1.HttpRequest({
109
- protocol,
110
- hostname,
111
- port,
112
- method: "GET",
113
- headers,
114
- path: resolvedPath,
115
- body,
116
- });
76
+ b.m("GET").h(headers).b(body);
77
+ return b.build();
117
78
  };
118
79
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
119
80
  const se_TagResourceCommand = async (input, context) => {
120
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
81
+ const b = (0, core_1.requestBuilder)(input, context);
121
82
  const headers = {
122
83
  "content-type": "application/json",
123
84
  };
124
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
125
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
85
+ b.bp("/tags/{ResourceArn}");
86
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
126
87
  let body;
127
88
  body = JSON.stringify((0, smithy_client_1.take)(input, {
128
89
  Tags: (_) => (0, smithy_client_1._json)(_),
129
90
  }));
130
- return new protocol_http_1.HttpRequest({
131
- protocol,
132
- hostname,
133
- port,
134
- method: "POST",
135
- headers,
136
- path: resolvedPath,
137
- body,
138
- });
91
+ b.m("POST").h(headers).b(body);
92
+ return b.build();
139
93
  };
140
94
  exports.se_TagResourceCommand = se_TagResourceCommand;
141
95
  const se_UntagResourceCommand = async (input, context) => {
142
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
96
+ const b = (0, core_1.requestBuilder)(input, context);
143
97
  const headers = {};
144
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
145
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
98
+ b.bp("/tags/{ResourceArn}");
99
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
146
100
  const query = (0, smithy_client_1.map)({
147
- tagKeys: [
101
+ [_tK]: [
148
102
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
149
- () => (input.TagKeys || []).map((_entry) => _entry),
103
+ () => (input[_TK] || []).map((_entry) => _entry),
150
104
  ],
151
105
  });
152
106
  let body;
153
- return new protocol_http_1.HttpRequest({
154
- protocol,
155
- hostname,
156
- port,
157
- method: "DELETE",
158
- headers,
159
- path: resolvedPath,
160
- query,
161
- body,
162
- });
107
+ b.m("DELETE").h(headers).q(query).b(body);
108
+ return b.build();
163
109
  };
164
110
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
165
111
  const se_UpdateLifecyclePolicyCommand = async (input, context) => {
166
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
112
+ const b = (0, core_1.requestBuilder)(input, context);
167
113
  const headers = {
168
114
  "content-type": "application/json",
169
115
  };
170
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{PolicyId}";
171
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyId", () => input.PolicyId, "{PolicyId}", false);
116
+ b.bp("/policies/{PolicyId}");
117
+ b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
172
118
  let body;
173
119
  body = JSON.stringify((0, smithy_client_1.take)(input, {
174
120
  CopyTags: [],
@@ -182,15 +128,8 @@ const se_UpdateLifecyclePolicyCommand = async (input, context) => {
182
128
  RetainInterval: [],
183
129
  State: [],
184
130
  }));
185
- return new protocol_http_1.HttpRequest({
186
- protocol,
187
- hostname,
188
- port,
189
- method: "PATCH",
190
- headers,
191
- path: resolvedPath,
192
- body,
193
- });
131
+ b.m("PATCH").h(headers).b(body);
132
+ return b.build();
194
133
  };
195
134
  exports.se_UpdateLifecyclePolicyCommand = se_UpdateLifecyclePolicyCommand;
196
135
  const de_CreateLifecyclePolicyCommand = async (output, context) => {
@@ -592,6 +531,20 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
592
531
  value !== "" &&
593
532
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
594
533
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
534
+ const _DPT = "DefaultPolicyType";
535
+ const _PI = "PolicyIds";
536
+ const _RT = "ResourceTypes";
537
+ const _S = "State";
538
+ const _TK = "TagKeys";
539
+ const _TT = "TargetTags";
540
+ const _TTA = "TagsToAdd";
541
+ const _dPT = "defaultPolicyType";
542
+ const _pI = "policyIds";
543
+ const _rT = "resourceTypes";
544
+ const _s = "state";
545
+ const _tK = "tagKeys";
546
+ const _tT = "targetTags";
547
+ const _tTA = "tagsToAdd";
595
548
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
596
549
  if (encoded.length) {
597
550
  return JSON.parse(encoded);
@@ -1,13 +1,13 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ 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";
3
3
  import { DLMServiceException as __BaseException } from "../models/DLMServiceException";
4
4
  import { InternalServerException, InvalidRequestException, LimitExceededException, ResourceNotFoundException, } from "../models/models_0";
5
5
  export const se_CreateLifecyclePolicyCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = {
8
8
  "content-type": "application/json",
9
9
  };
10
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies";
10
+ b.bp("/policies");
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
13
  CopyTags: [],
@@ -23,142 +23,88 @@ export const se_CreateLifecyclePolicyCommand = async (input, context) => {
23
23
  State: [],
24
24
  Tags: (_) => _json(_),
25
25
  }));
26
- return new __HttpRequest({
27
- protocol,
28
- hostname,
29
- port,
30
- method: "POST",
31
- headers,
32
- path: resolvedPath,
33
- body,
34
- });
26
+ b.m("POST").h(headers).b(body);
27
+ return b.build();
35
28
  };
36
29
  export const se_DeleteLifecyclePolicyCommand = async (input, context) => {
37
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
30
+ const b = rb(input, context);
38
31
  const headers = {};
39
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{PolicyId}";
40
- resolvedPath = __resolvedPath(resolvedPath, input, "PolicyId", () => input.PolicyId, "{PolicyId}", false);
32
+ b.bp("/policies/{PolicyId}");
33
+ b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
41
34
  let body;
42
- return new __HttpRequest({
43
- protocol,
44
- hostname,
45
- port,
46
- method: "DELETE",
47
- headers,
48
- path: resolvedPath,
49
- body,
50
- });
35
+ b.m("DELETE").h(headers).b(body);
36
+ return b.build();
51
37
  };
52
38
  export const se_GetLifecyclePoliciesCommand = async (input, context) => {
53
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
39
+ const b = rb(input, context);
54
40
  const headers = {};
55
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies";
41
+ b.bp("/policies");
56
42
  const query = map({
57
- policyIds: [() => input.PolicyIds !== void 0, () => (input.PolicyIds || []).map((_entry) => _entry)],
58
- state: [, input.State],
59
- resourceTypes: [
60
- () => input.ResourceTypes !== void 0,
61
- () => (input.ResourceTypes || []).map((_entry) => _entry),
62
- ],
63
- targetTags: [() => input.TargetTags !== void 0, () => (input.TargetTags || []).map((_entry) => _entry)],
64
- tagsToAdd: [() => input.TagsToAdd !== void 0, () => (input.TagsToAdd || []).map((_entry) => _entry)],
65
- defaultPolicyType: [, input.DefaultPolicyType],
43
+ [_pI]: [() => input.PolicyIds !== void 0, () => (input[_PI] || []).map((_entry) => _entry)],
44
+ [_s]: [, input[_S]],
45
+ [_rT]: [() => input.ResourceTypes !== void 0, () => (input[_RT] || []).map((_entry) => _entry)],
46
+ [_tT]: [() => input.TargetTags !== void 0, () => (input[_TT] || []).map((_entry) => _entry)],
47
+ [_tTA]: [() => input.TagsToAdd !== void 0, () => (input[_TTA] || []).map((_entry) => _entry)],
48
+ [_dPT]: [, input[_DPT]],
66
49
  });
67
50
  let body;
68
- return new __HttpRequest({
69
- protocol,
70
- hostname,
71
- port,
72
- method: "GET",
73
- headers,
74
- path: resolvedPath,
75
- query,
76
- body,
77
- });
51
+ b.m("GET").h(headers).q(query).b(body);
52
+ return b.build();
78
53
  };
79
54
  export const se_GetLifecyclePolicyCommand = async (input, context) => {
80
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
55
+ const b = rb(input, context);
81
56
  const headers = {};
82
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{PolicyId}";
83
- resolvedPath = __resolvedPath(resolvedPath, input, "PolicyId", () => input.PolicyId, "{PolicyId}", false);
57
+ b.bp("/policies/{PolicyId}");
58
+ b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
84
59
  let body;
85
- return new __HttpRequest({
86
- protocol,
87
- hostname,
88
- port,
89
- method: "GET",
90
- headers,
91
- path: resolvedPath,
92
- body,
93
- });
60
+ b.m("GET").h(headers).b(body);
61
+ return b.build();
94
62
  };
95
63
  export const se_ListTagsForResourceCommand = async (input, context) => {
96
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
64
+ const b = rb(input, context);
97
65
  const headers = {};
98
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
99
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
66
+ b.bp("/tags/{ResourceArn}");
67
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
100
68
  let body;
101
- return new __HttpRequest({
102
- protocol,
103
- hostname,
104
- port,
105
- method: "GET",
106
- headers,
107
- path: resolvedPath,
108
- body,
109
- });
69
+ b.m("GET").h(headers).b(body);
70
+ return b.build();
110
71
  };
111
72
  export const se_TagResourceCommand = async (input, context) => {
112
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const b = rb(input, context);
113
74
  const headers = {
114
75
  "content-type": "application/json",
115
76
  };
116
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
117
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
77
+ b.bp("/tags/{ResourceArn}");
78
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
118
79
  let body;
119
80
  body = JSON.stringify(take(input, {
120
81
  Tags: (_) => _json(_),
121
82
  }));
122
- return new __HttpRequest({
123
- protocol,
124
- hostname,
125
- port,
126
- method: "POST",
127
- headers,
128
- path: resolvedPath,
129
- body,
130
- });
83
+ b.m("POST").h(headers).b(body);
84
+ return b.build();
131
85
  };
132
86
  export const se_UntagResourceCommand = async (input, context) => {
133
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
+ const b = rb(input, context);
134
88
  const headers = {};
135
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
136
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
89
+ b.bp("/tags/{ResourceArn}");
90
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
137
91
  const query = map({
138
- tagKeys: [
92
+ [_tK]: [
139
93
  __expectNonNull(input.TagKeys, `TagKeys`) != null,
140
- () => (input.TagKeys || []).map((_entry) => _entry),
94
+ () => (input[_TK] || []).map((_entry) => _entry),
141
95
  ],
142
96
  });
143
97
  let body;
144
- return new __HttpRequest({
145
- protocol,
146
- hostname,
147
- port,
148
- method: "DELETE",
149
- headers,
150
- path: resolvedPath,
151
- query,
152
- body,
153
- });
98
+ b.m("DELETE").h(headers).q(query).b(body);
99
+ return b.build();
154
100
  };
155
101
  export const se_UpdateLifecyclePolicyCommand = async (input, context) => {
156
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
102
+ const b = rb(input, context);
157
103
  const headers = {
158
104
  "content-type": "application/json",
159
105
  };
160
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{PolicyId}";
161
- resolvedPath = __resolvedPath(resolvedPath, input, "PolicyId", () => input.PolicyId, "{PolicyId}", false);
106
+ b.bp("/policies/{PolicyId}");
107
+ b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false);
162
108
  let body;
163
109
  body = JSON.stringify(take(input, {
164
110
  CopyTags: [],
@@ -172,15 +118,8 @@ export const se_UpdateLifecyclePolicyCommand = async (input, context) => {
172
118
  RetainInterval: [],
173
119
  State: [],
174
120
  }));
175
- return new __HttpRequest({
176
- protocol,
177
- hostname,
178
- port,
179
- method: "PATCH",
180
- headers,
181
- path: resolvedPath,
182
- body,
183
- });
121
+ b.m("PATCH").h(headers).b(body);
122
+ return b.build();
184
123
  };
185
124
  export const de_CreateLifecyclePolicyCommand = async (output, context) => {
186
125
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -573,6 +512,20 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
573
512
  value !== "" &&
574
513
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
575
514
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
515
+ const _DPT = "DefaultPolicyType";
516
+ const _PI = "PolicyIds";
517
+ const _RT = "ResourceTypes";
518
+ const _S = "State";
519
+ const _TK = "TagKeys";
520
+ const _TT = "TargetTags";
521
+ const _TTA = "TagsToAdd";
522
+ const _dPT = "defaultPolicyType";
523
+ const _pI = "policyIds";
524
+ const _rT = "resourceTypes";
525
+ const _s = "state";
526
+ const _tK = "tagKeys";
527
+ const _tT = "targetTags";
528
+ const _tTA = "tagsToAdd";
576
529
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
577
530
  if (encoded.length) {
578
531
  return JSON.parse(encoded);
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.476.0",
4
+ "version": "3.478.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,20 +20,21 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.476.0",
24
- "@aws-sdk/core": "3.476.0",
25
- "@aws-sdk/credential-provider-node": "3.476.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
+ "@aws-sdk/core": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.478.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
29
29
  "@aws-sdk/middleware-signing": "3.468.0",
30
- "@aws-sdk/middleware-user-agent": "3.470.0",
30
+ "@aws-sdk/middleware-user-agent": "3.478.0",
31
31
  "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.470.0",
33
+ "@aws-sdk/util-endpoints": "3.478.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
37
+ "@smithy/core": "^1.2.0",
37
38
  "@smithy/fetch-http-handler": "^2.3.1",
38
39
  "@smithy/hash-node": "^2.0.17",
39
40
  "@smithy/invalid-dependency": "^2.0.15",