@aws-sdk/client-service-catalog 3.489.0 → 3.495.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.
- package/dist-cjs/ServiceCatalog.js +1 -191
- package/dist-cjs/ServiceCatalogClient.js +1 -43
- package/dist-cjs/commands/AcceptPortfolioShareCommand.js +1 -28
- package/dist-cjs/commands/AssociateBudgetWithResourceCommand.js +1 -28
- package/dist-cjs/commands/AssociatePrincipalWithPortfolioCommand.js +1 -28
- package/dist-cjs/commands/AssociateProductWithPortfolioCommand.js +1 -28
- package/dist-cjs/commands/AssociateServiceActionWithProvisioningArtifactCommand.js +1 -28
- package/dist-cjs/commands/AssociateTagOptionWithResourceCommand.js +1 -28
- package/dist-cjs/commands/BatchAssociateServiceActionWithProvisioningArtifactCommand.js +1 -28
- package/dist-cjs/commands/BatchDisassociateServiceActionFromProvisioningArtifactCommand.js +1 -28
- package/dist-cjs/commands/CopyProductCommand.js +1 -28
- package/dist-cjs/commands/CreateConstraintCommand.js +1 -28
- package/dist-cjs/commands/CreatePortfolioCommand.js +1 -28
- package/dist-cjs/commands/CreatePortfolioShareCommand.js +1 -28
- package/dist-cjs/commands/CreateProductCommand.js +1 -28
- package/dist-cjs/commands/CreateProvisionedProductPlanCommand.js +1 -28
- package/dist-cjs/commands/CreateProvisioningArtifactCommand.js +1 -28
- package/dist-cjs/commands/CreateServiceActionCommand.js +1 -28
- package/dist-cjs/commands/CreateTagOptionCommand.js +1 -28
- package/dist-cjs/commands/DeleteConstraintCommand.js +1 -28
- package/dist-cjs/commands/DeletePortfolioCommand.js +1 -28
- package/dist-cjs/commands/DeletePortfolioShareCommand.js +1 -28
- package/dist-cjs/commands/DeleteProductCommand.js +1 -28
- package/dist-cjs/commands/DeleteProvisionedProductPlanCommand.js +1 -28
- package/dist-cjs/commands/DeleteProvisioningArtifactCommand.js +1 -28
- package/dist-cjs/commands/DeleteServiceActionCommand.js +1 -28
- package/dist-cjs/commands/DeleteTagOptionCommand.js +1 -28
- package/dist-cjs/commands/DescribeConstraintCommand.js +1 -28
- package/dist-cjs/commands/DescribeCopyProductStatusCommand.js +1 -28
- package/dist-cjs/commands/DescribePortfolioCommand.js +1 -28
- package/dist-cjs/commands/DescribePortfolioShareStatusCommand.js +1 -28
- package/dist-cjs/commands/DescribePortfolioSharesCommand.js +1 -28
- package/dist-cjs/commands/DescribeProductAsAdminCommand.js +1 -28
- package/dist-cjs/commands/DescribeProductCommand.js +1 -28
- package/dist-cjs/commands/DescribeProductViewCommand.js +1 -28
- package/dist-cjs/commands/DescribeProvisionedProductCommand.js +1 -28
- package/dist-cjs/commands/DescribeProvisionedProductPlanCommand.js +1 -28
- package/dist-cjs/commands/DescribeProvisioningArtifactCommand.js +1 -28
- package/dist-cjs/commands/DescribeProvisioningParametersCommand.js +1 -28
- package/dist-cjs/commands/DescribeRecordCommand.js +1 -28
- package/dist-cjs/commands/DescribeServiceActionCommand.js +1 -28
- package/dist-cjs/commands/DescribeServiceActionExecutionParametersCommand.js +1 -28
- package/dist-cjs/commands/DescribeTagOptionCommand.js +1 -28
- package/dist-cjs/commands/DisableAWSOrganizationsAccessCommand.js +1 -28
- package/dist-cjs/commands/DisassociateBudgetFromResourceCommand.js +1 -28
- package/dist-cjs/commands/DisassociatePrincipalFromPortfolioCommand.js +1 -28
- package/dist-cjs/commands/DisassociateProductFromPortfolioCommand.js +1 -28
- package/dist-cjs/commands/DisassociateServiceActionFromProvisioningArtifactCommand.js +1 -28
- package/dist-cjs/commands/DisassociateTagOptionFromResourceCommand.js +1 -28
- package/dist-cjs/commands/EnableAWSOrganizationsAccessCommand.js +1 -28
- package/dist-cjs/commands/ExecuteProvisionedProductPlanCommand.js +1 -28
- package/dist-cjs/commands/ExecuteProvisionedProductServiceActionCommand.js +1 -28
- package/dist-cjs/commands/GetAWSOrganizationsAccessStatusCommand.js +1 -28
- package/dist-cjs/commands/GetProvisionedProductOutputsCommand.js +1 -28
- package/dist-cjs/commands/ImportAsProvisionedProductCommand.js +1 -28
- package/dist-cjs/commands/ListAcceptedPortfolioSharesCommand.js +1 -28
- package/dist-cjs/commands/ListBudgetsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListConstraintsForPortfolioCommand.js +1 -28
- package/dist-cjs/commands/ListLaunchPathsCommand.js +1 -28
- package/dist-cjs/commands/ListOrganizationPortfolioAccessCommand.js +1 -28
- package/dist-cjs/commands/ListPortfolioAccessCommand.js +1 -28
- package/dist-cjs/commands/ListPortfoliosCommand.js +1 -28
- package/dist-cjs/commands/ListPortfoliosForProductCommand.js +1 -28
- package/dist-cjs/commands/ListPrincipalsForPortfolioCommand.js +1 -28
- package/dist-cjs/commands/ListProvisionedProductPlansCommand.js +1 -28
- package/dist-cjs/commands/ListProvisioningArtifactsCommand.js +1 -28
- package/dist-cjs/commands/ListProvisioningArtifactsForServiceActionCommand.js +1 -28
- package/dist-cjs/commands/ListRecordHistoryCommand.js +1 -28
- package/dist-cjs/commands/ListResourcesForTagOptionCommand.js +1 -28
- package/dist-cjs/commands/ListServiceActionsCommand.js +1 -28
- package/dist-cjs/commands/ListServiceActionsForProvisioningArtifactCommand.js +1 -28
- package/dist-cjs/commands/ListStackInstancesForProvisionedProductCommand.js +1 -28
- package/dist-cjs/commands/ListTagOptionsCommand.js +1 -28
- package/dist-cjs/commands/NotifyProvisionProductEngineWorkflowResultCommand.js +1 -28
- package/dist-cjs/commands/NotifyTerminateProvisionedProductEngineWorkflowResultCommand.js +1 -28
- package/dist-cjs/commands/NotifyUpdateProvisionedProductEngineWorkflowResultCommand.js +1 -28
- package/dist-cjs/commands/ProvisionProductCommand.js +1 -28
- package/dist-cjs/commands/RejectPortfolioShareCommand.js +1 -28
- package/dist-cjs/commands/ScanProvisionedProductsCommand.js +1 -28
- package/dist-cjs/commands/SearchProductsAsAdminCommand.js +1 -28
- package/dist-cjs/commands/SearchProductsCommand.js +1 -28
- package/dist-cjs/commands/SearchProvisionedProductsCommand.js +1 -28
- package/dist-cjs/commands/TerminateProvisionedProductCommand.js +1 -28
- package/dist-cjs/commands/UpdateConstraintCommand.js +1 -28
- package/dist-cjs/commands/UpdatePortfolioCommand.js +1 -28
- package/dist-cjs/commands/UpdatePortfolioShareCommand.js +1 -28
- package/dist-cjs/commands/UpdateProductCommand.js +1 -28
- package/dist-cjs/commands/UpdateProvisionedProductCommand.js +1 -28
- package/dist-cjs/commands/UpdateProvisionedProductPropertiesCommand.js +1 -28
- package/dist-cjs/commands/UpdateProvisioningArtifactCommand.js +1 -28
- package/dist-cjs/commands/UpdateServiceActionCommand.js +1 -28
- package/dist-cjs/commands/UpdateTagOptionCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -93
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +7045 -11
- package/dist-cjs/models/ServiceCatalogServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -303
- package/dist-cjs/pagination/DescribePortfolioSharesPaginator.js +1 -7
- package/dist-cjs/pagination/GetProvisionedProductOutputsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAcceptedPortfolioSharesPaginator.js +1 -7
- package/dist-cjs/pagination/ListBudgetsForResourcePaginator.js +1 -7
- package/dist-cjs/pagination/ListConstraintsForPortfolioPaginator.js +1 -7
- package/dist-cjs/pagination/ListLaunchPathsPaginator.js +1 -7
- package/dist-cjs/pagination/ListOrganizationPortfolioAccessPaginator.js +1 -7
- package/dist-cjs/pagination/ListPortfolioAccessPaginator.js +1 -7
- package/dist-cjs/pagination/ListPortfoliosForProductPaginator.js +1 -7
- package/dist-cjs/pagination/ListPortfoliosPaginator.js +1 -7
- package/dist-cjs/pagination/ListPrincipalsForPortfolioPaginator.js +1 -7
- package/dist-cjs/pagination/ListProvisioningArtifactsForServiceActionPaginator.js +1 -7
- package/dist-cjs/pagination/ListResourcesForTagOptionPaginator.js +1 -7
- package/dist-cjs/pagination/ListServiceActionsForProvisioningArtifactPaginator.js +1 -7
- package/dist-cjs/pagination/ListServiceActionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTagOptionsPaginator.js +1 -7
- package/dist-cjs/pagination/SearchProductsAsAdminPaginator.js +1 -7
- package/dist-cjs/pagination/SearchProductsPaginator.js +1 -7
- package/dist-cjs/pagination/SearchProvisionedProductsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -23
- package/dist-cjs/protocols/Aws_json1_1.js +1 -4760
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,4760 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_ExecuteProvisionedProductServiceActionCommand = exports.se_ExecuteProvisionedProductPlanCommand = exports.se_EnableAWSOrganizationsAccessCommand = exports.se_DisassociateTagOptionFromResourceCommand = exports.se_DisassociateServiceActionFromProvisioningArtifactCommand = exports.se_DisassociateProductFromPortfolioCommand = exports.se_DisassociatePrincipalFromPortfolioCommand = exports.se_DisassociateBudgetFromResourceCommand = exports.se_DisableAWSOrganizationsAccessCommand = exports.se_DescribeTagOptionCommand = exports.se_DescribeServiceActionExecutionParametersCommand = exports.se_DescribeServiceActionCommand = exports.se_DescribeRecordCommand = exports.se_DescribeProvisioningParametersCommand = exports.se_DescribeProvisioningArtifactCommand = exports.se_DescribeProvisionedProductPlanCommand = exports.se_DescribeProvisionedProductCommand = exports.se_DescribeProductViewCommand = exports.se_DescribeProductAsAdminCommand = exports.se_DescribeProductCommand = exports.se_DescribePortfolioShareStatusCommand = exports.se_DescribePortfolioSharesCommand = exports.se_DescribePortfolioCommand = exports.se_DescribeCopyProductStatusCommand = exports.se_DescribeConstraintCommand = exports.se_DeleteTagOptionCommand = exports.se_DeleteServiceActionCommand = exports.se_DeleteProvisioningArtifactCommand = exports.se_DeleteProvisionedProductPlanCommand = exports.se_DeleteProductCommand = exports.se_DeletePortfolioShareCommand = exports.se_DeletePortfolioCommand = exports.se_DeleteConstraintCommand = exports.se_CreateTagOptionCommand = exports.se_CreateServiceActionCommand = exports.se_CreateProvisioningArtifactCommand = exports.se_CreateProvisionedProductPlanCommand = exports.se_CreateProductCommand = exports.se_CreatePortfolioShareCommand = exports.se_CreatePortfolioCommand = exports.se_CreateConstraintCommand = exports.se_CopyProductCommand = exports.se_BatchDisassociateServiceActionFromProvisioningArtifactCommand = exports.se_BatchAssociateServiceActionWithProvisioningArtifactCommand = exports.se_AssociateTagOptionWithResourceCommand = exports.se_AssociateServiceActionWithProvisioningArtifactCommand = exports.se_AssociateProductWithPortfolioCommand = exports.se_AssociatePrincipalWithPortfolioCommand = exports.se_AssociateBudgetWithResourceCommand = exports.se_AcceptPortfolioShareCommand = void 0;
|
|
4
|
-
exports.de_CreateConstraintCommand = exports.de_CopyProductCommand = exports.de_BatchDisassociateServiceActionFromProvisioningArtifactCommand = exports.de_BatchAssociateServiceActionWithProvisioningArtifactCommand = exports.de_AssociateTagOptionWithResourceCommand = exports.de_AssociateServiceActionWithProvisioningArtifactCommand = exports.de_AssociateProductWithPortfolioCommand = exports.de_AssociatePrincipalWithPortfolioCommand = exports.de_AssociateBudgetWithResourceCommand = exports.de_AcceptPortfolioShareCommand = exports.se_UpdateTagOptionCommand = exports.se_UpdateServiceActionCommand = exports.se_UpdateProvisioningArtifactCommand = exports.se_UpdateProvisionedProductPropertiesCommand = exports.se_UpdateProvisionedProductCommand = exports.se_UpdateProductCommand = exports.se_UpdatePortfolioShareCommand = exports.se_UpdatePortfolioCommand = exports.se_UpdateConstraintCommand = exports.se_TerminateProvisionedProductCommand = exports.se_SearchProvisionedProductsCommand = exports.se_SearchProductsAsAdminCommand = exports.se_SearchProductsCommand = exports.se_ScanProvisionedProductsCommand = exports.se_RejectPortfolioShareCommand = exports.se_ProvisionProductCommand = exports.se_NotifyUpdateProvisionedProductEngineWorkflowResultCommand = exports.se_NotifyTerminateProvisionedProductEngineWorkflowResultCommand = exports.se_NotifyProvisionProductEngineWorkflowResultCommand = exports.se_ListTagOptionsCommand = exports.se_ListStackInstancesForProvisionedProductCommand = exports.se_ListServiceActionsForProvisioningArtifactCommand = exports.se_ListServiceActionsCommand = exports.se_ListResourcesForTagOptionCommand = exports.se_ListRecordHistoryCommand = exports.se_ListProvisioningArtifactsForServiceActionCommand = exports.se_ListProvisioningArtifactsCommand = exports.se_ListProvisionedProductPlansCommand = exports.se_ListPrincipalsForPortfolioCommand = exports.se_ListPortfoliosForProductCommand = exports.se_ListPortfoliosCommand = exports.se_ListPortfolioAccessCommand = exports.se_ListOrganizationPortfolioAccessCommand = exports.se_ListLaunchPathsCommand = exports.se_ListConstraintsForPortfolioCommand = exports.se_ListBudgetsForResourceCommand = exports.se_ListAcceptedPortfolioSharesCommand = exports.se_ImportAsProvisionedProductCommand = exports.se_GetProvisionedProductOutputsCommand = exports.se_GetAWSOrganizationsAccessStatusCommand = void 0;
|
|
5
|
-
exports.de_ListPortfoliosCommand = exports.de_ListPortfolioAccessCommand = exports.de_ListOrganizationPortfolioAccessCommand = exports.de_ListLaunchPathsCommand = exports.de_ListConstraintsForPortfolioCommand = exports.de_ListBudgetsForResourceCommand = exports.de_ListAcceptedPortfolioSharesCommand = exports.de_ImportAsProvisionedProductCommand = exports.de_GetProvisionedProductOutputsCommand = exports.de_GetAWSOrganizationsAccessStatusCommand = exports.de_ExecuteProvisionedProductServiceActionCommand = exports.de_ExecuteProvisionedProductPlanCommand = exports.de_EnableAWSOrganizationsAccessCommand = exports.de_DisassociateTagOptionFromResourceCommand = exports.de_DisassociateServiceActionFromProvisioningArtifactCommand = exports.de_DisassociateProductFromPortfolioCommand = exports.de_DisassociatePrincipalFromPortfolioCommand = exports.de_DisassociateBudgetFromResourceCommand = exports.de_DisableAWSOrganizationsAccessCommand = exports.de_DescribeTagOptionCommand = exports.de_DescribeServiceActionExecutionParametersCommand = exports.de_DescribeServiceActionCommand = exports.de_DescribeRecordCommand = exports.de_DescribeProvisioningParametersCommand = exports.de_DescribeProvisioningArtifactCommand = exports.de_DescribeProvisionedProductPlanCommand = exports.de_DescribeProvisionedProductCommand = exports.de_DescribeProductViewCommand = exports.de_DescribeProductAsAdminCommand = exports.de_DescribeProductCommand = exports.de_DescribePortfolioShareStatusCommand = exports.de_DescribePortfolioSharesCommand = exports.de_DescribePortfolioCommand = exports.de_DescribeCopyProductStatusCommand = exports.de_DescribeConstraintCommand = exports.de_DeleteTagOptionCommand = exports.de_DeleteServiceActionCommand = exports.de_DeleteProvisioningArtifactCommand = exports.de_DeleteProvisionedProductPlanCommand = exports.de_DeleteProductCommand = exports.de_DeletePortfolioShareCommand = exports.de_DeletePortfolioCommand = exports.de_DeleteConstraintCommand = exports.de_CreateTagOptionCommand = exports.de_CreateServiceActionCommand = exports.de_CreateProvisioningArtifactCommand = exports.de_CreateProvisionedProductPlanCommand = exports.de_CreateProductCommand = exports.de_CreatePortfolioShareCommand = exports.de_CreatePortfolioCommand = void 0;
|
|
6
|
-
exports.de_UpdateTagOptionCommand = exports.de_UpdateServiceActionCommand = exports.de_UpdateProvisioningArtifactCommand = exports.de_UpdateProvisionedProductPropertiesCommand = exports.de_UpdateProvisionedProductCommand = exports.de_UpdateProductCommand = exports.de_UpdatePortfolioShareCommand = exports.de_UpdatePortfolioCommand = exports.de_UpdateConstraintCommand = exports.de_TerminateProvisionedProductCommand = exports.de_SearchProvisionedProductsCommand = exports.de_SearchProductsAsAdminCommand = exports.de_SearchProductsCommand = exports.de_ScanProvisionedProductsCommand = exports.de_RejectPortfolioShareCommand = exports.de_ProvisionProductCommand = exports.de_NotifyUpdateProvisionedProductEngineWorkflowResultCommand = exports.de_NotifyTerminateProvisionedProductEngineWorkflowResultCommand = exports.de_NotifyProvisionProductEngineWorkflowResultCommand = exports.de_ListTagOptionsCommand = exports.de_ListStackInstancesForProvisionedProductCommand = exports.de_ListServiceActionsForProvisioningArtifactCommand = exports.de_ListServiceActionsCommand = exports.de_ListResourcesForTagOptionCommand = exports.de_ListRecordHistoryCommand = exports.de_ListProvisioningArtifactsForServiceActionCommand = exports.de_ListProvisioningArtifactsCommand = exports.de_ListProvisionedProductPlansCommand = exports.de_ListPrincipalsForPortfolioCommand = exports.de_ListPortfoliosForProductCommand = void 0;
|
|
7
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
|
-
const uuid_1 = require("uuid");
|
|
10
|
-
const models_0_1 = require("../models/models_0");
|
|
11
|
-
const ServiceCatalogServiceException_1 = require("../models/ServiceCatalogServiceException");
|
|
12
|
-
const se_AcceptPortfolioShareCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("AcceptPortfolioShare");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
exports.se_AcceptPortfolioShareCommand = se_AcceptPortfolioShareCommand;
|
|
19
|
-
const se_AssociateBudgetWithResourceCommand = async (input, context) => {
|
|
20
|
-
const headers = sharedHeaders("AssociateBudgetWithResource");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
exports.se_AssociateBudgetWithResourceCommand = se_AssociateBudgetWithResourceCommand;
|
|
26
|
-
const se_AssociatePrincipalWithPortfolioCommand = async (input, context) => {
|
|
27
|
-
const headers = sharedHeaders("AssociatePrincipalWithPortfolio");
|
|
28
|
-
let body;
|
|
29
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
30
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
-
};
|
|
32
|
-
exports.se_AssociatePrincipalWithPortfolioCommand = se_AssociatePrincipalWithPortfolioCommand;
|
|
33
|
-
const se_AssociateProductWithPortfolioCommand = async (input, context) => {
|
|
34
|
-
const headers = sharedHeaders("AssociateProductWithPortfolio");
|
|
35
|
-
let body;
|
|
36
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
37
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
38
|
-
};
|
|
39
|
-
exports.se_AssociateProductWithPortfolioCommand = se_AssociateProductWithPortfolioCommand;
|
|
40
|
-
const se_AssociateServiceActionWithProvisioningArtifactCommand = async (input, context) => {
|
|
41
|
-
const headers = sharedHeaders("AssociateServiceActionWithProvisioningArtifact");
|
|
42
|
-
let body;
|
|
43
|
-
body = JSON.stringify(se_AssociateServiceActionWithProvisioningArtifactInput(input, context));
|
|
44
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
45
|
-
};
|
|
46
|
-
exports.se_AssociateServiceActionWithProvisioningArtifactCommand = se_AssociateServiceActionWithProvisioningArtifactCommand;
|
|
47
|
-
const se_AssociateTagOptionWithResourceCommand = async (input, context) => {
|
|
48
|
-
const headers = sharedHeaders("AssociateTagOptionWithResource");
|
|
49
|
-
let body;
|
|
50
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
51
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
|
-
};
|
|
53
|
-
exports.se_AssociateTagOptionWithResourceCommand = se_AssociateTagOptionWithResourceCommand;
|
|
54
|
-
const se_BatchAssociateServiceActionWithProvisioningArtifactCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("BatchAssociateServiceActionWithProvisioningArtifact");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
exports.se_BatchAssociateServiceActionWithProvisioningArtifactCommand = se_BatchAssociateServiceActionWithProvisioningArtifactCommand;
|
|
61
|
-
const se_BatchDisassociateServiceActionFromProvisioningArtifactCommand = async (input, context) => {
|
|
62
|
-
const headers = sharedHeaders("BatchDisassociateServiceActionFromProvisioningArtifact");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
65
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
-
};
|
|
67
|
-
exports.se_BatchDisassociateServiceActionFromProvisioningArtifactCommand = se_BatchDisassociateServiceActionFromProvisioningArtifactCommand;
|
|
68
|
-
const se_CopyProductCommand = async (input, context) => {
|
|
69
|
-
const headers = sharedHeaders("CopyProduct");
|
|
70
|
-
let body;
|
|
71
|
-
body = JSON.stringify(se_CopyProductInput(input, context));
|
|
72
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
73
|
-
};
|
|
74
|
-
exports.se_CopyProductCommand = se_CopyProductCommand;
|
|
75
|
-
const se_CreateConstraintCommand = async (input, context) => {
|
|
76
|
-
const headers = sharedHeaders("CreateConstraint");
|
|
77
|
-
let body;
|
|
78
|
-
body = JSON.stringify(se_CreateConstraintInput(input, context));
|
|
79
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
80
|
-
};
|
|
81
|
-
exports.se_CreateConstraintCommand = se_CreateConstraintCommand;
|
|
82
|
-
const se_CreatePortfolioCommand = async (input, context) => {
|
|
83
|
-
const headers = sharedHeaders("CreatePortfolio");
|
|
84
|
-
let body;
|
|
85
|
-
body = JSON.stringify(se_CreatePortfolioInput(input, context));
|
|
86
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
|
-
};
|
|
88
|
-
exports.se_CreatePortfolioCommand = se_CreatePortfolioCommand;
|
|
89
|
-
const se_CreatePortfolioShareCommand = async (input, context) => {
|
|
90
|
-
const headers = sharedHeaders("CreatePortfolioShare");
|
|
91
|
-
let body;
|
|
92
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
93
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
|
-
};
|
|
95
|
-
exports.se_CreatePortfolioShareCommand = se_CreatePortfolioShareCommand;
|
|
96
|
-
const se_CreateProductCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("CreateProduct");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(se_CreateProductInput(input, context));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
exports.se_CreateProductCommand = se_CreateProductCommand;
|
|
103
|
-
const se_CreateProvisionedProductPlanCommand = async (input, context) => {
|
|
104
|
-
const headers = sharedHeaders("CreateProvisionedProductPlan");
|
|
105
|
-
let body;
|
|
106
|
-
body = JSON.stringify(se_CreateProvisionedProductPlanInput(input, context));
|
|
107
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
|
-
};
|
|
109
|
-
exports.se_CreateProvisionedProductPlanCommand = se_CreateProvisionedProductPlanCommand;
|
|
110
|
-
const se_CreateProvisioningArtifactCommand = async (input, context) => {
|
|
111
|
-
const headers = sharedHeaders("CreateProvisioningArtifact");
|
|
112
|
-
let body;
|
|
113
|
-
body = JSON.stringify(se_CreateProvisioningArtifactInput(input, context));
|
|
114
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
115
|
-
};
|
|
116
|
-
exports.se_CreateProvisioningArtifactCommand = se_CreateProvisioningArtifactCommand;
|
|
117
|
-
const se_CreateServiceActionCommand = async (input, context) => {
|
|
118
|
-
const headers = sharedHeaders("CreateServiceAction");
|
|
119
|
-
let body;
|
|
120
|
-
body = JSON.stringify(se_CreateServiceActionInput(input, context));
|
|
121
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
|
-
};
|
|
123
|
-
exports.se_CreateServiceActionCommand = se_CreateServiceActionCommand;
|
|
124
|
-
const se_CreateTagOptionCommand = async (input, context) => {
|
|
125
|
-
const headers = sharedHeaders("CreateTagOption");
|
|
126
|
-
let body;
|
|
127
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
128
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
129
|
-
};
|
|
130
|
-
exports.se_CreateTagOptionCommand = se_CreateTagOptionCommand;
|
|
131
|
-
const se_DeleteConstraintCommand = async (input, context) => {
|
|
132
|
-
const headers = sharedHeaders("DeleteConstraint");
|
|
133
|
-
let body;
|
|
134
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
135
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
|
-
};
|
|
137
|
-
exports.se_DeleteConstraintCommand = se_DeleteConstraintCommand;
|
|
138
|
-
const se_DeletePortfolioCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("DeletePortfolio");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
exports.se_DeletePortfolioCommand = se_DeletePortfolioCommand;
|
|
145
|
-
const se_DeletePortfolioShareCommand = async (input, context) => {
|
|
146
|
-
const headers = sharedHeaders("DeletePortfolioShare");
|
|
147
|
-
let body;
|
|
148
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
149
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
|
-
};
|
|
151
|
-
exports.se_DeletePortfolioShareCommand = se_DeletePortfolioShareCommand;
|
|
152
|
-
const se_DeleteProductCommand = async (input, context) => {
|
|
153
|
-
const headers = sharedHeaders("DeleteProduct");
|
|
154
|
-
let body;
|
|
155
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
156
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
|
-
};
|
|
158
|
-
exports.se_DeleteProductCommand = se_DeleteProductCommand;
|
|
159
|
-
const se_DeleteProvisionedProductPlanCommand = async (input, context) => {
|
|
160
|
-
const headers = sharedHeaders("DeleteProvisionedProductPlan");
|
|
161
|
-
let body;
|
|
162
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
163
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
164
|
-
};
|
|
165
|
-
exports.se_DeleteProvisionedProductPlanCommand = se_DeleteProvisionedProductPlanCommand;
|
|
166
|
-
const se_DeleteProvisioningArtifactCommand = async (input, context) => {
|
|
167
|
-
const headers = sharedHeaders("DeleteProvisioningArtifact");
|
|
168
|
-
let body;
|
|
169
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
170
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
171
|
-
};
|
|
172
|
-
exports.se_DeleteProvisioningArtifactCommand = se_DeleteProvisioningArtifactCommand;
|
|
173
|
-
const se_DeleteServiceActionCommand = async (input, context) => {
|
|
174
|
-
const headers = sharedHeaders("DeleteServiceAction");
|
|
175
|
-
let body;
|
|
176
|
-
body = JSON.stringify(se_DeleteServiceActionInput(input, context));
|
|
177
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
|
-
};
|
|
179
|
-
exports.se_DeleteServiceActionCommand = se_DeleteServiceActionCommand;
|
|
180
|
-
const se_DeleteTagOptionCommand = async (input, context) => {
|
|
181
|
-
const headers = sharedHeaders("DeleteTagOption");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
184
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
-
};
|
|
186
|
-
exports.se_DeleteTagOptionCommand = se_DeleteTagOptionCommand;
|
|
187
|
-
const se_DescribeConstraintCommand = async (input, context) => {
|
|
188
|
-
const headers = sharedHeaders("DescribeConstraint");
|
|
189
|
-
let body;
|
|
190
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
191
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
192
|
-
};
|
|
193
|
-
exports.se_DescribeConstraintCommand = se_DescribeConstraintCommand;
|
|
194
|
-
const se_DescribeCopyProductStatusCommand = async (input, context) => {
|
|
195
|
-
const headers = sharedHeaders("DescribeCopyProductStatus");
|
|
196
|
-
let body;
|
|
197
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
198
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
199
|
-
};
|
|
200
|
-
exports.se_DescribeCopyProductStatusCommand = se_DescribeCopyProductStatusCommand;
|
|
201
|
-
const se_DescribePortfolioCommand = async (input, context) => {
|
|
202
|
-
const headers = sharedHeaders("DescribePortfolio");
|
|
203
|
-
let body;
|
|
204
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
205
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
|
-
};
|
|
207
|
-
exports.se_DescribePortfolioCommand = se_DescribePortfolioCommand;
|
|
208
|
-
const se_DescribePortfolioSharesCommand = async (input, context) => {
|
|
209
|
-
const headers = sharedHeaders("DescribePortfolioShares");
|
|
210
|
-
let body;
|
|
211
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
212
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
213
|
-
};
|
|
214
|
-
exports.se_DescribePortfolioSharesCommand = se_DescribePortfolioSharesCommand;
|
|
215
|
-
const se_DescribePortfolioShareStatusCommand = async (input, context) => {
|
|
216
|
-
const headers = sharedHeaders("DescribePortfolioShareStatus");
|
|
217
|
-
let body;
|
|
218
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
219
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
|
-
};
|
|
221
|
-
exports.se_DescribePortfolioShareStatusCommand = se_DescribePortfolioShareStatusCommand;
|
|
222
|
-
const se_DescribeProductCommand = async (input, context) => {
|
|
223
|
-
const headers = sharedHeaders("DescribeProduct");
|
|
224
|
-
let body;
|
|
225
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
226
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
-
};
|
|
228
|
-
exports.se_DescribeProductCommand = se_DescribeProductCommand;
|
|
229
|
-
const se_DescribeProductAsAdminCommand = async (input, context) => {
|
|
230
|
-
const headers = sharedHeaders("DescribeProductAsAdmin");
|
|
231
|
-
let body;
|
|
232
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
233
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
|
-
};
|
|
235
|
-
exports.se_DescribeProductAsAdminCommand = se_DescribeProductAsAdminCommand;
|
|
236
|
-
const se_DescribeProductViewCommand = async (input, context) => {
|
|
237
|
-
const headers = sharedHeaders("DescribeProductView");
|
|
238
|
-
let body;
|
|
239
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
240
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
241
|
-
};
|
|
242
|
-
exports.se_DescribeProductViewCommand = se_DescribeProductViewCommand;
|
|
243
|
-
const se_DescribeProvisionedProductCommand = async (input, context) => {
|
|
244
|
-
const headers = sharedHeaders("DescribeProvisionedProduct");
|
|
245
|
-
let body;
|
|
246
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
247
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
|
-
};
|
|
249
|
-
exports.se_DescribeProvisionedProductCommand = se_DescribeProvisionedProductCommand;
|
|
250
|
-
const se_DescribeProvisionedProductPlanCommand = async (input, context) => {
|
|
251
|
-
const headers = sharedHeaders("DescribeProvisionedProductPlan");
|
|
252
|
-
let body;
|
|
253
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
254
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
255
|
-
};
|
|
256
|
-
exports.se_DescribeProvisionedProductPlanCommand = se_DescribeProvisionedProductPlanCommand;
|
|
257
|
-
const se_DescribeProvisioningArtifactCommand = async (input, context) => {
|
|
258
|
-
const headers = sharedHeaders("DescribeProvisioningArtifact");
|
|
259
|
-
let body;
|
|
260
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
261
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
262
|
-
};
|
|
263
|
-
exports.se_DescribeProvisioningArtifactCommand = se_DescribeProvisioningArtifactCommand;
|
|
264
|
-
const se_DescribeProvisioningParametersCommand = async (input, context) => {
|
|
265
|
-
const headers = sharedHeaders("DescribeProvisioningParameters");
|
|
266
|
-
let body;
|
|
267
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
268
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
|
-
};
|
|
270
|
-
exports.se_DescribeProvisioningParametersCommand = se_DescribeProvisioningParametersCommand;
|
|
271
|
-
const se_DescribeRecordCommand = async (input, context) => {
|
|
272
|
-
const headers = sharedHeaders("DescribeRecord");
|
|
273
|
-
let body;
|
|
274
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
275
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
276
|
-
};
|
|
277
|
-
exports.se_DescribeRecordCommand = se_DescribeRecordCommand;
|
|
278
|
-
const se_DescribeServiceActionCommand = async (input, context) => {
|
|
279
|
-
const headers = sharedHeaders("DescribeServiceAction");
|
|
280
|
-
let body;
|
|
281
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
282
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
|
-
};
|
|
284
|
-
exports.se_DescribeServiceActionCommand = se_DescribeServiceActionCommand;
|
|
285
|
-
const se_DescribeServiceActionExecutionParametersCommand = async (input, context) => {
|
|
286
|
-
const headers = sharedHeaders("DescribeServiceActionExecutionParameters");
|
|
287
|
-
let body;
|
|
288
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
289
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
290
|
-
};
|
|
291
|
-
exports.se_DescribeServiceActionExecutionParametersCommand = se_DescribeServiceActionExecutionParametersCommand;
|
|
292
|
-
const se_DescribeTagOptionCommand = async (input, context) => {
|
|
293
|
-
const headers = sharedHeaders("DescribeTagOption");
|
|
294
|
-
let body;
|
|
295
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
296
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
|
-
};
|
|
298
|
-
exports.se_DescribeTagOptionCommand = se_DescribeTagOptionCommand;
|
|
299
|
-
const se_DisableAWSOrganizationsAccessCommand = async (input, context) => {
|
|
300
|
-
const headers = sharedHeaders("DisableAWSOrganizationsAccess");
|
|
301
|
-
let body;
|
|
302
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
303
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
304
|
-
};
|
|
305
|
-
exports.se_DisableAWSOrganizationsAccessCommand = se_DisableAWSOrganizationsAccessCommand;
|
|
306
|
-
const se_DisassociateBudgetFromResourceCommand = async (input, context) => {
|
|
307
|
-
const headers = sharedHeaders("DisassociateBudgetFromResource");
|
|
308
|
-
let body;
|
|
309
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
310
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
311
|
-
};
|
|
312
|
-
exports.se_DisassociateBudgetFromResourceCommand = se_DisassociateBudgetFromResourceCommand;
|
|
313
|
-
const se_DisassociatePrincipalFromPortfolioCommand = async (input, context) => {
|
|
314
|
-
const headers = sharedHeaders("DisassociatePrincipalFromPortfolio");
|
|
315
|
-
let body;
|
|
316
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
317
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
|
-
};
|
|
319
|
-
exports.se_DisassociatePrincipalFromPortfolioCommand = se_DisassociatePrincipalFromPortfolioCommand;
|
|
320
|
-
const se_DisassociateProductFromPortfolioCommand = async (input, context) => {
|
|
321
|
-
const headers = sharedHeaders("DisassociateProductFromPortfolio");
|
|
322
|
-
let body;
|
|
323
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
324
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
325
|
-
};
|
|
326
|
-
exports.se_DisassociateProductFromPortfolioCommand = se_DisassociateProductFromPortfolioCommand;
|
|
327
|
-
const se_DisassociateServiceActionFromProvisioningArtifactCommand = async (input, context) => {
|
|
328
|
-
const headers = sharedHeaders("DisassociateServiceActionFromProvisioningArtifact");
|
|
329
|
-
let body;
|
|
330
|
-
body = JSON.stringify(se_DisassociateServiceActionFromProvisioningArtifactInput(input, context));
|
|
331
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
332
|
-
};
|
|
333
|
-
exports.se_DisassociateServiceActionFromProvisioningArtifactCommand = se_DisassociateServiceActionFromProvisioningArtifactCommand;
|
|
334
|
-
const se_DisassociateTagOptionFromResourceCommand = async (input, context) => {
|
|
335
|
-
const headers = sharedHeaders("DisassociateTagOptionFromResource");
|
|
336
|
-
let body;
|
|
337
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
338
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
339
|
-
};
|
|
340
|
-
exports.se_DisassociateTagOptionFromResourceCommand = se_DisassociateTagOptionFromResourceCommand;
|
|
341
|
-
const se_EnableAWSOrganizationsAccessCommand = async (input, context) => {
|
|
342
|
-
const headers = sharedHeaders("EnableAWSOrganizationsAccess");
|
|
343
|
-
let body;
|
|
344
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
345
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
346
|
-
};
|
|
347
|
-
exports.se_EnableAWSOrganizationsAccessCommand = se_EnableAWSOrganizationsAccessCommand;
|
|
348
|
-
const se_ExecuteProvisionedProductPlanCommand = async (input, context) => {
|
|
349
|
-
const headers = sharedHeaders("ExecuteProvisionedProductPlan");
|
|
350
|
-
let body;
|
|
351
|
-
body = JSON.stringify(se_ExecuteProvisionedProductPlanInput(input, context));
|
|
352
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
353
|
-
};
|
|
354
|
-
exports.se_ExecuteProvisionedProductPlanCommand = se_ExecuteProvisionedProductPlanCommand;
|
|
355
|
-
const se_ExecuteProvisionedProductServiceActionCommand = async (input, context) => {
|
|
356
|
-
const headers = sharedHeaders("ExecuteProvisionedProductServiceAction");
|
|
357
|
-
let body;
|
|
358
|
-
body = JSON.stringify(se_ExecuteProvisionedProductServiceActionInput(input, context));
|
|
359
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
360
|
-
};
|
|
361
|
-
exports.se_ExecuteProvisionedProductServiceActionCommand = se_ExecuteProvisionedProductServiceActionCommand;
|
|
362
|
-
const se_GetAWSOrganizationsAccessStatusCommand = async (input, context) => {
|
|
363
|
-
const headers = sharedHeaders("GetAWSOrganizationsAccessStatus");
|
|
364
|
-
let body;
|
|
365
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
366
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
|
-
};
|
|
368
|
-
exports.se_GetAWSOrganizationsAccessStatusCommand = se_GetAWSOrganizationsAccessStatusCommand;
|
|
369
|
-
const se_GetProvisionedProductOutputsCommand = async (input, context) => {
|
|
370
|
-
const headers = sharedHeaders("GetProvisionedProductOutputs");
|
|
371
|
-
let body;
|
|
372
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
373
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
374
|
-
};
|
|
375
|
-
exports.se_GetProvisionedProductOutputsCommand = se_GetProvisionedProductOutputsCommand;
|
|
376
|
-
const se_ImportAsProvisionedProductCommand = async (input, context) => {
|
|
377
|
-
const headers = sharedHeaders("ImportAsProvisionedProduct");
|
|
378
|
-
let body;
|
|
379
|
-
body = JSON.stringify(se_ImportAsProvisionedProductInput(input, context));
|
|
380
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
381
|
-
};
|
|
382
|
-
exports.se_ImportAsProvisionedProductCommand = se_ImportAsProvisionedProductCommand;
|
|
383
|
-
const se_ListAcceptedPortfolioSharesCommand = async (input, context) => {
|
|
384
|
-
const headers = sharedHeaders("ListAcceptedPortfolioShares");
|
|
385
|
-
let body;
|
|
386
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
387
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
388
|
-
};
|
|
389
|
-
exports.se_ListAcceptedPortfolioSharesCommand = se_ListAcceptedPortfolioSharesCommand;
|
|
390
|
-
const se_ListBudgetsForResourceCommand = async (input, context) => {
|
|
391
|
-
const headers = sharedHeaders("ListBudgetsForResource");
|
|
392
|
-
let body;
|
|
393
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
394
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
395
|
-
};
|
|
396
|
-
exports.se_ListBudgetsForResourceCommand = se_ListBudgetsForResourceCommand;
|
|
397
|
-
const se_ListConstraintsForPortfolioCommand = async (input, context) => {
|
|
398
|
-
const headers = sharedHeaders("ListConstraintsForPortfolio");
|
|
399
|
-
let body;
|
|
400
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
401
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
402
|
-
};
|
|
403
|
-
exports.se_ListConstraintsForPortfolioCommand = se_ListConstraintsForPortfolioCommand;
|
|
404
|
-
const se_ListLaunchPathsCommand = async (input, context) => {
|
|
405
|
-
const headers = sharedHeaders("ListLaunchPaths");
|
|
406
|
-
let body;
|
|
407
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
408
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
409
|
-
};
|
|
410
|
-
exports.se_ListLaunchPathsCommand = se_ListLaunchPathsCommand;
|
|
411
|
-
const se_ListOrganizationPortfolioAccessCommand = async (input, context) => {
|
|
412
|
-
const headers = sharedHeaders("ListOrganizationPortfolioAccess");
|
|
413
|
-
let body;
|
|
414
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
415
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
416
|
-
};
|
|
417
|
-
exports.se_ListOrganizationPortfolioAccessCommand = se_ListOrganizationPortfolioAccessCommand;
|
|
418
|
-
const se_ListPortfolioAccessCommand = async (input, context) => {
|
|
419
|
-
const headers = sharedHeaders("ListPortfolioAccess");
|
|
420
|
-
let body;
|
|
421
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
422
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
423
|
-
};
|
|
424
|
-
exports.se_ListPortfolioAccessCommand = se_ListPortfolioAccessCommand;
|
|
425
|
-
const se_ListPortfoliosCommand = async (input, context) => {
|
|
426
|
-
const headers = sharedHeaders("ListPortfolios");
|
|
427
|
-
let body;
|
|
428
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
429
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
430
|
-
};
|
|
431
|
-
exports.se_ListPortfoliosCommand = se_ListPortfoliosCommand;
|
|
432
|
-
const se_ListPortfoliosForProductCommand = async (input, context) => {
|
|
433
|
-
const headers = sharedHeaders("ListPortfoliosForProduct");
|
|
434
|
-
let body;
|
|
435
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
436
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
|
-
};
|
|
438
|
-
exports.se_ListPortfoliosForProductCommand = se_ListPortfoliosForProductCommand;
|
|
439
|
-
const se_ListPrincipalsForPortfolioCommand = async (input, context) => {
|
|
440
|
-
const headers = sharedHeaders("ListPrincipalsForPortfolio");
|
|
441
|
-
let body;
|
|
442
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
443
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
444
|
-
};
|
|
445
|
-
exports.se_ListPrincipalsForPortfolioCommand = se_ListPrincipalsForPortfolioCommand;
|
|
446
|
-
const se_ListProvisionedProductPlansCommand = async (input, context) => {
|
|
447
|
-
const headers = sharedHeaders("ListProvisionedProductPlans");
|
|
448
|
-
let body;
|
|
449
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
450
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
451
|
-
};
|
|
452
|
-
exports.se_ListProvisionedProductPlansCommand = se_ListProvisionedProductPlansCommand;
|
|
453
|
-
const se_ListProvisioningArtifactsCommand = async (input, context) => {
|
|
454
|
-
const headers = sharedHeaders("ListProvisioningArtifacts");
|
|
455
|
-
let body;
|
|
456
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
457
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
458
|
-
};
|
|
459
|
-
exports.se_ListProvisioningArtifactsCommand = se_ListProvisioningArtifactsCommand;
|
|
460
|
-
const se_ListProvisioningArtifactsForServiceActionCommand = async (input, context) => {
|
|
461
|
-
const headers = sharedHeaders("ListProvisioningArtifactsForServiceAction");
|
|
462
|
-
let body;
|
|
463
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
464
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
465
|
-
};
|
|
466
|
-
exports.se_ListProvisioningArtifactsForServiceActionCommand = se_ListProvisioningArtifactsForServiceActionCommand;
|
|
467
|
-
const se_ListRecordHistoryCommand = async (input, context) => {
|
|
468
|
-
const headers = sharedHeaders("ListRecordHistory");
|
|
469
|
-
let body;
|
|
470
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
471
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
472
|
-
};
|
|
473
|
-
exports.se_ListRecordHistoryCommand = se_ListRecordHistoryCommand;
|
|
474
|
-
const se_ListResourcesForTagOptionCommand = async (input, context) => {
|
|
475
|
-
const headers = sharedHeaders("ListResourcesForTagOption");
|
|
476
|
-
let body;
|
|
477
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
478
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
479
|
-
};
|
|
480
|
-
exports.se_ListResourcesForTagOptionCommand = se_ListResourcesForTagOptionCommand;
|
|
481
|
-
const se_ListServiceActionsCommand = async (input, context) => {
|
|
482
|
-
const headers = sharedHeaders("ListServiceActions");
|
|
483
|
-
let body;
|
|
484
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
485
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
486
|
-
};
|
|
487
|
-
exports.se_ListServiceActionsCommand = se_ListServiceActionsCommand;
|
|
488
|
-
const se_ListServiceActionsForProvisioningArtifactCommand = async (input, context) => {
|
|
489
|
-
const headers = sharedHeaders("ListServiceActionsForProvisioningArtifact");
|
|
490
|
-
let body;
|
|
491
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
492
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
493
|
-
};
|
|
494
|
-
exports.se_ListServiceActionsForProvisioningArtifactCommand = se_ListServiceActionsForProvisioningArtifactCommand;
|
|
495
|
-
const se_ListStackInstancesForProvisionedProductCommand = async (input, context) => {
|
|
496
|
-
const headers = sharedHeaders("ListStackInstancesForProvisionedProduct");
|
|
497
|
-
let body;
|
|
498
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
499
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
500
|
-
};
|
|
501
|
-
exports.se_ListStackInstancesForProvisionedProductCommand = se_ListStackInstancesForProvisionedProductCommand;
|
|
502
|
-
const se_ListTagOptionsCommand = async (input, context) => {
|
|
503
|
-
const headers = sharedHeaders("ListTagOptions");
|
|
504
|
-
let body;
|
|
505
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
506
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
507
|
-
};
|
|
508
|
-
exports.se_ListTagOptionsCommand = se_ListTagOptionsCommand;
|
|
509
|
-
const se_NotifyProvisionProductEngineWorkflowResultCommand = async (input, context) => {
|
|
510
|
-
const headers = sharedHeaders("NotifyProvisionProductEngineWorkflowResult");
|
|
511
|
-
let body;
|
|
512
|
-
body = JSON.stringify(se_NotifyProvisionProductEngineWorkflowResultInput(input, context));
|
|
513
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
514
|
-
};
|
|
515
|
-
exports.se_NotifyProvisionProductEngineWorkflowResultCommand = se_NotifyProvisionProductEngineWorkflowResultCommand;
|
|
516
|
-
const se_NotifyTerminateProvisionedProductEngineWorkflowResultCommand = async (input, context) => {
|
|
517
|
-
const headers = sharedHeaders("NotifyTerminateProvisionedProductEngineWorkflowResult");
|
|
518
|
-
let body;
|
|
519
|
-
body = JSON.stringify(se_NotifyTerminateProvisionedProductEngineWorkflowResultInput(input, context));
|
|
520
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
521
|
-
};
|
|
522
|
-
exports.se_NotifyTerminateProvisionedProductEngineWorkflowResultCommand = se_NotifyTerminateProvisionedProductEngineWorkflowResultCommand;
|
|
523
|
-
const se_NotifyUpdateProvisionedProductEngineWorkflowResultCommand = async (input, context) => {
|
|
524
|
-
const headers = sharedHeaders("NotifyUpdateProvisionedProductEngineWorkflowResult");
|
|
525
|
-
let body;
|
|
526
|
-
body = JSON.stringify(se_NotifyUpdateProvisionedProductEngineWorkflowResultInput(input, context));
|
|
527
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
528
|
-
};
|
|
529
|
-
exports.se_NotifyUpdateProvisionedProductEngineWorkflowResultCommand = se_NotifyUpdateProvisionedProductEngineWorkflowResultCommand;
|
|
530
|
-
const se_ProvisionProductCommand = async (input, context) => {
|
|
531
|
-
const headers = sharedHeaders("ProvisionProduct");
|
|
532
|
-
let body;
|
|
533
|
-
body = JSON.stringify(se_ProvisionProductInput(input, context));
|
|
534
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
535
|
-
};
|
|
536
|
-
exports.se_ProvisionProductCommand = se_ProvisionProductCommand;
|
|
537
|
-
const se_RejectPortfolioShareCommand = async (input, context) => {
|
|
538
|
-
const headers = sharedHeaders("RejectPortfolioShare");
|
|
539
|
-
let body;
|
|
540
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
541
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
542
|
-
};
|
|
543
|
-
exports.se_RejectPortfolioShareCommand = se_RejectPortfolioShareCommand;
|
|
544
|
-
const se_ScanProvisionedProductsCommand = async (input, context) => {
|
|
545
|
-
const headers = sharedHeaders("ScanProvisionedProducts");
|
|
546
|
-
let body;
|
|
547
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
548
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
549
|
-
};
|
|
550
|
-
exports.se_ScanProvisionedProductsCommand = se_ScanProvisionedProductsCommand;
|
|
551
|
-
const se_SearchProductsCommand = async (input, context) => {
|
|
552
|
-
const headers = sharedHeaders("SearchProducts");
|
|
553
|
-
let body;
|
|
554
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
555
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
556
|
-
};
|
|
557
|
-
exports.se_SearchProductsCommand = se_SearchProductsCommand;
|
|
558
|
-
const se_SearchProductsAsAdminCommand = async (input, context) => {
|
|
559
|
-
const headers = sharedHeaders("SearchProductsAsAdmin");
|
|
560
|
-
let body;
|
|
561
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
562
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
563
|
-
};
|
|
564
|
-
exports.se_SearchProductsAsAdminCommand = se_SearchProductsAsAdminCommand;
|
|
565
|
-
const se_SearchProvisionedProductsCommand = async (input, context) => {
|
|
566
|
-
const headers = sharedHeaders("SearchProvisionedProducts");
|
|
567
|
-
let body;
|
|
568
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
569
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
570
|
-
};
|
|
571
|
-
exports.se_SearchProvisionedProductsCommand = se_SearchProvisionedProductsCommand;
|
|
572
|
-
const se_TerminateProvisionedProductCommand = async (input, context) => {
|
|
573
|
-
const headers = sharedHeaders("TerminateProvisionedProduct");
|
|
574
|
-
let body;
|
|
575
|
-
body = JSON.stringify(se_TerminateProvisionedProductInput(input, context));
|
|
576
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
577
|
-
};
|
|
578
|
-
exports.se_TerminateProvisionedProductCommand = se_TerminateProvisionedProductCommand;
|
|
579
|
-
const se_UpdateConstraintCommand = async (input, context) => {
|
|
580
|
-
const headers = sharedHeaders("UpdateConstraint");
|
|
581
|
-
let body;
|
|
582
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
583
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
584
|
-
};
|
|
585
|
-
exports.se_UpdateConstraintCommand = se_UpdateConstraintCommand;
|
|
586
|
-
const se_UpdatePortfolioCommand = async (input, context) => {
|
|
587
|
-
const headers = sharedHeaders("UpdatePortfolio");
|
|
588
|
-
let body;
|
|
589
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
590
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
591
|
-
};
|
|
592
|
-
exports.se_UpdatePortfolioCommand = se_UpdatePortfolioCommand;
|
|
593
|
-
const se_UpdatePortfolioShareCommand = async (input, context) => {
|
|
594
|
-
const headers = sharedHeaders("UpdatePortfolioShare");
|
|
595
|
-
let body;
|
|
596
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
597
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
598
|
-
};
|
|
599
|
-
exports.se_UpdatePortfolioShareCommand = se_UpdatePortfolioShareCommand;
|
|
600
|
-
const se_UpdateProductCommand = async (input, context) => {
|
|
601
|
-
const headers = sharedHeaders("UpdateProduct");
|
|
602
|
-
let body;
|
|
603
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
604
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
605
|
-
};
|
|
606
|
-
exports.se_UpdateProductCommand = se_UpdateProductCommand;
|
|
607
|
-
const se_UpdateProvisionedProductCommand = async (input, context) => {
|
|
608
|
-
const headers = sharedHeaders("UpdateProvisionedProduct");
|
|
609
|
-
let body;
|
|
610
|
-
body = JSON.stringify(se_UpdateProvisionedProductInput(input, context));
|
|
611
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
612
|
-
};
|
|
613
|
-
exports.se_UpdateProvisionedProductCommand = se_UpdateProvisionedProductCommand;
|
|
614
|
-
const se_UpdateProvisionedProductPropertiesCommand = async (input, context) => {
|
|
615
|
-
const headers = sharedHeaders("UpdateProvisionedProductProperties");
|
|
616
|
-
let body;
|
|
617
|
-
body = JSON.stringify(se_UpdateProvisionedProductPropertiesInput(input, context));
|
|
618
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
619
|
-
};
|
|
620
|
-
exports.se_UpdateProvisionedProductPropertiesCommand = se_UpdateProvisionedProductPropertiesCommand;
|
|
621
|
-
const se_UpdateProvisioningArtifactCommand = async (input, context) => {
|
|
622
|
-
const headers = sharedHeaders("UpdateProvisioningArtifact");
|
|
623
|
-
let body;
|
|
624
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
625
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
626
|
-
};
|
|
627
|
-
exports.se_UpdateProvisioningArtifactCommand = se_UpdateProvisioningArtifactCommand;
|
|
628
|
-
const se_UpdateServiceActionCommand = async (input, context) => {
|
|
629
|
-
const headers = sharedHeaders("UpdateServiceAction");
|
|
630
|
-
let body;
|
|
631
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
632
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
633
|
-
};
|
|
634
|
-
exports.se_UpdateServiceActionCommand = se_UpdateServiceActionCommand;
|
|
635
|
-
const se_UpdateTagOptionCommand = async (input, context) => {
|
|
636
|
-
const headers = sharedHeaders("UpdateTagOption");
|
|
637
|
-
let body;
|
|
638
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
639
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
640
|
-
};
|
|
641
|
-
exports.se_UpdateTagOptionCommand = se_UpdateTagOptionCommand;
|
|
642
|
-
const de_AcceptPortfolioShareCommand = async (output, context) => {
|
|
643
|
-
if (output.statusCode >= 300) {
|
|
644
|
-
return de_AcceptPortfolioShareCommandError(output, context);
|
|
645
|
-
}
|
|
646
|
-
const data = await parseBody(output.body, context);
|
|
647
|
-
let contents = {};
|
|
648
|
-
contents = (0, smithy_client_1._json)(data);
|
|
649
|
-
const response = {
|
|
650
|
-
$metadata: deserializeMetadata(output),
|
|
651
|
-
...contents,
|
|
652
|
-
};
|
|
653
|
-
return response;
|
|
654
|
-
};
|
|
655
|
-
exports.de_AcceptPortfolioShareCommand = de_AcceptPortfolioShareCommand;
|
|
656
|
-
const de_AcceptPortfolioShareCommandError = async (output, context) => {
|
|
657
|
-
const parsedOutput = {
|
|
658
|
-
...output,
|
|
659
|
-
body: await parseErrorBody(output.body, context),
|
|
660
|
-
};
|
|
661
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
662
|
-
switch (errorCode) {
|
|
663
|
-
case "InvalidParametersException":
|
|
664
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
665
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
666
|
-
case "LimitExceededException":
|
|
667
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
668
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
669
|
-
case "ResourceNotFoundException":
|
|
670
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
671
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
672
|
-
default:
|
|
673
|
-
const parsedBody = parsedOutput.body;
|
|
674
|
-
return throwDefaultError({
|
|
675
|
-
output,
|
|
676
|
-
parsedBody,
|
|
677
|
-
errorCode,
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
|
-
const de_AssociateBudgetWithResourceCommand = async (output, context) => {
|
|
682
|
-
if (output.statusCode >= 300) {
|
|
683
|
-
return de_AssociateBudgetWithResourceCommandError(output, context);
|
|
684
|
-
}
|
|
685
|
-
const data = await parseBody(output.body, context);
|
|
686
|
-
let contents = {};
|
|
687
|
-
contents = (0, smithy_client_1._json)(data);
|
|
688
|
-
const response = {
|
|
689
|
-
$metadata: deserializeMetadata(output),
|
|
690
|
-
...contents,
|
|
691
|
-
};
|
|
692
|
-
return response;
|
|
693
|
-
};
|
|
694
|
-
exports.de_AssociateBudgetWithResourceCommand = de_AssociateBudgetWithResourceCommand;
|
|
695
|
-
const de_AssociateBudgetWithResourceCommandError = async (output, context) => {
|
|
696
|
-
const parsedOutput = {
|
|
697
|
-
...output,
|
|
698
|
-
body: await parseErrorBody(output.body, context),
|
|
699
|
-
};
|
|
700
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
-
switch (errorCode) {
|
|
702
|
-
case "DuplicateResourceException":
|
|
703
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
704
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
705
|
-
case "InvalidParametersException":
|
|
706
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
707
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
708
|
-
case "LimitExceededException":
|
|
709
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
710
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
711
|
-
case "ResourceNotFoundException":
|
|
712
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
713
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
714
|
-
default:
|
|
715
|
-
const parsedBody = parsedOutput.body;
|
|
716
|
-
return throwDefaultError({
|
|
717
|
-
output,
|
|
718
|
-
parsedBody,
|
|
719
|
-
errorCode,
|
|
720
|
-
});
|
|
721
|
-
}
|
|
722
|
-
};
|
|
723
|
-
const de_AssociatePrincipalWithPortfolioCommand = async (output, context) => {
|
|
724
|
-
if (output.statusCode >= 300) {
|
|
725
|
-
return de_AssociatePrincipalWithPortfolioCommandError(output, context);
|
|
726
|
-
}
|
|
727
|
-
const data = await parseBody(output.body, context);
|
|
728
|
-
let contents = {};
|
|
729
|
-
contents = (0, smithy_client_1._json)(data);
|
|
730
|
-
const response = {
|
|
731
|
-
$metadata: deserializeMetadata(output),
|
|
732
|
-
...contents,
|
|
733
|
-
};
|
|
734
|
-
return response;
|
|
735
|
-
};
|
|
736
|
-
exports.de_AssociatePrincipalWithPortfolioCommand = de_AssociatePrincipalWithPortfolioCommand;
|
|
737
|
-
const de_AssociatePrincipalWithPortfolioCommandError = async (output, context) => {
|
|
738
|
-
const parsedOutput = {
|
|
739
|
-
...output,
|
|
740
|
-
body: await parseErrorBody(output.body, context),
|
|
741
|
-
};
|
|
742
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
|
-
switch (errorCode) {
|
|
744
|
-
case "InvalidParametersException":
|
|
745
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
746
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
747
|
-
case "LimitExceededException":
|
|
748
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
749
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
750
|
-
case "ResourceNotFoundException":
|
|
751
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
752
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
753
|
-
default:
|
|
754
|
-
const parsedBody = parsedOutput.body;
|
|
755
|
-
return throwDefaultError({
|
|
756
|
-
output,
|
|
757
|
-
parsedBody,
|
|
758
|
-
errorCode,
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
};
|
|
762
|
-
const de_AssociateProductWithPortfolioCommand = async (output, context) => {
|
|
763
|
-
if (output.statusCode >= 300) {
|
|
764
|
-
return de_AssociateProductWithPortfolioCommandError(output, context);
|
|
765
|
-
}
|
|
766
|
-
const data = await parseBody(output.body, context);
|
|
767
|
-
let contents = {};
|
|
768
|
-
contents = (0, smithy_client_1._json)(data);
|
|
769
|
-
const response = {
|
|
770
|
-
$metadata: deserializeMetadata(output),
|
|
771
|
-
...contents,
|
|
772
|
-
};
|
|
773
|
-
return response;
|
|
774
|
-
};
|
|
775
|
-
exports.de_AssociateProductWithPortfolioCommand = de_AssociateProductWithPortfolioCommand;
|
|
776
|
-
const de_AssociateProductWithPortfolioCommandError = async (output, context) => {
|
|
777
|
-
const parsedOutput = {
|
|
778
|
-
...output,
|
|
779
|
-
body: await parseErrorBody(output.body, context),
|
|
780
|
-
};
|
|
781
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
|
-
switch (errorCode) {
|
|
783
|
-
case "InvalidParametersException":
|
|
784
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
785
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
786
|
-
case "LimitExceededException":
|
|
787
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
788
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
789
|
-
case "ResourceNotFoundException":
|
|
790
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
791
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
792
|
-
default:
|
|
793
|
-
const parsedBody = parsedOutput.body;
|
|
794
|
-
return throwDefaultError({
|
|
795
|
-
output,
|
|
796
|
-
parsedBody,
|
|
797
|
-
errorCode,
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
|
-
};
|
|
801
|
-
const de_AssociateServiceActionWithProvisioningArtifactCommand = async (output, context) => {
|
|
802
|
-
if (output.statusCode >= 300) {
|
|
803
|
-
return de_AssociateServiceActionWithProvisioningArtifactCommandError(output, context);
|
|
804
|
-
}
|
|
805
|
-
const data = await parseBody(output.body, context);
|
|
806
|
-
let contents = {};
|
|
807
|
-
contents = (0, smithy_client_1._json)(data);
|
|
808
|
-
const response = {
|
|
809
|
-
$metadata: deserializeMetadata(output),
|
|
810
|
-
...contents,
|
|
811
|
-
};
|
|
812
|
-
return response;
|
|
813
|
-
};
|
|
814
|
-
exports.de_AssociateServiceActionWithProvisioningArtifactCommand = de_AssociateServiceActionWithProvisioningArtifactCommand;
|
|
815
|
-
const de_AssociateServiceActionWithProvisioningArtifactCommandError = async (output, context) => {
|
|
816
|
-
const parsedOutput = {
|
|
817
|
-
...output,
|
|
818
|
-
body: await parseErrorBody(output.body, context),
|
|
819
|
-
};
|
|
820
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
821
|
-
switch (errorCode) {
|
|
822
|
-
case "DuplicateResourceException":
|
|
823
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
824
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
825
|
-
case "InvalidParametersException":
|
|
826
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
827
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
828
|
-
case "LimitExceededException":
|
|
829
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
830
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
831
|
-
case "ResourceNotFoundException":
|
|
832
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
833
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
834
|
-
default:
|
|
835
|
-
const parsedBody = parsedOutput.body;
|
|
836
|
-
return throwDefaultError({
|
|
837
|
-
output,
|
|
838
|
-
parsedBody,
|
|
839
|
-
errorCode,
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
};
|
|
843
|
-
const de_AssociateTagOptionWithResourceCommand = async (output, context) => {
|
|
844
|
-
if (output.statusCode >= 300) {
|
|
845
|
-
return de_AssociateTagOptionWithResourceCommandError(output, context);
|
|
846
|
-
}
|
|
847
|
-
const data = await parseBody(output.body, context);
|
|
848
|
-
let contents = {};
|
|
849
|
-
contents = (0, smithy_client_1._json)(data);
|
|
850
|
-
const response = {
|
|
851
|
-
$metadata: deserializeMetadata(output),
|
|
852
|
-
...contents,
|
|
853
|
-
};
|
|
854
|
-
return response;
|
|
855
|
-
};
|
|
856
|
-
exports.de_AssociateTagOptionWithResourceCommand = de_AssociateTagOptionWithResourceCommand;
|
|
857
|
-
const de_AssociateTagOptionWithResourceCommandError = async (output, context) => {
|
|
858
|
-
const parsedOutput = {
|
|
859
|
-
...output,
|
|
860
|
-
body: await parseErrorBody(output.body, context),
|
|
861
|
-
};
|
|
862
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
|
-
switch (errorCode) {
|
|
864
|
-
case "DuplicateResourceException":
|
|
865
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
866
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
867
|
-
case "InvalidParametersException":
|
|
868
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
869
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
870
|
-
case "InvalidStateException":
|
|
871
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
872
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
873
|
-
case "LimitExceededException":
|
|
874
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
875
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
876
|
-
case "ResourceNotFoundException":
|
|
877
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
878
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
879
|
-
case "TagOptionNotMigratedException":
|
|
880
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
881
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
882
|
-
default:
|
|
883
|
-
const parsedBody = parsedOutput.body;
|
|
884
|
-
return throwDefaultError({
|
|
885
|
-
output,
|
|
886
|
-
parsedBody,
|
|
887
|
-
errorCode,
|
|
888
|
-
});
|
|
889
|
-
}
|
|
890
|
-
};
|
|
891
|
-
const de_BatchAssociateServiceActionWithProvisioningArtifactCommand = async (output, context) => {
|
|
892
|
-
if (output.statusCode >= 300) {
|
|
893
|
-
return de_BatchAssociateServiceActionWithProvisioningArtifactCommandError(output, context);
|
|
894
|
-
}
|
|
895
|
-
const data = await parseBody(output.body, context);
|
|
896
|
-
let contents = {};
|
|
897
|
-
contents = (0, smithy_client_1._json)(data);
|
|
898
|
-
const response = {
|
|
899
|
-
$metadata: deserializeMetadata(output),
|
|
900
|
-
...contents,
|
|
901
|
-
};
|
|
902
|
-
return response;
|
|
903
|
-
};
|
|
904
|
-
exports.de_BatchAssociateServiceActionWithProvisioningArtifactCommand = de_BatchAssociateServiceActionWithProvisioningArtifactCommand;
|
|
905
|
-
const de_BatchAssociateServiceActionWithProvisioningArtifactCommandError = async (output, context) => {
|
|
906
|
-
const parsedOutput = {
|
|
907
|
-
...output,
|
|
908
|
-
body: await parseErrorBody(output.body, context),
|
|
909
|
-
};
|
|
910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
|
-
switch (errorCode) {
|
|
912
|
-
case "InvalidParametersException":
|
|
913
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
914
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
915
|
-
default:
|
|
916
|
-
const parsedBody = parsedOutput.body;
|
|
917
|
-
return throwDefaultError({
|
|
918
|
-
output,
|
|
919
|
-
parsedBody,
|
|
920
|
-
errorCode,
|
|
921
|
-
});
|
|
922
|
-
}
|
|
923
|
-
};
|
|
924
|
-
const de_BatchDisassociateServiceActionFromProvisioningArtifactCommand = async (output, context) => {
|
|
925
|
-
if (output.statusCode >= 300) {
|
|
926
|
-
return de_BatchDisassociateServiceActionFromProvisioningArtifactCommandError(output, context);
|
|
927
|
-
}
|
|
928
|
-
const data = await parseBody(output.body, context);
|
|
929
|
-
let contents = {};
|
|
930
|
-
contents = (0, smithy_client_1._json)(data);
|
|
931
|
-
const response = {
|
|
932
|
-
$metadata: deserializeMetadata(output),
|
|
933
|
-
...contents,
|
|
934
|
-
};
|
|
935
|
-
return response;
|
|
936
|
-
};
|
|
937
|
-
exports.de_BatchDisassociateServiceActionFromProvisioningArtifactCommand = de_BatchDisassociateServiceActionFromProvisioningArtifactCommand;
|
|
938
|
-
const de_BatchDisassociateServiceActionFromProvisioningArtifactCommandError = async (output, context) => {
|
|
939
|
-
const parsedOutput = {
|
|
940
|
-
...output,
|
|
941
|
-
body: await parseErrorBody(output.body, context),
|
|
942
|
-
};
|
|
943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
944
|
-
switch (errorCode) {
|
|
945
|
-
case "InvalidParametersException":
|
|
946
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
947
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
948
|
-
default:
|
|
949
|
-
const parsedBody = parsedOutput.body;
|
|
950
|
-
return throwDefaultError({
|
|
951
|
-
output,
|
|
952
|
-
parsedBody,
|
|
953
|
-
errorCode,
|
|
954
|
-
});
|
|
955
|
-
}
|
|
956
|
-
};
|
|
957
|
-
const de_CopyProductCommand = async (output, context) => {
|
|
958
|
-
if (output.statusCode >= 300) {
|
|
959
|
-
return de_CopyProductCommandError(output, context);
|
|
960
|
-
}
|
|
961
|
-
const data = await parseBody(output.body, context);
|
|
962
|
-
let contents = {};
|
|
963
|
-
contents = (0, smithy_client_1._json)(data);
|
|
964
|
-
const response = {
|
|
965
|
-
$metadata: deserializeMetadata(output),
|
|
966
|
-
...contents,
|
|
967
|
-
};
|
|
968
|
-
return response;
|
|
969
|
-
};
|
|
970
|
-
exports.de_CopyProductCommand = de_CopyProductCommand;
|
|
971
|
-
const de_CopyProductCommandError = async (output, context) => {
|
|
972
|
-
const parsedOutput = {
|
|
973
|
-
...output,
|
|
974
|
-
body: await parseErrorBody(output.body, context),
|
|
975
|
-
};
|
|
976
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
|
-
switch (errorCode) {
|
|
978
|
-
case "InvalidParametersException":
|
|
979
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
980
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ResourceNotFoundException":
|
|
982
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
983
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
984
|
-
default:
|
|
985
|
-
const parsedBody = parsedOutput.body;
|
|
986
|
-
return throwDefaultError({
|
|
987
|
-
output,
|
|
988
|
-
parsedBody,
|
|
989
|
-
errorCode,
|
|
990
|
-
});
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
const de_CreateConstraintCommand = async (output, context) => {
|
|
994
|
-
if (output.statusCode >= 300) {
|
|
995
|
-
return de_CreateConstraintCommandError(output, context);
|
|
996
|
-
}
|
|
997
|
-
const data = await parseBody(output.body, context);
|
|
998
|
-
let contents = {};
|
|
999
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1000
|
-
const response = {
|
|
1001
|
-
$metadata: deserializeMetadata(output),
|
|
1002
|
-
...contents,
|
|
1003
|
-
};
|
|
1004
|
-
return response;
|
|
1005
|
-
};
|
|
1006
|
-
exports.de_CreateConstraintCommand = de_CreateConstraintCommand;
|
|
1007
|
-
const de_CreateConstraintCommandError = async (output, context) => {
|
|
1008
|
-
const parsedOutput = {
|
|
1009
|
-
...output,
|
|
1010
|
-
body: await parseErrorBody(output.body, context),
|
|
1011
|
-
};
|
|
1012
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
|
-
switch (errorCode) {
|
|
1014
|
-
case "DuplicateResourceException":
|
|
1015
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
1016
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "InvalidParametersException":
|
|
1018
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1019
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "LimitExceededException":
|
|
1021
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1022
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "ResourceNotFoundException":
|
|
1024
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1025
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1026
|
-
default:
|
|
1027
|
-
const parsedBody = parsedOutput.body;
|
|
1028
|
-
return throwDefaultError({
|
|
1029
|
-
output,
|
|
1030
|
-
parsedBody,
|
|
1031
|
-
errorCode,
|
|
1032
|
-
});
|
|
1033
|
-
}
|
|
1034
|
-
};
|
|
1035
|
-
const de_CreatePortfolioCommand = async (output, context) => {
|
|
1036
|
-
if (output.statusCode >= 300) {
|
|
1037
|
-
return de_CreatePortfolioCommandError(output, context);
|
|
1038
|
-
}
|
|
1039
|
-
const data = await parseBody(output.body, context);
|
|
1040
|
-
let contents = {};
|
|
1041
|
-
contents = de_CreatePortfolioOutput(data, context);
|
|
1042
|
-
const response = {
|
|
1043
|
-
$metadata: deserializeMetadata(output),
|
|
1044
|
-
...contents,
|
|
1045
|
-
};
|
|
1046
|
-
return response;
|
|
1047
|
-
};
|
|
1048
|
-
exports.de_CreatePortfolioCommand = de_CreatePortfolioCommand;
|
|
1049
|
-
const de_CreatePortfolioCommandError = async (output, context) => {
|
|
1050
|
-
const parsedOutput = {
|
|
1051
|
-
...output,
|
|
1052
|
-
body: await parseErrorBody(output.body, context),
|
|
1053
|
-
};
|
|
1054
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1055
|
-
switch (errorCode) {
|
|
1056
|
-
case "InvalidParametersException":
|
|
1057
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1058
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "LimitExceededException":
|
|
1060
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1061
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "TagOptionNotMigratedException":
|
|
1063
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1064
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1065
|
-
default:
|
|
1066
|
-
const parsedBody = parsedOutput.body;
|
|
1067
|
-
return throwDefaultError({
|
|
1068
|
-
output,
|
|
1069
|
-
parsedBody,
|
|
1070
|
-
errorCode,
|
|
1071
|
-
});
|
|
1072
|
-
}
|
|
1073
|
-
};
|
|
1074
|
-
const de_CreatePortfolioShareCommand = async (output, context) => {
|
|
1075
|
-
if (output.statusCode >= 300) {
|
|
1076
|
-
return de_CreatePortfolioShareCommandError(output, context);
|
|
1077
|
-
}
|
|
1078
|
-
const data = await parseBody(output.body, context);
|
|
1079
|
-
let contents = {};
|
|
1080
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1081
|
-
const response = {
|
|
1082
|
-
$metadata: deserializeMetadata(output),
|
|
1083
|
-
...contents,
|
|
1084
|
-
};
|
|
1085
|
-
return response;
|
|
1086
|
-
};
|
|
1087
|
-
exports.de_CreatePortfolioShareCommand = de_CreatePortfolioShareCommand;
|
|
1088
|
-
const de_CreatePortfolioShareCommandError = async (output, context) => {
|
|
1089
|
-
const parsedOutput = {
|
|
1090
|
-
...output,
|
|
1091
|
-
body: await parseErrorBody(output.body, context),
|
|
1092
|
-
};
|
|
1093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
|
-
switch (errorCode) {
|
|
1095
|
-
case "InvalidParametersException":
|
|
1096
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1097
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "InvalidStateException":
|
|
1099
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
1100
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "LimitExceededException":
|
|
1102
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1103
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "OperationNotSupportedException":
|
|
1105
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
1106
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "ResourceNotFoundException":
|
|
1108
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1109
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1110
|
-
default:
|
|
1111
|
-
const parsedBody = parsedOutput.body;
|
|
1112
|
-
return throwDefaultError({
|
|
1113
|
-
output,
|
|
1114
|
-
parsedBody,
|
|
1115
|
-
errorCode,
|
|
1116
|
-
});
|
|
1117
|
-
}
|
|
1118
|
-
};
|
|
1119
|
-
const de_CreateProductCommand = async (output, context) => {
|
|
1120
|
-
if (output.statusCode >= 300) {
|
|
1121
|
-
return de_CreateProductCommandError(output, context);
|
|
1122
|
-
}
|
|
1123
|
-
const data = await parseBody(output.body, context);
|
|
1124
|
-
let contents = {};
|
|
1125
|
-
contents = de_CreateProductOutput(data, context);
|
|
1126
|
-
const response = {
|
|
1127
|
-
$metadata: deserializeMetadata(output),
|
|
1128
|
-
...contents,
|
|
1129
|
-
};
|
|
1130
|
-
return response;
|
|
1131
|
-
};
|
|
1132
|
-
exports.de_CreateProductCommand = de_CreateProductCommand;
|
|
1133
|
-
const de_CreateProductCommandError = async (output, context) => {
|
|
1134
|
-
const parsedOutput = {
|
|
1135
|
-
...output,
|
|
1136
|
-
body: await parseErrorBody(output.body, context),
|
|
1137
|
-
};
|
|
1138
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
|
-
switch (errorCode) {
|
|
1140
|
-
case "InvalidParametersException":
|
|
1141
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1142
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "LimitExceededException":
|
|
1144
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1145
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "TagOptionNotMigratedException":
|
|
1147
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1148
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1149
|
-
default:
|
|
1150
|
-
const parsedBody = parsedOutput.body;
|
|
1151
|
-
return throwDefaultError({
|
|
1152
|
-
output,
|
|
1153
|
-
parsedBody,
|
|
1154
|
-
errorCode,
|
|
1155
|
-
});
|
|
1156
|
-
}
|
|
1157
|
-
};
|
|
1158
|
-
const de_CreateProvisionedProductPlanCommand = async (output, context) => {
|
|
1159
|
-
if (output.statusCode >= 300) {
|
|
1160
|
-
return de_CreateProvisionedProductPlanCommandError(output, context);
|
|
1161
|
-
}
|
|
1162
|
-
const data = await parseBody(output.body, context);
|
|
1163
|
-
let contents = {};
|
|
1164
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1165
|
-
const response = {
|
|
1166
|
-
$metadata: deserializeMetadata(output),
|
|
1167
|
-
...contents,
|
|
1168
|
-
};
|
|
1169
|
-
return response;
|
|
1170
|
-
};
|
|
1171
|
-
exports.de_CreateProvisionedProductPlanCommand = de_CreateProvisionedProductPlanCommand;
|
|
1172
|
-
const de_CreateProvisionedProductPlanCommandError = async (output, context) => {
|
|
1173
|
-
const parsedOutput = {
|
|
1174
|
-
...output,
|
|
1175
|
-
body: await parseErrorBody(output.body, context),
|
|
1176
|
-
};
|
|
1177
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
|
-
switch (errorCode) {
|
|
1179
|
-
case "InvalidParametersException":
|
|
1180
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1181
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "InvalidStateException":
|
|
1183
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
1184
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ResourceNotFoundException":
|
|
1186
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1187
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1188
|
-
default:
|
|
1189
|
-
const parsedBody = parsedOutput.body;
|
|
1190
|
-
return throwDefaultError({
|
|
1191
|
-
output,
|
|
1192
|
-
parsedBody,
|
|
1193
|
-
errorCode,
|
|
1194
|
-
});
|
|
1195
|
-
}
|
|
1196
|
-
};
|
|
1197
|
-
const de_CreateProvisioningArtifactCommand = async (output, context) => {
|
|
1198
|
-
if (output.statusCode >= 300) {
|
|
1199
|
-
return de_CreateProvisioningArtifactCommandError(output, context);
|
|
1200
|
-
}
|
|
1201
|
-
const data = await parseBody(output.body, context);
|
|
1202
|
-
let contents = {};
|
|
1203
|
-
contents = de_CreateProvisioningArtifactOutput(data, context);
|
|
1204
|
-
const response = {
|
|
1205
|
-
$metadata: deserializeMetadata(output),
|
|
1206
|
-
...contents,
|
|
1207
|
-
};
|
|
1208
|
-
return response;
|
|
1209
|
-
};
|
|
1210
|
-
exports.de_CreateProvisioningArtifactCommand = de_CreateProvisioningArtifactCommand;
|
|
1211
|
-
const de_CreateProvisioningArtifactCommandError = async (output, context) => {
|
|
1212
|
-
const parsedOutput = {
|
|
1213
|
-
...output,
|
|
1214
|
-
body: await parseErrorBody(output.body, context),
|
|
1215
|
-
};
|
|
1216
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
|
-
switch (errorCode) {
|
|
1218
|
-
case "InvalidParametersException":
|
|
1219
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1220
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "LimitExceededException":
|
|
1222
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1223
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "ResourceNotFoundException":
|
|
1225
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1226
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1227
|
-
default:
|
|
1228
|
-
const parsedBody = parsedOutput.body;
|
|
1229
|
-
return throwDefaultError({
|
|
1230
|
-
output,
|
|
1231
|
-
parsedBody,
|
|
1232
|
-
errorCode,
|
|
1233
|
-
});
|
|
1234
|
-
}
|
|
1235
|
-
};
|
|
1236
|
-
const de_CreateServiceActionCommand = async (output, context) => {
|
|
1237
|
-
if (output.statusCode >= 300) {
|
|
1238
|
-
return de_CreateServiceActionCommandError(output, context);
|
|
1239
|
-
}
|
|
1240
|
-
const data = await parseBody(output.body, context);
|
|
1241
|
-
let contents = {};
|
|
1242
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1243
|
-
const response = {
|
|
1244
|
-
$metadata: deserializeMetadata(output),
|
|
1245
|
-
...contents,
|
|
1246
|
-
};
|
|
1247
|
-
return response;
|
|
1248
|
-
};
|
|
1249
|
-
exports.de_CreateServiceActionCommand = de_CreateServiceActionCommand;
|
|
1250
|
-
const de_CreateServiceActionCommandError = async (output, context) => {
|
|
1251
|
-
const parsedOutput = {
|
|
1252
|
-
...output,
|
|
1253
|
-
body: await parseErrorBody(output.body, context),
|
|
1254
|
-
};
|
|
1255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
|
-
switch (errorCode) {
|
|
1257
|
-
case "InvalidParametersException":
|
|
1258
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1259
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "LimitExceededException":
|
|
1261
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1262
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1263
|
-
default:
|
|
1264
|
-
const parsedBody = parsedOutput.body;
|
|
1265
|
-
return throwDefaultError({
|
|
1266
|
-
output,
|
|
1267
|
-
parsedBody,
|
|
1268
|
-
errorCode,
|
|
1269
|
-
});
|
|
1270
|
-
}
|
|
1271
|
-
};
|
|
1272
|
-
const de_CreateTagOptionCommand = async (output, context) => {
|
|
1273
|
-
if (output.statusCode >= 300) {
|
|
1274
|
-
return de_CreateTagOptionCommandError(output, context);
|
|
1275
|
-
}
|
|
1276
|
-
const data = await parseBody(output.body, context);
|
|
1277
|
-
let contents = {};
|
|
1278
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1279
|
-
const response = {
|
|
1280
|
-
$metadata: deserializeMetadata(output),
|
|
1281
|
-
...contents,
|
|
1282
|
-
};
|
|
1283
|
-
return response;
|
|
1284
|
-
};
|
|
1285
|
-
exports.de_CreateTagOptionCommand = de_CreateTagOptionCommand;
|
|
1286
|
-
const de_CreateTagOptionCommandError = async (output, context) => {
|
|
1287
|
-
const parsedOutput = {
|
|
1288
|
-
...output,
|
|
1289
|
-
body: await parseErrorBody(output.body, context),
|
|
1290
|
-
};
|
|
1291
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
|
-
switch (errorCode) {
|
|
1293
|
-
case "DuplicateResourceException":
|
|
1294
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
1295
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "LimitExceededException":
|
|
1297
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1298
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "TagOptionNotMigratedException":
|
|
1300
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1301
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1302
|
-
default:
|
|
1303
|
-
const parsedBody = parsedOutput.body;
|
|
1304
|
-
return throwDefaultError({
|
|
1305
|
-
output,
|
|
1306
|
-
parsedBody,
|
|
1307
|
-
errorCode,
|
|
1308
|
-
});
|
|
1309
|
-
}
|
|
1310
|
-
};
|
|
1311
|
-
const de_DeleteConstraintCommand = async (output, context) => {
|
|
1312
|
-
if (output.statusCode >= 300) {
|
|
1313
|
-
return de_DeleteConstraintCommandError(output, context);
|
|
1314
|
-
}
|
|
1315
|
-
const data = await parseBody(output.body, context);
|
|
1316
|
-
let contents = {};
|
|
1317
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1318
|
-
const response = {
|
|
1319
|
-
$metadata: deserializeMetadata(output),
|
|
1320
|
-
...contents,
|
|
1321
|
-
};
|
|
1322
|
-
return response;
|
|
1323
|
-
};
|
|
1324
|
-
exports.de_DeleteConstraintCommand = de_DeleteConstraintCommand;
|
|
1325
|
-
const de_DeleteConstraintCommandError = async (output, context) => {
|
|
1326
|
-
const parsedOutput = {
|
|
1327
|
-
...output,
|
|
1328
|
-
body: await parseErrorBody(output.body, context),
|
|
1329
|
-
};
|
|
1330
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1331
|
-
switch (errorCode) {
|
|
1332
|
-
case "InvalidParametersException":
|
|
1333
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1334
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1335
|
-
case "ResourceNotFoundException":
|
|
1336
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1337
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1338
|
-
default:
|
|
1339
|
-
const parsedBody = parsedOutput.body;
|
|
1340
|
-
return throwDefaultError({
|
|
1341
|
-
output,
|
|
1342
|
-
parsedBody,
|
|
1343
|
-
errorCode,
|
|
1344
|
-
});
|
|
1345
|
-
}
|
|
1346
|
-
};
|
|
1347
|
-
const de_DeletePortfolioCommand = async (output, context) => {
|
|
1348
|
-
if (output.statusCode >= 300) {
|
|
1349
|
-
return de_DeletePortfolioCommandError(output, context);
|
|
1350
|
-
}
|
|
1351
|
-
const data = await parseBody(output.body, context);
|
|
1352
|
-
let contents = {};
|
|
1353
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1354
|
-
const response = {
|
|
1355
|
-
$metadata: deserializeMetadata(output),
|
|
1356
|
-
...contents,
|
|
1357
|
-
};
|
|
1358
|
-
return response;
|
|
1359
|
-
};
|
|
1360
|
-
exports.de_DeletePortfolioCommand = de_DeletePortfolioCommand;
|
|
1361
|
-
const de_DeletePortfolioCommandError = async (output, context) => {
|
|
1362
|
-
const parsedOutput = {
|
|
1363
|
-
...output,
|
|
1364
|
-
body: await parseErrorBody(output.body, context),
|
|
1365
|
-
};
|
|
1366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
-
switch (errorCode) {
|
|
1368
|
-
case "InvalidParametersException":
|
|
1369
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1370
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "ResourceInUseException":
|
|
1372
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
1373
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ResourceNotFoundException":
|
|
1375
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1376
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "TagOptionNotMigratedException":
|
|
1378
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1379
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1380
|
-
default:
|
|
1381
|
-
const parsedBody = parsedOutput.body;
|
|
1382
|
-
return throwDefaultError({
|
|
1383
|
-
output,
|
|
1384
|
-
parsedBody,
|
|
1385
|
-
errorCode,
|
|
1386
|
-
});
|
|
1387
|
-
}
|
|
1388
|
-
};
|
|
1389
|
-
const de_DeletePortfolioShareCommand = async (output, context) => {
|
|
1390
|
-
if (output.statusCode >= 300) {
|
|
1391
|
-
return de_DeletePortfolioShareCommandError(output, context);
|
|
1392
|
-
}
|
|
1393
|
-
const data = await parseBody(output.body, context);
|
|
1394
|
-
let contents = {};
|
|
1395
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1396
|
-
const response = {
|
|
1397
|
-
$metadata: deserializeMetadata(output),
|
|
1398
|
-
...contents,
|
|
1399
|
-
};
|
|
1400
|
-
return response;
|
|
1401
|
-
};
|
|
1402
|
-
exports.de_DeletePortfolioShareCommand = de_DeletePortfolioShareCommand;
|
|
1403
|
-
const de_DeletePortfolioShareCommandError = async (output, context) => {
|
|
1404
|
-
const parsedOutput = {
|
|
1405
|
-
...output,
|
|
1406
|
-
body: await parseErrorBody(output.body, context),
|
|
1407
|
-
};
|
|
1408
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
|
-
switch (errorCode) {
|
|
1410
|
-
case "InvalidParametersException":
|
|
1411
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1412
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "InvalidStateException":
|
|
1414
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
1415
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "OperationNotSupportedException":
|
|
1417
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
1418
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "ResourceNotFoundException":
|
|
1420
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1421
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1422
|
-
default:
|
|
1423
|
-
const parsedBody = parsedOutput.body;
|
|
1424
|
-
return throwDefaultError({
|
|
1425
|
-
output,
|
|
1426
|
-
parsedBody,
|
|
1427
|
-
errorCode,
|
|
1428
|
-
});
|
|
1429
|
-
}
|
|
1430
|
-
};
|
|
1431
|
-
const de_DeleteProductCommand = async (output, context) => {
|
|
1432
|
-
if (output.statusCode >= 300) {
|
|
1433
|
-
return de_DeleteProductCommandError(output, context);
|
|
1434
|
-
}
|
|
1435
|
-
const data = await parseBody(output.body, context);
|
|
1436
|
-
let contents = {};
|
|
1437
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1438
|
-
const response = {
|
|
1439
|
-
$metadata: deserializeMetadata(output),
|
|
1440
|
-
...contents,
|
|
1441
|
-
};
|
|
1442
|
-
return response;
|
|
1443
|
-
};
|
|
1444
|
-
exports.de_DeleteProductCommand = de_DeleteProductCommand;
|
|
1445
|
-
const de_DeleteProductCommandError = async (output, context) => {
|
|
1446
|
-
const parsedOutput = {
|
|
1447
|
-
...output,
|
|
1448
|
-
body: await parseErrorBody(output.body, context),
|
|
1449
|
-
};
|
|
1450
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1451
|
-
switch (errorCode) {
|
|
1452
|
-
case "InvalidParametersException":
|
|
1453
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1454
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "ResourceInUseException":
|
|
1456
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
1457
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "ResourceNotFoundException":
|
|
1459
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1460
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1461
|
-
case "TagOptionNotMigratedException":
|
|
1462
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1463
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1464
|
-
default:
|
|
1465
|
-
const parsedBody = parsedOutput.body;
|
|
1466
|
-
return throwDefaultError({
|
|
1467
|
-
output,
|
|
1468
|
-
parsedBody,
|
|
1469
|
-
errorCode,
|
|
1470
|
-
});
|
|
1471
|
-
}
|
|
1472
|
-
};
|
|
1473
|
-
const de_DeleteProvisionedProductPlanCommand = async (output, context) => {
|
|
1474
|
-
if (output.statusCode >= 300) {
|
|
1475
|
-
return de_DeleteProvisionedProductPlanCommandError(output, context);
|
|
1476
|
-
}
|
|
1477
|
-
const data = await parseBody(output.body, context);
|
|
1478
|
-
let contents = {};
|
|
1479
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1480
|
-
const response = {
|
|
1481
|
-
$metadata: deserializeMetadata(output),
|
|
1482
|
-
...contents,
|
|
1483
|
-
};
|
|
1484
|
-
return response;
|
|
1485
|
-
};
|
|
1486
|
-
exports.de_DeleteProvisionedProductPlanCommand = de_DeleteProvisionedProductPlanCommand;
|
|
1487
|
-
const de_DeleteProvisionedProductPlanCommandError = async (output, context) => {
|
|
1488
|
-
const parsedOutput = {
|
|
1489
|
-
...output,
|
|
1490
|
-
body: await parseErrorBody(output.body, context),
|
|
1491
|
-
};
|
|
1492
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1493
|
-
switch (errorCode) {
|
|
1494
|
-
case "InvalidParametersException":
|
|
1495
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1496
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "ResourceNotFoundException":
|
|
1498
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1499
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1500
|
-
default:
|
|
1501
|
-
const parsedBody = parsedOutput.body;
|
|
1502
|
-
return throwDefaultError({
|
|
1503
|
-
output,
|
|
1504
|
-
parsedBody,
|
|
1505
|
-
errorCode,
|
|
1506
|
-
});
|
|
1507
|
-
}
|
|
1508
|
-
};
|
|
1509
|
-
const de_DeleteProvisioningArtifactCommand = async (output, context) => {
|
|
1510
|
-
if (output.statusCode >= 300) {
|
|
1511
|
-
return de_DeleteProvisioningArtifactCommandError(output, context);
|
|
1512
|
-
}
|
|
1513
|
-
const data = await parseBody(output.body, context);
|
|
1514
|
-
let contents = {};
|
|
1515
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1516
|
-
const response = {
|
|
1517
|
-
$metadata: deserializeMetadata(output),
|
|
1518
|
-
...contents,
|
|
1519
|
-
};
|
|
1520
|
-
return response;
|
|
1521
|
-
};
|
|
1522
|
-
exports.de_DeleteProvisioningArtifactCommand = de_DeleteProvisioningArtifactCommand;
|
|
1523
|
-
const de_DeleteProvisioningArtifactCommandError = async (output, context) => {
|
|
1524
|
-
const parsedOutput = {
|
|
1525
|
-
...output,
|
|
1526
|
-
body: await parseErrorBody(output.body, context),
|
|
1527
|
-
};
|
|
1528
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1529
|
-
switch (errorCode) {
|
|
1530
|
-
case "InvalidParametersException":
|
|
1531
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1532
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1533
|
-
case "ResourceInUseException":
|
|
1534
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
1535
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1536
|
-
case "ResourceNotFoundException":
|
|
1537
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1538
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1539
|
-
default:
|
|
1540
|
-
const parsedBody = parsedOutput.body;
|
|
1541
|
-
return throwDefaultError({
|
|
1542
|
-
output,
|
|
1543
|
-
parsedBody,
|
|
1544
|
-
errorCode,
|
|
1545
|
-
});
|
|
1546
|
-
}
|
|
1547
|
-
};
|
|
1548
|
-
const de_DeleteServiceActionCommand = async (output, context) => {
|
|
1549
|
-
if (output.statusCode >= 300) {
|
|
1550
|
-
return de_DeleteServiceActionCommandError(output, context);
|
|
1551
|
-
}
|
|
1552
|
-
const data = await parseBody(output.body, context);
|
|
1553
|
-
let contents = {};
|
|
1554
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1555
|
-
const response = {
|
|
1556
|
-
$metadata: deserializeMetadata(output),
|
|
1557
|
-
...contents,
|
|
1558
|
-
};
|
|
1559
|
-
return response;
|
|
1560
|
-
};
|
|
1561
|
-
exports.de_DeleteServiceActionCommand = de_DeleteServiceActionCommand;
|
|
1562
|
-
const de_DeleteServiceActionCommandError = async (output, context) => {
|
|
1563
|
-
const parsedOutput = {
|
|
1564
|
-
...output,
|
|
1565
|
-
body: await parseErrorBody(output.body, context),
|
|
1566
|
-
};
|
|
1567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1568
|
-
switch (errorCode) {
|
|
1569
|
-
case "ResourceInUseException":
|
|
1570
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
1571
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "ResourceNotFoundException":
|
|
1573
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1574
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1575
|
-
default:
|
|
1576
|
-
const parsedBody = parsedOutput.body;
|
|
1577
|
-
return throwDefaultError({
|
|
1578
|
-
output,
|
|
1579
|
-
parsedBody,
|
|
1580
|
-
errorCode,
|
|
1581
|
-
});
|
|
1582
|
-
}
|
|
1583
|
-
};
|
|
1584
|
-
const de_DeleteTagOptionCommand = async (output, context) => {
|
|
1585
|
-
if (output.statusCode >= 300) {
|
|
1586
|
-
return de_DeleteTagOptionCommandError(output, context);
|
|
1587
|
-
}
|
|
1588
|
-
const data = await parseBody(output.body, context);
|
|
1589
|
-
let contents = {};
|
|
1590
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1591
|
-
const response = {
|
|
1592
|
-
$metadata: deserializeMetadata(output),
|
|
1593
|
-
...contents,
|
|
1594
|
-
};
|
|
1595
|
-
return response;
|
|
1596
|
-
};
|
|
1597
|
-
exports.de_DeleteTagOptionCommand = de_DeleteTagOptionCommand;
|
|
1598
|
-
const de_DeleteTagOptionCommandError = async (output, context) => {
|
|
1599
|
-
const parsedOutput = {
|
|
1600
|
-
...output,
|
|
1601
|
-
body: await parseErrorBody(output.body, context),
|
|
1602
|
-
};
|
|
1603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
|
-
switch (errorCode) {
|
|
1605
|
-
case "ResourceInUseException":
|
|
1606
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
1607
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1608
|
-
case "ResourceNotFoundException":
|
|
1609
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1610
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1611
|
-
case "TagOptionNotMigratedException":
|
|
1612
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1613
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1614
|
-
default:
|
|
1615
|
-
const parsedBody = parsedOutput.body;
|
|
1616
|
-
return throwDefaultError({
|
|
1617
|
-
output,
|
|
1618
|
-
parsedBody,
|
|
1619
|
-
errorCode,
|
|
1620
|
-
});
|
|
1621
|
-
}
|
|
1622
|
-
};
|
|
1623
|
-
const de_DescribeConstraintCommand = async (output, context) => {
|
|
1624
|
-
if (output.statusCode >= 300) {
|
|
1625
|
-
return de_DescribeConstraintCommandError(output, context);
|
|
1626
|
-
}
|
|
1627
|
-
const data = await parseBody(output.body, context);
|
|
1628
|
-
let contents = {};
|
|
1629
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1630
|
-
const response = {
|
|
1631
|
-
$metadata: deserializeMetadata(output),
|
|
1632
|
-
...contents,
|
|
1633
|
-
};
|
|
1634
|
-
return response;
|
|
1635
|
-
};
|
|
1636
|
-
exports.de_DescribeConstraintCommand = de_DescribeConstraintCommand;
|
|
1637
|
-
const de_DescribeConstraintCommandError = async (output, context) => {
|
|
1638
|
-
const parsedOutput = {
|
|
1639
|
-
...output,
|
|
1640
|
-
body: await parseErrorBody(output.body, context),
|
|
1641
|
-
};
|
|
1642
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1643
|
-
switch (errorCode) {
|
|
1644
|
-
case "ResourceNotFoundException":
|
|
1645
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1646
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1647
|
-
default:
|
|
1648
|
-
const parsedBody = parsedOutput.body;
|
|
1649
|
-
return throwDefaultError({
|
|
1650
|
-
output,
|
|
1651
|
-
parsedBody,
|
|
1652
|
-
errorCode,
|
|
1653
|
-
});
|
|
1654
|
-
}
|
|
1655
|
-
};
|
|
1656
|
-
const de_DescribeCopyProductStatusCommand = async (output, context) => {
|
|
1657
|
-
if (output.statusCode >= 300) {
|
|
1658
|
-
return de_DescribeCopyProductStatusCommandError(output, context);
|
|
1659
|
-
}
|
|
1660
|
-
const data = await parseBody(output.body, context);
|
|
1661
|
-
let contents = {};
|
|
1662
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1663
|
-
const response = {
|
|
1664
|
-
$metadata: deserializeMetadata(output),
|
|
1665
|
-
...contents,
|
|
1666
|
-
};
|
|
1667
|
-
return response;
|
|
1668
|
-
};
|
|
1669
|
-
exports.de_DescribeCopyProductStatusCommand = de_DescribeCopyProductStatusCommand;
|
|
1670
|
-
const de_DescribeCopyProductStatusCommandError = async (output, context) => {
|
|
1671
|
-
const parsedOutput = {
|
|
1672
|
-
...output,
|
|
1673
|
-
body: await parseErrorBody(output.body, context),
|
|
1674
|
-
};
|
|
1675
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1676
|
-
switch (errorCode) {
|
|
1677
|
-
case "ResourceNotFoundException":
|
|
1678
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1679
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1680
|
-
default:
|
|
1681
|
-
const parsedBody = parsedOutput.body;
|
|
1682
|
-
return throwDefaultError({
|
|
1683
|
-
output,
|
|
1684
|
-
parsedBody,
|
|
1685
|
-
errorCode,
|
|
1686
|
-
});
|
|
1687
|
-
}
|
|
1688
|
-
};
|
|
1689
|
-
const de_DescribePortfolioCommand = async (output, context) => {
|
|
1690
|
-
if (output.statusCode >= 300) {
|
|
1691
|
-
return de_DescribePortfolioCommandError(output, context);
|
|
1692
|
-
}
|
|
1693
|
-
const data = await parseBody(output.body, context);
|
|
1694
|
-
let contents = {};
|
|
1695
|
-
contents = de_DescribePortfolioOutput(data, context);
|
|
1696
|
-
const response = {
|
|
1697
|
-
$metadata: deserializeMetadata(output),
|
|
1698
|
-
...contents,
|
|
1699
|
-
};
|
|
1700
|
-
return response;
|
|
1701
|
-
};
|
|
1702
|
-
exports.de_DescribePortfolioCommand = de_DescribePortfolioCommand;
|
|
1703
|
-
const de_DescribePortfolioCommandError = async (output, context) => {
|
|
1704
|
-
const parsedOutput = {
|
|
1705
|
-
...output,
|
|
1706
|
-
body: await parseErrorBody(output.body, context),
|
|
1707
|
-
};
|
|
1708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
|
-
switch (errorCode) {
|
|
1710
|
-
case "ResourceNotFoundException":
|
|
1711
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1712
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1713
|
-
default:
|
|
1714
|
-
const parsedBody = parsedOutput.body;
|
|
1715
|
-
return throwDefaultError({
|
|
1716
|
-
output,
|
|
1717
|
-
parsedBody,
|
|
1718
|
-
errorCode,
|
|
1719
|
-
});
|
|
1720
|
-
}
|
|
1721
|
-
};
|
|
1722
|
-
const de_DescribePortfolioSharesCommand = async (output, context) => {
|
|
1723
|
-
if (output.statusCode >= 300) {
|
|
1724
|
-
return de_DescribePortfolioSharesCommandError(output, context);
|
|
1725
|
-
}
|
|
1726
|
-
const data = await parseBody(output.body, context);
|
|
1727
|
-
let contents = {};
|
|
1728
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1729
|
-
const response = {
|
|
1730
|
-
$metadata: deserializeMetadata(output),
|
|
1731
|
-
...contents,
|
|
1732
|
-
};
|
|
1733
|
-
return response;
|
|
1734
|
-
};
|
|
1735
|
-
exports.de_DescribePortfolioSharesCommand = de_DescribePortfolioSharesCommand;
|
|
1736
|
-
const de_DescribePortfolioSharesCommandError = async (output, context) => {
|
|
1737
|
-
const parsedOutput = {
|
|
1738
|
-
...output,
|
|
1739
|
-
body: await parseErrorBody(output.body, context),
|
|
1740
|
-
};
|
|
1741
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
|
-
switch (errorCode) {
|
|
1743
|
-
case "InvalidParametersException":
|
|
1744
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1745
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1746
|
-
case "ResourceNotFoundException":
|
|
1747
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1748
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1749
|
-
default:
|
|
1750
|
-
const parsedBody = parsedOutput.body;
|
|
1751
|
-
return throwDefaultError({
|
|
1752
|
-
output,
|
|
1753
|
-
parsedBody,
|
|
1754
|
-
errorCode,
|
|
1755
|
-
});
|
|
1756
|
-
}
|
|
1757
|
-
};
|
|
1758
|
-
const de_DescribePortfolioShareStatusCommand = async (output, context) => {
|
|
1759
|
-
if (output.statusCode >= 300) {
|
|
1760
|
-
return de_DescribePortfolioShareStatusCommandError(output, context);
|
|
1761
|
-
}
|
|
1762
|
-
const data = await parseBody(output.body, context);
|
|
1763
|
-
let contents = {};
|
|
1764
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1765
|
-
const response = {
|
|
1766
|
-
$metadata: deserializeMetadata(output),
|
|
1767
|
-
...contents,
|
|
1768
|
-
};
|
|
1769
|
-
return response;
|
|
1770
|
-
};
|
|
1771
|
-
exports.de_DescribePortfolioShareStatusCommand = de_DescribePortfolioShareStatusCommand;
|
|
1772
|
-
const de_DescribePortfolioShareStatusCommandError = async (output, context) => {
|
|
1773
|
-
const parsedOutput = {
|
|
1774
|
-
...output,
|
|
1775
|
-
body: await parseErrorBody(output.body, context),
|
|
1776
|
-
};
|
|
1777
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1778
|
-
switch (errorCode) {
|
|
1779
|
-
case "InvalidParametersException":
|
|
1780
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1781
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "OperationNotSupportedException":
|
|
1783
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
1784
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "ResourceNotFoundException":
|
|
1786
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1787
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1788
|
-
default:
|
|
1789
|
-
const parsedBody = parsedOutput.body;
|
|
1790
|
-
return throwDefaultError({
|
|
1791
|
-
output,
|
|
1792
|
-
parsedBody,
|
|
1793
|
-
errorCode,
|
|
1794
|
-
});
|
|
1795
|
-
}
|
|
1796
|
-
};
|
|
1797
|
-
const de_DescribeProductCommand = async (output, context) => {
|
|
1798
|
-
if (output.statusCode >= 300) {
|
|
1799
|
-
return de_DescribeProductCommandError(output, context);
|
|
1800
|
-
}
|
|
1801
|
-
const data = await parseBody(output.body, context);
|
|
1802
|
-
let contents = {};
|
|
1803
|
-
contents = de_DescribeProductOutput(data, context);
|
|
1804
|
-
const response = {
|
|
1805
|
-
$metadata: deserializeMetadata(output),
|
|
1806
|
-
...contents,
|
|
1807
|
-
};
|
|
1808
|
-
return response;
|
|
1809
|
-
};
|
|
1810
|
-
exports.de_DescribeProductCommand = de_DescribeProductCommand;
|
|
1811
|
-
const de_DescribeProductCommandError = async (output, context) => {
|
|
1812
|
-
const parsedOutput = {
|
|
1813
|
-
...output,
|
|
1814
|
-
body: await parseErrorBody(output.body, context),
|
|
1815
|
-
};
|
|
1816
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1817
|
-
switch (errorCode) {
|
|
1818
|
-
case "InvalidParametersException":
|
|
1819
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1820
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1821
|
-
case "ResourceNotFoundException":
|
|
1822
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1823
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1824
|
-
default:
|
|
1825
|
-
const parsedBody = parsedOutput.body;
|
|
1826
|
-
return throwDefaultError({
|
|
1827
|
-
output,
|
|
1828
|
-
parsedBody,
|
|
1829
|
-
errorCode,
|
|
1830
|
-
});
|
|
1831
|
-
}
|
|
1832
|
-
};
|
|
1833
|
-
const de_DescribeProductAsAdminCommand = async (output, context) => {
|
|
1834
|
-
if (output.statusCode >= 300) {
|
|
1835
|
-
return de_DescribeProductAsAdminCommandError(output, context);
|
|
1836
|
-
}
|
|
1837
|
-
const data = await parseBody(output.body, context);
|
|
1838
|
-
let contents = {};
|
|
1839
|
-
contents = de_DescribeProductAsAdminOutput(data, context);
|
|
1840
|
-
const response = {
|
|
1841
|
-
$metadata: deserializeMetadata(output),
|
|
1842
|
-
...contents,
|
|
1843
|
-
};
|
|
1844
|
-
return response;
|
|
1845
|
-
};
|
|
1846
|
-
exports.de_DescribeProductAsAdminCommand = de_DescribeProductAsAdminCommand;
|
|
1847
|
-
const de_DescribeProductAsAdminCommandError = async (output, context) => {
|
|
1848
|
-
const parsedOutput = {
|
|
1849
|
-
...output,
|
|
1850
|
-
body: await parseErrorBody(output.body, context),
|
|
1851
|
-
};
|
|
1852
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1853
|
-
switch (errorCode) {
|
|
1854
|
-
case "InvalidParametersException":
|
|
1855
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1856
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1857
|
-
case "ResourceNotFoundException":
|
|
1858
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1859
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1860
|
-
default:
|
|
1861
|
-
const parsedBody = parsedOutput.body;
|
|
1862
|
-
return throwDefaultError({
|
|
1863
|
-
output,
|
|
1864
|
-
parsedBody,
|
|
1865
|
-
errorCode,
|
|
1866
|
-
});
|
|
1867
|
-
}
|
|
1868
|
-
};
|
|
1869
|
-
const de_DescribeProductViewCommand = async (output, context) => {
|
|
1870
|
-
if (output.statusCode >= 300) {
|
|
1871
|
-
return de_DescribeProductViewCommandError(output, context);
|
|
1872
|
-
}
|
|
1873
|
-
const data = await parseBody(output.body, context);
|
|
1874
|
-
let contents = {};
|
|
1875
|
-
contents = de_DescribeProductViewOutput(data, context);
|
|
1876
|
-
const response = {
|
|
1877
|
-
$metadata: deserializeMetadata(output),
|
|
1878
|
-
...contents,
|
|
1879
|
-
};
|
|
1880
|
-
return response;
|
|
1881
|
-
};
|
|
1882
|
-
exports.de_DescribeProductViewCommand = de_DescribeProductViewCommand;
|
|
1883
|
-
const de_DescribeProductViewCommandError = async (output, context) => {
|
|
1884
|
-
const parsedOutput = {
|
|
1885
|
-
...output,
|
|
1886
|
-
body: await parseErrorBody(output.body, context),
|
|
1887
|
-
};
|
|
1888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
|
-
switch (errorCode) {
|
|
1890
|
-
case "InvalidParametersException":
|
|
1891
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1892
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "ResourceNotFoundException":
|
|
1894
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1895
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1896
|
-
default:
|
|
1897
|
-
const parsedBody = parsedOutput.body;
|
|
1898
|
-
return throwDefaultError({
|
|
1899
|
-
output,
|
|
1900
|
-
parsedBody,
|
|
1901
|
-
errorCode,
|
|
1902
|
-
});
|
|
1903
|
-
}
|
|
1904
|
-
};
|
|
1905
|
-
const de_DescribeProvisionedProductCommand = async (output, context) => {
|
|
1906
|
-
if (output.statusCode >= 300) {
|
|
1907
|
-
return de_DescribeProvisionedProductCommandError(output, context);
|
|
1908
|
-
}
|
|
1909
|
-
const data = await parseBody(output.body, context);
|
|
1910
|
-
let contents = {};
|
|
1911
|
-
contents = de_DescribeProvisionedProductOutput(data, context);
|
|
1912
|
-
const response = {
|
|
1913
|
-
$metadata: deserializeMetadata(output),
|
|
1914
|
-
...contents,
|
|
1915
|
-
};
|
|
1916
|
-
return response;
|
|
1917
|
-
};
|
|
1918
|
-
exports.de_DescribeProvisionedProductCommand = de_DescribeProvisionedProductCommand;
|
|
1919
|
-
const de_DescribeProvisionedProductCommandError = async (output, context) => {
|
|
1920
|
-
const parsedOutput = {
|
|
1921
|
-
...output,
|
|
1922
|
-
body: await parseErrorBody(output.body, context),
|
|
1923
|
-
};
|
|
1924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1925
|
-
switch (errorCode) {
|
|
1926
|
-
case "InvalidParametersException":
|
|
1927
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1928
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "ResourceNotFoundException":
|
|
1930
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1931
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1932
|
-
default:
|
|
1933
|
-
const parsedBody = parsedOutput.body;
|
|
1934
|
-
return throwDefaultError({
|
|
1935
|
-
output,
|
|
1936
|
-
parsedBody,
|
|
1937
|
-
errorCode,
|
|
1938
|
-
});
|
|
1939
|
-
}
|
|
1940
|
-
};
|
|
1941
|
-
const de_DescribeProvisionedProductPlanCommand = async (output, context) => {
|
|
1942
|
-
if (output.statusCode >= 300) {
|
|
1943
|
-
return de_DescribeProvisionedProductPlanCommandError(output, context);
|
|
1944
|
-
}
|
|
1945
|
-
const data = await parseBody(output.body, context);
|
|
1946
|
-
let contents = {};
|
|
1947
|
-
contents = de_DescribeProvisionedProductPlanOutput(data, context);
|
|
1948
|
-
const response = {
|
|
1949
|
-
$metadata: deserializeMetadata(output),
|
|
1950
|
-
...contents,
|
|
1951
|
-
};
|
|
1952
|
-
return response;
|
|
1953
|
-
};
|
|
1954
|
-
exports.de_DescribeProvisionedProductPlanCommand = de_DescribeProvisionedProductPlanCommand;
|
|
1955
|
-
const de_DescribeProvisionedProductPlanCommandError = async (output, context) => {
|
|
1956
|
-
const parsedOutput = {
|
|
1957
|
-
...output,
|
|
1958
|
-
body: await parseErrorBody(output.body, context),
|
|
1959
|
-
};
|
|
1960
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1961
|
-
switch (errorCode) {
|
|
1962
|
-
case "InvalidParametersException":
|
|
1963
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1964
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1965
|
-
case "ResourceNotFoundException":
|
|
1966
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1967
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1968
|
-
default:
|
|
1969
|
-
const parsedBody = parsedOutput.body;
|
|
1970
|
-
return throwDefaultError({
|
|
1971
|
-
output,
|
|
1972
|
-
parsedBody,
|
|
1973
|
-
errorCode,
|
|
1974
|
-
});
|
|
1975
|
-
}
|
|
1976
|
-
};
|
|
1977
|
-
const de_DescribeProvisioningArtifactCommand = async (output, context) => {
|
|
1978
|
-
if (output.statusCode >= 300) {
|
|
1979
|
-
return de_DescribeProvisioningArtifactCommandError(output, context);
|
|
1980
|
-
}
|
|
1981
|
-
const data = await parseBody(output.body, context);
|
|
1982
|
-
let contents = {};
|
|
1983
|
-
contents = de_DescribeProvisioningArtifactOutput(data, context);
|
|
1984
|
-
const response = {
|
|
1985
|
-
$metadata: deserializeMetadata(output),
|
|
1986
|
-
...contents,
|
|
1987
|
-
};
|
|
1988
|
-
return response;
|
|
1989
|
-
};
|
|
1990
|
-
exports.de_DescribeProvisioningArtifactCommand = de_DescribeProvisioningArtifactCommand;
|
|
1991
|
-
const de_DescribeProvisioningArtifactCommandError = async (output, context) => {
|
|
1992
|
-
const parsedOutput = {
|
|
1993
|
-
...output,
|
|
1994
|
-
body: await parseErrorBody(output.body, context),
|
|
1995
|
-
};
|
|
1996
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
|
-
switch (errorCode) {
|
|
1998
|
-
case "InvalidParametersException":
|
|
1999
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2000
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2001
|
-
case "ResourceNotFoundException":
|
|
2002
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2003
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2004
|
-
default:
|
|
2005
|
-
const parsedBody = parsedOutput.body;
|
|
2006
|
-
return throwDefaultError({
|
|
2007
|
-
output,
|
|
2008
|
-
parsedBody,
|
|
2009
|
-
errorCode,
|
|
2010
|
-
});
|
|
2011
|
-
}
|
|
2012
|
-
};
|
|
2013
|
-
const de_DescribeProvisioningParametersCommand = async (output, context) => {
|
|
2014
|
-
if (output.statusCode >= 300) {
|
|
2015
|
-
return de_DescribeProvisioningParametersCommandError(output, context);
|
|
2016
|
-
}
|
|
2017
|
-
const data = await parseBody(output.body, context);
|
|
2018
|
-
let contents = {};
|
|
2019
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2020
|
-
const response = {
|
|
2021
|
-
$metadata: deserializeMetadata(output),
|
|
2022
|
-
...contents,
|
|
2023
|
-
};
|
|
2024
|
-
return response;
|
|
2025
|
-
};
|
|
2026
|
-
exports.de_DescribeProvisioningParametersCommand = de_DescribeProvisioningParametersCommand;
|
|
2027
|
-
const de_DescribeProvisioningParametersCommandError = async (output, context) => {
|
|
2028
|
-
const parsedOutput = {
|
|
2029
|
-
...output,
|
|
2030
|
-
body: await parseErrorBody(output.body, context),
|
|
2031
|
-
};
|
|
2032
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2033
|
-
switch (errorCode) {
|
|
2034
|
-
case "InvalidParametersException":
|
|
2035
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2036
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2037
|
-
case "ResourceNotFoundException":
|
|
2038
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2039
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2040
|
-
default:
|
|
2041
|
-
const parsedBody = parsedOutput.body;
|
|
2042
|
-
return throwDefaultError({
|
|
2043
|
-
output,
|
|
2044
|
-
parsedBody,
|
|
2045
|
-
errorCode,
|
|
2046
|
-
});
|
|
2047
|
-
}
|
|
2048
|
-
};
|
|
2049
|
-
const de_DescribeRecordCommand = async (output, context) => {
|
|
2050
|
-
if (output.statusCode >= 300) {
|
|
2051
|
-
return de_DescribeRecordCommandError(output, context);
|
|
2052
|
-
}
|
|
2053
|
-
const data = await parseBody(output.body, context);
|
|
2054
|
-
let contents = {};
|
|
2055
|
-
contents = de_DescribeRecordOutput(data, context);
|
|
2056
|
-
const response = {
|
|
2057
|
-
$metadata: deserializeMetadata(output),
|
|
2058
|
-
...contents,
|
|
2059
|
-
};
|
|
2060
|
-
return response;
|
|
2061
|
-
};
|
|
2062
|
-
exports.de_DescribeRecordCommand = de_DescribeRecordCommand;
|
|
2063
|
-
const de_DescribeRecordCommandError = async (output, context) => {
|
|
2064
|
-
const parsedOutput = {
|
|
2065
|
-
...output,
|
|
2066
|
-
body: await parseErrorBody(output.body, context),
|
|
2067
|
-
};
|
|
2068
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2069
|
-
switch (errorCode) {
|
|
2070
|
-
case "ResourceNotFoundException":
|
|
2071
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2072
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2073
|
-
default:
|
|
2074
|
-
const parsedBody = parsedOutput.body;
|
|
2075
|
-
return throwDefaultError({
|
|
2076
|
-
output,
|
|
2077
|
-
parsedBody,
|
|
2078
|
-
errorCode,
|
|
2079
|
-
});
|
|
2080
|
-
}
|
|
2081
|
-
};
|
|
2082
|
-
const de_DescribeServiceActionCommand = async (output, context) => {
|
|
2083
|
-
if (output.statusCode >= 300) {
|
|
2084
|
-
return de_DescribeServiceActionCommandError(output, context);
|
|
2085
|
-
}
|
|
2086
|
-
const data = await parseBody(output.body, context);
|
|
2087
|
-
let contents = {};
|
|
2088
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2089
|
-
const response = {
|
|
2090
|
-
$metadata: deserializeMetadata(output),
|
|
2091
|
-
...contents,
|
|
2092
|
-
};
|
|
2093
|
-
return response;
|
|
2094
|
-
};
|
|
2095
|
-
exports.de_DescribeServiceActionCommand = de_DescribeServiceActionCommand;
|
|
2096
|
-
const de_DescribeServiceActionCommandError = async (output, context) => {
|
|
2097
|
-
const parsedOutput = {
|
|
2098
|
-
...output,
|
|
2099
|
-
body: await parseErrorBody(output.body, context),
|
|
2100
|
-
};
|
|
2101
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2102
|
-
switch (errorCode) {
|
|
2103
|
-
case "ResourceNotFoundException":
|
|
2104
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2105
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2106
|
-
default:
|
|
2107
|
-
const parsedBody = parsedOutput.body;
|
|
2108
|
-
return throwDefaultError({
|
|
2109
|
-
output,
|
|
2110
|
-
parsedBody,
|
|
2111
|
-
errorCode,
|
|
2112
|
-
});
|
|
2113
|
-
}
|
|
2114
|
-
};
|
|
2115
|
-
const de_DescribeServiceActionExecutionParametersCommand = async (output, context) => {
|
|
2116
|
-
if (output.statusCode >= 300) {
|
|
2117
|
-
return de_DescribeServiceActionExecutionParametersCommandError(output, context);
|
|
2118
|
-
}
|
|
2119
|
-
const data = await parseBody(output.body, context);
|
|
2120
|
-
let contents = {};
|
|
2121
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2122
|
-
const response = {
|
|
2123
|
-
$metadata: deserializeMetadata(output),
|
|
2124
|
-
...contents,
|
|
2125
|
-
};
|
|
2126
|
-
return response;
|
|
2127
|
-
};
|
|
2128
|
-
exports.de_DescribeServiceActionExecutionParametersCommand = de_DescribeServiceActionExecutionParametersCommand;
|
|
2129
|
-
const de_DescribeServiceActionExecutionParametersCommandError = async (output, context) => {
|
|
2130
|
-
const parsedOutput = {
|
|
2131
|
-
...output,
|
|
2132
|
-
body: await parseErrorBody(output.body, context),
|
|
2133
|
-
};
|
|
2134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
|
-
switch (errorCode) {
|
|
2136
|
-
case "InvalidParametersException":
|
|
2137
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2138
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2139
|
-
case "ResourceNotFoundException":
|
|
2140
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2141
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2142
|
-
default:
|
|
2143
|
-
const parsedBody = parsedOutput.body;
|
|
2144
|
-
return throwDefaultError({
|
|
2145
|
-
output,
|
|
2146
|
-
parsedBody,
|
|
2147
|
-
errorCode,
|
|
2148
|
-
});
|
|
2149
|
-
}
|
|
2150
|
-
};
|
|
2151
|
-
const de_DescribeTagOptionCommand = async (output, context) => {
|
|
2152
|
-
if (output.statusCode >= 300) {
|
|
2153
|
-
return de_DescribeTagOptionCommandError(output, context);
|
|
2154
|
-
}
|
|
2155
|
-
const data = await parseBody(output.body, context);
|
|
2156
|
-
let contents = {};
|
|
2157
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2158
|
-
const response = {
|
|
2159
|
-
$metadata: deserializeMetadata(output),
|
|
2160
|
-
...contents,
|
|
2161
|
-
};
|
|
2162
|
-
return response;
|
|
2163
|
-
};
|
|
2164
|
-
exports.de_DescribeTagOptionCommand = de_DescribeTagOptionCommand;
|
|
2165
|
-
const de_DescribeTagOptionCommandError = async (output, context) => {
|
|
2166
|
-
const parsedOutput = {
|
|
2167
|
-
...output,
|
|
2168
|
-
body: await parseErrorBody(output.body, context),
|
|
2169
|
-
};
|
|
2170
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2171
|
-
switch (errorCode) {
|
|
2172
|
-
case "ResourceNotFoundException":
|
|
2173
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2174
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2175
|
-
case "TagOptionNotMigratedException":
|
|
2176
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
2177
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
2178
|
-
default:
|
|
2179
|
-
const parsedBody = parsedOutput.body;
|
|
2180
|
-
return throwDefaultError({
|
|
2181
|
-
output,
|
|
2182
|
-
parsedBody,
|
|
2183
|
-
errorCode,
|
|
2184
|
-
});
|
|
2185
|
-
}
|
|
2186
|
-
};
|
|
2187
|
-
const de_DisableAWSOrganizationsAccessCommand = async (output, context) => {
|
|
2188
|
-
if (output.statusCode >= 300) {
|
|
2189
|
-
return de_DisableAWSOrganizationsAccessCommandError(output, context);
|
|
2190
|
-
}
|
|
2191
|
-
const data = await parseBody(output.body, context);
|
|
2192
|
-
let contents = {};
|
|
2193
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2194
|
-
const response = {
|
|
2195
|
-
$metadata: deserializeMetadata(output),
|
|
2196
|
-
...contents,
|
|
2197
|
-
};
|
|
2198
|
-
return response;
|
|
2199
|
-
};
|
|
2200
|
-
exports.de_DisableAWSOrganizationsAccessCommand = de_DisableAWSOrganizationsAccessCommand;
|
|
2201
|
-
const de_DisableAWSOrganizationsAccessCommandError = async (output, context) => {
|
|
2202
|
-
const parsedOutput = {
|
|
2203
|
-
...output,
|
|
2204
|
-
body: await parseErrorBody(output.body, context),
|
|
2205
|
-
};
|
|
2206
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2207
|
-
switch (errorCode) {
|
|
2208
|
-
case "InvalidStateException":
|
|
2209
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2210
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
2211
|
-
case "OperationNotSupportedException":
|
|
2212
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
2213
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2214
|
-
case "ResourceNotFoundException":
|
|
2215
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2216
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2217
|
-
default:
|
|
2218
|
-
const parsedBody = parsedOutput.body;
|
|
2219
|
-
return throwDefaultError({
|
|
2220
|
-
output,
|
|
2221
|
-
parsedBody,
|
|
2222
|
-
errorCode,
|
|
2223
|
-
});
|
|
2224
|
-
}
|
|
2225
|
-
};
|
|
2226
|
-
const de_DisassociateBudgetFromResourceCommand = async (output, context) => {
|
|
2227
|
-
if (output.statusCode >= 300) {
|
|
2228
|
-
return de_DisassociateBudgetFromResourceCommandError(output, context);
|
|
2229
|
-
}
|
|
2230
|
-
const data = await parseBody(output.body, context);
|
|
2231
|
-
let contents = {};
|
|
2232
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2233
|
-
const response = {
|
|
2234
|
-
$metadata: deserializeMetadata(output),
|
|
2235
|
-
...contents,
|
|
2236
|
-
};
|
|
2237
|
-
return response;
|
|
2238
|
-
};
|
|
2239
|
-
exports.de_DisassociateBudgetFromResourceCommand = de_DisassociateBudgetFromResourceCommand;
|
|
2240
|
-
const de_DisassociateBudgetFromResourceCommandError = async (output, context) => {
|
|
2241
|
-
const parsedOutput = {
|
|
2242
|
-
...output,
|
|
2243
|
-
body: await parseErrorBody(output.body, context),
|
|
2244
|
-
};
|
|
2245
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2246
|
-
switch (errorCode) {
|
|
2247
|
-
case "ResourceNotFoundException":
|
|
2248
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2249
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2250
|
-
default:
|
|
2251
|
-
const parsedBody = parsedOutput.body;
|
|
2252
|
-
return throwDefaultError({
|
|
2253
|
-
output,
|
|
2254
|
-
parsedBody,
|
|
2255
|
-
errorCode,
|
|
2256
|
-
});
|
|
2257
|
-
}
|
|
2258
|
-
};
|
|
2259
|
-
const de_DisassociatePrincipalFromPortfolioCommand = async (output, context) => {
|
|
2260
|
-
if (output.statusCode >= 300) {
|
|
2261
|
-
return de_DisassociatePrincipalFromPortfolioCommandError(output, context);
|
|
2262
|
-
}
|
|
2263
|
-
const data = await parseBody(output.body, context);
|
|
2264
|
-
let contents = {};
|
|
2265
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2266
|
-
const response = {
|
|
2267
|
-
$metadata: deserializeMetadata(output),
|
|
2268
|
-
...contents,
|
|
2269
|
-
};
|
|
2270
|
-
return response;
|
|
2271
|
-
};
|
|
2272
|
-
exports.de_DisassociatePrincipalFromPortfolioCommand = de_DisassociatePrincipalFromPortfolioCommand;
|
|
2273
|
-
const de_DisassociatePrincipalFromPortfolioCommandError = async (output, context) => {
|
|
2274
|
-
const parsedOutput = {
|
|
2275
|
-
...output,
|
|
2276
|
-
body: await parseErrorBody(output.body, context),
|
|
2277
|
-
};
|
|
2278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2279
|
-
switch (errorCode) {
|
|
2280
|
-
case "InvalidParametersException":
|
|
2281
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2282
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2283
|
-
case "ResourceNotFoundException":
|
|
2284
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2285
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2286
|
-
default:
|
|
2287
|
-
const parsedBody = parsedOutput.body;
|
|
2288
|
-
return throwDefaultError({
|
|
2289
|
-
output,
|
|
2290
|
-
parsedBody,
|
|
2291
|
-
errorCode,
|
|
2292
|
-
});
|
|
2293
|
-
}
|
|
2294
|
-
};
|
|
2295
|
-
const de_DisassociateProductFromPortfolioCommand = async (output, context) => {
|
|
2296
|
-
if (output.statusCode >= 300) {
|
|
2297
|
-
return de_DisassociateProductFromPortfolioCommandError(output, context);
|
|
2298
|
-
}
|
|
2299
|
-
const data = await parseBody(output.body, context);
|
|
2300
|
-
let contents = {};
|
|
2301
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2302
|
-
const response = {
|
|
2303
|
-
$metadata: deserializeMetadata(output),
|
|
2304
|
-
...contents,
|
|
2305
|
-
};
|
|
2306
|
-
return response;
|
|
2307
|
-
};
|
|
2308
|
-
exports.de_DisassociateProductFromPortfolioCommand = de_DisassociateProductFromPortfolioCommand;
|
|
2309
|
-
const de_DisassociateProductFromPortfolioCommandError = async (output, context) => {
|
|
2310
|
-
const parsedOutput = {
|
|
2311
|
-
...output,
|
|
2312
|
-
body: await parseErrorBody(output.body, context),
|
|
2313
|
-
};
|
|
2314
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2315
|
-
switch (errorCode) {
|
|
2316
|
-
case "InvalidParametersException":
|
|
2317
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2318
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2319
|
-
case "ResourceInUseException":
|
|
2320
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
2321
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2322
|
-
case "ResourceNotFoundException":
|
|
2323
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2324
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2325
|
-
default:
|
|
2326
|
-
const parsedBody = parsedOutput.body;
|
|
2327
|
-
return throwDefaultError({
|
|
2328
|
-
output,
|
|
2329
|
-
parsedBody,
|
|
2330
|
-
errorCode,
|
|
2331
|
-
});
|
|
2332
|
-
}
|
|
2333
|
-
};
|
|
2334
|
-
const de_DisassociateServiceActionFromProvisioningArtifactCommand = async (output, context) => {
|
|
2335
|
-
if (output.statusCode >= 300) {
|
|
2336
|
-
return de_DisassociateServiceActionFromProvisioningArtifactCommandError(output, context);
|
|
2337
|
-
}
|
|
2338
|
-
const data = await parseBody(output.body, context);
|
|
2339
|
-
let contents = {};
|
|
2340
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2341
|
-
const response = {
|
|
2342
|
-
$metadata: deserializeMetadata(output),
|
|
2343
|
-
...contents,
|
|
2344
|
-
};
|
|
2345
|
-
return response;
|
|
2346
|
-
};
|
|
2347
|
-
exports.de_DisassociateServiceActionFromProvisioningArtifactCommand = de_DisassociateServiceActionFromProvisioningArtifactCommand;
|
|
2348
|
-
const de_DisassociateServiceActionFromProvisioningArtifactCommandError = async (output, context) => {
|
|
2349
|
-
const parsedOutput = {
|
|
2350
|
-
...output,
|
|
2351
|
-
body: await parseErrorBody(output.body, context),
|
|
2352
|
-
};
|
|
2353
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
|
-
switch (errorCode) {
|
|
2355
|
-
case "ResourceNotFoundException":
|
|
2356
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2357
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2358
|
-
default:
|
|
2359
|
-
const parsedBody = parsedOutput.body;
|
|
2360
|
-
return throwDefaultError({
|
|
2361
|
-
output,
|
|
2362
|
-
parsedBody,
|
|
2363
|
-
errorCode,
|
|
2364
|
-
});
|
|
2365
|
-
}
|
|
2366
|
-
};
|
|
2367
|
-
const de_DisassociateTagOptionFromResourceCommand = async (output, context) => {
|
|
2368
|
-
if (output.statusCode >= 300) {
|
|
2369
|
-
return de_DisassociateTagOptionFromResourceCommandError(output, context);
|
|
2370
|
-
}
|
|
2371
|
-
const data = await parseBody(output.body, context);
|
|
2372
|
-
let contents = {};
|
|
2373
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2374
|
-
const response = {
|
|
2375
|
-
$metadata: deserializeMetadata(output),
|
|
2376
|
-
...contents,
|
|
2377
|
-
};
|
|
2378
|
-
return response;
|
|
2379
|
-
};
|
|
2380
|
-
exports.de_DisassociateTagOptionFromResourceCommand = de_DisassociateTagOptionFromResourceCommand;
|
|
2381
|
-
const de_DisassociateTagOptionFromResourceCommandError = async (output, context) => {
|
|
2382
|
-
const parsedOutput = {
|
|
2383
|
-
...output,
|
|
2384
|
-
body: await parseErrorBody(output.body, context),
|
|
2385
|
-
};
|
|
2386
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2387
|
-
switch (errorCode) {
|
|
2388
|
-
case "ResourceNotFoundException":
|
|
2389
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2390
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2391
|
-
case "TagOptionNotMigratedException":
|
|
2392
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
2393
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
2394
|
-
default:
|
|
2395
|
-
const parsedBody = parsedOutput.body;
|
|
2396
|
-
return throwDefaultError({
|
|
2397
|
-
output,
|
|
2398
|
-
parsedBody,
|
|
2399
|
-
errorCode,
|
|
2400
|
-
});
|
|
2401
|
-
}
|
|
2402
|
-
};
|
|
2403
|
-
const de_EnableAWSOrganizationsAccessCommand = async (output, context) => {
|
|
2404
|
-
if (output.statusCode >= 300) {
|
|
2405
|
-
return de_EnableAWSOrganizationsAccessCommandError(output, context);
|
|
2406
|
-
}
|
|
2407
|
-
const data = await parseBody(output.body, context);
|
|
2408
|
-
let contents = {};
|
|
2409
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2410
|
-
const response = {
|
|
2411
|
-
$metadata: deserializeMetadata(output),
|
|
2412
|
-
...contents,
|
|
2413
|
-
};
|
|
2414
|
-
return response;
|
|
2415
|
-
};
|
|
2416
|
-
exports.de_EnableAWSOrganizationsAccessCommand = de_EnableAWSOrganizationsAccessCommand;
|
|
2417
|
-
const de_EnableAWSOrganizationsAccessCommandError = async (output, context) => {
|
|
2418
|
-
const parsedOutput = {
|
|
2419
|
-
...output,
|
|
2420
|
-
body: await parseErrorBody(output.body, context),
|
|
2421
|
-
};
|
|
2422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2423
|
-
switch (errorCode) {
|
|
2424
|
-
case "InvalidStateException":
|
|
2425
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2426
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "OperationNotSupportedException":
|
|
2428
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
2429
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "ResourceNotFoundException":
|
|
2431
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2432
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2433
|
-
default:
|
|
2434
|
-
const parsedBody = parsedOutput.body;
|
|
2435
|
-
return throwDefaultError({
|
|
2436
|
-
output,
|
|
2437
|
-
parsedBody,
|
|
2438
|
-
errorCode,
|
|
2439
|
-
});
|
|
2440
|
-
}
|
|
2441
|
-
};
|
|
2442
|
-
const de_ExecuteProvisionedProductPlanCommand = async (output, context) => {
|
|
2443
|
-
if (output.statusCode >= 300) {
|
|
2444
|
-
return de_ExecuteProvisionedProductPlanCommandError(output, context);
|
|
2445
|
-
}
|
|
2446
|
-
const data = await parseBody(output.body, context);
|
|
2447
|
-
let contents = {};
|
|
2448
|
-
contents = de_ExecuteProvisionedProductPlanOutput(data, context);
|
|
2449
|
-
const response = {
|
|
2450
|
-
$metadata: deserializeMetadata(output),
|
|
2451
|
-
...contents,
|
|
2452
|
-
};
|
|
2453
|
-
return response;
|
|
2454
|
-
};
|
|
2455
|
-
exports.de_ExecuteProvisionedProductPlanCommand = de_ExecuteProvisionedProductPlanCommand;
|
|
2456
|
-
const de_ExecuteProvisionedProductPlanCommandError = async (output, context) => {
|
|
2457
|
-
const parsedOutput = {
|
|
2458
|
-
...output,
|
|
2459
|
-
body: await parseErrorBody(output.body, context),
|
|
2460
|
-
};
|
|
2461
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2462
|
-
switch (errorCode) {
|
|
2463
|
-
case "InvalidParametersException":
|
|
2464
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2465
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2466
|
-
case "InvalidStateException":
|
|
2467
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2468
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
2469
|
-
case "ResourceNotFoundException":
|
|
2470
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2471
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2472
|
-
default:
|
|
2473
|
-
const parsedBody = parsedOutput.body;
|
|
2474
|
-
return throwDefaultError({
|
|
2475
|
-
output,
|
|
2476
|
-
parsedBody,
|
|
2477
|
-
errorCode,
|
|
2478
|
-
});
|
|
2479
|
-
}
|
|
2480
|
-
};
|
|
2481
|
-
const de_ExecuteProvisionedProductServiceActionCommand = async (output, context) => {
|
|
2482
|
-
if (output.statusCode >= 300) {
|
|
2483
|
-
return de_ExecuteProvisionedProductServiceActionCommandError(output, context);
|
|
2484
|
-
}
|
|
2485
|
-
const data = await parseBody(output.body, context);
|
|
2486
|
-
let contents = {};
|
|
2487
|
-
contents = de_ExecuteProvisionedProductServiceActionOutput(data, context);
|
|
2488
|
-
const response = {
|
|
2489
|
-
$metadata: deserializeMetadata(output),
|
|
2490
|
-
...contents,
|
|
2491
|
-
};
|
|
2492
|
-
return response;
|
|
2493
|
-
};
|
|
2494
|
-
exports.de_ExecuteProvisionedProductServiceActionCommand = de_ExecuteProvisionedProductServiceActionCommand;
|
|
2495
|
-
const de_ExecuteProvisionedProductServiceActionCommandError = async (output, context) => {
|
|
2496
|
-
const parsedOutput = {
|
|
2497
|
-
...output,
|
|
2498
|
-
body: await parseErrorBody(output.body, context),
|
|
2499
|
-
};
|
|
2500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2501
|
-
switch (errorCode) {
|
|
2502
|
-
case "InvalidParametersException":
|
|
2503
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2504
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2505
|
-
case "InvalidStateException":
|
|
2506
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2507
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
2508
|
-
case "ResourceNotFoundException":
|
|
2509
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2510
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2511
|
-
default:
|
|
2512
|
-
const parsedBody = parsedOutput.body;
|
|
2513
|
-
return throwDefaultError({
|
|
2514
|
-
output,
|
|
2515
|
-
parsedBody,
|
|
2516
|
-
errorCode,
|
|
2517
|
-
});
|
|
2518
|
-
}
|
|
2519
|
-
};
|
|
2520
|
-
const de_GetAWSOrganizationsAccessStatusCommand = async (output, context) => {
|
|
2521
|
-
if (output.statusCode >= 300) {
|
|
2522
|
-
return de_GetAWSOrganizationsAccessStatusCommandError(output, context);
|
|
2523
|
-
}
|
|
2524
|
-
const data = await parseBody(output.body, context);
|
|
2525
|
-
let contents = {};
|
|
2526
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2527
|
-
const response = {
|
|
2528
|
-
$metadata: deserializeMetadata(output),
|
|
2529
|
-
...contents,
|
|
2530
|
-
};
|
|
2531
|
-
return response;
|
|
2532
|
-
};
|
|
2533
|
-
exports.de_GetAWSOrganizationsAccessStatusCommand = de_GetAWSOrganizationsAccessStatusCommand;
|
|
2534
|
-
const de_GetAWSOrganizationsAccessStatusCommandError = async (output, context) => {
|
|
2535
|
-
const parsedOutput = {
|
|
2536
|
-
...output,
|
|
2537
|
-
body: await parseErrorBody(output.body, context),
|
|
2538
|
-
};
|
|
2539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2540
|
-
switch (errorCode) {
|
|
2541
|
-
case "OperationNotSupportedException":
|
|
2542
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
2543
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2544
|
-
case "ResourceNotFoundException":
|
|
2545
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2546
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2547
|
-
default:
|
|
2548
|
-
const parsedBody = parsedOutput.body;
|
|
2549
|
-
return throwDefaultError({
|
|
2550
|
-
output,
|
|
2551
|
-
parsedBody,
|
|
2552
|
-
errorCode,
|
|
2553
|
-
});
|
|
2554
|
-
}
|
|
2555
|
-
};
|
|
2556
|
-
const de_GetProvisionedProductOutputsCommand = async (output, context) => {
|
|
2557
|
-
if (output.statusCode >= 300) {
|
|
2558
|
-
return de_GetProvisionedProductOutputsCommandError(output, context);
|
|
2559
|
-
}
|
|
2560
|
-
const data = await parseBody(output.body, context);
|
|
2561
|
-
let contents = {};
|
|
2562
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2563
|
-
const response = {
|
|
2564
|
-
$metadata: deserializeMetadata(output),
|
|
2565
|
-
...contents,
|
|
2566
|
-
};
|
|
2567
|
-
return response;
|
|
2568
|
-
};
|
|
2569
|
-
exports.de_GetProvisionedProductOutputsCommand = de_GetProvisionedProductOutputsCommand;
|
|
2570
|
-
const de_GetProvisionedProductOutputsCommandError = async (output, context) => {
|
|
2571
|
-
const parsedOutput = {
|
|
2572
|
-
...output,
|
|
2573
|
-
body: await parseErrorBody(output.body, context),
|
|
2574
|
-
};
|
|
2575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2576
|
-
switch (errorCode) {
|
|
2577
|
-
case "InvalidParametersException":
|
|
2578
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2579
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2580
|
-
case "ResourceNotFoundException":
|
|
2581
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2582
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2583
|
-
default:
|
|
2584
|
-
const parsedBody = parsedOutput.body;
|
|
2585
|
-
return throwDefaultError({
|
|
2586
|
-
output,
|
|
2587
|
-
parsedBody,
|
|
2588
|
-
errorCode,
|
|
2589
|
-
});
|
|
2590
|
-
}
|
|
2591
|
-
};
|
|
2592
|
-
const de_ImportAsProvisionedProductCommand = async (output, context) => {
|
|
2593
|
-
if (output.statusCode >= 300) {
|
|
2594
|
-
return de_ImportAsProvisionedProductCommandError(output, context);
|
|
2595
|
-
}
|
|
2596
|
-
const data = await parseBody(output.body, context);
|
|
2597
|
-
let contents = {};
|
|
2598
|
-
contents = de_ImportAsProvisionedProductOutput(data, context);
|
|
2599
|
-
const response = {
|
|
2600
|
-
$metadata: deserializeMetadata(output),
|
|
2601
|
-
...contents,
|
|
2602
|
-
};
|
|
2603
|
-
return response;
|
|
2604
|
-
};
|
|
2605
|
-
exports.de_ImportAsProvisionedProductCommand = de_ImportAsProvisionedProductCommand;
|
|
2606
|
-
const de_ImportAsProvisionedProductCommandError = async (output, context) => {
|
|
2607
|
-
const parsedOutput = {
|
|
2608
|
-
...output,
|
|
2609
|
-
body: await parseErrorBody(output.body, context),
|
|
2610
|
-
};
|
|
2611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2612
|
-
switch (errorCode) {
|
|
2613
|
-
case "DuplicateResourceException":
|
|
2614
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
2615
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
2616
|
-
case "InvalidParametersException":
|
|
2617
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2618
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2619
|
-
case "InvalidStateException":
|
|
2620
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2621
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "ResourceNotFoundException":
|
|
2623
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2624
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2625
|
-
default:
|
|
2626
|
-
const parsedBody = parsedOutput.body;
|
|
2627
|
-
return throwDefaultError({
|
|
2628
|
-
output,
|
|
2629
|
-
parsedBody,
|
|
2630
|
-
errorCode,
|
|
2631
|
-
});
|
|
2632
|
-
}
|
|
2633
|
-
};
|
|
2634
|
-
const de_ListAcceptedPortfolioSharesCommand = async (output, context) => {
|
|
2635
|
-
if (output.statusCode >= 300) {
|
|
2636
|
-
return de_ListAcceptedPortfolioSharesCommandError(output, context);
|
|
2637
|
-
}
|
|
2638
|
-
const data = await parseBody(output.body, context);
|
|
2639
|
-
let contents = {};
|
|
2640
|
-
contents = de_ListAcceptedPortfolioSharesOutput(data, context);
|
|
2641
|
-
const response = {
|
|
2642
|
-
$metadata: deserializeMetadata(output),
|
|
2643
|
-
...contents,
|
|
2644
|
-
};
|
|
2645
|
-
return response;
|
|
2646
|
-
};
|
|
2647
|
-
exports.de_ListAcceptedPortfolioSharesCommand = de_ListAcceptedPortfolioSharesCommand;
|
|
2648
|
-
const de_ListAcceptedPortfolioSharesCommandError = async (output, context) => {
|
|
2649
|
-
const parsedOutput = {
|
|
2650
|
-
...output,
|
|
2651
|
-
body: await parseErrorBody(output.body, context),
|
|
2652
|
-
};
|
|
2653
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2654
|
-
switch (errorCode) {
|
|
2655
|
-
case "InvalidParametersException":
|
|
2656
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2657
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2658
|
-
case "OperationNotSupportedException":
|
|
2659
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
2660
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2661
|
-
default:
|
|
2662
|
-
const parsedBody = parsedOutput.body;
|
|
2663
|
-
return throwDefaultError({
|
|
2664
|
-
output,
|
|
2665
|
-
parsedBody,
|
|
2666
|
-
errorCode,
|
|
2667
|
-
});
|
|
2668
|
-
}
|
|
2669
|
-
};
|
|
2670
|
-
const de_ListBudgetsForResourceCommand = async (output, context) => {
|
|
2671
|
-
if (output.statusCode >= 300) {
|
|
2672
|
-
return de_ListBudgetsForResourceCommandError(output, context);
|
|
2673
|
-
}
|
|
2674
|
-
const data = await parseBody(output.body, context);
|
|
2675
|
-
let contents = {};
|
|
2676
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2677
|
-
const response = {
|
|
2678
|
-
$metadata: deserializeMetadata(output),
|
|
2679
|
-
...contents,
|
|
2680
|
-
};
|
|
2681
|
-
return response;
|
|
2682
|
-
};
|
|
2683
|
-
exports.de_ListBudgetsForResourceCommand = de_ListBudgetsForResourceCommand;
|
|
2684
|
-
const de_ListBudgetsForResourceCommandError = async (output, context) => {
|
|
2685
|
-
const parsedOutput = {
|
|
2686
|
-
...output,
|
|
2687
|
-
body: await parseErrorBody(output.body, context),
|
|
2688
|
-
};
|
|
2689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2690
|
-
switch (errorCode) {
|
|
2691
|
-
case "InvalidParametersException":
|
|
2692
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2693
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2694
|
-
case "ResourceNotFoundException":
|
|
2695
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2696
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2697
|
-
default:
|
|
2698
|
-
const parsedBody = parsedOutput.body;
|
|
2699
|
-
return throwDefaultError({
|
|
2700
|
-
output,
|
|
2701
|
-
parsedBody,
|
|
2702
|
-
errorCode,
|
|
2703
|
-
});
|
|
2704
|
-
}
|
|
2705
|
-
};
|
|
2706
|
-
const de_ListConstraintsForPortfolioCommand = async (output, context) => {
|
|
2707
|
-
if (output.statusCode >= 300) {
|
|
2708
|
-
return de_ListConstraintsForPortfolioCommandError(output, context);
|
|
2709
|
-
}
|
|
2710
|
-
const data = await parseBody(output.body, context);
|
|
2711
|
-
let contents = {};
|
|
2712
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2713
|
-
const response = {
|
|
2714
|
-
$metadata: deserializeMetadata(output),
|
|
2715
|
-
...contents,
|
|
2716
|
-
};
|
|
2717
|
-
return response;
|
|
2718
|
-
};
|
|
2719
|
-
exports.de_ListConstraintsForPortfolioCommand = de_ListConstraintsForPortfolioCommand;
|
|
2720
|
-
const de_ListConstraintsForPortfolioCommandError = async (output, context) => {
|
|
2721
|
-
const parsedOutput = {
|
|
2722
|
-
...output,
|
|
2723
|
-
body: await parseErrorBody(output.body, context),
|
|
2724
|
-
};
|
|
2725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2726
|
-
switch (errorCode) {
|
|
2727
|
-
case "InvalidParametersException":
|
|
2728
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2729
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2730
|
-
case "ResourceNotFoundException":
|
|
2731
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2732
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2733
|
-
default:
|
|
2734
|
-
const parsedBody = parsedOutput.body;
|
|
2735
|
-
return throwDefaultError({
|
|
2736
|
-
output,
|
|
2737
|
-
parsedBody,
|
|
2738
|
-
errorCode,
|
|
2739
|
-
});
|
|
2740
|
-
}
|
|
2741
|
-
};
|
|
2742
|
-
const de_ListLaunchPathsCommand = async (output, context) => {
|
|
2743
|
-
if (output.statusCode >= 300) {
|
|
2744
|
-
return de_ListLaunchPathsCommandError(output, context);
|
|
2745
|
-
}
|
|
2746
|
-
const data = await parseBody(output.body, context);
|
|
2747
|
-
let contents = {};
|
|
2748
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2749
|
-
const response = {
|
|
2750
|
-
$metadata: deserializeMetadata(output),
|
|
2751
|
-
...contents,
|
|
2752
|
-
};
|
|
2753
|
-
return response;
|
|
2754
|
-
};
|
|
2755
|
-
exports.de_ListLaunchPathsCommand = de_ListLaunchPathsCommand;
|
|
2756
|
-
const de_ListLaunchPathsCommandError = async (output, context) => {
|
|
2757
|
-
const parsedOutput = {
|
|
2758
|
-
...output,
|
|
2759
|
-
body: await parseErrorBody(output.body, context),
|
|
2760
|
-
};
|
|
2761
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2762
|
-
switch (errorCode) {
|
|
2763
|
-
case "InvalidParametersException":
|
|
2764
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2765
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2766
|
-
case "ResourceNotFoundException":
|
|
2767
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2768
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2769
|
-
default:
|
|
2770
|
-
const parsedBody = parsedOutput.body;
|
|
2771
|
-
return throwDefaultError({
|
|
2772
|
-
output,
|
|
2773
|
-
parsedBody,
|
|
2774
|
-
errorCode,
|
|
2775
|
-
});
|
|
2776
|
-
}
|
|
2777
|
-
};
|
|
2778
|
-
const de_ListOrganizationPortfolioAccessCommand = async (output, context) => {
|
|
2779
|
-
if (output.statusCode >= 300) {
|
|
2780
|
-
return de_ListOrganizationPortfolioAccessCommandError(output, context);
|
|
2781
|
-
}
|
|
2782
|
-
const data = await parseBody(output.body, context);
|
|
2783
|
-
let contents = {};
|
|
2784
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2785
|
-
const response = {
|
|
2786
|
-
$metadata: deserializeMetadata(output),
|
|
2787
|
-
...contents,
|
|
2788
|
-
};
|
|
2789
|
-
return response;
|
|
2790
|
-
};
|
|
2791
|
-
exports.de_ListOrganizationPortfolioAccessCommand = de_ListOrganizationPortfolioAccessCommand;
|
|
2792
|
-
const de_ListOrganizationPortfolioAccessCommandError = async (output, context) => {
|
|
2793
|
-
const parsedOutput = {
|
|
2794
|
-
...output,
|
|
2795
|
-
body: await parseErrorBody(output.body, context),
|
|
2796
|
-
};
|
|
2797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2798
|
-
switch (errorCode) {
|
|
2799
|
-
case "InvalidParametersException":
|
|
2800
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2801
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2802
|
-
case "OperationNotSupportedException":
|
|
2803
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
2804
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2805
|
-
case "ResourceNotFoundException":
|
|
2806
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2807
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2808
|
-
default:
|
|
2809
|
-
const parsedBody = parsedOutput.body;
|
|
2810
|
-
return throwDefaultError({
|
|
2811
|
-
output,
|
|
2812
|
-
parsedBody,
|
|
2813
|
-
errorCode,
|
|
2814
|
-
});
|
|
2815
|
-
}
|
|
2816
|
-
};
|
|
2817
|
-
const de_ListPortfolioAccessCommand = async (output, context) => {
|
|
2818
|
-
if (output.statusCode >= 300) {
|
|
2819
|
-
return de_ListPortfolioAccessCommandError(output, context);
|
|
2820
|
-
}
|
|
2821
|
-
const data = await parseBody(output.body, context);
|
|
2822
|
-
let contents = {};
|
|
2823
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2824
|
-
const response = {
|
|
2825
|
-
$metadata: deserializeMetadata(output),
|
|
2826
|
-
...contents,
|
|
2827
|
-
};
|
|
2828
|
-
return response;
|
|
2829
|
-
};
|
|
2830
|
-
exports.de_ListPortfolioAccessCommand = de_ListPortfolioAccessCommand;
|
|
2831
|
-
const de_ListPortfolioAccessCommandError = async (output, context) => {
|
|
2832
|
-
const parsedOutput = {
|
|
2833
|
-
...output,
|
|
2834
|
-
body: await parseErrorBody(output.body, context),
|
|
2835
|
-
};
|
|
2836
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2837
|
-
switch (errorCode) {
|
|
2838
|
-
case "InvalidParametersException":
|
|
2839
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2840
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2841
|
-
case "ResourceNotFoundException":
|
|
2842
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2843
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2844
|
-
default:
|
|
2845
|
-
const parsedBody = parsedOutput.body;
|
|
2846
|
-
return throwDefaultError({
|
|
2847
|
-
output,
|
|
2848
|
-
parsedBody,
|
|
2849
|
-
errorCode,
|
|
2850
|
-
});
|
|
2851
|
-
}
|
|
2852
|
-
};
|
|
2853
|
-
const de_ListPortfoliosCommand = async (output, context) => {
|
|
2854
|
-
if (output.statusCode >= 300) {
|
|
2855
|
-
return de_ListPortfoliosCommandError(output, context);
|
|
2856
|
-
}
|
|
2857
|
-
const data = await parseBody(output.body, context);
|
|
2858
|
-
let contents = {};
|
|
2859
|
-
contents = de_ListPortfoliosOutput(data, context);
|
|
2860
|
-
const response = {
|
|
2861
|
-
$metadata: deserializeMetadata(output),
|
|
2862
|
-
...contents,
|
|
2863
|
-
};
|
|
2864
|
-
return response;
|
|
2865
|
-
};
|
|
2866
|
-
exports.de_ListPortfoliosCommand = de_ListPortfoliosCommand;
|
|
2867
|
-
const de_ListPortfoliosCommandError = async (output, context) => {
|
|
2868
|
-
const parsedOutput = {
|
|
2869
|
-
...output,
|
|
2870
|
-
body: await parseErrorBody(output.body, context),
|
|
2871
|
-
};
|
|
2872
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2873
|
-
switch (errorCode) {
|
|
2874
|
-
case "InvalidParametersException":
|
|
2875
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2876
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2877
|
-
default:
|
|
2878
|
-
const parsedBody = parsedOutput.body;
|
|
2879
|
-
return throwDefaultError({
|
|
2880
|
-
output,
|
|
2881
|
-
parsedBody,
|
|
2882
|
-
errorCode,
|
|
2883
|
-
});
|
|
2884
|
-
}
|
|
2885
|
-
};
|
|
2886
|
-
const de_ListPortfoliosForProductCommand = async (output, context) => {
|
|
2887
|
-
if (output.statusCode >= 300) {
|
|
2888
|
-
return de_ListPortfoliosForProductCommandError(output, context);
|
|
2889
|
-
}
|
|
2890
|
-
const data = await parseBody(output.body, context);
|
|
2891
|
-
let contents = {};
|
|
2892
|
-
contents = de_ListPortfoliosForProductOutput(data, context);
|
|
2893
|
-
const response = {
|
|
2894
|
-
$metadata: deserializeMetadata(output),
|
|
2895
|
-
...contents,
|
|
2896
|
-
};
|
|
2897
|
-
return response;
|
|
2898
|
-
};
|
|
2899
|
-
exports.de_ListPortfoliosForProductCommand = de_ListPortfoliosForProductCommand;
|
|
2900
|
-
const de_ListPortfoliosForProductCommandError = async (output, context) => {
|
|
2901
|
-
const parsedOutput = {
|
|
2902
|
-
...output,
|
|
2903
|
-
body: await parseErrorBody(output.body, context),
|
|
2904
|
-
};
|
|
2905
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2906
|
-
switch (errorCode) {
|
|
2907
|
-
case "InvalidParametersException":
|
|
2908
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2909
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2910
|
-
case "ResourceNotFoundException":
|
|
2911
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2912
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2913
|
-
default:
|
|
2914
|
-
const parsedBody = parsedOutput.body;
|
|
2915
|
-
return throwDefaultError({
|
|
2916
|
-
output,
|
|
2917
|
-
parsedBody,
|
|
2918
|
-
errorCode,
|
|
2919
|
-
});
|
|
2920
|
-
}
|
|
2921
|
-
};
|
|
2922
|
-
const de_ListPrincipalsForPortfolioCommand = async (output, context) => {
|
|
2923
|
-
if (output.statusCode >= 300) {
|
|
2924
|
-
return de_ListPrincipalsForPortfolioCommandError(output, context);
|
|
2925
|
-
}
|
|
2926
|
-
const data = await parseBody(output.body, context);
|
|
2927
|
-
let contents = {};
|
|
2928
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2929
|
-
const response = {
|
|
2930
|
-
$metadata: deserializeMetadata(output),
|
|
2931
|
-
...contents,
|
|
2932
|
-
};
|
|
2933
|
-
return response;
|
|
2934
|
-
};
|
|
2935
|
-
exports.de_ListPrincipalsForPortfolioCommand = de_ListPrincipalsForPortfolioCommand;
|
|
2936
|
-
const de_ListPrincipalsForPortfolioCommandError = async (output, context) => {
|
|
2937
|
-
const parsedOutput = {
|
|
2938
|
-
...output,
|
|
2939
|
-
body: await parseErrorBody(output.body, context),
|
|
2940
|
-
};
|
|
2941
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2942
|
-
switch (errorCode) {
|
|
2943
|
-
case "InvalidParametersException":
|
|
2944
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2945
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2946
|
-
case "ResourceNotFoundException":
|
|
2947
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2948
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2949
|
-
default:
|
|
2950
|
-
const parsedBody = parsedOutput.body;
|
|
2951
|
-
return throwDefaultError({
|
|
2952
|
-
output,
|
|
2953
|
-
parsedBody,
|
|
2954
|
-
errorCode,
|
|
2955
|
-
});
|
|
2956
|
-
}
|
|
2957
|
-
};
|
|
2958
|
-
const de_ListProvisionedProductPlansCommand = async (output, context) => {
|
|
2959
|
-
if (output.statusCode >= 300) {
|
|
2960
|
-
return de_ListProvisionedProductPlansCommandError(output, context);
|
|
2961
|
-
}
|
|
2962
|
-
const data = await parseBody(output.body, context);
|
|
2963
|
-
let contents = {};
|
|
2964
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2965
|
-
const response = {
|
|
2966
|
-
$metadata: deserializeMetadata(output),
|
|
2967
|
-
...contents,
|
|
2968
|
-
};
|
|
2969
|
-
return response;
|
|
2970
|
-
};
|
|
2971
|
-
exports.de_ListProvisionedProductPlansCommand = de_ListProvisionedProductPlansCommand;
|
|
2972
|
-
const de_ListProvisionedProductPlansCommandError = async (output, context) => {
|
|
2973
|
-
const parsedOutput = {
|
|
2974
|
-
...output,
|
|
2975
|
-
body: await parseErrorBody(output.body, context),
|
|
2976
|
-
};
|
|
2977
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2978
|
-
switch (errorCode) {
|
|
2979
|
-
case "InvalidParametersException":
|
|
2980
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2981
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2982
|
-
case "ResourceNotFoundException":
|
|
2983
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2984
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2985
|
-
default:
|
|
2986
|
-
const parsedBody = parsedOutput.body;
|
|
2987
|
-
return throwDefaultError({
|
|
2988
|
-
output,
|
|
2989
|
-
parsedBody,
|
|
2990
|
-
errorCode,
|
|
2991
|
-
});
|
|
2992
|
-
}
|
|
2993
|
-
};
|
|
2994
|
-
const de_ListProvisioningArtifactsCommand = async (output, context) => {
|
|
2995
|
-
if (output.statusCode >= 300) {
|
|
2996
|
-
return de_ListProvisioningArtifactsCommandError(output, context);
|
|
2997
|
-
}
|
|
2998
|
-
const data = await parseBody(output.body, context);
|
|
2999
|
-
let contents = {};
|
|
3000
|
-
contents = de_ListProvisioningArtifactsOutput(data, context);
|
|
3001
|
-
const response = {
|
|
3002
|
-
$metadata: deserializeMetadata(output),
|
|
3003
|
-
...contents,
|
|
3004
|
-
};
|
|
3005
|
-
return response;
|
|
3006
|
-
};
|
|
3007
|
-
exports.de_ListProvisioningArtifactsCommand = de_ListProvisioningArtifactsCommand;
|
|
3008
|
-
const de_ListProvisioningArtifactsCommandError = async (output, context) => {
|
|
3009
|
-
const parsedOutput = {
|
|
3010
|
-
...output,
|
|
3011
|
-
body: await parseErrorBody(output.body, context),
|
|
3012
|
-
};
|
|
3013
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3014
|
-
switch (errorCode) {
|
|
3015
|
-
case "InvalidParametersException":
|
|
3016
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3017
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3018
|
-
case "ResourceNotFoundException":
|
|
3019
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3020
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3021
|
-
default:
|
|
3022
|
-
const parsedBody = parsedOutput.body;
|
|
3023
|
-
return throwDefaultError({
|
|
3024
|
-
output,
|
|
3025
|
-
parsedBody,
|
|
3026
|
-
errorCode,
|
|
3027
|
-
});
|
|
3028
|
-
}
|
|
3029
|
-
};
|
|
3030
|
-
const de_ListProvisioningArtifactsForServiceActionCommand = async (output, context) => {
|
|
3031
|
-
if (output.statusCode >= 300) {
|
|
3032
|
-
return de_ListProvisioningArtifactsForServiceActionCommandError(output, context);
|
|
3033
|
-
}
|
|
3034
|
-
const data = await parseBody(output.body, context);
|
|
3035
|
-
let contents = {};
|
|
3036
|
-
contents = de_ListProvisioningArtifactsForServiceActionOutput(data, context);
|
|
3037
|
-
const response = {
|
|
3038
|
-
$metadata: deserializeMetadata(output),
|
|
3039
|
-
...contents,
|
|
3040
|
-
};
|
|
3041
|
-
return response;
|
|
3042
|
-
};
|
|
3043
|
-
exports.de_ListProvisioningArtifactsForServiceActionCommand = de_ListProvisioningArtifactsForServiceActionCommand;
|
|
3044
|
-
const de_ListProvisioningArtifactsForServiceActionCommandError = async (output, context) => {
|
|
3045
|
-
const parsedOutput = {
|
|
3046
|
-
...output,
|
|
3047
|
-
body: await parseErrorBody(output.body, context),
|
|
3048
|
-
};
|
|
3049
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3050
|
-
switch (errorCode) {
|
|
3051
|
-
case "InvalidParametersException":
|
|
3052
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3053
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3054
|
-
case "ResourceNotFoundException":
|
|
3055
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3056
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3057
|
-
default:
|
|
3058
|
-
const parsedBody = parsedOutput.body;
|
|
3059
|
-
return throwDefaultError({
|
|
3060
|
-
output,
|
|
3061
|
-
parsedBody,
|
|
3062
|
-
errorCode,
|
|
3063
|
-
});
|
|
3064
|
-
}
|
|
3065
|
-
};
|
|
3066
|
-
const de_ListRecordHistoryCommand = async (output, context) => {
|
|
3067
|
-
if (output.statusCode >= 300) {
|
|
3068
|
-
return de_ListRecordHistoryCommandError(output, context);
|
|
3069
|
-
}
|
|
3070
|
-
const data = await parseBody(output.body, context);
|
|
3071
|
-
let contents = {};
|
|
3072
|
-
contents = de_ListRecordHistoryOutput(data, context);
|
|
3073
|
-
const response = {
|
|
3074
|
-
$metadata: deserializeMetadata(output),
|
|
3075
|
-
...contents,
|
|
3076
|
-
};
|
|
3077
|
-
return response;
|
|
3078
|
-
};
|
|
3079
|
-
exports.de_ListRecordHistoryCommand = de_ListRecordHistoryCommand;
|
|
3080
|
-
const de_ListRecordHistoryCommandError = async (output, context) => {
|
|
3081
|
-
const parsedOutput = {
|
|
3082
|
-
...output,
|
|
3083
|
-
body: await parseErrorBody(output.body, context),
|
|
3084
|
-
};
|
|
3085
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3086
|
-
switch (errorCode) {
|
|
3087
|
-
case "InvalidParametersException":
|
|
3088
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3089
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3090
|
-
default:
|
|
3091
|
-
const parsedBody = parsedOutput.body;
|
|
3092
|
-
return throwDefaultError({
|
|
3093
|
-
output,
|
|
3094
|
-
parsedBody,
|
|
3095
|
-
errorCode,
|
|
3096
|
-
});
|
|
3097
|
-
}
|
|
3098
|
-
};
|
|
3099
|
-
const de_ListResourcesForTagOptionCommand = async (output, context) => {
|
|
3100
|
-
if (output.statusCode >= 300) {
|
|
3101
|
-
return de_ListResourcesForTagOptionCommandError(output, context);
|
|
3102
|
-
}
|
|
3103
|
-
const data = await parseBody(output.body, context);
|
|
3104
|
-
let contents = {};
|
|
3105
|
-
contents = de_ListResourcesForTagOptionOutput(data, context);
|
|
3106
|
-
const response = {
|
|
3107
|
-
$metadata: deserializeMetadata(output),
|
|
3108
|
-
...contents,
|
|
3109
|
-
};
|
|
3110
|
-
return response;
|
|
3111
|
-
};
|
|
3112
|
-
exports.de_ListResourcesForTagOptionCommand = de_ListResourcesForTagOptionCommand;
|
|
3113
|
-
const de_ListResourcesForTagOptionCommandError = async (output, context) => {
|
|
3114
|
-
const parsedOutput = {
|
|
3115
|
-
...output,
|
|
3116
|
-
body: await parseErrorBody(output.body, context),
|
|
3117
|
-
};
|
|
3118
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3119
|
-
switch (errorCode) {
|
|
3120
|
-
case "InvalidParametersException":
|
|
3121
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3122
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3123
|
-
case "ResourceNotFoundException":
|
|
3124
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3125
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "TagOptionNotMigratedException":
|
|
3127
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
3128
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
3129
|
-
default:
|
|
3130
|
-
const parsedBody = parsedOutput.body;
|
|
3131
|
-
return throwDefaultError({
|
|
3132
|
-
output,
|
|
3133
|
-
parsedBody,
|
|
3134
|
-
errorCode,
|
|
3135
|
-
});
|
|
3136
|
-
}
|
|
3137
|
-
};
|
|
3138
|
-
const de_ListServiceActionsCommand = async (output, context) => {
|
|
3139
|
-
if (output.statusCode >= 300) {
|
|
3140
|
-
return de_ListServiceActionsCommandError(output, context);
|
|
3141
|
-
}
|
|
3142
|
-
const data = await parseBody(output.body, context);
|
|
3143
|
-
let contents = {};
|
|
3144
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3145
|
-
const response = {
|
|
3146
|
-
$metadata: deserializeMetadata(output),
|
|
3147
|
-
...contents,
|
|
3148
|
-
};
|
|
3149
|
-
return response;
|
|
3150
|
-
};
|
|
3151
|
-
exports.de_ListServiceActionsCommand = de_ListServiceActionsCommand;
|
|
3152
|
-
const de_ListServiceActionsCommandError = async (output, context) => {
|
|
3153
|
-
const parsedOutput = {
|
|
3154
|
-
...output,
|
|
3155
|
-
body: await parseErrorBody(output.body, context),
|
|
3156
|
-
};
|
|
3157
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3158
|
-
switch (errorCode) {
|
|
3159
|
-
case "InvalidParametersException":
|
|
3160
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3161
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3162
|
-
default:
|
|
3163
|
-
const parsedBody = parsedOutput.body;
|
|
3164
|
-
return throwDefaultError({
|
|
3165
|
-
output,
|
|
3166
|
-
parsedBody,
|
|
3167
|
-
errorCode,
|
|
3168
|
-
});
|
|
3169
|
-
}
|
|
3170
|
-
};
|
|
3171
|
-
const de_ListServiceActionsForProvisioningArtifactCommand = async (output, context) => {
|
|
3172
|
-
if (output.statusCode >= 300) {
|
|
3173
|
-
return de_ListServiceActionsForProvisioningArtifactCommandError(output, context);
|
|
3174
|
-
}
|
|
3175
|
-
const data = await parseBody(output.body, context);
|
|
3176
|
-
let contents = {};
|
|
3177
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3178
|
-
const response = {
|
|
3179
|
-
$metadata: deserializeMetadata(output),
|
|
3180
|
-
...contents,
|
|
3181
|
-
};
|
|
3182
|
-
return response;
|
|
3183
|
-
};
|
|
3184
|
-
exports.de_ListServiceActionsForProvisioningArtifactCommand = de_ListServiceActionsForProvisioningArtifactCommand;
|
|
3185
|
-
const de_ListServiceActionsForProvisioningArtifactCommandError = async (output, context) => {
|
|
3186
|
-
const parsedOutput = {
|
|
3187
|
-
...output,
|
|
3188
|
-
body: await parseErrorBody(output.body, context),
|
|
3189
|
-
};
|
|
3190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3191
|
-
switch (errorCode) {
|
|
3192
|
-
case "InvalidParametersException":
|
|
3193
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3194
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3195
|
-
case "ResourceNotFoundException":
|
|
3196
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3197
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3198
|
-
default:
|
|
3199
|
-
const parsedBody = parsedOutput.body;
|
|
3200
|
-
return throwDefaultError({
|
|
3201
|
-
output,
|
|
3202
|
-
parsedBody,
|
|
3203
|
-
errorCode,
|
|
3204
|
-
});
|
|
3205
|
-
}
|
|
3206
|
-
};
|
|
3207
|
-
const de_ListStackInstancesForProvisionedProductCommand = async (output, context) => {
|
|
3208
|
-
if (output.statusCode >= 300) {
|
|
3209
|
-
return de_ListStackInstancesForProvisionedProductCommandError(output, context);
|
|
3210
|
-
}
|
|
3211
|
-
const data = await parseBody(output.body, context);
|
|
3212
|
-
let contents = {};
|
|
3213
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3214
|
-
const response = {
|
|
3215
|
-
$metadata: deserializeMetadata(output),
|
|
3216
|
-
...contents,
|
|
3217
|
-
};
|
|
3218
|
-
return response;
|
|
3219
|
-
};
|
|
3220
|
-
exports.de_ListStackInstancesForProvisionedProductCommand = de_ListStackInstancesForProvisionedProductCommand;
|
|
3221
|
-
const de_ListStackInstancesForProvisionedProductCommandError = async (output, context) => {
|
|
3222
|
-
const parsedOutput = {
|
|
3223
|
-
...output,
|
|
3224
|
-
body: await parseErrorBody(output.body, context),
|
|
3225
|
-
};
|
|
3226
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3227
|
-
switch (errorCode) {
|
|
3228
|
-
case "InvalidParametersException":
|
|
3229
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3230
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3231
|
-
case "ResourceNotFoundException":
|
|
3232
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3233
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3234
|
-
default:
|
|
3235
|
-
const parsedBody = parsedOutput.body;
|
|
3236
|
-
return throwDefaultError({
|
|
3237
|
-
output,
|
|
3238
|
-
parsedBody,
|
|
3239
|
-
errorCode,
|
|
3240
|
-
});
|
|
3241
|
-
}
|
|
3242
|
-
};
|
|
3243
|
-
const de_ListTagOptionsCommand = async (output, context) => {
|
|
3244
|
-
if (output.statusCode >= 300) {
|
|
3245
|
-
return de_ListTagOptionsCommandError(output, context);
|
|
3246
|
-
}
|
|
3247
|
-
const data = await parseBody(output.body, context);
|
|
3248
|
-
let contents = {};
|
|
3249
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3250
|
-
const response = {
|
|
3251
|
-
$metadata: deserializeMetadata(output),
|
|
3252
|
-
...contents,
|
|
3253
|
-
};
|
|
3254
|
-
return response;
|
|
3255
|
-
};
|
|
3256
|
-
exports.de_ListTagOptionsCommand = de_ListTagOptionsCommand;
|
|
3257
|
-
const de_ListTagOptionsCommandError = async (output, context) => {
|
|
3258
|
-
const parsedOutput = {
|
|
3259
|
-
...output,
|
|
3260
|
-
body: await parseErrorBody(output.body, context),
|
|
3261
|
-
};
|
|
3262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3263
|
-
switch (errorCode) {
|
|
3264
|
-
case "InvalidParametersException":
|
|
3265
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3266
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3267
|
-
case "TagOptionNotMigratedException":
|
|
3268
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
3269
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
3270
|
-
default:
|
|
3271
|
-
const parsedBody = parsedOutput.body;
|
|
3272
|
-
return throwDefaultError({
|
|
3273
|
-
output,
|
|
3274
|
-
parsedBody,
|
|
3275
|
-
errorCode,
|
|
3276
|
-
});
|
|
3277
|
-
}
|
|
3278
|
-
};
|
|
3279
|
-
const de_NotifyProvisionProductEngineWorkflowResultCommand = async (output, context) => {
|
|
3280
|
-
if (output.statusCode >= 300) {
|
|
3281
|
-
return de_NotifyProvisionProductEngineWorkflowResultCommandError(output, context);
|
|
3282
|
-
}
|
|
3283
|
-
const data = await parseBody(output.body, context);
|
|
3284
|
-
let contents = {};
|
|
3285
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3286
|
-
const response = {
|
|
3287
|
-
$metadata: deserializeMetadata(output),
|
|
3288
|
-
...contents,
|
|
3289
|
-
};
|
|
3290
|
-
return response;
|
|
3291
|
-
};
|
|
3292
|
-
exports.de_NotifyProvisionProductEngineWorkflowResultCommand = de_NotifyProvisionProductEngineWorkflowResultCommand;
|
|
3293
|
-
const de_NotifyProvisionProductEngineWorkflowResultCommandError = async (output, context) => {
|
|
3294
|
-
const parsedOutput = {
|
|
3295
|
-
...output,
|
|
3296
|
-
body: await parseErrorBody(output.body, context),
|
|
3297
|
-
};
|
|
3298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3299
|
-
switch (errorCode) {
|
|
3300
|
-
case "InvalidParametersException":
|
|
3301
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3302
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3303
|
-
case "ResourceNotFoundException":
|
|
3304
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3305
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3306
|
-
default:
|
|
3307
|
-
const parsedBody = parsedOutput.body;
|
|
3308
|
-
return throwDefaultError({
|
|
3309
|
-
output,
|
|
3310
|
-
parsedBody,
|
|
3311
|
-
errorCode,
|
|
3312
|
-
});
|
|
3313
|
-
}
|
|
3314
|
-
};
|
|
3315
|
-
const de_NotifyTerminateProvisionedProductEngineWorkflowResultCommand = async (output, context) => {
|
|
3316
|
-
if (output.statusCode >= 300) {
|
|
3317
|
-
return de_NotifyTerminateProvisionedProductEngineWorkflowResultCommandError(output, context);
|
|
3318
|
-
}
|
|
3319
|
-
const data = await parseBody(output.body, context);
|
|
3320
|
-
let contents = {};
|
|
3321
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3322
|
-
const response = {
|
|
3323
|
-
$metadata: deserializeMetadata(output),
|
|
3324
|
-
...contents,
|
|
3325
|
-
};
|
|
3326
|
-
return response;
|
|
3327
|
-
};
|
|
3328
|
-
exports.de_NotifyTerminateProvisionedProductEngineWorkflowResultCommand = de_NotifyTerminateProvisionedProductEngineWorkflowResultCommand;
|
|
3329
|
-
const de_NotifyTerminateProvisionedProductEngineWorkflowResultCommandError = async (output, context) => {
|
|
3330
|
-
const parsedOutput = {
|
|
3331
|
-
...output,
|
|
3332
|
-
body: await parseErrorBody(output.body, context),
|
|
3333
|
-
};
|
|
3334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3335
|
-
switch (errorCode) {
|
|
3336
|
-
case "InvalidParametersException":
|
|
3337
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3338
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3339
|
-
case "ResourceNotFoundException":
|
|
3340
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3341
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3342
|
-
default:
|
|
3343
|
-
const parsedBody = parsedOutput.body;
|
|
3344
|
-
return throwDefaultError({
|
|
3345
|
-
output,
|
|
3346
|
-
parsedBody,
|
|
3347
|
-
errorCode,
|
|
3348
|
-
});
|
|
3349
|
-
}
|
|
3350
|
-
};
|
|
3351
|
-
const de_NotifyUpdateProvisionedProductEngineWorkflowResultCommand = async (output, context) => {
|
|
3352
|
-
if (output.statusCode >= 300) {
|
|
3353
|
-
return de_NotifyUpdateProvisionedProductEngineWorkflowResultCommandError(output, context);
|
|
3354
|
-
}
|
|
3355
|
-
const data = await parseBody(output.body, context);
|
|
3356
|
-
let contents = {};
|
|
3357
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3358
|
-
const response = {
|
|
3359
|
-
$metadata: deserializeMetadata(output),
|
|
3360
|
-
...contents,
|
|
3361
|
-
};
|
|
3362
|
-
return response;
|
|
3363
|
-
};
|
|
3364
|
-
exports.de_NotifyUpdateProvisionedProductEngineWorkflowResultCommand = de_NotifyUpdateProvisionedProductEngineWorkflowResultCommand;
|
|
3365
|
-
const de_NotifyUpdateProvisionedProductEngineWorkflowResultCommandError = async (output, context) => {
|
|
3366
|
-
const parsedOutput = {
|
|
3367
|
-
...output,
|
|
3368
|
-
body: await parseErrorBody(output.body, context),
|
|
3369
|
-
};
|
|
3370
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3371
|
-
switch (errorCode) {
|
|
3372
|
-
case "InvalidParametersException":
|
|
3373
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3374
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3375
|
-
case "ResourceNotFoundException":
|
|
3376
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3377
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3378
|
-
default:
|
|
3379
|
-
const parsedBody = parsedOutput.body;
|
|
3380
|
-
return throwDefaultError({
|
|
3381
|
-
output,
|
|
3382
|
-
parsedBody,
|
|
3383
|
-
errorCode,
|
|
3384
|
-
});
|
|
3385
|
-
}
|
|
3386
|
-
};
|
|
3387
|
-
const de_ProvisionProductCommand = async (output, context) => {
|
|
3388
|
-
if (output.statusCode >= 300) {
|
|
3389
|
-
return de_ProvisionProductCommandError(output, context);
|
|
3390
|
-
}
|
|
3391
|
-
const data = await parseBody(output.body, context);
|
|
3392
|
-
let contents = {};
|
|
3393
|
-
contents = de_ProvisionProductOutput(data, context);
|
|
3394
|
-
const response = {
|
|
3395
|
-
$metadata: deserializeMetadata(output),
|
|
3396
|
-
...contents,
|
|
3397
|
-
};
|
|
3398
|
-
return response;
|
|
3399
|
-
};
|
|
3400
|
-
exports.de_ProvisionProductCommand = de_ProvisionProductCommand;
|
|
3401
|
-
const de_ProvisionProductCommandError = async (output, context) => {
|
|
3402
|
-
const parsedOutput = {
|
|
3403
|
-
...output,
|
|
3404
|
-
body: await parseErrorBody(output.body, context),
|
|
3405
|
-
};
|
|
3406
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3407
|
-
switch (errorCode) {
|
|
3408
|
-
case "DuplicateResourceException":
|
|
3409
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
3410
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
3411
|
-
case "InvalidParametersException":
|
|
3412
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3413
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3414
|
-
case "ResourceNotFoundException":
|
|
3415
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3416
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3417
|
-
default:
|
|
3418
|
-
const parsedBody = parsedOutput.body;
|
|
3419
|
-
return throwDefaultError({
|
|
3420
|
-
output,
|
|
3421
|
-
parsedBody,
|
|
3422
|
-
errorCode,
|
|
3423
|
-
});
|
|
3424
|
-
}
|
|
3425
|
-
};
|
|
3426
|
-
const de_RejectPortfolioShareCommand = async (output, context) => {
|
|
3427
|
-
if (output.statusCode >= 300) {
|
|
3428
|
-
return de_RejectPortfolioShareCommandError(output, context);
|
|
3429
|
-
}
|
|
3430
|
-
const data = await parseBody(output.body, context);
|
|
3431
|
-
let contents = {};
|
|
3432
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3433
|
-
const response = {
|
|
3434
|
-
$metadata: deserializeMetadata(output),
|
|
3435
|
-
...contents,
|
|
3436
|
-
};
|
|
3437
|
-
return response;
|
|
3438
|
-
};
|
|
3439
|
-
exports.de_RejectPortfolioShareCommand = de_RejectPortfolioShareCommand;
|
|
3440
|
-
const de_RejectPortfolioShareCommandError = async (output, context) => {
|
|
3441
|
-
const parsedOutput = {
|
|
3442
|
-
...output,
|
|
3443
|
-
body: await parseErrorBody(output.body, context),
|
|
3444
|
-
};
|
|
3445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3446
|
-
switch (errorCode) {
|
|
3447
|
-
case "ResourceNotFoundException":
|
|
3448
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3449
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3450
|
-
default:
|
|
3451
|
-
const parsedBody = parsedOutput.body;
|
|
3452
|
-
return throwDefaultError({
|
|
3453
|
-
output,
|
|
3454
|
-
parsedBody,
|
|
3455
|
-
errorCode,
|
|
3456
|
-
});
|
|
3457
|
-
}
|
|
3458
|
-
};
|
|
3459
|
-
const de_ScanProvisionedProductsCommand = async (output, context) => {
|
|
3460
|
-
if (output.statusCode >= 300) {
|
|
3461
|
-
return de_ScanProvisionedProductsCommandError(output, context);
|
|
3462
|
-
}
|
|
3463
|
-
const data = await parseBody(output.body, context);
|
|
3464
|
-
let contents = {};
|
|
3465
|
-
contents = de_ScanProvisionedProductsOutput(data, context);
|
|
3466
|
-
const response = {
|
|
3467
|
-
$metadata: deserializeMetadata(output),
|
|
3468
|
-
...contents,
|
|
3469
|
-
};
|
|
3470
|
-
return response;
|
|
3471
|
-
};
|
|
3472
|
-
exports.de_ScanProvisionedProductsCommand = de_ScanProvisionedProductsCommand;
|
|
3473
|
-
const de_ScanProvisionedProductsCommandError = async (output, context) => {
|
|
3474
|
-
const parsedOutput = {
|
|
3475
|
-
...output,
|
|
3476
|
-
body: await parseErrorBody(output.body, context),
|
|
3477
|
-
};
|
|
3478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3479
|
-
switch (errorCode) {
|
|
3480
|
-
case "InvalidParametersException":
|
|
3481
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3482
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3483
|
-
default:
|
|
3484
|
-
const parsedBody = parsedOutput.body;
|
|
3485
|
-
return throwDefaultError({
|
|
3486
|
-
output,
|
|
3487
|
-
parsedBody,
|
|
3488
|
-
errorCode,
|
|
3489
|
-
});
|
|
3490
|
-
}
|
|
3491
|
-
};
|
|
3492
|
-
const de_SearchProductsCommand = async (output, context) => {
|
|
3493
|
-
if (output.statusCode >= 300) {
|
|
3494
|
-
return de_SearchProductsCommandError(output, context);
|
|
3495
|
-
}
|
|
3496
|
-
const data = await parseBody(output.body, context);
|
|
3497
|
-
let contents = {};
|
|
3498
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3499
|
-
const response = {
|
|
3500
|
-
$metadata: deserializeMetadata(output),
|
|
3501
|
-
...contents,
|
|
3502
|
-
};
|
|
3503
|
-
return response;
|
|
3504
|
-
};
|
|
3505
|
-
exports.de_SearchProductsCommand = de_SearchProductsCommand;
|
|
3506
|
-
const de_SearchProductsCommandError = async (output, context) => {
|
|
3507
|
-
const parsedOutput = {
|
|
3508
|
-
...output,
|
|
3509
|
-
body: await parseErrorBody(output.body, context),
|
|
3510
|
-
};
|
|
3511
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3512
|
-
switch (errorCode) {
|
|
3513
|
-
case "InvalidParametersException":
|
|
3514
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3515
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3516
|
-
default:
|
|
3517
|
-
const parsedBody = parsedOutput.body;
|
|
3518
|
-
return throwDefaultError({
|
|
3519
|
-
output,
|
|
3520
|
-
parsedBody,
|
|
3521
|
-
errorCode,
|
|
3522
|
-
});
|
|
3523
|
-
}
|
|
3524
|
-
};
|
|
3525
|
-
const de_SearchProductsAsAdminCommand = async (output, context) => {
|
|
3526
|
-
if (output.statusCode >= 300) {
|
|
3527
|
-
return de_SearchProductsAsAdminCommandError(output, context);
|
|
3528
|
-
}
|
|
3529
|
-
const data = await parseBody(output.body, context);
|
|
3530
|
-
let contents = {};
|
|
3531
|
-
contents = de_SearchProductsAsAdminOutput(data, context);
|
|
3532
|
-
const response = {
|
|
3533
|
-
$metadata: deserializeMetadata(output),
|
|
3534
|
-
...contents,
|
|
3535
|
-
};
|
|
3536
|
-
return response;
|
|
3537
|
-
};
|
|
3538
|
-
exports.de_SearchProductsAsAdminCommand = de_SearchProductsAsAdminCommand;
|
|
3539
|
-
const de_SearchProductsAsAdminCommandError = async (output, context) => {
|
|
3540
|
-
const parsedOutput = {
|
|
3541
|
-
...output,
|
|
3542
|
-
body: await parseErrorBody(output.body, context),
|
|
3543
|
-
};
|
|
3544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3545
|
-
switch (errorCode) {
|
|
3546
|
-
case "InvalidParametersException":
|
|
3547
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3548
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3549
|
-
case "ResourceNotFoundException":
|
|
3550
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3551
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3552
|
-
default:
|
|
3553
|
-
const parsedBody = parsedOutput.body;
|
|
3554
|
-
return throwDefaultError({
|
|
3555
|
-
output,
|
|
3556
|
-
parsedBody,
|
|
3557
|
-
errorCode,
|
|
3558
|
-
});
|
|
3559
|
-
}
|
|
3560
|
-
};
|
|
3561
|
-
const de_SearchProvisionedProductsCommand = async (output, context) => {
|
|
3562
|
-
if (output.statusCode >= 300) {
|
|
3563
|
-
return de_SearchProvisionedProductsCommandError(output, context);
|
|
3564
|
-
}
|
|
3565
|
-
const data = await parseBody(output.body, context);
|
|
3566
|
-
let contents = {};
|
|
3567
|
-
contents = de_SearchProvisionedProductsOutput(data, context);
|
|
3568
|
-
const response = {
|
|
3569
|
-
$metadata: deserializeMetadata(output),
|
|
3570
|
-
...contents,
|
|
3571
|
-
};
|
|
3572
|
-
return response;
|
|
3573
|
-
};
|
|
3574
|
-
exports.de_SearchProvisionedProductsCommand = de_SearchProvisionedProductsCommand;
|
|
3575
|
-
const de_SearchProvisionedProductsCommandError = async (output, context) => {
|
|
3576
|
-
const parsedOutput = {
|
|
3577
|
-
...output,
|
|
3578
|
-
body: await parseErrorBody(output.body, context),
|
|
3579
|
-
};
|
|
3580
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3581
|
-
switch (errorCode) {
|
|
3582
|
-
case "InvalidParametersException":
|
|
3583
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3584
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3585
|
-
default:
|
|
3586
|
-
const parsedBody = parsedOutput.body;
|
|
3587
|
-
return throwDefaultError({
|
|
3588
|
-
output,
|
|
3589
|
-
parsedBody,
|
|
3590
|
-
errorCode,
|
|
3591
|
-
});
|
|
3592
|
-
}
|
|
3593
|
-
};
|
|
3594
|
-
const de_TerminateProvisionedProductCommand = async (output, context) => {
|
|
3595
|
-
if (output.statusCode >= 300) {
|
|
3596
|
-
return de_TerminateProvisionedProductCommandError(output, context);
|
|
3597
|
-
}
|
|
3598
|
-
const data = await parseBody(output.body, context);
|
|
3599
|
-
let contents = {};
|
|
3600
|
-
contents = de_TerminateProvisionedProductOutput(data, context);
|
|
3601
|
-
const response = {
|
|
3602
|
-
$metadata: deserializeMetadata(output),
|
|
3603
|
-
...contents,
|
|
3604
|
-
};
|
|
3605
|
-
return response;
|
|
3606
|
-
};
|
|
3607
|
-
exports.de_TerminateProvisionedProductCommand = de_TerminateProvisionedProductCommand;
|
|
3608
|
-
const de_TerminateProvisionedProductCommandError = async (output, context) => {
|
|
3609
|
-
const parsedOutput = {
|
|
3610
|
-
...output,
|
|
3611
|
-
body: await parseErrorBody(output.body, context),
|
|
3612
|
-
};
|
|
3613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3614
|
-
switch (errorCode) {
|
|
3615
|
-
case "ResourceNotFoundException":
|
|
3616
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3617
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3618
|
-
default:
|
|
3619
|
-
const parsedBody = parsedOutput.body;
|
|
3620
|
-
return throwDefaultError({
|
|
3621
|
-
output,
|
|
3622
|
-
parsedBody,
|
|
3623
|
-
errorCode,
|
|
3624
|
-
});
|
|
3625
|
-
}
|
|
3626
|
-
};
|
|
3627
|
-
const de_UpdateConstraintCommand = async (output, context) => {
|
|
3628
|
-
if (output.statusCode >= 300) {
|
|
3629
|
-
return de_UpdateConstraintCommandError(output, context);
|
|
3630
|
-
}
|
|
3631
|
-
const data = await parseBody(output.body, context);
|
|
3632
|
-
let contents = {};
|
|
3633
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3634
|
-
const response = {
|
|
3635
|
-
$metadata: deserializeMetadata(output),
|
|
3636
|
-
...contents,
|
|
3637
|
-
};
|
|
3638
|
-
return response;
|
|
3639
|
-
};
|
|
3640
|
-
exports.de_UpdateConstraintCommand = de_UpdateConstraintCommand;
|
|
3641
|
-
const de_UpdateConstraintCommandError = async (output, context) => {
|
|
3642
|
-
const parsedOutput = {
|
|
3643
|
-
...output,
|
|
3644
|
-
body: await parseErrorBody(output.body, context),
|
|
3645
|
-
};
|
|
3646
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3647
|
-
switch (errorCode) {
|
|
3648
|
-
case "InvalidParametersException":
|
|
3649
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3650
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3651
|
-
case "ResourceNotFoundException":
|
|
3652
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3653
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3654
|
-
default:
|
|
3655
|
-
const parsedBody = parsedOutput.body;
|
|
3656
|
-
return throwDefaultError({
|
|
3657
|
-
output,
|
|
3658
|
-
parsedBody,
|
|
3659
|
-
errorCode,
|
|
3660
|
-
});
|
|
3661
|
-
}
|
|
3662
|
-
};
|
|
3663
|
-
const de_UpdatePortfolioCommand = async (output, context) => {
|
|
3664
|
-
if (output.statusCode >= 300) {
|
|
3665
|
-
return de_UpdatePortfolioCommandError(output, context);
|
|
3666
|
-
}
|
|
3667
|
-
const data = await parseBody(output.body, context);
|
|
3668
|
-
let contents = {};
|
|
3669
|
-
contents = de_UpdatePortfolioOutput(data, context);
|
|
3670
|
-
const response = {
|
|
3671
|
-
$metadata: deserializeMetadata(output),
|
|
3672
|
-
...contents,
|
|
3673
|
-
};
|
|
3674
|
-
return response;
|
|
3675
|
-
};
|
|
3676
|
-
exports.de_UpdatePortfolioCommand = de_UpdatePortfolioCommand;
|
|
3677
|
-
const de_UpdatePortfolioCommandError = async (output, context) => {
|
|
3678
|
-
const parsedOutput = {
|
|
3679
|
-
...output,
|
|
3680
|
-
body: await parseErrorBody(output.body, context),
|
|
3681
|
-
};
|
|
3682
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3683
|
-
switch (errorCode) {
|
|
3684
|
-
case "InvalidParametersException":
|
|
3685
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3686
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3687
|
-
case "LimitExceededException":
|
|
3688
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
3689
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3690
|
-
case "ResourceNotFoundException":
|
|
3691
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3692
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3693
|
-
case "TagOptionNotMigratedException":
|
|
3694
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
3695
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
3696
|
-
default:
|
|
3697
|
-
const parsedBody = parsedOutput.body;
|
|
3698
|
-
return throwDefaultError({
|
|
3699
|
-
output,
|
|
3700
|
-
parsedBody,
|
|
3701
|
-
errorCode,
|
|
3702
|
-
});
|
|
3703
|
-
}
|
|
3704
|
-
};
|
|
3705
|
-
const de_UpdatePortfolioShareCommand = async (output, context) => {
|
|
3706
|
-
if (output.statusCode >= 300) {
|
|
3707
|
-
return de_UpdatePortfolioShareCommandError(output, context);
|
|
3708
|
-
}
|
|
3709
|
-
const data = await parseBody(output.body, context);
|
|
3710
|
-
let contents = {};
|
|
3711
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3712
|
-
const response = {
|
|
3713
|
-
$metadata: deserializeMetadata(output),
|
|
3714
|
-
...contents,
|
|
3715
|
-
};
|
|
3716
|
-
return response;
|
|
3717
|
-
};
|
|
3718
|
-
exports.de_UpdatePortfolioShareCommand = de_UpdatePortfolioShareCommand;
|
|
3719
|
-
const de_UpdatePortfolioShareCommandError = async (output, context) => {
|
|
3720
|
-
const parsedOutput = {
|
|
3721
|
-
...output,
|
|
3722
|
-
body: await parseErrorBody(output.body, context),
|
|
3723
|
-
};
|
|
3724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3725
|
-
switch (errorCode) {
|
|
3726
|
-
case "InvalidParametersException":
|
|
3727
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3728
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3729
|
-
case "InvalidStateException":
|
|
3730
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
3731
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
3732
|
-
case "OperationNotSupportedException":
|
|
3733
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
3734
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3735
|
-
case "ResourceNotFoundException":
|
|
3736
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3737
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3738
|
-
default:
|
|
3739
|
-
const parsedBody = parsedOutput.body;
|
|
3740
|
-
return throwDefaultError({
|
|
3741
|
-
output,
|
|
3742
|
-
parsedBody,
|
|
3743
|
-
errorCode,
|
|
3744
|
-
});
|
|
3745
|
-
}
|
|
3746
|
-
};
|
|
3747
|
-
const de_UpdateProductCommand = async (output, context) => {
|
|
3748
|
-
if (output.statusCode >= 300) {
|
|
3749
|
-
return de_UpdateProductCommandError(output, context);
|
|
3750
|
-
}
|
|
3751
|
-
const data = await parseBody(output.body, context);
|
|
3752
|
-
let contents = {};
|
|
3753
|
-
contents = de_UpdateProductOutput(data, context);
|
|
3754
|
-
const response = {
|
|
3755
|
-
$metadata: deserializeMetadata(output),
|
|
3756
|
-
...contents,
|
|
3757
|
-
};
|
|
3758
|
-
return response;
|
|
3759
|
-
};
|
|
3760
|
-
exports.de_UpdateProductCommand = de_UpdateProductCommand;
|
|
3761
|
-
const de_UpdateProductCommandError = async (output, context) => {
|
|
3762
|
-
const parsedOutput = {
|
|
3763
|
-
...output,
|
|
3764
|
-
body: await parseErrorBody(output.body, context),
|
|
3765
|
-
};
|
|
3766
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3767
|
-
switch (errorCode) {
|
|
3768
|
-
case "InvalidParametersException":
|
|
3769
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3770
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3771
|
-
case "ResourceNotFoundException":
|
|
3772
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3773
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3774
|
-
case "TagOptionNotMigratedException":
|
|
3775
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
3776
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
3777
|
-
default:
|
|
3778
|
-
const parsedBody = parsedOutput.body;
|
|
3779
|
-
return throwDefaultError({
|
|
3780
|
-
output,
|
|
3781
|
-
parsedBody,
|
|
3782
|
-
errorCode,
|
|
3783
|
-
});
|
|
3784
|
-
}
|
|
3785
|
-
};
|
|
3786
|
-
const de_UpdateProvisionedProductCommand = async (output, context) => {
|
|
3787
|
-
if (output.statusCode >= 300) {
|
|
3788
|
-
return de_UpdateProvisionedProductCommandError(output, context);
|
|
3789
|
-
}
|
|
3790
|
-
const data = await parseBody(output.body, context);
|
|
3791
|
-
let contents = {};
|
|
3792
|
-
contents = de_UpdateProvisionedProductOutput(data, context);
|
|
3793
|
-
const response = {
|
|
3794
|
-
$metadata: deserializeMetadata(output),
|
|
3795
|
-
...contents,
|
|
3796
|
-
};
|
|
3797
|
-
return response;
|
|
3798
|
-
};
|
|
3799
|
-
exports.de_UpdateProvisionedProductCommand = de_UpdateProvisionedProductCommand;
|
|
3800
|
-
const de_UpdateProvisionedProductCommandError = async (output, context) => {
|
|
3801
|
-
const parsedOutput = {
|
|
3802
|
-
...output,
|
|
3803
|
-
body: await parseErrorBody(output.body, context),
|
|
3804
|
-
};
|
|
3805
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3806
|
-
switch (errorCode) {
|
|
3807
|
-
case "InvalidParametersException":
|
|
3808
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3809
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3810
|
-
case "ResourceNotFoundException":
|
|
3811
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3812
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3813
|
-
default:
|
|
3814
|
-
const parsedBody = parsedOutput.body;
|
|
3815
|
-
return throwDefaultError({
|
|
3816
|
-
output,
|
|
3817
|
-
parsedBody,
|
|
3818
|
-
errorCode,
|
|
3819
|
-
});
|
|
3820
|
-
}
|
|
3821
|
-
};
|
|
3822
|
-
const de_UpdateProvisionedProductPropertiesCommand = async (output, context) => {
|
|
3823
|
-
if (output.statusCode >= 300) {
|
|
3824
|
-
return de_UpdateProvisionedProductPropertiesCommandError(output, context);
|
|
3825
|
-
}
|
|
3826
|
-
const data = await parseBody(output.body, context);
|
|
3827
|
-
let contents = {};
|
|
3828
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3829
|
-
const response = {
|
|
3830
|
-
$metadata: deserializeMetadata(output),
|
|
3831
|
-
...contents,
|
|
3832
|
-
};
|
|
3833
|
-
return response;
|
|
3834
|
-
};
|
|
3835
|
-
exports.de_UpdateProvisionedProductPropertiesCommand = de_UpdateProvisionedProductPropertiesCommand;
|
|
3836
|
-
const de_UpdateProvisionedProductPropertiesCommandError = async (output, context) => {
|
|
3837
|
-
const parsedOutput = {
|
|
3838
|
-
...output,
|
|
3839
|
-
body: await parseErrorBody(output.body, context),
|
|
3840
|
-
};
|
|
3841
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3842
|
-
switch (errorCode) {
|
|
3843
|
-
case "InvalidParametersException":
|
|
3844
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3845
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3846
|
-
case "InvalidStateException":
|
|
3847
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
3848
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
3849
|
-
case "ResourceNotFoundException":
|
|
3850
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3851
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3852
|
-
default:
|
|
3853
|
-
const parsedBody = parsedOutput.body;
|
|
3854
|
-
return throwDefaultError({
|
|
3855
|
-
output,
|
|
3856
|
-
parsedBody,
|
|
3857
|
-
errorCode,
|
|
3858
|
-
});
|
|
3859
|
-
}
|
|
3860
|
-
};
|
|
3861
|
-
const de_UpdateProvisioningArtifactCommand = async (output, context) => {
|
|
3862
|
-
if (output.statusCode >= 300) {
|
|
3863
|
-
return de_UpdateProvisioningArtifactCommandError(output, context);
|
|
3864
|
-
}
|
|
3865
|
-
const data = await parseBody(output.body, context);
|
|
3866
|
-
let contents = {};
|
|
3867
|
-
contents = de_UpdateProvisioningArtifactOutput(data, context);
|
|
3868
|
-
const response = {
|
|
3869
|
-
$metadata: deserializeMetadata(output),
|
|
3870
|
-
...contents,
|
|
3871
|
-
};
|
|
3872
|
-
return response;
|
|
3873
|
-
};
|
|
3874
|
-
exports.de_UpdateProvisioningArtifactCommand = de_UpdateProvisioningArtifactCommand;
|
|
3875
|
-
const de_UpdateProvisioningArtifactCommandError = async (output, context) => {
|
|
3876
|
-
const parsedOutput = {
|
|
3877
|
-
...output,
|
|
3878
|
-
body: await parseErrorBody(output.body, context),
|
|
3879
|
-
};
|
|
3880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3881
|
-
switch (errorCode) {
|
|
3882
|
-
case "InvalidParametersException":
|
|
3883
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3884
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3885
|
-
case "ResourceNotFoundException":
|
|
3886
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3887
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3888
|
-
default:
|
|
3889
|
-
const parsedBody = parsedOutput.body;
|
|
3890
|
-
return throwDefaultError({
|
|
3891
|
-
output,
|
|
3892
|
-
parsedBody,
|
|
3893
|
-
errorCode,
|
|
3894
|
-
});
|
|
3895
|
-
}
|
|
3896
|
-
};
|
|
3897
|
-
const de_UpdateServiceActionCommand = async (output, context) => {
|
|
3898
|
-
if (output.statusCode >= 300) {
|
|
3899
|
-
return de_UpdateServiceActionCommandError(output, context);
|
|
3900
|
-
}
|
|
3901
|
-
const data = await parseBody(output.body, context);
|
|
3902
|
-
let contents = {};
|
|
3903
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3904
|
-
const response = {
|
|
3905
|
-
$metadata: deserializeMetadata(output),
|
|
3906
|
-
...contents,
|
|
3907
|
-
};
|
|
3908
|
-
return response;
|
|
3909
|
-
};
|
|
3910
|
-
exports.de_UpdateServiceActionCommand = de_UpdateServiceActionCommand;
|
|
3911
|
-
const de_UpdateServiceActionCommandError = async (output, context) => {
|
|
3912
|
-
const parsedOutput = {
|
|
3913
|
-
...output,
|
|
3914
|
-
body: await parseErrorBody(output.body, context),
|
|
3915
|
-
};
|
|
3916
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3917
|
-
switch (errorCode) {
|
|
3918
|
-
case "InvalidParametersException":
|
|
3919
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3920
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3921
|
-
case "ResourceNotFoundException":
|
|
3922
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3923
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3924
|
-
default:
|
|
3925
|
-
const parsedBody = parsedOutput.body;
|
|
3926
|
-
return throwDefaultError({
|
|
3927
|
-
output,
|
|
3928
|
-
parsedBody,
|
|
3929
|
-
errorCode,
|
|
3930
|
-
});
|
|
3931
|
-
}
|
|
3932
|
-
};
|
|
3933
|
-
const de_UpdateTagOptionCommand = async (output, context) => {
|
|
3934
|
-
if (output.statusCode >= 300) {
|
|
3935
|
-
return de_UpdateTagOptionCommandError(output, context);
|
|
3936
|
-
}
|
|
3937
|
-
const data = await parseBody(output.body, context);
|
|
3938
|
-
let contents = {};
|
|
3939
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3940
|
-
const response = {
|
|
3941
|
-
$metadata: deserializeMetadata(output),
|
|
3942
|
-
...contents,
|
|
3943
|
-
};
|
|
3944
|
-
return response;
|
|
3945
|
-
};
|
|
3946
|
-
exports.de_UpdateTagOptionCommand = de_UpdateTagOptionCommand;
|
|
3947
|
-
const de_UpdateTagOptionCommandError = async (output, context) => {
|
|
3948
|
-
const parsedOutput = {
|
|
3949
|
-
...output,
|
|
3950
|
-
body: await parseErrorBody(output.body, context),
|
|
3951
|
-
};
|
|
3952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3953
|
-
switch (errorCode) {
|
|
3954
|
-
case "DuplicateResourceException":
|
|
3955
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
3956
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
3957
|
-
case "InvalidParametersException":
|
|
3958
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3959
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3960
|
-
case "ResourceNotFoundException":
|
|
3961
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3962
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3963
|
-
case "TagOptionNotMigratedException":
|
|
3964
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
3965
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
3966
|
-
default:
|
|
3967
|
-
const parsedBody = parsedOutput.body;
|
|
3968
|
-
return throwDefaultError({
|
|
3969
|
-
output,
|
|
3970
|
-
parsedBody,
|
|
3971
|
-
errorCode,
|
|
3972
|
-
});
|
|
3973
|
-
}
|
|
3974
|
-
};
|
|
3975
|
-
const de_DuplicateResourceExceptionRes = async (parsedOutput, context) => {
|
|
3976
|
-
const body = parsedOutput.body;
|
|
3977
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3978
|
-
const exception = new models_0_1.DuplicateResourceException({
|
|
3979
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3980
|
-
...deserialized,
|
|
3981
|
-
});
|
|
3982
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3983
|
-
};
|
|
3984
|
-
const de_InvalidParametersExceptionRes = async (parsedOutput, context) => {
|
|
3985
|
-
const body = parsedOutput.body;
|
|
3986
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3987
|
-
const exception = new models_0_1.InvalidParametersException({
|
|
3988
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3989
|
-
...deserialized,
|
|
3990
|
-
});
|
|
3991
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3992
|
-
};
|
|
3993
|
-
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
3994
|
-
const body = parsedOutput.body;
|
|
3995
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3996
|
-
const exception = new models_0_1.InvalidStateException({
|
|
3997
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3998
|
-
...deserialized,
|
|
3999
|
-
});
|
|
4000
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
4001
|
-
};
|
|
4002
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
4003
|
-
const body = parsedOutput.body;
|
|
4004
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
4005
|
-
const exception = new models_0_1.LimitExceededException({
|
|
4006
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4007
|
-
...deserialized,
|
|
4008
|
-
});
|
|
4009
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
4010
|
-
};
|
|
4011
|
-
const de_OperationNotSupportedExceptionRes = async (parsedOutput, context) => {
|
|
4012
|
-
const body = parsedOutput.body;
|
|
4013
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
4014
|
-
const exception = new models_0_1.OperationNotSupportedException({
|
|
4015
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4016
|
-
...deserialized,
|
|
4017
|
-
});
|
|
4018
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
4019
|
-
};
|
|
4020
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
4021
|
-
const body = parsedOutput.body;
|
|
4022
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
4023
|
-
const exception = new models_0_1.ResourceInUseException({
|
|
4024
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4025
|
-
...deserialized,
|
|
4026
|
-
});
|
|
4027
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
4028
|
-
};
|
|
4029
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
4030
|
-
const body = parsedOutput.body;
|
|
4031
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
4032
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
4033
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4034
|
-
...deserialized,
|
|
4035
|
-
});
|
|
4036
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
4037
|
-
};
|
|
4038
|
-
const de_TagOptionNotMigratedExceptionRes = async (parsedOutput, context) => {
|
|
4039
|
-
const body = parsedOutput.body;
|
|
4040
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
4041
|
-
const exception = new models_0_1.TagOptionNotMigratedException({
|
|
4042
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4043
|
-
...deserialized,
|
|
4044
|
-
});
|
|
4045
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
4046
|
-
};
|
|
4047
|
-
const se_AssociateServiceActionWithProvisioningArtifactInput = (input, context) => {
|
|
4048
|
-
return (0, smithy_client_1.take)(input, {
|
|
4049
|
-
AcceptLanguage: [],
|
|
4050
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4051
|
-
ProductId: [],
|
|
4052
|
-
ProvisioningArtifactId: [],
|
|
4053
|
-
ServiceActionId: [],
|
|
4054
|
-
});
|
|
4055
|
-
};
|
|
4056
|
-
const se_CopyProductInput = (input, context) => {
|
|
4057
|
-
return (0, smithy_client_1.take)(input, {
|
|
4058
|
-
AcceptLanguage: [],
|
|
4059
|
-
CopyOptions: smithy_client_1._json,
|
|
4060
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4061
|
-
SourceProductArn: [],
|
|
4062
|
-
SourceProvisioningArtifactIdentifiers: smithy_client_1._json,
|
|
4063
|
-
TargetProductId: [],
|
|
4064
|
-
TargetProductName: [],
|
|
4065
|
-
});
|
|
4066
|
-
};
|
|
4067
|
-
const se_CreateConstraintInput = (input, context) => {
|
|
4068
|
-
return (0, smithy_client_1.take)(input, {
|
|
4069
|
-
AcceptLanguage: [],
|
|
4070
|
-
Description: [],
|
|
4071
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4072
|
-
Parameters: [],
|
|
4073
|
-
PortfolioId: [],
|
|
4074
|
-
ProductId: [],
|
|
4075
|
-
Type: [],
|
|
4076
|
-
});
|
|
4077
|
-
};
|
|
4078
|
-
const se_CreatePortfolioInput = (input, context) => {
|
|
4079
|
-
return (0, smithy_client_1.take)(input, {
|
|
4080
|
-
AcceptLanguage: [],
|
|
4081
|
-
Description: [],
|
|
4082
|
-
DisplayName: [],
|
|
4083
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4084
|
-
ProviderName: [],
|
|
4085
|
-
Tags: smithy_client_1._json,
|
|
4086
|
-
});
|
|
4087
|
-
};
|
|
4088
|
-
const se_CreateProductInput = (input, context) => {
|
|
4089
|
-
return (0, smithy_client_1.take)(input, {
|
|
4090
|
-
AcceptLanguage: [],
|
|
4091
|
-
Description: [],
|
|
4092
|
-
Distributor: [],
|
|
4093
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4094
|
-
Name: [],
|
|
4095
|
-
Owner: [],
|
|
4096
|
-
ProductType: [],
|
|
4097
|
-
ProvisioningArtifactParameters: smithy_client_1._json,
|
|
4098
|
-
SourceConnection: smithy_client_1._json,
|
|
4099
|
-
SupportDescription: [],
|
|
4100
|
-
SupportEmail: [],
|
|
4101
|
-
SupportUrl: [],
|
|
4102
|
-
Tags: smithy_client_1._json,
|
|
4103
|
-
});
|
|
4104
|
-
};
|
|
4105
|
-
const se_CreateProvisionedProductPlanInput = (input, context) => {
|
|
4106
|
-
return (0, smithy_client_1.take)(input, {
|
|
4107
|
-
AcceptLanguage: [],
|
|
4108
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4109
|
-
NotificationArns: smithy_client_1._json,
|
|
4110
|
-
PathId: [],
|
|
4111
|
-
PlanName: [],
|
|
4112
|
-
PlanType: [],
|
|
4113
|
-
ProductId: [],
|
|
4114
|
-
ProvisionedProductName: [],
|
|
4115
|
-
ProvisioningArtifactId: [],
|
|
4116
|
-
ProvisioningParameters: smithy_client_1._json,
|
|
4117
|
-
Tags: smithy_client_1._json,
|
|
4118
|
-
});
|
|
4119
|
-
};
|
|
4120
|
-
const se_CreateProvisioningArtifactInput = (input, context) => {
|
|
4121
|
-
return (0, smithy_client_1.take)(input, {
|
|
4122
|
-
AcceptLanguage: [],
|
|
4123
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4124
|
-
Parameters: smithy_client_1._json,
|
|
4125
|
-
ProductId: [],
|
|
4126
|
-
});
|
|
4127
|
-
};
|
|
4128
|
-
const se_CreateServiceActionInput = (input, context) => {
|
|
4129
|
-
return (0, smithy_client_1.take)(input, {
|
|
4130
|
-
AcceptLanguage: [],
|
|
4131
|
-
Definition: smithy_client_1._json,
|
|
4132
|
-
DefinitionType: [],
|
|
4133
|
-
Description: [],
|
|
4134
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4135
|
-
Name: [],
|
|
4136
|
-
});
|
|
4137
|
-
};
|
|
4138
|
-
const se_DeleteServiceActionInput = (input, context) => {
|
|
4139
|
-
return (0, smithy_client_1.take)(input, {
|
|
4140
|
-
AcceptLanguage: [],
|
|
4141
|
-
Id: [],
|
|
4142
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4143
|
-
});
|
|
4144
|
-
};
|
|
4145
|
-
const se_DisassociateServiceActionFromProvisioningArtifactInput = (input, context) => {
|
|
4146
|
-
return (0, smithy_client_1.take)(input, {
|
|
4147
|
-
AcceptLanguage: [],
|
|
4148
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4149
|
-
ProductId: [],
|
|
4150
|
-
ProvisioningArtifactId: [],
|
|
4151
|
-
ServiceActionId: [],
|
|
4152
|
-
});
|
|
4153
|
-
};
|
|
4154
|
-
const se_ExecuteProvisionedProductPlanInput = (input, context) => {
|
|
4155
|
-
return (0, smithy_client_1.take)(input, {
|
|
4156
|
-
AcceptLanguage: [],
|
|
4157
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4158
|
-
PlanId: [],
|
|
4159
|
-
});
|
|
4160
|
-
};
|
|
4161
|
-
const se_ExecuteProvisionedProductServiceActionInput = (input, context) => {
|
|
4162
|
-
return (0, smithy_client_1.take)(input, {
|
|
4163
|
-
AcceptLanguage: [],
|
|
4164
|
-
ExecuteToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4165
|
-
Parameters: smithy_client_1._json,
|
|
4166
|
-
ProvisionedProductId: [],
|
|
4167
|
-
ServiceActionId: [],
|
|
4168
|
-
});
|
|
4169
|
-
};
|
|
4170
|
-
const se_ImportAsProvisionedProductInput = (input, context) => {
|
|
4171
|
-
return (0, smithy_client_1.take)(input, {
|
|
4172
|
-
AcceptLanguage: [],
|
|
4173
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4174
|
-
PhysicalId: [],
|
|
4175
|
-
ProductId: [],
|
|
4176
|
-
ProvisionedProductName: [],
|
|
4177
|
-
ProvisioningArtifactId: [],
|
|
4178
|
-
});
|
|
4179
|
-
};
|
|
4180
|
-
const se_NotifyProvisionProductEngineWorkflowResultInput = (input, context) => {
|
|
4181
|
-
return (0, smithy_client_1.take)(input, {
|
|
4182
|
-
FailureReason: [],
|
|
4183
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4184
|
-
Outputs: smithy_client_1._json,
|
|
4185
|
-
RecordId: [],
|
|
4186
|
-
ResourceIdentifier: smithy_client_1._json,
|
|
4187
|
-
Status: [],
|
|
4188
|
-
WorkflowToken: [],
|
|
4189
|
-
});
|
|
4190
|
-
};
|
|
4191
|
-
const se_NotifyTerminateProvisionedProductEngineWorkflowResultInput = (input, context) => {
|
|
4192
|
-
return (0, smithy_client_1.take)(input, {
|
|
4193
|
-
FailureReason: [],
|
|
4194
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4195
|
-
RecordId: [],
|
|
4196
|
-
Status: [],
|
|
4197
|
-
WorkflowToken: [],
|
|
4198
|
-
});
|
|
4199
|
-
};
|
|
4200
|
-
const se_NotifyUpdateProvisionedProductEngineWorkflowResultInput = (input, context) => {
|
|
4201
|
-
return (0, smithy_client_1.take)(input, {
|
|
4202
|
-
FailureReason: [],
|
|
4203
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4204
|
-
Outputs: smithy_client_1._json,
|
|
4205
|
-
RecordId: [],
|
|
4206
|
-
Status: [],
|
|
4207
|
-
WorkflowToken: [],
|
|
4208
|
-
});
|
|
4209
|
-
};
|
|
4210
|
-
const se_ProvisionProductInput = (input, context) => {
|
|
4211
|
-
return (0, smithy_client_1.take)(input, {
|
|
4212
|
-
AcceptLanguage: [],
|
|
4213
|
-
NotificationArns: smithy_client_1._json,
|
|
4214
|
-
PathId: [],
|
|
4215
|
-
PathName: [],
|
|
4216
|
-
ProductId: [],
|
|
4217
|
-
ProductName: [],
|
|
4218
|
-
ProvisionToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4219
|
-
ProvisionedProductName: [],
|
|
4220
|
-
ProvisioningArtifactId: [],
|
|
4221
|
-
ProvisioningArtifactName: [],
|
|
4222
|
-
ProvisioningParameters: smithy_client_1._json,
|
|
4223
|
-
ProvisioningPreferences: smithy_client_1._json,
|
|
4224
|
-
Tags: smithy_client_1._json,
|
|
4225
|
-
});
|
|
4226
|
-
};
|
|
4227
|
-
const se_TerminateProvisionedProductInput = (input, context) => {
|
|
4228
|
-
return (0, smithy_client_1.take)(input, {
|
|
4229
|
-
AcceptLanguage: [],
|
|
4230
|
-
IgnoreErrors: [],
|
|
4231
|
-
ProvisionedProductId: [],
|
|
4232
|
-
ProvisionedProductName: [],
|
|
4233
|
-
RetainPhysicalResources: [],
|
|
4234
|
-
TerminateToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4235
|
-
});
|
|
4236
|
-
};
|
|
4237
|
-
const se_UpdateProvisionedProductInput = (input, context) => {
|
|
4238
|
-
return (0, smithy_client_1.take)(input, {
|
|
4239
|
-
AcceptLanguage: [],
|
|
4240
|
-
PathId: [],
|
|
4241
|
-
PathName: [],
|
|
4242
|
-
ProductId: [],
|
|
4243
|
-
ProductName: [],
|
|
4244
|
-
ProvisionedProductId: [],
|
|
4245
|
-
ProvisionedProductName: [],
|
|
4246
|
-
ProvisioningArtifactId: [],
|
|
4247
|
-
ProvisioningArtifactName: [],
|
|
4248
|
-
ProvisioningParameters: smithy_client_1._json,
|
|
4249
|
-
ProvisioningPreferences: smithy_client_1._json,
|
|
4250
|
-
Tags: smithy_client_1._json,
|
|
4251
|
-
UpdateToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4252
|
-
});
|
|
4253
|
-
};
|
|
4254
|
-
const se_UpdateProvisionedProductPropertiesInput = (input, context) => {
|
|
4255
|
-
return (0, smithy_client_1.take)(input, {
|
|
4256
|
-
AcceptLanguage: [],
|
|
4257
|
-
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
4258
|
-
ProvisionedProductId: [],
|
|
4259
|
-
ProvisionedProductProperties: smithy_client_1._json,
|
|
4260
|
-
});
|
|
4261
|
-
};
|
|
4262
|
-
const de_CreatePortfolioOutput = (output, context) => {
|
|
4263
|
-
return (0, smithy_client_1.take)(output, {
|
|
4264
|
-
PortfolioDetail: (_) => de_PortfolioDetail(_, context),
|
|
4265
|
-
Tags: smithy_client_1._json,
|
|
4266
|
-
});
|
|
4267
|
-
};
|
|
4268
|
-
const de_CreateProductOutput = (output, context) => {
|
|
4269
|
-
return (0, smithy_client_1.take)(output, {
|
|
4270
|
-
ProductViewDetail: (_) => de_ProductViewDetail(_, context),
|
|
4271
|
-
ProvisioningArtifactDetail: (_) => de_ProvisioningArtifactDetail(_, context),
|
|
4272
|
-
Tags: smithy_client_1._json,
|
|
4273
|
-
});
|
|
4274
|
-
};
|
|
4275
|
-
const de_CreateProvisioningArtifactOutput = (output, context) => {
|
|
4276
|
-
return (0, smithy_client_1.take)(output, {
|
|
4277
|
-
Info: smithy_client_1._json,
|
|
4278
|
-
ProvisioningArtifactDetail: (_) => de_ProvisioningArtifactDetail(_, context),
|
|
4279
|
-
Status: smithy_client_1.expectString,
|
|
4280
|
-
});
|
|
4281
|
-
};
|
|
4282
|
-
const de_DescribePortfolioOutput = (output, context) => {
|
|
4283
|
-
return (0, smithy_client_1.take)(output, {
|
|
4284
|
-
Budgets: smithy_client_1._json,
|
|
4285
|
-
PortfolioDetail: (_) => de_PortfolioDetail(_, context),
|
|
4286
|
-
TagOptions: smithy_client_1._json,
|
|
4287
|
-
Tags: smithy_client_1._json,
|
|
4288
|
-
});
|
|
4289
|
-
};
|
|
4290
|
-
const de_DescribeProductAsAdminOutput = (output, context) => {
|
|
4291
|
-
return (0, smithy_client_1.take)(output, {
|
|
4292
|
-
Budgets: smithy_client_1._json,
|
|
4293
|
-
ProductViewDetail: (_) => de_ProductViewDetail(_, context),
|
|
4294
|
-
ProvisioningArtifactSummaries: (_) => de_ProvisioningArtifactSummaries(_, context),
|
|
4295
|
-
TagOptions: smithy_client_1._json,
|
|
4296
|
-
Tags: smithy_client_1._json,
|
|
4297
|
-
});
|
|
4298
|
-
};
|
|
4299
|
-
const de_DescribeProductOutput = (output, context) => {
|
|
4300
|
-
return (0, smithy_client_1.take)(output, {
|
|
4301
|
-
Budgets: smithy_client_1._json,
|
|
4302
|
-
LaunchPaths: smithy_client_1._json,
|
|
4303
|
-
ProductViewSummary: smithy_client_1._json,
|
|
4304
|
-
ProvisioningArtifacts: (_) => de_ProvisioningArtifacts(_, context),
|
|
4305
|
-
});
|
|
4306
|
-
};
|
|
4307
|
-
const de_DescribeProductViewOutput = (output, context) => {
|
|
4308
|
-
return (0, smithy_client_1.take)(output, {
|
|
4309
|
-
ProductViewSummary: smithy_client_1._json,
|
|
4310
|
-
ProvisioningArtifacts: (_) => de_ProvisioningArtifacts(_, context),
|
|
4311
|
-
});
|
|
4312
|
-
};
|
|
4313
|
-
const de_DescribeProvisionedProductOutput = (output, context) => {
|
|
4314
|
-
return (0, smithy_client_1.take)(output, {
|
|
4315
|
-
CloudWatchDashboards: smithy_client_1._json,
|
|
4316
|
-
ProvisionedProductDetail: (_) => de_ProvisionedProductDetail(_, context),
|
|
4317
|
-
});
|
|
4318
|
-
};
|
|
4319
|
-
const de_DescribeProvisionedProductPlanOutput = (output, context) => {
|
|
4320
|
-
return (0, smithy_client_1.take)(output, {
|
|
4321
|
-
NextPageToken: smithy_client_1.expectString,
|
|
4322
|
-
ProvisionedProductPlanDetails: (_) => de_ProvisionedProductPlanDetails(_, context),
|
|
4323
|
-
ResourceChanges: smithy_client_1._json,
|
|
4324
|
-
});
|
|
4325
|
-
};
|
|
4326
|
-
const de_DescribeProvisioningArtifactOutput = (output, context) => {
|
|
4327
|
-
return (0, smithy_client_1.take)(output, {
|
|
4328
|
-
Info: smithy_client_1._json,
|
|
4329
|
-
ProvisioningArtifactDetail: (_) => de_ProvisioningArtifactDetail(_, context),
|
|
4330
|
-
ProvisioningArtifactParameters: smithy_client_1._json,
|
|
4331
|
-
Status: smithy_client_1.expectString,
|
|
4332
|
-
});
|
|
4333
|
-
};
|
|
4334
|
-
const de_DescribeRecordOutput = (output, context) => {
|
|
4335
|
-
return (0, smithy_client_1.take)(output, {
|
|
4336
|
-
NextPageToken: smithy_client_1.expectString,
|
|
4337
|
-
RecordDetail: (_) => de_RecordDetail(_, context),
|
|
4338
|
-
RecordOutputs: smithy_client_1._json,
|
|
4339
|
-
});
|
|
4340
|
-
};
|
|
4341
|
-
const de_ExecuteProvisionedProductPlanOutput = (output, context) => {
|
|
4342
|
-
return (0, smithy_client_1.take)(output, {
|
|
4343
|
-
RecordDetail: (_) => de_RecordDetail(_, context),
|
|
4344
|
-
});
|
|
4345
|
-
};
|
|
4346
|
-
const de_ExecuteProvisionedProductServiceActionOutput = (output, context) => {
|
|
4347
|
-
return (0, smithy_client_1.take)(output, {
|
|
4348
|
-
RecordDetail: (_) => de_RecordDetail(_, context),
|
|
4349
|
-
});
|
|
4350
|
-
};
|
|
4351
|
-
const de_ImportAsProvisionedProductOutput = (output, context) => {
|
|
4352
|
-
return (0, smithy_client_1.take)(output, {
|
|
4353
|
-
RecordDetail: (_) => de_RecordDetail(_, context),
|
|
4354
|
-
});
|
|
4355
|
-
};
|
|
4356
|
-
const de_LastSync = (output, context) => {
|
|
4357
|
-
return (0, smithy_client_1.take)(output, {
|
|
4358
|
-
LastSuccessfulSyncProvisioningArtifactId: smithy_client_1.expectString,
|
|
4359
|
-
LastSuccessfulSyncTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4360
|
-
LastSyncStatus: smithy_client_1.expectString,
|
|
4361
|
-
LastSyncStatusMessage: smithy_client_1.expectString,
|
|
4362
|
-
LastSyncTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4363
|
-
});
|
|
4364
|
-
};
|
|
4365
|
-
const de_ListAcceptedPortfolioSharesOutput = (output, context) => {
|
|
4366
|
-
return (0, smithy_client_1.take)(output, {
|
|
4367
|
-
NextPageToken: smithy_client_1.expectString,
|
|
4368
|
-
PortfolioDetails: (_) => de_PortfolioDetails(_, context),
|
|
4369
|
-
});
|
|
4370
|
-
};
|
|
4371
|
-
const de_ListPortfoliosForProductOutput = (output, context) => {
|
|
4372
|
-
return (0, smithy_client_1.take)(output, {
|
|
4373
|
-
NextPageToken: smithy_client_1.expectString,
|
|
4374
|
-
PortfolioDetails: (_) => de_PortfolioDetails(_, context),
|
|
4375
|
-
});
|
|
4376
|
-
};
|
|
4377
|
-
const de_ListPortfoliosOutput = (output, context) => {
|
|
4378
|
-
return (0, smithy_client_1.take)(output, {
|
|
4379
|
-
NextPageToken: smithy_client_1.expectString,
|
|
4380
|
-
PortfolioDetails: (_) => de_PortfolioDetails(_, context),
|
|
4381
|
-
});
|
|
4382
|
-
};
|
|
4383
|
-
const de_ListProvisioningArtifactsForServiceActionOutput = (output, context) => {
|
|
4384
|
-
return (0, smithy_client_1.take)(output, {
|
|
4385
|
-
NextPageToken: smithy_client_1.expectString,
|
|
4386
|
-
ProvisioningArtifactViews: (_) => de_ProvisioningArtifactViews(_, context),
|
|
4387
|
-
});
|
|
4388
|
-
};
|
|
4389
|
-
const de_ListProvisioningArtifactsOutput = (output, context) => {
|
|
4390
|
-
return (0, smithy_client_1.take)(output, {
|
|
4391
|
-
NextPageToken: smithy_client_1.expectString,
|
|
4392
|
-
ProvisioningArtifactDetails: (_) => de_ProvisioningArtifactDetails(_, context),
|
|
4393
|
-
});
|
|
4394
|
-
};
|
|
4395
|
-
const de_ListRecordHistoryOutput = (output, context) => {
|
|
4396
|
-
return (0, smithy_client_1.take)(output, {
|
|
4397
|
-
NextPageToken: smithy_client_1.expectString,
|
|
4398
|
-
RecordDetails: (_) => de_RecordDetails(_, context),
|
|
4399
|
-
});
|
|
4400
|
-
};
|
|
4401
|
-
const de_ListResourcesForTagOptionOutput = (output, context) => {
|
|
4402
|
-
return (0, smithy_client_1.take)(output, {
|
|
4403
|
-
PageToken: smithy_client_1.expectString,
|
|
4404
|
-
ResourceDetails: (_) => de_ResourceDetails(_, context),
|
|
4405
|
-
});
|
|
4406
|
-
};
|
|
4407
|
-
const de_PortfolioDetail = (output, context) => {
|
|
4408
|
-
return (0, smithy_client_1.take)(output, {
|
|
4409
|
-
ARN: smithy_client_1.expectString,
|
|
4410
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4411
|
-
Description: smithy_client_1.expectString,
|
|
4412
|
-
DisplayName: smithy_client_1.expectString,
|
|
4413
|
-
Id: smithy_client_1.expectString,
|
|
4414
|
-
ProviderName: smithy_client_1.expectString,
|
|
4415
|
-
});
|
|
4416
|
-
};
|
|
4417
|
-
const de_PortfolioDetails = (output, context) => {
|
|
4418
|
-
const retVal = (output || [])
|
|
4419
|
-
.filter((e) => e != null)
|
|
4420
|
-
.map((entry) => {
|
|
4421
|
-
return de_PortfolioDetail(entry, context);
|
|
4422
|
-
});
|
|
4423
|
-
return retVal;
|
|
4424
|
-
};
|
|
4425
|
-
const de_ProductViewDetail = (output, context) => {
|
|
4426
|
-
return (0, smithy_client_1.take)(output, {
|
|
4427
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4428
|
-
ProductARN: smithy_client_1.expectString,
|
|
4429
|
-
ProductViewSummary: smithy_client_1._json,
|
|
4430
|
-
SourceConnection: (_) => de_SourceConnectionDetail(_, context),
|
|
4431
|
-
Status: smithy_client_1.expectString,
|
|
4432
|
-
});
|
|
4433
|
-
};
|
|
4434
|
-
const de_ProductViewDetails = (output, context) => {
|
|
4435
|
-
const retVal = (output || [])
|
|
4436
|
-
.filter((e) => e != null)
|
|
4437
|
-
.map((entry) => {
|
|
4438
|
-
return de_ProductViewDetail(entry, context);
|
|
4439
|
-
});
|
|
4440
|
-
return retVal;
|
|
4441
|
-
};
|
|
4442
|
-
const de_ProvisionedProductAttribute = (output, context) => {
|
|
4443
|
-
return (0, smithy_client_1.take)(output, {
|
|
4444
|
-
Arn: smithy_client_1.expectString,
|
|
4445
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4446
|
-
Id: smithy_client_1.expectString,
|
|
4447
|
-
IdempotencyToken: smithy_client_1.expectString,
|
|
4448
|
-
LastProvisioningRecordId: smithy_client_1.expectString,
|
|
4449
|
-
LastRecordId: smithy_client_1.expectString,
|
|
4450
|
-
LastSuccessfulProvisioningRecordId: smithy_client_1.expectString,
|
|
4451
|
-
Name: smithy_client_1.expectString,
|
|
4452
|
-
PhysicalId: smithy_client_1.expectString,
|
|
4453
|
-
ProductId: smithy_client_1.expectString,
|
|
4454
|
-
ProductName: smithy_client_1.expectString,
|
|
4455
|
-
ProvisioningArtifactId: smithy_client_1.expectString,
|
|
4456
|
-
ProvisioningArtifactName: smithy_client_1.expectString,
|
|
4457
|
-
Status: smithy_client_1.expectString,
|
|
4458
|
-
StatusMessage: smithy_client_1.expectString,
|
|
4459
|
-
Tags: smithy_client_1._json,
|
|
4460
|
-
Type: smithy_client_1.expectString,
|
|
4461
|
-
UserArn: smithy_client_1.expectString,
|
|
4462
|
-
UserArnSession: smithy_client_1.expectString,
|
|
4463
|
-
});
|
|
4464
|
-
};
|
|
4465
|
-
const de_ProvisionedProductAttributes = (output, context) => {
|
|
4466
|
-
const retVal = (output || [])
|
|
4467
|
-
.filter((e) => e != null)
|
|
4468
|
-
.map((entry) => {
|
|
4469
|
-
return de_ProvisionedProductAttribute(entry, context);
|
|
4470
|
-
});
|
|
4471
|
-
return retVal;
|
|
4472
|
-
};
|
|
4473
|
-
const de_ProvisionedProductDetail = (output, context) => {
|
|
4474
|
-
return (0, smithy_client_1.take)(output, {
|
|
4475
|
-
Arn: smithy_client_1.expectString,
|
|
4476
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4477
|
-
Id: smithy_client_1.expectString,
|
|
4478
|
-
IdempotencyToken: smithy_client_1.expectString,
|
|
4479
|
-
LastProvisioningRecordId: smithy_client_1.expectString,
|
|
4480
|
-
LastRecordId: smithy_client_1.expectString,
|
|
4481
|
-
LastSuccessfulProvisioningRecordId: smithy_client_1.expectString,
|
|
4482
|
-
LaunchRoleArn: smithy_client_1.expectString,
|
|
4483
|
-
Name: smithy_client_1.expectString,
|
|
4484
|
-
ProductId: smithy_client_1.expectString,
|
|
4485
|
-
ProvisioningArtifactId: smithy_client_1.expectString,
|
|
4486
|
-
Status: smithy_client_1.expectString,
|
|
4487
|
-
StatusMessage: smithy_client_1.expectString,
|
|
4488
|
-
Type: smithy_client_1.expectString,
|
|
4489
|
-
});
|
|
4490
|
-
};
|
|
4491
|
-
const de_ProvisionedProductDetails = (output, context) => {
|
|
4492
|
-
const retVal = (output || [])
|
|
4493
|
-
.filter((e) => e != null)
|
|
4494
|
-
.map((entry) => {
|
|
4495
|
-
return de_ProvisionedProductDetail(entry, context);
|
|
4496
|
-
});
|
|
4497
|
-
return retVal;
|
|
4498
|
-
};
|
|
4499
|
-
const de_ProvisionedProductPlanDetails = (output, context) => {
|
|
4500
|
-
return (0, smithy_client_1.take)(output, {
|
|
4501
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4502
|
-
NotificationArns: smithy_client_1._json,
|
|
4503
|
-
PathId: smithy_client_1.expectString,
|
|
4504
|
-
PlanId: smithy_client_1.expectString,
|
|
4505
|
-
PlanName: smithy_client_1.expectString,
|
|
4506
|
-
PlanType: smithy_client_1.expectString,
|
|
4507
|
-
ProductId: smithy_client_1.expectString,
|
|
4508
|
-
ProvisionProductId: smithy_client_1.expectString,
|
|
4509
|
-
ProvisionProductName: smithy_client_1.expectString,
|
|
4510
|
-
ProvisioningArtifactId: smithy_client_1.expectString,
|
|
4511
|
-
ProvisioningParameters: smithy_client_1._json,
|
|
4512
|
-
Status: smithy_client_1.expectString,
|
|
4513
|
-
StatusMessage: smithy_client_1.expectString,
|
|
4514
|
-
Tags: smithy_client_1._json,
|
|
4515
|
-
UpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4516
|
-
});
|
|
4517
|
-
};
|
|
4518
|
-
const de_ProvisioningArtifact = (output, context) => {
|
|
4519
|
-
return (0, smithy_client_1.take)(output, {
|
|
4520
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4521
|
-
Description: smithy_client_1.expectString,
|
|
4522
|
-
Guidance: smithy_client_1.expectString,
|
|
4523
|
-
Id: smithy_client_1.expectString,
|
|
4524
|
-
Name: smithy_client_1.expectString,
|
|
4525
|
-
});
|
|
4526
|
-
};
|
|
4527
|
-
const de_ProvisioningArtifactDetail = (output, context) => {
|
|
4528
|
-
return (0, smithy_client_1.take)(output, {
|
|
4529
|
-
Active: smithy_client_1.expectBoolean,
|
|
4530
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4531
|
-
Description: smithy_client_1.expectString,
|
|
4532
|
-
Guidance: smithy_client_1.expectString,
|
|
4533
|
-
Id: smithy_client_1.expectString,
|
|
4534
|
-
Name: smithy_client_1.expectString,
|
|
4535
|
-
SourceRevision: smithy_client_1.expectString,
|
|
4536
|
-
Type: smithy_client_1.expectString,
|
|
4537
|
-
});
|
|
4538
|
-
};
|
|
4539
|
-
const de_ProvisioningArtifactDetails = (output, context) => {
|
|
4540
|
-
const retVal = (output || [])
|
|
4541
|
-
.filter((e) => e != null)
|
|
4542
|
-
.map((entry) => {
|
|
4543
|
-
return de_ProvisioningArtifactDetail(entry, context);
|
|
4544
|
-
});
|
|
4545
|
-
return retVal;
|
|
4546
|
-
};
|
|
4547
|
-
const de_ProvisioningArtifacts = (output, context) => {
|
|
4548
|
-
const retVal = (output || [])
|
|
4549
|
-
.filter((e) => e != null)
|
|
4550
|
-
.map((entry) => {
|
|
4551
|
-
return de_ProvisioningArtifact(entry, context);
|
|
4552
|
-
});
|
|
4553
|
-
return retVal;
|
|
4554
|
-
};
|
|
4555
|
-
const de_ProvisioningArtifactSummaries = (output, context) => {
|
|
4556
|
-
const retVal = (output || [])
|
|
4557
|
-
.filter((e) => e != null)
|
|
4558
|
-
.map((entry) => {
|
|
4559
|
-
return de_ProvisioningArtifactSummary(entry, context);
|
|
4560
|
-
});
|
|
4561
|
-
return retVal;
|
|
4562
|
-
};
|
|
4563
|
-
const de_ProvisioningArtifactSummary = (output, context) => {
|
|
4564
|
-
return (0, smithy_client_1.take)(output, {
|
|
4565
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4566
|
-
Description: smithy_client_1.expectString,
|
|
4567
|
-
Id: smithy_client_1.expectString,
|
|
4568
|
-
Name: smithy_client_1.expectString,
|
|
4569
|
-
ProvisioningArtifactMetadata: smithy_client_1._json,
|
|
4570
|
-
});
|
|
4571
|
-
};
|
|
4572
|
-
const de_ProvisioningArtifactView = (output, context) => {
|
|
4573
|
-
return (0, smithy_client_1.take)(output, {
|
|
4574
|
-
ProductViewSummary: smithy_client_1._json,
|
|
4575
|
-
ProvisioningArtifact: (_) => de_ProvisioningArtifact(_, context),
|
|
4576
|
-
});
|
|
4577
|
-
};
|
|
4578
|
-
const de_ProvisioningArtifactViews = (output, context) => {
|
|
4579
|
-
const retVal = (output || [])
|
|
4580
|
-
.filter((e) => e != null)
|
|
4581
|
-
.map((entry) => {
|
|
4582
|
-
return de_ProvisioningArtifactView(entry, context);
|
|
4583
|
-
});
|
|
4584
|
-
return retVal;
|
|
4585
|
-
};
|
|
4586
|
-
const de_ProvisionProductOutput = (output, context) => {
|
|
4587
|
-
return (0, smithy_client_1.take)(output, {
|
|
4588
|
-
RecordDetail: (_) => de_RecordDetail(_, context),
|
|
4589
|
-
});
|
|
4590
|
-
};
|
|
4591
|
-
const de_RecordDetail = (output, context) => {
|
|
4592
|
-
return (0, smithy_client_1.take)(output, {
|
|
4593
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4594
|
-
LaunchRoleArn: smithy_client_1.expectString,
|
|
4595
|
-
PathId: smithy_client_1.expectString,
|
|
4596
|
-
ProductId: smithy_client_1.expectString,
|
|
4597
|
-
ProvisionedProductId: smithy_client_1.expectString,
|
|
4598
|
-
ProvisionedProductName: smithy_client_1.expectString,
|
|
4599
|
-
ProvisionedProductType: smithy_client_1.expectString,
|
|
4600
|
-
ProvisioningArtifactId: smithy_client_1.expectString,
|
|
4601
|
-
RecordErrors: smithy_client_1._json,
|
|
4602
|
-
RecordId: smithy_client_1.expectString,
|
|
4603
|
-
RecordTags: smithy_client_1._json,
|
|
4604
|
-
RecordType: smithy_client_1.expectString,
|
|
4605
|
-
Status: smithy_client_1.expectString,
|
|
4606
|
-
UpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4607
|
-
});
|
|
4608
|
-
};
|
|
4609
|
-
const de_RecordDetails = (output, context) => {
|
|
4610
|
-
const retVal = (output || [])
|
|
4611
|
-
.filter((e) => e != null)
|
|
4612
|
-
.map((entry) => {
|
|
4613
|
-
return de_RecordDetail(entry, context);
|
|
4614
|
-
});
|
|
4615
|
-
return retVal;
|
|
4616
|
-
};
|
|
4617
|
-
const de_ResourceDetail = (output, context) => {
|
|
4618
|
-
return (0, smithy_client_1.take)(output, {
|
|
4619
|
-
ARN: smithy_client_1.expectString,
|
|
4620
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4621
|
-
Description: smithy_client_1.expectString,
|
|
4622
|
-
Id: smithy_client_1.expectString,
|
|
4623
|
-
Name: smithy_client_1.expectString,
|
|
4624
|
-
});
|
|
4625
|
-
};
|
|
4626
|
-
const de_ResourceDetails = (output, context) => {
|
|
4627
|
-
const retVal = (output || [])
|
|
4628
|
-
.filter((e) => e != null)
|
|
4629
|
-
.map((entry) => {
|
|
4630
|
-
return de_ResourceDetail(entry, context);
|
|
4631
|
-
});
|
|
4632
|
-
return retVal;
|
|
4633
|
-
};
|
|
4634
|
-
const de_ScanProvisionedProductsOutput = (output, context) => {
|
|
4635
|
-
return (0, smithy_client_1.take)(output, {
|
|
4636
|
-
NextPageToken: smithy_client_1.expectString,
|
|
4637
|
-
ProvisionedProducts: (_) => de_ProvisionedProductDetails(_, context),
|
|
4638
|
-
});
|
|
4639
|
-
};
|
|
4640
|
-
const de_SearchProductsAsAdminOutput = (output, context) => {
|
|
4641
|
-
return (0, smithy_client_1.take)(output, {
|
|
4642
|
-
NextPageToken: smithy_client_1.expectString,
|
|
4643
|
-
ProductViewDetails: (_) => de_ProductViewDetails(_, context),
|
|
4644
|
-
});
|
|
4645
|
-
};
|
|
4646
|
-
const de_SearchProvisionedProductsOutput = (output, context) => {
|
|
4647
|
-
return (0, smithy_client_1.take)(output, {
|
|
4648
|
-
NextPageToken: smithy_client_1.expectString,
|
|
4649
|
-
ProvisionedProducts: (_) => de_ProvisionedProductAttributes(_, context),
|
|
4650
|
-
TotalResultsCount: smithy_client_1.expectInt32,
|
|
4651
|
-
});
|
|
4652
|
-
};
|
|
4653
|
-
const de_SourceConnectionDetail = (output, context) => {
|
|
4654
|
-
return (0, smithy_client_1.take)(output, {
|
|
4655
|
-
ConnectionParameters: smithy_client_1._json,
|
|
4656
|
-
LastSync: (_) => de_LastSync(_, context),
|
|
4657
|
-
Type: smithy_client_1.expectString,
|
|
4658
|
-
});
|
|
4659
|
-
};
|
|
4660
|
-
const de_TerminateProvisionedProductOutput = (output, context) => {
|
|
4661
|
-
return (0, smithy_client_1.take)(output, {
|
|
4662
|
-
RecordDetail: (_) => de_RecordDetail(_, context),
|
|
4663
|
-
});
|
|
4664
|
-
};
|
|
4665
|
-
const de_UpdatePortfolioOutput = (output, context) => {
|
|
4666
|
-
return (0, smithy_client_1.take)(output, {
|
|
4667
|
-
PortfolioDetail: (_) => de_PortfolioDetail(_, context),
|
|
4668
|
-
Tags: smithy_client_1._json,
|
|
4669
|
-
});
|
|
4670
|
-
};
|
|
4671
|
-
const de_UpdateProductOutput = (output, context) => {
|
|
4672
|
-
return (0, smithy_client_1.take)(output, {
|
|
4673
|
-
ProductViewDetail: (_) => de_ProductViewDetail(_, context),
|
|
4674
|
-
Tags: smithy_client_1._json,
|
|
4675
|
-
});
|
|
4676
|
-
};
|
|
4677
|
-
const de_UpdateProvisionedProductOutput = (output, context) => {
|
|
4678
|
-
return (0, smithy_client_1.take)(output, {
|
|
4679
|
-
RecordDetail: (_) => de_RecordDetail(_, context),
|
|
4680
|
-
});
|
|
4681
|
-
};
|
|
4682
|
-
const de_UpdateProvisioningArtifactOutput = (output, context) => {
|
|
4683
|
-
return (0, smithy_client_1.take)(output, {
|
|
4684
|
-
Info: smithy_client_1._json,
|
|
4685
|
-
ProvisioningArtifactDetail: (_) => de_ProvisioningArtifactDetail(_, context),
|
|
4686
|
-
Status: smithy_client_1.expectString,
|
|
4687
|
-
});
|
|
4688
|
-
};
|
|
4689
|
-
const deserializeMetadata = (output) => ({
|
|
4690
|
-
httpStatusCode: output.statusCode,
|
|
4691
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4692
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4693
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4694
|
-
});
|
|
4695
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4696
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ServiceCatalogServiceException_1.ServiceCatalogServiceException);
|
|
4697
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4698
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4699
|
-
const contents = {
|
|
4700
|
-
protocol,
|
|
4701
|
-
hostname,
|
|
4702
|
-
port,
|
|
4703
|
-
method: "POST",
|
|
4704
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
4705
|
-
headers,
|
|
4706
|
-
};
|
|
4707
|
-
if (resolvedHostname !== undefined) {
|
|
4708
|
-
contents.hostname = resolvedHostname;
|
|
4709
|
-
}
|
|
4710
|
-
if (body !== undefined) {
|
|
4711
|
-
contents.body = body;
|
|
4712
|
-
}
|
|
4713
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
4714
|
-
};
|
|
4715
|
-
function sharedHeaders(operation) {
|
|
4716
|
-
return {
|
|
4717
|
-
"content-type": "application/x-amz-json-1.1",
|
|
4718
|
-
"x-amz-target": `AWS242ServiceCatalogService.${operation}`,
|
|
4719
|
-
};
|
|
4720
|
-
}
|
|
4721
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4722
|
-
if (encoded.length) {
|
|
4723
|
-
return JSON.parse(encoded);
|
|
4724
|
-
}
|
|
4725
|
-
return {};
|
|
4726
|
-
});
|
|
4727
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4728
|
-
const value = await parseBody(errorBody, context);
|
|
4729
|
-
value.message = value.message ?? value.Message;
|
|
4730
|
-
return value;
|
|
4731
|
-
};
|
|
4732
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
4733
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4734
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
4735
|
-
let cleanValue = rawValue;
|
|
4736
|
-
if (typeof cleanValue === "number") {
|
|
4737
|
-
cleanValue = cleanValue.toString();
|
|
4738
|
-
}
|
|
4739
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4740
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4741
|
-
}
|
|
4742
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4743
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4744
|
-
}
|
|
4745
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4746
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4747
|
-
}
|
|
4748
|
-
return cleanValue;
|
|
4749
|
-
};
|
|
4750
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4751
|
-
if (headerKey !== undefined) {
|
|
4752
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4753
|
-
}
|
|
4754
|
-
if (data.code !== undefined) {
|
|
4755
|
-
return sanitizeErrorCode(data.code);
|
|
4756
|
-
}
|
|
4757
|
-
if (data["__type"] !== undefined) {
|
|
4758
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4759
|
-
}
|
|
4760
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|