@aws-sdk/client-sso-admin 3.450.0 → 3.453.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/README.md +306 -14
- package/dist-cjs/SSOAdmin.js +72 -0
- package/dist-cjs/commands/CreateApplicationAssignmentCommand.js +51 -0
- package/dist-cjs/commands/CreateApplicationCommand.js +51 -0
- package/dist-cjs/commands/CreateInstanceCommand.js +51 -0
- package/dist-cjs/commands/CreateTrustedTokenIssuerCommand.js +51 -0
- package/dist-cjs/commands/DeleteApplicationAccessScopeCommand.js +51 -0
- package/dist-cjs/commands/DeleteApplicationAssignmentCommand.js +51 -0
- package/dist-cjs/commands/DeleteApplicationAuthenticationMethodCommand.js +51 -0
- package/dist-cjs/commands/DeleteApplicationCommand.js +51 -0
- package/dist-cjs/commands/DeleteApplicationGrantCommand.js +51 -0
- package/dist-cjs/commands/DeleteInstanceCommand.js +51 -0
- package/dist-cjs/commands/DeleteTrustedTokenIssuerCommand.js +51 -0
- package/dist-cjs/commands/DescribeApplicationAssignmentCommand.js +51 -0
- package/dist-cjs/commands/DescribeApplicationCommand.js +51 -0
- package/dist-cjs/commands/DescribeApplicationProviderCommand.js +51 -0
- package/dist-cjs/commands/DescribeInstanceCommand.js +51 -0
- package/dist-cjs/commands/DescribeTrustedTokenIssuerCommand.js +51 -0
- package/dist-cjs/commands/GetApplicationAccessScopeCommand.js +51 -0
- package/dist-cjs/commands/GetApplicationAssignmentConfigurationCommand.js +51 -0
- package/dist-cjs/commands/GetApplicationAuthenticationMethodCommand.js +51 -0
- package/dist-cjs/commands/GetApplicationGrantCommand.js +51 -0
- package/dist-cjs/commands/ListAccountAssignmentsForPrincipalCommand.js +51 -0
- package/dist-cjs/commands/ListApplicationAccessScopesCommand.js +51 -0
- package/dist-cjs/commands/ListApplicationAssignmentsCommand.js +51 -0
- package/dist-cjs/commands/ListApplicationAssignmentsForPrincipalCommand.js +51 -0
- package/dist-cjs/commands/ListApplicationAuthenticationMethodsCommand.js +51 -0
- package/dist-cjs/commands/ListApplicationGrantsCommand.js +51 -0
- package/dist-cjs/commands/ListApplicationProvidersCommand.js +51 -0
- package/dist-cjs/commands/ListApplicationsCommand.js +51 -0
- package/dist-cjs/commands/ListTrustedTokenIssuersCommand.js +51 -0
- package/dist-cjs/commands/PutApplicationAccessScopeCommand.js +51 -0
- package/dist-cjs/commands/PutApplicationAssignmentConfigurationCommand.js +51 -0
- package/dist-cjs/commands/PutApplicationAuthenticationMethodCommand.js +51 -0
- package/dist-cjs/commands/PutApplicationGrantCommand.js +51 -0
- package/dist-cjs/commands/UpdateApplicationCommand.js +51 -0
- package/dist-cjs/commands/UpdateInstanceCommand.js +51 -0
- package/dist-cjs/commands/UpdateTrustedTokenIssuerCommand.js +51 -0
- package/dist-cjs/commands/index.js +36 -0
- package/dist-cjs/models/models_0.js +85 -15
- package/dist-cjs/pagination/ListAccountAssignmentsForPrincipalPaginator.js +29 -0
- package/dist-cjs/pagination/ListApplicationAccessScopesPaginator.js +29 -0
- package/dist-cjs/pagination/ListApplicationAssignmentsForPrincipalPaginator.js +29 -0
- package/dist-cjs/pagination/ListApplicationAssignmentsPaginator.js +29 -0
- package/dist-cjs/pagination/ListApplicationAuthenticationMethodsPaginator.js +28 -0
- package/dist-cjs/pagination/ListApplicationGrantsPaginator.js +28 -0
- package/dist-cjs/pagination/ListApplicationProvidersPaginator.js +29 -0
- package/dist-cjs/pagination/ListApplicationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListTrustedTokenIssuersPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2257 -190
- package/dist-es/SSOAdmin.js +72 -0
- package/dist-es/commands/CreateApplicationAssignmentCommand.js +47 -0
- package/dist-es/commands/CreateApplicationCommand.js +47 -0
- package/dist-es/commands/CreateInstanceCommand.js +47 -0
- package/dist-es/commands/CreateTrustedTokenIssuerCommand.js +47 -0
- package/dist-es/commands/DeleteApplicationAccessScopeCommand.js +47 -0
- package/dist-es/commands/DeleteApplicationAssignmentCommand.js +47 -0
- package/dist-es/commands/DeleteApplicationAuthenticationMethodCommand.js +47 -0
- package/dist-es/commands/DeleteApplicationCommand.js +47 -0
- package/dist-es/commands/DeleteApplicationGrantCommand.js +47 -0
- package/dist-es/commands/DeleteInstanceCommand.js +47 -0
- package/dist-es/commands/DeleteTrustedTokenIssuerCommand.js +47 -0
- package/dist-es/commands/DescribeApplicationAssignmentCommand.js +47 -0
- package/dist-es/commands/DescribeApplicationCommand.js +47 -0
- package/dist-es/commands/DescribeApplicationProviderCommand.js +47 -0
- package/dist-es/commands/DescribeInstanceCommand.js +47 -0
- package/dist-es/commands/DescribeTrustedTokenIssuerCommand.js +47 -0
- package/dist-es/commands/GetApplicationAccessScopeCommand.js +47 -0
- package/dist-es/commands/GetApplicationAssignmentConfigurationCommand.js +47 -0
- package/dist-es/commands/GetApplicationAuthenticationMethodCommand.js +47 -0
- package/dist-es/commands/GetApplicationGrantCommand.js +47 -0
- package/dist-es/commands/ListAccountAssignmentsForPrincipalCommand.js +47 -0
- package/dist-es/commands/ListApplicationAccessScopesCommand.js +47 -0
- package/dist-es/commands/ListApplicationAssignmentsCommand.js +47 -0
- package/dist-es/commands/ListApplicationAssignmentsForPrincipalCommand.js +47 -0
- package/dist-es/commands/ListApplicationAuthenticationMethodsCommand.js +47 -0
- package/dist-es/commands/ListApplicationGrantsCommand.js +47 -0
- package/dist-es/commands/ListApplicationProvidersCommand.js +47 -0
- package/dist-es/commands/ListApplicationsCommand.js +47 -0
- package/dist-es/commands/ListTrustedTokenIssuersCommand.js +47 -0
- package/dist-es/commands/PutApplicationAccessScopeCommand.js +47 -0
- package/dist-es/commands/PutApplicationAssignmentConfigurationCommand.js +47 -0
- package/dist-es/commands/PutApplicationAuthenticationMethodCommand.js +47 -0
- package/dist-es/commands/PutApplicationGrantCommand.js +47 -0
- package/dist-es/commands/UpdateApplicationCommand.js +47 -0
- package/dist-es/commands/UpdateInstanceCommand.js +47 -0
- package/dist-es/commands/UpdateTrustedTokenIssuerCommand.js +47 -0
- package/dist-es/commands/index.js +36 -0
- package/dist-es/models/models_0.js +82 -12
- package/dist-es/pagination/ListAccountAssignmentsForPrincipalPaginator.js +25 -0
- package/dist-es/pagination/ListApplicationAccessScopesPaginator.js +25 -0
- package/dist-es/pagination/ListApplicationAssignmentsForPrincipalPaginator.js +25 -0
- package/dist-es/pagination/ListApplicationAssignmentsPaginator.js +25 -0
- package/dist-es/pagination/ListApplicationAuthenticationMethodsPaginator.js +24 -0
- package/dist-es/pagination/ListApplicationGrantsPaginator.js +24 -0
- package/dist-es/pagination/ListApplicationProvidersPaginator.js +25 -0
- package/dist-es/pagination/ListApplicationsPaginator.js +25 -0
- package/dist-es/pagination/ListTrustedTokenIssuersPaginator.js +25 -0
- package/dist-es/pagination/index.js +9 -0
- package/dist-es/protocols/Aws_json1_1.js +2156 -162
- package/dist-types/SSOAdmin.d.ts +271 -15
- package/dist-types/SSOAdminClient.d.ts +57 -17
- package/dist-types/commands/AttachCustomerManagedPolicyReferenceToPermissionSetCommand.d.ts +8 -8
- package/dist-types/commands/AttachManagedPolicyToPermissionSetCommand.d.ts +13 -13
- package/dist-types/commands/CreateAccountAssignmentCommand.d.ts +21 -19
- package/dist-types/commands/CreateApplicationAssignmentCommand.d.ts +100 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +118 -0
- package/dist-types/commands/CreateInstanceAccessControlAttributeConfigurationCommand.d.ts +12 -11
- package/dist-types/commands/CreateInstanceCommand.d.ts +115 -0
- package/dist-types/commands/CreatePermissionSetCommand.d.ts +8 -8
- package/dist-types/commands/CreateTrustedTokenIssuerCommand.d.ts +117 -0
- package/dist-types/commands/DeleteAccountAssignmentCommand.d.ts +12 -11
- package/dist-types/commands/DeleteApplicationAccessScopeCommand.d.ts +95 -0
- package/dist-types/commands/DeleteApplicationAssignmentCommand.d.ts +97 -0
- package/dist-types/commands/DeleteApplicationAuthenticationMethodCommand.d.ts +95 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +95 -0
- package/dist-types/commands/DeleteApplicationGrantCommand.d.ts +95 -0
- package/dist-types/commands/DeleteInlinePolicyFromPermissionSetCommand.d.ts +7 -7
- package/dist-types/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.d.ts +10 -10
- package/dist-types/commands/DeleteInstanceCommand.d.ts +93 -0
- package/dist-types/commands/DeletePermissionSetCommand.d.ts +7 -7
- package/dist-types/commands/DeletePermissionsBoundaryFromPermissionSetCommand.d.ts +9 -3
- package/dist-types/commands/DeleteTrustedTokenIssuerCommand.d.ts +97 -0
- package/dist-types/commands/DescribeAccountAssignmentCreationStatusCommand.d.ts +3 -3
- package/dist-types/commands/DescribeAccountAssignmentDeletionStatusCommand.d.ts +3 -3
- package/dist-types/commands/DescribeApplicationAssignmentCommand.d.ts +96 -0
- package/dist-types/commands/DescribeApplicationCommand.d.ts +104 -0
- package/dist-types/commands/DescribeApplicationProviderCommand.d.ts +104 -0
- package/dist-types/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.d.ts +6 -5
- package/dist-types/commands/DescribeInstanceCommand.d.ts +110 -0
- package/dist-types/commands/DescribePermissionSetCommand.d.ts +3 -3
- package/dist-types/commands/DescribePermissionSetProvisioningStatusCommand.d.ts +3 -3
- package/dist-types/commands/DescribeTrustedTokenIssuerCommand.d.ts +101 -0
- package/dist-types/commands/DetachCustomerManagedPolicyReferenceFromPermissionSetCommand.d.ts +7 -7
- package/dist-types/commands/DetachManagedPolicyFromPermissionSetCommand.d.ts +9 -8
- package/dist-types/commands/GetApplicationAccessScopeCommand.d.ts +94 -0
- package/dist-types/commands/GetApplicationAssignmentConfigurationCommand.d.ts +90 -0
- package/dist-types/commands/GetApplicationAuthenticationMethodCommand.d.ts +95 -0
- package/dist-types/commands/GetApplicationGrantCommand.d.ts +107 -0
- package/dist-types/commands/GetInlinePolicyForPermissionSetCommand.d.ts +3 -3
- package/dist-types/commands/GetPermissionsBoundaryForPermissionSetCommand.d.ts +3 -3
- package/dist-types/commands/ListAccountAssignmentCreationStatusCommand.d.ts +5 -5
- package/dist-types/commands/ListAccountAssignmentDeletionStatusCommand.d.ts +5 -5
- package/dist-types/commands/ListAccountAssignmentsCommand.d.ts +5 -4
- package/dist-types/commands/ListAccountAssignmentsForPrincipalCommand.d.ts +106 -0
- package/dist-types/commands/ListAccountsForProvisionedPermissionSetCommand.d.ts +3 -3
- package/dist-types/commands/ListApplicationAccessScopesCommand.d.ts +100 -0
- package/dist-types/commands/ListApplicationAssignmentsCommand.d.ts +99 -0
- package/dist-types/commands/ListApplicationAssignmentsForPrincipalCommand.d.ts +104 -0
- package/dist-types/commands/ListApplicationAuthenticationMethodsCommand.d.ts +101 -0
- package/dist-types/commands/ListApplicationGrantsCommand.d.ts +113 -0
- package/dist-types/commands/ListApplicationProvidersCommand.d.ts +107 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +114 -0
- package/dist-types/commands/ListCustomerManagedPolicyReferencesInPermissionSetCommand.d.ts +3 -3
- package/dist-types/commands/ListInstancesCommand.d.ts +9 -4
- package/dist-types/commands/ListManagedPoliciesInPermissionSetCommand.d.ts +3 -3
- package/dist-types/commands/ListPermissionSetProvisioningStatusCommand.d.ts +4 -4
- package/dist-types/commands/ListPermissionSetsCommand.d.ts +3 -3
- package/dist-types/commands/ListPermissionSetsProvisionedToAccountCommand.d.ts +5 -4
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -4
- package/dist-types/commands/ListTrustedTokenIssuersCommand.d.ts +96 -0
- package/dist-types/commands/ProvisionPermissionSetCommand.d.ts +8 -8
- package/dist-types/commands/PutApplicationAccessScopeCommand.d.ts +99 -0
- package/dist-types/commands/PutApplicationAssignmentConfigurationCommand.d.ts +97 -0
- package/dist-types/commands/PutApplicationAuthenticationMethodCommand.d.ts +100 -0
- package/dist-types/commands/PutApplicationGrantCommand.d.ts +112 -0
- package/dist-types/commands/PutInlinePolicyToPermissionSetCommand.d.ts +13 -12
- package/dist-types/commands/PutPermissionsBoundaryToPermissionSetCommand.d.ts +7 -7
- package/dist-types/commands/TagResourceCommand.d.ts +9 -9
- package/dist-types/commands/UntagResourceCommand.d.ts +8 -8
- package/dist-types/commands/UpdateApplicationCommand.d.ts +103 -0
- package/dist-types/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.d.ts +12 -12
- package/dist-types/commands/UpdateInstanceCommand.d.ts +93 -0
- package/dist-types/commands/UpdatePermissionSetCommand.d.ts +7 -7
- package/dist-types/commands/UpdateTrustedTokenIssuerCommand.d.ts +105 -0
- package/dist-types/commands/index.d.ts +36 -0
- package/dist-types/index.d.ts +19 -15
- package/dist-types/models/models_0.d.ts +2327 -276
- package/dist-types/pagination/ListAccountAssignmentsForPrincipalPaginator.d.ts +7 -0
- package/dist-types/pagination/ListApplicationAccessScopesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListApplicationAssignmentsForPrincipalPaginator.d.ts +7 -0
- package/dist-types/pagination/ListApplicationAssignmentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListApplicationAuthenticationMethodsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListApplicationGrantsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListApplicationProvidersPaginator.d.ts +7 -0
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTrustedTokenIssuersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +9 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +324 -0
- package/dist-types/ts3.4/SSOAdmin.d.ts +660 -0
- package/dist-types/ts3.4/SSOAdminClient.d.ts +218 -2
- package/dist-types/ts3.4/commands/CreateApplicationAssignmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateInstanceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateTrustedTokenIssuerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteApplicationAccessScopeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteApplicationAssignmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteApplicationAuthenticationMethodCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteApplicationGrantCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteInstanceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteTrustedTokenIssuerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeApplicationAssignmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeApplicationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DescribeApplicationProviderCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeInstanceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeTrustedTokenIssuerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetApplicationAccessScopeCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetApplicationAssignmentConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetApplicationAuthenticationMethodCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetApplicationGrantCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListAccountAssignmentsForPrincipalCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListApplicationAccessScopesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListApplicationAssignmentsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListApplicationAssignmentsForPrincipalCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListApplicationAuthenticationMethodsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListApplicationGrantsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListApplicationProvidersCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListTrustedTokenIssuersCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutApplicationAccessScopeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutApplicationAssignmentConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutApplicationAuthenticationMethodCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutApplicationGrantCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateInstanceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateTrustedTokenIssuerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +36 -0
- package/dist-types/ts3.4/models/models_0.d.ts +547 -23
- package/dist-types/ts3.4/pagination/ListAccountAssignmentsForPrincipalPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListApplicationAccessScopesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListApplicationAssignmentsForPrincipalPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListApplicationAssignmentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListApplicationAuthenticationMethodsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListApplicationGrantsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListApplicationProvidersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTrustedTokenIssuersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +9 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +432 -0
- package/package.json +38 -36
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
4
|
+
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
+
import { AccessDeniedException, AuthenticationMethod, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
6
|
import { SSOAdminServiceException as __BaseException } from "../models/SSOAdminServiceException";
|
|
5
7
|
export const se_AttachCustomerManagedPolicyReferenceToPermissionSetCommand = async (input, context) => {
|
|
6
8
|
const headers = sharedHeaders("AttachCustomerManagedPolicyReferenceToPermissionSet");
|
|
@@ -20,6 +22,24 @@ export const se_CreateAccountAssignmentCommand = async (input, context) => {
|
|
|
20
22
|
body = JSON.stringify(_json(input));
|
|
21
23
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
24
|
};
|
|
25
|
+
export const se_CreateApplicationCommand = async (input, context) => {
|
|
26
|
+
const headers = sharedHeaders("CreateApplication");
|
|
27
|
+
let body;
|
|
28
|
+
body = JSON.stringify(se_CreateApplicationRequest(input, context));
|
|
29
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
+
};
|
|
31
|
+
export const se_CreateApplicationAssignmentCommand = async (input, context) => {
|
|
32
|
+
const headers = sharedHeaders("CreateApplicationAssignment");
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify(_json(input));
|
|
35
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
+
};
|
|
37
|
+
export const se_CreateInstanceCommand = async (input, context) => {
|
|
38
|
+
const headers = sharedHeaders("CreateInstance");
|
|
39
|
+
let body;
|
|
40
|
+
body = JSON.stringify(se_CreateInstanceRequest(input, context));
|
|
41
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
+
};
|
|
23
43
|
export const se_CreateInstanceAccessControlAttributeConfigurationCommand = async (input, context) => {
|
|
24
44
|
const headers = sharedHeaders("CreateInstanceAccessControlAttributeConfiguration");
|
|
25
45
|
let body;
|
|
@@ -32,18 +52,60 @@ export const se_CreatePermissionSetCommand = async (input, context) => {
|
|
|
32
52
|
body = JSON.stringify(_json(input));
|
|
33
53
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
54
|
};
|
|
55
|
+
export const se_CreateTrustedTokenIssuerCommand = async (input, context) => {
|
|
56
|
+
const headers = sharedHeaders("CreateTrustedTokenIssuer");
|
|
57
|
+
let body;
|
|
58
|
+
body = JSON.stringify(se_CreateTrustedTokenIssuerRequest(input, context));
|
|
59
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
|
+
};
|
|
35
61
|
export const se_DeleteAccountAssignmentCommand = async (input, context) => {
|
|
36
62
|
const headers = sharedHeaders("DeleteAccountAssignment");
|
|
37
63
|
let body;
|
|
38
64
|
body = JSON.stringify(_json(input));
|
|
39
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
66
|
};
|
|
67
|
+
export const se_DeleteApplicationCommand = async (input, context) => {
|
|
68
|
+
const headers = sharedHeaders("DeleteApplication");
|
|
69
|
+
let body;
|
|
70
|
+
body = JSON.stringify(_json(input));
|
|
71
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
+
};
|
|
73
|
+
export const se_DeleteApplicationAccessScopeCommand = async (input, context) => {
|
|
74
|
+
const headers = sharedHeaders("DeleteApplicationAccessScope");
|
|
75
|
+
let body;
|
|
76
|
+
body = JSON.stringify(_json(input));
|
|
77
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
+
};
|
|
79
|
+
export const se_DeleteApplicationAssignmentCommand = async (input, context) => {
|
|
80
|
+
const headers = sharedHeaders("DeleteApplicationAssignment");
|
|
81
|
+
let body;
|
|
82
|
+
body = JSON.stringify(_json(input));
|
|
83
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
+
};
|
|
85
|
+
export const se_DeleteApplicationAuthenticationMethodCommand = async (input, context) => {
|
|
86
|
+
const headers = sharedHeaders("DeleteApplicationAuthenticationMethod");
|
|
87
|
+
let body;
|
|
88
|
+
body = JSON.stringify(_json(input));
|
|
89
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
+
};
|
|
91
|
+
export const se_DeleteApplicationGrantCommand = async (input, context) => {
|
|
92
|
+
const headers = sharedHeaders("DeleteApplicationGrant");
|
|
93
|
+
let body;
|
|
94
|
+
body = JSON.stringify(_json(input));
|
|
95
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
|
+
};
|
|
41
97
|
export const se_DeleteInlinePolicyFromPermissionSetCommand = async (input, context) => {
|
|
42
98
|
const headers = sharedHeaders("DeleteInlinePolicyFromPermissionSet");
|
|
43
99
|
let body;
|
|
44
100
|
body = JSON.stringify(_json(input));
|
|
45
101
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
102
|
};
|
|
103
|
+
export const se_DeleteInstanceCommand = async (input, context) => {
|
|
104
|
+
const headers = sharedHeaders("DeleteInstance");
|
|
105
|
+
let body;
|
|
106
|
+
body = JSON.stringify(_json(input));
|
|
107
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
|
+
};
|
|
47
109
|
export const se_DeleteInstanceAccessControlAttributeConfigurationCommand = async (input, context) => {
|
|
48
110
|
const headers = sharedHeaders("DeleteInstanceAccessControlAttributeConfiguration");
|
|
49
111
|
let body;
|
|
@@ -62,6 +124,12 @@ export const se_DeletePermissionSetCommand = async (input, context) => {
|
|
|
62
124
|
body = JSON.stringify(_json(input));
|
|
63
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
126
|
};
|
|
127
|
+
export const se_DeleteTrustedTokenIssuerCommand = async (input, context) => {
|
|
128
|
+
const headers = sharedHeaders("DeleteTrustedTokenIssuer");
|
|
129
|
+
let body;
|
|
130
|
+
body = JSON.stringify(_json(input));
|
|
131
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
+
};
|
|
65
133
|
export const se_DescribeAccountAssignmentCreationStatusCommand = async (input, context) => {
|
|
66
134
|
const headers = sharedHeaders("DescribeAccountAssignmentCreationStatus");
|
|
67
135
|
let body;
|
|
@@ -74,6 +142,30 @@ export const se_DescribeAccountAssignmentDeletionStatusCommand = async (input, c
|
|
|
74
142
|
body = JSON.stringify(_json(input));
|
|
75
143
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
144
|
};
|
|
145
|
+
export const se_DescribeApplicationCommand = async (input, context) => {
|
|
146
|
+
const headers = sharedHeaders("DescribeApplication");
|
|
147
|
+
let body;
|
|
148
|
+
body = JSON.stringify(_json(input));
|
|
149
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
|
+
};
|
|
151
|
+
export const se_DescribeApplicationAssignmentCommand = async (input, context) => {
|
|
152
|
+
const headers = sharedHeaders("DescribeApplicationAssignment");
|
|
153
|
+
let body;
|
|
154
|
+
body = JSON.stringify(_json(input));
|
|
155
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
+
};
|
|
157
|
+
export const se_DescribeApplicationProviderCommand = async (input, context) => {
|
|
158
|
+
const headers = sharedHeaders("DescribeApplicationProvider");
|
|
159
|
+
let body;
|
|
160
|
+
body = JSON.stringify(_json(input));
|
|
161
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
+
};
|
|
163
|
+
export const se_DescribeInstanceCommand = async (input, context) => {
|
|
164
|
+
const headers = sharedHeaders("DescribeInstance");
|
|
165
|
+
let body;
|
|
166
|
+
body = JSON.stringify(_json(input));
|
|
167
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
+
};
|
|
77
169
|
export const se_DescribeInstanceAccessControlAttributeConfigurationCommand = async (input, context) => {
|
|
78
170
|
const headers = sharedHeaders("DescribeInstanceAccessControlAttributeConfiguration");
|
|
79
171
|
let body;
|
|
@@ -92,6 +184,12 @@ export const se_DescribePermissionSetProvisioningStatusCommand = async (input, c
|
|
|
92
184
|
body = JSON.stringify(_json(input));
|
|
93
185
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
186
|
};
|
|
187
|
+
export const se_DescribeTrustedTokenIssuerCommand = async (input, context) => {
|
|
188
|
+
const headers = sharedHeaders("DescribeTrustedTokenIssuer");
|
|
189
|
+
let body;
|
|
190
|
+
body = JSON.stringify(_json(input));
|
|
191
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
192
|
+
};
|
|
95
193
|
export const se_DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = async (input, context) => {
|
|
96
194
|
const headers = sharedHeaders("DetachCustomerManagedPolicyReferenceFromPermissionSet");
|
|
97
195
|
let body;
|
|
@@ -104,6 +202,30 @@ export const se_DetachManagedPolicyFromPermissionSetCommand = async (input, cont
|
|
|
104
202
|
body = JSON.stringify(_json(input));
|
|
105
203
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
204
|
};
|
|
205
|
+
export const se_GetApplicationAccessScopeCommand = async (input, context) => {
|
|
206
|
+
const headers = sharedHeaders("GetApplicationAccessScope");
|
|
207
|
+
let body;
|
|
208
|
+
body = JSON.stringify(_json(input));
|
|
209
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
|
+
};
|
|
211
|
+
export const se_GetApplicationAssignmentConfigurationCommand = async (input, context) => {
|
|
212
|
+
const headers = sharedHeaders("GetApplicationAssignmentConfiguration");
|
|
213
|
+
let body;
|
|
214
|
+
body = JSON.stringify(_json(input));
|
|
215
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
|
+
};
|
|
217
|
+
export const se_GetApplicationAuthenticationMethodCommand = async (input, context) => {
|
|
218
|
+
const headers = sharedHeaders("GetApplicationAuthenticationMethod");
|
|
219
|
+
let body;
|
|
220
|
+
body = JSON.stringify(_json(input));
|
|
221
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
222
|
+
};
|
|
223
|
+
export const se_GetApplicationGrantCommand = async (input, context) => {
|
|
224
|
+
const headers = sharedHeaders("GetApplicationGrant");
|
|
225
|
+
let body;
|
|
226
|
+
body = JSON.stringify(_json(input));
|
|
227
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
|
+
};
|
|
107
229
|
export const se_GetInlinePolicyForPermissionSetCommand = async (input, context) => {
|
|
108
230
|
const headers = sharedHeaders("GetInlinePolicyForPermissionSet");
|
|
109
231
|
let body;
|
|
@@ -134,12 +256,60 @@ export const se_ListAccountAssignmentsCommand = async (input, context) => {
|
|
|
134
256
|
body = JSON.stringify(_json(input));
|
|
135
257
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
258
|
};
|
|
259
|
+
export const se_ListAccountAssignmentsForPrincipalCommand = async (input, context) => {
|
|
260
|
+
const headers = sharedHeaders("ListAccountAssignmentsForPrincipal");
|
|
261
|
+
let body;
|
|
262
|
+
body = JSON.stringify(_json(input));
|
|
263
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
264
|
+
};
|
|
137
265
|
export const se_ListAccountsForProvisionedPermissionSetCommand = async (input, context) => {
|
|
138
266
|
const headers = sharedHeaders("ListAccountsForProvisionedPermissionSet");
|
|
139
267
|
let body;
|
|
140
268
|
body = JSON.stringify(_json(input));
|
|
141
269
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
270
|
};
|
|
271
|
+
export const se_ListApplicationAccessScopesCommand = async (input, context) => {
|
|
272
|
+
const headers = sharedHeaders("ListApplicationAccessScopes");
|
|
273
|
+
let body;
|
|
274
|
+
body = JSON.stringify(_json(input));
|
|
275
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
276
|
+
};
|
|
277
|
+
export const se_ListApplicationAssignmentsCommand = async (input, context) => {
|
|
278
|
+
const headers = sharedHeaders("ListApplicationAssignments");
|
|
279
|
+
let body;
|
|
280
|
+
body = JSON.stringify(_json(input));
|
|
281
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
+
};
|
|
283
|
+
export const se_ListApplicationAssignmentsForPrincipalCommand = async (input, context) => {
|
|
284
|
+
const headers = sharedHeaders("ListApplicationAssignmentsForPrincipal");
|
|
285
|
+
let body;
|
|
286
|
+
body = JSON.stringify(_json(input));
|
|
287
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
+
};
|
|
289
|
+
export const se_ListApplicationAuthenticationMethodsCommand = async (input, context) => {
|
|
290
|
+
const headers = sharedHeaders("ListApplicationAuthenticationMethods");
|
|
291
|
+
let body;
|
|
292
|
+
body = JSON.stringify(_json(input));
|
|
293
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
|
+
};
|
|
295
|
+
export const se_ListApplicationGrantsCommand = async (input, context) => {
|
|
296
|
+
const headers = sharedHeaders("ListApplicationGrants");
|
|
297
|
+
let body;
|
|
298
|
+
body = JSON.stringify(_json(input));
|
|
299
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
300
|
+
};
|
|
301
|
+
export const se_ListApplicationProvidersCommand = async (input, context) => {
|
|
302
|
+
const headers = sharedHeaders("ListApplicationProviders");
|
|
303
|
+
let body;
|
|
304
|
+
body = JSON.stringify(_json(input));
|
|
305
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
306
|
+
};
|
|
307
|
+
export const se_ListApplicationsCommand = async (input, context) => {
|
|
308
|
+
const headers = sharedHeaders("ListApplications");
|
|
309
|
+
let body;
|
|
310
|
+
body = JSON.stringify(_json(input));
|
|
311
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
312
|
+
};
|
|
143
313
|
export const se_ListCustomerManagedPolicyReferencesInPermissionSetCommand = async (input, context) => {
|
|
144
314
|
const headers = sharedHeaders("ListCustomerManagedPolicyReferencesInPermissionSet");
|
|
145
315
|
let body;
|
|
@@ -182,12 +352,42 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
182
352
|
body = JSON.stringify(_json(input));
|
|
183
353
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
354
|
};
|
|
355
|
+
export const se_ListTrustedTokenIssuersCommand = async (input, context) => {
|
|
356
|
+
const headers = sharedHeaders("ListTrustedTokenIssuers");
|
|
357
|
+
let body;
|
|
358
|
+
body = JSON.stringify(_json(input));
|
|
359
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
360
|
+
};
|
|
185
361
|
export const se_ProvisionPermissionSetCommand = async (input, context) => {
|
|
186
362
|
const headers = sharedHeaders("ProvisionPermissionSet");
|
|
187
363
|
let body;
|
|
188
364
|
body = JSON.stringify(_json(input));
|
|
189
365
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
366
|
};
|
|
367
|
+
export const se_PutApplicationAccessScopeCommand = async (input, context) => {
|
|
368
|
+
const headers = sharedHeaders("PutApplicationAccessScope");
|
|
369
|
+
let body;
|
|
370
|
+
body = JSON.stringify(_json(input));
|
|
371
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
372
|
+
};
|
|
373
|
+
export const se_PutApplicationAssignmentConfigurationCommand = async (input, context) => {
|
|
374
|
+
const headers = sharedHeaders("PutApplicationAssignmentConfiguration");
|
|
375
|
+
let body;
|
|
376
|
+
body = JSON.stringify(_json(input));
|
|
377
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
378
|
+
};
|
|
379
|
+
export const se_PutApplicationAuthenticationMethodCommand = async (input, context) => {
|
|
380
|
+
const headers = sharedHeaders("PutApplicationAuthenticationMethod");
|
|
381
|
+
let body;
|
|
382
|
+
body = JSON.stringify(se_PutApplicationAuthenticationMethodRequest(input, context));
|
|
383
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
384
|
+
};
|
|
385
|
+
export const se_PutApplicationGrantCommand = async (input, context) => {
|
|
386
|
+
const headers = sharedHeaders("PutApplicationGrant");
|
|
387
|
+
let body;
|
|
388
|
+
body = JSON.stringify(_json(input));
|
|
389
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
390
|
+
};
|
|
191
391
|
export const se_PutInlinePolicyToPermissionSetCommand = async (input, context) => {
|
|
192
392
|
const headers = sharedHeaders("PutInlinePolicyToPermissionSet");
|
|
193
393
|
let body;
|
|
@@ -212,6 +412,18 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
212
412
|
body = JSON.stringify(_json(input));
|
|
213
413
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
214
414
|
};
|
|
415
|
+
export const se_UpdateApplicationCommand = async (input, context) => {
|
|
416
|
+
const headers = sharedHeaders("UpdateApplication");
|
|
417
|
+
let body;
|
|
418
|
+
body = JSON.stringify(_json(input));
|
|
419
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
420
|
+
};
|
|
421
|
+
export const se_UpdateInstanceCommand = async (input, context) => {
|
|
422
|
+
const headers = sharedHeaders("UpdateInstance");
|
|
423
|
+
let body;
|
|
424
|
+
body = JSON.stringify(_json(input));
|
|
425
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
426
|
+
};
|
|
215
427
|
export const se_UpdateInstanceAccessControlAttributeConfigurationCommand = async (input, context) => {
|
|
216
428
|
const headers = sharedHeaders("UpdateInstanceAccessControlAttributeConfiguration");
|
|
217
429
|
let body;
|
|
@@ -224,6 +436,12 @@ export const se_UpdatePermissionSetCommand = async (input, context) => {
|
|
|
224
436
|
body = JSON.stringify(_json(input));
|
|
225
437
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
438
|
};
|
|
439
|
+
export const se_UpdateTrustedTokenIssuerCommand = async (input, context) => {
|
|
440
|
+
const headers = sharedHeaders("UpdateTrustedTokenIssuer");
|
|
441
|
+
let body;
|
|
442
|
+
body = JSON.stringify(_json(input));
|
|
443
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
444
|
+
};
|
|
227
445
|
export const de_AttachCustomerManagedPolicyReferenceToPermissionSetCommand = async (output, context) => {
|
|
228
446
|
if (output.statusCode >= 300) {
|
|
229
447
|
return de_AttachCustomerManagedPolicyReferenceToPermissionSetCommandError(output, context);
|
|
@@ -374,9 +592,9 @@ const de_CreateAccountAssignmentCommandError = async (output, context) => {
|
|
|
374
592
|
});
|
|
375
593
|
}
|
|
376
594
|
};
|
|
377
|
-
export const
|
|
595
|
+
export const de_CreateApplicationCommand = async (output, context) => {
|
|
378
596
|
if (output.statusCode >= 300) {
|
|
379
|
-
return
|
|
597
|
+
return de_CreateApplicationCommandError(output, context);
|
|
380
598
|
}
|
|
381
599
|
const data = await parseBody(output.body, context);
|
|
382
600
|
let contents = {};
|
|
@@ -387,7 +605,7 @@ export const de_CreateInstanceAccessControlAttributeConfigurationCommand = async
|
|
|
387
605
|
};
|
|
388
606
|
return response;
|
|
389
607
|
};
|
|
390
|
-
const
|
|
608
|
+
const de_CreateApplicationCommandError = async (output, context) => {
|
|
391
609
|
const parsedOutput = {
|
|
392
610
|
...output,
|
|
393
611
|
body: await parseErrorBody(output.body, context),
|
|
@@ -406,6 +624,9 @@ const de_CreateInstanceAccessControlAttributeConfigurationCommandError = async (
|
|
|
406
624
|
case "ResourceNotFoundException":
|
|
407
625
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
408
626
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
627
|
+
case "ServiceQuotaExceededException":
|
|
628
|
+
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
629
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
409
630
|
case "ThrottlingException":
|
|
410
631
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
411
632
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -421,20 +642,20 @@ const de_CreateInstanceAccessControlAttributeConfigurationCommandError = async (
|
|
|
421
642
|
});
|
|
422
643
|
}
|
|
423
644
|
};
|
|
424
|
-
export const
|
|
645
|
+
export const de_CreateApplicationAssignmentCommand = async (output, context) => {
|
|
425
646
|
if (output.statusCode >= 300) {
|
|
426
|
-
return
|
|
647
|
+
return de_CreateApplicationAssignmentCommandError(output, context);
|
|
427
648
|
}
|
|
428
649
|
const data = await parseBody(output.body, context);
|
|
429
650
|
let contents = {};
|
|
430
|
-
contents =
|
|
651
|
+
contents = _json(data);
|
|
431
652
|
const response = {
|
|
432
653
|
$metadata: deserializeMetadata(output),
|
|
433
654
|
...contents,
|
|
434
655
|
};
|
|
435
656
|
return response;
|
|
436
657
|
};
|
|
437
|
-
const
|
|
658
|
+
const de_CreateApplicationAssignmentCommandError = async (output, context) => {
|
|
438
659
|
const parsedOutput = {
|
|
439
660
|
...output,
|
|
440
661
|
body: await parseErrorBody(output.body, context),
|
|
@@ -471,20 +692,20 @@ const de_CreatePermissionSetCommandError = async (output, context) => {
|
|
|
471
692
|
});
|
|
472
693
|
}
|
|
473
694
|
};
|
|
474
|
-
export const
|
|
695
|
+
export const de_CreateInstanceCommand = async (output, context) => {
|
|
475
696
|
if (output.statusCode >= 300) {
|
|
476
|
-
return
|
|
697
|
+
return de_CreateInstanceCommandError(output, context);
|
|
477
698
|
}
|
|
478
699
|
const data = await parseBody(output.body, context);
|
|
479
700
|
let contents = {};
|
|
480
|
-
contents =
|
|
701
|
+
contents = _json(data);
|
|
481
702
|
const response = {
|
|
482
703
|
$metadata: deserializeMetadata(output),
|
|
483
704
|
...contents,
|
|
484
705
|
};
|
|
485
706
|
return response;
|
|
486
707
|
};
|
|
487
|
-
const
|
|
708
|
+
const de_CreateInstanceCommandError = async (output, context) => {
|
|
488
709
|
const parsedOutput = {
|
|
489
710
|
...output,
|
|
490
711
|
body: await parseErrorBody(output.body, context),
|
|
@@ -500,9 +721,9 @@ const de_DeleteAccountAssignmentCommandError = async (output, context) => {
|
|
|
500
721
|
case "InternalServerException":
|
|
501
722
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
502
723
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
503
|
-
case "
|
|
504
|
-
case "com.amazonaws.ssoadmin#
|
|
505
|
-
throw await
|
|
724
|
+
case "ServiceQuotaExceededException":
|
|
725
|
+
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
726
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
506
727
|
case "ThrottlingException":
|
|
507
728
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
508
729
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -518,9 +739,9 @@ const de_DeleteAccountAssignmentCommandError = async (output, context) => {
|
|
|
518
739
|
});
|
|
519
740
|
}
|
|
520
741
|
};
|
|
521
|
-
export const
|
|
742
|
+
export const de_CreateInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
522
743
|
if (output.statusCode >= 300) {
|
|
523
|
-
return
|
|
744
|
+
return de_CreateInstanceAccessControlAttributeConfigurationCommandError(output, context);
|
|
524
745
|
}
|
|
525
746
|
const data = await parseBody(output.body, context);
|
|
526
747
|
let contents = {};
|
|
@@ -531,7 +752,7 @@ export const de_DeleteInlinePolicyFromPermissionSetCommand = async (output, cont
|
|
|
531
752
|
};
|
|
532
753
|
return response;
|
|
533
754
|
};
|
|
534
|
-
const
|
|
755
|
+
const de_CreateInstanceAccessControlAttributeConfigurationCommandError = async (output, context) => {
|
|
535
756
|
const parsedOutput = {
|
|
536
757
|
...output,
|
|
537
758
|
body: await parseErrorBody(output.body, context),
|
|
@@ -565,20 +786,20 @@ const de_DeleteInlinePolicyFromPermissionSetCommandError = async (output, contex
|
|
|
565
786
|
});
|
|
566
787
|
}
|
|
567
788
|
};
|
|
568
|
-
export const
|
|
789
|
+
export const de_CreatePermissionSetCommand = async (output, context) => {
|
|
569
790
|
if (output.statusCode >= 300) {
|
|
570
|
-
return
|
|
791
|
+
return de_CreatePermissionSetCommandError(output, context);
|
|
571
792
|
}
|
|
572
793
|
const data = await parseBody(output.body, context);
|
|
573
794
|
let contents = {};
|
|
574
|
-
contents =
|
|
795
|
+
contents = de_CreatePermissionSetResponse(data, context);
|
|
575
796
|
const response = {
|
|
576
797
|
$metadata: deserializeMetadata(output),
|
|
577
798
|
...contents,
|
|
578
799
|
};
|
|
579
800
|
return response;
|
|
580
801
|
};
|
|
581
|
-
const
|
|
802
|
+
const de_CreatePermissionSetCommandError = async (output, context) => {
|
|
582
803
|
const parsedOutput = {
|
|
583
804
|
...output,
|
|
584
805
|
body: await parseErrorBody(output.body, context),
|
|
@@ -597,6 +818,9 @@ const de_DeleteInstanceAccessControlAttributeConfigurationCommandError = async (
|
|
|
597
818
|
case "ResourceNotFoundException":
|
|
598
819
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
599
820
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
821
|
+
case "ServiceQuotaExceededException":
|
|
822
|
+
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
823
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
600
824
|
case "ThrottlingException":
|
|
601
825
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
602
826
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -612,9 +836,9 @@ const de_DeleteInstanceAccessControlAttributeConfigurationCommandError = async (
|
|
|
612
836
|
});
|
|
613
837
|
}
|
|
614
838
|
};
|
|
615
|
-
export const
|
|
839
|
+
export const de_CreateTrustedTokenIssuerCommand = async (output, context) => {
|
|
616
840
|
if (output.statusCode >= 300) {
|
|
617
|
-
return
|
|
841
|
+
return de_CreateTrustedTokenIssuerCommandError(output, context);
|
|
618
842
|
}
|
|
619
843
|
const data = await parseBody(output.body, context);
|
|
620
844
|
let contents = {};
|
|
@@ -625,7 +849,7 @@ export const de_DeletePermissionsBoundaryFromPermissionSetCommand = async (outpu
|
|
|
625
849
|
};
|
|
626
850
|
return response;
|
|
627
851
|
};
|
|
628
|
-
const
|
|
852
|
+
const de_CreateTrustedTokenIssuerCommandError = async (output, context) => {
|
|
629
853
|
const parsedOutput = {
|
|
630
854
|
...output,
|
|
631
855
|
body: await parseErrorBody(output.body, context),
|
|
@@ -635,12 +859,15 @@ const de_DeletePermissionsBoundaryFromPermissionSetCommandError = async (output,
|
|
|
635
859
|
case "AccessDeniedException":
|
|
636
860
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
637
861
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
862
|
+
case "ConflictException":
|
|
863
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
864
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
638
865
|
case "InternalServerException":
|
|
639
866
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
640
867
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
641
|
-
case "
|
|
642
|
-
case "com.amazonaws.ssoadmin#
|
|
643
|
-
throw await
|
|
868
|
+
case "ServiceQuotaExceededException":
|
|
869
|
+
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
870
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
644
871
|
case "ThrottlingException":
|
|
645
872
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
646
873
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -656,20 +883,20 @@ const de_DeletePermissionsBoundaryFromPermissionSetCommandError = async (output,
|
|
|
656
883
|
});
|
|
657
884
|
}
|
|
658
885
|
};
|
|
659
|
-
export const
|
|
886
|
+
export const de_DeleteAccountAssignmentCommand = async (output, context) => {
|
|
660
887
|
if (output.statusCode >= 300) {
|
|
661
|
-
return
|
|
888
|
+
return de_DeleteAccountAssignmentCommandError(output, context);
|
|
662
889
|
}
|
|
663
890
|
const data = await parseBody(output.body, context);
|
|
664
891
|
let contents = {};
|
|
665
|
-
contents =
|
|
892
|
+
contents = de_DeleteAccountAssignmentResponse(data, context);
|
|
666
893
|
const response = {
|
|
667
894
|
$metadata: deserializeMetadata(output),
|
|
668
895
|
...contents,
|
|
669
896
|
};
|
|
670
897
|
return response;
|
|
671
898
|
};
|
|
672
|
-
const
|
|
899
|
+
const de_DeleteAccountAssignmentCommandError = async (output, context) => {
|
|
673
900
|
const parsedOutput = {
|
|
674
901
|
...output,
|
|
675
902
|
body: await parseErrorBody(output.body, context),
|
|
@@ -703,20 +930,20 @@ const de_DeletePermissionSetCommandError = async (output, context) => {
|
|
|
703
930
|
});
|
|
704
931
|
}
|
|
705
932
|
};
|
|
706
|
-
export const
|
|
933
|
+
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
707
934
|
if (output.statusCode >= 300) {
|
|
708
|
-
return
|
|
935
|
+
return de_DeleteApplicationCommandError(output, context);
|
|
709
936
|
}
|
|
710
937
|
const data = await parseBody(output.body, context);
|
|
711
938
|
let contents = {};
|
|
712
|
-
contents =
|
|
939
|
+
contents = _json(data);
|
|
713
940
|
const response = {
|
|
714
941
|
$metadata: deserializeMetadata(output),
|
|
715
942
|
...contents,
|
|
716
943
|
};
|
|
717
944
|
return response;
|
|
718
945
|
};
|
|
719
|
-
const
|
|
946
|
+
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
720
947
|
const parsedOutput = {
|
|
721
948
|
...output,
|
|
722
949
|
body: await parseErrorBody(output.body, context),
|
|
@@ -726,6 +953,9 @@ const de_DescribeAccountAssignmentCreationStatusCommandError = async (output, co
|
|
|
726
953
|
case "AccessDeniedException":
|
|
727
954
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
728
955
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
956
|
+
case "ConflictException":
|
|
957
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
958
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
729
959
|
case "InternalServerException":
|
|
730
960
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
731
961
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -747,20 +977,17 @@ const de_DescribeAccountAssignmentCreationStatusCommandError = async (output, co
|
|
|
747
977
|
});
|
|
748
978
|
}
|
|
749
979
|
};
|
|
750
|
-
export const
|
|
980
|
+
export const de_DeleteApplicationAccessScopeCommand = async (output, context) => {
|
|
751
981
|
if (output.statusCode >= 300) {
|
|
752
|
-
return
|
|
982
|
+
return de_DeleteApplicationAccessScopeCommandError(output, context);
|
|
753
983
|
}
|
|
754
|
-
|
|
755
|
-
let contents = {};
|
|
756
|
-
contents = de_DescribeAccountAssignmentDeletionStatusResponse(data, context);
|
|
984
|
+
await collectBody(output.body, context);
|
|
757
985
|
const response = {
|
|
758
986
|
$metadata: deserializeMetadata(output),
|
|
759
|
-
...contents,
|
|
760
987
|
};
|
|
761
988
|
return response;
|
|
762
989
|
};
|
|
763
|
-
const
|
|
990
|
+
const de_DeleteApplicationAccessScopeCommandError = async (output, context) => {
|
|
764
991
|
const parsedOutput = {
|
|
765
992
|
...output,
|
|
766
993
|
body: await parseErrorBody(output.body, context),
|
|
@@ -770,6 +997,9 @@ const de_DescribeAccountAssignmentDeletionStatusCommandError = async (output, co
|
|
|
770
997
|
case "AccessDeniedException":
|
|
771
998
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
772
999
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1000
|
+
case "ConflictException":
|
|
1001
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1002
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
773
1003
|
case "InternalServerException":
|
|
774
1004
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
775
1005
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -791,9 +1021,9 @@ const de_DescribeAccountAssignmentDeletionStatusCommandError = async (output, co
|
|
|
791
1021
|
});
|
|
792
1022
|
}
|
|
793
1023
|
};
|
|
794
|
-
export const
|
|
1024
|
+
export const de_DeleteApplicationAssignmentCommand = async (output, context) => {
|
|
795
1025
|
if (output.statusCode >= 300) {
|
|
796
|
-
return
|
|
1026
|
+
return de_DeleteApplicationAssignmentCommandError(output, context);
|
|
797
1027
|
}
|
|
798
1028
|
const data = await parseBody(output.body, context);
|
|
799
1029
|
let contents = {};
|
|
@@ -804,7 +1034,7 @@ export const de_DescribeInstanceAccessControlAttributeConfigurationCommand = asy
|
|
|
804
1034
|
};
|
|
805
1035
|
return response;
|
|
806
1036
|
};
|
|
807
|
-
const
|
|
1037
|
+
const de_DeleteApplicationAssignmentCommandError = async (output, context) => {
|
|
808
1038
|
const parsedOutput = {
|
|
809
1039
|
...output,
|
|
810
1040
|
body: await parseErrorBody(output.body, context),
|
|
@@ -814,6 +1044,9 @@ const de_DescribeInstanceAccessControlAttributeConfigurationCommandError = async
|
|
|
814
1044
|
case "AccessDeniedException":
|
|
815
1045
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
816
1046
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1047
|
+
case "ConflictException":
|
|
1048
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1049
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
817
1050
|
case "InternalServerException":
|
|
818
1051
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
819
1052
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -835,20 +1068,17 @@ const de_DescribeInstanceAccessControlAttributeConfigurationCommandError = async
|
|
|
835
1068
|
});
|
|
836
1069
|
}
|
|
837
1070
|
};
|
|
838
|
-
export const
|
|
1071
|
+
export const de_DeleteApplicationAuthenticationMethodCommand = async (output, context) => {
|
|
839
1072
|
if (output.statusCode >= 300) {
|
|
840
|
-
return
|
|
1073
|
+
return de_DeleteApplicationAuthenticationMethodCommandError(output, context);
|
|
841
1074
|
}
|
|
842
|
-
|
|
843
|
-
let contents = {};
|
|
844
|
-
contents = de_DescribePermissionSetResponse(data, context);
|
|
1075
|
+
await collectBody(output.body, context);
|
|
845
1076
|
const response = {
|
|
846
1077
|
$metadata: deserializeMetadata(output),
|
|
847
|
-
...contents,
|
|
848
1078
|
};
|
|
849
1079
|
return response;
|
|
850
1080
|
};
|
|
851
|
-
const
|
|
1081
|
+
const de_DeleteApplicationAuthenticationMethodCommandError = async (output, context) => {
|
|
852
1082
|
const parsedOutput = {
|
|
853
1083
|
...output,
|
|
854
1084
|
body: await parseErrorBody(output.body, context),
|
|
@@ -858,6 +1088,9 @@ const de_DescribePermissionSetCommandError = async (output, context) => {
|
|
|
858
1088
|
case "AccessDeniedException":
|
|
859
1089
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
860
1090
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1091
|
+
case "ConflictException":
|
|
1092
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1093
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
861
1094
|
case "InternalServerException":
|
|
862
1095
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
863
1096
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -879,20 +1112,17 @@ const de_DescribePermissionSetCommandError = async (output, context) => {
|
|
|
879
1112
|
});
|
|
880
1113
|
}
|
|
881
1114
|
};
|
|
882
|
-
export const
|
|
1115
|
+
export const de_DeleteApplicationGrantCommand = async (output, context) => {
|
|
883
1116
|
if (output.statusCode >= 300) {
|
|
884
|
-
return
|
|
1117
|
+
return de_DeleteApplicationGrantCommandError(output, context);
|
|
885
1118
|
}
|
|
886
|
-
|
|
887
|
-
let contents = {};
|
|
888
|
-
contents = de_DescribePermissionSetProvisioningStatusResponse(data, context);
|
|
1119
|
+
await collectBody(output.body, context);
|
|
889
1120
|
const response = {
|
|
890
1121
|
$metadata: deserializeMetadata(output),
|
|
891
|
-
...contents,
|
|
892
1122
|
};
|
|
893
1123
|
return response;
|
|
894
1124
|
};
|
|
895
|
-
const
|
|
1125
|
+
const de_DeleteApplicationGrantCommandError = async (output, context) => {
|
|
896
1126
|
const parsedOutput = {
|
|
897
1127
|
...output,
|
|
898
1128
|
body: await parseErrorBody(output.body, context),
|
|
@@ -902,6 +1132,9 @@ const de_DescribePermissionSetProvisioningStatusCommandError = async (output, co
|
|
|
902
1132
|
case "AccessDeniedException":
|
|
903
1133
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
904
1134
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1135
|
+
case "ConflictException":
|
|
1136
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1137
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
905
1138
|
case "InternalServerException":
|
|
906
1139
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
907
1140
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -923,9 +1156,9 @@ const de_DescribePermissionSetProvisioningStatusCommandError = async (output, co
|
|
|
923
1156
|
});
|
|
924
1157
|
}
|
|
925
1158
|
};
|
|
926
|
-
export const
|
|
1159
|
+
export const de_DeleteInlinePolicyFromPermissionSetCommand = async (output, context) => {
|
|
927
1160
|
if (output.statusCode >= 300) {
|
|
928
|
-
return
|
|
1161
|
+
return de_DeleteInlinePolicyFromPermissionSetCommandError(output, context);
|
|
929
1162
|
}
|
|
930
1163
|
const data = await parseBody(output.body, context);
|
|
931
1164
|
let contents = {};
|
|
@@ -936,7 +1169,7 @@ export const de_DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = a
|
|
|
936
1169
|
};
|
|
937
1170
|
return response;
|
|
938
1171
|
};
|
|
939
|
-
const
|
|
1172
|
+
const de_DeleteInlinePolicyFromPermissionSetCommandError = async (output, context) => {
|
|
940
1173
|
const parsedOutput = {
|
|
941
1174
|
...output,
|
|
942
1175
|
body: await parseErrorBody(output.body, context),
|
|
@@ -970,20 +1203,1613 @@ const de_DetachCustomerManagedPolicyReferenceFromPermissionSetCommandError = asy
|
|
|
970
1203
|
});
|
|
971
1204
|
}
|
|
972
1205
|
};
|
|
973
|
-
export const
|
|
1206
|
+
export const de_DeleteInstanceCommand = async (output, context) => {
|
|
1207
|
+
if (output.statusCode >= 300) {
|
|
1208
|
+
return de_DeleteInstanceCommandError(output, context);
|
|
1209
|
+
}
|
|
1210
|
+
const data = await parseBody(output.body, context);
|
|
1211
|
+
let contents = {};
|
|
1212
|
+
contents = _json(data);
|
|
1213
|
+
const response = {
|
|
1214
|
+
$metadata: deserializeMetadata(output),
|
|
1215
|
+
...contents,
|
|
1216
|
+
};
|
|
1217
|
+
return response;
|
|
1218
|
+
};
|
|
1219
|
+
const de_DeleteInstanceCommandError = async (output, context) => {
|
|
1220
|
+
const parsedOutput = {
|
|
1221
|
+
...output,
|
|
1222
|
+
body: await parseErrorBody(output.body, context),
|
|
1223
|
+
};
|
|
1224
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1225
|
+
switch (errorCode) {
|
|
1226
|
+
case "AccessDeniedException":
|
|
1227
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1228
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1229
|
+
case "ConflictException":
|
|
1230
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1231
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1232
|
+
case "InternalServerException":
|
|
1233
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1234
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1235
|
+
case "ThrottlingException":
|
|
1236
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1237
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1238
|
+
case "ValidationException":
|
|
1239
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1240
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1241
|
+
default:
|
|
1242
|
+
const parsedBody = parsedOutput.body;
|
|
1243
|
+
return throwDefaultError({
|
|
1244
|
+
output,
|
|
1245
|
+
parsedBody,
|
|
1246
|
+
errorCode,
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
};
|
|
1250
|
+
export const de_DeleteInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
1251
|
+
if (output.statusCode >= 300) {
|
|
1252
|
+
return de_DeleteInstanceAccessControlAttributeConfigurationCommandError(output, context);
|
|
1253
|
+
}
|
|
1254
|
+
const data = await parseBody(output.body, context);
|
|
1255
|
+
let contents = {};
|
|
1256
|
+
contents = _json(data);
|
|
1257
|
+
const response = {
|
|
1258
|
+
$metadata: deserializeMetadata(output),
|
|
1259
|
+
...contents,
|
|
1260
|
+
};
|
|
1261
|
+
return response;
|
|
1262
|
+
};
|
|
1263
|
+
const de_DeleteInstanceAccessControlAttributeConfigurationCommandError = async (output, context) => {
|
|
1264
|
+
const parsedOutput = {
|
|
1265
|
+
...output,
|
|
1266
|
+
body: await parseErrorBody(output.body, context),
|
|
1267
|
+
};
|
|
1268
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1269
|
+
switch (errorCode) {
|
|
1270
|
+
case "AccessDeniedException":
|
|
1271
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1272
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1273
|
+
case "ConflictException":
|
|
1274
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1275
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1276
|
+
case "InternalServerException":
|
|
1277
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1278
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1279
|
+
case "ResourceNotFoundException":
|
|
1280
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1281
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1282
|
+
case "ThrottlingException":
|
|
1283
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1284
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1285
|
+
case "ValidationException":
|
|
1286
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1287
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1288
|
+
default:
|
|
1289
|
+
const parsedBody = parsedOutput.body;
|
|
1290
|
+
return throwDefaultError({
|
|
1291
|
+
output,
|
|
1292
|
+
parsedBody,
|
|
1293
|
+
errorCode,
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
};
|
|
1297
|
+
export const de_DeletePermissionsBoundaryFromPermissionSetCommand = async (output, context) => {
|
|
1298
|
+
if (output.statusCode >= 300) {
|
|
1299
|
+
return de_DeletePermissionsBoundaryFromPermissionSetCommandError(output, context);
|
|
1300
|
+
}
|
|
1301
|
+
const data = await parseBody(output.body, context);
|
|
1302
|
+
let contents = {};
|
|
1303
|
+
contents = _json(data);
|
|
1304
|
+
const response = {
|
|
1305
|
+
$metadata: deserializeMetadata(output),
|
|
1306
|
+
...contents,
|
|
1307
|
+
};
|
|
1308
|
+
return response;
|
|
1309
|
+
};
|
|
1310
|
+
const de_DeletePermissionsBoundaryFromPermissionSetCommandError = async (output, context) => {
|
|
1311
|
+
const parsedOutput = {
|
|
1312
|
+
...output,
|
|
1313
|
+
body: await parseErrorBody(output.body, context),
|
|
1314
|
+
};
|
|
1315
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
|
+
switch (errorCode) {
|
|
1317
|
+
case "AccessDeniedException":
|
|
1318
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1319
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1320
|
+
case "ConflictException":
|
|
1321
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1322
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1323
|
+
case "InternalServerException":
|
|
1324
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1325
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1326
|
+
case "ResourceNotFoundException":
|
|
1327
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1328
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1329
|
+
case "ThrottlingException":
|
|
1330
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1331
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1332
|
+
case "ValidationException":
|
|
1333
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1334
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1335
|
+
default:
|
|
1336
|
+
const parsedBody = parsedOutput.body;
|
|
1337
|
+
return throwDefaultError({
|
|
1338
|
+
output,
|
|
1339
|
+
parsedBody,
|
|
1340
|
+
errorCode,
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
};
|
|
1344
|
+
export const de_DeletePermissionSetCommand = async (output, context) => {
|
|
1345
|
+
if (output.statusCode >= 300) {
|
|
1346
|
+
return de_DeletePermissionSetCommandError(output, context);
|
|
1347
|
+
}
|
|
1348
|
+
const data = await parseBody(output.body, context);
|
|
1349
|
+
let contents = {};
|
|
1350
|
+
contents = _json(data);
|
|
1351
|
+
const response = {
|
|
1352
|
+
$metadata: deserializeMetadata(output),
|
|
1353
|
+
...contents,
|
|
1354
|
+
};
|
|
1355
|
+
return response;
|
|
1356
|
+
};
|
|
1357
|
+
const de_DeletePermissionSetCommandError = async (output, context) => {
|
|
1358
|
+
const parsedOutput = {
|
|
1359
|
+
...output,
|
|
1360
|
+
body: await parseErrorBody(output.body, context),
|
|
1361
|
+
};
|
|
1362
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1363
|
+
switch (errorCode) {
|
|
1364
|
+
case "AccessDeniedException":
|
|
1365
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1366
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1367
|
+
case "ConflictException":
|
|
1368
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1369
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1370
|
+
case "InternalServerException":
|
|
1371
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1372
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1373
|
+
case "ResourceNotFoundException":
|
|
1374
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1375
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1376
|
+
case "ThrottlingException":
|
|
1377
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1378
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1379
|
+
case "ValidationException":
|
|
1380
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1381
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1382
|
+
default:
|
|
1383
|
+
const parsedBody = parsedOutput.body;
|
|
1384
|
+
return throwDefaultError({
|
|
1385
|
+
output,
|
|
1386
|
+
parsedBody,
|
|
1387
|
+
errorCode,
|
|
1388
|
+
});
|
|
1389
|
+
}
|
|
1390
|
+
};
|
|
1391
|
+
export const de_DeleteTrustedTokenIssuerCommand = async (output, context) => {
|
|
1392
|
+
if (output.statusCode >= 300) {
|
|
1393
|
+
return de_DeleteTrustedTokenIssuerCommandError(output, context);
|
|
1394
|
+
}
|
|
1395
|
+
const data = await parseBody(output.body, context);
|
|
1396
|
+
let contents = {};
|
|
1397
|
+
contents = _json(data);
|
|
1398
|
+
const response = {
|
|
1399
|
+
$metadata: deserializeMetadata(output),
|
|
1400
|
+
...contents,
|
|
1401
|
+
};
|
|
1402
|
+
return response;
|
|
1403
|
+
};
|
|
1404
|
+
const de_DeleteTrustedTokenIssuerCommandError = async (output, context) => {
|
|
1405
|
+
const parsedOutput = {
|
|
1406
|
+
...output,
|
|
1407
|
+
body: await parseErrorBody(output.body, context),
|
|
1408
|
+
};
|
|
1409
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
|
+
switch (errorCode) {
|
|
1411
|
+
case "AccessDeniedException":
|
|
1412
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1413
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1414
|
+
case "ConflictException":
|
|
1415
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1416
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1417
|
+
case "InternalServerException":
|
|
1418
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1419
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1420
|
+
case "ResourceNotFoundException":
|
|
1421
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1422
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1423
|
+
case "ThrottlingException":
|
|
1424
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1425
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1426
|
+
case "ValidationException":
|
|
1427
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1428
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1429
|
+
default:
|
|
1430
|
+
const parsedBody = parsedOutput.body;
|
|
1431
|
+
return throwDefaultError({
|
|
1432
|
+
output,
|
|
1433
|
+
parsedBody,
|
|
1434
|
+
errorCode,
|
|
1435
|
+
});
|
|
1436
|
+
}
|
|
1437
|
+
};
|
|
1438
|
+
export const de_DescribeAccountAssignmentCreationStatusCommand = async (output, context) => {
|
|
1439
|
+
if (output.statusCode >= 300) {
|
|
1440
|
+
return de_DescribeAccountAssignmentCreationStatusCommandError(output, context);
|
|
1441
|
+
}
|
|
1442
|
+
const data = await parseBody(output.body, context);
|
|
1443
|
+
let contents = {};
|
|
1444
|
+
contents = de_DescribeAccountAssignmentCreationStatusResponse(data, context);
|
|
1445
|
+
const response = {
|
|
1446
|
+
$metadata: deserializeMetadata(output),
|
|
1447
|
+
...contents,
|
|
1448
|
+
};
|
|
1449
|
+
return response;
|
|
1450
|
+
};
|
|
1451
|
+
const de_DescribeAccountAssignmentCreationStatusCommandError = async (output, context) => {
|
|
1452
|
+
const parsedOutput = {
|
|
1453
|
+
...output,
|
|
1454
|
+
body: await parseErrorBody(output.body, context),
|
|
1455
|
+
};
|
|
1456
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1457
|
+
switch (errorCode) {
|
|
1458
|
+
case "AccessDeniedException":
|
|
1459
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1460
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1461
|
+
case "InternalServerException":
|
|
1462
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1463
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1464
|
+
case "ResourceNotFoundException":
|
|
1465
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1466
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1467
|
+
case "ThrottlingException":
|
|
1468
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1469
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1470
|
+
case "ValidationException":
|
|
1471
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1472
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1473
|
+
default:
|
|
1474
|
+
const parsedBody = parsedOutput.body;
|
|
1475
|
+
return throwDefaultError({
|
|
1476
|
+
output,
|
|
1477
|
+
parsedBody,
|
|
1478
|
+
errorCode,
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
};
|
|
1482
|
+
export const de_DescribeAccountAssignmentDeletionStatusCommand = async (output, context) => {
|
|
1483
|
+
if (output.statusCode >= 300) {
|
|
1484
|
+
return de_DescribeAccountAssignmentDeletionStatusCommandError(output, context);
|
|
1485
|
+
}
|
|
1486
|
+
const data = await parseBody(output.body, context);
|
|
1487
|
+
let contents = {};
|
|
1488
|
+
contents = de_DescribeAccountAssignmentDeletionStatusResponse(data, context);
|
|
1489
|
+
const response = {
|
|
1490
|
+
$metadata: deserializeMetadata(output),
|
|
1491
|
+
...contents,
|
|
1492
|
+
};
|
|
1493
|
+
return response;
|
|
1494
|
+
};
|
|
1495
|
+
const de_DescribeAccountAssignmentDeletionStatusCommandError = async (output, context) => {
|
|
1496
|
+
const parsedOutput = {
|
|
1497
|
+
...output,
|
|
1498
|
+
body: await parseErrorBody(output.body, context),
|
|
1499
|
+
};
|
|
1500
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
|
+
switch (errorCode) {
|
|
1502
|
+
case "AccessDeniedException":
|
|
1503
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1504
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1505
|
+
case "InternalServerException":
|
|
1506
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1507
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1508
|
+
case "ResourceNotFoundException":
|
|
1509
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1510
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1511
|
+
case "ThrottlingException":
|
|
1512
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1513
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1514
|
+
case "ValidationException":
|
|
1515
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1516
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1517
|
+
default:
|
|
1518
|
+
const parsedBody = parsedOutput.body;
|
|
1519
|
+
return throwDefaultError({
|
|
1520
|
+
output,
|
|
1521
|
+
parsedBody,
|
|
1522
|
+
errorCode,
|
|
1523
|
+
});
|
|
1524
|
+
}
|
|
1525
|
+
};
|
|
1526
|
+
export const de_DescribeApplicationCommand = async (output, context) => {
|
|
1527
|
+
if (output.statusCode >= 300) {
|
|
1528
|
+
return de_DescribeApplicationCommandError(output, context);
|
|
1529
|
+
}
|
|
1530
|
+
const data = await parseBody(output.body, context);
|
|
1531
|
+
let contents = {};
|
|
1532
|
+
contents = de_DescribeApplicationResponse(data, context);
|
|
1533
|
+
const response = {
|
|
1534
|
+
$metadata: deserializeMetadata(output),
|
|
1535
|
+
...contents,
|
|
1536
|
+
};
|
|
1537
|
+
return response;
|
|
1538
|
+
};
|
|
1539
|
+
const de_DescribeApplicationCommandError = async (output, context) => {
|
|
1540
|
+
const parsedOutput = {
|
|
1541
|
+
...output,
|
|
1542
|
+
body: await parseErrorBody(output.body, context),
|
|
1543
|
+
};
|
|
1544
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1545
|
+
switch (errorCode) {
|
|
1546
|
+
case "AccessDeniedException":
|
|
1547
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1548
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1549
|
+
case "InternalServerException":
|
|
1550
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1551
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1552
|
+
case "ResourceNotFoundException":
|
|
1553
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1554
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1555
|
+
case "ThrottlingException":
|
|
1556
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1557
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1558
|
+
case "ValidationException":
|
|
1559
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1560
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1561
|
+
default:
|
|
1562
|
+
const parsedBody = parsedOutput.body;
|
|
1563
|
+
return throwDefaultError({
|
|
1564
|
+
output,
|
|
1565
|
+
parsedBody,
|
|
1566
|
+
errorCode,
|
|
1567
|
+
});
|
|
1568
|
+
}
|
|
1569
|
+
};
|
|
1570
|
+
export const de_DescribeApplicationAssignmentCommand = async (output, context) => {
|
|
1571
|
+
if (output.statusCode >= 300) {
|
|
1572
|
+
return de_DescribeApplicationAssignmentCommandError(output, context);
|
|
1573
|
+
}
|
|
1574
|
+
const data = await parseBody(output.body, context);
|
|
1575
|
+
let contents = {};
|
|
1576
|
+
contents = _json(data);
|
|
1577
|
+
const response = {
|
|
1578
|
+
$metadata: deserializeMetadata(output),
|
|
1579
|
+
...contents,
|
|
1580
|
+
};
|
|
1581
|
+
return response;
|
|
1582
|
+
};
|
|
1583
|
+
const de_DescribeApplicationAssignmentCommandError = async (output, context) => {
|
|
1584
|
+
const parsedOutput = {
|
|
1585
|
+
...output,
|
|
1586
|
+
body: await parseErrorBody(output.body, context),
|
|
1587
|
+
};
|
|
1588
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1589
|
+
switch (errorCode) {
|
|
1590
|
+
case "AccessDeniedException":
|
|
1591
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1592
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1593
|
+
case "InternalServerException":
|
|
1594
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1595
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1596
|
+
case "ResourceNotFoundException":
|
|
1597
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1598
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1599
|
+
case "ThrottlingException":
|
|
1600
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1601
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1602
|
+
case "ValidationException":
|
|
1603
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1604
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1605
|
+
default:
|
|
1606
|
+
const parsedBody = parsedOutput.body;
|
|
1607
|
+
return throwDefaultError({
|
|
1608
|
+
output,
|
|
1609
|
+
parsedBody,
|
|
1610
|
+
errorCode,
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
};
|
|
1614
|
+
export const de_DescribeApplicationProviderCommand = async (output, context) => {
|
|
1615
|
+
if (output.statusCode >= 300) {
|
|
1616
|
+
return de_DescribeApplicationProviderCommandError(output, context);
|
|
1617
|
+
}
|
|
1618
|
+
const data = await parseBody(output.body, context);
|
|
1619
|
+
let contents = {};
|
|
1620
|
+
contents = _json(data);
|
|
1621
|
+
const response = {
|
|
1622
|
+
$metadata: deserializeMetadata(output),
|
|
1623
|
+
...contents,
|
|
1624
|
+
};
|
|
1625
|
+
return response;
|
|
1626
|
+
};
|
|
1627
|
+
const de_DescribeApplicationProviderCommandError = async (output, context) => {
|
|
1628
|
+
const parsedOutput = {
|
|
1629
|
+
...output,
|
|
1630
|
+
body: await parseErrorBody(output.body, context),
|
|
1631
|
+
};
|
|
1632
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
|
+
switch (errorCode) {
|
|
1634
|
+
case "AccessDeniedException":
|
|
1635
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1636
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1637
|
+
case "InternalServerException":
|
|
1638
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1639
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1640
|
+
case "ResourceNotFoundException":
|
|
1641
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1642
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1643
|
+
case "ThrottlingException":
|
|
1644
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1645
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1646
|
+
case "ValidationException":
|
|
1647
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1648
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1649
|
+
default:
|
|
1650
|
+
const parsedBody = parsedOutput.body;
|
|
1651
|
+
return throwDefaultError({
|
|
1652
|
+
output,
|
|
1653
|
+
parsedBody,
|
|
1654
|
+
errorCode,
|
|
1655
|
+
});
|
|
1656
|
+
}
|
|
1657
|
+
};
|
|
1658
|
+
export const de_DescribeInstanceCommand = async (output, context) => {
|
|
1659
|
+
if (output.statusCode >= 300) {
|
|
1660
|
+
return de_DescribeInstanceCommandError(output, context);
|
|
1661
|
+
}
|
|
1662
|
+
const data = await parseBody(output.body, context);
|
|
1663
|
+
let contents = {};
|
|
1664
|
+
contents = de_DescribeInstanceResponse(data, context);
|
|
1665
|
+
const response = {
|
|
1666
|
+
$metadata: deserializeMetadata(output),
|
|
1667
|
+
...contents,
|
|
1668
|
+
};
|
|
1669
|
+
return response;
|
|
1670
|
+
};
|
|
1671
|
+
const de_DescribeInstanceCommandError = async (output, context) => {
|
|
1672
|
+
const parsedOutput = {
|
|
1673
|
+
...output,
|
|
1674
|
+
body: await parseErrorBody(output.body, context),
|
|
1675
|
+
};
|
|
1676
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1677
|
+
switch (errorCode) {
|
|
1678
|
+
case "AccessDeniedException":
|
|
1679
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1680
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1681
|
+
case "InternalServerException":
|
|
1682
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1683
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1684
|
+
case "ThrottlingException":
|
|
1685
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1686
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1687
|
+
case "ValidationException":
|
|
1688
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1689
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1690
|
+
default:
|
|
1691
|
+
const parsedBody = parsedOutput.body;
|
|
1692
|
+
return throwDefaultError({
|
|
1693
|
+
output,
|
|
1694
|
+
parsedBody,
|
|
1695
|
+
errorCode,
|
|
1696
|
+
});
|
|
1697
|
+
}
|
|
1698
|
+
};
|
|
1699
|
+
export const de_DescribeInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
1700
|
+
if (output.statusCode >= 300) {
|
|
1701
|
+
return de_DescribeInstanceAccessControlAttributeConfigurationCommandError(output, context);
|
|
1702
|
+
}
|
|
1703
|
+
const data = await parseBody(output.body, context);
|
|
1704
|
+
let contents = {};
|
|
1705
|
+
contents = _json(data);
|
|
1706
|
+
const response = {
|
|
1707
|
+
$metadata: deserializeMetadata(output),
|
|
1708
|
+
...contents,
|
|
1709
|
+
};
|
|
1710
|
+
return response;
|
|
1711
|
+
};
|
|
1712
|
+
const de_DescribeInstanceAccessControlAttributeConfigurationCommandError = async (output, context) => {
|
|
1713
|
+
const parsedOutput = {
|
|
1714
|
+
...output,
|
|
1715
|
+
body: await parseErrorBody(output.body, context),
|
|
1716
|
+
};
|
|
1717
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
|
+
switch (errorCode) {
|
|
1719
|
+
case "AccessDeniedException":
|
|
1720
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1721
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1722
|
+
case "InternalServerException":
|
|
1723
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1724
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1725
|
+
case "ResourceNotFoundException":
|
|
1726
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1727
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1728
|
+
case "ThrottlingException":
|
|
1729
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1730
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1731
|
+
case "ValidationException":
|
|
1732
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1733
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1734
|
+
default:
|
|
1735
|
+
const parsedBody = parsedOutput.body;
|
|
1736
|
+
return throwDefaultError({
|
|
1737
|
+
output,
|
|
1738
|
+
parsedBody,
|
|
1739
|
+
errorCode,
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1742
|
+
};
|
|
1743
|
+
export const de_DescribePermissionSetCommand = async (output, context) => {
|
|
1744
|
+
if (output.statusCode >= 300) {
|
|
1745
|
+
return de_DescribePermissionSetCommandError(output, context);
|
|
1746
|
+
}
|
|
1747
|
+
const data = await parseBody(output.body, context);
|
|
1748
|
+
let contents = {};
|
|
1749
|
+
contents = de_DescribePermissionSetResponse(data, context);
|
|
1750
|
+
const response = {
|
|
1751
|
+
$metadata: deserializeMetadata(output),
|
|
1752
|
+
...contents,
|
|
1753
|
+
};
|
|
1754
|
+
return response;
|
|
1755
|
+
};
|
|
1756
|
+
const de_DescribePermissionSetCommandError = async (output, context) => {
|
|
1757
|
+
const parsedOutput = {
|
|
1758
|
+
...output,
|
|
1759
|
+
body: await parseErrorBody(output.body, context),
|
|
1760
|
+
};
|
|
1761
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
|
+
switch (errorCode) {
|
|
1763
|
+
case "AccessDeniedException":
|
|
1764
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1765
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1766
|
+
case "InternalServerException":
|
|
1767
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1768
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1769
|
+
case "ResourceNotFoundException":
|
|
1770
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1771
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1772
|
+
case "ThrottlingException":
|
|
1773
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1774
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1775
|
+
case "ValidationException":
|
|
1776
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1777
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1778
|
+
default:
|
|
1779
|
+
const parsedBody = parsedOutput.body;
|
|
1780
|
+
return throwDefaultError({
|
|
1781
|
+
output,
|
|
1782
|
+
parsedBody,
|
|
1783
|
+
errorCode,
|
|
1784
|
+
});
|
|
1785
|
+
}
|
|
1786
|
+
};
|
|
1787
|
+
export const de_DescribePermissionSetProvisioningStatusCommand = async (output, context) => {
|
|
1788
|
+
if (output.statusCode >= 300) {
|
|
1789
|
+
return de_DescribePermissionSetProvisioningStatusCommandError(output, context);
|
|
1790
|
+
}
|
|
1791
|
+
const data = await parseBody(output.body, context);
|
|
1792
|
+
let contents = {};
|
|
1793
|
+
contents = de_DescribePermissionSetProvisioningStatusResponse(data, context);
|
|
1794
|
+
const response = {
|
|
1795
|
+
$metadata: deserializeMetadata(output),
|
|
1796
|
+
...contents,
|
|
1797
|
+
};
|
|
1798
|
+
return response;
|
|
1799
|
+
};
|
|
1800
|
+
const de_DescribePermissionSetProvisioningStatusCommandError = async (output, context) => {
|
|
1801
|
+
const parsedOutput = {
|
|
1802
|
+
...output,
|
|
1803
|
+
body: await parseErrorBody(output.body, context),
|
|
1804
|
+
};
|
|
1805
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1806
|
+
switch (errorCode) {
|
|
1807
|
+
case "AccessDeniedException":
|
|
1808
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1809
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1810
|
+
case "InternalServerException":
|
|
1811
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1812
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1813
|
+
case "ResourceNotFoundException":
|
|
1814
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1815
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1816
|
+
case "ThrottlingException":
|
|
1817
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1818
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1819
|
+
case "ValidationException":
|
|
1820
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1821
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1822
|
+
default:
|
|
1823
|
+
const parsedBody = parsedOutput.body;
|
|
1824
|
+
return throwDefaultError({
|
|
1825
|
+
output,
|
|
1826
|
+
parsedBody,
|
|
1827
|
+
errorCode,
|
|
1828
|
+
});
|
|
1829
|
+
}
|
|
1830
|
+
};
|
|
1831
|
+
export const de_DescribeTrustedTokenIssuerCommand = async (output, context) => {
|
|
1832
|
+
if (output.statusCode >= 300) {
|
|
1833
|
+
return de_DescribeTrustedTokenIssuerCommandError(output, context);
|
|
1834
|
+
}
|
|
1835
|
+
const data = await parseBody(output.body, context);
|
|
1836
|
+
let contents = {};
|
|
1837
|
+
contents = _json(data);
|
|
1838
|
+
const response = {
|
|
1839
|
+
$metadata: deserializeMetadata(output),
|
|
1840
|
+
...contents,
|
|
1841
|
+
};
|
|
1842
|
+
return response;
|
|
1843
|
+
};
|
|
1844
|
+
const de_DescribeTrustedTokenIssuerCommandError = async (output, context) => {
|
|
1845
|
+
const parsedOutput = {
|
|
1846
|
+
...output,
|
|
1847
|
+
body: await parseErrorBody(output.body, context),
|
|
1848
|
+
};
|
|
1849
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1850
|
+
switch (errorCode) {
|
|
1851
|
+
case "AccessDeniedException":
|
|
1852
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1853
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1854
|
+
case "InternalServerException":
|
|
1855
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1856
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1857
|
+
case "ResourceNotFoundException":
|
|
1858
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1859
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1860
|
+
case "ThrottlingException":
|
|
1861
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1862
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1863
|
+
case "ValidationException":
|
|
1864
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1865
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1866
|
+
default:
|
|
1867
|
+
const parsedBody = parsedOutput.body;
|
|
1868
|
+
return throwDefaultError({
|
|
1869
|
+
output,
|
|
1870
|
+
parsedBody,
|
|
1871
|
+
errorCode,
|
|
1872
|
+
});
|
|
1873
|
+
}
|
|
1874
|
+
};
|
|
1875
|
+
export const de_DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = async (output, context) => {
|
|
1876
|
+
if (output.statusCode >= 300) {
|
|
1877
|
+
return de_DetachCustomerManagedPolicyReferenceFromPermissionSetCommandError(output, context);
|
|
1878
|
+
}
|
|
1879
|
+
const data = await parseBody(output.body, context);
|
|
1880
|
+
let contents = {};
|
|
1881
|
+
contents = _json(data);
|
|
1882
|
+
const response = {
|
|
1883
|
+
$metadata: deserializeMetadata(output),
|
|
1884
|
+
...contents,
|
|
1885
|
+
};
|
|
1886
|
+
return response;
|
|
1887
|
+
};
|
|
1888
|
+
const de_DetachCustomerManagedPolicyReferenceFromPermissionSetCommandError = async (output, context) => {
|
|
1889
|
+
const parsedOutput = {
|
|
1890
|
+
...output,
|
|
1891
|
+
body: await parseErrorBody(output.body, context),
|
|
1892
|
+
};
|
|
1893
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1894
|
+
switch (errorCode) {
|
|
1895
|
+
case "AccessDeniedException":
|
|
1896
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1897
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1898
|
+
case "ConflictException":
|
|
1899
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1900
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1901
|
+
case "InternalServerException":
|
|
1902
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1903
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1904
|
+
case "ResourceNotFoundException":
|
|
1905
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1906
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1907
|
+
case "ThrottlingException":
|
|
1908
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1909
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1910
|
+
case "ValidationException":
|
|
1911
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1912
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1913
|
+
default:
|
|
1914
|
+
const parsedBody = parsedOutput.body;
|
|
1915
|
+
return throwDefaultError({
|
|
1916
|
+
output,
|
|
1917
|
+
parsedBody,
|
|
1918
|
+
errorCode,
|
|
1919
|
+
});
|
|
1920
|
+
}
|
|
1921
|
+
};
|
|
1922
|
+
export const de_DetachManagedPolicyFromPermissionSetCommand = async (output, context) => {
|
|
1923
|
+
if (output.statusCode >= 300) {
|
|
1924
|
+
return de_DetachManagedPolicyFromPermissionSetCommandError(output, context);
|
|
1925
|
+
}
|
|
1926
|
+
const data = await parseBody(output.body, context);
|
|
1927
|
+
let contents = {};
|
|
1928
|
+
contents = _json(data);
|
|
1929
|
+
const response = {
|
|
1930
|
+
$metadata: deserializeMetadata(output),
|
|
1931
|
+
...contents,
|
|
1932
|
+
};
|
|
1933
|
+
return response;
|
|
1934
|
+
};
|
|
1935
|
+
const de_DetachManagedPolicyFromPermissionSetCommandError = async (output, context) => {
|
|
1936
|
+
const parsedOutput = {
|
|
1937
|
+
...output,
|
|
1938
|
+
body: await parseErrorBody(output.body, context),
|
|
1939
|
+
};
|
|
1940
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1941
|
+
switch (errorCode) {
|
|
1942
|
+
case "AccessDeniedException":
|
|
1943
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1944
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1945
|
+
case "ConflictException":
|
|
1946
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1947
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1948
|
+
case "InternalServerException":
|
|
1949
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1950
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1951
|
+
case "ResourceNotFoundException":
|
|
1952
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1953
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1954
|
+
case "ThrottlingException":
|
|
1955
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1956
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1957
|
+
case "ValidationException":
|
|
1958
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1959
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1960
|
+
default:
|
|
1961
|
+
const parsedBody = parsedOutput.body;
|
|
1962
|
+
return throwDefaultError({
|
|
1963
|
+
output,
|
|
1964
|
+
parsedBody,
|
|
1965
|
+
errorCode,
|
|
1966
|
+
});
|
|
1967
|
+
}
|
|
1968
|
+
};
|
|
1969
|
+
export const de_GetApplicationAccessScopeCommand = async (output, context) => {
|
|
1970
|
+
if (output.statusCode >= 300) {
|
|
1971
|
+
return de_GetApplicationAccessScopeCommandError(output, context);
|
|
1972
|
+
}
|
|
1973
|
+
const data = await parseBody(output.body, context);
|
|
1974
|
+
let contents = {};
|
|
1975
|
+
contents = _json(data);
|
|
1976
|
+
const response = {
|
|
1977
|
+
$metadata: deserializeMetadata(output),
|
|
1978
|
+
...contents,
|
|
1979
|
+
};
|
|
1980
|
+
return response;
|
|
1981
|
+
};
|
|
1982
|
+
const de_GetApplicationAccessScopeCommandError = async (output, context) => {
|
|
1983
|
+
const parsedOutput = {
|
|
1984
|
+
...output,
|
|
1985
|
+
body: await parseErrorBody(output.body, context),
|
|
1986
|
+
};
|
|
1987
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
|
+
switch (errorCode) {
|
|
1989
|
+
case "AccessDeniedException":
|
|
1990
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1991
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1992
|
+
case "InternalServerException":
|
|
1993
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1994
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1995
|
+
case "ResourceNotFoundException":
|
|
1996
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1997
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1998
|
+
case "ThrottlingException":
|
|
1999
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2000
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2001
|
+
case "ValidationException":
|
|
2002
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2003
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2004
|
+
default:
|
|
2005
|
+
const parsedBody = parsedOutput.body;
|
|
2006
|
+
return throwDefaultError({
|
|
2007
|
+
output,
|
|
2008
|
+
parsedBody,
|
|
2009
|
+
errorCode,
|
|
2010
|
+
});
|
|
2011
|
+
}
|
|
2012
|
+
};
|
|
2013
|
+
export const de_GetApplicationAssignmentConfigurationCommand = async (output, context) => {
|
|
2014
|
+
if (output.statusCode >= 300) {
|
|
2015
|
+
return de_GetApplicationAssignmentConfigurationCommandError(output, context);
|
|
2016
|
+
}
|
|
2017
|
+
const data = await parseBody(output.body, context);
|
|
2018
|
+
let contents = {};
|
|
2019
|
+
contents = _json(data);
|
|
2020
|
+
const response = {
|
|
2021
|
+
$metadata: deserializeMetadata(output),
|
|
2022
|
+
...contents,
|
|
2023
|
+
};
|
|
2024
|
+
return response;
|
|
2025
|
+
};
|
|
2026
|
+
const de_GetApplicationAssignmentConfigurationCommandError = async (output, context) => {
|
|
2027
|
+
const parsedOutput = {
|
|
2028
|
+
...output,
|
|
2029
|
+
body: await parseErrorBody(output.body, context),
|
|
2030
|
+
};
|
|
2031
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2032
|
+
switch (errorCode) {
|
|
2033
|
+
case "AccessDeniedException":
|
|
2034
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2035
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2036
|
+
case "InternalServerException":
|
|
2037
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2038
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2039
|
+
case "ResourceNotFoundException":
|
|
2040
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2041
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2042
|
+
case "ThrottlingException":
|
|
2043
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2044
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2045
|
+
case "ValidationException":
|
|
2046
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2047
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2048
|
+
default:
|
|
2049
|
+
const parsedBody = parsedOutput.body;
|
|
2050
|
+
return throwDefaultError({
|
|
2051
|
+
output,
|
|
2052
|
+
parsedBody,
|
|
2053
|
+
errorCode,
|
|
2054
|
+
});
|
|
2055
|
+
}
|
|
2056
|
+
};
|
|
2057
|
+
export const de_GetApplicationAuthenticationMethodCommand = async (output, context) => {
|
|
2058
|
+
if (output.statusCode >= 300) {
|
|
2059
|
+
return de_GetApplicationAuthenticationMethodCommandError(output, context);
|
|
2060
|
+
}
|
|
2061
|
+
const data = await parseBody(output.body, context);
|
|
2062
|
+
let contents = {};
|
|
2063
|
+
contents = de_GetApplicationAuthenticationMethodResponse(data, context);
|
|
2064
|
+
const response = {
|
|
2065
|
+
$metadata: deserializeMetadata(output),
|
|
2066
|
+
...contents,
|
|
2067
|
+
};
|
|
2068
|
+
return response;
|
|
2069
|
+
};
|
|
2070
|
+
const de_GetApplicationAuthenticationMethodCommandError = async (output, context) => {
|
|
2071
|
+
const parsedOutput = {
|
|
2072
|
+
...output,
|
|
2073
|
+
body: await parseErrorBody(output.body, context),
|
|
2074
|
+
};
|
|
2075
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2076
|
+
switch (errorCode) {
|
|
2077
|
+
case "AccessDeniedException":
|
|
2078
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2079
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2080
|
+
case "InternalServerException":
|
|
2081
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2082
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2083
|
+
case "ResourceNotFoundException":
|
|
2084
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2085
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2086
|
+
case "ThrottlingException":
|
|
2087
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2088
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2089
|
+
case "ValidationException":
|
|
2090
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2091
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2092
|
+
default:
|
|
2093
|
+
const parsedBody = parsedOutput.body;
|
|
2094
|
+
return throwDefaultError({
|
|
2095
|
+
output,
|
|
2096
|
+
parsedBody,
|
|
2097
|
+
errorCode,
|
|
2098
|
+
});
|
|
2099
|
+
}
|
|
2100
|
+
};
|
|
2101
|
+
export const de_GetApplicationGrantCommand = async (output, context) => {
|
|
2102
|
+
if (output.statusCode >= 300) {
|
|
2103
|
+
return de_GetApplicationGrantCommandError(output, context);
|
|
2104
|
+
}
|
|
2105
|
+
const data = await parseBody(output.body, context);
|
|
2106
|
+
let contents = {};
|
|
2107
|
+
contents = _json(data);
|
|
2108
|
+
const response = {
|
|
2109
|
+
$metadata: deserializeMetadata(output),
|
|
2110
|
+
...contents,
|
|
2111
|
+
};
|
|
2112
|
+
return response;
|
|
2113
|
+
};
|
|
2114
|
+
const de_GetApplicationGrantCommandError = async (output, context) => {
|
|
2115
|
+
const parsedOutput = {
|
|
2116
|
+
...output,
|
|
2117
|
+
body: await parseErrorBody(output.body, context),
|
|
2118
|
+
};
|
|
2119
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2120
|
+
switch (errorCode) {
|
|
2121
|
+
case "AccessDeniedException":
|
|
2122
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2123
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2124
|
+
case "InternalServerException":
|
|
2125
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2126
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2127
|
+
case "ResourceNotFoundException":
|
|
2128
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2129
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2130
|
+
case "ThrottlingException":
|
|
2131
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2132
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2133
|
+
case "ValidationException":
|
|
2134
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2135
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2136
|
+
default:
|
|
2137
|
+
const parsedBody = parsedOutput.body;
|
|
2138
|
+
return throwDefaultError({
|
|
2139
|
+
output,
|
|
2140
|
+
parsedBody,
|
|
2141
|
+
errorCode,
|
|
2142
|
+
});
|
|
2143
|
+
}
|
|
2144
|
+
};
|
|
2145
|
+
export const de_GetInlinePolicyForPermissionSetCommand = async (output, context) => {
|
|
2146
|
+
if (output.statusCode >= 300) {
|
|
2147
|
+
return de_GetInlinePolicyForPermissionSetCommandError(output, context);
|
|
2148
|
+
}
|
|
2149
|
+
const data = await parseBody(output.body, context);
|
|
2150
|
+
let contents = {};
|
|
2151
|
+
contents = _json(data);
|
|
2152
|
+
const response = {
|
|
2153
|
+
$metadata: deserializeMetadata(output),
|
|
2154
|
+
...contents,
|
|
2155
|
+
};
|
|
2156
|
+
return response;
|
|
2157
|
+
};
|
|
2158
|
+
const de_GetInlinePolicyForPermissionSetCommandError = async (output, context) => {
|
|
2159
|
+
const parsedOutput = {
|
|
2160
|
+
...output,
|
|
2161
|
+
body: await parseErrorBody(output.body, context),
|
|
2162
|
+
};
|
|
2163
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
|
+
switch (errorCode) {
|
|
2165
|
+
case "AccessDeniedException":
|
|
2166
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2167
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2168
|
+
case "InternalServerException":
|
|
2169
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2170
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2171
|
+
case "ResourceNotFoundException":
|
|
2172
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2173
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2174
|
+
case "ThrottlingException":
|
|
2175
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2176
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2177
|
+
case "ValidationException":
|
|
2178
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2179
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2180
|
+
default:
|
|
2181
|
+
const parsedBody = parsedOutput.body;
|
|
2182
|
+
return throwDefaultError({
|
|
2183
|
+
output,
|
|
2184
|
+
parsedBody,
|
|
2185
|
+
errorCode,
|
|
2186
|
+
});
|
|
2187
|
+
}
|
|
2188
|
+
};
|
|
2189
|
+
export const de_GetPermissionsBoundaryForPermissionSetCommand = async (output, context) => {
|
|
2190
|
+
if (output.statusCode >= 300) {
|
|
2191
|
+
return de_GetPermissionsBoundaryForPermissionSetCommandError(output, context);
|
|
2192
|
+
}
|
|
2193
|
+
const data = await parseBody(output.body, context);
|
|
2194
|
+
let contents = {};
|
|
2195
|
+
contents = _json(data);
|
|
2196
|
+
const response = {
|
|
2197
|
+
$metadata: deserializeMetadata(output),
|
|
2198
|
+
...contents,
|
|
2199
|
+
};
|
|
2200
|
+
return response;
|
|
2201
|
+
};
|
|
2202
|
+
const de_GetPermissionsBoundaryForPermissionSetCommandError = async (output, context) => {
|
|
2203
|
+
const parsedOutput = {
|
|
2204
|
+
...output,
|
|
2205
|
+
body: await parseErrorBody(output.body, context),
|
|
2206
|
+
};
|
|
2207
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2208
|
+
switch (errorCode) {
|
|
2209
|
+
case "AccessDeniedException":
|
|
2210
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2211
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2212
|
+
case "InternalServerException":
|
|
2213
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2214
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2215
|
+
case "ResourceNotFoundException":
|
|
2216
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2217
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2218
|
+
case "ThrottlingException":
|
|
2219
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2220
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2221
|
+
case "ValidationException":
|
|
2222
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2223
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2224
|
+
default:
|
|
2225
|
+
const parsedBody = parsedOutput.body;
|
|
2226
|
+
return throwDefaultError({
|
|
2227
|
+
output,
|
|
2228
|
+
parsedBody,
|
|
2229
|
+
errorCode,
|
|
2230
|
+
});
|
|
2231
|
+
}
|
|
2232
|
+
};
|
|
2233
|
+
export const de_ListAccountAssignmentCreationStatusCommand = async (output, context) => {
|
|
2234
|
+
if (output.statusCode >= 300) {
|
|
2235
|
+
return de_ListAccountAssignmentCreationStatusCommandError(output, context);
|
|
2236
|
+
}
|
|
2237
|
+
const data = await parseBody(output.body, context);
|
|
2238
|
+
let contents = {};
|
|
2239
|
+
contents = de_ListAccountAssignmentCreationStatusResponse(data, context);
|
|
2240
|
+
const response = {
|
|
2241
|
+
$metadata: deserializeMetadata(output),
|
|
2242
|
+
...contents,
|
|
2243
|
+
};
|
|
2244
|
+
return response;
|
|
2245
|
+
};
|
|
2246
|
+
const de_ListAccountAssignmentCreationStatusCommandError = async (output, context) => {
|
|
2247
|
+
const parsedOutput = {
|
|
2248
|
+
...output,
|
|
2249
|
+
body: await parseErrorBody(output.body, context),
|
|
2250
|
+
};
|
|
2251
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2252
|
+
switch (errorCode) {
|
|
2253
|
+
case "AccessDeniedException":
|
|
2254
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2255
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2256
|
+
case "InternalServerException":
|
|
2257
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2258
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2259
|
+
case "ResourceNotFoundException":
|
|
2260
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2261
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2262
|
+
case "ThrottlingException":
|
|
2263
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2264
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2265
|
+
case "ValidationException":
|
|
2266
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2267
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2268
|
+
default:
|
|
2269
|
+
const parsedBody = parsedOutput.body;
|
|
2270
|
+
return throwDefaultError({
|
|
2271
|
+
output,
|
|
2272
|
+
parsedBody,
|
|
2273
|
+
errorCode,
|
|
2274
|
+
});
|
|
2275
|
+
}
|
|
2276
|
+
};
|
|
2277
|
+
export const de_ListAccountAssignmentDeletionStatusCommand = async (output, context) => {
|
|
2278
|
+
if (output.statusCode >= 300) {
|
|
2279
|
+
return de_ListAccountAssignmentDeletionStatusCommandError(output, context);
|
|
2280
|
+
}
|
|
2281
|
+
const data = await parseBody(output.body, context);
|
|
2282
|
+
let contents = {};
|
|
2283
|
+
contents = de_ListAccountAssignmentDeletionStatusResponse(data, context);
|
|
2284
|
+
const response = {
|
|
2285
|
+
$metadata: deserializeMetadata(output),
|
|
2286
|
+
...contents,
|
|
2287
|
+
};
|
|
2288
|
+
return response;
|
|
2289
|
+
};
|
|
2290
|
+
const de_ListAccountAssignmentDeletionStatusCommandError = async (output, context) => {
|
|
2291
|
+
const parsedOutput = {
|
|
2292
|
+
...output,
|
|
2293
|
+
body: await parseErrorBody(output.body, context),
|
|
2294
|
+
};
|
|
2295
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2296
|
+
switch (errorCode) {
|
|
2297
|
+
case "AccessDeniedException":
|
|
2298
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2299
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2300
|
+
case "InternalServerException":
|
|
2301
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2302
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2303
|
+
case "ResourceNotFoundException":
|
|
2304
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2305
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2306
|
+
case "ThrottlingException":
|
|
2307
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2308
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2309
|
+
case "ValidationException":
|
|
2310
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2311
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2312
|
+
default:
|
|
2313
|
+
const parsedBody = parsedOutput.body;
|
|
2314
|
+
return throwDefaultError({
|
|
2315
|
+
output,
|
|
2316
|
+
parsedBody,
|
|
2317
|
+
errorCode,
|
|
2318
|
+
});
|
|
2319
|
+
}
|
|
2320
|
+
};
|
|
2321
|
+
export const de_ListAccountAssignmentsCommand = async (output, context) => {
|
|
2322
|
+
if (output.statusCode >= 300) {
|
|
2323
|
+
return de_ListAccountAssignmentsCommandError(output, context);
|
|
2324
|
+
}
|
|
2325
|
+
const data = await parseBody(output.body, context);
|
|
2326
|
+
let contents = {};
|
|
2327
|
+
contents = _json(data);
|
|
2328
|
+
const response = {
|
|
2329
|
+
$metadata: deserializeMetadata(output),
|
|
2330
|
+
...contents,
|
|
2331
|
+
};
|
|
2332
|
+
return response;
|
|
2333
|
+
};
|
|
2334
|
+
const de_ListAccountAssignmentsCommandError = async (output, context) => {
|
|
2335
|
+
const parsedOutput = {
|
|
2336
|
+
...output,
|
|
2337
|
+
body: await parseErrorBody(output.body, context),
|
|
2338
|
+
};
|
|
2339
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2340
|
+
switch (errorCode) {
|
|
2341
|
+
case "AccessDeniedException":
|
|
2342
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2343
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2344
|
+
case "InternalServerException":
|
|
2345
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2346
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2347
|
+
case "ResourceNotFoundException":
|
|
2348
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2349
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2350
|
+
case "ThrottlingException":
|
|
2351
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2352
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2353
|
+
case "ValidationException":
|
|
2354
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2355
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2356
|
+
default:
|
|
2357
|
+
const parsedBody = parsedOutput.body;
|
|
2358
|
+
return throwDefaultError({
|
|
2359
|
+
output,
|
|
2360
|
+
parsedBody,
|
|
2361
|
+
errorCode,
|
|
2362
|
+
});
|
|
2363
|
+
}
|
|
2364
|
+
};
|
|
2365
|
+
export const de_ListAccountAssignmentsForPrincipalCommand = async (output, context) => {
|
|
2366
|
+
if (output.statusCode >= 300) {
|
|
2367
|
+
return de_ListAccountAssignmentsForPrincipalCommandError(output, context);
|
|
2368
|
+
}
|
|
2369
|
+
const data = await parseBody(output.body, context);
|
|
2370
|
+
let contents = {};
|
|
2371
|
+
contents = _json(data);
|
|
2372
|
+
const response = {
|
|
2373
|
+
$metadata: deserializeMetadata(output),
|
|
2374
|
+
...contents,
|
|
2375
|
+
};
|
|
2376
|
+
return response;
|
|
2377
|
+
};
|
|
2378
|
+
const de_ListAccountAssignmentsForPrincipalCommandError = async (output, context) => {
|
|
2379
|
+
const parsedOutput = {
|
|
2380
|
+
...output,
|
|
2381
|
+
body: await parseErrorBody(output.body, context),
|
|
2382
|
+
};
|
|
2383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2384
|
+
switch (errorCode) {
|
|
2385
|
+
case "AccessDeniedException":
|
|
2386
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2387
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2388
|
+
case "InternalServerException":
|
|
2389
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2390
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2391
|
+
case "ResourceNotFoundException":
|
|
2392
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2393
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2394
|
+
case "ThrottlingException":
|
|
2395
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2396
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2397
|
+
case "ValidationException":
|
|
2398
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2399
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2400
|
+
default:
|
|
2401
|
+
const parsedBody = parsedOutput.body;
|
|
2402
|
+
return throwDefaultError({
|
|
2403
|
+
output,
|
|
2404
|
+
parsedBody,
|
|
2405
|
+
errorCode,
|
|
2406
|
+
});
|
|
2407
|
+
}
|
|
2408
|
+
};
|
|
2409
|
+
export const de_ListAccountsForProvisionedPermissionSetCommand = async (output, context) => {
|
|
2410
|
+
if (output.statusCode >= 300) {
|
|
2411
|
+
return de_ListAccountsForProvisionedPermissionSetCommandError(output, context);
|
|
2412
|
+
}
|
|
2413
|
+
const data = await parseBody(output.body, context);
|
|
2414
|
+
let contents = {};
|
|
2415
|
+
contents = _json(data);
|
|
2416
|
+
const response = {
|
|
2417
|
+
$metadata: deserializeMetadata(output),
|
|
2418
|
+
...contents,
|
|
2419
|
+
};
|
|
2420
|
+
return response;
|
|
2421
|
+
};
|
|
2422
|
+
const de_ListAccountsForProvisionedPermissionSetCommandError = async (output, context) => {
|
|
2423
|
+
const parsedOutput = {
|
|
2424
|
+
...output,
|
|
2425
|
+
body: await parseErrorBody(output.body, context),
|
|
2426
|
+
};
|
|
2427
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2428
|
+
switch (errorCode) {
|
|
2429
|
+
case "AccessDeniedException":
|
|
2430
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2431
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2432
|
+
case "InternalServerException":
|
|
2433
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2434
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2435
|
+
case "ResourceNotFoundException":
|
|
2436
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2437
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2438
|
+
case "ThrottlingException":
|
|
2439
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2440
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2441
|
+
case "ValidationException":
|
|
2442
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2443
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2444
|
+
default:
|
|
2445
|
+
const parsedBody = parsedOutput.body;
|
|
2446
|
+
return throwDefaultError({
|
|
2447
|
+
output,
|
|
2448
|
+
parsedBody,
|
|
2449
|
+
errorCode,
|
|
2450
|
+
});
|
|
2451
|
+
}
|
|
2452
|
+
};
|
|
2453
|
+
export const de_ListApplicationAccessScopesCommand = async (output, context) => {
|
|
2454
|
+
if (output.statusCode >= 300) {
|
|
2455
|
+
return de_ListApplicationAccessScopesCommandError(output, context);
|
|
2456
|
+
}
|
|
2457
|
+
const data = await parseBody(output.body, context);
|
|
2458
|
+
let contents = {};
|
|
2459
|
+
contents = _json(data);
|
|
2460
|
+
const response = {
|
|
2461
|
+
$metadata: deserializeMetadata(output),
|
|
2462
|
+
...contents,
|
|
2463
|
+
};
|
|
2464
|
+
return response;
|
|
2465
|
+
};
|
|
2466
|
+
const de_ListApplicationAccessScopesCommandError = async (output, context) => {
|
|
2467
|
+
const parsedOutput = {
|
|
2468
|
+
...output,
|
|
2469
|
+
body: await parseErrorBody(output.body, context),
|
|
2470
|
+
};
|
|
2471
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2472
|
+
switch (errorCode) {
|
|
2473
|
+
case "AccessDeniedException":
|
|
2474
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2475
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2476
|
+
case "InternalServerException":
|
|
2477
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2478
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2479
|
+
case "ResourceNotFoundException":
|
|
2480
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2481
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2482
|
+
case "ThrottlingException":
|
|
2483
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2484
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2485
|
+
case "ValidationException":
|
|
2486
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2487
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2488
|
+
default:
|
|
2489
|
+
const parsedBody = parsedOutput.body;
|
|
2490
|
+
return throwDefaultError({
|
|
2491
|
+
output,
|
|
2492
|
+
parsedBody,
|
|
2493
|
+
errorCode,
|
|
2494
|
+
});
|
|
2495
|
+
}
|
|
2496
|
+
};
|
|
2497
|
+
export const de_ListApplicationAssignmentsCommand = async (output, context) => {
|
|
2498
|
+
if (output.statusCode >= 300) {
|
|
2499
|
+
return de_ListApplicationAssignmentsCommandError(output, context);
|
|
2500
|
+
}
|
|
2501
|
+
const data = await parseBody(output.body, context);
|
|
2502
|
+
let contents = {};
|
|
2503
|
+
contents = _json(data);
|
|
2504
|
+
const response = {
|
|
2505
|
+
$metadata: deserializeMetadata(output),
|
|
2506
|
+
...contents,
|
|
2507
|
+
};
|
|
2508
|
+
return response;
|
|
2509
|
+
};
|
|
2510
|
+
const de_ListApplicationAssignmentsCommandError = async (output, context) => {
|
|
2511
|
+
const parsedOutput = {
|
|
2512
|
+
...output,
|
|
2513
|
+
body: await parseErrorBody(output.body, context),
|
|
2514
|
+
};
|
|
2515
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2516
|
+
switch (errorCode) {
|
|
2517
|
+
case "AccessDeniedException":
|
|
2518
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2519
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2520
|
+
case "InternalServerException":
|
|
2521
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2522
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2523
|
+
case "ResourceNotFoundException":
|
|
2524
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2525
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2526
|
+
case "ThrottlingException":
|
|
2527
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2528
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2529
|
+
case "ValidationException":
|
|
2530
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2531
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2532
|
+
default:
|
|
2533
|
+
const parsedBody = parsedOutput.body;
|
|
2534
|
+
return throwDefaultError({
|
|
2535
|
+
output,
|
|
2536
|
+
parsedBody,
|
|
2537
|
+
errorCode,
|
|
2538
|
+
});
|
|
2539
|
+
}
|
|
2540
|
+
};
|
|
2541
|
+
export const de_ListApplicationAssignmentsForPrincipalCommand = async (output, context) => {
|
|
2542
|
+
if (output.statusCode >= 300) {
|
|
2543
|
+
return de_ListApplicationAssignmentsForPrincipalCommandError(output, context);
|
|
2544
|
+
}
|
|
2545
|
+
const data = await parseBody(output.body, context);
|
|
2546
|
+
let contents = {};
|
|
2547
|
+
contents = _json(data);
|
|
2548
|
+
const response = {
|
|
2549
|
+
$metadata: deserializeMetadata(output),
|
|
2550
|
+
...contents,
|
|
2551
|
+
};
|
|
2552
|
+
return response;
|
|
2553
|
+
};
|
|
2554
|
+
const de_ListApplicationAssignmentsForPrincipalCommandError = async (output, context) => {
|
|
2555
|
+
const parsedOutput = {
|
|
2556
|
+
...output,
|
|
2557
|
+
body: await parseErrorBody(output.body, context),
|
|
2558
|
+
};
|
|
2559
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2560
|
+
switch (errorCode) {
|
|
2561
|
+
case "AccessDeniedException":
|
|
2562
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2563
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2564
|
+
case "InternalServerException":
|
|
2565
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2566
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2567
|
+
case "ResourceNotFoundException":
|
|
2568
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2569
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2570
|
+
case "ThrottlingException":
|
|
2571
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2572
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2573
|
+
case "ValidationException":
|
|
2574
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2575
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2576
|
+
default:
|
|
2577
|
+
const parsedBody = parsedOutput.body;
|
|
2578
|
+
return throwDefaultError({
|
|
2579
|
+
output,
|
|
2580
|
+
parsedBody,
|
|
2581
|
+
errorCode,
|
|
2582
|
+
});
|
|
2583
|
+
}
|
|
2584
|
+
};
|
|
2585
|
+
export const de_ListApplicationAuthenticationMethodsCommand = async (output, context) => {
|
|
2586
|
+
if (output.statusCode >= 300) {
|
|
2587
|
+
return de_ListApplicationAuthenticationMethodsCommandError(output, context);
|
|
2588
|
+
}
|
|
2589
|
+
const data = await parseBody(output.body, context);
|
|
2590
|
+
let contents = {};
|
|
2591
|
+
contents = de_ListApplicationAuthenticationMethodsResponse(data, context);
|
|
2592
|
+
const response = {
|
|
2593
|
+
$metadata: deserializeMetadata(output),
|
|
2594
|
+
...contents,
|
|
2595
|
+
};
|
|
2596
|
+
return response;
|
|
2597
|
+
};
|
|
2598
|
+
const de_ListApplicationAuthenticationMethodsCommandError = async (output, context) => {
|
|
2599
|
+
const parsedOutput = {
|
|
2600
|
+
...output,
|
|
2601
|
+
body: await parseErrorBody(output.body, context),
|
|
2602
|
+
};
|
|
2603
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2604
|
+
switch (errorCode) {
|
|
2605
|
+
case "AccessDeniedException":
|
|
2606
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2607
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2608
|
+
case "InternalServerException":
|
|
2609
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2610
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2611
|
+
case "ResourceNotFoundException":
|
|
2612
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2613
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2614
|
+
case "ThrottlingException":
|
|
2615
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2616
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2617
|
+
case "ValidationException":
|
|
2618
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2619
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2620
|
+
default:
|
|
2621
|
+
const parsedBody = parsedOutput.body;
|
|
2622
|
+
return throwDefaultError({
|
|
2623
|
+
output,
|
|
2624
|
+
parsedBody,
|
|
2625
|
+
errorCode,
|
|
2626
|
+
});
|
|
2627
|
+
}
|
|
2628
|
+
};
|
|
2629
|
+
export const de_ListApplicationGrantsCommand = async (output, context) => {
|
|
2630
|
+
if (output.statusCode >= 300) {
|
|
2631
|
+
return de_ListApplicationGrantsCommandError(output, context);
|
|
2632
|
+
}
|
|
2633
|
+
const data = await parseBody(output.body, context);
|
|
2634
|
+
let contents = {};
|
|
2635
|
+
contents = _json(data);
|
|
2636
|
+
const response = {
|
|
2637
|
+
$metadata: deserializeMetadata(output),
|
|
2638
|
+
...contents,
|
|
2639
|
+
};
|
|
2640
|
+
return response;
|
|
2641
|
+
};
|
|
2642
|
+
const de_ListApplicationGrantsCommandError = async (output, context) => {
|
|
2643
|
+
const parsedOutput = {
|
|
2644
|
+
...output,
|
|
2645
|
+
body: await parseErrorBody(output.body, context),
|
|
2646
|
+
};
|
|
2647
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2648
|
+
switch (errorCode) {
|
|
2649
|
+
case "AccessDeniedException":
|
|
2650
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2651
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2652
|
+
case "InternalServerException":
|
|
2653
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2654
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2655
|
+
case "ResourceNotFoundException":
|
|
2656
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2657
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2658
|
+
case "ThrottlingException":
|
|
2659
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2660
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2661
|
+
case "ValidationException":
|
|
2662
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2663
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2664
|
+
default:
|
|
2665
|
+
const parsedBody = parsedOutput.body;
|
|
2666
|
+
return throwDefaultError({
|
|
2667
|
+
output,
|
|
2668
|
+
parsedBody,
|
|
2669
|
+
errorCode,
|
|
2670
|
+
});
|
|
2671
|
+
}
|
|
2672
|
+
};
|
|
2673
|
+
export const de_ListApplicationProvidersCommand = async (output, context) => {
|
|
2674
|
+
if (output.statusCode >= 300) {
|
|
2675
|
+
return de_ListApplicationProvidersCommandError(output, context);
|
|
2676
|
+
}
|
|
2677
|
+
const data = await parseBody(output.body, context);
|
|
2678
|
+
let contents = {};
|
|
2679
|
+
contents = _json(data);
|
|
2680
|
+
const response = {
|
|
2681
|
+
$metadata: deserializeMetadata(output),
|
|
2682
|
+
...contents,
|
|
2683
|
+
};
|
|
2684
|
+
return response;
|
|
2685
|
+
};
|
|
2686
|
+
const de_ListApplicationProvidersCommandError = async (output, context) => {
|
|
2687
|
+
const parsedOutput = {
|
|
2688
|
+
...output,
|
|
2689
|
+
body: await parseErrorBody(output.body, context),
|
|
2690
|
+
};
|
|
2691
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2692
|
+
switch (errorCode) {
|
|
2693
|
+
case "AccessDeniedException":
|
|
2694
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2695
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2696
|
+
case "InternalServerException":
|
|
2697
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2698
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2699
|
+
case "ThrottlingException":
|
|
2700
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2701
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2702
|
+
case "ValidationException":
|
|
2703
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2704
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2705
|
+
default:
|
|
2706
|
+
const parsedBody = parsedOutput.body;
|
|
2707
|
+
return throwDefaultError({
|
|
2708
|
+
output,
|
|
2709
|
+
parsedBody,
|
|
2710
|
+
errorCode,
|
|
2711
|
+
});
|
|
2712
|
+
}
|
|
2713
|
+
};
|
|
2714
|
+
export const de_ListApplicationsCommand = async (output, context) => {
|
|
2715
|
+
if (output.statusCode >= 300) {
|
|
2716
|
+
return de_ListApplicationsCommandError(output, context);
|
|
2717
|
+
}
|
|
2718
|
+
const data = await parseBody(output.body, context);
|
|
2719
|
+
let contents = {};
|
|
2720
|
+
contents = de_ListApplicationsResponse(data, context);
|
|
2721
|
+
const response = {
|
|
2722
|
+
$metadata: deserializeMetadata(output),
|
|
2723
|
+
...contents,
|
|
2724
|
+
};
|
|
2725
|
+
return response;
|
|
2726
|
+
};
|
|
2727
|
+
const de_ListApplicationsCommandError = async (output, context) => {
|
|
2728
|
+
const parsedOutput = {
|
|
2729
|
+
...output,
|
|
2730
|
+
body: await parseErrorBody(output.body, context),
|
|
2731
|
+
};
|
|
2732
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2733
|
+
switch (errorCode) {
|
|
2734
|
+
case "AccessDeniedException":
|
|
2735
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2736
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2737
|
+
case "InternalServerException":
|
|
2738
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2739
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2740
|
+
case "ThrottlingException":
|
|
2741
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2742
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2743
|
+
case "ValidationException":
|
|
2744
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2745
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2746
|
+
default:
|
|
2747
|
+
const parsedBody = parsedOutput.body;
|
|
2748
|
+
return throwDefaultError({
|
|
2749
|
+
output,
|
|
2750
|
+
parsedBody,
|
|
2751
|
+
errorCode,
|
|
2752
|
+
});
|
|
2753
|
+
}
|
|
2754
|
+
};
|
|
2755
|
+
export const de_ListCustomerManagedPolicyReferencesInPermissionSetCommand = async (output, context) => {
|
|
2756
|
+
if (output.statusCode >= 300) {
|
|
2757
|
+
return de_ListCustomerManagedPolicyReferencesInPermissionSetCommandError(output, context);
|
|
2758
|
+
}
|
|
2759
|
+
const data = await parseBody(output.body, context);
|
|
2760
|
+
let contents = {};
|
|
2761
|
+
contents = _json(data);
|
|
2762
|
+
const response = {
|
|
2763
|
+
$metadata: deserializeMetadata(output),
|
|
2764
|
+
...contents,
|
|
2765
|
+
};
|
|
2766
|
+
return response;
|
|
2767
|
+
};
|
|
2768
|
+
const de_ListCustomerManagedPolicyReferencesInPermissionSetCommandError = async (output, context) => {
|
|
2769
|
+
const parsedOutput = {
|
|
2770
|
+
...output,
|
|
2771
|
+
body: await parseErrorBody(output.body, context),
|
|
2772
|
+
};
|
|
2773
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2774
|
+
switch (errorCode) {
|
|
2775
|
+
case "AccessDeniedException":
|
|
2776
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2777
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2778
|
+
case "InternalServerException":
|
|
2779
|
+
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2780
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2781
|
+
case "ResourceNotFoundException":
|
|
2782
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2783
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2784
|
+
case "ThrottlingException":
|
|
2785
|
+
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2786
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2787
|
+
case "ValidationException":
|
|
2788
|
+
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2789
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2790
|
+
default:
|
|
2791
|
+
const parsedBody = parsedOutput.body;
|
|
2792
|
+
return throwDefaultError({
|
|
2793
|
+
output,
|
|
2794
|
+
parsedBody,
|
|
2795
|
+
errorCode,
|
|
2796
|
+
});
|
|
2797
|
+
}
|
|
2798
|
+
};
|
|
2799
|
+
export const de_ListInstancesCommand = async (output, context) => {
|
|
974
2800
|
if (output.statusCode >= 300) {
|
|
975
|
-
return
|
|
2801
|
+
return de_ListInstancesCommandError(output, context);
|
|
976
2802
|
}
|
|
977
2803
|
const data = await parseBody(output.body, context);
|
|
978
2804
|
let contents = {};
|
|
979
|
-
contents =
|
|
2805
|
+
contents = de_ListInstancesResponse(data, context);
|
|
980
2806
|
const response = {
|
|
981
2807
|
$metadata: deserializeMetadata(output),
|
|
982
2808
|
...contents,
|
|
983
2809
|
};
|
|
984
2810
|
return response;
|
|
985
2811
|
};
|
|
986
|
-
const
|
|
2812
|
+
const de_ListInstancesCommandError = async (output, context) => {
|
|
987
2813
|
const parsedOutput = {
|
|
988
2814
|
...output,
|
|
989
2815
|
body: await parseErrorBody(output.body, context),
|
|
@@ -993,15 +2819,9 @@ const de_DetachManagedPolicyFromPermissionSetCommandError = async (output, conte
|
|
|
993
2819
|
case "AccessDeniedException":
|
|
994
2820
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
995
2821
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
996
|
-
case "ConflictException":
|
|
997
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
998
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
999
2822
|
case "InternalServerException":
|
|
1000
2823
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1001
2824
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "ResourceNotFoundException":
|
|
1003
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1004
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1005
2825
|
case "ThrottlingException":
|
|
1006
2826
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1007
2827
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -1017,9 +2837,9 @@ const de_DetachManagedPolicyFromPermissionSetCommandError = async (output, conte
|
|
|
1017
2837
|
});
|
|
1018
2838
|
}
|
|
1019
2839
|
};
|
|
1020
|
-
export const
|
|
2840
|
+
export const de_ListManagedPoliciesInPermissionSetCommand = async (output, context) => {
|
|
1021
2841
|
if (output.statusCode >= 300) {
|
|
1022
|
-
return
|
|
2842
|
+
return de_ListManagedPoliciesInPermissionSetCommandError(output, context);
|
|
1023
2843
|
}
|
|
1024
2844
|
const data = await parseBody(output.body, context);
|
|
1025
2845
|
let contents = {};
|
|
@@ -1030,7 +2850,7 @@ export const de_GetInlinePolicyForPermissionSetCommand = async (output, context)
|
|
|
1030
2850
|
};
|
|
1031
2851
|
return response;
|
|
1032
2852
|
};
|
|
1033
|
-
const
|
|
2853
|
+
const de_ListManagedPoliciesInPermissionSetCommandError = async (output, context) => {
|
|
1034
2854
|
const parsedOutput = {
|
|
1035
2855
|
...output,
|
|
1036
2856
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1061,20 +2881,20 @@ const de_GetInlinePolicyForPermissionSetCommandError = async (output, context) =
|
|
|
1061
2881
|
});
|
|
1062
2882
|
}
|
|
1063
2883
|
};
|
|
1064
|
-
export const
|
|
2884
|
+
export const de_ListPermissionSetProvisioningStatusCommand = async (output, context) => {
|
|
1065
2885
|
if (output.statusCode >= 300) {
|
|
1066
|
-
return
|
|
2886
|
+
return de_ListPermissionSetProvisioningStatusCommandError(output, context);
|
|
1067
2887
|
}
|
|
1068
2888
|
const data = await parseBody(output.body, context);
|
|
1069
2889
|
let contents = {};
|
|
1070
|
-
contents =
|
|
2890
|
+
contents = de_ListPermissionSetProvisioningStatusResponse(data, context);
|
|
1071
2891
|
const response = {
|
|
1072
2892
|
$metadata: deserializeMetadata(output),
|
|
1073
2893
|
...contents,
|
|
1074
2894
|
};
|
|
1075
2895
|
return response;
|
|
1076
2896
|
};
|
|
1077
|
-
const
|
|
2897
|
+
const de_ListPermissionSetProvisioningStatusCommandError = async (output, context) => {
|
|
1078
2898
|
const parsedOutput = {
|
|
1079
2899
|
...output,
|
|
1080
2900
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1105,20 +2925,20 @@ const de_GetPermissionsBoundaryForPermissionSetCommandError = async (output, con
|
|
|
1105
2925
|
});
|
|
1106
2926
|
}
|
|
1107
2927
|
};
|
|
1108
|
-
export const
|
|
2928
|
+
export const de_ListPermissionSetsCommand = async (output, context) => {
|
|
1109
2929
|
if (output.statusCode >= 300) {
|
|
1110
|
-
return
|
|
2930
|
+
return de_ListPermissionSetsCommandError(output, context);
|
|
1111
2931
|
}
|
|
1112
2932
|
const data = await parseBody(output.body, context);
|
|
1113
2933
|
let contents = {};
|
|
1114
|
-
contents =
|
|
2934
|
+
contents = _json(data);
|
|
1115
2935
|
const response = {
|
|
1116
2936
|
$metadata: deserializeMetadata(output),
|
|
1117
2937
|
...contents,
|
|
1118
2938
|
};
|
|
1119
2939
|
return response;
|
|
1120
2940
|
};
|
|
1121
|
-
const
|
|
2941
|
+
const de_ListPermissionSetsCommandError = async (output, context) => {
|
|
1122
2942
|
const parsedOutput = {
|
|
1123
2943
|
...output,
|
|
1124
2944
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1149,20 +2969,20 @@ const de_ListAccountAssignmentCreationStatusCommandError = async (output, contex
|
|
|
1149
2969
|
});
|
|
1150
2970
|
}
|
|
1151
2971
|
};
|
|
1152
|
-
export const
|
|
2972
|
+
export const de_ListPermissionSetsProvisionedToAccountCommand = async (output, context) => {
|
|
1153
2973
|
if (output.statusCode >= 300) {
|
|
1154
|
-
return
|
|
2974
|
+
return de_ListPermissionSetsProvisionedToAccountCommandError(output, context);
|
|
1155
2975
|
}
|
|
1156
2976
|
const data = await parseBody(output.body, context);
|
|
1157
2977
|
let contents = {};
|
|
1158
|
-
contents =
|
|
2978
|
+
contents = _json(data);
|
|
1159
2979
|
const response = {
|
|
1160
2980
|
$metadata: deserializeMetadata(output),
|
|
1161
2981
|
...contents,
|
|
1162
2982
|
};
|
|
1163
2983
|
return response;
|
|
1164
2984
|
};
|
|
1165
|
-
const
|
|
2985
|
+
const de_ListPermissionSetsProvisionedToAccountCommandError = async (output, context) => {
|
|
1166
2986
|
const parsedOutput = {
|
|
1167
2987
|
...output,
|
|
1168
2988
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1193,9 +3013,9 @@ const de_ListAccountAssignmentDeletionStatusCommandError = async (output, contex
|
|
|
1193
3013
|
});
|
|
1194
3014
|
}
|
|
1195
3015
|
};
|
|
1196
|
-
export const
|
|
3016
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1197
3017
|
if (output.statusCode >= 300) {
|
|
1198
|
-
return
|
|
3018
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1199
3019
|
}
|
|
1200
3020
|
const data = await parseBody(output.body, context);
|
|
1201
3021
|
let contents = {};
|
|
@@ -1206,7 +3026,7 @@ export const de_ListAccountAssignmentsCommand = async (output, context) => {
|
|
|
1206
3026
|
};
|
|
1207
3027
|
return response;
|
|
1208
3028
|
};
|
|
1209
|
-
const
|
|
3029
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1210
3030
|
const parsedOutput = {
|
|
1211
3031
|
...output,
|
|
1212
3032
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1237,9 +3057,9 @@ const de_ListAccountAssignmentsCommandError = async (output, context) => {
|
|
|
1237
3057
|
});
|
|
1238
3058
|
}
|
|
1239
3059
|
};
|
|
1240
|
-
export const
|
|
3060
|
+
export const de_ListTrustedTokenIssuersCommand = async (output, context) => {
|
|
1241
3061
|
if (output.statusCode >= 300) {
|
|
1242
|
-
return
|
|
3062
|
+
return de_ListTrustedTokenIssuersCommandError(output, context);
|
|
1243
3063
|
}
|
|
1244
3064
|
const data = await parseBody(output.body, context);
|
|
1245
3065
|
let contents = {};
|
|
@@ -1250,7 +3070,7 @@ export const de_ListAccountsForProvisionedPermissionSetCommand = async (output,
|
|
|
1250
3070
|
};
|
|
1251
3071
|
return response;
|
|
1252
3072
|
};
|
|
1253
|
-
const
|
|
3073
|
+
const de_ListTrustedTokenIssuersCommandError = async (output, context) => {
|
|
1254
3074
|
const parsedOutput = {
|
|
1255
3075
|
...output,
|
|
1256
3076
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1263,9 +3083,6 @@ const de_ListAccountsForProvisionedPermissionSetCommandError = async (output, co
|
|
|
1263
3083
|
case "InternalServerException":
|
|
1264
3084
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1265
3085
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "ResourceNotFoundException":
|
|
1267
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1268
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1269
3086
|
case "ThrottlingException":
|
|
1270
3087
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1271
3088
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -1281,20 +3098,20 @@ const de_ListAccountsForProvisionedPermissionSetCommandError = async (output, co
|
|
|
1281
3098
|
});
|
|
1282
3099
|
}
|
|
1283
3100
|
};
|
|
1284
|
-
export const
|
|
3101
|
+
export const de_ProvisionPermissionSetCommand = async (output, context) => {
|
|
1285
3102
|
if (output.statusCode >= 300) {
|
|
1286
|
-
return
|
|
3103
|
+
return de_ProvisionPermissionSetCommandError(output, context);
|
|
1287
3104
|
}
|
|
1288
3105
|
const data = await parseBody(output.body, context);
|
|
1289
3106
|
let contents = {};
|
|
1290
|
-
contents =
|
|
3107
|
+
contents = de_ProvisionPermissionSetResponse(data, context);
|
|
1291
3108
|
const response = {
|
|
1292
3109
|
$metadata: deserializeMetadata(output),
|
|
1293
3110
|
...contents,
|
|
1294
3111
|
};
|
|
1295
3112
|
return response;
|
|
1296
3113
|
};
|
|
1297
|
-
const
|
|
3114
|
+
const de_ProvisionPermissionSetCommandError = async (output, context) => {
|
|
1298
3115
|
const parsedOutput = {
|
|
1299
3116
|
...output,
|
|
1300
3117
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1304,6 +3121,9 @@ const de_ListCustomerManagedPolicyReferencesInPermissionSetCommandError = async
|
|
|
1304
3121
|
case "AccessDeniedException":
|
|
1305
3122
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1306
3123
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3124
|
+
case "ConflictException":
|
|
3125
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3126
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1307
3127
|
case "InternalServerException":
|
|
1308
3128
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1309
3129
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -1325,20 +3145,17 @@ const de_ListCustomerManagedPolicyReferencesInPermissionSetCommandError = async
|
|
|
1325
3145
|
});
|
|
1326
3146
|
}
|
|
1327
3147
|
};
|
|
1328
|
-
export const
|
|
3148
|
+
export const de_PutApplicationAccessScopeCommand = async (output, context) => {
|
|
1329
3149
|
if (output.statusCode >= 300) {
|
|
1330
|
-
return
|
|
3150
|
+
return de_PutApplicationAccessScopeCommandError(output, context);
|
|
1331
3151
|
}
|
|
1332
|
-
|
|
1333
|
-
let contents = {};
|
|
1334
|
-
contents = _json(data);
|
|
3152
|
+
await collectBody(output.body, context);
|
|
1335
3153
|
const response = {
|
|
1336
3154
|
$metadata: deserializeMetadata(output),
|
|
1337
|
-
...contents,
|
|
1338
3155
|
};
|
|
1339
3156
|
return response;
|
|
1340
3157
|
};
|
|
1341
|
-
const
|
|
3158
|
+
const de_PutApplicationAccessScopeCommandError = async (output, context) => {
|
|
1342
3159
|
const parsedOutput = {
|
|
1343
3160
|
...output,
|
|
1344
3161
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1348,9 +3165,15 @@ const de_ListInstancesCommandError = async (output, context) => {
|
|
|
1348
3165
|
case "AccessDeniedException":
|
|
1349
3166
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1350
3167
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3168
|
+
case "ConflictException":
|
|
3169
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3170
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1351
3171
|
case "InternalServerException":
|
|
1352
3172
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1353
3173
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3174
|
+
case "ResourceNotFoundException":
|
|
3175
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3176
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1354
3177
|
case "ThrottlingException":
|
|
1355
3178
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1356
3179
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -1366,9 +3189,9 @@ const de_ListInstancesCommandError = async (output, context) => {
|
|
|
1366
3189
|
});
|
|
1367
3190
|
}
|
|
1368
3191
|
};
|
|
1369
|
-
export const
|
|
3192
|
+
export const de_PutApplicationAssignmentConfigurationCommand = async (output, context) => {
|
|
1370
3193
|
if (output.statusCode >= 300) {
|
|
1371
|
-
return
|
|
3194
|
+
return de_PutApplicationAssignmentConfigurationCommandError(output, context);
|
|
1372
3195
|
}
|
|
1373
3196
|
const data = await parseBody(output.body, context);
|
|
1374
3197
|
let contents = {};
|
|
@@ -1379,7 +3202,7 @@ export const de_ListManagedPoliciesInPermissionSetCommand = async (output, conte
|
|
|
1379
3202
|
};
|
|
1380
3203
|
return response;
|
|
1381
3204
|
};
|
|
1382
|
-
const
|
|
3205
|
+
const de_PutApplicationAssignmentConfigurationCommandError = async (output, context) => {
|
|
1383
3206
|
const parsedOutput = {
|
|
1384
3207
|
...output,
|
|
1385
3208
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1389,6 +3212,9 @@ const de_ListManagedPoliciesInPermissionSetCommandError = async (output, context
|
|
|
1389
3212
|
case "AccessDeniedException":
|
|
1390
3213
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1391
3214
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3215
|
+
case "ConflictException":
|
|
3216
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3217
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1392
3218
|
case "InternalServerException":
|
|
1393
3219
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1394
3220
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -1410,20 +3236,17 @@ const de_ListManagedPoliciesInPermissionSetCommandError = async (output, context
|
|
|
1410
3236
|
});
|
|
1411
3237
|
}
|
|
1412
3238
|
};
|
|
1413
|
-
export const
|
|
3239
|
+
export const de_PutApplicationAuthenticationMethodCommand = async (output, context) => {
|
|
1414
3240
|
if (output.statusCode >= 300) {
|
|
1415
|
-
return
|
|
3241
|
+
return de_PutApplicationAuthenticationMethodCommandError(output, context);
|
|
1416
3242
|
}
|
|
1417
|
-
|
|
1418
|
-
let contents = {};
|
|
1419
|
-
contents = de_ListPermissionSetProvisioningStatusResponse(data, context);
|
|
3243
|
+
await collectBody(output.body, context);
|
|
1420
3244
|
const response = {
|
|
1421
3245
|
$metadata: deserializeMetadata(output),
|
|
1422
|
-
...contents,
|
|
1423
3246
|
};
|
|
1424
3247
|
return response;
|
|
1425
3248
|
};
|
|
1426
|
-
const
|
|
3249
|
+
const de_PutApplicationAuthenticationMethodCommandError = async (output, context) => {
|
|
1427
3250
|
const parsedOutput = {
|
|
1428
3251
|
...output,
|
|
1429
3252
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1433,6 +3256,9 @@ const de_ListPermissionSetProvisioningStatusCommandError = async (output, contex
|
|
|
1433
3256
|
case "AccessDeniedException":
|
|
1434
3257
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1435
3258
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3259
|
+
case "ConflictException":
|
|
3260
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3261
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1436
3262
|
case "InternalServerException":
|
|
1437
3263
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1438
3264
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -1454,20 +3280,17 @@ const de_ListPermissionSetProvisioningStatusCommandError = async (output, contex
|
|
|
1454
3280
|
});
|
|
1455
3281
|
}
|
|
1456
3282
|
};
|
|
1457
|
-
export const
|
|
3283
|
+
export const de_PutApplicationGrantCommand = async (output, context) => {
|
|
1458
3284
|
if (output.statusCode >= 300) {
|
|
1459
|
-
return
|
|
3285
|
+
return de_PutApplicationGrantCommandError(output, context);
|
|
1460
3286
|
}
|
|
1461
|
-
|
|
1462
|
-
let contents = {};
|
|
1463
|
-
contents = _json(data);
|
|
3287
|
+
await collectBody(output.body, context);
|
|
1464
3288
|
const response = {
|
|
1465
3289
|
$metadata: deserializeMetadata(output),
|
|
1466
|
-
...contents,
|
|
1467
3290
|
};
|
|
1468
3291
|
return response;
|
|
1469
3292
|
};
|
|
1470
|
-
const
|
|
3293
|
+
const de_PutApplicationGrantCommandError = async (output, context) => {
|
|
1471
3294
|
const parsedOutput = {
|
|
1472
3295
|
...output,
|
|
1473
3296
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1477,6 +3300,9 @@ const de_ListPermissionSetsCommandError = async (output, context) => {
|
|
|
1477
3300
|
case "AccessDeniedException":
|
|
1478
3301
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1479
3302
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3303
|
+
case "ConflictException":
|
|
3304
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3305
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1480
3306
|
case "InternalServerException":
|
|
1481
3307
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1482
3308
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -1498,9 +3324,9 @@ const de_ListPermissionSetsCommandError = async (output, context) => {
|
|
|
1498
3324
|
});
|
|
1499
3325
|
}
|
|
1500
3326
|
};
|
|
1501
|
-
export const
|
|
3327
|
+
export const de_PutInlinePolicyToPermissionSetCommand = async (output, context) => {
|
|
1502
3328
|
if (output.statusCode >= 300) {
|
|
1503
|
-
return
|
|
3329
|
+
return de_PutInlinePolicyToPermissionSetCommandError(output, context);
|
|
1504
3330
|
}
|
|
1505
3331
|
const data = await parseBody(output.body, context);
|
|
1506
3332
|
let contents = {};
|
|
@@ -1511,7 +3337,7 @@ export const de_ListPermissionSetsProvisionedToAccountCommand = async (output, c
|
|
|
1511
3337
|
};
|
|
1512
3338
|
return response;
|
|
1513
3339
|
};
|
|
1514
|
-
const
|
|
3340
|
+
const de_PutInlinePolicyToPermissionSetCommandError = async (output, context) => {
|
|
1515
3341
|
const parsedOutput = {
|
|
1516
3342
|
...output,
|
|
1517
3343
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1521,12 +3347,18 @@ const de_ListPermissionSetsProvisionedToAccountCommandError = async (output, con
|
|
|
1521
3347
|
case "AccessDeniedException":
|
|
1522
3348
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1523
3349
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3350
|
+
case "ConflictException":
|
|
3351
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3352
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1524
3353
|
case "InternalServerException":
|
|
1525
3354
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1526
3355
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1527
3356
|
case "ResourceNotFoundException":
|
|
1528
3357
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1529
3358
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3359
|
+
case "ServiceQuotaExceededException":
|
|
3360
|
+
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
3361
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1530
3362
|
case "ThrottlingException":
|
|
1531
3363
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1532
3364
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -1542,9 +3374,9 @@ const de_ListPermissionSetsProvisionedToAccountCommandError = async (output, con
|
|
|
1542
3374
|
});
|
|
1543
3375
|
}
|
|
1544
3376
|
};
|
|
1545
|
-
export const
|
|
3377
|
+
export const de_PutPermissionsBoundaryToPermissionSetCommand = async (output, context) => {
|
|
1546
3378
|
if (output.statusCode >= 300) {
|
|
1547
|
-
return
|
|
3379
|
+
return de_PutPermissionsBoundaryToPermissionSetCommandError(output, context);
|
|
1548
3380
|
}
|
|
1549
3381
|
const data = await parseBody(output.body, context);
|
|
1550
3382
|
let contents = {};
|
|
@@ -1555,7 +3387,7 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1555
3387
|
};
|
|
1556
3388
|
return response;
|
|
1557
3389
|
};
|
|
1558
|
-
const
|
|
3390
|
+
const de_PutPermissionsBoundaryToPermissionSetCommandError = async (output, context) => {
|
|
1559
3391
|
const parsedOutput = {
|
|
1560
3392
|
...output,
|
|
1561
3393
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1565,6 +3397,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1565
3397
|
case "AccessDeniedException":
|
|
1566
3398
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1567
3399
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3400
|
+
case "ConflictException":
|
|
3401
|
+
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3402
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1568
3403
|
case "InternalServerException":
|
|
1569
3404
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1570
3405
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -1586,20 +3421,20 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1586
3421
|
});
|
|
1587
3422
|
}
|
|
1588
3423
|
};
|
|
1589
|
-
export const
|
|
3424
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1590
3425
|
if (output.statusCode >= 300) {
|
|
1591
|
-
return
|
|
3426
|
+
return de_TagResourceCommandError(output, context);
|
|
1592
3427
|
}
|
|
1593
3428
|
const data = await parseBody(output.body, context);
|
|
1594
3429
|
let contents = {};
|
|
1595
|
-
contents =
|
|
3430
|
+
contents = _json(data);
|
|
1596
3431
|
const response = {
|
|
1597
3432
|
$metadata: deserializeMetadata(output),
|
|
1598
3433
|
...contents,
|
|
1599
3434
|
};
|
|
1600
3435
|
return response;
|
|
1601
3436
|
};
|
|
1602
|
-
const
|
|
3437
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1603
3438
|
const parsedOutput = {
|
|
1604
3439
|
...output,
|
|
1605
3440
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1618,6 +3453,9 @@ const de_ProvisionPermissionSetCommandError = async (output, context) => {
|
|
|
1618
3453
|
case "ResourceNotFoundException":
|
|
1619
3454
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1620
3455
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3456
|
+
case "ServiceQuotaExceededException":
|
|
3457
|
+
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
3458
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1621
3459
|
case "ThrottlingException":
|
|
1622
3460
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1623
3461
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -1633,9 +3471,9 @@ const de_ProvisionPermissionSetCommandError = async (output, context) => {
|
|
|
1633
3471
|
});
|
|
1634
3472
|
}
|
|
1635
3473
|
};
|
|
1636
|
-
export const
|
|
3474
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1637
3475
|
if (output.statusCode >= 300) {
|
|
1638
|
-
return
|
|
3476
|
+
return de_UntagResourceCommandError(output, context);
|
|
1639
3477
|
}
|
|
1640
3478
|
const data = await parseBody(output.body, context);
|
|
1641
3479
|
let contents = {};
|
|
@@ -1646,7 +3484,7 @@ export const de_PutInlinePolicyToPermissionSetCommand = async (output, context)
|
|
|
1646
3484
|
};
|
|
1647
3485
|
return response;
|
|
1648
3486
|
};
|
|
1649
|
-
const
|
|
3487
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1650
3488
|
const parsedOutput = {
|
|
1651
3489
|
...output,
|
|
1652
3490
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1665,9 +3503,6 @@ const de_PutInlinePolicyToPermissionSetCommandError = async (output, context) =>
|
|
|
1665
3503
|
case "ResourceNotFoundException":
|
|
1666
3504
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1667
3505
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "ServiceQuotaExceededException":
|
|
1669
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
1670
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1671
3506
|
case "ThrottlingException":
|
|
1672
3507
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1673
3508
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -1683,9 +3518,9 @@ const de_PutInlinePolicyToPermissionSetCommandError = async (output, context) =>
|
|
|
1683
3518
|
});
|
|
1684
3519
|
}
|
|
1685
3520
|
};
|
|
1686
|
-
export const
|
|
3521
|
+
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
1687
3522
|
if (output.statusCode >= 300) {
|
|
1688
|
-
return
|
|
3523
|
+
return de_UpdateApplicationCommandError(output, context);
|
|
1689
3524
|
}
|
|
1690
3525
|
const data = await parseBody(output.body, context);
|
|
1691
3526
|
let contents = {};
|
|
@@ -1696,7 +3531,7 @@ export const de_PutPermissionsBoundaryToPermissionSetCommand = async (output, co
|
|
|
1696
3531
|
};
|
|
1697
3532
|
return response;
|
|
1698
3533
|
};
|
|
1699
|
-
const
|
|
3534
|
+
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
1700
3535
|
const parsedOutput = {
|
|
1701
3536
|
...output,
|
|
1702
3537
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1730,9 +3565,9 @@ const de_PutPermissionsBoundaryToPermissionSetCommandError = async (output, cont
|
|
|
1730
3565
|
});
|
|
1731
3566
|
}
|
|
1732
3567
|
};
|
|
1733
|
-
export const
|
|
3568
|
+
export const de_UpdateInstanceCommand = async (output, context) => {
|
|
1734
3569
|
if (output.statusCode >= 300) {
|
|
1735
|
-
return
|
|
3570
|
+
return de_UpdateInstanceCommandError(output, context);
|
|
1736
3571
|
}
|
|
1737
3572
|
const data = await parseBody(output.body, context);
|
|
1738
3573
|
let contents = {};
|
|
@@ -1743,7 +3578,7 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1743
3578
|
};
|
|
1744
3579
|
return response;
|
|
1745
3580
|
};
|
|
1746
|
-
const
|
|
3581
|
+
const de_UpdateInstanceCommandError = async (output, context) => {
|
|
1747
3582
|
const parsedOutput = {
|
|
1748
3583
|
...output,
|
|
1749
3584
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1759,12 +3594,6 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1759
3594
|
case "InternalServerException":
|
|
1760
3595
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1761
3596
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1762
|
-
case "ResourceNotFoundException":
|
|
1763
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1764
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1765
|
-
case "ServiceQuotaExceededException":
|
|
1766
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
1767
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1768
3597
|
case "ThrottlingException":
|
|
1769
3598
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1770
3599
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -1780,9 +3609,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1780
3609
|
});
|
|
1781
3610
|
}
|
|
1782
3611
|
};
|
|
1783
|
-
export const
|
|
3612
|
+
export const de_UpdateInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
1784
3613
|
if (output.statusCode >= 300) {
|
|
1785
|
-
return
|
|
3614
|
+
return de_UpdateInstanceAccessControlAttributeConfigurationCommandError(output, context);
|
|
1786
3615
|
}
|
|
1787
3616
|
const data = await parseBody(output.body, context);
|
|
1788
3617
|
let contents = {};
|
|
@@ -1793,7 +3622,7 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1793
3622
|
};
|
|
1794
3623
|
return response;
|
|
1795
3624
|
};
|
|
1796
|
-
const
|
|
3625
|
+
const de_UpdateInstanceAccessControlAttributeConfigurationCommandError = async (output, context) => {
|
|
1797
3626
|
const parsedOutput = {
|
|
1798
3627
|
...output,
|
|
1799
3628
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1827,9 +3656,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1827
3656
|
});
|
|
1828
3657
|
}
|
|
1829
3658
|
};
|
|
1830
|
-
export const
|
|
3659
|
+
export const de_UpdatePermissionSetCommand = async (output, context) => {
|
|
1831
3660
|
if (output.statusCode >= 300) {
|
|
1832
|
-
return
|
|
3661
|
+
return de_UpdatePermissionSetCommandError(output, context);
|
|
1833
3662
|
}
|
|
1834
3663
|
const data = await parseBody(output.body, context);
|
|
1835
3664
|
let contents = {};
|
|
@@ -1840,7 +3669,7 @@ export const de_UpdateInstanceAccessControlAttributeConfigurationCommand = async
|
|
|
1840
3669
|
};
|
|
1841
3670
|
return response;
|
|
1842
3671
|
};
|
|
1843
|
-
const
|
|
3672
|
+
const de_UpdatePermissionSetCommandError = async (output, context) => {
|
|
1844
3673
|
const parsedOutput = {
|
|
1845
3674
|
...output,
|
|
1846
3675
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1874,9 +3703,9 @@ const de_UpdateInstanceAccessControlAttributeConfigurationCommandError = async (
|
|
|
1874
3703
|
});
|
|
1875
3704
|
}
|
|
1876
3705
|
};
|
|
1877
|
-
export const
|
|
3706
|
+
export const de_UpdateTrustedTokenIssuerCommand = async (output, context) => {
|
|
1878
3707
|
if (output.statusCode >= 300) {
|
|
1879
|
-
return
|
|
3708
|
+
return de_UpdateTrustedTokenIssuerCommandError(output, context);
|
|
1880
3709
|
}
|
|
1881
3710
|
const data = await parseBody(output.body, context);
|
|
1882
3711
|
let contents = {};
|
|
@@ -1887,7 +3716,7 @@ export const de_UpdatePermissionSetCommand = async (output, context) => {
|
|
|
1887
3716
|
};
|
|
1888
3717
|
return response;
|
|
1889
3718
|
};
|
|
1890
|
-
const
|
|
3719
|
+
const de_UpdateTrustedTokenIssuerCommandError = async (output, context) => {
|
|
1891
3720
|
const parsedOutput = {
|
|
1892
3721
|
...output,
|
|
1893
3722
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1984,6 +3813,56 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1984
3813
|
});
|
|
1985
3814
|
return __decorateServiceException(exception, body);
|
|
1986
3815
|
};
|
|
3816
|
+
const se_ActorPolicyDocument = (input, context) => {
|
|
3817
|
+
return input;
|
|
3818
|
+
};
|
|
3819
|
+
const se_AuthenticationMethod = (input, context) => {
|
|
3820
|
+
return AuthenticationMethod.visit(input, {
|
|
3821
|
+
Iam: (value) => ({ Iam: se_IamAuthenticationMethod(value, context) }),
|
|
3822
|
+
_: (name, value) => ({ name: value }),
|
|
3823
|
+
});
|
|
3824
|
+
};
|
|
3825
|
+
const se_CreateApplicationRequest = (input, context) => {
|
|
3826
|
+
return take(input, {
|
|
3827
|
+
ApplicationProviderArn: [],
|
|
3828
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
3829
|
+
Description: [],
|
|
3830
|
+
InstanceArn: [],
|
|
3831
|
+
Name: [],
|
|
3832
|
+
PortalOptions: _json,
|
|
3833
|
+
Status: [],
|
|
3834
|
+
Tags: _json,
|
|
3835
|
+
});
|
|
3836
|
+
};
|
|
3837
|
+
const se_CreateInstanceRequest = (input, context) => {
|
|
3838
|
+
return take(input, {
|
|
3839
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
3840
|
+
Name: [],
|
|
3841
|
+
Tags: _json,
|
|
3842
|
+
});
|
|
3843
|
+
};
|
|
3844
|
+
const se_CreateTrustedTokenIssuerRequest = (input, context) => {
|
|
3845
|
+
return take(input, {
|
|
3846
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
3847
|
+
InstanceArn: [],
|
|
3848
|
+
Name: [],
|
|
3849
|
+
Tags: _json,
|
|
3850
|
+
TrustedTokenIssuerConfiguration: _json,
|
|
3851
|
+
TrustedTokenIssuerType: [],
|
|
3852
|
+
});
|
|
3853
|
+
};
|
|
3854
|
+
const se_IamAuthenticationMethod = (input, context) => {
|
|
3855
|
+
return take(input, {
|
|
3856
|
+
ActorPolicy: (_) => se_ActorPolicyDocument(_, context),
|
|
3857
|
+
});
|
|
3858
|
+
};
|
|
3859
|
+
const se_PutApplicationAuthenticationMethodRequest = (input, context) => {
|
|
3860
|
+
return take(input, {
|
|
3861
|
+
ApplicationArn: [],
|
|
3862
|
+
AuthenticationMethod: (_) => se_AuthenticationMethod(_, context),
|
|
3863
|
+
AuthenticationMethodType: [],
|
|
3864
|
+
});
|
|
3865
|
+
};
|
|
1987
3866
|
const de_AccountAssignmentOperationStatus = (output, context) => {
|
|
1988
3867
|
return take(output, {
|
|
1989
3868
|
CreatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -2012,6 +3891,52 @@ const de_AccountAssignmentOperationStatusMetadata = (output, context) => {
|
|
|
2012
3891
|
Status: __expectString,
|
|
2013
3892
|
});
|
|
2014
3893
|
};
|
|
3894
|
+
const de_ActorPolicyDocument = (output, context) => {
|
|
3895
|
+
return output;
|
|
3896
|
+
};
|
|
3897
|
+
const de_Application = (output, context) => {
|
|
3898
|
+
return take(output, {
|
|
3899
|
+
ApplicationAccount: __expectString,
|
|
3900
|
+
ApplicationArn: __expectString,
|
|
3901
|
+
ApplicationProviderArn: __expectString,
|
|
3902
|
+
CreatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3903
|
+
Description: __expectString,
|
|
3904
|
+
InstanceArn: __expectString,
|
|
3905
|
+
Name: __expectString,
|
|
3906
|
+
PortalOptions: _json,
|
|
3907
|
+
Status: __expectString,
|
|
3908
|
+
});
|
|
3909
|
+
};
|
|
3910
|
+
const de_ApplicationList = (output, context) => {
|
|
3911
|
+
const retVal = (output || [])
|
|
3912
|
+
.filter((e) => e != null)
|
|
3913
|
+
.map((entry) => {
|
|
3914
|
+
return de_Application(entry, context);
|
|
3915
|
+
});
|
|
3916
|
+
return retVal;
|
|
3917
|
+
};
|
|
3918
|
+
const de_AuthenticationMethod = (output, context) => {
|
|
3919
|
+
if (output.Iam != null) {
|
|
3920
|
+
return {
|
|
3921
|
+
Iam: de_IamAuthenticationMethod(output.Iam, context),
|
|
3922
|
+
};
|
|
3923
|
+
}
|
|
3924
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3925
|
+
};
|
|
3926
|
+
const de_AuthenticationMethodItem = (output, context) => {
|
|
3927
|
+
return take(output, {
|
|
3928
|
+
AuthenticationMethod: (_) => de_AuthenticationMethod(__expectUnion(_), context),
|
|
3929
|
+
AuthenticationMethodType: __expectString,
|
|
3930
|
+
});
|
|
3931
|
+
};
|
|
3932
|
+
const de_AuthenticationMethods = (output, context) => {
|
|
3933
|
+
const retVal = (output || [])
|
|
3934
|
+
.filter((e) => e != null)
|
|
3935
|
+
.map((entry) => {
|
|
3936
|
+
return de_AuthenticationMethodItem(entry, context);
|
|
3937
|
+
});
|
|
3938
|
+
return retVal;
|
|
3939
|
+
};
|
|
2015
3940
|
const de_CreateAccountAssignmentResponse = (output, context) => {
|
|
2016
3941
|
return take(output, {
|
|
2017
3942
|
AccountAssignmentCreationStatus: (_) => de_AccountAssignmentOperationStatus(_, context),
|
|
@@ -2037,6 +3962,29 @@ const de_DescribeAccountAssignmentDeletionStatusResponse = (output, context) =>
|
|
|
2037
3962
|
AccountAssignmentDeletionStatus: (_) => de_AccountAssignmentOperationStatus(_, context),
|
|
2038
3963
|
});
|
|
2039
3964
|
};
|
|
3965
|
+
const de_DescribeApplicationResponse = (output, context) => {
|
|
3966
|
+
return take(output, {
|
|
3967
|
+
ApplicationAccount: __expectString,
|
|
3968
|
+
ApplicationArn: __expectString,
|
|
3969
|
+
ApplicationProviderArn: __expectString,
|
|
3970
|
+
CreatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3971
|
+
Description: __expectString,
|
|
3972
|
+
InstanceArn: __expectString,
|
|
3973
|
+
Name: __expectString,
|
|
3974
|
+
PortalOptions: _json,
|
|
3975
|
+
Status: __expectString,
|
|
3976
|
+
});
|
|
3977
|
+
};
|
|
3978
|
+
const de_DescribeInstanceResponse = (output, context) => {
|
|
3979
|
+
return take(output, {
|
|
3980
|
+
CreatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3981
|
+
IdentityStoreId: __expectString,
|
|
3982
|
+
InstanceArn: __expectString,
|
|
3983
|
+
Name: __expectString,
|
|
3984
|
+
OwnerAccountId: __expectString,
|
|
3985
|
+
Status: __expectString,
|
|
3986
|
+
});
|
|
3987
|
+
};
|
|
2040
3988
|
const de_DescribePermissionSetProvisioningStatusResponse = (output, context) => {
|
|
2041
3989
|
return take(output, {
|
|
2042
3990
|
PermissionSetProvisioningStatus: (_) => de_PermissionSetProvisioningStatus(_, context),
|
|
@@ -2047,6 +3995,34 @@ const de_DescribePermissionSetResponse = (output, context) => {
|
|
|
2047
3995
|
PermissionSet: (_) => de_PermissionSet(_, context),
|
|
2048
3996
|
});
|
|
2049
3997
|
};
|
|
3998
|
+
const de_GetApplicationAuthenticationMethodResponse = (output, context) => {
|
|
3999
|
+
return take(output, {
|
|
4000
|
+
AuthenticationMethod: (_) => de_AuthenticationMethod(__expectUnion(_), context),
|
|
4001
|
+
});
|
|
4002
|
+
};
|
|
4003
|
+
const de_IamAuthenticationMethod = (output, context) => {
|
|
4004
|
+
return take(output, {
|
|
4005
|
+
ActorPolicy: (_) => de_ActorPolicyDocument(_, context),
|
|
4006
|
+
});
|
|
4007
|
+
};
|
|
4008
|
+
const de_InstanceList = (output, context) => {
|
|
4009
|
+
const retVal = (output || [])
|
|
4010
|
+
.filter((e) => e != null)
|
|
4011
|
+
.map((entry) => {
|
|
4012
|
+
return de_InstanceMetadata(entry, context);
|
|
4013
|
+
});
|
|
4014
|
+
return retVal;
|
|
4015
|
+
};
|
|
4016
|
+
const de_InstanceMetadata = (output, context) => {
|
|
4017
|
+
return take(output, {
|
|
4018
|
+
CreatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4019
|
+
IdentityStoreId: __expectString,
|
|
4020
|
+
InstanceArn: __expectString,
|
|
4021
|
+
Name: __expectString,
|
|
4022
|
+
OwnerAccountId: __expectString,
|
|
4023
|
+
Status: __expectString,
|
|
4024
|
+
});
|
|
4025
|
+
};
|
|
2050
4026
|
const de_ListAccountAssignmentCreationStatusResponse = (output, context) => {
|
|
2051
4027
|
return take(output, {
|
|
2052
4028
|
AccountAssignmentsCreationStatus: (_) => de_AccountAssignmentOperationStatusList(_, context),
|
|
@@ -2059,6 +4035,24 @@ const de_ListAccountAssignmentDeletionStatusResponse = (output, context) => {
|
|
|
2059
4035
|
NextToken: __expectString,
|
|
2060
4036
|
});
|
|
2061
4037
|
};
|
|
4038
|
+
const de_ListApplicationAuthenticationMethodsResponse = (output, context) => {
|
|
4039
|
+
return take(output, {
|
|
4040
|
+
AuthenticationMethods: (_) => de_AuthenticationMethods(_, context),
|
|
4041
|
+
NextToken: __expectString,
|
|
4042
|
+
});
|
|
4043
|
+
};
|
|
4044
|
+
const de_ListApplicationsResponse = (output, context) => {
|
|
4045
|
+
return take(output, {
|
|
4046
|
+
Applications: (_) => de_ApplicationList(_, context),
|
|
4047
|
+
NextToken: __expectString,
|
|
4048
|
+
});
|
|
4049
|
+
};
|
|
4050
|
+
const de_ListInstancesResponse = (output, context) => {
|
|
4051
|
+
return take(output, {
|
|
4052
|
+
Instances: (_) => de_InstanceList(_, context),
|
|
4053
|
+
NextToken: __expectString,
|
|
4054
|
+
});
|
|
4055
|
+
};
|
|
2062
4056
|
const de_ListPermissionSetProvisioningStatusResponse = (output, context) => {
|
|
2063
4057
|
return take(output, {
|
|
2064
4058
|
NextToken: __expectString,
|