@aws-sdk/client-imagebuilder 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/ListComponentBuildVersionsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListComponentsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListContainerRecipesPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListDistributionConfigurationsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListImageBuildVersionsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListImagePackagesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListImagePipelineImagesPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListImagePipelinesPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListImageRecipesPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListImageScanFindingAggregationsPaginator.js +2 -23
  11. package/dist-cjs/pagination/ListImageScanFindingsPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListImagesPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListInfrastructureConfigurationsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListLifecycleExecutionResourcesPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListLifecycleExecutionsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListLifecyclePoliciesPaginator.js +2 -24
  17. package/dist-cjs/pagination/ListWaitingWorkflowStepsPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListWorkflowBuildVersionsPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListWorkflowExecutionsPaginator.js +2 -24
  20. package/dist-cjs/pagination/ListWorkflowStepExecutionsPaginator.js +2 -24
  21. package/dist-cjs/pagination/ListWorkflowsPaginator.js +2 -24
  22. package/dist-cjs/protocols/Aws_restJson1.js +338 -872
  23. package/dist-es/pagination/ListComponentBuildVersionsPaginator.js +2 -23
  24. package/dist-es/pagination/ListComponentsPaginator.js +2 -23
  25. package/dist-es/pagination/ListContainerRecipesPaginator.js +2 -23
  26. package/dist-es/pagination/ListDistributionConfigurationsPaginator.js +2 -23
  27. package/dist-es/pagination/ListImageBuildVersionsPaginator.js +2 -23
  28. package/dist-es/pagination/ListImagePackagesPaginator.js +2 -23
  29. package/dist-es/pagination/ListImagePipelineImagesPaginator.js +2 -23
  30. package/dist-es/pagination/ListImagePipelinesPaginator.js +2 -23
  31. package/dist-es/pagination/ListImageRecipesPaginator.js +2 -23
  32. package/dist-es/pagination/ListImageScanFindingAggregationsPaginator.js +2 -22
  33. package/dist-es/pagination/ListImageScanFindingsPaginator.js +2 -23
  34. package/dist-es/pagination/ListImagesPaginator.js +2 -23
  35. package/dist-es/pagination/ListInfrastructureConfigurationsPaginator.js +2 -23
  36. package/dist-es/pagination/ListLifecycleExecutionResourcesPaginator.js +2 -23
  37. package/dist-es/pagination/ListLifecycleExecutionsPaginator.js +2 -23
  38. package/dist-es/pagination/ListLifecyclePoliciesPaginator.js +2 -23
  39. package/dist-es/pagination/ListWaitingWorkflowStepsPaginator.js +2 -23
  40. package/dist-es/pagination/ListWorkflowBuildVersionsPaginator.js +2 -23
  41. package/dist-es/pagination/ListWorkflowExecutionsPaginator.js +2 -23
  42. package/dist-es/pagination/ListWorkflowStepExecutionsPaginator.js +2 -23
  43. package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
  44. package/dist-es/protocols/Aws_restJson1.js +339 -873
  45. package/dist-types/pagination/ListComponentBuildVersionsPaginator.d.ts +1 -1
  46. package/dist-types/pagination/ListComponentsPaginator.d.ts +1 -1
  47. package/dist-types/pagination/ListContainerRecipesPaginator.d.ts +1 -1
  48. package/dist-types/pagination/ListDistributionConfigurationsPaginator.d.ts +1 -1
  49. package/dist-types/pagination/ListImageBuildVersionsPaginator.d.ts +1 -1
  50. package/dist-types/pagination/ListImagePackagesPaginator.d.ts +1 -1
  51. package/dist-types/pagination/ListImagePipelineImagesPaginator.d.ts +1 -1
  52. package/dist-types/pagination/ListImagePipelinesPaginator.d.ts +1 -1
  53. package/dist-types/pagination/ListImageRecipesPaginator.d.ts +1 -1
  54. package/dist-types/pagination/ListImageScanFindingAggregationsPaginator.d.ts +1 -1
  55. package/dist-types/pagination/ListImageScanFindingsPaginator.d.ts +1 -1
  56. package/dist-types/pagination/ListImagesPaginator.d.ts +1 -1
  57. package/dist-types/pagination/ListInfrastructureConfigurationsPaginator.d.ts +1 -1
  58. package/dist-types/pagination/ListLifecycleExecutionResourcesPaginator.d.ts +1 -1
  59. package/dist-types/pagination/ListLifecycleExecutionsPaginator.d.ts +1 -1
  60. package/dist-types/pagination/ListLifecyclePoliciesPaginator.d.ts +1 -1
  61. package/dist-types/pagination/ListWaitingWorkflowStepsPaginator.d.ts +1 -1
  62. package/dist-types/pagination/ListWorkflowBuildVersionsPaginator.d.ts +1 -1
  63. package/dist-types/pagination/ListWorkflowExecutionsPaginator.d.ts +1 -1
  64. package/dist-types/pagination/ListWorkflowStepExecutionsPaginator.d.ts +1 -1
  65. package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
  66. package/dist-types/ts3.4/pagination/ListComponentBuildVersionsPaginator.d.ts +3 -3
  67. package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +3 -3
  68. package/dist-types/ts3.4/pagination/ListContainerRecipesPaginator.d.ts +3 -3
  69. package/dist-types/ts3.4/pagination/ListDistributionConfigurationsPaginator.d.ts +3 -3
  70. package/dist-types/ts3.4/pagination/ListImageBuildVersionsPaginator.d.ts +3 -3
  71. package/dist-types/ts3.4/pagination/ListImagePackagesPaginator.d.ts +3 -3
  72. package/dist-types/ts3.4/pagination/ListImagePipelineImagesPaginator.d.ts +3 -3
  73. package/dist-types/ts3.4/pagination/ListImagePipelinesPaginator.d.ts +3 -3
  74. package/dist-types/ts3.4/pagination/ListImageRecipesPaginator.d.ts +3 -3
  75. package/dist-types/ts3.4/pagination/ListImageScanFindingAggregationsPaginator.d.ts +3 -3
  76. package/dist-types/ts3.4/pagination/ListImageScanFindingsPaginator.d.ts +3 -3
  77. package/dist-types/ts3.4/pagination/ListImagesPaginator.d.ts +3 -3
  78. package/dist-types/ts3.4/pagination/ListInfrastructureConfigurationsPaginator.d.ts +3 -3
  79. package/dist-types/ts3.4/pagination/ListLifecycleExecutionResourcesPaginator.d.ts +3 -3
  80. package/dist-types/ts3.4/pagination/ListLifecycleExecutionsPaginator.d.ts +3 -3
  81. package/dist-types/ts3.4/pagination/ListLifecyclePoliciesPaginator.d.ts +3 -3
  82. package/dist-types/ts3.4/pagination/ListWaitingWorkflowStepsPaginator.d.ts +3 -3
  83. package/dist-types/ts3.4/pagination/ListWorkflowBuildVersionsPaginator.d.ts +3 -3
  84. package/dist-types/ts3.4/pagination/ListWorkflowExecutionsPaginator.d.ts +3 -3
  85. package/dist-types/ts3.4/pagination/ListWorkflowStepExecutionsPaginator.d.ts +3 -3
  86. package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +3 -3
  87. package/package.json +7 -6
@@ -3,61 +3,47 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.se_ListImageScanFindingsCommand = exports.se_ListImageScanFindingAggregationsCommand = exports.se_ListImagesCommand = exports.se_ListImageRecipesCommand = exports.se_ListImagePipelinesCommand = exports.se_ListImagePipelineImagesCommand = exports.se_ListImagePackagesCommand = exports.se_ListImageBuildVersionsCommand = exports.se_ListDistributionConfigurationsCommand = exports.se_ListContainerRecipesCommand = exports.se_ListComponentsCommand = exports.se_ListComponentBuildVersionsCommand = exports.se_ImportVmImageCommand = exports.se_ImportComponentCommand = exports.se_GetWorkflowStepExecutionCommand = exports.se_GetWorkflowExecutionCommand = exports.se_GetWorkflowCommand = exports.se_GetLifecyclePolicyCommand = exports.se_GetLifecycleExecutionCommand = exports.se_GetInfrastructureConfigurationCommand = exports.se_GetImageRecipePolicyCommand = exports.se_GetImageRecipeCommand = exports.se_GetImagePolicyCommand = exports.se_GetImagePipelineCommand = exports.se_GetImageCommand = exports.se_GetDistributionConfigurationCommand = exports.se_GetContainerRecipePolicyCommand = exports.se_GetContainerRecipeCommand = exports.se_GetComponentPolicyCommand = exports.se_GetComponentCommand = exports.se_DeleteWorkflowCommand = exports.se_DeleteLifecyclePolicyCommand = exports.se_DeleteInfrastructureConfigurationCommand = exports.se_DeleteImageRecipeCommand = exports.se_DeleteImagePipelineCommand = exports.se_DeleteImageCommand = exports.se_DeleteDistributionConfigurationCommand = exports.se_DeleteContainerRecipeCommand = exports.se_DeleteComponentCommand = exports.se_CreateWorkflowCommand = exports.se_CreateLifecyclePolicyCommand = exports.se_CreateInfrastructureConfigurationCommand = exports.se_CreateImageRecipeCommand = exports.se_CreateImagePipelineCommand = exports.se_CreateImageCommand = exports.se_CreateDistributionConfigurationCommand = exports.se_CreateContainerRecipeCommand = exports.se_CreateComponentCommand = exports.se_CancelLifecycleExecutionCommand = exports.se_CancelImageCreationCommand = void 0;
4
4
  exports.de_GetImagePipelineCommand = exports.de_GetImageCommand = exports.de_GetDistributionConfigurationCommand = exports.de_GetContainerRecipePolicyCommand = exports.de_GetContainerRecipeCommand = exports.de_GetComponentPolicyCommand = exports.de_GetComponentCommand = exports.de_DeleteWorkflowCommand = exports.de_DeleteLifecyclePolicyCommand = exports.de_DeleteInfrastructureConfigurationCommand = exports.de_DeleteImageRecipeCommand = exports.de_DeleteImagePipelineCommand = exports.de_DeleteImageCommand = exports.de_DeleteDistributionConfigurationCommand = exports.de_DeleteContainerRecipeCommand = exports.de_DeleteComponentCommand = exports.de_CreateWorkflowCommand = exports.de_CreateLifecyclePolicyCommand = exports.de_CreateInfrastructureConfigurationCommand = exports.de_CreateImageRecipeCommand = exports.de_CreateImagePipelineCommand = exports.de_CreateImageCommand = exports.de_CreateDistributionConfigurationCommand = exports.de_CreateContainerRecipeCommand = exports.de_CreateComponentCommand = exports.de_CancelLifecycleExecutionCommand = exports.de_CancelImageCreationCommand = exports.se_UpdateLifecyclePolicyCommand = exports.se_UpdateInfrastructureConfigurationCommand = exports.se_UpdateImagePipelineCommand = exports.se_UpdateDistributionConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartResourceStateUpdateCommand = exports.se_StartImagePipelineExecutionCommand = exports.se_SendWorkflowStepActionCommand = exports.se_PutImageRecipePolicyCommand = exports.se_PutImagePolicyCommand = exports.se_PutContainerRecipePolicyCommand = exports.se_PutComponentPolicyCommand = exports.se_ListWorkflowStepExecutionsCommand = exports.se_ListWorkflowsCommand = exports.se_ListWorkflowExecutionsCommand = exports.se_ListWorkflowBuildVersionsCommand = exports.se_ListWaitingWorkflowStepsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListLifecyclePoliciesCommand = exports.se_ListLifecycleExecutionsCommand = exports.se_ListLifecycleExecutionResourcesCommand = exports.se_ListInfrastructureConfigurationsCommand = void 0;
5
5
  exports.de_UpdateLifecyclePolicyCommand = exports.de_UpdateInfrastructureConfigurationCommand = exports.de_UpdateImagePipelineCommand = exports.de_UpdateDistributionConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartResourceStateUpdateCommand = exports.de_StartImagePipelineExecutionCommand = exports.de_SendWorkflowStepActionCommand = exports.de_PutImageRecipePolicyCommand = exports.de_PutImagePolicyCommand = exports.de_PutContainerRecipePolicyCommand = exports.de_PutComponentPolicyCommand = exports.de_ListWorkflowStepExecutionsCommand = exports.de_ListWorkflowsCommand = exports.de_ListWorkflowExecutionsCommand = exports.de_ListWorkflowBuildVersionsCommand = exports.de_ListWaitingWorkflowStepsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListLifecyclePoliciesCommand = exports.de_ListLifecycleExecutionsCommand = exports.de_ListLifecycleExecutionResourcesCommand = exports.de_ListInfrastructureConfigurationsCommand = exports.de_ListImageScanFindingsCommand = exports.de_ListImageScanFindingAggregationsCommand = exports.de_ListImagesCommand = exports.de_ListImageRecipesCommand = exports.de_ListImagePipelinesCommand = exports.de_ListImagePipelineImagesCommand = exports.de_ListImagePackagesCommand = exports.de_ListImageBuildVersionsCommand = exports.de_ListDistributionConfigurationsCommand = exports.de_ListContainerRecipesCommand = exports.de_ListComponentsCommand = exports.de_ListComponentBuildVersionsCommand = exports.de_ImportVmImageCommand = exports.de_ImportComponentCommand = exports.de_GetWorkflowStepExecutionCommand = exports.de_GetWorkflowExecutionCommand = exports.de_GetWorkflowCommand = exports.de_GetLifecyclePolicyCommand = exports.de_GetLifecycleExecutionCommand = exports.de_GetInfrastructureConfigurationCommand = exports.de_GetImageRecipePolicyCommand = exports.de_GetImageRecipeCommand = exports.de_GetImagePolicyCommand = void 0;
6
- const protocol_http_1 = require("@smithy/protocol-http");
6
+ const core_1 = require("@smithy/core");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const uuid_1 = require("uuid");
9
9
  const ImagebuilderServiceException_1 = require("../models/ImagebuilderServiceException");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const se_CancelImageCreationCommand = async (input, context) => {
12
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const b = (0, core_1.requestBuilder)(input, context);
13
13
  const headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CancelImageCreation";
16
+ b.bp("/CancelImageCreation");
17
17
  let body;
18
18
  body = JSON.stringify((0, smithy_client_1.take)(input, {
19
19
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
20
20
  imageBuildVersionArn: [],
21
21
  }));
22
- return new protocol_http_1.HttpRequest({
23
- protocol,
24
- hostname,
25
- port,
26
- method: "PUT",
27
- headers,
28
- path: resolvedPath,
29
- body,
30
- });
22
+ b.m("PUT").h(headers).b(body);
23
+ return b.build();
31
24
  };
32
25
  exports.se_CancelImageCreationCommand = se_CancelImageCreationCommand;
33
26
  const se_CancelLifecycleExecutionCommand = async (input, context) => {
34
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
+ const b = (0, core_1.requestBuilder)(input, context);
35
28
  const headers = {
36
29
  "content-type": "application/json",
37
30
  };
38
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CancelLifecycleExecution";
31
+ b.bp("/CancelLifecycleExecution");
39
32
  let body;
40
33
  body = JSON.stringify((0, smithy_client_1.take)(input, {
41
34
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
42
35
  lifecycleExecutionId: [],
43
36
  }));
44
- return new protocol_http_1.HttpRequest({
45
- protocol,
46
- hostname,
47
- port,
48
- method: "PUT",
49
- headers,
50
- path: resolvedPath,
51
- body,
52
- });
37
+ b.m("PUT").h(headers).b(body);
38
+ return b.build();
53
39
  };
54
40
  exports.se_CancelLifecycleExecutionCommand = se_CancelLifecycleExecutionCommand;
55
41
  const se_CreateComponentCommand = async (input, context) => {
56
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
42
+ const b = (0, core_1.requestBuilder)(input, context);
57
43
  const headers = {
58
44
  "content-type": "application/json",
59
45
  };
60
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateComponent";
46
+ b.bp("/CreateComponent");
61
47
  let body;
62
48
  body = JSON.stringify((0, smithy_client_1.take)(input, {
63
49
  changeDescription: [],
@@ -72,23 +58,16 @@ const se_CreateComponentCommand = async (input, context) => {
72
58
  tags: (_) => (0, smithy_client_1._json)(_),
73
59
  uri: [],
74
60
  }));
75
- return new protocol_http_1.HttpRequest({
76
- protocol,
77
- hostname,
78
- port,
79
- method: "PUT",
80
- headers,
81
- path: resolvedPath,
82
- body,
83
- });
61
+ b.m("PUT").h(headers).b(body);
62
+ return b.build();
84
63
  };
85
64
  exports.se_CreateComponentCommand = se_CreateComponentCommand;
86
65
  const se_CreateContainerRecipeCommand = async (input, context) => {
87
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
66
+ const b = (0, core_1.requestBuilder)(input, context);
88
67
  const headers = {
89
68
  "content-type": "application/json",
90
69
  };
91
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateContainerRecipe";
70
+ b.bp("/CreateContainerRecipe");
92
71
  let body;
93
72
  body = JSON.stringify((0, smithy_client_1.take)(input, {
94
73
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -108,23 +87,16 @@ const se_CreateContainerRecipeCommand = async (input, context) => {
108
87
  targetRepository: (_) => (0, smithy_client_1._json)(_),
109
88
  workingDirectory: [],
110
89
  }));
111
- return new protocol_http_1.HttpRequest({
112
- protocol,
113
- hostname,
114
- port,
115
- method: "PUT",
116
- headers,
117
- path: resolvedPath,
118
- body,
119
- });
90
+ b.m("PUT").h(headers).b(body);
91
+ return b.build();
120
92
  };
121
93
  exports.se_CreateContainerRecipeCommand = se_CreateContainerRecipeCommand;
122
94
  const se_CreateDistributionConfigurationCommand = async (input, context) => {
123
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
95
+ const b = (0, core_1.requestBuilder)(input, context);
124
96
  const headers = {
125
97
  "content-type": "application/json",
126
98
  };
127
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateDistributionConfiguration";
99
+ b.bp("/CreateDistributionConfiguration");
128
100
  let body;
129
101
  body = JSON.stringify((0, smithy_client_1.take)(input, {
130
102
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -133,23 +105,16 @@ const se_CreateDistributionConfigurationCommand = async (input, context) => {
133
105
  name: [],
134
106
  tags: (_) => (0, smithy_client_1._json)(_),
135
107
  }));
136
- return new protocol_http_1.HttpRequest({
137
- protocol,
138
- hostname,
139
- port,
140
- method: "PUT",
141
- headers,
142
- path: resolvedPath,
143
- body,
144
- });
108
+ b.m("PUT").h(headers).b(body);
109
+ return b.build();
145
110
  };
146
111
  exports.se_CreateDistributionConfigurationCommand = se_CreateDistributionConfigurationCommand;
147
112
  const se_CreateImageCommand = async (input, context) => {
148
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
113
+ const b = (0, core_1.requestBuilder)(input, context);
149
114
  const headers = {
150
115
  "content-type": "application/json",
151
116
  };
152
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateImage";
117
+ b.bp("/CreateImage");
153
118
  let body;
154
119
  body = JSON.stringify((0, smithy_client_1.take)(input, {
155
120
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -164,23 +129,16 @@ const se_CreateImageCommand = async (input, context) => {
164
129
  tags: (_) => (0, smithy_client_1._json)(_),
165
130
  workflows: (_) => (0, smithy_client_1._json)(_),
166
131
  }));
167
- return new protocol_http_1.HttpRequest({
168
- protocol,
169
- hostname,
170
- port,
171
- method: "PUT",
172
- headers,
173
- path: resolvedPath,
174
- body,
175
- });
132
+ b.m("PUT").h(headers).b(body);
133
+ return b.build();
176
134
  };
177
135
  exports.se_CreateImageCommand = se_CreateImageCommand;
178
136
  const se_CreateImagePipelineCommand = async (input, context) => {
179
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
137
+ const b = (0, core_1.requestBuilder)(input, context);
180
138
  const headers = {
181
139
  "content-type": "application/json",
182
140
  };
183
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateImagePipeline";
141
+ b.bp("/CreateImagePipeline");
184
142
  let body;
185
143
  body = JSON.stringify((0, smithy_client_1.take)(input, {
186
144
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -199,23 +157,16 @@ const se_CreateImagePipelineCommand = async (input, context) => {
199
157
  tags: (_) => (0, smithy_client_1._json)(_),
200
158
  workflows: (_) => (0, smithy_client_1._json)(_),
201
159
  }));
202
- return new protocol_http_1.HttpRequest({
203
- protocol,
204
- hostname,
205
- port,
206
- method: "PUT",
207
- headers,
208
- path: resolvedPath,
209
- body,
210
- });
160
+ b.m("PUT").h(headers).b(body);
161
+ return b.build();
211
162
  };
212
163
  exports.se_CreateImagePipelineCommand = se_CreateImagePipelineCommand;
213
164
  const se_CreateImageRecipeCommand = async (input, context) => {
214
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
165
+ const b = (0, core_1.requestBuilder)(input, context);
215
166
  const headers = {
216
167
  "content-type": "application/json",
217
168
  };
218
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateImageRecipe";
169
+ b.bp("/CreateImageRecipe");
219
170
  let body;
220
171
  body = JSON.stringify((0, smithy_client_1.take)(input, {
221
172
  additionalInstanceConfiguration: (_) => (0, smithy_client_1._json)(_),
@@ -229,23 +180,16 @@ const se_CreateImageRecipeCommand = async (input, context) => {
229
180
  tags: (_) => (0, smithy_client_1._json)(_),
230
181
  workingDirectory: [],
231
182
  }));
232
- return new protocol_http_1.HttpRequest({
233
- protocol,
234
- hostname,
235
- port,
236
- method: "PUT",
237
- headers,
238
- path: resolvedPath,
239
- body,
240
- });
183
+ b.m("PUT").h(headers).b(body);
184
+ return b.build();
241
185
  };
242
186
  exports.se_CreateImageRecipeCommand = se_CreateImageRecipeCommand;
243
187
  const se_CreateInfrastructureConfigurationCommand = async (input, context) => {
244
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
188
+ const b = (0, core_1.requestBuilder)(input, context);
245
189
  const headers = {
246
190
  "content-type": "application/json",
247
191
  };
248
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateInfrastructureConfiguration";
192
+ b.bp("/CreateInfrastructureConfiguration");
249
193
  let body;
250
194
  body = JSON.stringify((0, smithy_client_1.take)(input, {
251
195
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -263,23 +207,16 @@ const se_CreateInfrastructureConfigurationCommand = async (input, context) => {
263
207
  tags: (_) => (0, smithy_client_1._json)(_),
264
208
  terminateInstanceOnFailure: [],
265
209
  }));
266
- return new protocol_http_1.HttpRequest({
267
- protocol,
268
- hostname,
269
- port,
270
- method: "PUT",
271
- headers,
272
- path: resolvedPath,
273
- body,
274
- });
210
+ b.m("PUT").h(headers).b(body);
211
+ return b.build();
275
212
  };
276
213
  exports.se_CreateInfrastructureConfigurationCommand = se_CreateInfrastructureConfigurationCommand;
277
214
  const se_CreateLifecyclePolicyCommand = async (input, context) => {
278
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
215
+ const b = (0, core_1.requestBuilder)(input, context);
279
216
  const headers = {
280
217
  "content-type": "application/json",
281
218
  };
282
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLifecyclePolicy";
219
+ b.bp("/CreateLifecyclePolicy");
283
220
  let body;
284
221
  body = JSON.stringify((0, smithy_client_1.take)(input, {
285
222
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -292,23 +229,16 @@ const se_CreateLifecyclePolicyCommand = async (input, context) => {
292
229
  status: [],
293
230
  tags: (_) => (0, smithy_client_1._json)(_),
294
231
  }));
295
- return new protocol_http_1.HttpRequest({
296
- protocol,
297
- hostname,
298
- port,
299
- method: "PUT",
300
- headers,
301
- path: resolvedPath,
302
- body,
303
- });
232
+ b.m("PUT").h(headers).b(body);
233
+ return b.build();
304
234
  };
305
235
  exports.se_CreateLifecyclePolicyCommand = se_CreateLifecyclePolicyCommand;
306
236
  const se_CreateWorkflowCommand = async (input, context) => {
307
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
237
+ const b = (0, core_1.requestBuilder)(input, context);
308
238
  const headers = {
309
239
  "content-type": "application/json",
310
240
  };
311
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateWorkflow";
241
+ b.bp("/CreateWorkflow");
312
242
  let body;
313
243
  body = JSON.stringify((0, smithy_client_1.take)(input, {
314
244
  changeDescription: [],
@@ -322,535 +252,316 @@ const se_CreateWorkflowCommand = async (input, context) => {
322
252
  type: [],
323
253
  uri: [],
324
254
  }));
325
- return new protocol_http_1.HttpRequest({
326
- protocol,
327
- hostname,
328
- port,
329
- method: "PUT",
330
- headers,
331
- path: resolvedPath,
332
- body,
333
- });
255
+ b.m("PUT").h(headers).b(body);
256
+ return b.build();
334
257
  };
335
258
  exports.se_CreateWorkflowCommand = se_CreateWorkflowCommand;
336
259
  const se_DeleteComponentCommand = async (input, context) => {
337
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
260
+ const b = (0, core_1.requestBuilder)(input, context);
338
261
  const headers = {};
339
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteComponent";
262
+ b.bp("/DeleteComponent");
340
263
  const query = (0, smithy_client_1.map)({
341
- componentBuildVersionArn: [, (0, smithy_client_1.expectNonNull)(input.componentBuildVersionArn, `componentBuildVersionArn`)],
264
+ [_cBVA]: [, (0, smithy_client_1.expectNonNull)(input[_cBVA], `componentBuildVersionArn`)],
342
265
  });
343
266
  let body;
344
- return new protocol_http_1.HttpRequest({
345
- protocol,
346
- hostname,
347
- port,
348
- method: "DELETE",
349
- headers,
350
- path: resolvedPath,
351
- query,
352
- body,
353
- });
267
+ b.m("DELETE").h(headers).q(query).b(body);
268
+ return b.build();
354
269
  };
355
270
  exports.se_DeleteComponentCommand = se_DeleteComponentCommand;
356
271
  const se_DeleteContainerRecipeCommand = async (input, context) => {
357
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
272
+ const b = (0, core_1.requestBuilder)(input, context);
358
273
  const headers = {};
359
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteContainerRecipe";
274
+ b.bp("/DeleteContainerRecipe");
360
275
  const query = (0, smithy_client_1.map)({
361
- containerRecipeArn: [, (0, smithy_client_1.expectNonNull)(input.containerRecipeArn, `containerRecipeArn`)],
276
+ [_cRA]: [, (0, smithy_client_1.expectNonNull)(input[_cRA], `containerRecipeArn`)],
362
277
  });
363
278
  let body;
364
- return new protocol_http_1.HttpRequest({
365
- protocol,
366
- hostname,
367
- port,
368
- method: "DELETE",
369
- headers,
370
- path: resolvedPath,
371
- query,
372
- body,
373
- });
279
+ b.m("DELETE").h(headers).q(query).b(body);
280
+ return b.build();
374
281
  };
375
282
  exports.se_DeleteContainerRecipeCommand = se_DeleteContainerRecipeCommand;
376
283
  const se_DeleteDistributionConfigurationCommand = async (input, context) => {
377
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
284
+ const b = (0, core_1.requestBuilder)(input, context);
378
285
  const headers = {};
379
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteDistributionConfiguration";
286
+ b.bp("/DeleteDistributionConfiguration");
380
287
  const query = (0, smithy_client_1.map)({
381
- distributionConfigurationArn: [
382
- ,
383
- (0, smithy_client_1.expectNonNull)(input.distributionConfigurationArn, `distributionConfigurationArn`),
384
- ],
288
+ [_dCA]: [, (0, smithy_client_1.expectNonNull)(input[_dCA], `distributionConfigurationArn`)],
385
289
  });
386
290
  let body;
387
- return new protocol_http_1.HttpRequest({
388
- protocol,
389
- hostname,
390
- port,
391
- method: "DELETE",
392
- headers,
393
- path: resolvedPath,
394
- query,
395
- body,
396
- });
291
+ b.m("DELETE").h(headers).q(query).b(body);
292
+ return b.build();
397
293
  };
398
294
  exports.se_DeleteDistributionConfigurationCommand = se_DeleteDistributionConfigurationCommand;
399
295
  const se_DeleteImageCommand = async (input, context) => {
400
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
296
+ const b = (0, core_1.requestBuilder)(input, context);
401
297
  const headers = {};
402
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteImage";
298
+ b.bp("/DeleteImage");
403
299
  const query = (0, smithy_client_1.map)({
404
- imageBuildVersionArn: [, (0, smithy_client_1.expectNonNull)(input.imageBuildVersionArn, `imageBuildVersionArn`)],
300
+ [_iBVA]: [, (0, smithy_client_1.expectNonNull)(input[_iBVA], `imageBuildVersionArn`)],
405
301
  });
406
302
  let body;
407
- return new protocol_http_1.HttpRequest({
408
- protocol,
409
- hostname,
410
- port,
411
- method: "DELETE",
412
- headers,
413
- path: resolvedPath,
414
- query,
415
- body,
416
- });
303
+ b.m("DELETE").h(headers).q(query).b(body);
304
+ return b.build();
417
305
  };
418
306
  exports.se_DeleteImageCommand = se_DeleteImageCommand;
419
307
  const se_DeleteImagePipelineCommand = async (input, context) => {
420
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
308
+ const b = (0, core_1.requestBuilder)(input, context);
421
309
  const headers = {};
422
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteImagePipeline";
310
+ b.bp("/DeleteImagePipeline");
423
311
  const query = (0, smithy_client_1.map)({
424
- imagePipelineArn: [, (0, smithy_client_1.expectNonNull)(input.imagePipelineArn, `imagePipelineArn`)],
312
+ [_iPA]: [, (0, smithy_client_1.expectNonNull)(input[_iPA], `imagePipelineArn`)],
425
313
  });
426
314
  let body;
427
- return new protocol_http_1.HttpRequest({
428
- protocol,
429
- hostname,
430
- port,
431
- method: "DELETE",
432
- headers,
433
- path: resolvedPath,
434
- query,
435
- body,
436
- });
315
+ b.m("DELETE").h(headers).q(query).b(body);
316
+ return b.build();
437
317
  };
438
318
  exports.se_DeleteImagePipelineCommand = se_DeleteImagePipelineCommand;
439
319
  const se_DeleteImageRecipeCommand = async (input, context) => {
440
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
320
+ const b = (0, core_1.requestBuilder)(input, context);
441
321
  const headers = {};
442
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteImageRecipe";
322
+ b.bp("/DeleteImageRecipe");
443
323
  const query = (0, smithy_client_1.map)({
444
- imageRecipeArn: [, (0, smithy_client_1.expectNonNull)(input.imageRecipeArn, `imageRecipeArn`)],
324
+ [_iRA]: [, (0, smithy_client_1.expectNonNull)(input[_iRA], `imageRecipeArn`)],
445
325
  });
446
326
  let body;
447
- return new protocol_http_1.HttpRequest({
448
- protocol,
449
- hostname,
450
- port,
451
- method: "DELETE",
452
- headers,
453
- path: resolvedPath,
454
- query,
455
- body,
456
- });
327
+ b.m("DELETE").h(headers).q(query).b(body);
328
+ return b.build();
457
329
  };
458
330
  exports.se_DeleteImageRecipeCommand = se_DeleteImageRecipeCommand;
459
331
  const se_DeleteInfrastructureConfigurationCommand = async (input, context) => {
460
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
332
+ const b = (0, core_1.requestBuilder)(input, context);
461
333
  const headers = {};
462
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteInfrastructureConfiguration";
334
+ b.bp("/DeleteInfrastructureConfiguration");
463
335
  const query = (0, smithy_client_1.map)({
464
- infrastructureConfigurationArn: [
465
- ,
466
- (0, smithy_client_1.expectNonNull)(input.infrastructureConfigurationArn, `infrastructureConfigurationArn`),
467
- ],
336
+ [_iCA]: [, (0, smithy_client_1.expectNonNull)(input[_iCA], `infrastructureConfigurationArn`)],
468
337
  });
469
338
  let body;
470
- return new protocol_http_1.HttpRequest({
471
- protocol,
472
- hostname,
473
- port,
474
- method: "DELETE",
475
- headers,
476
- path: resolvedPath,
477
- query,
478
- body,
479
- });
339
+ b.m("DELETE").h(headers).q(query).b(body);
340
+ return b.build();
480
341
  };
481
342
  exports.se_DeleteInfrastructureConfigurationCommand = se_DeleteInfrastructureConfigurationCommand;
482
343
  const se_DeleteLifecyclePolicyCommand = async (input, context) => {
483
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
344
+ const b = (0, core_1.requestBuilder)(input, context);
484
345
  const headers = {};
485
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLifecyclePolicy";
346
+ b.bp("/DeleteLifecyclePolicy");
486
347
  const query = (0, smithy_client_1.map)({
487
- lifecyclePolicyArn: [, (0, smithy_client_1.expectNonNull)(input.lifecyclePolicyArn, `lifecyclePolicyArn`)],
348
+ [_lPA]: [, (0, smithy_client_1.expectNonNull)(input[_lPA], `lifecyclePolicyArn`)],
488
349
  });
489
350
  let body;
490
- return new protocol_http_1.HttpRequest({
491
- protocol,
492
- hostname,
493
- port,
494
- method: "DELETE",
495
- headers,
496
- path: resolvedPath,
497
- query,
498
- body,
499
- });
351
+ b.m("DELETE").h(headers).q(query).b(body);
352
+ return b.build();
500
353
  };
501
354
  exports.se_DeleteLifecyclePolicyCommand = se_DeleteLifecyclePolicyCommand;
502
355
  const se_DeleteWorkflowCommand = async (input, context) => {
503
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
356
+ const b = (0, core_1.requestBuilder)(input, context);
504
357
  const headers = {};
505
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteWorkflow";
358
+ b.bp("/DeleteWorkflow");
506
359
  const query = (0, smithy_client_1.map)({
507
- workflowBuildVersionArn: [, (0, smithy_client_1.expectNonNull)(input.workflowBuildVersionArn, `workflowBuildVersionArn`)],
360
+ [_wBVA]: [, (0, smithy_client_1.expectNonNull)(input[_wBVA], `workflowBuildVersionArn`)],
508
361
  });
509
362
  let body;
510
- return new protocol_http_1.HttpRequest({
511
- protocol,
512
- hostname,
513
- port,
514
- method: "DELETE",
515
- headers,
516
- path: resolvedPath,
517
- query,
518
- body,
519
- });
363
+ b.m("DELETE").h(headers).q(query).b(body);
364
+ return b.build();
520
365
  };
521
366
  exports.se_DeleteWorkflowCommand = se_DeleteWorkflowCommand;
522
367
  const se_GetComponentCommand = async (input, context) => {
523
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
368
+ const b = (0, core_1.requestBuilder)(input, context);
524
369
  const headers = {};
525
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetComponent";
370
+ b.bp("/GetComponent");
526
371
  const query = (0, smithy_client_1.map)({
527
- componentBuildVersionArn: [, (0, smithy_client_1.expectNonNull)(input.componentBuildVersionArn, `componentBuildVersionArn`)],
372
+ [_cBVA]: [, (0, smithy_client_1.expectNonNull)(input[_cBVA], `componentBuildVersionArn`)],
528
373
  });
529
374
  let body;
530
- return new protocol_http_1.HttpRequest({
531
- protocol,
532
- hostname,
533
- port,
534
- method: "GET",
535
- headers,
536
- path: resolvedPath,
537
- query,
538
- body,
539
- });
375
+ b.m("GET").h(headers).q(query).b(body);
376
+ return b.build();
540
377
  };
541
378
  exports.se_GetComponentCommand = se_GetComponentCommand;
542
379
  const se_GetComponentPolicyCommand = async (input, context) => {
543
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
380
+ const b = (0, core_1.requestBuilder)(input, context);
544
381
  const headers = {};
545
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetComponentPolicy";
382
+ b.bp("/GetComponentPolicy");
546
383
  const query = (0, smithy_client_1.map)({
547
- componentArn: [, (0, smithy_client_1.expectNonNull)(input.componentArn, `componentArn`)],
384
+ [_cA]: [, (0, smithy_client_1.expectNonNull)(input[_cA], `componentArn`)],
548
385
  });
549
386
  let body;
550
- return new protocol_http_1.HttpRequest({
551
- protocol,
552
- hostname,
553
- port,
554
- method: "GET",
555
- headers,
556
- path: resolvedPath,
557
- query,
558
- body,
559
- });
387
+ b.m("GET").h(headers).q(query).b(body);
388
+ return b.build();
560
389
  };
561
390
  exports.se_GetComponentPolicyCommand = se_GetComponentPolicyCommand;
562
391
  const se_GetContainerRecipeCommand = async (input, context) => {
563
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
392
+ const b = (0, core_1.requestBuilder)(input, context);
564
393
  const headers = {};
565
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetContainerRecipe";
394
+ b.bp("/GetContainerRecipe");
566
395
  const query = (0, smithy_client_1.map)({
567
- containerRecipeArn: [, (0, smithy_client_1.expectNonNull)(input.containerRecipeArn, `containerRecipeArn`)],
396
+ [_cRA]: [, (0, smithy_client_1.expectNonNull)(input[_cRA], `containerRecipeArn`)],
568
397
  });
569
398
  let body;
570
- return new protocol_http_1.HttpRequest({
571
- protocol,
572
- hostname,
573
- port,
574
- method: "GET",
575
- headers,
576
- path: resolvedPath,
577
- query,
578
- body,
579
- });
399
+ b.m("GET").h(headers).q(query).b(body);
400
+ return b.build();
580
401
  };
581
402
  exports.se_GetContainerRecipeCommand = se_GetContainerRecipeCommand;
582
403
  const se_GetContainerRecipePolicyCommand = async (input, context) => {
583
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
404
+ const b = (0, core_1.requestBuilder)(input, context);
584
405
  const headers = {};
585
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetContainerRecipePolicy";
406
+ b.bp("/GetContainerRecipePolicy");
586
407
  const query = (0, smithy_client_1.map)({
587
- containerRecipeArn: [, (0, smithy_client_1.expectNonNull)(input.containerRecipeArn, `containerRecipeArn`)],
408
+ [_cRA]: [, (0, smithy_client_1.expectNonNull)(input[_cRA], `containerRecipeArn`)],
588
409
  });
589
410
  let body;
590
- return new protocol_http_1.HttpRequest({
591
- protocol,
592
- hostname,
593
- port,
594
- method: "GET",
595
- headers,
596
- path: resolvedPath,
597
- query,
598
- body,
599
- });
411
+ b.m("GET").h(headers).q(query).b(body);
412
+ return b.build();
600
413
  };
601
414
  exports.se_GetContainerRecipePolicyCommand = se_GetContainerRecipePolicyCommand;
602
415
  const se_GetDistributionConfigurationCommand = async (input, context) => {
603
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
416
+ const b = (0, core_1.requestBuilder)(input, context);
604
417
  const headers = {};
605
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetDistributionConfiguration";
418
+ b.bp("/GetDistributionConfiguration");
606
419
  const query = (0, smithy_client_1.map)({
607
- distributionConfigurationArn: [
608
- ,
609
- (0, smithy_client_1.expectNonNull)(input.distributionConfigurationArn, `distributionConfigurationArn`),
610
- ],
420
+ [_dCA]: [, (0, smithy_client_1.expectNonNull)(input[_dCA], `distributionConfigurationArn`)],
611
421
  });
612
422
  let body;
613
- return new protocol_http_1.HttpRequest({
614
- protocol,
615
- hostname,
616
- port,
617
- method: "GET",
618
- headers,
619
- path: resolvedPath,
620
- query,
621
- body,
622
- });
423
+ b.m("GET").h(headers).q(query).b(body);
424
+ return b.build();
623
425
  };
624
426
  exports.se_GetDistributionConfigurationCommand = se_GetDistributionConfigurationCommand;
625
427
  const se_GetImageCommand = async (input, context) => {
626
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
428
+ const b = (0, core_1.requestBuilder)(input, context);
627
429
  const headers = {};
628
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetImage";
430
+ b.bp("/GetImage");
629
431
  const query = (0, smithy_client_1.map)({
630
- imageBuildVersionArn: [, (0, smithy_client_1.expectNonNull)(input.imageBuildVersionArn, `imageBuildVersionArn`)],
432
+ [_iBVA]: [, (0, smithy_client_1.expectNonNull)(input[_iBVA], `imageBuildVersionArn`)],
631
433
  });
632
434
  let body;
633
- return new protocol_http_1.HttpRequest({
634
- protocol,
635
- hostname,
636
- port,
637
- method: "GET",
638
- headers,
639
- path: resolvedPath,
640
- query,
641
- body,
642
- });
435
+ b.m("GET").h(headers).q(query).b(body);
436
+ return b.build();
643
437
  };
644
438
  exports.se_GetImageCommand = se_GetImageCommand;
645
439
  const se_GetImagePipelineCommand = async (input, context) => {
646
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
440
+ const b = (0, core_1.requestBuilder)(input, context);
647
441
  const headers = {};
648
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetImagePipeline";
442
+ b.bp("/GetImagePipeline");
649
443
  const query = (0, smithy_client_1.map)({
650
- imagePipelineArn: [, (0, smithy_client_1.expectNonNull)(input.imagePipelineArn, `imagePipelineArn`)],
444
+ [_iPA]: [, (0, smithy_client_1.expectNonNull)(input[_iPA], `imagePipelineArn`)],
651
445
  });
652
446
  let body;
653
- return new protocol_http_1.HttpRequest({
654
- protocol,
655
- hostname,
656
- port,
657
- method: "GET",
658
- headers,
659
- path: resolvedPath,
660
- query,
661
- body,
662
- });
447
+ b.m("GET").h(headers).q(query).b(body);
448
+ return b.build();
663
449
  };
664
450
  exports.se_GetImagePipelineCommand = se_GetImagePipelineCommand;
665
451
  const se_GetImagePolicyCommand = async (input, context) => {
666
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
452
+ const b = (0, core_1.requestBuilder)(input, context);
667
453
  const headers = {};
668
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetImagePolicy";
454
+ b.bp("/GetImagePolicy");
669
455
  const query = (0, smithy_client_1.map)({
670
- imageArn: [, (0, smithy_client_1.expectNonNull)(input.imageArn, `imageArn`)],
456
+ [_iA]: [, (0, smithy_client_1.expectNonNull)(input[_iA], `imageArn`)],
671
457
  });
672
458
  let body;
673
- return new protocol_http_1.HttpRequest({
674
- protocol,
675
- hostname,
676
- port,
677
- method: "GET",
678
- headers,
679
- path: resolvedPath,
680
- query,
681
- body,
682
- });
459
+ b.m("GET").h(headers).q(query).b(body);
460
+ return b.build();
683
461
  };
684
462
  exports.se_GetImagePolicyCommand = se_GetImagePolicyCommand;
685
463
  const se_GetImageRecipeCommand = async (input, context) => {
686
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
464
+ const b = (0, core_1.requestBuilder)(input, context);
687
465
  const headers = {};
688
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetImageRecipe";
466
+ b.bp("/GetImageRecipe");
689
467
  const query = (0, smithy_client_1.map)({
690
- imageRecipeArn: [, (0, smithy_client_1.expectNonNull)(input.imageRecipeArn, `imageRecipeArn`)],
468
+ [_iRA]: [, (0, smithy_client_1.expectNonNull)(input[_iRA], `imageRecipeArn`)],
691
469
  });
692
470
  let body;
693
- return new protocol_http_1.HttpRequest({
694
- protocol,
695
- hostname,
696
- port,
697
- method: "GET",
698
- headers,
699
- path: resolvedPath,
700
- query,
701
- body,
702
- });
471
+ b.m("GET").h(headers).q(query).b(body);
472
+ return b.build();
703
473
  };
704
474
  exports.se_GetImageRecipeCommand = se_GetImageRecipeCommand;
705
475
  const se_GetImageRecipePolicyCommand = async (input, context) => {
706
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
476
+ const b = (0, core_1.requestBuilder)(input, context);
707
477
  const headers = {};
708
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetImageRecipePolicy";
478
+ b.bp("/GetImageRecipePolicy");
709
479
  const query = (0, smithy_client_1.map)({
710
- imageRecipeArn: [, (0, smithy_client_1.expectNonNull)(input.imageRecipeArn, `imageRecipeArn`)],
480
+ [_iRA]: [, (0, smithy_client_1.expectNonNull)(input[_iRA], `imageRecipeArn`)],
711
481
  });
712
482
  let body;
713
- return new protocol_http_1.HttpRequest({
714
- protocol,
715
- hostname,
716
- port,
717
- method: "GET",
718
- headers,
719
- path: resolvedPath,
720
- query,
721
- body,
722
- });
483
+ b.m("GET").h(headers).q(query).b(body);
484
+ return b.build();
723
485
  };
724
486
  exports.se_GetImageRecipePolicyCommand = se_GetImageRecipePolicyCommand;
725
487
  const se_GetInfrastructureConfigurationCommand = async (input, context) => {
726
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
488
+ const b = (0, core_1.requestBuilder)(input, context);
727
489
  const headers = {};
728
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetInfrastructureConfiguration";
490
+ b.bp("/GetInfrastructureConfiguration");
729
491
  const query = (0, smithy_client_1.map)({
730
- infrastructureConfigurationArn: [
731
- ,
732
- (0, smithy_client_1.expectNonNull)(input.infrastructureConfigurationArn, `infrastructureConfigurationArn`),
733
- ],
492
+ [_iCA]: [, (0, smithy_client_1.expectNonNull)(input[_iCA], `infrastructureConfigurationArn`)],
734
493
  });
735
494
  let body;
736
- return new protocol_http_1.HttpRequest({
737
- protocol,
738
- hostname,
739
- port,
740
- method: "GET",
741
- headers,
742
- path: resolvedPath,
743
- query,
744
- body,
745
- });
495
+ b.m("GET").h(headers).q(query).b(body);
496
+ return b.build();
746
497
  };
747
498
  exports.se_GetInfrastructureConfigurationCommand = se_GetInfrastructureConfigurationCommand;
748
499
  const se_GetLifecycleExecutionCommand = async (input, context) => {
749
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
500
+ const b = (0, core_1.requestBuilder)(input, context);
750
501
  const headers = {};
751
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLifecycleExecution";
502
+ b.bp("/GetLifecycleExecution");
752
503
  const query = (0, smithy_client_1.map)({
753
- lifecycleExecutionId: [, (0, smithy_client_1.expectNonNull)(input.lifecycleExecutionId, `lifecycleExecutionId`)],
504
+ [_lEI]: [, (0, smithy_client_1.expectNonNull)(input[_lEI], `lifecycleExecutionId`)],
754
505
  });
755
506
  let body;
756
- return new protocol_http_1.HttpRequest({
757
- protocol,
758
- hostname,
759
- port,
760
- method: "GET",
761
- headers,
762
- path: resolvedPath,
763
- query,
764
- body,
765
- });
507
+ b.m("GET").h(headers).q(query).b(body);
508
+ return b.build();
766
509
  };
767
510
  exports.se_GetLifecycleExecutionCommand = se_GetLifecycleExecutionCommand;
768
511
  const se_GetLifecyclePolicyCommand = async (input, context) => {
769
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
512
+ const b = (0, core_1.requestBuilder)(input, context);
770
513
  const headers = {};
771
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLifecyclePolicy";
514
+ b.bp("/GetLifecyclePolicy");
772
515
  const query = (0, smithy_client_1.map)({
773
- lifecyclePolicyArn: [, (0, smithy_client_1.expectNonNull)(input.lifecyclePolicyArn, `lifecyclePolicyArn`)],
516
+ [_lPA]: [, (0, smithy_client_1.expectNonNull)(input[_lPA], `lifecyclePolicyArn`)],
774
517
  });
775
518
  let body;
776
- return new protocol_http_1.HttpRequest({
777
- protocol,
778
- hostname,
779
- port,
780
- method: "GET",
781
- headers,
782
- path: resolvedPath,
783
- query,
784
- body,
785
- });
519
+ b.m("GET").h(headers).q(query).b(body);
520
+ return b.build();
786
521
  };
787
522
  exports.se_GetLifecyclePolicyCommand = se_GetLifecyclePolicyCommand;
788
523
  const se_GetWorkflowCommand = async (input, context) => {
789
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
524
+ const b = (0, core_1.requestBuilder)(input, context);
790
525
  const headers = {};
791
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkflow";
526
+ b.bp("/GetWorkflow");
792
527
  const query = (0, smithy_client_1.map)({
793
- workflowBuildVersionArn: [, (0, smithy_client_1.expectNonNull)(input.workflowBuildVersionArn, `workflowBuildVersionArn`)],
528
+ [_wBVA]: [, (0, smithy_client_1.expectNonNull)(input[_wBVA], `workflowBuildVersionArn`)],
794
529
  });
795
530
  let body;
796
- return new protocol_http_1.HttpRequest({
797
- protocol,
798
- hostname,
799
- port,
800
- method: "GET",
801
- headers,
802
- path: resolvedPath,
803
- query,
804
- body,
805
- });
531
+ b.m("GET").h(headers).q(query).b(body);
532
+ return b.build();
806
533
  };
807
534
  exports.se_GetWorkflowCommand = se_GetWorkflowCommand;
808
535
  const se_GetWorkflowExecutionCommand = async (input, context) => {
809
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
536
+ const b = (0, core_1.requestBuilder)(input, context);
810
537
  const headers = {};
811
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkflowExecution";
538
+ b.bp("/GetWorkflowExecution");
812
539
  const query = (0, smithy_client_1.map)({
813
- workflowExecutionId: [, (0, smithy_client_1.expectNonNull)(input.workflowExecutionId, `workflowExecutionId`)],
540
+ [_wEI]: [, (0, smithy_client_1.expectNonNull)(input[_wEI], `workflowExecutionId`)],
814
541
  });
815
542
  let body;
816
- return new protocol_http_1.HttpRequest({
817
- protocol,
818
- hostname,
819
- port,
820
- method: "GET",
821
- headers,
822
- path: resolvedPath,
823
- query,
824
- body,
825
- });
543
+ b.m("GET").h(headers).q(query).b(body);
544
+ return b.build();
826
545
  };
827
546
  exports.se_GetWorkflowExecutionCommand = se_GetWorkflowExecutionCommand;
828
547
  const se_GetWorkflowStepExecutionCommand = async (input, context) => {
829
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
548
+ const b = (0, core_1.requestBuilder)(input, context);
830
549
  const headers = {};
831
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkflowStepExecution";
550
+ b.bp("/GetWorkflowStepExecution");
832
551
  const query = (0, smithy_client_1.map)({
833
- stepExecutionId: [, (0, smithy_client_1.expectNonNull)(input.stepExecutionId, `stepExecutionId`)],
552
+ [_sEI]: [, (0, smithy_client_1.expectNonNull)(input[_sEI], `stepExecutionId`)],
834
553
  });
835
554
  let body;
836
- return new protocol_http_1.HttpRequest({
837
- protocol,
838
- hostname,
839
- port,
840
- method: "GET",
841
- headers,
842
- path: resolvedPath,
843
- query,
844
- body,
845
- });
555
+ b.m("GET").h(headers).q(query).b(body);
556
+ return b.build();
846
557
  };
847
558
  exports.se_GetWorkflowStepExecutionCommand = se_GetWorkflowStepExecutionCommand;
848
559
  const se_ImportComponentCommand = async (input, context) => {
849
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
560
+ const b = (0, core_1.requestBuilder)(input, context);
850
561
  const headers = {
851
562
  "content-type": "application/json",
852
563
  };
853
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ImportComponent";
564
+ b.bp("/ImportComponent");
854
565
  let body;
855
566
  body = JSON.stringify((0, smithy_client_1.take)(input, {
856
567
  changeDescription: [],
@@ -866,23 +577,16 @@ const se_ImportComponentCommand = async (input, context) => {
866
577
  type: [],
867
578
  uri: [],
868
579
  }));
869
- return new protocol_http_1.HttpRequest({
870
- protocol,
871
- hostname,
872
- port,
873
- method: "PUT",
874
- headers,
875
- path: resolvedPath,
876
- body,
877
- });
580
+ b.m("PUT").h(headers).b(body);
581
+ return b.build();
878
582
  };
879
583
  exports.se_ImportComponentCommand = se_ImportComponentCommand;
880
584
  const se_ImportVmImageCommand = async (input, context) => {
881
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
585
+ const b = (0, core_1.requestBuilder)(input, context);
882
586
  const headers = {
883
587
  "content-type": "application/json",
884
588
  };
885
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ImportVmImage";
589
+ b.bp("/ImportVmImage");
886
590
  let body;
887
591
  body = JSON.stringify((0, smithy_client_1.take)(input, {
888
592
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -894,46 +598,32 @@ const se_ImportVmImageCommand = async (input, context) => {
894
598
  tags: (_) => (0, smithy_client_1._json)(_),
895
599
  vmImportTaskId: [],
896
600
  }));
897
- return new protocol_http_1.HttpRequest({
898
- protocol,
899
- hostname,
900
- port,
901
- method: "PUT",
902
- headers,
903
- path: resolvedPath,
904
- body,
905
- });
601
+ b.m("PUT").h(headers).b(body);
602
+ return b.build();
906
603
  };
907
604
  exports.se_ImportVmImageCommand = se_ImportVmImageCommand;
908
605
  const se_ListComponentBuildVersionsCommand = async (input, context) => {
909
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
606
+ const b = (0, core_1.requestBuilder)(input, context);
910
607
  const headers = {
911
608
  "content-type": "application/json",
912
609
  };
913
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListComponentBuildVersions";
610
+ b.bp("/ListComponentBuildVersions");
914
611
  let body;
915
612
  body = JSON.stringify((0, smithy_client_1.take)(input, {
916
613
  componentVersionArn: [],
917
614
  maxResults: [],
918
615
  nextToken: [],
919
616
  }));
920
- return new protocol_http_1.HttpRequest({
921
- protocol,
922
- hostname,
923
- port,
924
- method: "POST",
925
- headers,
926
- path: resolvedPath,
927
- body,
928
- });
617
+ b.m("POST").h(headers).b(body);
618
+ return b.build();
929
619
  };
930
620
  exports.se_ListComponentBuildVersionsCommand = se_ListComponentBuildVersionsCommand;
931
621
  const se_ListComponentsCommand = async (input, context) => {
932
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
622
+ const b = (0, core_1.requestBuilder)(input, context);
933
623
  const headers = {
934
624
  "content-type": "application/json",
935
625
  };
936
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListComponents";
626
+ b.bp("/ListComponents");
937
627
  let body;
938
628
  body = JSON.stringify((0, smithy_client_1.take)(input, {
939
629
  byName: [],
@@ -942,23 +632,16 @@ const se_ListComponentsCommand = async (input, context) => {
942
632
  nextToken: [],
943
633
  owner: [],
944
634
  }));
945
- return new protocol_http_1.HttpRequest({
946
- protocol,
947
- hostname,
948
- port,
949
- method: "POST",
950
- headers,
951
- path: resolvedPath,
952
- body,
953
- });
635
+ b.m("POST").h(headers).b(body);
636
+ return b.build();
954
637
  };
955
638
  exports.se_ListComponentsCommand = se_ListComponentsCommand;
956
639
  const se_ListContainerRecipesCommand = async (input, context) => {
957
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
640
+ const b = (0, core_1.requestBuilder)(input, context);
958
641
  const headers = {
959
642
  "content-type": "application/json",
960
643
  };
961
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListContainerRecipes";
644
+ b.bp("/ListContainerRecipes");
962
645
  let body;
963
646
  body = JSON.stringify((0, smithy_client_1.take)(input, {
964
647
  filters: (_) => (0, smithy_client_1._json)(_),
@@ -966,46 +649,32 @@ const se_ListContainerRecipesCommand = async (input, context) => {
966
649
  nextToken: [],
967
650
  owner: [],
968
651
  }));
969
- return new protocol_http_1.HttpRequest({
970
- protocol,
971
- hostname,
972
- port,
973
- method: "POST",
974
- headers,
975
- path: resolvedPath,
976
- body,
977
- });
652
+ b.m("POST").h(headers).b(body);
653
+ return b.build();
978
654
  };
979
655
  exports.se_ListContainerRecipesCommand = se_ListContainerRecipesCommand;
980
656
  const se_ListDistributionConfigurationsCommand = async (input, context) => {
981
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
657
+ const b = (0, core_1.requestBuilder)(input, context);
982
658
  const headers = {
983
659
  "content-type": "application/json",
984
660
  };
985
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListDistributionConfigurations";
661
+ b.bp("/ListDistributionConfigurations");
986
662
  let body;
987
663
  body = JSON.stringify((0, smithy_client_1.take)(input, {
988
664
  filters: (_) => (0, smithy_client_1._json)(_),
989
665
  maxResults: [],
990
666
  nextToken: [],
991
667
  }));
992
- return new protocol_http_1.HttpRequest({
993
- protocol,
994
- hostname,
995
- port,
996
- method: "POST",
997
- headers,
998
- path: resolvedPath,
999
- body,
1000
- });
668
+ b.m("POST").h(headers).b(body);
669
+ return b.build();
1001
670
  };
1002
671
  exports.se_ListDistributionConfigurationsCommand = se_ListDistributionConfigurationsCommand;
1003
672
  const se_ListImageBuildVersionsCommand = async (input, context) => {
1004
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
673
+ const b = (0, core_1.requestBuilder)(input, context);
1005
674
  const headers = {
1006
675
  "content-type": "application/json",
1007
676
  };
1008
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImageBuildVersions";
677
+ b.bp("/ListImageBuildVersions");
1009
678
  let body;
1010
679
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1011
680
  filters: (_) => (0, smithy_client_1._json)(_),
@@ -1013,46 +682,32 @@ const se_ListImageBuildVersionsCommand = async (input, context) => {
1013
682
  maxResults: [],
1014
683
  nextToken: [],
1015
684
  }));
1016
- return new protocol_http_1.HttpRequest({
1017
- protocol,
1018
- hostname,
1019
- port,
1020
- method: "POST",
1021
- headers,
1022
- path: resolvedPath,
1023
- body,
1024
- });
685
+ b.m("POST").h(headers).b(body);
686
+ return b.build();
1025
687
  };
1026
688
  exports.se_ListImageBuildVersionsCommand = se_ListImageBuildVersionsCommand;
1027
689
  const se_ListImagePackagesCommand = async (input, context) => {
1028
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
690
+ const b = (0, core_1.requestBuilder)(input, context);
1029
691
  const headers = {
1030
692
  "content-type": "application/json",
1031
693
  };
1032
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImagePackages";
694
+ b.bp("/ListImagePackages");
1033
695
  let body;
1034
696
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1035
697
  imageBuildVersionArn: [],
1036
698
  maxResults: [],
1037
699
  nextToken: [],
1038
700
  }));
1039
- return new protocol_http_1.HttpRequest({
1040
- protocol,
1041
- hostname,
1042
- port,
1043
- method: "POST",
1044
- headers,
1045
- path: resolvedPath,
1046
- body,
1047
- });
701
+ b.m("POST").h(headers).b(body);
702
+ return b.build();
1048
703
  };
1049
704
  exports.se_ListImagePackagesCommand = se_ListImagePackagesCommand;
1050
705
  const se_ListImagePipelineImagesCommand = async (input, context) => {
1051
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
706
+ const b = (0, core_1.requestBuilder)(input, context);
1052
707
  const headers = {
1053
708
  "content-type": "application/json",
1054
709
  };
1055
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImagePipelineImages";
710
+ b.bp("/ListImagePipelineImages");
1056
711
  let body;
1057
712
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1058
713
  filters: (_) => (0, smithy_client_1._json)(_),
@@ -1060,46 +715,32 @@ const se_ListImagePipelineImagesCommand = async (input, context) => {
1060
715
  maxResults: [],
1061
716
  nextToken: [],
1062
717
  }));
1063
- return new protocol_http_1.HttpRequest({
1064
- protocol,
1065
- hostname,
1066
- port,
1067
- method: "POST",
1068
- headers,
1069
- path: resolvedPath,
1070
- body,
1071
- });
718
+ b.m("POST").h(headers).b(body);
719
+ return b.build();
1072
720
  };
1073
721
  exports.se_ListImagePipelineImagesCommand = se_ListImagePipelineImagesCommand;
1074
722
  const se_ListImagePipelinesCommand = async (input, context) => {
1075
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
723
+ const b = (0, core_1.requestBuilder)(input, context);
1076
724
  const headers = {
1077
725
  "content-type": "application/json",
1078
726
  };
1079
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImagePipelines";
727
+ b.bp("/ListImagePipelines");
1080
728
  let body;
1081
729
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1082
730
  filters: (_) => (0, smithy_client_1._json)(_),
1083
731
  maxResults: [],
1084
732
  nextToken: [],
1085
733
  }));
1086
- return new protocol_http_1.HttpRequest({
1087
- protocol,
1088
- hostname,
1089
- port,
1090
- method: "POST",
1091
- headers,
1092
- path: resolvedPath,
1093
- body,
1094
- });
734
+ b.m("POST").h(headers).b(body);
735
+ return b.build();
1095
736
  };
1096
737
  exports.se_ListImagePipelinesCommand = se_ListImagePipelinesCommand;
1097
738
  const se_ListImageRecipesCommand = async (input, context) => {
1098
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
739
+ const b = (0, core_1.requestBuilder)(input, context);
1099
740
  const headers = {
1100
741
  "content-type": "application/json",
1101
742
  };
1102
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImageRecipes";
743
+ b.bp("/ListImageRecipes");
1103
744
  let body;
1104
745
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1105
746
  filters: (_) => (0, smithy_client_1._json)(_),
@@ -1107,23 +748,16 @@ const se_ListImageRecipesCommand = async (input, context) => {
1107
748
  nextToken: [],
1108
749
  owner: [],
1109
750
  }));
1110
- return new protocol_http_1.HttpRequest({
1111
- protocol,
1112
- hostname,
1113
- port,
1114
- method: "POST",
1115
- headers,
1116
- path: resolvedPath,
1117
- body,
1118
- });
751
+ b.m("POST").h(headers).b(body);
752
+ return b.build();
1119
753
  };
1120
754
  exports.se_ListImageRecipesCommand = se_ListImageRecipesCommand;
1121
755
  const se_ListImagesCommand = async (input, context) => {
1122
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
756
+ const b = (0, core_1.requestBuilder)(input, context);
1123
757
  const headers = {
1124
758
  "content-type": "application/json",
1125
759
  };
1126
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImages";
760
+ b.bp("/ListImages");
1127
761
  let body;
1128
762
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1129
763
  byName: [],
@@ -1133,91 +767,63 @@ const se_ListImagesCommand = async (input, context) => {
1133
767
  nextToken: [],
1134
768
  owner: [],
1135
769
  }));
1136
- return new protocol_http_1.HttpRequest({
1137
- protocol,
1138
- hostname,
1139
- port,
1140
- method: "POST",
1141
- headers,
1142
- path: resolvedPath,
1143
- body,
1144
- });
770
+ b.m("POST").h(headers).b(body);
771
+ return b.build();
1145
772
  };
1146
773
  exports.se_ListImagesCommand = se_ListImagesCommand;
1147
774
  const se_ListImageScanFindingAggregationsCommand = async (input, context) => {
1148
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
775
+ const b = (0, core_1.requestBuilder)(input, context);
1149
776
  const headers = {
1150
777
  "content-type": "application/json",
1151
778
  };
1152
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImageScanFindingAggregations";
779
+ b.bp("/ListImageScanFindingAggregations");
1153
780
  let body;
1154
781
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1155
782
  filter: (_) => (0, smithy_client_1._json)(_),
1156
783
  nextToken: [],
1157
784
  }));
1158
- return new protocol_http_1.HttpRequest({
1159
- protocol,
1160
- hostname,
1161
- port,
1162
- method: "POST",
1163
- headers,
1164
- path: resolvedPath,
1165
- body,
1166
- });
785
+ b.m("POST").h(headers).b(body);
786
+ return b.build();
1167
787
  };
1168
788
  exports.se_ListImageScanFindingAggregationsCommand = se_ListImageScanFindingAggregationsCommand;
1169
789
  const se_ListImageScanFindingsCommand = async (input, context) => {
1170
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
790
+ const b = (0, core_1.requestBuilder)(input, context);
1171
791
  const headers = {
1172
792
  "content-type": "application/json",
1173
793
  };
1174
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImageScanFindings";
794
+ b.bp("/ListImageScanFindings");
1175
795
  let body;
1176
796
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1177
797
  filters: (_) => (0, smithy_client_1._json)(_),
1178
798
  maxResults: [],
1179
799
  nextToken: [],
1180
800
  }));
1181
- return new protocol_http_1.HttpRequest({
1182
- protocol,
1183
- hostname,
1184
- port,
1185
- method: "POST",
1186
- headers,
1187
- path: resolvedPath,
1188
- body,
1189
- });
801
+ b.m("POST").h(headers).b(body);
802
+ return b.build();
1190
803
  };
1191
804
  exports.se_ListImageScanFindingsCommand = se_ListImageScanFindingsCommand;
1192
805
  const se_ListInfrastructureConfigurationsCommand = async (input, context) => {
1193
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
806
+ const b = (0, core_1.requestBuilder)(input, context);
1194
807
  const headers = {
1195
808
  "content-type": "application/json",
1196
809
  };
1197
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListInfrastructureConfigurations";
810
+ b.bp("/ListInfrastructureConfigurations");
1198
811
  let body;
1199
812
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1200
813
  filters: (_) => (0, smithy_client_1._json)(_),
1201
814
  maxResults: [],
1202
815
  nextToken: [],
1203
816
  }));
1204
- return new protocol_http_1.HttpRequest({
1205
- protocol,
1206
- hostname,
1207
- port,
1208
- method: "POST",
1209
- headers,
1210
- path: resolvedPath,
1211
- body,
1212
- });
817
+ b.m("POST").h(headers).b(body);
818
+ return b.build();
1213
819
  };
1214
820
  exports.se_ListInfrastructureConfigurationsCommand = se_ListInfrastructureConfigurationsCommand;
1215
821
  const se_ListLifecycleExecutionResourcesCommand = async (input, context) => {
1216
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
822
+ const b = (0, core_1.requestBuilder)(input, context);
1217
823
  const headers = {
1218
824
  "content-type": "application/json",
1219
825
  };
1220
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLifecycleExecutionResources";
826
+ b.bp("/ListLifecycleExecutionResources");
1221
827
  let body;
1222
828
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1223
829
  lifecycleExecutionId: [],
@@ -1225,154 +831,105 @@ const se_ListLifecycleExecutionResourcesCommand = async (input, context) => {
1225
831
  nextToken: [],
1226
832
  parentResourceId: [],
1227
833
  }));
1228
- return new protocol_http_1.HttpRequest({
1229
- protocol,
1230
- hostname,
1231
- port,
1232
- method: "POST",
1233
- headers,
1234
- path: resolvedPath,
1235
- body,
1236
- });
834
+ b.m("POST").h(headers).b(body);
835
+ return b.build();
1237
836
  };
1238
837
  exports.se_ListLifecycleExecutionResourcesCommand = se_ListLifecycleExecutionResourcesCommand;
1239
838
  const se_ListLifecycleExecutionsCommand = async (input, context) => {
1240
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
839
+ const b = (0, core_1.requestBuilder)(input, context);
1241
840
  const headers = {
1242
841
  "content-type": "application/json",
1243
842
  };
1244
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLifecycleExecutions";
843
+ b.bp("/ListLifecycleExecutions");
1245
844
  let body;
1246
845
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1247
846
  maxResults: [],
1248
847
  nextToken: [],
1249
848
  resourceArn: [],
1250
849
  }));
1251
- return new protocol_http_1.HttpRequest({
1252
- protocol,
1253
- hostname,
1254
- port,
1255
- method: "POST",
1256
- headers,
1257
- path: resolvedPath,
1258
- body,
1259
- });
850
+ b.m("POST").h(headers).b(body);
851
+ return b.build();
1260
852
  };
1261
853
  exports.se_ListLifecycleExecutionsCommand = se_ListLifecycleExecutionsCommand;
1262
854
  const se_ListLifecyclePoliciesCommand = async (input, context) => {
1263
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
855
+ const b = (0, core_1.requestBuilder)(input, context);
1264
856
  const headers = {
1265
857
  "content-type": "application/json",
1266
858
  };
1267
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLifecyclePolicies";
859
+ b.bp("/ListLifecyclePolicies");
1268
860
  let body;
1269
861
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1270
862
  filters: (_) => (0, smithy_client_1._json)(_),
1271
863
  maxResults: [],
1272
864
  nextToken: [],
1273
865
  }));
1274
- return new protocol_http_1.HttpRequest({
1275
- protocol,
1276
- hostname,
1277
- port,
1278
- method: "POST",
1279
- headers,
1280
- path: resolvedPath,
1281
- body,
1282
- });
866
+ b.m("POST").h(headers).b(body);
867
+ return b.build();
1283
868
  };
1284
869
  exports.se_ListLifecyclePoliciesCommand = se_ListLifecyclePoliciesCommand;
1285
870
  const se_ListTagsForResourceCommand = async (input, context) => {
1286
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
871
+ const b = (0, core_1.requestBuilder)(input, context);
1287
872
  const headers = {};
1288
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1289
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
873
+ b.bp("/tags/{resourceArn}");
874
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1290
875
  let body;
1291
- return new protocol_http_1.HttpRequest({
1292
- protocol,
1293
- hostname,
1294
- port,
1295
- method: "GET",
1296
- headers,
1297
- path: resolvedPath,
1298
- body,
1299
- });
876
+ b.m("GET").h(headers).b(body);
877
+ return b.build();
1300
878
  };
1301
879
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1302
880
  const se_ListWaitingWorkflowStepsCommand = async (input, context) => {
1303
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
881
+ const b = (0, core_1.requestBuilder)(input, context);
1304
882
  const headers = {
1305
883
  "content-type": "application/json",
1306
884
  };
1307
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWaitingWorkflowSteps";
885
+ b.bp("/ListWaitingWorkflowSteps");
1308
886
  let body;
1309
887
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1310
888
  maxResults: [],
1311
889
  nextToken: [],
1312
890
  }));
1313
- return new protocol_http_1.HttpRequest({
1314
- protocol,
1315
- hostname,
1316
- port,
1317
- method: "POST",
1318
- headers,
1319
- path: resolvedPath,
1320
- body,
1321
- });
891
+ b.m("POST").h(headers).b(body);
892
+ return b.build();
1322
893
  };
1323
894
  exports.se_ListWaitingWorkflowStepsCommand = se_ListWaitingWorkflowStepsCommand;
1324
895
  const se_ListWorkflowBuildVersionsCommand = async (input, context) => {
1325
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
896
+ const b = (0, core_1.requestBuilder)(input, context);
1326
897
  const headers = {
1327
898
  "content-type": "application/json",
1328
899
  };
1329
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWorkflowBuildVersions";
900
+ b.bp("/ListWorkflowBuildVersions");
1330
901
  let body;
1331
902
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1332
903
  maxResults: [],
1333
904
  nextToken: [],
1334
905
  workflowVersionArn: [],
1335
906
  }));
1336
- return new protocol_http_1.HttpRequest({
1337
- protocol,
1338
- hostname,
1339
- port,
1340
- method: "POST",
1341
- headers,
1342
- path: resolvedPath,
1343
- body,
1344
- });
907
+ b.m("POST").h(headers).b(body);
908
+ return b.build();
1345
909
  };
1346
910
  exports.se_ListWorkflowBuildVersionsCommand = se_ListWorkflowBuildVersionsCommand;
1347
911
  const se_ListWorkflowExecutionsCommand = async (input, context) => {
1348
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
912
+ const b = (0, core_1.requestBuilder)(input, context);
1349
913
  const headers = {
1350
914
  "content-type": "application/json",
1351
915
  };
1352
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWorkflowExecutions";
916
+ b.bp("/ListWorkflowExecutions");
1353
917
  let body;
1354
918
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1355
919
  imageBuildVersionArn: [],
1356
920
  maxResults: [],
1357
921
  nextToken: [],
1358
922
  }));
1359
- return new protocol_http_1.HttpRequest({
1360
- protocol,
1361
- hostname,
1362
- port,
1363
- method: "POST",
1364
- headers,
1365
- path: resolvedPath,
1366
- body,
1367
- });
923
+ b.m("POST").h(headers).b(body);
924
+ return b.build();
1368
925
  };
1369
926
  exports.se_ListWorkflowExecutionsCommand = se_ListWorkflowExecutionsCommand;
1370
927
  const se_ListWorkflowsCommand = async (input, context) => {
1371
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
928
+ const b = (0, core_1.requestBuilder)(input, context);
1372
929
  const headers = {
1373
930
  "content-type": "application/json",
1374
931
  };
1375
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWorkflows";
932
+ b.bp("/ListWorkflows");
1376
933
  let body;
1377
934
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1378
935
  byName: [],
@@ -1381,134 +938,92 @@ const se_ListWorkflowsCommand = async (input, context) => {
1381
938
  nextToken: [],
1382
939
  owner: [],
1383
940
  }));
1384
- return new protocol_http_1.HttpRequest({
1385
- protocol,
1386
- hostname,
1387
- port,
1388
- method: "POST",
1389
- headers,
1390
- path: resolvedPath,
1391
- body,
1392
- });
941
+ b.m("POST").h(headers).b(body);
942
+ return b.build();
1393
943
  };
1394
944
  exports.se_ListWorkflowsCommand = se_ListWorkflowsCommand;
1395
945
  const se_ListWorkflowStepExecutionsCommand = async (input, context) => {
1396
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
946
+ const b = (0, core_1.requestBuilder)(input, context);
1397
947
  const headers = {
1398
948
  "content-type": "application/json",
1399
949
  };
1400
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWorkflowStepExecutions";
950
+ b.bp("/ListWorkflowStepExecutions");
1401
951
  let body;
1402
952
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1403
953
  maxResults: [],
1404
954
  nextToken: [],
1405
955
  workflowExecutionId: [],
1406
956
  }));
1407
- return new protocol_http_1.HttpRequest({
1408
- protocol,
1409
- hostname,
1410
- port,
1411
- method: "POST",
1412
- headers,
1413
- path: resolvedPath,
1414
- body,
1415
- });
957
+ b.m("POST").h(headers).b(body);
958
+ return b.build();
1416
959
  };
1417
960
  exports.se_ListWorkflowStepExecutionsCommand = se_ListWorkflowStepExecutionsCommand;
1418
961
  const se_PutComponentPolicyCommand = async (input, context) => {
1419
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
962
+ const b = (0, core_1.requestBuilder)(input, context);
1420
963
  const headers = {
1421
964
  "content-type": "application/json",
1422
965
  };
1423
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutComponentPolicy";
966
+ b.bp("/PutComponentPolicy");
1424
967
  let body;
1425
968
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1426
969
  componentArn: [],
1427
970
  policy: [],
1428
971
  }));
1429
- return new protocol_http_1.HttpRequest({
1430
- protocol,
1431
- hostname,
1432
- port,
1433
- method: "PUT",
1434
- headers,
1435
- path: resolvedPath,
1436
- body,
1437
- });
972
+ b.m("PUT").h(headers).b(body);
973
+ return b.build();
1438
974
  };
1439
975
  exports.se_PutComponentPolicyCommand = se_PutComponentPolicyCommand;
1440
976
  const se_PutContainerRecipePolicyCommand = async (input, context) => {
1441
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
977
+ const b = (0, core_1.requestBuilder)(input, context);
1442
978
  const headers = {
1443
979
  "content-type": "application/json",
1444
980
  };
1445
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutContainerRecipePolicy";
981
+ b.bp("/PutContainerRecipePolicy");
1446
982
  let body;
1447
983
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1448
984
  containerRecipeArn: [],
1449
985
  policy: [],
1450
986
  }));
1451
- return new protocol_http_1.HttpRequest({
1452
- protocol,
1453
- hostname,
1454
- port,
1455
- method: "PUT",
1456
- headers,
1457
- path: resolvedPath,
1458
- body,
1459
- });
987
+ b.m("PUT").h(headers).b(body);
988
+ return b.build();
1460
989
  };
1461
990
  exports.se_PutContainerRecipePolicyCommand = se_PutContainerRecipePolicyCommand;
1462
991
  const se_PutImagePolicyCommand = async (input, context) => {
1463
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
992
+ const b = (0, core_1.requestBuilder)(input, context);
1464
993
  const headers = {
1465
994
  "content-type": "application/json",
1466
995
  };
1467
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutImagePolicy";
996
+ b.bp("/PutImagePolicy");
1468
997
  let body;
1469
998
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1470
999
  imageArn: [],
1471
1000
  policy: [],
1472
1001
  }));
1473
- return new protocol_http_1.HttpRequest({
1474
- protocol,
1475
- hostname,
1476
- port,
1477
- method: "PUT",
1478
- headers,
1479
- path: resolvedPath,
1480
- body,
1481
- });
1002
+ b.m("PUT").h(headers).b(body);
1003
+ return b.build();
1482
1004
  };
1483
1005
  exports.se_PutImagePolicyCommand = se_PutImagePolicyCommand;
1484
1006
  const se_PutImageRecipePolicyCommand = async (input, context) => {
1485
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1007
+ const b = (0, core_1.requestBuilder)(input, context);
1486
1008
  const headers = {
1487
1009
  "content-type": "application/json",
1488
1010
  };
1489
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutImageRecipePolicy";
1011
+ b.bp("/PutImageRecipePolicy");
1490
1012
  let body;
1491
1013
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1492
1014
  imageRecipeArn: [],
1493
1015
  policy: [],
1494
1016
  }));
1495
- return new protocol_http_1.HttpRequest({
1496
- protocol,
1497
- hostname,
1498
- port,
1499
- method: "PUT",
1500
- headers,
1501
- path: resolvedPath,
1502
- body,
1503
- });
1017
+ b.m("PUT").h(headers).b(body);
1018
+ return b.build();
1504
1019
  };
1505
1020
  exports.se_PutImageRecipePolicyCommand = se_PutImageRecipePolicyCommand;
1506
1021
  const se_SendWorkflowStepActionCommand = async (input, context) => {
1507
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1022
+ const b = (0, core_1.requestBuilder)(input, context);
1508
1023
  const headers = {
1509
1024
  "content-type": "application/json",
1510
1025
  };
1511
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SendWorkflowStepAction";
1026
+ b.bp("/SendWorkflowStepAction");
1512
1027
  let body;
1513
1028
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1514
1029
  action: [],
@@ -1517,45 +1032,31 @@ const se_SendWorkflowStepActionCommand = async (input, context) => {
1517
1032
  reason: [],
1518
1033
  stepExecutionId: [],
1519
1034
  }));
1520
- return new protocol_http_1.HttpRequest({
1521
- protocol,
1522
- hostname,
1523
- port,
1524
- method: "PUT",
1525
- headers,
1526
- path: resolvedPath,
1527
- body,
1528
- });
1035
+ b.m("PUT").h(headers).b(body);
1036
+ return b.build();
1529
1037
  };
1530
1038
  exports.se_SendWorkflowStepActionCommand = se_SendWorkflowStepActionCommand;
1531
1039
  const se_StartImagePipelineExecutionCommand = async (input, context) => {
1532
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1040
+ const b = (0, core_1.requestBuilder)(input, context);
1533
1041
  const headers = {
1534
1042
  "content-type": "application/json",
1535
1043
  };
1536
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartImagePipelineExecution";
1044
+ b.bp("/StartImagePipelineExecution");
1537
1045
  let body;
1538
1046
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1539
1047
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1540
1048
  imagePipelineArn: [],
1541
1049
  }));
1542
- return new protocol_http_1.HttpRequest({
1543
- protocol,
1544
- hostname,
1545
- port,
1546
- method: "PUT",
1547
- headers,
1548
- path: resolvedPath,
1549
- body,
1550
- });
1050
+ b.m("PUT").h(headers).b(body);
1051
+ return b.build();
1551
1052
  };
1552
1053
  exports.se_StartImagePipelineExecutionCommand = se_StartImagePipelineExecutionCommand;
1553
1054
  const se_StartResourceStateUpdateCommand = async (input, context) => {
1554
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1055
+ const b = (0, core_1.requestBuilder)(input, context);
1555
1056
  const headers = {
1556
1057
  "content-type": "application/json",
1557
1058
  };
1558
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartResourceStateUpdate";
1059
+ b.bp("/StartResourceStateUpdate");
1559
1060
  let body;
1560
1061
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1561
1062
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -1566,69 +1067,47 @@ const se_StartResourceStateUpdateCommand = async (input, context) => {
1566
1067
  state: (_) => (0, smithy_client_1._json)(_),
1567
1068
  updateAt: (_) => Math.round(_.getTime() / 1000),
1568
1069
  }));
1569
- return new protocol_http_1.HttpRequest({
1570
- protocol,
1571
- hostname,
1572
- port,
1573
- method: "PUT",
1574
- headers,
1575
- path: resolvedPath,
1576
- body,
1577
- });
1070
+ b.m("PUT").h(headers).b(body);
1071
+ return b.build();
1578
1072
  };
1579
1073
  exports.se_StartResourceStateUpdateCommand = se_StartResourceStateUpdateCommand;
1580
1074
  const se_TagResourceCommand = async (input, context) => {
1581
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1075
+ const b = (0, core_1.requestBuilder)(input, context);
1582
1076
  const headers = {
1583
1077
  "content-type": "application/json",
1584
1078
  };
1585
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1586
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1079
+ b.bp("/tags/{resourceArn}");
1080
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1587
1081
  let body;
1588
1082
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1589
1083
  tags: (_) => (0, smithy_client_1._json)(_),
1590
1084
  }));
1591
- return new protocol_http_1.HttpRequest({
1592
- protocol,
1593
- hostname,
1594
- port,
1595
- method: "POST",
1596
- headers,
1597
- path: resolvedPath,
1598
- body,
1599
- });
1085
+ b.m("POST").h(headers).b(body);
1086
+ return b.build();
1600
1087
  };
1601
1088
  exports.se_TagResourceCommand = se_TagResourceCommand;
1602
1089
  const se_UntagResourceCommand = async (input, context) => {
1603
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1090
+ const b = (0, core_1.requestBuilder)(input, context);
1604
1091
  const headers = {};
1605
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1606
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1092
+ b.bp("/tags/{resourceArn}");
1093
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1607
1094
  const query = (0, smithy_client_1.map)({
1608
- tagKeys: [
1095
+ [_tK]: [
1609
1096
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
1610
- () => (input.tagKeys || []).map((_entry) => _entry),
1097
+ () => (input[_tK] || []).map((_entry) => _entry),
1611
1098
  ],
1612
1099
  });
1613
1100
  let body;
1614
- return new protocol_http_1.HttpRequest({
1615
- protocol,
1616
- hostname,
1617
- port,
1618
- method: "DELETE",
1619
- headers,
1620
- path: resolvedPath,
1621
- query,
1622
- body,
1623
- });
1101
+ b.m("DELETE").h(headers).q(query).b(body);
1102
+ return b.build();
1624
1103
  };
1625
1104
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1626
1105
  const se_UpdateDistributionConfigurationCommand = async (input, context) => {
1627
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1106
+ const b = (0, core_1.requestBuilder)(input, context);
1628
1107
  const headers = {
1629
1108
  "content-type": "application/json",
1630
1109
  };
1631
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateDistributionConfiguration";
1110
+ b.bp("/UpdateDistributionConfiguration");
1632
1111
  let body;
1633
1112
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1634
1113
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -1636,23 +1115,16 @@ const se_UpdateDistributionConfigurationCommand = async (input, context) => {
1636
1115
  distributionConfigurationArn: [],
1637
1116
  distributions: (_) => (0, smithy_client_1._json)(_),
1638
1117
  }));
1639
- return new protocol_http_1.HttpRequest({
1640
- protocol,
1641
- hostname,
1642
- port,
1643
- method: "PUT",
1644
- headers,
1645
- path: resolvedPath,
1646
- body,
1647
- });
1118
+ b.m("PUT").h(headers).b(body);
1119
+ return b.build();
1648
1120
  };
1649
1121
  exports.se_UpdateDistributionConfigurationCommand = se_UpdateDistributionConfigurationCommand;
1650
1122
  const se_UpdateImagePipelineCommand = async (input, context) => {
1651
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1123
+ const b = (0, core_1.requestBuilder)(input, context);
1652
1124
  const headers = {
1653
1125
  "content-type": "application/json",
1654
1126
  };
1655
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateImagePipeline";
1127
+ b.bp("/UpdateImagePipeline");
1656
1128
  let body;
1657
1129
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1658
1130
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -1670,23 +1142,16 @@ const se_UpdateImagePipelineCommand = async (input, context) => {
1670
1142
  status: [],
1671
1143
  workflows: (_) => (0, smithy_client_1._json)(_),
1672
1144
  }));
1673
- return new protocol_http_1.HttpRequest({
1674
- protocol,
1675
- hostname,
1676
- port,
1677
- method: "PUT",
1678
- headers,
1679
- path: resolvedPath,
1680
- body,
1681
- });
1145
+ b.m("PUT").h(headers).b(body);
1146
+ return b.build();
1682
1147
  };
1683
1148
  exports.se_UpdateImagePipelineCommand = se_UpdateImagePipelineCommand;
1684
1149
  const se_UpdateInfrastructureConfigurationCommand = async (input, context) => {
1685
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1150
+ const b = (0, core_1.requestBuilder)(input, context);
1686
1151
  const headers = {
1687
1152
  "content-type": "application/json",
1688
1153
  };
1689
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateInfrastructureConfiguration";
1154
+ b.bp("/UpdateInfrastructureConfiguration");
1690
1155
  let body;
1691
1156
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1692
1157
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -1703,23 +1168,16 @@ const se_UpdateInfrastructureConfigurationCommand = async (input, context) => {
1703
1168
  subnetId: [],
1704
1169
  terminateInstanceOnFailure: [],
1705
1170
  }));
1706
- return new protocol_http_1.HttpRequest({
1707
- protocol,
1708
- hostname,
1709
- port,
1710
- method: "PUT",
1711
- headers,
1712
- path: resolvedPath,
1713
- body,
1714
- });
1171
+ b.m("PUT").h(headers).b(body);
1172
+ return b.build();
1715
1173
  };
1716
1174
  exports.se_UpdateInfrastructureConfigurationCommand = se_UpdateInfrastructureConfigurationCommand;
1717
1175
  const se_UpdateLifecyclePolicyCommand = async (input, context) => {
1718
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1176
+ const b = (0, core_1.requestBuilder)(input, context);
1719
1177
  const headers = {
1720
1178
  "content-type": "application/json",
1721
1179
  };
1722
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLifecyclePolicy";
1180
+ b.bp("/UpdateLifecyclePolicy");
1723
1181
  let body;
1724
1182
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1725
1183
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -1731,15 +1189,8 @@ const se_UpdateLifecyclePolicyCommand = async (input, context) => {
1731
1189
  resourceType: [],
1732
1190
  status: [],
1733
1191
  }));
1734
- return new protocol_http_1.HttpRequest({
1735
- protocol,
1736
- hostname,
1737
- port,
1738
- method: "PUT",
1739
- headers,
1740
- path: resolvedPath,
1741
- body,
1742
- });
1192
+ b.m("PUT").h(headers).b(body);
1193
+ return b.build();
1743
1194
  };
1744
1195
  exports.se_UpdateLifecyclePolicyCommand = se_UpdateLifecyclePolicyCommand;
1745
1196
  const de_CancelImageCreationCommand = async (output, context) => {
@@ -6146,6 +5597,21 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
6146
5597
  value !== "" &&
6147
5598
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
6148
5599
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
5600
+ const _cA = "componentArn";
5601
+ const _cBVA = "componentBuildVersionArn";
5602
+ const _cRA = "containerRecipeArn";
5603
+ const _dCA = "distributionConfigurationArn";
5604
+ const _iA = "imageArn";
5605
+ const _iBVA = "imageBuildVersionArn";
5606
+ const _iCA = "infrastructureConfigurationArn";
5607
+ const _iPA = "imagePipelineArn";
5608
+ const _iRA = "imageRecipeArn";
5609
+ const _lEI = "lifecycleExecutionId";
5610
+ const _lPA = "lifecyclePolicyArn";
5611
+ const _sEI = "stepExecutionId";
5612
+ const _tK = "tagKeys";
5613
+ const _wBVA = "workflowBuildVersionArn";
5614
+ const _wEI = "workflowExecutionId";
6149
5615
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6150
5616
  if (encoded.length) {
6151
5617
  return JSON.parse(encoded);