@aws-sdk/client-sso-admin 3.34.0 → 3.37.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/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/SSOAdmin.js +1 -12
- package/dist-cjs/SSOAdminClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/AttachManagedPolicyToPermissionSetCommand.js +2 -35
- package/dist-cjs/commands/CreateAccountAssignmentCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/CreateInstanceAccessControlAttributeConfigurationCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/CreatePermissionSetCommand.js +2 -32
- package/{dist/cjs → dist-cjs}/commands/DeleteAccountAssignmentCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/DeleteInlinePolicyFromPermissionSetCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/DeletePermissionSetCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeAccountAssignmentCreationStatusCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeAccountAssignmentDeletionStatusCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/DescribePermissionSetCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribePermissionSetProvisioningStatusCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DetachManagedPolicyFromPermissionSetCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetInlinePolicyForPermissionSetCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListAccountAssignmentCreationStatusCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListAccountAssignmentDeletionStatusCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListAccountAssignmentsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListAccountsForProvisionedPermissionSetCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListInstancesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListManagedPoliciesInPermissionSetCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListPermissionSetProvisioningStatusCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListPermissionSetsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListPermissionSetsProvisionedToAccountCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ProvisionPermissionSetCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/PutInlinePolicyToPermissionSetCommand.js +2 -34
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.js +2 -32
- package/{dist/cjs → dist-cjs}/commands/UpdatePermissionSetCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -247
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListAccountAssignmentCreationStatusPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListAccountAssignmentDeletionStatusPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListAccountAssignmentsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListAccountsForProvisionedPermissionSetPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListInstancesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListManagedPoliciesInPermissionSetPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListPermissionSetProvisioningStatusPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListPermissionSetsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListPermissionSetsProvisionedToAccountPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListTagsForResourcePaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/SSOAdmin.js +1 -2
- package/{dist/es → dist-es}/SSOAdminClient.js +1 -2
- package/{dist/es → dist-es}/commands/AttachManagedPolicyToPermissionSetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateAccountAssignmentCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateInstanceAccessControlAttributeConfigurationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreatePermissionSetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteAccountAssignmentCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteInlinePolicyFromPermissionSetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeletePermissionSetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeAccountAssignmentCreationStatusCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeAccountAssignmentDeletionStatusCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribePermissionSetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribePermissionSetProvisioningStatusCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DetachManagedPolicyFromPermissionSetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetInlinePolicyForPermissionSetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListAccountAssignmentCreationStatusCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListAccountAssignmentDeletionStatusCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListAccountAssignmentsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListAccountsForProvisionedPermissionSetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListInstancesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListManagedPoliciesInPermissionSetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListPermissionSetProvisioningStatusCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListPermissionSetsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListPermissionSetsProvisionedToAccountCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ProvisionPermissionSetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutInlinePolicyToPermissionSetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdatePermissionSetCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListAccountAssignmentCreationStatusPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListAccountAssignmentDeletionStatusPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListAccountAssignmentsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListAccountsForProvisionedPermissionSetPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListInstancesPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListManagedPoliciesInPermissionSetPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListPermissionSetProvisioningStatusPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListPermissionSetsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListPermissionSetsProvisionedToAccountPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListTagsForResourcePaginator.js +1 -2
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/SSOAdmin.d.ts +2 -2
- package/{dist/types → dist-types}/SSOAdminClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AttachManagedPolicyToPermissionSetCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateAccountAssignmentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateInstanceAccessControlAttributeConfigurationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreatePermissionSetCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteAccountAssignmentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteInlinePolicyFromPermissionSetCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeletePermissionSetCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeAccountAssignmentCreationStatusCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeAccountAssignmentDeletionStatusCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribePermissionSetCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribePermissionSetProvisioningStatusCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DetachManagedPolicyFromPermissionSetCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetInlinePolicyForPermissionSetCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListAccountAssignmentCreationStatusCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListAccountAssignmentDeletionStatusCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListAccountAssignmentsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListAccountsForProvisionedPermissionSetCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListInstancesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListManagedPoliciesInPermissionSetCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListPermissionSetProvisioningStatusCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListPermissionSetsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListPermissionSetsProvisionedToAccountCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ProvisionPermissionSetCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PutInlinePolicyToPermissionSetCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdatePermissionSetCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAccountAssignmentCreationStatusPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAccountAssignmentDeletionStatusPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAccountAssignmentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAccountsForProvisionedPermissionSetPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListInstancesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListManagedPoliciesInPermissionSetPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPermissionSetProvisioningStatusPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPermissionSetsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPermissionSetsProvisionedToAccountPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListTagsForResourcePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/SSOAdmin.d.ts +34 -158
- package/{dist/types → dist-types}/ts3.4/SSOAdminClient.d.ts +32 -104
- package/dist-types/ts3.4/commands/AttachManagedPolicyToPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateAccountAssignmentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateInstanceAccessControlAttributeConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreatePermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAccountAssignmentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteInlinePolicyFromPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeletePermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAccountAssignmentCreationStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAccountAssignmentDeletionStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribePermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribePermissionSetProvisioningStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DetachManagedPolicyFromPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetInlinePolicyForPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAccountAssignmentCreationStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAccountAssignmentDeletionStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAccountAssignmentsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAccountsForProvisionedPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListInstancesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListManagedPoliciesInPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPermissionSetProvisioningStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPermissionSetsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPermissionSetsProvisionedToAccountCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ProvisionPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutInlinePolicyToPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdatePermissionSetCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +909 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAccountAssignmentCreationStatusPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAccountAssignmentDeletionStatusPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAccountAssignmentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAccountsForProvisionedPermissionSetPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListInstancesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListManagedPoliciesInPermissionSetPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPermissionSetProvisioningStatusPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPermissionSetsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPermissionSetsProvisionedToAccountPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/SSOAdmin.ts +0 -1222
- package/SSOAdminClient.ts +0 -416
- package/commands/AttachManagedPolicyToPermissionSetCommand.ts +0 -113
- package/commands/CreateAccountAssignmentCommand.ts +0 -108
- package/commands/CreateInstanceAccessControlAttributeConfigurationCommand.ts +0 -111
- package/commands/CreatePermissionSetCommand.ts +0 -99
- package/commands/DeleteAccountAssignmentCommand.ts +0 -95
- package/commands/DeleteInlinePolicyFromPermissionSetCommand.ts +0 -105
- package/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.ts +0 -112
- package/commands/DeletePermissionSetCommand.ts +0 -94
- package/commands/DescribeAccountAssignmentCreationStatusCommand.ts +0 -109
- package/commands/DescribeAccountAssignmentDeletionStatusCommand.ts +0 -109
- package/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.ts +0 -112
- package/commands/DescribePermissionSetCommand.ts +0 -94
- package/commands/DescribePermissionSetProvisioningStatusCommand.ts +0 -109
- package/commands/DetachManagedPolicyFromPermissionSetCommand.ts +0 -105
- package/commands/GetInlinePolicyForPermissionSetCommand.ts +0 -102
- package/commands/ListAccountAssignmentCreationStatusCommand.ts +0 -106
- package/commands/ListAccountAssignmentDeletionStatusCommand.ts +0 -106
- package/commands/ListAccountAssignmentsCommand.ts +0 -95
- package/commands/ListAccountsForProvisionedPermissionSetCommand.ts +0 -109
- package/commands/ListInstancesCommand.ts +0 -94
- package/commands/ListManagedPoliciesInPermissionSetCommand.ts +0 -105
- package/commands/ListPermissionSetProvisioningStatusCommand.ts +0 -106
- package/commands/ListPermissionSetsCommand.ts +0 -94
- package/commands/ListPermissionSetsProvisionedToAccountCommand.ts +0 -106
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/ProvisionPermissionSetCommand.ts +0 -95
- package/commands/PutInlinePolicyToPermissionSetCommand.ts +0 -109
- package/commands/TagResourceCommand.ts +0 -94
- package/commands/UntagResourceCommand.ts +0 -94
- package/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.ts +0 -114
- package/commands/UpdatePermissionSetCommand.ts +0 -94
- package/dist/cjs/SSOAdmin.js.map +0 -1
- package/dist/cjs/SSOAdminClient.js +0 -51
- package/dist/cjs/SSOAdminClient.js.map +0 -1
- package/dist/cjs/commands/AttachManagedPolicyToPermissionSetCommand.js.map +0 -1
- package/dist/cjs/commands/CreateAccountAssignmentCommand.js +0 -75
- package/dist/cjs/commands/CreateAccountAssignmentCommand.js.map +0 -1
- package/dist/cjs/commands/CreateInstanceAccessControlAttributeConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/CreatePermissionSetCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAccountAssignmentCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteInlinePolicyFromPermissionSetCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/DeletePermissionSetCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAccountAssignmentCreationStatusCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAccountAssignmentDeletionStatusCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribePermissionSetCommand.js.map +0 -1
- package/dist/cjs/commands/DescribePermissionSetProvisioningStatusCommand.js.map +0 -1
- package/dist/cjs/commands/DetachManagedPolicyFromPermissionSetCommand.js.map +0 -1
- package/dist/cjs/commands/GetInlinePolicyForPermissionSetCommand.js.map +0 -1
- package/dist/cjs/commands/ListAccountAssignmentCreationStatusCommand.js.map +0 -1
- package/dist/cjs/commands/ListAccountAssignmentDeletionStatusCommand.js.map +0 -1
- package/dist/cjs/commands/ListAccountAssignmentsCommand.js.map +0 -1
- package/dist/cjs/commands/ListAccountsForProvisionedPermissionSetCommand.js.map +0 -1
- package/dist/cjs/commands/ListInstancesCommand.js.map +0 -1
- package/dist/cjs/commands/ListManagedPoliciesInPermissionSetCommand.js.map +0 -1
- package/dist/cjs/commands/ListPermissionSetProvisioningStatusCommand.js.map +0 -1
- package/dist/cjs/commands/ListPermissionSetsCommand.js.map +0 -1
- package/dist/cjs/commands/ListPermissionSetsProvisionedToAccountCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/ProvisionPermissionSetCommand.js.map +0 -1
- package/dist/cjs/commands/PutInlinePolicyToPermissionSetCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/UpdatePermissionSetCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListAccountAssignmentCreationStatusPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListAccountAssignmentDeletionStatusPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListAccountAssignmentsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListAccountsForProvisionedPermissionSetPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListInstancesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListManagedPoliciesInPermissionSetPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPermissionSetProvisioningStatusPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPermissionSetsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPermissionSetsProvisionedToAccountPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/SSOAdmin.js.map +0 -1
- package/dist/es/SSOAdminClient.js.map +0 -1
- package/dist/es/commands/AttachManagedPolicyToPermissionSetCommand.js.map +0 -1
- package/dist/es/commands/CreateAccountAssignmentCommand.js.map +0 -1
- package/dist/es/commands/CreateInstanceAccessControlAttributeConfigurationCommand.js.map +0 -1
- package/dist/es/commands/CreatePermissionSetCommand.js.map +0 -1
- package/dist/es/commands/DeleteAccountAssignmentCommand.js.map +0 -1
- package/dist/es/commands/DeleteInlinePolicyFromPermissionSetCommand.js.map +0 -1
- package/dist/es/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.js.map +0 -1
- package/dist/es/commands/DeletePermissionSetCommand.js.map +0 -1
- package/dist/es/commands/DescribeAccountAssignmentCreationStatusCommand.js.map +0 -1
- package/dist/es/commands/DescribeAccountAssignmentDeletionStatusCommand.js.map +0 -1
- package/dist/es/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.js.map +0 -1
- package/dist/es/commands/DescribePermissionSetCommand.js.map +0 -1
- package/dist/es/commands/DescribePermissionSetProvisioningStatusCommand.js.map +0 -1
- package/dist/es/commands/DetachManagedPolicyFromPermissionSetCommand.js.map +0 -1
- package/dist/es/commands/GetInlinePolicyForPermissionSetCommand.js.map +0 -1
- package/dist/es/commands/ListAccountAssignmentCreationStatusCommand.js.map +0 -1
- package/dist/es/commands/ListAccountAssignmentDeletionStatusCommand.js.map +0 -1
- package/dist/es/commands/ListAccountAssignmentsCommand.js.map +0 -1
- package/dist/es/commands/ListAccountsForProvisionedPermissionSetCommand.js.map +0 -1
- package/dist/es/commands/ListInstancesCommand.js.map +0 -1
- package/dist/es/commands/ListManagedPoliciesInPermissionSetCommand.js.map +0 -1
- package/dist/es/commands/ListPermissionSetProvisioningStatusCommand.js.map +0 -1
- package/dist/es/commands/ListPermissionSetsCommand.js.map +0 -1
- package/dist/es/commands/ListPermissionSetsProvisionedToAccountCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/ProvisionPermissionSetCommand.js.map +0 -1
- package/dist/es/commands/PutInlinePolicyToPermissionSetCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.js.map +0 -1
- package/dist/es/commands/UpdatePermissionSetCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -46
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListAccountAssignmentCreationStatusPaginator.js.map +0 -1
- package/dist/es/pagination/ListAccountAssignmentDeletionStatusPaginator.js.map +0 -1
- package/dist/es/pagination/ListAccountAssignmentsPaginator.js.map +0 -1
- package/dist/es/pagination/ListAccountsForProvisionedPermissionSetPaginator.js.map +0 -1
- package/dist/es/pagination/ListInstancesPaginator.js.map +0 -1
- package/dist/es/pagination/ListManagedPoliciesInPermissionSetPaginator.js.map +0 -1
- package/dist/es/pagination/ListPermissionSetProvisioningStatusPaginator.js.map +0 -1
- package/dist/es/pagination/ListPermissionSetsPaginator.js.map +0 -1
- package/dist/es/pagination/ListPermissionSetsProvisionedToAccountPaginator.js.map +0 -1
- package/dist/es/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/commands/AttachManagedPolicyToPermissionSetCommand.d.ts +0 -43
- package/dist/types/ts3.4/commands/CreateAccountAssignmentCommand.d.ts +0 -49
- package/dist/types/ts3.4/commands/CreateInstanceAccessControlAttributeConfigurationCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/CreatePermissionSetCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/DeleteAccountAssignmentCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DeleteInlinePolicyFromPermissionSetCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/DeletePermissionSetCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeAccountAssignmentCreationStatusCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeAccountAssignmentDeletionStatusCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/DescribePermissionSetCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribePermissionSetProvisioningStatusCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DetachManagedPolicyFromPermissionSetCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetInlinePolicyForPermissionSetCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListAccountAssignmentCreationStatusCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ListAccountAssignmentDeletionStatusCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ListAccountAssignmentsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ListAccountsForProvisionedPermissionSetCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListInstancesCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListManagedPoliciesInPermissionSetCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListPermissionSetProvisioningStatusCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ListPermissionSetsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListPermissionSetsProvisionedToAccountCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListTagsForResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ProvisionPermissionSetCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/PutInlinePolicyToPermissionSetCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/UpdatePermissionSetCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1541
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1978
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListAccountAssignmentCreationStatusPaginator.ts +0 -58
- package/pagination/ListAccountAssignmentDeletionStatusPaginator.ts +0 -58
- package/pagination/ListAccountAssignmentsPaginator.ts +0 -58
- package/pagination/ListAccountsForProvisionedPermissionSetPaginator.ts +0 -58
- package/pagination/ListInstancesPaginator.ts +0 -58
- package/pagination/ListManagedPoliciesInPermissionSetPaginator.ts +0 -58
- package/pagination/ListPermissionSetProvisioningStatusPaginator.ts +0 -58
- package/pagination/ListPermissionSetsPaginator.ts +0 -58
- package/pagination/ListPermissionSetsProvisionedToAccountPaginator.ts +0 -58
- package/pagination/ListTagsForResourcePaginator.ts +0 -57
- package/protocols/Aws_json1_1.ts +0 -4739
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
package/protocols/Aws_json1_1.ts
DELETED
|
@@ -1,4739 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AttachManagedPolicyToPermissionSetCommandInput,
|
|
3
|
-
AttachManagedPolicyToPermissionSetCommandOutput,
|
|
4
|
-
} from "../commands/AttachManagedPolicyToPermissionSetCommand";
|
|
5
|
-
import {
|
|
6
|
-
CreateAccountAssignmentCommandInput,
|
|
7
|
-
CreateAccountAssignmentCommandOutput,
|
|
8
|
-
} from "../commands/CreateAccountAssignmentCommand";
|
|
9
|
-
import {
|
|
10
|
-
CreateInstanceAccessControlAttributeConfigurationCommandInput,
|
|
11
|
-
CreateInstanceAccessControlAttributeConfigurationCommandOutput,
|
|
12
|
-
} from "../commands/CreateInstanceAccessControlAttributeConfigurationCommand";
|
|
13
|
-
import {
|
|
14
|
-
CreatePermissionSetCommandInput,
|
|
15
|
-
CreatePermissionSetCommandOutput,
|
|
16
|
-
} from "../commands/CreatePermissionSetCommand";
|
|
17
|
-
import {
|
|
18
|
-
DeleteAccountAssignmentCommandInput,
|
|
19
|
-
DeleteAccountAssignmentCommandOutput,
|
|
20
|
-
} from "../commands/DeleteAccountAssignmentCommand";
|
|
21
|
-
import {
|
|
22
|
-
DeleteInlinePolicyFromPermissionSetCommandInput,
|
|
23
|
-
DeleteInlinePolicyFromPermissionSetCommandOutput,
|
|
24
|
-
} from "../commands/DeleteInlinePolicyFromPermissionSetCommand";
|
|
25
|
-
import {
|
|
26
|
-
DeleteInstanceAccessControlAttributeConfigurationCommandInput,
|
|
27
|
-
DeleteInstanceAccessControlAttributeConfigurationCommandOutput,
|
|
28
|
-
} from "../commands/DeleteInstanceAccessControlAttributeConfigurationCommand";
|
|
29
|
-
import {
|
|
30
|
-
DeletePermissionSetCommandInput,
|
|
31
|
-
DeletePermissionSetCommandOutput,
|
|
32
|
-
} from "../commands/DeletePermissionSetCommand";
|
|
33
|
-
import {
|
|
34
|
-
DescribeAccountAssignmentCreationStatusCommandInput,
|
|
35
|
-
DescribeAccountAssignmentCreationStatusCommandOutput,
|
|
36
|
-
} from "../commands/DescribeAccountAssignmentCreationStatusCommand";
|
|
37
|
-
import {
|
|
38
|
-
DescribeAccountAssignmentDeletionStatusCommandInput,
|
|
39
|
-
DescribeAccountAssignmentDeletionStatusCommandOutput,
|
|
40
|
-
} from "../commands/DescribeAccountAssignmentDeletionStatusCommand";
|
|
41
|
-
import {
|
|
42
|
-
DescribeInstanceAccessControlAttributeConfigurationCommandInput,
|
|
43
|
-
DescribeInstanceAccessControlAttributeConfigurationCommandOutput,
|
|
44
|
-
} from "../commands/DescribeInstanceAccessControlAttributeConfigurationCommand";
|
|
45
|
-
import {
|
|
46
|
-
DescribePermissionSetCommandInput,
|
|
47
|
-
DescribePermissionSetCommandOutput,
|
|
48
|
-
} from "../commands/DescribePermissionSetCommand";
|
|
49
|
-
import {
|
|
50
|
-
DescribePermissionSetProvisioningStatusCommandInput,
|
|
51
|
-
DescribePermissionSetProvisioningStatusCommandOutput,
|
|
52
|
-
} from "../commands/DescribePermissionSetProvisioningStatusCommand";
|
|
53
|
-
import {
|
|
54
|
-
DetachManagedPolicyFromPermissionSetCommandInput,
|
|
55
|
-
DetachManagedPolicyFromPermissionSetCommandOutput,
|
|
56
|
-
} from "../commands/DetachManagedPolicyFromPermissionSetCommand";
|
|
57
|
-
import {
|
|
58
|
-
GetInlinePolicyForPermissionSetCommandInput,
|
|
59
|
-
GetInlinePolicyForPermissionSetCommandOutput,
|
|
60
|
-
} from "../commands/GetInlinePolicyForPermissionSetCommand";
|
|
61
|
-
import {
|
|
62
|
-
ListAccountAssignmentCreationStatusCommandInput,
|
|
63
|
-
ListAccountAssignmentCreationStatusCommandOutput,
|
|
64
|
-
} from "../commands/ListAccountAssignmentCreationStatusCommand";
|
|
65
|
-
import {
|
|
66
|
-
ListAccountAssignmentDeletionStatusCommandInput,
|
|
67
|
-
ListAccountAssignmentDeletionStatusCommandOutput,
|
|
68
|
-
} from "../commands/ListAccountAssignmentDeletionStatusCommand";
|
|
69
|
-
import {
|
|
70
|
-
ListAccountAssignmentsCommandInput,
|
|
71
|
-
ListAccountAssignmentsCommandOutput,
|
|
72
|
-
} from "../commands/ListAccountAssignmentsCommand";
|
|
73
|
-
import {
|
|
74
|
-
ListAccountsForProvisionedPermissionSetCommandInput,
|
|
75
|
-
ListAccountsForProvisionedPermissionSetCommandOutput,
|
|
76
|
-
} from "../commands/ListAccountsForProvisionedPermissionSetCommand";
|
|
77
|
-
import { ListInstancesCommandInput, ListInstancesCommandOutput } from "../commands/ListInstancesCommand";
|
|
78
|
-
import {
|
|
79
|
-
ListManagedPoliciesInPermissionSetCommandInput,
|
|
80
|
-
ListManagedPoliciesInPermissionSetCommandOutput,
|
|
81
|
-
} from "../commands/ListManagedPoliciesInPermissionSetCommand";
|
|
82
|
-
import {
|
|
83
|
-
ListPermissionSetProvisioningStatusCommandInput,
|
|
84
|
-
ListPermissionSetProvisioningStatusCommandOutput,
|
|
85
|
-
} from "../commands/ListPermissionSetProvisioningStatusCommand";
|
|
86
|
-
import { ListPermissionSetsCommandInput, ListPermissionSetsCommandOutput } from "../commands/ListPermissionSetsCommand";
|
|
87
|
-
import {
|
|
88
|
-
ListPermissionSetsProvisionedToAccountCommandInput,
|
|
89
|
-
ListPermissionSetsProvisionedToAccountCommandOutput,
|
|
90
|
-
} from "../commands/ListPermissionSetsProvisionedToAccountCommand";
|
|
91
|
-
import {
|
|
92
|
-
ListTagsForResourceCommandInput,
|
|
93
|
-
ListTagsForResourceCommandOutput,
|
|
94
|
-
} from "../commands/ListTagsForResourceCommand";
|
|
95
|
-
import {
|
|
96
|
-
ProvisionPermissionSetCommandInput,
|
|
97
|
-
ProvisionPermissionSetCommandOutput,
|
|
98
|
-
} from "../commands/ProvisionPermissionSetCommand";
|
|
99
|
-
import {
|
|
100
|
-
PutInlinePolicyToPermissionSetCommandInput,
|
|
101
|
-
PutInlinePolicyToPermissionSetCommandOutput,
|
|
102
|
-
} from "../commands/PutInlinePolicyToPermissionSetCommand";
|
|
103
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
104
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
105
|
-
import {
|
|
106
|
-
UpdateInstanceAccessControlAttributeConfigurationCommandInput,
|
|
107
|
-
UpdateInstanceAccessControlAttributeConfigurationCommandOutput,
|
|
108
|
-
} from "../commands/UpdateInstanceAccessControlAttributeConfigurationCommand";
|
|
109
|
-
import {
|
|
110
|
-
UpdatePermissionSetCommandInput,
|
|
111
|
-
UpdatePermissionSetCommandOutput,
|
|
112
|
-
} from "../commands/UpdatePermissionSetCommand";
|
|
113
|
-
import {
|
|
114
|
-
AccessControlAttribute,
|
|
115
|
-
AccessControlAttributeValue,
|
|
116
|
-
AccessDeniedException,
|
|
117
|
-
AccountAssignment,
|
|
118
|
-
AccountAssignmentOperationStatus,
|
|
119
|
-
AccountAssignmentOperationStatusMetadata,
|
|
120
|
-
AttachManagedPolicyToPermissionSetRequest,
|
|
121
|
-
AttachManagedPolicyToPermissionSetResponse,
|
|
122
|
-
AttachedManagedPolicy,
|
|
123
|
-
ConflictException,
|
|
124
|
-
CreateAccountAssignmentRequest,
|
|
125
|
-
CreateAccountAssignmentResponse,
|
|
126
|
-
CreateInstanceAccessControlAttributeConfigurationRequest,
|
|
127
|
-
CreateInstanceAccessControlAttributeConfigurationResponse,
|
|
128
|
-
CreatePermissionSetRequest,
|
|
129
|
-
CreatePermissionSetResponse,
|
|
130
|
-
DeleteAccountAssignmentRequest,
|
|
131
|
-
DeleteAccountAssignmentResponse,
|
|
132
|
-
DeleteInlinePolicyFromPermissionSetRequest,
|
|
133
|
-
DeleteInlinePolicyFromPermissionSetResponse,
|
|
134
|
-
DeleteInstanceAccessControlAttributeConfigurationRequest,
|
|
135
|
-
DeleteInstanceAccessControlAttributeConfigurationResponse,
|
|
136
|
-
DeletePermissionSetRequest,
|
|
137
|
-
DeletePermissionSetResponse,
|
|
138
|
-
DescribeAccountAssignmentCreationStatusRequest,
|
|
139
|
-
DescribeAccountAssignmentCreationStatusResponse,
|
|
140
|
-
DescribeAccountAssignmentDeletionStatusRequest,
|
|
141
|
-
DescribeAccountAssignmentDeletionStatusResponse,
|
|
142
|
-
DescribeInstanceAccessControlAttributeConfigurationRequest,
|
|
143
|
-
DescribeInstanceAccessControlAttributeConfigurationResponse,
|
|
144
|
-
DescribePermissionSetProvisioningStatusRequest,
|
|
145
|
-
DescribePermissionSetProvisioningStatusResponse,
|
|
146
|
-
DescribePermissionSetRequest,
|
|
147
|
-
DescribePermissionSetResponse,
|
|
148
|
-
DetachManagedPolicyFromPermissionSetRequest,
|
|
149
|
-
DetachManagedPolicyFromPermissionSetResponse,
|
|
150
|
-
GetInlinePolicyForPermissionSetRequest,
|
|
151
|
-
GetInlinePolicyForPermissionSetResponse,
|
|
152
|
-
InstanceAccessControlAttributeConfiguration,
|
|
153
|
-
InstanceMetadata,
|
|
154
|
-
InternalServerException,
|
|
155
|
-
ListAccountAssignmentCreationStatusRequest,
|
|
156
|
-
ListAccountAssignmentCreationStatusResponse,
|
|
157
|
-
ListAccountAssignmentDeletionStatusRequest,
|
|
158
|
-
ListAccountAssignmentDeletionStatusResponse,
|
|
159
|
-
ListAccountAssignmentsRequest,
|
|
160
|
-
ListAccountAssignmentsResponse,
|
|
161
|
-
ListAccountsForProvisionedPermissionSetRequest,
|
|
162
|
-
ListAccountsForProvisionedPermissionSetResponse,
|
|
163
|
-
ListInstancesRequest,
|
|
164
|
-
ListInstancesResponse,
|
|
165
|
-
ListManagedPoliciesInPermissionSetRequest,
|
|
166
|
-
ListManagedPoliciesInPermissionSetResponse,
|
|
167
|
-
ListPermissionSetProvisioningStatusRequest,
|
|
168
|
-
ListPermissionSetProvisioningStatusResponse,
|
|
169
|
-
ListPermissionSetsProvisionedToAccountRequest,
|
|
170
|
-
ListPermissionSetsProvisionedToAccountResponse,
|
|
171
|
-
ListPermissionSetsRequest,
|
|
172
|
-
ListPermissionSetsResponse,
|
|
173
|
-
ListTagsForResourceRequest,
|
|
174
|
-
ListTagsForResourceResponse,
|
|
175
|
-
OperationStatusFilter,
|
|
176
|
-
PermissionSet,
|
|
177
|
-
PermissionSetProvisioningStatus,
|
|
178
|
-
PermissionSetProvisioningStatusMetadata,
|
|
179
|
-
ProvisionPermissionSetRequest,
|
|
180
|
-
ProvisionPermissionSetResponse,
|
|
181
|
-
PutInlinePolicyToPermissionSetRequest,
|
|
182
|
-
PutInlinePolicyToPermissionSetResponse,
|
|
183
|
-
ResourceNotFoundException,
|
|
184
|
-
ServiceQuotaExceededException,
|
|
185
|
-
Tag,
|
|
186
|
-
TagResourceRequest,
|
|
187
|
-
TagResourceResponse,
|
|
188
|
-
ThrottlingException,
|
|
189
|
-
UntagResourceRequest,
|
|
190
|
-
UntagResourceResponse,
|
|
191
|
-
UpdateInstanceAccessControlAttributeConfigurationRequest,
|
|
192
|
-
UpdateInstanceAccessControlAttributeConfigurationResponse,
|
|
193
|
-
UpdatePermissionSetRequest,
|
|
194
|
-
UpdatePermissionSetResponse,
|
|
195
|
-
ValidationException,
|
|
196
|
-
} from "../models/models_0";
|
|
197
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
198
|
-
import {
|
|
199
|
-
expectNonNull as __expectNonNull,
|
|
200
|
-
expectNumber as __expectNumber,
|
|
201
|
-
expectString as __expectString,
|
|
202
|
-
parseEpochTimestamp as __parseEpochTimestamp,
|
|
203
|
-
} from "@aws-sdk/smithy-client";
|
|
204
|
-
import {
|
|
205
|
-
Endpoint as __Endpoint,
|
|
206
|
-
HeaderBag as __HeaderBag,
|
|
207
|
-
MetadataBearer as __MetadataBearer,
|
|
208
|
-
ResponseMetadata as __ResponseMetadata,
|
|
209
|
-
SerdeContext as __SerdeContext,
|
|
210
|
-
SmithyException as __SmithyException,
|
|
211
|
-
} from "@aws-sdk/types";
|
|
212
|
-
|
|
213
|
-
export const serializeAws_json1_1AttachManagedPolicyToPermissionSetCommand = async (
|
|
214
|
-
input: AttachManagedPolicyToPermissionSetCommandInput,
|
|
215
|
-
context: __SerdeContext
|
|
216
|
-
): Promise<__HttpRequest> => {
|
|
217
|
-
const headers: __HeaderBag = {
|
|
218
|
-
"content-type": "application/x-amz-json-1.1",
|
|
219
|
-
"x-amz-target": "SWBExternalService.AttachManagedPolicyToPermissionSet",
|
|
220
|
-
};
|
|
221
|
-
let body: any;
|
|
222
|
-
body = JSON.stringify(serializeAws_json1_1AttachManagedPolicyToPermissionSetRequest(input, context));
|
|
223
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
export const serializeAws_json1_1CreateAccountAssignmentCommand = async (
|
|
227
|
-
input: CreateAccountAssignmentCommandInput,
|
|
228
|
-
context: __SerdeContext
|
|
229
|
-
): Promise<__HttpRequest> => {
|
|
230
|
-
const headers: __HeaderBag = {
|
|
231
|
-
"content-type": "application/x-amz-json-1.1",
|
|
232
|
-
"x-amz-target": "SWBExternalService.CreateAccountAssignment",
|
|
233
|
-
};
|
|
234
|
-
let body: any;
|
|
235
|
-
body = JSON.stringify(serializeAws_json1_1CreateAccountAssignmentRequest(input, context));
|
|
236
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
export const serializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationCommand = async (
|
|
240
|
-
input: CreateInstanceAccessControlAttributeConfigurationCommandInput,
|
|
241
|
-
context: __SerdeContext
|
|
242
|
-
): Promise<__HttpRequest> => {
|
|
243
|
-
const headers: __HeaderBag = {
|
|
244
|
-
"content-type": "application/x-amz-json-1.1",
|
|
245
|
-
"x-amz-target": "SWBExternalService.CreateInstanceAccessControlAttributeConfiguration",
|
|
246
|
-
};
|
|
247
|
-
let body: any;
|
|
248
|
-
body = JSON.stringify(serializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationRequest(input, context));
|
|
249
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
export const serializeAws_json1_1CreatePermissionSetCommand = async (
|
|
253
|
-
input: CreatePermissionSetCommandInput,
|
|
254
|
-
context: __SerdeContext
|
|
255
|
-
): Promise<__HttpRequest> => {
|
|
256
|
-
const headers: __HeaderBag = {
|
|
257
|
-
"content-type": "application/x-amz-json-1.1",
|
|
258
|
-
"x-amz-target": "SWBExternalService.CreatePermissionSet",
|
|
259
|
-
};
|
|
260
|
-
let body: any;
|
|
261
|
-
body = JSON.stringify(serializeAws_json1_1CreatePermissionSetRequest(input, context));
|
|
262
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
export const serializeAws_json1_1DeleteAccountAssignmentCommand = async (
|
|
266
|
-
input: DeleteAccountAssignmentCommandInput,
|
|
267
|
-
context: __SerdeContext
|
|
268
|
-
): Promise<__HttpRequest> => {
|
|
269
|
-
const headers: __HeaderBag = {
|
|
270
|
-
"content-type": "application/x-amz-json-1.1",
|
|
271
|
-
"x-amz-target": "SWBExternalService.DeleteAccountAssignment",
|
|
272
|
-
};
|
|
273
|
-
let body: any;
|
|
274
|
-
body = JSON.stringify(serializeAws_json1_1DeleteAccountAssignmentRequest(input, context));
|
|
275
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
export const serializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommand = async (
|
|
279
|
-
input: DeleteInlinePolicyFromPermissionSetCommandInput,
|
|
280
|
-
context: __SerdeContext
|
|
281
|
-
): Promise<__HttpRequest> => {
|
|
282
|
-
const headers: __HeaderBag = {
|
|
283
|
-
"content-type": "application/x-amz-json-1.1",
|
|
284
|
-
"x-amz-target": "SWBExternalService.DeleteInlinePolicyFromPermissionSet",
|
|
285
|
-
};
|
|
286
|
-
let body: any;
|
|
287
|
-
body = JSON.stringify(serializeAws_json1_1DeleteInlinePolicyFromPermissionSetRequest(input, context));
|
|
288
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
export const serializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationCommand = async (
|
|
292
|
-
input: DeleteInstanceAccessControlAttributeConfigurationCommandInput,
|
|
293
|
-
context: __SerdeContext
|
|
294
|
-
): Promise<__HttpRequest> => {
|
|
295
|
-
const headers: __HeaderBag = {
|
|
296
|
-
"content-type": "application/x-amz-json-1.1",
|
|
297
|
-
"x-amz-target": "SWBExternalService.DeleteInstanceAccessControlAttributeConfiguration",
|
|
298
|
-
};
|
|
299
|
-
let body: any;
|
|
300
|
-
body = JSON.stringify(serializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationRequest(input, context));
|
|
301
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
export const serializeAws_json1_1DeletePermissionSetCommand = async (
|
|
305
|
-
input: DeletePermissionSetCommandInput,
|
|
306
|
-
context: __SerdeContext
|
|
307
|
-
): Promise<__HttpRequest> => {
|
|
308
|
-
const headers: __HeaderBag = {
|
|
309
|
-
"content-type": "application/x-amz-json-1.1",
|
|
310
|
-
"x-amz-target": "SWBExternalService.DeletePermissionSet",
|
|
311
|
-
};
|
|
312
|
-
let body: any;
|
|
313
|
-
body = JSON.stringify(serializeAws_json1_1DeletePermissionSetRequest(input, context));
|
|
314
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
export const serializeAws_json1_1DescribeAccountAssignmentCreationStatusCommand = async (
|
|
318
|
-
input: DescribeAccountAssignmentCreationStatusCommandInput,
|
|
319
|
-
context: __SerdeContext
|
|
320
|
-
): Promise<__HttpRequest> => {
|
|
321
|
-
const headers: __HeaderBag = {
|
|
322
|
-
"content-type": "application/x-amz-json-1.1",
|
|
323
|
-
"x-amz-target": "SWBExternalService.DescribeAccountAssignmentCreationStatus",
|
|
324
|
-
};
|
|
325
|
-
let body: any;
|
|
326
|
-
body = JSON.stringify(serializeAws_json1_1DescribeAccountAssignmentCreationStatusRequest(input, context));
|
|
327
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
export const serializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommand = async (
|
|
331
|
-
input: DescribeAccountAssignmentDeletionStatusCommandInput,
|
|
332
|
-
context: __SerdeContext
|
|
333
|
-
): Promise<__HttpRequest> => {
|
|
334
|
-
const headers: __HeaderBag = {
|
|
335
|
-
"content-type": "application/x-amz-json-1.1",
|
|
336
|
-
"x-amz-target": "SWBExternalService.DescribeAccountAssignmentDeletionStatus",
|
|
337
|
-
};
|
|
338
|
-
let body: any;
|
|
339
|
-
body = JSON.stringify(serializeAws_json1_1DescribeAccountAssignmentDeletionStatusRequest(input, context));
|
|
340
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
export const serializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationCommand = async (
|
|
344
|
-
input: DescribeInstanceAccessControlAttributeConfigurationCommandInput,
|
|
345
|
-
context: __SerdeContext
|
|
346
|
-
): Promise<__HttpRequest> => {
|
|
347
|
-
const headers: __HeaderBag = {
|
|
348
|
-
"content-type": "application/x-amz-json-1.1",
|
|
349
|
-
"x-amz-target": "SWBExternalService.DescribeInstanceAccessControlAttributeConfiguration",
|
|
350
|
-
};
|
|
351
|
-
let body: any;
|
|
352
|
-
body = JSON.stringify(serializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationRequest(input, context));
|
|
353
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
354
|
-
};
|
|
355
|
-
|
|
356
|
-
export const serializeAws_json1_1DescribePermissionSetCommand = async (
|
|
357
|
-
input: DescribePermissionSetCommandInput,
|
|
358
|
-
context: __SerdeContext
|
|
359
|
-
): Promise<__HttpRequest> => {
|
|
360
|
-
const headers: __HeaderBag = {
|
|
361
|
-
"content-type": "application/x-amz-json-1.1",
|
|
362
|
-
"x-amz-target": "SWBExternalService.DescribePermissionSet",
|
|
363
|
-
};
|
|
364
|
-
let body: any;
|
|
365
|
-
body = JSON.stringify(serializeAws_json1_1DescribePermissionSetRequest(input, context));
|
|
366
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
export const serializeAws_json1_1DescribePermissionSetProvisioningStatusCommand = async (
|
|
370
|
-
input: DescribePermissionSetProvisioningStatusCommandInput,
|
|
371
|
-
context: __SerdeContext
|
|
372
|
-
): Promise<__HttpRequest> => {
|
|
373
|
-
const headers: __HeaderBag = {
|
|
374
|
-
"content-type": "application/x-amz-json-1.1",
|
|
375
|
-
"x-amz-target": "SWBExternalService.DescribePermissionSetProvisioningStatus",
|
|
376
|
-
};
|
|
377
|
-
let body: any;
|
|
378
|
-
body = JSON.stringify(serializeAws_json1_1DescribePermissionSetProvisioningStatusRequest(input, context));
|
|
379
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
export const serializeAws_json1_1DetachManagedPolicyFromPermissionSetCommand = async (
|
|
383
|
-
input: DetachManagedPolicyFromPermissionSetCommandInput,
|
|
384
|
-
context: __SerdeContext
|
|
385
|
-
): Promise<__HttpRequest> => {
|
|
386
|
-
const headers: __HeaderBag = {
|
|
387
|
-
"content-type": "application/x-amz-json-1.1",
|
|
388
|
-
"x-amz-target": "SWBExternalService.DetachManagedPolicyFromPermissionSet",
|
|
389
|
-
};
|
|
390
|
-
let body: any;
|
|
391
|
-
body = JSON.stringify(serializeAws_json1_1DetachManagedPolicyFromPermissionSetRequest(input, context));
|
|
392
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
export const serializeAws_json1_1GetInlinePolicyForPermissionSetCommand = async (
|
|
396
|
-
input: GetInlinePolicyForPermissionSetCommandInput,
|
|
397
|
-
context: __SerdeContext
|
|
398
|
-
): Promise<__HttpRequest> => {
|
|
399
|
-
const headers: __HeaderBag = {
|
|
400
|
-
"content-type": "application/x-amz-json-1.1",
|
|
401
|
-
"x-amz-target": "SWBExternalService.GetInlinePolicyForPermissionSet",
|
|
402
|
-
};
|
|
403
|
-
let body: any;
|
|
404
|
-
body = JSON.stringify(serializeAws_json1_1GetInlinePolicyForPermissionSetRequest(input, context));
|
|
405
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
406
|
-
};
|
|
407
|
-
|
|
408
|
-
export const serializeAws_json1_1ListAccountAssignmentCreationStatusCommand = async (
|
|
409
|
-
input: ListAccountAssignmentCreationStatusCommandInput,
|
|
410
|
-
context: __SerdeContext
|
|
411
|
-
): Promise<__HttpRequest> => {
|
|
412
|
-
const headers: __HeaderBag = {
|
|
413
|
-
"content-type": "application/x-amz-json-1.1",
|
|
414
|
-
"x-amz-target": "SWBExternalService.ListAccountAssignmentCreationStatus",
|
|
415
|
-
};
|
|
416
|
-
let body: any;
|
|
417
|
-
body = JSON.stringify(serializeAws_json1_1ListAccountAssignmentCreationStatusRequest(input, context));
|
|
418
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
419
|
-
};
|
|
420
|
-
|
|
421
|
-
export const serializeAws_json1_1ListAccountAssignmentDeletionStatusCommand = async (
|
|
422
|
-
input: ListAccountAssignmentDeletionStatusCommandInput,
|
|
423
|
-
context: __SerdeContext
|
|
424
|
-
): Promise<__HttpRequest> => {
|
|
425
|
-
const headers: __HeaderBag = {
|
|
426
|
-
"content-type": "application/x-amz-json-1.1",
|
|
427
|
-
"x-amz-target": "SWBExternalService.ListAccountAssignmentDeletionStatus",
|
|
428
|
-
};
|
|
429
|
-
let body: any;
|
|
430
|
-
body = JSON.stringify(serializeAws_json1_1ListAccountAssignmentDeletionStatusRequest(input, context));
|
|
431
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
432
|
-
};
|
|
433
|
-
|
|
434
|
-
export const serializeAws_json1_1ListAccountAssignmentsCommand = async (
|
|
435
|
-
input: ListAccountAssignmentsCommandInput,
|
|
436
|
-
context: __SerdeContext
|
|
437
|
-
): Promise<__HttpRequest> => {
|
|
438
|
-
const headers: __HeaderBag = {
|
|
439
|
-
"content-type": "application/x-amz-json-1.1",
|
|
440
|
-
"x-amz-target": "SWBExternalService.ListAccountAssignments",
|
|
441
|
-
};
|
|
442
|
-
let body: any;
|
|
443
|
-
body = JSON.stringify(serializeAws_json1_1ListAccountAssignmentsRequest(input, context));
|
|
444
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
export const serializeAws_json1_1ListAccountsForProvisionedPermissionSetCommand = async (
|
|
448
|
-
input: ListAccountsForProvisionedPermissionSetCommandInput,
|
|
449
|
-
context: __SerdeContext
|
|
450
|
-
): Promise<__HttpRequest> => {
|
|
451
|
-
const headers: __HeaderBag = {
|
|
452
|
-
"content-type": "application/x-amz-json-1.1",
|
|
453
|
-
"x-amz-target": "SWBExternalService.ListAccountsForProvisionedPermissionSet",
|
|
454
|
-
};
|
|
455
|
-
let body: any;
|
|
456
|
-
body = JSON.stringify(serializeAws_json1_1ListAccountsForProvisionedPermissionSetRequest(input, context));
|
|
457
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
458
|
-
};
|
|
459
|
-
|
|
460
|
-
export const serializeAws_json1_1ListInstancesCommand = async (
|
|
461
|
-
input: ListInstancesCommandInput,
|
|
462
|
-
context: __SerdeContext
|
|
463
|
-
): Promise<__HttpRequest> => {
|
|
464
|
-
const headers: __HeaderBag = {
|
|
465
|
-
"content-type": "application/x-amz-json-1.1",
|
|
466
|
-
"x-amz-target": "SWBExternalService.ListInstances",
|
|
467
|
-
};
|
|
468
|
-
let body: any;
|
|
469
|
-
body = JSON.stringify(serializeAws_json1_1ListInstancesRequest(input, context));
|
|
470
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
471
|
-
};
|
|
472
|
-
|
|
473
|
-
export const serializeAws_json1_1ListManagedPoliciesInPermissionSetCommand = async (
|
|
474
|
-
input: ListManagedPoliciesInPermissionSetCommandInput,
|
|
475
|
-
context: __SerdeContext
|
|
476
|
-
): Promise<__HttpRequest> => {
|
|
477
|
-
const headers: __HeaderBag = {
|
|
478
|
-
"content-type": "application/x-amz-json-1.1",
|
|
479
|
-
"x-amz-target": "SWBExternalService.ListManagedPoliciesInPermissionSet",
|
|
480
|
-
};
|
|
481
|
-
let body: any;
|
|
482
|
-
body = JSON.stringify(serializeAws_json1_1ListManagedPoliciesInPermissionSetRequest(input, context));
|
|
483
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
484
|
-
};
|
|
485
|
-
|
|
486
|
-
export const serializeAws_json1_1ListPermissionSetProvisioningStatusCommand = async (
|
|
487
|
-
input: ListPermissionSetProvisioningStatusCommandInput,
|
|
488
|
-
context: __SerdeContext
|
|
489
|
-
): Promise<__HttpRequest> => {
|
|
490
|
-
const headers: __HeaderBag = {
|
|
491
|
-
"content-type": "application/x-amz-json-1.1",
|
|
492
|
-
"x-amz-target": "SWBExternalService.ListPermissionSetProvisioningStatus",
|
|
493
|
-
};
|
|
494
|
-
let body: any;
|
|
495
|
-
body = JSON.stringify(serializeAws_json1_1ListPermissionSetProvisioningStatusRequest(input, context));
|
|
496
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
export const serializeAws_json1_1ListPermissionSetsCommand = async (
|
|
500
|
-
input: ListPermissionSetsCommandInput,
|
|
501
|
-
context: __SerdeContext
|
|
502
|
-
): Promise<__HttpRequest> => {
|
|
503
|
-
const headers: __HeaderBag = {
|
|
504
|
-
"content-type": "application/x-amz-json-1.1",
|
|
505
|
-
"x-amz-target": "SWBExternalService.ListPermissionSets",
|
|
506
|
-
};
|
|
507
|
-
let body: any;
|
|
508
|
-
body = JSON.stringify(serializeAws_json1_1ListPermissionSetsRequest(input, context));
|
|
509
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
510
|
-
};
|
|
511
|
-
|
|
512
|
-
export const serializeAws_json1_1ListPermissionSetsProvisionedToAccountCommand = async (
|
|
513
|
-
input: ListPermissionSetsProvisionedToAccountCommandInput,
|
|
514
|
-
context: __SerdeContext
|
|
515
|
-
): Promise<__HttpRequest> => {
|
|
516
|
-
const headers: __HeaderBag = {
|
|
517
|
-
"content-type": "application/x-amz-json-1.1",
|
|
518
|
-
"x-amz-target": "SWBExternalService.ListPermissionSetsProvisionedToAccount",
|
|
519
|
-
};
|
|
520
|
-
let body: any;
|
|
521
|
-
body = JSON.stringify(serializeAws_json1_1ListPermissionSetsProvisionedToAccountRequest(input, context));
|
|
522
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
523
|
-
};
|
|
524
|
-
|
|
525
|
-
export const serializeAws_json1_1ListTagsForResourceCommand = async (
|
|
526
|
-
input: ListTagsForResourceCommandInput,
|
|
527
|
-
context: __SerdeContext
|
|
528
|
-
): Promise<__HttpRequest> => {
|
|
529
|
-
const headers: __HeaderBag = {
|
|
530
|
-
"content-type": "application/x-amz-json-1.1",
|
|
531
|
-
"x-amz-target": "SWBExternalService.ListTagsForResource",
|
|
532
|
-
};
|
|
533
|
-
let body: any;
|
|
534
|
-
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
535
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
536
|
-
};
|
|
537
|
-
|
|
538
|
-
export const serializeAws_json1_1ProvisionPermissionSetCommand = async (
|
|
539
|
-
input: ProvisionPermissionSetCommandInput,
|
|
540
|
-
context: __SerdeContext
|
|
541
|
-
): Promise<__HttpRequest> => {
|
|
542
|
-
const headers: __HeaderBag = {
|
|
543
|
-
"content-type": "application/x-amz-json-1.1",
|
|
544
|
-
"x-amz-target": "SWBExternalService.ProvisionPermissionSet",
|
|
545
|
-
};
|
|
546
|
-
let body: any;
|
|
547
|
-
body = JSON.stringify(serializeAws_json1_1ProvisionPermissionSetRequest(input, context));
|
|
548
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
549
|
-
};
|
|
550
|
-
|
|
551
|
-
export const serializeAws_json1_1PutInlinePolicyToPermissionSetCommand = async (
|
|
552
|
-
input: PutInlinePolicyToPermissionSetCommandInput,
|
|
553
|
-
context: __SerdeContext
|
|
554
|
-
): Promise<__HttpRequest> => {
|
|
555
|
-
const headers: __HeaderBag = {
|
|
556
|
-
"content-type": "application/x-amz-json-1.1",
|
|
557
|
-
"x-amz-target": "SWBExternalService.PutInlinePolicyToPermissionSet",
|
|
558
|
-
};
|
|
559
|
-
let body: any;
|
|
560
|
-
body = JSON.stringify(serializeAws_json1_1PutInlinePolicyToPermissionSetRequest(input, context));
|
|
561
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
562
|
-
};
|
|
563
|
-
|
|
564
|
-
export const serializeAws_json1_1TagResourceCommand = async (
|
|
565
|
-
input: TagResourceCommandInput,
|
|
566
|
-
context: __SerdeContext
|
|
567
|
-
): Promise<__HttpRequest> => {
|
|
568
|
-
const headers: __HeaderBag = {
|
|
569
|
-
"content-type": "application/x-amz-json-1.1",
|
|
570
|
-
"x-amz-target": "SWBExternalService.TagResource",
|
|
571
|
-
};
|
|
572
|
-
let body: any;
|
|
573
|
-
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
574
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
575
|
-
};
|
|
576
|
-
|
|
577
|
-
export const serializeAws_json1_1UntagResourceCommand = async (
|
|
578
|
-
input: UntagResourceCommandInput,
|
|
579
|
-
context: __SerdeContext
|
|
580
|
-
): Promise<__HttpRequest> => {
|
|
581
|
-
const headers: __HeaderBag = {
|
|
582
|
-
"content-type": "application/x-amz-json-1.1",
|
|
583
|
-
"x-amz-target": "SWBExternalService.UntagResource",
|
|
584
|
-
};
|
|
585
|
-
let body: any;
|
|
586
|
-
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
587
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
588
|
-
};
|
|
589
|
-
|
|
590
|
-
export const serializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationCommand = async (
|
|
591
|
-
input: UpdateInstanceAccessControlAttributeConfigurationCommandInput,
|
|
592
|
-
context: __SerdeContext
|
|
593
|
-
): Promise<__HttpRequest> => {
|
|
594
|
-
const headers: __HeaderBag = {
|
|
595
|
-
"content-type": "application/x-amz-json-1.1",
|
|
596
|
-
"x-amz-target": "SWBExternalService.UpdateInstanceAccessControlAttributeConfiguration",
|
|
597
|
-
};
|
|
598
|
-
let body: any;
|
|
599
|
-
body = JSON.stringify(serializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationRequest(input, context));
|
|
600
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
601
|
-
};
|
|
602
|
-
|
|
603
|
-
export const serializeAws_json1_1UpdatePermissionSetCommand = async (
|
|
604
|
-
input: UpdatePermissionSetCommandInput,
|
|
605
|
-
context: __SerdeContext
|
|
606
|
-
): Promise<__HttpRequest> => {
|
|
607
|
-
const headers: __HeaderBag = {
|
|
608
|
-
"content-type": "application/x-amz-json-1.1",
|
|
609
|
-
"x-amz-target": "SWBExternalService.UpdatePermissionSet",
|
|
610
|
-
};
|
|
611
|
-
let body: any;
|
|
612
|
-
body = JSON.stringify(serializeAws_json1_1UpdatePermissionSetRequest(input, context));
|
|
613
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
614
|
-
};
|
|
615
|
-
|
|
616
|
-
export const deserializeAws_json1_1AttachManagedPolicyToPermissionSetCommand = async (
|
|
617
|
-
output: __HttpResponse,
|
|
618
|
-
context: __SerdeContext
|
|
619
|
-
): Promise<AttachManagedPolicyToPermissionSetCommandOutput> => {
|
|
620
|
-
if (output.statusCode >= 300) {
|
|
621
|
-
return deserializeAws_json1_1AttachManagedPolicyToPermissionSetCommandError(output, context);
|
|
622
|
-
}
|
|
623
|
-
const data: any = await parseBody(output.body, context);
|
|
624
|
-
let contents: any = {};
|
|
625
|
-
contents = deserializeAws_json1_1AttachManagedPolicyToPermissionSetResponse(data, context);
|
|
626
|
-
const response: AttachManagedPolicyToPermissionSetCommandOutput = {
|
|
627
|
-
$metadata: deserializeMetadata(output),
|
|
628
|
-
...contents,
|
|
629
|
-
};
|
|
630
|
-
return Promise.resolve(response);
|
|
631
|
-
};
|
|
632
|
-
|
|
633
|
-
const deserializeAws_json1_1AttachManagedPolicyToPermissionSetCommandError = async (
|
|
634
|
-
output: __HttpResponse,
|
|
635
|
-
context: __SerdeContext
|
|
636
|
-
): Promise<AttachManagedPolicyToPermissionSetCommandOutput> => {
|
|
637
|
-
const parsedOutput: any = {
|
|
638
|
-
...output,
|
|
639
|
-
body: await parseBody(output.body, context),
|
|
640
|
-
};
|
|
641
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
642
|
-
let errorCode: string = "UnknownError";
|
|
643
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
644
|
-
switch (errorCode) {
|
|
645
|
-
case "AccessDeniedException":
|
|
646
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
647
|
-
response = {
|
|
648
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
649
|
-
name: errorCode,
|
|
650
|
-
$metadata: deserializeMetadata(output),
|
|
651
|
-
};
|
|
652
|
-
break;
|
|
653
|
-
case "ConflictException":
|
|
654
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
655
|
-
response = {
|
|
656
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
657
|
-
name: errorCode,
|
|
658
|
-
$metadata: deserializeMetadata(output),
|
|
659
|
-
};
|
|
660
|
-
break;
|
|
661
|
-
case "InternalServerException":
|
|
662
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
663
|
-
response = {
|
|
664
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
665
|
-
name: errorCode,
|
|
666
|
-
$metadata: deserializeMetadata(output),
|
|
667
|
-
};
|
|
668
|
-
break;
|
|
669
|
-
case "ResourceNotFoundException":
|
|
670
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
671
|
-
response = {
|
|
672
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
673
|
-
name: errorCode,
|
|
674
|
-
$metadata: deserializeMetadata(output),
|
|
675
|
-
};
|
|
676
|
-
break;
|
|
677
|
-
case "ServiceQuotaExceededException":
|
|
678
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
679
|
-
response = {
|
|
680
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
681
|
-
name: errorCode,
|
|
682
|
-
$metadata: deserializeMetadata(output),
|
|
683
|
-
};
|
|
684
|
-
break;
|
|
685
|
-
case "ThrottlingException":
|
|
686
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
687
|
-
response = {
|
|
688
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
689
|
-
name: errorCode,
|
|
690
|
-
$metadata: deserializeMetadata(output),
|
|
691
|
-
};
|
|
692
|
-
break;
|
|
693
|
-
case "ValidationException":
|
|
694
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
695
|
-
response = {
|
|
696
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
697
|
-
name: errorCode,
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
};
|
|
700
|
-
break;
|
|
701
|
-
default:
|
|
702
|
-
const parsedBody = parsedOutput.body;
|
|
703
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
704
|
-
response = {
|
|
705
|
-
...parsedBody,
|
|
706
|
-
name: `${errorCode}`,
|
|
707
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
708
|
-
$fault: "client",
|
|
709
|
-
$metadata: deserializeMetadata(output),
|
|
710
|
-
} as any;
|
|
711
|
-
}
|
|
712
|
-
const message = response.message || response.Message || errorCode;
|
|
713
|
-
response.message = message;
|
|
714
|
-
delete response.Message;
|
|
715
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
716
|
-
};
|
|
717
|
-
|
|
718
|
-
export const deserializeAws_json1_1CreateAccountAssignmentCommand = async (
|
|
719
|
-
output: __HttpResponse,
|
|
720
|
-
context: __SerdeContext
|
|
721
|
-
): Promise<CreateAccountAssignmentCommandOutput> => {
|
|
722
|
-
if (output.statusCode >= 300) {
|
|
723
|
-
return deserializeAws_json1_1CreateAccountAssignmentCommandError(output, context);
|
|
724
|
-
}
|
|
725
|
-
const data: any = await parseBody(output.body, context);
|
|
726
|
-
let contents: any = {};
|
|
727
|
-
contents = deserializeAws_json1_1CreateAccountAssignmentResponse(data, context);
|
|
728
|
-
const response: CreateAccountAssignmentCommandOutput = {
|
|
729
|
-
$metadata: deserializeMetadata(output),
|
|
730
|
-
...contents,
|
|
731
|
-
};
|
|
732
|
-
return Promise.resolve(response);
|
|
733
|
-
};
|
|
734
|
-
|
|
735
|
-
const deserializeAws_json1_1CreateAccountAssignmentCommandError = async (
|
|
736
|
-
output: __HttpResponse,
|
|
737
|
-
context: __SerdeContext
|
|
738
|
-
): Promise<CreateAccountAssignmentCommandOutput> => {
|
|
739
|
-
const parsedOutput: any = {
|
|
740
|
-
...output,
|
|
741
|
-
body: await parseBody(output.body, context),
|
|
742
|
-
};
|
|
743
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
744
|
-
let errorCode: string = "UnknownError";
|
|
745
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
746
|
-
switch (errorCode) {
|
|
747
|
-
case "AccessDeniedException":
|
|
748
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
749
|
-
response = {
|
|
750
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
751
|
-
name: errorCode,
|
|
752
|
-
$metadata: deserializeMetadata(output),
|
|
753
|
-
};
|
|
754
|
-
break;
|
|
755
|
-
case "ConflictException":
|
|
756
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
757
|
-
response = {
|
|
758
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
759
|
-
name: errorCode,
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
};
|
|
762
|
-
break;
|
|
763
|
-
case "InternalServerException":
|
|
764
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
765
|
-
response = {
|
|
766
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
767
|
-
name: errorCode,
|
|
768
|
-
$metadata: deserializeMetadata(output),
|
|
769
|
-
};
|
|
770
|
-
break;
|
|
771
|
-
case "ResourceNotFoundException":
|
|
772
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
773
|
-
response = {
|
|
774
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
775
|
-
name: errorCode,
|
|
776
|
-
$metadata: deserializeMetadata(output),
|
|
777
|
-
};
|
|
778
|
-
break;
|
|
779
|
-
case "ServiceQuotaExceededException":
|
|
780
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
781
|
-
response = {
|
|
782
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
783
|
-
name: errorCode,
|
|
784
|
-
$metadata: deserializeMetadata(output),
|
|
785
|
-
};
|
|
786
|
-
break;
|
|
787
|
-
case "ThrottlingException":
|
|
788
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
789
|
-
response = {
|
|
790
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
791
|
-
name: errorCode,
|
|
792
|
-
$metadata: deserializeMetadata(output),
|
|
793
|
-
};
|
|
794
|
-
break;
|
|
795
|
-
case "ValidationException":
|
|
796
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
797
|
-
response = {
|
|
798
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
799
|
-
name: errorCode,
|
|
800
|
-
$metadata: deserializeMetadata(output),
|
|
801
|
-
};
|
|
802
|
-
break;
|
|
803
|
-
default:
|
|
804
|
-
const parsedBody = parsedOutput.body;
|
|
805
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
806
|
-
response = {
|
|
807
|
-
...parsedBody,
|
|
808
|
-
name: `${errorCode}`,
|
|
809
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
810
|
-
$fault: "client",
|
|
811
|
-
$metadata: deserializeMetadata(output),
|
|
812
|
-
} as any;
|
|
813
|
-
}
|
|
814
|
-
const message = response.message || response.Message || errorCode;
|
|
815
|
-
response.message = message;
|
|
816
|
-
delete response.Message;
|
|
817
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
818
|
-
};
|
|
819
|
-
|
|
820
|
-
export const deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationCommand = async (
|
|
821
|
-
output: __HttpResponse,
|
|
822
|
-
context: __SerdeContext
|
|
823
|
-
): Promise<CreateInstanceAccessControlAttributeConfigurationCommandOutput> => {
|
|
824
|
-
if (output.statusCode >= 300) {
|
|
825
|
-
return deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationCommandError(output, context);
|
|
826
|
-
}
|
|
827
|
-
const data: any = await parseBody(output.body, context);
|
|
828
|
-
let contents: any = {};
|
|
829
|
-
contents = deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationResponse(data, context);
|
|
830
|
-
const response: CreateInstanceAccessControlAttributeConfigurationCommandOutput = {
|
|
831
|
-
$metadata: deserializeMetadata(output),
|
|
832
|
-
...contents,
|
|
833
|
-
};
|
|
834
|
-
return Promise.resolve(response);
|
|
835
|
-
};
|
|
836
|
-
|
|
837
|
-
const deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationCommandError = async (
|
|
838
|
-
output: __HttpResponse,
|
|
839
|
-
context: __SerdeContext
|
|
840
|
-
): Promise<CreateInstanceAccessControlAttributeConfigurationCommandOutput> => {
|
|
841
|
-
const parsedOutput: any = {
|
|
842
|
-
...output,
|
|
843
|
-
body: await parseBody(output.body, context),
|
|
844
|
-
};
|
|
845
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
846
|
-
let errorCode: string = "UnknownError";
|
|
847
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
-
switch (errorCode) {
|
|
849
|
-
case "AccessDeniedException":
|
|
850
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
851
|
-
response = {
|
|
852
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
853
|
-
name: errorCode,
|
|
854
|
-
$metadata: deserializeMetadata(output),
|
|
855
|
-
};
|
|
856
|
-
break;
|
|
857
|
-
case "ConflictException":
|
|
858
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
859
|
-
response = {
|
|
860
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
861
|
-
name: errorCode,
|
|
862
|
-
$metadata: deserializeMetadata(output),
|
|
863
|
-
};
|
|
864
|
-
break;
|
|
865
|
-
case "InternalServerException":
|
|
866
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
867
|
-
response = {
|
|
868
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
869
|
-
name: errorCode,
|
|
870
|
-
$metadata: deserializeMetadata(output),
|
|
871
|
-
};
|
|
872
|
-
break;
|
|
873
|
-
case "ResourceNotFoundException":
|
|
874
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
875
|
-
response = {
|
|
876
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
877
|
-
name: errorCode,
|
|
878
|
-
$metadata: deserializeMetadata(output),
|
|
879
|
-
};
|
|
880
|
-
break;
|
|
881
|
-
case "ThrottlingException":
|
|
882
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
883
|
-
response = {
|
|
884
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
885
|
-
name: errorCode,
|
|
886
|
-
$metadata: deserializeMetadata(output),
|
|
887
|
-
};
|
|
888
|
-
break;
|
|
889
|
-
case "ValidationException":
|
|
890
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
891
|
-
response = {
|
|
892
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
893
|
-
name: errorCode,
|
|
894
|
-
$metadata: deserializeMetadata(output),
|
|
895
|
-
};
|
|
896
|
-
break;
|
|
897
|
-
default:
|
|
898
|
-
const parsedBody = parsedOutput.body;
|
|
899
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
900
|
-
response = {
|
|
901
|
-
...parsedBody,
|
|
902
|
-
name: `${errorCode}`,
|
|
903
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
904
|
-
$fault: "client",
|
|
905
|
-
$metadata: deserializeMetadata(output),
|
|
906
|
-
} as any;
|
|
907
|
-
}
|
|
908
|
-
const message = response.message || response.Message || errorCode;
|
|
909
|
-
response.message = message;
|
|
910
|
-
delete response.Message;
|
|
911
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
912
|
-
};
|
|
913
|
-
|
|
914
|
-
export const deserializeAws_json1_1CreatePermissionSetCommand = async (
|
|
915
|
-
output: __HttpResponse,
|
|
916
|
-
context: __SerdeContext
|
|
917
|
-
): Promise<CreatePermissionSetCommandOutput> => {
|
|
918
|
-
if (output.statusCode >= 300) {
|
|
919
|
-
return deserializeAws_json1_1CreatePermissionSetCommandError(output, context);
|
|
920
|
-
}
|
|
921
|
-
const data: any = await parseBody(output.body, context);
|
|
922
|
-
let contents: any = {};
|
|
923
|
-
contents = deserializeAws_json1_1CreatePermissionSetResponse(data, context);
|
|
924
|
-
const response: CreatePermissionSetCommandOutput = {
|
|
925
|
-
$metadata: deserializeMetadata(output),
|
|
926
|
-
...contents,
|
|
927
|
-
};
|
|
928
|
-
return Promise.resolve(response);
|
|
929
|
-
};
|
|
930
|
-
|
|
931
|
-
const deserializeAws_json1_1CreatePermissionSetCommandError = async (
|
|
932
|
-
output: __HttpResponse,
|
|
933
|
-
context: __SerdeContext
|
|
934
|
-
): Promise<CreatePermissionSetCommandOutput> => {
|
|
935
|
-
const parsedOutput: any = {
|
|
936
|
-
...output,
|
|
937
|
-
body: await parseBody(output.body, context),
|
|
938
|
-
};
|
|
939
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
940
|
-
let errorCode: string = "UnknownError";
|
|
941
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
|
-
switch (errorCode) {
|
|
943
|
-
case "AccessDeniedException":
|
|
944
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
945
|
-
response = {
|
|
946
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
947
|
-
name: errorCode,
|
|
948
|
-
$metadata: deserializeMetadata(output),
|
|
949
|
-
};
|
|
950
|
-
break;
|
|
951
|
-
case "ConflictException":
|
|
952
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
953
|
-
response = {
|
|
954
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
955
|
-
name: errorCode,
|
|
956
|
-
$metadata: deserializeMetadata(output),
|
|
957
|
-
};
|
|
958
|
-
break;
|
|
959
|
-
case "InternalServerException":
|
|
960
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
961
|
-
response = {
|
|
962
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
963
|
-
name: errorCode,
|
|
964
|
-
$metadata: deserializeMetadata(output),
|
|
965
|
-
};
|
|
966
|
-
break;
|
|
967
|
-
case "ResourceNotFoundException":
|
|
968
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
969
|
-
response = {
|
|
970
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
971
|
-
name: errorCode,
|
|
972
|
-
$metadata: deserializeMetadata(output),
|
|
973
|
-
};
|
|
974
|
-
break;
|
|
975
|
-
case "ServiceQuotaExceededException":
|
|
976
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
977
|
-
response = {
|
|
978
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
979
|
-
name: errorCode,
|
|
980
|
-
$metadata: deserializeMetadata(output),
|
|
981
|
-
};
|
|
982
|
-
break;
|
|
983
|
-
case "ThrottlingException":
|
|
984
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
985
|
-
response = {
|
|
986
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
987
|
-
name: errorCode,
|
|
988
|
-
$metadata: deserializeMetadata(output),
|
|
989
|
-
};
|
|
990
|
-
break;
|
|
991
|
-
case "ValidationException":
|
|
992
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
993
|
-
response = {
|
|
994
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
995
|
-
name: errorCode,
|
|
996
|
-
$metadata: deserializeMetadata(output),
|
|
997
|
-
};
|
|
998
|
-
break;
|
|
999
|
-
default:
|
|
1000
|
-
const parsedBody = parsedOutput.body;
|
|
1001
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1002
|
-
response = {
|
|
1003
|
-
...parsedBody,
|
|
1004
|
-
name: `${errorCode}`,
|
|
1005
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1006
|
-
$fault: "client",
|
|
1007
|
-
$metadata: deserializeMetadata(output),
|
|
1008
|
-
} as any;
|
|
1009
|
-
}
|
|
1010
|
-
const message = response.message || response.Message || errorCode;
|
|
1011
|
-
response.message = message;
|
|
1012
|
-
delete response.Message;
|
|
1013
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1014
|
-
};
|
|
1015
|
-
|
|
1016
|
-
export const deserializeAws_json1_1DeleteAccountAssignmentCommand = async (
|
|
1017
|
-
output: __HttpResponse,
|
|
1018
|
-
context: __SerdeContext
|
|
1019
|
-
): Promise<DeleteAccountAssignmentCommandOutput> => {
|
|
1020
|
-
if (output.statusCode >= 300) {
|
|
1021
|
-
return deserializeAws_json1_1DeleteAccountAssignmentCommandError(output, context);
|
|
1022
|
-
}
|
|
1023
|
-
const data: any = await parseBody(output.body, context);
|
|
1024
|
-
let contents: any = {};
|
|
1025
|
-
contents = deserializeAws_json1_1DeleteAccountAssignmentResponse(data, context);
|
|
1026
|
-
const response: DeleteAccountAssignmentCommandOutput = {
|
|
1027
|
-
$metadata: deserializeMetadata(output),
|
|
1028
|
-
...contents,
|
|
1029
|
-
};
|
|
1030
|
-
return Promise.resolve(response);
|
|
1031
|
-
};
|
|
1032
|
-
|
|
1033
|
-
const deserializeAws_json1_1DeleteAccountAssignmentCommandError = async (
|
|
1034
|
-
output: __HttpResponse,
|
|
1035
|
-
context: __SerdeContext
|
|
1036
|
-
): Promise<DeleteAccountAssignmentCommandOutput> => {
|
|
1037
|
-
const parsedOutput: any = {
|
|
1038
|
-
...output,
|
|
1039
|
-
body: await parseBody(output.body, context),
|
|
1040
|
-
};
|
|
1041
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1042
|
-
let errorCode: string = "UnknownError";
|
|
1043
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1044
|
-
switch (errorCode) {
|
|
1045
|
-
case "AccessDeniedException":
|
|
1046
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1047
|
-
response = {
|
|
1048
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1049
|
-
name: errorCode,
|
|
1050
|
-
$metadata: deserializeMetadata(output),
|
|
1051
|
-
};
|
|
1052
|
-
break;
|
|
1053
|
-
case "ConflictException":
|
|
1054
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1055
|
-
response = {
|
|
1056
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1057
|
-
name: errorCode,
|
|
1058
|
-
$metadata: deserializeMetadata(output),
|
|
1059
|
-
};
|
|
1060
|
-
break;
|
|
1061
|
-
case "InternalServerException":
|
|
1062
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1063
|
-
response = {
|
|
1064
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1065
|
-
name: errorCode,
|
|
1066
|
-
$metadata: deserializeMetadata(output),
|
|
1067
|
-
};
|
|
1068
|
-
break;
|
|
1069
|
-
case "ResourceNotFoundException":
|
|
1070
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1071
|
-
response = {
|
|
1072
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1073
|
-
name: errorCode,
|
|
1074
|
-
$metadata: deserializeMetadata(output),
|
|
1075
|
-
};
|
|
1076
|
-
break;
|
|
1077
|
-
case "ThrottlingException":
|
|
1078
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1079
|
-
response = {
|
|
1080
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1081
|
-
name: errorCode,
|
|
1082
|
-
$metadata: deserializeMetadata(output),
|
|
1083
|
-
};
|
|
1084
|
-
break;
|
|
1085
|
-
case "ValidationException":
|
|
1086
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1087
|
-
response = {
|
|
1088
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1089
|
-
name: errorCode,
|
|
1090
|
-
$metadata: deserializeMetadata(output),
|
|
1091
|
-
};
|
|
1092
|
-
break;
|
|
1093
|
-
default:
|
|
1094
|
-
const parsedBody = parsedOutput.body;
|
|
1095
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1096
|
-
response = {
|
|
1097
|
-
...parsedBody,
|
|
1098
|
-
name: `${errorCode}`,
|
|
1099
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1100
|
-
$fault: "client",
|
|
1101
|
-
$metadata: deserializeMetadata(output),
|
|
1102
|
-
} as any;
|
|
1103
|
-
}
|
|
1104
|
-
const message = response.message || response.Message || errorCode;
|
|
1105
|
-
response.message = message;
|
|
1106
|
-
delete response.Message;
|
|
1107
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1108
|
-
};
|
|
1109
|
-
|
|
1110
|
-
export const deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommand = async (
|
|
1111
|
-
output: __HttpResponse,
|
|
1112
|
-
context: __SerdeContext
|
|
1113
|
-
): Promise<DeleteInlinePolicyFromPermissionSetCommandOutput> => {
|
|
1114
|
-
if (output.statusCode >= 300) {
|
|
1115
|
-
return deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommandError(output, context);
|
|
1116
|
-
}
|
|
1117
|
-
const data: any = await parseBody(output.body, context);
|
|
1118
|
-
let contents: any = {};
|
|
1119
|
-
contents = deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetResponse(data, context);
|
|
1120
|
-
const response: DeleteInlinePolicyFromPermissionSetCommandOutput = {
|
|
1121
|
-
$metadata: deserializeMetadata(output),
|
|
1122
|
-
...contents,
|
|
1123
|
-
};
|
|
1124
|
-
return Promise.resolve(response);
|
|
1125
|
-
};
|
|
1126
|
-
|
|
1127
|
-
const deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommandError = async (
|
|
1128
|
-
output: __HttpResponse,
|
|
1129
|
-
context: __SerdeContext
|
|
1130
|
-
): Promise<DeleteInlinePolicyFromPermissionSetCommandOutput> => {
|
|
1131
|
-
const parsedOutput: any = {
|
|
1132
|
-
...output,
|
|
1133
|
-
body: await parseBody(output.body, context),
|
|
1134
|
-
};
|
|
1135
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1136
|
-
let errorCode: string = "UnknownError";
|
|
1137
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1138
|
-
switch (errorCode) {
|
|
1139
|
-
case "AccessDeniedException":
|
|
1140
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1141
|
-
response = {
|
|
1142
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1143
|
-
name: errorCode,
|
|
1144
|
-
$metadata: deserializeMetadata(output),
|
|
1145
|
-
};
|
|
1146
|
-
break;
|
|
1147
|
-
case "ConflictException":
|
|
1148
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1149
|
-
response = {
|
|
1150
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1151
|
-
name: errorCode,
|
|
1152
|
-
$metadata: deserializeMetadata(output),
|
|
1153
|
-
};
|
|
1154
|
-
break;
|
|
1155
|
-
case "InternalServerException":
|
|
1156
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1157
|
-
response = {
|
|
1158
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1159
|
-
name: errorCode,
|
|
1160
|
-
$metadata: deserializeMetadata(output),
|
|
1161
|
-
};
|
|
1162
|
-
break;
|
|
1163
|
-
case "ResourceNotFoundException":
|
|
1164
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1165
|
-
response = {
|
|
1166
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1167
|
-
name: errorCode,
|
|
1168
|
-
$metadata: deserializeMetadata(output),
|
|
1169
|
-
};
|
|
1170
|
-
break;
|
|
1171
|
-
case "ThrottlingException":
|
|
1172
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1173
|
-
response = {
|
|
1174
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1175
|
-
name: errorCode,
|
|
1176
|
-
$metadata: deserializeMetadata(output),
|
|
1177
|
-
};
|
|
1178
|
-
break;
|
|
1179
|
-
case "ValidationException":
|
|
1180
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1181
|
-
response = {
|
|
1182
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1183
|
-
name: errorCode,
|
|
1184
|
-
$metadata: deserializeMetadata(output),
|
|
1185
|
-
};
|
|
1186
|
-
break;
|
|
1187
|
-
default:
|
|
1188
|
-
const parsedBody = parsedOutput.body;
|
|
1189
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1190
|
-
response = {
|
|
1191
|
-
...parsedBody,
|
|
1192
|
-
name: `${errorCode}`,
|
|
1193
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1194
|
-
$fault: "client",
|
|
1195
|
-
$metadata: deserializeMetadata(output),
|
|
1196
|
-
} as any;
|
|
1197
|
-
}
|
|
1198
|
-
const message = response.message || response.Message || errorCode;
|
|
1199
|
-
response.message = message;
|
|
1200
|
-
delete response.Message;
|
|
1201
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1202
|
-
};
|
|
1203
|
-
|
|
1204
|
-
export const deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationCommand = async (
|
|
1205
|
-
output: __HttpResponse,
|
|
1206
|
-
context: __SerdeContext
|
|
1207
|
-
): Promise<DeleteInstanceAccessControlAttributeConfigurationCommandOutput> => {
|
|
1208
|
-
if (output.statusCode >= 300) {
|
|
1209
|
-
return deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationCommandError(output, context);
|
|
1210
|
-
}
|
|
1211
|
-
const data: any = await parseBody(output.body, context);
|
|
1212
|
-
let contents: any = {};
|
|
1213
|
-
contents = deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationResponse(data, context);
|
|
1214
|
-
const response: DeleteInstanceAccessControlAttributeConfigurationCommandOutput = {
|
|
1215
|
-
$metadata: deserializeMetadata(output),
|
|
1216
|
-
...contents,
|
|
1217
|
-
};
|
|
1218
|
-
return Promise.resolve(response);
|
|
1219
|
-
};
|
|
1220
|
-
|
|
1221
|
-
const deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationCommandError = async (
|
|
1222
|
-
output: __HttpResponse,
|
|
1223
|
-
context: __SerdeContext
|
|
1224
|
-
): Promise<DeleteInstanceAccessControlAttributeConfigurationCommandOutput> => {
|
|
1225
|
-
const parsedOutput: any = {
|
|
1226
|
-
...output,
|
|
1227
|
-
body: await parseBody(output.body, context),
|
|
1228
|
-
};
|
|
1229
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1230
|
-
let errorCode: string = "UnknownError";
|
|
1231
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1232
|
-
switch (errorCode) {
|
|
1233
|
-
case "AccessDeniedException":
|
|
1234
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1235
|
-
response = {
|
|
1236
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1237
|
-
name: errorCode,
|
|
1238
|
-
$metadata: deserializeMetadata(output),
|
|
1239
|
-
};
|
|
1240
|
-
break;
|
|
1241
|
-
case "ConflictException":
|
|
1242
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1243
|
-
response = {
|
|
1244
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1245
|
-
name: errorCode,
|
|
1246
|
-
$metadata: deserializeMetadata(output),
|
|
1247
|
-
};
|
|
1248
|
-
break;
|
|
1249
|
-
case "InternalServerException":
|
|
1250
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1251
|
-
response = {
|
|
1252
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1253
|
-
name: errorCode,
|
|
1254
|
-
$metadata: deserializeMetadata(output),
|
|
1255
|
-
};
|
|
1256
|
-
break;
|
|
1257
|
-
case "ResourceNotFoundException":
|
|
1258
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1259
|
-
response = {
|
|
1260
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1261
|
-
name: errorCode,
|
|
1262
|
-
$metadata: deserializeMetadata(output),
|
|
1263
|
-
};
|
|
1264
|
-
break;
|
|
1265
|
-
case "ThrottlingException":
|
|
1266
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1267
|
-
response = {
|
|
1268
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1269
|
-
name: errorCode,
|
|
1270
|
-
$metadata: deserializeMetadata(output),
|
|
1271
|
-
};
|
|
1272
|
-
break;
|
|
1273
|
-
case "ValidationException":
|
|
1274
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1275
|
-
response = {
|
|
1276
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1277
|
-
name: errorCode,
|
|
1278
|
-
$metadata: deserializeMetadata(output),
|
|
1279
|
-
};
|
|
1280
|
-
break;
|
|
1281
|
-
default:
|
|
1282
|
-
const parsedBody = parsedOutput.body;
|
|
1283
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1284
|
-
response = {
|
|
1285
|
-
...parsedBody,
|
|
1286
|
-
name: `${errorCode}`,
|
|
1287
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1288
|
-
$fault: "client",
|
|
1289
|
-
$metadata: deserializeMetadata(output),
|
|
1290
|
-
} as any;
|
|
1291
|
-
}
|
|
1292
|
-
const message = response.message || response.Message || errorCode;
|
|
1293
|
-
response.message = message;
|
|
1294
|
-
delete response.Message;
|
|
1295
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1296
|
-
};
|
|
1297
|
-
|
|
1298
|
-
export const deserializeAws_json1_1DeletePermissionSetCommand = async (
|
|
1299
|
-
output: __HttpResponse,
|
|
1300
|
-
context: __SerdeContext
|
|
1301
|
-
): Promise<DeletePermissionSetCommandOutput> => {
|
|
1302
|
-
if (output.statusCode >= 300) {
|
|
1303
|
-
return deserializeAws_json1_1DeletePermissionSetCommandError(output, context);
|
|
1304
|
-
}
|
|
1305
|
-
const data: any = await parseBody(output.body, context);
|
|
1306
|
-
let contents: any = {};
|
|
1307
|
-
contents = deserializeAws_json1_1DeletePermissionSetResponse(data, context);
|
|
1308
|
-
const response: DeletePermissionSetCommandOutput = {
|
|
1309
|
-
$metadata: deserializeMetadata(output),
|
|
1310
|
-
...contents,
|
|
1311
|
-
};
|
|
1312
|
-
return Promise.resolve(response);
|
|
1313
|
-
};
|
|
1314
|
-
|
|
1315
|
-
const deserializeAws_json1_1DeletePermissionSetCommandError = async (
|
|
1316
|
-
output: __HttpResponse,
|
|
1317
|
-
context: __SerdeContext
|
|
1318
|
-
): Promise<DeletePermissionSetCommandOutput> => {
|
|
1319
|
-
const parsedOutput: any = {
|
|
1320
|
-
...output,
|
|
1321
|
-
body: await parseBody(output.body, context),
|
|
1322
|
-
};
|
|
1323
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1324
|
-
let errorCode: string = "UnknownError";
|
|
1325
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1326
|
-
switch (errorCode) {
|
|
1327
|
-
case "AccessDeniedException":
|
|
1328
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1329
|
-
response = {
|
|
1330
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1331
|
-
name: errorCode,
|
|
1332
|
-
$metadata: deserializeMetadata(output),
|
|
1333
|
-
};
|
|
1334
|
-
break;
|
|
1335
|
-
case "ConflictException":
|
|
1336
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1337
|
-
response = {
|
|
1338
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1339
|
-
name: errorCode,
|
|
1340
|
-
$metadata: deserializeMetadata(output),
|
|
1341
|
-
};
|
|
1342
|
-
break;
|
|
1343
|
-
case "InternalServerException":
|
|
1344
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1345
|
-
response = {
|
|
1346
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1347
|
-
name: errorCode,
|
|
1348
|
-
$metadata: deserializeMetadata(output),
|
|
1349
|
-
};
|
|
1350
|
-
break;
|
|
1351
|
-
case "ResourceNotFoundException":
|
|
1352
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1353
|
-
response = {
|
|
1354
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1355
|
-
name: errorCode,
|
|
1356
|
-
$metadata: deserializeMetadata(output),
|
|
1357
|
-
};
|
|
1358
|
-
break;
|
|
1359
|
-
case "ThrottlingException":
|
|
1360
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1361
|
-
response = {
|
|
1362
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1363
|
-
name: errorCode,
|
|
1364
|
-
$metadata: deserializeMetadata(output),
|
|
1365
|
-
};
|
|
1366
|
-
break;
|
|
1367
|
-
case "ValidationException":
|
|
1368
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1369
|
-
response = {
|
|
1370
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1371
|
-
name: errorCode,
|
|
1372
|
-
$metadata: deserializeMetadata(output),
|
|
1373
|
-
};
|
|
1374
|
-
break;
|
|
1375
|
-
default:
|
|
1376
|
-
const parsedBody = parsedOutput.body;
|
|
1377
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1378
|
-
response = {
|
|
1379
|
-
...parsedBody,
|
|
1380
|
-
name: `${errorCode}`,
|
|
1381
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1382
|
-
$fault: "client",
|
|
1383
|
-
$metadata: deserializeMetadata(output),
|
|
1384
|
-
} as any;
|
|
1385
|
-
}
|
|
1386
|
-
const message = response.message || response.Message || errorCode;
|
|
1387
|
-
response.message = message;
|
|
1388
|
-
delete response.Message;
|
|
1389
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1390
|
-
};
|
|
1391
|
-
|
|
1392
|
-
export const deserializeAws_json1_1DescribeAccountAssignmentCreationStatusCommand = async (
|
|
1393
|
-
output: __HttpResponse,
|
|
1394
|
-
context: __SerdeContext
|
|
1395
|
-
): Promise<DescribeAccountAssignmentCreationStatusCommandOutput> => {
|
|
1396
|
-
if (output.statusCode >= 300) {
|
|
1397
|
-
return deserializeAws_json1_1DescribeAccountAssignmentCreationStatusCommandError(output, context);
|
|
1398
|
-
}
|
|
1399
|
-
const data: any = await parseBody(output.body, context);
|
|
1400
|
-
let contents: any = {};
|
|
1401
|
-
contents = deserializeAws_json1_1DescribeAccountAssignmentCreationStatusResponse(data, context);
|
|
1402
|
-
const response: DescribeAccountAssignmentCreationStatusCommandOutput = {
|
|
1403
|
-
$metadata: deserializeMetadata(output),
|
|
1404
|
-
...contents,
|
|
1405
|
-
};
|
|
1406
|
-
return Promise.resolve(response);
|
|
1407
|
-
};
|
|
1408
|
-
|
|
1409
|
-
const deserializeAws_json1_1DescribeAccountAssignmentCreationStatusCommandError = async (
|
|
1410
|
-
output: __HttpResponse,
|
|
1411
|
-
context: __SerdeContext
|
|
1412
|
-
): Promise<DescribeAccountAssignmentCreationStatusCommandOutput> => {
|
|
1413
|
-
const parsedOutput: any = {
|
|
1414
|
-
...output,
|
|
1415
|
-
body: await parseBody(output.body, context),
|
|
1416
|
-
};
|
|
1417
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1418
|
-
let errorCode: string = "UnknownError";
|
|
1419
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1420
|
-
switch (errorCode) {
|
|
1421
|
-
case "AccessDeniedException":
|
|
1422
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1423
|
-
response = {
|
|
1424
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1425
|
-
name: errorCode,
|
|
1426
|
-
$metadata: deserializeMetadata(output),
|
|
1427
|
-
};
|
|
1428
|
-
break;
|
|
1429
|
-
case "InternalServerException":
|
|
1430
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1431
|
-
response = {
|
|
1432
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1433
|
-
name: errorCode,
|
|
1434
|
-
$metadata: deserializeMetadata(output),
|
|
1435
|
-
};
|
|
1436
|
-
break;
|
|
1437
|
-
case "ResourceNotFoundException":
|
|
1438
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1439
|
-
response = {
|
|
1440
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1441
|
-
name: errorCode,
|
|
1442
|
-
$metadata: deserializeMetadata(output),
|
|
1443
|
-
};
|
|
1444
|
-
break;
|
|
1445
|
-
case "ThrottlingException":
|
|
1446
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1447
|
-
response = {
|
|
1448
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1449
|
-
name: errorCode,
|
|
1450
|
-
$metadata: deserializeMetadata(output),
|
|
1451
|
-
};
|
|
1452
|
-
break;
|
|
1453
|
-
case "ValidationException":
|
|
1454
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1455
|
-
response = {
|
|
1456
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1457
|
-
name: errorCode,
|
|
1458
|
-
$metadata: deserializeMetadata(output),
|
|
1459
|
-
};
|
|
1460
|
-
break;
|
|
1461
|
-
default:
|
|
1462
|
-
const parsedBody = parsedOutput.body;
|
|
1463
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1464
|
-
response = {
|
|
1465
|
-
...parsedBody,
|
|
1466
|
-
name: `${errorCode}`,
|
|
1467
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1468
|
-
$fault: "client",
|
|
1469
|
-
$metadata: deserializeMetadata(output),
|
|
1470
|
-
} as any;
|
|
1471
|
-
}
|
|
1472
|
-
const message = response.message || response.Message || errorCode;
|
|
1473
|
-
response.message = message;
|
|
1474
|
-
delete response.Message;
|
|
1475
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1476
|
-
};
|
|
1477
|
-
|
|
1478
|
-
export const deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommand = async (
|
|
1479
|
-
output: __HttpResponse,
|
|
1480
|
-
context: __SerdeContext
|
|
1481
|
-
): Promise<DescribeAccountAssignmentDeletionStatusCommandOutput> => {
|
|
1482
|
-
if (output.statusCode >= 300) {
|
|
1483
|
-
return deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommandError(output, context);
|
|
1484
|
-
}
|
|
1485
|
-
const data: any = await parseBody(output.body, context);
|
|
1486
|
-
let contents: any = {};
|
|
1487
|
-
contents = deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusResponse(data, context);
|
|
1488
|
-
const response: DescribeAccountAssignmentDeletionStatusCommandOutput = {
|
|
1489
|
-
$metadata: deserializeMetadata(output),
|
|
1490
|
-
...contents,
|
|
1491
|
-
};
|
|
1492
|
-
return Promise.resolve(response);
|
|
1493
|
-
};
|
|
1494
|
-
|
|
1495
|
-
const deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommandError = async (
|
|
1496
|
-
output: __HttpResponse,
|
|
1497
|
-
context: __SerdeContext
|
|
1498
|
-
): Promise<DescribeAccountAssignmentDeletionStatusCommandOutput> => {
|
|
1499
|
-
const parsedOutput: any = {
|
|
1500
|
-
...output,
|
|
1501
|
-
body: await parseBody(output.body, context),
|
|
1502
|
-
};
|
|
1503
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1504
|
-
let errorCode: string = "UnknownError";
|
|
1505
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
|
-
switch (errorCode) {
|
|
1507
|
-
case "AccessDeniedException":
|
|
1508
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1509
|
-
response = {
|
|
1510
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1511
|
-
name: errorCode,
|
|
1512
|
-
$metadata: deserializeMetadata(output),
|
|
1513
|
-
};
|
|
1514
|
-
break;
|
|
1515
|
-
case "InternalServerException":
|
|
1516
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1517
|
-
response = {
|
|
1518
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1519
|
-
name: errorCode,
|
|
1520
|
-
$metadata: deserializeMetadata(output),
|
|
1521
|
-
};
|
|
1522
|
-
break;
|
|
1523
|
-
case "ResourceNotFoundException":
|
|
1524
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1525
|
-
response = {
|
|
1526
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1527
|
-
name: errorCode,
|
|
1528
|
-
$metadata: deserializeMetadata(output),
|
|
1529
|
-
};
|
|
1530
|
-
break;
|
|
1531
|
-
case "ThrottlingException":
|
|
1532
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1533
|
-
response = {
|
|
1534
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1535
|
-
name: errorCode,
|
|
1536
|
-
$metadata: deserializeMetadata(output),
|
|
1537
|
-
};
|
|
1538
|
-
break;
|
|
1539
|
-
case "ValidationException":
|
|
1540
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1541
|
-
response = {
|
|
1542
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1543
|
-
name: errorCode,
|
|
1544
|
-
$metadata: deserializeMetadata(output),
|
|
1545
|
-
};
|
|
1546
|
-
break;
|
|
1547
|
-
default:
|
|
1548
|
-
const parsedBody = parsedOutput.body;
|
|
1549
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1550
|
-
response = {
|
|
1551
|
-
...parsedBody,
|
|
1552
|
-
name: `${errorCode}`,
|
|
1553
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1554
|
-
$fault: "client",
|
|
1555
|
-
$metadata: deserializeMetadata(output),
|
|
1556
|
-
} as any;
|
|
1557
|
-
}
|
|
1558
|
-
const message = response.message || response.Message || errorCode;
|
|
1559
|
-
response.message = message;
|
|
1560
|
-
delete response.Message;
|
|
1561
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1562
|
-
};
|
|
1563
|
-
|
|
1564
|
-
export const deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationCommand = async (
|
|
1565
|
-
output: __HttpResponse,
|
|
1566
|
-
context: __SerdeContext
|
|
1567
|
-
): Promise<DescribeInstanceAccessControlAttributeConfigurationCommandOutput> => {
|
|
1568
|
-
if (output.statusCode >= 300) {
|
|
1569
|
-
return deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationCommandError(output, context);
|
|
1570
|
-
}
|
|
1571
|
-
const data: any = await parseBody(output.body, context);
|
|
1572
|
-
let contents: any = {};
|
|
1573
|
-
contents = deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationResponse(data, context);
|
|
1574
|
-
const response: DescribeInstanceAccessControlAttributeConfigurationCommandOutput = {
|
|
1575
|
-
$metadata: deserializeMetadata(output),
|
|
1576
|
-
...contents,
|
|
1577
|
-
};
|
|
1578
|
-
return Promise.resolve(response);
|
|
1579
|
-
};
|
|
1580
|
-
|
|
1581
|
-
const deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationCommandError = async (
|
|
1582
|
-
output: __HttpResponse,
|
|
1583
|
-
context: __SerdeContext
|
|
1584
|
-
): Promise<DescribeInstanceAccessControlAttributeConfigurationCommandOutput> => {
|
|
1585
|
-
const parsedOutput: any = {
|
|
1586
|
-
...output,
|
|
1587
|
-
body: await parseBody(output.body, context),
|
|
1588
|
-
};
|
|
1589
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1590
|
-
let errorCode: string = "UnknownError";
|
|
1591
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1592
|
-
switch (errorCode) {
|
|
1593
|
-
case "AccessDeniedException":
|
|
1594
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1595
|
-
response = {
|
|
1596
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1597
|
-
name: errorCode,
|
|
1598
|
-
$metadata: deserializeMetadata(output),
|
|
1599
|
-
};
|
|
1600
|
-
break;
|
|
1601
|
-
case "InternalServerException":
|
|
1602
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1603
|
-
response = {
|
|
1604
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1605
|
-
name: errorCode,
|
|
1606
|
-
$metadata: deserializeMetadata(output),
|
|
1607
|
-
};
|
|
1608
|
-
break;
|
|
1609
|
-
case "ResourceNotFoundException":
|
|
1610
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1611
|
-
response = {
|
|
1612
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1613
|
-
name: errorCode,
|
|
1614
|
-
$metadata: deserializeMetadata(output),
|
|
1615
|
-
};
|
|
1616
|
-
break;
|
|
1617
|
-
case "ThrottlingException":
|
|
1618
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1619
|
-
response = {
|
|
1620
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1621
|
-
name: errorCode,
|
|
1622
|
-
$metadata: deserializeMetadata(output),
|
|
1623
|
-
};
|
|
1624
|
-
break;
|
|
1625
|
-
case "ValidationException":
|
|
1626
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1627
|
-
response = {
|
|
1628
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1629
|
-
name: errorCode,
|
|
1630
|
-
$metadata: deserializeMetadata(output),
|
|
1631
|
-
};
|
|
1632
|
-
break;
|
|
1633
|
-
default:
|
|
1634
|
-
const parsedBody = parsedOutput.body;
|
|
1635
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1636
|
-
response = {
|
|
1637
|
-
...parsedBody,
|
|
1638
|
-
name: `${errorCode}`,
|
|
1639
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1640
|
-
$fault: "client",
|
|
1641
|
-
$metadata: deserializeMetadata(output),
|
|
1642
|
-
} as any;
|
|
1643
|
-
}
|
|
1644
|
-
const message = response.message || response.Message || errorCode;
|
|
1645
|
-
response.message = message;
|
|
1646
|
-
delete response.Message;
|
|
1647
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1648
|
-
};
|
|
1649
|
-
|
|
1650
|
-
export const deserializeAws_json1_1DescribePermissionSetCommand = async (
|
|
1651
|
-
output: __HttpResponse,
|
|
1652
|
-
context: __SerdeContext
|
|
1653
|
-
): Promise<DescribePermissionSetCommandOutput> => {
|
|
1654
|
-
if (output.statusCode >= 300) {
|
|
1655
|
-
return deserializeAws_json1_1DescribePermissionSetCommandError(output, context);
|
|
1656
|
-
}
|
|
1657
|
-
const data: any = await parseBody(output.body, context);
|
|
1658
|
-
let contents: any = {};
|
|
1659
|
-
contents = deserializeAws_json1_1DescribePermissionSetResponse(data, context);
|
|
1660
|
-
const response: DescribePermissionSetCommandOutput = {
|
|
1661
|
-
$metadata: deserializeMetadata(output),
|
|
1662
|
-
...contents,
|
|
1663
|
-
};
|
|
1664
|
-
return Promise.resolve(response);
|
|
1665
|
-
};
|
|
1666
|
-
|
|
1667
|
-
const deserializeAws_json1_1DescribePermissionSetCommandError = async (
|
|
1668
|
-
output: __HttpResponse,
|
|
1669
|
-
context: __SerdeContext
|
|
1670
|
-
): Promise<DescribePermissionSetCommandOutput> => {
|
|
1671
|
-
const parsedOutput: any = {
|
|
1672
|
-
...output,
|
|
1673
|
-
body: await parseBody(output.body, context),
|
|
1674
|
-
};
|
|
1675
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1676
|
-
let errorCode: string = "UnknownError";
|
|
1677
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1678
|
-
switch (errorCode) {
|
|
1679
|
-
case "AccessDeniedException":
|
|
1680
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1681
|
-
response = {
|
|
1682
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1683
|
-
name: errorCode,
|
|
1684
|
-
$metadata: deserializeMetadata(output),
|
|
1685
|
-
};
|
|
1686
|
-
break;
|
|
1687
|
-
case "InternalServerException":
|
|
1688
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1689
|
-
response = {
|
|
1690
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1691
|
-
name: errorCode,
|
|
1692
|
-
$metadata: deserializeMetadata(output),
|
|
1693
|
-
};
|
|
1694
|
-
break;
|
|
1695
|
-
case "ResourceNotFoundException":
|
|
1696
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1697
|
-
response = {
|
|
1698
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1699
|
-
name: errorCode,
|
|
1700
|
-
$metadata: deserializeMetadata(output),
|
|
1701
|
-
};
|
|
1702
|
-
break;
|
|
1703
|
-
case "ThrottlingException":
|
|
1704
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1705
|
-
response = {
|
|
1706
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1707
|
-
name: errorCode,
|
|
1708
|
-
$metadata: deserializeMetadata(output),
|
|
1709
|
-
};
|
|
1710
|
-
break;
|
|
1711
|
-
case "ValidationException":
|
|
1712
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1713
|
-
response = {
|
|
1714
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1715
|
-
name: errorCode,
|
|
1716
|
-
$metadata: deserializeMetadata(output),
|
|
1717
|
-
};
|
|
1718
|
-
break;
|
|
1719
|
-
default:
|
|
1720
|
-
const parsedBody = parsedOutput.body;
|
|
1721
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1722
|
-
response = {
|
|
1723
|
-
...parsedBody,
|
|
1724
|
-
name: `${errorCode}`,
|
|
1725
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1726
|
-
$fault: "client",
|
|
1727
|
-
$metadata: deserializeMetadata(output),
|
|
1728
|
-
} as any;
|
|
1729
|
-
}
|
|
1730
|
-
const message = response.message || response.Message || errorCode;
|
|
1731
|
-
response.message = message;
|
|
1732
|
-
delete response.Message;
|
|
1733
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1734
|
-
};
|
|
1735
|
-
|
|
1736
|
-
export const deserializeAws_json1_1DescribePermissionSetProvisioningStatusCommand = async (
|
|
1737
|
-
output: __HttpResponse,
|
|
1738
|
-
context: __SerdeContext
|
|
1739
|
-
): Promise<DescribePermissionSetProvisioningStatusCommandOutput> => {
|
|
1740
|
-
if (output.statusCode >= 300) {
|
|
1741
|
-
return deserializeAws_json1_1DescribePermissionSetProvisioningStatusCommandError(output, context);
|
|
1742
|
-
}
|
|
1743
|
-
const data: any = await parseBody(output.body, context);
|
|
1744
|
-
let contents: any = {};
|
|
1745
|
-
contents = deserializeAws_json1_1DescribePermissionSetProvisioningStatusResponse(data, context);
|
|
1746
|
-
const response: DescribePermissionSetProvisioningStatusCommandOutput = {
|
|
1747
|
-
$metadata: deserializeMetadata(output),
|
|
1748
|
-
...contents,
|
|
1749
|
-
};
|
|
1750
|
-
return Promise.resolve(response);
|
|
1751
|
-
};
|
|
1752
|
-
|
|
1753
|
-
const deserializeAws_json1_1DescribePermissionSetProvisioningStatusCommandError = async (
|
|
1754
|
-
output: __HttpResponse,
|
|
1755
|
-
context: __SerdeContext
|
|
1756
|
-
): Promise<DescribePermissionSetProvisioningStatusCommandOutput> => {
|
|
1757
|
-
const parsedOutput: any = {
|
|
1758
|
-
...output,
|
|
1759
|
-
body: await parseBody(output.body, context),
|
|
1760
|
-
};
|
|
1761
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1762
|
-
let errorCode: string = "UnknownError";
|
|
1763
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
|
-
switch (errorCode) {
|
|
1765
|
-
case "AccessDeniedException":
|
|
1766
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1767
|
-
response = {
|
|
1768
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1769
|
-
name: errorCode,
|
|
1770
|
-
$metadata: deserializeMetadata(output),
|
|
1771
|
-
};
|
|
1772
|
-
break;
|
|
1773
|
-
case "InternalServerException":
|
|
1774
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1775
|
-
response = {
|
|
1776
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1777
|
-
name: errorCode,
|
|
1778
|
-
$metadata: deserializeMetadata(output),
|
|
1779
|
-
};
|
|
1780
|
-
break;
|
|
1781
|
-
case "ResourceNotFoundException":
|
|
1782
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1783
|
-
response = {
|
|
1784
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1785
|
-
name: errorCode,
|
|
1786
|
-
$metadata: deserializeMetadata(output),
|
|
1787
|
-
};
|
|
1788
|
-
break;
|
|
1789
|
-
case "ThrottlingException":
|
|
1790
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1791
|
-
response = {
|
|
1792
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1793
|
-
name: errorCode,
|
|
1794
|
-
$metadata: deserializeMetadata(output),
|
|
1795
|
-
};
|
|
1796
|
-
break;
|
|
1797
|
-
case "ValidationException":
|
|
1798
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1799
|
-
response = {
|
|
1800
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1801
|
-
name: errorCode,
|
|
1802
|
-
$metadata: deserializeMetadata(output),
|
|
1803
|
-
};
|
|
1804
|
-
break;
|
|
1805
|
-
default:
|
|
1806
|
-
const parsedBody = parsedOutput.body;
|
|
1807
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1808
|
-
response = {
|
|
1809
|
-
...parsedBody,
|
|
1810
|
-
name: `${errorCode}`,
|
|
1811
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1812
|
-
$fault: "client",
|
|
1813
|
-
$metadata: deserializeMetadata(output),
|
|
1814
|
-
} as any;
|
|
1815
|
-
}
|
|
1816
|
-
const message = response.message || response.Message || errorCode;
|
|
1817
|
-
response.message = message;
|
|
1818
|
-
delete response.Message;
|
|
1819
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1820
|
-
};
|
|
1821
|
-
|
|
1822
|
-
export const deserializeAws_json1_1DetachManagedPolicyFromPermissionSetCommand = async (
|
|
1823
|
-
output: __HttpResponse,
|
|
1824
|
-
context: __SerdeContext
|
|
1825
|
-
): Promise<DetachManagedPolicyFromPermissionSetCommandOutput> => {
|
|
1826
|
-
if (output.statusCode >= 300) {
|
|
1827
|
-
return deserializeAws_json1_1DetachManagedPolicyFromPermissionSetCommandError(output, context);
|
|
1828
|
-
}
|
|
1829
|
-
const data: any = await parseBody(output.body, context);
|
|
1830
|
-
let contents: any = {};
|
|
1831
|
-
contents = deserializeAws_json1_1DetachManagedPolicyFromPermissionSetResponse(data, context);
|
|
1832
|
-
const response: DetachManagedPolicyFromPermissionSetCommandOutput = {
|
|
1833
|
-
$metadata: deserializeMetadata(output),
|
|
1834
|
-
...contents,
|
|
1835
|
-
};
|
|
1836
|
-
return Promise.resolve(response);
|
|
1837
|
-
};
|
|
1838
|
-
|
|
1839
|
-
const deserializeAws_json1_1DetachManagedPolicyFromPermissionSetCommandError = async (
|
|
1840
|
-
output: __HttpResponse,
|
|
1841
|
-
context: __SerdeContext
|
|
1842
|
-
): Promise<DetachManagedPolicyFromPermissionSetCommandOutput> => {
|
|
1843
|
-
const parsedOutput: any = {
|
|
1844
|
-
...output,
|
|
1845
|
-
body: await parseBody(output.body, context),
|
|
1846
|
-
};
|
|
1847
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1848
|
-
let errorCode: string = "UnknownError";
|
|
1849
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1850
|
-
switch (errorCode) {
|
|
1851
|
-
case "AccessDeniedException":
|
|
1852
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1853
|
-
response = {
|
|
1854
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1855
|
-
name: errorCode,
|
|
1856
|
-
$metadata: deserializeMetadata(output),
|
|
1857
|
-
};
|
|
1858
|
-
break;
|
|
1859
|
-
case "ConflictException":
|
|
1860
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1861
|
-
response = {
|
|
1862
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1863
|
-
name: errorCode,
|
|
1864
|
-
$metadata: deserializeMetadata(output),
|
|
1865
|
-
};
|
|
1866
|
-
break;
|
|
1867
|
-
case "InternalServerException":
|
|
1868
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1869
|
-
response = {
|
|
1870
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1871
|
-
name: errorCode,
|
|
1872
|
-
$metadata: deserializeMetadata(output),
|
|
1873
|
-
};
|
|
1874
|
-
break;
|
|
1875
|
-
case "ResourceNotFoundException":
|
|
1876
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1877
|
-
response = {
|
|
1878
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1879
|
-
name: errorCode,
|
|
1880
|
-
$metadata: deserializeMetadata(output),
|
|
1881
|
-
};
|
|
1882
|
-
break;
|
|
1883
|
-
case "ThrottlingException":
|
|
1884
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1885
|
-
response = {
|
|
1886
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1887
|
-
name: errorCode,
|
|
1888
|
-
$metadata: deserializeMetadata(output),
|
|
1889
|
-
};
|
|
1890
|
-
break;
|
|
1891
|
-
case "ValidationException":
|
|
1892
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1893
|
-
response = {
|
|
1894
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1895
|
-
name: errorCode,
|
|
1896
|
-
$metadata: deserializeMetadata(output),
|
|
1897
|
-
};
|
|
1898
|
-
break;
|
|
1899
|
-
default:
|
|
1900
|
-
const parsedBody = parsedOutput.body;
|
|
1901
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1902
|
-
response = {
|
|
1903
|
-
...parsedBody,
|
|
1904
|
-
name: `${errorCode}`,
|
|
1905
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1906
|
-
$fault: "client",
|
|
1907
|
-
$metadata: deserializeMetadata(output),
|
|
1908
|
-
} as any;
|
|
1909
|
-
}
|
|
1910
|
-
const message = response.message || response.Message || errorCode;
|
|
1911
|
-
response.message = message;
|
|
1912
|
-
delete response.Message;
|
|
1913
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1914
|
-
};
|
|
1915
|
-
|
|
1916
|
-
export const deserializeAws_json1_1GetInlinePolicyForPermissionSetCommand = async (
|
|
1917
|
-
output: __HttpResponse,
|
|
1918
|
-
context: __SerdeContext
|
|
1919
|
-
): Promise<GetInlinePolicyForPermissionSetCommandOutput> => {
|
|
1920
|
-
if (output.statusCode >= 300) {
|
|
1921
|
-
return deserializeAws_json1_1GetInlinePolicyForPermissionSetCommandError(output, context);
|
|
1922
|
-
}
|
|
1923
|
-
const data: any = await parseBody(output.body, context);
|
|
1924
|
-
let contents: any = {};
|
|
1925
|
-
contents = deserializeAws_json1_1GetInlinePolicyForPermissionSetResponse(data, context);
|
|
1926
|
-
const response: GetInlinePolicyForPermissionSetCommandOutput = {
|
|
1927
|
-
$metadata: deserializeMetadata(output),
|
|
1928
|
-
...contents,
|
|
1929
|
-
};
|
|
1930
|
-
return Promise.resolve(response);
|
|
1931
|
-
};
|
|
1932
|
-
|
|
1933
|
-
const deserializeAws_json1_1GetInlinePolicyForPermissionSetCommandError = async (
|
|
1934
|
-
output: __HttpResponse,
|
|
1935
|
-
context: __SerdeContext
|
|
1936
|
-
): Promise<GetInlinePolicyForPermissionSetCommandOutput> => {
|
|
1937
|
-
const parsedOutput: any = {
|
|
1938
|
-
...output,
|
|
1939
|
-
body: await parseBody(output.body, context),
|
|
1940
|
-
};
|
|
1941
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1942
|
-
let errorCode: string = "UnknownError";
|
|
1943
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1944
|
-
switch (errorCode) {
|
|
1945
|
-
case "AccessDeniedException":
|
|
1946
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1947
|
-
response = {
|
|
1948
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1949
|
-
name: errorCode,
|
|
1950
|
-
$metadata: deserializeMetadata(output),
|
|
1951
|
-
};
|
|
1952
|
-
break;
|
|
1953
|
-
case "InternalServerException":
|
|
1954
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1955
|
-
response = {
|
|
1956
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1957
|
-
name: errorCode,
|
|
1958
|
-
$metadata: deserializeMetadata(output),
|
|
1959
|
-
};
|
|
1960
|
-
break;
|
|
1961
|
-
case "ResourceNotFoundException":
|
|
1962
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1963
|
-
response = {
|
|
1964
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1965
|
-
name: errorCode,
|
|
1966
|
-
$metadata: deserializeMetadata(output),
|
|
1967
|
-
};
|
|
1968
|
-
break;
|
|
1969
|
-
case "ThrottlingException":
|
|
1970
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1971
|
-
response = {
|
|
1972
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1973
|
-
name: errorCode,
|
|
1974
|
-
$metadata: deserializeMetadata(output),
|
|
1975
|
-
};
|
|
1976
|
-
break;
|
|
1977
|
-
case "ValidationException":
|
|
1978
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1979
|
-
response = {
|
|
1980
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1981
|
-
name: errorCode,
|
|
1982
|
-
$metadata: deserializeMetadata(output),
|
|
1983
|
-
};
|
|
1984
|
-
break;
|
|
1985
|
-
default:
|
|
1986
|
-
const parsedBody = parsedOutput.body;
|
|
1987
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1988
|
-
response = {
|
|
1989
|
-
...parsedBody,
|
|
1990
|
-
name: `${errorCode}`,
|
|
1991
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1992
|
-
$fault: "client",
|
|
1993
|
-
$metadata: deserializeMetadata(output),
|
|
1994
|
-
} as any;
|
|
1995
|
-
}
|
|
1996
|
-
const message = response.message || response.Message || errorCode;
|
|
1997
|
-
response.message = message;
|
|
1998
|
-
delete response.Message;
|
|
1999
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2000
|
-
};
|
|
2001
|
-
|
|
2002
|
-
export const deserializeAws_json1_1ListAccountAssignmentCreationStatusCommand = async (
|
|
2003
|
-
output: __HttpResponse,
|
|
2004
|
-
context: __SerdeContext
|
|
2005
|
-
): Promise<ListAccountAssignmentCreationStatusCommandOutput> => {
|
|
2006
|
-
if (output.statusCode >= 300) {
|
|
2007
|
-
return deserializeAws_json1_1ListAccountAssignmentCreationStatusCommandError(output, context);
|
|
2008
|
-
}
|
|
2009
|
-
const data: any = await parseBody(output.body, context);
|
|
2010
|
-
let contents: any = {};
|
|
2011
|
-
contents = deserializeAws_json1_1ListAccountAssignmentCreationStatusResponse(data, context);
|
|
2012
|
-
const response: ListAccountAssignmentCreationStatusCommandOutput = {
|
|
2013
|
-
$metadata: deserializeMetadata(output),
|
|
2014
|
-
...contents,
|
|
2015
|
-
};
|
|
2016
|
-
return Promise.resolve(response);
|
|
2017
|
-
};
|
|
2018
|
-
|
|
2019
|
-
const deserializeAws_json1_1ListAccountAssignmentCreationStatusCommandError = async (
|
|
2020
|
-
output: __HttpResponse,
|
|
2021
|
-
context: __SerdeContext
|
|
2022
|
-
): Promise<ListAccountAssignmentCreationStatusCommandOutput> => {
|
|
2023
|
-
const parsedOutput: any = {
|
|
2024
|
-
...output,
|
|
2025
|
-
body: await parseBody(output.body, context),
|
|
2026
|
-
};
|
|
2027
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2028
|
-
let errorCode: string = "UnknownError";
|
|
2029
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2030
|
-
switch (errorCode) {
|
|
2031
|
-
case "AccessDeniedException":
|
|
2032
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2033
|
-
response = {
|
|
2034
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2035
|
-
name: errorCode,
|
|
2036
|
-
$metadata: deserializeMetadata(output),
|
|
2037
|
-
};
|
|
2038
|
-
break;
|
|
2039
|
-
case "InternalServerException":
|
|
2040
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2041
|
-
response = {
|
|
2042
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2043
|
-
name: errorCode,
|
|
2044
|
-
$metadata: deserializeMetadata(output),
|
|
2045
|
-
};
|
|
2046
|
-
break;
|
|
2047
|
-
case "ResourceNotFoundException":
|
|
2048
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2049
|
-
response = {
|
|
2050
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2051
|
-
name: errorCode,
|
|
2052
|
-
$metadata: deserializeMetadata(output),
|
|
2053
|
-
};
|
|
2054
|
-
break;
|
|
2055
|
-
case "ThrottlingException":
|
|
2056
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2057
|
-
response = {
|
|
2058
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2059
|
-
name: errorCode,
|
|
2060
|
-
$metadata: deserializeMetadata(output),
|
|
2061
|
-
};
|
|
2062
|
-
break;
|
|
2063
|
-
case "ValidationException":
|
|
2064
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2065
|
-
response = {
|
|
2066
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2067
|
-
name: errorCode,
|
|
2068
|
-
$metadata: deserializeMetadata(output),
|
|
2069
|
-
};
|
|
2070
|
-
break;
|
|
2071
|
-
default:
|
|
2072
|
-
const parsedBody = parsedOutput.body;
|
|
2073
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2074
|
-
response = {
|
|
2075
|
-
...parsedBody,
|
|
2076
|
-
name: `${errorCode}`,
|
|
2077
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2078
|
-
$fault: "client",
|
|
2079
|
-
$metadata: deserializeMetadata(output),
|
|
2080
|
-
} as any;
|
|
2081
|
-
}
|
|
2082
|
-
const message = response.message || response.Message || errorCode;
|
|
2083
|
-
response.message = message;
|
|
2084
|
-
delete response.Message;
|
|
2085
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2086
|
-
};
|
|
2087
|
-
|
|
2088
|
-
export const deserializeAws_json1_1ListAccountAssignmentDeletionStatusCommand = async (
|
|
2089
|
-
output: __HttpResponse,
|
|
2090
|
-
context: __SerdeContext
|
|
2091
|
-
): Promise<ListAccountAssignmentDeletionStatusCommandOutput> => {
|
|
2092
|
-
if (output.statusCode >= 300) {
|
|
2093
|
-
return deserializeAws_json1_1ListAccountAssignmentDeletionStatusCommandError(output, context);
|
|
2094
|
-
}
|
|
2095
|
-
const data: any = await parseBody(output.body, context);
|
|
2096
|
-
let contents: any = {};
|
|
2097
|
-
contents = deserializeAws_json1_1ListAccountAssignmentDeletionStatusResponse(data, context);
|
|
2098
|
-
const response: ListAccountAssignmentDeletionStatusCommandOutput = {
|
|
2099
|
-
$metadata: deserializeMetadata(output),
|
|
2100
|
-
...contents,
|
|
2101
|
-
};
|
|
2102
|
-
return Promise.resolve(response);
|
|
2103
|
-
};
|
|
2104
|
-
|
|
2105
|
-
const deserializeAws_json1_1ListAccountAssignmentDeletionStatusCommandError = async (
|
|
2106
|
-
output: __HttpResponse,
|
|
2107
|
-
context: __SerdeContext
|
|
2108
|
-
): Promise<ListAccountAssignmentDeletionStatusCommandOutput> => {
|
|
2109
|
-
const parsedOutput: any = {
|
|
2110
|
-
...output,
|
|
2111
|
-
body: await parseBody(output.body, context),
|
|
2112
|
-
};
|
|
2113
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2114
|
-
let errorCode: string = "UnknownError";
|
|
2115
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2116
|
-
switch (errorCode) {
|
|
2117
|
-
case "AccessDeniedException":
|
|
2118
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2119
|
-
response = {
|
|
2120
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2121
|
-
name: errorCode,
|
|
2122
|
-
$metadata: deserializeMetadata(output),
|
|
2123
|
-
};
|
|
2124
|
-
break;
|
|
2125
|
-
case "InternalServerException":
|
|
2126
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2127
|
-
response = {
|
|
2128
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2129
|
-
name: errorCode,
|
|
2130
|
-
$metadata: deserializeMetadata(output),
|
|
2131
|
-
};
|
|
2132
|
-
break;
|
|
2133
|
-
case "ResourceNotFoundException":
|
|
2134
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2135
|
-
response = {
|
|
2136
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2137
|
-
name: errorCode,
|
|
2138
|
-
$metadata: deserializeMetadata(output),
|
|
2139
|
-
};
|
|
2140
|
-
break;
|
|
2141
|
-
case "ThrottlingException":
|
|
2142
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2143
|
-
response = {
|
|
2144
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2145
|
-
name: errorCode,
|
|
2146
|
-
$metadata: deserializeMetadata(output),
|
|
2147
|
-
};
|
|
2148
|
-
break;
|
|
2149
|
-
case "ValidationException":
|
|
2150
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2151
|
-
response = {
|
|
2152
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2153
|
-
name: errorCode,
|
|
2154
|
-
$metadata: deserializeMetadata(output),
|
|
2155
|
-
};
|
|
2156
|
-
break;
|
|
2157
|
-
default:
|
|
2158
|
-
const parsedBody = parsedOutput.body;
|
|
2159
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2160
|
-
response = {
|
|
2161
|
-
...parsedBody,
|
|
2162
|
-
name: `${errorCode}`,
|
|
2163
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2164
|
-
$fault: "client",
|
|
2165
|
-
$metadata: deserializeMetadata(output),
|
|
2166
|
-
} as any;
|
|
2167
|
-
}
|
|
2168
|
-
const message = response.message || response.Message || errorCode;
|
|
2169
|
-
response.message = message;
|
|
2170
|
-
delete response.Message;
|
|
2171
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2172
|
-
};
|
|
2173
|
-
|
|
2174
|
-
export const deserializeAws_json1_1ListAccountAssignmentsCommand = async (
|
|
2175
|
-
output: __HttpResponse,
|
|
2176
|
-
context: __SerdeContext
|
|
2177
|
-
): Promise<ListAccountAssignmentsCommandOutput> => {
|
|
2178
|
-
if (output.statusCode >= 300) {
|
|
2179
|
-
return deserializeAws_json1_1ListAccountAssignmentsCommandError(output, context);
|
|
2180
|
-
}
|
|
2181
|
-
const data: any = await parseBody(output.body, context);
|
|
2182
|
-
let contents: any = {};
|
|
2183
|
-
contents = deserializeAws_json1_1ListAccountAssignmentsResponse(data, context);
|
|
2184
|
-
const response: ListAccountAssignmentsCommandOutput = {
|
|
2185
|
-
$metadata: deserializeMetadata(output),
|
|
2186
|
-
...contents,
|
|
2187
|
-
};
|
|
2188
|
-
return Promise.resolve(response);
|
|
2189
|
-
};
|
|
2190
|
-
|
|
2191
|
-
const deserializeAws_json1_1ListAccountAssignmentsCommandError = async (
|
|
2192
|
-
output: __HttpResponse,
|
|
2193
|
-
context: __SerdeContext
|
|
2194
|
-
): Promise<ListAccountAssignmentsCommandOutput> => {
|
|
2195
|
-
const parsedOutput: any = {
|
|
2196
|
-
...output,
|
|
2197
|
-
body: await parseBody(output.body, context),
|
|
2198
|
-
};
|
|
2199
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2200
|
-
let errorCode: string = "UnknownError";
|
|
2201
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2202
|
-
switch (errorCode) {
|
|
2203
|
-
case "AccessDeniedException":
|
|
2204
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2205
|
-
response = {
|
|
2206
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2207
|
-
name: errorCode,
|
|
2208
|
-
$metadata: deserializeMetadata(output),
|
|
2209
|
-
};
|
|
2210
|
-
break;
|
|
2211
|
-
case "InternalServerException":
|
|
2212
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2213
|
-
response = {
|
|
2214
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2215
|
-
name: errorCode,
|
|
2216
|
-
$metadata: deserializeMetadata(output),
|
|
2217
|
-
};
|
|
2218
|
-
break;
|
|
2219
|
-
case "ResourceNotFoundException":
|
|
2220
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2221
|
-
response = {
|
|
2222
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2223
|
-
name: errorCode,
|
|
2224
|
-
$metadata: deserializeMetadata(output),
|
|
2225
|
-
};
|
|
2226
|
-
break;
|
|
2227
|
-
case "ThrottlingException":
|
|
2228
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2229
|
-
response = {
|
|
2230
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2231
|
-
name: errorCode,
|
|
2232
|
-
$metadata: deserializeMetadata(output),
|
|
2233
|
-
};
|
|
2234
|
-
break;
|
|
2235
|
-
case "ValidationException":
|
|
2236
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2237
|
-
response = {
|
|
2238
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2239
|
-
name: errorCode,
|
|
2240
|
-
$metadata: deserializeMetadata(output),
|
|
2241
|
-
};
|
|
2242
|
-
break;
|
|
2243
|
-
default:
|
|
2244
|
-
const parsedBody = parsedOutput.body;
|
|
2245
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2246
|
-
response = {
|
|
2247
|
-
...parsedBody,
|
|
2248
|
-
name: `${errorCode}`,
|
|
2249
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2250
|
-
$fault: "client",
|
|
2251
|
-
$metadata: deserializeMetadata(output),
|
|
2252
|
-
} as any;
|
|
2253
|
-
}
|
|
2254
|
-
const message = response.message || response.Message || errorCode;
|
|
2255
|
-
response.message = message;
|
|
2256
|
-
delete response.Message;
|
|
2257
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2258
|
-
};
|
|
2259
|
-
|
|
2260
|
-
export const deserializeAws_json1_1ListAccountsForProvisionedPermissionSetCommand = async (
|
|
2261
|
-
output: __HttpResponse,
|
|
2262
|
-
context: __SerdeContext
|
|
2263
|
-
): Promise<ListAccountsForProvisionedPermissionSetCommandOutput> => {
|
|
2264
|
-
if (output.statusCode >= 300) {
|
|
2265
|
-
return deserializeAws_json1_1ListAccountsForProvisionedPermissionSetCommandError(output, context);
|
|
2266
|
-
}
|
|
2267
|
-
const data: any = await parseBody(output.body, context);
|
|
2268
|
-
let contents: any = {};
|
|
2269
|
-
contents = deserializeAws_json1_1ListAccountsForProvisionedPermissionSetResponse(data, context);
|
|
2270
|
-
const response: ListAccountsForProvisionedPermissionSetCommandOutput = {
|
|
2271
|
-
$metadata: deserializeMetadata(output),
|
|
2272
|
-
...contents,
|
|
2273
|
-
};
|
|
2274
|
-
return Promise.resolve(response);
|
|
2275
|
-
};
|
|
2276
|
-
|
|
2277
|
-
const deserializeAws_json1_1ListAccountsForProvisionedPermissionSetCommandError = async (
|
|
2278
|
-
output: __HttpResponse,
|
|
2279
|
-
context: __SerdeContext
|
|
2280
|
-
): Promise<ListAccountsForProvisionedPermissionSetCommandOutput> => {
|
|
2281
|
-
const parsedOutput: any = {
|
|
2282
|
-
...output,
|
|
2283
|
-
body: await parseBody(output.body, context),
|
|
2284
|
-
};
|
|
2285
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2286
|
-
let errorCode: string = "UnknownError";
|
|
2287
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2288
|
-
switch (errorCode) {
|
|
2289
|
-
case "AccessDeniedException":
|
|
2290
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2291
|
-
response = {
|
|
2292
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2293
|
-
name: errorCode,
|
|
2294
|
-
$metadata: deserializeMetadata(output),
|
|
2295
|
-
};
|
|
2296
|
-
break;
|
|
2297
|
-
case "InternalServerException":
|
|
2298
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2299
|
-
response = {
|
|
2300
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2301
|
-
name: errorCode,
|
|
2302
|
-
$metadata: deserializeMetadata(output),
|
|
2303
|
-
};
|
|
2304
|
-
break;
|
|
2305
|
-
case "ResourceNotFoundException":
|
|
2306
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2307
|
-
response = {
|
|
2308
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2309
|
-
name: errorCode,
|
|
2310
|
-
$metadata: deserializeMetadata(output),
|
|
2311
|
-
};
|
|
2312
|
-
break;
|
|
2313
|
-
case "ThrottlingException":
|
|
2314
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2315
|
-
response = {
|
|
2316
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2317
|
-
name: errorCode,
|
|
2318
|
-
$metadata: deserializeMetadata(output),
|
|
2319
|
-
};
|
|
2320
|
-
break;
|
|
2321
|
-
case "ValidationException":
|
|
2322
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2323
|
-
response = {
|
|
2324
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2325
|
-
name: errorCode,
|
|
2326
|
-
$metadata: deserializeMetadata(output),
|
|
2327
|
-
};
|
|
2328
|
-
break;
|
|
2329
|
-
default:
|
|
2330
|
-
const parsedBody = parsedOutput.body;
|
|
2331
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2332
|
-
response = {
|
|
2333
|
-
...parsedBody,
|
|
2334
|
-
name: `${errorCode}`,
|
|
2335
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2336
|
-
$fault: "client",
|
|
2337
|
-
$metadata: deserializeMetadata(output),
|
|
2338
|
-
} as any;
|
|
2339
|
-
}
|
|
2340
|
-
const message = response.message || response.Message || errorCode;
|
|
2341
|
-
response.message = message;
|
|
2342
|
-
delete response.Message;
|
|
2343
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2344
|
-
};
|
|
2345
|
-
|
|
2346
|
-
export const deserializeAws_json1_1ListInstancesCommand = async (
|
|
2347
|
-
output: __HttpResponse,
|
|
2348
|
-
context: __SerdeContext
|
|
2349
|
-
): Promise<ListInstancesCommandOutput> => {
|
|
2350
|
-
if (output.statusCode >= 300) {
|
|
2351
|
-
return deserializeAws_json1_1ListInstancesCommandError(output, context);
|
|
2352
|
-
}
|
|
2353
|
-
const data: any = await parseBody(output.body, context);
|
|
2354
|
-
let contents: any = {};
|
|
2355
|
-
contents = deserializeAws_json1_1ListInstancesResponse(data, context);
|
|
2356
|
-
const response: ListInstancesCommandOutput = {
|
|
2357
|
-
$metadata: deserializeMetadata(output),
|
|
2358
|
-
...contents,
|
|
2359
|
-
};
|
|
2360
|
-
return Promise.resolve(response);
|
|
2361
|
-
};
|
|
2362
|
-
|
|
2363
|
-
const deserializeAws_json1_1ListInstancesCommandError = async (
|
|
2364
|
-
output: __HttpResponse,
|
|
2365
|
-
context: __SerdeContext
|
|
2366
|
-
): Promise<ListInstancesCommandOutput> => {
|
|
2367
|
-
const parsedOutput: any = {
|
|
2368
|
-
...output,
|
|
2369
|
-
body: await parseBody(output.body, context),
|
|
2370
|
-
};
|
|
2371
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2372
|
-
let errorCode: string = "UnknownError";
|
|
2373
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2374
|
-
switch (errorCode) {
|
|
2375
|
-
case "AccessDeniedException":
|
|
2376
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2377
|
-
response = {
|
|
2378
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2379
|
-
name: errorCode,
|
|
2380
|
-
$metadata: deserializeMetadata(output),
|
|
2381
|
-
};
|
|
2382
|
-
break;
|
|
2383
|
-
case "InternalServerException":
|
|
2384
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2385
|
-
response = {
|
|
2386
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2387
|
-
name: errorCode,
|
|
2388
|
-
$metadata: deserializeMetadata(output),
|
|
2389
|
-
};
|
|
2390
|
-
break;
|
|
2391
|
-
case "ThrottlingException":
|
|
2392
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2393
|
-
response = {
|
|
2394
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2395
|
-
name: errorCode,
|
|
2396
|
-
$metadata: deserializeMetadata(output),
|
|
2397
|
-
};
|
|
2398
|
-
break;
|
|
2399
|
-
case "ValidationException":
|
|
2400
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2401
|
-
response = {
|
|
2402
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2403
|
-
name: errorCode,
|
|
2404
|
-
$metadata: deserializeMetadata(output),
|
|
2405
|
-
};
|
|
2406
|
-
break;
|
|
2407
|
-
default:
|
|
2408
|
-
const parsedBody = parsedOutput.body;
|
|
2409
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2410
|
-
response = {
|
|
2411
|
-
...parsedBody,
|
|
2412
|
-
name: `${errorCode}`,
|
|
2413
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2414
|
-
$fault: "client",
|
|
2415
|
-
$metadata: deserializeMetadata(output),
|
|
2416
|
-
} as any;
|
|
2417
|
-
}
|
|
2418
|
-
const message = response.message || response.Message || errorCode;
|
|
2419
|
-
response.message = message;
|
|
2420
|
-
delete response.Message;
|
|
2421
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2422
|
-
};
|
|
2423
|
-
|
|
2424
|
-
export const deserializeAws_json1_1ListManagedPoliciesInPermissionSetCommand = async (
|
|
2425
|
-
output: __HttpResponse,
|
|
2426
|
-
context: __SerdeContext
|
|
2427
|
-
): Promise<ListManagedPoliciesInPermissionSetCommandOutput> => {
|
|
2428
|
-
if (output.statusCode >= 300) {
|
|
2429
|
-
return deserializeAws_json1_1ListManagedPoliciesInPermissionSetCommandError(output, context);
|
|
2430
|
-
}
|
|
2431
|
-
const data: any = await parseBody(output.body, context);
|
|
2432
|
-
let contents: any = {};
|
|
2433
|
-
contents = deserializeAws_json1_1ListManagedPoliciesInPermissionSetResponse(data, context);
|
|
2434
|
-
const response: ListManagedPoliciesInPermissionSetCommandOutput = {
|
|
2435
|
-
$metadata: deserializeMetadata(output),
|
|
2436
|
-
...contents,
|
|
2437
|
-
};
|
|
2438
|
-
return Promise.resolve(response);
|
|
2439
|
-
};
|
|
2440
|
-
|
|
2441
|
-
const deserializeAws_json1_1ListManagedPoliciesInPermissionSetCommandError = async (
|
|
2442
|
-
output: __HttpResponse,
|
|
2443
|
-
context: __SerdeContext
|
|
2444
|
-
): Promise<ListManagedPoliciesInPermissionSetCommandOutput> => {
|
|
2445
|
-
const parsedOutput: any = {
|
|
2446
|
-
...output,
|
|
2447
|
-
body: await parseBody(output.body, context),
|
|
2448
|
-
};
|
|
2449
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2450
|
-
let errorCode: string = "UnknownError";
|
|
2451
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2452
|
-
switch (errorCode) {
|
|
2453
|
-
case "AccessDeniedException":
|
|
2454
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2455
|
-
response = {
|
|
2456
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2457
|
-
name: errorCode,
|
|
2458
|
-
$metadata: deserializeMetadata(output),
|
|
2459
|
-
};
|
|
2460
|
-
break;
|
|
2461
|
-
case "InternalServerException":
|
|
2462
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2463
|
-
response = {
|
|
2464
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2465
|
-
name: errorCode,
|
|
2466
|
-
$metadata: deserializeMetadata(output),
|
|
2467
|
-
};
|
|
2468
|
-
break;
|
|
2469
|
-
case "ResourceNotFoundException":
|
|
2470
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2471
|
-
response = {
|
|
2472
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2473
|
-
name: errorCode,
|
|
2474
|
-
$metadata: deserializeMetadata(output),
|
|
2475
|
-
};
|
|
2476
|
-
break;
|
|
2477
|
-
case "ThrottlingException":
|
|
2478
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2479
|
-
response = {
|
|
2480
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2481
|
-
name: errorCode,
|
|
2482
|
-
$metadata: deserializeMetadata(output),
|
|
2483
|
-
};
|
|
2484
|
-
break;
|
|
2485
|
-
case "ValidationException":
|
|
2486
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2487
|
-
response = {
|
|
2488
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2489
|
-
name: errorCode,
|
|
2490
|
-
$metadata: deserializeMetadata(output),
|
|
2491
|
-
};
|
|
2492
|
-
break;
|
|
2493
|
-
default:
|
|
2494
|
-
const parsedBody = parsedOutput.body;
|
|
2495
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2496
|
-
response = {
|
|
2497
|
-
...parsedBody,
|
|
2498
|
-
name: `${errorCode}`,
|
|
2499
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2500
|
-
$fault: "client",
|
|
2501
|
-
$metadata: deserializeMetadata(output),
|
|
2502
|
-
} as any;
|
|
2503
|
-
}
|
|
2504
|
-
const message = response.message || response.Message || errorCode;
|
|
2505
|
-
response.message = message;
|
|
2506
|
-
delete response.Message;
|
|
2507
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2508
|
-
};
|
|
2509
|
-
|
|
2510
|
-
export const deserializeAws_json1_1ListPermissionSetProvisioningStatusCommand = async (
|
|
2511
|
-
output: __HttpResponse,
|
|
2512
|
-
context: __SerdeContext
|
|
2513
|
-
): Promise<ListPermissionSetProvisioningStatusCommandOutput> => {
|
|
2514
|
-
if (output.statusCode >= 300) {
|
|
2515
|
-
return deserializeAws_json1_1ListPermissionSetProvisioningStatusCommandError(output, context);
|
|
2516
|
-
}
|
|
2517
|
-
const data: any = await parseBody(output.body, context);
|
|
2518
|
-
let contents: any = {};
|
|
2519
|
-
contents = deserializeAws_json1_1ListPermissionSetProvisioningStatusResponse(data, context);
|
|
2520
|
-
const response: ListPermissionSetProvisioningStatusCommandOutput = {
|
|
2521
|
-
$metadata: deserializeMetadata(output),
|
|
2522
|
-
...contents,
|
|
2523
|
-
};
|
|
2524
|
-
return Promise.resolve(response);
|
|
2525
|
-
};
|
|
2526
|
-
|
|
2527
|
-
const deserializeAws_json1_1ListPermissionSetProvisioningStatusCommandError = async (
|
|
2528
|
-
output: __HttpResponse,
|
|
2529
|
-
context: __SerdeContext
|
|
2530
|
-
): Promise<ListPermissionSetProvisioningStatusCommandOutput> => {
|
|
2531
|
-
const parsedOutput: any = {
|
|
2532
|
-
...output,
|
|
2533
|
-
body: await parseBody(output.body, context),
|
|
2534
|
-
};
|
|
2535
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2536
|
-
let errorCode: string = "UnknownError";
|
|
2537
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2538
|
-
switch (errorCode) {
|
|
2539
|
-
case "AccessDeniedException":
|
|
2540
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2541
|
-
response = {
|
|
2542
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2543
|
-
name: errorCode,
|
|
2544
|
-
$metadata: deserializeMetadata(output),
|
|
2545
|
-
};
|
|
2546
|
-
break;
|
|
2547
|
-
case "InternalServerException":
|
|
2548
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2549
|
-
response = {
|
|
2550
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2551
|
-
name: errorCode,
|
|
2552
|
-
$metadata: deserializeMetadata(output),
|
|
2553
|
-
};
|
|
2554
|
-
break;
|
|
2555
|
-
case "ResourceNotFoundException":
|
|
2556
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2557
|
-
response = {
|
|
2558
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2559
|
-
name: errorCode,
|
|
2560
|
-
$metadata: deserializeMetadata(output),
|
|
2561
|
-
};
|
|
2562
|
-
break;
|
|
2563
|
-
case "ThrottlingException":
|
|
2564
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2565
|
-
response = {
|
|
2566
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2567
|
-
name: errorCode,
|
|
2568
|
-
$metadata: deserializeMetadata(output),
|
|
2569
|
-
};
|
|
2570
|
-
break;
|
|
2571
|
-
case "ValidationException":
|
|
2572
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2573
|
-
response = {
|
|
2574
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2575
|
-
name: errorCode,
|
|
2576
|
-
$metadata: deserializeMetadata(output),
|
|
2577
|
-
};
|
|
2578
|
-
break;
|
|
2579
|
-
default:
|
|
2580
|
-
const parsedBody = parsedOutput.body;
|
|
2581
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2582
|
-
response = {
|
|
2583
|
-
...parsedBody,
|
|
2584
|
-
name: `${errorCode}`,
|
|
2585
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2586
|
-
$fault: "client",
|
|
2587
|
-
$metadata: deserializeMetadata(output),
|
|
2588
|
-
} as any;
|
|
2589
|
-
}
|
|
2590
|
-
const message = response.message || response.Message || errorCode;
|
|
2591
|
-
response.message = message;
|
|
2592
|
-
delete response.Message;
|
|
2593
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2594
|
-
};
|
|
2595
|
-
|
|
2596
|
-
export const deserializeAws_json1_1ListPermissionSetsCommand = async (
|
|
2597
|
-
output: __HttpResponse,
|
|
2598
|
-
context: __SerdeContext
|
|
2599
|
-
): Promise<ListPermissionSetsCommandOutput> => {
|
|
2600
|
-
if (output.statusCode >= 300) {
|
|
2601
|
-
return deserializeAws_json1_1ListPermissionSetsCommandError(output, context);
|
|
2602
|
-
}
|
|
2603
|
-
const data: any = await parseBody(output.body, context);
|
|
2604
|
-
let contents: any = {};
|
|
2605
|
-
contents = deserializeAws_json1_1ListPermissionSetsResponse(data, context);
|
|
2606
|
-
const response: ListPermissionSetsCommandOutput = {
|
|
2607
|
-
$metadata: deserializeMetadata(output),
|
|
2608
|
-
...contents,
|
|
2609
|
-
};
|
|
2610
|
-
return Promise.resolve(response);
|
|
2611
|
-
};
|
|
2612
|
-
|
|
2613
|
-
const deserializeAws_json1_1ListPermissionSetsCommandError = async (
|
|
2614
|
-
output: __HttpResponse,
|
|
2615
|
-
context: __SerdeContext
|
|
2616
|
-
): Promise<ListPermissionSetsCommandOutput> => {
|
|
2617
|
-
const parsedOutput: any = {
|
|
2618
|
-
...output,
|
|
2619
|
-
body: await parseBody(output.body, context),
|
|
2620
|
-
};
|
|
2621
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2622
|
-
let errorCode: string = "UnknownError";
|
|
2623
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2624
|
-
switch (errorCode) {
|
|
2625
|
-
case "AccessDeniedException":
|
|
2626
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2627
|
-
response = {
|
|
2628
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2629
|
-
name: errorCode,
|
|
2630
|
-
$metadata: deserializeMetadata(output),
|
|
2631
|
-
};
|
|
2632
|
-
break;
|
|
2633
|
-
case "InternalServerException":
|
|
2634
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2635
|
-
response = {
|
|
2636
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2637
|
-
name: errorCode,
|
|
2638
|
-
$metadata: deserializeMetadata(output),
|
|
2639
|
-
};
|
|
2640
|
-
break;
|
|
2641
|
-
case "ResourceNotFoundException":
|
|
2642
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2643
|
-
response = {
|
|
2644
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2645
|
-
name: errorCode,
|
|
2646
|
-
$metadata: deserializeMetadata(output),
|
|
2647
|
-
};
|
|
2648
|
-
break;
|
|
2649
|
-
case "ThrottlingException":
|
|
2650
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2651
|
-
response = {
|
|
2652
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2653
|
-
name: errorCode,
|
|
2654
|
-
$metadata: deserializeMetadata(output),
|
|
2655
|
-
};
|
|
2656
|
-
break;
|
|
2657
|
-
case "ValidationException":
|
|
2658
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2659
|
-
response = {
|
|
2660
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2661
|
-
name: errorCode,
|
|
2662
|
-
$metadata: deserializeMetadata(output),
|
|
2663
|
-
};
|
|
2664
|
-
break;
|
|
2665
|
-
default:
|
|
2666
|
-
const parsedBody = parsedOutput.body;
|
|
2667
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2668
|
-
response = {
|
|
2669
|
-
...parsedBody,
|
|
2670
|
-
name: `${errorCode}`,
|
|
2671
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2672
|
-
$fault: "client",
|
|
2673
|
-
$metadata: deserializeMetadata(output),
|
|
2674
|
-
} as any;
|
|
2675
|
-
}
|
|
2676
|
-
const message = response.message || response.Message || errorCode;
|
|
2677
|
-
response.message = message;
|
|
2678
|
-
delete response.Message;
|
|
2679
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2680
|
-
};
|
|
2681
|
-
|
|
2682
|
-
export const deserializeAws_json1_1ListPermissionSetsProvisionedToAccountCommand = async (
|
|
2683
|
-
output: __HttpResponse,
|
|
2684
|
-
context: __SerdeContext
|
|
2685
|
-
): Promise<ListPermissionSetsProvisionedToAccountCommandOutput> => {
|
|
2686
|
-
if (output.statusCode >= 300) {
|
|
2687
|
-
return deserializeAws_json1_1ListPermissionSetsProvisionedToAccountCommandError(output, context);
|
|
2688
|
-
}
|
|
2689
|
-
const data: any = await parseBody(output.body, context);
|
|
2690
|
-
let contents: any = {};
|
|
2691
|
-
contents = deserializeAws_json1_1ListPermissionSetsProvisionedToAccountResponse(data, context);
|
|
2692
|
-
const response: ListPermissionSetsProvisionedToAccountCommandOutput = {
|
|
2693
|
-
$metadata: deserializeMetadata(output),
|
|
2694
|
-
...contents,
|
|
2695
|
-
};
|
|
2696
|
-
return Promise.resolve(response);
|
|
2697
|
-
};
|
|
2698
|
-
|
|
2699
|
-
const deserializeAws_json1_1ListPermissionSetsProvisionedToAccountCommandError = async (
|
|
2700
|
-
output: __HttpResponse,
|
|
2701
|
-
context: __SerdeContext
|
|
2702
|
-
): Promise<ListPermissionSetsProvisionedToAccountCommandOutput> => {
|
|
2703
|
-
const parsedOutput: any = {
|
|
2704
|
-
...output,
|
|
2705
|
-
body: await parseBody(output.body, context),
|
|
2706
|
-
};
|
|
2707
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2708
|
-
let errorCode: string = "UnknownError";
|
|
2709
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2710
|
-
switch (errorCode) {
|
|
2711
|
-
case "AccessDeniedException":
|
|
2712
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2713
|
-
response = {
|
|
2714
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2715
|
-
name: errorCode,
|
|
2716
|
-
$metadata: deserializeMetadata(output),
|
|
2717
|
-
};
|
|
2718
|
-
break;
|
|
2719
|
-
case "InternalServerException":
|
|
2720
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2721
|
-
response = {
|
|
2722
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2723
|
-
name: errorCode,
|
|
2724
|
-
$metadata: deserializeMetadata(output),
|
|
2725
|
-
};
|
|
2726
|
-
break;
|
|
2727
|
-
case "ResourceNotFoundException":
|
|
2728
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2729
|
-
response = {
|
|
2730
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2731
|
-
name: errorCode,
|
|
2732
|
-
$metadata: deserializeMetadata(output),
|
|
2733
|
-
};
|
|
2734
|
-
break;
|
|
2735
|
-
case "ThrottlingException":
|
|
2736
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2737
|
-
response = {
|
|
2738
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2739
|
-
name: errorCode,
|
|
2740
|
-
$metadata: deserializeMetadata(output),
|
|
2741
|
-
};
|
|
2742
|
-
break;
|
|
2743
|
-
case "ValidationException":
|
|
2744
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2745
|
-
response = {
|
|
2746
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2747
|
-
name: errorCode,
|
|
2748
|
-
$metadata: deserializeMetadata(output),
|
|
2749
|
-
};
|
|
2750
|
-
break;
|
|
2751
|
-
default:
|
|
2752
|
-
const parsedBody = parsedOutput.body;
|
|
2753
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2754
|
-
response = {
|
|
2755
|
-
...parsedBody,
|
|
2756
|
-
name: `${errorCode}`,
|
|
2757
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2758
|
-
$fault: "client",
|
|
2759
|
-
$metadata: deserializeMetadata(output),
|
|
2760
|
-
} as any;
|
|
2761
|
-
}
|
|
2762
|
-
const message = response.message || response.Message || errorCode;
|
|
2763
|
-
response.message = message;
|
|
2764
|
-
delete response.Message;
|
|
2765
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2766
|
-
};
|
|
2767
|
-
|
|
2768
|
-
export const deserializeAws_json1_1ListTagsForResourceCommand = async (
|
|
2769
|
-
output: __HttpResponse,
|
|
2770
|
-
context: __SerdeContext
|
|
2771
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
2772
|
-
if (output.statusCode >= 300) {
|
|
2773
|
-
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
2774
|
-
}
|
|
2775
|
-
const data: any = await parseBody(output.body, context);
|
|
2776
|
-
let contents: any = {};
|
|
2777
|
-
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
2778
|
-
const response: ListTagsForResourceCommandOutput = {
|
|
2779
|
-
$metadata: deserializeMetadata(output),
|
|
2780
|
-
...contents,
|
|
2781
|
-
};
|
|
2782
|
-
return Promise.resolve(response);
|
|
2783
|
-
};
|
|
2784
|
-
|
|
2785
|
-
const deserializeAws_json1_1ListTagsForResourceCommandError = async (
|
|
2786
|
-
output: __HttpResponse,
|
|
2787
|
-
context: __SerdeContext
|
|
2788
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
2789
|
-
const parsedOutput: any = {
|
|
2790
|
-
...output,
|
|
2791
|
-
body: await parseBody(output.body, context),
|
|
2792
|
-
};
|
|
2793
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2794
|
-
let errorCode: string = "UnknownError";
|
|
2795
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2796
|
-
switch (errorCode) {
|
|
2797
|
-
case "AccessDeniedException":
|
|
2798
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2799
|
-
response = {
|
|
2800
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2801
|
-
name: errorCode,
|
|
2802
|
-
$metadata: deserializeMetadata(output),
|
|
2803
|
-
};
|
|
2804
|
-
break;
|
|
2805
|
-
case "InternalServerException":
|
|
2806
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2807
|
-
response = {
|
|
2808
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2809
|
-
name: errorCode,
|
|
2810
|
-
$metadata: deserializeMetadata(output),
|
|
2811
|
-
};
|
|
2812
|
-
break;
|
|
2813
|
-
case "ResourceNotFoundException":
|
|
2814
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2815
|
-
response = {
|
|
2816
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2817
|
-
name: errorCode,
|
|
2818
|
-
$metadata: deserializeMetadata(output),
|
|
2819
|
-
};
|
|
2820
|
-
break;
|
|
2821
|
-
case "ThrottlingException":
|
|
2822
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2823
|
-
response = {
|
|
2824
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2825
|
-
name: errorCode,
|
|
2826
|
-
$metadata: deserializeMetadata(output),
|
|
2827
|
-
};
|
|
2828
|
-
break;
|
|
2829
|
-
case "ValidationException":
|
|
2830
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2831
|
-
response = {
|
|
2832
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2833
|
-
name: errorCode,
|
|
2834
|
-
$metadata: deserializeMetadata(output),
|
|
2835
|
-
};
|
|
2836
|
-
break;
|
|
2837
|
-
default:
|
|
2838
|
-
const parsedBody = parsedOutput.body;
|
|
2839
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2840
|
-
response = {
|
|
2841
|
-
...parsedBody,
|
|
2842
|
-
name: `${errorCode}`,
|
|
2843
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2844
|
-
$fault: "client",
|
|
2845
|
-
$metadata: deserializeMetadata(output),
|
|
2846
|
-
} as any;
|
|
2847
|
-
}
|
|
2848
|
-
const message = response.message || response.Message || errorCode;
|
|
2849
|
-
response.message = message;
|
|
2850
|
-
delete response.Message;
|
|
2851
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2852
|
-
};
|
|
2853
|
-
|
|
2854
|
-
export const deserializeAws_json1_1ProvisionPermissionSetCommand = async (
|
|
2855
|
-
output: __HttpResponse,
|
|
2856
|
-
context: __SerdeContext
|
|
2857
|
-
): Promise<ProvisionPermissionSetCommandOutput> => {
|
|
2858
|
-
if (output.statusCode >= 300) {
|
|
2859
|
-
return deserializeAws_json1_1ProvisionPermissionSetCommandError(output, context);
|
|
2860
|
-
}
|
|
2861
|
-
const data: any = await parseBody(output.body, context);
|
|
2862
|
-
let contents: any = {};
|
|
2863
|
-
contents = deserializeAws_json1_1ProvisionPermissionSetResponse(data, context);
|
|
2864
|
-
const response: ProvisionPermissionSetCommandOutput = {
|
|
2865
|
-
$metadata: deserializeMetadata(output),
|
|
2866
|
-
...contents,
|
|
2867
|
-
};
|
|
2868
|
-
return Promise.resolve(response);
|
|
2869
|
-
};
|
|
2870
|
-
|
|
2871
|
-
const deserializeAws_json1_1ProvisionPermissionSetCommandError = async (
|
|
2872
|
-
output: __HttpResponse,
|
|
2873
|
-
context: __SerdeContext
|
|
2874
|
-
): Promise<ProvisionPermissionSetCommandOutput> => {
|
|
2875
|
-
const parsedOutput: any = {
|
|
2876
|
-
...output,
|
|
2877
|
-
body: await parseBody(output.body, context),
|
|
2878
|
-
};
|
|
2879
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2880
|
-
let errorCode: string = "UnknownError";
|
|
2881
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2882
|
-
switch (errorCode) {
|
|
2883
|
-
case "AccessDeniedException":
|
|
2884
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2885
|
-
response = {
|
|
2886
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2887
|
-
name: errorCode,
|
|
2888
|
-
$metadata: deserializeMetadata(output),
|
|
2889
|
-
};
|
|
2890
|
-
break;
|
|
2891
|
-
case "ConflictException":
|
|
2892
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
2893
|
-
response = {
|
|
2894
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2895
|
-
name: errorCode,
|
|
2896
|
-
$metadata: deserializeMetadata(output),
|
|
2897
|
-
};
|
|
2898
|
-
break;
|
|
2899
|
-
case "InternalServerException":
|
|
2900
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2901
|
-
response = {
|
|
2902
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2903
|
-
name: errorCode,
|
|
2904
|
-
$metadata: deserializeMetadata(output),
|
|
2905
|
-
};
|
|
2906
|
-
break;
|
|
2907
|
-
case "ResourceNotFoundException":
|
|
2908
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2909
|
-
response = {
|
|
2910
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2911
|
-
name: errorCode,
|
|
2912
|
-
$metadata: deserializeMetadata(output),
|
|
2913
|
-
};
|
|
2914
|
-
break;
|
|
2915
|
-
case "ThrottlingException":
|
|
2916
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2917
|
-
response = {
|
|
2918
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2919
|
-
name: errorCode,
|
|
2920
|
-
$metadata: deserializeMetadata(output),
|
|
2921
|
-
};
|
|
2922
|
-
break;
|
|
2923
|
-
case "ValidationException":
|
|
2924
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2925
|
-
response = {
|
|
2926
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2927
|
-
name: errorCode,
|
|
2928
|
-
$metadata: deserializeMetadata(output),
|
|
2929
|
-
};
|
|
2930
|
-
break;
|
|
2931
|
-
default:
|
|
2932
|
-
const parsedBody = parsedOutput.body;
|
|
2933
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2934
|
-
response = {
|
|
2935
|
-
...parsedBody,
|
|
2936
|
-
name: `${errorCode}`,
|
|
2937
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2938
|
-
$fault: "client",
|
|
2939
|
-
$metadata: deserializeMetadata(output),
|
|
2940
|
-
} as any;
|
|
2941
|
-
}
|
|
2942
|
-
const message = response.message || response.Message || errorCode;
|
|
2943
|
-
response.message = message;
|
|
2944
|
-
delete response.Message;
|
|
2945
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2946
|
-
};
|
|
2947
|
-
|
|
2948
|
-
export const deserializeAws_json1_1PutInlinePolicyToPermissionSetCommand = async (
|
|
2949
|
-
output: __HttpResponse,
|
|
2950
|
-
context: __SerdeContext
|
|
2951
|
-
): Promise<PutInlinePolicyToPermissionSetCommandOutput> => {
|
|
2952
|
-
if (output.statusCode >= 300) {
|
|
2953
|
-
return deserializeAws_json1_1PutInlinePolicyToPermissionSetCommandError(output, context);
|
|
2954
|
-
}
|
|
2955
|
-
const data: any = await parseBody(output.body, context);
|
|
2956
|
-
let contents: any = {};
|
|
2957
|
-
contents = deserializeAws_json1_1PutInlinePolicyToPermissionSetResponse(data, context);
|
|
2958
|
-
const response: PutInlinePolicyToPermissionSetCommandOutput = {
|
|
2959
|
-
$metadata: deserializeMetadata(output),
|
|
2960
|
-
...contents,
|
|
2961
|
-
};
|
|
2962
|
-
return Promise.resolve(response);
|
|
2963
|
-
};
|
|
2964
|
-
|
|
2965
|
-
const deserializeAws_json1_1PutInlinePolicyToPermissionSetCommandError = async (
|
|
2966
|
-
output: __HttpResponse,
|
|
2967
|
-
context: __SerdeContext
|
|
2968
|
-
): Promise<PutInlinePolicyToPermissionSetCommandOutput> => {
|
|
2969
|
-
const parsedOutput: any = {
|
|
2970
|
-
...output,
|
|
2971
|
-
body: await parseBody(output.body, context),
|
|
2972
|
-
};
|
|
2973
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2974
|
-
let errorCode: string = "UnknownError";
|
|
2975
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2976
|
-
switch (errorCode) {
|
|
2977
|
-
case "AccessDeniedException":
|
|
2978
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2979
|
-
response = {
|
|
2980
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2981
|
-
name: errorCode,
|
|
2982
|
-
$metadata: deserializeMetadata(output),
|
|
2983
|
-
};
|
|
2984
|
-
break;
|
|
2985
|
-
case "ConflictException":
|
|
2986
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
2987
|
-
response = {
|
|
2988
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2989
|
-
name: errorCode,
|
|
2990
|
-
$metadata: deserializeMetadata(output),
|
|
2991
|
-
};
|
|
2992
|
-
break;
|
|
2993
|
-
case "InternalServerException":
|
|
2994
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2995
|
-
response = {
|
|
2996
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2997
|
-
name: errorCode,
|
|
2998
|
-
$metadata: deserializeMetadata(output),
|
|
2999
|
-
};
|
|
3000
|
-
break;
|
|
3001
|
-
case "ResourceNotFoundException":
|
|
3002
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3003
|
-
response = {
|
|
3004
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3005
|
-
name: errorCode,
|
|
3006
|
-
$metadata: deserializeMetadata(output),
|
|
3007
|
-
};
|
|
3008
|
-
break;
|
|
3009
|
-
case "ServiceQuotaExceededException":
|
|
3010
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
3011
|
-
response = {
|
|
3012
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
3013
|
-
name: errorCode,
|
|
3014
|
-
$metadata: deserializeMetadata(output),
|
|
3015
|
-
};
|
|
3016
|
-
break;
|
|
3017
|
-
case "ThrottlingException":
|
|
3018
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3019
|
-
response = {
|
|
3020
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3021
|
-
name: errorCode,
|
|
3022
|
-
$metadata: deserializeMetadata(output),
|
|
3023
|
-
};
|
|
3024
|
-
break;
|
|
3025
|
-
case "ValidationException":
|
|
3026
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3027
|
-
response = {
|
|
3028
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
3029
|
-
name: errorCode,
|
|
3030
|
-
$metadata: deserializeMetadata(output),
|
|
3031
|
-
};
|
|
3032
|
-
break;
|
|
3033
|
-
default:
|
|
3034
|
-
const parsedBody = parsedOutput.body;
|
|
3035
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3036
|
-
response = {
|
|
3037
|
-
...parsedBody,
|
|
3038
|
-
name: `${errorCode}`,
|
|
3039
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3040
|
-
$fault: "client",
|
|
3041
|
-
$metadata: deserializeMetadata(output),
|
|
3042
|
-
} as any;
|
|
3043
|
-
}
|
|
3044
|
-
const message = response.message || response.Message || errorCode;
|
|
3045
|
-
response.message = message;
|
|
3046
|
-
delete response.Message;
|
|
3047
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3048
|
-
};
|
|
3049
|
-
|
|
3050
|
-
export const deserializeAws_json1_1TagResourceCommand = async (
|
|
3051
|
-
output: __HttpResponse,
|
|
3052
|
-
context: __SerdeContext
|
|
3053
|
-
): Promise<TagResourceCommandOutput> => {
|
|
3054
|
-
if (output.statusCode >= 300) {
|
|
3055
|
-
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
3056
|
-
}
|
|
3057
|
-
const data: any = await parseBody(output.body, context);
|
|
3058
|
-
let contents: any = {};
|
|
3059
|
-
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
3060
|
-
const response: TagResourceCommandOutput = {
|
|
3061
|
-
$metadata: deserializeMetadata(output),
|
|
3062
|
-
...contents,
|
|
3063
|
-
};
|
|
3064
|
-
return Promise.resolve(response);
|
|
3065
|
-
};
|
|
3066
|
-
|
|
3067
|
-
const deserializeAws_json1_1TagResourceCommandError = async (
|
|
3068
|
-
output: __HttpResponse,
|
|
3069
|
-
context: __SerdeContext
|
|
3070
|
-
): Promise<TagResourceCommandOutput> => {
|
|
3071
|
-
const parsedOutput: any = {
|
|
3072
|
-
...output,
|
|
3073
|
-
body: await parseBody(output.body, context),
|
|
3074
|
-
};
|
|
3075
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
3076
|
-
let errorCode: string = "UnknownError";
|
|
3077
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3078
|
-
switch (errorCode) {
|
|
3079
|
-
case "AccessDeniedException":
|
|
3080
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3081
|
-
response = {
|
|
3082
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3083
|
-
name: errorCode,
|
|
3084
|
-
$metadata: deserializeMetadata(output),
|
|
3085
|
-
};
|
|
3086
|
-
break;
|
|
3087
|
-
case "ConflictException":
|
|
3088
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3089
|
-
response = {
|
|
3090
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
3091
|
-
name: errorCode,
|
|
3092
|
-
$metadata: deserializeMetadata(output),
|
|
3093
|
-
};
|
|
3094
|
-
break;
|
|
3095
|
-
case "InternalServerException":
|
|
3096
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3097
|
-
response = {
|
|
3098
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3099
|
-
name: errorCode,
|
|
3100
|
-
$metadata: deserializeMetadata(output),
|
|
3101
|
-
};
|
|
3102
|
-
break;
|
|
3103
|
-
case "ResourceNotFoundException":
|
|
3104
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3105
|
-
response = {
|
|
3106
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3107
|
-
name: errorCode,
|
|
3108
|
-
$metadata: deserializeMetadata(output),
|
|
3109
|
-
};
|
|
3110
|
-
break;
|
|
3111
|
-
case "ServiceQuotaExceededException":
|
|
3112
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
3113
|
-
response = {
|
|
3114
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
3115
|
-
name: errorCode,
|
|
3116
|
-
$metadata: deserializeMetadata(output),
|
|
3117
|
-
};
|
|
3118
|
-
break;
|
|
3119
|
-
case "ThrottlingException":
|
|
3120
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3121
|
-
response = {
|
|
3122
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3123
|
-
name: errorCode,
|
|
3124
|
-
$metadata: deserializeMetadata(output),
|
|
3125
|
-
};
|
|
3126
|
-
break;
|
|
3127
|
-
case "ValidationException":
|
|
3128
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3129
|
-
response = {
|
|
3130
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
3131
|
-
name: errorCode,
|
|
3132
|
-
$metadata: deserializeMetadata(output),
|
|
3133
|
-
};
|
|
3134
|
-
break;
|
|
3135
|
-
default:
|
|
3136
|
-
const parsedBody = parsedOutput.body;
|
|
3137
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3138
|
-
response = {
|
|
3139
|
-
...parsedBody,
|
|
3140
|
-
name: `${errorCode}`,
|
|
3141
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3142
|
-
$fault: "client",
|
|
3143
|
-
$metadata: deserializeMetadata(output),
|
|
3144
|
-
} as any;
|
|
3145
|
-
}
|
|
3146
|
-
const message = response.message || response.Message || errorCode;
|
|
3147
|
-
response.message = message;
|
|
3148
|
-
delete response.Message;
|
|
3149
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3150
|
-
};
|
|
3151
|
-
|
|
3152
|
-
export const deserializeAws_json1_1UntagResourceCommand = async (
|
|
3153
|
-
output: __HttpResponse,
|
|
3154
|
-
context: __SerdeContext
|
|
3155
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
3156
|
-
if (output.statusCode >= 300) {
|
|
3157
|
-
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
3158
|
-
}
|
|
3159
|
-
const data: any = await parseBody(output.body, context);
|
|
3160
|
-
let contents: any = {};
|
|
3161
|
-
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
3162
|
-
const response: UntagResourceCommandOutput = {
|
|
3163
|
-
$metadata: deserializeMetadata(output),
|
|
3164
|
-
...contents,
|
|
3165
|
-
};
|
|
3166
|
-
return Promise.resolve(response);
|
|
3167
|
-
};
|
|
3168
|
-
|
|
3169
|
-
const deserializeAws_json1_1UntagResourceCommandError = async (
|
|
3170
|
-
output: __HttpResponse,
|
|
3171
|
-
context: __SerdeContext
|
|
3172
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
3173
|
-
const parsedOutput: any = {
|
|
3174
|
-
...output,
|
|
3175
|
-
body: await parseBody(output.body, context),
|
|
3176
|
-
};
|
|
3177
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
3178
|
-
let errorCode: string = "UnknownError";
|
|
3179
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3180
|
-
switch (errorCode) {
|
|
3181
|
-
case "AccessDeniedException":
|
|
3182
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3183
|
-
response = {
|
|
3184
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3185
|
-
name: errorCode,
|
|
3186
|
-
$metadata: deserializeMetadata(output),
|
|
3187
|
-
};
|
|
3188
|
-
break;
|
|
3189
|
-
case "ConflictException":
|
|
3190
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3191
|
-
response = {
|
|
3192
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
3193
|
-
name: errorCode,
|
|
3194
|
-
$metadata: deserializeMetadata(output),
|
|
3195
|
-
};
|
|
3196
|
-
break;
|
|
3197
|
-
case "InternalServerException":
|
|
3198
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3199
|
-
response = {
|
|
3200
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3201
|
-
name: errorCode,
|
|
3202
|
-
$metadata: deserializeMetadata(output),
|
|
3203
|
-
};
|
|
3204
|
-
break;
|
|
3205
|
-
case "ResourceNotFoundException":
|
|
3206
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3207
|
-
response = {
|
|
3208
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3209
|
-
name: errorCode,
|
|
3210
|
-
$metadata: deserializeMetadata(output),
|
|
3211
|
-
};
|
|
3212
|
-
break;
|
|
3213
|
-
case "ThrottlingException":
|
|
3214
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3215
|
-
response = {
|
|
3216
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3217
|
-
name: errorCode,
|
|
3218
|
-
$metadata: deserializeMetadata(output),
|
|
3219
|
-
};
|
|
3220
|
-
break;
|
|
3221
|
-
case "ValidationException":
|
|
3222
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3223
|
-
response = {
|
|
3224
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
3225
|
-
name: errorCode,
|
|
3226
|
-
$metadata: deserializeMetadata(output),
|
|
3227
|
-
};
|
|
3228
|
-
break;
|
|
3229
|
-
default:
|
|
3230
|
-
const parsedBody = parsedOutput.body;
|
|
3231
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3232
|
-
response = {
|
|
3233
|
-
...parsedBody,
|
|
3234
|
-
name: `${errorCode}`,
|
|
3235
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3236
|
-
$fault: "client",
|
|
3237
|
-
$metadata: deserializeMetadata(output),
|
|
3238
|
-
} as any;
|
|
3239
|
-
}
|
|
3240
|
-
const message = response.message || response.Message || errorCode;
|
|
3241
|
-
response.message = message;
|
|
3242
|
-
delete response.Message;
|
|
3243
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3244
|
-
};
|
|
3245
|
-
|
|
3246
|
-
export const deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationCommand = async (
|
|
3247
|
-
output: __HttpResponse,
|
|
3248
|
-
context: __SerdeContext
|
|
3249
|
-
): Promise<UpdateInstanceAccessControlAttributeConfigurationCommandOutput> => {
|
|
3250
|
-
if (output.statusCode >= 300) {
|
|
3251
|
-
return deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationCommandError(output, context);
|
|
3252
|
-
}
|
|
3253
|
-
const data: any = await parseBody(output.body, context);
|
|
3254
|
-
let contents: any = {};
|
|
3255
|
-
contents = deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationResponse(data, context);
|
|
3256
|
-
const response: UpdateInstanceAccessControlAttributeConfigurationCommandOutput = {
|
|
3257
|
-
$metadata: deserializeMetadata(output),
|
|
3258
|
-
...contents,
|
|
3259
|
-
};
|
|
3260
|
-
return Promise.resolve(response);
|
|
3261
|
-
};
|
|
3262
|
-
|
|
3263
|
-
const deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationCommandError = async (
|
|
3264
|
-
output: __HttpResponse,
|
|
3265
|
-
context: __SerdeContext
|
|
3266
|
-
): Promise<UpdateInstanceAccessControlAttributeConfigurationCommandOutput> => {
|
|
3267
|
-
const parsedOutput: any = {
|
|
3268
|
-
...output,
|
|
3269
|
-
body: await parseBody(output.body, context),
|
|
3270
|
-
};
|
|
3271
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
3272
|
-
let errorCode: string = "UnknownError";
|
|
3273
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3274
|
-
switch (errorCode) {
|
|
3275
|
-
case "AccessDeniedException":
|
|
3276
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3277
|
-
response = {
|
|
3278
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3279
|
-
name: errorCode,
|
|
3280
|
-
$metadata: deserializeMetadata(output),
|
|
3281
|
-
};
|
|
3282
|
-
break;
|
|
3283
|
-
case "ConflictException":
|
|
3284
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3285
|
-
response = {
|
|
3286
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
3287
|
-
name: errorCode,
|
|
3288
|
-
$metadata: deserializeMetadata(output),
|
|
3289
|
-
};
|
|
3290
|
-
break;
|
|
3291
|
-
case "InternalServerException":
|
|
3292
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3293
|
-
response = {
|
|
3294
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3295
|
-
name: errorCode,
|
|
3296
|
-
$metadata: deserializeMetadata(output),
|
|
3297
|
-
};
|
|
3298
|
-
break;
|
|
3299
|
-
case "ResourceNotFoundException":
|
|
3300
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3301
|
-
response = {
|
|
3302
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3303
|
-
name: errorCode,
|
|
3304
|
-
$metadata: deserializeMetadata(output),
|
|
3305
|
-
};
|
|
3306
|
-
break;
|
|
3307
|
-
case "ThrottlingException":
|
|
3308
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3309
|
-
response = {
|
|
3310
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3311
|
-
name: errorCode,
|
|
3312
|
-
$metadata: deserializeMetadata(output),
|
|
3313
|
-
};
|
|
3314
|
-
break;
|
|
3315
|
-
case "ValidationException":
|
|
3316
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3317
|
-
response = {
|
|
3318
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
3319
|
-
name: errorCode,
|
|
3320
|
-
$metadata: deserializeMetadata(output),
|
|
3321
|
-
};
|
|
3322
|
-
break;
|
|
3323
|
-
default:
|
|
3324
|
-
const parsedBody = parsedOutput.body;
|
|
3325
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3326
|
-
response = {
|
|
3327
|
-
...parsedBody,
|
|
3328
|
-
name: `${errorCode}`,
|
|
3329
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3330
|
-
$fault: "client",
|
|
3331
|
-
$metadata: deserializeMetadata(output),
|
|
3332
|
-
} as any;
|
|
3333
|
-
}
|
|
3334
|
-
const message = response.message || response.Message || errorCode;
|
|
3335
|
-
response.message = message;
|
|
3336
|
-
delete response.Message;
|
|
3337
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3338
|
-
};
|
|
3339
|
-
|
|
3340
|
-
export const deserializeAws_json1_1UpdatePermissionSetCommand = async (
|
|
3341
|
-
output: __HttpResponse,
|
|
3342
|
-
context: __SerdeContext
|
|
3343
|
-
): Promise<UpdatePermissionSetCommandOutput> => {
|
|
3344
|
-
if (output.statusCode >= 300) {
|
|
3345
|
-
return deserializeAws_json1_1UpdatePermissionSetCommandError(output, context);
|
|
3346
|
-
}
|
|
3347
|
-
const data: any = await parseBody(output.body, context);
|
|
3348
|
-
let contents: any = {};
|
|
3349
|
-
contents = deserializeAws_json1_1UpdatePermissionSetResponse(data, context);
|
|
3350
|
-
const response: UpdatePermissionSetCommandOutput = {
|
|
3351
|
-
$metadata: deserializeMetadata(output),
|
|
3352
|
-
...contents,
|
|
3353
|
-
};
|
|
3354
|
-
return Promise.resolve(response);
|
|
3355
|
-
};
|
|
3356
|
-
|
|
3357
|
-
const deserializeAws_json1_1UpdatePermissionSetCommandError = async (
|
|
3358
|
-
output: __HttpResponse,
|
|
3359
|
-
context: __SerdeContext
|
|
3360
|
-
): Promise<UpdatePermissionSetCommandOutput> => {
|
|
3361
|
-
const parsedOutput: any = {
|
|
3362
|
-
...output,
|
|
3363
|
-
body: await parseBody(output.body, context),
|
|
3364
|
-
};
|
|
3365
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
3366
|
-
let errorCode: string = "UnknownError";
|
|
3367
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3368
|
-
switch (errorCode) {
|
|
3369
|
-
case "AccessDeniedException":
|
|
3370
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3371
|
-
response = {
|
|
3372
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3373
|
-
name: errorCode,
|
|
3374
|
-
$metadata: deserializeMetadata(output),
|
|
3375
|
-
};
|
|
3376
|
-
break;
|
|
3377
|
-
case "ConflictException":
|
|
3378
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3379
|
-
response = {
|
|
3380
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
3381
|
-
name: errorCode,
|
|
3382
|
-
$metadata: deserializeMetadata(output),
|
|
3383
|
-
};
|
|
3384
|
-
break;
|
|
3385
|
-
case "InternalServerException":
|
|
3386
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3387
|
-
response = {
|
|
3388
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3389
|
-
name: errorCode,
|
|
3390
|
-
$metadata: deserializeMetadata(output),
|
|
3391
|
-
};
|
|
3392
|
-
break;
|
|
3393
|
-
case "ResourceNotFoundException":
|
|
3394
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3395
|
-
response = {
|
|
3396
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3397
|
-
name: errorCode,
|
|
3398
|
-
$metadata: deserializeMetadata(output),
|
|
3399
|
-
};
|
|
3400
|
-
break;
|
|
3401
|
-
case "ThrottlingException":
|
|
3402
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3403
|
-
response = {
|
|
3404
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3405
|
-
name: errorCode,
|
|
3406
|
-
$metadata: deserializeMetadata(output),
|
|
3407
|
-
};
|
|
3408
|
-
break;
|
|
3409
|
-
case "ValidationException":
|
|
3410
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3411
|
-
response = {
|
|
3412
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
3413
|
-
name: errorCode,
|
|
3414
|
-
$metadata: deserializeMetadata(output),
|
|
3415
|
-
};
|
|
3416
|
-
break;
|
|
3417
|
-
default:
|
|
3418
|
-
const parsedBody = parsedOutput.body;
|
|
3419
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3420
|
-
response = {
|
|
3421
|
-
...parsedBody,
|
|
3422
|
-
name: `${errorCode}`,
|
|
3423
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3424
|
-
$fault: "client",
|
|
3425
|
-
$metadata: deserializeMetadata(output),
|
|
3426
|
-
} as any;
|
|
3427
|
-
}
|
|
3428
|
-
const message = response.message || response.Message || errorCode;
|
|
3429
|
-
response.message = message;
|
|
3430
|
-
delete response.Message;
|
|
3431
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3432
|
-
};
|
|
3433
|
-
|
|
3434
|
-
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (
|
|
3435
|
-
parsedOutput: any,
|
|
3436
|
-
context: __SerdeContext
|
|
3437
|
-
): Promise<AccessDeniedException> => {
|
|
3438
|
-
const body = parsedOutput.body;
|
|
3439
|
-
const deserialized: any = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
3440
|
-
const contents: AccessDeniedException = {
|
|
3441
|
-
name: "AccessDeniedException",
|
|
3442
|
-
$fault: "client",
|
|
3443
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3444
|
-
...deserialized,
|
|
3445
|
-
};
|
|
3446
|
-
return contents;
|
|
3447
|
-
};
|
|
3448
|
-
|
|
3449
|
-
const deserializeAws_json1_1ConflictExceptionResponse = async (
|
|
3450
|
-
parsedOutput: any,
|
|
3451
|
-
context: __SerdeContext
|
|
3452
|
-
): Promise<ConflictException> => {
|
|
3453
|
-
const body = parsedOutput.body;
|
|
3454
|
-
const deserialized: any = deserializeAws_json1_1ConflictException(body, context);
|
|
3455
|
-
const contents: ConflictException = {
|
|
3456
|
-
name: "ConflictException",
|
|
3457
|
-
$fault: "client",
|
|
3458
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3459
|
-
...deserialized,
|
|
3460
|
-
};
|
|
3461
|
-
return contents;
|
|
3462
|
-
};
|
|
3463
|
-
|
|
3464
|
-
const deserializeAws_json1_1InternalServerExceptionResponse = async (
|
|
3465
|
-
parsedOutput: any,
|
|
3466
|
-
context: __SerdeContext
|
|
3467
|
-
): Promise<InternalServerException> => {
|
|
3468
|
-
const body = parsedOutput.body;
|
|
3469
|
-
const deserialized: any = deserializeAws_json1_1InternalServerException(body, context);
|
|
3470
|
-
const contents: InternalServerException = {
|
|
3471
|
-
name: "InternalServerException",
|
|
3472
|
-
$fault: "server",
|
|
3473
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3474
|
-
...deserialized,
|
|
3475
|
-
};
|
|
3476
|
-
return contents;
|
|
3477
|
-
};
|
|
3478
|
-
|
|
3479
|
-
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (
|
|
3480
|
-
parsedOutput: any,
|
|
3481
|
-
context: __SerdeContext
|
|
3482
|
-
): Promise<ResourceNotFoundException> => {
|
|
3483
|
-
const body = parsedOutput.body;
|
|
3484
|
-
const deserialized: any = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
3485
|
-
const contents: ResourceNotFoundException = {
|
|
3486
|
-
name: "ResourceNotFoundException",
|
|
3487
|
-
$fault: "client",
|
|
3488
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3489
|
-
...deserialized,
|
|
3490
|
-
};
|
|
3491
|
-
return contents;
|
|
3492
|
-
};
|
|
3493
|
-
|
|
3494
|
-
const deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = async (
|
|
3495
|
-
parsedOutput: any,
|
|
3496
|
-
context: __SerdeContext
|
|
3497
|
-
): Promise<ServiceQuotaExceededException> => {
|
|
3498
|
-
const body = parsedOutput.body;
|
|
3499
|
-
const deserialized: any = deserializeAws_json1_1ServiceQuotaExceededException(body, context);
|
|
3500
|
-
const contents: ServiceQuotaExceededException = {
|
|
3501
|
-
name: "ServiceQuotaExceededException",
|
|
3502
|
-
$fault: "client",
|
|
3503
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3504
|
-
...deserialized,
|
|
3505
|
-
};
|
|
3506
|
-
return contents;
|
|
3507
|
-
};
|
|
3508
|
-
|
|
3509
|
-
const deserializeAws_json1_1ThrottlingExceptionResponse = async (
|
|
3510
|
-
parsedOutput: any,
|
|
3511
|
-
context: __SerdeContext
|
|
3512
|
-
): Promise<ThrottlingException> => {
|
|
3513
|
-
const body = parsedOutput.body;
|
|
3514
|
-
const deserialized: any = deserializeAws_json1_1ThrottlingException(body, context);
|
|
3515
|
-
const contents: ThrottlingException = {
|
|
3516
|
-
name: "ThrottlingException",
|
|
3517
|
-
$fault: "client",
|
|
3518
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3519
|
-
...deserialized,
|
|
3520
|
-
};
|
|
3521
|
-
return contents;
|
|
3522
|
-
};
|
|
3523
|
-
|
|
3524
|
-
const deserializeAws_json1_1ValidationExceptionResponse = async (
|
|
3525
|
-
parsedOutput: any,
|
|
3526
|
-
context: __SerdeContext
|
|
3527
|
-
): Promise<ValidationException> => {
|
|
3528
|
-
const body = parsedOutput.body;
|
|
3529
|
-
const deserialized: any = deserializeAws_json1_1ValidationException(body, context);
|
|
3530
|
-
const contents: ValidationException = {
|
|
3531
|
-
name: "ValidationException",
|
|
3532
|
-
$fault: "client",
|
|
3533
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3534
|
-
...deserialized,
|
|
3535
|
-
};
|
|
3536
|
-
return contents;
|
|
3537
|
-
};
|
|
3538
|
-
|
|
3539
|
-
const serializeAws_json1_1AccessControlAttribute = (input: AccessControlAttribute, context: __SerdeContext): any => {
|
|
3540
|
-
return {
|
|
3541
|
-
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
3542
|
-
...(input.Value !== undefined &&
|
|
3543
|
-
input.Value !== null && { Value: serializeAws_json1_1AccessControlAttributeValue(input.Value, context) }),
|
|
3544
|
-
};
|
|
3545
|
-
};
|
|
3546
|
-
|
|
3547
|
-
const serializeAws_json1_1AccessControlAttributeList = (
|
|
3548
|
-
input: AccessControlAttribute[],
|
|
3549
|
-
context: __SerdeContext
|
|
3550
|
-
): any => {
|
|
3551
|
-
return input
|
|
3552
|
-
.filter((e: any) => e != null)
|
|
3553
|
-
.map((entry) => {
|
|
3554
|
-
if (entry === null) {
|
|
3555
|
-
return null as any;
|
|
3556
|
-
}
|
|
3557
|
-
return serializeAws_json1_1AccessControlAttribute(entry, context);
|
|
3558
|
-
});
|
|
3559
|
-
};
|
|
3560
|
-
|
|
3561
|
-
const serializeAws_json1_1AccessControlAttributeValue = (
|
|
3562
|
-
input: AccessControlAttributeValue,
|
|
3563
|
-
context: __SerdeContext
|
|
3564
|
-
): any => {
|
|
3565
|
-
return {
|
|
3566
|
-
...(input.Source !== undefined &&
|
|
3567
|
-
input.Source !== null && {
|
|
3568
|
-
Source: serializeAws_json1_1AccessControlAttributeValueSourceList(input.Source, context),
|
|
3569
|
-
}),
|
|
3570
|
-
};
|
|
3571
|
-
};
|
|
3572
|
-
|
|
3573
|
-
const serializeAws_json1_1AccessControlAttributeValueSourceList = (input: string[], context: __SerdeContext): any => {
|
|
3574
|
-
return input
|
|
3575
|
-
.filter((e: any) => e != null)
|
|
3576
|
-
.map((entry) => {
|
|
3577
|
-
if (entry === null) {
|
|
3578
|
-
return null as any;
|
|
3579
|
-
}
|
|
3580
|
-
return entry;
|
|
3581
|
-
});
|
|
3582
|
-
};
|
|
3583
|
-
|
|
3584
|
-
const serializeAws_json1_1AttachManagedPolicyToPermissionSetRequest = (
|
|
3585
|
-
input: AttachManagedPolicyToPermissionSetRequest,
|
|
3586
|
-
context: __SerdeContext
|
|
3587
|
-
): any => {
|
|
3588
|
-
return {
|
|
3589
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3590
|
-
...(input.ManagedPolicyArn !== undefined &&
|
|
3591
|
-
input.ManagedPolicyArn !== null && { ManagedPolicyArn: input.ManagedPolicyArn }),
|
|
3592
|
-
...(input.PermissionSetArn !== undefined &&
|
|
3593
|
-
input.PermissionSetArn !== null && { PermissionSetArn: input.PermissionSetArn }),
|
|
3594
|
-
};
|
|
3595
|
-
};
|
|
3596
|
-
|
|
3597
|
-
const serializeAws_json1_1CreateAccountAssignmentRequest = (
|
|
3598
|
-
input: CreateAccountAssignmentRequest,
|
|
3599
|
-
context: __SerdeContext
|
|
3600
|
-
): any => {
|
|
3601
|
-
return {
|
|
3602
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3603
|
-
...(input.PermissionSetArn !== undefined &&
|
|
3604
|
-
input.PermissionSetArn !== null && { PermissionSetArn: input.PermissionSetArn }),
|
|
3605
|
-
...(input.PrincipalId !== undefined && input.PrincipalId !== null && { PrincipalId: input.PrincipalId }),
|
|
3606
|
-
...(input.PrincipalType !== undefined && input.PrincipalType !== null && { PrincipalType: input.PrincipalType }),
|
|
3607
|
-
...(input.TargetId !== undefined && input.TargetId !== null && { TargetId: input.TargetId }),
|
|
3608
|
-
...(input.TargetType !== undefined && input.TargetType !== null && { TargetType: input.TargetType }),
|
|
3609
|
-
};
|
|
3610
|
-
};
|
|
3611
|
-
|
|
3612
|
-
const serializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationRequest = (
|
|
3613
|
-
input: CreateInstanceAccessControlAttributeConfigurationRequest,
|
|
3614
|
-
context: __SerdeContext
|
|
3615
|
-
): any => {
|
|
3616
|
-
return {
|
|
3617
|
-
...(input.InstanceAccessControlAttributeConfiguration !== undefined &&
|
|
3618
|
-
input.InstanceAccessControlAttributeConfiguration !== null && {
|
|
3619
|
-
InstanceAccessControlAttributeConfiguration: serializeAws_json1_1InstanceAccessControlAttributeConfiguration(
|
|
3620
|
-
input.InstanceAccessControlAttributeConfiguration,
|
|
3621
|
-
context
|
|
3622
|
-
),
|
|
3623
|
-
}),
|
|
3624
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3625
|
-
};
|
|
3626
|
-
};
|
|
3627
|
-
|
|
3628
|
-
const serializeAws_json1_1CreatePermissionSetRequest = (
|
|
3629
|
-
input: CreatePermissionSetRequest,
|
|
3630
|
-
context: __SerdeContext
|
|
3631
|
-
): any => {
|
|
3632
|
-
return {
|
|
3633
|
-
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
3634
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3635
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
3636
|
-
...(input.RelayState !== undefined && input.RelayState !== null && { RelayState: input.RelayState }),
|
|
3637
|
-
...(input.SessionDuration !== undefined &&
|
|
3638
|
-
input.SessionDuration !== null && { SessionDuration: input.SessionDuration }),
|
|
3639
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3640
|
-
};
|
|
3641
|
-
};
|
|
3642
|
-
|
|
3643
|
-
const serializeAws_json1_1DeleteAccountAssignmentRequest = (
|
|
3644
|
-
input: DeleteAccountAssignmentRequest,
|
|
3645
|
-
context: __SerdeContext
|
|
3646
|
-
): any => {
|
|
3647
|
-
return {
|
|
3648
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3649
|
-
...(input.PermissionSetArn !== undefined &&
|
|
3650
|
-
input.PermissionSetArn !== null && { PermissionSetArn: input.PermissionSetArn }),
|
|
3651
|
-
...(input.PrincipalId !== undefined && input.PrincipalId !== null && { PrincipalId: input.PrincipalId }),
|
|
3652
|
-
...(input.PrincipalType !== undefined && input.PrincipalType !== null && { PrincipalType: input.PrincipalType }),
|
|
3653
|
-
...(input.TargetId !== undefined && input.TargetId !== null && { TargetId: input.TargetId }),
|
|
3654
|
-
...(input.TargetType !== undefined && input.TargetType !== null && { TargetType: input.TargetType }),
|
|
3655
|
-
};
|
|
3656
|
-
};
|
|
3657
|
-
|
|
3658
|
-
const serializeAws_json1_1DeleteInlinePolicyFromPermissionSetRequest = (
|
|
3659
|
-
input: DeleteInlinePolicyFromPermissionSetRequest,
|
|
3660
|
-
context: __SerdeContext
|
|
3661
|
-
): any => {
|
|
3662
|
-
return {
|
|
3663
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3664
|
-
...(input.PermissionSetArn !== undefined &&
|
|
3665
|
-
input.PermissionSetArn !== null && { PermissionSetArn: input.PermissionSetArn }),
|
|
3666
|
-
};
|
|
3667
|
-
};
|
|
3668
|
-
|
|
3669
|
-
const serializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationRequest = (
|
|
3670
|
-
input: DeleteInstanceAccessControlAttributeConfigurationRequest,
|
|
3671
|
-
context: __SerdeContext
|
|
3672
|
-
): any => {
|
|
3673
|
-
return {
|
|
3674
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3675
|
-
};
|
|
3676
|
-
};
|
|
3677
|
-
|
|
3678
|
-
const serializeAws_json1_1DeletePermissionSetRequest = (
|
|
3679
|
-
input: DeletePermissionSetRequest,
|
|
3680
|
-
context: __SerdeContext
|
|
3681
|
-
): any => {
|
|
3682
|
-
return {
|
|
3683
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3684
|
-
...(input.PermissionSetArn !== undefined &&
|
|
3685
|
-
input.PermissionSetArn !== null && { PermissionSetArn: input.PermissionSetArn }),
|
|
3686
|
-
};
|
|
3687
|
-
};
|
|
3688
|
-
|
|
3689
|
-
const serializeAws_json1_1DescribeAccountAssignmentCreationStatusRequest = (
|
|
3690
|
-
input: DescribeAccountAssignmentCreationStatusRequest,
|
|
3691
|
-
context: __SerdeContext
|
|
3692
|
-
): any => {
|
|
3693
|
-
return {
|
|
3694
|
-
...(input.AccountAssignmentCreationRequestId !== undefined &&
|
|
3695
|
-
input.AccountAssignmentCreationRequestId !== null && {
|
|
3696
|
-
AccountAssignmentCreationRequestId: input.AccountAssignmentCreationRequestId,
|
|
3697
|
-
}),
|
|
3698
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3699
|
-
};
|
|
3700
|
-
};
|
|
3701
|
-
|
|
3702
|
-
const serializeAws_json1_1DescribeAccountAssignmentDeletionStatusRequest = (
|
|
3703
|
-
input: DescribeAccountAssignmentDeletionStatusRequest,
|
|
3704
|
-
context: __SerdeContext
|
|
3705
|
-
): any => {
|
|
3706
|
-
return {
|
|
3707
|
-
...(input.AccountAssignmentDeletionRequestId !== undefined &&
|
|
3708
|
-
input.AccountAssignmentDeletionRequestId !== null && {
|
|
3709
|
-
AccountAssignmentDeletionRequestId: input.AccountAssignmentDeletionRequestId,
|
|
3710
|
-
}),
|
|
3711
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3712
|
-
};
|
|
3713
|
-
};
|
|
3714
|
-
|
|
3715
|
-
const serializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationRequest = (
|
|
3716
|
-
input: DescribeInstanceAccessControlAttributeConfigurationRequest,
|
|
3717
|
-
context: __SerdeContext
|
|
3718
|
-
): any => {
|
|
3719
|
-
return {
|
|
3720
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3721
|
-
};
|
|
3722
|
-
};
|
|
3723
|
-
|
|
3724
|
-
const serializeAws_json1_1DescribePermissionSetProvisioningStatusRequest = (
|
|
3725
|
-
input: DescribePermissionSetProvisioningStatusRequest,
|
|
3726
|
-
context: __SerdeContext
|
|
3727
|
-
): any => {
|
|
3728
|
-
return {
|
|
3729
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3730
|
-
...(input.ProvisionPermissionSetRequestId !== undefined &&
|
|
3731
|
-
input.ProvisionPermissionSetRequestId !== null && {
|
|
3732
|
-
ProvisionPermissionSetRequestId: input.ProvisionPermissionSetRequestId,
|
|
3733
|
-
}),
|
|
3734
|
-
};
|
|
3735
|
-
};
|
|
3736
|
-
|
|
3737
|
-
const serializeAws_json1_1DescribePermissionSetRequest = (
|
|
3738
|
-
input: DescribePermissionSetRequest,
|
|
3739
|
-
context: __SerdeContext
|
|
3740
|
-
): any => {
|
|
3741
|
-
return {
|
|
3742
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3743
|
-
...(input.PermissionSetArn !== undefined &&
|
|
3744
|
-
input.PermissionSetArn !== null && { PermissionSetArn: input.PermissionSetArn }),
|
|
3745
|
-
};
|
|
3746
|
-
};
|
|
3747
|
-
|
|
3748
|
-
const serializeAws_json1_1DetachManagedPolicyFromPermissionSetRequest = (
|
|
3749
|
-
input: DetachManagedPolicyFromPermissionSetRequest,
|
|
3750
|
-
context: __SerdeContext
|
|
3751
|
-
): any => {
|
|
3752
|
-
return {
|
|
3753
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3754
|
-
...(input.ManagedPolicyArn !== undefined &&
|
|
3755
|
-
input.ManagedPolicyArn !== null && { ManagedPolicyArn: input.ManagedPolicyArn }),
|
|
3756
|
-
...(input.PermissionSetArn !== undefined &&
|
|
3757
|
-
input.PermissionSetArn !== null && { PermissionSetArn: input.PermissionSetArn }),
|
|
3758
|
-
};
|
|
3759
|
-
};
|
|
3760
|
-
|
|
3761
|
-
const serializeAws_json1_1GetInlinePolicyForPermissionSetRequest = (
|
|
3762
|
-
input: GetInlinePolicyForPermissionSetRequest,
|
|
3763
|
-
context: __SerdeContext
|
|
3764
|
-
): any => {
|
|
3765
|
-
return {
|
|
3766
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3767
|
-
...(input.PermissionSetArn !== undefined &&
|
|
3768
|
-
input.PermissionSetArn !== null && { PermissionSetArn: input.PermissionSetArn }),
|
|
3769
|
-
};
|
|
3770
|
-
};
|
|
3771
|
-
|
|
3772
|
-
const serializeAws_json1_1InstanceAccessControlAttributeConfiguration = (
|
|
3773
|
-
input: InstanceAccessControlAttributeConfiguration,
|
|
3774
|
-
context: __SerdeContext
|
|
3775
|
-
): any => {
|
|
3776
|
-
return {
|
|
3777
|
-
...(input.AccessControlAttributes !== undefined &&
|
|
3778
|
-
input.AccessControlAttributes !== null && {
|
|
3779
|
-
AccessControlAttributes: serializeAws_json1_1AccessControlAttributeList(input.AccessControlAttributes, context),
|
|
3780
|
-
}),
|
|
3781
|
-
};
|
|
3782
|
-
};
|
|
3783
|
-
|
|
3784
|
-
const serializeAws_json1_1ListAccountAssignmentCreationStatusRequest = (
|
|
3785
|
-
input: ListAccountAssignmentCreationStatusRequest,
|
|
3786
|
-
context: __SerdeContext
|
|
3787
|
-
): any => {
|
|
3788
|
-
return {
|
|
3789
|
-
...(input.Filter !== undefined &&
|
|
3790
|
-
input.Filter !== null && { Filter: serializeAws_json1_1OperationStatusFilter(input.Filter, context) }),
|
|
3791
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3792
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3793
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3794
|
-
};
|
|
3795
|
-
};
|
|
3796
|
-
|
|
3797
|
-
const serializeAws_json1_1ListAccountAssignmentDeletionStatusRequest = (
|
|
3798
|
-
input: ListAccountAssignmentDeletionStatusRequest,
|
|
3799
|
-
context: __SerdeContext
|
|
3800
|
-
): any => {
|
|
3801
|
-
return {
|
|
3802
|
-
...(input.Filter !== undefined &&
|
|
3803
|
-
input.Filter !== null && { Filter: serializeAws_json1_1OperationStatusFilter(input.Filter, context) }),
|
|
3804
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3805
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3806
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3807
|
-
};
|
|
3808
|
-
};
|
|
3809
|
-
|
|
3810
|
-
const serializeAws_json1_1ListAccountAssignmentsRequest = (
|
|
3811
|
-
input: ListAccountAssignmentsRequest,
|
|
3812
|
-
context: __SerdeContext
|
|
3813
|
-
): any => {
|
|
3814
|
-
return {
|
|
3815
|
-
...(input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId }),
|
|
3816
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3817
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3818
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3819
|
-
...(input.PermissionSetArn !== undefined &&
|
|
3820
|
-
input.PermissionSetArn !== null && { PermissionSetArn: input.PermissionSetArn }),
|
|
3821
|
-
};
|
|
3822
|
-
};
|
|
3823
|
-
|
|
3824
|
-
const serializeAws_json1_1ListAccountsForProvisionedPermissionSetRequest = (
|
|
3825
|
-
input: ListAccountsForProvisionedPermissionSetRequest,
|
|
3826
|
-
context: __SerdeContext
|
|
3827
|
-
): any => {
|
|
3828
|
-
return {
|
|
3829
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3830
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3831
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3832
|
-
...(input.PermissionSetArn !== undefined &&
|
|
3833
|
-
input.PermissionSetArn !== null && { PermissionSetArn: input.PermissionSetArn }),
|
|
3834
|
-
...(input.ProvisioningStatus !== undefined &&
|
|
3835
|
-
input.ProvisioningStatus !== null && { ProvisioningStatus: input.ProvisioningStatus }),
|
|
3836
|
-
};
|
|
3837
|
-
};
|
|
3838
|
-
|
|
3839
|
-
const serializeAws_json1_1ListInstancesRequest = (input: ListInstancesRequest, context: __SerdeContext): any => {
|
|
3840
|
-
return {
|
|
3841
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3842
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3843
|
-
};
|
|
3844
|
-
};
|
|
3845
|
-
|
|
3846
|
-
const serializeAws_json1_1ListManagedPoliciesInPermissionSetRequest = (
|
|
3847
|
-
input: ListManagedPoliciesInPermissionSetRequest,
|
|
3848
|
-
context: __SerdeContext
|
|
3849
|
-
): any => {
|
|
3850
|
-
return {
|
|
3851
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3852
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3853
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3854
|
-
...(input.PermissionSetArn !== undefined &&
|
|
3855
|
-
input.PermissionSetArn !== null && { PermissionSetArn: input.PermissionSetArn }),
|
|
3856
|
-
};
|
|
3857
|
-
};
|
|
3858
|
-
|
|
3859
|
-
const serializeAws_json1_1ListPermissionSetProvisioningStatusRequest = (
|
|
3860
|
-
input: ListPermissionSetProvisioningStatusRequest,
|
|
3861
|
-
context: __SerdeContext
|
|
3862
|
-
): any => {
|
|
3863
|
-
return {
|
|
3864
|
-
...(input.Filter !== undefined &&
|
|
3865
|
-
input.Filter !== null && { Filter: serializeAws_json1_1OperationStatusFilter(input.Filter, context) }),
|
|
3866
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3867
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3868
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3869
|
-
};
|
|
3870
|
-
};
|
|
3871
|
-
|
|
3872
|
-
const serializeAws_json1_1ListPermissionSetsProvisionedToAccountRequest = (
|
|
3873
|
-
input: ListPermissionSetsProvisionedToAccountRequest,
|
|
3874
|
-
context: __SerdeContext
|
|
3875
|
-
): any => {
|
|
3876
|
-
return {
|
|
3877
|
-
...(input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId }),
|
|
3878
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3879
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3880
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3881
|
-
...(input.ProvisioningStatus !== undefined &&
|
|
3882
|
-
input.ProvisioningStatus !== null && { ProvisioningStatus: input.ProvisioningStatus }),
|
|
3883
|
-
};
|
|
3884
|
-
};
|
|
3885
|
-
|
|
3886
|
-
const serializeAws_json1_1ListPermissionSetsRequest = (
|
|
3887
|
-
input: ListPermissionSetsRequest,
|
|
3888
|
-
context: __SerdeContext
|
|
3889
|
-
): any => {
|
|
3890
|
-
return {
|
|
3891
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3892
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3893
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3894
|
-
};
|
|
3895
|
-
};
|
|
3896
|
-
|
|
3897
|
-
const serializeAws_json1_1ListTagsForResourceRequest = (
|
|
3898
|
-
input: ListTagsForResourceRequest,
|
|
3899
|
-
context: __SerdeContext
|
|
3900
|
-
): any => {
|
|
3901
|
-
return {
|
|
3902
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3903
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3904
|
-
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
3905
|
-
};
|
|
3906
|
-
};
|
|
3907
|
-
|
|
3908
|
-
const serializeAws_json1_1OperationStatusFilter = (input: OperationStatusFilter, context: __SerdeContext): any => {
|
|
3909
|
-
return {
|
|
3910
|
-
...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
|
|
3911
|
-
};
|
|
3912
|
-
};
|
|
3913
|
-
|
|
3914
|
-
const serializeAws_json1_1ProvisionPermissionSetRequest = (
|
|
3915
|
-
input: ProvisionPermissionSetRequest,
|
|
3916
|
-
context: __SerdeContext
|
|
3917
|
-
): any => {
|
|
3918
|
-
return {
|
|
3919
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3920
|
-
...(input.PermissionSetArn !== undefined &&
|
|
3921
|
-
input.PermissionSetArn !== null && { PermissionSetArn: input.PermissionSetArn }),
|
|
3922
|
-
...(input.TargetId !== undefined && input.TargetId !== null && { TargetId: input.TargetId }),
|
|
3923
|
-
...(input.TargetType !== undefined && input.TargetType !== null && { TargetType: input.TargetType }),
|
|
3924
|
-
};
|
|
3925
|
-
};
|
|
3926
|
-
|
|
3927
|
-
const serializeAws_json1_1PutInlinePolicyToPermissionSetRequest = (
|
|
3928
|
-
input: PutInlinePolicyToPermissionSetRequest,
|
|
3929
|
-
context: __SerdeContext
|
|
3930
|
-
): any => {
|
|
3931
|
-
return {
|
|
3932
|
-
...(input.InlinePolicy !== undefined && input.InlinePolicy !== null && { InlinePolicy: input.InlinePolicy }),
|
|
3933
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3934
|
-
...(input.PermissionSetArn !== undefined &&
|
|
3935
|
-
input.PermissionSetArn !== null && { PermissionSetArn: input.PermissionSetArn }),
|
|
3936
|
-
};
|
|
3937
|
-
};
|
|
3938
|
-
|
|
3939
|
-
const serializeAws_json1_1Tag = (input: Tag, context: __SerdeContext): any => {
|
|
3940
|
-
return {
|
|
3941
|
-
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
3942
|
-
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
3943
|
-
};
|
|
3944
|
-
};
|
|
3945
|
-
|
|
3946
|
-
const serializeAws_json1_1TagKeyList = (input: string[], context: __SerdeContext): any => {
|
|
3947
|
-
return input
|
|
3948
|
-
.filter((e: any) => e != null)
|
|
3949
|
-
.map((entry) => {
|
|
3950
|
-
if (entry === null) {
|
|
3951
|
-
return null as any;
|
|
3952
|
-
}
|
|
3953
|
-
return entry;
|
|
3954
|
-
});
|
|
3955
|
-
};
|
|
3956
|
-
|
|
3957
|
-
const serializeAws_json1_1TagList = (input: Tag[], context: __SerdeContext): any => {
|
|
3958
|
-
return input
|
|
3959
|
-
.filter((e: any) => e != null)
|
|
3960
|
-
.map((entry) => {
|
|
3961
|
-
if (entry === null) {
|
|
3962
|
-
return null as any;
|
|
3963
|
-
}
|
|
3964
|
-
return serializeAws_json1_1Tag(entry, context);
|
|
3965
|
-
});
|
|
3966
|
-
};
|
|
3967
|
-
|
|
3968
|
-
const serializeAws_json1_1TagResourceRequest = (input: TagResourceRequest, context: __SerdeContext): any => {
|
|
3969
|
-
return {
|
|
3970
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3971
|
-
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
3972
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3973
|
-
};
|
|
3974
|
-
};
|
|
3975
|
-
|
|
3976
|
-
const serializeAws_json1_1UntagResourceRequest = (input: UntagResourceRequest, context: __SerdeContext): any => {
|
|
3977
|
-
return {
|
|
3978
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3979
|
-
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
3980
|
-
...(input.TagKeys !== undefined &&
|
|
3981
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
3982
|
-
};
|
|
3983
|
-
};
|
|
3984
|
-
|
|
3985
|
-
const serializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationRequest = (
|
|
3986
|
-
input: UpdateInstanceAccessControlAttributeConfigurationRequest,
|
|
3987
|
-
context: __SerdeContext
|
|
3988
|
-
): any => {
|
|
3989
|
-
return {
|
|
3990
|
-
...(input.InstanceAccessControlAttributeConfiguration !== undefined &&
|
|
3991
|
-
input.InstanceAccessControlAttributeConfiguration !== null && {
|
|
3992
|
-
InstanceAccessControlAttributeConfiguration: serializeAws_json1_1InstanceAccessControlAttributeConfiguration(
|
|
3993
|
-
input.InstanceAccessControlAttributeConfiguration,
|
|
3994
|
-
context
|
|
3995
|
-
),
|
|
3996
|
-
}),
|
|
3997
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
3998
|
-
};
|
|
3999
|
-
};
|
|
4000
|
-
|
|
4001
|
-
const serializeAws_json1_1UpdatePermissionSetRequest = (
|
|
4002
|
-
input: UpdatePermissionSetRequest,
|
|
4003
|
-
context: __SerdeContext
|
|
4004
|
-
): any => {
|
|
4005
|
-
return {
|
|
4006
|
-
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
4007
|
-
...(input.InstanceArn !== undefined && input.InstanceArn !== null && { InstanceArn: input.InstanceArn }),
|
|
4008
|
-
...(input.PermissionSetArn !== undefined &&
|
|
4009
|
-
input.PermissionSetArn !== null && { PermissionSetArn: input.PermissionSetArn }),
|
|
4010
|
-
...(input.RelayState !== undefined && input.RelayState !== null && { RelayState: input.RelayState }),
|
|
4011
|
-
...(input.SessionDuration !== undefined &&
|
|
4012
|
-
input.SessionDuration !== null && { SessionDuration: input.SessionDuration }),
|
|
4013
|
-
};
|
|
4014
|
-
};
|
|
4015
|
-
|
|
4016
|
-
const deserializeAws_json1_1AccessControlAttribute = (output: any, context: __SerdeContext): AccessControlAttribute => {
|
|
4017
|
-
return {
|
|
4018
|
-
Key: __expectString(output.Key),
|
|
4019
|
-
Value:
|
|
4020
|
-
output.Value !== undefined && output.Value !== null
|
|
4021
|
-
? deserializeAws_json1_1AccessControlAttributeValue(output.Value, context)
|
|
4022
|
-
: undefined,
|
|
4023
|
-
} as any;
|
|
4024
|
-
};
|
|
4025
|
-
|
|
4026
|
-
const deserializeAws_json1_1AccessControlAttributeList = (
|
|
4027
|
-
output: any,
|
|
4028
|
-
context: __SerdeContext
|
|
4029
|
-
): AccessControlAttribute[] => {
|
|
4030
|
-
return (output || [])
|
|
4031
|
-
.filter((e: any) => e != null)
|
|
4032
|
-
.map((entry: any) => {
|
|
4033
|
-
if (entry === null) {
|
|
4034
|
-
return null as any;
|
|
4035
|
-
}
|
|
4036
|
-
return deserializeAws_json1_1AccessControlAttribute(entry, context);
|
|
4037
|
-
});
|
|
4038
|
-
};
|
|
4039
|
-
|
|
4040
|
-
const deserializeAws_json1_1AccessControlAttributeValue = (
|
|
4041
|
-
output: any,
|
|
4042
|
-
context: __SerdeContext
|
|
4043
|
-
): AccessControlAttributeValue => {
|
|
4044
|
-
return {
|
|
4045
|
-
Source:
|
|
4046
|
-
output.Source !== undefined && output.Source !== null
|
|
4047
|
-
? deserializeAws_json1_1AccessControlAttributeValueSourceList(output.Source, context)
|
|
4048
|
-
: undefined,
|
|
4049
|
-
} as any;
|
|
4050
|
-
};
|
|
4051
|
-
|
|
4052
|
-
const deserializeAws_json1_1AccessControlAttributeValueSourceList = (
|
|
4053
|
-
output: any,
|
|
4054
|
-
context: __SerdeContext
|
|
4055
|
-
): string[] => {
|
|
4056
|
-
return (output || [])
|
|
4057
|
-
.filter((e: any) => e != null)
|
|
4058
|
-
.map((entry: any) => {
|
|
4059
|
-
if (entry === null) {
|
|
4060
|
-
return null as any;
|
|
4061
|
-
}
|
|
4062
|
-
return __expectString(entry) as any;
|
|
4063
|
-
});
|
|
4064
|
-
};
|
|
4065
|
-
|
|
4066
|
-
const deserializeAws_json1_1AccessDeniedException = (output: any, context: __SerdeContext): AccessDeniedException => {
|
|
4067
|
-
return {
|
|
4068
|
-
Message: __expectString(output.Message),
|
|
4069
|
-
} as any;
|
|
4070
|
-
};
|
|
4071
|
-
|
|
4072
|
-
const deserializeAws_json1_1AccountAssignment = (output: any, context: __SerdeContext): AccountAssignment => {
|
|
4073
|
-
return {
|
|
4074
|
-
AccountId: __expectString(output.AccountId),
|
|
4075
|
-
PermissionSetArn: __expectString(output.PermissionSetArn),
|
|
4076
|
-
PrincipalId: __expectString(output.PrincipalId),
|
|
4077
|
-
PrincipalType: __expectString(output.PrincipalType),
|
|
4078
|
-
} as any;
|
|
4079
|
-
};
|
|
4080
|
-
|
|
4081
|
-
const deserializeAws_json1_1AccountAssignmentList = (output: any, context: __SerdeContext): AccountAssignment[] => {
|
|
4082
|
-
return (output || [])
|
|
4083
|
-
.filter((e: any) => e != null)
|
|
4084
|
-
.map((entry: any) => {
|
|
4085
|
-
if (entry === null) {
|
|
4086
|
-
return null as any;
|
|
4087
|
-
}
|
|
4088
|
-
return deserializeAws_json1_1AccountAssignment(entry, context);
|
|
4089
|
-
});
|
|
4090
|
-
};
|
|
4091
|
-
|
|
4092
|
-
const deserializeAws_json1_1AccountAssignmentOperationStatus = (
|
|
4093
|
-
output: any,
|
|
4094
|
-
context: __SerdeContext
|
|
4095
|
-
): AccountAssignmentOperationStatus => {
|
|
4096
|
-
return {
|
|
4097
|
-
CreatedDate:
|
|
4098
|
-
output.CreatedDate !== undefined && output.CreatedDate !== null
|
|
4099
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedDate)))
|
|
4100
|
-
: undefined,
|
|
4101
|
-
FailureReason: __expectString(output.FailureReason),
|
|
4102
|
-
PermissionSetArn: __expectString(output.PermissionSetArn),
|
|
4103
|
-
PrincipalId: __expectString(output.PrincipalId),
|
|
4104
|
-
PrincipalType: __expectString(output.PrincipalType),
|
|
4105
|
-
RequestId: __expectString(output.RequestId),
|
|
4106
|
-
Status: __expectString(output.Status),
|
|
4107
|
-
TargetId: __expectString(output.TargetId),
|
|
4108
|
-
TargetType: __expectString(output.TargetType),
|
|
4109
|
-
} as any;
|
|
4110
|
-
};
|
|
4111
|
-
|
|
4112
|
-
const deserializeAws_json1_1AccountAssignmentOperationStatusList = (
|
|
4113
|
-
output: any,
|
|
4114
|
-
context: __SerdeContext
|
|
4115
|
-
): AccountAssignmentOperationStatusMetadata[] => {
|
|
4116
|
-
return (output || [])
|
|
4117
|
-
.filter((e: any) => e != null)
|
|
4118
|
-
.map((entry: any) => {
|
|
4119
|
-
if (entry === null) {
|
|
4120
|
-
return null as any;
|
|
4121
|
-
}
|
|
4122
|
-
return deserializeAws_json1_1AccountAssignmentOperationStatusMetadata(entry, context);
|
|
4123
|
-
});
|
|
4124
|
-
};
|
|
4125
|
-
|
|
4126
|
-
const deserializeAws_json1_1AccountAssignmentOperationStatusMetadata = (
|
|
4127
|
-
output: any,
|
|
4128
|
-
context: __SerdeContext
|
|
4129
|
-
): AccountAssignmentOperationStatusMetadata => {
|
|
4130
|
-
return {
|
|
4131
|
-
CreatedDate:
|
|
4132
|
-
output.CreatedDate !== undefined && output.CreatedDate !== null
|
|
4133
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedDate)))
|
|
4134
|
-
: undefined,
|
|
4135
|
-
RequestId: __expectString(output.RequestId),
|
|
4136
|
-
Status: __expectString(output.Status),
|
|
4137
|
-
} as any;
|
|
4138
|
-
};
|
|
4139
|
-
|
|
4140
|
-
const deserializeAws_json1_1AccountList = (output: any, context: __SerdeContext): string[] => {
|
|
4141
|
-
return (output || [])
|
|
4142
|
-
.filter((e: any) => e != null)
|
|
4143
|
-
.map((entry: any) => {
|
|
4144
|
-
if (entry === null) {
|
|
4145
|
-
return null as any;
|
|
4146
|
-
}
|
|
4147
|
-
return __expectString(entry) as any;
|
|
4148
|
-
});
|
|
4149
|
-
};
|
|
4150
|
-
|
|
4151
|
-
const deserializeAws_json1_1AttachedManagedPolicy = (output: any, context: __SerdeContext): AttachedManagedPolicy => {
|
|
4152
|
-
return {
|
|
4153
|
-
Arn: __expectString(output.Arn),
|
|
4154
|
-
Name: __expectString(output.Name),
|
|
4155
|
-
} as any;
|
|
4156
|
-
};
|
|
4157
|
-
|
|
4158
|
-
const deserializeAws_json1_1AttachedManagedPolicyList = (
|
|
4159
|
-
output: any,
|
|
4160
|
-
context: __SerdeContext
|
|
4161
|
-
): AttachedManagedPolicy[] => {
|
|
4162
|
-
return (output || [])
|
|
4163
|
-
.filter((e: any) => e != null)
|
|
4164
|
-
.map((entry: any) => {
|
|
4165
|
-
if (entry === null) {
|
|
4166
|
-
return null as any;
|
|
4167
|
-
}
|
|
4168
|
-
return deserializeAws_json1_1AttachedManagedPolicy(entry, context);
|
|
4169
|
-
});
|
|
4170
|
-
};
|
|
4171
|
-
|
|
4172
|
-
const deserializeAws_json1_1AttachManagedPolicyToPermissionSetResponse = (
|
|
4173
|
-
output: any,
|
|
4174
|
-
context: __SerdeContext
|
|
4175
|
-
): AttachManagedPolicyToPermissionSetResponse => {
|
|
4176
|
-
return {} as any;
|
|
4177
|
-
};
|
|
4178
|
-
|
|
4179
|
-
const deserializeAws_json1_1ConflictException = (output: any, context: __SerdeContext): ConflictException => {
|
|
4180
|
-
return {
|
|
4181
|
-
Message: __expectString(output.Message),
|
|
4182
|
-
} as any;
|
|
4183
|
-
};
|
|
4184
|
-
|
|
4185
|
-
const deserializeAws_json1_1CreateAccountAssignmentResponse = (
|
|
4186
|
-
output: any,
|
|
4187
|
-
context: __SerdeContext
|
|
4188
|
-
): CreateAccountAssignmentResponse => {
|
|
4189
|
-
return {
|
|
4190
|
-
AccountAssignmentCreationStatus:
|
|
4191
|
-
output.AccountAssignmentCreationStatus !== undefined && output.AccountAssignmentCreationStatus !== null
|
|
4192
|
-
? deserializeAws_json1_1AccountAssignmentOperationStatus(output.AccountAssignmentCreationStatus, context)
|
|
4193
|
-
: undefined,
|
|
4194
|
-
} as any;
|
|
4195
|
-
};
|
|
4196
|
-
|
|
4197
|
-
const deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationResponse = (
|
|
4198
|
-
output: any,
|
|
4199
|
-
context: __SerdeContext
|
|
4200
|
-
): CreateInstanceAccessControlAttributeConfigurationResponse => {
|
|
4201
|
-
return {} as any;
|
|
4202
|
-
};
|
|
4203
|
-
|
|
4204
|
-
const deserializeAws_json1_1CreatePermissionSetResponse = (
|
|
4205
|
-
output: any,
|
|
4206
|
-
context: __SerdeContext
|
|
4207
|
-
): CreatePermissionSetResponse => {
|
|
4208
|
-
return {
|
|
4209
|
-
PermissionSet:
|
|
4210
|
-
output.PermissionSet !== undefined && output.PermissionSet !== null
|
|
4211
|
-
? deserializeAws_json1_1PermissionSet(output.PermissionSet, context)
|
|
4212
|
-
: undefined,
|
|
4213
|
-
} as any;
|
|
4214
|
-
};
|
|
4215
|
-
|
|
4216
|
-
const deserializeAws_json1_1DeleteAccountAssignmentResponse = (
|
|
4217
|
-
output: any,
|
|
4218
|
-
context: __SerdeContext
|
|
4219
|
-
): DeleteAccountAssignmentResponse => {
|
|
4220
|
-
return {
|
|
4221
|
-
AccountAssignmentDeletionStatus:
|
|
4222
|
-
output.AccountAssignmentDeletionStatus !== undefined && output.AccountAssignmentDeletionStatus !== null
|
|
4223
|
-
? deserializeAws_json1_1AccountAssignmentOperationStatus(output.AccountAssignmentDeletionStatus, context)
|
|
4224
|
-
: undefined,
|
|
4225
|
-
} as any;
|
|
4226
|
-
};
|
|
4227
|
-
|
|
4228
|
-
const deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetResponse = (
|
|
4229
|
-
output: any,
|
|
4230
|
-
context: __SerdeContext
|
|
4231
|
-
): DeleteInlinePolicyFromPermissionSetResponse => {
|
|
4232
|
-
return {} as any;
|
|
4233
|
-
};
|
|
4234
|
-
|
|
4235
|
-
const deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationResponse = (
|
|
4236
|
-
output: any,
|
|
4237
|
-
context: __SerdeContext
|
|
4238
|
-
): DeleteInstanceAccessControlAttributeConfigurationResponse => {
|
|
4239
|
-
return {} as any;
|
|
4240
|
-
};
|
|
4241
|
-
|
|
4242
|
-
const deserializeAws_json1_1DeletePermissionSetResponse = (
|
|
4243
|
-
output: any,
|
|
4244
|
-
context: __SerdeContext
|
|
4245
|
-
): DeletePermissionSetResponse => {
|
|
4246
|
-
return {} as any;
|
|
4247
|
-
};
|
|
4248
|
-
|
|
4249
|
-
const deserializeAws_json1_1DescribeAccountAssignmentCreationStatusResponse = (
|
|
4250
|
-
output: any,
|
|
4251
|
-
context: __SerdeContext
|
|
4252
|
-
): DescribeAccountAssignmentCreationStatusResponse => {
|
|
4253
|
-
return {
|
|
4254
|
-
AccountAssignmentCreationStatus:
|
|
4255
|
-
output.AccountAssignmentCreationStatus !== undefined && output.AccountAssignmentCreationStatus !== null
|
|
4256
|
-
? deserializeAws_json1_1AccountAssignmentOperationStatus(output.AccountAssignmentCreationStatus, context)
|
|
4257
|
-
: undefined,
|
|
4258
|
-
} as any;
|
|
4259
|
-
};
|
|
4260
|
-
|
|
4261
|
-
const deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusResponse = (
|
|
4262
|
-
output: any,
|
|
4263
|
-
context: __SerdeContext
|
|
4264
|
-
): DescribeAccountAssignmentDeletionStatusResponse => {
|
|
4265
|
-
return {
|
|
4266
|
-
AccountAssignmentDeletionStatus:
|
|
4267
|
-
output.AccountAssignmentDeletionStatus !== undefined && output.AccountAssignmentDeletionStatus !== null
|
|
4268
|
-
? deserializeAws_json1_1AccountAssignmentOperationStatus(output.AccountAssignmentDeletionStatus, context)
|
|
4269
|
-
: undefined,
|
|
4270
|
-
} as any;
|
|
4271
|
-
};
|
|
4272
|
-
|
|
4273
|
-
const deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationResponse = (
|
|
4274
|
-
output: any,
|
|
4275
|
-
context: __SerdeContext
|
|
4276
|
-
): DescribeInstanceAccessControlAttributeConfigurationResponse => {
|
|
4277
|
-
return {
|
|
4278
|
-
InstanceAccessControlAttributeConfiguration:
|
|
4279
|
-
output.InstanceAccessControlAttributeConfiguration !== undefined &&
|
|
4280
|
-
output.InstanceAccessControlAttributeConfiguration !== null
|
|
4281
|
-
? deserializeAws_json1_1InstanceAccessControlAttributeConfiguration(
|
|
4282
|
-
output.InstanceAccessControlAttributeConfiguration,
|
|
4283
|
-
context
|
|
4284
|
-
)
|
|
4285
|
-
: undefined,
|
|
4286
|
-
Status: __expectString(output.Status),
|
|
4287
|
-
StatusReason: __expectString(output.StatusReason),
|
|
4288
|
-
} as any;
|
|
4289
|
-
};
|
|
4290
|
-
|
|
4291
|
-
const deserializeAws_json1_1DescribePermissionSetProvisioningStatusResponse = (
|
|
4292
|
-
output: any,
|
|
4293
|
-
context: __SerdeContext
|
|
4294
|
-
): DescribePermissionSetProvisioningStatusResponse => {
|
|
4295
|
-
return {
|
|
4296
|
-
PermissionSetProvisioningStatus:
|
|
4297
|
-
output.PermissionSetProvisioningStatus !== undefined && output.PermissionSetProvisioningStatus !== null
|
|
4298
|
-
? deserializeAws_json1_1PermissionSetProvisioningStatus(output.PermissionSetProvisioningStatus, context)
|
|
4299
|
-
: undefined,
|
|
4300
|
-
} as any;
|
|
4301
|
-
};
|
|
4302
|
-
|
|
4303
|
-
const deserializeAws_json1_1DescribePermissionSetResponse = (
|
|
4304
|
-
output: any,
|
|
4305
|
-
context: __SerdeContext
|
|
4306
|
-
): DescribePermissionSetResponse => {
|
|
4307
|
-
return {
|
|
4308
|
-
PermissionSet:
|
|
4309
|
-
output.PermissionSet !== undefined && output.PermissionSet !== null
|
|
4310
|
-
? deserializeAws_json1_1PermissionSet(output.PermissionSet, context)
|
|
4311
|
-
: undefined,
|
|
4312
|
-
} as any;
|
|
4313
|
-
};
|
|
4314
|
-
|
|
4315
|
-
const deserializeAws_json1_1DetachManagedPolicyFromPermissionSetResponse = (
|
|
4316
|
-
output: any,
|
|
4317
|
-
context: __SerdeContext
|
|
4318
|
-
): DetachManagedPolicyFromPermissionSetResponse => {
|
|
4319
|
-
return {} as any;
|
|
4320
|
-
};
|
|
4321
|
-
|
|
4322
|
-
const deserializeAws_json1_1GetInlinePolicyForPermissionSetResponse = (
|
|
4323
|
-
output: any,
|
|
4324
|
-
context: __SerdeContext
|
|
4325
|
-
): GetInlinePolicyForPermissionSetResponse => {
|
|
4326
|
-
return {
|
|
4327
|
-
InlinePolicy: __expectString(output.InlinePolicy),
|
|
4328
|
-
} as any;
|
|
4329
|
-
};
|
|
4330
|
-
|
|
4331
|
-
const deserializeAws_json1_1InstanceAccessControlAttributeConfiguration = (
|
|
4332
|
-
output: any,
|
|
4333
|
-
context: __SerdeContext
|
|
4334
|
-
): InstanceAccessControlAttributeConfiguration => {
|
|
4335
|
-
return {
|
|
4336
|
-
AccessControlAttributes:
|
|
4337
|
-
output.AccessControlAttributes !== undefined && output.AccessControlAttributes !== null
|
|
4338
|
-
? deserializeAws_json1_1AccessControlAttributeList(output.AccessControlAttributes, context)
|
|
4339
|
-
: undefined,
|
|
4340
|
-
} as any;
|
|
4341
|
-
};
|
|
4342
|
-
|
|
4343
|
-
const deserializeAws_json1_1InstanceList = (output: any, context: __SerdeContext): InstanceMetadata[] => {
|
|
4344
|
-
return (output || [])
|
|
4345
|
-
.filter((e: any) => e != null)
|
|
4346
|
-
.map((entry: any) => {
|
|
4347
|
-
if (entry === null) {
|
|
4348
|
-
return null as any;
|
|
4349
|
-
}
|
|
4350
|
-
return deserializeAws_json1_1InstanceMetadata(entry, context);
|
|
4351
|
-
});
|
|
4352
|
-
};
|
|
4353
|
-
|
|
4354
|
-
const deserializeAws_json1_1InstanceMetadata = (output: any, context: __SerdeContext): InstanceMetadata => {
|
|
4355
|
-
return {
|
|
4356
|
-
IdentityStoreId: __expectString(output.IdentityStoreId),
|
|
4357
|
-
InstanceArn: __expectString(output.InstanceArn),
|
|
4358
|
-
} as any;
|
|
4359
|
-
};
|
|
4360
|
-
|
|
4361
|
-
const deserializeAws_json1_1InternalServerException = (
|
|
4362
|
-
output: any,
|
|
4363
|
-
context: __SerdeContext
|
|
4364
|
-
): InternalServerException => {
|
|
4365
|
-
return {
|
|
4366
|
-
Message: __expectString(output.Message),
|
|
4367
|
-
} as any;
|
|
4368
|
-
};
|
|
4369
|
-
|
|
4370
|
-
const deserializeAws_json1_1ListAccountAssignmentCreationStatusResponse = (
|
|
4371
|
-
output: any,
|
|
4372
|
-
context: __SerdeContext
|
|
4373
|
-
): ListAccountAssignmentCreationStatusResponse => {
|
|
4374
|
-
return {
|
|
4375
|
-
AccountAssignmentsCreationStatus:
|
|
4376
|
-
output.AccountAssignmentsCreationStatus !== undefined && output.AccountAssignmentsCreationStatus !== null
|
|
4377
|
-
? deserializeAws_json1_1AccountAssignmentOperationStatusList(output.AccountAssignmentsCreationStatus, context)
|
|
4378
|
-
: undefined,
|
|
4379
|
-
NextToken: __expectString(output.NextToken),
|
|
4380
|
-
} as any;
|
|
4381
|
-
};
|
|
4382
|
-
|
|
4383
|
-
const deserializeAws_json1_1ListAccountAssignmentDeletionStatusResponse = (
|
|
4384
|
-
output: any,
|
|
4385
|
-
context: __SerdeContext
|
|
4386
|
-
): ListAccountAssignmentDeletionStatusResponse => {
|
|
4387
|
-
return {
|
|
4388
|
-
AccountAssignmentsDeletionStatus:
|
|
4389
|
-
output.AccountAssignmentsDeletionStatus !== undefined && output.AccountAssignmentsDeletionStatus !== null
|
|
4390
|
-
? deserializeAws_json1_1AccountAssignmentOperationStatusList(output.AccountAssignmentsDeletionStatus, context)
|
|
4391
|
-
: undefined,
|
|
4392
|
-
NextToken: __expectString(output.NextToken),
|
|
4393
|
-
} as any;
|
|
4394
|
-
};
|
|
4395
|
-
|
|
4396
|
-
const deserializeAws_json1_1ListAccountAssignmentsResponse = (
|
|
4397
|
-
output: any,
|
|
4398
|
-
context: __SerdeContext
|
|
4399
|
-
): ListAccountAssignmentsResponse => {
|
|
4400
|
-
return {
|
|
4401
|
-
AccountAssignments:
|
|
4402
|
-
output.AccountAssignments !== undefined && output.AccountAssignments !== null
|
|
4403
|
-
? deserializeAws_json1_1AccountAssignmentList(output.AccountAssignments, context)
|
|
4404
|
-
: undefined,
|
|
4405
|
-
NextToken: __expectString(output.NextToken),
|
|
4406
|
-
} as any;
|
|
4407
|
-
};
|
|
4408
|
-
|
|
4409
|
-
const deserializeAws_json1_1ListAccountsForProvisionedPermissionSetResponse = (
|
|
4410
|
-
output: any,
|
|
4411
|
-
context: __SerdeContext
|
|
4412
|
-
): ListAccountsForProvisionedPermissionSetResponse => {
|
|
4413
|
-
return {
|
|
4414
|
-
AccountIds:
|
|
4415
|
-
output.AccountIds !== undefined && output.AccountIds !== null
|
|
4416
|
-
? deserializeAws_json1_1AccountList(output.AccountIds, context)
|
|
4417
|
-
: undefined,
|
|
4418
|
-
NextToken: __expectString(output.NextToken),
|
|
4419
|
-
} as any;
|
|
4420
|
-
};
|
|
4421
|
-
|
|
4422
|
-
const deserializeAws_json1_1ListInstancesResponse = (output: any, context: __SerdeContext): ListInstancesResponse => {
|
|
4423
|
-
return {
|
|
4424
|
-
Instances:
|
|
4425
|
-
output.Instances !== undefined && output.Instances !== null
|
|
4426
|
-
? deserializeAws_json1_1InstanceList(output.Instances, context)
|
|
4427
|
-
: undefined,
|
|
4428
|
-
NextToken: __expectString(output.NextToken),
|
|
4429
|
-
} as any;
|
|
4430
|
-
};
|
|
4431
|
-
|
|
4432
|
-
const deserializeAws_json1_1ListManagedPoliciesInPermissionSetResponse = (
|
|
4433
|
-
output: any,
|
|
4434
|
-
context: __SerdeContext
|
|
4435
|
-
): ListManagedPoliciesInPermissionSetResponse => {
|
|
4436
|
-
return {
|
|
4437
|
-
AttachedManagedPolicies:
|
|
4438
|
-
output.AttachedManagedPolicies !== undefined && output.AttachedManagedPolicies !== null
|
|
4439
|
-
? deserializeAws_json1_1AttachedManagedPolicyList(output.AttachedManagedPolicies, context)
|
|
4440
|
-
: undefined,
|
|
4441
|
-
NextToken: __expectString(output.NextToken),
|
|
4442
|
-
} as any;
|
|
4443
|
-
};
|
|
4444
|
-
|
|
4445
|
-
const deserializeAws_json1_1ListPermissionSetProvisioningStatusResponse = (
|
|
4446
|
-
output: any,
|
|
4447
|
-
context: __SerdeContext
|
|
4448
|
-
): ListPermissionSetProvisioningStatusResponse => {
|
|
4449
|
-
return {
|
|
4450
|
-
NextToken: __expectString(output.NextToken),
|
|
4451
|
-
PermissionSetsProvisioningStatus:
|
|
4452
|
-
output.PermissionSetsProvisioningStatus !== undefined && output.PermissionSetsProvisioningStatus !== null
|
|
4453
|
-
? deserializeAws_json1_1PermissionSetProvisioningStatusList(output.PermissionSetsProvisioningStatus, context)
|
|
4454
|
-
: undefined,
|
|
4455
|
-
} as any;
|
|
4456
|
-
};
|
|
4457
|
-
|
|
4458
|
-
const deserializeAws_json1_1ListPermissionSetsProvisionedToAccountResponse = (
|
|
4459
|
-
output: any,
|
|
4460
|
-
context: __SerdeContext
|
|
4461
|
-
): ListPermissionSetsProvisionedToAccountResponse => {
|
|
4462
|
-
return {
|
|
4463
|
-
NextToken: __expectString(output.NextToken),
|
|
4464
|
-
PermissionSets:
|
|
4465
|
-
output.PermissionSets !== undefined && output.PermissionSets !== null
|
|
4466
|
-
? deserializeAws_json1_1PermissionSetList(output.PermissionSets, context)
|
|
4467
|
-
: undefined,
|
|
4468
|
-
} as any;
|
|
4469
|
-
};
|
|
4470
|
-
|
|
4471
|
-
const deserializeAws_json1_1ListPermissionSetsResponse = (
|
|
4472
|
-
output: any,
|
|
4473
|
-
context: __SerdeContext
|
|
4474
|
-
): ListPermissionSetsResponse => {
|
|
4475
|
-
return {
|
|
4476
|
-
NextToken: __expectString(output.NextToken),
|
|
4477
|
-
PermissionSets:
|
|
4478
|
-
output.PermissionSets !== undefined && output.PermissionSets !== null
|
|
4479
|
-
? deserializeAws_json1_1PermissionSetList(output.PermissionSets, context)
|
|
4480
|
-
: undefined,
|
|
4481
|
-
} as any;
|
|
4482
|
-
};
|
|
4483
|
-
|
|
4484
|
-
const deserializeAws_json1_1ListTagsForResourceResponse = (
|
|
4485
|
-
output: any,
|
|
4486
|
-
context: __SerdeContext
|
|
4487
|
-
): ListTagsForResourceResponse => {
|
|
4488
|
-
return {
|
|
4489
|
-
NextToken: __expectString(output.NextToken),
|
|
4490
|
-
Tags:
|
|
4491
|
-
output.Tags !== undefined && output.Tags !== null
|
|
4492
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
4493
|
-
: undefined,
|
|
4494
|
-
} as any;
|
|
4495
|
-
};
|
|
4496
|
-
|
|
4497
|
-
const deserializeAws_json1_1PermissionSet = (output: any, context: __SerdeContext): PermissionSet => {
|
|
4498
|
-
return {
|
|
4499
|
-
CreatedDate:
|
|
4500
|
-
output.CreatedDate !== undefined && output.CreatedDate !== null
|
|
4501
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedDate)))
|
|
4502
|
-
: undefined,
|
|
4503
|
-
Description: __expectString(output.Description),
|
|
4504
|
-
Name: __expectString(output.Name),
|
|
4505
|
-
PermissionSetArn: __expectString(output.PermissionSetArn),
|
|
4506
|
-
RelayState: __expectString(output.RelayState),
|
|
4507
|
-
SessionDuration: __expectString(output.SessionDuration),
|
|
4508
|
-
} as any;
|
|
4509
|
-
};
|
|
4510
|
-
|
|
4511
|
-
const deserializeAws_json1_1PermissionSetList = (output: any, context: __SerdeContext): string[] => {
|
|
4512
|
-
return (output || [])
|
|
4513
|
-
.filter((e: any) => e != null)
|
|
4514
|
-
.map((entry: any) => {
|
|
4515
|
-
if (entry === null) {
|
|
4516
|
-
return null as any;
|
|
4517
|
-
}
|
|
4518
|
-
return __expectString(entry) as any;
|
|
4519
|
-
});
|
|
4520
|
-
};
|
|
4521
|
-
|
|
4522
|
-
const deserializeAws_json1_1PermissionSetProvisioningStatus = (
|
|
4523
|
-
output: any,
|
|
4524
|
-
context: __SerdeContext
|
|
4525
|
-
): PermissionSetProvisioningStatus => {
|
|
4526
|
-
return {
|
|
4527
|
-
AccountId: __expectString(output.AccountId),
|
|
4528
|
-
CreatedDate:
|
|
4529
|
-
output.CreatedDate !== undefined && output.CreatedDate !== null
|
|
4530
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedDate)))
|
|
4531
|
-
: undefined,
|
|
4532
|
-
FailureReason: __expectString(output.FailureReason),
|
|
4533
|
-
PermissionSetArn: __expectString(output.PermissionSetArn),
|
|
4534
|
-
RequestId: __expectString(output.RequestId),
|
|
4535
|
-
Status: __expectString(output.Status),
|
|
4536
|
-
} as any;
|
|
4537
|
-
};
|
|
4538
|
-
|
|
4539
|
-
const deserializeAws_json1_1PermissionSetProvisioningStatusList = (
|
|
4540
|
-
output: any,
|
|
4541
|
-
context: __SerdeContext
|
|
4542
|
-
): PermissionSetProvisioningStatusMetadata[] => {
|
|
4543
|
-
return (output || [])
|
|
4544
|
-
.filter((e: any) => e != null)
|
|
4545
|
-
.map((entry: any) => {
|
|
4546
|
-
if (entry === null) {
|
|
4547
|
-
return null as any;
|
|
4548
|
-
}
|
|
4549
|
-
return deserializeAws_json1_1PermissionSetProvisioningStatusMetadata(entry, context);
|
|
4550
|
-
});
|
|
4551
|
-
};
|
|
4552
|
-
|
|
4553
|
-
const deserializeAws_json1_1PermissionSetProvisioningStatusMetadata = (
|
|
4554
|
-
output: any,
|
|
4555
|
-
context: __SerdeContext
|
|
4556
|
-
): PermissionSetProvisioningStatusMetadata => {
|
|
4557
|
-
return {
|
|
4558
|
-
CreatedDate:
|
|
4559
|
-
output.CreatedDate !== undefined && output.CreatedDate !== null
|
|
4560
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedDate)))
|
|
4561
|
-
: undefined,
|
|
4562
|
-
RequestId: __expectString(output.RequestId),
|
|
4563
|
-
Status: __expectString(output.Status),
|
|
4564
|
-
} as any;
|
|
4565
|
-
};
|
|
4566
|
-
|
|
4567
|
-
const deserializeAws_json1_1ProvisionPermissionSetResponse = (
|
|
4568
|
-
output: any,
|
|
4569
|
-
context: __SerdeContext
|
|
4570
|
-
): ProvisionPermissionSetResponse => {
|
|
4571
|
-
return {
|
|
4572
|
-
PermissionSetProvisioningStatus:
|
|
4573
|
-
output.PermissionSetProvisioningStatus !== undefined && output.PermissionSetProvisioningStatus !== null
|
|
4574
|
-
? deserializeAws_json1_1PermissionSetProvisioningStatus(output.PermissionSetProvisioningStatus, context)
|
|
4575
|
-
: undefined,
|
|
4576
|
-
} as any;
|
|
4577
|
-
};
|
|
4578
|
-
|
|
4579
|
-
const deserializeAws_json1_1PutInlinePolicyToPermissionSetResponse = (
|
|
4580
|
-
output: any,
|
|
4581
|
-
context: __SerdeContext
|
|
4582
|
-
): PutInlinePolicyToPermissionSetResponse => {
|
|
4583
|
-
return {} as any;
|
|
4584
|
-
};
|
|
4585
|
-
|
|
4586
|
-
const deserializeAws_json1_1ResourceNotFoundException = (
|
|
4587
|
-
output: any,
|
|
4588
|
-
context: __SerdeContext
|
|
4589
|
-
): ResourceNotFoundException => {
|
|
4590
|
-
return {
|
|
4591
|
-
Message: __expectString(output.Message),
|
|
4592
|
-
} as any;
|
|
4593
|
-
};
|
|
4594
|
-
|
|
4595
|
-
const deserializeAws_json1_1ServiceQuotaExceededException = (
|
|
4596
|
-
output: any,
|
|
4597
|
-
context: __SerdeContext
|
|
4598
|
-
): ServiceQuotaExceededException => {
|
|
4599
|
-
return {
|
|
4600
|
-
Message: __expectString(output.Message),
|
|
4601
|
-
} as any;
|
|
4602
|
-
};
|
|
4603
|
-
|
|
4604
|
-
const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => {
|
|
4605
|
-
return {
|
|
4606
|
-
Key: __expectString(output.Key),
|
|
4607
|
-
Value: __expectString(output.Value),
|
|
4608
|
-
} as any;
|
|
4609
|
-
};
|
|
4610
|
-
|
|
4611
|
-
const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => {
|
|
4612
|
-
return (output || [])
|
|
4613
|
-
.filter((e: any) => e != null)
|
|
4614
|
-
.map((entry: any) => {
|
|
4615
|
-
if (entry === null) {
|
|
4616
|
-
return null as any;
|
|
4617
|
-
}
|
|
4618
|
-
return deserializeAws_json1_1Tag(entry, context);
|
|
4619
|
-
});
|
|
4620
|
-
};
|
|
4621
|
-
|
|
4622
|
-
const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => {
|
|
4623
|
-
return {} as any;
|
|
4624
|
-
};
|
|
4625
|
-
|
|
4626
|
-
const deserializeAws_json1_1ThrottlingException = (output: any, context: __SerdeContext): ThrottlingException => {
|
|
4627
|
-
return {
|
|
4628
|
-
Message: __expectString(output.Message),
|
|
4629
|
-
} as any;
|
|
4630
|
-
};
|
|
4631
|
-
|
|
4632
|
-
const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __SerdeContext): UntagResourceResponse => {
|
|
4633
|
-
return {} as any;
|
|
4634
|
-
};
|
|
4635
|
-
|
|
4636
|
-
const deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationResponse = (
|
|
4637
|
-
output: any,
|
|
4638
|
-
context: __SerdeContext
|
|
4639
|
-
): UpdateInstanceAccessControlAttributeConfigurationResponse => {
|
|
4640
|
-
return {} as any;
|
|
4641
|
-
};
|
|
4642
|
-
|
|
4643
|
-
const deserializeAws_json1_1UpdatePermissionSetResponse = (
|
|
4644
|
-
output: any,
|
|
4645
|
-
context: __SerdeContext
|
|
4646
|
-
): UpdatePermissionSetResponse => {
|
|
4647
|
-
return {} as any;
|
|
4648
|
-
};
|
|
4649
|
-
|
|
4650
|
-
const deserializeAws_json1_1ValidationException = (output: any, context: __SerdeContext): ValidationException => {
|
|
4651
|
-
return {
|
|
4652
|
-
Message: __expectString(output.Message),
|
|
4653
|
-
} as any;
|
|
4654
|
-
};
|
|
4655
|
-
|
|
4656
|
-
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
|
|
4657
|
-
httpStatusCode: output.statusCode,
|
|
4658
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
4659
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4660
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4661
|
-
});
|
|
4662
|
-
|
|
4663
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4664
|
-
const collectBody = (streamBody: any = new Uint8Array(), context: __SerdeContext): Promise<Uint8Array> => {
|
|
4665
|
-
if (streamBody instanceof Uint8Array) {
|
|
4666
|
-
return Promise.resolve(streamBody);
|
|
4667
|
-
}
|
|
4668
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4669
|
-
};
|
|
4670
|
-
|
|
4671
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4672
|
-
const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> =>
|
|
4673
|
-
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4674
|
-
|
|
4675
|
-
const buildHttpRpcRequest = async (
|
|
4676
|
-
context: __SerdeContext,
|
|
4677
|
-
headers: __HeaderBag,
|
|
4678
|
-
path: string,
|
|
4679
|
-
resolvedHostname: string | undefined,
|
|
4680
|
-
body: any
|
|
4681
|
-
): Promise<__HttpRequest> => {
|
|
4682
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4683
|
-
const contents: any = {
|
|
4684
|
-
protocol,
|
|
4685
|
-
hostname,
|
|
4686
|
-
port,
|
|
4687
|
-
method: "POST",
|
|
4688
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
4689
|
-
headers,
|
|
4690
|
-
};
|
|
4691
|
-
if (resolvedHostname !== undefined) {
|
|
4692
|
-
contents.hostname = resolvedHostname;
|
|
4693
|
-
}
|
|
4694
|
-
if (body !== undefined) {
|
|
4695
|
-
contents.body = body;
|
|
4696
|
-
}
|
|
4697
|
-
return new __HttpRequest(contents);
|
|
4698
|
-
};
|
|
4699
|
-
|
|
4700
|
-
const parseBody = (streamBody: any, context: __SerdeContext): any =>
|
|
4701
|
-
collectBodyString(streamBody, context).then((encoded) => {
|
|
4702
|
-
if (encoded.length) {
|
|
4703
|
-
return JSON.parse(encoded);
|
|
4704
|
-
}
|
|
4705
|
-
return {};
|
|
4706
|
-
});
|
|
4707
|
-
|
|
4708
|
-
/**
|
|
4709
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
4710
|
-
*/
|
|
4711
|
-
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string => {
|
|
4712
|
-
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4713
|
-
|
|
4714
|
-
const sanitizeErrorCode = (rawValue: string): string => {
|
|
4715
|
-
let cleanValue = rawValue;
|
|
4716
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4717
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4718
|
-
}
|
|
4719
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4720
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4721
|
-
}
|
|
4722
|
-
return cleanValue;
|
|
4723
|
-
};
|
|
4724
|
-
|
|
4725
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4726
|
-
if (headerKey !== undefined) {
|
|
4727
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4728
|
-
}
|
|
4729
|
-
|
|
4730
|
-
if (data.code !== undefined) {
|
|
4731
|
-
return sanitizeErrorCode(data.code);
|
|
4732
|
-
}
|
|
4733
|
-
|
|
4734
|
-
if (data["__type"] !== undefined) {
|
|
4735
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4736
|
-
}
|
|
4737
|
-
|
|
4738
|
-
return "";
|
|
4739
|
-
};
|