@aws-sdk/client-service-catalog 3.927.0 → 3.928.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 (111) hide show
  1. package/dist-cjs/index.js +2814 -3152
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/ServiceCatalogClient.js +2 -0
  4. package/dist-es/commands/AcceptPortfolioShareCommand.js +3 -9
  5. package/dist-es/commands/AssociateBudgetWithResourceCommand.js +3 -9
  6. package/dist-es/commands/AssociatePrincipalWithPortfolioCommand.js +3 -9
  7. package/dist-es/commands/AssociateProductWithPortfolioCommand.js +3 -9
  8. package/dist-es/commands/AssociateServiceActionWithProvisioningArtifactCommand.js +3 -9
  9. package/dist-es/commands/AssociateTagOptionWithResourceCommand.js +3 -9
  10. package/dist-es/commands/BatchAssociateServiceActionWithProvisioningArtifactCommand.js +3 -9
  11. package/dist-es/commands/BatchDisassociateServiceActionFromProvisioningArtifactCommand.js +3 -9
  12. package/dist-es/commands/CopyProductCommand.js +3 -9
  13. package/dist-es/commands/CreateConstraintCommand.js +3 -9
  14. package/dist-es/commands/CreatePortfolioCommand.js +3 -9
  15. package/dist-es/commands/CreatePortfolioShareCommand.js +3 -9
  16. package/dist-es/commands/CreateProductCommand.js +3 -9
  17. package/dist-es/commands/CreateProvisionedProductPlanCommand.js +3 -9
  18. package/dist-es/commands/CreateProvisioningArtifactCommand.js +3 -9
  19. package/dist-es/commands/CreateServiceActionCommand.js +3 -9
  20. package/dist-es/commands/CreateTagOptionCommand.js +3 -9
  21. package/dist-es/commands/DeleteConstraintCommand.js +3 -9
  22. package/dist-es/commands/DeletePortfolioCommand.js +3 -9
  23. package/dist-es/commands/DeletePortfolioShareCommand.js +3 -9
  24. package/dist-es/commands/DeleteProductCommand.js +3 -9
  25. package/dist-es/commands/DeleteProvisionedProductPlanCommand.js +3 -9
  26. package/dist-es/commands/DeleteProvisioningArtifactCommand.js +3 -9
  27. package/dist-es/commands/DeleteServiceActionCommand.js +3 -9
  28. package/dist-es/commands/DeleteTagOptionCommand.js +3 -9
  29. package/dist-es/commands/DescribeConstraintCommand.js +3 -9
  30. package/dist-es/commands/DescribeCopyProductStatusCommand.js +3 -9
  31. package/dist-es/commands/DescribePortfolioCommand.js +3 -9
  32. package/dist-es/commands/DescribePortfolioShareStatusCommand.js +3 -9
  33. package/dist-es/commands/DescribePortfolioSharesCommand.js +3 -9
  34. package/dist-es/commands/DescribeProductAsAdminCommand.js +3 -9
  35. package/dist-es/commands/DescribeProductCommand.js +3 -9
  36. package/dist-es/commands/DescribeProductViewCommand.js +3 -9
  37. package/dist-es/commands/DescribeProvisionedProductCommand.js +3 -9
  38. package/dist-es/commands/DescribeProvisionedProductPlanCommand.js +3 -9
  39. package/dist-es/commands/DescribeProvisioningArtifactCommand.js +3 -9
  40. package/dist-es/commands/DescribeProvisioningParametersCommand.js +3 -9
  41. package/dist-es/commands/DescribeRecordCommand.js +3 -9
  42. package/dist-es/commands/DescribeServiceActionCommand.js +3 -9
  43. package/dist-es/commands/DescribeServiceActionExecutionParametersCommand.js +3 -9
  44. package/dist-es/commands/DescribeTagOptionCommand.js +3 -9
  45. package/dist-es/commands/DisableAWSOrganizationsAccessCommand.js +3 -9
  46. package/dist-es/commands/DisassociateBudgetFromResourceCommand.js +3 -9
  47. package/dist-es/commands/DisassociatePrincipalFromPortfolioCommand.js +3 -9
  48. package/dist-es/commands/DisassociateProductFromPortfolioCommand.js +3 -9
  49. package/dist-es/commands/DisassociateServiceActionFromProvisioningArtifactCommand.js +3 -9
  50. package/dist-es/commands/DisassociateTagOptionFromResourceCommand.js +3 -9
  51. package/dist-es/commands/EnableAWSOrganizationsAccessCommand.js +3 -9
  52. package/dist-es/commands/ExecuteProvisionedProductPlanCommand.js +3 -9
  53. package/dist-es/commands/ExecuteProvisionedProductServiceActionCommand.js +3 -9
  54. package/dist-es/commands/GetAWSOrganizationsAccessStatusCommand.js +3 -9
  55. package/dist-es/commands/GetProvisionedProductOutputsCommand.js +3 -9
  56. package/dist-es/commands/ImportAsProvisionedProductCommand.js +3 -9
  57. package/dist-es/commands/ListAcceptedPortfolioSharesCommand.js +3 -9
  58. package/dist-es/commands/ListBudgetsForResourceCommand.js +3 -9
  59. package/dist-es/commands/ListConstraintsForPortfolioCommand.js +3 -9
  60. package/dist-es/commands/ListLaunchPathsCommand.js +3 -9
  61. package/dist-es/commands/ListOrganizationPortfolioAccessCommand.js +3 -9
  62. package/dist-es/commands/ListPortfolioAccessCommand.js +3 -9
  63. package/dist-es/commands/ListPortfoliosCommand.js +3 -9
  64. package/dist-es/commands/ListPortfoliosForProductCommand.js +3 -9
  65. package/dist-es/commands/ListPrincipalsForPortfolioCommand.js +3 -9
  66. package/dist-es/commands/ListProvisionedProductPlansCommand.js +3 -9
  67. package/dist-es/commands/ListProvisioningArtifactsCommand.js +3 -9
  68. package/dist-es/commands/ListProvisioningArtifactsForServiceActionCommand.js +3 -9
  69. package/dist-es/commands/ListRecordHistoryCommand.js +3 -9
  70. package/dist-es/commands/ListResourcesForTagOptionCommand.js +3 -9
  71. package/dist-es/commands/ListServiceActionsCommand.js +3 -9
  72. package/dist-es/commands/ListServiceActionsForProvisioningArtifactCommand.js +3 -9
  73. package/dist-es/commands/ListStackInstancesForProvisionedProductCommand.js +3 -9
  74. package/dist-es/commands/ListTagOptionsCommand.js +3 -9
  75. package/dist-es/commands/NotifyProvisionProductEngineWorkflowResultCommand.js +3 -9
  76. package/dist-es/commands/NotifyTerminateProvisionedProductEngineWorkflowResultCommand.js +3 -9
  77. package/dist-es/commands/NotifyUpdateProvisionedProductEngineWorkflowResultCommand.js +3 -9
  78. package/dist-es/commands/ProvisionProductCommand.js +3 -9
  79. package/dist-es/commands/RejectPortfolioShareCommand.js +3 -9
  80. package/dist-es/commands/ScanProvisionedProductsCommand.js +3 -9
  81. package/dist-es/commands/SearchProductsAsAdminCommand.js +3 -9
  82. package/dist-es/commands/SearchProductsCommand.js +3 -9
  83. package/dist-es/commands/SearchProvisionedProductsCommand.js +3 -9
  84. package/dist-es/commands/TerminateProvisionedProductCommand.js +3 -9
  85. package/dist-es/commands/UpdateConstraintCommand.js +3 -9
  86. package/dist-es/commands/UpdatePortfolioCommand.js +3 -9
  87. package/dist-es/commands/UpdatePortfolioShareCommand.js +3 -9
  88. package/dist-es/commands/UpdateProductCommand.js +3 -9
  89. package/dist-es/commands/UpdateProvisionedProductCommand.js +3 -9
  90. package/dist-es/commands/UpdateProvisionedProductPropertiesCommand.js +3 -9
  91. package/dist-es/commands/UpdateProvisioningArtifactCommand.js +3 -9
  92. package/dist-es/commands/UpdateServiceActionCommand.js +3 -9
  93. package/dist-es/commands/UpdateTagOptionCommand.js +3 -9
  94. package/dist-es/runtimeConfig.shared.js +7 -0
  95. package/dist-es/schemas/schemas_0.js +2632 -0
  96. package/dist-types/ServiceCatalogClient.d.ts +10 -1
  97. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  98. package/dist-types/runtimeConfig.d.ts +1 -0
  99. package/dist-types/runtimeConfig.native.d.ts +1 -0
  100. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  101. package/dist-types/schemas/schemas_0.d.ts +407 -0
  102. package/dist-types/ts3.4/ServiceCatalogClient.d.ts +4 -0
  103. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  104. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  105. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  106. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  107. package/dist-types/ts3.4/schemas/schemas_0.d.ts +413 -0
  108. package/package.json +5 -6
  109. package/dist-es/protocols/Aws_json1_1.js +0 -2502
  110. package/dist-types/protocols/Aws_json1_1.d.ts +0 -812
  111. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -1085
@@ -1,2502 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { DuplicateResourceException, InvalidParametersException, InvalidStateException, LimitExceededException, OperationNotSupportedException, ResourceInUseException, ResourceNotFoundException, TagOptionNotMigratedException, } from "../models/models_0";
6
- import { ServiceCatalogServiceException as __BaseException } from "../models/ServiceCatalogServiceException";
7
- export const se_AcceptPortfolioShareCommand = async (input, context) => {
8
- const headers = sharedHeaders("AcceptPortfolioShare");
9
- let body;
10
- body = JSON.stringify(_json(input));
11
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
12
- };
13
- export const se_AssociateBudgetWithResourceCommand = async (input, context) => {
14
- const headers = sharedHeaders("AssociateBudgetWithResource");
15
- let body;
16
- body = JSON.stringify(_json(input));
17
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
- };
19
- export const se_AssociatePrincipalWithPortfolioCommand = async (input, context) => {
20
- const headers = sharedHeaders("AssociatePrincipalWithPortfolio");
21
- let body;
22
- body = JSON.stringify(_json(input));
23
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
- };
25
- export const se_AssociateProductWithPortfolioCommand = async (input, context) => {
26
- const headers = sharedHeaders("AssociateProductWithPortfolio");
27
- let body;
28
- body = JSON.stringify(_json(input));
29
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
- };
31
- export const se_AssociateServiceActionWithProvisioningArtifactCommand = async (input, context) => {
32
- const headers = sharedHeaders("AssociateServiceActionWithProvisioningArtifact");
33
- let body;
34
- body = JSON.stringify(se_AssociateServiceActionWithProvisioningArtifactInput(input, context));
35
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
- };
37
- export const se_AssociateTagOptionWithResourceCommand = async (input, context) => {
38
- const headers = sharedHeaders("AssociateTagOptionWithResource");
39
- let body;
40
- body = JSON.stringify(_json(input));
41
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
- };
43
- export const se_BatchAssociateServiceActionWithProvisioningArtifactCommand = async (input, context) => {
44
- const headers = sharedHeaders("BatchAssociateServiceActionWithProvisioningArtifact");
45
- let body;
46
- body = JSON.stringify(_json(input));
47
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
- };
49
- export const se_BatchDisassociateServiceActionFromProvisioningArtifactCommand = async (input, context) => {
50
- const headers = sharedHeaders("BatchDisassociateServiceActionFromProvisioningArtifact");
51
- let body;
52
- body = JSON.stringify(_json(input));
53
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
- };
55
- export const se_CopyProductCommand = async (input, context) => {
56
- const headers = sharedHeaders("CopyProduct");
57
- let body;
58
- body = JSON.stringify(se_CopyProductInput(input, context));
59
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
60
- };
61
- export const se_CreateConstraintCommand = async (input, context) => {
62
- const headers = sharedHeaders("CreateConstraint");
63
- let body;
64
- body = JSON.stringify(se_CreateConstraintInput(input, context));
65
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
- };
67
- export const se_CreatePortfolioCommand = async (input, context) => {
68
- const headers = sharedHeaders("CreatePortfolio");
69
- let body;
70
- body = JSON.stringify(se_CreatePortfolioInput(input, context));
71
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
72
- };
73
- export const se_CreatePortfolioShareCommand = async (input, context) => {
74
- const headers = sharedHeaders("CreatePortfolioShare");
75
- let body;
76
- body = JSON.stringify(_json(input));
77
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
- };
79
- export const se_CreateProductCommand = async (input, context) => {
80
- const headers = sharedHeaders("CreateProduct");
81
- let body;
82
- body = JSON.stringify(se_CreateProductInput(input, context));
83
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
- };
85
- export const se_CreateProvisionedProductPlanCommand = async (input, context) => {
86
- const headers = sharedHeaders("CreateProvisionedProductPlan");
87
- let body;
88
- body = JSON.stringify(se_CreateProvisionedProductPlanInput(input, context));
89
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
- };
91
- export const se_CreateProvisioningArtifactCommand = async (input, context) => {
92
- const headers = sharedHeaders("CreateProvisioningArtifact");
93
- let body;
94
- body = JSON.stringify(se_CreateProvisioningArtifactInput(input, context));
95
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
- };
97
- export const se_CreateServiceActionCommand = async (input, context) => {
98
- const headers = sharedHeaders("CreateServiceAction");
99
- let body;
100
- body = JSON.stringify(se_CreateServiceActionInput(input, context));
101
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
102
- };
103
- export const se_CreateTagOptionCommand = async (input, context) => {
104
- const headers = sharedHeaders("CreateTagOption");
105
- let body;
106
- body = JSON.stringify(_json(input));
107
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
- };
109
- export const se_DeleteConstraintCommand = async (input, context) => {
110
- const headers = sharedHeaders("DeleteConstraint");
111
- let body;
112
- body = JSON.stringify(_json(input));
113
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
114
- };
115
- export const se_DeletePortfolioCommand = async (input, context) => {
116
- const headers = sharedHeaders("DeletePortfolio");
117
- let body;
118
- body = JSON.stringify(_json(input));
119
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
- };
121
- export const se_DeletePortfolioShareCommand = async (input, context) => {
122
- const headers = sharedHeaders("DeletePortfolioShare");
123
- let body;
124
- body = JSON.stringify(_json(input));
125
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
- };
127
- export const se_DeleteProductCommand = async (input, context) => {
128
- const headers = sharedHeaders("DeleteProduct");
129
- let body;
130
- body = JSON.stringify(_json(input));
131
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
132
- };
133
- export const se_DeleteProvisionedProductPlanCommand = async (input, context) => {
134
- const headers = sharedHeaders("DeleteProvisionedProductPlan");
135
- let body;
136
- body = JSON.stringify(_json(input));
137
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
- };
139
- export const se_DeleteProvisioningArtifactCommand = async (input, context) => {
140
- const headers = sharedHeaders("DeleteProvisioningArtifact");
141
- let body;
142
- body = JSON.stringify(_json(input));
143
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
144
- };
145
- export const se_DeleteServiceActionCommand = async (input, context) => {
146
- const headers = sharedHeaders("DeleteServiceAction");
147
- let body;
148
- body = JSON.stringify(se_DeleteServiceActionInput(input, context));
149
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
- };
151
- export const se_DeleteTagOptionCommand = async (input, context) => {
152
- const headers = sharedHeaders("DeleteTagOption");
153
- let body;
154
- body = JSON.stringify(_json(input));
155
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
- };
157
- export const se_DescribeConstraintCommand = async (input, context) => {
158
- const headers = sharedHeaders("DescribeConstraint");
159
- let body;
160
- body = JSON.stringify(_json(input));
161
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
- };
163
- export const se_DescribeCopyProductStatusCommand = async (input, context) => {
164
- const headers = sharedHeaders("DescribeCopyProductStatus");
165
- let body;
166
- body = JSON.stringify(_json(input));
167
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
- };
169
- export const se_DescribePortfolioCommand = async (input, context) => {
170
- const headers = sharedHeaders("DescribePortfolio");
171
- let body;
172
- body = JSON.stringify(_json(input));
173
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
- };
175
- export const se_DescribePortfolioSharesCommand = async (input, context) => {
176
- const headers = sharedHeaders("DescribePortfolioShares");
177
- let body;
178
- body = JSON.stringify(_json(input));
179
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
180
- };
181
- export const se_DescribePortfolioShareStatusCommand = async (input, context) => {
182
- const headers = sharedHeaders("DescribePortfolioShareStatus");
183
- let body;
184
- body = JSON.stringify(_json(input));
185
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
- };
187
- export const se_DescribeProductCommand = async (input, context) => {
188
- const headers = sharedHeaders("DescribeProduct");
189
- let body;
190
- body = JSON.stringify(_json(input));
191
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
192
- };
193
- export const se_DescribeProductAsAdminCommand = async (input, context) => {
194
- const headers = sharedHeaders("DescribeProductAsAdmin");
195
- let body;
196
- body = JSON.stringify(_json(input));
197
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
- };
199
- export const se_DescribeProductViewCommand = async (input, context) => {
200
- const headers = sharedHeaders("DescribeProductView");
201
- let body;
202
- body = JSON.stringify(_json(input));
203
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
- };
205
- export const se_DescribeProvisionedProductCommand = async (input, context) => {
206
- const headers = sharedHeaders("DescribeProvisionedProduct");
207
- let body;
208
- body = JSON.stringify(_json(input));
209
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
- };
211
- export const se_DescribeProvisionedProductPlanCommand = async (input, context) => {
212
- const headers = sharedHeaders("DescribeProvisionedProductPlan");
213
- let body;
214
- body = JSON.stringify(_json(input));
215
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
216
- };
217
- export const se_DescribeProvisioningArtifactCommand = async (input, context) => {
218
- const headers = sharedHeaders("DescribeProvisioningArtifact");
219
- let body;
220
- body = JSON.stringify(_json(input));
221
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
222
- };
223
- export const se_DescribeProvisioningParametersCommand = async (input, context) => {
224
- const headers = sharedHeaders("DescribeProvisioningParameters");
225
- let body;
226
- body = JSON.stringify(_json(input));
227
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
- };
229
- export const se_DescribeRecordCommand = async (input, context) => {
230
- const headers = sharedHeaders("DescribeRecord");
231
- let body;
232
- body = JSON.stringify(_json(input));
233
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
- };
235
- export const se_DescribeServiceActionCommand = async (input, context) => {
236
- const headers = sharedHeaders("DescribeServiceAction");
237
- let body;
238
- body = JSON.stringify(_json(input));
239
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
240
- };
241
- export const se_DescribeServiceActionExecutionParametersCommand = async (input, context) => {
242
- const headers = sharedHeaders("DescribeServiceActionExecutionParameters");
243
- let body;
244
- body = JSON.stringify(_json(input));
245
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
- };
247
- export const se_DescribeTagOptionCommand = async (input, context) => {
248
- const headers = sharedHeaders("DescribeTagOption");
249
- let body;
250
- body = JSON.stringify(_json(input));
251
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
- };
253
- export const se_DisableAWSOrganizationsAccessCommand = async (input, context) => {
254
- const headers = sharedHeaders("DisableAWSOrganizationsAccess");
255
- let body;
256
- body = JSON.stringify(_json(input));
257
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
- };
259
- export const se_DisassociateBudgetFromResourceCommand = async (input, context) => {
260
- const headers = sharedHeaders("DisassociateBudgetFromResource");
261
- let body;
262
- body = JSON.stringify(_json(input));
263
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
264
- };
265
- export const se_DisassociatePrincipalFromPortfolioCommand = async (input, context) => {
266
- const headers = sharedHeaders("DisassociatePrincipalFromPortfolio");
267
- let body;
268
- body = JSON.stringify(_json(input));
269
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
270
- };
271
- export const se_DisassociateProductFromPortfolioCommand = async (input, context) => {
272
- const headers = sharedHeaders("DisassociateProductFromPortfolio");
273
- let body;
274
- body = JSON.stringify(_json(input));
275
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
276
- };
277
- export const se_DisassociateServiceActionFromProvisioningArtifactCommand = async (input, context) => {
278
- const headers = sharedHeaders("DisassociateServiceActionFromProvisioningArtifact");
279
- let body;
280
- body = JSON.stringify(se_DisassociateServiceActionFromProvisioningArtifactInput(input, context));
281
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
282
- };
283
- export const se_DisassociateTagOptionFromResourceCommand = async (input, context) => {
284
- const headers = sharedHeaders("DisassociateTagOptionFromResource");
285
- let body;
286
- body = JSON.stringify(_json(input));
287
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
- };
289
- export const se_EnableAWSOrganizationsAccessCommand = async (input, context) => {
290
- const headers = sharedHeaders("EnableAWSOrganizationsAccess");
291
- let body;
292
- body = JSON.stringify(_json(input));
293
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
- };
295
- export const se_ExecuteProvisionedProductPlanCommand = async (input, context) => {
296
- const headers = sharedHeaders("ExecuteProvisionedProductPlan");
297
- let body;
298
- body = JSON.stringify(se_ExecuteProvisionedProductPlanInput(input, context));
299
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
300
- };
301
- export const se_ExecuteProvisionedProductServiceActionCommand = async (input, context) => {
302
- const headers = sharedHeaders("ExecuteProvisionedProductServiceAction");
303
- let body;
304
- body = JSON.stringify(se_ExecuteProvisionedProductServiceActionInput(input, context));
305
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
306
- };
307
- export const se_GetAWSOrganizationsAccessStatusCommand = async (input, context) => {
308
- const headers = sharedHeaders("GetAWSOrganizationsAccessStatus");
309
- let body;
310
- body = JSON.stringify(_json(input));
311
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
312
- };
313
- export const se_GetProvisionedProductOutputsCommand = async (input, context) => {
314
- const headers = sharedHeaders("GetProvisionedProductOutputs");
315
- let body;
316
- body = JSON.stringify(_json(input));
317
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
- };
319
- export const se_ImportAsProvisionedProductCommand = async (input, context) => {
320
- const headers = sharedHeaders("ImportAsProvisionedProduct");
321
- let body;
322
- body = JSON.stringify(se_ImportAsProvisionedProductInput(input, context));
323
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
324
- };
325
- export const se_ListAcceptedPortfolioSharesCommand = async (input, context) => {
326
- const headers = sharedHeaders("ListAcceptedPortfolioShares");
327
- let body;
328
- body = JSON.stringify(_json(input));
329
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
- };
331
- export const se_ListBudgetsForResourceCommand = async (input, context) => {
332
- const headers = sharedHeaders("ListBudgetsForResource");
333
- let body;
334
- body = JSON.stringify(_json(input));
335
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
- };
337
- export const se_ListConstraintsForPortfolioCommand = async (input, context) => {
338
- const headers = sharedHeaders("ListConstraintsForPortfolio");
339
- let body;
340
- body = JSON.stringify(_json(input));
341
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
342
- };
343
- export const se_ListLaunchPathsCommand = async (input, context) => {
344
- const headers = sharedHeaders("ListLaunchPaths");
345
- let body;
346
- body = JSON.stringify(_json(input));
347
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
- };
349
- export const se_ListOrganizationPortfolioAccessCommand = async (input, context) => {
350
- const headers = sharedHeaders("ListOrganizationPortfolioAccess");
351
- let body;
352
- body = JSON.stringify(_json(input));
353
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
- };
355
- export const se_ListPortfolioAccessCommand = async (input, context) => {
356
- const headers = sharedHeaders("ListPortfolioAccess");
357
- let body;
358
- body = JSON.stringify(_json(input));
359
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
360
- };
361
- export const se_ListPortfoliosCommand = async (input, context) => {
362
- const headers = sharedHeaders("ListPortfolios");
363
- let body;
364
- body = JSON.stringify(_json(input));
365
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
- };
367
- export const se_ListPortfoliosForProductCommand = async (input, context) => {
368
- const headers = sharedHeaders("ListPortfoliosForProduct");
369
- let body;
370
- body = JSON.stringify(_json(input));
371
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
- };
373
- export const se_ListPrincipalsForPortfolioCommand = async (input, context) => {
374
- const headers = sharedHeaders("ListPrincipalsForPortfolio");
375
- let body;
376
- body = JSON.stringify(_json(input));
377
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
- };
379
- export const se_ListProvisionedProductPlansCommand = async (input, context) => {
380
- const headers = sharedHeaders("ListProvisionedProductPlans");
381
- let body;
382
- body = JSON.stringify(_json(input));
383
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
384
- };
385
- export const se_ListProvisioningArtifactsCommand = async (input, context) => {
386
- const headers = sharedHeaders("ListProvisioningArtifacts");
387
- let body;
388
- body = JSON.stringify(_json(input));
389
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
390
- };
391
- export const se_ListProvisioningArtifactsForServiceActionCommand = async (input, context) => {
392
- const headers = sharedHeaders("ListProvisioningArtifactsForServiceAction");
393
- let body;
394
- body = JSON.stringify(_json(input));
395
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
396
- };
397
- export const se_ListRecordHistoryCommand = async (input, context) => {
398
- const headers = sharedHeaders("ListRecordHistory");
399
- let body;
400
- body = JSON.stringify(_json(input));
401
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
402
- };
403
- export const se_ListResourcesForTagOptionCommand = async (input, context) => {
404
- const headers = sharedHeaders("ListResourcesForTagOption");
405
- let body;
406
- body = JSON.stringify(_json(input));
407
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
408
- };
409
- export const se_ListServiceActionsCommand = async (input, context) => {
410
- const headers = sharedHeaders("ListServiceActions");
411
- let body;
412
- body = JSON.stringify(_json(input));
413
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
- };
415
- export const se_ListServiceActionsForProvisioningArtifactCommand = async (input, context) => {
416
- const headers = sharedHeaders("ListServiceActionsForProvisioningArtifact");
417
- let body;
418
- body = JSON.stringify(_json(input));
419
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
420
- };
421
- export const se_ListStackInstancesForProvisionedProductCommand = async (input, context) => {
422
- const headers = sharedHeaders("ListStackInstancesForProvisionedProduct");
423
- let body;
424
- body = JSON.stringify(_json(input));
425
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
426
- };
427
- export const se_ListTagOptionsCommand = async (input, context) => {
428
- const headers = sharedHeaders("ListTagOptions");
429
- let body;
430
- body = JSON.stringify(_json(input));
431
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
432
- };
433
- export const se_NotifyProvisionProductEngineWorkflowResultCommand = async (input, context) => {
434
- const headers = sharedHeaders("NotifyProvisionProductEngineWorkflowResult");
435
- let body;
436
- body = JSON.stringify(se_NotifyProvisionProductEngineWorkflowResultInput(input, context));
437
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
438
- };
439
- export const se_NotifyTerminateProvisionedProductEngineWorkflowResultCommand = async (input, context) => {
440
- const headers = sharedHeaders("NotifyTerminateProvisionedProductEngineWorkflowResult");
441
- let body;
442
- body = JSON.stringify(se_NotifyTerminateProvisionedProductEngineWorkflowResultInput(input, context));
443
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
444
- };
445
- export const se_NotifyUpdateProvisionedProductEngineWorkflowResultCommand = async (input, context) => {
446
- const headers = sharedHeaders("NotifyUpdateProvisionedProductEngineWorkflowResult");
447
- let body;
448
- body = JSON.stringify(se_NotifyUpdateProvisionedProductEngineWorkflowResultInput(input, context));
449
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
450
- };
451
- export const se_ProvisionProductCommand = async (input, context) => {
452
- const headers = sharedHeaders("ProvisionProduct");
453
- let body;
454
- body = JSON.stringify(se_ProvisionProductInput(input, context));
455
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
456
- };
457
- export const se_RejectPortfolioShareCommand = async (input, context) => {
458
- const headers = sharedHeaders("RejectPortfolioShare");
459
- let body;
460
- body = JSON.stringify(_json(input));
461
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
462
- };
463
- export const se_ScanProvisionedProductsCommand = async (input, context) => {
464
- const headers = sharedHeaders("ScanProvisionedProducts");
465
- let body;
466
- body = JSON.stringify(_json(input));
467
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
468
- };
469
- export const se_SearchProductsCommand = async (input, context) => {
470
- const headers = sharedHeaders("SearchProducts");
471
- let body;
472
- body = JSON.stringify(_json(input));
473
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
474
- };
475
- export const se_SearchProductsAsAdminCommand = async (input, context) => {
476
- const headers = sharedHeaders("SearchProductsAsAdmin");
477
- let body;
478
- body = JSON.stringify(_json(input));
479
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
480
- };
481
- export const se_SearchProvisionedProductsCommand = async (input, context) => {
482
- const headers = sharedHeaders("SearchProvisionedProducts");
483
- let body;
484
- body = JSON.stringify(_json(input));
485
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
486
- };
487
- export const se_TerminateProvisionedProductCommand = async (input, context) => {
488
- const headers = sharedHeaders("TerminateProvisionedProduct");
489
- let body;
490
- body = JSON.stringify(se_TerminateProvisionedProductInput(input, context));
491
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
492
- };
493
- export const se_UpdateConstraintCommand = async (input, context) => {
494
- const headers = sharedHeaders("UpdateConstraint");
495
- let body;
496
- body = JSON.stringify(_json(input));
497
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
498
- };
499
- export const se_UpdatePortfolioCommand = async (input, context) => {
500
- const headers = sharedHeaders("UpdatePortfolio");
501
- let body;
502
- body = JSON.stringify(_json(input));
503
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
504
- };
505
- export const se_UpdatePortfolioShareCommand = async (input, context) => {
506
- const headers = sharedHeaders("UpdatePortfolioShare");
507
- let body;
508
- body = JSON.stringify(_json(input));
509
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
510
- };
511
- export const se_UpdateProductCommand = async (input, context) => {
512
- const headers = sharedHeaders("UpdateProduct");
513
- let body;
514
- body = JSON.stringify(_json(input));
515
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
516
- };
517
- export const se_UpdateProvisionedProductCommand = async (input, context) => {
518
- const headers = sharedHeaders("UpdateProvisionedProduct");
519
- let body;
520
- body = JSON.stringify(se_UpdateProvisionedProductInput(input, context));
521
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
522
- };
523
- export const se_UpdateProvisionedProductPropertiesCommand = async (input, context) => {
524
- const headers = sharedHeaders("UpdateProvisionedProductProperties");
525
- let body;
526
- body = JSON.stringify(se_UpdateProvisionedProductPropertiesInput(input, context));
527
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
528
- };
529
- export const se_UpdateProvisioningArtifactCommand = async (input, context) => {
530
- const headers = sharedHeaders("UpdateProvisioningArtifact");
531
- let body;
532
- body = JSON.stringify(_json(input));
533
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
534
- };
535
- export const se_UpdateServiceActionCommand = async (input, context) => {
536
- const headers = sharedHeaders("UpdateServiceAction");
537
- let body;
538
- body = JSON.stringify(_json(input));
539
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
540
- };
541
- export const se_UpdateTagOptionCommand = async (input, context) => {
542
- const headers = sharedHeaders("UpdateTagOption");
543
- let body;
544
- body = JSON.stringify(_json(input));
545
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
546
- };
547
- export const de_AcceptPortfolioShareCommand = async (output, context) => {
548
- if (output.statusCode >= 300) {
549
- return de_CommandError(output, context);
550
- }
551
- const data = await parseBody(output.body, context);
552
- let contents = {};
553
- contents = _json(data);
554
- const response = {
555
- $metadata: deserializeMetadata(output),
556
- ...contents,
557
- };
558
- return response;
559
- };
560
- export const de_AssociateBudgetWithResourceCommand = async (output, context) => {
561
- if (output.statusCode >= 300) {
562
- return de_CommandError(output, context);
563
- }
564
- const data = await parseBody(output.body, context);
565
- let contents = {};
566
- contents = _json(data);
567
- const response = {
568
- $metadata: deserializeMetadata(output),
569
- ...contents,
570
- };
571
- return response;
572
- };
573
- export const de_AssociatePrincipalWithPortfolioCommand = async (output, context) => {
574
- if (output.statusCode >= 300) {
575
- return de_CommandError(output, context);
576
- }
577
- const data = await parseBody(output.body, context);
578
- let contents = {};
579
- contents = _json(data);
580
- const response = {
581
- $metadata: deserializeMetadata(output),
582
- ...contents,
583
- };
584
- return response;
585
- };
586
- export const de_AssociateProductWithPortfolioCommand = async (output, context) => {
587
- if (output.statusCode >= 300) {
588
- return de_CommandError(output, context);
589
- }
590
- const data = await parseBody(output.body, context);
591
- let contents = {};
592
- contents = _json(data);
593
- const response = {
594
- $metadata: deserializeMetadata(output),
595
- ...contents,
596
- };
597
- return response;
598
- };
599
- export const de_AssociateServiceActionWithProvisioningArtifactCommand = async (output, context) => {
600
- if (output.statusCode >= 300) {
601
- return de_CommandError(output, context);
602
- }
603
- const data = await parseBody(output.body, context);
604
- let contents = {};
605
- contents = _json(data);
606
- const response = {
607
- $metadata: deserializeMetadata(output),
608
- ...contents,
609
- };
610
- return response;
611
- };
612
- export const de_AssociateTagOptionWithResourceCommand = async (output, context) => {
613
- if (output.statusCode >= 300) {
614
- return de_CommandError(output, context);
615
- }
616
- const data = await parseBody(output.body, context);
617
- let contents = {};
618
- contents = _json(data);
619
- const response = {
620
- $metadata: deserializeMetadata(output),
621
- ...contents,
622
- };
623
- return response;
624
- };
625
- export const de_BatchAssociateServiceActionWithProvisioningArtifactCommand = async (output, context) => {
626
- if (output.statusCode >= 300) {
627
- return de_CommandError(output, context);
628
- }
629
- const data = await parseBody(output.body, context);
630
- let contents = {};
631
- contents = _json(data);
632
- const response = {
633
- $metadata: deserializeMetadata(output),
634
- ...contents,
635
- };
636
- return response;
637
- };
638
- export const de_BatchDisassociateServiceActionFromProvisioningArtifactCommand = async (output, context) => {
639
- if (output.statusCode >= 300) {
640
- return de_CommandError(output, context);
641
- }
642
- const data = await parseBody(output.body, context);
643
- let contents = {};
644
- contents = _json(data);
645
- const response = {
646
- $metadata: deserializeMetadata(output),
647
- ...contents,
648
- };
649
- return response;
650
- };
651
- export const de_CopyProductCommand = async (output, context) => {
652
- if (output.statusCode >= 300) {
653
- return de_CommandError(output, context);
654
- }
655
- const data = await parseBody(output.body, context);
656
- let contents = {};
657
- contents = _json(data);
658
- const response = {
659
- $metadata: deserializeMetadata(output),
660
- ...contents,
661
- };
662
- return response;
663
- };
664
- export const de_CreateConstraintCommand = async (output, context) => {
665
- if (output.statusCode >= 300) {
666
- return de_CommandError(output, context);
667
- }
668
- const data = await parseBody(output.body, context);
669
- let contents = {};
670
- contents = _json(data);
671
- const response = {
672
- $metadata: deserializeMetadata(output),
673
- ...contents,
674
- };
675
- return response;
676
- };
677
- export const de_CreatePortfolioCommand = async (output, context) => {
678
- if (output.statusCode >= 300) {
679
- return de_CommandError(output, context);
680
- }
681
- const data = await parseBody(output.body, context);
682
- let contents = {};
683
- contents = de_CreatePortfolioOutput(data, context);
684
- const response = {
685
- $metadata: deserializeMetadata(output),
686
- ...contents,
687
- };
688
- return response;
689
- };
690
- export const de_CreatePortfolioShareCommand = async (output, context) => {
691
- if (output.statusCode >= 300) {
692
- return de_CommandError(output, context);
693
- }
694
- const data = await parseBody(output.body, context);
695
- let contents = {};
696
- contents = _json(data);
697
- const response = {
698
- $metadata: deserializeMetadata(output),
699
- ...contents,
700
- };
701
- return response;
702
- };
703
- export const de_CreateProductCommand = async (output, context) => {
704
- if (output.statusCode >= 300) {
705
- return de_CommandError(output, context);
706
- }
707
- const data = await parseBody(output.body, context);
708
- let contents = {};
709
- contents = de_CreateProductOutput(data, context);
710
- const response = {
711
- $metadata: deserializeMetadata(output),
712
- ...contents,
713
- };
714
- return response;
715
- };
716
- export const de_CreateProvisionedProductPlanCommand = async (output, context) => {
717
- if (output.statusCode >= 300) {
718
- return de_CommandError(output, context);
719
- }
720
- const data = await parseBody(output.body, context);
721
- let contents = {};
722
- contents = _json(data);
723
- const response = {
724
- $metadata: deserializeMetadata(output),
725
- ...contents,
726
- };
727
- return response;
728
- };
729
- export const de_CreateProvisioningArtifactCommand = async (output, context) => {
730
- if (output.statusCode >= 300) {
731
- return de_CommandError(output, context);
732
- }
733
- const data = await parseBody(output.body, context);
734
- let contents = {};
735
- contents = de_CreateProvisioningArtifactOutput(data, context);
736
- const response = {
737
- $metadata: deserializeMetadata(output),
738
- ...contents,
739
- };
740
- return response;
741
- };
742
- export const de_CreateServiceActionCommand = async (output, context) => {
743
- if (output.statusCode >= 300) {
744
- return de_CommandError(output, context);
745
- }
746
- const data = await parseBody(output.body, context);
747
- let contents = {};
748
- contents = _json(data);
749
- const response = {
750
- $metadata: deserializeMetadata(output),
751
- ...contents,
752
- };
753
- return response;
754
- };
755
- export const de_CreateTagOptionCommand = async (output, context) => {
756
- if (output.statusCode >= 300) {
757
- return de_CommandError(output, context);
758
- }
759
- const data = await parseBody(output.body, context);
760
- let contents = {};
761
- contents = _json(data);
762
- const response = {
763
- $metadata: deserializeMetadata(output),
764
- ...contents,
765
- };
766
- return response;
767
- };
768
- export const de_DeleteConstraintCommand = async (output, context) => {
769
- if (output.statusCode >= 300) {
770
- return de_CommandError(output, context);
771
- }
772
- const data = await parseBody(output.body, context);
773
- let contents = {};
774
- contents = _json(data);
775
- const response = {
776
- $metadata: deserializeMetadata(output),
777
- ...contents,
778
- };
779
- return response;
780
- };
781
- export const de_DeletePortfolioCommand = async (output, context) => {
782
- if (output.statusCode >= 300) {
783
- return de_CommandError(output, context);
784
- }
785
- const data = await parseBody(output.body, context);
786
- let contents = {};
787
- contents = _json(data);
788
- const response = {
789
- $metadata: deserializeMetadata(output),
790
- ...contents,
791
- };
792
- return response;
793
- };
794
- export const de_DeletePortfolioShareCommand = async (output, context) => {
795
- if (output.statusCode >= 300) {
796
- return de_CommandError(output, context);
797
- }
798
- const data = await parseBody(output.body, context);
799
- let contents = {};
800
- contents = _json(data);
801
- const response = {
802
- $metadata: deserializeMetadata(output),
803
- ...contents,
804
- };
805
- return response;
806
- };
807
- export const de_DeleteProductCommand = async (output, context) => {
808
- if (output.statusCode >= 300) {
809
- return de_CommandError(output, context);
810
- }
811
- const data = await parseBody(output.body, context);
812
- let contents = {};
813
- contents = _json(data);
814
- const response = {
815
- $metadata: deserializeMetadata(output),
816
- ...contents,
817
- };
818
- return response;
819
- };
820
- export const de_DeleteProvisionedProductPlanCommand = async (output, context) => {
821
- if (output.statusCode >= 300) {
822
- return de_CommandError(output, context);
823
- }
824
- const data = await parseBody(output.body, context);
825
- let contents = {};
826
- contents = _json(data);
827
- const response = {
828
- $metadata: deserializeMetadata(output),
829
- ...contents,
830
- };
831
- return response;
832
- };
833
- export const de_DeleteProvisioningArtifactCommand = async (output, context) => {
834
- if (output.statusCode >= 300) {
835
- return de_CommandError(output, context);
836
- }
837
- const data = await parseBody(output.body, context);
838
- let contents = {};
839
- contents = _json(data);
840
- const response = {
841
- $metadata: deserializeMetadata(output),
842
- ...contents,
843
- };
844
- return response;
845
- };
846
- export const de_DeleteServiceActionCommand = async (output, context) => {
847
- if (output.statusCode >= 300) {
848
- return de_CommandError(output, context);
849
- }
850
- const data = await parseBody(output.body, context);
851
- let contents = {};
852
- contents = _json(data);
853
- const response = {
854
- $metadata: deserializeMetadata(output),
855
- ...contents,
856
- };
857
- return response;
858
- };
859
- export const de_DeleteTagOptionCommand = async (output, context) => {
860
- if (output.statusCode >= 300) {
861
- return de_CommandError(output, context);
862
- }
863
- const data = await parseBody(output.body, context);
864
- let contents = {};
865
- contents = _json(data);
866
- const response = {
867
- $metadata: deserializeMetadata(output),
868
- ...contents,
869
- };
870
- return response;
871
- };
872
- export const de_DescribeConstraintCommand = async (output, context) => {
873
- if (output.statusCode >= 300) {
874
- return de_CommandError(output, context);
875
- }
876
- const data = await parseBody(output.body, context);
877
- let contents = {};
878
- contents = _json(data);
879
- const response = {
880
- $metadata: deserializeMetadata(output),
881
- ...contents,
882
- };
883
- return response;
884
- };
885
- export const de_DescribeCopyProductStatusCommand = async (output, context) => {
886
- if (output.statusCode >= 300) {
887
- return de_CommandError(output, context);
888
- }
889
- const data = await parseBody(output.body, context);
890
- let contents = {};
891
- contents = _json(data);
892
- const response = {
893
- $metadata: deserializeMetadata(output),
894
- ...contents,
895
- };
896
- return response;
897
- };
898
- export const de_DescribePortfolioCommand = async (output, context) => {
899
- if (output.statusCode >= 300) {
900
- return de_CommandError(output, context);
901
- }
902
- const data = await parseBody(output.body, context);
903
- let contents = {};
904
- contents = de_DescribePortfolioOutput(data, context);
905
- const response = {
906
- $metadata: deserializeMetadata(output),
907
- ...contents,
908
- };
909
- return response;
910
- };
911
- export const de_DescribePortfolioSharesCommand = async (output, context) => {
912
- if (output.statusCode >= 300) {
913
- return de_CommandError(output, context);
914
- }
915
- const data = await parseBody(output.body, context);
916
- let contents = {};
917
- contents = _json(data);
918
- const response = {
919
- $metadata: deserializeMetadata(output),
920
- ...contents,
921
- };
922
- return response;
923
- };
924
- export const de_DescribePortfolioShareStatusCommand = async (output, context) => {
925
- if (output.statusCode >= 300) {
926
- return de_CommandError(output, context);
927
- }
928
- const data = await parseBody(output.body, context);
929
- let contents = {};
930
- contents = _json(data);
931
- const response = {
932
- $metadata: deserializeMetadata(output),
933
- ...contents,
934
- };
935
- return response;
936
- };
937
- export const de_DescribeProductCommand = async (output, context) => {
938
- if (output.statusCode >= 300) {
939
- return de_CommandError(output, context);
940
- }
941
- const data = await parseBody(output.body, context);
942
- let contents = {};
943
- contents = de_DescribeProductOutput(data, context);
944
- const response = {
945
- $metadata: deserializeMetadata(output),
946
- ...contents,
947
- };
948
- return response;
949
- };
950
- export const de_DescribeProductAsAdminCommand = async (output, context) => {
951
- if (output.statusCode >= 300) {
952
- return de_CommandError(output, context);
953
- }
954
- const data = await parseBody(output.body, context);
955
- let contents = {};
956
- contents = de_DescribeProductAsAdminOutput(data, context);
957
- const response = {
958
- $metadata: deserializeMetadata(output),
959
- ...contents,
960
- };
961
- return response;
962
- };
963
- export const de_DescribeProductViewCommand = async (output, context) => {
964
- if (output.statusCode >= 300) {
965
- return de_CommandError(output, context);
966
- }
967
- const data = await parseBody(output.body, context);
968
- let contents = {};
969
- contents = de_DescribeProductViewOutput(data, context);
970
- const response = {
971
- $metadata: deserializeMetadata(output),
972
- ...contents,
973
- };
974
- return response;
975
- };
976
- export const de_DescribeProvisionedProductCommand = async (output, context) => {
977
- if (output.statusCode >= 300) {
978
- return de_CommandError(output, context);
979
- }
980
- const data = await parseBody(output.body, context);
981
- let contents = {};
982
- contents = de_DescribeProvisionedProductOutput(data, context);
983
- const response = {
984
- $metadata: deserializeMetadata(output),
985
- ...contents,
986
- };
987
- return response;
988
- };
989
- export const de_DescribeProvisionedProductPlanCommand = async (output, context) => {
990
- if (output.statusCode >= 300) {
991
- return de_CommandError(output, context);
992
- }
993
- const data = await parseBody(output.body, context);
994
- let contents = {};
995
- contents = de_DescribeProvisionedProductPlanOutput(data, context);
996
- const response = {
997
- $metadata: deserializeMetadata(output),
998
- ...contents,
999
- };
1000
- return response;
1001
- };
1002
- export const de_DescribeProvisioningArtifactCommand = async (output, context) => {
1003
- if (output.statusCode >= 300) {
1004
- return de_CommandError(output, context);
1005
- }
1006
- const data = await parseBody(output.body, context);
1007
- let contents = {};
1008
- contents = de_DescribeProvisioningArtifactOutput(data, context);
1009
- const response = {
1010
- $metadata: deserializeMetadata(output),
1011
- ...contents,
1012
- };
1013
- return response;
1014
- };
1015
- export const de_DescribeProvisioningParametersCommand = async (output, context) => {
1016
- if (output.statusCode >= 300) {
1017
- return de_CommandError(output, context);
1018
- }
1019
- const data = await parseBody(output.body, context);
1020
- let contents = {};
1021
- contents = _json(data);
1022
- const response = {
1023
- $metadata: deserializeMetadata(output),
1024
- ...contents,
1025
- };
1026
- return response;
1027
- };
1028
- export const de_DescribeRecordCommand = async (output, context) => {
1029
- if (output.statusCode >= 300) {
1030
- return de_CommandError(output, context);
1031
- }
1032
- const data = await parseBody(output.body, context);
1033
- let contents = {};
1034
- contents = de_DescribeRecordOutput(data, context);
1035
- const response = {
1036
- $metadata: deserializeMetadata(output),
1037
- ...contents,
1038
- };
1039
- return response;
1040
- };
1041
- export const de_DescribeServiceActionCommand = async (output, context) => {
1042
- if (output.statusCode >= 300) {
1043
- return de_CommandError(output, context);
1044
- }
1045
- const data = await parseBody(output.body, context);
1046
- let contents = {};
1047
- contents = _json(data);
1048
- const response = {
1049
- $metadata: deserializeMetadata(output),
1050
- ...contents,
1051
- };
1052
- return response;
1053
- };
1054
- export const de_DescribeServiceActionExecutionParametersCommand = async (output, context) => {
1055
- if (output.statusCode >= 300) {
1056
- return de_CommandError(output, context);
1057
- }
1058
- const data = await parseBody(output.body, context);
1059
- let contents = {};
1060
- contents = _json(data);
1061
- const response = {
1062
- $metadata: deserializeMetadata(output),
1063
- ...contents,
1064
- };
1065
- return response;
1066
- };
1067
- export const de_DescribeTagOptionCommand = async (output, context) => {
1068
- if (output.statusCode >= 300) {
1069
- return de_CommandError(output, context);
1070
- }
1071
- const data = await parseBody(output.body, context);
1072
- let contents = {};
1073
- contents = _json(data);
1074
- const response = {
1075
- $metadata: deserializeMetadata(output),
1076
- ...contents,
1077
- };
1078
- return response;
1079
- };
1080
- export const de_DisableAWSOrganizationsAccessCommand = async (output, context) => {
1081
- if (output.statusCode >= 300) {
1082
- return de_CommandError(output, context);
1083
- }
1084
- const data = await parseBody(output.body, context);
1085
- let contents = {};
1086
- contents = _json(data);
1087
- const response = {
1088
- $metadata: deserializeMetadata(output),
1089
- ...contents,
1090
- };
1091
- return response;
1092
- };
1093
- export const de_DisassociateBudgetFromResourceCommand = async (output, context) => {
1094
- if (output.statusCode >= 300) {
1095
- return de_CommandError(output, context);
1096
- }
1097
- const data = await parseBody(output.body, context);
1098
- let contents = {};
1099
- contents = _json(data);
1100
- const response = {
1101
- $metadata: deserializeMetadata(output),
1102
- ...contents,
1103
- };
1104
- return response;
1105
- };
1106
- export const de_DisassociatePrincipalFromPortfolioCommand = async (output, context) => {
1107
- if (output.statusCode >= 300) {
1108
- return de_CommandError(output, context);
1109
- }
1110
- const data = await parseBody(output.body, context);
1111
- let contents = {};
1112
- contents = _json(data);
1113
- const response = {
1114
- $metadata: deserializeMetadata(output),
1115
- ...contents,
1116
- };
1117
- return response;
1118
- };
1119
- export const de_DisassociateProductFromPortfolioCommand = async (output, context) => {
1120
- if (output.statusCode >= 300) {
1121
- return de_CommandError(output, context);
1122
- }
1123
- const data = await parseBody(output.body, context);
1124
- let contents = {};
1125
- contents = _json(data);
1126
- const response = {
1127
- $metadata: deserializeMetadata(output),
1128
- ...contents,
1129
- };
1130
- return response;
1131
- };
1132
- export const de_DisassociateServiceActionFromProvisioningArtifactCommand = async (output, context) => {
1133
- if (output.statusCode >= 300) {
1134
- return de_CommandError(output, context);
1135
- }
1136
- const data = await parseBody(output.body, context);
1137
- let contents = {};
1138
- contents = _json(data);
1139
- const response = {
1140
- $metadata: deserializeMetadata(output),
1141
- ...contents,
1142
- };
1143
- return response;
1144
- };
1145
- export const de_DisassociateTagOptionFromResourceCommand = async (output, context) => {
1146
- if (output.statusCode >= 300) {
1147
- return de_CommandError(output, context);
1148
- }
1149
- const data = await parseBody(output.body, context);
1150
- let contents = {};
1151
- contents = _json(data);
1152
- const response = {
1153
- $metadata: deserializeMetadata(output),
1154
- ...contents,
1155
- };
1156
- return response;
1157
- };
1158
- export const de_EnableAWSOrganizationsAccessCommand = async (output, context) => {
1159
- if (output.statusCode >= 300) {
1160
- return de_CommandError(output, context);
1161
- }
1162
- const data = await parseBody(output.body, context);
1163
- let contents = {};
1164
- contents = _json(data);
1165
- const response = {
1166
- $metadata: deserializeMetadata(output),
1167
- ...contents,
1168
- };
1169
- return response;
1170
- };
1171
- export const de_ExecuteProvisionedProductPlanCommand = async (output, context) => {
1172
- if (output.statusCode >= 300) {
1173
- return de_CommandError(output, context);
1174
- }
1175
- const data = await parseBody(output.body, context);
1176
- let contents = {};
1177
- contents = de_ExecuteProvisionedProductPlanOutput(data, context);
1178
- const response = {
1179
- $metadata: deserializeMetadata(output),
1180
- ...contents,
1181
- };
1182
- return response;
1183
- };
1184
- export const de_ExecuteProvisionedProductServiceActionCommand = async (output, context) => {
1185
- if (output.statusCode >= 300) {
1186
- return de_CommandError(output, context);
1187
- }
1188
- const data = await parseBody(output.body, context);
1189
- let contents = {};
1190
- contents = de_ExecuteProvisionedProductServiceActionOutput(data, context);
1191
- const response = {
1192
- $metadata: deserializeMetadata(output),
1193
- ...contents,
1194
- };
1195
- return response;
1196
- };
1197
- export const de_GetAWSOrganizationsAccessStatusCommand = async (output, context) => {
1198
- if (output.statusCode >= 300) {
1199
- return de_CommandError(output, context);
1200
- }
1201
- const data = await parseBody(output.body, context);
1202
- let contents = {};
1203
- contents = _json(data);
1204
- const response = {
1205
- $metadata: deserializeMetadata(output),
1206
- ...contents,
1207
- };
1208
- return response;
1209
- };
1210
- export const de_GetProvisionedProductOutputsCommand = async (output, context) => {
1211
- if (output.statusCode >= 300) {
1212
- return de_CommandError(output, context);
1213
- }
1214
- const data = await parseBody(output.body, context);
1215
- let contents = {};
1216
- contents = _json(data);
1217
- const response = {
1218
- $metadata: deserializeMetadata(output),
1219
- ...contents,
1220
- };
1221
- return response;
1222
- };
1223
- export const de_ImportAsProvisionedProductCommand = async (output, context) => {
1224
- if (output.statusCode >= 300) {
1225
- return de_CommandError(output, context);
1226
- }
1227
- const data = await parseBody(output.body, context);
1228
- let contents = {};
1229
- contents = de_ImportAsProvisionedProductOutput(data, context);
1230
- const response = {
1231
- $metadata: deserializeMetadata(output),
1232
- ...contents,
1233
- };
1234
- return response;
1235
- };
1236
- export const de_ListAcceptedPortfolioSharesCommand = async (output, context) => {
1237
- if (output.statusCode >= 300) {
1238
- return de_CommandError(output, context);
1239
- }
1240
- const data = await parseBody(output.body, context);
1241
- let contents = {};
1242
- contents = de_ListAcceptedPortfolioSharesOutput(data, context);
1243
- const response = {
1244
- $metadata: deserializeMetadata(output),
1245
- ...contents,
1246
- };
1247
- return response;
1248
- };
1249
- export const de_ListBudgetsForResourceCommand = async (output, context) => {
1250
- if (output.statusCode >= 300) {
1251
- return de_CommandError(output, context);
1252
- }
1253
- const data = await parseBody(output.body, context);
1254
- let contents = {};
1255
- contents = _json(data);
1256
- const response = {
1257
- $metadata: deserializeMetadata(output),
1258
- ...contents,
1259
- };
1260
- return response;
1261
- };
1262
- export const de_ListConstraintsForPortfolioCommand = async (output, context) => {
1263
- if (output.statusCode >= 300) {
1264
- return de_CommandError(output, context);
1265
- }
1266
- const data = await parseBody(output.body, context);
1267
- let contents = {};
1268
- contents = _json(data);
1269
- const response = {
1270
- $metadata: deserializeMetadata(output),
1271
- ...contents,
1272
- };
1273
- return response;
1274
- };
1275
- export const de_ListLaunchPathsCommand = async (output, context) => {
1276
- if (output.statusCode >= 300) {
1277
- return de_CommandError(output, context);
1278
- }
1279
- const data = await parseBody(output.body, context);
1280
- let contents = {};
1281
- contents = _json(data);
1282
- const response = {
1283
- $metadata: deserializeMetadata(output),
1284
- ...contents,
1285
- };
1286
- return response;
1287
- };
1288
- export const de_ListOrganizationPortfolioAccessCommand = async (output, context) => {
1289
- if (output.statusCode >= 300) {
1290
- return de_CommandError(output, context);
1291
- }
1292
- const data = await parseBody(output.body, context);
1293
- let contents = {};
1294
- contents = _json(data);
1295
- const response = {
1296
- $metadata: deserializeMetadata(output),
1297
- ...contents,
1298
- };
1299
- return response;
1300
- };
1301
- export const de_ListPortfolioAccessCommand = async (output, context) => {
1302
- if (output.statusCode >= 300) {
1303
- return de_CommandError(output, context);
1304
- }
1305
- const data = await parseBody(output.body, context);
1306
- let contents = {};
1307
- contents = _json(data);
1308
- const response = {
1309
- $metadata: deserializeMetadata(output),
1310
- ...contents,
1311
- };
1312
- return response;
1313
- };
1314
- export const de_ListPortfoliosCommand = async (output, context) => {
1315
- if (output.statusCode >= 300) {
1316
- return de_CommandError(output, context);
1317
- }
1318
- const data = await parseBody(output.body, context);
1319
- let contents = {};
1320
- contents = de_ListPortfoliosOutput(data, context);
1321
- const response = {
1322
- $metadata: deserializeMetadata(output),
1323
- ...contents,
1324
- };
1325
- return response;
1326
- };
1327
- export const de_ListPortfoliosForProductCommand = async (output, context) => {
1328
- if (output.statusCode >= 300) {
1329
- return de_CommandError(output, context);
1330
- }
1331
- const data = await parseBody(output.body, context);
1332
- let contents = {};
1333
- contents = de_ListPortfoliosForProductOutput(data, context);
1334
- const response = {
1335
- $metadata: deserializeMetadata(output),
1336
- ...contents,
1337
- };
1338
- return response;
1339
- };
1340
- export const de_ListPrincipalsForPortfolioCommand = async (output, context) => {
1341
- if (output.statusCode >= 300) {
1342
- return de_CommandError(output, context);
1343
- }
1344
- const data = await parseBody(output.body, context);
1345
- let contents = {};
1346
- contents = _json(data);
1347
- const response = {
1348
- $metadata: deserializeMetadata(output),
1349
- ...contents,
1350
- };
1351
- return response;
1352
- };
1353
- export const de_ListProvisionedProductPlansCommand = async (output, context) => {
1354
- if (output.statusCode >= 300) {
1355
- return de_CommandError(output, context);
1356
- }
1357
- const data = await parseBody(output.body, context);
1358
- let contents = {};
1359
- contents = _json(data);
1360
- const response = {
1361
- $metadata: deserializeMetadata(output),
1362
- ...contents,
1363
- };
1364
- return response;
1365
- };
1366
- export const de_ListProvisioningArtifactsCommand = async (output, context) => {
1367
- if (output.statusCode >= 300) {
1368
- return de_CommandError(output, context);
1369
- }
1370
- const data = await parseBody(output.body, context);
1371
- let contents = {};
1372
- contents = de_ListProvisioningArtifactsOutput(data, context);
1373
- const response = {
1374
- $metadata: deserializeMetadata(output),
1375
- ...contents,
1376
- };
1377
- return response;
1378
- };
1379
- export const de_ListProvisioningArtifactsForServiceActionCommand = async (output, context) => {
1380
- if (output.statusCode >= 300) {
1381
- return de_CommandError(output, context);
1382
- }
1383
- const data = await parseBody(output.body, context);
1384
- let contents = {};
1385
- contents = de_ListProvisioningArtifactsForServiceActionOutput(data, context);
1386
- const response = {
1387
- $metadata: deserializeMetadata(output),
1388
- ...contents,
1389
- };
1390
- return response;
1391
- };
1392
- export const de_ListRecordHistoryCommand = async (output, context) => {
1393
- if (output.statusCode >= 300) {
1394
- return de_CommandError(output, context);
1395
- }
1396
- const data = await parseBody(output.body, context);
1397
- let contents = {};
1398
- contents = de_ListRecordHistoryOutput(data, context);
1399
- const response = {
1400
- $metadata: deserializeMetadata(output),
1401
- ...contents,
1402
- };
1403
- return response;
1404
- };
1405
- export const de_ListResourcesForTagOptionCommand = async (output, context) => {
1406
- if (output.statusCode >= 300) {
1407
- return de_CommandError(output, context);
1408
- }
1409
- const data = await parseBody(output.body, context);
1410
- let contents = {};
1411
- contents = de_ListResourcesForTagOptionOutput(data, context);
1412
- const response = {
1413
- $metadata: deserializeMetadata(output),
1414
- ...contents,
1415
- };
1416
- return response;
1417
- };
1418
- export const de_ListServiceActionsCommand = async (output, context) => {
1419
- if (output.statusCode >= 300) {
1420
- return de_CommandError(output, context);
1421
- }
1422
- const data = await parseBody(output.body, context);
1423
- let contents = {};
1424
- contents = _json(data);
1425
- const response = {
1426
- $metadata: deserializeMetadata(output),
1427
- ...contents,
1428
- };
1429
- return response;
1430
- };
1431
- export const de_ListServiceActionsForProvisioningArtifactCommand = async (output, context) => {
1432
- if (output.statusCode >= 300) {
1433
- return de_CommandError(output, context);
1434
- }
1435
- const data = await parseBody(output.body, context);
1436
- let contents = {};
1437
- contents = _json(data);
1438
- const response = {
1439
- $metadata: deserializeMetadata(output),
1440
- ...contents,
1441
- };
1442
- return response;
1443
- };
1444
- export const de_ListStackInstancesForProvisionedProductCommand = async (output, context) => {
1445
- if (output.statusCode >= 300) {
1446
- return de_CommandError(output, context);
1447
- }
1448
- const data = await parseBody(output.body, context);
1449
- let contents = {};
1450
- contents = _json(data);
1451
- const response = {
1452
- $metadata: deserializeMetadata(output),
1453
- ...contents,
1454
- };
1455
- return response;
1456
- };
1457
- export const de_ListTagOptionsCommand = async (output, context) => {
1458
- if (output.statusCode >= 300) {
1459
- return de_CommandError(output, context);
1460
- }
1461
- const data = await parseBody(output.body, context);
1462
- let contents = {};
1463
- contents = _json(data);
1464
- const response = {
1465
- $metadata: deserializeMetadata(output),
1466
- ...contents,
1467
- };
1468
- return response;
1469
- };
1470
- export const de_NotifyProvisionProductEngineWorkflowResultCommand = async (output, context) => {
1471
- if (output.statusCode >= 300) {
1472
- return de_CommandError(output, context);
1473
- }
1474
- const data = await parseBody(output.body, context);
1475
- let contents = {};
1476
- contents = _json(data);
1477
- const response = {
1478
- $metadata: deserializeMetadata(output),
1479
- ...contents,
1480
- };
1481
- return response;
1482
- };
1483
- export const de_NotifyTerminateProvisionedProductEngineWorkflowResultCommand = async (output, context) => {
1484
- if (output.statusCode >= 300) {
1485
- return de_CommandError(output, context);
1486
- }
1487
- const data = await parseBody(output.body, context);
1488
- let contents = {};
1489
- contents = _json(data);
1490
- const response = {
1491
- $metadata: deserializeMetadata(output),
1492
- ...contents,
1493
- };
1494
- return response;
1495
- };
1496
- export const de_NotifyUpdateProvisionedProductEngineWorkflowResultCommand = async (output, context) => {
1497
- if (output.statusCode >= 300) {
1498
- return de_CommandError(output, context);
1499
- }
1500
- const data = await parseBody(output.body, context);
1501
- let contents = {};
1502
- contents = _json(data);
1503
- const response = {
1504
- $metadata: deserializeMetadata(output),
1505
- ...contents,
1506
- };
1507
- return response;
1508
- };
1509
- export const de_ProvisionProductCommand = async (output, context) => {
1510
- if (output.statusCode >= 300) {
1511
- return de_CommandError(output, context);
1512
- }
1513
- const data = await parseBody(output.body, context);
1514
- let contents = {};
1515
- contents = de_ProvisionProductOutput(data, context);
1516
- const response = {
1517
- $metadata: deserializeMetadata(output),
1518
- ...contents,
1519
- };
1520
- return response;
1521
- };
1522
- export const de_RejectPortfolioShareCommand = async (output, context) => {
1523
- if (output.statusCode >= 300) {
1524
- return de_CommandError(output, context);
1525
- }
1526
- const data = await parseBody(output.body, context);
1527
- let contents = {};
1528
- contents = _json(data);
1529
- const response = {
1530
- $metadata: deserializeMetadata(output),
1531
- ...contents,
1532
- };
1533
- return response;
1534
- };
1535
- export const de_ScanProvisionedProductsCommand = async (output, context) => {
1536
- if (output.statusCode >= 300) {
1537
- return de_CommandError(output, context);
1538
- }
1539
- const data = await parseBody(output.body, context);
1540
- let contents = {};
1541
- contents = de_ScanProvisionedProductsOutput(data, context);
1542
- const response = {
1543
- $metadata: deserializeMetadata(output),
1544
- ...contents,
1545
- };
1546
- return response;
1547
- };
1548
- export const de_SearchProductsCommand = async (output, context) => {
1549
- if (output.statusCode >= 300) {
1550
- return de_CommandError(output, context);
1551
- }
1552
- const data = await parseBody(output.body, context);
1553
- let contents = {};
1554
- contents = _json(data);
1555
- const response = {
1556
- $metadata: deserializeMetadata(output),
1557
- ...contents,
1558
- };
1559
- return response;
1560
- };
1561
- export const de_SearchProductsAsAdminCommand = async (output, context) => {
1562
- if (output.statusCode >= 300) {
1563
- return de_CommandError(output, context);
1564
- }
1565
- const data = await parseBody(output.body, context);
1566
- let contents = {};
1567
- contents = de_SearchProductsAsAdminOutput(data, context);
1568
- const response = {
1569
- $metadata: deserializeMetadata(output),
1570
- ...contents,
1571
- };
1572
- return response;
1573
- };
1574
- export const de_SearchProvisionedProductsCommand = async (output, context) => {
1575
- if (output.statusCode >= 300) {
1576
- return de_CommandError(output, context);
1577
- }
1578
- const data = await parseBody(output.body, context);
1579
- let contents = {};
1580
- contents = de_SearchProvisionedProductsOutput(data, context);
1581
- const response = {
1582
- $metadata: deserializeMetadata(output),
1583
- ...contents,
1584
- };
1585
- return response;
1586
- };
1587
- export const de_TerminateProvisionedProductCommand = async (output, context) => {
1588
- if (output.statusCode >= 300) {
1589
- return de_CommandError(output, context);
1590
- }
1591
- const data = await parseBody(output.body, context);
1592
- let contents = {};
1593
- contents = de_TerminateProvisionedProductOutput(data, context);
1594
- const response = {
1595
- $metadata: deserializeMetadata(output),
1596
- ...contents,
1597
- };
1598
- return response;
1599
- };
1600
- export const de_UpdateConstraintCommand = async (output, context) => {
1601
- if (output.statusCode >= 300) {
1602
- return de_CommandError(output, context);
1603
- }
1604
- const data = await parseBody(output.body, context);
1605
- let contents = {};
1606
- contents = _json(data);
1607
- const response = {
1608
- $metadata: deserializeMetadata(output),
1609
- ...contents,
1610
- };
1611
- return response;
1612
- };
1613
- export const de_UpdatePortfolioCommand = async (output, context) => {
1614
- if (output.statusCode >= 300) {
1615
- return de_CommandError(output, context);
1616
- }
1617
- const data = await parseBody(output.body, context);
1618
- let contents = {};
1619
- contents = de_UpdatePortfolioOutput(data, context);
1620
- const response = {
1621
- $metadata: deserializeMetadata(output),
1622
- ...contents,
1623
- };
1624
- return response;
1625
- };
1626
- export const de_UpdatePortfolioShareCommand = async (output, context) => {
1627
- if (output.statusCode >= 300) {
1628
- return de_CommandError(output, context);
1629
- }
1630
- const data = await parseBody(output.body, context);
1631
- let contents = {};
1632
- contents = _json(data);
1633
- const response = {
1634
- $metadata: deserializeMetadata(output),
1635
- ...contents,
1636
- };
1637
- return response;
1638
- };
1639
- export const de_UpdateProductCommand = async (output, context) => {
1640
- if (output.statusCode >= 300) {
1641
- return de_CommandError(output, context);
1642
- }
1643
- const data = await parseBody(output.body, context);
1644
- let contents = {};
1645
- contents = de_UpdateProductOutput(data, context);
1646
- const response = {
1647
- $metadata: deserializeMetadata(output),
1648
- ...contents,
1649
- };
1650
- return response;
1651
- };
1652
- export const de_UpdateProvisionedProductCommand = async (output, context) => {
1653
- if (output.statusCode >= 300) {
1654
- return de_CommandError(output, context);
1655
- }
1656
- const data = await parseBody(output.body, context);
1657
- let contents = {};
1658
- contents = de_UpdateProvisionedProductOutput(data, context);
1659
- const response = {
1660
- $metadata: deserializeMetadata(output),
1661
- ...contents,
1662
- };
1663
- return response;
1664
- };
1665
- export const de_UpdateProvisionedProductPropertiesCommand = async (output, context) => {
1666
- if (output.statusCode >= 300) {
1667
- return de_CommandError(output, context);
1668
- }
1669
- const data = await parseBody(output.body, context);
1670
- let contents = {};
1671
- contents = _json(data);
1672
- const response = {
1673
- $metadata: deserializeMetadata(output),
1674
- ...contents,
1675
- };
1676
- return response;
1677
- };
1678
- export const de_UpdateProvisioningArtifactCommand = async (output, context) => {
1679
- if (output.statusCode >= 300) {
1680
- return de_CommandError(output, context);
1681
- }
1682
- const data = await parseBody(output.body, context);
1683
- let contents = {};
1684
- contents = de_UpdateProvisioningArtifactOutput(data, context);
1685
- const response = {
1686
- $metadata: deserializeMetadata(output),
1687
- ...contents,
1688
- };
1689
- return response;
1690
- };
1691
- export const de_UpdateServiceActionCommand = async (output, context) => {
1692
- if (output.statusCode >= 300) {
1693
- return de_CommandError(output, context);
1694
- }
1695
- const data = await parseBody(output.body, context);
1696
- let contents = {};
1697
- contents = _json(data);
1698
- const response = {
1699
- $metadata: deserializeMetadata(output),
1700
- ...contents,
1701
- };
1702
- return response;
1703
- };
1704
- export const de_UpdateTagOptionCommand = async (output, context) => {
1705
- if (output.statusCode >= 300) {
1706
- return de_CommandError(output, context);
1707
- }
1708
- const data = await parseBody(output.body, context);
1709
- let contents = {};
1710
- contents = _json(data);
1711
- const response = {
1712
- $metadata: deserializeMetadata(output),
1713
- ...contents,
1714
- };
1715
- return response;
1716
- };
1717
- const de_CommandError = async (output, context) => {
1718
- const parsedOutput = {
1719
- ...output,
1720
- body: await parseErrorBody(output.body, context),
1721
- };
1722
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1723
- switch (errorCode) {
1724
- case "InvalidParametersException":
1725
- case "com.amazonaws.servicecatalog#InvalidParametersException":
1726
- throw await de_InvalidParametersExceptionRes(parsedOutput, context);
1727
- case "LimitExceededException":
1728
- case "com.amazonaws.servicecatalog#LimitExceededException":
1729
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1730
- case "ResourceNotFoundException":
1731
- case "com.amazonaws.servicecatalog#ResourceNotFoundException":
1732
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1733
- case "DuplicateResourceException":
1734
- case "com.amazonaws.servicecatalog#DuplicateResourceException":
1735
- throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
1736
- case "InvalidStateException":
1737
- case "com.amazonaws.servicecatalog#InvalidStateException":
1738
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1739
- case "TagOptionNotMigratedException":
1740
- case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
1741
- throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
1742
- case "OperationNotSupportedException":
1743
- case "com.amazonaws.servicecatalog#OperationNotSupportedException":
1744
- throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
1745
- case "ResourceInUseException":
1746
- case "com.amazonaws.servicecatalog#ResourceInUseException":
1747
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1748
- default:
1749
- const parsedBody = parsedOutput.body;
1750
- return throwDefaultError({
1751
- output,
1752
- parsedBody,
1753
- errorCode,
1754
- });
1755
- }
1756
- };
1757
- const de_DuplicateResourceExceptionRes = async (parsedOutput, context) => {
1758
- const body = parsedOutput.body;
1759
- const deserialized = _json(body);
1760
- const exception = new DuplicateResourceException({
1761
- $metadata: deserializeMetadata(parsedOutput),
1762
- ...deserialized,
1763
- });
1764
- return __decorateServiceException(exception, body);
1765
- };
1766
- const de_InvalidParametersExceptionRes = async (parsedOutput, context) => {
1767
- const body = parsedOutput.body;
1768
- const deserialized = _json(body);
1769
- const exception = new InvalidParametersException({
1770
- $metadata: deserializeMetadata(parsedOutput),
1771
- ...deserialized,
1772
- });
1773
- return __decorateServiceException(exception, body);
1774
- };
1775
- const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
1776
- const body = parsedOutput.body;
1777
- const deserialized = _json(body);
1778
- const exception = new InvalidStateException({
1779
- $metadata: deserializeMetadata(parsedOutput),
1780
- ...deserialized,
1781
- });
1782
- return __decorateServiceException(exception, body);
1783
- };
1784
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1785
- const body = parsedOutput.body;
1786
- const deserialized = _json(body);
1787
- const exception = new LimitExceededException({
1788
- $metadata: deserializeMetadata(parsedOutput),
1789
- ...deserialized,
1790
- });
1791
- return __decorateServiceException(exception, body);
1792
- };
1793
- const de_OperationNotSupportedExceptionRes = async (parsedOutput, context) => {
1794
- const body = parsedOutput.body;
1795
- const deserialized = _json(body);
1796
- const exception = new OperationNotSupportedException({
1797
- $metadata: deserializeMetadata(parsedOutput),
1798
- ...deserialized,
1799
- });
1800
- return __decorateServiceException(exception, body);
1801
- };
1802
- const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
1803
- const body = parsedOutput.body;
1804
- const deserialized = _json(body);
1805
- const exception = new ResourceInUseException({
1806
- $metadata: deserializeMetadata(parsedOutput),
1807
- ...deserialized,
1808
- });
1809
- return __decorateServiceException(exception, body);
1810
- };
1811
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1812
- const body = parsedOutput.body;
1813
- const deserialized = _json(body);
1814
- const exception = new ResourceNotFoundException({
1815
- $metadata: deserializeMetadata(parsedOutput),
1816
- ...deserialized,
1817
- });
1818
- return __decorateServiceException(exception, body);
1819
- };
1820
- const de_TagOptionNotMigratedExceptionRes = async (parsedOutput, context) => {
1821
- const body = parsedOutput.body;
1822
- const deserialized = _json(body);
1823
- const exception = new TagOptionNotMigratedException({
1824
- $metadata: deserializeMetadata(parsedOutput),
1825
- ...deserialized,
1826
- });
1827
- return __decorateServiceException(exception, body);
1828
- };
1829
- const se_AssociateServiceActionWithProvisioningArtifactInput = (input, context) => {
1830
- return take(input, {
1831
- AcceptLanguage: [],
1832
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1833
- ProductId: [],
1834
- ProvisioningArtifactId: [],
1835
- ServiceActionId: [],
1836
- });
1837
- };
1838
- const se_CopyProductInput = (input, context) => {
1839
- return take(input, {
1840
- AcceptLanguage: [],
1841
- CopyOptions: _json,
1842
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1843
- SourceProductArn: [],
1844
- SourceProvisioningArtifactIdentifiers: _json,
1845
- TargetProductId: [],
1846
- TargetProductName: [],
1847
- });
1848
- };
1849
- const se_CreateConstraintInput = (input, context) => {
1850
- return take(input, {
1851
- AcceptLanguage: [],
1852
- Description: [],
1853
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1854
- Parameters: [],
1855
- PortfolioId: [],
1856
- ProductId: [],
1857
- Type: [],
1858
- });
1859
- };
1860
- const se_CreatePortfolioInput = (input, context) => {
1861
- return take(input, {
1862
- AcceptLanguage: [],
1863
- Description: [],
1864
- DisplayName: [],
1865
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1866
- ProviderName: [],
1867
- Tags: _json,
1868
- });
1869
- };
1870
- const se_CreateProductInput = (input, context) => {
1871
- return take(input, {
1872
- AcceptLanguage: [],
1873
- Description: [],
1874
- Distributor: [],
1875
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1876
- Name: [],
1877
- Owner: [],
1878
- ProductType: [],
1879
- ProvisioningArtifactParameters: _json,
1880
- SourceConnection: _json,
1881
- SupportDescription: [],
1882
- SupportEmail: [],
1883
- SupportUrl: [],
1884
- Tags: _json,
1885
- });
1886
- };
1887
- const se_CreateProvisionedProductPlanInput = (input, context) => {
1888
- return take(input, {
1889
- AcceptLanguage: [],
1890
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1891
- NotificationArns: _json,
1892
- PathId: [],
1893
- PlanName: [],
1894
- PlanType: [],
1895
- ProductId: [],
1896
- ProvisionedProductName: [],
1897
- ProvisioningArtifactId: [],
1898
- ProvisioningParameters: _json,
1899
- Tags: _json,
1900
- });
1901
- };
1902
- const se_CreateProvisioningArtifactInput = (input, context) => {
1903
- return take(input, {
1904
- AcceptLanguage: [],
1905
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1906
- Parameters: _json,
1907
- ProductId: [],
1908
- });
1909
- };
1910
- const se_CreateServiceActionInput = (input, context) => {
1911
- return take(input, {
1912
- AcceptLanguage: [],
1913
- Definition: _json,
1914
- DefinitionType: [],
1915
- Description: [],
1916
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1917
- Name: [],
1918
- });
1919
- };
1920
- const se_DeleteServiceActionInput = (input, context) => {
1921
- return take(input, {
1922
- AcceptLanguage: [],
1923
- Id: [],
1924
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1925
- });
1926
- };
1927
- const se_DisassociateServiceActionFromProvisioningArtifactInput = (input, context) => {
1928
- return take(input, {
1929
- AcceptLanguage: [],
1930
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1931
- ProductId: [],
1932
- ProvisioningArtifactId: [],
1933
- ServiceActionId: [],
1934
- });
1935
- };
1936
- const se_ExecuteProvisionedProductPlanInput = (input, context) => {
1937
- return take(input, {
1938
- AcceptLanguage: [],
1939
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1940
- PlanId: [],
1941
- });
1942
- };
1943
- const se_ExecuteProvisionedProductServiceActionInput = (input, context) => {
1944
- return take(input, {
1945
- AcceptLanguage: [],
1946
- ExecuteToken: [true, (_) => _ ?? generateIdempotencyToken()],
1947
- Parameters: _json,
1948
- ProvisionedProductId: [],
1949
- ServiceActionId: [],
1950
- });
1951
- };
1952
- const se_ImportAsProvisionedProductInput = (input, context) => {
1953
- return take(input, {
1954
- AcceptLanguage: [],
1955
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1956
- PhysicalId: [],
1957
- ProductId: [],
1958
- ProvisionedProductName: [],
1959
- ProvisioningArtifactId: [],
1960
- });
1961
- };
1962
- const se_NotifyProvisionProductEngineWorkflowResultInput = (input, context) => {
1963
- return take(input, {
1964
- FailureReason: [],
1965
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1966
- Outputs: _json,
1967
- RecordId: [],
1968
- ResourceIdentifier: _json,
1969
- Status: [],
1970
- WorkflowToken: [],
1971
- });
1972
- };
1973
- const se_NotifyTerminateProvisionedProductEngineWorkflowResultInput = (input, context) => {
1974
- return take(input, {
1975
- FailureReason: [],
1976
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1977
- RecordId: [],
1978
- Status: [],
1979
- WorkflowToken: [],
1980
- });
1981
- };
1982
- const se_NotifyUpdateProvisionedProductEngineWorkflowResultInput = (input, context) => {
1983
- return take(input, {
1984
- FailureReason: [],
1985
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1986
- Outputs: _json,
1987
- RecordId: [],
1988
- Status: [],
1989
- WorkflowToken: [],
1990
- });
1991
- };
1992
- const se_ProvisionProductInput = (input, context) => {
1993
- return take(input, {
1994
- AcceptLanguage: [],
1995
- NotificationArns: _json,
1996
- PathId: [],
1997
- PathName: [],
1998
- ProductId: [],
1999
- ProductName: [],
2000
- ProvisionToken: [true, (_) => _ ?? generateIdempotencyToken()],
2001
- ProvisionedProductName: [],
2002
- ProvisioningArtifactId: [],
2003
- ProvisioningArtifactName: [],
2004
- ProvisioningParameters: _json,
2005
- ProvisioningPreferences: _json,
2006
- Tags: _json,
2007
- });
2008
- };
2009
- const se_TerminateProvisionedProductInput = (input, context) => {
2010
- return take(input, {
2011
- AcceptLanguage: [],
2012
- IgnoreErrors: [],
2013
- ProvisionedProductId: [],
2014
- ProvisionedProductName: [],
2015
- RetainPhysicalResources: [],
2016
- TerminateToken: [true, (_) => _ ?? generateIdempotencyToken()],
2017
- });
2018
- };
2019
- const se_UpdateProvisionedProductInput = (input, context) => {
2020
- return take(input, {
2021
- AcceptLanguage: [],
2022
- PathId: [],
2023
- PathName: [],
2024
- ProductId: [],
2025
- ProductName: [],
2026
- ProvisionedProductId: [],
2027
- ProvisionedProductName: [],
2028
- ProvisioningArtifactId: [],
2029
- ProvisioningArtifactName: [],
2030
- ProvisioningParameters: _json,
2031
- ProvisioningPreferences: _json,
2032
- Tags: _json,
2033
- UpdateToken: [true, (_) => _ ?? generateIdempotencyToken()],
2034
- });
2035
- };
2036
- const se_UpdateProvisionedProductPropertiesInput = (input, context) => {
2037
- return take(input, {
2038
- AcceptLanguage: [],
2039
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
2040
- ProvisionedProductId: [],
2041
- ProvisionedProductProperties: _json,
2042
- });
2043
- };
2044
- const de_CreatePortfolioOutput = (output, context) => {
2045
- return take(output, {
2046
- PortfolioDetail: (_) => de_PortfolioDetail(_, context),
2047
- Tags: _json,
2048
- });
2049
- };
2050
- const de_CreateProductOutput = (output, context) => {
2051
- return take(output, {
2052
- ProductViewDetail: (_) => de_ProductViewDetail(_, context),
2053
- ProvisioningArtifactDetail: (_) => de_ProvisioningArtifactDetail(_, context),
2054
- Tags: _json,
2055
- });
2056
- };
2057
- const de_CreateProvisioningArtifactOutput = (output, context) => {
2058
- return take(output, {
2059
- Info: _json,
2060
- ProvisioningArtifactDetail: (_) => de_ProvisioningArtifactDetail(_, context),
2061
- Status: __expectString,
2062
- });
2063
- };
2064
- const de_DescribePortfolioOutput = (output, context) => {
2065
- return take(output, {
2066
- Budgets: _json,
2067
- PortfolioDetail: (_) => de_PortfolioDetail(_, context),
2068
- TagOptions: _json,
2069
- Tags: _json,
2070
- });
2071
- };
2072
- const de_DescribeProductAsAdminOutput = (output, context) => {
2073
- return take(output, {
2074
- Budgets: _json,
2075
- ProductViewDetail: (_) => de_ProductViewDetail(_, context),
2076
- ProvisioningArtifactSummaries: (_) => de_ProvisioningArtifactSummaries(_, context),
2077
- TagOptions: _json,
2078
- Tags: _json,
2079
- });
2080
- };
2081
- const de_DescribeProductOutput = (output, context) => {
2082
- return take(output, {
2083
- Budgets: _json,
2084
- LaunchPaths: _json,
2085
- ProductViewSummary: _json,
2086
- ProvisioningArtifacts: (_) => de_ProvisioningArtifacts(_, context),
2087
- });
2088
- };
2089
- const de_DescribeProductViewOutput = (output, context) => {
2090
- return take(output, {
2091
- ProductViewSummary: _json,
2092
- ProvisioningArtifacts: (_) => de_ProvisioningArtifacts(_, context),
2093
- });
2094
- };
2095
- const de_DescribeProvisionedProductOutput = (output, context) => {
2096
- return take(output, {
2097
- CloudWatchDashboards: _json,
2098
- ProvisionedProductDetail: (_) => de_ProvisionedProductDetail(_, context),
2099
- });
2100
- };
2101
- const de_DescribeProvisionedProductPlanOutput = (output, context) => {
2102
- return take(output, {
2103
- NextPageToken: __expectString,
2104
- ProvisionedProductPlanDetails: (_) => de_ProvisionedProductPlanDetails(_, context),
2105
- ResourceChanges: _json,
2106
- });
2107
- };
2108
- const de_DescribeProvisioningArtifactOutput = (output, context) => {
2109
- return take(output, {
2110
- Info: _json,
2111
- ProvisioningArtifactDetail: (_) => de_ProvisioningArtifactDetail(_, context),
2112
- ProvisioningArtifactParameters: _json,
2113
- Status: __expectString,
2114
- });
2115
- };
2116
- const de_DescribeRecordOutput = (output, context) => {
2117
- return take(output, {
2118
- NextPageToken: __expectString,
2119
- RecordDetail: (_) => de_RecordDetail(_, context),
2120
- RecordOutputs: _json,
2121
- });
2122
- };
2123
- const de_ExecuteProvisionedProductPlanOutput = (output, context) => {
2124
- return take(output, {
2125
- RecordDetail: (_) => de_RecordDetail(_, context),
2126
- });
2127
- };
2128
- const de_ExecuteProvisionedProductServiceActionOutput = (output, context) => {
2129
- return take(output, {
2130
- RecordDetail: (_) => de_RecordDetail(_, context),
2131
- });
2132
- };
2133
- const de_ImportAsProvisionedProductOutput = (output, context) => {
2134
- return take(output, {
2135
- RecordDetail: (_) => de_RecordDetail(_, context),
2136
- });
2137
- };
2138
- const de_LastSync = (output, context) => {
2139
- return take(output, {
2140
- LastSuccessfulSyncProvisioningArtifactId: __expectString,
2141
- LastSuccessfulSyncTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2142
- LastSyncStatus: __expectString,
2143
- LastSyncStatusMessage: __expectString,
2144
- LastSyncTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2145
- });
2146
- };
2147
- const de_ListAcceptedPortfolioSharesOutput = (output, context) => {
2148
- return take(output, {
2149
- NextPageToken: __expectString,
2150
- PortfolioDetails: (_) => de_PortfolioDetails(_, context),
2151
- });
2152
- };
2153
- const de_ListPortfoliosForProductOutput = (output, context) => {
2154
- return take(output, {
2155
- NextPageToken: __expectString,
2156
- PortfolioDetails: (_) => de_PortfolioDetails(_, context),
2157
- });
2158
- };
2159
- const de_ListPortfoliosOutput = (output, context) => {
2160
- return take(output, {
2161
- NextPageToken: __expectString,
2162
- PortfolioDetails: (_) => de_PortfolioDetails(_, context),
2163
- });
2164
- };
2165
- const de_ListProvisioningArtifactsForServiceActionOutput = (output, context) => {
2166
- return take(output, {
2167
- NextPageToken: __expectString,
2168
- ProvisioningArtifactViews: (_) => de_ProvisioningArtifactViews(_, context),
2169
- });
2170
- };
2171
- const de_ListProvisioningArtifactsOutput = (output, context) => {
2172
- return take(output, {
2173
- NextPageToken: __expectString,
2174
- ProvisioningArtifactDetails: (_) => de_ProvisioningArtifactDetails(_, context),
2175
- });
2176
- };
2177
- const de_ListRecordHistoryOutput = (output, context) => {
2178
- return take(output, {
2179
- NextPageToken: __expectString,
2180
- RecordDetails: (_) => de_RecordDetails(_, context),
2181
- });
2182
- };
2183
- const de_ListResourcesForTagOptionOutput = (output, context) => {
2184
- return take(output, {
2185
- PageToken: __expectString,
2186
- ResourceDetails: (_) => de_ResourceDetails(_, context),
2187
- });
2188
- };
2189
- const de_PortfolioDetail = (output, context) => {
2190
- return take(output, {
2191
- ARN: __expectString,
2192
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2193
- Description: __expectString,
2194
- DisplayName: __expectString,
2195
- Id: __expectString,
2196
- ProviderName: __expectString,
2197
- });
2198
- };
2199
- const de_PortfolioDetails = (output, context) => {
2200
- const retVal = (output || [])
2201
- .filter((e) => e != null)
2202
- .map((entry) => {
2203
- return de_PortfolioDetail(entry, context);
2204
- });
2205
- return retVal;
2206
- };
2207
- const de_ProductViewDetail = (output, context) => {
2208
- return take(output, {
2209
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2210
- ProductARN: __expectString,
2211
- ProductViewSummary: _json,
2212
- SourceConnection: (_) => de_SourceConnectionDetail(_, context),
2213
- Status: __expectString,
2214
- });
2215
- };
2216
- const de_ProductViewDetails = (output, context) => {
2217
- const retVal = (output || [])
2218
- .filter((e) => e != null)
2219
- .map((entry) => {
2220
- return de_ProductViewDetail(entry, context);
2221
- });
2222
- return retVal;
2223
- };
2224
- const de_ProvisionedProductAttribute = (output, context) => {
2225
- return take(output, {
2226
- Arn: __expectString,
2227
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2228
- Id: __expectString,
2229
- IdempotencyToken: __expectString,
2230
- LastProvisioningRecordId: __expectString,
2231
- LastRecordId: __expectString,
2232
- LastSuccessfulProvisioningRecordId: __expectString,
2233
- Name: __expectString,
2234
- PhysicalId: __expectString,
2235
- ProductId: __expectString,
2236
- ProductName: __expectString,
2237
- ProvisioningArtifactId: __expectString,
2238
- ProvisioningArtifactName: __expectString,
2239
- Status: __expectString,
2240
- StatusMessage: __expectString,
2241
- Tags: _json,
2242
- Type: __expectString,
2243
- UserArn: __expectString,
2244
- UserArnSession: __expectString,
2245
- });
2246
- };
2247
- const de_ProvisionedProductAttributes = (output, context) => {
2248
- const retVal = (output || [])
2249
- .filter((e) => e != null)
2250
- .map((entry) => {
2251
- return de_ProvisionedProductAttribute(entry, context);
2252
- });
2253
- return retVal;
2254
- };
2255
- const de_ProvisionedProductDetail = (output, context) => {
2256
- return take(output, {
2257
- Arn: __expectString,
2258
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2259
- Id: __expectString,
2260
- IdempotencyToken: __expectString,
2261
- LastProvisioningRecordId: __expectString,
2262
- LastRecordId: __expectString,
2263
- LastSuccessfulProvisioningRecordId: __expectString,
2264
- LaunchRoleArn: __expectString,
2265
- Name: __expectString,
2266
- ProductId: __expectString,
2267
- ProvisioningArtifactId: __expectString,
2268
- Status: __expectString,
2269
- StatusMessage: __expectString,
2270
- Type: __expectString,
2271
- });
2272
- };
2273
- const de_ProvisionedProductDetails = (output, context) => {
2274
- const retVal = (output || [])
2275
- .filter((e) => e != null)
2276
- .map((entry) => {
2277
- return de_ProvisionedProductDetail(entry, context);
2278
- });
2279
- return retVal;
2280
- };
2281
- const de_ProvisionedProductPlanDetails = (output, context) => {
2282
- return take(output, {
2283
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2284
- NotificationArns: _json,
2285
- PathId: __expectString,
2286
- PlanId: __expectString,
2287
- PlanName: __expectString,
2288
- PlanType: __expectString,
2289
- ProductId: __expectString,
2290
- ProvisionProductId: __expectString,
2291
- ProvisionProductName: __expectString,
2292
- ProvisioningArtifactId: __expectString,
2293
- ProvisioningParameters: _json,
2294
- Status: __expectString,
2295
- StatusMessage: __expectString,
2296
- Tags: _json,
2297
- UpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2298
- });
2299
- };
2300
- const de_ProvisioningArtifact = (output, context) => {
2301
- return take(output, {
2302
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2303
- Description: __expectString,
2304
- Guidance: __expectString,
2305
- Id: __expectString,
2306
- Name: __expectString,
2307
- });
2308
- };
2309
- const de_ProvisioningArtifactDetail = (output, context) => {
2310
- return take(output, {
2311
- Active: __expectBoolean,
2312
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2313
- Description: __expectString,
2314
- Guidance: __expectString,
2315
- Id: __expectString,
2316
- Name: __expectString,
2317
- SourceRevision: __expectString,
2318
- Type: __expectString,
2319
- });
2320
- };
2321
- const de_ProvisioningArtifactDetails = (output, context) => {
2322
- const retVal = (output || [])
2323
- .filter((e) => e != null)
2324
- .map((entry) => {
2325
- return de_ProvisioningArtifactDetail(entry, context);
2326
- });
2327
- return retVal;
2328
- };
2329
- const de_ProvisioningArtifacts = (output, context) => {
2330
- const retVal = (output || [])
2331
- .filter((e) => e != null)
2332
- .map((entry) => {
2333
- return de_ProvisioningArtifact(entry, context);
2334
- });
2335
- return retVal;
2336
- };
2337
- const de_ProvisioningArtifactSummaries = (output, context) => {
2338
- const retVal = (output || [])
2339
- .filter((e) => e != null)
2340
- .map((entry) => {
2341
- return de_ProvisioningArtifactSummary(entry, context);
2342
- });
2343
- return retVal;
2344
- };
2345
- const de_ProvisioningArtifactSummary = (output, context) => {
2346
- return take(output, {
2347
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2348
- Description: __expectString,
2349
- Id: __expectString,
2350
- Name: __expectString,
2351
- ProvisioningArtifactMetadata: _json,
2352
- });
2353
- };
2354
- const de_ProvisioningArtifactView = (output, context) => {
2355
- return take(output, {
2356
- ProductViewSummary: _json,
2357
- ProvisioningArtifact: (_) => de_ProvisioningArtifact(_, context),
2358
- });
2359
- };
2360
- const de_ProvisioningArtifactViews = (output, context) => {
2361
- const retVal = (output || [])
2362
- .filter((e) => e != null)
2363
- .map((entry) => {
2364
- return de_ProvisioningArtifactView(entry, context);
2365
- });
2366
- return retVal;
2367
- };
2368
- const de_ProvisionProductOutput = (output, context) => {
2369
- return take(output, {
2370
- RecordDetail: (_) => de_RecordDetail(_, context),
2371
- });
2372
- };
2373
- const de_RecordDetail = (output, context) => {
2374
- return take(output, {
2375
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2376
- LaunchRoleArn: __expectString,
2377
- PathId: __expectString,
2378
- ProductId: __expectString,
2379
- ProvisionedProductId: __expectString,
2380
- ProvisionedProductName: __expectString,
2381
- ProvisionedProductType: __expectString,
2382
- ProvisioningArtifactId: __expectString,
2383
- RecordErrors: _json,
2384
- RecordId: __expectString,
2385
- RecordTags: _json,
2386
- RecordType: __expectString,
2387
- Status: __expectString,
2388
- UpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2389
- });
2390
- };
2391
- const de_RecordDetails = (output, context) => {
2392
- const retVal = (output || [])
2393
- .filter((e) => e != null)
2394
- .map((entry) => {
2395
- return de_RecordDetail(entry, context);
2396
- });
2397
- return retVal;
2398
- };
2399
- const de_ResourceDetail = (output, context) => {
2400
- return take(output, {
2401
- ARN: __expectString,
2402
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2403
- Description: __expectString,
2404
- Id: __expectString,
2405
- Name: __expectString,
2406
- });
2407
- };
2408
- const de_ResourceDetails = (output, context) => {
2409
- const retVal = (output || [])
2410
- .filter((e) => e != null)
2411
- .map((entry) => {
2412
- return de_ResourceDetail(entry, context);
2413
- });
2414
- return retVal;
2415
- };
2416
- const de_ScanProvisionedProductsOutput = (output, context) => {
2417
- return take(output, {
2418
- NextPageToken: __expectString,
2419
- ProvisionedProducts: (_) => de_ProvisionedProductDetails(_, context),
2420
- });
2421
- };
2422
- const de_SearchProductsAsAdminOutput = (output, context) => {
2423
- return take(output, {
2424
- NextPageToken: __expectString,
2425
- ProductViewDetails: (_) => de_ProductViewDetails(_, context),
2426
- });
2427
- };
2428
- const de_SearchProvisionedProductsOutput = (output, context) => {
2429
- return take(output, {
2430
- NextPageToken: __expectString,
2431
- ProvisionedProducts: (_) => de_ProvisionedProductAttributes(_, context),
2432
- TotalResultsCount: __expectInt32,
2433
- });
2434
- };
2435
- const de_SourceConnectionDetail = (output, context) => {
2436
- return take(output, {
2437
- ConnectionParameters: _json,
2438
- LastSync: (_) => de_LastSync(_, context),
2439
- Type: __expectString,
2440
- });
2441
- };
2442
- const de_TerminateProvisionedProductOutput = (output, context) => {
2443
- return take(output, {
2444
- RecordDetail: (_) => de_RecordDetail(_, context),
2445
- });
2446
- };
2447
- const de_UpdatePortfolioOutput = (output, context) => {
2448
- return take(output, {
2449
- PortfolioDetail: (_) => de_PortfolioDetail(_, context),
2450
- Tags: _json,
2451
- });
2452
- };
2453
- const de_UpdateProductOutput = (output, context) => {
2454
- return take(output, {
2455
- ProductViewDetail: (_) => de_ProductViewDetail(_, context),
2456
- Tags: _json,
2457
- });
2458
- };
2459
- const de_UpdateProvisionedProductOutput = (output, context) => {
2460
- return take(output, {
2461
- RecordDetail: (_) => de_RecordDetail(_, context),
2462
- });
2463
- };
2464
- const de_UpdateProvisioningArtifactOutput = (output, context) => {
2465
- return take(output, {
2466
- Info: _json,
2467
- ProvisioningArtifactDetail: (_) => de_ProvisioningArtifactDetail(_, context),
2468
- Status: __expectString,
2469
- });
2470
- };
2471
- const deserializeMetadata = (output) => ({
2472
- httpStatusCode: output.statusCode,
2473
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2474
- extendedRequestId: output.headers["x-amz-id-2"],
2475
- cfId: output.headers["x-amz-cf-id"],
2476
- });
2477
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2478
- const throwDefaultError = withBaseException(__BaseException);
2479
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2480
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2481
- const contents = {
2482
- protocol,
2483
- hostname,
2484
- port,
2485
- method: "POST",
2486
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2487
- headers,
2488
- };
2489
- if (resolvedHostname !== undefined) {
2490
- contents.hostname = resolvedHostname;
2491
- }
2492
- if (body !== undefined) {
2493
- contents.body = body;
2494
- }
2495
- return new __HttpRequest(contents);
2496
- };
2497
- function sharedHeaders(operation) {
2498
- return {
2499
- "content-type": "application/x-amz-json-1.1",
2500
- "x-amz-target": `AWS242ServiceCatalogService.${operation}`,
2501
- };
2502
- }