@aws-sdk/client-acm-pca 3.32.0 → 3.36.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 +44 -0
- package/{dist/cjs → dist-cjs}/ACMPCA.js +0 -1
- package/{dist/cjs → dist-cjs}/ACMPCAClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/CreateCertificateAuthorityAuditReportCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateCertificateAuthorityCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreatePermissionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteCertificateAuthorityCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeletePermissionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeletePolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeCertificateAuthorityAuditReportCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeCertificateAuthorityCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetCertificateAuthorityCertificateCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetCertificateAuthorityCsrCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetCertificateCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ImportCertificateAuthorityCertificateCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/IssueCertificateCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListCertificateAuthoritiesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListPermissionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PutPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RestoreCertificateAuthorityCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RevokeCertificateCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagCertificateAuthorityCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagCertificateAuthorityCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateCertificateAuthorityCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListCertificateAuthoritiesPaginator.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListPermissionsPaginator.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListTagsPaginator.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/cjs → dist-cjs}/waiters/waitForAuditReportCreated.js +4 -5
- package/{dist/cjs → dist-cjs}/waiters/waitForCertificateAuthorityCSRCreated.js +2 -3
- package/{dist/cjs → dist-cjs}/waiters/waitForCertificateIssued.js +2 -3
- package/{dist/es → dist-es}/ACMPCA.js +1 -22
- package/{dist/es → dist-es}/ACMPCAClient.js +2 -28
- package/dist-es/commands/CreateCertificateAuthorityAuditReportCommand.js +39 -0
- package/dist-es/commands/CreateCertificateAuthorityCommand.js +39 -0
- package/dist-es/commands/CreatePermissionCommand.js +39 -0
- package/dist-es/commands/DeleteCertificateAuthorityCommand.js +39 -0
- package/dist-es/commands/DeletePermissionCommand.js +39 -0
- package/dist-es/commands/DeletePolicyCommand.js +39 -0
- package/{dist/es → dist-es}/commands/DescribeCertificateAuthorityAuditReportCommand.js +4 -33
- package/dist-es/commands/DescribeCertificateAuthorityCommand.js +39 -0
- package/{dist/es → dist-es}/commands/GetCertificateAuthorityCertificateCommand.js +4 -33
- package/{dist/es → dist-es}/commands/GetCertificateAuthorityCsrCommand.js +4 -34
- package/dist-es/commands/GetCertificateCommand.js +39 -0
- package/dist-es/commands/GetPolicyCommand.js +39 -0
- package/dist-es/commands/ImportCertificateAuthorityCertificateCommand.js +39 -0
- package/{dist/es → dist-es}/commands/IssueCertificateCommand.js +4 -37
- package/{dist/es → dist-es}/commands/ListCertificateAuthoritiesCommand.js +4 -30
- package/dist-es/commands/ListPermissionsCommand.js +39 -0
- package/{dist/es → dist-es}/commands/ListTagsCommand.js +4 -33
- package/dist-es/commands/PutPolicyCommand.js +39 -0
- package/dist-es/commands/RestoreCertificateAuthorityCommand.js +39 -0
- package/dist-es/commands/RevokeCertificateCommand.js +39 -0
- package/dist-es/commands/TagCertificateAuthorityCommand.js +39 -0
- package/{dist/es → dist-es}/commands/UntagCertificateAuthorityCommand.js +4 -34
- package/dist-es/commands/UpdateCertificateAuthorityCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -229
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListCertificateAuthoritiesPaginator.js +16 -29
- package/{dist/es → dist-es}/pagination/ListPermissionsPaginator.js +16 -29
- package/{dist/es → dist-es}/pagination/ListTagsPaginator.js +16 -29
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +622 -628
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/waiters/waitForAuditReportCreated.js +10 -20
- package/{dist/es → dist-es}/waiters/waitForCertificateAuthorityCSRCreated.js +9 -19
- package/{dist/es → dist-es}/waiters/waitForCertificateIssued.js +9 -19
- package/{dist/types → dist-types}/ACMPCA.d.ts +1 -1
- package/{dist/types → dist-types}/ACMPCAClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CreateCertificateAuthorityAuditReportCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateCertificateAuthorityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreatePermissionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteCertificateAuthorityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeletePermissionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeletePolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeCertificateAuthorityAuditReportCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeCertificateAuthorityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetCertificateAuthorityCertificateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetCertificateAuthorityCsrCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetCertificateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ImportCertificateAuthorityCertificateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/IssueCertificateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListCertificateAuthoritiesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListPermissionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RestoreCertificateAuthorityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RevokeCertificateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagCertificateAuthorityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagCertificateAuthorityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateCertificateAuthorityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListCertificateAuthoritiesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPermissionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListTagsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -1
- 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/ACMPCA.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/ACMPCAClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/CreateCertificateAuthorityAuditReportCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateCertificateAuthorityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreatePermissionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteCertificateAuthorityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeletePermissionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeletePolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeCertificateAuthorityAuditReportCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeCertificateAuthorityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetCertificateAuthorityCertificateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetCertificateAuthorityCsrCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetCertificateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ImportCertificateAuthorityCertificateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/IssueCertificateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListCertificateAuthoritiesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListPermissionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/RestoreCertificateAuthorityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/RevokeCertificateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagCertificateAuthorityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagCertificateAuthorityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateCertificateAuthorityCommand.d.ts +2 -2
- 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/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListCertificateAuthoritiesPaginator.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/ListTagsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -1
- 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/{dist/types → dist-types}/ts3.4/waiters/waitForAuditReportCreated.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/waiters/waitForCertificateAuthorityCSRCreated.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/waiters/waitForCertificateIssued.d.ts +1 -1
- package/{dist/types → dist-types}/waiters/waitForAuditReportCreated.d.ts +1 -1
- package/{dist/types → dist-types}/waiters/waitForCertificateAuthorityCSRCreated.d.ts +1 -1
- package/{dist/types → dist-types}/waiters/waitForCertificateIssued.d.ts +1 -1
- package/package.json +53 -50
- package/ACMPCA.ts +0 -1322
- package/ACMPCAClient.ts +0 -360
- package/commands/CreateCertificateAuthorityAuditReportCommand.ts +0 -121
- package/commands/CreateCertificateAuthorityCommand.ts +0 -117
- package/commands/CreatePermissionCommand.ts +0 -120
- package/commands/DeleteCertificateAuthorityCommand.ts +0 -116
- package/commands/DeletePermissionCommand.ts +0 -122
- package/commands/DeletePolicyCommand.ts +0 -128
- package/commands/DescribeCertificateAuthorityAuditReportCommand.ts +0 -112
- package/commands/DescribeCertificateAuthorityCommand.ts +0 -139
- package/commands/GetCertificateAuthorityCertificateCommand.ts +0 -108
- package/commands/GetCertificateAuthorityCsrCommand.ts +0 -101
- package/commands/GetCertificateCommand.ts +0 -101
- package/commands/GetPolicyCommand.ts +0 -121
- package/commands/ImportCertificateAuthorityCertificateCommand.ts +0 -228
- package/commands/IssueCertificateCommand.ts +0 -101
- package/commands/ListCertificateAuthoritiesCommand.ts +0 -97
- package/commands/ListPermissionsCommand.ts +0 -121
- package/commands/ListTagsCommand.ts +0 -90
- package/commands/PutPolicyCommand.ts +0 -122
- package/commands/RestoreCertificateAuthorityCommand.ts +0 -107
- package/commands/RevokeCertificateCommand.ts +0 -113
- package/commands/TagCertificateAuthorityCommand.ts +0 -101
- package/commands/UntagCertificateAuthorityCommand.ts +0 -101
- package/commands/UpdateCertificateAuthorityCommand.ts +0 -107
- package/dist/cjs/ACMPCA.js.map +0 -1
- package/dist/cjs/ACMPCAClient.js.map +0 -1
- package/dist/cjs/commands/CreateCertificateAuthorityAuditReportCommand.js.map +0 -1
- package/dist/cjs/commands/CreateCertificateAuthorityCommand.js.map +0 -1
- package/dist/cjs/commands/CreatePermissionCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteCertificateAuthorityCommand.js.map +0 -1
- package/dist/cjs/commands/DeletePermissionCommand.js.map +0 -1
- package/dist/cjs/commands/DeletePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeCertificateAuthorityAuditReportCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeCertificateAuthorityCommand.js.map +0 -1
- package/dist/cjs/commands/GetCertificateAuthorityCertificateCommand.js.map +0 -1
- package/dist/cjs/commands/GetCertificateAuthorityCsrCommand.js.map +0 -1
- package/dist/cjs/commands/GetCertificateCommand.js.map +0 -1
- package/dist/cjs/commands/GetPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/ImportCertificateAuthorityCertificateCommand.js.map +0 -1
- package/dist/cjs/commands/IssueCertificateCommand.js.map +0 -1
- package/dist/cjs/commands/ListCertificateAuthoritiesCommand.js.map +0 -1
- package/dist/cjs/commands/ListPermissionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsCommand.js.map +0 -1
- package/dist/cjs/commands/PutPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/RestoreCertificateAuthorityCommand.js.map +0 -1
- package/dist/cjs/commands/RevokeCertificateCommand.js.map +0 -1
- package/dist/cjs/commands/TagCertificateAuthorityCommand.js.map +0 -1
- package/dist/cjs/commands/UntagCertificateAuthorityCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateCertificateAuthorityCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -92
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListCertificateAuthoritiesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPermissionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListTagsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/cjs/waiters/waitForAuditReportCreated.js.map +0 -1
- package/dist/cjs/waiters/waitForCertificateAuthorityCSRCreated.js.map +0 -1
- package/dist/cjs/waiters/waitForCertificateIssued.js.map +0 -1
- package/dist/es/ACMPCA.js.map +0 -1
- package/dist/es/ACMPCAClient.js.map +0 -1
- package/dist/es/commands/CreateCertificateAuthorityAuditReportCommand.js +0 -80
- package/dist/es/commands/CreateCertificateAuthorityAuditReportCommand.js.map +0 -1
- package/dist/es/commands/CreateCertificateAuthorityCommand.js +0 -85
- package/dist/es/commands/CreateCertificateAuthorityCommand.js.map +0 -1
- package/dist/es/commands/CreatePermissionCommand.js +0 -91
- package/dist/es/commands/CreatePermissionCommand.js.map +0 -1
- package/dist/es/commands/DeleteCertificateAuthorityCommand.js +0 -84
- package/dist/es/commands/DeleteCertificateAuthorityCommand.js.map +0 -1
- package/dist/es/commands/DeletePermissionCommand.js +0 -93
- package/dist/es/commands/DeletePermissionCommand.js.map +0 -1
- package/dist/es/commands/DeletePolicyCommand.js +0 -99
- package/dist/es/commands/DeletePolicyCommand.js.map +0 -1
- package/dist/es/commands/DescribeCertificateAuthorityAuditReportCommand.js.map +0 -1
- package/dist/es/commands/DescribeCertificateAuthorityCommand.js +0 -105
- package/dist/es/commands/DescribeCertificateAuthorityCommand.js.map +0 -1
- package/dist/es/commands/GetCertificateAuthorityCertificateCommand.js.map +0 -1
- package/dist/es/commands/GetCertificateAuthorityCsrCommand.js.map +0 -1
- package/dist/es/commands/GetCertificateCommand.js +0 -72
- package/dist/es/commands/GetCertificateCommand.js.map +0 -1
- package/dist/es/commands/GetPolicyCommand.js +0 -95
- package/dist/es/commands/GetPolicyCommand.js.map +0 -1
- package/dist/es/commands/ImportCertificateAuthorityCertificateCommand.js +0 -192
- package/dist/es/commands/ImportCertificateAuthorityCertificateCommand.js.map +0 -1
- package/dist/es/commands/IssueCertificateCommand.js.map +0 -1
- package/dist/es/commands/ListCertificateAuthoritiesCommand.js.map +0 -1
- package/dist/es/commands/ListPermissionsCommand.js +0 -92
- package/dist/es/commands/ListPermissionsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsCommand.js.map +0 -1
- package/dist/es/commands/PutPolicyCommand.js +0 -96
- package/dist/es/commands/PutPolicyCommand.js.map +0 -1
- package/dist/es/commands/RestoreCertificateAuthorityCommand.js +0 -75
- package/dist/es/commands/RestoreCertificateAuthorityCommand.js.map +0 -1
- package/dist/es/commands/RevokeCertificateCommand.js +0 -84
- package/dist/es/commands/RevokeCertificateCommand.js.map +0 -1
- package/dist/es/commands/TagCertificateAuthorityCommand.js +0 -72
- package/dist/es/commands/TagCertificateAuthorityCommand.js.map +0 -1
- package/dist/es/commands/UntagCertificateAuthorityCommand.js.map +0 -1
- package/dist/es/commands/UpdateCertificateAuthorityCommand.js +0 -75
- package/dist/es/commands/UpdateCertificateAuthorityCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -34
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -92
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListCertificateAuthoritiesPaginator.js.map +0 -1
- package/dist/es/pagination/ListPermissionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListTagsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/es/waiters/waitForAuditReportCreated.js.map +0 -1
- package/dist/es/waiters/waitForCertificateAuthorityCSRCreated.js.map +0 -1
- package/dist/es/waiters/waitForCertificateIssued.js.map +0 -1
- package/endpoints.ts +0 -91
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2571
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListCertificateAuthoritiesPaginator.ts +0 -58
- package/pagination/ListPermissionsPaginator.ts +0 -58
- package/pagination/ListTagsPaginator.ts +0 -54
- package/protocols/Aws_json1_1.ts +0 -3844
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
- package/waiters/waitForAuditReportCreated.ts +0 -60
- package/waiters/waitForCertificateAuthorityCSRCreated.ts +0 -48
- package/waiters/waitForCertificateIssued.ts +0 -42
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1CreateCertificateAuthorityCommand = function (inp
|
|
|
9
9
|
"x-amz-target": "ACMPrivateCA.CreateCertificateAuthority",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1CreateCertificateAuthorityRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1CreateCertificateAuthorityAuditReportCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1CreateCertificateAuthorityAuditReportCommand = fu
|
|
|
20
20
|
"x-amz-target": "ACMPrivateCA.CreateCertificateAuthorityAuditReport",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1CreateCertificateAuthorityAuditReportRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1CreatePermissionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1CreatePermissionCommand = function (input, contex
|
|
|
31
31
|
"x-amz-target": "ACMPrivateCA.CreatePermission",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1CreatePermissionRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1DeleteCertificateAuthorityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1DeleteCertificateAuthorityCommand = function (inp
|
|
|
42
42
|
"x-amz-target": "ACMPrivateCA.DeleteCertificateAuthority",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1DeleteCertificateAuthorityRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1DeletePermissionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1DeletePermissionCommand = function (input, contex
|
|
|
53
53
|
"x-amz-target": "ACMPrivateCA.DeletePermission",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1DeletePermissionRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1DeletePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1DeletePolicyCommand = function (input, context) {
|
|
|
64
64
|
"x-amz-target": "ACMPrivateCA.DeletePolicy",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1DeletePolicyRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1DescribeCertificateAuthorityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1DescribeCertificateAuthorityCommand = function (i
|
|
|
75
75
|
"x-amz-target": "ACMPrivateCA.DescribeCertificateAuthority",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1DescribeCertificateAuthorityRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1DescribeCertificateAuthorityAuditReportCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1DescribeCertificateAuthorityAuditReportCommand =
|
|
|
86
86
|
"x-amz-target": "ACMPrivateCA.DescribeCertificateAuthorityAuditReport",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1DescribeCertificateAuthorityAuditReportRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1GetCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1GetCertificateCommand = function (input, context)
|
|
|
97
97
|
"x-amz-target": "ACMPrivateCA.GetCertificate",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1GetCertificateRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1GetCertificateAuthorityCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1GetCertificateAuthorityCertificateCommand = funct
|
|
|
108
108
|
"x-amz-target": "ACMPrivateCA.GetCertificateAuthorityCertificate",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1GetCertificateAuthorityCertificateRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1GetCertificateAuthorityCsrCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1GetCertificateAuthorityCsrCommand = function (inp
|
|
|
119
119
|
"x-amz-target": "ACMPrivateCA.GetCertificateAuthorityCsr",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1GetCertificateAuthorityCsrRequest(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1GetPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1GetPolicyCommand = function (input, context) { re
|
|
|
130
130
|
"x-amz-target": "ACMPrivateCA.GetPolicy",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1GetPolicyRequest(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1ImportCertificateAuthorityCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1ImportCertificateAuthorityCertificateCommand = fu
|
|
|
141
141
|
"x-amz-target": "ACMPrivateCA.ImportCertificateAuthorityCertificate",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1ImportCertificateAuthorityCertificateRequest(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1IssueCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1IssueCertificateCommand = function (input, contex
|
|
|
152
152
|
"x-amz-target": "ACMPrivateCA.IssueCertificate",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1IssueCertificateRequest(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1ListCertificateAuthoritiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1ListCertificateAuthoritiesCommand = function (inp
|
|
|
163
163
|
"x-amz-target": "ACMPrivateCA.ListCertificateAuthorities",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1ListCertificateAuthoritiesRequest(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1ListPermissionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1ListPermissionsCommand = function (input, context
|
|
|
174
174
|
"x-amz-target": "ACMPrivateCA.ListPermissions",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1ListPermissionsRequest(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1ListTagsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1ListTagsCommand = function (input, context) { ret
|
|
|
185
185
|
"x-amz-target": "ACMPrivateCA.ListTags",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1ListTagsRequest(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_1PutPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_1PutPolicyCommand = function (input, context) { re
|
|
|
196
196
|
"x-amz-target": "ACMPrivateCA.PutPolicy",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_1PutPolicyRequest(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_1RestoreCertificateAuthorityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_1RestoreCertificateAuthorityCommand = function (in
|
|
|
207
207
|
"x-amz-target": "ACMPrivateCA.RestoreCertificateAuthority",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_1RestoreCertificateAuthorityRequest(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var serializeAws_json1_1RevokeCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +218,7 @@ export var serializeAws_json1_1RevokeCertificateCommand = function (input, conte
|
|
|
218
218
|
"x-amz-target": "ACMPrivateCA.RevokeCertificate",
|
|
219
219
|
};
|
|
220
220
|
body = JSON.stringify(serializeAws_json1_1RevokeCertificateRequest(input, context));
|
|
221
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
222
|
});
|
|
223
223
|
}); };
|
|
224
224
|
export var serializeAws_json1_1TagCertificateAuthorityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -229,7 +229,7 @@ export var serializeAws_json1_1TagCertificateAuthorityCommand = function (input,
|
|
|
229
229
|
"x-amz-target": "ACMPrivateCA.TagCertificateAuthority",
|
|
230
230
|
};
|
|
231
231
|
body = JSON.stringify(serializeAws_json1_1TagCertificateAuthorityRequest(input, context));
|
|
232
|
-
return [2
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
233
|
});
|
|
234
234
|
}); };
|
|
235
235
|
export var serializeAws_json1_1UntagCertificateAuthorityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -240,7 +240,7 @@ export var serializeAws_json1_1UntagCertificateAuthorityCommand = function (inpu
|
|
|
240
240
|
"x-amz-target": "ACMPrivateCA.UntagCertificateAuthority",
|
|
241
241
|
};
|
|
242
242
|
body = JSON.stringify(serializeAws_json1_1UntagCertificateAuthorityRequest(input, context));
|
|
243
|
-
return [2
|
|
243
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
244
244
|
});
|
|
245
245
|
}); };
|
|
246
246
|
export var serializeAws_json1_1UpdateCertificateAuthorityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -251,7 +251,7 @@ export var serializeAws_json1_1UpdateCertificateAuthorityCommand = function (inp
|
|
|
251
251
|
"x-amz-target": "ACMPrivateCA.UpdateCertificateAuthority",
|
|
252
252
|
};
|
|
253
253
|
body = JSON.stringify(serializeAws_json1_1UpdateCertificateAuthorityRequest(input, context));
|
|
254
|
-
return [2
|
|
254
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
255
255
|
});
|
|
256
256
|
}); };
|
|
257
257
|
export var deserializeAws_json1_1CreateCertificateAuthorityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -260,15 +260,15 @@ export var deserializeAws_json1_1CreateCertificateAuthorityCommand = function (o
|
|
|
260
260
|
switch (_a.label) {
|
|
261
261
|
case 0:
|
|
262
262
|
if (output.statusCode >= 300) {
|
|
263
|
-
return [2
|
|
263
|
+
return [2, deserializeAws_json1_1CreateCertificateAuthorityCommandError(output, context)];
|
|
264
264
|
}
|
|
265
|
-
return [4
|
|
265
|
+
return [4, parseBody(output.body, context)];
|
|
266
266
|
case 1:
|
|
267
267
|
data = _a.sent();
|
|
268
268
|
contents = {};
|
|
269
269
|
contents = deserializeAws_json1_1CreateCertificateAuthorityResponse(data, context);
|
|
270
270
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
271
|
-
return [2
|
|
271
|
+
return [2, Promise.resolve(response)];
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
274
|
}); };
|
|
@@ -280,47 +280,47 @@ var deserializeAws_json1_1CreateCertificateAuthorityCommandError = function (out
|
|
|
280
280
|
case 0:
|
|
281
281
|
_a = [__assign({}, output)];
|
|
282
282
|
_g = {};
|
|
283
|
-
return [4
|
|
283
|
+
return [4, parseBody(output.body, context)];
|
|
284
284
|
case 1:
|
|
285
285
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
286
286
|
errorCode = "UnknownError";
|
|
287
287
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
288
288
|
_b = errorCode;
|
|
289
289
|
switch (_b) {
|
|
290
|
-
case "InvalidArgsException": return [3
|
|
291
|
-
case "com.amazonaws.acmpca#InvalidArgsException": return [3
|
|
292
|
-
case "InvalidPolicyException": return [3
|
|
293
|
-
case "com.amazonaws.acmpca#InvalidPolicyException": return [3
|
|
294
|
-
case "InvalidTagException": return [3
|
|
295
|
-
case "com.amazonaws.acmpca#InvalidTagException": return [3
|
|
296
|
-
case "LimitExceededException": return [3
|
|
297
|
-
case "com.amazonaws.acmpca#LimitExceededException": return [3
|
|
290
|
+
case "InvalidArgsException": return [3, 2];
|
|
291
|
+
case "com.amazonaws.acmpca#InvalidArgsException": return [3, 2];
|
|
292
|
+
case "InvalidPolicyException": return [3, 4];
|
|
293
|
+
case "com.amazonaws.acmpca#InvalidPolicyException": return [3, 4];
|
|
294
|
+
case "InvalidTagException": return [3, 6];
|
|
295
|
+
case "com.amazonaws.acmpca#InvalidTagException": return [3, 6];
|
|
296
|
+
case "LimitExceededException": return [3, 8];
|
|
297
|
+
case "com.amazonaws.acmpca#LimitExceededException": return [3, 8];
|
|
298
298
|
}
|
|
299
|
-
return [3
|
|
299
|
+
return [3, 10];
|
|
300
300
|
case 2:
|
|
301
301
|
_c = [{}];
|
|
302
|
-
return [4
|
|
302
|
+
return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
|
|
303
303
|
case 3:
|
|
304
304
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
305
|
-
return [3
|
|
305
|
+
return [3, 11];
|
|
306
306
|
case 4:
|
|
307
307
|
_d = [{}];
|
|
308
|
-
return [4
|
|
308
|
+
return [4, deserializeAws_json1_1InvalidPolicyExceptionResponse(parsedOutput, context)];
|
|
309
309
|
case 5:
|
|
310
310
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
311
|
-
return [3
|
|
311
|
+
return [3, 11];
|
|
312
312
|
case 6:
|
|
313
313
|
_e = [{}];
|
|
314
|
-
return [4
|
|
314
|
+
return [4, deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context)];
|
|
315
315
|
case 7:
|
|
316
316
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
317
|
-
return [3
|
|
317
|
+
return [3, 11];
|
|
318
318
|
case 8:
|
|
319
319
|
_f = [{}];
|
|
320
|
-
return [4
|
|
320
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
321
321
|
case 9:
|
|
322
322
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
323
|
-
return [3
|
|
323
|
+
return [3, 11];
|
|
324
324
|
case 10:
|
|
325
325
|
parsedBody = parsedOutput.body;
|
|
326
326
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -330,7 +330,7 @@ var deserializeAws_json1_1CreateCertificateAuthorityCommandError = function (out
|
|
|
330
330
|
message = response.message || response.Message || errorCode;
|
|
331
331
|
response.message = message;
|
|
332
332
|
delete response.Message;
|
|
333
|
-
return [2
|
|
333
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
334
334
|
}
|
|
335
335
|
});
|
|
336
336
|
}); };
|
|
@@ -340,15 +340,15 @@ export var deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommand =
|
|
|
340
340
|
switch (_a.label) {
|
|
341
341
|
case 0:
|
|
342
342
|
if (output.statusCode >= 300) {
|
|
343
|
-
return [2
|
|
343
|
+
return [2, deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommandError(output, context)];
|
|
344
344
|
}
|
|
345
|
-
return [4
|
|
345
|
+
return [4, parseBody(output.body, context)];
|
|
346
346
|
case 1:
|
|
347
347
|
data = _a.sent();
|
|
348
348
|
contents = {};
|
|
349
349
|
contents = deserializeAws_json1_1CreateCertificateAuthorityAuditReportResponse(data, context);
|
|
350
350
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
351
|
-
return [2
|
|
351
|
+
return [2, Promise.resolve(response)];
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
354
|
}); };
|
|
@@ -360,63 +360,63 @@ var deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommandError = fu
|
|
|
360
360
|
case 0:
|
|
361
361
|
_a = [__assign({}, output)];
|
|
362
362
|
_j = {};
|
|
363
|
-
return [4
|
|
363
|
+
return [4, parseBody(output.body, context)];
|
|
364
364
|
case 1:
|
|
365
365
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
366
366
|
errorCode = "UnknownError";
|
|
367
367
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
368
368
|
_b = errorCode;
|
|
369
369
|
switch (_b) {
|
|
370
|
-
case "InvalidArgsException": return [3
|
|
371
|
-
case "com.amazonaws.acmpca#InvalidArgsException": return [3
|
|
372
|
-
case "InvalidArnException": return [3
|
|
373
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
374
|
-
case "InvalidStateException": return [3
|
|
375
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
376
|
-
case "RequestFailedException": return [3
|
|
377
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3
|
|
378
|
-
case "RequestInProgressException": return [3
|
|
379
|
-
case "com.amazonaws.acmpca#RequestInProgressException": return [3
|
|
380
|
-
case "ResourceNotFoundException": return [3
|
|
381
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
370
|
+
case "InvalidArgsException": return [3, 2];
|
|
371
|
+
case "com.amazonaws.acmpca#InvalidArgsException": return [3, 2];
|
|
372
|
+
case "InvalidArnException": return [3, 4];
|
|
373
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 4];
|
|
374
|
+
case "InvalidStateException": return [3, 6];
|
|
375
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 6];
|
|
376
|
+
case "RequestFailedException": return [3, 8];
|
|
377
|
+
case "com.amazonaws.acmpca#RequestFailedException": return [3, 8];
|
|
378
|
+
case "RequestInProgressException": return [3, 10];
|
|
379
|
+
case "com.amazonaws.acmpca#RequestInProgressException": return [3, 10];
|
|
380
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
381
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 12];
|
|
382
382
|
}
|
|
383
|
-
return [3
|
|
383
|
+
return [3, 14];
|
|
384
384
|
case 2:
|
|
385
385
|
_c = [{}];
|
|
386
|
-
return [4
|
|
386
|
+
return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
|
|
387
387
|
case 3:
|
|
388
388
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
389
|
-
return [3
|
|
389
|
+
return [3, 15];
|
|
390
390
|
case 4:
|
|
391
391
|
_d = [{}];
|
|
392
|
-
return [4
|
|
392
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
393
393
|
case 5:
|
|
394
394
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
395
|
-
return [3
|
|
395
|
+
return [3, 15];
|
|
396
396
|
case 6:
|
|
397
397
|
_e = [{}];
|
|
398
|
-
return [4
|
|
398
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
399
399
|
case 7:
|
|
400
400
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
401
|
-
return [3
|
|
401
|
+
return [3, 15];
|
|
402
402
|
case 8:
|
|
403
403
|
_f = [{}];
|
|
404
|
-
return [4
|
|
404
|
+
return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
405
405
|
case 9:
|
|
406
406
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
407
|
-
return [3
|
|
407
|
+
return [3, 15];
|
|
408
408
|
case 10:
|
|
409
409
|
_g = [{}];
|
|
410
|
-
return [4
|
|
410
|
+
return [4, deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context)];
|
|
411
411
|
case 11:
|
|
412
412
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
413
|
-
return [3
|
|
413
|
+
return [3, 15];
|
|
414
414
|
case 12:
|
|
415
415
|
_h = [{}];
|
|
416
|
-
return [4
|
|
416
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
417
417
|
case 13:
|
|
418
418
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
419
|
-
return [3
|
|
419
|
+
return [3, 15];
|
|
420
420
|
case 14:
|
|
421
421
|
parsedBody = parsedOutput.body;
|
|
422
422
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -426,7 +426,7 @@ var deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommandError = fu
|
|
|
426
426
|
message = response.message || response.Message || errorCode;
|
|
427
427
|
response.message = message;
|
|
428
428
|
delete response.Message;
|
|
429
|
-
return [2
|
|
429
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
432
|
}); };
|
|
@@ -436,15 +436,15 @@ export var deserializeAws_json1_1CreatePermissionCommand = function (output, con
|
|
|
436
436
|
switch (_a.label) {
|
|
437
437
|
case 0:
|
|
438
438
|
if (output.statusCode >= 300) {
|
|
439
|
-
return [2
|
|
439
|
+
return [2, deserializeAws_json1_1CreatePermissionCommandError(output, context)];
|
|
440
440
|
}
|
|
441
|
-
return [4
|
|
441
|
+
return [4, collectBody(output.body, context)];
|
|
442
442
|
case 1:
|
|
443
443
|
_a.sent();
|
|
444
444
|
response = {
|
|
445
445
|
$metadata: deserializeMetadata(output),
|
|
446
446
|
};
|
|
447
|
-
return [2
|
|
447
|
+
return [2, Promise.resolve(response)];
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
450
|
}); };
|
|
@@ -456,63 +456,63 @@ var deserializeAws_json1_1CreatePermissionCommandError = function (output, conte
|
|
|
456
456
|
case 0:
|
|
457
457
|
_a = [__assign({}, output)];
|
|
458
458
|
_j = {};
|
|
459
|
-
return [4
|
|
459
|
+
return [4, parseBody(output.body, context)];
|
|
460
460
|
case 1:
|
|
461
461
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
462
462
|
errorCode = "UnknownError";
|
|
463
463
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
464
464
|
_b = errorCode;
|
|
465
465
|
switch (_b) {
|
|
466
|
-
case "InvalidArnException": return [3
|
|
467
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
468
|
-
case "InvalidStateException": return [3
|
|
469
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
470
|
-
case "LimitExceededException": return [3
|
|
471
|
-
case "com.amazonaws.acmpca#LimitExceededException": return [3
|
|
472
|
-
case "PermissionAlreadyExistsException": return [3
|
|
473
|
-
case "com.amazonaws.acmpca#PermissionAlreadyExistsException": return [3
|
|
474
|
-
case "RequestFailedException": return [3
|
|
475
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3
|
|
476
|
-
case "ResourceNotFoundException": return [3
|
|
477
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
466
|
+
case "InvalidArnException": return [3, 2];
|
|
467
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
468
|
+
case "InvalidStateException": return [3, 4];
|
|
469
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
470
|
+
case "LimitExceededException": return [3, 6];
|
|
471
|
+
case "com.amazonaws.acmpca#LimitExceededException": return [3, 6];
|
|
472
|
+
case "PermissionAlreadyExistsException": return [3, 8];
|
|
473
|
+
case "com.amazonaws.acmpca#PermissionAlreadyExistsException": return [3, 8];
|
|
474
|
+
case "RequestFailedException": return [3, 10];
|
|
475
|
+
case "com.amazonaws.acmpca#RequestFailedException": return [3, 10];
|
|
476
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
477
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 12];
|
|
478
478
|
}
|
|
479
|
-
return [3
|
|
479
|
+
return [3, 14];
|
|
480
480
|
case 2:
|
|
481
481
|
_c = [{}];
|
|
482
|
-
return [4
|
|
482
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
483
483
|
case 3:
|
|
484
484
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
485
|
-
return [3
|
|
485
|
+
return [3, 15];
|
|
486
486
|
case 4:
|
|
487
487
|
_d = [{}];
|
|
488
|
-
return [4
|
|
488
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
489
489
|
case 5:
|
|
490
490
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
491
|
-
return [3
|
|
491
|
+
return [3, 15];
|
|
492
492
|
case 6:
|
|
493
493
|
_e = [{}];
|
|
494
|
-
return [4
|
|
494
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
495
495
|
case 7:
|
|
496
496
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
497
|
-
return [3
|
|
497
|
+
return [3, 15];
|
|
498
498
|
case 8:
|
|
499
499
|
_f = [{}];
|
|
500
|
-
return [4
|
|
500
|
+
return [4, deserializeAws_json1_1PermissionAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
501
501
|
case 9:
|
|
502
502
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
503
|
-
return [3
|
|
503
|
+
return [3, 15];
|
|
504
504
|
case 10:
|
|
505
505
|
_g = [{}];
|
|
506
|
-
return [4
|
|
506
|
+
return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
507
507
|
case 11:
|
|
508
508
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
509
|
-
return [3
|
|
509
|
+
return [3, 15];
|
|
510
510
|
case 12:
|
|
511
511
|
_h = [{}];
|
|
512
|
-
return [4
|
|
512
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
513
513
|
case 13:
|
|
514
514
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
515
|
-
return [3
|
|
515
|
+
return [3, 15];
|
|
516
516
|
case 14:
|
|
517
517
|
parsedBody = parsedOutput.body;
|
|
518
518
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -522,7 +522,7 @@ var deserializeAws_json1_1CreatePermissionCommandError = function (output, conte
|
|
|
522
522
|
message = response.message || response.Message || errorCode;
|
|
523
523
|
response.message = message;
|
|
524
524
|
delete response.Message;
|
|
525
|
-
return [2
|
|
525
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
526
526
|
}
|
|
527
527
|
});
|
|
528
528
|
}); };
|
|
@@ -532,15 +532,15 @@ export var deserializeAws_json1_1DeleteCertificateAuthorityCommand = function (o
|
|
|
532
532
|
switch (_a.label) {
|
|
533
533
|
case 0:
|
|
534
534
|
if (output.statusCode >= 300) {
|
|
535
|
-
return [2
|
|
535
|
+
return [2, deserializeAws_json1_1DeleteCertificateAuthorityCommandError(output, context)];
|
|
536
536
|
}
|
|
537
|
-
return [4
|
|
537
|
+
return [4, collectBody(output.body, context)];
|
|
538
538
|
case 1:
|
|
539
539
|
_a.sent();
|
|
540
540
|
response = {
|
|
541
541
|
$metadata: deserializeMetadata(output),
|
|
542
542
|
};
|
|
543
|
-
return [2
|
|
543
|
+
return [2, Promise.resolve(response)];
|
|
544
544
|
}
|
|
545
545
|
});
|
|
546
546
|
}); };
|
|
@@ -552,47 +552,47 @@ var deserializeAws_json1_1DeleteCertificateAuthorityCommandError = function (out
|
|
|
552
552
|
case 0:
|
|
553
553
|
_a = [__assign({}, output)];
|
|
554
554
|
_g = {};
|
|
555
|
-
return [4
|
|
555
|
+
return [4, parseBody(output.body, context)];
|
|
556
556
|
case 1:
|
|
557
557
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
558
558
|
errorCode = "UnknownError";
|
|
559
559
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
560
560
|
_b = errorCode;
|
|
561
561
|
switch (_b) {
|
|
562
|
-
case "ConcurrentModificationException": return [3
|
|
563
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3
|
|
564
|
-
case "InvalidArnException": return [3
|
|
565
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
566
|
-
case "InvalidStateException": return [3
|
|
567
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
568
|
-
case "ResourceNotFoundException": return [3
|
|
569
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
562
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
563
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3, 2];
|
|
564
|
+
case "InvalidArnException": return [3, 4];
|
|
565
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 4];
|
|
566
|
+
case "InvalidStateException": return [3, 6];
|
|
567
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 6];
|
|
568
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
569
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 8];
|
|
570
570
|
}
|
|
571
|
-
return [3
|
|
571
|
+
return [3, 10];
|
|
572
572
|
case 2:
|
|
573
573
|
_c = [{}];
|
|
574
|
-
return [4
|
|
574
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
575
575
|
case 3:
|
|
576
576
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
577
|
-
return [3
|
|
577
|
+
return [3, 11];
|
|
578
578
|
case 4:
|
|
579
579
|
_d = [{}];
|
|
580
|
-
return [4
|
|
580
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
581
581
|
case 5:
|
|
582
582
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
583
|
-
return [3
|
|
583
|
+
return [3, 11];
|
|
584
584
|
case 6:
|
|
585
585
|
_e = [{}];
|
|
586
|
-
return [4
|
|
586
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
587
587
|
case 7:
|
|
588
588
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
589
|
-
return [3
|
|
589
|
+
return [3, 11];
|
|
590
590
|
case 8:
|
|
591
591
|
_f = [{}];
|
|
592
|
-
return [4
|
|
592
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
593
593
|
case 9:
|
|
594
594
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
595
|
-
return [3
|
|
595
|
+
return [3, 11];
|
|
596
596
|
case 10:
|
|
597
597
|
parsedBody = parsedOutput.body;
|
|
598
598
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -602,7 +602,7 @@ var deserializeAws_json1_1DeleteCertificateAuthorityCommandError = function (out
|
|
|
602
602
|
message = response.message || response.Message || errorCode;
|
|
603
603
|
response.message = message;
|
|
604
604
|
delete response.Message;
|
|
605
|
-
return [2
|
|
605
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
606
606
|
}
|
|
607
607
|
});
|
|
608
608
|
}); };
|
|
@@ -612,15 +612,15 @@ export var deserializeAws_json1_1DeletePermissionCommand = function (output, con
|
|
|
612
612
|
switch (_a.label) {
|
|
613
613
|
case 0:
|
|
614
614
|
if (output.statusCode >= 300) {
|
|
615
|
-
return [2
|
|
615
|
+
return [2, deserializeAws_json1_1DeletePermissionCommandError(output, context)];
|
|
616
616
|
}
|
|
617
|
-
return [4
|
|
617
|
+
return [4, collectBody(output.body, context)];
|
|
618
618
|
case 1:
|
|
619
619
|
_a.sent();
|
|
620
620
|
response = {
|
|
621
621
|
$metadata: deserializeMetadata(output),
|
|
622
622
|
};
|
|
623
|
-
return [2
|
|
623
|
+
return [2, Promise.resolve(response)];
|
|
624
624
|
}
|
|
625
625
|
});
|
|
626
626
|
}); };
|
|
@@ -632,47 +632,47 @@ var deserializeAws_json1_1DeletePermissionCommandError = function (output, conte
|
|
|
632
632
|
case 0:
|
|
633
633
|
_a = [__assign({}, output)];
|
|
634
634
|
_g = {};
|
|
635
|
-
return [4
|
|
635
|
+
return [4, parseBody(output.body, context)];
|
|
636
636
|
case 1:
|
|
637
637
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
638
638
|
errorCode = "UnknownError";
|
|
639
639
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
640
|
_b = errorCode;
|
|
641
641
|
switch (_b) {
|
|
642
|
-
case "InvalidArnException": return [3
|
|
643
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
644
|
-
case "InvalidStateException": return [3
|
|
645
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
646
|
-
case "RequestFailedException": return [3
|
|
647
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3
|
|
648
|
-
case "ResourceNotFoundException": return [3
|
|
649
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
642
|
+
case "InvalidArnException": return [3, 2];
|
|
643
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
644
|
+
case "InvalidStateException": return [3, 4];
|
|
645
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
646
|
+
case "RequestFailedException": return [3, 6];
|
|
647
|
+
case "com.amazonaws.acmpca#RequestFailedException": return [3, 6];
|
|
648
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
649
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 8];
|
|
650
650
|
}
|
|
651
|
-
return [3
|
|
651
|
+
return [3, 10];
|
|
652
652
|
case 2:
|
|
653
653
|
_c = [{}];
|
|
654
|
-
return [4
|
|
654
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
655
655
|
case 3:
|
|
656
656
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
657
|
-
return [3
|
|
657
|
+
return [3, 11];
|
|
658
658
|
case 4:
|
|
659
659
|
_d = [{}];
|
|
660
|
-
return [4
|
|
660
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
661
661
|
case 5:
|
|
662
662
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
663
|
-
return [3
|
|
663
|
+
return [3, 11];
|
|
664
664
|
case 6:
|
|
665
665
|
_e = [{}];
|
|
666
|
-
return [4
|
|
666
|
+
return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
667
667
|
case 7:
|
|
668
668
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
669
|
-
return [3
|
|
669
|
+
return [3, 11];
|
|
670
670
|
case 8:
|
|
671
671
|
_f = [{}];
|
|
672
|
-
return [4
|
|
672
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
673
673
|
case 9:
|
|
674
674
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
675
|
-
return [3
|
|
675
|
+
return [3, 11];
|
|
676
676
|
case 10:
|
|
677
677
|
parsedBody = parsedOutput.body;
|
|
678
678
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -682,7 +682,7 @@ var deserializeAws_json1_1DeletePermissionCommandError = function (output, conte
|
|
|
682
682
|
message = response.message || response.Message || errorCode;
|
|
683
683
|
response.message = message;
|
|
684
684
|
delete response.Message;
|
|
685
|
-
return [2
|
|
685
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
686
686
|
}
|
|
687
687
|
});
|
|
688
688
|
}); };
|
|
@@ -692,15 +692,15 @@ export var deserializeAws_json1_1DeletePolicyCommand = function (output, context
|
|
|
692
692
|
switch (_a.label) {
|
|
693
693
|
case 0:
|
|
694
694
|
if (output.statusCode >= 300) {
|
|
695
|
-
return [2
|
|
695
|
+
return [2, deserializeAws_json1_1DeletePolicyCommandError(output, context)];
|
|
696
696
|
}
|
|
697
|
-
return [4
|
|
697
|
+
return [4, collectBody(output.body, context)];
|
|
698
698
|
case 1:
|
|
699
699
|
_a.sent();
|
|
700
700
|
response = {
|
|
701
701
|
$metadata: deserializeMetadata(output),
|
|
702
702
|
};
|
|
703
|
-
return [2
|
|
703
|
+
return [2, Promise.resolve(response)];
|
|
704
704
|
}
|
|
705
705
|
});
|
|
706
706
|
}); };
|
|
@@ -712,63 +712,63 @@ var deserializeAws_json1_1DeletePolicyCommandError = function (output, context)
|
|
|
712
712
|
case 0:
|
|
713
713
|
_a = [__assign({}, output)];
|
|
714
714
|
_j = {};
|
|
715
|
-
return [4
|
|
715
|
+
return [4, parseBody(output.body, context)];
|
|
716
716
|
case 1:
|
|
717
717
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
718
718
|
errorCode = "UnknownError";
|
|
719
719
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
720
720
|
_b = errorCode;
|
|
721
721
|
switch (_b) {
|
|
722
|
-
case "ConcurrentModificationException": return [3
|
|
723
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3
|
|
724
|
-
case "InvalidArnException": return [3
|
|
725
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
726
|
-
case "InvalidStateException": return [3
|
|
727
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
728
|
-
case "LockoutPreventedException": return [3
|
|
729
|
-
case "com.amazonaws.acmpca#LockoutPreventedException": return [3
|
|
730
|
-
case "RequestFailedException": return [3
|
|
731
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3
|
|
732
|
-
case "ResourceNotFoundException": return [3
|
|
733
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
722
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
723
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3, 2];
|
|
724
|
+
case "InvalidArnException": return [3, 4];
|
|
725
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 4];
|
|
726
|
+
case "InvalidStateException": return [3, 6];
|
|
727
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 6];
|
|
728
|
+
case "LockoutPreventedException": return [3, 8];
|
|
729
|
+
case "com.amazonaws.acmpca#LockoutPreventedException": return [3, 8];
|
|
730
|
+
case "RequestFailedException": return [3, 10];
|
|
731
|
+
case "com.amazonaws.acmpca#RequestFailedException": return [3, 10];
|
|
732
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
733
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 12];
|
|
734
734
|
}
|
|
735
|
-
return [3
|
|
735
|
+
return [3, 14];
|
|
736
736
|
case 2:
|
|
737
737
|
_c = [{}];
|
|
738
|
-
return [4
|
|
738
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
739
739
|
case 3:
|
|
740
740
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
741
|
-
return [3
|
|
741
|
+
return [3, 15];
|
|
742
742
|
case 4:
|
|
743
743
|
_d = [{}];
|
|
744
|
-
return [4
|
|
744
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
745
745
|
case 5:
|
|
746
746
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
747
|
-
return [3
|
|
747
|
+
return [3, 15];
|
|
748
748
|
case 6:
|
|
749
749
|
_e = [{}];
|
|
750
|
-
return [4
|
|
750
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
751
751
|
case 7:
|
|
752
752
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
753
|
-
return [3
|
|
753
|
+
return [3, 15];
|
|
754
754
|
case 8:
|
|
755
755
|
_f = [{}];
|
|
756
|
-
return [4
|
|
756
|
+
return [4, deserializeAws_json1_1LockoutPreventedExceptionResponse(parsedOutput, context)];
|
|
757
757
|
case 9:
|
|
758
758
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
759
|
-
return [3
|
|
759
|
+
return [3, 15];
|
|
760
760
|
case 10:
|
|
761
761
|
_g = [{}];
|
|
762
|
-
return [4
|
|
762
|
+
return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
763
763
|
case 11:
|
|
764
764
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
765
|
-
return [3
|
|
765
|
+
return [3, 15];
|
|
766
766
|
case 12:
|
|
767
767
|
_h = [{}];
|
|
768
|
-
return [4
|
|
768
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
769
769
|
case 13:
|
|
770
770
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
771
|
-
return [3
|
|
771
|
+
return [3, 15];
|
|
772
772
|
case 14:
|
|
773
773
|
parsedBody = parsedOutput.body;
|
|
774
774
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -778,7 +778,7 @@ var deserializeAws_json1_1DeletePolicyCommandError = function (output, context)
|
|
|
778
778
|
message = response.message || response.Message || errorCode;
|
|
779
779
|
response.message = message;
|
|
780
780
|
delete response.Message;
|
|
781
|
-
return [2
|
|
781
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
784
|
}); };
|
|
@@ -788,15 +788,15 @@ export var deserializeAws_json1_1DescribeCertificateAuthorityCommand = function
|
|
|
788
788
|
switch (_a.label) {
|
|
789
789
|
case 0:
|
|
790
790
|
if (output.statusCode >= 300) {
|
|
791
|
-
return [2
|
|
791
|
+
return [2, deserializeAws_json1_1DescribeCertificateAuthorityCommandError(output, context)];
|
|
792
792
|
}
|
|
793
|
-
return [4
|
|
793
|
+
return [4, parseBody(output.body, context)];
|
|
794
794
|
case 1:
|
|
795
795
|
data = _a.sent();
|
|
796
796
|
contents = {};
|
|
797
797
|
contents = deserializeAws_json1_1DescribeCertificateAuthorityResponse(data, context);
|
|
798
798
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
799
|
-
return [2
|
|
799
|
+
return [2, Promise.resolve(response)];
|
|
800
800
|
}
|
|
801
801
|
});
|
|
802
802
|
}); };
|
|
@@ -808,31 +808,31 @@ var deserializeAws_json1_1DescribeCertificateAuthorityCommandError = function (o
|
|
|
808
808
|
case 0:
|
|
809
809
|
_a = [__assign({}, output)];
|
|
810
810
|
_e = {};
|
|
811
|
-
return [4
|
|
811
|
+
return [4, parseBody(output.body, context)];
|
|
812
812
|
case 1:
|
|
813
813
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
814
814
|
errorCode = "UnknownError";
|
|
815
815
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
816
|
_b = errorCode;
|
|
817
817
|
switch (_b) {
|
|
818
|
-
case "InvalidArnException": return [3
|
|
819
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
820
|
-
case "ResourceNotFoundException": return [3
|
|
821
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
818
|
+
case "InvalidArnException": return [3, 2];
|
|
819
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
820
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
821
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 4];
|
|
822
822
|
}
|
|
823
|
-
return [3
|
|
823
|
+
return [3, 6];
|
|
824
824
|
case 2:
|
|
825
825
|
_c = [{}];
|
|
826
|
-
return [4
|
|
826
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
827
827
|
case 3:
|
|
828
828
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
829
|
-
return [3
|
|
829
|
+
return [3, 7];
|
|
830
830
|
case 4:
|
|
831
831
|
_d = [{}];
|
|
832
|
-
return [4
|
|
832
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
833
833
|
case 5:
|
|
834
834
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
835
|
-
return [3
|
|
835
|
+
return [3, 7];
|
|
836
836
|
case 6:
|
|
837
837
|
parsedBody = parsedOutput.body;
|
|
838
838
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -842,7 +842,7 @@ var deserializeAws_json1_1DescribeCertificateAuthorityCommandError = function (o
|
|
|
842
842
|
message = response.message || response.Message || errorCode;
|
|
843
843
|
response.message = message;
|
|
844
844
|
delete response.Message;
|
|
845
|
-
return [2
|
|
845
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
846
846
|
}
|
|
847
847
|
});
|
|
848
848
|
}); };
|
|
@@ -852,15 +852,15 @@ export var deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommand
|
|
|
852
852
|
switch (_a.label) {
|
|
853
853
|
case 0:
|
|
854
854
|
if (output.statusCode >= 300) {
|
|
855
|
-
return [2
|
|
855
|
+
return [2, deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommandError(output, context)];
|
|
856
856
|
}
|
|
857
|
-
return [4
|
|
857
|
+
return [4, parseBody(output.body, context)];
|
|
858
858
|
case 1:
|
|
859
859
|
data = _a.sent();
|
|
860
860
|
contents = {};
|
|
861
861
|
contents = deserializeAws_json1_1DescribeCertificateAuthorityAuditReportResponse(data, context);
|
|
862
862
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
863
|
-
return [2
|
|
863
|
+
return [2, Promise.resolve(response)];
|
|
864
864
|
}
|
|
865
865
|
});
|
|
866
866
|
}); };
|
|
@@ -872,39 +872,39 @@ var deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommandError =
|
|
|
872
872
|
case 0:
|
|
873
873
|
_a = [__assign({}, output)];
|
|
874
874
|
_f = {};
|
|
875
|
-
return [4
|
|
875
|
+
return [4, parseBody(output.body, context)];
|
|
876
876
|
case 1:
|
|
877
877
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
878
878
|
errorCode = "UnknownError";
|
|
879
879
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
880
|
_b = errorCode;
|
|
881
881
|
switch (_b) {
|
|
882
|
-
case "InvalidArgsException": return [3
|
|
883
|
-
case "com.amazonaws.acmpca#InvalidArgsException": return [3
|
|
884
|
-
case "InvalidArnException": return [3
|
|
885
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
886
|
-
case "ResourceNotFoundException": return [3
|
|
887
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
882
|
+
case "InvalidArgsException": return [3, 2];
|
|
883
|
+
case "com.amazonaws.acmpca#InvalidArgsException": return [3, 2];
|
|
884
|
+
case "InvalidArnException": return [3, 4];
|
|
885
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 4];
|
|
886
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
887
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 6];
|
|
888
888
|
}
|
|
889
|
-
return [3
|
|
889
|
+
return [3, 8];
|
|
890
890
|
case 2:
|
|
891
891
|
_c = [{}];
|
|
892
|
-
return [4
|
|
892
|
+
return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
|
|
893
893
|
case 3:
|
|
894
894
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
895
|
-
return [3
|
|
895
|
+
return [3, 9];
|
|
896
896
|
case 4:
|
|
897
897
|
_d = [{}];
|
|
898
|
-
return [4
|
|
898
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
899
899
|
case 5:
|
|
900
900
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
901
|
-
return [3
|
|
901
|
+
return [3, 9];
|
|
902
902
|
case 6:
|
|
903
903
|
_e = [{}];
|
|
904
|
-
return [4
|
|
904
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
905
905
|
case 7:
|
|
906
906
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
907
|
-
return [3
|
|
907
|
+
return [3, 9];
|
|
908
908
|
case 8:
|
|
909
909
|
parsedBody = parsedOutput.body;
|
|
910
910
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -914,7 +914,7 @@ var deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommandError =
|
|
|
914
914
|
message = response.message || response.Message || errorCode;
|
|
915
915
|
response.message = message;
|
|
916
916
|
delete response.Message;
|
|
917
|
-
return [2
|
|
917
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
918
918
|
}
|
|
919
919
|
});
|
|
920
920
|
}); };
|
|
@@ -924,15 +924,15 @@ export var deserializeAws_json1_1GetCertificateCommand = function (output, conte
|
|
|
924
924
|
switch (_a.label) {
|
|
925
925
|
case 0:
|
|
926
926
|
if (output.statusCode >= 300) {
|
|
927
|
-
return [2
|
|
927
|
+
return [2, deserializeAws_json1_1GetCertificateCommandError(output, context)];
|
|
928
928
|
}
|
|
929
|
-
return [4
|
|
929
|
+
return [4, parseBody(output.body, context)];
|
|
930
930
|
case 1:
|
|
931
931
|
data = _a.sent();
|
|
932
932
|
contents = {};
|
|
933
933
|
contents = deserializeAws_json1_1GetCertificateResponse(data, context);
|
|
934
934
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
935
|
-
return [2
|
|
935
|
+
return [2, Promise.resolve(response)];
|
|
936
936
|
}
|
|
937
937
|
});
|
|
938
938
|
}); };
|
|
@@ -944,55 +944,55 @@ var deserializeAws_json1_1GetCertificateCommandError = function (output, context
|
|
|
944
944
|
case 0:
|
|
945
945
|
_a = [__assign({}, output)];
|
|
946
946
|
_h = {};
|
|
947
|
-
return [4
|
|
947
|
+
return [4, parseBody(output.body, context)];
|
|
948
948
|
case 1:
|
|
949
949
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
950
950
|
errorCode = "UnknownError";
|
|
951
951
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
952
952
|
_b = errorCode;
|
|
953
953
|
switch (_b) {
|
|
954
|
-
case "InvalidArnException": return [3
|
|
955
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
956
|
-
case "InvalidStateException": return [3
|
|
957
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
958
|
-
case "RequestFailedException": return [3
|
|
959
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3
|
|
960
|
-
case "RequestInProgressException": return [3
|
|
961
|
-
case "com.amazonaws.acmpca#RequestInProgressException": return [3
|
|
962
|
-
case "ResourceNotFoundException": return [3
|
|
963
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
954
|
+
case "InvalidArnException": return [3, 2];
|
|
955
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
956
|
+
case "InvalidStateException": return [3, 4];
|
|
957
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
958
|
+
case "RequestFailedException": return [3, 6];
|
|
959
|
+
case "com.amazonaws.acmpca#RequestFailedException": return [3, 6];
|
|
960
|
+
case "RequestInProgressException": return [3, 8];
|
|
961
|
+
case "com.amazonaws.acmpca#RequestInProgressException": return [3, 8];
|
|
962
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
963
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 10];
|
|
964
964
|
}
|
|
965
|
-
return [3
|
|
965
|
+
return [3, 12];
|
|
966
966
|
case 2:
|
|
967
967
|
_c = [{}];
|
|
968
|
-
return [4
|
|
968
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
969
969
|
case 3:
|
|
970
970
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
971
|
-
return [3
|
|
971
|
+
return [3, 13];
|
|
972
972
|
case 4:
|
|
973
973
|
_d = [{}];
|
|
974
|
-
return [4
|
|
974
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
975
975
|
case 5:
|
|
976
976
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
977
|
-
return [3
|
|
977
|
+
return [3, 13];
|
|
978
978
|
case 6:
|
|
979
979
|
_e = [{}];
|
|
980
|
-
return [4
|
|
980
|
+
return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
981
981
|
case 7:
|
|
982
982
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
983
|
-
return [3
|
|
983
|
+
return [3, 13];
|
|
984
984
|
case 8:
|
|
985
985
|
_f = [{}];
|
|
986
|
-
return [4
|
|
986
|
+
return [4, deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context)];
|
|
987
987
|
case 9:
|
|
988
988
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
989
|
-
return [3
|
|
989
|
+
return [3, 13];
|
|
990
990
|
case 10:
|
|
991
991
|
_g = [{}];
|
|
992
|
-
return [4
|
|
992
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
993
993
|
case 11:
|
|
994
994
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
995
|
-
return [3
|
|
995
|
+
return [3, 13];
|
|
996
996
|
case 12:
|
|
997
997
|
parsedBody = parsedOutput.body;
|
|
998
998
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1002,7 +1002,7 @@ var deserializeAws_json1_1GetCertificateCommandError = function (output, context
|
|
|
1002
1002
|
message = response.message || response.Message || errorCode;
|
|
1003
1003
|
response.message = message;
|
|
1004
1004
|
delete response.Message;
|
|
1005
|
-
return [2
|
|
1005
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1006
1006
|
}
|
|
1007
1007
|
});
|
|
1008
1008
|
}); };
|
|
@@ -1012,15 +1012,15 @@ export var deserializeAws_json1_1GetCertificateAuthorityCertificateCommand = fun
|
|
|
1012
1012
|
switch (_a.label) {
|
|
1013
1013
|
case 0:
|
|
1014
1014
|
if (output.statusCode >= 300) {
|
|
1015
|
-
return [2
|
|
1015
|
+
return [2, deserializeAws_json1_1GetCertificateAuthorityCertificateCommandError(output, context)];
|
|
1016
1016
|
}
|
|
1017
|
-
return [4
|
|
1017
|
+
return [4, parseBody(output.body, context)];
|
|
1018
1018
|
case 1:
|
|
1019
1019
|
data = _a.sent();
|
|
1020
1020
|
contents = {};
|
|
1021
1021
|
contents = deserializeAws_json1_1GetCertificateAuthorityCertificateResponse(data, context);
|
|
1022
1022
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1023
|
-
return [2
|
|
1023
|
+
return [2, Promise.resolve(response)];
|
|
1024
1024
|
}
|
|
1025
1025
|
});
|
|
1026
1026
|
}); };
|
|
@@ -1032,39 +1032,39 @@ var deserializeAws_json1_1GetCertificateAuthorityCertificateCommandError = funct
|
|
|
1032
1032
|
case 0:
|
|
1033
1033
|
_a = [__assign({}, output)];
|
|
1034
1034
|
_f = {};
|
|
1035
|
-
return [4
|
|
1035
|
+
return [4, parseBody(output.body, context)];
|
|
1036
1036
|
case 1:
|
|
1037
1037
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1038
1038
|
errorCode = "UnknownError";
|
|
1039
1039
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
1040
|
_b = errorCode;
|
|
1041
1041
|
switch (_b) {
|
|
1042
|
-
case "InvalidArnException": return [3
|
|
1043
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
1044
|
-
case "InvalidStateException": return [3
|
|
1045
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
1046
|
-
case "ResourceNotFoundException": return [3
|
|
1047
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
1042
|
+
case "InvalidArnException": return [3, 2];
|
|
1043
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
1044
|
+
case "InvalidStateException": return [3, 4];
|
|
1045
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
1046
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1047
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 6];
|
|
1048
1048
|
}
|
|
1049
|
-
return [3
|
|
1049
|
+
return [3, 8];
|
|
1050
1050
|
case 2:
|
|
1051
1051
|
_c = [{}];
|
|
1052
|
-
return [4
|
|
1052
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1053
1053
|
case 3:
|
|
1054
1054
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1055
|
-
return [3
|
|
1055
|
+
return [3, 9];
|
|
1056
1056
|
case 4:
|
|
1057
1057
|
_d = [{}];
|
|
1058
|
-
return [4
|
|
1058
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1059
1059
|
case 5:
|
|
1060
1060
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1061
|
-
return [3
|
|
1061
|
+
return [3, 9];
|
|
1062
1062
|
case 6:
|
|
1063
1063
|
_e = [{}];
|
|
1064
|
-
return [4
|
|
1064
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1065
1065
|
case 7:
|
|
1066
1066
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1067
|
-
return [3
|
|
1067
|
+
return [3, 9];
|
|
1068
1068
|
case 8:
|
|
1069
1069
|
parsedBody = parsedOutput.body;
|
|
1070
1070
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1074,7 +1074,7 @@ var deserializeAws_json1_1GetCertificateAuthorityCertificateCommandError = funct
|
|
|
1074
1074
|
message = response.message || response.Message || errorCode;
|
|
1075
1075
|
response.message = message;
|
|
1076
1076
|
delete response.Message;
|
|
1077
|
-
return [2
|
|
1077
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1078
1078
|
}
|
|
1079
1079
|
});
|
|
1080
1080
|
}); };
|
|
@@ -1084,15 +1084,15 @@ export var deserializeAws_json1_1GetCertificateAuthorityCsrCommand = function (o
|
|
|
1084
1084
|
switch (_a.label) {
|
|
1085
1085
|
case 0:
|
|
1086
1086
|
if (output.statusCode >= 300) {
|
|
1087
|
-
return [2
|
|
1087
|
+
return [2, deserializeAws_json1_1GetCertificateAuthorityCsrCommandError(output, context)];
|
|
1088
1088
|
}
|
|
1089
|
-
return [4
|
|
1089
|
+
return [4, parseBody(output.body, context)];
|
|
1090
1090
|
case 1:
|
|
1091
1091
|
data = _a.sent();
|
|
1092
1092
|
contents = {};
|
|
1093
1093
|
contents = deserializeAws_json1_1GetCertificateAuthorityCsrResponse(data, context);
|
|
1094
1094
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1095
|
-
return [2
|
|
1095
|
+
return [2, Promise.resolve(response)];
|
|
1096
1096
|
}
|
|
1097
1097
|
});
|
|
1098
1098
|
}); };
|
|
@@ -1104,55 +1104,55 @@ var deserializeAws_json1_1GetCertificateAuthorityCsrCommandError = function (out
|
|
|
1104
1104
|
case 0:
|
|
1105
1105
|
_a = [__assign({}, output)];
|
|
1106
1106
|
_h = {};
|
|
1107
|
-
return [4
|
|
1107
|
+
return [4, parseBody(output.body, context)];
|
|
1108
1108
|
case 1:
|
|
1109
1109
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1110
1110
|
errorCode = "UnknownError";
|
|
1111
1111
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1112
1112
|
_b = errorCode;
|
|
1113
1113
|
switch (_b) {
|
|
1114
|
-
case "InvalidArnException": return [3
|
|
1115
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
1116
|
-
case "InvalidStateException": return [3
|
|
1117
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
1118
|
-
case "RequestFailedException": return [3
|
|
1119
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3
|
|
1120
|
-
case "RequestInProgressException": return [3
|
|
1121
|
-
case "com.amazonaws.acmpca#RequestInProgressException": return [3
|
|
1122
|
-
case "ResourceNotFoundException": return [3
|
|
1123
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
1114
|
+
case "InvalidArnException": return [3, 2];
|
|
1115
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
1116
|
+
case "InvalidStateException": return [3, 4];
|
|
1117
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
1118
|
+
case "RequestFailedException": return [3, 6];
|
|
1119
|
+
case "com.amazonaws.acmpca#RequestFailedException": return [3, 6];
|
|
1120
|
+
case "RequestInProgressException": return [3, 8];
|
|
1121
|
+
case "com.amazonaws.acmpca#RequestInProgressException": return [3, 8];
|
|
1122
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1123
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 10];
|
|
1124
1124
|
}
|
|
1125
|
-
return [3
|
|
1125
|
+
return [3, 12];
|
|
1126
1126
|
case 2:
|
|
1127
1127
|
_c = [{}];
|
|
1128
|
-
return [4
|
|
1128
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1129
1129
|
case 3:
|
|
1130
1130
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1131
|
-
return [3
|
|
1131
|
+
return [3, 13];
|
|
1132
1132
|
case 4:
|
|
1133
1133
|
_d = [{}];
|
|
1134
|
-
return [4
|
|
1134
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1135
1135
|
case 5:
|
|
1136
1136
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1137
|
-
return [3
|
|
1137
|
+
return [3, 13];
|
|
1138
1138
|
case 6:
|
|
1139
1139
|
_e = [{}];
|
|
1140
|
-
return [4
|
|
1140
|
+
return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
1141
1141
|
case 7:
|
|
1142
1142
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1143
|
-
return [3
|
|
1143
|
+
return [3, 13];
|
|
1144
1144
|
case 8:
|
|
1145
1145
|
_f = [{}];
|
|
1146
|
-
return [4
|
|
1146
|
+
return [4, deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context)];
|
|
1147
1147
|
case 9:
|
|
1148
1148
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1149
|
-
return [3
|
|
1149
|
+
return [3, 13];
|
|
1150
1150
|
case 10:
|
|
1151
1151
|
_g = [{}];
|
|
1152
|
-
return [4
|
|
1152
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1153
1153
|
case 11:
|
|
1154
1154
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1155
|
-
return [3
|
|
1155
|
+
return [3, 13];
|
|
1156
1156
|
case 12:
|
|
1157
1157
|
parsedBody = parsedOutput.body;
|
|
1158
1158
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1162,7 +1162,7 @@ var deserializeAws_json1_1GetCertificateAuthorityCsrCommandError = function (out
|
|
|
1162
1162
|
message = response.message || response.Message || errorCode;
|
|
1163
1163
|
response.message = message;
|
|
1164
1164
|
delete response.Message;
|
|
1165
|
-
return [2
|
|
1165
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1166
1166
|
}
|
|
1167
1167
|
});
|
|
1168
1168
|
}); };
|
|
@@ -1172,15 +1172,15 @@ export var deserializeAws_json1_1GetPolicyCommand = function (output, context) {
|
|
|
1172
1172
|
switch (_a.label) {
|
|
1173
1173
|
case 0:
|
|
1174
1174
|
if (output.statusCode >= 300) {
|
|
1175
|
-
return [2
|
|
1175
|
+
return [2, deserializeAws_json1_1GetPolicyCommandError(output, context)];
|
|
1176
1176
|
}
|
|
1177
|
-
return [4
|
|
1177
|
+
return [4, parseBody(output.body, context)];
|
|
1178
1178
|
case 1:
|
|
1179
1179
|
data = _a.sent();
|
|
1180
1180
|
contents = {};
|
|
1181
1181
|
contents = deserializeAws_json1_1GetPolicyResponse(data, context);
|
|
1182
1182
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1183
|
-
return [2
|
|
1183
|
+
return [2, Promise.resolve(response)];
|
|
1184
1184
|
}
|
|
1185
1185
|
});
|
|
1186
1186
|
}); };
|
|
@@ -1192,47 +1192,47 @@ var deserializeAws_json1_1GetPolicyCommandError = function (output, context) { r
|
|
|
1192
1192
|
case 0:
|
|
1193
1193
|
_a = [__assign({}, output)];
|
|
1194
1194
|
_g = {};
|
|
1195
|
-
return [4
|
|
1195
|
+
return [4, parseBody(output.body, context)];
|
|
1196
1196
|
case 1:
|
|
1197
1197
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1198
1198
|
errorCode = "UnknownError";
|
|
1199
1199
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
1200
|
_b = errorCode;
|
|
1201
1201
|
switch (_b) {
|
|
1202
|
-
case "InvalidArnException": return [3
|
|
1203
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
1204
|
-
case "InvalidStateException": return [3
|
|
1205
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
1206
|
-
case "RequestFailedException": return [3
|
|
1207
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3
|
|
1208
|
-
case "ResourceNotFoundException": return [3
|
|
1209
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
1202
|
+
case "InvalidArnException": return [3, 2];
|
|
1203
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
1204
|
+
case "InvalidStateException": return [3, 4];
|
|
1205
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
1206
|
+
case "RequestFailedException": return [3, 6];
|
|
1207
|
+
case "com.amazonaws.acmpca#RequestFailedException": return [3, 6];
|
|
1208
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1209
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 8];
|
|
1210
1210
|
}
|
|
1211
|
-
return [3
|
|
1211
|
+
return [3, 10];
|
|
1212
1212
|
case 2:
|
|
1213
1213
|
_c = [{}];
|
|
1214
|
-
return [4
|
|
1214
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1215
1215
|
case 3:
|
|
1216
1216
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1217
|
-
return [3
|
|
1217
|
+
return [3, 11];
|
|
1218
1218
|
case 4:
|
|
1219
1219
|
_d = [{}];
|
|
1220
|
-
return [4
|
|
1220
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1221
1221
|
case 5:
|
|
1222
1222
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1223
|
-
return [3
|
|
1223
|
+
return [3, 11];
|
|
1224
1224
|
case 6:
|
|
1225
1225
|
_e = [{}];
|
|
1226
|
-
return [4
|
|
1226
|
+
return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
1227
1227
|
case 7:
|
|
1228
1228
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1229
|
-
return [3
|
|
1229
|
+
return [3, 11];
|
|
1230
1230
|
case 8:
|
|
1231
1231
|
_f = [{}];
|
|
1232
|
-
return [4
|
|
1232
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1233
1233
|
case 9:
|
|
1234
1234
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1235
|
-
return [3
|
|
1235
|
+
return [3, 11];
|
|
1236
1236
|
case 10:
|
|
1237
1237
|
parsedBody = parsedOutput.body;
|
|
1238
1238
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1242,7 +1242,7 @@ var deserializeAws_json1_1GetPolicyCommandError = function (output, context) { r
|
|
|
1242
1242
|
message = response.message || response.Message || errorCode;
|
|
1243
1243
|
response.message = message;
|
|
1244
1244
|
delete response.Message;
|
|
1245
|
-
return [2
|
|
1245
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1246
1246
|
}
|
|
1247
1247
|
});
|
|
1248
1248
|
}); };
|
|
@@ -1252,15 +1252,15 @@ export var deserializeAws_json1_1ImportCertificateAuthorityCertificateCommand =
|
|
|
1252
1252
|
switch (_a.label) {
|
|
1253
1253
|
case 0:
|
|
1254
1254
|
if (output.statusCode >= 300) {
|
|
1255
|
-
return [2
|
|
1255
|
+
return [2, deserializeAws_json1_1ImportCertificateAuthorityCertificateCommandError(output, context)];
|
|
1256
1256
|
}
|
|
1257
|
-
return [4
|
|
1257
|
+
return [4, collectBody(output.body, context)];
|
|
1258
1258
|
case 1:
|
|
1259
1259
|
_a.sent();
|
|
1260
1260
|
response = {
|
|
1261
1261
|
$metadata: deserializeMetadata(output),
|
|
1262
1262
|
};
|
|
1263
|
-
return [2
|
|
1263
|
+
return [2, Promise.resolve(response)];
|
|
1264
1264
|
}
|
|
1265
1265
|
});
|
|
1266
1266
|
}); };
|
|
@@ -1272,87 +1272,87 @@ var deserializeAws_json1_1ImportCertificateAuthorityCertificateCommandError = fu
|
|
|
1272
1272
|
case 0:
|
|
1273
1273
|
_a = [__assign({}, output)];
|
|
1274
1274
|
_m = {};
|
|
1275
|
-
return [4
|
|
1275
|
+
return [4, parseBody(output.body, context)];
|
|
1276
1276
|
case 1:
|
|
1277
1277
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
1278
1278
|
errorCode = "UnknownError";
|
|
1279
1279
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
1280
|
_b = errorCode;
|
|
1281
1281
|
switch (_b) {
|
|
1282
|
-
case "CertificateMismatchException": return [3
|
|
1283
|
-
case "com.amazonaws.acmpca#CertificateMismatchException": return [3
|
|
1284
|
-
case "ConcurrentModificationException": return [3
|
|
1285
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3
|
|
1286
|
-
case "InvalidArnException": return [3
|
|
1287
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
1288
|
-
case "InvalidRequestException": return [3
|
|
1289
|
-
case "com.amazonaws.acmpca#InvalidRequestException": return [3
|
|
1290
|
-
case "InvalidStateException": return [3
|
|
1291
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
1292
|
-
case "MalformedCertificateException": return [3
|
|
1293
|
-
case "com.amazonaws.acmpca#MalformedCertificateException": return [3
|
|
1294
|
-
case "RequestFailedException": return [3
|
|
1295
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3
|
|
1296
|
-
case "RequestInProgressException": return [3
|
|
1297
|
-
case "com.amazonaws.acmpca#RequestInProgressException": return [3
|
|
1298
|
-
case "ResourceNotFoundException": return [3
|
|
1299
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
1282
|
+
case "CertificateMismatchException": return [3, 2];
|
|
1283
|
+
case "com.amazonaws.acmpca#CertificateMismatchException": return [3, 2];
|
|
1284
|
+
case "ConcurrentModificationException": return [3, 4];
|
|
1285
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3, 4];
|
|
1286
|
+
case "InvalidArnException": return [3, 6];
|
|
1287
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 6];
|
|
1288
|
+
case "InvalidRequestException": return [3, 8];
|
|
1289
|
+
case "com.amazonaws.acmpca#InvalidRequestException": return [3, 8];
|
|
1290
|
+
case "InvalidStateException": return [3, 10];
|
|
1291
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 10];
|
|
1292
|
+
case "MalformedCertificateException": return [3, 12];
|
|
1293
|
+
case "com.amazonaws.acmpca#MalformedCertificateException": return [3, 12];
|
|
1294
|
+
case "RequestFailedException": return [3, 14];
|
|
1295
|
+
case "com.amazonaws.acmpca#RequestFailedException": return [3, 14];
|
|
1296
|
+
case "RequestInProgressException": return [3, 16];
|
|
1297
|
+
case "com.amazonaws.acmpca#RequestInProgressException": return [3, 16];
|
|
1298
|
+
case "ResourceNotFoundException": return [3, 18];
|
|
1299
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 18];
|
|
1300
1300
|
}
|
|
1301
|
-
return [3
|
|
1301
|
+
return [3, 20];
|
|
1302
1302
|
case 2:
|
|
1303
1303
|
_c = [{}];
|
|
1304
|
-
return [4
|
|
1304
|
+
return [4, deserializeAws_json1_1CertificateMismatchExceptionResponse(parsedOutput, context)];
|
|
1305
1305
|
case 3:
|
|
1306
1306
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1307
|
-
return [3
|
|
1307
|
+
return [3, 21];
|
|
1308
1308
|
case 4:
|
|
1309
1309
|
_d = [{}];
|
|
1310
|
-
return [4
|
|
1310
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1311
1311
|
case 5:
|
|
1312
1312
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1313
|
-
return [3
|
|
1313
|
+
return [3, 21];
|
|
1314
1314
|
case 6:
|
|
1315
1315
|
_e = [{}];
|
|
1316
|
-
return [4
|
|
1316
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1317
1317
|
case 7:
|
|
1318
1318
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1319
|
-
return [3
|
|
1319
|
+
return [3, 21];
|
|
1320
1320
|
case 8:
|
|
1321
1321
|
_f = [{}];
|
|
1322
|
-
return [4
|
|
1322
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1323
1323
|
case 9:
|
|
1324
1324
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1325
|
-
return [3
|
|
1325
|
+
return [3, 21];
|
|
1326
1326
|
case 10:
|
|
1327
1327
|
_g = [{}];
|
|
1328
|
-
return [4
|
|
1328
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1329
1329
|
case 11:
|
|
1330
1330
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1331
|
-
return [3
|
|
1331
|
+
return [3, 21];
|
|
1332
1332
|
case 12:
|
|
1333
1333
|
_h = [{}];
|
|
1334
|
-
return [4
|
|
1334
|
+
return [4, deserializeAws_json1_1MalformedCertificateExceptionResponse(parsedOutput, context)];
|
|
1335
1335
|
case 13:
|
|
1336
1336
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1337
|
-
return [3
|
|
1337
|
+
return [3, 21];
|
|
1338
1338
|
case 14:
|
|
1339
1339
|
_j = [{}];
|
|
1340
|
-
return [4
|
|
1340
|
+
return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
1341
1341
|
case 15:
|
|
1342
1342
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1343
|
-
return [3
|
|
1343
|
+
return [3, 21];
|
|
1344
1344
|
case 16:
|
|
1345
1345
|
_k = [{}];
|
|
1346
|
-
return [4
|
|
1346
|
+
return [4, deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context)];
|
|
1347
1347
|
case 17:
|
|
1348
1348
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1349
|
-
return [3
|
|
1349
|
+
return [3, 21];
|
|
1350
1350
|
case 18:
|
|
1351
1351
|
_l = [{}];
|
|
1352
|
-
return [4
|
|
1352
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1353
1353
|
case 19:
|
|
1354
1354
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1355
|
-
return [3
|
|
1355
|
+
return [3, 21];
|
|
1356
1356
|
case 20:
|
|
1357
1357
|
parsedBody = parsedOutput.body;
|
|
1358
1358
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1362,7 +1362,7 @@ var deserializeAws_json1_1ImportCertificateAuthorityCertificateCommandError = fu
|
|
|
1362
1362
|
message = response.message || response.Message || errorCode;
|
|
1363
1363
|
response.message = message;
|
|
1364
1364
|
delete response.Message;
|
|
1365
|
-
return [2
|
|
1365
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1366
1366
|
}
|
|
1367
1367
|
});
|
|
1368
1368
|
}); };
|
|
@@ -1372,15 +1372,15 @@ export var deserializeAws_json1_1IssueCertificateCommand = function (output, con
|
|
|
1372
1372
|
switch (_a.label) {
|
|
1373
1373
|
case 0:
|
|
1374
1374
|
if (output.statusCode >= 300) {
|
|
1375
|
-
return [2
|
|
1375
|
+
return [2, deserializeAws_json1_1IssueCertificateCommandError(output, context)];
|
|
1376
1376
|
}
|
|
1377
|
-
return [4
|
|
1377
|
+
return [4, parseBody(output.body, context)];
|
|
1378
1378
|
case 1:
|
|
1379
1379
|
data = _a.sent();
|
|
1380
1380
|
contents = {};
|
|
1381
1381
|
contents = deserializeAws_json1_1IssueCertificateResponse(data, context);
|
|
1382
1382
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1383
|
-
return [2
|
|
1383
|
+
return [2, Promise.resolve(response)];
|
|
1384
1384
|
}
|
|
1385
1385
|
});
|
|
1386
1386
|
}); };
|
|
@@ -1392,63 +1392,63 @@ var deserializeAws_json1_1IssueCertificateCommandError = function (output, conte
|
|
|
1392
1392
|
case 0:
|
|
1393
1393
|
_a = [__assign({}, output)];
|
|
1394
1394
|
_j = {};
|
|
1395
|
-
return [4
|
|
1395
|
+
return [4, parseBody(output.body, context)];
|
|
1396
1396
|
case 1:
|
|
1397
1397
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1398
1398
|
errorCode = "UnknownError";
|
|
1399
1399
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1400
1400
|
_b = errorCode;
|
|
1401
1401
|
switch (_b) {
|
|
1402
|
-
case "InvalidArgsException": return [3
|
|
1403
|
-
case "com.amazonaws.acmpca#InvalidArgsException": return [3
|
|
1404
|
-
case "InvalidArnException": return [3
|
|
1405
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
1406
|
-
case "InvalidStateException": return [3
|
|
1407
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
1408
|
-
case "LimitExceededException": return [3
|
|
1409
|
-
case "com.amazonaws.acmpca#LimitExceededException": return [3
|
|
1410
|
-
case "MalformedCSRException": return [3
|
|
1411
|
-
case "com.amazonaws.acmpca#MalformedCSRException": return [3
|
|
1412
|
-
case "ResourceNotFoundException": return [3
|
|
1413
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
1402
|
+
case "InvalidArgsException": return [3, 2];
|
|
1403
|
+
case "com.amazonaws.acmpca#InvalidArgsException": return [3, 2];
|
|
1404
|
+
case "InvalidArnException": return [3, 4];
|
|
1405
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 4];
|
|
1406
|
+
case "InvalidStateException": return [3, 6];
|
|
1407
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 6];
|
|
1408
|
+
case "LimitExceededException": return [3, 8];
|
|
1409
|
+
case "com.amazonaws.acmpca#LimitExceededException": return [3, 8];
|
|
1410
|
+
case "MalformedCSRException": return [3, 10];
|
|
1411
|
+
case "com.amazonaws.acmpca#MalformedCSRException": return [3, 10];
|
|
1412
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1413
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 12];
|
|
1414
1414
|
}
|
|
1415
|
-
return [3
|
|
1415
|
+
return [3, 14];
|
|
1416
1416
|
case 2:
|
|
1417
1417
|
_c = [{}];
|
|
1418
|
-
return [4
|
|
1418
|
+
return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
|
|
1419
1419
|
case 3:
|
|
1420
1420
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1421
|
-
return [3
|
|
1421
|
+
return [3, 15];
|
|
1422
1422
|
case 4:
|
|
1423
1423
|
_d = [{}];
|
|
1424
|
-
return [4
|
|
1424
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1425
1425
|
case 5:
|
|
1426
1426
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1427
|
-
return [3
|
|
1427
|
+
return [3, 15];
|
|
1428
1428
|
case 6:
|
|
1429
1429
|
_e = [{}];
|
|
1430
|
-
return [4
|
|
1430
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1431
1431
|
case 7:
|
|
1432
1432
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1433
|
-
return [3
|
|
1433
|
+
return [3, 15];
|
|
1434
1434
|
case 8:
|
|
1435
1435
|
_f = [{}];
|
|
1436
|
-
return [4
|
|
1436
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1437
1437
|
case 9:
|
|
1438
1438
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1439
|
-
return [3
|
|
1439
|
+
return [3, 15];
|
|
1440
1440
|
case 10:
|
|
1441
1441
|
_g = [{}];
|
|
1442
|
-
return [4
|
|
1442
|
+
return [4, deserializeAws_json1_1MalformedCSRExceptionResponse(parsedOutput, context)];
|
|
1443
1443
|
case 11:
|
|
1444
1444
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1445
|
-
return [3
|
|
1445
|
+
return [3, 15];
|
|
1446
1446
|
case 12:
|
|
1447
1447
|
_h = [{}];
|
|
1448
|
-
return [4
|
|
1448
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1449
1449
|
case 13:
|
|
1450
1450
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1451
|
-
return [3
|
|
1451
|
+
return [3, 15];
|
|
1452
1452
|
case 14:
|
|
1453
1453
|
parsedBody = parsedOutput.body;
|
|
1454
1454
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1458,7 +1458,7 @@ var deserializeAws_json1_1IssueCertificateCommandError = function (output, conte
|
|
|
1458
1458
|
message = response.message || response.Message || errorCode;
|
|
1459
1459
|
response.message = message;
|
|
1460
1460
|
delete response.Message;
|
|
1461
|
-
return [2
|
|
1461
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1462
1462
|
}
|
|
1463
1463
|
});
|
|
1464
1464
|
}); };
|
|
@@ -1468,15 +1468,15 @@ export var deserializeAws_json1_1ListCertificateAuthoritiesCommand = function (o
|
|
|
1468
1468
|
switch (_a.label) {
|
|
1469
1469
|
case 0:
|
|
1470
1470
|
if (output.statusCode >= 300) {
|
|
1471
|
-
return [2
|
|
1471
|
+
return [2, deserializeAws_json1_1ListCertificateAuthoritiesCommandError(output, context)];
|
|
1472
1472
|
}
|
|
1473
|
-
return [4
|
|
1473
|
+
return [4, parseBody(output.body, context)];
|
|
1474
1474
|
case 1:
|
|
1475
1475
|
data = _a.sent();
|
|
1476
1476
|
contents = {};
|
|
1477
1477
|
contents = deserializeAws_json1_1ListCertificateAuthoritiesResponse(data, context);
|
|
1478
1478
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1479
|
-
return [2
|
|
1479
|
+
return [2, Promise.resolve(response)];
|
|
1480
1480
|
}
|
|
1481
1481
|
});
|
|
1482
1482
|
}); };
|
|
@@ -1488,23 +1488,23 @@ var deserializeAws_json1_1ListCertificateAuthoritiesCommandError = function (out
|
|
|
1488
1488
|
case 0:
|
|
1489
1489
|
_a = [__assign({}, output)];
|
|
1490
1490
|
_d = {};
|
|
1491
|
-
return [4
|
|
1491
|
+
return [4, parseBody(output.body, context)];
|
|
1492
1492
|
case 1:
|
|
1493
1493
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
1494
1494
|
errorCode = "UnknownError";
|
|
1495
1495
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1496
1496
|
_b = errorCode;
|
|
1497
1497
|
switch (_b) {
|
|
1498
|
-
case "InvalidNextTokenException": return [3
|
|
1499
|
-
case "com.amazonaws.acmpca#InvalidNextTokenException": return [3
|
|
1498
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1499
|
+
case "com.amazonaws.acmpca#InvalidNextTokenException": return [3, 2];
|
|
1500
1500
|
}
|
|
1501
|
-
return [3
|
|
1501
|
+
return [3, 4];
|
|
1502
1502
|
case 2:
|
|
1503
1503
|
_c = [{}];
|
|
1504
|
-
return [4
|
|
1504
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1505
1505
|
case 3:
|
|
1506
1506
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1507
|
-
return [3
|
|
1507
|
+
return [3, 5];
|
|
1508
1508
|
case 4:
|
|
1509
1509
|
parsedBody = parsedOutput.body;
|
|
1510
1510
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1514,7 +1514,7 @@ var deserializeAws_json1_1ListCertificateAuthoritiesCommandError = function (out
|
|
|
1514
1514
|
message = response.message || response.Message || errorCode;
|
|
1515
1515
|
response.message = message;
|
|
1516
1516
|
delete response.Message;
|
|
1517
|
-
return [2
|
|
1517
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1518
1518
|
}
|
|
1519
1519
|
});
|
|
1520
1520
|
}); };
|
|
@@ -1524,15 +1524,15 @@ export var deserializeAws_json1_1ListPermissionsCommand = function (output, cont
|
|
|
1524
1524
|
switch (_a.label) {
|
|
1525
1525
|
case 0:
|
|
1526
1526
|
if (output.statusCode >= 300) {
|
|
1527
|
-
return [2
|
|
1527
|
+
return [2, deserializeAws_json1_1ListPermissionsCommandError(output, context)];
|
|
1528
1528
|
}
|
|
1529
|
-
return [4
|
|
1529
|
+
return [4, parseBody(output.body, context)];
|
|
1530
1530
|
case 1:
|
|
1531
1531
|
data = _a.sent();
|
|
1532
1532
|
contents = {};
|
|
1533
1533
|
contents = deserializeAws_json1_1ListPermissionsResponse(data, context);
|
|
1534
1534
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1535
|
-
return [2
|
|
1535
|
+
return [2, Promise.resolve(response)];
|
|
1536
1536
|
}
|
|
1537
1537
|
});
|
|
1538
1538
|
}); };
|
|
@@ -1544,55 +1544,55 @@ var deserializeAws_json1_1ListPermissionsCommandError = function (output, contex
|
|
|
1544
1544
|
case 0:
|
|
1545
1545
|
_a = [__assign({}, output)];
|
|
1546
1546
|
_h = {};
|
|
1547
|
-
return [4
|
|
1547
|
+
return [4, parseBody(output.body, context)];
|
|
1548
1548
|
case 1:
|
|
1549
1549
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1550
1550
|
errorCode = "UnknownError";
|
|
1551
1551
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1552
1552
|
_b = errorCode;
|
|
1553
1553
|
switch (_b) {
|
|
1554
|
-
case "InvalidArnException": return [3
|
|
1555
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
1556
|
-
case "InvalidNextTokenException": return [3
|
|
1557
|
-
case "com.amazonaws.acmpca#InvalidNextTokenException": return [3
|
|
1558
|
-
case "InvalidStateException": return [3
|
|
1559
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
1560
|
-
case "RequestFailedException": return [3
|
|
1561
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3
|
|
1562
|
-
case "ResourceNotFoundException": return [3
|
|
1563
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
1554
|
+
case "InvalidArnException": return [3, 2];
|
|
1555
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
1556
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
1557
|
+
case "com.amazonaws.acmpca#InvalidNextTokenException": return [3, 4];
|
|
1558
|
+
case "InvalidStateException": return [3, 6];
|
|
1559
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 6];
|
|
1560
|
+
case "RequestFailedException": return [3, 8];
|
|
1561
|
+
case "com.amazonaws.acmpca#RequestFailedException": return [3, 8];
|
|
1562
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1563
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 10];
|
|
1564
1564
|
}
|
|
1565
|
-
return [3
|
|
1565
|
+
return [3, 12];
|
|
1566
1566
|
case 2:
|
|
1567
1567
|
_c = [{}];
|
|
1568
|
-
return [4
|
|
1568
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1569
1569
|
case 3:
|
|
1570
1570
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1571
|
-
return [3
|
|
1571
|
+
return [3, 13];
|
|
1572
1572
|
case 4:
|
|
1573
1573
|
_d = [{}];
|
|
1574
|
-
return [4
|
|
1574
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1575
1575
|
case 5:
|
|
1576
1576
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1577
|
-
return [3
|
|
1577
|
+
return [3, 13];
|
|
1578
1578
|
case 6:
|
|
1579
1579
|
_e = [{}];
|
|
1580
|
-
return [4
|
|
1580
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1581
1581
|
case 7:
|
|
1582
1582
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1583
|
-
return [3
|
|
1583
|
+
return [3, 13];
|
|
1584
1584
|
case 8:
|
|
1585
1585
|
_f = [{}];
|
|
1586
|
-
return [4
|
|
1586
|
+
return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
1587
1587
|
case 9:
|
|
1588
1588
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1589
|
-
return [3
|
|
1589
|
+
return [3, 13];
|
|
1590
1590
|
case 10:
|
|
1591
1591
|
_g = [{}];
|
|
1592
|
-
return [4
|
|
1592
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1593
1593
|
case 11:
|
|
1594
1594
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1595
|
-
return [3
|
|
1595
|
+
return [3, 13];
|
|
1596
1596
|
case 12:
|
|
1597
1597
|
parsedBody = parsedOutput.body;
|
|
1598
1598
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1602,7 +1602,7 @@ var deserializeAws_json1_1ListPermissionsCommandError = function (output, contex
|
|
|
1602
1602
|
message = response.message || response.Message || errorCode;
|
|
1603
1603
|
response.message = message;
|
|
1604
1604
|
delete response.Message;
|
|
1605
|
-
return [2
|
|
1605
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1606
1606
|
}
|
|
1607
1607
|
});
|
|
1608
1608
|
}); };
|
|
@@ -1612,15 +1612,15 @@ export var deserializeAws_json1_1ListTagsCommand = function (output, context) {
|
|
|
1612
1612
|
switch (_a.label) {
|
|
1613
1613
|
case 0:
|
|
1614
1614
|
if (output.statusCode >= 300) {
|
|
1615
|
-
return [2
|
|
1615
|
+
return [2, deserializeAws_json1_1ListTagsCommandError(output, context)];
|
|
1616
1616
|
}
|
|
1617
|
-
return [4
|
|
1617
|
+
return [4, parseBody(output.body, context)];
|
|
1618
1618
|
case 1:
|
|
1619
1619
|
data = _a.sent();
|
|
1620
1620
|
contents = {};
|
|
1621
1621
|
contents = deserializeAws_json1_1ListTagsResponse(data, context);
|
|
1622
1622
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1623
|
-
return [2
|
|
1623
|
+
return [2, Promise.resolve(response)];
|
|
1624
1624
|
}
|
|
1625
1625
|
});
|
|
1626
1626
|
}); };
|
|
@@ -1632,39 +1632,39 @@ var deserializeAws_json1_1ListTagsCommandError = function (output, context) { re
|
|
|
1632
1632
|
case 0:
|
|
1633
1633
|
_a = [__assign({}, output)];
|
|
1634
1634
|
_f = {};
|
|
1635
|
-
return [4
|
|
1635
|
+
return [4, parseBody(output.body, context)];
|
|
1636
1636
|
case 1:
|
|
1637
1637
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1638
1638
|
errorCode = "UnknownError";
|
|
1639
1639
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
1640
|
_b = errorCode;
|
|
1641
1641
|
switch (_b) {
|
|
1642
|
-
case "InvalidArnException": return [3
|
|
1643
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
1644
|
-
case "InvalidStateException": return [3
|
|
1645
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
1646
|
-
case "ResourceNotFoundException": return [3
|
|
1647
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
1642
|
+
case "InvalidArnException": return [3, 2];
|
|
1643
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
1644
|
+
case "InvalidStateException": return [3, 4];
|
|
1645
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
1646
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1647
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 6];
|
|
1648
1648
|
}
|
|
1649
|
-
return [3
|
|
1649
|
+
return [3, 8];
|
|
1650
1650
|
case 2:
|
|
1651
1651
|
_c = [{}];
|
|
1652
|
-
return [4
|
|
1652
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1653
1653
|
case 3:
|
|
1654
1654
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1655
|
-
return [3
|
|
1655
|
+
return [3, 9];
|
|
1656
1656
|
case 4:
|
|
1657
1657
|
_d = [{}];
|
|
1658
|
-
return [4
|
|
1658
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1659
1659
|
case 5:
|
|
1660
1660
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1661
|
-
return [3
|
|
1661
|
+
return [3, 9];
|
|
1662
1662
|
case 6:
|
|
1663
1663
|
_e = [{}];
|
|
1664
|
-
return [4
|
|
1664
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1665
1665
|
case 7:
|
|
1666
1666
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1667
|
-
return [3
|
|
1667
|
+
return [3, 9];
|
|
1668
1668
|
case 8:
|
|
1669
1669
|
parsedBody = parsedOutput.body;
|
|
1670
1670
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1674,7 +1674,7 @@ var deserializeAws_json1_1ListTagsCommandError = function (output, context) { re
|
|
|
1674
1674
|
message = response.message || response.Message || errorCode;
|
|
1675
1675
|
response.message = message;
|
|
1676
1676
|
delete response.Message;
|
|
1677
|
-
return [2
|
|
1677
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1678
1678
|
}
|
|
1679
1679
|
});
|
|
1680
1680
|
}); };
|
|
@@ -1684,15 +1684,15 @@ export var deserializeAws_json1_1PutPolicyCommand = function (output, context) {
|
|
|
1684
1684
|
switch (_a.label) {
|
|
1685
1685
|
case 0:
|
|
1686
1686
|
if (output.statusCode >= 300) {
|
|
1687
|
-
return [2
|
|
1687
|
+
return [2, deserializeAws_json1_1PutPolicyCommandError(output, context)];
|
|
1688
1688
|
}
|
|
1689
|
-
return [4
|
|
1689
|
+
return [4, collectBody(output.body, context)];
|
|
1690
1690
|
case 1:
|
|
1691
1691
|
_a.sent();
|
|
1692
1692
|
response = {
|
|
1693
1693
|
$metadata: deserializeMetadata(output),
|
|
1694
1694
|
};
|
|
1695
|
-
return [2
|
|
1695
|
+
return [2, Promise.resolve(response)];
|
|
1696
1696
|
}
|
|
1697
1697
|
});
|
|
1698
1698
|
}); };
|
|
@@ -1704,71 +1704,71 @@ var deserializeAws_json1_1PutPolicyCommandError = function (output, context) { r
|
|
|
1704
1704
|
case 0:
|
|
1705
1705
|
_a = [__assign({}, output)];
|
|
1706
1706
|
_k = {};
|
|
1707
|
-
return [4
|
|
1707
|
+
return [4, parseBody(output.body, context)];
|
|
1708
1708
|
case 1:
|
|
1709
1709
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1710
1710
|
errorCode = "UnknownError";
|
|
1711
1711
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1712
1712
|
_b = errorCode;
|
|
1713
1713
|
switch (_b) {
|
|
1714
|
-
case "ConcurrentModificationException": return [3
|
|
1715
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3
|
|
1716
|
-
case "InvalidArnException": return [3
|
|
1717
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
1718
|
-
case "InvalidPolicyException": return [3
|
|
1719
|
-
case "com.amazonaws.acmpca#InvalidPolicyException": return [3
|
|
1720
|
-
case "InvalidStateException": return [3
|
|
1721
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
1722
|
-
case "LockoutPreventedException": return [3
|
|
1723
|
-
case "com.amazonaws.acmpca#LockoutPreventedException": return [3
|
|
1724
|
-
case "RequestFailedException": return [3
|
|
1725
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3
|
|
1726
|
-
case "ResourceNotFoundException": return [3
|
|
1727
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
1714
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
1715
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3, 2];
|
|
1716
|
+
case "InvalidArnException": return [3, 4];
|
|
1717
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 4];
|
|
1718
|
+
case "InvalidPolicyException": return [3, 6];
|
|
1719
|
+
case "com.amazonaws.acmpca#InvalidPolicyException": return [3, 6];
|
|
1720
|
+
case "InvalidStateException": return [3, 8];
|
|
1721
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 8];
|
|
1722
|
+
case "LockoutPreventedException": return [3, 10];
|
|
1723
|
+
case "com.amazonaws.acmpca#LockoutPreventedException": return [3, 10];
|
|
1724
|
+
case "RequestFailedException": return [3, 12];
|
|
1725
|
+
case "com.amazonaws.acmpca#RequestFailedException": return [3, 12];
|
|
1726
|
+
case "ResourceNotFoundException": return [3, 14];
|
|
1727
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 14];
|
|
1728
1728
|
}
|
|
1729
|
-
return [3
|
|
1729
|
+
return [3, 16];
|
|
1730
1730
|
case 2:
|
|
1731
1731
|
_c = [{}];
|
|
1732
|
-
return [4
|
|
1732
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1733
1733
|
case 3:
|
|
1734
1734
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1735
|
-
return [3
|
|
1735
|
+
return [3, 17];
|
|
1736
1736
|
case 4:
|
|
1737
1737
|
_d = [{}];
|
|
1738
|
-
return [4
|
|
1738
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1739
1739
|
case 5:
|
|
1740
1740
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1741
|
-
return [3
|
|
1741
|
+
return [3, 17];
|
|
1742
1742
|
case 6:
|
|
1743
1743
|
_e = [{}];
|
|
1744
|
-
return [4
|
|
1744
|
+
return [4, deserializeAws_json1_1InvalidPolicyExceptionResponse(parsedOutput, context)];
|
|
1745
1745
|
case 7:
|
|
1746
1746
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1747
|
-
return [3
|
|
1747
|
+
return [3, 17];
|
|
1748
1748
|
case 8:
|
|
1749
1749
|
_f = [{}];
|
|
1750
|
-
return [4
|
|
1750
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1751
1751
|
case 9:
|
|
1752
1752
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1753
|
-
return [3
|
|
1753
|
+
return [3, 17];
|
|
1754
1754
|
case 10:
|
|
1755
1755
|
_g = [{}];
|
|
1756
|
-
return [4
|
|
1756
|
+
return [4, deserializeAws_json1_1LockoutPreventedExceptionResponse(parsedOutput, context)];
|
|
1757
1757
|
case 11:
|
|
1758
1758
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1759
|
-
return [3
|
|
1759
|
+
return [3, 17];
|
|
1760
1760
|
case 12:
|
|
1761
1761
|
_h = [{}];
|
|
1762
|
-
return [4
|
|
1762
|
+
return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
1763
1763
|
case 13:
|
|
1764
1764
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1765
|
-
return [3
|
|
1765
|
+
return [3, 17];
|
|
1766
1766
|
case 14:
|
|
1767
1767
|
_j = [{}];
|
|
1768
|
-
return [4
|
|
1768
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1769
1769
|
case 15:
|
|
1770
1770
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1771
|
-
return [3
|
|
1771
|
+
return [3, 17];
|
|
1772
1772
|
case 16:
|
|
1773
1773
|
parsedBody = parsedOutput.body;
|
|
1774
1774
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1778,7 +1778,7 @@ var deserializeAws_json1_1PutPolicyCommandError = function (output, context) { r
|
|
|
1778
1778
|
message = response.message || response.Message || errorCode;
|
|
1779
1779
|
response.message = message;
|
|
1780
1780
|
delete response.Message;
|
|
1781
|
-
return [2
|
|
1781
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1782
1782
|
}
|
|
1783
1783
|
});
|
|
1784
1784
|
}); };
|
|
@@ -1788,15 +1788,15 @@ export var deserializeAws_json1_1RestoreCertificateAuthorityCommand = function (
|
|
|
1788
1788
|
switch (_a.label) {
|
|
1789
1789
|
case 0:
|
|
1790
1790
|
if (output.statusCode >= 300) {
|
|
1791
|
-
return [2
|
|
1791
|
+
return [2, deserializeAws_json1_1RestoreCertificateAuthorityCommandError(output, context)];
|
|
1792
1792
|
}
|
|
1793
|
-
return [4
|
|
1793
|
+
return [4, collectBody(output.body, context)];
|
|
1794
1794
|
case 1:
|
|
1795
1795
|
_a.sent();
|
|
1796
1796
|
response = {
|
|
1797
1797
|
$metadata: deserializeMetadata(output),
|
|
1798
1798
|
};
|
|
1799
|
-
return [2
|
|
1799
|
+
return [2, Promise.resolve(response)];
|
|
1800
1800
|
}
|
|
1801
1801
|
});
|
|
1802
1802
|
}); };
|
|
@@ -1808,39 +1808,39 @@ var deserializeAws_json1_1RestoreCertificateAuthorityCommandError = function (ou
|
|
|
1808
1808
|
case 0:
|
|
1809
1809
|
_a = [__assign({}, output)];
|
|
1810
1810
|
_f = {};
|
|
1811
|
-
return [4
|
|
1811
|
+
return [4, parseBody(output.body, context)];
|
|
1812
1812
|
case 1:
|
|
1813
1813
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1814
1814
|
errorCode = "UnknownError";
|
|
1815
1815
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
1816
|
_b = errorCode;
|
|
1817
1817
|
switch (_b) {
|
|
1818
|
-
case "InvalidArnException": return [3
|
|
1819
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
1820
|
-
case "InvalidStateException": return [3
|
|
1821
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
1822
|
-
case "ResourceNotFoundException": return [3
|
|
1823
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
1818
|
+
case "InvalidArnException": return [3, 2];
|
|
1819
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
1820
|
+
case "InvalidStateException": return [3, 4];
|
|
1821
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
1822
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1823
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 6];
|
|
1824
1824
|
}
|
|
1825
|
-
return [3
|
|
1825
|
+
return [3, 8];
|
|
1826
1826
|
case 2:
|
|
1827
1827
|
_c = [{}];
|
|
1828
|
-
return [4
|
|
1828
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1829
1829
|
case 3:
|
|
1830
1830
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1831
|
-
return [3
|
|
1831
|
+
return [3, 9];
|
|
1832
1832
|
case 4:
|
|
1833
1833
|
_d = [{}];
|
|
1834
|
-
return [4
|
|
1834
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1835
1835
|
case 5:
|
|
1836
1836
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1837
|
-
return [3
|
|
1837
|
+
return [3, 9];
|
|
1838
1838
|
case 6:
|
|
1839
1839
|
_e = [{}];
|
|
1840
|
-
return [4
|
|
1840
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1841
1841
|
case 7:
|
|
1842
1842
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1843
|
-
return [3
|
|
1843
|
+
return [3, 9];
|
|
1844
1844
|
case 8:
|
|
1845
1845
|
parsedBody = parsedOutput.body;
|
|
1846
1846
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1850,7 +1850,7 @@ var deserializeAws_json1_1RestoreCertificateAuthorityCommandError = function (ou
|
|
|
1850
1850
|
message = response.message || response.Message || errorCode;
|
|
1851
1851
|
response.message = message;
|
|
1852
1852
|
delete response.Message;
|
|
1853
|
-
return [2
|
|
1853
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1854
1854
|
}
|
|
1855
1855
|
});
|
|
1856
1856
|
}); };
|
|
@@ -1860,15 +1860,15 @@ export var deserializeAws_json1_1RevokeCertificateCommand = function (output, co
|
|
|
1860
1860
|
switch (_a.label) {
|
|
1861
1861
|
case 0:
|
|
1862
1862
|
if (output.statusCode >= 300) {
|
|
1863
|
-
return [2
|
|
1863
|
+
return [2, deserializeAws_json1_1RevokeCertificateCommandError(output, context)];
|
|
1864
1864
|
}
|
|
1865
|
-
return [4
|
|
1865
|
+
return [4, collectBody(output.body, context)];
|
|
1866
1866
|
case 1:
|
|
1867
1867
|
_a.sent();
|
|
1868
1868
|
response = {
|
|
1869
1869
|
$metadata: deserializeMetadata(output),
|
|
1870
1870
|
};
|
|
1871
|
-
return [2
|
|
1871
|
+
return [2, Promise.resolve(response)];
|
|
1872
1872
|
}
|
|
1873
1873
|
});
|
|
1874
1874
|
}); };
|
|
@@ -1880,87 +1880,87 @@ var deserializeAws_json1_1RevokeCertificateCommandError = function (output, cont
|
|
|
1880
1880
|
case 0:
|
|
1881
1881
|
_a = [__assign({}, output)];
|
|
1882
1882
|
_m = {};
|
|
1883
|
-
return [4
|
|
1883
|
+
return [4, parseBody(output.body, context)];
|
|
1884
1884
|
case 1:
|
|
1885
1885
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
1886
1886
|
errorCode = "UnknownError";
|
|
1887
1887
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1888
1888
|
_b = errorCode;
|
|
1889
1889
|
switch (_b) {
|
|
1890
|
-
case "ConcurrentModificationException": return [3
|
|
1891
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3
|
|
1892
|
-
case "InvalidArnException": return [3
|
|
1893
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
1894
|
-
case "InvalidRequestException": return [3
|
|
1895
|
-
case "com.amazonaws.acmpca#InvalidRequestException": return [3
|
|
1896
|
-
case "InvalidStateException": return [3
|
|
1897
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
1898
|
-
case "LimitExceededException": return [3
|
|
1899
|
-
case "com.amazonaws.acmpca#LimitExceededException": return [3
|
|
1900
|
-
case "RequestAlreadyProcessedException": return [3
|
|
1901
|
-
case "com.amazonaws.acmpca#RequestAlreadyProcessedException": return [3
|
|
1902
|
-
case "RequestFailedException": return [3
|
|
1903
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3
|
|
1904
|
-
case "RequestInProgressException": return [3
|
|
1905
|
-
case "com.amazonaws.acmpca#RequestInProgressException": return [3
|
|
1906
|
-
case "ResourceNotFoundException": return [3
|
|
1907
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
1890
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
1891
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3, 2];
|
|
1892
|
+
case "InvalidArnException": return [3, 4];
|
|
1893
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 4];
|
|
1894
|
+
case "InvalidRequestException": return [3, 6];
|
|
1895
|
+
case "com.amazonaws.acmpca#InvalidRequestException": return [3, 6];
|
|
1896
|
+
case "InvalidStateException": return [3, 8];
|
|
1897
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 8];
|
|
1898
|
+
case "LimitExceededException": return [3, 10];
|
|
1899
|
+
case "com.amazonaws.acmpca#LimitExceededException": return [3, 10];
|
|
1900
|
+
case "RequestAlreadyProcessedException": return [3, 12];
|
|
1901
|
+
case "com.amazonaws.acmpca#RequestAlreadyProcessedException": return [3, 12];
|
|
1902
|
+
case "RequestFailedException": return [3, 14];
|
|
1903
|
+
case "com.amazonaws.acmpca#RequestFailedException": return [3, 14];
|
|
1904
|
+
case "RequestInProgressException": return [3, 16];
|
|
1905
|
+
case "com.amazonaws.acmpca#RequestInProgressException": return [3, 16];
|
|
1906
|
+
case "ResourceNotFoundException": return [3, 18];
|
|
1907
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 18];
|
|
1908
1908
|
}
|
|
1909
|
-
return [3
|
|
1909
|
+
return [3, 20];
|
|
1910
1910
|
case 2:
|
|
1911
1911
|
_c = [{}];
|
|
1912
|
-
return [4
|
|
1912
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1913
1913
|
case 3:
|
|
1914
1914
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1915
|
-
return [3
|
|
1915
|
+
return [3, 21];
|
|
1916
1916
|
case 4:
|
|
1917
1917
|
_d = [{}];
|
|
1918
|
-
return [4
|
|
1918
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1919
1919
|
case 5:
|
|
1920
1920
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1921
|
-
return [3
|
|
1921
|
+
return [3, 21];
|
|
1922
1922
|
case 6:
|
|
1923
1923
|
_e = [{}];
|
|
1924
|
-
return [4
|
|
1924
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1925
1925
|
case 7:
|
|
1926
1926
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1927
|
-
return [3
|
|
1927
|
+
return [3, 21];
|
|
1928
1928
|
case 8:
|
|
1929
1929
|
_f = [{}];
|
|
1930
|
-
return [4
|
|
1930
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1931
1931
|
case 9:
|
|
1932
1932
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1933
|
-
return [3
|
|
1933
|
+
return [3, 21];
|
|
1934
1934
|
case 10:
|
|
1935
1935
|
_g = [{}];
|
|
1936
|
-
return [4
|
|
1936
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1937
1937
|
case 11:
|
|
1938
1938
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1939
|
-
return [3
|
|
1939
|
+
return [3, 21];
|
|
1940
1940
|
case 12:
|
|
1941
1941
|
_h = [{}];
|
|
1942
|
-
return [4
|
|
1942
|
+
return [4, deserializeAws_json1_1RequestAlreadyProcessedExceptionResponse(parsedOutput, context)];
|
|
1943
1943
|
case 13:
|
|
1944
1944
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1945
|
-
return [3
|
|
1945
|
+
return [3, 21];
|
|
1946
1946
|
case 14:
|
|
1947
1947
|
_j = [{}];
|
|
1948
|
-
return [4
|
|
1948
|
+
return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
1949
1949
|
case 15:
|
|
1950
1950
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1951
|
-
return [3
|
|
1951
|
+
return [3, 21];
|
|
1952
1952
|
case 16:
|
|
1953
1953
|
_k = [{}];
|
|
1954
|
-
return [4
|
|
1954
|
+
return [4, deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context)];
|
|
1955
1955
|
case 17:
|
|
1956
1956
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1957
|
-
return [3
|
|
1957
|
+
return [3, 21];
|
|
1958
1958
|
case 18:
|
|
1959
1959
|
_l = [{}];
|
|
1960
|
-
return [4
|
|
1960
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1961
1961
|
case 19:
|
|
1962
1962
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1963
|
-
return [3
|
|
1963
|
+
return [3, 21];
|
|
1964
1964
|
case 20:
|
|
1965
1965
|
parsedBody = parsedOutput.body;
|
|
1966
1966
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1970,7 +1970,7 @@ var deserializeAws_json1_1RevokeCertificateCommandError = function (output, cont
|
|
|
1970
1970
|
message = response.message || response.Message || errorCode;
|
|
1971
1971
|
response.message = message;
|
|
1972
1972
|
delete response.Message;
|
|
1973
|
-
return [2
|
|
1973
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1974
1974
|
}
|
|
1975
1975
|
});
|
|
1976
1976
|
}); };
|
|
@@ -1980,15 +1980,15 @@ export var deserializeAws_json1_1TagCertificateAuthorityCommand = function (outp
|
|
|
1980
1980
|
switch (_a.label) {
|
|
1981
1981
|
case 0:
|
|
1982
1982
|
if (output.statusCode >= 300) {
|
|
1983
|
-
return [2
|
|
1983
|
+
return [2, deserializeAws_json1_1TagCertificateAuthorityCommandError(output, context)];
|
|
1984
1984
|
}
|
|
1985
|
-
return [4
|
|
1985
|
+
return [4, collectBody(output.body, context)];
|
|
1986
1986
|
case 1:
|
|
1987
1987
|
_a.sent();
|
|
1988
1988
|
response = {
|
|
1989
1989
|
$metadata: deserializeMetadata(output),
|
|
1990
1990
|
};
|
|
1991
|
-
return [2
|
|
1991
|
+
return [2, Promise.resolve(response)];
|
|
1992
1992
|
}
|
|
1993
1993
|
});
|
|
1994
1994
|
}); };
|
|
@@ -2000,55 +2000,55 @@ var deserializeAws_json1_1TagCertificateAuthorityCommandError = function (output
|
|
|
2000
2000
|
case 0:
|
|
2001
2001
|
_a = [__assign({}, output)];
|
|
2002
2002
|
_h = {};
|
|
2003
|
-
return [4
|
|
2003
|
+
return [4, parseBody(output.body, context)];
|
|
2004
2004
|
case 1:
|
|
2005
2005
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2006
2006
|
errorCode = "UnknownError";
|
|
2007
2007
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2008
2008
|
_b = errorCode;
|
|
2009
2009
|
switch (_b) {
|
|
2010
|
-
case "InvalidArnException": return [3
|
|
2011
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
2012
|
-
case "InvalidStateException": return [3
|
|
2013
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
2014
|
-
case "InvalidTagException": return [3
|
|
2015
|
-
case "com.amazonaws.acmpca#InvalidTagException": return [3
|
|
2016
|
-
case "ResourceNotFoundException": return [3
|
|
2017
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
2018
|
-
case "TooManyTagsException": return [3
|
|
2019
|
-
case "com.amazonaws.acmpca#TooManyTagsException": return [3
|
|
2010
|
+
case "InvalidArnException": return [3, 2];
|
|
2011
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
2012
|
+
case "InvalidStateException": return [3, 4];
|
|
2013
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
2014
|
+
case "InvalidTagException": return [3, 6];
|
|
2015
|
+
case "com.amazonaws.acmpca#InvalidTagException": return [3, 6];
|
|
2016
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2017
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 8];
|
|
2018
|
+
case "TooManyTagsException": return [3, 10];
|
|
2019
|
+
case "com.amazonaws.acmpca#TooManyTagsException": return [3, 10];
|
|
2020
2020
|
}
|
|
2021
|
-
return [3
|
|
2021
|
+
return [3, 12];
|
|
2022
2022
|
case 2:
|
|
2023
2023
|
_c = [{}];
|
|
2024
|
-
return [4
|
|
2024
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
2025
2025
|
case 3:
|
|
2026
2026
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2027
|
-
return [3
|
|
2027
|
+
return [3, 13];
|
|
2028
2028
|
case 4:
|
|
2029
2029
|
_d = [{}];
|
|
2030
|
-
return [4
|
|
2030
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
2031
2031
|
case 5:
|
|
2032
2032
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2033
|
-
return [3
|
|
2033
|
+
return [3, 13];
|
|
2034
2034
|
case 6:
|
|
2035
2035
|
_e = [{}];
|
|
2036
|
-
return [4
|
|
2036
|
+
return [4, deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context)];
|
|
2037
2037
|
case 7:
|
|
2038
2038
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2039
|
-
return [3
|
|
2039
|
+
return [3, 13];
|
|
2040
2040
|
case 8:
|
|
2041
2041
|
_f = [{}];
|
|
2042
|
-
return [4
|
|
2042
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2043
2043
|
case 9:
|
|
2044
2044
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2045
|
-
return [3
|
|
2045
|
+
return [3, 13];
|
|
2046
2046
|
case 10:
|
|
2047
2047
|
_g = [{}];
|
|
2048
|
-
return [4
|
|
2048
|
+
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
2049
2049
|
case 11:
|
|
2050
2050
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2051
|
-
return [3
|
|
2051
|
+
return [3, 13];
|
|
2052
2052
|
case 12:
|
|
2053
2053
|
parsedBody = parsedOutput.body;
|
|
2054
2054
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2058,7 +2058,7 @@ var deserializeAws_json1_1TagCertificateAuthorityCommandError = function (output
|
|
|
2058
2058
|
message = response.message || response.Message || errorCode;
|
|
2059
2059
|
response.message = message;
|
|
2060
2060
|
delete response.Message;
|
|
2061
|
-
return [2
|
|
2061
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2062
2062
|
}
|
|
2063
2063
|
});
|
|
2064
2064
|
}); };
|
|
@@ -2068,15 +2068,15 @@ export var deserializeAws_json1_1UntagCertificateAuthorityCommand = function (ou
|
|
|
2068
2068
|
switch (_a.label) {
|
|
2069
2069
|
case 0:
|
|
2070
2070
|
if (output.statusCode >= 300) {
|
|
2071
|
-
return [2
|
|
2071
|
+
return [2, deserializeAws_json1_1UntagCertificateAuthorityCommandError(output, context)];
|
|
2072
2072
|
}
|
|
2073
|
-
return [4
|
|
2073
|
+
return [4, collectBody(output.body, context)];
|
|
2074
2074
|
case 1:
|
|
2075
2075
|
_a.sent();
|
|
2076
2076
|
response = {
|
|
2077
2077
|
$metadata: deserializeMetadata(output),
|
|
2078
2078
|
};
|
|
2079
|
-
return [2
|
|
2079
|
+
return [2, Promise.resolve(response)];
|
|
2080
2080
|
}
|
|
2081
2081
|
});
|
|
2082
2082
|
}); };
|
|
@@ -2088,47 +2088,47 @@ var deserializeAws_json1_1UntagCertificateAuthorityCommandError = function (outp
|
|
|
2088
2088
|
case 0:
|
|
2089
2089
|
_a = [__assign({}, output)];
|
|
2090
2090
|
_g = {};
|
|
2091
|
-
return [4
|
|
2091
|
+
return [4, parseBody(output.body, context)];
|
|
2092
2092
|
case 1:
|
|
2093
2093
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2094
2094
|
errorCode = "UnknownError";
|
|
2095
2095
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2096
2096
|
_b = errorCode;
|
|
2097
2097
|
switch (_b) {
|
|
2098
|
-
case "InvalidArnException": return [3
|
|
2099
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
2100
|
-
case "InvalidStateException": return [3
|
|
2101
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
2102
|
-
case "InvalidTagException": return [3
|
|
2103
|
-
case "com.amazonaws.acmpca#InvalidTagException": return [3
|
|
2104
|
-
case "ResourceNotFoundException": return [3
|
|
2105
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
2098
|
+
case "InvalidArnException": return [3, 2];
|
|
2099
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
2100
|
+
case "InvalidStateException": return [3, 4];
|
|
2101
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
2102
|
+
case "InvalidTagException": return [3, 6];
|
|
2103
|
+
case "com.amazonaws.acmpca#InvalidTagException": return [3, 6];
|
|
2104
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2105
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 8];
|
|
2106
2106
|
}
|
|
2107
|
-
return [3
|
|
2107
|
+
return [3, 10];
|
|
2108
2108
|
case 2:
|
|
2109
2109
|
_c = [{}];
|
|
2110
|
-
return [4
|
|
2110
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
2111
2111
|
case 3:
|
|
2112
2112
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2113
|
-
return [3
|
|
2113
|
+
return [3, 11];
|
|
2114
2114
|
case 4:
|
|
2115
2115
|
_d = [{}];
|
|
2116
|
-
return [4
|
|
2116
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
2117
2117
|
case 5:
|
|
2118
2118
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2119
|
-
return [3
|
|
2119
|
+
return [3, 11];
|
|
2120
2120
|
case 6:
|
|
2121
2121
|
_e = [{}];
|
|
2122
|
-
return [4
|
|
2122
|
+
return [4, deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context)];
|
|
2123
2123
|
case 7:
|
|
2124
2124
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2125
|
-
return [3
|
|
2125
|
+
return [3, 11];
|
|
2126
2126
|
case 8:
|
|
2127
2127
|
_f = [{}];
|
|
2128
|
-
return [4
|
|
2128
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2129
2129
|
case 9:
|
|
2130
2130
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2131
|
-
return [3
|
|
2131
|
+
return [3, 11];
|
|
2132
2132
|
case 10:
|
|
2133
2133
|
parsedBody = parsedOutput.body;
|
|
2134
2134
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2138,7 +2138,7 @@ var deserializeAws_json1_1UntagCertificateAuthorityCommandError = function (outp
|
|
|
2138
2138
|
message = response.message || response.Message || errorCode;
|
|
2139
2139
|
response.message = message;
|
|
2140
2140
|
delete response.Message;
|
|
2141
|
-
return [2
|
|
2141
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2142
2142
|
}
|
|
2143
2143
|
});
|
|
2144
2144
|
}); };
|
|
@@ -2148,15 +2148,15 @@ export var deserializeAws_json1_1UpdateCertificateAuthorityCommand = function (o
|
|
|
2148
2148
|
switch (_a.label) {
|
|
2149
2149
|
case 0:
|
|
2150
2150
|
if (output.statusCode >= 300) {
|
|
2151
|
-
return [2
|
|
2151
|
+
return [2, deserializeAws_json1_1UpdateCertificateAuthorityCommandError(output, context)];
|
|
2152
2152
|
}
|
|
2153
|
-
return [4
|
|
2153
|
+
return [4, collectBody(output.body, context)];
|
|
2154
2154
|
case 1:
|
|
2155
2155
|
_a.sent();
|
|
2156
2156
|
response = {
|
|
2157
2157
|
$metadata: deserializeMetadata(output),
|
|
2158
2158
|
};
|
|
2159
|
-
return [2
|
|
2159
|
+
return [2, Promise.resolve(response)];
|
|
2160
2160
|
}
|
|
2161
2161
|
});
|
|
2162
2162
|
}); };
|
|
@@ -2168,63 +2168,63 @@ var deserializeAws_json1_1UpdateCertificateAuthorityCommandError = function (out
|
|
|
2168
2168
|
case 0:
|
|
2169
2169
|
_a = [__assign({}, output)];
|
|
2170
2170
|
_j = {};
|
|
2171
|
-
return [4
|
|
2171
|
+
return [4, parseBody(output.body, context)];
|
|
2172
2172
|
case 1:
|
|
2173
2173
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2174
2174
|
errorCode = "UnknownError";
|
|
2175
2175
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2176
2176
|
_b = errorCode;
|
|
2177
2177
|
switch (_b) {
|
|
2178
|
-
case "ConcurrentModificationException": return [3
|
|
2179
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3
|
|
2180
|
-
case "InvalidArgsException": return [3
|
|
2181
|
-
case "com.amazonaws.acmpca#InvalidArgsException": return [3
|
|
2182
|
-
case "InvalidArnException": return [3
|
|
2183
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3
|
|
2184
|
-
case "InvalidPolicyException": return [3
|
|
2185
|
-
case "com.amazonaws.acmpca#InvalidPolicyException": return [3
|
|
2186
|
-
case "InvalidStateException": return [3
|
|
2187
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3
|
|
2188
|
-
case "ResourceNotFoundException": return [3
|
|
2189
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3
|
|
2178
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
2179
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3, 2];
|
|
2180
|
+
case "InvalidArgsException": return [3, 4];
|
|
2181
|
+
case "com.amazonaws.acmpca#InvalidArgsException": return [3, 4];
|
|
2182
|
+
case "InvalidArnException": return [3, 6];
|
|
2183
|
+
case "com.amazonaws.acmpca#InvalidArnException": return [3, 6];
|
|
2184
|
+
case "InvalidPolicyException": return [3, 8];
|
|
2185
|
+
case "com.amazonaws.acmpca#InvalidPolicyException": return [3, 8];
|
|
2186
|
+
case "InvalidStateException": return [3, 10];
|
|
2187
|
+
case "com.amazonaws.acmpca#InvalidStateException": return [3, 10];
|
|
2188
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
2189
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 12];
|
|
2190
2190
|
}
|
|
2191
|
-
return [3
|
|
2191
|
+
return [3, 14];
|
|
2192
2192
|
case 2:
|
|
2193
2193
|
_c = [{}];
|
|
2194
|
-
return [4
|
|
2194
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2195
2195
|
case 3:
|
|
2196
2196
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2197
|
-
return [3
|
|
2197
|
+
return [3, 15];
|
|
2198
2198
|
case 4:
|
|
2199
2199
|
_d = [{}];
|
|
2200
|
-
return [4
|
|
2200
|
+
return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
|
|
2201
2201
|
case 5:
|
|
2202
2202
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2203
|
-
return [3
|
|
2203
|
+
return [3, 15];
|
|
2204
2204
|
case 6:
|
|
2205
2205
|
_e = [{}];
|
|
2206
|
-
return [4
|
|
2206
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
2207
2207
|
case 7:
|
|
2208
2208
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2209
|
-
return [3
|
|
2209
|
+
return [3, 15];
|
|
2210
2210
|
case 8:
|
|
2211
2211
|
_f = [{}];
|
|
2212
|
-
return [4
|
|
2212
|
+
return [4, deserializeAws_json1_1InvalidPolicyExceptionResponse(parsedOutput, context)];
|
|
2213
2213
|
case 9:
|
|
2214
2214
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2215
|
-
return [3
|
|
2215
|
+
return [3, 15];
|
|
2216
2216
|
case 10:
|
|
2217
2217
|
_g = [{}];
|
|
2218
|
-
return [4
|
|
2218
|
+
return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
2219
2219
|
case 11:
|
|
2220
2220
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2221
|
-
return [3
|
|
2221
|
+
return [3, 15];
|
|
2222
2222
|
case 12:
|
|
2223
2223
|
_h = [{}];
|
|
2224
|
-
return [4
|
|
2224
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2225
2225
|
case 13:
|
|
2226
2226
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2227
|
-
return [3
|
|
2227
|
+
return [3, 15];
|
|
2228
2228
|
case 14:
|
|
2229
2229
|
parsedBody = parsedOutput.body;
|
|
2230
2230
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2234,7 +2234,7 @@ var deserializeAws_json1_1UpdateCertificateAuthorityCommandError = function (out
|
|
|
2234
2234
|
message = response.message || response.Message || errorCode;
|
|
2235
2235
|
response.message = message;
|
|
2236
2236
|
delete response.Message;
|
|
2237
|
-
return [2
|
|
2237
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2238
2238
|
}
|
|
2239
2239
|
});
|
|
2240
2240
|
}); };
|
|
@@ -2244,7 +2244,7 @@ var deserializeAws_json1_1CertificateMismatchExceptionResponse = function (parse
|
|
|
2244
2244
|
body = parsedOutput.body;
|
|
2245
2245
|
deserialized = deserializeAws_json1_1CertificateMismatchException(body, context);
|
|
2246
2246
|
contents = __assign({ name: "CertificateMismatchException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2247
|
-
return [2
|
|
2247
|
+
return [2, contents];
|
|
2248
2248
|
});
|
|
2249
2249
|
}); };
|
|
2250
2250
|
var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2253,7 +2253,7 @@ var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (pa
|
|
|
2253
2253
|
body = parsedOutput.body;
|
|
2254
2254
|
deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
2255
2255
|
contents = __assign({ name: "ConcurrentModificationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2256
|
-
return [2
|
|
2256
|
+
return [2, contents];
|
|
2257
2257
|
});
|
|
2258
2258
|
}); };
|
|
2259
2259
|
var deserializeAws_json1_1InvalidArgsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2262,7 +2262,7 @@ var deserializeAws_json1_1InvalidArgsExceptionResponse = function (parsedOutput,
|
|
|
2262
2262
|
body = parsedOutput.body;
|
|
2263
2263
|
deserialized = deserializeAws_json1_1InvalidArgsException(body, context);
|
|
2264
2264
|
contents = __assign({ name: "InvalidArgsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2265
|
-
return [2
|
|
2265
|
+
return [2, contents];
|
|
2266
2266
|
});
|
|
2267
2267
|
}); };
|
|
2268
2268
|
var deserializeAws_json1_1InvalidArnExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2271,7 +2271,7 @@ var deserializeAws_json1_1InvalidArnExceptionResponse = function (parsedOutput,
|
|
|
2271
2271
|
body = parsedOutput.body;
|
|
2272
2272
|
deserialized = deserializeAws_json1_1InvalidArnException(body, context);
|
|
2273
2273
|
contents = __assign({ name: "InvalidArnException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2274
|
-
return [2
|
|
2274
|
+
return [2, contents];
|
|
2275
2275
|
});
|
|
2276
2276
|
}); };
|
|
2277
2277
|
var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2280,7 +2280,7 @@ var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOu
|
|
|
2280
2280
|
body = parsedOutput.body;
|
|
2281
2281
|
deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
2282
2282
|
contents = __assign({ name: "InvalidNextTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2283
|
-
return [2
|
|
2283
|
+
return [2, contents];
|
|
2284
2284
|
});
|
|
2285
2285
|
}); };
|
|
2286
2286
|
var deserializeAws_json1_1InvalidPolicyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2289,7 +2289,7 @@ var deserializeAws_json1_1InvalidPolicyExceptionResponse = function (parsedOutpu
|
|
|
2289
2289
|
body = parsedOutput.body;
|
|
2290
2290
|
deserialized = deserializeAws_json1_1InvalidPolicyException(body, context);
|
|
2291
2291
|
contents = __assign({ name: "InvalidPolicyException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2292
|
-
return [2
|
|
2292
|
+
return [2, contents];
|
|
2293
2293
|
});
|
|
2294
2294
|
}); };
|
|
2295
2295
|
var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2298,7 +2298,7 @@ var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutp
|
|
|
2298
2298
|
body = parsedOutput.body;
|
|
2299
2299
|
deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
2300
2300
|
contents = __assign({ name: "InvalidRequestException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2301
|
-
return [2
|
|
2301
|
+
return [2, contents];
|
|
2302
2302
|
});
|
|
2303
2303
|
}); };
|
|
2304
2304
|
var deserializeAws_json1_1InvalidStateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2307,7 +2307,7 @@ var deserializeAws_json1_1InvalidStateExceptionResponse = function (parsedOutput
|
|
|
2307
2307
|
body = parsedOutput.body;
|
|
2308
2308
|
deserialized = deserializeAws_json1_1InvalidStateException(body, context);
|
|
2309
2309
|
contents = __assign({ name: "InvalidStateException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2310
|
-
return [2
|
|
2310
|
+
return [2, contents];
|
|
2311
2311
|
});
|
|
2312
2312
|
}); };
|
|
2313
2313
|
var deserializeAws_json1_1InvalidTagExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2316,7 +2316,7 @@ var deserializeAws_json1_1InvalidTagExceptionResponse = function (parsedOutput,
|
|
|
2316
2316
|
body = parsedOutput.body;
|
|
2317
2317
|
deserialized = deserializeAws_json1_1InvalidTagException(body, context);
|
|
2318
2318
|
contents = __assign({ name: "InvalidTagException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2319
|
-
return [2
|
|
2319
|
+
return [2, contents];
|
|
2320
2320
|
});
|
|
2321
2321
|
}); };
|
|
2322
2322
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2325,7 +2325,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
2325
2325
|
body = parsedOutput.body;
|
|
2326
2326
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
2327
2327
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2328
|
-
return [2
|
|
2328
|
+
return [2, contents];
|
|
2329
2329
|
});
|
|
2330
2330
|
}); };
|
|
2331
2331
|
var deserializeAws_json1_1LockoutPreventedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2334,7 +2334,7 @@ var deserializeAws_json1_1LockoutPreventedExceptionResponse = function (parsedOu
|
|
|
2334
2334
|
body = parsedOutput.body;
|
|
2335
2335
|
deserialized = deserializeAws_json1_1LockoutPreventedException(body, context);
|
|
2336
2336
|
contents = __assign({ name: "LockoutPreventedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2337
|
-
return [2
|
|
2337
|
+
return [2, contents];
|
|
2338
2338
|
});
|
|
2339
2339
|
}); };
|
|
2340
2340
|
var deserializeAws_json1_1MalformedCertificateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2343,7 +2343,7 @@ var deserializeAws_json1_1MalformedCertificateExceptionResponse = function (pars
|
|
|
2343
2343
|
body = parsedOutput.body;
|
|
2344
2344
|
deserialized = deserializeAws_json1_1MalformedCertificateException(body, context);
|
|
2345
2345
|
contents = __assign({ name: "MalformedCertificateException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2346
|
-
return [2
|
|
2346
|
+
return [2, contents];
|
|
2347
2347
|
});
|
|
2348
2348
|
}); };
|
|
2349
2349
|
var deserializeAws_json1_1MalformedCSRExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2352,7 +2352,7 @@ var deserializeAws_json1_1MalformedCSRExceptionResponse = function (parsedOutput
|
|
|
2352
2352
|
body = parsedOutput.body;
|
|
2353
2353
|
deserialized = deserializeAws_json1_1MalformedCSRException(body, context);
|
|
2354
2354
|
contents = __assign({ name: "MalformedCSRException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2355
|
-
return [2
|
|
2355
|
+
return [2, contents];
|
|
2356
2356
|
});
|
|
2357
2357
|
}); };
|
|
2358
2358
|
var deserializeAws_json1_1PermissionAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2361,7 +2361,7 @@ var deserializeAws_json1_1PermissionAlreadyExistsExceptionResponse = function (p
|
|
|
2361
2361
|
body = parsedOutput.body;
|
|
2362
2362
|
deserialized = deserializeAws_json1_1PermissionAlreadyExistsException(body, context);
|
|
2363
2363
|
contents = __assign({ name: "PermissionAlreadyExistsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2364
|
-
return [2
|
|
2364
|
+
return [2, contents];
|
|
2365
2365
|
});
|
|
2366
2366
|
}); };
|
|
2367
2367
|
var deserializeAws_json1_1RequestAlreadyProcessedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2370,7 +2370,7 @@ var deserializeAws_json1_1RequestAlreadyProcessedExceptionResponse = function (p
|
|
|
2370
2370
|
body = parsedOutput.body;
|
|
2371
2371
|
deserialized = deserializeAws_json1_1RequestAlreadyProcessedException(body, context);
|
|
2372
2372
|
contents = __assign({ name: "RequestAlreadyProcessedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2373
|
-
return [2
|
|
2373
|
+
return [2, contents];
|
|
2374
2374
|
});
|
|
2375
2375
|
}); };
|
|
2376
2376
|
var deserializeAws_json1_1RequestFailedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2379,7 +2379,7 @@ var deserializeAws_json1_1RequestFailedExceptionResponse = function (parsedOutpu
|
|
|
2379
2379
|
body = parsedOutput.body;
|
|
2380
2380
|
deserialized = deserializeAws_json1_1RequestFailedException(body, context);
|
|
2381
2381
|
contents = __assign({ name: "RequestFailedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2382
|
-
return [2
|
|
2382
|
+
return [2, contents];
|
|
2383
2383
|
});
|
|
2384
2384
|
}); };
|
|
2385
2385
|
var deserializeAws_json1_1RequestInProgressExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2388,7 +2388,7 @@ var deserializeAws_json1_1RequestInProgressExceptionResponse = function (parsedO
|
|
|
2388
2388
|
body = parsedOutput.body;
|
|
2389
2389
|
deserialized = deserializeAws_json1_1RequestInProgressException(body, context);
|
|
2390
2390
|
contents = __assign({ name: "RequestInProgressException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2391
|
-
return [2
|
|
2391
|
+
return [2, contents];
|
|
2392
2392
|
});
|
|
2393
2393
|
}); };
|
|
2394
2394
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2397,7 +2397,7 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
2397
2397
|
body = parsedOutput.body;
|
|
2398
2398
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2399
2399
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2400
|
-
return [2
|
|
2400
|
+
return [2, contents];
|
|
2401
2401
|
});
|
|
2402
2402
|
}); };
|
|
2403
2403
|
var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2406,7 +2406,7 @@ var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput,
|
|
|
2406
2406
|
body = parsedOutput.body;
|
|
2407
2407
|
deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
2408
2408
|
contents = __assign({ name: "TooManyTagsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2409
|
-
return [2
|
|
2409
|
+
return [2, contents];
|
|
2410
2410
|
});
|
|
2411
2411
|
}); };
|
|
2412
2412
|
var serializeAws_json1_1AccessDescription = function (input, context) {
|
|
@@ -3119,7 +3119,6 @@ var deserializeMetadata = function (output) {
|
|
|
3119
3119
|
cfId: output.headers["x-amz-cf-id"],
|
|
3120
3120
|
});
|
|
3121
3121
|
};
|
|
3122
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3123
3122
|
var collectBody = function (streamBody, context) {
|
|
3124
3123
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3125
3124
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3127,7 +3126,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3127
3126
|
}
|
|
3128
3127
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3129
3128
|
};
|
|
3130
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3131
3129
|
var collectBodyString = function (streamBody, context) {
|
|
3132
3130
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3133
3131
|
};
|
|
@@ -3135,7 +3133,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3135
3133
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
3136
3134
|
return __generator(this, function (_c) {
|
|
3137
3135
|
switch (_c.label) {
|
|
3138
|
-
case 0: return [4
|
|
3136
|
+
case 0: return [4, context.endpoint()];
|
|
3139
3137
|
case 1:
|
|
3140
3138
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3141
3139
|
contents = {
|
|
@@ -3152,7 +3150,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3152
3150
|
if (body !== undefined) {
|
|
3153
3151
|
contents.body = body;
|
|
3154
3152
|
}
|
|
3155
|
-
return [2
|
|
3153
|
+
return [2, new __HttpRequest(contents)];
|
|
3156
3154
|
}
|
|
3157
3155
|
});
|
|
3158
3156
|
}); };
|
|
@@ -3164,9 +3162,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3164
3162
|
return {};
|
|
3165
3163
|
});
|
|
3166
3164
|
};
|
|
3167
|
-
/**
|
|
3168
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3169
|
-
*/
|
|
3170
3165
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3171
3166
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3172
3167
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -3191,4 +3186,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
3191
3186
|
}
|
|
3192
3187
|
return "";
|
|
3193
3188
|
};
|
|
3194
|
-
//# sourceMappingURL=Aws_json1_1.js.map
|