@aws-sdk/client-ram 3.31.0 → 3.35.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 +39 -0
- package/{dist/cjs → dist-cjs}/RAM.js +2 -2
- package/dist-cjs/RAM.js.map +1 -0
- package/{dist/cjs → dist-cjs}/RAMClient.js +14 -14
- package/dist-cjs/RAMClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/AcceptResourceShareInvitationCommand.js +5 -5
- package/dist-cjs/commands/AcceptResourceShareInvitationCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/AssociateResourceShareCommand.js +5 -5
- package/dist-cjs/commands/AssociateResourceShareCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/AssociateResourceSharePermissionCommand.js +5 -5
- package/dist-cjs/commands/AssociateResourceSharePermissionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateResourceShareCommand.js +5 -5
- package/dist-cjs/commands/CreateResourceShareCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteResourceShareCommand.js +5 -5
- package/dist-cjs/commands/DeleteResourceShareCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DisassociateResourceShareCommand.js +5 -5
- package/dist-cjs/commands/DisassociateResourceShareCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DisassociateResourceSharePermissionCommand.js +5 -5
- package/dist-cjs/commands/DisassociateResourceSharePermissionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/EnableSharingWithAwsOrganizationCommand.js +5 -5
- package/dist-cjs/commands/EnableSharingWithAwsOrganizationCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetPermissionCommand.js +5 -5
- package/dist-cjs/commands/GetPermissionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetResourcePoliciesCommand.js +5 -5
- package/dist-cjs/commands/GetResourcePoliciesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetResourceShareAssociationsCommand.js +5 -5
- package/dist-cjs/commands/GetResourceShareAssociationsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetResourceShareInvitationsCommand.js +5 -5
- package/dist-cjs/commands/GetResourceShareInvitationsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetResourceSharesCommand.js +5 -5
- package/dist-cjs/commands/GetResourceSharesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListPendingInvitationResourcesCommand.js +5 -5
- package/dist-cjs/commands/ListPendingInvitationResourcesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListPermissionsCommand.js +5 -5
- package/dist-cjs/commands/ListPermissionsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListPrincipalsCommand.js +5 -5
- package/dist-cjs/commands/ListPrincipalsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListResourceSharePermissionsCommand.js +5 -5
- package/dist-cjs/commands/ListResourceSharePermissionsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListResourceTypesCommand.js +5 -5
- package/dist-cjs/commands/ListResourceTypesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListResourcesCommand.js +5 -5
- package/dist-cjs/commands/ListResourcesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/PromoteResourceShareCreatedFromPolicyCommand.js +5 -5
- package/dist-cjs/commands/PromoteResourceShareCreatedFromPolicyCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/RejectResourceShareInvitationCommand.js +5 -5
- package/dist-cjs/commands/RejectResourceShareInvitationCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +5 -5
- package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -5
- package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateResourceShareCommand.js +5 -5
- package/dist-cjs/commands/UpdateResourceShareCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +42 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/GetResourcePoliciesPaginator.js +1 -1
- package/dist-cjs/pagination/GetResourcePoliciesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/GetResourceShareAssociationsPaginator.js +1 -1
- package/dist-cjs/pagination/GetResourceShareAssociationsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/GetResourceShareInvitationsPaginator.js +1 -1
- package/dist-cjs/pagination/GetResourceShareInvitationsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/GetResourceSharesPaginator.js +1 -1
- package/dist-cjs/pagination/GetResourceSharesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/pagination/ListPendingInvitationResourcesPaginator.js +1 -1
- package/dist-cjs/pagination/ListPendingInvitationResourcesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListPermissionsPaginator.js +1 -1
- package/dist-cjs/pagination/ListPermissionsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListPrincipalsPaginator.js +1 -1
- package/dist-cjs/pagination/ListPrincipalsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListResourceSharePermissionsPaginator.js +1 -1
- package/dist-cjs/pagination/ListResourceSharePermissionsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListResourceTypesPaginator.js +1 -1
- package/dist-cjs/pagination/ListResourceTypesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListResourcesPaginator.js +1 -1
- package/dist-cjs/pagination/ListResourcesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +153 -153
- package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/RAM.js +3 -28
- package/dist-es/RAM.js.map +1 -0
- package/{dist/es → dist-es}/RAMClient.js +2 -32
- package/dist-es/RAMClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/AcceptResourceShareInvitationCommand.js +4 -29
- package/dist-es/commands/AcceptResourceShareInvitationCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/AssociateResourceShareCommand.js +4 -29
- package/dist-es/commands/AssociateResourceShareCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/AssociateResourceSharePermissionCommand.js +4 -29
- package/dist-es/commands/AssociateResourceSharePermissionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateResourceShareCommand.js +4 -36
- package/dist-es/commands/CreateResourceShareCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteResourceShareCommand.js +4 -29
- package/dist-es/commands/DeleteResourceShareCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DisassociateResourceShareCommand.js +4 -29
- package/dist-es/commands/DisassociateResourceShareCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DisassociateResourceSharePermissionCommand.js +4 -29
- package/dist-es/commands/DisassociateResourceSharePermissionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/EnableSharingWithAwsOrganizationCommand.js +4 -30
- package/dist-es/commands/EnableSharingWithAwsOrganizationCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetPermissionCommand.js +4 -29
- package/dist-es/commands/GetPermissionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetResourcePoliciesCommand.js +4 -29
- package/dist-es/commands/GetResourcePoliciesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetResourceShareAssociationsCommand.js +4 -29
- package/dist-es/commands/GetResourceShareAssociationsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetResourceShareInvitationsCommand.js +4 -29
- package/dist-es/commands/GetResourceShareInvitationsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetResourceSharesCommand.js +4 -29
- package/dist-es/commands/GetResourceSharesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListPendingInvitationResourcesCommand.js +4 -30
- package/dist-es/commands/ListPendingInvitationResourcesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListPermissionsCommand.js +4 -29
- package/dist-es/commands/ListPermissionsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListPrincipalsCommand.js +4 -30
- package/dist-es/commands/ListPrincipalsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListResourceSharePermissionsCommand.js +4 -29
- package/dist-es/commands/ListResourceSharePermissionsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListResourceTypesCommand.js +4 -29
- package/dist-es/commands/ListResourceTypesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListResourcesCommand.js +4 -30
- package/dist-es/commands/ListResourcesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/PromoteResourceShareCreatedFromPolicyCommand.js +4 -41
- package/dist-es/commands/PromoteResourceShareCreatedFromPolicyCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/RejectResourceShareInvitationCommand.js +4 -29
- package/dist-es/commands/RejectResourceShareInvitationCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -29
- package/dist-es/commands/TagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -29
- package/dist-es/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateResourceShareCommand.js +4 -29
- package/dist-es/commands/UpdateResourceShareCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -237
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/GetResourcePoliciesPaginator.js +17 -29
- package/dist-es/pagination/GetResourcePoliciesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/GetResourceShareAssociationsPaginator.js +17 -29
- package/dist-es/pagination/GetResourceShareAssociationsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/GetResourceShareInvitationsPaginator.js +17 -29
- package/dist-es/pagination/GetResourceShareInvitationsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/GetResourceSharesPaginator.js +17 -29
- package/dist-es/pagination/GetResourceSharesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
- package/{dist/es → dist-es}/pagination/ListPendingInvitationResourcesPaginator.js +17 -29
- package/dist-es/pagination/ListPendingInvitationResourcesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListPermissionsPaginator.js +17 -29
- package/dist-es/pagination/ListPermissionsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListPrincipalsPaginator.js +17 -29
- package/dist-es/pagination/ListPrincipalsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListResourceSharePermissionsPaginator.js +17 -29
- package/dist-es/pagination/ListResourceSharePermissionsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListResourceTypesPaginator.js +17 -29
- package/dist-es/pagination/ListResourceTypesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListResourcesPaginator.js +17 -29
- package/dist-es/pagination/ListResourcesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +921 -926
- package/dist-es/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/RAM.d.ts +3 -3
- package/{dist/types → dist-types}/RAMClient.d.ts +9 -9
- package/{dist/types → dist-types}/commands/AcceptResourceShareInvitationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/AssociateResourceShareCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/AssociateResourceSharePermissionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateResourceShareCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteResourceShareCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DisassociateResourceShareCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DisassociateResourceSharePermissionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/EnableSharingWithAwsOrganizationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetPermissionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetResourcePoliciesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetResourceShareAssociationsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetResourceShareInvitationsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetResourceSharesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListPendingInvitationResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListPermissionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListPrincipalsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListResourceSharePermissionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListResourceTypesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RejectResourceShareInvitationCommand.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/UpdateResourceShareCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → 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/GetResourcePoliciesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetResourceShareAssociationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetResourceShareInvitationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetResourceSharesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPendingInvitationResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPermissionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPrincipalsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListResourceSharePermissionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListResourceTypesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +3 -3
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/RAM.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/RAMClient.d.ts +9 -9
- package/{dist/types → dist-types}/ts3.4/commands/AcceptResourceShareInvitationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/AssociateResourceShareCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/AssociateResourceSharePermissionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CreateResourceShareCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeleteResourceShareCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DisassociateResourceShareCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DisassociateResourceSharePermissionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/EnableSharingWithAwsOrganizationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetPermissionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetResourcePoliciesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetResourceShareAssociationsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetResourceShareInvitationsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetResourceSharesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListPendingInvitationResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListPermissionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListPrincipalsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListResourceSharePermissionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListResourceTypesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/RejectResourceShareInvitationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UpdateResourceShareCommand.d.ts +3 -3
- 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 → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/GetResourcePoliciesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetResourceShareAssociationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetResourceShareInvitationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetResourceSharesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPendingInvitationResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPermissionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPrincipalsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListResourceSharePermissionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListResourceTypesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{RAM.ts → src/RAM.ts} +8 -7
- package/{RAMClient.ts → src/RAMClient.ts} +59 -58
- package/{commands → src/commands}/AcceptResourceShareInvitationCommand.ts +8 -7
- package/{commands → src/commands}/AssociateResourceShareCommand.ts +8 -7
- package/{commands → src/commands}/AssociateResourceSharePermissionCommand.ts +8 -7
- package/{commands → src/commands}/CreateResourceShareCommand.ts +8 -7
- package/{commands → src/commands}/DeleteResourceShareCommand.ts +8 -7
- package/{commands → src/commands}/DisassociateResourceShareCommand.ts +8 -7
- package/{commands → src/commands}/DisassociateResourceSharePermissionCommand.ts +11 -10
- package/{commands → src/commands}/EnableSharingWithAwsOrganizationCommand.ts +8 -7
- package/{commands → src/commands}/GetPermissionCommand.ts +8 -7
- package/{commands → src/commands}/GetResourcePoliciesCommand.ts +8 -7
- package/{commands → src/commands}/GetResourceShareAssociationsCommand.ts +8 -7
- package/{commands → src/commands}/GetResourceShareInvitationsCommand.ts +8 -7
- package/{commands → src/commands}/GetResourceSharesCommand.ts +8 -7
- package/{commands → src/commands}/ListPendingInvitationResourcesCommand.ts +8 -7
- package/{commands → src/commands}/ListPermissionsCommand.ts +8 -7
- package/{commands → src/commands}/ListPrincipalsCommand.ts +8 -7
- package/{commands → src/commands}/ListResourceSharePermissionsCommand.ts +8 -7
- package/{commands → src/commands}/ListResourceTypesCommand.ts +8 -7
- package/{commands → src/commands}/ListResourcesCommand.ts +8 -7
- package/{commands → src/commands}/PromoteResourceShareCreatedFromPolicyCommand.ts +11 -10
- package/{commands → src/commands}/RejectResourceShareInvitationCommand.ts +8 -7
- package/{commands → src/commands}/TagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UntagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UpdateResourceShareCommand.ts +8 -7
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{pagination → src/pagination}/GetResourcePoliciesPaginator.ts +4 -3
- package/{pagination → src/pagination}/GetResourceShareAssociationsPaginator.ts +4 -3
- package/{pagination → src/pagination}/GetResourceShareInvitationsPaginator.ts +4 -3
- package/{pagination → src/pagination}/GetResourceSharesPaginator.ts +4 -3
- package/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{pagination → src/pagination}/ListPendingInvitationResourcesPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListPermissionsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListPrincipalsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListResourceSharePermissionsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListResourceTypesPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListResourcesPaginator.ts +4 -3
- package/{protocols → src/protocols}/Aws_restJson1.ts +68 -66
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- package/dist/cjs/RAM.js.map +0 -1
- package/dist/cjs/RAMClient.js.map +0 -1
- package/dist/cjs/commands/AcceptResourceShareInvitationCommand.js.map +0 -1
- package/dist/cjs/commands/AssociateResourceShareCommand.js.map +0 -1
- package/dist/cjs/commands/AssociateResourceSharePermissionCommand.js.map +0 -1
- package/dist/cjs/commands/CreateResourceShareCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteResourceShareCommand.js.map +0 -1
- package/dist/cjs/commands/DisassociateResourceShareCommand.js.map +0 -1
- package/dist/cjs/commands/DisassociateResourceSharePermissionCommand.js.map +0 -1
- package/dist/cjs/commands/EnableSharingWithAwsOrganizationCommand.js.map +0 -1
- package/dist/cjs/commands/GetPermissionCommand.js.map +0 -1
- package/dist/cjs/commands/GetResourcePoliciesCommand.js.map +0 -1
- package/dist/cjs/commands/GetResourceShareAssociationsCommand.js.map +0 -1
- package/dist/cjs/commands/GetResourceShareInvitationsCommand.js.map +0 -1
- package/dist/cjs/commands/GetResourceSharesCommand.js.map +0 -1
- package/dist/cjs/commands/ListPendingInvitationResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/ListPermissionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListPrincipalsCommand.js.map +0 -1
- package/dist/cjs/commands/ListResourceSharePermissionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListResourceTypesCommand.js.map +0 -1
- package/dist/cjs/commands/ListResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/PromoteResourceShareCreatedFromPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/RejectResourceShareInvitationCommand.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/UpdateResourceShareCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -42
- package/dist/cjs/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/GetResourcePoliciesPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetResourceShareAssociationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetResourceShareInvitationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetResourceSharesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPendingInvitationResourcesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPermissionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPrincipalsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListResourceSharePermissionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListResourceTypesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListResourcesPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.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/RAM.js.map +0 -1
- package/dist/es/RAMClient.js.map +0 -1
- package/dist/es/commands/AcceptResourceShareInvitationCommand.js.map +0 -1
- package/dist/es/commands/AssociateResourceShareCommand.js.map +0 -1
- package/dist/es/commands/AssociateResourceSharePermissionCommand.js.map +0 -1
- package/dist/es/commands/CreateResourceShareCommand.js.map +0 -1
- package/dist/es/commands/DeleteResourceShareCommand.js.map +0 -1
- package/dist/es/commands/DisassociateResourceShareCommand.js.map +0 -1
- package/dist/es/commands/DisassociateResourceSharePermissionCommand.js.map +0 -1
- package/dist/es/commands/EnableSharingWithAwsOrganizationCommand.js.map +0 -1
- package/dist/es/commands/GetPermissionCommand.js.map +0 -1
- package/dist/es/commands/GetResourcePoliciesCommand.js.map +0 -1
- package/dist/es/commands/GetResourceShareAssociationsCommand.js.map +0 -1
- package/dist/es/commands/GetResourceShareInvitationsCommand.js.map +0 -1
- package/dist/es/commands/GetResourceSharesCommand.js.map +0 -1
- package/dist/es/commands/ListPendingInvitationResourcesCommand.js.map +0 -1
- package/dist/es/commands/ListPermissionsCommand.js.map +0 -1
- package/dist/es/commands/ListPrincipalsCommand.js.map +0 -1
- package/dist/es/commands/ListResourceSharePermissionsCommand.js.map +0 -1
- package/dist/es/commands/ListResourceTypesCommand.js.map +0 -1
- package/dist/es/commands/ListResourcesCommand.js.map +0 -1
- package/dist/es/commands/PromoteResourceShareCreatedFromPolicyCommand.js.map +0 -1
- package/dist/es/commands/RejectResourceShareInvitationCommand.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/UpdateResourceShareCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- 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/GetResourcePoliciesPaginator.js.map +0 -1
- package/dist/es/pagination/GetResourceShareAssociationsPaginator.js.map +0 -1
- package/dist/es/pagination/GetResourceShareInvitationsPaginator.js.map +0 -1
- package/dist/es/pagination/GetResourceSharesPaginator.js.map +0 -1
- package/dist/es/pagination/ListPendingInvitationResourcesPaginator.js.map +0 -1
- package/dist/es/pagination/ListPermissionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListPrincipalsPaginator.js.map +0 -1
- package/dist/es/pagination/ListResourceSharePermissionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListResourceTypesPaginator.js.map +0 -1
- package/dist/es/pagination/ListResourcesPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.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
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1AcceptResourceShareInvitationCommand = function
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -14,7 +14,7 @@ export var serializeAws_restJson1AcceptResourceShareInvitationCommand = function
|
|
|
14
14
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/acceptresourceshareinvitation";
|
|
15
15
|
body = JSON.stringify(__assign(__assign({}, (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.resourceShareInvitationArn !== undefined &&
|
|
16
16
|
input.resourceShareInvitationArn !== null && { resourceShareInvitationArn: input.resourceShareInvitationArn })));
|
|
17
|
-
return [2
|
|
17
|
+
return [2, new __HttpRequest({
|
|
18
18
|
protocol: protocol,
|
|
19
19
|
hostname: hostname,
|
|
20
20
|
port: port,
|
|
@@ -30,7 +30,7 @@ export var serializeAws_restJson1AssociateResourceShareCommand = function (input
|
|
|
30
30
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
31
31
|
return __generator(this, function (_c) {
|
|
32
32
|
switch (_c.label) {
|
|
33
|
-
case 0: return [4
|
|
33
|
+
case 0: return [4, context.endpoint()];
|
|
34
34
|
case 1:
|
|
35
35
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
36
36
|
headers = {
|
|
@@ -45,7 +45,7 @@ export var serializeAws_restJson1AssociateResourceShareCommand = function (input
|
|
|
45
45
|
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
46
46
|
})), (input.resourceShareArn !== undefined &&
|
|
47
47
|
input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })));
|
|
48
|
-
return [2
|
|
48
|
+
return [2, new __HttpRequest({
|
|
49
49
|
protocol: protocol,
|
|
50
50
|
hostname: hostname,
|
|
51
51
|
port: port,
|
|
@@ -61,7 +61,7 @@ export var serializeAws_restJson1AssociateResourceSharePermissionCommand = funct
|
|
|
61
61
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
62
62
|
return __generator(this, function (_c) {
|
|
63
63
|
switch (_c.label) {
|
|
64
|
-
case 0: return [4
|
|
64
|
+
case 0: return [4, context.endpoint()];
|
|
65
65
|
case 1:
|
|
66
66
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
67
67
|
headers = {
|
|
@@ -71,7 +71,7 @@ export var serializeAws_restJson1AssociateResourceSharePermissionCommand = funct
|
|
|
71
71
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn })), (input.permissionVersion !== undefined &&
|
|
72
72
|
input.permissionVersion !== null && { permissionVersion: input.permissionVersion })), (input.replace !== undefined && input.replace !== null && { replace: input.replace })), (input.resourceShareArn !== undefined &&
|
|
73
73
|
input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })));
|
|
74
|
-
return [2
|
|
74
|
+
return [2, new __HttpRequest({
|
|
75
75
|
protocol: protocol,
|
|
76
76
|
hostname: hostname,
|
|
77
77
|
port: port,
|
|
@@ -87,7 +87,7 @@ export var serializeAws_restJson1CreateResourceShareCommand = function (input, c
|
|
|
87
87
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
88
88
|
return __generator(this, function (_c) {
|
|
89
89
|
switch (_c.label) {
|
|
90
|
-
case 0: return [4
|
|
90
|
+
case 0: return [4, context.endpoint()];
|
|
91
91
|
case 1:
|
|
92
92
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
93
93
|
headers = {
|
|
@@ -106,7 +106,7 @@ export var serializeAws_restJson1CreateResourceShareCommand = function (input, c
|
|
|
106
106
|
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
107
107
|
})), (input.tags !== undefined &&
|
|
108
108
|
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
109
|
-
return [2
|
|
109
|
+
return [2, new __HttpRequest({
|
|
110
110
|
protocol: protocol,
|
|
111
111
|
hostname: hostname,
|
|
112
112
|
port: port,
|
|
@@ -122,13 +122,13 @@ export var serializeAws_restJson1DeleteResourceShareCommand = function (input, c
|
|
|
122
122
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
123
123
|
return __generator(this, function (_c) {
|
|
124
124
|
switch (_c.label) {
|
|
125
|
-
case 0: return [4
|
|
125
|
+
case 0: return [4, context.endpoint()];
|
|
126
126
|
case 1:
|
|
127
127
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
128
128
|
headers = {};
|
|
129
129
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deleteresourceshare";
|
|
130
130
|
query = __assign(__assign({}, (input.resourceShareArn !== undefined && { resourceShareArn: input.resourceShareArn })), (input.clientToken !== undefined && { clientToken: input.clientToken }));
|
|
131
|
-
return [2
|
|
131
|
+
return [2, new __HttpRequest({
|
|
132
132
|
protocol: protocol,
|
|
133
133
|
hostname: hostname,
|
|
134
134
|
port: port,
|
|
@@ -145,7 +145,7 @@ export var serializeAws_restJson1DisassociateResourceShareCommand = function (in
|
|
|
145
145
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
146
146
|
return __generator(this, function (_c) {
|
|
147
147
|
switch (_c.label) {
|
|
148
|
-
case 0: return [4
|
|
148
|
+
case 0: return [4, context.endpoint()];
|
|
149
149
|
case 1:
|
|
150
150
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
151
151
|
headers = {
|
|
@@ -160,7 +160,7 @@ export var serializeAws_restJson1DisassociateResourceShareCommand = function (in
|
|
|
160
160
|
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
161
161
|
})), (input.resourceShareArn !== undefined &&
|
|
162
162
|
input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })));
|
|
163
|
-
return [2
|
|
163
|
+
return [2, new __HttpRequest({
|
|
164
164
|
protocol: protocol,
|
|
165
165
|
hostname: hostname,
|
|
166
166
|
port: port,
|
|
@@ -176,7 +176,7 @@ export var serializeAws_restJson1DisassociateResourceSharePermissionCommand = fu
|
|
|
176
176
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
177
177
|
return __generator(this, function (_c) {
|
|
178
178
|
switch (_c.label) {
|
|
179
|
-
case 0: return [4
|
|
179
|
+
case 0: return [4, context.endpoint()];
|
|
180
180
|
case 1:
|
|
181
181
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
182
182
|
headers = {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_restJson1DisassociateResourceSharePermissionCommand = fu
|
|
|
185
185
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/disassociateresourcesharepermission";
|
|
186
186
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn })), (input.resourceShareArn !== undefined &&
|
|
187
187
|
input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, new __HttpRequest({
|
|
189
189
|
protocol: protocol,
|
|
190
190
|
hostname: hostname,
|
|
191
191
|
port: port,
|
|
@@ -201,7 +201,7 @@ export var serializeAws_restJson1EnableSharingWithAwsOrganizationCommand = funct
|
|
|
201
201
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
202
202
|
return __generator(this, function (_c) {
|
|
203
203
|
switch (_c.label) {
|
|
204
|
-
case 0: return [4
|
|
204
|
+
case 0: return [4, context.endpoint()];
|
|
205
205
|
case 1:
|
|
206
206
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
207
207
|
headers = {
|
|
@@ -209,7 +209,7 @@ export var serializeAws_restJson1EnableSharingWithAwsOrganizationCommand = funct
|
|
|
209
209
|
};
|
|
210
210
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/enablesharingwithawsorganization";
|
|
211
211
|
body = "";
|
|
212
|
-
return [2
|
|
212
|
+
return [2, new __HttpRequest({
|
|
213
213
|
protocol: protocol,
|
|
214
214
|
hostname: hostname,
|
|
215
215
|
port: port,
|
|
@@ -225,7 +225,7 @@ export var serializeAws_restJson1GetPermissionCommand = function (input, context
|
|
|
225
225
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
226
226
|
return __generator(this, function (_c) {
|
|
227
227
|
switch (_c.label) {
|
|
228
|
-
case 0: return [4
|
|
228
|
+
case 0: return [4, context.endpoint()];
|
|
229
229
|
case 1:
|
|
230
230
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
231
231
|
headers = {
|
|
@@ -234,7 +234,7 @@ export var serializeAws_restJson1GetPermissionCommand = function (input, context
|
|
|
234
234
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getpermission";
|
|
235
235
|
body = JSON.stringify(__assign(__assign({}, (input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn })), (input.permissionVersion !== undefined &&
|
|
236
236
|
input.permissionVersion !== null && { permissionVersion: input.permissionVersion })));
|
|
237
|
-
return [2
|
|
237
|
+
return [2, new __HttpRequest({
|
|
238
238
|
protocol: protocol,
|
|
239
239
|
hostname: hostname,
|
|
240
240
|
port: port,
|
|
@@ -250,7 +250,7 @@ export var serializeAws_restJson1GetResourcePoliciesCommand = function (input, c
|
|
|
250
250
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
251
251
|
return __generator(this, function (_c) {
|
|
252
252
|
switch (_c.label) {
|
|
253
|
-
case 0: return [4
|
|
253
|
+
case 0: return [4, context.endpoint()];
|
|
254
254
|
case 1:
|
|
255
255
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
256
256
|
headers = {
|
|
@@ -261,7 +261,7 @@ export var serializeAws_restJson1GetResourcePoliciesCommand = function (input, c
|
|
|
261
261
|
input.resourceArns !== null && {
|
|
262
262
|
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
263
263
|
})));
|
|
264
|
-
return [2
|
|
264
|
+
return [2, new __HttpRequest({
|
|
265
265
|
protocol: protocol,
|
|
266
266
|
hostname: hostname,
|
|
267
267
|
port: port,
|
|
@@ -277,7 +277,7 @@ export var serializeAws_restJson1GetResourceShareAssociationsCommand = function
|
|
|
277
277
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
278
278
|
return __generator(this, function (_c) {
|
|
279
279
|
switch (_c.label) {
|
|
280
|
-
case 0: return [4
|
|
280
|
+
case 0: return [4, context.endpoint()];
|
|
281
281
|
case 1:
|
|
282
282
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
283
283
|
headers = {
|
|
@@ -290,7 +290,7 @@ export var serializeAws_restJson1GetResourceShareAssociationsCommand = function
|
|
|
290
290
|
input.resourceShareArns !== null && {
|
|
291
291
|
resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
|
|
292
292
|
})));
|
|
293
|
-
return [2
|
|
293
|
+
return [2, new __HttpRequest({
|
|
294
294
|
protocol: protocol,
|
|
295
295
|
hostname: hostname,
|
|
296
296
|
port: port,
|
|
@@ -306,7 +306,7 @@ export var serializeAws_restJson1GetResourceShareInvitationsCommand = function (
|
|
|
306
306
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
307
307
|
return __generator(this, function (_c) {
|
|
308
308
|
switch (_c.label) {
|
|
309
|
-
case 0: return [4
|
|
309
|
+
case 0: return [4, context.endpoint()];
|
|
310
310
|
case 1:
|
|
311
311
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
312
312
|
headers = {
|
|
@@ -320,7 +320,7 @@ export var serializeAws_restJson1GetResourceShareInvitationsCommand = function (
|
|
|
320
320
|
input.resourceShareInvitationArns !== null && {
|
|
321
321
|
resourceShareInvitationArns: serializeAws_restJson1ResourceShareInvitationArnList(input.resourceShareInvitationArns, context),
|
|
322
322
|
})));
|
|
323
|
-
return [2
|
|
323
|
+
return [2, new __HttpRequest({
|
|
324
324
|
protocol: protocol,
|
|
325
325
|
hostname: hostname,
|
|
326
326
|
port: port,
|
|
@@ -336,7 +336,7 @@ export var serializeAws_restJson1GetResourceSharesCommand = function (input, con
|
|
|
336
336
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
337
337
|
return __generator(this, function (_c) {
|
|
338
338
|
switch (_c.label) {
|
|
339
|
-
case 0: return [4
|
|
339
|
+
case 0: return [4, context.endpoint()];
|
|
340
340
|
case 1:
|
|
341
341
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
342
342
|
headers = {
|
|
@@ -349,7 +349,7 @@ export var serializeAws_restJson1GetResourceSharesCommand = function (input, con
|
|
|
349
349
|
})), (input.resourceShareStatus !== undefined &&
|
|
350
350
|
input.resourceShareStatus !== null && { resourceShareStatus: input.resourceShareStatus })), (input.tagFilters !== undefined &&
|
|
351
351
|
input.tagFilters !== null && { tagFilters: serializeAws_restJson1TagFilters(input.tagFilters, context) })));
|
|
352
|
-
return [2
|
|
352
|
+
return [2, new __HttpRequest({
|
|
353
353
|
protocol: protocol,
|
|
354
354
|
hostname: hostname,
|
|
355
355
|
port: port,
|
|
@@ -365,7 +365,7 @@ export var serializeAws_restJson1ListPendingInvitationResourcesCommand = functio
|
|
|
365
365
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
366
366
|
return __generator(this, function (_c) {
|
|
367
367
|
switch (_c.label) {
|
|
368
|
-
case 0: return [4
|
|
368
|
+
case 0: return [4, context.endpoint()];
|
|
369
369
|
case 1:
|
|
370
370
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
371
371
|
headers = {
|
|
@@ -374,7 +374,7 @@ export var serializeAws_restJson1ListPendingInvitationResourcesCommand = functio
|
|
|
374
374
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listpendinginvitationresources";
|
|
375
375
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceShareInvitationArn !== undefined &&
|
|
376
376
|
input.resourceShareInvitationArn !== null && { resourceShareInvitationArn: input.resourceShareInvitationArn })));
|
|
377
|
-
return [2
|
|
377
|
+
return [2, new __HttpRequest({
|
|
378
378
|
protocol: protocol,
|
|
379
379
|
hostname: hostname,
|
|
380
380
|
port: port,
|
|
@@ -390,7 +390,7 @@ export var serializeAws_restJson1ListPermissionsCommand = function (input, conte
|
|
|
390
390
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
391
391
|
return __generator(this, function (_c) {
|
|
392
392
|
switch (_c.label) {
|
|
393
|
-
case 0: return [4
|
|
393
|
+
case 0: return [4, context.endpoint()];
|
|
394
394
|
case 1:
|
|
395
395
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
396
396
|
headers = {
|
|
@@ -398,7 +398,7 @@ export var serializeAws_restJson1ListPermissionsCommand = function (input, conte
|
|
|
398
398
|
};
|
|
399
399
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listpermissions";
|
|
400
400
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType })));
|
|
401
|
-
return [2
|
|
401
|
+
return [2, new __HttpRequest({
|
|
402
402
|
protocol: protocol,
|
|
403
403
|
hostname: hostname,
|
|
404
404
|
port: port,
|
|
@@ -414,7 +414,7 @@ export var serializeAws_restJson1ListPrincipalsCommand = function (input, contex
|
|
|
414
414
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
415
415
|
return __generator(this, function (_c) {
|
|
416
416
|
switch (_c.label) {
|
|
417
|
-
case 0: return [4
|
|
417
|
+
case 0: return [4, context.endpoint()];
|
|
418
418
|
case 1:
|
|
419
419
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
420
420
|
headers = {
|
|
@@ -428,7 +428,7 @@ export var serializeAws_restJson1ListPrincipalsCommand = function (input, contex
|
|
|
428
428
|
input.resourceShareArns !== null && {
|
|
429
429
|
resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
|
|
430
430
|
})), (input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType })));
|
|
431
|
-
return [2
|
|
431
|
+
return [2, new __HttpRequest({
|
|
432
432
|
protocol: protocol,
|
|
433
433
|
hostname: hostname,
|
|
434
434
|
port: port,
|
|
@@ -444,7 +444,7 @@ export var serializeAws_restJson1ListResourcesCommand = function (input, context
|
|
|
444
444
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
445
445
|
return __generator(this, function (_c) {
|
|
446
446
|
switch (_c.label) {
|
|
447
|
-
case 0: return [4
|
|
447
|
+
case 0: return [4, context.endpoint()];
|
|
448
448
|
case 1:
|
|
449
449
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
450
450
|
headers = {
|
|
@@ -458,7 +458,7 @@ export var serializeAws_restJson1ListResourcesCommand = function (input, context
|
|
|
458
458
|
input.resourceShareArns !== null && {
|
|
459
459
|
resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
|
|
460
460
|
})), (input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType })));
|
|
461
|
-
return [2
|
|
461
|
+
return [2, new __HttpRequest({
|
|
462
462
|
protocol: protocol,
|
|
463
463
|
hostname: hostname,
|
|
464
464
|
port: port,
|
|
@@ -474,7 +474,7 @@ export var serializeAws_restJson1ListResourceSharePermissionsCommand = function
|
|
|
474
474
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
475
475
|
return __generator(this, function (_c) {
|
|
476
476
|
switch (_c.label) {
|
|
477
|
-
case 0: return [4
|
|
477
|
+
case 0: return [4, context.endpoint()];
|
|
478
478
|
case 1:
|
|
479
479
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
480
480
|
headers = {
|
|
@@ -483,7 +483,7 @@ export var serializeAws_restJson1ListResourceSharePermissionsCommand = function
|
|
|
483
483
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listresourcesharepermissions";
|
|
484
484
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceShareArn !== undefined &&
|
|
485
485
|
input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })));
|
|
486
|
-
return [2
|
|
486
|
+
return [2, new __HttpRequest({
|
|
487
487
|
protocol: protocol,
|
|
488
488
|
hostname: hostname,
|
|
489
489
|
port: port,
|
|
@@ -499,7 +499,7 @@ export var serializeAws_restJson1ListResourceTypesCommand = function (input, con
|
|
|
499
499
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
500
500
|
return __generator(this, function (_c) {
|
|
501
501
|
switch (_c.label) {
|
|
502
|
-
case 0: return [4
|
|
502
|
+
case 0: return [4, context.endpoint()];
|
|
503
503
|
case 1:
|
|
504
504
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
505
505
|
headers = {
|
|
@@ -507,7 +507,7 @@ export var serializeAws_restJson1ListResourceTypesCommand = function (input, con
|
|
|
507
507
|
};
|
|
508
508
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listresourcetypes";
|
|
509
509
|
body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
510
|
-
return [2
|
|
510
|
+
return [2, new __HttpRequest({
|
|
511
511
|
protocol: protocol,
|
|
512
512
|
hostname: hostname,
|
|
513
513
|
port: port,
|
|
@@ -523,13 +523,13 @@ export var serializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand =
|
|
|
523
523
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
524
524
|
return __generator(this, function (_c) {
|
|
525
525
|
switch (_c.label) {
|
|
526
|
-
case 0: return [4
|
|
526
|
+
case 0: return [4, context.endpoint()];
|
|
527
527
|
case 1:
|
|
528
528
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
529
529
|
headers = {};
|
|
530
530
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/promoteresourcesharecreatedfrompolicy";
|
|
531
531
|
query = __assign({}, (input.resourceShareArn !== undefined && { resourceShareArn: input.resourceShareArn }));
|
|
532
|
-
return [2
|
|
532
|
+
return [2, new __HttpRequest({
|
|
533
533
|
protocol: protocol,
|
|
534
534
|
hostname: hostname,
|
|
535
535
|
port: port,
|
|
@@ -546,7 +546,7 @@ export var serializeAws_restJson1RejectResourceShareInvitationCommand = function
|
|
|
546
546
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
547
547
|
return __generator(this, function (_c) {
|
|
548
548
|
switch (_c.label) {
|
|
549
|
-
case 0: return [4
|
|
549
|
+
case 0: return [4, context.endpoint()];
|
|
550
550
|
case 1:
|
|
551
551
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
552
552
|
headers = {
|
|
@@ -555,7 +555,7 @@ export var serializeAws_restJson1RejectResourceShareInvitationCommand = function
|
|
|
555
555
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rejectresourceshareinvitation";
|
|
556
556
|
body = JSON.stringify(__assign(__assign({}, (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.resourceShareInvitationArn !== undefined &&
|
|
557
557
|
input.resourceShareInvitationArn !== null && { resourceShareInvitationArn: input.resourceShareInvitationArn })));
|
|
558
|
-
return [2
|
|
558
|
+
return [2, new __HttpRequest({
|
|
559
559
|
protocol: protocol,
|
|
560
560
|
hostname: hostname,
|
|
561
561
|
port: port,
|
|
@@ -571,7 +571,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
571
571
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
572
572
|
return __generator(this, function (_c) {
|
|
573
573
|
switch (_c.label) {
|
|
574
|
-
case 0: return [4
|
|
574
|
+
case 0: return [4, context.endpoint()];
|
|
575
575
|
case 1:
|
|
576
576
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
577
577
|
headers = {
|
|
@@ -581,7 +581,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
581
581
|
body = JSON.stringify(__assign(__assign({}, (input.resourceShareArn !== undefined &&
|
|
582
582
|
input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })), (input.tags !== undefined &&
|
|
583
583
|
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
584
|
-
return [2
|
|
584
|
+
return [2, new __HttpRequest({
|
|
585
585
|
protocol: protocol,
|
|
586
586
|
hostname: hostname,
|
|
587
587
|
port: port,
|
|
@@ -597,7 +597,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
597
597
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
598
598
|
return __generator(this, function (_c) {
|
|
599
599
|
switch (_c.label) {
|
|
600
|
-
case 0: return [4
|
|
600
|
+
case 0: return [4, context.endpoint()];
|
|
601
601
|
case 1:
|
|
602
602
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
603
603
|
headers = {
|
|
@@ -607,7 +607,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
607
607
|
body = JSON.stringify(__assign(__assign({}, (input.resourceShareArn !== undefined &&
|
|
608
608
|
input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })), (input.tagKeys !== undefined &&
|
|
609
609
|
input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
|
|
610
|
-
return [2
|
|
610
|
+
return [2, new __HttpRequest({
|
|
611
611
|
protocol: protocol,
|
|
612
612
|
hostname: hostname,
|
|
613
613
|
port: port,
|
|
@@ -623,7 +623,7 @@ export var serializeAws_restJson1UpdateResourceShareCommand = function (input, c
|
|
|
623
623
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
624
624
|
return __generator(this, function (_c) {
|
|
625
625
|
switch (_c.label) {
|
|
626
|
-
case 0: return [4
|
|
626
|
+
case 0: return [4, context.endpoint()];
|
|
627
627
|
case 1:
|
|
628
628
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
629
629
|
headers = {
|
|
@@ -633,7 +633,7 @@ export var serializeAws_restJson1UpdateResourceShareCommand = function (input, c
|
|
|
633
633
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.allowExternalPrincipals !== undefined &&
|
|
634
634
|
input.allowExternalPrincipals !== null && { allowExternalPrincipals: input.allowExternalPrincipals })), (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.resourceShareArn !== undefined &&
|
|
635
635
|
input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })));
|
|
636
|
-
return [2
|
|
636
|
+
return [2, new __HttpRequest({
|
|
637
637
|
protocol: protocol,
|
|
638
638
|
hostname: hostname,
|
|
639
639
|
port: port,
|
|
@@ -651,7 +651,7 @@ export var deserializeAws_restJson1AcceptResourceShareInvitationCommand = functi
|
|
|
651
651
|
switch (_c.label) {
|
|
652
652
|
case 0:
|
|
653
653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
654
|
-
return [2
|
|
654
|
+
return [2, deserializeAws_restJson1AcceptResourceShareInvitationCommandError(output, context)];
|
|
655
655
|
}
|
|
656
656
|
contents = {
|
|
657
657
|
$metadata: deserializeMetadata(output),
|
|
@@ -660,7 +660,7 @@ export var deserializeAws_restJson1AcceptResourceShareInvitationCommand = functi
|
|
|
660
660
|
};
|
|
661
661
|
_a = __expectNonNull;
|
|
662
662
|
_b = __expectObject;
|
|
663
|
-
return [4
|
|
663
|
+
return [4, parseBody(output.body, context)];
|
|
664
664
|
case 1:
|
|
665
665
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
666
666
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
@@ -669,7 +669,7 @@ export var deserializeAws_restJson1AcceptResourceShareInvitationCommand = functi
|
|
|
669
669
|
if (data.resourceShareInvitation !== undefined && data.resourceShareInvitation !== null) {
|
|
670
670
|
contents.resourceShareInvitation = deserializeAws_restJson1ResourceShareInvitation(data.resourceShareInvitation, context);
|
|
671
671
|
}
|
|
672
|
-
return [2
|
|
672
|
+
return [2, Promise.resolve(contents)];
|
|
673
673
|
}
|
|
674
674
|
});
|
|
675
675
|
}); };
|
|
@@ -681,95 +681,95 @@ var deserializeAws_restJson1AcceptResourceShareInvitationCommandError = function
|
|
|
681
681
|
case 0:
|
|
682
682
|
_a = [__assign({}, output)];
|
|
683
683
|
_o = {};
|
|
684
|
-
return [4
|
|
684
|
+
return [4, parseBody(output.body, context)];
|
|
685
685
|
case 1:
|
|
686
686
|
parsedOutput = __assign.apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
|
|
687
687
|
errorCode = "UnknownError";
|
|
688
688
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
689
689
|
_b = errorCode;
|
|
690
690
|
switch (_b) {
|
|
691
|
-
case "IdempotentParameterMismatchException": return [3
|
|
692
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException": return [3
|
|
693
|
-
case "InvalidClientTokenException": return [3
|
|
694
|
-
case "com.amazonaws.ram#InvalidClientTokenException": return [3
|
|
695
|
-
case "MalformedArnException": return [3
|
|
696
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
697
|
-
case "OperationNotPermittedException": return [3
|
|
698
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
699
|
-
case "ResourceShareInvitationAlreadyAcceptedException": return [3
|
|
700
|
-
case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException": return [3
|
|
701
|
-
case "ResourceShareInvitationAlreadyRejectedException": return [3
|
|
702
|
-
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException": return [3
|
|
703
|
-
case "ResourceShareInvitationArnNotFoundException": return [3
|
|
704
|
-
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException": return [3
|
|
705
|
-
case "ResourceShareInvitationExpiredException": return [3
|
|
706
|
-
case "com.amazonaws.ram#ResourceShareInvitationExpiredException": return [3
|
|
707
|
-
case "ServerInternalException": return [3
|
|
708
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
709
|
-
case "ServiceUnavailableException": return [3
|
|
710
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
691
|
+
case "IdempotentParameterMismatchException": return [3, 2];
|
|
692
|
+
case "com.amazonaws.ram#IdempotentParameterMismatchException": return [3, 2];
|
|
693
|
+
case "InvalidClientTokenException": return [3, 4];
|
|
694
|
+
case "com.amazonaws.ram#InvalidClientTokenException": return [3, 4];
|
|
695
|
+
case "MalformedArnException": return [3, 6];
|
|
696
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 6];
|
|
697
|
+
case "OperationNotPermittedException": return [3, 8];
|
|
698
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 8];
|
|
699
|
+
case "ResourceShareInvitationAlreadyAcceptedException": return [3, 10];
|
|
700
|
+
case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException": return [3, 10];
|
|
701
|
+
case "ResourceShareInvitationAlreadyRejectedException": return [3, 12];
|
|
702
|
+
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException": return [3, 12];
|
|
703
|
+
case "ResourceShareInvitationArnNotFoundException": return [3, 14];
|
|
704
|
+
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException": return [3, 14];
|
|
705
|
+
case "ResourceShareInvitationExpiredException": return [3, 16];
|
|
706
|
+
case "com.amazonaws.ram#ResourceShareInvitationExpiredException": return [3, 16];
|
|
707
|
+
case "ServerInternalException": return [3, 18];
|
|
708
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 18];
|
|
709
|
+
case "ServiceUnavailableException": return [3, 20];
|
|
710
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 20];
|
|
711
711
|
}
|
|
712
|
-
return [3
|
|
712
|
+
return [3, 22];
|
|
713
713
|
case 2:
|
|
714
714
|
_c = [{}];
|
|
715
|
-
return [4
|
|
715
|
+
return [4, deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
716
716
|
case 3:
|
|
717
717
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
718
|
-
return [3
|
|
718
|
+
return [3, 23];
|
|
719
719
|
case 4:
|
|
720
720
|
_d = [{}];
|
|
721
|
-
return [4
|
|
721
|
+
return [4, deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context)];
|
|
722
722
|
case 5:
|
|
723
723
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
724
|
-
return [3
|
|
724
|
+
return [3, 23];
|
|
725
725
|
case 6:
|
|
726
726
|
_e = [{}];
|
|
727
|
-
return [4
|
|
727
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
728
728
|
case 7:
|
|
729
729
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
730
|
-
return [3
|
|
730
|
+
return [3, 23];
|
|
731
731
|
case 8:
|
|
732
732
|
_f = [{}];
|
|
733
|
-
return [4
|
|
733
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
734
734
|
case 9:
|
|
735
735
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
736
|
-
return [3
|
|
736
|
+
return [3, 23];
|
|
737
737
|
case 10:
|
|
738
738
|
_g = [{}];
|
|
739
|
-
return [4
|
|
739
|
+
return [4, deserializeAws_restJson1ResourceShareInvitationAlreadyAcceptedExceptionResponse(parsedOutput, context)];
|
|
740
740
|
case 11:
|
|
741
741
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
742
|
-
return [3
|
|
742
|
+
return [3, 23];
|
|
743
743
|
case 12:
|
|
744
744
|
_h = [{}];
|
|
745
|
-
return [4
|
|
745
|
+
return [4, deserializeAws_restJson1ResourceShareInvitationAlreadyRejectedExceptionResponse(parsedOutput, context)];
|
|
746
746
|
case 13:
|
|
747
747
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
748
|
-
return [3
|
|
748
|
+
return [3, 23];
|
|
749
749
|
case 14:
|
|
750
750
|
_j = [{}];
|
|
751
|
-
return [4
|
|
751
|
+
return [4, deserializeAws_restJson1ResourceShareInvitationArnNotFoundExceptionResponse(parsedOutput, context)];
|
|
752
752
|
case 15:
|
|
753
753
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
754
|
-
return [3
|
|
754
|
+
return [3, 23];
|
|
755
755
|
case 16:
|
|
756
756
|
_k = [{}];
|
|
757
|
-
return [4
|
|
757
|
+
return [4, deserializeAws_restJson1ResourceShareInvitationExpiredExceptionResponse(parsedOutput, context)];
|
|
758
758
|
case 17:
|
|
759
759
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
760
|
-
return [3
|
|
760
|
+
return [3, 23];
|
|
761
761
|
case 18:
|
|
762
762
|
_l = [{}];
|
|
763
|
-
return [4
|
|
763
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
764
764
|
case 19:
|
|
765
765
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
766
|
-
return [3
|
|
766
|
+
return [3, 23];
|
|
767
767
|
case 20:
|
|
768
768
|
_m = [{}];
|
|
769
|
-
return [4
|
|
769
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
770
770
|
case 21:
|
|
771
771
|
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
772
|
-
return [3
|
|
772
|
+
return [3, 23];
|
|
773
773
|
case 22:
|
|
774
774
|
parsedBody = parsedOutput.body;
|
|
775
775
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -779,7 +779,7 @@ var deserializeAws_restJson1AcceptResourceShareInvitationCommandError = function
|
|
|
779
779
|
message = response.message || response.Message || errorCode;
|
|
780
780
|
response.message = message;
|
|
781
781
|
delete response.Message;
|
|
782
|
-
return [2
|
|
782
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
783
783
|
}
|
|
784
784
|
});
|
|
785
785
|
}); };
|
|
@@ -789,7 +789,7 @@ export var deserializeAws_restJson1AssociateResourceShareCommand = function (out
|
|
|
789
789
|
switch (_c.label) {
|
|
790
790
|
case 0:
|
|
791
791
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
-
return [2
|
|
792
|
+
return [2, deserializeAws_restJson1AssociateResourceShareCommandError(output, context)];
|
|
793
793
|
}
|
|
794
794
|
contents = {
|
|
795
795
|
$metadata: deserializeMetadata(output),
|
|
@@ -798,7 +798,7 @@ export var deserializeAws_restJson1AssociateResourceShareCommand = function (out
|
|
|
798
798
|
};
|
|
799
799
|
_a = __expectNonNull;
|
|
800
800
|
_b = __expectObject;
|
|
801
|
-
return [4
|
|
801
|
+
return [4, parseBody(output.body, context)];
|
|
802
802
|
case 1:
|
|
803
803
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
804
804
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
@@ -807,7 +807,7 @@ export var deserializeAws_restJson1AssociateResourceShareCommand = function (out
|
|
|
807
807
|
if (data.resourceShareAssociations !== undefined && data.resourceShareAssociations !== null) {
|
|
808
808
|
contents.resourceShareAssociations = deserializeAws_restJson1ResourceShareAssociationList(data.resourceShareAssociations, context);
|
|
809
809
|
}
|
|
810
|
-
return [2
|
|
810
|
+
return [2, Promise.resolve(contents)];
|
|
811
811
|
}
|
|
812
812
|
});
|
|
813
813
|
}); };
|
|
@@ -819,95 +819,95 @@ var deserializeAws_restJson1AssociateResourceShareCommandError = function (outpu
|
|
|
819
819
|
case 0:
|
|
820
820
|
_a = [__assign({}, output)];
|
|
821
821
|
_o = {};
|
|
822
|
-
return [4
|
|
822
|
+
return [4, parseBody(output.body, context)];
|
|
823
823
|
case 1:
|
|
824
824
|
parsedOutput = __assign.apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
|
|
825
825
|
errorCode = "UnknownError";
|
|
826
826
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
827
|
_b = errorCode;
|
|
828
828
|
switch (_b) {
|
|
829
|
-
case "IdempotentParameterMismatchException": return [3
|
|
830
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException": return [3
|
|
831
|
-
case "InvalidClientTokenException": return [3
|
|
832
|
-
case "com.amazonaws.ram#InvalidClientTokenException": return [3
|
|
833
|
-
case "InvalidParameterException": return [3
|
|
834
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
835
|
-
case "InvalidStateTransitionException": return [3
|
|
836
|
-
case "com.amazonaws.ram#InvalidStateTransitionException": return [3
|
|
837
|
-
case "MalformedArnException": return [3
|
|
838
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
839
|
-
case "OperationNotPermittedException": return [3
|
|
840
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
841
|
-
case "ResourceShareLimitExceededException": return [3
|
|
842
|
-
case "com.amazonaws.ram#ResourceShareLimitExceededException": return [3
|
|
843
|
-
case "ServerInternalException": return [3
|
|
844
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
845
|
-
case "ServiceUnavailableException": return [3
|
|
846
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
847
|
-
case "UnknownResourceException": return [3
|
|
848
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
829
|
+
case "IdempotentParameterMismatchException": return [3, 2];
|
|
830
|
+
case "com.amazonaws.ram#IdempotentParameterMismatchException": return [3, 2];
|
|
831
|
+
case "InvalidClientTokenException": return [3, 4];
|
|
832
|
+
case "com.amazonaws.ram#InvalidClientTokenException": return [3, 4];
|
|
833
|
+
case "InvalidParameterException": return [3, 6];
|
|
834
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 6];
|
|
835
|
+
case "InvalidStateTransitionException": return [3, 8];
|
|
836
|
+
case "com.amazonaws.ram#InvalidStateTransitionException": return [3, 8];
|
|
837
|
+
case "MalformedArnException": return [3, 10];
|
|
838
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 10];
|
|
839
|
+
case "OperationNotPermittedException": return [3, 12];
|
|
840
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 12];
|
|
841
|
+
case "ResourceShareLimitExceededException": return [3, 14];
|
|
842
|
+
case "com.amazonaws.ram#ResourceShareLimitExceededException": return [3, 14];
|
|
843
|
+
case "ServerInternalException": return [3, 16];
|
|
844
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 16];
|
|
845
|
+
case "ServiceUnavailableException": return [3, 18];
|
|
846
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 18];
|
|
847
|
+
case "UnknownResourceException": return [3, 20];
|
|
848
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 20];
|
|
849
849
|
}
|
|
850
|
-
return [3
|
|
850
|
+
return [3, 22];
|
|
851
851
|
case 2:
|
|
852
852
|
_c = [{}];
|
|
853
|
-
return [4
|
|
853
|
+
return [4, deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
854
854
|
case 3:
|
|
855
855
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
856
|
-
return [3
|
|
856
|
+
return [3, 23];
|
|
857
857
|
case 4:
|
|
858
858
|
_d = [{}];
|
|
859
|
-
return [4
|
|
859
|
+
return [4, deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context)];
|
|
860
860
|
case 5:
|
|
861
861
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
862
|
-
return [3
|
|
862
|
+
return [3, 23];
|
|
863
863
|
case 6:
|
|
864
864
|
_e = [{}];
|
|
865
|
-
return [4
|
|
865
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
866
866
|
case 7:
|
|
867
867
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
868
|
-
return [3
|
|
868
|
+
return [3, 23];
|
|
869
869
|
case 8:
|
|
870
870
|
_f = [{}];
|
|
871
|
-
return [4
|
|
871
|
+
return [4, deserializeAws_restJson1InvalidStateTransitionExceptionResponse(parsedOutput, context)];
|
|
872
872
|
case 9:
|
|
873
873
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
874
|
-
return [3
|
|
874
|
+
return [3, 23];
|
|
875
875
|
case 10:
|
|
876
876
|
_g = [{}];
|
|
877
|
-
return [4
|
|
877
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
878
878
|
case 11:
|
|
879
879
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
880
|
-
return [3
|
|
880
|
+
return [3, 23];
|
|
881
881
|
case 12:
|
|
882
882
|
_h = [{}];
|
|
883
|
-
return [4
|
|
883
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
884
884
|
case 13:
|
|
885
885
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
886
|
-
return [3
|
|
886
|
+
return [3, 23];
|
|
887
887
|
case 14:
|
|
888
888
|
_j = [{}];
|
|
889
|
-
return [4
|
|
889
|
+
return [4, deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse(parsedOutput, context)];
|
|
890
890
|
case 15:
|
|
891
891
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
892
|
-
return [3
|
|
892
|
+
return [3, 23];
|
|
893
893
|
case 16:
|
|
894
894
|
_k = [{}];
|
|
895
|
-
return [4
|
|
895
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
896
896
|
case 17:
|
|
897
897
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
898
|
-
return [3
|
|
898
|
+
return [3, 23];
|
|
899
899
|
case 18:
|
|
900
900
|
_l = [{}];
|
|
901
|
-
return [4
|
|
901
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
902
902
|
case 19:
|
|
903
903
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
904
|
-
return [3
|
|
904
|
+
return [3, 23];
|
|
905
905
|
case 20:
|
|
906
906
|
_m = [{}];
|
|
907
|
-
return [4
|
|
907
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
908
908
|
case 21:
|
|
909
909
|
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
910
|
-
return [3
|
|
910
|
+
return [3, 23];
|
|
911
911
|
case 22:
|
|
912
912
|
parsedBody = parsedOutput.body;
|
|
913
913
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -917,7 +917,7 @@ var deserializeAws_restJson1AssociateResourceShareCommandError = function (outpu
|
|
|
917
917
|
message = response.message || response.Message || errorCode;
|
|
918
918
|
response.message = message;
|
|
919
919
|
delete response.Message;
|
|
920
|
-
return [2
|
|
920
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
921
921
|
}
|
|
922
922
|
});
|
|
923
923
|
}); };
|
|
@@ -927,7 +927,7 @@ export var deserializeAws_restJson1AssociateResourceSharePermissionCommand = fun
|
|
|
927
927
|
switch (_c.label) {
|
|
928
928
|
case 0:
|
|
929
929
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
930
|
-
return [2
|
|
930
|
+
return [2, deserializeAws_restJson1AssociateResourceSharePermissionCommandError(output, context)];
|
|
931
931
|
}
|
|
932
932
|
contents = {
|
|
933
933
|
$metadata: deserializeMetadata(output),
|
|
@@ -936,7 +936,7 @@ export var deserializeAws_restJson1AssociateResourceSharePermissionCommand = fun
|
|
|
936
936
|
};
|
|
937
937
|
_a = __expectNonNull;
|
|
938
938
|
_b = __expectObject;
|
|
939
|
-
return [4
|
|
939
|
+
return [4, parseBody(output.body, context)];
|
|
940
940
|
case 1:
|
|
941
941
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
942
942
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
@@ -945,7 +945,7 @@ export var deserializeAws_restJson1AssociateResourceSharePermissionCommand = fun
|
|
|
945
945
|
if (data.returnValue !== undefined && data.returnValue !== null) {
|
|
946
946
|
contents.returnValue = __expectBoolean(data.returnValue);
|
|
947
947
|
}
|
|
948
|
-
return [2
|
|
948
|
+
return [2, Promise.resolve(contents)];
|
|
949
949
|
}
|
|
950
950
|
});
|
|
951
951
|
}); };
|
|
@@ -957,71 +957,71 @@ var deserializeAws_restJson1AssociateResourceSharePermissionCommandError = funct
|
|
|
957
957
|
case 0:
|
|
958
958
|
_a = [__assign({}, output)];
|
|
959
959
|
_k = {};
|
|
960
|
-
return [4
|
|
960
|
+
return [4, parseBody(output.body, context)];
|
|
961
961
|
case 1:
|
|
962
962
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
963
963
|
errorCode = "UnknownError";
|
|
964
964
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
965
|
_b = errorCode;
|
|
966
966
|
switch (_b) {
|
|
967
|
-
case "InvalidClientTokenException": return [3
|
|
968
|
-
case "com.amazonaws.ram#InvalidClientTokenException": return [3
|
|
969
|
-
case "InvalidParameterException": return [3
|
|
970
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
971
|
-
case "MalformedArnException": return [3
|
|
972
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
973
|
-
case "OperationNotPermittedException": return [3
|
|
974
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
975
|
-
case "ServerInternalException": return [3
|
|
976
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
977
|
-
case "ServiceUnavailableException": return [3
|
|
978
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
979
|
-
case "UnknownResourceException": return [3
|
|
980
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
967
|
+
case "InvalidClientTokenException": return [3, 2];
|
|
968
|
+
case "com.amazonaws.ram#InvalidClientTokenException": return [3, 2];
|
|
969
|
+
case "InvalidParameterException": return [3, 4];
|
|
970
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 4];
|
|
971
|
+
case "MalformedArnException": return [3, 6];
|
|
972
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 6];
|
|
973
|
+
case "OperationNotPermittedException": return [3, 8];
|
|
974
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 8];
|
|
975
|
+
case "ServerInternalException": return [3, 10];
|
|
976
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 10];
|
|
977
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
978
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 12];
|
|
979
|
+
case "UnknownResourceException": return [3, 14];
|
|
980
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 14];
|
|
981
981
|
}
|
|
982
|
-
return [3
|
|
982
|
+
return [3, 16];
|
|
983
983
|
case 2:
|
|
984
984
|
_c = [{}];
|
|
985
|
-
return [4
|
|
985
|
+
return [4, deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context)];
|
|
986
986
|
case 3:
|
|
987
987
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
988
|
-
return [3
|
|
988
|
+
return [3, 17];
|
|
989
989
|
case 4:
|
|
990
990
|
_d = [{}];
|
|
991
|
-
return [4
|
|
991
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
992
992
|
case 5:
|
|
993
993
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
994
|
-
return [3
|
|
994
|
+
return [3, 17];
|
|
995
995
|
case 6:
|
|
996
996
|
_e = [{}];
|
|
997
|
-
return [4
|
|
997
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
998
998
|
case 7:
|
|
999
999
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1000
|
-
return [3
|
|
1000
|
+
return [3, 17];
|
|
1001
1001
|
case 8:
|
|
1002
1002
|
_f = [{}];
|
|
1003
|
-
return [4
|
|
1003
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1004
1004
|
case 9:
|
|
1005
1005
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1006
|
-
return [3
|
|
1006
|
+
return [3, 17];
|
|
1007
1007
|
case 10:
|
|
1008
1008
|
_g = [{}];
|
|
1009
|
-
return [4
|
|
1009
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
1010
1010
|
case 11:
|
|
1011
1011
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1012
|
-
return [3
|
|
1012
|
+
return [3, 17];
|
|
1013
1013
|
case 12:
|
|
1014
1014
|
_h = [{}];
|
|
1015
|
-
return [4
|
|
1015
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1016
1016
|
case 13:
|
|
1017
1017
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1018
|
-
return [3
|
|
1018
|
+
return [3, 17];
|
|
1019
1019
|
case 14:
|
|
1020
1020
|
_j = [{}];
|
|
1021
|
-
return [4
|
|
1021
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
1022
1022
|
case 15:
|
|
1023
1023
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1024
|
-
return [3
|
|
1024
|
+
return [3, 17];
|
|
1025
1025
|
case 16:
|
|
1026
1026
|
parsedBody = parsedOutput.body;
|
|
1027
1027
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1031,7 +1031,7 @@ var deserializeAws_restJson1AssociateResourceSharePermissionCommandError = funct
|
|
|
1031
1031
|
message = response.message || response.Message || errorCode;
|
|
1032
1032
|
response.message = message;
|
|
1033
1033
|
delete response.Message;
|
|
1034
|
-
return [2
|
|
1034
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1035
1035
|
}
|
|
1036
1036
|
});
|
|
1037
1037
|
}); };
|
|
@@ -1041,7 +1041,7 @@ export var deserializeAws_restJson1CreateResourceShareCommand = function (output
|
|
|
1041
1041
|
switch (_c.label) {
|
|
1042
1042
|
case 0:
|
|
1043
1043
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1044
|
-
return [2
|
|
1044
|
+
return [2, deserializeAws_restJson1CreateResourceShareCommandError(output, context)];
|
|
1045
1045
|
}
|
|
1046
1046
|
contents = {
|
|
1047
1047
|
$metadata: deserializeMetadata(output),
|
|
@@ -1050,7 +1050,7 @@ export var deserializeAws_restJson1CreateResourceShareCommand = function (output
|
|
|
1050
1050
|
};
|
|
1051
1051
|
_a = __expectNonNull;
|
|
1052
1052
|
_b = __expectObject;
|
|
1053
|
-
return [4
|
|
1053
|
+
return [4, parseBody(output.body, context)];
|
|
1054
1054
|
case 1:
|
|
1055
1055
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1056
1056
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
@@ -1059,7 +1059,7 @@ export var deserializeAws_restJson1CreateResourceShareCommand = function (output
|
|
|
1059
1059
|
if (data.resourceShare !== undefined && data.resourceShare !== null) {
|
|
1060
1060
|
contents.resourceShare = deserializeAws_restJson1ResourceShare(data.resourceShare, context);
|
|
1061
1061
|
}
|
|
1062
|
-
return [2
|
|
1062
|
+
return [2, Promise.resolve(contents)];
|
|
1063
1063
|
}
|
|
1064
1064
|
});
|
|
1065
1065
|
}); };
|
|
@@ -1071,103 +1071,103 @@ var deserializeAws_restJson1CreateResourceShareCommandError = function (output,
|
|
|
1071
1071
|
case 0:
|
|
1072
1072
|
_a = [__assign({}, output)];
|
|
1073
1073
|
_p = {};
|
|
1074
|
-
return [4
|
|
1074
|
+
return [4, parseBody(output.body, context)];
|
|
1075
1075
|
case 1:
|
|
1076
1076
|
parsedOutput = __assign.apply(void 0, _a.concat([(_p.body = _q.sent(), _p)]));
|
|
1077
1077
|
errorCode = "UnknownError";
|
|
1078
1078
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
1079
|
_b = errorCode;
|
|
1080
1080
|
switch (_b) {
|
|
1081
|
-
case "IdempotentParameterMismatchException": return [3
|
|
1082
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException": return [3
|
|
1083
|
-
case "InvalidClientTokenException": return [3
|
|
1084
|
-
case "com.amazonaws.ram#InvalidClientTokenException": return [3
|
|
1085
|
-
case "InvalidParameterException": return [3
|
|
1086
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
1087
|
-
case "InvalidStateTransitionException": return [3
|
|
1088
|
-
case "com.amazonaws.ram#InvalidStateTransitionException": return [3
|
|
1089
|
-
case "MalformedArnException": return [3
|
|
1090
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
1091
|
-
case "OperationNotPermittedException": return [3
|
|
1092
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
1093
|
-
case "ResourceShareLimitExceededException": return [3
|
|
1094
|
-
case "com.amazonaws.ram#ResourceShareLimitExceededException": return [3
|
|
1095
|
-
case "ServerInternalException": return [3
|
|
1096
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
1097
|
-
case "ServiceUnavailableException": return [3
|
|
1098
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
1099
|
-
case "TagPolicyViolationException": return [3
|
|
1100
|
-
case "com.amazonaws.ram#TagPolicyViolationException": return [3
|
|
1101
|
-
case "UnknownResourceException": return [3
|
|
1102
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
1081
|
+
case "IdempotentParameterMismatchException": return [3, 2];
|
|
1082
|
+
case "com.amazonaws.ram#IdempotentParameterMismatchException": return [3, 2];
|
|
1083
|
+
case "InvalidClientTokenException": return [3, 4];
|
|
1084
|
+
case "com.amazonaws.ram#InvalidClientTokenException": return [3, 4];
|
|
1085
|
+
case "InvalidParameterException": return [3, 6];
|
|
1086
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 6];
|
|
1087
|
+
case "InvalidStateTransitionException": return [3, 8];
|
|
1088
|
+
case "com.amazonaws.ram#InvalidStateTransitionException": return [3, 8];
|
|
1089
|
+
case "MalformedArnException": return [3, 10];
|
|
1090
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 10];
|
|
1091
|
+
case "OperationNotPermittedException": return [3, 12];
|
|
1092
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 12];
|
|
1093
|
+
case "ResourceShareLimitExceededException": return [3, 14];
|
|
1094
|
+
case "com.amazonaws.ram#ResourceShareLimitExceededException": return [3, 14];
|
|
1095
|
+
case "ServerInternalException": return [3, 16];
|
|
1096
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 16];
|
|
1097
|
+
case "ServiceUnavailableException": return [3, 18];
|
|
1098
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 18];
|
|
1099
|
+
case "TagPolicyViolationException": return [3, 20];
|
|
1100
|
+
case "com.amazonaws.ram#TagPolicyViolationException": return [3, 20];
|
|
1101
|
+
case "UnknownResourceException": return [3, 22];
|
|
1102
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 22];
|
|
1103
1103
|
}
|
|
1104
|
-
return [3
|
|
1104
|
+
return [3, 24];
|
|
1105
1105
|
case 2:
|
|
1106
1106
|
_c = [{}];
|
|
1107
|
-
return [4
|
|
1107
|
+
return [4, deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
1108
1108
|
case 3:
|
|
1109
1109
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1110
|
-
return [3
|
|
1110
|
+
return [3, 25];
|
|
1111
1111
|
case 4:
|
|
1112
1112
|
_d = [{}];
|
|
1113
|
-
return [4
|
|
1113
|
+
return [4, deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context)];
|
|
1114
1114
|
case 5:
|
|
1115
1115
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1116
|
-
return [3
|
|
1116
|
+
return [3, 25];
|
|
1117
1117
|
case 6:
|
|
1118
1118
|
_e = [{}];
|
|
1119
|
-
return [4
|
|
1119
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1120
1120
|
case 7:
|
|
1121
1121
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1122
|
-
return [3
|
|
1122
|
+
return [3, 25];
|
|
1123
1123
|
case 8:
|
|
1124
1124
|
_f = [{}];
|
|
1125
|
-
return [4
|
|
1125
|
+
return [4, deserializeAws_restJson1InvalidStateTransitionExceptionResponse(parsedOutput, context)];
|
|
1126
1126
|
case 9:
|
|
1127
1127
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1128
|
-
return [3
|
|
1128
|
+
return [3, 25];
|
|
1129
1129
|
case 10:
|
|
1130
1130
|
_g = [{}];
|
|
1131
|
-
return [4
|
|
1131
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
1132
1132
|
case 11:
|
|
1133
1133
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1134
|
-
return [3
|
|
1134
|
+
return [3, 25];
|
|
1135
1135
|
case 12:
|
|
1136
1136
|
_h = [{}];
|
|
1137
|
-
return [4
|
|
1137
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1138
1138
|
case 13:
|
|
1139
1139
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1140
|
-
return [3
|
|
1140
|
+
return [3, 25];
|
|
1141
1141
|
case 14:
|
|
1142
1142
|
_j = [{}];
|
|
1143
|
-
return [4
|
|
1143
|
+
return [4, deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1144
1144
|
case 15:
|
|
1145
1145
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1146
|
-
return [3
|
|
1146
|
+
return [3, 25];
|
|
1147
1147
|
case 16:
|
|
1148
1148
|
_k = [{}];
|
|
1149
|
-
return [4
|
|
1149
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
1150
1150
|
case 17:
|
|
1151
1151
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1152
|
-
return [3
|
|
1152
|
+
return [3, 25];
|
|
1153
1153
|
case 18:
|
|
1154
1154
|
_l = [{}];
|
|
1155
|
-
return [4
|
|
1155
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1156
1156
|
case 19:
|
|
1157
1157
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1158
|
-
return [3
|
|
1158
|
+
return [3, 25];
|
|
1159
1159
|
case 20:
|
|
1160
1160
|
_m = [{}];
|
|
1161
|
-
return [4
|
|
1161
|
+
return [4, deserializeAws_restJson1TagPolicyViolationExceptionResponse(parsedOutput, context)];
|
|
1162
1162
|
case 21:
|
|
1163
1163
|
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1164
|
-
return [3
|
|
1164
|
+
return [3, 25];
|
|
1165
1165
|
case 22:
|
|
1166
1166
|
_o = [{}];
|
|
1167
|
-
return [4
|
|
1167
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
1168
1168
|
case 23:
|
|
1169
1169
|
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1170
|
-
return [3
|
|
1170
|
+
return [3, 25];
|
|
1171
1171
|
case 24:
|
|
1172
1172
|
parsedBody = parsedOutput.body;
|
|
1173
1173
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1177,7 +1177,7 @@ var deserializeAws_restJson1CreateResourceShareCommandError = function (output,
|
|
|
1177
1177
|
message = response.message || response.Message || errorCode;
|
|
1178
1178
|
response.message = message;
|
|
1179
1179
|
delete response.Message;
|
|
1180
|
-
return [2
|
|
1180
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1181
1181
|
}
|
|
1182
1182
|
});
|
|
1183
1183
|
}); };
|
|
@@ -1187,7 +1187,7 @@ export var deserializeAws_restJson1DeleteResourceShareCommand = function (output
|
|
|
1187
1187
|
switch (_c.label) {
|
|
1188
1188
|
case 0:
|
|
1189
1189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1190
|
-
return [2
|
|
1190
|
+
return [2, deserializeAws_restJson1DeleteResourceShareCommandError(output, context)];
|
|
1191
1191
|
}
|
|
1192
1192
|
contents = {
|
|
1193
1193
|
$metadata: deserializeMetadata(output),
|
|
@@ -1196,7 +1196,7 @@ export var deserializeAws_restJson1DeleteResourceShareCommand = function (output
|
|
|
1196
1196
|
};
|
|
1197
1197
|
_a = __expectNonNull;
|
|
1198
1198
|
_b = __expectObject;
|
|
1199
|
-
return [4
|
|
1199
|
+
return [4, parseBody(output.body, context)];
|
|
1200
1200
|
case 1:
|
|
1201
1201
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1202
1202
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
@@ -1205,7 +1205,7 @@ export var deserializeAws_restJson1DeleteResourceShareCommand = function (output
|
|
|
1205
1205
|
if (data.returnValue !== undefined && data.returnValue !== null) {
|
|
1206
1206
|
contents.returnValue = __expectBoolean(data.returnValue);
|
|
1207
1207
|
}
|
|
1208
|
-
return [2
|
|
1208
|
+
return [2, Promise.resolve(contents)];
|
|
1209
1209
|
}
|
|
1210
1210
|
});
|
|
1211
1211
|
}); };
|
|
@@ -1217,87 +1217,87 @@ var deserializeAws_restJson1DeleteResourceShareCommandError = function (output,
|
|
|
1217
1217
|
case 0:
|
|
1218
1218
|
_a = [__assign({}, output)];
|
|
1219
1219
|
_m = {};
|
|
1220
|
-
return [4
|
|
1220
|
+
return [4, parseBody(output.body, context)];
|
|
1221
1221
|
case 1:
|
|
1222
1222
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
1223
1223
|
errorCode = "UnknownError";
|
|
1224
1224
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1225
1225
|
_b = errorCode;
|
|
1226
1226
|
switch (_b) {
|
|
1227
|
-
case "IdempotentParameterMismatchException": return [3
|
|
1228
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException": return [3
|
|
1229
|
-
case "InvalidClientTokenException": return [3
|
|
1230
|
-
case "com.amazonaws.ram#InvalidClientTokenException": return [3
|
|
1231
|
-
case "InvalidParameterException": return [3
|
|
1232
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
1233
|
-
case "InvalidStateTransitionException": return [3
|
|
1234
|
-
case "com.amazonaws.ram#InvalidStateTransitionException": return [3
|
|
1235
|
-
case "MalformedArnException": return [3
|
|
1236
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
1237
|
-
case "OperationNotPermittedException": return [3
|
|
1238
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
1239
|
-
case "ServerInternalException": return [3
|
|
1240
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
1241
|
-
case "ServiceUnavailableException": return [3
|
|
1242
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
1243
|
-
case "UnknownResourceException": return [3
|
|
1244
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
1227
|
+
case "IdempotentParameterMismatchException": return [3, 2];
|
|
1228
|
+
case "com.amazonaws.ram#IdempotentParameterMismatchException": return [3, 2];
|
|
1229
|
+
case "InvalidClientTokenException": return [3, 4];
|
|
1230
|
+
case "com.amazonaws.ram#InvalidClientTokenException": return [3, 4];
|
|
1231
|
+
case "InvalidParameterException": return [3, 6];
|
|
1232
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 6];
|
|
1233
|
+
case "InvalidStateTransitionException": return [3, 8];
|
|
1234
|
+
case "com.amazonaws.ram#InvalidStateTransitionException": return [3, 8];
|
|
1235
|
+
case "MalformedArnException": return [3, 10];
|
|
1236
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 10];
|
|
1237
|
+
case "OperationNotPermittedException": return [3, 12];
|
|
1238
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 12];
|
|
1239
|
+
case "ServerInternalException": return [3, 14];
|
|
1240
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 14];
|
|
1241
|
+
case "ServiceUnavailableException": return [3, 16];
|
|
1242
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 16];
|
|
1243
|
+
case "UnknownResourceException": return [3, 18];
|
|
1244
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 18];
|
|
1245
1245
|
}
|
|
1246
|
-
return [3
|
|
1246
|
+
return [3, 20];
|
|
1247
1247
|
case 2:
|
|
1248
1248
|
_c = [{}];
|
|
1249
|
-
return [4
|
|
1249
|
+
return [4, deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
1250
1250
|
case 3:
|
|
1251
1251
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1252
|
-
return [3
|
|
1252
|
+
return [3, 21];
|
|
1253
1253
|
case 4:
|
|
1254
1254
|
_d = [{}];
|
|
1255
|
-
return [4
|
|
1255
|
+
return [4, deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context)];
|
|
1256
1256
|
case 5:
|
|
1257
1257
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1258
|
-
return [3
|
|
1258
|
+
return [3, 21];
|
|
1259
1259
|
case 6:
|
|
1260
1260
|
_e = [{}];
|
|
1261
|
-
return [4
|
|
1261
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1262
1262
|
case 7:
|
|
1263
1263
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1264
|
-
return [3
|
|
1264
|
+
return [3, 21];
|
|
1265
1265
|
case 8:
|
|
1266
1266
|
_f = [{}];
|
|
1267
|
-
return [4
|
|
1267
|
+
return [4, deserializeAws_restJson1InvalidStateTransitionExceptionResponse(parsedOutput, context)];
|
|
1268
1268
|
case 9:
|
|
1269
1269
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1270
|
-
return [3
|
|
1270
|
+
return [3, 21];
|
|
1271
1271
|
case 10:
|
|
1272
1272
|
_g = [{}];
|
|
1273
|
-
return [4
|
|
1273
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
1274
1274
|
case 11:
|
|
1275
1275
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1276
|
-
return [3
|
|
1276
|
+
return [3, 21];
|
|
1277
1277
|
case 12:
|
|
1278
1278
|
_h = [{}];
|
|
1279
|
-
return [4
|
|
1279
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1280
1280
|
case 13:
|
|
1281
1281
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1282
|
-
return [3
|
|
1282
|
+
return [3, 21];
|
|
1283
1283
|
case 14:
|
|
1284
1284
|
_j = [{}];
|
|
1285
|
-
return [4
|
|
1285
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
1286
1286
|
case 15:
|
|
1287
1287
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1288
|
-
return [3
|
|
1288
|
+
return [3, 21];
|
|
1289
1289
|
case 16:
|
|
1290
1290
|
_k = [{}];
|
|
1291
|
-
return [4
|
|
1291
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1292
1292
|
case 17:
|
|
1293
1293
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1294
|
-
return [3
|
|
1294
|
+
return [3, 21];
|
|
1295
1295
|
case 18:
|
|
1296
1296
|
_l = [{}];
|
|
1297
|
-
return [4
|
|
1297
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
1298
1298
|
case 19:
|
|
1299
1299
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1300
|
-
return [3
|
|
1300
|
+
return [3, 21];
|
|
1301
1301
|
case 20:
|
|
1302
1302
|
parsedBody = parsedOutput.body;
|
|
1303
1303
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1307,7 +1307,7 @@ var deserializeAws_restJson1DeleteResourceShareCommandError = function (output,
|
|
|
1307
1307
|
message = response.message || response.Message || errorCode;
|
|
1308
1308
|
response.message = message;
|
|
1309
1309
|
delete response.Message;
|
|
1310
|
-
return [2
|
|
1310
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1311
1311
|
}
|
|
1312
1312
|
});
|
|
1313
1313
|
}); };
|
|
@@ -1317,7 +1317,7 @@ export var deserializeAws_restJson1DisassociateResourceShareCommand = function (
|
|
|
1317
1317
|
switch (_c.label) {
|
|
1318
1318
|
case 0:
|
|
1319
1319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1320
|
-
return [2
|
|
1320
|
+
return [2, deserializeAws_restJson1DisassociateResourceShareCommandError(output, context)];
|
|
1321
1321
|
}
|
|
1322
1322
|
contents = {
|
|
1323
1323
|
$metadata: deserializeMetadata(output),
|
|
@@ -1326,7 +1326,7 @@ export var deserializeAws_restJson1DisassociateResourceShareCommand = function (
|
|
|
1326
1326
|
};
|
|
1327
1327
|
_a = __expectNonNull;
|
|
1328
1328
|
_b = __expectObject;
|
|
1329
|
-
return [4
|
|
1329
|
+
return [4, parseBody(output.body, context)];
|
|
1330
1330
|
case 1:
|
|
1331
1331
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1332
1332
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
@@ -1335,7 +1335,7 @@ export var deserializeAws_restJson1DisassociateResourceShareCommand = function (
|
|
|
1335
1335
|
if (data.resourceShareAssociations !== undefined && data.resourceShareAssociations !== null) {
|
|
1336
1336
|
contents.resourceShareAssociations = deserializeAws_restJson1ResourceShareAssociationList(data.resourceShareAssociations, context);
|
|
1337
1337
|
}
|
|
1338
|
-
return [2
|
|
1338
|
+
return [2, Promise.resolve(contents)];
|
|
1339
1339
|
}
|
|
1340
1340
|
});
|
|
1341
1341
|
}); };
|
|
@@ -1347,95 +1347,95 @@ var deserializeAws_restJson1DisassociateResourceShareCommandError = function (ou
|
|
|
1347
1347
|
case 0:
|
|
1348
1348
|
_a = [__assign({}, output)];
|
|
1349
1349
|
_o = {};
|
|
1350
|
-
return [4
|
|
1350
|
+
return [4, parseBody(output.body, context)];
|
|
1351
1351
|
case 1:
|
|
1352
1352
|
parsedOutput = __assign.apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
|
|
1353
1353
|
errorCode = "UnknownError";
|
|
1354
1354
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1355
1355
|
_b = errorCode;
|
|
1356
1356
|
switch (_b) {
|
|
1357
|
-
case "IdempotentParameterMismatchException": return [3
|
|
1358
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException": return [3
|
|
1359
|
-
case "InvalidClientTokenException": return [3
|
|
1360
|
-
case "com.amazonaws.ram#InvalidClientTokenException": return [3
|
|
1361
|
-
case "InvalidParameterException": return [3
|
|
1362
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
1363
|
-
case "InvalidStateTransitionException": return [3
|
|
1364
|
-
case "com.amazonaws.ram#InvalidStateTransitionException": return [3
|
|
1365
|
-
case "MalformedArnException": return [3
|
|
1366
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
1367
|
-
case "OperationNotPermittedException": return [3
|
|
1368
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
1369
|
-
case "ResourceShareLimitExceededException": return [3
|
|
1370
|
-
case "com.amazonaws.ram#ResourceShareLimitExceededException": return [3
|
|
1371
|
-
case "ServerInternalException": return [3
|
|
1372
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
1373
|
-
case "ServiceUnavailableException": return [3
|
|
1374
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
1375
|
-
case "UnknownResourceException": return [3
|
|
1376
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
1357
|
+
case "IdempotentParameterMismatchException": return [3, 2];
|
|
1358
|
+
case "com.amazonaws.ram#IdempotentParameterMismatchException": return [3, 2];
|
|
1359
|
+
case "InvalidClientTokenException": return [3, 4];
|
|
1360
|
+
case "com.amazonaws.ram#InvalidClientTokenException": return [3, 4];
|
|
1361
|
+
case "InvalidParameterException": return [3, 6];
|
|
1362
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 6];
|
|
1363
|
+
case "InvalidStateTransitionException": return [3, 8];
|
|
1364
|
+
case "com.amazonaws.ram#InvalidStateTransitionException": return [3, 8];
|
|
1365
|
+
case "MalformedArnException": return [3, 10];
|
|
1366
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 10];
|
|
1367
|
+
case "OperationNotPermittedException": return [3, 12];
|
|
1368
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 12];
|
|
1369
|
+
case "ResourceShareLimitExceededException": return [3, 14];
|
|
1370
|
+
case "com.amazonaws.ram#ResourceShareLimitExceededException": return [3, 14];
|
|
1371
|
+
case "ServerInternalException": return [3, 16];
|
|
1372
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 16];
|
|
1373
|
+
case "ServiceUnavailableException": return [3, 18];
|
|
1374
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 18];
|
|
1375
|
+
case "UnknownResourceException": return [3, 20];
|
|
1376
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 20];
|
|
1377
1377
|
}
|
|
1378
|
-
return [3
|
|
1378
|
+
return [3, 22];
|
|
1379
1379
|
case 2:
|
|
1380
1380
|
_c = [{}];
|
|
1381
|
-
return [4
|
|
1381
|
+
return [4, deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
1382
1382
|
case 3:
|
|
1383
1383
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1384
|
-
return [3
|
|
1384
|
+
return [3, 23];
|
|
1385
1385
|
case 4:
|
|
1386
1386
|
_d = [{}];
|
|
1387
|
-
return [4
|
|
1387
|
+
return [4, deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context)];
|
|
1388
1388
|
case 5:
|
|
1389
1389
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1390
|
-
return [3
|
|
1390
|
+
return [3, 23];
|
|
1391
1391
|
case 6:
|
|
1392
1392
|
_e = [{}];
|
|
1393
|
-
return [4
|
|
1393
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1394
1394
|
case 7:
|
|
1395
1395
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1396
|
-
return [3
|
|
1396
|
+
return [3, 23];
|
|
1397
1397
|
case 8:
|
|
1398
1398
|
_f = [{}];
|
|
1399
|
-
return [4
|
|
1399
|
+
return [4, deserializeAws_restJson1InvalidStateTransitionExceptionResponse(parsedOutput, context)];
|
|
1400
1400
|
case 9:
|
|
1401
1401
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1402
|
-
return [3
|
|
1402
|
+
return [3, 23];
|
|
1403
1403
|
case 10:
|
|
1404
1404
|
_g = [{}];
|
|
1405
|
-
return [4
|
|
1405
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
1406
1406
|
case 11:
|
|
1407
1407
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1408
|
-
return [3
|
|
1408
|
+
return [3, 23];
|
|
1409
1409
|
case 12:
|
|
1410
1410
|
_h = [{}];
|
|
1411
|
-
return [4
|
|
1411
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1412
1412
|
case 13:
|
|
1413
1413
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1414
|
-
return [3
|
|
1414
|
+
return [3, 23];
|
|
1415
1415
|
case 14:
|
|
1416
1416
|
_j = [{}];
|
|
1417
|
-
return [4
|
|
1417
|
+
return [4, deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1418
1418
|
case 15:
|
|
1419
1419
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1420
|
-
return [3
|
|
1420
|
+
return [3, 23];
|
|
1421
1421
|
case 16:
|
|
1422
1422
|
_k = [{}];
|
|
1423
|
-
return [4
|
|
1423
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
1424
1424
|
case 17:
|
|
1425
1425
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1426
|
-
return [3
|
|
1426
|
+
return [3, 23];
|
|
1427
1427
|
case 18:
|
|
1428
1428
|
_l = [{}];
|
|
1429
|
-
return [4
|
|
1429
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1430
1430
|
case 19:
|
|
1431
1431
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1432
|
-
return [3
|
|
1432
|
+
return [3, 23];
|
|
1433
1433
|
case 20:
|
|
1434
1434
|
_m = [{}];
|
|
1435
|
-
return [4
|
|
1435
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
1436
1436
|
case 21:
|
|
1437
1437
|
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1438
|
-
return [3
|
|
1438
|
+
return [3, 23];
|
|
1439
1439
|
case 22:
|
|
1440
1440
|
parsedBody = parsedOutput.body;
|
|
1441
1441
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1445,7 +1445,7 @@ var deserializeAws_restJson1DisassociateResourceShareCommandError = function (ou
|
|
|
1445
1445
|
message = response.message || response.Message || errorCode;
|
|
1446
1446
|
response.message = message;
|
|
1447
1447
|
delete response.Message;
|
|
1448
|
-
return [2
|
|
1448
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1449
1449
|
}
|
|
1450
1450
|
});
|
|
1451
1451
|
}); };
|
|
@@ -1455,7 +1455,7 @@ export var deserializeAws_restJson1DisassociateResourceSharePermissionCommand =
|
|
|
1455
1455
|
switch (_c.label) {
|
|
1456
1456
|
case 0:
|
|
1457
1457
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1458
|
-
return [2
|
|
1458
|
+
return [2, deserializeAws_restJson1DisassociateResourceSharePermissionCommandError(output, context)];
|
|
1459
1459
|
}
|
|
1460
1460
|
contents = {
|
|
1461
1461
|
$metadata: deserializeMetadata(output),
|
|
@@ -1464,7 +1464,7 @@ export var deserializeAws_restJson1DisassociateResourceSharePermissionCommand =
|
|
|
1464
1464
|
};
|
|
1465
1465
|
_a = __expectNonNull;
|
|
1466
1466
|
_b = __expectObject;
|
|
1467
|
-
return [4
|
|
1467
|
+
return [4, parseBody(output.body, context)];
|
|
1468
1468
|
case 1:
|
|
1469
1469
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1470
1470
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
@@ -1473,7 +1473,7 @@ export var deserializeAws_restJson1DisassociateResourceSharePermissionCommand =
|
|
|
1473
1473
|
if (data.returnValue !== undefined && data.returnValue !== null) {
|
|
1474
1474
|
contents.returnValue = __expectBoolean(data.returnValue);
|
|
1475
1475
|
}
|
|
1476
|
-
return [2
|
|
1476
|
+
return [2, Promise.resolve(contents)];
|
|
1477
1477
|
}
|
|
1478
1478
|
});
|
|
1479
1479
|
}); };
|
|
@@ -1485,79 +1485,79 @@ var deserializeAws_restJson1DisassociateResourceSharePermissionCommandError = fu
|
|
|
1485
1485
|
case 0:
|
|
1486
1486
|
_a = [__assign({}, output)];
|
|
1487
1487
|
_l = {};
|
|
1488
|
-
return [4
|
|
1488
|
+
return [4, parseBody(output.body, context)];
|
|
1489
1489
|
case 1:
|
|
1490
1490
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
1491
1491
|
errorCode = "UnknownError";
|
|
1492
1492
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1493
1493
|
_b = errorCode;
|
|
1494
1494
|
switch (_b) {
|
|
1495
|
-
case "InvalidClientTokenException": return [3
|
|
1496
|
-
case "com.amazonaws.ram#InvalidClientTokenException": return [3
|
|
1497
|
-
case "InvalidParameterException": return [3
|
|
1498
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
1499
|
-
case "InvalidStateTransitionException": return [3
|
|
1500
|
-
case "com.amazonaws.ram#InvalidStateTransitionException": return [3
|
|
1501
|
-
case "MalformedArnException": return [3
|
|
1502
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
1503
|
-
case "OperationNotPermittedException": return [3
|
|
1504
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
1505
|
-
case "ServerInternalException": return [3
|
|
1506
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
1507
|
-
case "ServiceUnavailableException": return [3
|
|
1508
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
1509
|
-
case "UnknownResourceException": return [3
|
|
1510
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
1495
|
+
case "InvalidClientTokenException": return [3, 2];
|
|
1496
|
+
case "com.amazonaws.ram#InvalidClientTokenException": return [3, 2];
|
|
1497
|
+
case "InvalidParameterException": return [3, 4];
|
|
1498
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 4];
|
|
1499
|
+
case "InvalidStateTransitionException": return [3, 6];
|
|
1500
|
+
case "com.amazonaws.ram#InvalidStateTransitionException": return [3, 6];
|
|
1501
|
+
case "MalformedArnException": return [3, 8];
|
|
1502
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 8];
|
|
1503
|
+
case "OperationNotPermittedException": return [3, 10];
|
|
1504
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 10];
|
|
1505
|
+
case "ServerInternalException": return [3, 12];
|
|
1506
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 12];
|
|
1507
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
1508
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 14];
|
|
1509
|
+
case "UnknownResourceException": return [3, 16];
|
|
1510
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 16];
|
|
1511
1511
|
}
|
|
1512
|
-
return [3
|
|
1512
|
+
return [3, 18];
|
|
1513
1513
|
case 2:
|
|
1514
1514
|
_c = [{}];
|
|
1515
|
-
return [4
|
|
1515
|
+
return [4, deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context)];
|
|
1516
1516
|
case 3:
|
|
1517
1517
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1518
|
-
return [3
|
|
1518
|
+
return [3, 19];
|
|
1519
1519
|
case 4:
|
|
1520
1520
|
_d = [{}];
|
|
1521
|
-
return [4
|
|
1521
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1522
1522
|
case 5:
|
|
1523
1523
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1524
|
-
return [3
|
|
1524
|
+
return [3, 19];
|
|
1525
1525
|
case 6:
|
|
1526
1526
|
_e = [{}];
|
|
1527
|
-
return [4
|
|
1527
|
+
return [4, deserializeAws_restJson1InvalidStateTransitionExceptionResponse(parsedOutput, context)];
|
|
1528
1528
|
case 7:
|
|
1529
1529
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1530
|
-
return [3
|
|
1530
|
+
return [3, 19];
|
|
1531
1531
|
case 8:
|
|
1532
1532
|
_f = [{}];
|
|
1533
|
-
return [4
|
|
1533
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
1534
1534
|
case 9:
|
|
1535
1535
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1536
|
-
return [3
|
|
1536
|
+
return [3, 19];
|
|
1537
1537
|
case 10:
|
|
1538
1538
|
_g = [{}];
|
|
1539
|
-
return [4
|
|
1539
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1540
1540
|
case 11:
|
|
1541
1541
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1542
|
-
return [3
|
|
1542
|
+
return [3, 19];
|
|
1543
1543
|
case 12:
|
|
1544
1544
|
_h = [{}];
|
|
1545
|
-
return [4
|
|
1545
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
1546
1546
|
case 13:
|
|
1547
1547
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1548
|
-
return [3
|
|
1548
|
+
return [3, 19];
|
|
1549
1549
|
case 14:
|
|
1550
1550
|
_j = [{}];
|
|
1551
|
-
return [4
|
|
1551
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1552
1552
|
case 15:
|
|
1553
1553
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1554
|
-
return [3
|
|
1554
|
+
return [3, 19];
|
|
1555
1555
|
case 16:
|
|
1556
1556
|
_k = [{}];
|
|
1557
|
-
return [4
|
|
1557
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
1558
1558
|
case 17:
|
|
1559
1559
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1560
|
-
return [3
|
|
1560
|
+
return [3, 19];
|
|
1561
1561
|
case 18:
|
|
1562
1562
|
parsedBody = parsedOutput.body;
|
|
1563
1563
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1567,7 +1567,7 @@ var deserializeAws_restJson1DisassociateResourceSharePermissionCommandError = fu
|
|
|
1567
1567
|
message = response.message || response.Message || errorCode;
|
|
1568
1568
|
response.message = message;
|
|
1569
1569
|
delete response.Message;
|
|
1570
|
-
return [2
|
|
1570
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1571
1571
|
}
|
|
1572
1572
|
});
|
|
1573
1573
|
}); };
|
|
@@ -1577,7 +1577,7 @@ export var deserializeAws_restJson1EnableSharingWithAwsOrganizationCommand = fun
|
|
|
1577
1577
|
switch (_c.label) {
|
|
1578
1578
|
case 0:
|
|
1579
1579
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1580
|
-
return [2
|
|
1580
|
+
return [2, deserializeAws_restJson1EnableSharingWithAwsOrganizationCommandError(output, context)];
|
|
1581
1581
|
}
|
|
1582
1582
|
contents = {
|
|
1583
1583
|
$metadata: deserializeMetadata(output),
|
|
@@ -1585,13 +1585,13 @@ export var deserializeAws_restJson1EnableSharingWithAwsOrganizationCommand = fun
|
|
|
1585
1585
|
};
|
|
1586
1586
|
_a = __expectNonNull;
|
|
1587
1587
|
_b = __expectObject;
|
|
1588
|
-
return [4
|
|
1588
|
+
return [4, parseBody(output.body, context)];
|
|
1589
1589
|
case 1:
|
|
1590
1590
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1591
1591
|
if (data.returnValue !== undefined && data.returnValue !== null) {
|
|
1592
1592
|
contents.returnValue = __expectBoolean(data.returnValue);
|
|
1593
1593
|
}
|
|
1594
|
-
return [2
|
|
1594
|
+
return [2, Promise.resolve(contents)];
|
|
1595
1595
|
}
|
|
1596
1596
|
});
|
|
1597
1597
|
}); };
|
|
@@ -1603,39 +1603,39 @@ var deserializeAws_restJson1EnableSharingWithAwsOrganizationCommandError = funct
|
|
|
1603
1603
|
case 0:
|
|
1604
1604
|
_a = [__assign({}, output)];
|
|
1605
1605
|
_f = {};
|
|
1606
|
-
return [4
|
|
1606
|
+
return [4, parseBody(output.body, context)];
|
|
1607
1607
|
case 1:
|
|
1608
1608
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1609
1609
|
errorCode = "UnknownError";
|
|
1610
1610
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1611
1611
|
_b = errorCode;
|
|
1612
1612
|
switch (_b) {
|
|
1613
|
-
case "OperationNotPermittedException": return [3
|
|
1614
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
1615
|
-
case "ServerInternalException": return [3
|
|
1616
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
1617
|
-
case "ServiceUnavailableException": return [3
|
|
1618
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
1613
|
+
case "OperationNotPermittedException": return [3, 2];
|
|
1614
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 2];
|
|
1615
|
+
case "ServerInternalException": return [3, 4];
|
|
1616
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 4];
|
|
1617
|
+
case "ServiceUnavailableException": return [3, 6];
|
|
1618
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 6];
|
|
1619
1619
|
}
|
|
1620
|
-
return [3
|
|
1620
|
+
return [3, 8];
|
|
1621
1621
|
case 2:
|
|
1622
1622
|
_c = [{}];
|
|
1623
|
-
return [4
|
|
1623
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1624
1624
|
case 3:
|
|
1625
1625
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1626
|
-
return [3
|
|
1626
|
+
return [3, 9];
|
|
1627
1627
|
case 4:
|
|
1628
1628
|
_d = [{}];
|
|
1629
|
-
return [4
|
|
1629
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
1630
1630
|
case 5:
|
|
1631
1631
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1632
|
-
return [3
|
|
1632
|
+
return [3, 9];
|
|
1633
1633
|
case 6:
|
|
1634
1634
|
_e = [{}];
|
|
1635
|
-
return [4
|
|
1635
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1636
1636
|
case 7:
|
|
1637
1637
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1638
|
-
return [3
|
|
1638
|
+
return [3, 9];
|
|
1639
1639
|
case 8:
|
|
1640
1640
|
parsedBody = parsedOutput.body;
|
|
1641
1641
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1645,7 +1645,7 @@ var deserializeAws_restJson1EnableSharingWithAwsOrganizationCommandError = funct
|
|
|
1645
1645
|
message = response.message || response.Message || errorCode;
|
|
1646
1646
|
response.message = message;
|
|
1647
1647
|
delete response.Message;
|
|
1648
|
-
return [2
|
|
1648
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1649
1649
|
}
|
|
1650
1650
|
});
|
|
1651
1651
|
}); };
|
|
@@ -1655,7 +1655,7 @@ export var deserializeAws_restJson1GetPermissionCommand = function (output, cont
|
|
|
1655
1655
|
switch (_c.label) {
|
|
1656
1656
|
case 0:
|
|
1657
1657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1658
|
-
return [2
|
|
1658
|
+
return [2, deserializeAws_restJson1GetPermissionCommandError(output, context)];
|
|
1659
1659
|
}
|
|
1660
1660
|
contents = {
|
|
1661
1661
|
$metadata: deserializeMetadata(output),
|
|
@@ -1663,13 +1663,13 @@ export var deserializeAws_restJson1GetPermissionCommand = function (output, cont
|
|
|
1663
1663
|
};
|
|
1664
1664
|
_a = __expectNonNull;
|
|
1665
1665
|
_b = __expectObject;
|
|
1666
|
-
return [4
|
|
1666
|
+
return [4, parseBody(output.body, context)];
|
|
1667
1667
|
case 1:
|
|
1668
1668
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1669
1669
|
if (data.permission !== undefined && data.permission !== null) {
|
|
1670
1670
|
contents.permission = deserializeAws_restJson1ResourceSharePermissionDetail(data.permission, context);
|
|
1671
1671
|
}
|
|
1672
|
-
return [2
|
|
1672
|
+
return [2, Promise.resolve(contents)];
|
|
1673
1673
|
}
|
|
1674
1674
|
});
|
|
1675
1675
|
}); };
|
|
@@ -1681,63 +1681,63 @@ var deserializeAws_restJson1GetPermissionCommandError = function (output, contex
|
|
|
1681
1681
|
case 0:
|
|
1682
1682
|
_a = [__assign({}, output)];
|
|
1683
1683
|
_j = {};
|
|
1684
|
-
return [4
|
|
1684
|
+
return [4, parseBody(output.body, context)];
|
|
1685
1685
|
case 1:
|
|
1686
1686
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1687
1687
|
errorCode = "UnknownError";
|
|
1688
1688
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1689
1689
|
_b = errorCode;
|
|
1690
1690
|
switch (_b) {
|
|
1691
|
-
case "InvalidParameterException": return [3
|
|
1692
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
1693
|
-
case "MalformedArnException": return [3
|
|
1694
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
1695
|
-
case "OperationNotPermittedException": return [3
|
|
1696
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
1697
|
-
case "ServerInternalException": return [3
|
|
1698
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
1699
|
-
case "ServiceUnavailableException": return [3
|
|
1700
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
1701
|
-
case "UnknownResourceException": return [3
|
|
1702
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
1691
|
+
case "InvalidParameterException": return [3, 2];
|
|
1692
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 2];
|
|
1693
|
+
case "MalformedArnException": return [3, 4];
|
|
1694
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 4];
|
|
1695
|
+
case "OperationNotPermittedException": return [3, 6];
|
|
1696
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 6];
|
|
1697
|
+
case "ServerInternalException": return [3, 8];
|
|
1698
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 8];
|
|
1699
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1700
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 10];
|
|
1701
|
+
case "UnknownResourceException": return [3, 12];
|
|
1702
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 12];
|
|
1703
1703
|
}
|
|
1704
|
-
return [3
|
|
1704
|
+
return [3, 14];
|
|
1705
1705
|
case 2:
|
|
1706
1706
|
_c = [{}];
|
|
1707
|
-
return [4
|
|
1707
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1708
1708
|
case 3:
|
|
1709
1709
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1710
|
-
return [3
|
|
1710
|
+
return [3, 15];
|
|
1711
1711
|
case 4:
|
|
1712
1712
|
_d = [{}];
|
|
1713
|
-
return [4
|
|
1713
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
1714
1714
|
case 5:
|
|
1715
1715
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1716
|
-
return [3
|
|
1716
|
+
return [3, 15];
|
|
1717
1717
|
case 6:
|
|
1718
1718
|
_e = [{}];
|
|
1719
|
-
return [4
|
|
1719
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1720
1720
|
case 7:
|
|
1721
1721
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1722
|
-
return [3
|
|
1722
|
+
return [3, 15];
|
|
1723
1723
|
case 8:
|
|
1724
1724
|
_f = [{}];
|
|
1725
|
-
return [4
|
|
1725
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
1726
1726
|
case 9:
|
|
1727
1727
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1728
|
-
return [3
|
|
1728
|
+
return [3, 15];
|
|
1729
1729
|
case 10:
|
|
1730
1730
|
_g = [{}];
|
|
1731
|
-
return [4
|
|
1731
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1732
1732
|
case 11:
|
|
1733
1733
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1734
|
-
return [3
|
|
1734
|
+
return [3, 15];
|
|
1735
1735
|
case 12:
|
|
1736
1736
|
_h = [{}];
|
|
1737
|
-
return [4
|
|
1737
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
1738
1738
|
case 13:
|
|
1739
1739
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1740
|
-
return [3
|
|
1740
|
+
return [3, 15];
|
|
1741
1741
|
case 14:
|
|
1742
1742
|
parsedBody = parsedOutput.body;
|
|
1743
1743
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1747,7 +1747,7 @@ var deserializeAws_restJson1GetPermissionCommandError = function (output, contex
|
|
|
1747
1747
|
message = response.message || response.Message || errorCode;
|
|
1748
1748
|
response.message = message;
|
|
1749
1749
|
delete response.Message;
|
|
1750
|
-
return [2
|
|
1750
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1751
1751
|
}
|
|
1752
1752
|
});
|
|
1753
1753
|
}); };
|
|
@@ -1757,7 +1757,7 @@ export var deserializeAws_restJson1GetResourcePoliciesCommand = function (output
|
|
|
1757
1757
|
switch (_c.label) {
|
|
1758
1758
|
case 0:
|
|
1759
1759
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1760
|
-
return [2
|
|
1760
|
+
return [2, deserializeAws_restJson1GetResourcePoliciesCommandError(output, context)];
|
|
1761
1761
|
}
|
|
1762
1762
|
contents = {
|
|
1763
1763
|
$metadata: deserializeMetadata(output),
|
|
@@ -1766,7 +1766,7 @@ export var deserializeAws_restJson1GetResourcePoliciesCommand = function (output
|
|
|
1766
1766
|
};
|
|
1767
1767
|
_a = __expectNonNull;
|
|
1768
1768
|
_b = __expectObject;
|
|
1769
|
-
return [4
|
|
1769
|
+
return [4, parseBody(output.body, context)];
|
|
1770
1770
|
case 1:
|
|
1771
1771
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1772
1772
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -1775,7 +1775,7 @@ export var deserializeAws_restJson1GetResourcePoliciesCommand = function (output
|
|
|
1775
1775
|
if (data.policies !== undefined && data.policies !== null) {
|
|
1776
1776
|
contents.policies = deserializeAws_restJson1PolicyList(data.policies, context);
|
|
1777
1777
|
}
|
|
1778
|
-
return [2
|
|
1778
|
+
return [2, Promise.resolve(contents)];
|
|
1779
1779
|
}
|
|
1780
1780
|
});
|
|
1781
1781
|
}); };
|
|
@@ -1787,63 +1787,63 @@ var deserializeAws_restJson1GetResourcePoliciesCommandError = function (output,
|
|
|
1787
1787
|
case 0:
|
|
1788
1788
|
_a = [__assign({}, output)];
|
|
1789
1789
|
_j = {};
|
|
1790
|
-
return [4
|
|
1790
|
+
return [4, parseBody(output.body, context)];
|
|
1791
1791
|
case 1:
|
|
1792
1792
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1793
1793
|
errorCode = "UnknownError";
|
|
1794
1794
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
1795
|
_b = errorCode;
|
|
1796
1796
|
switch (_b) {
|
|
1797
|
-
case "InvalidNextTokenException": return [3
|
|
1798
|
-
case "com.amazonaws.ram#InvalidNextTokenException": return [3
|
|
1799
|
-
case "InvalidParameterException": return [3
|
|
1800
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
1801
|
-
case "MalformedArnException": return [3
|
|
1802
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
1803
|
-
case "ResourceArnNotFoundException": return [3
|
|
1804
|
-
case "com.amazonaws.ram#ResourceArnNotFoundException": return [3
|
|
1805
|
-
case "ServerInternalException": return [3
|
|
1806
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
1807
|
-
case "ServiceUnavailableException": return [3
|
|
1808
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
1797
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1798
|
+
case "com.amazonaws.ram#InvalidNextTokenException": return [3, 2];
|
|
1799
|
+
case "InvalidParameterException": return [3, 4];
|
|
1800
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 4];
|
|
1801
|
+
case "MalformedArnException": return [3, 6];
|
|
1802
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 6];
|
|
1803
|
+
case "ResourceArnNotFoundException": return [3, 8];
|
|
1804
|
+
case "com.amazonaws.ram#ResourceArnNotFoundException": return [3, 8];
|
|
1805
|
+
case "ServerInternalException": return [3, 10];
|
|
1806
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 10];
|
|
1807
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1808
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 12];
|
|
1809
1809
|
}
|
|
1810
|
-
return [3
|
|
1810
|
+
return [3, 14];
|
|
1811
1811
|
case 2:
|
|
1812
1812
|
_c = [{}];
|
|
1813
|
-
return [4
|
|
1813
|
+
return [4, deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1814
1814
|
case 3:
|
|
1815
1815
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1816
|
-
return [3
|
|
1816
|
+
return [3, 15];
|
|
1817
1817
|
case 4:
|
|
1818
1818
|
_d = [{}];
|
|
1819
|
-
return [4
|
|
1819
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1820
1820
|
case 5:
|
|
1821
1821
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1822
|
-
return [3
|
|
1822
|
+
return [3, 15];
|
|
1823
1823
|
case 6:
|
|
1824
1824
|
_e = [{}];
|
|
1825
|
-
return [4
|
|
1825
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
1826
1826
|
case 7:
|
|
1827
1827
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1828
|
-
return [3
|
|
1828
|
+
return [3, 15];
|
|
1829
1829
|
case 8:
|
|
1830
1830
|
_f = [{}];
|
|
1831
|
-
return [4
|
|
1831
|
+
return [4, deserializeAws_restJson1ResourceArnNotFoundExceptionResponse(parsedOutput, context)];
|
|
1832
1832
|
case 9:
|
|
1833
1833
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1834
|
-
return [3
|
|
1834
|
+
return [3, 15];
|
|
1835
1835
|
case 10:
|
|
1836
1836
|
_g = [{}];
|
|
1837
|
-
return [4
|
|
1837
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
1838
1838
|
case 11:
|
|
1839
1839
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1840
|
-
return [3
|
|
1840
|
+
return [3, 15];
|
|
1841
1841
|
case 12:
|
|
1842
1842
|
_h = [{}];
|
|
1843
|
-
return [4
|
|
1843
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1844
1844
|
case 13:
|
|
1845
1845
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1846
|
-
return [3
|
|
1846
|
+
return [3, 15];
|
|
1847
1847
|
case 14:
|
|
1848
1848
|
parsedBody = parsedOutput.body;
|
|
1849
1849
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1853,7 +1853,7 @@ var deserializeAws_restJson1GetResourcePoliciesCommandError = function (output,
|
|
|
1853
1853
|
message = response.message || response.Message || errorCode;
|
|
1854
1854
|
response.message = message;
|
|
1855
1855
|
delete response.Message;
|
|
1856
|
-
return [2
|
|
1856
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1857
1857
|
}
|
|
1858
1858
|
});
|
|
1859
1859
|
}); };
|
|
@@ -1863,7 +1863,7 @@ export var deserializeAws_restJson1GetResourceShareAssociationsCommand = functio
|
|
|
1863
1863
|
switch (_c.label) {
|
|
1864
1864
|
case 0:
|
|
1865
1865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1866
|
-
return [2
|
|
1866
|
+
return [2, deserializeAws_restJson1GetResourceShareAssociationsCommandError(output, context)];
|
|
1867
1867
|
}
|
|
1868
1868
|
contents = {
|
|
1869
1869
|
$metadata: deserializeMetadata(output),
|
|
@@ -1872,7 +1872,7 @@ export var deserializeAws_restJson1GetResourceShareAssociationsCommand = functio
|
|
|
1872
1872
|
};
|
|
1873
1873
|
_a = __expectNonNull;
|
|
1874
1874
|
_b = __expectObject;
|
|
1875
|
-
return [4
|
|
1875
|
+
return [4, parseBody(output.body, context)];
|
|
1876
1876
|
case 1:
|
|
1877
1877
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1878
1878
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -1881,7 +1881,7 @@ export var deserializeAws_restJson1GetResourceShareAssociationsCommand = functio
|
|
|
1881
1881
|
if (data.resourceShareAssociations !== undefined && data.resourceShareAssociations !== null) {
|
|
1882
1882
|
contents.resourceShareAssociations = deserializeAws_restJson1ResourceShareAssociationList(data.resourceShareAssociations, context);
|
|
1883
1883
|
}
|
|
1884
|
-
return [2
|
|
1884
|
+
return [2, Promise.resolve(contents)];
|
|
1885
1885
|
}
|
|
1886
1886
|
});
|
|
1887
1887
|
}); };
|
|
@@ -1893,71 +1893,71 @@ var deserializeAws_restJson1GetResourceShareAssociationsCommandError = function
|
|
|
1893
1893
|
case 0:
|
|
1894
1894
|
_a = [__assign({}, output)];
|
|
1895
1895
|
_k = {};
|
|
1896
|
-
return [4
|
|
1896
|
+
return [4, parseBody(output.body, context)];
|
|
1897
1897
|
case 1:
|
|
1898
1898
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1899
1899
|
errorCode = "UnknownError";
|
|
1900
1900
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1901
1901
|
_b = errorCode;
|
|
1902
1902
|
switch (_b) {
|
|
1903
|
-
case "InvalidNextTokenException": return [3
|
|
1904
|
-
case "com.amazonaws.ram#InvalidNextTokenException": return [3
|
|
1905
|
-
case "InvalidParameterException": return [3
|
|
1906
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
1907
|
-
case "MalformedArnException": return [3
|
|
1908
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
1909
|
-
case "OperationNotPermittedException": return [3
|
|
1910
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
1911
|
-
case "ServerInternalException": return [3
|
|
1912
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
1913
|
-
case "ServiceUnavailableException": return [3
|
|
1914
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
1915
|
-
case "UnknownResourceException": return [3
|
|
1916
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
1903
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1904
|
+
case "com.amazonaws.ram#InvalidNextTokenException": return [3, 2];
|
|
1905
|
+
case "InvalidParameterException": return [3, 4];
|
|
1906
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 4];
|
|
1907
|
+
case "MalformedArnException": return [3, 6];
|
|
1908
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 6];
|
|
1909
|
+
case "OperationNotPermittedException": return [3, 8];
|
|
1910
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 8];
|
|
1911
|
+
case "ServerInternalException": return [3, 10];
|
|
1912
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 10];
|
|
1913
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1914
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 12];
|
|
1915
|
+
case "UnknownResourceException": return [3, 14];
|
|
1916
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 14];
|
|
1917
1917
|
}
|
|
1918
|
-
return [3
|
|
1918
|
+
return [3, 16];
|
|
1919
1919
|
case 2:
|
|
1920
1920
|
_c = [{}];
|
|
1921
|
-
return [4
|
|
1921
|
+
return [4, deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1922
1922
|
case 3:
|
|
1923
1923
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1924
|
-
return [3
|
|
1924
|
+
return [3, 17];
|
|
1925
1925
|
case 4:
|
|
1926
1926
|
_d = [{}];
|
|
1927
|
-
return [4
|
|
1927
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1928
1928
|
case 5:
|
|
1929
1929
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1930
|
-
return [3
|
|
1930
|
+
return [3, 17];
|
|
1931
1931
|
case 6:
|
|
1932
1932
|
_e = [{}];
|
|
1933
|
-
return [4
|
|
1933
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
1934
1934
|
case 7:
|
|
1935
1935
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1936
|
-
return [3
|
|
1936
|
+
return [3, 17];
|
|
1937
1937
|
case 8:
|
|
1938
1938
|
_f = [{}];
|
|
1939
|
-
return [4
|
|
1939
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1940
1940
|
case 9:
|
|
1941
1941
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1942
|
-
return [3
|
|
1942
|
+
return [3, 17];
|
|
1943
1943
|
case 10:
|
|
1944
1944
|
_g = [{}];
|
|
1945
|
-
return [4
|
|
1945
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
1946
1946
|
case 11:
|
|
1947
1947
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1948
|
-
return [3
|
|
1948
|
+
return [3, 17];
|
|
1949
1949
|
case 12:
|
|
1950
1950
|
_h = [{}];
|
|
1951
|
-
return [4
|
|
1951
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1952
1952
|
case 13:
|
|
1953
1953
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1954
|
-
return [3
|
|
1954
|
+
return [3, 17];
|
|
1955
1955
|
case 14:
|
|
1956
1956
|
_j = [{}];
|
|
1957
|
-
return [4
|
|
1957
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
1958
1958
|
case 15:
|
|
1959
1959
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1960
|
-
return [3
|
|
1960
|
+
return [3, 17];
|
|
1961
1961
|
case 16:
|
|
1962
1962
|
parsedBody = parsedOutput.body;
|
|
1963
1963
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1967,7 +1967,7 @@ var deserializeAws_restJson1GetResourceShareAssociationsCommandError = function
|
|
|
1967
1967
|
message = response.message || response.Message || errorCode;
|
|
1968
1968
|
response.message = message;
|
|
1969
1969
|
delete response.Message;
|
|
1970
|
-
return [2
|
|
1970
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1971
1971
|
}
|
|
1972
1972
|
});
|
|
1973
1973
|
}); };
|
|
@@ -1977,7 +1977,7 @@ export var deserializeAws_restJson1GetResourceShareInvitationsCommand = function
|
|
|
1977
1977
|
switch (_c.label) {
|
|
1978
1978
|
case 0:
|
|
1979
1979
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1980
|
-
return [2
|
|
1980
|
+
return [2, deserializeAws_restJson1GetResourceShareInvitationsCommandError(output, context)];
|
|
1981
1981
|
}
|
|
1982
1982
|
contents = {
|
|
1983
1983
|
$metadata: deserializeMetadata(output),
|
|
@@ -1986,7 +1986,7 @@ export var deserializeAws_restJson1GetResourceShareInvitationsCommand = function
|
|
|
1986
1986
|
};
|
|
1987
1987
|
_a = __expectNonNull;
|
|
1988
1988
|
_b = __expectObject;
|
|
1989
|
-
return [4
|
|
1989
|
+
return [4, parseBody(output.body, context)];
|
|
1990
1990
|
case 1:
|
|
1991
1991
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1992
1992
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -1995,7 +1995,7 @@ export var deserializeAws_restJson1GetResourceShareInvitationsCommand = function
|
|
|
1995
1995
|
if (data.resourceShareInvitations !== undefined && data.resourceShareInvitations !== null) {
|
|
1996
1996
|
contents.resourceShareInvitations = deserializeAws_restJson1ResourceShareInvitationList(data.resourceShareInvitations, context);
|
|
1997
1997
|
}
|
|
1998
|
-
return [2
|
|
1998
|
+
return [2, Promise.resolve(contents)];
|
|
1999
1999
|
}
|
|
2000
2000
|
});
|
|
2001
2001
|
}); };
|
|
@@ -2007,79 +2007,79 @@ var deserializeAws_restJson1GetResourceShareInvitationsCommandError = function (
|
|
|
2007
2007
|
case 0:
|
|
2008
2008
|
_a = [__assign({}, output)];
|
|
2009
2009
|
_l = {};
|
|
2010
|
-
return [4
|
|
2010
|
+
return [4, parseBody(output.body, context)];
|
|
2011
2011
|
case 1:
|
|
2012
2012
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
2013
2013
|
errorCode = "UnknownError";
|
|
2014
2014
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2015
2015
|
_b = errorCode;
|
|
2016
2016
|
switch (_b) {
|
|
2017
|
-
case "InvalidMaxResultsException": return [3
|
|
2018
|
-
case "com.amazonaws.ram#InvalidMaxResultsException": return [3
|
|
2019
|
-
case "InvalidNextTokenException": return [3
|
|
2020
|
-
case "com.amazonaws.ram#InvalidNextTokenException": return [3
|
|
2021
|
-
case "InvalidParameterException": return [3
|
|
2022
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
2023
|
-
case "MalformedArnException": return [3
|
|
2024
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
2025
|
-
case "ResourceShareInvitationArnNotFoundException": return [3
|
|
2026
|
-
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException": return [3
|
|
2027
|
-
case "ServerInternalException": return [3
|
|
2028
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
2029
|
-
case "ServiceUnavailableException": return [3
|
|
2030
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
2031
|
-
case "UnknownResourceException": return [3
|
|
2032
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
2017
|
+
case "InvalidMaxResultsException": return [3, 2];
|
|
2018
|
+
case "com.amazonaws.ram#InvalidMaxResultsException": return [3, 2];
|
|
2019
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
2020
|
+
case "com.amazonaws.ram#InvalidNextTokenException": return [3, 4];
|
|
2021
|
+
case "InvalidParameterException": return [3, 6];
|
|
2022
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 6];
|
|
2023
|
+
case "MalformedArnException": return [3, 8];
|
|
2024
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 8];
|
|
2025
|
+
case "ResourceShareInvitationArnNotFoundException": return [3, 10];
|
|
2026
|
+
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException": return [3, 10];
|
|
2027
|
+
case "ServerInternalException": return [3, 12];
|
|
2028
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 12];
|
|
2029
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
2030
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 14];
|
|
2031
|
+
case "UnknownResourceException": return [3, 16];
|
|
2032
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 16];
|
|
2033
2033
|
}
|
|
2034
|
-
return [3
|
|
2034
|
+
return [3, 18];
|
|
2035
2035
|
case 2:
|
|
2036
2036
|
_c = [{}];
|
|
2037
|
-
return [4
|
|
2037
|
+
return [4, deserializeAws_restJson1InvalidMaxResultsExceptionResponse(parsedOutput, context)];
|
|
2038
2038
|
case 3:
|
|
2039
2039
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2040
|
-
return [3
|
|
2040
|
+
return [3, 19];
|
|
2041
2041
|
case 4:
|
|
2042
2042
|
_d = [{}];
|
|
2043
|
-
return [4
|
|
2043
|
+
return [4, deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2044
2044
|
case 5:
|
|
2045
2045
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2046
|
-
return [3
|
|
2046
|
+
return [3, 19];
|
|
2047
2047
|
case 6:
|
|
2048
2048
|
_e = [{}];
|
|
2049
|
-
return [4
|
|
2049
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2050
2050
|
case 7:
|
|
2051
2051
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2052
|
-
return [3
|
|
2052
|
+
return [3, 19];
|
|
2053
2053
|
case 8:
|
|
2054
2054
|
_f = [{}];
|
|
2055
|
-
return [4
|
|
2055
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
2056
2056
|
case 9:
|
|
2057
2057
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2058
|
-
return [3
|
|
2058
|
+
return [3, 19];
|
|
2059
2059
|
case 10:
|
|
2060
2060
|
_g = [{}];
|
|
2061
|
-
return [4
|
|
2061
|
+
return [4, deserializeAws_restJson1ResourceShareInvitationArnNotFoundExceptionResponse(parsedOutput, context)];
|
|
2062
2062
|
case 11:
|
|
2063
2063
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2064
|
-
return [3
|
|
2064
|
+
return [3, 19];
|
|
2065
2065
|
case 12:
|
|
2066
2066
|
_h = [{}];
|
|
2067
|
-
return [4
|
|
2067
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
2068
2068
|
case 13:
|
|
2069
2069
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2070
|
-
return [3
|
|
2070
|
+
return [3, 19];
|
|
2071
2071
|
case 14:
|
|
2072
2072
|
_j = [{}];
|
|
2073
|
-
return [4
|
|
2073
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2074
2074
|
case 15:
|
|
2075
2075
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2076
|
-
return [3
|
|
2076
|
+
return [3, 19];
|
|
2077
2077
|
case 16:
|
|
2078
2078
|
_k = [{}];
|
|
2079
|
-
return [4
|
|
2079
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
2080
2080
|
case 17:
|
|
2081
2081
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2082
|
-
return [3
|
|
2082
|
+
return [3, 19];
|
|
2083
2083
|
case 18:
|
|
2084
2084
|
parsedBody = parsedOutput.body;
|
|
2085
2085
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2089,7 +2089,7 @@ var deserializeAws_restJson1GetResourceShareInvitationsCommandError = function (
|
|
|
2089
2089
|
message = response.message || response.Message || errorCode;
|
|
2090
2090
|
response.message = message;
|
|
2091
2091
|
delete response.Message;
|
|
2092
|
-
return [2
|
|
2092
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2093
2093
|
}
|
|
2094
2094
|
});
|
|
2095
2095
|
}); };
|
|
@@ -2099,7 +2099,7 @@ export var deserializeAws_restJson1GetResourceSharesCommand = function (output,
|
|
|
2099
2099
|
switch (_c.label) {
|
|
2100
2100
|
case 0:
|
|
2101
2101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2102
|
-
return [2
|
|
2102
|
+
return [2, deserializeAws_restJson1GetResourceSharesCommandError(output, context)];
|
|
2103
2103
|
}
|
|
2104
2104
|
contents = {
|
|
2105
2105
|
$metadata: deserializeMetadata(output),
|
|
@@ -2108,7 +2108,7 @@ export var deserializeAws_restJson1GetResourceSharesCommand = function (output,
|
|
|
2108
2108
|
};
|
|
2109
2109
|
_a = __expectNonNull;
|
|
2110
2110
|
_b = __expectObject;
|
|
2111
|
-
return [4
|
|
2111
|
+
return [4, parseBody(output.body, context)];
|
|
2112
2112
|
case 1:
|
|
2113
2113
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2114
2114
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -2117,7 +2117,7 @@ export var deserializeAws_restJson1GetResourceSharesCommand = function (output,
|
|
|
2117
2117
|
if (data.resourceShares !== undefined && data.resourceShares !== null) {
|
|
2118
2118
|
contents.resourceShares = deserializeAws_restJson1ResourceShareList(data.resourceShares, context);
|
|
2119
2119
|
}
|
|
2120
|
-
return [2
|
|
2120
|
+
return [2, Promise.resolve(contents)];
|
|
2121
2121
|
}
|
|
2122
2122
|
});
|
|
2123
2123
|
}); };
|
|
@@ -2129,63 +2129,63 @@ var deserializeAws_restJson1GetResourceSharesCommandError = function (output, co
|
|
|
2129
2129
|
case 0:
|
|
2130
2130
|
_a = [__assign({}, output)];
|
|
2131
2131
|
_j = {};
|
|
2132
|
-
return [4
|
|
2132
|
+
return [4, parseBody(output.body, context)];
|
|
2133
2133
|
case 1:
|
|
2134
2134
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2135
2135
|
errorCode = "UnknownError";
|
|
2136
2136
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2137
2137
|
_b = errorCode;
|
|
2138
2138
|
switch (_b) {
|
|
2139
|
-
case "InvalidNextTokenException": return [3
|
|
2140
|
-
case "com.amazonaws.ram#InvalidNextTokenException": return [3
|
|
2141
|
-
case "InvalidParameterException": return [3
|
|
2142
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
2143
|
-
case "MalformedArnException": return [3
|
|
2144
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
2145
|
-
case "ServerInternalException": return [3
|
|
2146
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
2147
|
-
case "ServiceUnavailableException": return [3
|
|
2148
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
2149
|
-
case "UnknownResourceException": return [3
|
|
2150
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
2139
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
2140
|
+
case "com.amazonaws.ram#InvalidNextTokenException": return [3, 2];
|
|
2141
|
+
case "InvalidParameterException": return [3, 4];
|
|
2142
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 4];
|
|
2143
|
+
case "MalformedArnException": return [3, 6];
|
|
2144
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 6];
|
|
2145
|
+
case "ServerInternalException": return [3, 8];
|
|
2146
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 8];
|
|
2147
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2148
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 10];
|
|
2149
|
+
case "UnknownResourceException": return [3, 12];
|
|
2150
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 12];
|
|
2151
2151
|
}
|
|
2152
|
-
return [3
|
|
2152
|
+
return [3, 14];
|
|
2153
2153
|
case 2:
|
|
2154
2154
|
_c = [{}];
|
|
2155
|
-
return [4
|
|
2155
|
+
return [4, deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2156
2156
|
case 3:
|
|
2157
2157
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2158
|
-
return [3
|
|
2158
|
+
return [3, 15];
|
|
2159
2159
|
case 4:
|
|
2160
2160
|
_d = [{}];
|
|
2161
|
-
return [4
|
|
2161
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2162
2162
|
case 5:
|
|
2163
2163
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2164
|
-
return [3
|
|
2164
|
+
return [3, 15];
|
|
2165
2165
|
case 6:
|
|
2166
2166
|
_e = [{}];
|
|
2167
|
-
return [4
|
|
2167
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
2168
2168
|
case 7:
|
|
2169
2169
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2170
|
-
return [3
|
|
2170
|
+
return [3, 15];
|
|
2171
2171
|
case 8:
|
|
2172
2172
|
_f = [{}];
|
|
2173
|
-
return [4
|
|
2173
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
2174
2174
|
case 9:
|
|
2175
2175
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2176
|
-
return [3
|
|
2176
|
+
return [3, 15];
|
|
2177
2177
|
case 10:
|
|
2178
2178
|
_g = [{}];
|
|
2179
|
-
return [4
|
|
2179
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2180
2180
|
case 11:
|
|
2181
2181
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2182
|
-
return [3
|
|
2182
|
+
return [3, 15];
|
|
2183
2183
|
case 12:
|
|
2184
2184
|
_h = [{}];
|
|
2185
|
-
return [4
|
|
2185
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
2186
2186
|
case 13:
|
|
2187
2187
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2188
|
-
return [3
|
|
2188
|
+
return [3, 15];
|
|
2189
2189
|
case 14:
|
|
2190
2190
|
parsedBody = parsedOutput.body;
|
|
2191
2191
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2195,7 +2195,7 @@ var deserializeAws_restJson1GetResourceSharesCommandError = function (output, co
|
|
|
2195
2195
|
message = response.message || response.Message || errorCode;
|
|
2196
2196
|
response.message = message;
|
|
2197
2197
|
delete response.Message;
|
|
2198
|
-
return [2
|
|
2198
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2199
2199
|
}
|
|
2200
2200
|
});
|
|
2201
2201
|
}); };
|
|
@@ -2205,7 +2205,7 @@ export var deserializeAws_restJson1ListPendingInvitationResourcesCommand = funct
|
|
|
2205
2205
|
switch (_c.label) {
|
|
2206
2206
|
case 0:
|
|
2207
2207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2208
|
-
return [2
|
|
2208
|
+
return [2, deserializeAws_restJson1ListPendingInvitationResourcesCommandError(output, context)];
|
|
2209
2209
|
}
|
|
2210
2210
|
contents = {
|
|
2211
2211
|
$metadata: deserializeMetadata(output),
|
|
@@ -2214,7 +2214,7 @@ export var deserializeAws_restJson1ListPendingInvitationResourcesCommand = funct
|
|
|
2214
2214
|
};
|
|
2215
2215
|
_a = __expectNonNull;
|
|
2216
2216
|
_b = __expectObject;
|
|
2217
|
-
return [4
|
|
2217
|
+
return [4, parseBody(output.body, context)];
|
|
2218
2218
|
case 1:
|
|
2219
2219
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2220
2220
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -2223,7 +2223,7 @@ export var deserializeAws_restJson1ListPendingInvitationResourcesCommand = funct
|
|
|
2223
2223
|
if (data.resources !== undefined && data.resources !== null) {
|
|
2224
2224
|
contents.resources = deserializeAws_restJson1ResourceList(data.resources, context);
|
|
2225
2225
|
}
|
|
2226
|
-
return [2
|
|
2226
|
+
return [2, Promise.resolve(contents)];
|
|
2227
2227
|
}
|
|
2228
2228
|
});
|
|
2229
2229
|
}); };
|
|
@@ -2235,87 +2235,87 @@ var deserializeAws_restJson1ListPendingInvitationResourcesCommandError = functio
|
|
|
2235
2235
|
case 0:
|
|
2236
2236
|
_a = [__assign({}, output)];
|
|
2237
2237
|
_m = {};
|
|
2238
|
-
return [4
|
|
2238
|
+
return [4, parseBody(output.body, context)];
|
|
2239
2239
|
case 1:
|
|
2240
2240
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
2241
2241
|
errorCode = "UnknownError";
|
|
2242
2242
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2243
2243
|
_b = errorCode;
|
|
2244
2244
|
switch (_b) {
|
|
2245
|
-
case "InvalidNextTokenException": return [3
|
|
2246
|
-
case "com.amazonaws.ram#InvalidNextTokenException": return [3
|
|
2247
|
-
case "InvalidParameterException": return [3
|
|
2248
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
2249
|
-
case "MalformedArnException": return [3
|
|
2250
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
2251
|
-
case "MissingRequiredParameterException": return [3
|
|
2252
|
-
case "com.amazonaws.ram#MissingRequiredParameterException": return [3
|
|
2253
|
-
case "ResourceShareInvitationAlreadyRejectedException": return [3
|
|
2254
|
-
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException": return [3
|
|
2255
|
-
case "ResourceShareInvitationArnNotFoundException": return [3
|
|
2256
|
-
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException": return [3
|
|
2257
|
-
case "ResourceShareInvitationExpiredException": return [3
|
|
2258
|
-
case "com.amazonaws.ram#ResourceShareInvitationExpiredException": return [3
|
|
2259
|
-
case "ServerInternalException": return [3
|
|
2260
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
2261
|
-
case "ServiceUnavailableException": return [3
|
|
2262
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
2245
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
2246
|
+
case "com.amazonaws.ram#InvalidNextTokenException": return [3, 2];
|
|
2247
|
+
case "InvalidParameterException": return [3, 4];
|
|
2248
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 4];
|
|
2249
|
+
case "MalformedArnException": return [3, 6];
|
|
2250
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 6];
|
|
2251
|
+
case "MissingRequiredParameterException": return [3, 8];
|
|
2252
|
+
case "com.amazonaws.ram#MissingRequiredParameterException": return [3, 8];
|
|
2253
|
+
case "ResourceShareInvitationAlreadyRejectedException": return [3, 10];
|
|
2254
|
+
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException": return [3, 10];
|
|
2255
|
+
case "ResourceShareInvitationArnNotFoundException": return [3, 12];
|
|
2256
|
+
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException": return [3, 12];
|
|
2257
|
+
case "ResourceShareInvitationExpiredException": return [3, 14];
|
|
2258
|
+
case "com.amazonaws.ram#ResourceShareInvitationExpiredException": return [3, 14];
|
|
2259
|
+
case "ServerInternalException": return [3, 16];
|
|
2260
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 16];
|
|
2261
|
+
case "ServiceUnavailableException": return [3, 18];
|
|
2262
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 18];
|
|
2263
2263
|
}
|
|
2264
|
-
return [3
|
|
2264
|
+
return [3, 20];
|
|
2265
2265
|
case 2:
|
|
2266
2266
|
_c = [{}];
|
|
2267
|
-
return [4
|
|
2267
|
+
return [4, deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2268
2268
|
case 3:
|
|
2269
2269
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2270
|
-
return [3
|
|
2270
|
+
return [3, 21];
|
|
2271
2271
|
case 4:
|
|
2272
2272
|
_d = [{}];
|
|
2273
|
-
return [4
|
|
2273
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2274
2274
|
case 5:
|
|
2275
2275
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2276
|
-
return [3
|
|
2276
|
+
return [3, 21];
|
|
2277
2277
|
case 6:
|
|
2278
2278
|
_e = [{}];
|
|
2279
|
-
return [4
|
|
2279
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
2280
2280
|
case 7:
|
|
2281
2281
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2282
|
-
return [3
|
|
2282
|
+
return [3, 21];
|
|
2283
2283
|
case 8:
|
|
2284
2284
|
_f = [{}];
|
|
2285
|
-
return [4
|
|
2285
|
+
return [4, deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context)];
|
|
2286
2286
|
case 9:
|
|
2287
2287
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2288
|
-
return [3
|
|
2288
|
+
return [3, 21];
|
|
2289
2289
|
case 10:
|
|
2290
2290
|
_g = [{}];
|
|
2291
|
-
return [4
|
|
2291
|
+
return [4, deserializeAws_restJson1ResourceShareInvitationAlreadyRejectedExceptionResponse(parsedOutput, context)];
|
|
2292
2292
|
case 11:
|
|
2293
2293
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2294
|
-
return [3
|
|
2294
|
+
return [3, 21];
|
|
2295
2295
|
case 12:
|
|
2296
2296
|
_h = [{}];
|
|
2297
|
-
return [4
|
|
2297
|
+
return [4, deserializeAws_restJson1ResourceShareInvitationArnNotFoundExceptionResponse(parsedOutput, context)];
|
|
2298
2298
|
case 13:
|
|
2299
2299
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2300
|
-
return [3
|
|
2300
|
+
return [3, 21];
|
|
2301
2301
|
case 14:
|
|
2302
2302
|
_j = [{}];
|
|
2303
|
-
return [4
|
|
2303
|
+
return [4, deserializeAws_restJson1ResourceShareInvitationExpiredExceptionResponse(parsedOutput, context)];
|
|
2304
2304
|
case 15:
|
|
2305
2305
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2306
|
-
return [3
|
|
2306
|
+
return [3, 21];
|
|
2307
2307
|
case 16:
|
|
2308
2308
|
_k = [{}];
|
|
2309
|
-
return [4
|
|
2309
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
2310
2310
|
case 17:
|
|
2311
2311
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2312
|
-
return [3
|
|
2312
|
+
return [3, 21];
|
|
2313
2313
|
case 18:
|
|
2314
2314
|
_l = [{}];
|
|
2315
|
-
return [4
|
|
2315
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2316
2316
|
case 19:
|
|
2317
2317
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2318
|
-
return [3
|
|
2318
|
+
return [3, 21];
|
|
2319
2319
|
case 20:
|
|
2320
2320
|
parsedBody = parsedOutput.body;
|
|
2321
2321
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2325,7 +2325,7 @@ var deserializeAws_restJson1ListPendingInvitationResourcesCommandError = functio
|
|
|
2325
2325
|
message = response.message || response.Message || errorCode;
|
|
2326
2326
|
response.message = message;
|
|
2327
2327
|
delete response.Message;
|
|
2328
|
-
return [2
|
|
2328
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2329
2329
|
}
|
|
2330
2330
|
});
|
|
2331
2331
|
}); };
|
|
@@ -2335,7 +2335,7 @@ export var deserializeAws_restJson1ListPermissionsCommand = function (output, co
|
|
|
2335
2335
|
switch (_c.label) {
|
|
2336
2336
|
case 0:
|
|
2337
2337
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2338
|
-
return [2
|
|
2338
|
+
return [2, deserializeAws_restJson1ListPermissionsCommandError(output, context)];
|
|
2339
2339
|
}
|
|
2340
2340
|
contents = {
|
|
2341
2341
|
$metadata: deserializeMetadata(output),
|
|
@@ -2344,7 +2344,7 @@ export var deserializeAws_restJson1ListPermissionsCommand = function (output, co
|
|
|
2344
2344
|
};
|
|
2345
2345
|
_a = __expectNonNull;
|
|
2346
2346
|
_b = __expectObject;
|
|
2347
|
-
return [4
|
|
2347
|
+
return [4, parseBody(output.body, context)];
|
|
2348
2348
|
case 1:
|
|
2349
2349
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2350
2350
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -2353,7 +2353,7 @@ export var deserializeAws_restJson1ListPermissionsCommand = function (output, co
|
|
|
2353
2353
|
if (data.permissions !== undefined && data.permissions !== null) {
|
|
2354
2354
|
contents.permissions = deserializeAws_restJson1ResourceSharePermissionList(data.permissions, context);
|
|
2355
2355
|
}
|
|
2356
|
-
return [2
|
|
2356
|
+
return [2, Promise.resolve(contents)];
|
|
2357
2357
|
}
|
|
2358
2358
|
});
|
|
2359
2359
|
}); };
|
|
@@ -2365,55 +2365,55 @@ var deserializeAws_restJson1ListPermissionsCommandError = function (output, cont
|
|
|
2365
2365
|
case 0:
|
|
2366
2366
|
_a = [__assign({}, output)];
|
|
2367
2367
|
_h = {};
|
|
2368
|
-
return [4
|
|
2368
|
+
return [4, parseBody(output.body, context)];
|
|
2369
2369
|
case 1:
|
|
2370
2370
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2371
2371
|
errorCode = "UnknownError";
|
|
2372
2372
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2373
2373
|
_b = errorCode;
|
|
2374
2374
|
switch (_b) {
|
|
2375
|
-
case "InvalidNextTokenException": return [3
|
|
2376
|
-
case "com.amazonaws.ram#InvalidNextTokenException": return [3
|
|
2377
|
-
case "InvalidParameterException": return [3
|
|
2378
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
2379
|
-
case "OperationNotPermittedException": return [3
|
|
2380
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
2381
|
-
case "ServerInternalException": return [3
|
|
2382
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
2383
|
-
case "ServiceUnavailableException": return [3
|
|
2384
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
2375
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
2376
|
+
case "com.amazonaws.ram#InvalidNextTokenException": return [3, 2];
|
|
2377
|
+
case "InvalidParameterException": return [3, 4];
|
|
2378
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 4];
|
|
2379
|
+
case "OperationNotPermittedException": return [3, 6];
|
|
2380
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 6];
|
|
2381
|
+
case "ServerInternalException": return [3, 8];
|
|
2382
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 8];
|
|
2383
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2384
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 10];
|
|
2385
2385
|
}
|
|
2386
|
-
return [3
|
|
2386
|
+
return [3, 12];
|
|
2387
2387
|
case 2:
|
|
2388
2388
|
_c = [{}];
|
|
2389
|
-
return [4
|
|
2389
|
+
return [4, deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2390
2390
|
case 3:
|
|
2391
2391
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2392
|
-
return [3
|
|
2392
|
+
return [3, 13];
|
|
2393
2393
|
case 4:
|
|
2394
2394
|
_d = [{}];
|
|
2395
|
-
return [4
|
|
2395
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2396
2396
|
case 5:
|
|
2397
2397
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2398
|
-
return [3
|
|
2398
|
+
return [3, 13];
|
|
2399
2399
|
case 6:
|
|
2400
2400
|
_e = [{}];
|
|
2401
|
-
return [4
|
|
2401
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
2402
2402
|
case 7:
|
|
2403
2403
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2404
|
-
return [3
|
|
2404
|
+
return [3, 13];
|
|
2405
2405
|
case 8:
|
|
2406
2406
|
_f = [{}];
|
|
2407
|
-
return [4
|
|
2407
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
2408
2408
|
case 9:
|
|
2409
2409
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2410
|
-
return [3
|
|
2410
|
+
return [3, 13];
|
|
2411
2411
|
case 10:
|
|
2412
2412
|
_g = [{}];
|
|
2413
|
-
return [4
|
|
2413
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2414
2414
|
case 11:
|
|
2415
2415
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2416
|
-
return [3
|
|
2416
|
+
return [3, 13];
|
|
2417
2417
|
case 12:
|
|
2418
2418
|
parsedBody = parsedOutput.body;
|
|
2419
2419
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2423,7 +2423,7 @@ var deserializeAws_restJson1ListPermissionsCommandError = function (output, cont
|
|
|
2423
2423
|
message = response.message || response.Message || errorCode;
|
|
2424
2424
|
response.message = message;
|
|
2425
2425
|
delete response.Message;
|
|
2426
|
-
return [2
|
|
2426
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2427
2427
|
}
|
|
2428
2428
|
});
|
|
2429
2429
|
}); };
|
|
@@ -2433,7 +2433,7 @@ export var deserializeAws_restJson1ListPrincipalsCommand = function (output, con
|
|
|
2433
2433
|
switch (_c.label) {
|
|
2434
2434
|
case 0:
|
|
2435
2435
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2436
|
-
return [2
|
|
2436
|
+
return [2, deserializeAws_restJson1ListPrincipalsCommandError(output, context)];
|
|
2437
2437
|
}
|
|
2438
2438
|
contents = {
|
|
2439
2439
|
$metadata: deserializeMetadata(output),
|
|
@@ -2442,7 +2442,7 @@ export var deserializeAws_restJson1ListPrincipalsCommand = function (output, con
|
|
|
2442
2442
|
};
|
|
2443
2443
|
_a = __expectNonNull;
|
|
2444
2444
|
_b = __expectObject;
|
|
2445
|
-
return [4
|
|
2445
|
+
return [4, parseBody(output.body, context)];
|
|
2446
2446
|
case 1:
|
|
2447
2447
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2448
2448
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -2451,7 +2451,7 @@ export var deserializeAws_restJson1ListPrincipalsCommand = function (output, con
|
|
|
2451
2451
|
if (data.principals !== undefined && data.principals !== null) {
|
|
2452
2452
|
contents.principals = deserializeAws_restJson1PrincipalList(data.principals, context);
|
|
2453
2453
|
}
|
|
2454
|
-
return [2
|
|
2454
|
+
return [2, Promise.resolve(contents)];
|
|
2455
2455
|
}
|
|
2456
2456
|
});
|
|
2457
2457
|
}); };
|
|
@@ -2463,63 +2463,63 @@ var deserializeAws_restJson1ListPrincipalsCommandError = function (output, conte
|
|
|
2463
2463
|
case 0:
|
|
2464
2464
|
_a = [__assign({}, output)];
|
|
2465
2465
|
_j = {};
|
|
2466
|
-
return [4
|
|
2466
|
+
return [4, parseBody(output.body, context)];
|
|
2467
2467
|
case 1:
|
|
2468
2468
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2469
2469
|
errorCode = "UnknownError";
|
|
2470
2470
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2471
2471
|
_b = errorCode;
|
|
2472
2472
|
switch (_b) {
|
|
2473
|
-
case "InvalidNextTokenException": return [3
|
|
2474
|
-
case "com.amazonaws.ram#InvalidNextTokenException": return [3
|
|
2475
|
-
case "InvalidParameterException": return [3
|
|
2476
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
2477
|
-
case "MalformedArnException": return [3
|
|
2478
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
2479
|
-
case "ServerInternalException": return [3
|
|
2480
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
2481
|
-
case "ServiceUnavailableException": return [3
|
|
2482
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
2483
|
-
case "UnknownResourceException": return [3
|
|
2484
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
2473
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
2474
|
+
case "com.amazonaws.ram#InvalidNextTokenException": return [3, 2];
|
|
2475
|
+
case "InvalidParameterException": return [3, 4];
|
|
2476
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 4];
|
|
2477
|
+
case "MalformedArnException": return [3, 6];
|
|
2478
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 6];
|
|
2479
|
+
case "ServerInternalException": return [3, 8];
|
|
2480
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 8];
|
|
2481
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2482
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 10];
|
|
2483
|
+
case "UnknownResourceException": return [3, 12];
|
|
2484
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 12];
|
|
2485
2485
|
}
|
|
2486
|
-
return [3
|
|
2486
|
+
return [3, 14];
|
|
2487
2487
|
case 2:
|
|
2488
2488
|
_c = [{}];
|
|
2489
|
-
return [4
|
|
2489
|
+
return [4, deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2490
2490
|
case 3:
|
|
2491
2491
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2492
|
-
return [3
|
|
2492
|
+
return [3, 15];
|
|
2493
2493
|
case 4:
|
|
2494
2494
|
_d = [{}];
|
|
2495
|
-
return [4
|
|
2495
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2496
2496
|
case 5:
|
|
2497
2497
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2498
|
-
return [3
|
|
2498
|
+
return [3, 15];
|
|
2499
2499
|
case 6:
|
|
2500
2500
|
_e = [{}];
|
|
2501
|
-
return [4
|
|
2501
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
2502
2502
|
case 7:
|
|
2503
2503
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2504
|
-
return [3
|
|
2504
|
+
return [3, 15];
|
|
2505
2505
|
case 8:
|
|
2506
2506
|
_f = [{}];
|
|
2507
|
-
return [4
|
|
2507
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
2508
2508
|
case 9:
|
|
2509
2509
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2510
|
-
return [3
|
|
2510
|
+
return [3, 15];
|
|
2511
2511
|
case 10:
|
|
2512
2512
|
_g = [{}];
|
|
2513
|
-
return [4
|
|
2513
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2514
2514
|
case 11:
|
|
2515
2515
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2516
|
-
return [3
|
|
2516
|
+
return [3, 15];
|
|
2517
2517
|
case 12:
|
|
2518
2518
|
_h = [{}];
|
|
2519
|
-
return [4
|
|
2519
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
2520
2520
|
case 13:
|
|
2521
2521
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2522
|
-
return [3
|
|
2522
|
+
return [3, 15];
|
|
2523
2523
|
case 14:
|
|
2524
2524
|
parsedBody = parsedOutput.body;
|
|
2525
2525
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2529,7 +2529,7 @@ var deserializeAws_restJson1ListPrincipalsCommandError = function (output, conte
|
|
|
2529
2529
|
message = response.message || response.Message || errorCode;
|
|
2530
2530
|
response.message = message;
|
|
2531
2531
|
delete response.Message;
|
|
2532
|
-
return [2
|
|
2532
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2533
2533
|
}
|
|
2534
2534
|
});
|
|
2535
2535
|
}); };
|
|
@@ -2539,7 +2539,7 @@ export var deserializeAws_restJson1ListResourcesCommand = function (output, cont
|
|
|
2539
2539
|
switch (_c.label) {
|
|
2540
2540
|
case 0:
|
|
2541
2541
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2542
|
-
return [2
|
|
2542
|
+
return [2, deserializeAws_restJson1ListResourcesCommandError(output, context)];
|
|
2543
2543
|
}
|
|
2544
2544
|
contents = {
|
|
2545
2545
|
$metadata: deserializeMetadata(output),
|
|
@@ -2548,7 +2548,7 @@ export var deserializeAws_restJson1ListResourcesCommand = function (output, cont
|
|
|
2548
2548
|
};
|
|
2549
2549
|
_a = __expectNonNull;
|
|
2550
2550
|
_b = __expectObject;
|
|
2551
|
-
return [4
|
|
2551
|
+
return [4, parseBody(output.body, context)];
|
|
2552
2552
|
case 1:
|
|
2553
2553
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2554
2554
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -2557,7 +2557,7 @@ export var deserializeAws_restJson1ListResourcesCommand = function (output, cont
|
|
|
2557
2557
|
if (data.resources !== undefined && data.resources !== null) {
|
|
2558
2558
|
contents.resources = deserializeAws_restJson1ResourceList(data.resources, context);
|
|
2559
2559
|
}
|
|
2560
|
-
return [2
|
|
2560
|
+
return [2, Promise.resolve(contents)];
|
|
2561
2561
|
}
|
|
2562
2562
|
});
|
|
2563
2563
|
}); };
|
|
@@ -2569,71 +2569,71 @@ var deserializeAws_restJson1ListResourcesCommandError = function (output, contex
|
|
|
2569
2569
|
case 0:
|
|
2570
2570
|
_a = [__assign({}, output)];
|
|
2571
2571
|
_k = {};
|
|
2572
|
-
return [4
|
|
2572
|
+
return [4, parseBody(output.body, context)];
|
|
2573
2573
|
case 1:
|
|
2574
2574
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2575
2575
|
errorCode = "UnknownError";
|
|
2576
2576
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2577
2577
|
_b = errorCode;
|
|
2578
2578
|
switch (_b) {
|
|
2579
|
-
case "InvalidNextTokenException": return [3
|
|
2580
|
-
case "com.amazonaws.ram#InvalidNextTokenException": return [3
|
|
2581
|
-
case "InvalidParameterException": return [3
|
|
2582
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
2583
|
-
case "InvalidResourceTypeException": return [3
|
|
2584
|
-
case "com.amazonaws.ram#InvalidResourceTypeException": return [3
|
|
2585
|
-
case "MalformedArnException": return [3
|
|
2586
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
2587
|
-
case "ServerInternalException": return [3
|
|
2588
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
2589
|
-
case "ServiceUnavailableException": return [3
|
|
2590
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
2591
|
-
case "UnknownResourceException": return [3
|
|
2592
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
2579
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
2580
|
+
case "com.amazonaws.ram#InvalidNextTokenException": return [3, 2];
|
|
2581
|
+
case "InvalidParameterException": return [3, 4];
|
|
2582
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 4];
|
|
2583
|
+
case "InvalidResourceTypeException": return [3, 6];
|
|
2584
|
+
case "com.amazonaws.ram#InvalidResourceTypeException": return [3, 6];
|
|
2585
|
+
case "MalformedArnException": return [3, 8];
|
|
2586
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 8];
|
|
2587
|
+
case "ServerInternalException": return [3, 10];
|
|
2588
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 10];
|
|
2589
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
2590
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 12];
|
|
2591
|
+
case "UnknownResourceException": return [3, 14];
|
|
2592
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 14];
|
|
2593
2593
|
}
|
|
2594
|
-
return [3
|
|
2594
|
+
return [3, 16];
|
|
2595
2595
|
case 2:
|
|
2596
2596
|
_c = [{}];
|
|
2597
|
-
return [4
|
|
2597
|
+
return [4, deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2598
2598
|
case 3:
|
|
2599
2599
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2600
|
-
return [3
|
|
2600
|
+
return [3, 17];
|
|
2601
2601
|
case 4:
|
|
2602
2602
|
_d = [{}];
|
|
2603
|
-
return [4
|
|
2603
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2604
2604
|
case 5:
|
|
2605
2605
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2606
|
-
return [3
|
|
2606
|
+
return [3, 17];
|
|
2607
2607
|
case 6:
|
|
2608
2608
|
_e = [{}];
|
|
2609
|
-
return [4
|
|
2609
|
+
return [4, deserializeAws_restJson1InvalidResourceTypeExceptionResponse(parsedOutput, context)];
|
|
2610
2610
|
case 7:
|
|
2611
2611
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2612
|
-
return [3
|
|
2612
|
+
return [3, 17];
|
|
2613
2613
|
case 8:
|
|
2614
2614
|
_f = [{}];
|
|
2615
|
-
return [4
|
|
2615
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
2616
2616
|
case 9:
|
|
2617
2617
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2618
|
-
return [3
|
|
2618
|
+
return [3, 17];
|
|
2619
2619
|
case 10:
|
|
2620
2620
|
_g = [{}];
|
|
2621
|
-
return [4
|
|
2621
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
2622
2622
|
case 11:
|
|
2623
2623
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2624
|
-
return [3
|
|
2624
|
+
return [3, 17];
|
|
2625
2625
|
case 12:
|
|
2626
2626
|
_h = [{}];
|
|
2627
|
-
return [4
|
|
2627
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2628
2628
|
case 13:
|
|
2629
2629
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2630
|
-
return [3
|
|
2630
|
+
return [3, 17];
|
|
2631
2631
|
case 14:
|
|
2632
2632
|
_j = [{}];
|
|
2633
|
-
return [4
|
|
2633
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
2634
2634
|
case 15:
|
|
2635
2635
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2636
|
-
return [3
|
|
2636
|
+
return [3, 17];
|
|
2637
2637
|
case 16:
|
|
2638
2638
|
parsedBody = parsedOutput.body;
|
|
2639
2639
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2643,7 +2643,7 @@ var deserializeAws_restJson1ListResourcesCommandError = function (output, contex
|
|
|
2643
2643
|
message = response.message || response.Message || errorCode;
|
|
2644
2644
|
response.message = message;
|
|
2645
2645
|
delete response.Message;
|
|
2646
|
-
return [2
|
|
2646
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2647
2647
|
}
|
|
2648
2648
|
});
|
|
2649
2649
|
}); };
|
|
@@ -2653,7 +2653,7 @@ export var deserializeAws_restJson1ListResourceSharePermissionsCommand = functio
|
|
|
2653
2653
|
switch (_c.label) {
|
|
2654
2654
|
case 0:
|
|
2655
2655
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2656
|
-
return [2
|
|
2656
|
+
return [2, deserializeAws_restJson1ListResourceSharePermissionsCommandError(output, context)];
|
|
2657
2657
|
}
|
|
2658
2658
|
contents = {
|
|
2659
2659
|
$metadata: deserializeMetadata(output),
|
|
@@ -2662,7 +2662,7 @@ export var deserializeAws_restJson1ListResourceSharePermissionsCommand = functio
|
|
|
2662
2662
|
};
|
|
2663
2663
|
_a = __expectNonNull;
|
|
2664
2664
|
_b = __expectObject;
|
|
2665
|
-
return [4
|
|
2665
|
+
return [4, parseBody(output.body, context)];
|
|
2666
2666
|
case 1:
|
|
2667
2667
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2668
2668
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -2671,7 +2671,7 @@ export var deserializeAws_restJson1ListResourceSharePermissionsCommand = functio
|
|
|
2671
2671
|
if (data.permissions !== undefined && data.permissions !== null) {
|
|
2672
2672
|
contents.permissions = deserializeAws_restJson1ResourceSharePermissionList(data.permissions, context);
|
|
2673
2673
|
}
|
|
2674
|
-
return [2
|
|
2674
|
+
return [2, Promise.resolve(contents)];
|
|
2675
2675
|
}
|
|
2676
2676
|
});
|
|
2677
2677
|
}); };
|
|
@@ -2683,71 +2683,71 @@ var deserializeAws_restJson1ListResourceSharePermissionsCommandError = function
|
|
|
2683
2683
|
case 0:
|
|
2684
2684
|
_a = [__assign({}, output)];
|
|
2685
2685
|
_k = {};
|
|
2686
|
-
return [4
|
|
2686
|
+
return [4, parseBody(output.body, context)];
|
|
2687
2687
|
case 1:
|
|
2688
2688
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2689
2689
|
errorCode = "UnknownError";
|
|
2690
2690
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2691
2691
|
_b = errorCode;
|
|
2692
2692
|
switch (_b) {
|
|
2693
|
-
case "InvalidNextTokenException": return [3
|
|
2694
|
-
case "com.amazonaws.ram#InvalidNextTokenException": return [3
|
|
2695
|
-
case "InvalidParameterException": return [3
|
|
2696
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
2697
|
-
case "MalformedArnException": return [3
|
|
2698
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
2699
|
-
case "OperationNotPermittedException": return [3
|
|
2700
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
2701
|
-
case "ServerInternalException": return [3
|
|
2702
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
2703
|
-
case "ServiceUnavailableException": return [3
|
|
2704
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
2705
|
-
case "UnknownResourceException": return [3
|
|
2706
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
2693
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
2694
|
+
case "com.amazonaws.ram#InvalidNextTokenException": return [3, 2];
|
|
2695
|
+
case "InvalidParameterException": return [3, 4];
|
|
2696
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 4];
|
|
2697
|
+
case "MalformedArnException": return [3, 6];
|
|
2698
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 6];
|
|
2699
|
+
case "OperationNotPermittedException": return [3, 8];
|
|
2700
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 8];
|
|
2701
|
+
case "ServerInternalException": return [3, 10];
|
|
2702
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 10];
|
|
2703
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
2704
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 12];
|
|
2705
|
+
case "UnknownResourceException": return [3, 14];
|
|
2706
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 14];
|
|
2707
2707
|
}
|
|
2708
|
-
return [3
|
|
2708
|
+
return [3, 16];
|
|
2709
2709
|
case 2:
|
|
2710
2710
|
_c = [{}];
|
|
2711
|
-
return [4
|
|
2711
|
+
return [4, deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2712
2712
|
case 3:
|
|
2713
2713
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2714
|
-
return [3
|
|
2714
|
+
return [3, 17];
|
|
2715
2715
|
case 4:
|
|
2716
2716
|
_d = [{}];
|
|
2717
|
-
return [4
|
|
2717
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2718
2718
|
case 5:
|
|
2719
2719
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2720
|
-
return [3
|
|
2720
|
+
return [3, 17];
|
|
2721
2721
|
case 6:
|
|
2722
2722
|
_e = [{}];
|
|
2723
|
-
return [4
|
|
2723
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
2724
2724
|
case 7:
|
|
2725
2725
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2726
|
-
return [3
|
|
2726
|
+
return [3, 17];
|
|
2727
2727
|
case 8:
|
|
2728
2728
|
_f = [{}];
|
|
2729
|
-
return [4
|
|
2729
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
2730
2730
|
case 9:
|
|
2731
2731
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2732
|
-
return [3
|
|
2732
|
+
return [3, 17];
|
|
2733
2733
|
case 10:
|
|
2734
2734
|
_g = [{}];
|
|
2735
|
-
return [4
|
|
2735
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
2736
2736
|
case 11:
|
|
2737
2737
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2738
|
-
return [3
|
|
2738
|
+
return [3, 17];
|
|
2739
2739
|
case 12:
|
|
2740
2740
|
_h = [{}];
|
|
2741
|
-
return [4
|
|
2741
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2742
2742
|
case 13:
|
|
2743
2743
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2744
|
-
return [3
|
|
2744
|
+
return [3, 17];
|
|
2745
2745
|
case 14:
|
|
2746
2746
|
_j = [{}];
|
|
2747
|
-
return [4
|
|
2747
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
2748
2748
|
case 15:
|
|
2749
2749
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2750
|
-
return [3
|
|
2750
|
+
return [3, 17];
|
|
2751
2751
|
case 16:
|
|
2752
2752
|
parsedBody = parsedOutput.body;
|
|
2753
2753
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2757,7 +2757,7 @@ var deserializeAws_restJson1ListResourceSharePermissionsCommandError = function
|
|
|
2757
2757
|
message = response.message || response.Message || errorCode;
|
|
2758
2758
|
response.message = message;
|
|
2759
2759
|
delete response.Message;
|
|
2760
|
-
return [2
|
|
2760
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2761
2761
|
}
|
|
2762
2762
|
});
|
|
2763
2763
|
}); };
|
|
@@ -2767,7 +2767,7 @@ export var deserializeAws_restJson1ListResourceTypesCommand = function (output,
|
|
|
2767
2767
|
switch (_c.label) {
|
|
2768
2768
|
case 0:
|
|
2769
2769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2770
|
-
return [2
|
|
2770
|
+
return [2, deserializeAws_restJson1ListResourceTypesCommandError(output, context)];
|
|
2771
2771
|
}
|
|
2772
2772
|
contents = {
|
|
2773
2773
|
$metadata: deserializeMetadata(output),
|
|
@@ -2776,7 +2776,7 @@ export var deserializeAws_restJson1ListResourceTypesCommand = function (output,
|
|
|
2776
2776
|
};
|
|
2777
2777
|
_a = __expectNonNull;
|
|
2778
2778
|
_b = __expectObject;
|
|
2779
|
-
return [4
|
|
2779
|
+
return [4, parseBody(output.body, context)];
|
|
2780
2780
|
case 1:
|
|
2781
2781
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2782
2782
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -2785,7 +2785,7 @@ export var deserializeAws_restJson1ListResourceTypesCommand = function (output,
|
|
|
2785
2785
|
if (data.resourceTypes !== undefined && data.resourceTypes !== null) {
|
|
2786
2786
|
contents.resourceTypes = deserializeAws_restJson1ServiceNameAndResourceTypeList(data.resourceTypes, context);
|
|
2787
2787
|
}
|
|
2788
|
-
return [2
|
|
2788
|
+
return [2, Promise.resolve(contents)];
|
|
2789
2789
|
}
|
|
2790
2790
|
});
|
|
2791
2791
|
}); };
|
|
@@ -2797,47 +2797,47 @@ var deserializeAws_restJson1ListResourceTypesCommandError = function (output, co
|
|
|
2797
2797
|
case 0:
|
|
2798
2798
|
_a = [__assign({}, output)];
|
|
2799
2799
|
_g = {};
|
|
2800
|
-
return [4
|
|
2800
|
+
return [4, parseBody(output.body, context)];
|
|
2801
2801
|
case 1:
|
|
2802
2802
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2803
2803
|
errorCode = "UnknownError";
|
|
2804
2804
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2805
2805
|
_b = errorCode;
|
|
2806
2806
|
switch (_b) {
|
|
2807
|
-
case "InvalidNextTokenException": return [3
|
|
2808
|
-
case "com.amazonaws.ram#InvalidNextTokenException": return [3
|
|
2809
|
-
case "InvalidParameterException": return [3
|
|
2810
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
2811
|
-
case "ServerInternalException": return [3
|
|
2812
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
2813
|
-
case "ServiceUnavailableException": return [3
|
|
2814
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
2807
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
2808
|
+
case "com.amazonaws.ram#InvalidNextTokenException": return [3, 2];
|
|
2809
|
+
case "InvalidParameterException": return [3, 4];
|
|
2810
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 4];
|
|
2811
|
+
case "ServerInternalException": return [3, 6];
|
|
2812
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 6];
|
|
2813
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2814
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 8];
|
|
2815
2815
|
}
|
|
2816
|
-
return [3
|
|
2816
|
+
return [3, 10];
|
|
2817
2817
|
case 2:
|
|
2818
2818
|
_c = [{}];
|
|
2819
|
-
return [4
|
|
2819
|
+
return [4, deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2820
2820
|
case 3:
|
|
2821
2821
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2822
|
-
return [3
|
|
2822
|
+
return [3, 11];
|
|
2823
2823
|
case 4:
|
|
2824
2824
|
_d = [{}];
|
|
2825
|
-
return [4
|
|
2825
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2826
2826
|
case 5:
|
|
2827
2827
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2828
|
-
return [3
|
|
2828
|
+
return [3, 11];
|
|
2829
2829
|
case 6:
|
|
2830
2830
|
_e = [{}];
|
|
2831
|
-
return [4
|
|
2831
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
2832
2832
|
case 7:
|
|
2833
2833
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2834
|
-
return [3
|
|
2834
|
+
return [3, 11];
|
|
2835
2835
|
case 8:
|
|
2836
2836
|
_f = [{}];
|
|
2837
|
-
return [4
|
|
2837
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2838
2838
|
case 9:
|
|
2839
2839
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2840
|
-
return [3
|
|
2840
|
+
return [3, 11];
|
|
2841
2841
|
case 10:
|
|
2842
2842
|
parsedBody = parsedOutput.body;
|
|
2843
2843
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2847,7 +2847,7 @@ var deserializeAws_restJson1ListResourceTypesCommandError = function (output, co
|
|
|
2847
2847
|
message = response.message || response.Message || errorCode;
|
|
2848
2848
|
response.message = message;
|
|
2849
2849
|
delete response.Message;
|
|
2850
|
-
return [2
|
|
2850
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2851
2851
|
}
|
|
2852
2852
|
});
|
|
2853
2853
|
}); };
|
|
@@ -2857,7 +2857,7 @@ export var deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand
|
|
|
2857
2857
|
switch (_c.label) {
|
|
2858
2858
|
case 0:
|
|
2859
2859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2860
|
-
return [2
|
|
2860
|
+
return [2, deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommandError(output, context)];
|
|
2861
2861
|
}
|
|
2862
2862
|
contents = {
|
|
2863
2863
|
$metadata: deserializeMetadata(output),
|
|
@@ -2865,13 +2865,13 @@ export var deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand
|
|
|
2865
2865
|
};
|
|
2866
2866
|
_a = __expectNonNull;
|
|
2867
2867
|
_b = __expectObject;
|
|
2868
|
-
return [4
|
|
2868
|
+
return [4, parseBody(output.body, context)];
|
|
2869
2869
|
case 1:
|
|
2870
2870
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2871
2871
|
if (data.returnValue !== undefined && data.returnValue !== null) {
|
|
2872
2872
|
contents.returnValue = __expectBoolean(data.returnValue);
|
|
2873
2873
|
}
|
|
2874
|
-
return [2
|
|
2874
|
+
return [2, Promise.resolve(contents)];
|
|
2875
2875
|
}
|
|
2876
2876
|
});
|
|
2877
2877
|
}); };
|
|
@@ -2883,79 +2883,79 @@ var deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommandError =
|
|
|
2883
2883
|
case 0:
|
|
2884
2884
|
_a = [__assign({}, output)];
|
|
2885
2885
|
_l = {};
|
|
2886
|
-
return [4
|
|
2886
|
+
return [4, parseBody(output.body, context)];
|
|
2887
2887
|
case 1:
|
|
2888
2888
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
2889
2889
|
errorCode = "UnknownError";
|
|
2890
2890
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2891
2891
|
_b = errorCode;
|
|
2892
2892
|
switch (_b) {
|
|
2893
|
-
case "InvalidParameterException": return [3
|
|
2894
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
2895
|
-
case "MalformedArnException": return [3
|
|
2896
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
2897
|
-
case "MissingRequiredParameterException": return [3
|
|
2898
|
-
case "com.amazonaws.ram#MissingRequiredParameterException": return [3
|
|
2899
|
-
case "OperationNotPermittedException": return [3
|
|
2900
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
2901
|
-
case "ResourceShareLimitExceededException": return [3
|
|
2902
|
-
case "com.amazonaws.ram#ResourceShareLimitExceededException": return [3
|
|
2903
|
-
case "ServerInternalException": return [3
|
|
2904
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
2905
|
-
case "ServiceUnavailableException": return [3
|
|
2906
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
2907
|
-
case "UnknownResourceException": return [3
|
|
2908
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
2893
|
+
case "InvalidParameterException": return [3, 2];
|
|
2894
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 2];
|
|
2895
|
+
case "MalformedArnException": return [3, 4];
|
|
2896
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 4];
|
|
2897
|
+
case "MissingRequiredParameterException": return [3, 6];
|
|
2898
|
+
case "com.amazonaws.ram#MissingRequiredParameterException": return [3, 6];
|
|
2899
|
+
case "OperationNotPermittedException": return [3, 8];
|
|
2900
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 8];
|
|
2901
|
+
case "ResourceShareLimitExceededException": return [3, 10];
|
|
2902
|
+
case "com.amazonaws.ram#ResourceShareLimitExceededException": return [3, 10];
|
|
2903
|
+
case "ServerInternalException": return [3, 12];
|
|
2904
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 12];
|
|
2905
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
2906
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 14];
|
|
2907
|
+
case "UnknownResourceException": return [3, 16];
|
|
2908
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 16];
|
|
2909
2909
|
}
|
|
2910
|
-
return [3
|
|
2910
|
+
return [3, 18];
|
|
2911
2911
|
case 2:
|
|
2912
2912
|
_c = [{}];
|
|
2913
|
-
return [4
|
|
2913
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2914
2914
|
case 3:
|
|
2915
2915
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2916
|
-
return [3
|
|
2916
|
+
return [3, 19];
|
|
2917
2917
|
case 4:
|
|
2918
2918
|
_d = [{}];
|
|
2919
|
-
return [4
|
|
2919
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
2920
2920
|
case 5:
|
|
2921
2921
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2922
|
-
return [3
|
|
2922
|
+
return [3, 19];
|
|
2923
2923
|
case 6:
|
|
2924
2924
|
_e = [{}];
|
|
2925
|
-
return [4
|
|
2925
|
+
return [4, deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context)];
|
|
2926
2926
|
case 7:
|
|
2927
2927
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2928
|
-
return [3
|
|
2928
|
+
return [3, 19];
|
|
2929
2929
|
case 8:
|
|
2930
2930
|
_f = [{}];
|
|
2931
|
-
return [4
|
|
2931
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
2932
2932
|
case 9:
|
|
2933
2933
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2934
|
-
return [3
|
|
2934
|
+
return [3, 19];
|
|
2935
2935
|
case 10:
|
|
2936
2936
|
_g = [{}];
|
|
2937
|
-
return [4
|
|
2937
|
+
return [4, deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2938
2938
|
case 11:
|
|
2939
2939
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2940
|
-
return [3
|
|
2940
|
+
return [3, 19];
|
|
2941
2941
|
case 12:
|
|
2942
2942
|
_h = [{}];
|
|
2943
|
-
return [4
|
|
2943
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
2944
2944
|
case 13:
|
|
2945
2945
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2946
|
-
return [3
|
|
2946
|
+
return [3, 19];
|
|
2947
2947
|
case 14:
|
|
2948
2948
|
_j = [{}];
|
|
2949
|
-
return [4
|
|
2949
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2950
2950
|
case 15:
|
|
2951
2951
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2952
|
-
return [3
|
|
2952
|
+
return [3, 19];
|
|
2953
2953
|
case 16:
|
|
2954
2954
|
_k = [{}];
|
|
2955
|
-
return [4
|
|
2955
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
2956
2956
|
case 17:
|
|
2957
2957
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2958
|
-
return [3
|
|
2958
|
+
return [3, 19];
|
|
2959
2959
|
case 18:
|
|
2960
2960
|
parsedBody = parsedOutput.body;
|
|
2961
2961
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2965,7 +2965,7 @@ var deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommandError =
|
|
|
2965
2965
|
message = response.message || response.Message || errorCode;
|
|
2966
2966
|
response.message = message;
|
|
2967
2967
|
delete response.Message;
|
|
2968
|
-
return [2
|
|
2968
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2969
2969
|
}
|
|
2970
2970
|
});
|
|
2971
2971
|
}); };
|
|
@@ -2975,7 +2975,7 @@ export var deserializeAws_restJson1RejectResourceShareInvitationCommand = functi
|
|
|
2975
2975
|
switch (_c.label) {
|
|
2976
2976
|
case 0:
|
|
2977
2977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2978
|
-
return [2
|
|
2978
|
+
return [2, deserializeAws_restJson1RejectResourceShareInvitationCommandError(output, context)];
|
|
2979
2979
|
}
|
|
2980
2980
|
contents = {
|
|
2981
2981
|
$metadata: deserializeMetadata(output),
|
|
@@ -2984,7 +2984,7 @@ export var deserializeAws_restJson1RejectResourceShareInvitationCommand = functi
|
|
|
2984
2984
|
};
|
|
2985
2985
|
_a = __expectNonNull;
|
|
2986
2986
|
_b = __expectObject;
|
|
2987
|
-
return [4
|
|
2987
|
+
return [4, parseBody(output.body, context)];
|
|
2988
2988
|
case 1:
|
|
2989
2989
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2990
2990
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
@@ -2993,7 +2993,7 @@ export var deserializeAws_restJson1RejectResourceShareInvitationCommand = functi
|
|
|
2993
2993
|
if (data.resourceShareInvitation !== undefined && data.resourceShareInvitation !== null) {
|
|
2994
2994
|
contents.resourceShareInvitation = deserializeAws_restJson1ResourceShareInvitation(data.resourceShareInvitation, context);
|
|
2995
2995
|
}
|
|
2996
|
-
return [2
|
|
2996
|
+
return [2, Promise.resolve(contents)];
|
|
2997
2997
|
}
|
|
2998
2998
|
});
|
|
2999
2999
|
}); };
|
|
@@ -3005,95 +3005,95 @@ var deserializeAws_restJson1RejectResourceShareInvitationCommandError = function
|
|
|
3005
3005
|
case 0:
|
|
3006
3006
|
_a = [__assign({}, output)];
|
|
3007
3007
|
_o = {};
|
|
3008
|
-
return [4
|
|
3008
|
+
return [4, parseBody(output.body, context)];
|
|
3009
3009
|
case 1:
|
|
3010
3010
|
parsedOutput = __assign.apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
|
|
3011
3011
|
errorCode = "UnknownError";
|
|
3012
3012
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3013
3013
|
_b = errorCode;
|
|
3014
3014
|
switch (_b) {
|
|
3015
|
-
case "IdempotentParameterMismatchException": return [3
|
|
3016
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException": return [3
|
|
3017
|
-
case "InvalidClientTokenException": return [3
|
|
3018
|
-
case "com.amazonaws.ram#InvalidClientTokenException": return [3
|
|
3019
|
-
case "MalformedArnException": return [3
|
|
3020
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
3021
|
-
case "OperationNotPermittedException": return [3
|
|
3022
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
3023
|
-
case "ResourceShareInvitationAlreadyAcceptedException": return [3
|
|
3024
|
-
case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException": return [3
|
|
3025
|
-
case "ResourceShareInvitationAlreadyRejectedException": return [3
|
|
3026
|
-
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException": return [3
|
|
3027
|
-
case "ResourceShareInvitationArnNotFoundException": return [3
|
|
3028
|
-
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException": return [3
|
|
3029
|
-
case "ResourceShareInvitationExpiredException": return [3
|
|
3030
|
-
case "com.amazonaws.ram#ResourceShareInvitationExpiredException": return [3
|
|
3031
|
-
case "ServerInternalException": return [3
|
|
3032
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
3033
|
-
case "ServiceUnavailableException": return [3
|
|
3034
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
3015
|
+
case "IdempotentParameterMismatchException": return [3, 2];
|
|
3016
|
+
case "com.amazonaws.ram#IdempotentParameterMismatchException": return [3, 2];
|
|
3017
|
+
case "InvalidClientTokenException": return [3, 4];
|
|
3018
|
+
case "com.amazonaws.ram#InvalidClientTokenException": return [3, 4];
|
|
3019
|
+
case "MalformedArnException": return [3, 6];
|
|
3020
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 6];
|
|
3021
|
+
case "OperationNotPermittedException": return [3, 8];
|
|
3022
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 8];
|
|
3023
|
+
case "ResourceShareInvitationAlreadyAcceptedException": return [3, 10];
|
|
3024
|
+
case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException": return [3, 10];
|
|
3025
|
+
case "ResourceShareInvitationAlreadyRejectedException": return [3, 12];
|
|
3026
|
+
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException": return [3, 12];
|
|
3027
|
+
case "ResourceShareInvitationArnNotFoundException": return [3, 14];
|
|
3028
|
+
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException": return [3, 14];
|
|
3029
|
+
case "ResourceShareInvitationExpiredException": return [3, 16];
|
|
3030
|
+
case "com.amazonaws.ram#ResourceShareInvitationExpiredException": return [3, 16];
|
|
3031
|
+
case "ServerInternalException": return [3, 18];
|
|
3032
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 18];
|
|
3033
|
+
case "ServiceUnavailableException": return [3, 20];
|
|
3034
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 20];
|
|
3035
3035
|
}
|
|
3036
|
-
return [3
|
|
3036
|
+
return [3, 22];
|
|
3037
3037
|
case 2:
|
|
3038
3038
|
_c = [{}];
|
|
3039
|
-
return [4
|
|
3039
|
+
return [4, deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
3040
3040
|
case 3:
|
|
3041
3041
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3042
|
-
return [3
|
|
3042
|
+
return [3, 23];
|
|
3043
3043
|
case 4:
|
|
3044
3044
|
_d = [{}];
|
|
3045
|
-
return [4
|
|
3045
|
+
return [4, deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context)];
|
|
3046
3046
|
case 5:
|
|
3047
3047
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3048
|
-
return [3
|
|
3048
|
+
return [3, 23];
|
|
3049
3049
|
case 6:
|
|
3050
3050
|
_e = [{}];
|
|
3051
|
-
return [4
|
|
3051
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
3052
3052
|
case 7:
|
|
3053
3053
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3054
|
-
return [3
|
|
3054
|
+
return [3, 23];
|
|
3055
3055
|
case 8:
|
|
3056
3056
|
_f = [{}];
|
|
3057
|
-
return [4
|
|
3057
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
3058
3058
|
case 9:
|
|
3059
3059
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3060
|
-
return [3
|
|
3060
|
+
return [3, 23];
|
|
3061
3061
|
case 10:
|
|
3062
3062
|
_g = [{}];
|
|
3063
|
-
return [4
|
|
3063
|
+
return [4, deserializeAws_restJson1ResourceShareInvitationAlreadyAcceptedExceptionResponse(parsedOutput, context)];
|
|
3064
3064
|
case 11:
|
|
3065
3065
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3066
|
-
return [3
|
|
3066
|
+
return [3, 23];
|
|
3067
3067
|
case 12:
|
|
3068
3068
|
_h = [{}];
|
|
3069
|
-
return [4
|
|
3069
|
+
return [4, deserializeAws_restJson1ResourceShareInvitationAlreadyRejectedExceptionResponse(parsedOutput, context)];
|
|
3070
3070
|
case 13:
|
|
3071
3071
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3072
|
-
return [3
|
|
3072
|
+
return [3, 23];
|
|
3073
3073
|
case 14:
|
|
3074
3074
|
_j = [{}];
|
|
3075
|
-
return [4
|
|
3075
|
+
return [4, deserializeAws_restJson1ResourceShareInvitationArnNotFoundExceptionResponse(parsedOutput, context)];
|
|
3076
3076
|
case 15:
|
|
3077
3077
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3078
|
-
return [3
|
|
3078
|
+
return [3, 23];
|
|
3079
3079
|
case 16:
|
|
3080
3080
|
_k = [{}];
|
|
3081
|
-
return [4
|
|
3081
|
+
return [4, deserializeAws_restJson1ResourceShareInvitationExpiredExceptionResponse(parsedOutput, context)];
|
|
3082
3082
|
case 17:
|
|
3083
3083
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3084
|
-
return [3
|
|
3084
|
+
return [3, 23];
|
|
3085
3085
|
case 18:
|
|
3086
3086
|
_l = [{}];
|
|
3087
|
-
return [4
|
|
3087
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
3088
3088
|
case 19:
|
|
3089
3089
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3090
|
-
return [3
|
|
3090
|
+
return [3, 23];
|
|
3091
3091
|
case 20:
|
|
3092
3092
|
_m = [{}];
|
|
3093
|
-
return [4
|
|
3093
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3094
3094
|
case 21:
|
|
3095
3095
|
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3096
|
-
return [3
|
|
3096
|
+
return [3, 23];
|
|
3097
3097
|
case 22:
|
|
3098
3098
|
parsedBody = parsedOutput.body;
|
|
3099
3099
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3103,7 +3103,7 @@ var deserializeAws_restJson1RejectResourceShareInvitationCommandError = function
|
|
|
3103
3103
|
message = response.message || response.Message || errorCode;
|
|
3104
3104
|
response.message = message;
|
|
3105
3105
|
delete response.Message;
|
|
3106
|
-
return [2
|
|
3106
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3107
3107
|
}
|
|
3108
3108
|
});
|
|
3109
3109
|
}); };
|
|
@@ -3113,15 +3113,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3113
3113
|
switch (_a.label) {
|
|
3114
3114
|
case 0:
|
|
3115
3115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3116
|
-
return [2
|
|
3116
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
3117
3117
|
}
|
|
3118
3118
|
contents = {
|
|
3119
3119
|
$metadata: deserializeMetadata(output),
|
|
3120
3120
|
};
|
|
3121
|
-
return [4
|
|
3121
|
+
return [4, collectBody(output.body, context)];
|
|
3122
3122
|
case 1:
|
|
3123
3123
|
_a.sent();
|
|
3124
|
-
return [2
|
|
3124
|
+
return [2, Promise.resolve(contents)];
|
|
3125
3125
|
}
|
|
3126
3126
|
});
|
|
3127
3127
|
}); };
|
|
@@ -3133,79 +3133,79 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3133
3133
|
case 0:
|
|
3134
3134
|
_a = [__assign({}, output)];
|
|
3135
3135
|
_l = {};
|
|
3136
|
-
return [4
|
|
3136
|
+
return [4, parseBody(output.body, context)];
|
|
3137
3137
|
case 1:
|
|
3138
3138
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
3139
3139
|
errorCode = "UnknownError";
|
|
3140
3140
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3141
3141
|
_b = errorCode;
|
|
3142
3142
|
switch (_b) {
|
|
3143
|
-
case "InvalidParameterException": return [3
|
|
3144
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
3145
|
-
case "MalformedArnException": return [3
|
|
3146
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
3147
|
-
case "ResourceArnNotFoundException": return [3
|
|
3148
|
-
case "com.amazonaws.ram#ResourceArnNotFoundException": return [3
|
|
3149
|
-
case "ServerInternalException": return [3
|
|
3150
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
3151
|
-
case "ServiceUnavailableException": return [3
|
|
3152
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
3153
|
-
case "TagLimitExceededException": return [3
|
|
3154
|
-
case "com.amazonaws.ram#TagLimitExceededException": return [3
|
|
3155
|
-
case "TagPolicyViolationException": return [3
|
|
3156
|
-
case "com.amazonaws.ram#TagPolicyViolationException": return [3
|
|
3157
|
-
case "UnknownResourceException": return [3
|
|
3158
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
3143
|
+
case "InvalidParameterException": return [3, 2];
|
|
3144
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 2];
|
|
3145
|
+
case "MalformedArnException": return [3, 4];
|
|
3146
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 4];
|
|
3147
|
+
case "ResourceArnNotFoundException": return [3, 6];
|
|
3148
|
+
case "com.amazonaws.ram#ResourceArnNotFoundException": return [3, 6];
|
|
3149
|
+
case "ServerInternalException": return [3, 8];
|
|
3150
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 8];
|
|
3151
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
3152
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 10];
|
|
3153
|
+
case "TagLimitExceededException": return [3, 12];
|
|
3154
|
+
case "com.amazonaws.ram#TagLimitExceededException": return [3, 12];
|
|
3155
|
+
case "TagPolicyViolationException": return [3, 14];
|
|
3156
|
+
case "com.amazonaws.ram#TagPolicyViolationException": return [3, 14];
|
|
3157
|
+
case "UnknownResourceException": return [3, 16];
|
|
3158
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 16];
|
|
3159
3159
|
}
|
|
3160
|
-
return [3
|
|
3160
|
+
return [3, 18];
|
|
3161
3161
|
case 2:
|
|
3162
3162
|
_c = [{}];
|
|
3163
|
-
return [4
|
|
3163
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3164
3164
|
case 3:
|
|
3165
3165
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3166
|
-
return [3
|
|
3166
|
+
return [3, 19];
|
|
3167
3167
|
case 4:
|
|
3168
3168
|
_d = [{}];
|
|
3169
|
-
return [4
|
|
3169
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
3170
3170
|
case 5:
|
|
3171
3171
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3172
|
-
return [3
|
|
3172
|
+
return [3, 19];
|
|
3173
3173
|
case 6:
|
|
3174
3174
|
_e = [{}];
|
|
3175
|
-
return [4
|
|
3175
|
+
return [4, deserializeAws_restJson1ResourceArnNotFoundExceptionResponse(parsedOutput, context)];
|
|
3176
3176
|
case 7:
|
|
3177
3177
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3178
|
-
return [3
|
|
3178
|
+
return [3, 19];
|
|
3179
3179
|
case 8:
|
|
3180
3180
|
_f = [{}];
|
|
3181
|
-
return [4
|
|
3181
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
3182
3182
|
case 9:
|
|
3183
3183
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3184
|
-
return [3
|
|
3184
|
+
return [3, 19];
|
|
3185
3185
|
case 10:
|
|
3186
3186
|
_g = [{}];
|
|
3187
|
-
return [4
|
|
3187
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3188
3188
|
case 11:
|
|
3189
3189
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3190
|
-
return [3
|
|
3190
|
+
return [3, 19];
|
|
3191
3191
|
case 12:
|
|
3192
3192
|
_h = [{}];
|
|
3193
|
-
return [4
|
|
3193
|
+
return [4, deserializeAws_restJson1TagLimitExceededExceptionResponse(parsedOutput, context)];
|
|
3194
3194
|
case 13:
|
|
3195
3195
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3196
|
-
return [3
|
|
3196
|
+
return [3, 19];
|
|
3197
3197
|
case 14:
|
|
3198
3198
|
_j = [{}];
|
|
3199
|
-
return [4
|
|
3199
|
+
return [4, deserializeAws_restJson1TagPolicyViolationExceptionResponse(parsedOutput, context)];
|
|
3200
3200
|
case 15:
|
|
3201
3201
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3202
|
-
return [3
|
|
3202
|
+
return [3, 19];
|
|
3203
3203
|
case 16:
|
|
3204
3204
|
_k = [{}];
|
|
3205
|
-
return [4
|
|
3205
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
3206
3206
|
case 17:
|
|
3207
3207
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3208
|
-
return [3
|
|
3208
|
+
return [3, 19];
|
|
3209
3209
|
case 18:
|
|
3210
3210
|
parsedBody = parsedOutput.body;
|
|
3211
3211
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3215,7 +3215,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3215
3215
|
message = response.message || response.Message || errorCode;
|
|
3216
3216
|
response.message = message;
|
|
3217
3217
|
delete response.Message;
|
|
3218
|
-
return [2
|
|
3218
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3219
3219
|
}
|
|
3220
3220
|
});
|
|
3221
3221
|
}); };
|
|
@@ -3225,15 +3225,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3225
3225
|
switch (_a.label) {
|
|
3226
3226
|
case 0:
|
|
3227
3227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3228
|
-
return [2
|
|
3228
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
3229
3229
|
}
|
|
3230
3230
|
contents = {
|
|
3231
3231
|
$metadata: deserializeMetadata(output),
|
|
3232
3232
|
};
|
|
3233
|
-
return [4
|
|
3233
|
+
return [4, collectBody(output.body, context)];
|
|
3234
3234
|
case 1:
|
|
3235
3235
|
_a.sent();
|
|
3236
|
-
return [2
|
|
3236
|
+
return [2, Promise.resolve(contents)];
|
|
3237
3237
|
}
|
|
3238
3238
|
});
|
|
3239
3239
|
}); };
|
|
@@ -3245,39 +3245,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3245
3245
|
case 0:
|
|
3246
3246
|
_a = [__assign({}, output)];
|
|
3247
3247
|
_f = {};
|
|
3248
|
-
return [4
|
|
3248
|
+
return [4, parseBody(output.body, context)];
|
|
3249
3249
|
case 1:
|
|
3250
3250
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3251
3251
|
errorCode = "UnknownError";
|
|
3252
3252
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3253
3253
|
_b = errorCode;
|
|
3254
3254
|
switch (_b) {
|
|
3255
|
-
case "InvalidParameterException": return [3
|
|
3256
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
3257
|
-
case "ServerInternalException": return [3
|
|
3258
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
3259
|
-
case "ServiceUnavailableException": return [3
|
|
3260
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
3255
|
+
case "InvalidParameterException": return [3, 2];
|
|
3256
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 2];
|
|
3257
|
+
case "ServerInternalException": return [3, 4];
|
|
3258
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 4];
|
|
3259
|
+
case "ServiceUnavailableException": return [3, 6];
|
|
3260
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 6];
|
|
3261
3261
|
}
|
|
3262
|
-
return [3
|
|
3262
|
+
return [3, 8];
|
|
3263
3263
|
case 2:
|
|
3264
3264
|
_c = [{}];
|
|
3265
|
-
return [4
|
|
3265
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3266
3266
|
case 3:
|
|
3267
3267
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3268
|
-
return [3
|
|
3268
|
+
return [3, 9];
|
|
3269
3269
|
case 4:
|
|
3270
3270
|
_d = [{}];
|
|
3271
|
-
return [4
|
|
3271
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
3272
3272
|
case 5:
|
|
3273
3273
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3274
|
-
return [3
|
|
3274
|
+
return [3, 9];
|
|
3275
3275
|
case 6:
|
|
3276
3276
|
_e = [{}];
|
|
3277
|
-
return [4
|
|
3277
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3278
3278
|
case 7:
|
|
3279
3279
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3280
|
-
return [3
|
|
3280
|
+
return [3, 9];
|
|
3281
3281
|
case 8:
|
|
3282
3282
|
parsedBody = parsedOutput.body;
|
|
3283
3283
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3287,7 +3287,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3287
3287
|
message = response.message || response.Message || errorCode;
|
|
3288
3288
|
response.message = message;
|
|
3289
3289
|
delete response.Message;
|
|
3290
|
-
return [2
|
|
3290
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3291
3291
|
}
|
|
3292
3292
|
});
|
|
3293
3293
|
}); };
|
|
@@ -3297,7 +3297,7 @@ export var deserializeAws_restJson1UpdateResourceShareCommand = function (output
|
|
|
3297
3297
|
switch (_c.label) {
|
|
3298
3298
|
case 0:
|
|
3299
3299
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3300
|
-
return [2
|
|
3300
|
+
return [2, deserializeAws_restJson1UpdateResourceShareCommandError(output, context)];
|
|
3301
3301
|
}
|
|
3302
3302
|
contents = {
|
|
3303
3303
|
$metadata: deserializeMetadata(output),
|
|
@@ -3306,7 +3306,7 @@ export var deserializeAws_restJson1UpdateResourceShareCommand = function (output
|
|
|
3306
3306
|
};
|
|
3307
3307
|
_a = __expectNonNull;
|
|
3308
3308
|
_b = __expectObject;
|
|
3309
|
-
return [4
|
|
3309
|
+
return [4, parseBody(output.body, context)];
|
|
3310
3310
|
case 1:
|
|
3311
3311
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3312
3312
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
@@ -3315,7 +3315,7 @@ export var deserializeAws_restJson1UpdateResourceShareCommand = function (output
|
|
|
3315
3315
|
if (data.resourceShare !== undefined && data.resourceShare !== null) {
|
|
3316
3316
|
contents.resourceShare = deserializeAws_restJson1ResourceShare(data.resourceShare, context);
|
|
3317
3317
|
}
|
|
3318
|
-
return [2
|
|
3318
|
+
return [2, Promise.resolve(contents)];
|
|
3319
3319
|
}
|
|
3320
3320
|
});
|
|
3321
3321
|
}); };
|
|
@@ -3327,87 +3327,87 @@ var deserializeAws_restJson1UpdateResourceShareCommandError = function (output,
|
|
|
3327
3327
|
case 0:
|
|
3328
3328
|
_a = [__assign({}, output)];
|
|
3329
3329
|
_m = {};
|
|
3330
|
-
return [4
|
|
3330
|
+
return [4, parseBody(output.body, context)];
|
|
3331
3331
|
case 1:
|
|
3332
3332
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
3333
3333
|
errorCode = "UnknownError";
|
|
3334
3334
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3335
3335
|
_b = errorCode;
|
|
3336
3336
|
switch (_b) {
|
|
3337
|
-
case "IdempotentParameterMismatchException": return [3
|
|
3338
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException": return [3
|
|
3339
|
-
case "InvalidClientTokenException": return [3
|
|
3340
|
-
case "com.amazonaws.ram#InvalidClientTokenException": return [3
|
|
3341
|
-
case "InvalidParameterException": return [3
|
|
3342
|
-
case "com.amazonaws.ram#InvalidParameterException": return [3
|
|
3343
|
-
case "MalformedArnException": return [3
|
|
3344
|
-
case "com.amazonaws.ram#MalformedArnException": return [3
|
|
3345
|
-
case "MissingRequiredParameterException": return [3
|
|
3346
|
-
case "com.amazonaws.ram#MissingRequiredParameterException": return [3
|
|
3347
|
-
case "OperationNotPermittedException": return [3
|
|
3348
|
-
case "com.amazonaws.ram#OperationNotPermittedException": return [3
|
|
3349
|
-
case "ServerInternalException": return [3
|
|
3350
|
-
case "com.amazonaws.ram#ServerInternalException": return [3
|
|
3351
|
-
case "ServiceUnavailableException": return [3
|
|
3352
|
-
case "com.amazonaws.ram#ServiceUnavailableException": return [3
|
|
3353
|
-
case "UnknownResourceException": return [3
|
|
3354
|
-
case "com.amazonaws.ram#UnknownResourceException": return [3
|
|
3337
|
+
case "IdempotentParameterMismatchException": return [3, 2];
|
|
3338
|
+
case "com.amazonaws.ram#IdempotentParameterMismatchException": return [3, 2];
|
|
3339
|
+
case "InvalidClientTokenException": return [3, 4];
|
|
3340
|
+
case "com.amazonaws.ram#InvalidClientTokenException": return [3, 4];
|
|
3341
|
+
case "InvalidParameterException": return [3, 6];
|
|
3342
|
+
case "com.amazonaws.ram#InvalidParameterException": return [3, 6];
|
|
3343
|
+
case "MalformedArnException": return [3, 8];
|
|
3344
|
+
case "com.amazonaws.ram#MalformedArnException": return [3, 8];
|
|
3345
|
+
case "MissingRequiredParameterException": return [3, 10];
|
|
3346
|
+
case "com.amazonaws.ram#MissingRequiredParameterException": return [3, 10];
|
|
3347
|
+
case "OperationNotPermittedException": return [3, 12];
|
|
3348
|
+
case "com.amazonaws.ram#OperationNotPermittedException": return [3, 12];
|
|
3349
|
+
case "ServerInternalException": return [3, 14];
|
|
3350
|
+
case "com.amazonaws.ram#ServerInternalException": return [3, 14];
|
|
3351
|
+
case "ServiceUnavailableException": return [3, 16];
|
|
3352
|
+
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 16];
|
|
3353
|
+
case "UnknownResourceException": return [3, 18];
|
|
3354
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 18];
|
|
3355
3355
|
}
|
|
3356
|
-
return [3
|
|
3356
|
+
return [3, 20];
|
|
3357
3357
|
case 2:
|
|
3358
3358
|
_c = [{}];
|
|
3359
|
-
return [4
|
|
3359
|
+
return [4, deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
3360
3360
|
case 3:
|
|
3361
3361
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3362
|
-
return [3
|
|
3362
|
+
return [3, 21];
|
|
3363
3363
|
case 4:
|
|
3364
3364
|
_d = [{}];
|
|
3365
|
-
return [4
|
|
3365
|
+
return [4, deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context)];
|
|
3366
3366
|
case 5:
|
|
3367
3367
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3368
|
-
return [3
|
|
3368
|
+
return [3, 21];
|
|
3369
3369
|
case 6:
|
|
3370
3370
|
_e = [{}];
|
|
3371
|
-
return [4
|
|
3371
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3372
3372
|
case 7:
|
|
3373
3373
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3374
|
-
return [3
|
|
3374
|
+
return [3, 21];
|
|
3375
3375
|
case 8:
|
|
3376
3376
|
_f = [{}];
|
|
3377
|
-
return [4
|
|
3377
|
+
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
3378
3378
|
case 9:
|
|
3379
3379
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3380
|
-
return [3
|
|
3380
|
+
return [3, 21];
|
|
3381
3381
|
case 10:
|
|
3382
3382
|
_g = [{}];
|
|
3383
|
-
return [4
|
|
3383
|
+
return [4, deserializeAws_restJson1MissingRequiredParameterExceptionResponse(parsedOutput, context)];
|
|
3384
3384
|
case 11:
|
|
3385
3385
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3386
|
-
return [3
|
|
3386
|
+
return [3, 21];
|
|
3387
3387
|
case 12:
|
|
3388
3388
|
_h = [{}];
|
|
3389
|
-
return [4
|
|
3389
|
+
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
3390
3390
|
case 13:
|
|
3391
3391
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3392
|
-
return [3
|
|
3392
|
+
return [3, 21];
|
|
3393
3393
|
case 14:
|
|
3394
3394
|
_j = [{}];
|
|
3395
|
-
return [4
|
|
3395
|
+
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
3396
3396
|
case 15:
|
|
3397
3397
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3398
|
-
return [3
|
|
3398
|
+
return [3, 21];
|
|
3399
3399
|
case 16:
|
|
3400
3400
|
_k = [{}];
|
|
3401
|
-
return [4
|
|
3401
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3402
3402
|
case 17:
|
|
3403
3403
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3404
|
-
return [3
|
|
3404
|
+
return [3, 21];
|
|
3405
3405
|
case 18:
|
|
3406
3406
|
_l = [{}];
|
|
3407
|
-
return [4
|
|
3407
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
3408
3408
|
case 19:
|
|
3409
3409
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3410
|
-
return [3
|
|
3410
|
+
return [3, 21];
|
|
3411
3411
|
case 20:
|
|
3412
3412
|
parsedBody = parsedOutput.body;
|
|
3413
3413
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3417,7 +3417,7 @@ var deserializeAws_restJson1UpdateResourceShareCommandError = function (output,
|
|
|
3417
3417
|
message = response.message || response.Message || errorCode;
|
|
3418
3418
|
response.message = message;
|
|
3419
3419
|
delete response.Message;
|
|
3420
|
-
return [2
|
|
3420
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3421
3421
|
}
|
|
3422
3422
|
});
|
|
3423
3423
|
}); };
|
|
@@ -3434,7 +3434,7 @@ var deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse = funct
|
|
|
3434
3434
|
if (data.message !== undefined && data.message !== null) {
|
|
3435
3435
|
contents.message = __expectString(data.message);
|
|
3436
3436
|
}
|
|
3437
|
-
return [2
|
|
3437
|
+
return [2, contents];
|
|
3438
3438
|
});
|
|
3439
3439
|
}); };
|
|
3440
3440
|
var deserializeAws_restJson1InvalidClientTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3450,7 +3450,7 @@ var deserializeAws_restJson1InvalidClientTokenExceptionResponse = function (pars
|
|
|
3450
3450
|
if (data.message !== undefined && data.message !== null) {
|
|
3451
3451
|
contents.message = __expectString(data.message);
|
|
3452
3452
|
}
|
|
3453
|
-
return [2
|
|
3453
|
+
return [2, contents];
|
|
3454
3454
|
});
|
|
3455
3455
|
}); };
|
|
3456
3456
|
var deserializeAws_restJson1InvalidMaxResultsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3466,7 +3466,7 @@ var deserializeAws_restJson1InvalidMaxResultsExceptionResponse = function (parse
|
|
|
3466
3466
|
if (data.message !== undefined && data.message !== null) {
|
|
3467
3467
|
contents.message = __expectString(data.message);
|
|
3468
3468
|
}
|
|
3469
|
-
return [2
|
|
3469
|
+
return [2, contents];
|
|
3470
3470
|
});
|
|
3471
3471
|
}); };
|
|
3472
3472
|
var deserializeAws_restJson1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3482,7 +3482,7 @@ var deserializeAws_restJson1InvalidNextTokenExceptionResponse = function (parsed
|
|
|
3482
3482
|
if (data.message !== undefined && data.message !== null) {
|
|
3483
3483
|
contents.message = __expectString(data.message);
|
|
3484
3484
|
}
|
|
3485
|
-
return [2
|
|
3485
|
+
return [2, contents];
|
|
3486
3486
|
});
|
|
3487
3487
|
}); };
|
|
3488
3488
|
var deserializeAws_restJson1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3498,7 +3498,7 @@ var deserializeAws_restJson1InvalidParameterExceptionResponse = function (parsed
|
|
|
3498
3498
|
if (data.message !== undefined && data.message !== null) {
|
|
3499
3499
|
contents.message = __expectString(data.message);
|
|
3500
3500
|
}
|
|
3501
|
-
return [2
|
|
3501
|
+
return [2, contents];
|
|
3502
3502
|
});
|
|
3503
3503
|
}); };
|
|
3504
3504
|
var deserializeAws_restJson1InvalidResourceTypeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3514,7 +3514,7 @@ var deserializeAws_restJson1InvalidResourceTypeExceptionResponse = function (par
|
|
|
3514
3514
|
if (data.message !== undefined && data.message !== null) {
|
|
3515
3515
|
contents.message = __expectString(data.message);
|
|
3516
3516
|
}
|
|
3517
|
-
return [2
|
|
3517
|
+
return [2, contents];
|
|
3518
3518
|
});
|
|
3519
3519
|
}); };
|
|
3520
3520
|
var deserializeAws_restJson1InvalidStateTransitionExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3530,7 +3530,7 @@ var deserializeAws_restJson1InvalidStateTransitionExceptionResponse = function (
|
|
|
3530
3530
|
if (data.message !== undefined && data.message !== null) {
|
|
3531
3531
|
contents.message = __expectString(data.message);
|
|
3532
3532
|
}
|
|
3533
|
-
return [2
|
|
3533
|
+
return [2, contents];
|
|
3534
3534
|
});
|
|
3535
3535
|
}); };
|
|
3536
3536
|
var deserializeAws_restJson1MalformedArnExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3546,7 +3546,7 @@ var deserializeAws_restJson1MalformedArnExceptionResponse = function (parsedOutp
|
|
|
3546
3546
|
if (data.message !== undefined && data.message !== null) {
|
|
3547
3547
|
contents.message = __expectString(data.message);
|
|
3548
3548
|
}
|
|
3549
|
-
return [2
|
|
3549
|
+
return [2, contents];
|
|
3550
3550
|
});
|
|
3551
3551
|
}); };
|
|
3552
3552
|
var deserializeAws_restJson1MissingRequiredParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3562,7 +3562,7 @@ var deserializeAws_restJson1MissingRequiredParameterExceptionResponse = function
|
|
|
3562
3562
|
if (data.message !== undefined && data.message !== null) {
|
|
3563
3563
|
contents.message = __expectString(data.message);
|
|
3564
3564
|
}
|
|
3565
|
-
return [2
|
|
3565
|
+
return [2, contents];
|
|
3566
3566
|
});
|
|
3567
3567
|
}); };
|
|
3568
3568
|
var deserializeAws_restJson1OperationNotPermittedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3578,7 +3578,7 @@ var deserializeAws_restJson1OperationNotPermittedExceptionResponse = function (p
|
|
|
3578
3578
|
if (data.message !== undefined && data.message !== null) {
|
|
3579
3579
|
contents.message = __expectString(data.message);
|
|
3580
3580
|
}
|
|
3581
|
-
return [2
|
|
3581
|
+
return [2, contents];
|
|
3582
3582
|
});
|
|
3583
3583
|
}); };
|
|
3584
3584
|
var deserializeAws_restJson1ResourceArnNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3594,7 +3594,7 @@ var deserializeAws_restJson1ResourceArnNotFoundExceptionResponse = function (par
|
|
|
3594
3594
|
if (data.message !== undefined && data.message !== null) {
|
|
3595
3595
|
contents.message = __expectString(data.message);
|
|
3596
3596
|
}
|
|
3597
|
-
return [2
|
|
3597
|
+
return [2, contents];
|
|
3598
3598
|
});
|
|
3599
3599
|
}); };
|
|
3600
3600
|
var deserializeAws_restJson1ResourceShareInvitationAlreadyAcceptedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3610,7 +3610,7 @@ var deserializeAws_restJson1ResourceShareInvitationAlreadyAcceptedExceptionRespo
|
|
|
3610
3610
|
if (data.message !== undefined && data.message !== null) {
|
|
3611
3611
|
contents.message = __expectString(data.message);
|
|
3612
3612
|
}
|
|
3613
|
-
return [2
|
|
3613
|
+
return [2, contents];
|
|
3614
3614
|
});
|
|
3615
3615
|
}); };
|
|
3616
3616
|
var deserializeAws_restJson1ResourceShareInvitationAlreadyRejectedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3626,7 +3626,7 @@ var deserializeAws_restJson1ResourceShareInvitationAlreadyRejectedExceptionRespo
|
|
|
3626
3626
|
if (data.message !== undefined && data.message !== null) {
|
|
3627
3627
|
contents.message = __expectString(data.message);
|
|
3628
3628
|
}
|
|
3629
|
-
return [2
|
|
3629
|
+
return [2, contents];
|
|
3630
3630
|
});
|
|
3631
3631
|
}); };
|
|
3632
3632
|
var deserializeAws_restJson1ResourceShareInvitationArnNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3642,7 +3642,7 @@ var deserializeAws_restJson1ResourceShareInvitationArnNotFoundExceptionResponse
|
|
|
3642
3642
|
if (data.message !== undefined && data.message !== null) {
|
|
3643
3643
|
contents.message = __expectString(data.message);
|
|
3644
3644
|
}
|
|
3645
|
-
return [2
|
|
3645
|
+
return [2, contents];
|
|
3646
3646
|
});
|
|
3647
3647
|
}); };
|
|
3648
3648
|
var deserializeAws_restJson1ResourceShareInvitationExpiredExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3658,7 +3658,7 @@ var deserializeAws_restJson1ResourceShareInvitationExpiredExceptionResponse = fu
|
|
|
3658
3658
|
if (data.message !== undefined && data.message !== null) {
|
|
3659
3659
|
contents.message = __expectString(data.message);
|
|
3660
3660
|
}
|
|
3661
|
-
return [2
|
|
3661
|
+
return [2, contents];
|
|
3662
3662
|
});
|
|
3663
3663
|
}); };
|
|
3664
3664
|
var deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3674,7 +3674,7 @@ var deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse = functi
|
|
|
3674
3674
|
if (data.message !== undefined && data.message !== null) {
|
|
3675
3675
|
contents.message = __expectString(data.message);
|
|
3676
3676
|
}
|
|
3677
|
-
return [2
|
|
3677
|
+
return [2, contents];
|
|
3678
3678
|
});
|
|
3679
3679
|
}); };
|
|
3680
3680
|
var deserializeAws_restJson1ServerInternalExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3690,7 +3690,7 @@ var deserializeAws_restJson1ServerInternalExceptionResponse = function (parsedOu
|
|
|
3690
3690
|
if (data.message !== undefined && data.message !== null) {
|
|
3691
3691
|
contents.message = __expectString(data.message);
|
|
3692
3692
|
}
|
|
3693
|
-
return [2
|
|
3693
|
+
return [2, contents];
|
|
3694
3694
|
});
|
|
3695
3695
|
}); };
|
|
3696
3696
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3706,7 +3706,7 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
3706
3706
|
if (data.message !== undefined && data.message !== null) {
|
|
3707
3707
|
contents.message = __expectString(data.message);
|
|
3708
3708
|
}
|
|
3709
|
-
return [2
|
|
3709
|
+
return [2, contents];
|
|
3710
3710
|
});
|
|
3711
3711
|
}); };
|
|
3712
3712
|
var deserializeAws_restJson1TagLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3722,7 +3722,7 @@ var deserializeAws_restJson1TagLimitExceededExceptionResponse = function (parsed
|
|
|
3722
3722
|
if (data.message !== undefined && data.message !== null) {
|
|
3723
3723
|
contents.message = __expectString(data.message);
|
|
3724
3724
|
}
|
|
3725
|
-
return [2
|
|
3725
|
+
return [2, contents];
|
|
3726
3726
|
});
|
|
3727
3727
|
}); };
|
|
3728
3728
|
var deserializeAws_restJson1TagPolicyViolationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3738,7 +3738,7 @@ var deserializeAws_restJson1TagPolicyViolationExceptionResponse = function (pars
|
|
|
3738
3738
|
if (data.message !== undefined && data.message !== null) {
|
|
3739
3739
|
contents.message = __expectString(data.message);
|
|
3740
3740
|
}
|
|
3741
|
-
return [2
|
|
3741
|
+
return [2, contents];
|
|
3742
3742
|
});
|
|
3743
3743
|
}); };
|
|
3744
3744
|
var deserializeAws_restJson1UnknownResourceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3754,7 +3754,7 @@ var deserializeAws_restJson1UnknownResourceExceptionResponse = function (parsedO
|
|
|
3754
3754
|
if (data.message !== undefined && data.message !== null) {
|
|
3755
3755
|
contents.message = __expectString(data.message);
|
|
3756
3756
|
}
|
|
3757
|
-
return [2
|
|
3757
|
+
return [2, contents];
|
|
3758
3758
|
});
|
|
3759
3759
|
}); };
|
|
3760
3760
|
var serializeAws_restJson1PermissionArnList = function (input, context) {
|
|
@@ -4082,7 +4082,6 @@ var deserializeMetadata = function (output) {
|
|
|
4082
4082
|
cfId: output.headers["x-amz-cf-id"],
|
|
4083
4083
|
});
|
|
4084
4084
|
};
|
|
4085
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4086
4085
|
var collectBody = function (streamBody, context) {
|
|
4087
4086
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
4088
4087
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -4090,7 +4089,6 @@ var collectBody = function (streamBody, context) {
|
|
|
4090
4089
|
}
|
|
4091
4090
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4092
4091
|
};
|
|
4093
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4094
4092
|
var collectBodyString = function (streamBody, context) {
|
|
4095
4093
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
4096
4094
|
};
|
|
@@ -4109,9 +4107,6 @@ var parseBody = function (streamBody, context) {
|
|
|
4109
4107
|
return {};
|
|
4110
4108
|
});
|
|
4111
4109
|
};
|
|
4112
|
-
/**
|
|
4113
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
4114
|
-
*/
|
|
4115
4110
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4116
4111
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4117
4112
|
var sanitizeErrorCode = function (rawValue) {
|