@aws-sdk/client-health 3.31.0 → 3.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/{dist/cjs → dist-cjs}/Health.js +2 -2
- package/dist-cjs/Health.js.map +1 -0
- package/{dist/cjs → dist-cjs}/HealthClient.js +14 -14
- package/dist-cjs/HealthClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeAffectedAccountsForOrganizationCommand.js +5 -5
- package/dist-cjs/commands/DescribeAffectedAccountsForOrganizationCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeAffectedEntitiesCommand.js +5 -5
- package/dist-cjs/commands/DescribeAffectedEntitiesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeAffectedEntitiesForOrganizationCommand.js +5 -5
- package/dist-cjs/commands/DescribeAffectedEntitiesForOrganizationCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeEntityAggregatesCommand.js +5 -5
- package/dist-cjs/commands/DescribeEntityAggregatesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeEventAggregatesCommand.js +5 -5
- package/dist-cjs/commands/DescribeEventAggregatesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeEventDetailsCommand.js +5 -5
- package/dist-cjs/commands/DescribeEventDetailsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeEventDetailsForOrganizationCommand.js +5 -5
- package/dist-cjs/commands/DescribeEventDetailsForOrganizationCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeEventTypesCommand.js +5 -5
- package/dist-cjs/commands/DescribeEventTypesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeEventsCommand.js +5 -5
- package/dist-cjs/commands/DescribeEventsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeEventsForOrganizationCommand.js +5 -5
- package/dist-cjs/commands/DescribeEventsForOrganizationCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeHealthServiceStatusForOrganizationCommand.js +5 -5
- package/dist-cjs/commands/DescribeHealthServiceStatusForOrganizationCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DisableHealthServiceAccessForOrganizationCommand.js +4 -4
- package/dist-cjs/commands/DisableHealthServiceAccessForOrganizationCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/EnableHealthServiceAccessForOrganizationCommand.js +4 -4
- package/dist-cjs/commands/EnableHealthServiceAccessForOrganizationCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +28 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeAffectedAccountsForOrganizationPaginator.js +1 -1
- package/dist-cjs/pagination/DescribeAffectedAccountsForOrganizationPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js +1 -1
- package/dist-cjs/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeAffectedEntitiesPaginator.js +1 -1
- package/dist-cjs/pagination/DescribeAffectedEntitiesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeEventAggregatesPaginator.js +1 -1
- package/dist-cjs/pagination/DescribeEventAggregatesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeEventTypesPaginator.js +1 -1
- package/dist-cjs/pagination/DescribeEventTypesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeEventsForOrganizationPaginator.js +1 -1
- package/dist-cjs/pagination/DescribeEventsForOrganizationPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeEventsPaginator.js +1 -1
- package/dist-cjs/pagination/DescribeEventsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +63 -63
- package/dist-cjs/protocols/Aws_json1_1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/Health.js +3 -55
- package/dist-es/Health.js.map +1 -0
- package/dist-es/HealthClient.js +38 -0
- package/dist-es/HealthClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeAffectedAccountsForOrganizationCommand.js +4 -37
- package/dist-es/commands/DescribeAffectedAccountsForOrganizationCommand.js.map +1 -0
- package/dist-es/commands/DescribeAffectedEntitiesCommand.js +40 -0
- package/dist-es/commands/DescribeAffectedEntitiesCommand.js.map +1 -0
- package/dist-es/commands/DescribeAffectedEntitiesForOrganizationCommand.js +40 -0
- package/dist-es/commands/DescribeAffectedEntitiesForOrganizationCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeEntityAggregatesCommand.js +4 -30
- package/dist-es/commands/DescribeEntityAggregatesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeEventAggregatesCommand.js +4 -34
- package/dist-es/commands/DescribeEventAggregatesCommand.js.map +1 -0
- package/dist-es/commands/DescribeEventDetailsCommand.js +40 -0
- package/dist-es/commands/DescribeEventDetailsCommand.js.map +1 -0
- package/dist-es/commands/DescribeEventDetailsForOrganizationCommand.js +40 -0
- package/dist-es/commands/DescribeEventDetailsForOrganizationCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeEventTypesCommand.js +4 -36
- package/dist-es/commands/DescribeEventTypesCommand.js.map +1 -0
- package/dist-es/commands/DescribeEventsCommand.js +40 -0
- package/dist-es/commands/DescribeEventsCommand.js.map +1 -0
- package/dist-es/commands/DescribeEventsForOrganizationCommand.js +40 -0
- package/dist-es/commands/DescribeEventsForOrganizationCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeHealthServiceStatusForOrganizationCommand.js +4 -32
- package/dist-es/commands/DescribeHealthServiceStatusForOrganizationCommand.js.map +1 -0
- package/dist-es/commands/DisableHealthServiceAccessForOrganizationCommand.js +39 -0
- package/dist-es/commands/DisableHealthServiceAccessForOrganizationCommand.js.map +1 -0
- package/dist-es/commands/EnableHealthServiceAccessForOrganizationCommand.js +39 -0
- package/dist-es/commands/EnableHealthServiceAccessForOrganizationCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -126
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeAffectedAccountsForOrganizationPaginator.js +17 -29
- package/dist-es/pagination/DescribeAffectedAccountsForOrganizationPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js +17 -29
- package/dist-es/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeAffectedEntitiesPaginator.js +17 -29
- package/dist-es/pagination/DescribeAffectedEntitiesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeEventAggregatesPaginator.js +17 -29
- package/dist-es/pagination/DescribeEventAggregatesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeEventTypesPaginator.js +17 -29
- package/dist-es/pagination/DescribeEventTypesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeEventsForOrganizationPaginator.js +17 -29
- package/dist-es/pagination/DescribeEventsForOrganizationPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeEventsPaginator.js +17 -29
- package/dist-es/pagination/DescribeEventsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +158 -163
- package/dist-es/protocols/Aws_json1_1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/Health.d.ts +3 -3
- package/{dist/types → dist-types}/HealthClient.d.ts +9 -9
- package/{dist/types → dist-types}/commands/DescribeAffectedAccountsForOrganizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeAffectedEntitiesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeAffectedEntitiesForOrganizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeEntityAggregatesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeEventAggregatesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeEventDetailsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeEventDetailsForOrganizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeEventTypesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeEventsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeEventsForOrganizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeHealthServiceStatusForOrganizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DisableHealthServiceAccessForOrganizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/EnableHealthServiceAccessForOrganizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/DescribeAffectedAccountsForOrganizationPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeAffectedEntitiesForOrganizationPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeAffectedEntitiesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeEventAggregatesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeEventTypesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeEventsForOrganizationPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeEventsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +3 -3
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/Health.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/HealthClient.d.ts +9 -9
- package/{dist/types → dist-types}/ts3.4/commands/DescribeAffectedAccountsForOrganizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeAffectedEntitiesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeAffectedEntitiesForOrganizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeEntityAggregatesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeEventAggregatesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeEventDetailsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeEventDetailsForOrganizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeEventTypesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeEventsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeEventsForOrganizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeHealthServiceStatusForOrganizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DisableHealthServiceAccessForOrganizationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/EnableHealthServiceAccessForOrganizationCommand.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/DescribeAffectedAccountsForOrganizationPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeAffectedEntitiesForOrganizationPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeAffectedEntitiesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeEventAggregatesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeEventTypesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeEventsForOrganizationPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeEventsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +3 -3
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{Health.ts → src/Health.ts} +8 -7
- package/{HealthClient.ts → src/HealthClient.ts} +59 -58
- package/{commands → src/commands}/DescribeAffectedAccountsForOrganizationCommand.ts +11 -10
- package/{commands → src/commands}/DescribeAffectedEntitiesCommand.ts +8 -7
- package/{commands → src/commands}/DescribeAffectedEntitiesForOrganizationCommand.ts +11 -10
- package/{commands → src/commands}/DescribeEntityAggregatesCommand.ts +8 -7
- package/{commands → src/commands}/DescribeEventAggregatesCommand.ts +8 -7
- package/{commands → src/commands}/DescribeEventDetailsCommand.ts +8 -7
- package/{commands → src/commands}/DescribeEventDetailsForOrganizationCommand.ts +11 -10
- package/{commands → src/commands}/DescribeEventTypesCommand.ts +8 -7
- package/{commands → src/commands}/DescribeEventsCommand.ts +8 -7
- package/{commands → src/commands}/DescribeEventsForOrganizationCommand.ts +8 -7
- package/{commands → src/commands}/DescribeHealthServiceStatusForOrganizationCommand.ts +8 -7
- package/{commands → src/commands}/DisableHealthServiceAccessForOrganizationCommand.ts +7 -6
- package/{commands → src/commands}/EnableHealthServiceAccessForOrganizationCommand.ts +7 -6
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{pagination → src/pagination}/DescribeAffectedAccountsForOrganizationPaginator.ts +4 -3
- package/{pagination → src/pagination}/DescribeAffectedEntitiesForOrganizationPaginator.ts +4 -3
- package/{pagination → src/pagination}/DescribeAffectedEntitiesPaginator.ts +4 -3
- package/{pagination → src/pagination}/DescribeEventAggregatesPaginator.ts +4 -3
- package/{pagination → src/pagination}/DescribeEventTypesPaginator.ts +4 -3
- package/{pagination → src/pagination}/DescribeEventsForOrganizationPaginator.ts +4 -3
- package/{pagination → src/pagination}/DescribeEventsPaginator.ts +4 -3
- package/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{protocols → src/protocols}/Aws_json1_1.ts +33 -32
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- package/dist/cjs/Health.js.map +0 -1
- package/dist/cjs/HealthClient.js.map +0 -1
- package/dist/cjs/commands/DescribeAffectedAccountsForOrganizationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAffectedEntitiesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAffectedEntitiesForOrganizationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeEntityAggregatesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeEventAggregatesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeEventDetailsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeEventDetailsForOrganizationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeEventTypesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeEventsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeEventsForOrganizationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeHealthServiceStatusForOrganizationCommand.js.map +0 -1
- package/dist/cjs/commands/DisableHealthServiceAccessForOrganizationCommand.js.map +0 -1
- package/dist/cjs/commands/EnableHealthServiceAccessForOrganizationCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -28
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/DescribeAffectedAccountsForOrganizationPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeAffectedEntitiesPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeEventAggregatesPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeEventTypesPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeEventsForOrganizationPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeEventsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/Health.js.map +0 -1
- package/dist/es/HealthClient.js +0 -95
- package/dist/es/HealthClient.js.map +0 -1
- package/dist/es/commands/DescribeAffectedAccountsForOrganizationCommand.js.map +0 -1
- package/dist/es/commands/DescribeAffectedEntitiesCommand.js +0 -83
- package/dist/es/commands/DescribeAffectedEntitiesCommand.js.map +0 -1
- package/dist/es/commands/DescribeAffectedEntitiesForOrganizationCommand.js +0 -86
- package/dist/es/commands/DescribeAffectedEntitiesForOrganizationCommand.js.map +0 -1
- package/dist/es/commands/DescribeEntityAggregatesCommand.js.map +0 -1
- package/dist/es/commands/DescribeEventAggregatesCommand.js.map +0 -1
- package/dist/es/commands/DescribeEventDetailsCommand.js +0 -74
- package/dist/es/commands/DescribeEventDetailsCommand.js.map +0 -1
- package/dist/es/commands/DescribeEventDetailsForOrganizationCommand.js +0 -97
- package/dist/es/commands/DescribeEventDetailsForOrganizationCommand.js.map +0 -1
- package/dist/es/commands/DescribeEventTypesCommand.js.map +0 -1
- package/dist/es/commands/DescribeEventsCommand.js +0 -87
- package/dist/es/commands/DescribeEventsCommand.js.map +0 -1
- package/dist/es/commands/DescribeEventsForOrganizationCommand.js +0 -96
- package/dist/es/commands/DescribeEventsForOrganizationCommand.js.map +0 -1
- package/dist/es/commands/DescribeHealthServiceStatusForOrganizationCommand.js.map +0 -1
- package/dist/es/commands/DisableHealthServiceAccessForOrganizationCommand.js +0 -78
- package/dist/es/commands/DisableHealthServiceAccessForOrganizationCommand.js.map +0 -1
- package/dist/es/commands/EnableHealthServiceAccessForOrganizationCommand.js +0 -86
- package/dist/es/commands/EnableHealthServiceAccessForOrganizationCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/DescribeAffectedAccountsForOrganizationPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeAffectedEntitiesPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeEventAggregatesPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeEventTypesPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeEventsForOrganizationPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeEventsPaginator.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
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1DescribeAffectedAccountsForOrganizationCommand =
|
|
|
9
9
|
"x-amz-target": "AWSHealth_20160804.DescribeAffectedAccountsForOrganization",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1DescribeAffectedAccountsForOrganizationRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1DescribeAffectedEntitiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1DescribeAffectedEntitiesCommand = function (input
|
|
|
20
20
|
"x-amz-target": "AWSHealth_20160804.DescribeAffectedEntities",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1DescribeAffectedEntitiesRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand =
|
|
|
31
31
|
"x-amz-target": "AWSHealth_20160804.DescribeAffectedEntitiesForOrganization",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1DescribeAffectedEntitiesForOrganizationRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1DescribeEntityAggregatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1DescribeEntityAggregatesCommand = function (input
|
|
|
42
42
|
"x-amz-target": "AWSHealth_20160804.DescribeEntityAggregates",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1DescribeEntityAggregatesRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1DescribeEventAggregatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1DescribeEventAggregatesCommand = function (input,
|
|
|
53
53
|
"x-amz-target": "AWSHealth_20160804.DescribeEventAggregates",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1DescribeEventAggregatesRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1DescribeEventDetailsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1DescribeEventDetailsCommand = function (input, co
|
|
|
64
64
|
"x-amz-target": "AWSHealth_20160804.DescribeEventDetails",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1DescribeEventDetailsRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1DescribeEventDetailsForOrganizationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1DescribeEventDetailsForOrganizationCommand = func
|
|
|
75
75
|
"x-amz-target": "AWSHealth_20160804.DescribeEventDetailsForOrganization",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1DescribeEventDetailsForOrganizationRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1DescribeEventsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1DescribeEventsCommand = function (input, context)
|
|
|
86
86
|
"x-amz-target": "AWSHealth_20160804.DescribeEvents",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1DescribeEventsRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1DescribeEventsForOrganizationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1DescribeEventsForOrganizationCommand = function (
|
|
|
97
97
|
"x-amz-target": "AWSHealth_20160804.DescribeEventsForOrganization",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1DescribeEventsForOrganizationRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1DescribeEventTypesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1DescribeEventTypesCommand = function (input, cont
|
|
|
108
108
|
"x-amz-target": "AWSHealth_20160804.DescribeEventTypes",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1DescribeEventTypesRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommand
|
|
|
119
119
|
"x-amz-target": "AWSHealth_20160804.DescribeHealthServiceStatusForOrganization",
|
|
120
120
|
};
|
|
121
121
|
body = "{}";
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand
|
|
|
130
130
|
"x-amz-target": "AWSHealth_20160804.DisableHealthServiceAccessForOrganization",
|
|
131
131
|
};
|
|
132
132
|
body = "{}";
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand =
|
|
|
141
141
|
"x-amz-target": "AWSHealth_20160804.EnableHealthServiceAccessForOrganization",
|
|
142
142
|
};
|
|
143
143
|
body = "{}";
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -150,15 +150,15 @@ export var deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommand
|
|
|
150
150
|
switch (_a.label) {
|
|
151
151
|
case 0:
|
|
152
152
|
if (output.statusCode >= 300) {
|
|
153
|
-
return [2
|
|
153
|
+
return [2, deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommandError(output, context)];
|
|
154
154
|
}
|
|
155
|
-
return [4
|
|
155
|
+
return [4, parseBody(output.body, context)];
|
|
156
156
|
case 1:
|
|
157
157
|
data = _a.sent();
|
|
158
158
|
contents = {};
|
|
159
159
|
contents = deserializeAws_json1_1DescribeAffectedAccountsForOrganizationResponse(data, context);
|
|
160
160
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
161
|
-
return [2
|
|
161
|
+
return [2, Promise.resolve(response)];
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
164
|
}); };
|
|
@@ -170,23 +170,23 @@ var deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommandError =
|
|
|
170
170
|
case 0:
|
|
171
171
|
_a = [__assign({}, output)];
|
|
172
172
|
_d = {};
|
|
173
|
-
return [4
|
|
173
|
+
return [4, parseBody(output.body, context)];
|
|
174
174
|
case 1:
|
|
175
175
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
176
176
|
errorCode = "UnknownError";
|
|
177
177
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
178
178
|
_b = errorCode;
|
|
179
179
|
switch (_b) {
|
|
180
|
-
case "InvalidPaginationToken": return [3
|
|
181
|
-
case "com.amazonaws.health#InvalidPaginationToken": return [3
|
|
180
|
+
case "InvalidPaginationToken": return [3, 2];
|
|
181
|
+
case "com.amazonaws.health#InvalidPaginationToken": return [3, 2];
|
|
182
182
|
}
|
|
183
|
-
return [3
|
|
183
|
+
return [3, 4];
|
|
184
184
|
case 2:
|
|
185
185
|
_c = [{}];
|
|
186
|
-
return [4
|
|
186
|
+
return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
187
187
|
case 3:
|
|
188
188
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
189
|
-
return [3
|
|
189
|
+
return [3, 5];
|
|
190
190
|
case 4:
|
|
191
191
|
parsedBody = parsedOutput.body;
|
|
192
192
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -196,7 +196,7 @@ var deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommandError =
|
|
|
196
196
|
message = response.message || response.Message || errorCode;
|
|
197
197
|
response.message = message;
|
|
198
198
|
delete response.Message;
|
|
199
|
-
return [2
|
|
199
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
202
|
}); };
|
|
@@ -206,15 +206,15 @@ export var deserializeAws_json1_1DescribeAffectedEntitiesCommand = function (out
|
|
|
206
206
|
switch (_a.label) {
|
|
207
207
|
case 0:
|
|
208
208
|
if (output.statusCode >= 300) {
|
|
209
|
-
return [2
|
|
209
|
+
return [2, deserializeAws_json1_1DescribeAffectedEntitiesCommandError(output, context)];
|
|
210
210
|
}
|
|
211
|
-
return [4
|
|
211
|
+
return [4, parseBody(output.body, context)];
|
|
212
212
|
case 1:
|
|
213
213
|
data = _a.sent();
|
|
214
214
|
contents = {};
|
|
215
215
|
contents = deserializeAws_json1_1DescribeAffectedEntitiesResponse(data, context);
|
|
216
216
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
217
|
-
return [2
|
|
217
|
+
return [2, Promise.resolve(response)];
|
|
218
218
|
}
|
|
219
219
|
});
|
|
220
220
|
}); };
|
|
@@ -226,31 +226,31 @@ var deserializeAws_json1_1DescribeAffectedEntitiesCommandError = function (outpu
|
|
|
226
226
|
case 0:
|
|
227
227
|
_a = [__assign({}, output)];
|
|
228
228
|
_e = {};
|
|
229
|
-
return [4
|
|
229
|
+
return [4, parseBody(output.body, context)];
|
|
230
230
|
case 1:
|
|
231
231
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
232
232
|
errorCode = "UnknownError";
|
|
233
233
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
234
234
|
_b = errorCode;
|
|
235
235
|
switch (_b) {
|
|
236
|
-
case "InvalidPaginationToken": return [3
|
|
237
|
-
case "com.amazonaws.health#InvalidPaginationToken": return [3
|
|
238
|
-
case "UnsupportedLocale": return [3
|
|
239
|
-
case "com.amazonaws.health#UnsupportedLocale": return [3
|
|
236
|
+
case "InvalidPaginationToken": return [3, 2];
|
|
237
|
+
case "com.amazonaws.health#InvalidPaginationToken": return [3, 2];
|
|
238
|
+
case "UnsupportedLocale": return [3, 4];
|
|
239
|
+
case "com.amazonaws.health#UnsupportedLocale": return [3, 4];
|
|
240
240
|
}
|
|
241
|
-
return [3
|
|
241
|
+
return [3, 6];
|
|
242
242
|
case 2:
|
|
243
243
|
_c = [{}];
|
|
244
|
-
return [4
|
|
244
|
+
return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
245
245
|
case 3:
|
|
246
246
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
247
|
-
return [3
|
|
247
|
+
return [3, 7];
|
|
248
248
|
case 4:
|
|
249
249
|
_d = [{}];
|
|
250
|
-
return [4
|
|
250
|
+
return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
251
251
|
case 5:
|
|
252
252
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
253
|
-
return [3
|
|
253
|
+
return [3, 7];
|
|
254
254
|
case 6:
|
|
255
255
|
parsedBody = parsedOutput.body;
|
|
256
256
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -260,7 +260,7 @@ var deserializeAws_json1_1DescribeAffectedEntitiesCommandError = function (outpu
|
|
|
260
260
|
message = response.message || response.Message || errorCode;
|
|
261
261
|
response.message = message;
|
|
262
262
|
delete response.Message;
|
|
263
|
-
return [2
|
|
263
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
266
|
}); };
|
|
@@ -270,15 +270,15 @@ export var deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand
|
|
|
270
270
|
switch (_a.label) {
|
|
271
271
|
case 0:
|
|
272
272
|
if (output.statusCode >= 300) {
|
|
273
|
-
return [2
|
|
273
|
+
return [2, deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommandError(output, context)];
|
|
274
274
|
}
|
|
275
|
-
return [4
|
|
275
|
+
return [4, parseBody(output.body, context)];
|
|
276
276
|
case 1:
|
|
277
277
|
data = _a.sent();
|
|
278
278
|
contents = {};
|
|
279
279
|
contents = deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationResponse(data, context);
|
|
280
280
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
281
|
-
return [2
|
|
281
|
+
return [2, Promise.resolve(response)];
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
284
|
}); };
|
|
@@ -290,31 +290,31 @@ var deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommandError =
|
|
|
290
290
|
case 0:
|
|
291
291
|
_a = [__assign({}, output)];
|
|
292
292
|
_e = {};
|
|
293
|
-
return [4
|
|
293
|
+
return [4, parseBody(output.body, context)];
|
|
294
294
|
case 1:
|
|
295
295
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
296
296
|
errorCode = "UnknownError";
|
|
297
297
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
298
298
|
_b = errorCode;
|
|
299
299
|
switch (_b) {
|
|
300
|
-
case "InvalidPaginationToken": return [3
|
|
301
|
-
case "com.amazonaws.health#InvalidPaginationToken": return [3
|
|
302
|
-
case "UnsupportedLocale": return [3
|
|
303
|
-
case "com.amazonaws.health#UnsupportedLocale": return [3
|
|
300
|
+
case "InvalidPaginationToken": return [3, 2];
|
|
301
|
+
case "com.amazonaws.health#InvalidPaginationToken": return [3, 2];
|
|
302
|
+
case "UnsupportedLocale": return [3, 4];
|
|
303
|
+
case "com.amazonaws.health#UnsupportedLocale": return [3, 4];
|
|
304
304
|
}
|
|
305
|
-
return [3
|
|
305
|
+
return [3, 6];
|
|
306
306
|
case 2:
|
|
307
307
|
_c = [{}];
|
|
308
|
-
return [4
|
|
308
|
+
return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
309
309
|
case 3:
|
|
310
310
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
311
|
-
return [3
|
|
311
|
+
return [3, 7];
|
|
312
312
|
case 4:
|
|
313
313
|
_d = [{}];
|
|
314
|
-
return [4
|
|
314
|
+
return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
315
315
|
case 5:
|
|
316
316
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
317
|
-
return [3
|
|
317
|
+
return [3, 7];
|
|
318
318
|
case 6:
|
|
319
319
|
parsedBody = parsedOutput.body;
|
|
320
320
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -324,7 +324,7 @@ var deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommandError =
|
|
|
324
324
|
message = response.message || response.Message || errorCode;
|
|
325
325
|
response.message = message;
|
|
326
326
|
delete response.Message;
|
|
327
|
-
return [2
|
|
327
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
328
328
|
}
|
|
329
329
|
});
|
|
330
330
|
}); };
|
|
@@ -334,15 +334,15 @@ export var deserializeAws_json1_1DescribeEntityAggregatesCommand = function (out
|
|
|
334
334
|
switch (_a.label) {
|
|
335
335
|
case 0:
|
|
336
336
|
if (output.statusCode >= 300) {
|
|
337
|
-
return [2
|
|
337
|
+
return [2, deserializeAws_json1_1DescribeEntityAggregatesCommandError(output, context)];
|
|
338
338
|
}
|
|
339
|
-
return [4
|
|
339
|
+
return [4, parseBody(output.body, context)];
|
|
340
340
|
case 1:
|
|
341
341
|
data = _a.sent();
|
|
342
342
|
contents = {};
|
|
343
343
|
contents = deserializeAws_json1_1DescribeEntityAggregatesResponse(data, context);
|
|
344
344
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
345
|
-
return [2
|
|
345
|
+
return [2, Promise.resolve(response)];
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
348
|
}); };
|
|
@@ -354,7 +354,7 @@ var deserializeAws_json1_1DescribeEntityAggregatesCommandError = function (outpu
|
|
|
354
354
|
case 0:
|
|
355
355
|
_a = [__assign({}, output)];
|
|
356
356
|
_b = {};
|
|
357
|
-
return [4
|
|
357
|
+
return [4, parseBody(output.body, context)];
|
|
358
358
|
case 1:
|
|
359
359
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
360
360
|
errorCode = "UnknownError";
|
|
@@ -368,7 +368,7 @@ var deserializeAws_json1_1DescribeEntityAggregatesCommandError = function (outpu
|
|
|
368
368
|
message = response.message || response.Message || errorCode;
|
|
369
369
|
response.message = message;
|
|
370
370
|
delete response.Message;
|
|
371
|
-
return [2
|
|
371
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
}); };
|
|
@@ -378,15 +378,15 @@ export var deserializeAws_json1_1DescribeEventAggregatesCommand = function (outp
|
|
|
378
378
|
switch (_a.label) {
|
|
379
379
|
case 0:
|
|
380
380
|
if (output.statusCode >= 300) {
|
|
381
|
-
return [2
|
|
381
|
+
return [2, deserializeAws_json1_1DescribeEventAggregatesCommandError(output, context)];
|
|
382
382
|
}
|
|
383
|
-
return [4
|
|
383
|
+
return [4, parseBody(output.body, context)];
|
|
384
384
|
case 1:
|
|
385
385
|
data = _a.sent();
|
|
386
386
|
contents = {};
|
|
387
387
|
contents = deserializeAws_json1_1DescribeEventAggregatesResponse(data, context);
|
|
388
388
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
389
|
-
return [2
|
|
389
|
+
return [2, Promise.resolve(response)];
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
392
|
}); };
|
|
@@ -398,23 +398,23 @@ var deserializeAws_json1_1DescribeEventAggregatesCommandError = function (output
|
|
|
398
398
|
case 0:
|
|
399
399
|
_a = [__assign({}, output)];
|
|
400
400
|
_d = {};
|
|
401
|
-
return [4
|
|
401
|
+
return [4, parseBody(output.body, context)];
|
|
402
402
|
case 1:
|
|
403
403
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
404
404
|
errorCode = "UnknownError";
|
|
405
405
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
406
406
|
_b = errorCode;
|
|
407
407
|
switch (_b) {
|
|
408
|
-
case "InvalidPaginationToken": return [3
|
|
409
|
-
case "com.amazonaws.health#InvalidPaginationToken": return [3
|
|
408
|
+
case "InvalidPaginationToken": return [3, 2];
|
|
409
|
+
case "com.amazonaws.health#InvalidPaginationToken": return [3, 2];
|
|
410
410
|
}
|
|
411
|
-
return [3
|
|
411
|
+
return [3, 4];
|
|
412
412
|
case 2:
|
|
413
413
|
_c = [{}];
|
|
414
|
-
return [4
|
|
414
|
+
return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
415
415
|
case 3:
|
|
416
416
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
417
|
-
return [3
|
|
417
|
+
return [3, 5];
|
|
418
418
|
case 4:
|
|
419
419
|
parsedBody = parsedOutput.body;
|
|
420
420
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -424,7 +424,7 @@ var deserializeAws_json1_1DescribeEventAggregatesCommandError = function (output
|
|
|
424
424
|
message = response.message || response.Message || errorCode;
|
|
425
425
|
response.message = message;
|
|
426
426
|
delete response.Message;
|
|
427
|
-
return [2
|
|
427
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
430
|
}); };
|
|
@@ -434,15 +434,15 @@ export var deserializeAws_json1_1DescribeEventDetailsCommand = function (output,
|
|
|
434
434
|
switch (_a.label) {
|
|
435
435
|
case 0:
|
|
436
436
|
if (output.statusCode >= 300) {
|
|
437
|
-
return [2
|
|
437
|
+
return [2, deserializeAws_json1_1DescribeEventDetailsCommandError(output, context)];
|
|
438
438
|
}
|
|
439
|
-
return [4
|
|
439
|
+
return [4, parseBody(output.body, context)];
|
|
440
440
|
case 1:
|
|
441
441
|
data = _a.sent();
|
|
442
442
|
contents = {};
|
|
443
443
|
contents = deserializeAws_json1_1DescribeEventDetailsResponse(data, context);
|
|
444
444
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
445
|
-
return [2
|
|
445
|
+
return [2, Promise.resolve(response)];
|
|
446
446
|
}
|
|
447
447
|
});
|
|
448
448
|
}); };
|
|
@@ -454,23 +454,23 @@ var deserializeAws_json1_1DescribeEventDetailsCommandError = function (output, c
|
|
|
454
454
|
case 0:
|
|
455
455
|
_a = [__assign({}, output)];
|
|
456
456
|
_d = {};
|
|
457
|
-
return [4
|
|
457
|
+
return [4, parseBody(output.body, context)];
|
|
458
458
|
case 1:
|
|
459
459
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
460
460
|
errorCode = "UnknownError";
|
|
461
461
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
462
462
|
_b = errorCode;
|
|
463
463
|
switch (_b) {
|
|
464
|
-
case "UnsupportedLocale": return [3
|
|
465
|
-
case "com.amazonaws.health#UnsupportedLocale": return [3
|
|
464
|
+
case "UnsupportedLocale": return [3, 2];
|
|
465
|
+
case "com.amazonaws.health#UnsupportedLocale": return [3, 2];
|
|
466
466
|
}
|
|
467
|
-
return [3
|
|
467
|
+
return [3, 4];
|
|
468
468
|
case 2:
|
|
469
469
|
_c = [{}];
|
|
470
|
-
return [4
|
|
470
|
+
return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
471
471
|
case 3:
|
|
472
472
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
473
|
-
return [3
|
|
473
|
+
return [3, 5];
|
|
474
474
|
case 4:
|
|
475
475
|
parsedBody = parsedOutput.body;
|
|
476
476
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -480,7 +480,7 @@ var deserializeAws_json1_1DescribeEventDetailsCommandError = function (output, c
|
|
|
480
480
|
message = response.message || response.Message || errorCode;
|
|
481
481
|
response.message = message;
|
|
482
482
|
delete response.Message;
|
|
483
|
-
return [2
|
|
483
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
484
484
|
}
|
|
485
485
|
});
|
|
486
486
|
}); };
|
|
@@ -490,15 +490,15 @@ export var deserializeAws_json1_1DescribeEventDetailsForOrganizationCommand = fu
|
|
|
490
490
|
switch (_a.label) {
|
|
491
491
|
case 0:
|
|
492
492
|
if (output.statusCode >= 300) {
|
|
493
|
-
return [2
|
|
493
|
+
return [2, deserializeAws_json1_1DescribeEventDetailsForOrganizationCommandError(output, context)];
|
|
494
494
|
}
|
|
495
|
-
return [4
|
|
495
|
+
return [4, parseBody(output.body, context)];
|
|
496
496
|
case 1:
|
|
497
497
|
data = _a.sent();
|
|
498
498
|
contents = {};
|
|
499
499
|
contents = deserializeAws_json1_1DescribeEventDetailsForOrganizationResponse(data, context);
|
|
500
500
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
501
|
-
return [2
|
|
501
|
+
return [2, Promise.resolve(response)];
|
|
502
502
|
}
|
|
503
503
|
});
|
|
504
504
|
}); };
|
|
@@ -510,23 +510,23 @@ var deserializeAws_json1_1DescribeEventDetailsForOrganizationCommandError = func
|
|
|
510
510
|
case 0:
|
|
511
511
|
_a = [__assign({}, output)];
|
|
512
512
|
_d = {};
|
|
513
|
-
return [4
|
|
513
|
+
return [4, parseBody(output.body, context)];
|
|
514
514
|
case 1:
|
|
515
515
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
516
516
|
errorCode = "UnknownError";
|
|
517
517
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
518
518
|
_b = errorCode;
|
|
519
519
|
switch (_b) {
|
|
520
|
-
case "UnsupportedLocale": return [3
|
|
521
|
-
case "com.amazonaws.health#UnsupportedLocale": return [3
|
|
520
|
+
case "UnsupportedLocale": return [3, 2];
|
|
521
|
+
case "com.amazonaws.health#UnsupportedLocale": return [3, 2];
|
|
522
522
|
}
|
|
523
|
-
return [3
|
|
523
|
+
return [3, 4];
|
|
524
524
|
case 2:
|
|
525
525
|
_c = [{}];
|
|
526
|
-
return [4
|
|
526
|
+
return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
527
527
|
case 3:
|
|
528
528
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
529
|
-
return [3
|
|
529
|
+
return [3, 5];
|
|
530
530
|
case 4:
|
|
531
531
|
parsedBody = parsedOutput.body;
|
|
532
532
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -536,7 +536,7 @@ var deserializeAws_json1_1DescribeEventDetailsForOrganizationCommandError = func
|
|
|
536
536
|
message = response.message || response.Message || errorCode;
|
|
537
537
|
response.message = message;
|
|
538
538
|
delete response.Message;
|
|
539
|
-
return [2
|
|
539
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
}); };
|
|
@@ -546,15 +546,15 @@ export var deserializeAws_json1_1DescribeEventsCommand = function (output, conte
|
|
|
546
546
|
switch (_a.label) {
|
|
547
547
|
case 0:
|
|
548
548
|
if (output.statusCode >= 300) {
|
|
549
|
-
return [2
|
|
549
|
+
return [2, deserializeAws_json1_1DescribeEventsCommandError(output, context)];
|
|
550
550
|
}
|
|
551
|
-
return [4
|
|
551
|
+
return [4, parseBody(output.body, context)];
|
|
552
552
|
case 1:
|
|
553
553
|
data = _a.sent();
|
|
554
554
|
contents = {};
|
|
555
555
|
contents = deserializeAws_json1_1DescribeEventsResponse(data, context);
|
|
556
556
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
557
|
-
return [2
|
|
557
|
+
return [2, Promise.resolve(response)];
|
|
558
558
|
}
|
|
559
559
|
});
|
|
560
560
|
}); };
|
|
@@ -566,31 +566,31 @@ var deserializeAws_json1_1DescribeEventsCommandError = function (output, context
|
|
|
566
566
|
case 0:
|
|
567
567
|
_a = [__assign({}, output)];
|
|
568
568
|
_e = {};
|
|
569
|
-
return [4
|
|
569
|
+
return [4, parseBody(output.body, context)];
|
|
570
570
|
case 1:
|
|
571
571
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
572
572
|
errorCode = "UnknownError";
|
|
573
573
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
574
574
|
_b = errorCode;
|
|
575
575
|
switch (_b) {
|
|
576
|
-
case "InvalidPaginationToken": return [3
|
|
577
|
-
case "com.amazonaws.health#InvalidPaginationToken": return [3
|
|
578
|
-
case "UnsupportedLocale": return [3
|
|
579
|
-
case "com.amazonaws.health#UnsupportedLocale": return [3
|
|
576
|
+
case "InvalidPaginationToken": return [3, 2];
|
|
577
|
+
case "com.amazonaws.health#InvalidPaginationToken": return [3, 2];
|
|
578
|
+
case "UnsupportedLocale": return [3, 4];
|
|
579
|
+
case "com.amazonaws.health#UnsupportedLocale": return [3, 4];
|
|
580
580
|
}
|
|
581
|
-
return [3
|
|
581
|
+
return [3, 6];
|
|
582
582
|
case 2:
|
|
583
583
|
_c = [{}];
|
|
584
|
-
return [4
|
|
584
|
+
return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
585
585
|
case 3:
|
|
586
586
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
587
|
-
return [3
|
|
587
|
+
return [3, 7];
|
|
588
588
|
case 4:
|
|
589
589
|
_d = [{}];
|
|
590
|
-
return [4
|
|
590
|
+
return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
591
591
|
case 5:
|
|
592
592
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
593
|
-
return [3
|
|
593
|
+
return [3, 7];
|
|
594
594
|
case 6:
|
|
595
595
|
parsedBody = parsedOutput.body;
|
|
596
596
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -600,7 +600,7 @@ var deserializeAws_json1_1DescribeEventsCommandError = function (output, context
|
|
|
600
600
|
message = response.message || response.Message || errorCode;
|
|
601
601
|
response.message = message;
|
|
602
602
|
delete response.Message;
|
|
603
|
-
return [2
|
|
603
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
604
604
|
}
|
|
605
605
|
});
|
|
606
606
|
}); };
|
|
@@ -610,15 +610,15 @@ export var deserializeAws_json1_1DescribeEventsForOrganizationCommand = function
|
|
|
610
610
|
switch (_a.label) {
|
|
611
611
|
case 0:
|
|
612
612
|
if (output.statusCode >= 300) {
|
|
613
|
-
return [2
|
|
613
|
+
return [2, deserializeAws_json1_1DescribeEventsForOrganizationCommandError(output, context)];
|
|
614
614
|
}
|
|
615
|
-
return [4
|
|
615
|
+
return [4, parseBody(output.body, context)];
|
|
616
616
|
case 1:
|
|
617
617
|
data = _a.sent();
|
|
618
618
|
contents = {};
|
|
619
619
|
contents = deserializeAws_json1_1DescribeEventsForOrganizationResponse(data, context);
|
|
620
620
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
621
|
-
return [2
|
|
621
|
+
return [2, Promise.resolve(response)];
|
|
622
622
|
}
|
|
623
623
|
});
|
|
624
624
|
}); };
|
|
@@ -630,31 +630,31 @@ var deserializeAws_json1_1DescribeEventsForOrganizationCommandError = function (
|
|
|
630
630
|
case 0:
|
|
631
631
|
_a = [__assign({}, output)];
|
|
632
632
|
_e = {};
|
|
633
|
-
return [4
|
|
633
|
+
return [4, parseBody(output.body, context)];
|
|
634
634
|
case 1:
|
|
635
635
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
636
636
|
errorCode = "UnknownError";
|
|
637
637
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
638
|
_b = errorCode;
|
|
639
639
|
switch (_b) {
|
|
640
|
-
case "InvalidPaginationToken": return [3
|
|
641
|
-
case "com.amazonaws.health#InvalidPaginationToken": return [3
|
|
642
|
-
case "UnsupportedLocale": return [3
|
|
643
|
-
case "com.amazonaws.health#UnsupportedLocale": return [3
|
|
640
|
+
case "InvalidPaginationToken": return [3, 2];
|
|
641
|
+
case "com.amazonaws.health#InvalidPaginationToken": return [3, 2];
|
|
642
|
+
case "UnsupportedLocale": return [3, 4];
|
|
643
|
+
case "com.amazonaws.health#UnsupportedLocale": return [3, 4];
|
|
644
644
|
}
|
|
645
|
-
return [3
|
|
645
|
+
return [3, 6];
|
|
646
646
|
case 2:
|
|
647
647
|
_c = [{}];
|
|
648
|
-
return [4
|
|
648
|
+
return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
649
649
|
case 3:
|
|
650
650
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
651
|
-
return [3
|
|
651
|
+
return [3, 7];
|
|
652
652
|
case 4:
|
|
653
653
|
_d = [{}];
|
|
654
|
-
return [4
|
|
654
|
+
return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
655
655
|
case 5:
|
|
656
656
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
657
|
-
return [3
|
|
657
|
+
return [3, 7];
|
|
658
658
|
case 6:
|
|
659
659
|
parsedBody = parsedOutput.body;
|
|
660
660
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -664,7 +664,7 @@ var deserializeAws_json1_1DescribeEventsForOrganizationCommandError = function (
|
|
|
664
664
|
message = response.message || response.Message || errorCode;
|
|
665
665
|
response.message = message;
|
|
666
666
|
delete response.Message;
|
|
667
|
-
return [2
|
|
667
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
668
668
|
}
|
|
669
669
|
});
|
|
670
670
|
}); };
|
|
@@ -674,15 +674,15 @@ export var deserializeAws_json1_1DescribeEventTypesCommand = function (output, c
|
|
|
674
674
|
switch (_a.label) {
|
|
675
675
|
case 0:
|
|
676
676
|
if (output.statusCode >= 300) {
|
|
677
|
-
return [2
|
|
677
|
+
return [2, deserializeAws_json1_1DescribeEventTypesCommandError(output, context)];
|
|
678
678
|
}
|
|
679
|
-
return [4
|
|
679
|
+
return [4, parseBody(output.body, context)];
|
|
680
680
|
case 1:
|
|
681
681
|
data = _a.sent();
|
|
682
682
|
contents = {};
|
|
683
683
|
contents = deserializeAws_json1_1DescribeEventTypesResponse(data, context);
|
|
684
684
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
685
|
-
return [2
|
|
685
|
+
return [2, Promise.resolve(response)];
|
|
686
686
|
}
|
|
687
687
|
});
|
|
688
688
|
}); };
|
|
@@ -694,31 +694,31 @@ var deserializeAws_json1_1DescribeEventTypesCommandError = function (output, con
|
|
|
694
694
|
case 0:
|
|
695
695
|
_a = [__assign({}, output)];
|
|
696
696
|
_e = {};
|
|
697
|
-
return [4
|
|
697
|
+
return [4, parseBody(output.body, context)];
|
|
698
698
|
case 1:
|
|
699
699
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
700
700
|
errorCode = "UnknownError";
|
|
701
701
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
702
|
_b = errorCode;
|
|
703
703
|
switch (_b) {
|
|
704
|
-
case "InvalidPaginationToken": return [3
|
|
705
|
-
case "com.amazonaws.health#InvalidPaginationToken": return [3
|
|
706
|
-
case "UnsupportedLocale": return [3
|
|
707
|
-
case "com.amazonaws.health#UnsupportedLocale": return [3
|
|
704
|
+
case "InvalidPaginationToken": return [3, 2];
|
|
705
|
+
case "com.amazonaws.health#InvalidPaginationToken": return [3, 2];
|
|
706
|
+
case "UnsupportedLocale": return [3, 4];
|
|
707
|
+
case "com.amazonaws.health#UnsupportedLocale": return [3, 4];
|
|
708
708
|
}
|
|
709
|
-
return [3
|
|
709
|
+
return [3, 6];
|
|
710
710
|
case 2:
|
|
711
711
|
_c = [{}];
|
|
712
|
-
return [4
|
|
712
|
+
return [4, deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context)];
|
|
713
713
|
case 3:
|
|
714
714
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
715
|
-
return [3
|
|
715
|
+
return [3, 7];
|
|
716
716
|
case 4:
|
|
717
717
|
_d = [{}];
|
|
718
|
-
return [4
|
|
718
|
+
return [4, deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context)];
|
|
719
719
|
case 5:
|
|
720
720
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
721
|
-
return [3
|
|
721
|
+
return [3, 7];
|
|
722
722
|
case 6:
|
|
723
723
|
parsedBody = parsedOutput.body;
|
|
724
724
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -728,7 +728,7 @@ var deserializeAws_json1_1DescribeEventTypesCommandError = function (output, con
|
|
|
728
728
|
message = response.message || response.Message || errorCode;
|
|
729
729
|
response.message = message;
|
|
730
730
|
delete response.Message;
|
|
731
|
-
return [2
|
|
731
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
732
732
|
}
|
|
733
733
|
});
|
|
734
734
|
}); };
|
|
@@ -738,15 +738,15 @@ export var deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationComma
|
|
|
738
738
|
switch (_a.label) {
|
|
739
739
|
case 0:
|
|
740
740
|
if (output.statusCode >= 300) {
|
|
741
|
-
return [2
|
|
741
|
+
return [2, deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommandError(output, context)];
|
|
742
742
|
}
|
|
743
|
-
return [4
|
|
743
|
+
return [4, parseBody(output.body, context)];
|
|
744
744
|
case 1:
|
|
745
745
|
data = _a.sent();
|
|
746
746
|
contents = {};
|
|
747
747
|
contents = deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationResponse(data, context);
|
|
748
748
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
749
|
-
return [2
|
|
749
|
+
return [2, Promise.resolve(response)];
|
|
750
750
|
}
|
|
751
751
|
});
|
|
752
752
|
}); };
|
|
@@ -758,7 +758,7 @@ var deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommandError
|
|
|
758
758
|
case 0:
|
|
759
759
|
_a = [__assign({}, output)];
|
|
760
760
|
_b = {};
|
|
761
|
-
return [4
|
|
761
|
+
return [4, parseBody(output.body, context)];
|
|
762
762
|
case 1:
|
|
763
763
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
764
764
|
errorCode = "UnknownError";
|
|
@@ -772,7 +772,7 @@ var deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommandError
|
|
|
772
772
|
message = response.message || response.Message || errorCode;
|
|
773
773
|
response.message = message;
|
|
774
774
|
delete response.Message;
|
|
775
|
-
return [2
|
|
775
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
776
776
|
}
|
|
777
777
|
});
|
|
778
778
|
}); };
|
|
@@ -782,15 +782,15 @@ export var deserializeAws_json1_1DisableHealthServiceAccessForOrganizationComman
|
|
|
782
782
|
switch (_a.label) {
|
|
783
783
|
case 0:
|
|
784
784
|
if (output.statusCode >= 300) {
|
|
785
|
-
return [2
|
|
785
|
+
return [2, deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommandError(output, context)];
|
|
786
786
|
}
|
|
787
|
-
return [4
|
|
787
|
+
return [4, collectBody(output.body, context)];
|
|
788
788
|
case 1:
|
|
789
789
|
_a.sent();
|
|
790
790
|
response = {
|
|
791
791
|
$metadata: deserializeMetadata(output),
|
|
792
792
|
};
|
|
793
|
-
return [2
|
|
793
|
+
return [2, Promise.resolve(response)];
|
|
794
794
|
}
|
|
795
795
|
});
|
|
796
796
|
}); };
|
|
@@ -802,23 +802,23 @@ var deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommandError
|
|
|
802
802
|
case 0:
|
|
803
803
|
_a = [__assign({}, output)];
|
|
804
804
|
_d = {};
|
|
805
|
-
return [4
|
|
805
|
+
return [4, parseBody(output.body, context)];
|
|
806
806
|
case 1:
|
|
807
807
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
808
808
|
errorCode = "UnknownError";
|
|
809
809
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
810
|
_b = errorCode;
|
|
811
811
|
switch (_b) {
|
|
812
|
-
case "ConcurrentModificationException": return [3
|
|
813
|
-
case "com.amazonaws.health#ConcurrentModificationException": return [3
|
|
812
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
813
|
+
case "com.amazonaws.health#ConcurrentModificationException": return [3, 2];
|
|
814
814
|
}
|
|
815
|
-
return [3
|
|
815
|
+
return [3, 4];
|
|
816
816
|
case 2:
|
|
817
817
|
_c = [{}];
|
|
818
|
-
return [4
|
|
818
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
819
819
|
case 3:
|
|
820
820
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
821
|
-
return [3
|
|
821
|
+
return [3, 5];
|
|
822
822
|
case 4:
|
|
823
823
|
parsedBody = parsedOutput.body;
|
|
824
824
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -828,7 +828,7 @@ var deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommandError
|
|
|
828
828
|
message = response.message || response.Message || errorCode;
|
|
829
829
|
response.message = message;
|
|
830
830
|
delete response.Message;
|
|
831
|
-
return [2
|
|
831
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
832
832
|
}
|
|
833
833
|
});
|
|
834
834
|
}); };
|
|
@@ -838,15 +838,15 @@ export var deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand
|
|
|
838
838
|
switch (_a.label) {
|
|
839
839
|
case 0:
|
|
840
840
|
if (output.statusCode >= 300) {
|
|
841
|
-
return [2
|
|
841
|
+
return [2, deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommandError(output, context)];
|
|
842
842
|
}
|
|
843
|
-
return [4
|
|
843
|
+
return [4, collectBody(output.body, context)];
|
|
844
844
|
case 1:
|
|
845
845
|
_a.sent();
|
|
846
846
|
response = {
|
|
847
847
|
$metadata: deserializeMetadata(output),
|
|
848
848
|
};
|
|
849
|
-
return [2
|
|
849
|
+
return [2, Promise.resolve(response)];
|
|
850
850
|
}
|
|
851
851
|
});
|
|
852
852
|
}); };
|
|
@@ -858,23 +858,23 @@ var deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommandError =
|
|
|
858
858
|
case 0:
|
|
859
859
|
_a = [__assign({}, output)];
|
|
860
860
|
_d = {};
|
|
861
|
-
return [4
|
|
861
|
+
return [4, parseBody(output.body, context)];
|
|
862
862
|
case 1:
|
|
863
863
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
864
864
|
errorCode = "UnknownError";
|
|
865
865
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
866
866
|
_b = errorCode;
|
|
867
867
|
switch (_b) {
|
|
868
|
-
case "ConcurrentModificationException": return [3
|
|
869
|
-
case "com.amazonaws.health#ConcurrentModificationException": return [3
|
|
868
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
869
|
+
case "com.amazonaws.health#ConcurrentModificationException": return [3, 2];
|
|
870
870
|
}
|
|
871
|
-
return [3
|
|
871
|
+
return [3, 4];
|
|
872
872
|
case 2:
|
|
873
873
|
_c = [{}];
|
|
874
|
-
return [4
|
|
874
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
875
875
|
case 3:
|
|
876
876
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
877
|
-
return [3
|
|
877
|
+
return [3, 5];
|
|
878
878
|
case 4:
|
|
879
879
|
parsedBody = parsedOutput.body;
|
|
880
880
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -884,7 +884,7 @@ var deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommandError =
|
|
|
884
884
|
message = response.message || response.Message || errorCode;
|
|
885
885
|
response.message = message;
|
|
886
886
|
delete response.Message;
|
|
887
|
-
return [2
|
|
887
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
888
888
|
}
|
|
889
889
|
});
|
|
890
890
|
}); };
|
|
@@ -894,7 +894,7 @@ var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (pa
|
|
|
894
894
|
body = parsedOutput.body;
|
|
895
895
|
deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
896
896
|
contents = __assign({ name: "ConcurrentModificationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
897
|
-
return [2
|
|
897
|
+
return [2, contents];
|
|
898
898
|
});
|
|
899
899
|
}); };
|
|
900
900
|
var deserializeAws_json1_1InvalidPaginationTokenResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -903,7 +903,7 @@ var deserializeAws_json1_1InvalidPaginationTokenResponse = function (parsedOutpu
|
|
|
903
903
|
body = parsedOutput.body;
|
|
904
904
|
deserialized = deserializeAws_json1_1InvalidPaginationToken(body, context);
|
|
905
905
|
contents = __assign({ name: "InvalidPaginationToken", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
906
|
-
return [2
|
|
906
|
+
return [2, contents];
|
|
907
907
|
});
|
|
908
908
|
}); };
|
|
909
909
|
var deserializeAws_json1_1UnsupportedLocaleResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -912,7 +912,7 @@ var deserializeAws_json1_1UnsupportedLocaleResponse = function (parsedOutput, co
|
|
|
912
912
|
body = parsedOutput.body;
|
|
913
913
|
deserialized = deserializeAws_json1_1UnsupportedLocale(body, context);
|
|
914
914
|
contents = __assign({ name: "UnsupportedLocale", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
915
|
-
return [2
|
|
915
|
+
return [2, contents];
|
|
916
916
|
});
|
|
917
917
|
}); };
|
|
918
918
|
var serializeAws_json1_1availabilityZones = function (input, context) {
|
|
@@ -1621,7 +1621,6 @@ var deserializeMetadata = function (output) {
|
|
|
1621
1621
|
cfId: output.headers["x-amz-cf-id"],
|
|
1622
1622
|
});
|
|
1623
1623
|
};
|
|
1624
|
-
// Collect low-level response body stream to Uint8Array.
|
|
1625
1624
|
var collectBody = function (streamBody, context) {
|
|
1626
1625
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1627
1626
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -1629,7 +1628,6 @@ var collectBody = function (streamBody, context) {
|
|
|
1629
1628
|
}
|
|
1630
1629
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1631
1630
|
};
|
|
1632
|
-
// Encode Uint8Array data into string with utf-8.
|
|
1633
1631
|
var collectBodyString = function (streamBody, context) {
|
|
1634
1632
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1635
1633
|
};
|
|
@@ -1637,7 +1635,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
1637
1635
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
1638
1636
|
return __generator(this, function (_c) {
|
|
1639
1637
|
switch (_c.label) {
|
|
1640
|
-
case 0: return [4
|
|
1638
|
+
case 0: return [4, context.endpoint()];
|
|
1641
1639
|
case 1:
|
|
1642
1640
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1643
1641
|
contents = {
|
|
@@ -1654,7 +1652,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
1654
1652
|
if (body !== undefined) {
|
|
1655
1653
|
contents.body = body;
|
|
1656
1654
|
}
|
|
1657
|
-
return [2
|
|
1655
|
+
return [2, new __HttpRequest(contents)];
|
|
1658
1656
|
}
|
|
1659
1657
|
});
|
|
1660
1658
|
}); };
|
|
@@ -1666,9 +1664,6 @@ var parseBody = function (streamBody, context) {
|
|
|
1666
1664
|
return {};
|
|
1667
1665
|
});
|
|
1668
1666
|
};
|
|
1669
|
-
/**
|
|
1670
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
1671
|
-
*/
|
|
1672
1667
|
var loadRestJsonErrorCode = function (output, data) {
|
|
1673
1668
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1674
1669
|
var sanitizeErrorCode = function (rawValue) {
|