@aws-sdk/client-datazone 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.
Files changed (87) hide show
  1. package/dist-cjs/pagination/ListAssetRevisionsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListDataSourceRunActivitiesPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListDataSourceRunsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListDataSourcesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListDomainsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListEnvironmentBlueprintConfigurationsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListEnvironmentBlueprintsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListEnvironmentProfilesPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListEnvironmentsPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListNotificationsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListProjectMembershipsPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListProjectsPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListSubscriptionGrantsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListSubscriptionRequestsPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListSubscriptionTargetsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListSubscriptionsPaginator.js +2 -24
  17. package/dist-cjs/pagination/SearchGroupProfilesPaginator.js +2 -24
  18. package/dist-cjs/pagination/SearchListingsPaginator.js +2 -24
  19. package/dist-cjs/pagination/SearchPaginator.js +2 -24
  20. package/dist-cjs/pagination/SearchTypesPaginator.js +2 -24
  21. package/dist-cjs/pagination/SearchUserProfilesPaginator.js +2 -24
  22. package/dist-cjs/protocols/Aws_restJson1.js +689 -1468
  23. package/dist-es/pagination/ListAssetRevisionsPaginator.js +2 -23
  24. package/dist-es/pagination/ListDataSourceRunActivitiesPaginator.js +2 -23
  25. package/dist-es/pagination/ListDataSourceRunsPaginator.js +2 -23
  26. package/dist-es/pagination/ListDataSourcesPaginator.js +2 -23
  27. package/dist-es/pagination/ListDomainsPaginator.js +2 -23
  28. package/dist-es/pagination/ListEnvironmentBlueprintConfigurationsPaginator.js +2 -23
  29. package/dist-es/pagination/ListEnvironmentBlueprintsPaginator.js +2 -23
  30. package/dist-es/pagination/ListEnvironmentProfilesPaginator.js +2 -23
  31. package/dist-es/pagination/ListEnvironmentsPaginator.js +2 -23
  32. package/dist-es/pagination/ListNotificationsPaginator.js +2 -23
  33. package/dist-es/pagination/ListProjectMembershipsPaginator.js +2 -23
  34. package/dist-es/pagination/ListProjectsPaginator.js +2 -23
  35. package/dist-es/pagination/ListSubscriptionGrantsPaginator.js +2 -23
  36. package/dist-es/pagination/ListSubscriptionRequestsPaginator.js +2 -23
  37. package/dist-es/pagination/ListSubscriptionTargetsPaginator.js +2 -23
  38. package/dist-es/pagination/ListSubscriptionsPaginator.js +2 -23
  39. package/dist-es/pagination/SearchGroupProfilesPaginator.js +2 -23
  40. package/dist-es/pagination/SearchListingsPaginator.js +2 -23
  41. package/dist-es/pagination/SearchPaginator.js +2 -23
  42. package/dist-es/pagination/SearchTypesPaginator.js +2 -23
  43. package/dist-es/pagination/SearchUserProfilesPaginator.js +2 -23
  44. package/dist-es/protocols/Aws_restJson1.js +690 -1469
  45. package/dist-types/pagination/ListAssetRevisionsPaginator.d.ts +1 -1
  46. package/dist-types/pagination/ListDataSourceRunActivitiesPaginator.d.ts +1 -1
  47. package/dist-types/pagination/ListDataSourceRunsPaginator.d.ts +1 -1
  48. package/dist-types/pagination/ListDataSourcesPaginator.d.ts +1 -1
  49. package/dist-types/pagination/ListDomainsPaginator.d.ts +1 -1
  50. package/dist-types/pagination/ListEnvironmentBlueprintConfigurationsPaginator.d.ts +1 -1
  51. package/dist-types/pagination/ListEnvironmentBlueprintsPaginator.d.ts +1 -1
  52. package/dist-types/pagination/ListEnvironmentProfilesPaginator.d.ts +1 -1
  53. package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +1 -1
  54. package/dist-types/pagination/ListNotificationsPaginator.d.ts +1 -1
  55. package/dist-types/pagination/ListProjectMembershipsPaginator.d.ts +1 -1
  56. package/dist-types/pagination/ListProjectsPaginator.d.ts +1 -1
  57. package/dist-types/pagination/ListSubscriptionGrantsPaginator.d.ts +1 -1
  58. package/dist-types/pagination/ListSubscriptionRequestsPaginator.d.ts +1 -1
  59. package/dist-types/pagination/ListSubscriptionTargetsPaginator.d.ts +1 -1
  60. package/dist-types/pagination/ListSubscriptionsPaginator.d.ts +1 -1
  61. package/dist-types/pagination/SearchGroupProfilesPaginator.d.ts +1 -1
  62. package/dist-types/pagination/SearchListingsPaginator.d.ts +1 -1
  63. package/dist-types/pagination/SearchPaginator.d.ts +1 -1
  64. package/dist-types/pagination/SearchTypesPaginator.d.ts +1 -1
  65. package/dist-types/pagination/SearchUserProfilesPaginator.d.ts +1 -1
  66. package/dist-types/ts3.4/pagination/ListAssetRevisionsPaginator.d.ts +3 -3
  67. package/dist-types/ts3.4/pagination/ListDataSourceRunActivitiesPaginator.d.ts +3 -3
  68. package/dist-types/ts3.4/pagination/ListDataSourceRunsPaginator.d.ts +3 -3
  69. package/dist-types/ts3.4/pagination/ListDataSourcesPaginator.d.ts +3 -3
  70. package/dist-types/ts3.4/pagination/ListDomainsPaginator.d.ts +3 -3
  71. package/dist-types/ts3.4/pagination/ListEnvironmentBlueprintConfigurationsPaginator.d.ts +3 -3
  72. package/dist-types/ts3.4/pagination/ListEnvironmentBlueprintsPaginator.d.ts +3 -3
  73. package/dist-types/ts3.4/pagination/ListEnvironmentProfilesPaginator.d.ts +3 -3
  74. package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +3 -3
  75. package/dist-types/ts3.4/pagination/ListNotificationsPaginator.d.ts +3 -3
  76. package/dist-types/ts3.4/pagination/ListProjectMembershipsPaginator.d.ts +3 -3
  77. package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +3 -3
  78. package/dist-types/ts3.4/pagination/ListSubscriptionGrantsPaginator.d.ts +3 -3
  79. package/dist-types/ts3.4/pagination/ListSubscriptionRequestsPaginator.d.ts +3 -3
  80. package/dist-types/ts3.4/pagination/ListSubscriptionTargetsPaginator.d.ts +3 -3
  81. package/dist-types/ts3.4/pagination/ListSubscriptionsPaginator.d.ts +3 -3
  82. package/dist-types/ts3.4/pagination/SearchGroupProfilesPaginator.d.ts +3 -3
  83. package/dist-types/ts3.4/pagination/SearchListingsPaginator.d.ts +3 -3
  84. package/dist-types/ts3.4/pagination/SearchPaginator.d.ts +3 -3
  85. package/dist-types/ts3.4/pagination/SearchTypesPaginator.d.ts +3 -3
  86. package/dist-types/ts3.4/pagination/SearchUserProfilesPaginator.d.ts +3 -3
  87. package/package.json +7 -6
@@ -5,23 +5,22 @@ exports.de_AcceptPredictionsCommand = exports.se_UpdateUserProfileCommand = expo
5
5
  exports.de_GetIamPortalLoginUrlCommand = exports.de_GetGroupProfileCommand = exports.de_GetGlossaryTermCommand = exports.de_GetGlossaryCommand = exports.de_GetFormTypeCommand = exports.de_GetEnvironmentProfileCommand = exports.de_GetEnvironmentBlueprintConfigurationCommand = exports.de_GetEnvironmentBlueprintCommand = exports.de_GetEnvironmentCommand = exports.de_GetDomainCommand = exports.de_GetDataSourceRunCommand = exports.de_GetDataSourceCommand = exports.de_GetAssetTypeCommand = exports.de_GetAssetCommand = exports.de_DeleteSubscriptionTargetCommand = exports.de_DeleteSubscriptionRequestCommand = exports.de_DeleteSubscriptionGrantCommand = exports.de_DeleteProjectMembershipCommand = exports.de_DeleteProjectCommand = exports.de_DeleteListingCommand = exports.de_DeleteGlossaryTermCommand = exports.de_DeleteGlossaryCommand = exports.de_DeleteFormTypeCommand = exports.de_DeleteEnvironmentProfileCommand = exports.de_DeleteEnvironmentBlueprintConfigurationCommand = exports.de_DeleteEnvironmentCommand = exports.de_DeleteDomainCommand = exports.de_DeleteDataSourceCommand = exports.de_DeleteAssetTypeCommand = exports.de_DeleteAssetCommand = exports.de_CreateUserProfileCommand = exports.de_CreateSubscriptionTargetCommand = exports.de_CreateSubscriptionRequestCommand = exports.de_CreateSubscriptionGrantCommand = exports.de_CreateProjectMembershipCommand = exports.de_CreateProjectCommand = exports.de_CreateListingChangeSetCommand = exports.de_CreateGroupProfileCommand = exports.de_CreateGlossaryTermCommand = exports.de_CreateGlossaryCommand = exports.de_CreateFormTypeCommand = exports.de_CreateEnvironmentProfileCommand = exports.de_CreateEnvironmentCommand = exports.de_CreateDomainCommand = exports.de_CreateDataSourceCommand = exports.de_CreateAssetTypeCommand = exports.de_CreateAssetRevisionCommand = exports.de_CreateAssetCommand = exports.de_CancelSubscriptionCommand = exports.de_AcceptSubscriptionRequestCommand = void 0;
6
6
  exports.de_UpdateUserProfileCommand = exports.de_UpdateSubscriptionTargetCommand = exports.de_UpdateSubscriptionRequestCommand = exports.de_UpdateSubscriptionGrantStatusCommand = exports.de_UpdateProjectCommand = exports.de_UpdateGroupProfileCommand = exports.de_UpdateGlossaryTermCommand = exports.de_UpdateGlossaryCommand = exports.de_UpdateEnvironmentProfileCommand = exports.de_UpdateEnvironmentCommand = exports.de_UpdateDomainCommand = exports.de_UpdateDataSourceCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartDataSourceRunCommand = exports.de_SearchUserProfilesCommand = exports.de_SearchTypesCommand = exports.de_SearchListingsCommand = exports.de_SearchGroupProfilesCommand = exports.de_SearchCommand = exports.de_RevokeSubscriptionCommand = exports.de_RejectSubscriptionRequestCommand = exports.de_RejectPredictionsCommand = exports.de_PutEnvironmentBlueprintConfigurationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSubscriptionTargetsCommand = exports.de_ListSubscriptionsCommand = exports.de_ListSubscriptionRequestsCommand = exports.de_ListSubscriptionGrantsCommand = exports.de_ListProjectsCommand = exports.de_ListProjectMembershipsCommand = exports.de_ListNotificationsCommand = exports.de_ListEnvironmentsCommand = exports.de_ListEnvironmentProfilesCommand = exports.de_ListEnvironmentBlueprintsCommand = exports.de_ListEnvironmentBlueprintConfigurationsCommand = exports.de_ListDomainsCommand = exports.de_ListDataSourcesCommand = exports.de_ListDataSourceRunsCommand = exports.de_ListDataSourceRunActivitiesCommand = exports.de_ListAssetRevisionsCommand = exports.de_GetUserProfileCommand = exports.de_GetSubscriptionTargetCommand = exports.de_GetSubscriptionRequestDetailsCommand = exports.de_GetSubscriptionGrantCommand = exports.de_GetSubscriptionCommand = exports.de_GetProjectCommand = exports.de_GetListingCommand = void 0;
7
7
  const core_1 = require("@aws-sdk/core");
8
- const protocol_http_1 = require("@smithy/protocol-http");
8
+ const core_2 = require("@smithy/core");
9
9
  const smithy_client_1 = require("@smithy/smithy-client");
10
10
  const uuid_1 = require("uuid");
11
11
  const DataZoneServiceException_1 = require("../models/DataZoneServiceException");
12
12
  const models_0_1 = require("../models/models_0");
13
13
  const models_1_1 = require("../models/models_1");
14
14
  const se_AcceptPredictionsCommand = async (input, context) => {
15
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
15
+ const b = (0, core_2.requestBuilder)(input, context);
16
16
  const headers = {
17
17
  "content-type": "application/json",
18
18
  };
19
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
20
- "/v2/domains/{domainIdentifier}/assets/{identifier}/accept-predictions";
21
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
22
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
19
+ b.bp("/v2/domains/{domainIdentifier}/assets/{identifier}/accept-predictions");
20
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
21
+ b.p("identifier", () => input.identifier, "{identifier}", false);
23
22
  const query = (0, smithy_client_1.map)({
24
- revision: [, input.revision],
23
+ [_r]: [, input[_r]],
25
24
  });
26
25
  let body;
27
26
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -29,68 +28,44 @@ const se_AcceptPredictionsCommand = async (input, context) => {
29
28
  acceptRule: (_) => se_AcceptRule(_, context),
30
29
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
31
30
  }));
32
- return new protocol_http_1.HttpRequest({
33
- protocol,
34
- hostname,
35
- port,
36
- method: "PUT",
37
- headers,
38
- path: resolvedPath,
39
- query,
40
- body,
41
- });
31
+ b.m("PUT").h(headers).q(query).b(body);
32
+ return b.build();
42
33
  };
43
34
  exports.se_AcceptPredictionsCommand = se_AcceptPredictionsCommand;
44
35
  const se_AcceptSubscriptionRequestCommand = async (input, context) => {
45
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
36
+ const b = (0, core_2.requestBuilder)(input, context);
46
37
  const headers = {
47
38
  "content-type": "application/json",
48
39
  };
49
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
50
- "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}/accept";
51
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
52
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
40
+ b.bp("/v2/domains/{domainIdentifier}/subscription-requests/{identifier}/accept");
41
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
42
+ b.p("identifier", () => input.identifier, "{identifier}", false);
53
43
  let body;
54
44
  body = JSON.stringify((0, smithy_client_1.take)(input, {
55
45
  decisionComment: [],
56
46
  }));
57
- return new protocol_http_1.HttpRequest({
58
- protocol,
59
- hostname,
60
- port,
61
- method: "PUT",
62
- headers,
63
- path: resolvedPath,
64
- body,
65
- });
47
+ b.m("PUT").h(headers).b(body);
48
+ return b.build();
66
49
  };
67
50
  exports.se_AcceptSubscriptionRequestCommand = se_AcceptSubscriptionRequestCommand;
68
51
  const se_CancelSubscriptionCommand = async (input, context) => {
69
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
52
+ const b = (0, core_2.requestBuilder)(input, context);
70
53
  const headers = {};
71
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
72
- "/v2/domains/{domainIdentifier}/subscriptions/{identifier}/cancel";
73
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
74
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
54
+ b.bp("/v2/domains/{domainIdentifier}/subscriptions/{identifier}/cancel");
55
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
56
+ b.p("identifier", () => input.identifier, "{identifier}", false);
75
57
  let body;
76
- return new protocol_http_1.HttpRequest({
77
- protocol,
78
- hostname,
79
- port,
80
- method: "PUT",
81
- headers,
82
- path: resolvedPath,
83
- body,
84
- });
58
+ b.m("PUT").h(headers).b(body);
59
+ return b.build();
85
60
  };
86
61
  exports.se_CancelSubscriptionCommand = se_CancelSubscriptionCommand;
87
62
  const se_CreateAssetCommand = async (input, context) => {
88
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
63
+ const b = (0, core_2.requestBuilder)(input, context);
89
64
  const headers = {
90
65
  "content-type": "application/json",
91
66
  };
92
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{domainIdentifier}/assets";
93
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
67
+ b.bp("/v2/domains/{domainIdentifier}/assets");
68
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
94
69
  let body;
95
70
  body = JSON.stringify((0, smithy_client_1.take)(input, {
96
71
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -104,26 +79,18 @@ const se_CreateAssetCommand = async (input, context) => {
104
79
  typeIdentifier: [],
105
80
  typeRevision: [],
106
81
  }));
107
- return new protocol_http_1.HttpRequest({
108
- protocol,
109
- hostname,
110
- port,
111
- method: "POST",
112
- headers,
113
- path: resolvedPath,
114
- body,
115
- });
82
+ b.m("POST").h(headers).b(body);
83
+ return b.build();
116
84
  };
117
85
  exports.se_CreateAssetCommand = se_CreateAssetCommand;
118
86
  const se_CreateAssetRevisionCommand = async (input, context) => {
119
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
+ const b = (0, core_2.requestBuilder)(input, context);
120
88
  const headers = {
121
89
  "content-type": "application/json",
122
90
  };
123
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
124
- "/v2/domains/{domainIdentifier}/assets/{identifier}/revisions";
125
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
126
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
91
+ b.bp("/v2/domains/{domainIdentifier}/assets/{identifier}/revisions");
92
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
93
+ b.p("identifier", () => input.identifier, "{identifier}", false);
127
94
  let body;
128
95
  body = JSON.stringify((0, smithy_client_1.take)(input, {
129
96
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -134,25 +101,17 @@ const se_CreateAssetRevisionCommand = async (input, context) => {
134
101
  predictionConfiguration: (_) => (0, smithy_client_1._json)(_),
135
102
  typeRevision: [],
136
103
  }));
137
- return new protocol_http_1.HttpRequest({
138
- protocol,
139
- hostname,
140
- port,
141
- method: "POST",
142
- headers,
143
- path: resolvedPath,
144
- body,
145
- });
104
+ b.m("POST").h(headers).b(body);
105
+ return b.build();
146
106
  };
147
107
  exports.se_CreateAssetRevisionCommand = se_CreateAssetRevisionCommand;
148
108
  const se_CreateAssetTypeCommand = async (input, context) => {
149
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
109
+ const b = (0, core_2.requestBuilder)(input, context);
150
110
  const headers = {
151
111
  "content-type": "application/json",
152
112
  };
153
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
154
- "/v2/domains/{domainIdentifier}/asset-types";
155
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
113
+ b.bp("/v2/domains/{domainIdentifier}/asset-types");
114
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
156
115
  let body;
157
116
  body = JSON.stringify((0, smithy_client_1.take)(input, {
158
117
  description: [],
@@ -160,25 +119,17 @@ const se_CreateAssetTypeCommand = async (input, context) => {
160
119
  name: [],
161
120
  owningProjectIdentifier: [],
162
121
  }));
163
- return new protocol_http_1.HttpRequest({
164
- protocol,
165
- hostname,
166
- port,
167
- method: "POST",
168
- headers,
169
- path: resolvedPath,
170
- body,
171
- });
122
+ b.m("POST").h(headers).b(body);
123
+ return b.build();
172
124
  };
173
125
  exports.se_CreateAssetTypeCommand = se_CreateAssetTypeCommand;
174
126
  const se_CreateDataSourceCommand = async (input, context) => {
175
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
+ const b = (0, core_2.requestBuilder)(input, context);
176
128
  const headers = {
177
129
  "content-type": "application/json",
178
130
  };
179
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
180
- "/v2/domains/{domainIdentifier}/data-sources";
181
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
131
+ b.bp("/v2/domains/{domainIdentifier}/data-sources");
132
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
182
133
  let body;
183
134
  body = JSON.stringify((0, smithy_client_1.take)(input, {
184
135
  assetFormsInput: (_) => (0, smithy_client_1._json)(_),
@@ -194,23 +145,16 @@ const se_CreateDataSourceCommand = async (input, context) => {
194
145
  schedule: (_) => (0, smithy_client_1._json)(_),
195
146
  type: [],
196
147
  }));
197
- return new protocol_http_1.HttpRequest({
198
- protocol,
199
- hostname,
200
- port,
201
- method: "POST",
202
- headers,
203
- path: resolvedPath,
204
- body,
205
- });
148
+ b.m("POST").h(headers).b(body);
149
+ return b.build();
206
150
  };
207
151
  exports.se_CreateDataSourceCommand = se_CreateDataSourceCommand;
208
152
  const se_CreateDomainCommand = async (input, context) => {
209
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
153
+ const b = (0, core_2.requestBuilder)(input, context);
210
154
  const headers = {
211
155
  "content-type": "application/json",
212
156
  };
213
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains";
157
+ b.bp("/v2/domains");
214
158
  let body;
215
159
  body = JSON.stringify((0, smithy_client_1.take)(input, {
216
160
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -221,25 +165,17 @@ const se_CreateDomainCommand = async (input, context) => {
221
165
  singleSignOn: (_) => (0, smithy_client_1._json)(_),
222
166
  tags: (_) => (0, smithy_client_1._json)(_),
223
167
  }));
224
- return new protocol_http_1.HttpRequest({
225
- protocol,
226
- hostname,
227
- port,
228
- method: "POST",
229
- headers,
230
- path: resolvedPath,
231
- body,
232
- });
168
+ b.m("POST").h(headers).b(body);
169
+ return b.build();
233
170
  };
234
171
  exports.se_CreateDomainCommand = se_CreateDomainCommand;
235
172
  const se_CreateEnvironmentCommand = async (input, context) => {
236
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
173
+ const b = (0, core_2.requestBuilder)(input, context);
237
174
  const headers = {
238
175
  "content-type": "application/json",
239
176
  };
240
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
241
- "/v2/domains/{domainIdentifier}/environments";
242
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
177
+ b.bp("/v2/domains/{domainIdentifier}/environments");
178
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
243
179
  let body;
244
180
  body = JSON.stringify((0, smithy_client_1.take)(input, {
245
181
  description: [],
@@ -249,25 +185,17 @@ const se_CreateEnvironmentCommand = async (input, context) => {
249
185
  projectIdentifier: [],
250
186
  userParameters: (_) => (0, smithy_client_1._json)(_),
251
187
  }));
252
- return new protocol_http_1.HttpRequest({
253
- protocol,
254
- hostname,
255
- port,
256
- method: "POST",
257
- headers,
258
- path: resolvedPath,
259
- body,
260
- });
188
+ b.m("POST").h(headers).b(body);
189
+ return b.build();
261
190
  };
262
191
  exports.se_CreateEnvironmentCommand = se_CreateEnvironmentCommand;
263
192
  const se_CreateEnvironmentProfileCommand = async (input, context) => {
264
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
+ const b = (0, core_2.requestBuilder)(input, context);
265
194
  const headers = {
266
195
  "content-type": "application/json",
267
196
  };
268
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
269
- "/v2/domains/{domainIdentifier}/environment-profiles";
270
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
197
+ b.bp("/v2/domains/{domainIdentifier}/environment-profiles");
198
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
271
199
  let body;
272
200
  body = JSON.stringify((0, smithy_client_1.take)(input, {
273
201
  awsAccountId: [],
@@ -278,24 +206,17 @@ const se_CreateEnvironmentProfileCommand = async (input, context) => {
278
206
  projectIdentifier: [],
279
207
  userParameters: (_) => (0, smithy_client_1._json)(_),
280
208
  }));
281
- return new protocol_http_1.HttpRequest({
282
- protocol,
283
- hostname,
284
- port,
285
- method: "POST",
286
- headers,
287
- path: resolvedPath,
288
- body,
289
- });
209
+ b.m("POST").h(headers).b(body);
210
+ return b.build();
290
211
  };
291
212
  exports.se_CreateEnvironmentProfileCommand = se_CreateEnvironmentProfileCommand;
292
213
  const se_CreateFormTypeCommand = async (input, context) => {
293
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
214
+ const b = (0, core_2.requestBuilder)(input, context);
294
215
  const headers = {
295
216
  "content-type": "application/json",
296
217
  };
297
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{domainIdentifier}/form-types";
298
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
218
+ b.bp("/v2/domains/{domainIdentifier}/form-types");
219
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
299
220
  let body;
300
221
  body = JSON.stringify((0, smithy_client_1.take)(input, {
301
222
  description: [],
@@ -304,24 +225,17 @@ const se_CreateFormTypeCommand = async (input, context) => {
304
225
  owningProjectIdentifier: [],
305
226
  status: [],
306
227
  }));
307
- return new protocol_http_1.HttpRequest({
308
- protocol,
309
- hostname,
310
- port,
311
- method: "POST",
312
- headers,
313
- path: resolvedPath,
314
- body,
315
- });
228
+ b.m("POST").h(headers).b(body);
229
+ return b.build();
316
230
  };
317
231
  exports.se_CreateFormTypeCommand = se_CreateFormTypeCommand;
318
232
  const se_CreateGlossaryCommand = async (input, context) => {
319
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
233
+ const b = (0, core_2.requestBuilder)(input, context);
320
234
  const headers = {
321
235
  "content-type": "application/json",
322
236
  };
323
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{domainIdentifier}/glossaries";
324
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
237
+ b.bp("/v2/domains/{domainIdentifier}/glossaries");
238
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
325
239
  let body;
326
240
  body = JSON.stringify((0, smithy_client_1.take)(input, {
327
241
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -330,25 +244,17 @@ const se_CreateGlossaryCommand = async (input, context) => {
330
244
  owningProjectIdentifier: [],
331
245
  status: [],
332
246
  }));
333
- return new protocol_http_1.HttpRequest({
334
- protocol,
335
- hostname,
336
- port,
337
- method: "POST",
338
- headers,
339
- path: resolvedPath,
340
- body,
341
- });
247
+ b.m("POST").h(headers).b(body);
248
+ return b.build();
342
249
  };
343
250
  exports.se_CreateGlossaryCommand = se_CreateGlossaryCommand;
344
251
  const se_CreateGlossaryTermCommand = async (input, context) => {
345
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
252
+ const b = (0, core_2.requestBuilder)(input, context);
346
253
  const headers = {
347
254
  "content-type": "application/json",
348
255
  };
349
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
350
- "/v2/domains/{domainIdentifier}/glossary-terms";
351
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
256
+ b.bp("/v2/domains/{domainIdentifier}/glossary-terms");
257
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
352
258
  let body;
353
259
  body = JSON.stringify((0, smithy_client_1.take)(input, {
354
260
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -359,49 +265,33 @@ const se_CreateGlossaryTermCommand = async (input, context) => {
359
265
  status: [],
360
266
  termRelations: (_) => (0, smithy_client_1._json)(_),
361
267
  }));
362
- return new protocol_http_1.HttpRequest({
363
- protocol,
364
- hostname,
365
- port,
366
- method: "POST",
367
- headers,
368
- path: resolvedPath,
369
- body,
370
- });
268
+ b.m("POST").h(headers).b(body);
269
+ return b.build();
371
270
  };
372
271
  exports.se_CreateGlossaryTermCommand = se_CreateGlossaryTermCommand;
373
272
  const se_CreateGroupProfileCommand = async (input, context) => {
374
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
273
+ const b = (0, core_2.requestBuilder)(input, context);
375
274
  const headers = {
376
275
  "content-type": "application/json",
377
276
  };
378
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
379
- "/v2/domains/{domainIdentifier}/group-profiles";
380
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
277
+ b.bp("/v2/domains/{domainIdentifier}/group-profiles");
278
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
381
279
  let body;
382
280
  body = JSON.stringify((0, smithy_client_1.take)(input, {
383
281
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
384
282
  groupIdentifier: [],
385
283
  }));
386
- return new protocol_http_1.HttpRequest({
387
- protocol,
388
- hostname,
389
- port,
390
- method: "POST",
391
- headers,
392
- path: resolvedPath,
393
- body,
394
- });
284
+ b.m("POST").h(headers).b(body);
285
+ return b.build();
395
286
  };
396
287
  exports.se_CreateGroupProfileCommand = se_CreateGroupProfileCommand;
397
288
  const se_CreateListingChangeSetCommand = async (input, context) => {
398
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
289
+ const b = (0, core_2.requestBuilder)(input, context);
399
290
  const headers = {
400
291
  "content-type": "application/json",
401
292
  };
402
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
403
- "/v2/domains/{domainIdentifier}/listings/change-set";
404
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
293
+ b.bp("/v2/domains/{domainIdentifier}/listings/change-set");
294
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
405
295
  let body;
406
296
  body = JSON.stringify((0, smithy_client_1.take)(input, {
407
297
  action: [],
@@ -410,74 +300,51 @@ const se_CreateListingChangeSetCommand = async (input, context) => {
410
300
  entityRevision: [],
411
301
  entityType: [],
412
302
  }));
413
- return new protocol_http_1.HttpRequest({
414
- protocol,
415
- hostname,
416
- port,
417
- method: "POST",
418
- headers,
419
- path: resolvedPath,
420
- body,
421
- });
303
+ b.m("POST").h(headers).b(body);
304
+ return b.build();
422
305
  };
423
306
  exports.se_CreateListingChangeSetCommand = se_CreateListingChangeSetCommand;
424
307
  const se_CreateProjectCommand = async (input, context) => {
425
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
308
+ const b = (0, core_2.requestBuilder)(input, context);
426
309
  const headers = {
427
310
  "content-type": "application/json",
428
311
  };
429
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{domainIdentifier}/projects";
430
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
312
+ b.bp("/v2/domains/{domainIdentifier}/projects");
313
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
431
314
  let body;
432
315
  body = JSON.stringify((0, smithy_client_1.take)(input, {
433
316
  description: [],
434
317
  glossaryTerms: (_) => (0, smithy_client_1._json)(_),
435
318
  name: [],
436
319
  }));
437
- return new protocol_http_1.HttpRequest({
438
- protocol,
439
- hostname,
440
- port,
441
- method: "POST",
442
- headers,
443
- path: resolvedPath,
444
- body,
445
- });
320
+ b.m("POST").h(headers).b(body);
321
+ return b.build();
446
322
  };
447
323
  exports.se_CreateProjectCommand = se_CreateProjectCommand;
448
324
  const se_CreateProjectMembershipCommand = async (input, context) => {
449
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
325
+ const b = (0, core_2.requestBuilder)(input, context);
450
326
  const headers = {
451
327
  "content-type": "application/json",
452
328
  };
453
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
454
- "/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/createMembership";
455
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
456
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectIdentifier", () => input.projectIdentifier, "{projectIdentifier}", false);
329
+ b.bp("/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/createMembership");
330
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
331
+ b.p("projectIdentifier", () => input.projectIdentifier, "{projectIdentifier}", false);
457
332
  let body;
458
333
  body = JSON.stringify((0, smithy_client_1.take)(input, {
459
334
  designation: [],
460
335
  member: (_) => (0, smithy_client_1._json)(_),
461
336
  }));
462
- return new protocol_http_1.HttpRequest({
463
- protocol,
464
- hostname,
465
- port,
466
- method: "POST",
467
- headers,
468
- path: resolvedPath,
469
- body,
470
- });
337
+ b.m("POST").h(headers).b(body);
338
+ return b.build();
471
339
  };
472
340
  exports.se_CreateProjectMembershipCommand = se_CreateProjectMembershipCommand;
473
341
  const se_CreateSubscriptionGrantCommand = async (input, context) => {
474
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
342
+ const b = (0, core_2.requestBuilder)(input, context);
475
343
  const headers = {
476
344
  "content-type": "application/json",
477
345
  };
478
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
479
- "/v2/domains/{domainIdentifier}/subscription-grants";
480
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
346
+ b.bp("/v2/domains/{domainIdentifier}/subscription-grants");
347
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
481
348
  let body;
482
349
  body = JSON.stringify((0, smithy_client_1.take)(input, {
483
350
  assetTargetNames: (_) => (0, smithy_client_1._json)(_),
@@ -486,25 +353,17 @@ const se_CreateSubscriptionGrantCommand = async (input, context) => {
486
353
  grantedEntity: (_) => (0, smithy_client_1._json)(_),
487
354
  subscriptionTargetIdentifier: [],
488
355
  }));
489
- return new protocol_http_1.HttpRequest({
490
- protocol,
491
- hostname,
492
- port,
493
- method: "POST",
494
- headers,
495
- path: resolvedPath,
496
- body,
497
- });
356
+ b.m("POST").h(headers).b(body);
357
+ return b.build();
498
358
  };
499
359
  exports.se_CreateSubscriptionGrantCommand = se_CreateSubscriptionGrantCommand;
500
360
  const se_CreateSubscriptionRequestCommand = async (input, context) => {
501
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
361
+ const b = (0, core_2.requestBuilder)(input, context);
502
362
  const headers = {
503
363
  "content-type": "application/json",
504
364
  };
505
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
506
- "/v2/domains/{domainIdentifier}/subscription-requests";
507
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
365
+ b.bp("/v2/domains/{domainIdentifier}/subscription-requests");
366
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
508
367
  let body;
509
368
  body = JSON.stringify((0, smithy_client_1.take)(input, {
510
369
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -512,26 +371,18 @@ const se_CreateSubscriptionRequestCommand = async (input, context) => {
512
371
  subscribedListings: (_) => (0, smithy_client_1._json)(_),
513
372
  subscribedPrincipals: (_) => (0, smithy_client_1._json)(_),
514
373
  }));
515
- return new protocol_http_1.HttpRequest({
516
- protocol,
517
- hostname,
518
- port,
519
- method: "POST",
520
- headers,
521
- path: resolvedPath,
522
- body,
523
- });
374
+ b.m("POST").h(headers).b(body);
375
+ return b.build();
524
376
  };
525
377
  exports.se_CreateSubscriptionRequestCommand = se_CreateSubscriptionRequestCommand;
526
378
  const se_CreateSubscriptionTargetCommand = async (input, context) => {
527
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
379
+ const b = (0, core_2.requestBuilder)(input, context);
528
380
  const headers = {
529
381
  "content-type": "application/json",
530
382
  };
531
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
532
- "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets";
533
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
534
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentIdentifier", () => input.environmentIdentifier, "{environmentIdentifier}", false);
383
+ b.bp("/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets");
384
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
385
+ b.p("environmentIdentifier", () => input.environmentIdentifier, "{environmentIdentifier}", false);
535
386
  let body;
536
387
  body = JSON.stringify((0, smithy_client_1.take)(input, {
537
388
  applicableAssetTypes: (_) => (0, smithy_client_1._json)(_),
@@ -543,1231 +394,759 @@ const se_CreateSubscriptionTargetCommand = async (input, context) => {
543
394
  subscriptionTargetConfig: (_) => (0, smithy_client_1._json)(_),
544
395
  type: [],
545
396
  }));
546
- return new protocol_http_1.HttpRequest({
547
- protocol,
548
- hostname,
549
- port,
550
- method: "POST",
551
- headers,
552
- path: resolvedPath,
553
- body,
554
- });
397
+ b.m("POST").h(headers).b(body);
398
+ return b.build();
555
399
  };
556
400
  exports.se_CreateSubscriptionTargetCommand = se_CreateSubscriptionTargetCommand;
557
401
  const se_CreateUserProfileCommand = async (input, context) => {
558
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
402
+ const b = (0, core_2.requestBuilder)(input, context);
559
403
  const headers = {
560
404
  "content-type": "application/json",
561
405
  };
562
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
563
- "/v2/domains/{domainIdentifier}/user-profiles";
564
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
406
+ b.bp("/v2/domains/{domainIdentifier}/user-profiles");
407
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
565
408
  let body;
566
409
  body = JSON.stringify((0, smithy_client_1.take)(input, {
567
410
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
568
411
  userIdentifier: [],
569
412
  userType: [],
570
413
  }));
571
- return new protocol_http_1.HttpRequest({
572
- protocol,
573
- hostname,
574
- port,
575
- method: "POST",
576
- headers,
577
- path: resolvedPath,
578
- body,
579
- });
414
+ b.m("POST").h(headers).b(body);
415
+ return b.build();
580
416
  };
581
417
  exports.se_CreateUserProfileCommand = se_CreateUserProfileCommand;
582
418
  const se_DeleteAssetCommand = async (input, context) => {
583
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
419
+ const b = (0, core_2.requestBuilder)(input, context);
584
420
  const headers = {};
585
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
586
- "/v2/domains/{domainIdentifier}/assets/{identifier}";
587
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
588
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
421
+ b.bp("/v2/domains/{domainIdentifier}/assets/{identifier}");
422
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
423
+ b.p("identifier", () => input.identifier, "{identifier}", false);
589
424
  let body;
590
- return new protocol_http_1.HttpRequest({
591
- protocol,
592
- hostname,
593
- port,
594
- method: "DELETE",
595
- headers,
596
- path: resolvedPath,
597
- body,
598
- });
425
+ b.m("DELETE").h(headers).b(body);
426
+ return b.build();
599
427
  };
600
428
  exports.se_DeleteAssetCommand = se_DeleteAssetCommand;
601
429
  const se_DeleteAssetTypeCommand = async (input, context) => {
602
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
430
+ const b = (0, core_2.requestBuilder)(input, context);
603
431
  const headers = {};
604
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
605
- "/v2/domains/{domainIdentifier}/asset-types/{identifier}";
606
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
607
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
432
+ b.bp("/v2/domains/{domainIdentifier}/asset-types/{identifier}");
433
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
434
+ b.p("identifier", () => input.identifier, "{identifier}", false);
608
435
  let body;
609
- return new protocol_http_1.HttpRequest({
610
- protocol,
611
- hostname,
612
- port,
613
- method: "DELETE",
614
- headers,
615
- path: resolvedPath,
616
- body,
617
- });
436
+ b.m("DELETE").h(headers).b(body);
437
+ return b.build();
618
438
  };
619
439
  exports.se_DeleteAssetTypeCommand = se_DeleteAssetTypeCommand;
620
440
  const se_DeleteDataSourceCommand = async (input, context) => {
621
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
441
+ const b = (0, core_2.requestBuilder)(input, context);
622
442
  const headers = {};
623
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
624
- "/v2/domains/{domainIdentifier}/data-sources/{identifier}";
625
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
626
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
443
+ b.bp("/v2/domains/{domainIdentifier}/data-sources/{identifier}");
444
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
445
+ b.p("identifier", () => input.identifier, "{identifier}", false);
627
446
  const query = (0, smithy_client_1.map)({
628
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
447
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
629
448
  });
630
449
  let body;
631
- return new protocol_http_1.HttpRequest({
632
- protocol,
633
- hostname,
634
- port,
635
- method: "DELETE",
636
- headers,
637
- path: resolvedPath,
638
- query,
639
- body,
640
- });
450
+ b.m("DELETE").h(headers).q(query).b(body);
451
+ return b.build();
641
452
  };
642
453
  exports.se_DeleteDataSourceCommand = se_DeleteDataSourceCommand;
643
454
  const se_DeleteDomainCommand = async (input, context) => {
644
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
455
+ const b = (0, core_2.requestBuilder)(input, context);
645
456
  const headers = {};
646
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{identifier}";
647
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
457
+ b.bp("/v2/domains/{identifier}");
458
+ b.p("identifier", () => input.identifier, "{identifier}", false);
648
459
  const query = (0, smithy_client_1.map)({
649
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
460
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
650
461
  });
651
462
  let body;
652
- return new protocol_http_1.HttpRequest({
653
- protocol,
654
- hostname,
655
- port,
656
- method: "DELETE",
657
- headers,
658
- path: resolvedPath,
659
- query,
660
- body,
661
- });
463
+ b.m("DELETE").h(headers).q(query).b(body);
464
+ return b.build();
662
465
  };
663
466
  exports.se_DeleteDomainCommand = se_DeleteDomainCommand;
664
467
  const se_DeleteEnvironmentCommand = async (input, context) => {
665
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
468
+ const b = (0, core_2.requestBuilder)(input, context);
666
469
  const headers = {};
667
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
668
- "/v2/domains/{domainIdentifier}/environments/{identifier}";
669
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
670
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
470
+ b.bp("/v2/domains/{domainIdentifier}/environments/{identifier}");
471
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
472
+ b.p("identifier", () => input.identifier, "{identifier}", false);
671
473
  let body;
672
- return new protocol_http_1.HttpRequest({
673
- protocol,
674
- hostname,
675
- port,
676
- method: "DELETE",
677
- headers,
678
- path: resolvedPath,
679
- body,
680
- });
474
+ b.m("DELETE").h(headers).b(body);
475
+ return b.build();
681
476
  };
682
477
  exports.se_DeleteEnvironmentCommand = se_DeleteEnvironmentCommand;
683
478
  const se_DeleteEnvironmentBlueprintConfigurationCommand = async (input, context) => {
684
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
479
+ const b = (0, core_2.requestBuilder)(input, context);
685
480
  const headers = {};
686
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
687
- "/v2/domains/{domainIdentifier}/environment-blueprint-configurations/{environmentBlueprintIdentifier}";
688
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
689
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentBlueprintIdentifier", () => input.environmentBlueprintIdentifier, "{environmentBlueprintIdentifier}", false);
481
+ b.bp("/v2/domains/{domainIdentifier}/environment-blueprint-configurations/{environmentBlueprintIdentifier}");
482
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
483
+ b.p("environmentBlueprintIdentifier", () => input.environmentBlueprintIdentifier, "{environmentBlueprintIdentifier}", false);
690
484
  let body;
691
- return new protocol_http_1.HttpRequest({
692
- protocol,
693
- hostname,
694
- port,
695
- method: "DELETE",
696
- headers,
697
- path: resolvedPath,
698
- body,
699
- });
485
+ b.m("DELETE").h(headers).b(body);
486
+ return b.build();
700
487
  };
701
488
  exports.se_DeleteEnvironmentBlueprintConfigurationCommand = se_DeleteEnvironmentBlueprintConfigurationCommand;
702
489
  const se_DeleteEnvironmentProfileCommand = async (input, context) => {
703
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
490
+ const b = (0, core_2.requestBuilder)(input, context);
704
491
  const headers = {};
705
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
706
- "/v2/domains/{domainIdentifier}/environment-profiles/{identifier}";
707
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
708
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
492
+ b.bp("/v2/domains/{domainIdentifier}/environment-profiles/{identifier}");
493
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
494
+ b.p("identifier", () => input.identifier, "{identifier}", false);
709
495
  let body;
710
- return new protocol_http_1.HttpRequest({
711
- protocol,
712
- hostname,
713
- port,
714
- method: "DELETE",
715
- headers,
716
- path: resolvedPath,
717
- body,
718
- });
496
+ b.m("DELETE").h(headers).b(body);
497
+ return b.build();
719
498
  };
720
499
  exports.se_DeleteEnvironmentProfileCommand = se_DeleteEnvironmentProfileCommand;
721
500
  const se_DeleteFormTypeCommand = async (input, context) => {
722
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
501
+ const b = (0, core_2.requestBuilder)(input, context);
723
502
  const headers = {};
724
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
725
- "/v2/domains/{domainIdentifier}/form-types/{formTypeIdentifier}";
726
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
727
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "formTypeIdentifier", () => input.formTypeIdentifier, "{formTypeIdentifier}", false);
503
+ b.bp("/v2/domains/{domainIdentifier}/form-types/{formTypeIdentifier}");
504
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
505
+ b.p("formTypeIdentifier", () => input.formTypeIdentifier, "{formTypeIdentifier}", false);
728
506
  let body;
729
- return new protocol_http_1.HttpRequest({
730
- protocol,
731
- hostname,
732
- port,
733
- method: "DELETE",
734
- headers,
735
- path: resolvedPath,
736
- body,
737
- });
507
+ b.m("DELETE").h(headers).b(body);
508
+ return b.build();
738
509
  };
739
510
  exports.se_DeleteFormTypeCommand = se_DeleteFormTypeCommand;
740
511
  const se_DeleteGlossaryCommand = async (input, context) => {
741
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
512
+ const b = (0, core_2.requestBuilder)(input, context);
742
513
  const headers = {};
743
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
744
- "/v2/domains/{domainIdentifier}/glossaries/{identifier}";
745
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
746
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
514
+ b.bp("/v2/domains/{domainIdentifier}/glossaries/{identifier}");
515
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
516
+ b.p("identifier", () => input.identifier, "{identifier}", false);
747
517
  let body;
748
- return new protocol_http_1.HttpRequest({
749
- protocol,
750
- hostname,
751
- port,
752
- method: "DELETE",
753
- headers,
754
- path: resolvedPath,
755
- body,
756
- });
518
+ b.m("DELETE").h(headers).b(body);
519
+ return b.build();
757
520
  };
758
521
  exports.se_DeleteGlossaryCommand = se_DeleteGlossaryCommand;
759
522
  const se_DeleteGlossaryTermCommand = async (input, context) => {
760
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
523
+ const b = (0, core_2.requestBuilder)(input, context);
761
524
  const headers = {};
762
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
763
- "/v2/domains/{domainIdentifier}/glossary-terms/{identifier}";
764
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
765
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
525
+ b.bp("/v2/domains/{domainIdentifier}/glossary-terms/{identifier}");
526
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
527
+ b.p("identifier", () => input.identifier, "{identifier}", false);
766
528
  let body;
767
- return new protocol_http_1.HttpRequest({
768
- protocol,
769
- hostname,
770
- port,
771
- method: "DELETE",
772
- headers,
773
- path: resolvedPath,
774
- body,
775
- });
529
+ b.m("DELETE").h(headers).b(body);
530
+ return b.build();
776
531
  };
777
532
  exports.se_DeleteGlossaryTermCommand = se_DeleteGlossaryTermCommand;
778
533
  const se_DeleteListingCommand = async (input, context) => {
779
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
534
+ const b = (0, core_2.requestBuilder)(input, context);
780
535
  const headers = {};
781
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
782
- "/v2/domains/{domainIdentifier}/listings/{identifier}";
783
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
784
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
536
+ b.bp("/v2/domains/{domainIdentifier}/listings/{identifier}");
537
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
538
+ b.p("identifier", () => input.identifier, "{identifier}", false);
785
539
  let body;
786
- return new protocol_http_1.HttpRequest({
787
- protocol,
788
- hostname,
789
- port,
790
- method: "DELETE",
791
- headers,
792
- path: resolvedPath,
793
- body,
794
- });
540
+ b.m("DELETE").h(headers).b(body);
541
+ return b.build();
795
542
  };
796
543
  exports.se_DeleteListingCommand = se_DeleteListingCommand;
797
544
  const se_DeleteProjectCommand = async (input, context) => {
798
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
545
+ const b = (0, core_2.requestBuilder)(input, context);
799
546
  const headers = {};
800
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
801
- "/v2/domains/{domainIdentifier}/projects/{identifier}";
802
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
803
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
547
+ b.bp("/v2/domains/{domainIdentifier}/projects/{identifier}");
548
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
549
+ b.p("identifier", () => input.identifier, "{identifier}", false);
804
550
  let body;
805
- return new protocol_http_1.HttpRequest({
806
- protocol,
807
- hostname,
808
- port,
809
- method: "DELETE",
810
- headers,
811
- path: resolvedPath,
812
- body,
813
- });
551
+ b.m("DELETE").h(headers).b(body);
552
+ return b.build();
814
553
  };
815
554
  exports.se_DeleteProjectCommand = se_DeleteProjectCommand;
816
555
  const se_DeleteProjectMembershipCommand = async (input, context) => {
817
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
556
+ const b = (0, core_2.requestBuilder)(input, context);
818
557
  const headers = {
819
558
  "content-type": "application/json",
820
559
  };
821
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
822
- "/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/deleteMembership";
823
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
824
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectIdentifier", () => input.projectIdentifier, "{projectIdentifier}", false);
560
+ b.bp("/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/deleteMembership");
561
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
562
+ b.p("projectIdentifier", () => input.projectIdentifier, "{projectIdentifier}", false);
825
563
  let body;
826
564
  body = JSON.stringify((0, smithy_client_1.take)(input, {
827
565
  member: (_) => (0, smithy_client_1._json)(_),
828
566
  }));
829
- return new protocol_http_1.HttpRequest({
830
- protocol,
831
- hostname,
832
- port,
833
- method: "POST",
834
- headers,
835
- path: resolvedPath,
836
- body,
837
- });
567
+ b.m("POST").h(headers).b(body);
568
+ return b.build();
838
569
  };
839
570
  exports.se_DeleteProjectMembershipCommand = se_DeleteProjectMembershipCommand;
840
571
  const se_DeleteSubscriptionGrantCommand = async (input, context) => {
841
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
572
+ const b = (0, core_2.requestBuilder)(input, context);
842
573
  const headers = {};
843
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
844
- "/v2/domains/{domainIdentifier}/subscription-grants/{identifier}";
845
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
846
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
574
+ b.bp("/v2/domains/{domainIdentifier}/subscription-grants/{identifier}");
575
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
576
+ b.p("identifier", () => input.identifier, "{identifier}", false);
847
577
  let body;
848
- return new protocol_http_1.HttpRequest({
849
- protocol,
850
- hostname,
851
- port,
852
- method: "DELETE",
853
- headers,
854
- path: resolvedPath,
855
- body,
856
- });
578
+ b.m("DELETE").h(headers).b(body);
579
+ return b.build();
857
580
  };
858
581
  exports.se_DeleteSubscriptionGrantCommand = se_DeleteSubscriptionGrantCommand;
859
582
  const se_DeleteSubscriptionRequestCommand = async (input, context) => {
860
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
583
+ const b = (0, core_2.requestBuilder)(input, context);
861
584
  const headers = {};
862
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
863
- "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}";
864
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
865
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
585
+ b.bp("/v2/domains/{domainIdentifier}/subscription-requests/{identifier}");
586
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
587
+ b.p("identifier", () => input.identifier, "{identifier}", false);
866
588
  let body;
867
- return new protocol_http_1.HttpRequest({
868
- protocol,
869
- hostname,
870
- port,
871
- method: "DELETE",
872
- headers,
873
- path: resolvedPath,
874
- body,
875
- });
589
+ b.m("DELETE").h(headers).b(body);
590
+ return b.build();
876
591
  };
877
592
  exports.se_DeleteSubscriptionRequestCommand = se_DeleteSubscriptionRequestCommand;
878
593
  const se_DeleteSubscriptionTargetCommand = async (input, context) => {
879
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
594
+ const b = (0, core_2.requestBuilder)(input, context);
880
595
  const headers = {};
881
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
882
- "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}";
883
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
884
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentIdentifier", () => input.environmentIdentifier, "{environmentIdentifier}", false);
885
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
596
+ b.bp("/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}");
597
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
598
+ b.p("environmentIdentifier", () => input.environmentIdentifier, "{environmentIdentifier}", false);
599
+ b.p("identifier", () => input.identifier, "{identifier}", false);
886
600
  let body;
887
- return new protocol_http_1.HttpRequest({
888
- protocol,
889
- hostname,
890
- port,
891
- method: "DELETE",
892
- headers,
893
- path: resolvedPath,
894
- body,
895
- });
601
+ b.m("DELETE").h(headers).b(body);
602
+ return b.build();
896
603
  };
897
604
  exports.se_DeleteSubscriptionTargetCommand = se_DeleteSubscriptionTargetCommand;
898
605
  const se_GetAssetCommand = async (input, context) => {
899
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
606
+ const b = (0, core_2.requestBuilder)(input, context);
900
607
  const headers = {};
901
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
902
- "/v2/domains/{domainIdentifier}/assets/{identifier}";
903
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
904
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
608
+ b.bp("/v2/domains/{domainIdentifier}/assets/{identifier}");
609
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
610
+ b.p("identifier", () => input.identifier, "{identifier}", false);
905
611
  const query = (0, smithy_client_1.map)({
906
- revision: [, input.revision],
612
+ [_r]: [, input[_r]],
907
613
  });
908
614
  let body;
909
- return new protocol_http_1.HttpRequest({
910
- protocol,
911
- hostname,
912
- port,
913
- method: "GET",
914
- headers,
915
- path: resolvedPath,
916
- query,
917
- body,
918
- });
615
+ b.m("GET").h(headers).q(query).b(body);
616
+ return b.build();
919
617
  };
920
618
  exports.se_GetAssetCommand = se_GetAssetCommand;
921
619
  const se_GetAssetTypeCommand = async (input, context) => {
922
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
620
+ const b = (0, core_2.requestBuilder)(input, context);
923
621
  const headers = {};
924
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
925
- "/v2/domains/{domainIdentifier}/asset-types/{identifier}";
926
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
927
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
622
+ b.bp("/v2/domains/{domainIdentifier}/asset-types/{identifier}");
623
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
624
+ b.p("identifier", () => input.identifier, "{identifier}", false);
928
625
  const query = (0, smithy_client_1.map)({
929
- revision: [, input.revision],
626
+ [_r]: [, input[_r]],
930
627
  });
931
628
  let body;
932
- return new protocol_http_1.HttpRequest({
933
- protocol,
934
- hostname,
935
- port,
936
- method: "GET",
937
- headers,
938
- path: resolvedPath,
939
- query,
940
- body,
941
- });
629
+ b.m("GET").h(headers).q(query).b(body);
630
+ return b.build();
942
631
  };
943
632
  exports.se_GetAssetTypeCommand = se_GetAssetTypeCommand;
944
633
  const se_GetDataSourceCommand = async (input, context) => {
945
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
634
+ const b = (0, core_2.requestBuilder)(input, context);
946
635
  const headers = {};
947
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
948
- "/v2/domains/{domainIdentifier}/data-sources/{identifier}";
949
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
950
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
636
+ b.bp("/v2/domains/{domainIdentifier}/data-sources/{identifier}");
637
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
638
+ b.p("identifier", () => input.identifier, "{identifier}", false);
951
639
  let body;
952
- return new protocol_http_1.HttpRequest({
953
- protocol,
954
- hostname,
955
- port,
956
- method: "GET",
957
- headers,
958
- path: resolvedPath,
959
- body,
960
- });
640
+ b.m("GET").h(headers).b(body);
641
+ return b.build();
961
642
  };
962
643
  exports.se_GetDataSourceCommand = se_GetDataSourceCommand;
963
644
  const se_GetDataSourceRunCommand = async (input, context) => {
964
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
645
+ const b = (0, core_2.requestBuilder)(input, context);
965
646
  const headers = {};
966
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
967
- "/v2/domains/{domainIdentifier}/data-source-runs/{identifier}";
968
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
969
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
647
+ b.bp("/v2/domains/{domainIdentifier}/data-source-runs/{identifier}");
648
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
649
+ b.p("identifier", () => input.identifier, "{identifier}", false);
970
650
  let body;
971
- return new protocol_http_1.HttpRequest({
972
- protocol,
973
- hostname,
974
- port,
975
- method: "GET",
976
- headers,
977
- path: resolvedPath,
978
- body,
979
- });
651
+ b.m("GET").h(headers).b(body);
652
+ return b.build();
980
653
  };
981
654
  exports.se_GetDataSourceRunCommand = se_GetDataSourceRunCommand;
982
655
  const se_GetDomainCommand = async (input, context) => {
983
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
656
+ const b = (0, core_2.requestBuilder)(input, context);
984
657
  const headers = {};
985
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{identifier}";
986
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
658
+ b.bp("/v2/domains/{identifier}");
659
+ b.p("identifier", () => input.identifier, "{identifier}", false);
987
660
  let body;
988
- return new protocol_http_1.HttpRequest({
989
- protocol,
990
- hostname,
991
- port,
992
- method: "GET",
993
- headers,
994
- path: resolvedPath,
995
- body,
996
- });
661
+ b.m("GET").h(headers).b(body);
662
+ return b.build();
997
663
  };
998
664
  exports.se_GetDomainCommand = se_GetDomainCommand;
999
665
  const se_GetEnvironmentCommand = async (input, context) => {
1000
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
666
+ const b = (0, core_2.requestBuilder)(input, context);
1001
667
  const headers = {};
1002
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1003
- "/v2/domains/{domainIdentifier}/environments/{identifier}";
1004
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1005
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
668
+ b.bp("/v2/domains/{domainIdentifier}/environments/{identifier}");
669
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
670
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1006
671
  let body;
1007
- return new protocol_http_1.HttpRequest({
1008
- protocol,
1009
- hostname,
1010
- port,
1011
- method: "GET",
1012
- headers,
1013
- path: resolvedPath,
1014
- body,
1015
- });
672
+ b.m("GET").h(headers).b(body);
673
+ return b.build();
1016
674
  };
1017
675
  exports.se_GetEnvironmentCommand = se_GetEnvironmentCommand;
1018
676
  const se_GetEnvironmentBlueprintCommand = async (input, context) => {
1019
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
677
+ const b = (0, core_2.requestBuilder)(input, context);
1020
678
  const headers = {};
1021
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1022
- "/v2/domains/{domainIdentifier}/environment-blueprints/{identifier}";
1023
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1024
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
679
+ b.bp("/v2/domains/{domainIdentifier}/environment-blueprints/{identifier}");
680
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
681
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1025
682
  let body;
1026
- return new protocol_http_1.HttpRequest({
1027
- protocol,
1028
- hostname,
1029
- port,
1030
- method: "GET",
1031
- headers,
1032
- path: resolvedPath,
1033
- body,
1034
- });
683
+ b.m("GET").h(headers).b(body);
684
+ return b.build();
1035
685
  };
1036
686
  exports.se_GetEnvironmentBlueprintCommand = se_GetEnvironmentBlueprintCommand;
1037
687
  const se_GetEnvironmentBlueprintConfigurationCommand = async (input, context) => {
1038
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
688
+ const b = (0, core_2.requestBuilder)(input, context);
1039
689
  const headers = {};
1040
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1041
- "/v2/domains/{domainIdentifier}/environment-blueprint-configurations/{environmentBlueprintIdentifier}";
1042
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1043
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentBlueprintIdentifier", () => input.environmentBlueprintIdentifier, "{environmentBlueprintIdentifier}", false);
690
+ b.bp("/v2/domains/{domainIdentifier}/environment-blueprint-configurations/{environmentBlueprintIdentifier}");
691
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
692
+ b.p("environmentBlueprintIdentifier", () => input.environmentBlueprintIdentifier, "{environmentBlueprintIdentifier}", false);
1044
693
  let body;
1045
- return new protocol_http_1.HttpRequest({
1046
- protocol,
1047
- hostname,
1048
- port,
1049
- method: "GET",
1050
- headers,
1051
- path: resolvedPath,
1052
- body,
1053
- });
694
+ b.m("GET").h(headers).b(body);
695
+ return b.build();
1054
696
  };
1055
697
  exports.se_GetEnvironmentBlueprintConfigurationCommand = se_GetEnvironmentBlueprintConfigurationCommand;
1056
698
  const se_GetEnvironmentProfileCommand = async (input, context) => {
1057
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
699
+ const b = (0, core_2.requestBuilder)(input, context);
1058
700
  const headers = {};
1059
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1060
- "/v2/domains/{domainIdentifier}/environment-profiles/{identifier}";
1061
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1062
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
701
+ b.bp("/v2/domains/{domainIdentifier}/environment-profiles/{identifier}");
702
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
703
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1063
704
  let body;
1064
- return new protocol_http_1.HttpRequest({
1065
- protocol,
1066
- hostname,
1067
- port,
1068
- method: "GET",
1069
- headers,
1070
- path: resolvedPath,
1071
- body,
1072
- });
705
+ b.m("GET").h(headers).b(body);
706
+ return b.build();
1073
707
  };
1074
708
  exports.se_GetEnvironmentProfileCommand = se_GetEnvironmentProfileCommand;
1075
709
  const se_GetFormTypeCommand = async (input, context) => {
1076
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
710
+ const b = (0, core_2.requestBuilder)(input, context);
1077
711
  const headers = {};
1078
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1079
- "/v2/domains/{domainIdentifier}/form-types/{formTypeIdentifier}";
1080
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1081
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "formTypeIdentifier", () => input.formTypeIdentifier, "{formTypeIdentifier}", false);
712
+ b.bp("/v2/domains/{domainIdentifier}/form-types/{formTypeIdentifier}");
713
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
714
+ b.p("formTypeIdentifier", () => input.formTypeIdentifier, "{formTypeIdentifier}", false);
1082
715
  const query = (0, smithy_client_1.map)({
1083
- revision: [, input.revision],
716
+ [_r]: [, input[_r]],
1084
717
  });
1085
718
  let body;
1086
- return new protocol_http_1.HttpRequest({
1087
- protocol,
1088
- hostname,
1089
- port,
1090
- method: "GET",
1091
- headers,
1092
- path: resolvedPath,
1093
- query,
1094
- body,
1095
- });
719
+ b.m("GET").h(headers).q(query).b(body);
720
+ return b.build();
1096
721
  };
1097
722
  exports.se_GetFormTypeCommand = se_GetFormTypeCommand;
1098
723
  const se_GetGlossaryCommand = async (input, context) => {
1099
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
724
+ const b = (0, core_2.requestBuilder)(input, context);
1100
725
  const headers = {};
1101
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1102
- "/v2/domains/{domainIdentifier}/glossaries/{identifier}";
1103
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1104
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
726
+ b.bp("/v2/domains/{domainIdentifier}/glossaries/{identifier}");
727
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
728
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1105
729
  let body;
1106
- return new protocol_http_1.HttpRequest({
1107
- protocol,
1108
- hostname,
1109
- port,
1110
- method: "GET",
1111
- headers,
1112
- path: resolvedPath,
1113
- body,
1114
- });
730
+ b.m("GET").h(headers).b(body);
731
+ return b.build();
1115
732
  };
1116
733
  exports.se_GetGlossaryCommand = se_GetGlossaryCommand;
1117
734
  const se_GetGlossaryTermCommand = async (input, context) => {
1118
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
735
+ const b = (0, core_2.requestBuilder)(input, context);
1119
736
  const headers = {};
1120
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1121
- "/v2/domains/{domainIdentifier}/glossary-terms/{identifier}";
1122
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1123
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
737
+ b.bp("/v2/domains/{domainIdentifier}/glossary-terms/{identifier}");
738
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
739
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1124
740
  let body;
1125
- return new protocol_http_1.HttpRequest({
1126
- protocol,
1127
- hostname,
1128
- port,
1129
- method: "GET",
1130
- headers,
1131
- path: resolvedPath,
1132
- body,
1133
- });
741
+ b.m("GET").h(headers).b(body);
742
+ return b.build();
1134
743
  };
1135
744
  exports.se_GetGlossaryTermCommand = se_GetGlossaryTermCommand;
1136
745
  const se_GetGroupProfileCommand = async (input, context) => {
1137
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
746
+ const b = (0, core_2.requestBuilder)(input, context);
1138
747
  const headers = {};
1139
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1140
- "/v2/domains/{domainIdentifier}/group-profiles/{groupIdentifier}";
1141
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1142
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "groupIdentifier", () => input.groupIdentifier, "{groupIdentifier}", false);
748
+ b.bp("/v2/domains/{domainIdentifier}/group-profiles/{groupIdentifier}");
749
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
750
+ b.p("groupIdentifier", () => input.groupIdentifier, "{groupIdentifier}", false);
1143
751
  let body;
1144
- return new protocol_http_1.HttpRequest({
1145
- protocol,
1146
- hostname,
1147
- port,
1148
- method: "GET",
1149
- headers,
1150
- path: resolvedPath,
1151
- body,
1152
- });
752
+ b.m("GET").h(headers).b(body);
753
+ return b.build();
1153
754
  };
1154
755
  exports.se_GetGroupProfileCommand = se_GetGroupProfileCommand;
1155
756
  const se_GetIamPortalLoginUrlCommand = async (input, context) => {
1156
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
757
+ const b = (0, core_2.requestBuilder)(input, context);
1157
758
  const headers = {};
1158
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1159
- "/v2/domains/{domainIdentifier}/get-portal-login-url";
1160
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
759
+ b.bp("/v2/domains/{domainIdentifier}/get-portal-login-url");
760
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1161
761
  let body;
1162
- return new protocol_http_1.HttpRequest({
1163
- protocol,
1164
- hostname,
1165
- port,
1166
- method: "POST",
1167
- headers,
1168
- path: resolvedPath,
1169
- body,
1170
- });
762
+ b.m("POST").h(headers).b(body);
763
+ return b.build();
1171
764
  };
1172
765
  exports.se_GetIamPortalLoginUrlCommand = se_GetIamPortalLoginUrlCommand;
1173
766
  const se_GetListingCommand = async (input, context) => {
1174
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
767
+ const b = (0, core_2.requestBuilder)(input, context);
1175
768
  const headers = {};
1176
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1177
- "/v2/domains/{domainIdentifier}/listings/{identifier}";
1178
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1179
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
769
+ b.bp("/v2/domains/{domainIdentifier}/listings/{identifier}");
770
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
771
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1180
772
  const query = (0, smithy_client_1.map)({
1181
- listingRevision: [, input.listingRevision],
773
+ [_lR]: [, input[_lR]],
1182
774
  });
1183
775
  let body;
1184
- return new protocol_http_1.HttpRequest({
1185
- protocol,
1186
- hostname,
1187
- port,
1188
- method: "GET",
1189
- headers,
1190
- path: resolvedPath,
1191
- query,
1192
- body,
1193
- });
776
+ b.m("GET").h(headers).q(query).b(body);
777
+ return b.build();
1194
778
  };
1195
779
  exports.se_GetListingCommand = se_GetListingCommand;
1196
780
  const se_GetProjectCommand = async (input, context) => {
1197
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
781
+ const b = (0, core_2.requestBuilder)(input, context);
1198
782
  const headers = {};
1199
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1200
- "/v2/domains/{domainIdentifier}/projects/{identifier}";
1201
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1202
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
783
+ b.bp("/v2/domains/{domainIdentifier}/projects/{identifier}");
784
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
785
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1203
786
  let body;
1204
- return new protocol_http_1.HttpRequest({
1205
- protocol,
1206
- hostname,
1207
- port,
1208
- method: "GET",
1209
- headers,
1210
- path: resolvedPath,
1211
- body,
1212
- });
787
+ b.m("GET").h(headers).b(body);
788
+ return b.build();
1213
789
  };
1214
790
  exports.se_GetProjectCommand = se_GetProjectCommand;
1215
791
  const se_GetSubscriptionCommand = async (input, context) => {
1216
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
792
+ const b = (0, core_2.requestBuilder)(input, context);
1217
793
  const headers = {};
1218
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1219
- "/v2/domains/{domainIdentifier}/subscriptions/{identifier}";
1220
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1221
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
794
+ b.bp("/v2/domains/{domainIdentifier}/subscriptions/{identifier}");
795
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
796
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1222
797
  let body;
1223
- return new protocol_http_1.HttpRequest({
1224
- protocol,
1225
- hostname,
1226
- port,
1227
- method: "GET",
1228
- headers,
1229
- path: resolvedPath,
1230
- body,
1231
- });
798
+ b.m("GET").h(headers).b(body);
799
+ return b.build();
1232
800
  };
1233
801
  exports.se_GetSubscriptionCommand = se_GetSubscriptionCommand;
1234
802
  const se_GetSubscriptionGrantCommand = async (input, context) => {
1235
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
803
+ const b = (0, core_2.requestBuilder)(input, context);
1236
804
  const headers = {};
1237
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1238
- "/v2/domains/{domainIdentifier}/subscription-grants/{identifier}";
1239
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1240
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
805
+ b.bp("/v2/domains/{domainIdentifier}/subscription-grants/{identifier}");
806
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
807
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1241
808
  let body;
1242
- return new protocol_http_1.HttpRequest({
1243
- protocol,
1244
- hostname,
1245
- port,
1246
- method: "GET",
1247
- headers,
1248
- path: resolvedPath,
1249
- body,
1250
- });
809
+ b.m("GET").h(headers).b(body);
810
+ return b.build();
1251
811
  };
1252
812
  exports.se_GetSubscriptionGrantCommand = se_GetSubscriptionGrantCommand;
1253
813
  const se_GetSubscriptionRequestDetailsCommand = async (input, context) => {
1254
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
814
+ const b = (0, core_2.requestBuilder)(input, context);
1255
815
  const headers = {};
1256
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1257
- "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}";
1258
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1259
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
816
+ b.bp("/v2/domains/{domainIdentifier}/subscription-requests/{identifier}");
817
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
818
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1260
819
  let body;
1261
- return new protocol_http_1.HttpRequest({
1262
- protocol,
1263
- hostname,
1264
- port,
1265
- method: "GET",
1266
- headers,
1267
- path: resolvedPath,
1268
- body,
1269
- });
820
+ b.m("GET").h(headers).b(body);
821
+ return b.build();
1270
822
  };
1271
823
  exports.se_GetSubscriptionRequestDetailsCommand = se_GetSubscriptionRequestDetailsCommand;
1272
824
  const se_GetSubscriptionTargetCommand = async (input, context) => {
1273
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
825
+ const b = (0, core_2.requestBuilder)(input, context);
1274
826
  const headers = {};
1275
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1276
- "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}";
1277
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1278
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentIdentifier", () => input.environmentIdentifier, "{environmentIdentifier}", false);
1279
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
827
+ b.bp("/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}");
828
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
829
+ b.p("environmentIdentifier", () => input.environmentIdentifier, "{environmentIdentifier}", false);
830
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1280
831
  let body;
1281
- return new protocol_http_1.HttpRequest({
1282
- protocol,
1283
- hostname,
1284
- port,
1285
- method: "GET",
1286
- headers,
1287
- path: resolvedPath,
1288
- body,
1289
- });
832
+ b.m("GET").h(headers).b(body);
833
+ return b.build();
1290
834
  };
1291
835
  exports.se_GetSubscriptionTargetCommand = se_GetSubscriptionTargetCommand;
1292
836
  const se_GetUserProfileCommand = async (input, context) => {
1293
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
837
+ const b = (0, core_2.requestBuilder)(input, context);
1294
838
  const headers = {};
1295
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1296
- "/v2/domains/{domainIdentifier}/user-profiles/{userIdentifier}";
1297
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1298
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userIdentifier", () => input.userIdentifier, "{userIdentifier}", false);
839
+ b.bp("/v2/domains/{domainIdentifier}/user-profiles/{userIdentifier}");
840
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
841
+ b.p("userIdentifier", () => input.userIdentifier, "{userIdentifier}", false);
1299
842
  const query = (0, smithy_client_1.map)({
1300
- type: [, input.type],
843
+ [_t]: [, input[_t]],
1301
844
  });
1302
845
  let body;
1303
- return new protocol_http_1.HttpRequest({
1304
- protocol,
1305
- hostname,
1306
- port,
1307
- method: "GET",
1308
- headers,
1309
- path: resolvedPath,
1310
- query,
1311
- body,
1312
- });
846
+ b.m("GET").h(headers).q(query).b(body);
847
+ return b.build();
1313
848
  };
1314
849
  exports.se_GetUserProfileCommand = se_GetUserProfileCommand;
1315
850
  const se_ListAssetRevisionsCommand = async (input, context) => {
1316
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
851
+ const b = (0, core_2.requestBuilder)(input, context);
1317
852
  const headers = {};
1318
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1319
- "/v2/domains/{domainIdentifier}/assets/{identifier}/revisions";
1320
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1321
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
853
+ b.bp("/v2/domains/{domainIdentifier}/assets/{identifier}/revisions");
854
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
855
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1322
856
  const query = (0, smithy_client_1.map)({
1323
- nextToken: [, input.nextToken],
1324
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
857
+ [_nT]: [, input[_nT]],
858
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1325
859
  });
1326
860
  let body;
1327
- return new protocol_http_1.HttpRequest({
1328
- protocol,
1329
- hostname,
1330
- port,
1331
- method: "GET",
1332
- headers,
1333
- path: resolvedPath,
1334
- query,
1335
- body,
1336
- });
861
+ b.m("GET").h(headers).q(query).b(body);
862
+ return b.build();
1337
863
  };
1338
864
  exports.se_ListAssetRevisionsCommand = se_ListAssetRevisionsCommand;
1339
865
  const se_ListDataSourceRunActivitiesCommand = async (input, context) => {
1340
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
866
+ const b = (0, core_2.requestBuilder)(input, context);
1341
867
  const headers = {};
1342
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1343
- "/v2/domains/{domainIdentifier}/data-source-runs/{identifier}/activities";
1344
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1345
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
868
+ b.bp("/v2/domains/{domainIdentifier}/data-source-runs/{identifier}/activities");
869
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
870
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1346
871
  const query = (0, smithy_client_1.map)({
1347
- status: [, input.status],
1348
- nextToken: [, input.nextToken],
1349
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
872
+ [_s]: [, input[_s]],
873
+ [_nT]: [, input[_nT]],
874
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1350
875
  });
1351
876
  let body;
1352
- return new protocol_http_1.HttpRequest({
1353
- protocol,
1354
- hostname,
1355
- port,
1356
- method: "GET",
1357
- headers,
1358
- path: resolvedPath,
1359
- query,
1360
- body,
1361
- });
877
+ b.m("GET").h(headers).q(query).b(body);
878
+ return b.build();
1362
879
  };
1363
880
  exports.se_ListDataSourceRunActivitiesCommand = se_ListDataSourceRunActivitiesCommand;
1364
881
  const se_ListDataSourceRunsCommand = async (input, context) => {
1365
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
882
+ const b = (0, core_2.requestBuilder)(input, context);
1366
883
  const headers = {};
1367
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1368
- "/v2/domains/{domainIdentifier}/data-sources/{dataSourceIdentifier}/runs";
1369
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1370
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataSourceIdentifier", () => input.dataSourceIdentifier, "{dataSourceIdentifier}", false);
884
+ b.bp("/v2/domains/{domainIdentifier}/data-sources/{dataSourceIdentifier}/runs");
885
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
886
+ b.p("dataSourceIdentifier", () => input.dataSourceIdentifier, "{dataSourceIdentifier}", false);
1371
887
  const query = (0, smithy_client_1.map)({
1372
- status: [, input.status],
1373
- nextToken: [, input.nextToken],
1374
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
888
+ [_s]: [, input[_s]],
889
+ [_nT]: [, input[_nT]],
890
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1375
891
  });
1376
892
  let body;
1377
- return new protocol_http_1.HttpRequest({
1378
- protocol,
1379
- hostname,
1380
- port,
1381
- method: "GET",
1382
- headers,
1383
- path: resolvedPath,
1384
- query,
1385
- body,
1386
- });
893
+ b.m("GET").h(headers).q(query).b(body);
894
+ return b.build();
1387
895
  };
1388
896
  exports.se_ListDataSourceRunsCommand = se_ListDataSourceRunsCommand;
1389
897
  const se_ListDataSourcesCommand = async (input, context) => {
1390
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
898
+ const b = (0, core_2.requestBuilder)(input, context);
1391
899
  const headers = {};
1392
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1393
- "/v2/domains/{domainIdentifier}/data-sources";
1394
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
900
+ b.bp("/v2/domains/{domainIdentifier}/data-sources");
901
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1395
902
  const query = (0, smithy_client_1.map)({
1396
- projectIdentifier: [, (0, smithy_client_1.expectNonNull)(input.projectIdentifier, `projectIdentifier`)],
1397
- environmentIdentifier: [, input.environmentIdentifier],
1398
- type: [, input.type],
1399
- status: [, input.status],
1400
- name: [, input.name],
1401
- nextToken: [, input.nextToken],
1402
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
903
+ [_pI]: [, (0, smithy_client_1.expectNonNull)(input[_pI], `projectIdentifier`)],
904
+ [_eI]: [, input[_eI]],
905
+ [_t]: [, input[_t]],
906
+ [_s]: [, input[_s]],
907
+ [_n]: [, input[_n]],
908
+ [_nT]: [, input[_nT]],
909
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1403
910
  });
1404
911
  let body;
1405
- return new protocol_http_1.HttpRequest({
1406
- protocol,
1407
- hostname,
1408
- port,
1409
- method: "GET",
1410
- headers,
1411
- path: resolvedPath,
1412
- query,
1413
- body,
1414
- });
912
+ b.m("GET").h(headers).q(query).b(body);
913
+ return b.build();
1415
914
  };
1416
915
  exports.se_ListDataSourcesCommand = se_ListDataSourcesCommand;
1417
916
  const se_ListDomainsCommand = async (input, context) => {
1418
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
917
+ const b = (0, core_2.requestBuilder)(input, context);
1419
918
  const headers = {};
1420
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains";
919
+ b.bp("/v2/domains");
1421
920
  const query = (0, smithy_client_1.map)({
1422
- status: [, input.status],
1423
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1424
- nextToken: [, input.nextToken],
921
+ [_s]: [, input[_s]],
922
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
923
+ [_nT]: [, input[_nT]],
1425
924
  });
1426
925
  let body;
1427
- return new protocol_http_1.HttpRequest({
1428
- protocol,
1429
- hostname,
1430
- port,
1431
- method: "GET",
1432
- headers,
1433
- path: resolvedPath,
1434
- query,
1435
- body,
1436
- });
926
+ b.m("GET").h(headers).q(query).b(body);
927
+ return b.build();
1437
928
  };
1438
929
  exports.se_ListDomainsCommand = se_ListDomainsCommand;
1439
930
  const se_ListEnvironmentBlueprintConfigurationsCommand = async (input, context) => {
1440
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
931
+ const b = (0, core_2.requestBuilder)(input, context);
1441
932
  const headers = {};
1442
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1443
- "/v2/domains/{domainIdentifier}/environment-blueprint-configurations";
1444
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
933
+ b.bp("/v2/domains/{domainIdentifier}/environment-blueprint-configurations");
934
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1445
935
  const query = (0, smithy_client_1.map)({
1446
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1447
- nextToken: [, input.nextToken],
936
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
937
+ [_nT]: [, input[_nT]],
1448
938
  });
1449
939
  let body;
1450
- return new protocol_http_1.HttpRequest({
1451
- protocol,
1452
- hostname,
1453
- port,
1454
- method: "GET",
1455
- headers,
1456
- path: resolvedPath,
1457
- query,
1458
- body,
1459
- });
940
+ b.m("GET").h(headers).q(query).b(body);
941
+ return b.build();
1460
942
  };
1461
943
  exports.se_ListEnvironmentBlueprintConfigurationsCommand = se_ListEnvironmentBlueprintConfigurationsCommand;
1462
944
  const se_ListEnvironmentBlueprintsCommand = async (input, context) => {
1463
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
945
+ const b = (0, core_2.requestBuilder)(input, context);
1464
946
  const headers = {};
1465
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1466
- "/v2/domains/{domainIdentifier}/environment-blueprints";
1467
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
947
+ b.bp("/v2/domains/{domainIdentifier}/environment-blueprints");
948
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1468
949
  const query = (0, smithy_client_1.map)({
1469
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1470
- nextToken: [, input.nextToken],
1471
- name: [, input.name],
1472
- managed: [() => input.managed !== void 0, () => input.managed.toString()],
950
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
951
+ [_nT]: [, input[_nT]],
952
+ [_n]: [, input[_n]],
953
+ [_m]: [() => input.managed !== void 0, () => input[_m].toString()],
1473
954
  });
1474
955
  let body;
1475
- return new protocol_http_1.HttpRequest({
1476
- protocol,
1477
- hostname,
1478
- port,
1479
- method: "GET",
1480
- headers,
1481
- path: resolvedPath,
1482
- query,
1483
- body,
1484
- });
956
+ b.m("GET").h(headers).q(query).b(body);
957
+ return b.build();
1485
958
  };
1486
959
  exports.se_ListEnvironmentBlueprintsCommand = se_ListEnvironmentBlueprintsCommand;
1487
960
  const se_ListEnvironmentProfilesCommand = async (input, context) => {
1488
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
961
+ const b = (0, core_2.requestBuilder)(input, context);
1489
962
  const headers = {};
1490
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1491
- "/v2/domains/{domainIdentifier}/environment-profiles";
1492
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
963
+ b.bp("/v2/domains/{domainIdentifier}/environment-profiles");
964
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1493
965
  const query = (0, smithy_client_1.map)({
1494
- awsAccountId: [, input.awsAccountId],
1495
- awsAccountRegion: [, input.awsAccountRegion],
1496
- environmentBlueprintIdentifier: [, input.environmentBlueprintIdentifier],
1497
- projectIdentifier: [, input.projectIdentifier],
1498
- name: [, input.name],
1499
- nextToken: [, input.nextToken],
1500
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
966
+ [_aAI]: [, input[_aAI]],
967
+ [_aAR]: [, input[_aAR]],
968
+ [_eBI]: [, input[_eBI]],
969
+ [_pI]: [, input[_pI]],
970
+ [_n]: [, input[_n]],
971
+ [_nT]: [, input[_nT]],
972
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1501
973
  });
1502
974
  let body;
1503
- return new protocol_http_1.HttpRequest({
1504
- protocol,
1505
- hostname,
1506
- port,
1507
- method: "GET",
1508
- headers,
1509
- path: resolvedPath,
1510
- query,
1511
- body,
1512
- });
975
+ b.m("GET").h(headers).q(query).b(body);
976
+ return b.build();
1513
977
  };
1514
978
  exports.se_ListEnvironmentProfilesCommand = se_ListEnvironmentProfilesCommand;
1515
979
  const se_ListEnvironmentsCommand = async (input, context) => {
1516
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
980
+ const b = (0, core_2.requestBuilder)(input, context);
1517
981
  const headers = {};
1518
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1519
- "/v2/domains/{domainIdentifier}/environments";
1520
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
982
+ b.bp("/v2/domains/{domainIdentifier}/environments");
983
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1521
984
  const query = (0, smithy_client_1.map)({
1522
- awsAccountId: [, input.awsAccountId],
1523
- status: [, input.status],
1524
- awsAccountRegion: [, input.awsAccountRegion],
1525
- projectIdentifier: [, (0, smithy_client_1.expectNonNull)(input.projectIdentifier, `projectIdentifier`)],
1526
- environmentProfileIdentifier: [, input.environmentProfileIdentifier],
1527
- environmentBlueprintIdentifier: [, input.environmentBlueprintIdentifier],
1528
- provider: [, input.provider],
1529
- name: [, input.name],
1530
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1531
- nextToken: [, input.nextToken],
985
+ [_aAI]: [, input[_aAI]],
986
+ [_s]: [, input[_s]],
987
+ [_aAR]: [, input[_aAR]],
988
+ [_pI]: [, (0, smithy_client_1.expectNonNull)(input[_pI], `projectIdentifier`)],
989
+ [_ePI]: [, input[_ePI]],
990
+ [_eBI]: [, input[_eBI]],
991
+ [_p]: [, input[_p]],
992
+ [_n]: [, input[_n]],
993
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
994
+ [_nT]: [, input[_nT]],
1532
995
  });
1533
996
  let body;
1534
- return new protocol_http_1.HttpRequest({
1535
- protocol,
1536
- hostname,
1537
- port,
1538
- method: "GET",
1539
- headers,
1540
- path: resolvedPath,
1541
- query,
1542
- body,
1543
- });
997
+ b.m("GET").h(headers).q(query).b(body);
998
+ return b.build();
1544
999
  };
1545
1000
  exports.se_ListEnvironmentsCommand = se_ListEnvironmentsCommand;
1546
1001
  const se_ListNotificationsCommand = async (input, context) => {
1547
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1002
+ const b = (0, core_2.requestBuilder)(input, context);
1548
1003
  const headers = {};
1549
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1550
- "/v2/domains/{domainIdentifier}/notifications";
1551
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1004
+ b.bp("/v2/domains/{domainIdentifier}/notifications");
1005
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1552
1006
  const query = (0, smithy_client_1.map)({
1553
- type: [, (0, smithy_client_1.expectNonNull)(input.type, `type`)],
1554
- afterTimestamp: [
1555
- () => input.afterTimestamp !== void 0,
1556
- () => (input.afterTimestamp.toISOString().split(".")[0] + "Z").toString(),
1557
- ],
1558
- beforeTimestamp: [
1559
- () => input.beforeTimestamp !== void 0,
1560
- () => (input.beforeTimestamp.toISOString().split(".")[0] + "Z").toString(),
1561
- ],
1562
- subjects: [() => input.subjects !== void 0, () => (input.subjects || []).map((_entry) => _entry)],
1563
- taskStatus: [, input.taskStatus],
1564
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1565
- nextToken: [, input.nextToken],
1007
+ [_t]: [, (0, smithy_client_1.expectNonNull)(input[_t], `type`)],
1008
+ [_aT]: [() => input.afterTimestamp !== void 0, () => (input[_aT].toISOString().split(".")[0] + "Z").toString()],
1009
+ [_bT]: [() => input.beforeTimestamp !== void 0, () => (input[_bT].toISOString().split(".")[0] + "Z").toString()],
1010
+ [_su]: [() => input.subjects !== void 0, () => (input[_su] || []).map((_entry) => _entry)],
1011
+ [_tS]: [, input[_tS]],
1012
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1013
+ [_nT]: [, input[_nT]],
1566
1014
  });
1567
1015
  let body;
1568
- return new protocol_http_1.HttpRequest({
1569
- protocol,
1570
- hostname,
1571
- port,
1572
- method: "GET",
1573
- headers,
1574
- path: resolvedPath,
1575
- query,
1576
- body,
1577
- });
1016
+ b.m("GET").h(headers).q(query).b(body);
1017
+ return b.build();
1578
1018
  };
1579
1019
  exports.se_ListNotificationsCommand = se_ListNotificationsCommand;
1580
1020
  const se_ListProjectMembershipsCommand = async (input, context) => {
1581
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1021
+ const b = (0, core_2.requestBuilder)(input, context);
1582
1022
  const headers = {};
1583
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1584
- "/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/memberships";
1585
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1586
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectIdentifier", () => input.projectIdentifier, "{projectIdentifier}", false);
1023
+ b.bp("/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/memberships");
1024
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1025
+ b.p("projectIdentifier", () => input.projectIdentifier, "{projectIdentifier}", false);
1587
1026
  const query = (0, smithy_client_1.map)({
1588
- sortBy: [, input.sortBy],
1589
- sortOrder: [, input.sortOrder],
1590
- nextToken: [, input.nextToken],
1591
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1027
+ [_sB]: [, input[_sB]],
1028
+ [_sO]: [, input[_sO]],
1029
+ [_nT]: [, input[_nT]],
1030
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1592
1031
  });
1593
1032
  let body;
1594
- return new protocol_http_1.HttpRequest({
1595
- protocol,
1596
- hostname,
1597
- port,
1598
- method: "GET",
1599
- headers,
1600
- path: resolvedPath,
1601
- query,
1602
- body,
1603
- });
1033
+ b.m("GET").h(headers).q(query).b(body);
1034
+ return b.build();
1604
1035
  };
1605
1036
  exports.se_ListProjectMembershipsCommand = se_ListProjectMembershipsCommand;
1606
1037
  const se_ListProjectsCommand = async (input, context) => {
1607
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1038
+ const b = (0, core_2.requestBuilder)(input, context);
1608
1039
  const headers = {};
1609
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{domainIdentifier}/projects";
1610
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1040
+ b.bp("/v2/domains/{domainIdentifier}/projects");
1041
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1611
1042
  const query = (0, smithy_client_1.map)({
1612
- userIdentifier: [, input.userIdentifier],
1613
- groupIdentifier: [, input.groupIdentifier],
1614
- name: [, input.name],
1615
- nextToken: [, input.nextToken],
1616
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1043
+ [_uI]: [, input[_uI]],
1044
+ [_gI]: [, input[_gI]],
1045
+ [_n]: [, input[_n]],
1046
+ [_nT]: [, input[_nT]],
1047
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1617
1048
  });
1618
1049
  let body;
1619
- return new protocol_http_1.HttpRequest({
1620
- protocol,
1621
- hostname,
1622
- port,
1623
- method: "GET",
1624
- headers,
1625
- path: resolvedPath,
1626
- query,
1627
- body,
1628
- });
1050
+ b.m("GET").h(headers).q(query).b(body);
1051
+ return b.build();
1629
1052
  };
1630
1053
  exports.se_ListProjectsCommand = se_ListProjectsCommand;
1631
1054
  const se_ListSubscriptionGrantsCommand = async (input, context) => {
1632
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1055
+ const b = (0, core_2.requestBuilder)(input, context);
1633
1056
  const headers = {};
1634
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1635
- "/v2/domains/{domainIdentifier}/subscription-grants";
1636
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1057
+ b.bp("/v2/domains/{domainIdentifier}/subscription-grants");
1058
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1637
1059
  const query = (0, smithy_client_1.map)({
1638
- environmentId: [, input.environmentId],
1639
- subscriptionTargetId: [, input.subscriptionTargetId],
1640
- subscribedListingId: [, input.subscribedListingId],
1641
- subscriptionId: [, input.subscriptionId],
1642
- sortBy: [, input.sortBy],
1643
- sortOrder: [, input.sortOrder],
1644
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1645
- nextToken: [, input.nextToken],
1060
+ [_eIn]: [, input[_eIn]],
1061
+ [_sTI]: [, input[_sTI]],
1062
+ [_sLI]: [, input[_sLI]],
1063
+ [_sI]: [, input[_sI]],
1064
+ [_sB]: [, input[_sB]],
1065
+ [_sO]: [, input[_sO]],
1066
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1067
+ [_nT]: [, input[_nT]],
1646
1068
  });
1647
1069
  let body;
1648
- return new protocol_http_1.HttpRequest({
1649
- protocol,
1650
- hostname,
1651
- port,
1652
- method: "GET",
1653
- headers,
1654
- path: resolvedPath,
1655
- query,
1656
- body,
1657
- });
1070
+ b.m("GET").h(headers).q(query).b(body);
1071
+ return b.build();
1658
1072
  };
1659
1073
  exports.se_ListSubscriptionGrantsCommand = se_ListSubscriptionGrantsCommand;
1660
1074
  const se_ListSubscriptionRequestsCommand = async (input, context) => {
1661
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1075
+ const b = (0, core_2.requestBuilder)(input, context);
1662
1076
  const headers = {};
1663
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1664
- "/v2/domains/{domainIdentifier}/subscription-requests";
1665
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1077
+ b.bp("/v2/domains/{domainIdentifier}/subscription-requests");
1078
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1666
1079
  const query = (0, smithy_client_1.map)({
1667
- status: [, input.status],
1668
- subscribedListingId: [, input.subscribedListingId],
1669
- owningProjectId: [, input.owningProjectId],
1670
- approverProjectId: [, input.approverProjectId],
1671
- sortBy: [, input.sortBy],
1672
- sortOrder: [, input.sortOrder],
1673
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1674
- nextToken: [, input.nextToken],
1080
+ [_s]: [, input[_s]],
1081
+ [_sLI]: [, input[_sLI]],
1082
+ [_oPI]: [, input[_oPI]],
1083
+ [_aPI]: [, input[_aPI]],
1084
+ [_sB]: [, input[_sB]],
1085
+ [_sO]: [, input[_sO]],
1086
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1087
+ [_nT]: [, input[_nT]],
1675
1088
  });
1676
1089
  let body;
1677
- return new protocol_http_1.HttpRequest({
1678
- protocol,
1679
- hostname,
1680
- port,
1681
- method: "GET",
1682
- headers,
1683
- path: resolvedPath,
1684
- query,
1685
- body,
1686
- });
1090
+ b.m("GET").h(headers).q(query).b(body);
1091
+ return b.build();
1687
1092
  };
1688
1093
  exports.se_ListSubscriptionRequestsCommand = se_ListSubscriptionRequestsCommand;
1689
1094
  const se_ListSubscriptionsCommand = async (input, context) => {
1690
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1095
+ const b = (0, core_2.requestBuilder)(input, context);
1691
1096
  const headers = {};
1692
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1693
- "/v2/domains/{domainIdentifier}/subscriptions";
1694
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1097
+ b.bp("/v2/domains/{domainIdentifier}/subscriptions");
1098
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1695
1099
  const query = (0, smithy_client_1.map)({
1696
- subscriptionRequestIdentifier: [, input.subscriptionRequestIdentifier],
1697
- status: [, input.status],
1698
- subscribedListingId: [, input.subscribedListingId],
1699
- owningProjectId: [, input.owningProjectId],
1700
- approverProjectId: [, input.approverProjectId],
1701
- sortBy: [, input.sortBy],
1702
- sortOrder: [, input.sortOrder],
1703
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1704
- nextToken: [, input.nextToken],
1100
+ [_sRI]: [, input[_sRI]],
1101
+ [_s]: [, input[_s]],
1102
+ [_sLI]: [, input[_sLI]],
1103
+ [_oPI]: [, input[_oPI]],
1104
+ [_aPI]: [, input[_aPI]],
1105
+ [_sB]: [, input[_sB]],
1106
+ [_sO]: [, input[_sO]],
1107
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1108
+ [_nT]: [, input[_nT]],
1705
1109
  });
1706
1110
  let body;
1707
- return new protocol_http_1.HttpRequest({
1708
- protocol,
1709
- hostname,
1710
- port,
1711
- method: "GET",
1712
- headers,
1713
- path: resolvedPath,
1714
- query,
1715
- body,
1716
- });
1111
+ b.m("GET").h(headers).q(query).b(body);
1112
+ return b.build();
1717
1113
  };
1718
1114
  exports.se_ListSubscriptionsCommand = se_ListSubscriptionsCommand;
1719
1115
  const se_ListSubscriptionTargetsCommand = async (input, context) => {
1720
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1116
+ const b = (0, core_2.requestBuilder)(input, context);
1721
1117
  const headers = {};
1722
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1723
- "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets";
1724
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1725
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentIdentifier", () => input.environmentIdentifier, "{environmentIdentifier}", false);
1118
+ b.bp("/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets");
1119
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1120
+ b.p("environmentIdentifier", () => input.environmentIdentifier, "{environmentIdentifier}", false);
1726
1121
  const query = (0, smithy_client_1.map)({
1727
- sortBy: [, input.sortBy],
1728
- sortOrder: [, input.sortOrder],
1729
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1730
- nextToken: [, input.nextToken],
1122
+ [_sB]: [, input[_sB]],
1123
+ [_sO]: [, input[_sO]],
1124
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1125
+ [_nT]: [, input[_nT]],
1731
1126
  });
1732
1127
  let body;
1733
- return new protocol_http_1.HttpRequest({
1734
- protocol,
1735
- hostname,
1736
- port,
1737
- method: "GET",
1738
- headers,
1739
- path: resolvedPath,
1740
- query,
1741
- body,
1742
- });
1128
+ b.m("GET").h(headers).q(query).b(body);
1129
+ return b.build();
1743
1130
  };
1744
1131
  exports.se_ListSubscriptionTargetsCommand = se_ListSubscriptionTargetsCommand;
1745
1132
  const se_ListTagsForResourceCommand = async (input, context) => {
1746
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1133
+ const b = (0, core_2.requestBuilder)(input, context);
1747
1134
  const headers = {};
1748
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1749
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1135
+ b.bp("/tags/{resourceArn}");
1136
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1750
1137
  let body;
1751
- return new protocol_http_1.HttpRequest({
1752
- protocol,
1753
- hostname,
1754
- port,
1755
- method: "GET",
1756
- headers,
1757
- path: resolvedPath,
1758
- body,
1759
- });
1138
+ b.m("GET").h(headers).b(body);
1139
+ return b.build();
1760
1140
  };
1761
1141
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1762
1142
  const se_PutEnvironmentBlueprintConfigurationCommand = async (input, context) => {
1763
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1143
+ const b = (0, core_2.requestBuilder)(input, context);
1764
1144
  const headers = {
1765
1145
  "content-type": "application/json",
1766
1146
  };
1767
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1768
- "/v2/domains/{domainIdentifier}/environment-blueprint-configurations/{environmentBlueprintIdentifier}";
1769
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1770
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentBlueprintIdentifier", () => input.environmentBlueprintIdentifier, "{environmentBlueprintIdentifier}", false);
1147
+ b.bp("/v2/domains/{domainIdentifier}/environment-blueprint-configurations/{environmentBlueprintIdentifier}");
1148
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1149
+ b.p("environmentBlueprintIdentifier", () => input.environmentBlueprintIdentifier, "{environmentBlueprintIdentifier}", false);
1771
1150
  let body;
1772
1151
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1773
1152
  enabledRegions: (_) => (0, smithy_client_1._json)(_),
@@ -1775,28 +1154,20 @@ const se_PutEnvironmentBlueprintConfigurationCommand = async (input, context) =>
1775
1154
  provisioningRoleArn: [],
1776
1155
  regionalParameters: (_) => (0, smithy_client_1._json)(_),
1777
1156
  }));
1778
- return new protocol_http_1.HttpRequest({
1779
- protocol,
1780
- hostname,
1781
- port,
1782
- method: "PUT",
1783
- headers,
1784
- path: resolvedPath,
1785
- body,
1786
- });
1157
+ b.m("PUT").h(headers).b(body);
1158
+ return b.build();
1787
1159
  };
1788
1160
  exports.se_PutEnvironmentBlueprintConfigurationCommand = se_PutEnvironmentBlueprintConfigurationCommand;
1789
1161
  const se_RejectPredictionsCommand = async (input, context) => {
1790
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1162
+ const b = (0, core_2.requestBuilder)(input, context);
1791
1163
  const headers = {
1792
1164
  "content-type": "application/json",
1793
1165
  };
1794
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1795
- "/v2/domains/{domainIdentifier}/assets/{identifier}/reject-predictions";
1796
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1797
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
1166
+ b.bp("/v2/domains/{domainIdentifier}/assets/{identifier}/reject-predictions");
1167
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1168
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1798
1169
  const query = (0, smithy_client_1.map)({
1799
- revision: [, input.revision],
1170
+ [_r]: [, input[_r]],
1800
1171
  });
1801
1172
  let body;
1802
1173
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1804,73 +1175,49 @@ const se_RejectPredictionsCommand = async (input, context) => {
1804
1175
  rejectChoices: (_) => (0, smithy_client_1._json)(_),
1805
1176
  rejectRule: (_) => se_RejectRule(_, context),
1806
1177
  }));
1807
- return new protocol_http_1.HttpRequest({
1808
- protocol,
1809
- hostname,
1810
- port,
1811
- method: "PUT",
1812
- headers,
1813
- path: resolvedPath,
1814
- query,
1815
- body,
1816
- });
1178
+ b.m("PUT").h(headers).q(query).b(body);
1179
+ return b.build();
1817
1180
  };
1818
1181
  exports.se_RejectPredictionsCommand = se_RejectPredictionsCommand;
1819
1182
  const se_RejectSubscriptionRequestCommand = async (input, context) => {
1820
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1183
+ const b = (0, core_2.requestBuilder)(input, context);
1821
1184
  const headers = {
1822
1185
  "content-type": "application/json",
1823
1186
  };
1824
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1825
- "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}/reject";
1826
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1827
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
1187
+ b.bp("/v2/domains/{domainIdentifier}/subscription-requests/{identifier}/reject");
1188
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1189
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1828
1190
  let body;
1829
1191
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1830
1192
  decisionComment: [],
1831
1193
  }));
1832
- return new protocol_http_1.HttpRequest({
1833
- protocol,
1834
- hostname,
1835
- port,
1836
- method: "PUT",
1837
- headers,
1838
- path: resolvedPath,
1839
- body,
1840
- });
1194
+ b.m("PUT").h(headers).b(body);
1195
+ return b.build();
1841
1196
  };
1842
1197
  exports.se_RejectSubscriptionRequestCommand = se_RejectSubscriptionRequestCommand;
1843
1198
  const se_RevokeSubscriptionCommand = async (input, context) => {
1844
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1199
+ const b = (0, core_2.requestBuilder)(input, context);
1845
1200
  const headers = {
1846
1201
  "content-type": "application/json",
1847
1202
  };
1848
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1849
- "/v2/domains/{domainIdentifier}/subscriptions/{identifier}/revoke";
1850
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1851
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
1203
+ b.bp("/v2/domains/{domainIdentifier}/subscriptions/{identifier}/revoke");
1204
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1205
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1852
1206
  let body;
1853
1207
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1854
1208
  retainPermissions: [],
1855
1209
  }));
1856
- return new protocol_http_1.HttpRequest({
1857
- protocol,
1858
- hostname,
1859
- port,
1860
- method: "PUT",
1861
- headers,
1862
- path: resolvedPath,
1863
- body,
1864
- });
1210
+ b.m("PUT").h(headers).b(body);
1211
+ return b.build();
1865
1212
  };
1866
1213
  exports.se_RevokeSubscriptionCommand = se_RevokeSubscriptionCommand;
1867
1214
  const se_SearchCommand = async (input, context) => {
1868
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1215
+ const b = (0, core_2.requestBuilder)(input, context);
1869
1216
  const headers = {
1870
1217
  "content-type": "application/json",
1871
1218
  };
1872
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{domainIdentifier}/search";
1873
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1219
+ b.bp("/v2/domains/{domainIdentifier}/search");
1220
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1874
1221
  let body;
1875
1222
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1876
1223
  additionalAttributes: (_) => (0, smithy_client_1._json)(_),
@@ -1883,25 +1230,17 @@ const se_SearchCommand = async (input, context) => {
1883
1230
  searchText: [],
1884
1231
  sort: (_) => (0, smithy_client_1._json)(_),
1885
1232
  }));
1886
- return new protocol_http_1.HttpRequest({
1887
- protocol,
1888
- hostname,
1889
- port,
1890
- method: "POST",
1891
- headers,
1892
- path: resolvedPath,
1893
- body,
1894
- });
1233
+ b.m("POST").h(headers).b(body);
1234
+ return b.build();
1895
1235
  };
1896
1236
  exports.se_SearchCommand = se_SearchCommand;
1897
1237
  const se_SearchGroupProfilesCommand = async (input, context) => {
1898
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1238
+ const b = (0, core_2.requestBuilder)(input, context);
1899
1239
  const headers = {
1900
1240
  "content-type": "application/json",
1901
1241
  };
1902
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1903
- "/v2/domains/{domainIdentifier}/search-group-profiles";
1904
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1242
+ b.bp("/v2/domains/{domainIdentifier}/search-group-profiles");
1243
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1905
1244
  let body;
1906
1245
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1907
1246
  groupType: [],
@@ -1909,25 +1248,17 @@ const se_SearchGroupProfilesCommand = async (input, context) => {
1909
1248
  nextToken: [],
1910
1249
  searchText: [],
1911
1250
  }));
1912
- return new protocol_http_1.HttpRequest({
1913
- protocol,
1914
- hostname,
1915
- port,
1916
- method: "POST",
1917
- headers,
1918
- path: resolvedPath,
1919
- body,
1920
- });
1251
+ b.m("POST").h(headers).b(body);
1252
+ return b.build();
1921
1253
  };
1922
1254
  exports.se_SearchGroupProfilesCommand = se_SearchGroupProfilesCommand;
1923
1255
  const se_SearchListingsCommand = async (input, context) => {
1924
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1256
+ const b = (0, core_2.requestBuilder)(input, context);
1925
1257
  const headers = {
1926
1258
  "content-type": "application/json",
1927
1259
  };
1928
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1929
- "/v2/domains/{domainIdentifier}/listings/search";
1930
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1260
+ b.bp("/v2/domains/{domainIdentifier}/listings/search");
1261
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1931
1262
  let body;
1932
1263
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1933
1264
  additionalAttributes: (_) => (0, smithy_client_1._json)(_),
@@ -1938,25 +1269,17 @@ const se_SearchListingsCommand = async (input, context) => {
1938
1269
  searchText: [],
1939
1270
  sort: (_) => (0, smithy_client_1._json)(_),
1940
1271
  }));
1941
- return new protocol_http_1.HttpRequest({
1942
- protocol,
1943
- hostname,
1944
- port,
1945
- method: "POST",
1946
- headers,
1947
- path: resolvedPath,
1948
- body,
1949
- });
1272
+ b.m("POST").h(headers).b(body);
1273
+ return b.build();
1950
1274
  };
1951
1275
  exports.se_SearchListingsCommand = se_SearchListingsCommand;
1952
1276
  const se_SearchTypesCommand = async (input, context) => {
1953
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1277
+ const b = (0, core_2.requestBuilder)(input, context);
1954
1278
  const headers = {
1955
1279
  "content-type": "application/json",
1956
1280
  };
1957
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1958
- "/v2/domains/{domainIdentifier}/types-search";
1959
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1281
+ b.bp("/v2/domains/{domainIdentifier}/types-search");
1282
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1960
1283
  let body;
1961
1284
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1962
1285
  filters: (_) => se_FilterClause(_, context),
@@ -1968,25 +1291,17 @@ const se_SearchTypesCommand = async (input, context) => {
1968
1291
  searchText: [],
1969
1292
  sort: (_) => (0, smithy_client_1._json)(_),
1970
1293
  }));
1971
- return new protocol_http_1.HttpRequest({
1972
- protocol,
1973
- hostname,
1974
- port,
1975
- method: "POST",
1976
- headers,
1977
- path: resolvedPath,
1978
- body,
1979
- });
1294
+ b.m("POST").h(headers).b(body);
1295
+ return b.build();
1980
1296
  };
1981
1297
  exports.se_SearchTypesCommand = se_SearchTypesCommand;
1982
1298
  const se_SearchUserProfilesCommand = async (input, context) => {
1983
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1299
+ const b = (0, core_2.requestBuilder)(input, context);
1984
1300
  const headers = {
1985
1301
  "content-type": "application/json",
1986
1302
  };
1987
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1988
- "/v2/domains/{domainIdentifier}/search-user-profiles";
1989
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1303
+ b.bp("/v2/domains/{domainIdentifier}/search-user-profiles");
1304
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1990
1305
  let body;
1991
1306
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1992
1307
  maxResults: [],
@@ -1994,96 +1309,65 @@ const se_SearchUserProfilesCommand = async (input, context) => {
1994
1309
  searchText: [],
1995
1310
  userType: [],
1996
1311
  }));
1997
- return new protocol_http_1.HttpRequest({
1998
- protocol,
1999
- hostname,
2000
- port,
2001
- method: "POST",
2002
- headers,
2003
- path: resolvedPath,
2004
- body,
2005
- });
1312
+ b.m("POST").h(headers).b(body);
1313
+ return b.build();
2006
1314
  };
2007
1315
  exports.se_SearchUserProfilesCommand = se_SearchUserProfilesCommand;
2008
1316
  const se_StartDataSourceRunCommand = async (input, context) => {
2009
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1317
+ const b = (0, core_2.requestBuilder)(input, context);
2010
1318
  const headers = {
2011
1319
  "content-type": "application/json",
2012
1320
  };
2013
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2014
- "/v2/domains/{domainIdentifier}/data-sources/{dataSourceIdentifier}/runs";
2015
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
2016
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataSourceIdentifier", () => input.dataSourceIdentifier, "{dataSourceIdentifier}", false);
1321
+ b.bp("/v2/domains/{domainIdentifier}/data-sources/{dataSourceIdentifier}/runs");
1322
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1323
+ b.p("dataSourceIdentifier", () => input.dataSourceIdentifier, "{dataSourceIdentifier}", false);
2017
1324
  let body;
2018
1325
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2019
1326
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
2020
1327
  }));
2021
- return new protocol_http_1.HttpRequest({
2022
- protocol,
2023
- hostname,
2024
- port,
2025
- method: "POST",
2026
- headers,
2027
- path: resolvedPath,
2028
- body,
2029
- });
1328
+ b.m("POST").h(headers).b(body);
1329
+ return b.build();
2030
1330
  };
2031
1331
  exports.se_StartDataSourceRunCommand = se_StartDataSourceRunCommand;
2032
1332
  const se_TagResourceCommand = async (input, context) => {
2033
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1333
+ const b = (0, core_2.requestBuilder)(input, context);
2034
1334
  const headers = {
2035
1335
  "content-type": "application/json",
2036
1336
  };
2037
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
2038
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1337
+ b.bp("/tags/{resourceArn}");
1338
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
2039
1339
  let body;
2040
1340
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2041
1341
  tags: (_) => (0, smithy_client_1._json)(_),
2042
1342
  }));
2043
- return new protocol_http_1.HttpRequest({
2044
- protocol,
2045
- hostname,
2046
- port,
2047
- method: "POST",
2048
- headers,
2049
- path: resolvedPath,
2050
- body,
2051
- });
1343
+ b.m("POST").h(headers).b(body);
1344
+ return b.build();
2052
1345
  };
2053
1346
  exports.se_TagResourceCommand = se_TagResourceCommand;
2054
1347
  const se_UntagResourceCommand = async (input, context) => {
2055
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1348
+ const b = (0, core_2.requestBuilder)(input, context);
2056
1349
  const headers = {};
2057
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
2058
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1350
+ b.bp("/tags/{resourceArn}");
1351
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
2059
1352
  const query = (0, smithy_client_1.map)({
2060
- tagKeys: [
1353
+ [_tK]: [
2061
1354
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
2062
- () => (input.tagKeys || []).map((_entry) => _entry),
1355
+ () => (input[_tK] || []).map((_entry) => _entry),
2063
1356
  ],
2064
1357
  });
2065
1358
  let body;
2066
- return new protocol_http_1.HttpRequest({
2067
- protocol,
2068
- hostname,
2069
- port,
2070
- method: "DELETE",
2071
- headers,
2072
- path: resolvedPath,
2073
- query,
2074
- body,
2075
- });
1359
+ b.m("DELETE").h(headers).q(query).b(body);
1360
+ return b.build();
2076
1361
  };
2077
1362
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
2078
1363
  const se_UpdateDataSourceCommand = async (input, context) => {
2079
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1364
+ const b = (0, core_2.requestBuilder)(input, context);
2080
1365
  const headers = {
2081
1366
  "content-type": "application/json",
2082
1367
  };
2083
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2084
- "/v2/domains/{domainIdentifier}/data-sources/{identifier}";
2085
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
2086
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
1368
+ b.bp("/v2/domains/{domainIdentifier}/data-sources/{identifier}");
1369
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1370
+ b.p("identifier", () => input.identifier, "{identifier}", false);
2087
1371
  let body;
2088
1372
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2089
1373
  assetFormsInput: (_) => (0, smithy_client_1._json)(_),
@@ -2095,26 +1379,19 @@ const se_UpdateDataSourceCommand = async (input, context) => {
2095
1379
  recommendation: (_) => (0, smithy_client_1._json)(_),
2096
1380
  schedule: (_) => (0, smithy_client_1._json)(_),
2097
1381
  }));
2098
- return new protocol_http_1.HttpRequest({
2099
- protocol,
2100
- hostname,
2101
- port,
2102
- method: "PATCH",
2103
- headers,
2104
- path: resolvedPath,
2105
- body,
2106
- });
1382
+ b.m("PATCH").h(headers).b(body);
1383
+ return b.build();
2107
1384
  };
2108
1385
  exports.se_UpdateDataSourceCommand = se_UpdateDataSourceCommand;
2109
1386
  const se_UpdateDomainCommand = async (input, context) => {
2110
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1387
+ const b = (0, core_2.requestBuilder)(input, context);
2111
1388
  const headers = {
2112
1389
  "content-type": "application/json",
2113
1390
  };
2114
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{identifier}";
2115
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
1391
+ b.bp("/v2/domains/{identifier}");
1392
+ b.p("identifier", () => input.identifier, "{identifier}", false);
2116
1393
  const query = (0, smithy_client_1.map)({
2117
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
1394
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
2118
1395
  });
2119
1396
  let body;
2120
1397
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -2123,53 +1400,36 @@ const se_UpdateDomainCommand = async (input, context) => {
2123
1400
  name: [],
2124
1401
  singleSignOn: (_) => (0, smithy_client_1._json)(_),
2125
1402
  }));
2126
- return new protocol_http_1.HttpRequest({
2127
- protocol,
2128
- hostname,
2129
- port,
2130
- method: "PUT",
2131
- headers,
2132
- path: resolvedPath,
2133
- query,
2134
- body,
2135
- });
1403
+ b.m("PUT").h(headers).q(query).b(body);
1404
+ return b.build();
2136
1405
  };
2137
1406
  exports.se_UpdateDomainCommand = se_UpdateDomainCommand;
2138
1407
  const se_UpdateEnvironmentCommand = async (input, context) => {
2139
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1408
+ const b = (0, core_2.requestBuilder)(input, context);
2140
1409
  const headers = {
2141
1410
  "content-type": "application/json",
2142
1411
  };
2143
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2144
- "/v2/domains/{domainIdentifier}/environments/{identifier}";
2145
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
2146
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
1412
+ b.bp("/v2/domains/{domainIdentifier}/environments/{identifier}");
1413
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1414
+ b.p("identifier", () => input.identifier, "{identifier}", false);
2147
1415
  let body;
2148
1416
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2149
1417
  description: [],
2150
1418
  glossaryTerms: (_) => (0, smithy_client_1._json)(_),
2151
1419
  name: [],
2152
1420
  }));
2153
- return new protocol_http_1.HttpRequest({
2154
- protocol,
2155
- hostname,
2156
- port,
2157
- method: "PATCH",
2158
- headers,
2159
- path: resolvedPath,
2160
- body,
2161
- });
1421
+ b.m("PATCH").h(headers).b(body);
1422
+ return b.build();
2162
1423
  };
2163
1424
  exports.se_UpdateEnvironmentCommand = se_UpdateEnvironmentCommand;
2164
1425
  const se_UpdateEnvironmentProfileCommand = async (input, context) => {
2165
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1426
+ const b = (0, core_2.requestBuilder)(input, context);
2166
1427
  const headers = {
2167
1428
  "content-type": "application/json",
2168
1429
  };
2169
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2170
- "/v2/domains/{domainIdentifier}/environment-profiles/{identifier}";
2171
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
2172
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
1430
+ b.bp("/v2/domains/{domainIdentifier}/environment-profiles/{identifier}");
1431
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1432
+ b.p("identifier", () => input.identifier, "{identifier}", false);
2173
1433
  let body;
2174
1434
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2175
1435
  awsAccountId: [],
@@ -2178,26 +1438,18 @@ const se_UpdateEnvironmentProfileCommand = async (input, context) => {
2178
1438
  name: [],
2179
1439
  userParameters: (_) => (0, smithy_client_1._json)(_),
2180
1440
  }));
2181
- return new protocol_http_1.HttpRequest({
2182
- protocol,
2183
- hostname,
2184
- port,
2185
- method: "PATCH",
2186
- headers,
2187
- path: resolvedPath,
2188
- body,
2189
- });
1441
+ b.m("PATCH").h(headers).b(body);
1442
+ return b.build();
2190
1443
  };
2191
1444
  exports.se_UpdateEnvironmentProfileCommand = se_UpdateEnvironmentProfileCommand;
2192
1445
  const se_UpdateGlossaryCommand = async (input, context) => {
2193
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1446
+ const b = (0, core_2.requestBuilder)(input, context);
2194
1447
  const headers = {
2195
1448
  "content-type": "application/json",
2196
1449
  };
2197
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2198
- "/v2/domains/{domainIdentifier}/glossaries/{identifier}";
2199
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
2200
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
1450
+ b.bp("/v2/domains/{domainIdentifier}/glossaries/{identifier}");
1451
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1452
+ b.p("identifier", () => input.identifier, "{identifier}", false);
2201
1453
  let body;
2202
1454
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2203
1455
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -2205,26 +1457,18 @@ const se_UpdateGlossaryCommand = async (input, context) => {
2205
1457
  name: [],
2206
1458
  status: [],
2207
1459
  }));
2208
- return new protocol_http_1.HttpRequest({
2209
- protocol,
2210
- hostname,
2211
- port,
2212
- method: "PATCH",
2213
- headers,
2214
- path: resolvedPath,
2215
- body,
2216
- });
1460
+ b.m("PATCH").h(headers).b(body);
1461
+ return b.build();
2217
1462
  };
2218
1463
  exports.se_UpdateGlossaryCommand = se_UpdateGlossaryCommand;
2219
1464
  const se_UpdateGlossaryTermCommand = async (input, context) => {
2220
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1465
+ const b = (0, core_2.requestBuilder)(input, context);
2221
1466
  const headers = {
2222
1467
  "content-type": "application/json",
2223
1468
  };
2224
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2225
- "/v2/domains/{domainIdentifier}/glossary-terms/{identifier}";
2226
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
2227
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
1469
+ b.bp("/v2/domains/{domainIdentifier}/glossary-terms/{identifier}");
1470
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1471
+ b.p("identifier", () => input.identifier, "{identifier}", false);
2228
1472
  let body;
2229
1473
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2230
1474
  glossaryIdentifier: [],
@@ -2234,128 +1478,88 @@ const se_UpdateGlossaryTermCommand = async (input, context) => {
2234
1478
  status: [],
2235
1479
  termRelations: (_) => (0, smithy_client_1._json)(_),
2236
1480
  }));
2237
- return new protocol_http_1.HttpRequest({
2238
- protocol,
2239
- hostname,
2240
- port,
2241
- method: "PATCH",
2242
- headers,
2243
- path: resolvedPath,
2244
- body,
2245
- });
1481
+ b.m("PATCH").h(headers).b(body);
1482
+ return b.build();
2246
1483
  };
2247
1484
  exports.se_UpdateGlossaryTermCommand = se_UpdateGlossaryTermCommand;
2248
1485
  const se_UpdateGroupProfileCommand = async (input, context) => {
2249
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1486
+ const b = (0, core_2.requestBuilder)(input, context);
2250
1487
  const headers = {
2251
1488
  "content-type": "application/json",
2252
1489
  };
2253
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2254
- "/v2/domains/{domainIdentifier}/group-profiles/{groupIdentifier}";
2255
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
2256
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "groupIdentifier", () => input.groupIdentifier, "{groupIdentifier}", false);
1490
+ b.bp("/v2/domains/{domainIdentifier}/group-profiles/{groupIdentifier}");
1491
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1492
+ b.p("groupIdentifier", () => input.groupIdentifier, "{groupIdentifier}", false);
2257
1493
  let body;
2258
1494
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2259
1495
  status: [],
2260
1496
  }));
2261
- return new protocol_http_1.HttpRequest({
2262
- protocol,
2263
- hostname,
2264
- port,
2265
- method: "PUT",
2266
- headers,
2267
- path: resolvedPath,
2268
- body,
2269
- });
1497
+ b.m("PUT").h(headers).b(body);
1498
+ return b.build();
2270
1499
  };
2271
1500
  exports.se_UpdateGroupProfileCommand = se_UpdateGroupProfileCommand;
2272
1501
  const se_UpdateProjectCommand = async (input, context) => {
2273
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1502
+ const b = (0, core_2.requestBuilder)(input, context);
2274
1503
  const headers = {
2275
1504
  "content-type": "application/json",
2276
1505
  };
2277
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2278
- "/v2/domains/{domainIdentifier}/projects/{identifier}";
2279
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
2280
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
1506
+ b.bp("/v2/domains/{domainIdentifier}/projects/{identifier}");
1507
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1508
+ b.p("identifier", () => input.identifier, "{identifier}", false);
2281
1509
  let body;
2282
1510
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2283
1511
  description: [],
2284
1512
  glossaryTerms: (_) => (0, smithy_client_1._json)(_),
2285
1513
  name: [],
2286
1514
  }));
2287
- return new protocol_http_1.HttpRequest({
2288
- protocol,
2289
- hostname,
2290
- port,
2291
- method: "PATCH",
2292
- headers,
2293
- path: resolvedPath,
2294
- body,
2295
- });
1515
+ b.m("PATCH").h(headers).b(body);
1516
+ return b.build();
2296
1517
  };
2297
1518
  exports.se_UpdateProjectCommand = se_UpdateProjectCommand;
2298
1519
  const se_UpdateSubscriptionGrantStatusCommand = async (input, context) => {
2299
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1520
+ const b = (0, core_2.requestBuilder)(input, context);
2300
1521
  const headers = {
2301
1522
  "content-type": "application/json",
2302
1523
  };
2303
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2304
- "/v2/domains/{domainIdentifier}/subscription-grants/{identifier}/status/{assetIdentifier}";
2305
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
2306
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
2307
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetIdentifier", () => input.assetIdentifier, "{assetIdentifier}", false);
1524
+ b.bp("/v2/domains/{domainIdentifier}/subscription-grants/{identifier}/status/{assetIdentifier}");
1525
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1526
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1527
+ b.p("assetIdentifier", () => input.assetIdentifier, "{assetIdentifier}", false);
2308
1528
  let body;
2309
1529
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2310
1530
  failureCause: (_) => (0, smithy_client_1._json)(_),
2311
1531
  status: [],
2312
1532
  targetName: [],
2313
1533
  }));
2314
- return new protocol_http_1.HttpRequest({
2315
- protocol,
2316
- hostname,
2317
- port,
2318
- method: "PATCH",
2319
- headers,
2320
- path: resolvedPath,
2321
- body,
2322
- });
1534
+ b.m("PATCH").h(headers).b(body);
1535
+ return b.build();
2323
1536
  };
2324
1537
  exports.se_UpdateSubscriptionGrantStatusCommand = se_UpdateSubscriptionGrantStatusCommand;
2325
1538
  const se_UpdateSubscriptionRequestCommand = async (input, context) => {
2326
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1539
+ const b = (0, core_2.requestBuilder)(input, context);
2327
1540
  const headers = {
2328
1541
  "content-type": "application/json",
2329
1542
  };
2330
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2331
- "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}";
2332
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
2333
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
1543
+ b.bp("/v2/domains/{domainIdentifier}/subscription-requests/{identifier}");
1544
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1545
+ b.p("identifier", () => input.identifier, "{identifier}", false);
2334
1546
  let body;
2335
1547
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2336
1548
  requestReason: [],
2337
1549
  }));
2338
- return new protocol_http_1.HttpRequest({
2339
- protocol,
2340
- hostname,
2341
- port,
2342
- method: "PATCH",
2343
- headers,
2344
- path: resolvedPath,
2345
- body,
2346
- });
1550
+ b.m("PATCH").h(headers).b(body);
1551
+ return b.build();
2347
1552
  };
2348
1553
  exports.se_UpdateSubscriptionRequestCommand = se_UpdateSubscriptionRequestCommand;
2349
1554
  const se_UpdateSubscriptionTargetCommand = async (input, context) => {
2350
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1555
+ const b = (0, core_2.requestBuilder)(input, context);
2351
1556
  const headers = {
2352
1557
  "content-type": "application/json",
2353
1558
  };
2354
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2355
- "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}";
2356
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
2357
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentIdentifier", () => input.environmentIdentifier, "{environmentIdentifier}", false);
2358
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identifier", () => input.identifier, "{identifier}", false);
1559
+ b.bp("/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}");
1560
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1561
+ b.p("environmentIdentifier", () => input.environmentIdentifier, "{environmentIdentifier}", false);
1562
+ b.p("identifier", () => input.identifier, "{identifier}", false);
2359
1563
  let body;
2360
1564
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2361
1565
  applicableAssetTypes: (_) => (0, smithy_client_1._json)(_),
@@ -2365,40 +1569,25 @@ const se_UpdateSubscriptionTargetCommand = async (input, context) => {
2365
1569
  provider: [],
2366
1570
  subscriptionTargetConfig: (_) => (0, smithy_client_1._json)(_),
2367
1571
  }));
2368
- return new protocol_http_1.HttpRequest({
2369
- protocol,
2370
- hostname,
2371
- port,
2372
- method: "PATCH",
2373
- headers,
2374
- path: resolvedPath,
2375
- body,
2376
- });
1572
+ b.m("PATCH").h(headers).b(body);
1573
+ return b.build();
2377
1574
  };
2378
1575
  exports.se_UpdateSubscriptionTargetCommand = se_UpdateSubscriptionTargetCommand;
2379
1576
  const se_UpdateUserProfileCommand = async (input, context) => {
2380
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1577
+ const b = (0, core_2.requestBuilder)(input, context);
2381
1578
  const headers = {
2382
1579
  "content-type": "application/json",
2383
1580
  };
2384
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2385
- "/v2/domains/{domainIdentifier}/user-profiles/{userIdentifier}";
2386
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
2387
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userIdentifier", () => input.userIdentifier, "{userIdentifier}", false);
1581
+ b.bp("/v2/domains/{domainIdentifier}/user-profiles/{userIdentifier}");
1582
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1583
+ b.p("userIdentifier", () => input.userIdentifier, "{userIdentifier}", false);
2388
1584
  let body;
2389
1585
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2390
1586
  status: [],
2391
1587
  type: [],
2392
1588
  }));
2393
- return new protocol_http_1.HttpRequest({
2394
- protocol,
2395
- hostname,
2396
- port,
2397
- method: "PUT",
2398
- headers,
2399
- path: resolvedPath,
2400
- body,
2401
- });
1589
+ b.m("PUT").h(headers).b(body);
1590
+ return b.build();
2402
1591
  };
2403
1592
  exports.se_UpdateUserProfileCommand = se_UpdateUserProfileCommand;
2404
1593
  const de_AcceptPredictionsCommand = async (output, context) => {
@@ -8695,6 +7884,38 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
8695
7884
  value !== "" &&
8696
7885
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
8697
7886
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
7887
+ const _aAI = "awsAccountId";
7888
+ const _aAR = "awsAccountRegion";
7889
+ const _aPI = "approverProjectId";
7890
+ const _aT = "afterTimestamp";
7891
+ const _bT = "beforeTimestamp";
7892
+ const _cT = "clientToken";
7893
+ const _eBI = "environmentBlueprintIdentifier";
7894
+ const _eI = "environmentIdentifier";
7895
+ const _eIn = "environmentId";
7896
+ const _ePI = "environmentProfileIdentifier";
7897
+ const _gI = "groupIdentifier";
7898
+ const _lR = "listingRevision";
7899
+ const _m = "managed";
7900
+ const _mR = "maxResults";
7901
+ const _n = "name";
7902
+ const _nT = "nextToken";
7903
+ const _oPI = "owningProjectId";
7904
+ const _p = "provider";
7905
+ const _pI = "projectIdentifier";
7906
+ const _r = "revision";
7907
+ const _s = "status";
7908
+ const _sB = "sortBy";
7909
+ const _sI = "subscriptionId";
7910
+ const _sLI = "subscribedListingId";
7911
+ const _sO = "sortOrder";
7912
+ const _sRI = "subscriptionRequestIdentifier";
7913
+ const _sTI = "subscriptionTargetId";
7914
+ const _su = "subjects";
7915
+ const _t = "type";
7916
+ const _tK = "tagKeys";
7917
+ const _tS = "taskStatus";
7918
+ const _uI = "userIdentifier";
8698
7919
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
8699
7920
  if (encoded.length) {
8700
7921
  return JSON.parse(encoded);