@aws-sdk/client-rbin 3.476.0 → 3.477.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_UpdateRuleCommand = exports.de_UntagResourceCommand = exports.de_UnlockRuleCommand = exports.de_TagResourceCommand = exports.de_LockRuleCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRulesCommand = exports.de_GetRuleCommand = exports.de_DeleteRuleCommand = exports.de_CreateRuleCommand = exports.se_UpdateRuleCommand = exports.se_UntagResourceCommand = exports.se_UnlockRuleCommand = exports.se_TagResourceCommand = exports.se_LockRuleCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRulesCommand = exports.se_GetRuleCommand = exports.se_DeleteRuleCommand = exports.se_CreateRuleCommand = 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 models_0_1 = require("../models/models_0");
7
7
  const RbinServiceException_1 = require("../models/RbinServiceException");
8
8
  const se_CreateRuleCommand = 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 || ""}` + "/rules";
13
+ b.bp("/rules");
14
14
  let body;
15
15
  body = JSON.stringify((0, smithy_client_1.take)(input, {
16
16
  Description: [],
@@ -20,57 +20,36 @@ const se_CreateRuleCommand = async (input, context) => {
20
20
  RetentionPeriod: (_) => (0, smithy_client_1._json)(_),
21
21
  Tags: (_) => (0, smithy_client_1._json)(_),
22
22
  }));
23
- return new protocol_http_1.HttpRequest({
24
- protocol,
25
- hostname,
26
- port,
27
- method: "POST",
28
- headers,
29
- path: resolvedPath,
30
- body,
31
- });
23
+ b.m("POST").h(headers).b(body);
24
+ return b.build();
32
25
  };
33
26
  exports.se_CreateRuleCommand = se_CreateRuleCommand;
34
27
  const se_DeleteRuleCommand = async (input, context) => {
35
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
28
+ const b = (0, core_1.requestBuilder)(input, context);
36
29
  const headers = {};
37
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
38
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
30
+ b.bp("/rules/{Identifier}");
31
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
39
32
  let body;
40
- return new protocol_http_1.HttpRequest({
41
- protocol,
42
- hostname,
43
- port,
44
- method: "DELETE",
45
- headers,
46
- path: resolvedPath,
47
- body,
48
- });
33
+ b.m("DELETE").h(headers).b(body);
34
+ return b.build();
49
35
  };
50
36
  exports.se_DeleteRuleCommand = se_DeleteRuleCommand;
51
37
  const se_GetRuleCommand = async (input, context) => {
52
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
38
+ const b = (0, core_1.requestBuilder)(input, context);
53
39
  const headers = {};
54
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
55
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
40
+ b.bp("/rules/{Identifier}");
41
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
56
42
  let body;
57
- return new protocol_http_1.HttpRequest({
58
- protocol,
59
- hostname,
60
- port,
61
- method: "GET",
62
- headers,
63
- path: resolvedPath,
64
- body,
65
- });
43
+ b.m("GET").h(headers).b(body);
44
+ return b.build();
66
45
  };
67
46
  exports.se_GetRuleCommand = se_GetRuleCommand;
68
47
  const se_ListRulesCommand = async (input, context) => {
69
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
48
+ const b = (0, core_1.requestBuilder)(input, context);
70
49
  const headers = {
71
50
  "content-type": "application/json",
72
51
  };
73
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-rules";
52
+ b.bp("/list-rules");
74
53
  let body;
75
54
  body = JSON.stringify((0, smithy_client_1.take)(input, {
76
55
  LockState: [],
@@ -79,126 +58,83 @@ const se_ListRulesCommand = async (input, context) => {
79
58
  ResourceTags: (_) => (0, smithy_client_1._json)(_),
80
59
  ResourceType: [],
81
60
  }));
82
- return new protocol_http_1.HttpRequest({
83
- protocol,
84
- hostname,
85
- port,
86
- method: "POST",
87
- headers,
88
- path: resolvedPath,
89
- body,
90
- });
61
+ b.m("POST").h(headers).b(body);
62
+ return b.build();
91
63
  };
92
64
  exports.se_ListRulesCommand = se_ListRulesCommand;
93
65
  const se_ListTagsForResourceCommand = async (input, context) => {
94
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
66
+ const b = (0, core_1.requestBuilder)(input, context);
95
67
  const headers = {};
96
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
97
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
68
+ b.bp("/tags/{ResourceArn}");
69
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
98
70
  let body;
99
- return new protocol_http_1.HttpRequest({
100
- protocol,
101
- hostname,
102
- port,
103
- method: "GET",
104
- headers,
105
- path: resolvedPath,
106
- body,
107
- });
71
+ b.m("GET").h(headers).b(body);
72
+ return b.build();
108
73
  };
109
74
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
110
75
  const se_LockRuleCommand = async (input, context) => {
111
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
76
+ const b = (0, core_1.requestBuilder)(input, context);
112
77
  const headers = {
113
78
  "content-type": "application/json",
114
79
  };
115
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}/lock";
116
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
80
+ b.bp("/rules/{Identifier}/lock");
81
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
117
82
  let body;
118
83
  body = JSON.stringify((0, smithy_client_1.take)(input, {
119
84
  LockConfiguration: (_) => (0, smithy_client_1._json)(_),
120
85
  }));
121
- return new protocol_http_1.HttpRequest({
122
- protocol,
123
- hostname,
124
- port,
125
- method: "PATCH",
126
- headers,
127
- path: resolvedPath,
128
- body,
129
- });
86
+ b.m("PATCH").h(headers).b(body);
87
+ return b.build();
130
88
  };
131
89
  exports.se_LockRuleCommand = se_LockRuleCommand;
132
90
  const se_TagResourceCommand = async (input, context) => {
133
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
91
+ const b = (0, core_1.requestBuilder)(input, context);
134
92
  const headers = {
135
93
  "content-type": "application/json",
136
94
  };
137
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
138
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
95
+ b.bp("/tags/{ResourceArn}");
96
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
139
97
  let body;
140
98
  body = JSON.stringify((0, smithy_client_1.take)(input, {
141
99
  Tags: (_) => (0, smithy_client_1._json)(_),
142
100
  }));
143
- return new protocol_http_1.HttpRequest({
144
- protocol,
145
- hostname,
146
- port,
147
- method: "POST",
148
- headers,
149
- path: resolvedPath,
150
- body,
151
- });
101
+ b.m("POST").h(headers).b(body);
102
+ return b.build();
152
103
  };
153
104
  exports.se_TagResourceCommand = se_TagResourceCommand;
154
105
  const se_UnlockRuleCommand = async (input, context) => {
155
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
+ const b = (0, core_1.requestBuilder)(input, context);
156
107
  const headers = {};
157
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}/unlock";
158
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
108
+ b.bp("/rules/{Identifier}/unlock");
109
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
159
110
  let body;
160
- return new protocol_http_1.HttpRequest({
161
- protocol,
162
- hostname,
163
- port,
164
- method: "PATCH",
165
- headers,
166
- path: resolvedPath,
167
- body,
168
- });
111
+ b.m("PATCH").h(headers).b(body);
112
+ return b.build();
169
113
  };
170
114
  exports.se_UnlockRuleCommand = se_UnlockRuleCommand;
171
115
  const se_UntagResourceCommand = async (input, context) => {
172
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
116
+ const b = (0, core_1.requestBuilder)(input, context);
173
117
  const headers = {};
174
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
175
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
118
+ b.bp("/tags/{ResourceArn}");
119
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
176
120
  const query = (0, smithy_client_1.map)({
177
- tagKeys: [
121
+ [_tK]: [
178
122
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
179
- () => (input.TagKeys || []).map((_entry) => _entry),
123
+ () => (input[_TK] || []).map((_entry) => _entry),
180
124
  ],
181
125
  });
182
126
  let body;
183
- return new protocol_http_1.HttpRequest({
184
- protocol,
185
- hostname,
186
- port,
187
- method: "DELETE",
188
- headers,
189
- path: resolvedPath,
190
- query,
191
- body,
192
- });
127
+ b.m("DELETE").h(headers).q(query).b(body);
128
+ return b.build();
193
129
  };
194
130
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
195
131
  const se_UpdateRuleCommand = async (input, context) => {
196
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
132
+ const b = (0, core_1.requestBuilder)(input, context);
197
133
  const headers = {
198
134
  "content-type": "application/json",
199
135
  };
200
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
201
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
136
+ b.bp("/rules/{Identifier}");
137
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
202
138
  let body;
203
139
  body = JSON.stringify((0, smithy_client_1.take)(input, {
204
140
  Description: [],
@@ -206,15 +142,8 @@ const se_UpdateRuleCommand = async (input, context) => {
206
142
  ResourceType: [],
207
143
  RetentionPeriod: (_) => (0, smithy_client_1._json)(_),
208
144
  }));
209
- return new protocol_http_1.HttpRequest({
210
- protocol,
211
- hostname,
212
- port,
213
- method: "PATCH",
214
- headers,
215
- path: resolvedPath,
216
- body,
217
- });
145
+ b.m("PATCH").h(headers).b(body);
146
+ return b.build();
218
147
  };
219
148
  exports.se_UpdateRuleCommand = se_UpdateRuleCommand;
220
149
  const de_CreateRuleCommand = async (output, context) => {
@@ -746,6 +675,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
746
675
  value !== "" &&
747
676
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
748
677
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
678
+ const _TK = "TagKeys";
679
+ const _tK = "tagKeys";
749
680
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
750
681
  if (encoded.length) {
751
682
  return JSON.parse(encoded);
@@ -1,13 +1,13 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
4
4
  import { RbinServiceException as __BaseException } from "../models/RbinServiceException";
5
5
  export const se_CreateRuleCommand = 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 || ""}` + "/rules";
10
+ b.bp("/rules");
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
13
  Description: [],
@@ -17,54 +17,33 @@ export const se_CreateRuleCommand = async (input, context) => {
17
17
  RetentionPeriod: (_) => _json(_),
18
18
  Tags: (_) => _json(_),
19
19
  }));
20
- return new __HttpRequest({
21
- protocol,
22
- hostname,
23
- port,
24
- method: "POST",
25
- headers,
26
- path: resolvedPath,
27
- body,
28
- });
20
+ b.m("POST").h(headers).b(body);
21
+ return b.build();
29
22
  };
30
23
  export const se_DeleteRuleCommand = async (input, context) => {
31
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24
+ const b = rb(input, context);
32
25
  const headers = {};
33
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
34
- resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
26
+ b.bp("/rules/{Identifier}");
27
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
35
28
  let body;
36
- return new __HttpRequest({
37
- protocol,
38
- hostname,
39
- port,
40
- method: "DELETE",
41
- headers,
42
- path: resolvedPath,
43
- body,
44
- });
29
+ b.m("DELETE").h(headers).b(body);
30
+ return b.build();
45
31
  };
46
32
  export const se_GetRuleCommand = async (input, context) => {
47
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
33
+ const b = rb(input, context);
48
34
  const headers = {};
49
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
50
- resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
35
+ b.bp("/rules/{Identifier}");
36
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
51
37
  let body;
52
- return new __HttpRequest({
53
- protocol,
54
- hostname,
55
- port,
56
- method: "GET",
57
- headers,
58
- path: resolvedPath,
59
- body,
60
- });
38
+ b.m("GET").h(headers).b(body);
39
+ return b.build();
61
40
  };
62
41
  export const se_ListRulesCommand = async (input, context) => {
63
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
42
+ const b = rb(input, context);
64
43
  const headers = {
65
44
  "content-type": "application/json",
66
45
  };
67
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-rules";
46
+ b.bp("/list-rules");
68
47
  let body;
69
48
  body = JSON.stringify(take(input, {
70
49
  LockState: [],
@@ -73,120 +52,77 @@ export const se_ListRulesCommand = async (input, context) => {
73
52
  ResourceTags: (_) => _json(_),
74
53
  ResourceType: [],
75
54
  }));
76
- return new __HttpRequest({
77
- protocol,
78
- hostname,
79
- port,
80
- method: "POST",
81
- headers,
82
- path: resolvedPath,
83
- body,
84
- });
55
+ b.m("POST").h(headers).b(body);
56
+ return b.build();
85
57
  };
86
58
  export const se_ListTagsForResourceCommand = async (input, context) => {
87
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
59
+ const b = rb(input, context);
88
60
  const headers = {};
89
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
90
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
61
+ b.bp("/tags/{ResourceArn}");
62
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
91
63
  let body;
92
- return new __HttpRequest({
93
- protocol,
94
- hostname,
95
- port,
96
- method: "GET",
97
- headers,
98
- path: resolvedPath,
99
- body,
100
- });
64
+ b.m("GET").h(headers).b(body);
65
+ return b.build();
101
66
  };
102
67
  export const se_LockRuleCommand = async (input, context) => {
103
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
68
+ const b = rb(input, context);
104
69
  const headers = {
105
70
  "content-type": "application/json",
106
71
  };
107
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}/lock";
108
- resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
72
+ b.bp("/rules/{Identifier}/lock");
73
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
109
74
  let body;
110
75
  body = JSON.stringify(take(input, {
111
76
  LockConfiguration: (_) => _json(_),
112
77
  }));
113
- return new __HttpRequest({
114
- protocol,
115
- hostname,
116
- port,
117
- method: "PATCH",
118
- headers,
119
- path: resolvedPath,
120
- body,
121
- });
78
+ b.m("PATCH").h(headers).b(body);
79
+ return b.build();
122
80
  };
123
81
  export const se_TagResourceCommand = async (input, context) => {
124
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
82
+ const b = rb(input, context);
125
83
  const headers = {
126
84
  "content-type": "application/json",
127
85
  };
128
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
129
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
86
+ b.bp("/tags/{ResourceArn}");
87
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
130
88
  let body;
131
89
  body = JSON.stringify(take(input, {
132
90
  Tags: (_) => _json(_),
133
91
  }));
134
- return new __HttpRequest({
135
- protocol,
136
- hostname,
137
- port,
138
- method: "POST",
139
- headers,
140
- path: resolvedPath,
141
- body,
142
- });
92
+ b.m("POST").h(headers).b(body);
93
+ return b.build();
143
94
  };
144
95
  export const se_UnlockRuleCommand = async (input, context) => {
145
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
96
+ const b = rb(input, context);
146
97
  const headers = {};
147
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}/unlock";
148
- resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
98
+ b.bp("/rules/{Identifier}/unlock");
99
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
149
100
  let body;
150
- return new __HttpRequest({
151
- protocol,
152
- hostname,
153
- port,
154
- method: "PATCH",
155
- headers,
156
- path: resolvedPath,
157
- body,
158
- });
101
+ b.m("PATCH").h(headers).b(body);
102
+ return b.build();
159
103
  };
160
104
  export const se_UntagResourceCommand = async (input, context) => {
161
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
105
+ const b = rb(input, context);
162
106
  const headers = {};
163
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
164
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
107
+ b.bp("/tags/{ResourceArn}");
108
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
165
109
  const query = map({
166
- tagKeys: [
110
+ [_tK]: [
167
111
  __expectNonNull(input.TagKeys, `TagKeys`) != null,
168
- () => (input.TagKeys || []).map((_entry) => _entry),
112
+ () => (input[_TK] || []).map((_entry) => _entry),
169
113
  ],
170
114
  });
171
115
  let body;
172
- return new __HttpRequest({
173
- protocol,
174
- hostname,
175
- port,
176
- method: "DELETE",
177
- headers,
178
- path: resolvedPath,
179
- query,
180
- body,
181
- });
116
+ b.m("DELETE").h(headers).q(query).b(body);
117
+ return b.build();
182
118
  };
183
119
  export const se_UpdateRuleCommand = async (input, context) => {
184
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
120
+ const b = rb(input, context);
185
121
  const headers = {
186
122
  "content-type": "application/json",
187
123
  };
188
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
189
- resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
124
+ b.bp("/rules/{Identifier}");
125
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
190
126
  let body;
191
127
  body = JSON.stringify(take(input, {
192
128
  Description: [],
@@ -194,15 +130,8 @@ export const se_UpdateRuleCommand = async (input, context) => {
194
130
  ResourceType: [],
195
131
  RetentionPeriod: (_) => _json(_),
196
132
  }));
197
- return new __HttpRequest({
198
- protocol,
199
- hostname,
200
- port,
201
- method: "PATCH",
202
- headers,
203
- path: resolvedPath,
204
- body,
205
- });
133
+ b.m("PATCH").h(headers).b(body);
134
+ return b.build();
206
135
  };
207
136
  export const de_CreateRuleCommand = async (output, context) => {
208
137
  if (output.statusCode !== 201 && output.statusCode >= 300) {
@@ -723,6 +652,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
723
652
  value !== "" &&
724
653
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
725
654
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
655
+ const _TK = "TagKeys";
656
+ const _tK = "tagKeys";
726
657
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
727
658
  if (encoded.length) {
728
659
  return JSON.parse(encoded);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rbin",
3
3
  "description": "AWS SDK for JavaScript Rbin Client for Node.js, Browser and React Native",
4
- "version": "3.476.0",
4
+ "version": "3.477.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,9 +20,9 @@
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.477.0",
24
+ "@aws-sdk/core": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.477.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",
@@ -34,6 +34,7 @@
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",