@aws-sdk/client-cloudsearch 3.34.0 → 3.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/CloudSearch.js +0 -10
- package/dist-cjs/CloudSearchClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/BuildSuggestersCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateDomainCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/DefineAnalysisSchemeCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DefineExpressionCommand.js +2 -27
- package/dist-cjs/commands/DefineIndexFieldCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/DefineSuggesterCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteAnalysisSchemeCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteDomainCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/DeleteExpressionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteIndexFieldCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteSuggesterCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeAnalysisSchemesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeAvailabilityOptionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeDomainEndpointOptionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeDomainsCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/DescribeExpressionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeIndexFieldsCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/DescribeScalingParametersCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeServiceAccessPoliciesCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/DescribeSuggestersCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/IndexDocumentsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListDomainNamesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateAvailabilityOptionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateDomainEndpointOptionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateScalingParametersCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateServiceAccessPoliciesCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +7 -278
- package/{dist/cjs → dist-cjs}/protocols/Aws_query.js +164 -71
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/CloudSearch.js +0 -1
- package/{dist/es → dist-es}/CloudSearchClient.js +1 -2
- package/{dist/es → dist-es}/commands/BuildSuggestersCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateDomainCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DefineAnalysisSchemeCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DefineExpressionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DefineIndexFieldCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DefineSuggesterCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteAnalysisSchemeCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteDomainCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteExpressionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteIndexFieldCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteSuggesterCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeAnalysisSchemesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeAvailabilityOptionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeDomainEndpointOptionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeDomainsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeExpressionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeIndexFieldsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeScalingParametersCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeServiceAccessPoliciesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeSuggestersCommand.js +2 -3
- package/{dist/es → dist-es}/commands/IndexDocumentsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListDomainNamesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateAvailabilityOptionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateDomainEndpointOptionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateScalingParametersCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateServiceAccessPoliciesCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +4 -5
- package/{dist/es → dist-es}/protocols/Aws_query.js +308 -213
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/CloudSearch.d.ts +1 -1
- package/{dist/types → dist-types}/CloudSearchClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/BuildSuggestersCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateDomainCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DefineAnalysisSchemeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DefineExpressionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DefineIndexFieldCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DefineSuggesterCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteAnalysisSchemeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteDomainCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteExpressionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteIndexFieldCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteSuggesterCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeAnalysisSchemesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeAvailabilityOptionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeDomainEndpointOptionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeDomainsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeExpressionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeIndexFieldsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeScalingParametersCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeServiceAccessPoliciesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeSuggestersCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/IndexDocumentsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDomainNamesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateAvailabilityOptionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateDomainEndpointOptionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateScalingParametersCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateServiceAccessPoliciesCommand.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 +21 -21
- package/{dist/types → dist-types}/protocols/Aws_query.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/CloudSearch.d.ts +28 -97
- package/{dist/types → dist-types}/ts3.4/CloudSearchClient.d.ts +32 -103
- package/dist-types/ts3.4/commands/BuildSuggestersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateDomainCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DefineAnalysisSchemeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DefineExpressionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DefineIndexFieldCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DefineSuggesterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAnalysisSchemeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteDomainCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteExpressionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteIndexFieldCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteSuggesterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAnalysisSchemesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAvailabilityOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeDomainEndpointOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeDomainsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeExpressionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeIndexFieldsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeScalingParametersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeServiceAccessPoliciesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeSuggestersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/IndexDocumentsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDomainNamesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateAvailabilityOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateDomainEndpointOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateScalingParametersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateServiceAccessPoliciesCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1097 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_query.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/CloudSearch.ts +0 -978
- package/CloudSearchClient.ts +0 -358
- package/commands/BuildSuggestersCommand.ts +0 -94
- package/commands/CreateDomainCommand.ts +0 -92
- package/commands/DefineAnalysisSchemeCommand.ts +0 -94
- package/commands/DefineExpressionCommand.ts +0 -94
- package/commands/DefineIndexFieldCommand.ts +0 -94
- package/commands/DefineSuggesterCommand.ts +0 -94
- package/commands/DeleteAnalysisSchemeCommand.ts +0 -94
- package/commands/DeleteDomainCommand.ts +0 -92
- package/commands/DeleteExpressionCommand.ts +0 -94
- package/commands/DeleteIndexFieldCommand.ts +0 -94
- package/commands/DeleteSuggesterCommand.ts +0 -94
- package/commands/DescribeAnalysisSchemesCommand.ts +0 -94
- package/commands/DescribeAvailabilityOptionsCommand.ts +0 -99
- package/commands/DescribeDomainEndpointOptionsCommand.ts +0 -99
- package/commands/DescribeDomainsCommand.ts +0 -96
- package/commands/DescribeExpressionsCommand.ts +0 -94
- package/commands/DescribeIndexFieldsCommand.ts +0 -96
- package/commands/DescribeScalingParametersCommand.ts +0 -97
- package/commands/DescribeServiceAccessPoliciesCommand.ts +0 -100
- package/commands/DescribeSuggestersCommand.ts +0 -94
- package/commands/IndexDocumentsCommand.ts +0 -94
- package/commands/ListDomainNamesCommand.ts +0 -94
- package/commands/UpdateAvailabilityOptionsCommand.ts +0 -97
- package/commands/UpdateDomainEndpointOptionsCommand.ts +0 -99
- package/commands/UpdateScalingParametersCommand.ts +0 -94
- package/commands/UpdateServiceAccessPoliciesCommand.ts +0 -101
- package/dist/cjs/CloudSearch.js.map +0 -1
- package/dist/cjs/CloudSearchClient.js +0 -50
- package/dist/cjs/CloudSearchClient.js.map +0 -1
- package/dist/cjs/commands/BuildSuggestersCommand.js.map +0 -1
- package/dist/cjs/commands/CreateDomainCommand.js.map +0 -1
- package/dist/cjs/commands/DefineAnalysisSchemeCommand.js.map +0 -1
- package/dist/cjs/commands/DefineExpressionCommand.js.map +0 -1
- package/dist/cjs/commands/DefineIndexFieldCommand.js +0 -61
- package/dist/cjs/commands/DefineIndexFieldCommand.js.map +0 -1
- package/dist/cjs/commands/DefineSuggesterCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAnalysisSchemeCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteDomainCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteExpressionCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteIndexFieldCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteSuggesterCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAnalysisSchemesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAvailabilityOptionsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeDomainEndpointOptionsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeDomainsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeExpressionsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeIndexFieldsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeScalingParametersCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeServiceAccessPoliciesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeSuggestersCommand.js.map +0 -1
- package/dist/cjs/commands/IndexDocumentsCommand.js.map +0 -1
- package/dist/cjs/commands/ListDomainNamesCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateAvailabilityOptionsCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateDomainEndpointOptionsCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateScalingParametersCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateServiceAccessPoliciesCommand.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 -93
- package/dist/cjs/protocols/Aws_query.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/CloudSearch.js.map +0 -1
- package/dist/es/CloudSearchClient.js.map +0 -1
- package/dist/es/commands/BuildSuggestersCommand.js.map +0 -1
- package/dist/es/commands/CreateDomainCommand.js.map +0 -1
- package/dist/es/commands/DefineAnalysisSchemeCommand.js.map +0 -1
- package/dist/es/commands/DefineExpressionCommand.js.map +0 -1
- package/dist/es/commands/DefineIndexFieldCommand.js.map +0 -1
- package/dist/es/commands/DefineSuggesterCommand.js.map +0 -1
- package/dist/es/commands/DeleteAnalysisSchemeCommand.js.map +0 -1
- package/dist/es/commands/DeleteDomainCommand.js.map +0 -1
- package/dist/es/commands/DeleteExpressionCommand.js.map +0 -1
- package/dist/es/commands/DeleteIndexFieldCommand.js.map +0 -1
- package/dist/es/commands/DeleteSuggesterCommand.js.map +0 -1
- package/dist/es/commands/DescribeAnalysisSchemesCommand.js.map +0 -1
- package/dist/es/commands/DescribeAvailabilityOptionsCommand.js.map +0 -1
- package/dist/es/commands/DescribeDomainEndpointOptionsCommand.js.map +0 -1
- package/dist/es/commands/DescribeDomainsCommand.js.map +0 -1
- package/dist/es/commands/DescribeExpressionsCommand.js.map +0 -1
- package/dist/es/commands/DescribeIndexFieldsCommand.js.map +0 -1
- package/dist/es/commands/DescribeScalingParametersCommand.js.map +0 -1
- package/dist/es/commands/DescribeServiceAccessPoliciesCommand.js.map +0 -1
- package/dist/es/commands/DescribeSuggestersCommand.js.map +0 -1
- package/dist/es/commands/IndexDocumentsCommand.js.map +0 -1
- package/dist/es/commands/ListDomainNamesCommand.js.map +0 -1
- package/dist/es/commands/UpdateAvailabilityOptionsCommand.js.map +0 -1
- package/dist/es/commands/UpdateDomainEndpointOptionsCommand.js.map +0 -1
- package/dist/es/commands/UpdateScalingParametersCommand.js.map +0 -1
- package/dist/es/commands/UpdateServiceAccessPoliciesCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -30
- 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 -93
- package/dist/es/protocols/Aws_query.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/commands/BuildSuggestersCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/CreateDomainCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DefineAnalysisSchemeCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DefineExpressionCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DefineIndexFieldCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DefineSuggesterCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DeleteAnalysisSchemeCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DeleteDomainCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DeleteExpressionCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DeleteIndexFieldCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DeleteSuggesterCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeAnalysisSchemesCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeAvailabilityOptionsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeDomainEndpointOptionsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeDomainsCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DescribeExpressionsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeIndexFieldsCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DescribeScalingParametersCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeServiceAccessPoliciesCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DescribeSuggestersCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/IndexDocumentsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListDomainNamesCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateAvailabilityOptionsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateDomainEndpointOptionsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateScalingParametersCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateServiceAccessPoliciesCommand.d.ts +0 -37
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1973
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2531
- package/protocols/Aws_query.ts +0 -4956
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
package/protocols/Aws_query.ts
DELETED
|
@@ -1,4956 +0,0 @@
|
|
|
1
|
-
import { BuildSuggestersCommandInput, BuildSuggestersCommandOutput } from "../commands/BuildSuggestersCommand";
|
|
2
|
-
import { CreateDomainCommandInput, CreateDomainCommandOutput } from "../commands/CreateDomainCommand";
|
|
3
|
-
import {
|
|
4
|
-
DefineAnalysisSchemeCommandInput,
|
|
5
|
-
DefineAnalysisSchemeCommandOutput,
|
|
6
|
-
} from "../commands/DefineAnalysisSchemeCommand";
|
|
7
|
-
import { DefineExpressionCommandInput, DefineExpressionCommandOutput } from "../commands/DefineExpressionCommand";
|
|
8
|
-
import { DefineIndexFieldCommandInput, DefineIndexFieldCommandOutput } from "../commands/DefineIndexFieldCommand";
|
|
9
|
-
import { DefineSuggesterCommandInput, DefineSuggesterCommandOutput } from "../commands/DefineSuggesterCommand";
|
|
10
|
-
import {
|
|
11
|
-
DeleteAnalysisSchemeCommandInput,
|
|
12
|
-
DeleteAnalysisSchemeCommandOutput,
|
|
13
|
-
} from "../commands/DeleteAnalysisSchemeCommand";
|
|
14
|
-
import { DeleteDomainCommandInput, DeleteDomainCommandOutput } from "../commands/DeleteDomainCommand";
|
|
15
|
-
import { DeleteExpressionCommandInput, DeleteExpressionCommandOutput } from "../commands/DeleteExpressionCommand";
|
|
16
|
-
import { DeleteIndexFieldCommandInput, DeleteIndexFieldCommandOutput } from "../commands/DeleteIndexFieldCommand";
|
|
17
|
-
import { DeleteSuggesterCommandInput, DeleteSuggesterCommandOutput } from "../commands/DeleteSuggesterCommand";
|
|
18
|
-
import {
|
|
19
|
-
DescribeAnalysisSchemesCommandInput,
|
|
20
|
-
DescribeAnalysisSchemesCommandOutput,
|
|
21
|
-
} from "../commands/DescribeAnalysisSchemesCommand";
|
|
22
|
-
import {
|
|
23
|
-
DescribeAvailabilityOptionsCommandInput,
|
|
24
|
-
DescribeAvailabilityOptionsCommandOutput,
|
|
25
|
-
} from "../commands/DescribeAvailabilityOptionsCommand";
|
|
26
|
-
import {
|
|
27
|
-
DescribeDomainEndpointOptionsCommandInput,
|
|
28
|
-
DescribeDomainEndpointOptionsCommandOutput,
|
|
29
|
-
} from "../commands/DescribeDomainEndpointOptionsCommand";
|
|
30
|
-
import { DescribeDomainsCommandInput, DescribeDomainsCommandOutput } from "../commands/DescribeDomainsCommand";
|
|
31
|
-
import {
|
|
32
|
-
DescribeExpressionsCommandInput,
|
|
33
|
-
DescribeExpressionsCommandOutput,
|
|
34
|
-
} from "../commands/DescribeExpressionsCommand";
|
|
35
|
-
import {
|
|
36
|
-
DescribeIndexFieldsCommandInput,
|
|
37
|
-
DescribeIndexFieldsCommandOutput,
|
|
38
|
-
} from "../commands/DescribeIndexFieldsCommand";
|
|
39
|
-
import {
|
|
40
|
-
DescribeScalingParametersCommandInput,
|
|
41
|
-
DescribeScalingParametersCommandOutput,
|
|
42
|
-
} from "../commands/DescribeScalingParametersCommand";
|
|
43
|
-
import {
|
|
44
|
-
DescribeServiceAccessPoliciesCommandInput,
|
|
45
|
-
DescribeServiceAccessPoliciesCommandOutput,
|
|
46
|
-
} from "../commands/DescribeServiceAccessPoliciesCommand";
|
|
47
|
-
import { DescribeSuggestersCommandInput, DescribeSuggestersCommandOutput } from "../commands/DescribeSuggestersCommand";
|
|
48
|
-
import { IndexDocumentsCommandInput, IndexDocumentsCommandOutput } from "../commands/IndexDocumentsCommand";
|
|
49
|
-
import { ListDomainNamesCommandInput, ListDomainNamesCommandOutput } from "../commands/ListDomainNamesCommand";
|
|
50
|
-
import {
|
|
51
|
-
UpdateAvailabilityOptionsCommandInput,
|
|
52
|
-
UpdateAvailabilityOptionsCommandOutput,
|
|
53
|
-
} from "../commands/UpdateAvailabilityOptionsCommand";
|
|
54
|
-
import {
|
|
55
|
-
UpdateDomainEndpointOptionsCommandInput,
|
|
56
|
-
UpdateDomainEndpointOptionsCommandOutput,
|
|
57
|
-
} from "../commands/UpdateDomainEndpointOptionsCommand";
|
|
58
|
-
import {
|
|
59
|
-
UpdateScalingParametersCommandInput,
|
|
60
|
-
UpdateScalingParametersCommandOutput,
|
|
61
|
-
} from "../commands/UpdateScalingParametersCommand";
|
|
62
|
-
import {
|
|
63
|
-
UpdateServiceAccessPoliciesCommandInput,
|
|
64
|
-
UpdateServiceAccessPoliciesCommandOutput,
|
|
65
|
-
} from "../commands/UpdateServiceAccessPoliciesCommand";
|
|
66
|
-
import {
|
|
67
|
-
AccessPoliciesStatus,
|
|
68
|
-
AnalysisOptions,
|
|
69
|
-
AnalysisScheme,
|
|
70
|
-
AnalysisSchemeStatus,
|
|
71
|
-
AvailabilityOptionsStatus,
|
|
72
|
-
BaseException,
|
|
73
|
-
BuildSuggestersRequest,
|
|
74
|
-
BuildSuggestersResponse,
|
|
75
|
-
CreateDomainRequest,
|
|
76
|
-
CreateDomainResponse,
|
|
77
|
-
DateArrayOptions,
|
|
78
|
-
DateOptions,
|
|
79
|
-
DefineAnalysisSchemeRequest,
|
|
80
|
-
DefineAnalysisSchemeResponse,
|
|
81
|
-
DefineExpressionRequest,
|
|
82
|
-
DefineExpressionResponse,
|
|
83
|
-
DefineIndexFieldRequest,
|
|
84
|
-
DefineIndexFieldResponse,
|
|
85
|
-
DefineSuggesterRequest,
|
|
86
|
-
DefineSuggesterResponse,
|
|
87
|
-
DeleteAnalysisSchemeRequest,
|
|
88
|
-
DeleteAnalysisSchemeResponse,
|
|
89
|
-
DeleteDomainRequest,
|
|
90
|
-
DeleteDomainResponse,
|
|
91
|
-
DeleteExpressionRequest,
|
|
92
|
-
DeleteExpressionResponse,
|
|
93
|
-
DeleteIndexFieldRequest,
|
|
94
|
-
DeleteIndexFieldResponse,
|
|
95
|
-
DeleteSuggesterRequest,
|
|
96
|
-
DeleteSuggesterResponse,
|
|
97
|
-
DescribeAnalysisSchemesRequest,
|
|
98
|
-
DescribeAnalysisSchemesResponse,
|
|
99
|
-
DescribeAvailabilityOptionsRequest,
|
|
100
|
-
DescribeAvailabilityOptionsResponse,
|
|
101
|
-
DescribeDomainEndpointOptionsRequest,
|
|
102
|
-
DescribeDomainEndpointOptionsResponse,
|
|
103
|
-
DescribeDomainsRequest,
|
|
104
|
-
DescribeDomainsResponse,
|
|
105
|
-
DescribeExpressionsRequest,
|
|
106
|
-
DescribeExpressionsResponse,
|
|
107
|
-
DescribeIndexFieldsRequest,
|
|
108
|
-
DescribeIndexFieldsResponse,
|
|
109
|
-
DescribeScalingParametersRequest,
|
|
110
|
-
DescribeScalingParametersResponse,
|
|
111
|
-
DescribeServiceAccessPoliciesRequest,
|
|
112
|
-
DescribeServiceAccessPoliciesResponse,
|
|
113
|
-
DescribeSuggestersRequest,
|
|
114
|
-
DescribeSuggestersResponse,
|
|
115
|
-
DisabledOperationException,
|
|
116
|
-
DocumentSuggesterOptions,
|
|
117
|
-
DomainEndpointOptions,
|
|
118
|
-
DomainEndpointOptionsStatus,
|
|
119
|
-
DomainStatus,
|
|
120
|
-
DoubleArrayOptions,
|
|
121
|
-
DoubleOptions,
|
|
122
|
-
Expression,
|
|
123
|
-
ExpressionStatus,
|
|
124
|
-
IndexDocumentsRequest,
|
|
125
|
-
IndexDocumentsResponse,
|
|
126
|
-
IndexField,
|
|
127
|
-
IndexFieldStatus,
|
|
128
|
-
IntArrayOptions,
|
|
129
|
-
IntOptions,
|
|
130
|
-
InternalException,
|
|
131
|
-
InvalidTypeException,
|
|
132
|
-
LatLonOptions,
|
|
133
|
-
LimitExceededException,
|
|
134
|
-
Limits,
|
|
135
|
-
ListDomainNamesResponse,
|
|
136
|
-
LiteralArrayOptions,
|
|
137
|
-
LiteralOptions,
|
|
138
|
-
OptionStatus,
|
|
139
|
-
ResourceAlreadyExistsException,
|
|
140
|
-
ResourceNotFoundException,
|
|
141
|
-
ScalingParameters,
|
|
142
|
-
ScalingParametersStatus,
|
|
143
|
-
ServiceEndpoint,
|
|
144
|
-
Suggester,
|
|
145
|
-
SuggesterStatus,
|
|
146
|
-
TextArrayOptions,
|
|
147
|
-
TextOptions,
|
|
148
|
-
UpdateAvailabilityOptionsRequest,
|
|
149
|
-
UpdateAvailabilityOptionsResponse,
|
|
150
|
-
UpdateDomainEndpointOptionsRequest,
|
|
151
|
-
UpdateDomainEndpointOptionsResponse,
|
|
152
|
-
UpdateScalingParametersRequest,
|
|
153
|
-
UpdateScalingParametersResponse,
|
|
154
|
-
UpdateServiceAccessPoliciesRequest,
|
|
155
|
-
UpdateServiceAccessPoliciesResponse,
|
|
156
|
-
ValidationException,
|
|
157
|
-
} from "../models/models_0";
|
|
158
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
159
|
-
import {
|
|
160
|
-
expectNonNull as __expectNonNull,
|
|
161
|
-
expectString as __expectString,
|
|
162
|
-
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
163
|
-
getArrayIfSingleItem as __getArrayIfSingleItem,
|
|
164
|
-
getValueFromTextNode as __getValueFromTextNode,
|
|
165
|
-
parseBoolean as __parseBoolean,
|
|
166
|
-
parseRfc3339DateTime as __parseRfc3339DateTime,
|
|
167
|
-
serializeFloat as __serializeFloat,
|
|
168
|
-
strictParseFloat as __strictParseFloat,
|
|
169
|
-
strictParseInt32 as __strictParseInt32,
|
|
170
|
-
strictParseLong as __strictParseLong,
|
|
171
|
-
} from "@aws-sdk/smithy-client";
|
|
172
|
-
import {
|
|
173
|
-
Endpoint as __Endpoint,
|
|
174
|
-
HeaderBag as __HeaderBag,
|
|
175
|
-
MetadataBearer as __MetadataBearer,
|
|
176
|
-
ResponseMetadata as __ResponseMetadata,
|
|
177
|
-
SerdeContext as __SerdeContext,
|
|
178
|
-
SmithyException as __SmithyException,
|
|
179
|
-
} from "@aws-sdk/types";
|
|
180
|
-
import { decodeHTML } from "entities";
|
|
181
|
-
import { parse as xmlParse } from "fast-xml-parser";
|
|
182
|
-
|
|
183
|
-
export const serializeAws_queryBuildSuggestersCommand = async (
|
|
184
|
-
input: BuildSuggestersCommandInput,
|
|
185
|
-
context: __SerdeContext
|
|
186
|
-
): Promise<__HttpRequest> => {
|
|
187
|
-
const headers: __HeaderBag = {
|
|
188
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
189
|
-
};
|
|
190
|
-
let body: any;
|
|
191
|
-
body = buildFormUrlencodedString({
|
|
192
|
-
...serializeAws_queryBuildSuggestersRequest(input, context),
|
|
193
|
-
Action: "BuildSuggesters",
|
|
194
|
-
Version: "2013-01-01",
|
|
195
|
-
});
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
export const serializeAws_queryCreateDomainCommand = async (
|
|
200
|
-
input: CreateDomainCommandInput,
|
|
201
|
-
context: __SerdeContext
|
|
202
|
-
): Promise<__HttpRequest> => {
|
|
203
|
-
const headers: __HeaderBag = {
|
|
204
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
205
|
-
};
|
|
206
|
-
let body: any;
|
|
207
|
-
body = buildFormUrlencodedString({
|
|
208
|
-
...serializeAws_queryCreateDomainRequest(input, context),
|
|
209
|
-
Action: "CreateDomain",
|
|
210
|
-
Version: "2013-01-01",
|
|
211
|
-
});
|
|
212
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
export const serializeAws_queryDefineAnalysisSchemeCommand = async (
|
|
216
|
-
input: DefineAnalysisSchemeCommandInput,
|
|
217
|
-
context: __SerdeContext
|
|
218
|
-
): Promise<__HttpRequest> => {
|
|
219
|
-
const headers: __HeaderBag = {
|
|
220
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
221
|
-
};
|
|
222
|
-
let body: any;
|
|
223
|
-
body = buildFormUrlencodedString({
|
|
224
|
-
...serializeAws_queryDefineAnalysisSchemeRequest(input, context),
|
|
225
|
-
Action: "DefineAnalysisScheme",
|
|
226
|
-
Version: "2013-01-01",
|
|
227
|
-
});
|
|
228
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
export const serializeAws_queryDefineExpressionCommand = async (
|
|
232
|
-
input: DefineExpressionCommandInput,
|
|
233
|
-
context: __SerdeContext
|
|
234
|
-
): Promise<__HttpRequest> => {
|
|
235
|
-
const headers: __HeaderBag = {
|
|
236
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
237
|
-
};
|
|
238
|
-
let body: any;
|
|
239
|
-
body = buildFormUrlencodedString({
|
|
240
|
-
...serializeAws_queryDefineExpressionRequest(input, context),
|
|
241
|
-
Action: "DefineExpression",
|
|
242
|
-
Version: "2013-01-01",
|
|
243
|
-
});
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
export const serializeAws_queryDefineIndexFieldCommand = async (
|
|
248
|
-
input: DefineIndexFieldCommandInput,
|
|
249
|
-
context: __SerdeContext
|
|
250
|
-
): Promise<__HttpRequest> => {
|
|
251
|
-
const headers: __HeaderBag = {
|
|
252
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
253
|
-
};
|
|
254
|
-
let body: any;
|
|
255
|
-
body = buildFormUrlencodedString({
|
|
256
|
-
...serializeAws_queryDefineIndexFieldRequest(input, context),
|
|
257
|
-
Action: "DefineIndexField",
|
|
258
|
-
Version: "2013-01-01",
|
|
259
|
-
});
|
|
260
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
export const serializeAws_queryDefineSuggesterCommand = async (
|
|
264
|
-
input: DefineSuggesterCommandInput,
|
|
265
|
-
context: __SerdeContext
|
|
266
|
-
): Promise<__HttpRequest> => {
|
|
267
|
-
const headers: __HeaderBag = {
|
|
268
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
269
|
-
};
|
|
270
|
-
let body: any;
|
|
271
|
-
body = buildFormUrlencodedString({
|
|
272
|
-
...serializeAws_queryDefineSuggesterRequest(input, context),
|
|
273
|
-
Action: "DefineSuggester",
|
|
274
|
-
Version: "2013-01-01",
|
|
275
|
-
});
|
|
276
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
export const serializeAws_queryDeleteAnalysisSchemeCommand = async (
|
|
280
|
-
input: DeleteAnalysisSchemeCommandInput,
|
|
281
|
-
context: __SerdeContext
|
|
282
|
-
): Promise<__HttpRequest> => {
|
|
283
|
-
const headers: __HeaderBag = {
|
|
284
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
285
|
-
};
|
|
286
|
-
let body: any;
|
|
287
|
-
body = buildFormUrlencodedString({
|
|
288
|
-
...serializeAws_queryDeleteAnalysisSchemeRequest(input, context),
|
|
289
|
-
Action: "DeleteAnalysisScheme",
|
|
290
|
-
Version: "2013-01-01",
|
|
291
|
-
});
|
|
292
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
export const serializeAws_queryDeleteDomainCommand = async (
|
|
296
|
-
input: DeleteDomainCommandInput,
|
|
297
|
-
context: __SerdeContext
|
|
298
|
-
): Promise<__HttpRequest> => {
|
|
299
|
-
const headers: __HeaderBag = {
|
|
300
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
301
|
-
};
|
|
302
|
-
let body: any;
|
|
303
|
-
body = buildFormUrlencodedString({
|
|
304
|
-
...serializeAws_queryDeleteDomainRequest(input, context),
|
|
305
|
-
Action: "DeleteDomain",
|
|
306
|
-
Version: "2013-01-01",
|
|
307
|
-
});
|
|
308
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
export const serializeAws_queryDeleteExpressionCommand = async (
|
|
312
|
-
input: DeleteExpressionCommandInput,
|
|
313
|
-
context: __SerdeContext
|
|
314
|
-
): Promise<__HttpRequest> => {
|
|
315
|
-
const headers: __HeaderBag = {
|
|
316
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
317
|
-
};
|
|
318
|
-
let body: any;
|
|
319
|
-
body = buildFormUrlencodedString({
|
|
320
|
-
...serializeAws_queryDeleteExpressionRequest(input, context),
|
|
321
|
-
Action: "DeleteExpression",
|
|
322
|
-
Version: "2013-01-01",
|
|
323
|
-
});
|
|
324
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
325
|
-
};
|
|
326
|
-
|
|
327
|
-
export const serializeAws_queryDeleteIndexFieldCommand = async (
|
|
328
|
-
input: DeleteIndexFieldCommandInput,
|
|
329
|
-
context: __SerdeContext
|
|
330
|
-
): Promise<__HttpRequest> => {
|
|
331
|
-
const headers: __HeaderBag = {
|
|
332
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
333
|
-
};
|
|
334
|
-
let body: any;
|
|
335
|
-
body = buildFormUrlencodedString({
|
|
336
|
-
...serializeAws_queryDeleteIndexFieldRequest(input, context),
|
|
337
|
-
Action: "DeleteIndexField",
|
|
338
|
-
Version: "2013-01-01",
|
|
339
|
-
});
|
|
340
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
export const serializeAws_queryDeleteSuggesterCommand = async (
|
|
344
|
-
input: DeleteSuggesterCommandInput,
|
|
345
|
-
context: __SerdeContext
|
|
346
|
-
): Promise<__HttpRequest> => {
|
|
347
|
-
const headers: __HeaderBag = {
|
|
348
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
349
|
-
};
|
|
350
|
-
let body: any;
|
|
351
|
-
body = buildFormUrlencodedString({
|
|
352
|
-
...serializeAws_queryDeleteSuggesterRequest(input, context),
|
|
353
|
-
Action: "DeleteSuggester",
|
|
354
|
-
Version: "2013-01-01",
|
|
355
|
-
});
|
|
356
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
export const serializeAws_queryDescribeAnalysisSchemesCommand = async (
|
|
360
|
-
input: DescribeAnalysisSchemesCommandInput,
|
|
361
|
-
context: __SerdeContext
|
|
362
|
-
): Promise<__HttpRequest> => {
|
|
363
|
-
const headers: __HeaderBag = {
|
|
364
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
365
|
-
};
|
|
366
|
-
let body: any;
|
|
367
|
-
body = buildFormUrlencodedString({
|
|
368
|
-
...serializeAws_queryDescribeAnalysisSchemesRequest(input, context),
|
|
369
|
-
Action: "DescribeAnalysisSchemes",
|
|
370
|
-
Version: "2013-01-01",
|
|
371
|
-
});
|
|
372
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
export const serializeAws_queryDescribeAvailabilityOptionsCommand = async (
|
|
376
|
-
input: DescribeAvailabilityOptionsCommandInput,
|
|
377
|
-
context: __SerdeContext
|
|
378
|
-
): Promise<__HttpRequest> => {
|
|
379
|
-
const headers: __HeaderBag = {
|
|
380
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
381
|
-
};
|
|
382
|
-
let body: any;
|
|
383
|
-
body = buildFormUrlencodedString({
|
|
384
|
-
...serializeAws_queryDescribeAvailabilityOptionsRequest(input, context),
|
|
385
|
-
Action: "DescribeAvailabilityOptions",
|
|
386
|
-
Version: "2013-01-01",
|
|
387
|
-
});
|
|
388
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
export const serializeAws_queryDescribeDomainEndpointOptionsCommand = async (
|
|
392
|
-
input: DescribeDomainEndpointOptionsCommandInput,
|
|
393
|
-
context: __SerdeContext
|
|
394
|
-
): Promise<__HttpRequest> => {
|
|
395
|
-
const headers: __HeaderBag = {
|
|
396
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
397
|
-
};
|
|
398
|
-
let body: any;
|
|
399
|
-
body = buildFormUrlencodedString({
|
|
400
|
-
...serializeAws_queryDescribeDomainEndpointOptionsRequest(input, context),
|
|
401
|
-
Action: "DescribeDomainEndpointOptions",
|
|
402
|
-
Version: "2013-01-01",
|
|
403
|
-
});
|
|
404
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
405
|
-
};
|
|
406
|
-
|
|
407
|
-
export const serializeAws_queryDescribeDomainsCommand = async (
|
|
408
|
-
input: DescribeDomainsCommandInput,
|
|
409
|
-
context: __SerdeContext
|
|
410
|
-
): Promise<__HttpRequest> => {
|
|
411
|
-
const headers: __HeaderBag = {
|
|
412
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
413
|
-
};
|
|
414
|
-
let body: any;
|
|
415
|
-
body = buildFormUrlencodedString({
|
|
416
|
-
...serializeAws_queryDescribeDomainsRequest(input, context),
|
|
417
|
-
Action: "DescribeDomains",
|
|
418
|
-
Version: "2013-01-01",
|
|
419
|
-
});
|
|
420
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
export const serializeAws_queryDescribeExpressionsCommand = async (
|
|
424
|
-
input: DescribeExpressionsCommandInput,
|
|
425
|
-
context: __SerdeContext
|
|
426
|
-
): Promise<__HttpRequest> => {
|
|
427
|
-
const headers: __HeaderBag = {
|
|
428
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
429
|
-
};
|
|
430
|
-
let body: any;
|
|
431
|
-
body = buildFormUrlencodedString({
|
|
432
|
-
...serializeAws_queryDescribeExpressionsRequest(input, context),
|
|
433
|
-
Action: "DescribeExpressions",
|
|
434
|
-
Version: "2013-01-01",
|
|
435
|
-
});
|
|
436
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
export const serializeAws_queryDescribeIndexFieldsCommand = async (
|
|
440
|
-
input: DescribeIndexFieldsCommandInput,
|
|
441
|
-
context: __SerdeContext
|
|
442
|
-
): Promise<__HttpRequest> => {
|
|
443
|
-
const headers: __HeaderBag = {
|
|
444
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
445
|
-
};
|
|
446
|
-
let body: any;
|
|
447
|
-
body = buildFormUrlencodedString({
|
|
448
|
-
...serializeAws_queryDescribeIndexFieldsRequest(input, context),
|
|
449
|
-
Action: "DescribeIndexFields",
|
|
450
|
-
Version: "2013-01-01",
|
|
451
|
-
});
|
|
452
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
export const serializeAws_queryDescribeScalingParametersCommand = async (
|
|
456
|
-
input: DescribeScalingParametersCommandInput,
|
|
457
|
-
context: __SerdeContext
|
|
458
|
-
): Promise<__HttpRequest> => {
|
|
459
|
-
const headers: __HeaderBag = {
|
|
460
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
461
|
-
};
|
|
462
|
-
let body: any;
|
|
463
|
-
body = buildFormUrlencodedString({
|
|
464
|
-
...serializeAws_queryDescribeScalingParametersRequest(input, context),
|
|
465
|
-
Action: "DescribeScalingParameters",
|
|
466
|
-
Version: "2013-01-01",
|
|
467
|
-
});
|
|
468
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
export const serializeAws_queryDescribeServiceAccessPoliciesCommand = async (
|
|
472
|
-
input: DescribeServiceAccessPoliciesCommandInput,
|
|
473
|
-
context: __SerdeContext
|
|
474
|
-
): Promise<__HttpRequest> => {
|
|
475
|
-
const headers: __HeaderBag = {
|
|
476
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
477
|
-
};
|
|
478
|
-
let body: any;
|
|
479
|
-
body = buildFormUrlencodedString({
|
|
480
|
-
...serializeAws_queryDescribeServiceAccessPoliciesRequest(input, context),
|
|
481
|
-
Action: "DescribeServiceAccessPolicies",
|
|
482
|
-
Version: "2013-01-01",
|
|
483
|
-
});
|
|
484
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
485
|
-
};
|
|
486
|
-
|
|
487
|
-
export const serializeAws_queryDescribeSuggestersCommand = async (
|
|
488
|
-
input: DescribeSuggestersCommandInput,
|
|
489
|
-
context: __SerdeContext
|
|
490
|
-
): Promise<__HttpRequest> => {
|
|
491
|
-
const headers: __HeaderBag = {
|
|
492
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
493
|
-
};
|
|
494
|
-
let body: any;
|
|
495
|
-
body = buildFormUrlencodedString({
|
|
496
|
-
...serializeAws_queryDescribeSuggestersRequest(input, context),
|
|
497
|
-
Action: "DescribeSuggesters",
|
|
498
|
-
Version: "2013-01-01",
|
|
499
|
-
});
|
|
500
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
501
|
-
};
|
|
502
|
-
|
|
503
|
-
export const serializeAws_queryIndexDocumentsCommand = async (
|
|
504
|
-
input: IndexDocumentsCommandInput,
|
|
505
|
-
context: __SerdeContext
|
|
506
|
-
): Promise<__HttpRequest> => {
|
|
507
|
-
const headers: __HeaderBag = {
|
|
508
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
509
|
-
};
|
|
510
|
-
let body: any;
|
|
511
|
-
body = buildFormUrlencodedString({
|
|
512
|
-
...serializeAws_queryIndexDocumentsRequest(input, context),
|
|
513
|
-
Action: "IndexDocuments",
|
|
514
|
-
Version: "2013-01-01",
|
|
515
|
-
});
|
|
516
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
517
|
-
};
|
|
518
|
-
|
|
519
|
-
export const serializeAws_queryListDomainNamesCommand = async (
|
|
520
|
-
input: ListDomainNamesCommandInput,
|
|
521
|
-
context: __SerdeContext
|
|
522
|
-
): Promise<__HttpRequest> => {
|
|
523
|
-
const headers: __HeaderBag = {
|
|
524
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
525
|
-
};
|
|
526
|
-
const body = buildFormUrlencodedString({
|
|
527
|
-
Action: "ListDomainNames",
|
|
528
|
-
Version: "2013-01-01",
|
|
529
|
-
});
|
|
530
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
531
|
-
};
|
|
532
|
-
|
|
533
|
-
export const serializeAws_queryUpdateAvailabilityOptionsCommand = async (
|
|
534
|
-
input: UpdateAvailabilityOptionsCommandInput,
|
|
535
|
-
context: __SerdeContext
|
|
536
|
-
): Promise<__HttpRequest> => {
|
|
537
|
-
const headers: __HeaderBag = {
|
|
538
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
539
|
-
};
|
|
540
|
-
let body: any;
|
|
541
|
-
body = buildFormUrlencodedString({
|
|
542
|
-
...serializeAws_queryUpdateAvailabilityOptionsRequest(input, context),
|
|
543
|
-
Action: "UpdateAvailabilityOptions",
|
|
544
|
-
Version: "2013-01-01",
|
|
545
|
-
});
|
|
546
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
export const serializeAws_queryUpdateDomainEndpointOptionsCommand = async (
|
|
550
|
-
input: UpdateDomainEndpointOptionsCommandInput,
|
|
551
|
-
context: __SerdeContext
|
|
552
|
-
): Promise<__HttpRequest> => {
|
|
553
|
-
const headers: __HeaderBag = {
|
|
554
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
555
|
-
};
|
|
556
|
-
let body: any;
|
|
557
|
-
body = buildFormUrlencodedString({
|
|
558
|
-
...serializeAws_queryUpdateDomainEndpointOptionsRequest(input, context),
|
|
559
|
-
Action: "UpdateDomainEndpointOptions",
|
|
560
|
-
Version: "2013-01-01",
|
|
561
|
-
});
|
|
562
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
563
|
-
};
|
|
564
|
-
|
|
565
|
-
export const serializeAws_queryUpdateScalingParametersCommand = async (
|
|
566
|
-
input: UpdateScalingParametersCommandInput,
|
|
567
|
-
context: __SerdeContext
|
|
568
|
-
): Promise<__HttpRequest> => {
|
|
569
|
-
const headers: __HeaderBag = {
|
|
570
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
571
|
-
};
|
|
572
|
-
let body: any;
|
|
573
|
-
body = buildFormUrlencodedString({
|
|
574
|
-
...serializeAws_queryUpdateScalingParametersRequest(input, context),
|
|
575
|
-
Action: "UpdateScalingParameters",
|
|
576
|
-
Version: "2013-01-01",
|
|
577
|
-
});
|
|
578
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
579
|
-
};
|
|
580
|
-
|
|
581
|
-
export const serializeAws_queryUpdateServiceAccessPoliciesCommand = async (
|
|
582
|
-
input: UpdateServiceAccessPoliciesCommandInput,
|
|
583
|
-
context: __SerdeContext
|
|
584
|
-
): Promise<__HttpRequest> => {
|
|
585
|
-
const headers: __HeaderBag = {
|
|
586
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
587
|
-
};
|
|
588
|
-
let body: any;
|
|
589
|
-
body = buildFormUrlencodedString({
|
|
590
|
-
...serializeAws_queryUpdateServiceAccessPoliciesRequest(input, context),
|
|
591
|
-
Action: "UpdateServiceAccessPolicies",
|
|
592
|
-
Version: "2013-01-01",
|
|
593
|
-
});
|
|
594
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
595
|
-
};
|
|
596
|
-
|
|
597
|
-
export const deserializeAws_queryBuildSuggestersCommand = async (
|
|
598
|
-
output: __HttpResponse,
|
|
599
|
-
context: __SerdeContext
|
|
600
|
-
): Promise<BuildSuggestersCommandOutput> => {
|
|
601
|
-
if (output.statusCode >= 300) {
|
|
602
|
-
return deserializeAws_queryBuildSuggestersCommandError(output, context);
|
|
603
|
-
}
|
|
604
|
-
const data: any = await parseBody(output.body, context);
|
|
605
|
-
let contents: any = {};
|
|
606
|
-
contents = deserializeAws_queryBuildSuggestersResponse(data.BuildSuggestersResult, context);
|
|
607
|
-
const response: BuildSuggestersCommandOutput = {
|
|
608
|
-
$metadata: deserializeMetadata(output),
|
|
609
|
-
...contents,
|
|
610
|
-
};
|
|
611
|
-
return Promise.resolve(response);
|
|
612
|
-
};
|
|
613
|
-
|
|
614
|
-
const deserializeAws_queryBuildSuggestersCommandError = async (
|
|
615
|
-
output: __HttpResponse,
|
|
616
|
-
context: __SerdeContext
|
|
617
|
-
): Promise<BuildSuggestersCommandOutput> => {
|
|
618
|
-
const parsedOutput: any = {
|
|
619
|
-
...output,
|
|
620
|
-
body: await parseBody(output.body, context),
|
|
621
|
-
};
|
|
622
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
623
|
-
let errorCode: string = "UnknownError";
|
|
624
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
625
|
-
switch (errorCode) {
|
|
626
|
-
case "BaseException":
|
|
627
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
628
|
-
response = {
|
|
629
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
630
|
-
name: errorCode,
|
|
631
|
-
$metadata: deserializeMetadata(output),
|
|
632
|
-
};
|
|
633
|
-
break;
|
|
634
|
-
case "InternalException":
|
|
635
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
636
|
-
response = {
|
|
637
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
638
|
-
name: errorCode,
|
|
639
|
-
$metadata: deserializeMetadata(output),
|
|
640
|
-
};
|
|
641
|
-
break;
|
|
642
|
-
case "ResourceNotFoundException":
|
|
643
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
644
|
-
response = {
|
|
645
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
646
|
-
name: errorCode,
|
|
647
|
-
$metadata: deserializeMetadata(output),
|
|
648
|
-
};
|
|
649
|
-
break;
|
|
650
|
-
default:
|
|
651
|
-
const parsedBody = parsedOutput.body;
|
|
652
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
653
|
-
response = {
|
|
654
|
-
...parsedBody.Error,
|
|
655
|
-
name: `${errorCode}`,
|
|
656
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
657
|
-
$fault: "client",
|
|
658
|
-
$metadata: deserializeMetadata(output),
|
|
659
|
-
} as any;
|
|
660
|
-
}
|
|
661
|
-
const message = response.message || response.Message || errorCode;
|
|
662
|
-
response.message = message;
|
|
663
|
-
delete response.Message;
|
|
664
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
665
|
-
};
|
|
666
|
-
|
|
667
|
-
export const deserializeAws_queryCreateDomainCommand = async (
|
|
668
|
-
output: __HttpResponse,
|
|
669
|
-
context: __SerdeContext
|
|
670
|
-
): Promise<CreateDomainCommandOutput> => {
|
|
671
|
-
if (output.statusCode >= 300) {
|
|
672
|
-
return deserializeAws_queryCreateDomainCommandError(output, context);
|
|
673
|
-
}
|
|
674
|
-
const data: any = await parseBody(output.body, context);
|
|
675
|
-
let contents: any = {};
|
|
676
|
-
contents = deserializeAws_queryCreateDomainResponse(data.CreateDomainResult, context);
|
|
677
|
-
const response: CreateDomainCommandOutput = {
|
|
678
|
-
$metadata: deserializeMetadata(output),
|
|
679
|
-
...contents,
|
|
680
|
-
};
|
|
681
|
-
return Promise.resolve(response);
|
|
682
|
-
};
|
|
683
|
-
|
|
684
|
-
const deserializeAws_queryCreateDomainCommandError = async (
|
|
685
|
-
output: __HttpResponse,
|
|
686
|
-
context: __SerdeContext
|
|
687
|
-
): Promise<CreateDomainCommandOutput> => {
|
|
688
|
-
const parsedOutput: any = {
|
|
689
|
-
...output,
|
|
690
|
-
body: await parseBody(output.body, context),
|
|
691
|
-
};
|
|
692
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
693
|
-
let errorCode: string = "UnknownError";
|
|
694
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
695
|
-
switch (errorCode) {
|
|
696
|
-
case "BaseException":
|
|
697
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
698
|
-
response = {
|
|
699
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
700
|
-
name: errorCode,
|
|
701
|
-
$metadata: deserializeMetadata(output),
|
|
702
|
-
};
|
|
703
|
-
break;
|
|
704
|
-
case "InternalException":
|
|
705
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
706
|
-
response = {
|
|
707
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
708
|
-
name: errorCode,
|
|
709
|
-
$metadata: deserializeMetadata(output),
|
|
710
|
-
};
|
|
711
|
-
break;
|
|
712
|
-
case "LimitExceededException":
|
|
713
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
714
|
-
response = {
|
|
715
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
716
|
-
name: errorCode,
|
|
717
|
-
$metadata: deserializeMetadata(output),
|
|
718
|
-
};
|
|
719
|
-
break;
|
|
720
|
-
case "ResourceAlreadyExistsException":
|
|
721
|
-
case "com.amazonaws.cloudsearch#ResourceAlreadyExistsException":
|
|
722
|
-
response = {
|
|
723
|
-
...(await deserializeAws_queryResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
724
|
-
name: errorCode,
|
|
725
|
-
$metadata: deserializeMetadata(output),
|
|
726
|
-
};
|
|
727
|
-
break;
|
|
728
|
-
case "ValidationException":
|
|
729
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
730
|
-
response = {
|
|
731
|
-
...(await deserializeAws_queryValidationExceptionResponse(parsedOutput, context)),
|
|
732
|
-
name: errorCode,
|
|
733
|
-
$metadata: deserializeMetadata(output),
|
|
734
|
-
};
|
|
735
|
-
break;
|
|
736
|
-
default:
|
|
737
|
-
const parsedBody = parsedOutput.body;
|
|
738
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
739
|
-
response = {
|
|
740
|
-
...parsedBody.Error,
|
|
741
|
-
name: `${errorCode}`,
|
|
742
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
743
|
-
$fault: "client",
|
|
744
|
-
$metadata: deserializeMetadata(output),
|
|
745
|
-
} as any;
|
|
746
|
-
}
|
|
747
|
-
const message = response.message || response.Message || errorCode;
|
|
748
|
-
response.message = message;
|
|
749
|
-
delete response.Message;
|
|
750
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
751
|
-
};
|
|
752
|
-
|
|
753
|
-
export const deserializeAws_queryDefineAnalysisSchemeCommand = async (
|
|
754
|
-
output: __HttpResponse,
|
|
755
|
-
context: __SerdeContext
|
|
756
|
-
): Promise<DefineAnalysisSchemeCommandOutput> => {
|
|
757
|
-
if (output.statusCode >= 300) {
|
|
758
|
-
return deserializeAws_queryDefineAnalysisSchemeCommandError(output, context);
|
|
759
|
-
}
|
|
760
|
-
const data: any = await parseBody(output.body, context);
|
|
761
|
-
let contents: any = {};
|
|
762
|
-
contents = deserializeAws_queryDefineAnalysisSchemeResponse(data.DefineAnalysisSchemeResult, context);
|
|
763
|
-
const response: DefineAnalysisSchemeCommandOutput = {
|
|
764
|
-
$metadata: deserializeMetadata(output),
|
|
765
|
-
...contents,
|
|
766
|
-
};
|
|
767
|
-
return Promise.resolve(response);
|
|
768
|
-
};
|
|
769
|
-
|
|
770
|
-
const deserializeAws_queryDefineAnalysisSchemeCommandError = async (
|
|
771
|
-
output: __HttpResponse,
|
|
772
|
-
context: __SerdeContext
|
|
773
|
-
): Promise<DefineAnalysisSchemeCommandOutput> => {
|
|
774
|
-
const parsedOutput: any = {
|
|
775
|
-
...output,
|
|
776
|
-
body: await parseBody(output.body, context),
|
|
777
|
-
};
|
|
778
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
779
|
-
let errorCode: string = "UnknownError";
|
|
780
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
781
|
-
switch (errorCode) {
|
|
782
|
-
case "BaseException":
|
|
783
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
784
|
-
response = {
|
|
785
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
786
|
-
name: errorCode,
|
|
787
|
-
$metadata: deserializeMetadata(output),
|
|
788
|
-
};
|
|
789
|
-
break;
|
|
790
|
-
case "InternalException":
|
|
791
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
792
|
-
response = {
|
|
793
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
794
|
-
name: errorCode,
|
|
795
|
-
$metadata: deserializeMetadata(output),
|
|
796
|
-
};
|
|
797
|
-
break;
|
|
798
|
-
case "InvalidTypeException":
|
|
799
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
800
|
-
response = {
|
|
801
|
-
...(await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)),
|
|
802
|
-
name: errorCode,
|
|
803
|
-
$metadata: deserializeMetadata(output),
|
|
804
|
-
};
|
|
805
|
-
break;
|
|
806
|
-
case "LimitExceededException":
|
|
807
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
808
|
-
response = {
|
|
809
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
810
|
-
name: errorCode,
|
|
811
|
-
$metadata: deserializeMetadata(output),
|
|
812
|
-
};
|
|
813
|
-
break;
|
|
814
|
-
case "ResourceNotFoundException":
|
|
815
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
816
|
-
response = {
|
|
817
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
818
|
-
name: errorCode,
|
|
819
|
-
$metadata: deserializeMetadata(output),
|
|
820
|
-
};
|
|
821
|
-
break;
|
|
822
|
-
default:
|
|
823
|
-
const parsedBody = parsedOutput.body;
|
|
824
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
825
|
-
response = {
|
|
826
|
-
...parsedBody.Error,
|
|
827
|
-
name: `${errorCode}`,
|
|
828
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
829
|
-
$fault: "client",
|
|
830
|
-
$metadata: deserializeMetadata(output),
|
|
831
|
-
} as any;
|
|
832
|
-
}
|
|
833
|
-
const message = response.message || response.Message || errorCode;
|
|
834
|
-
response.message = message;
|
|
835
|
-
delete response.Message;
|
|
836
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
837
|
-
};
|
|
838
|
-
|
|
839
|
-
export const deserializeAws_queryDefineExpressionCommand = async (
|
|
840
|
-
output: __HttpResponse,
|
|
841
|
-
context: __SerdeContext
|
|
842
|
-
): Promise<DefineExpressionCommandOutput> => {
|
|
843
|
-
if (output.statusCode >= 300) {
|
|
844
|
-
return deserializeAws_queryDefineExpressionCommandError(output, context);
|
|
845
|
-
}
|
|
846
|
-
const data: any = await parseBody(output.body, context);
|
|
847
|
-
let contents: any = {};
|
|
848
|
-
contents = deserializeAws_queryDefineExpressionResponse(data.DefineExpressionResult, context);
|
|
849
|
-
const response: DefineExpressionCommandOutput = {
|
|
850
|
-
$metadata: deserializeMetadata(output),
|
|
851
|
-
...contents,
|
|
852
|
-
};
|
|
853
|
-
return Promise.resolve(response);
|
|
854
|
-
};
|
|
855
|
-
|
|
856
|
-
const deserializeAws_queryDefineExpressionCommandError = async (
|
|
857
|
-
output: __HttpResponse,
|
|
858
|
-
context: __SerdeContext
|
|
859
|
-
): Promise<DefineExpressionCommandOutput> => {
|
|
860
|
-
const parsedOutput: any = {
|
|
861
|
-
...output,
|
|
862
|
-
body: await parseBody(output.body, context),
|
|
863
|
-
};
|
|
864
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
865
|
-
let errorCode: string = "UnknownError";
|
|
866
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
867
|
-
switch (errorCode) {
|
|
868
|
-
case "BaseException":
|
|
869
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
870
|
-
response = {
|
|
871
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
872
|
-
name: errorCode,
|
|
873
|
-
$metadata: deserializeMetadata(output),
|
|
874
|
-
};
|
|
875
|
-
break;
|
|
876
|
-
case "InternalException":
|
|
877
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
878
|
-
response = {
|
|
879
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
880
|
-
name: errorCode,
|
|
881
|
-
$metadata: deserializeMetadata(output),
|
|
882
|
-
};
|
|
883
|
-
break;
|
|
884
|
-
case "InvalidTypeException":
|
|
885
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
886
|
-
response = {
|
|
887
|
-
...(await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)),
|
|
888
|
-
name: errorCode,
|
|
889
|
-
$metadata: deserializeMetadata(output),
|
|
890
|
-
};
|
|
891
|
-
break;
|
|
892
|
-
case "LimitExceededException":
|
|
893
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
894
|
-
response = {
|
|
895
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
896
|
-
name: errorCode,
|
|
897
|
-
$metadata: deserializeMetadata(output),
|
|
898
|
-
};
|
|
899
|
-
break;
|
|
900
|
-
case "ResourceNotFoundException":
|
|
901
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
902
|
-
response = {
|
|
903
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
904
|
-
name: errorCode,
|
|
905
|
-
$metadata: deserializeMetadata(output),
|
|
906
|
-
};
|
|
907
|
-
break;
|
|
908
|
-
default:
|
|
909
|
-
const parsedBody = parsedOutput.body;
|
|
910
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
911
|
-
response = {
|
|
912
|
-
...parsedBody.Error,
|
|
913
|
-
name: `${errorCode}`,
|
|
914
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
915
|
-
$fault: "client",
|
|
916
|
-
$metadata: deserializeMetadata(output),
|
|
917
|
-
} as any;
|
|
918
|
-
}
|
|
919
|
-
const message = response.message || response.Message || errorCode;
|
|
920
|
-
response.message = message;
|
|
921
|
-
delete response.Message;
|
|
922
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
923
|
-
};
|
|
924
|
-
|
|
925
|
-
export const deserializeAws_queryDefineIndexFieldCommand = async (
|
|
926
|
-
output: __HttpResponse,
|
|
927
|
-
context: __SerdeContext
|
|
928
|
-
): Promise<DefineIndexFieldCommandOutput> => {
|
|
929
|
-
if (output.statusCode >= 300) {
|
|
930
|
-
return deserializeAws_queryDefineIndexFieldCommandError(output, context);
|
|
931
|
-
}
|
|
932
|
-
const data: any = await parseBody(output.body, context);
|
|
933
|
-
let contents: any = {};
|
|
934
|
-
contents = deserializeAws_queryDefineIndexFieldResponse(data.DefineIndexFieldResult, context);
|
|
935
|
-
const response: DefineIndexFieldCommandOutput = {
|
|
936
|
-
$metadata: deserializeMetadata(output),
|
|
937
|
-
...contents,
|
|
938
|
-
};
|
|
939
|
-
return Promise.resolve(response);
|
|
940
|
-
};
|
|
941
|
-
|
|
942
|
-
const deserializeAws_queryDefineIndexFieldCommandError = async (
|
|
943
|
-
output: __HttpResponse,
|
|
944
|
-
context: __SerdeContext
|
|
945
|
-
): Promise<DefineIndexFieldCommandOutput> => {
|
|
946
|
-
const parsedOutput: any = {
|
|
947
|
-
...output,
|
|
948
|
-
body: await parseBody(output.body, context),
|
|
949
|
-
};
|
|
950
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
951
|
-
let errorCode: string = "UnknownError";
|
|
952
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
953
|
-
switch (errorCode) {
|
|
954
|
-
case "BaseException":
|
|
955
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
956
|
-
response = {
|
|
957
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
958
|
-
name: errorCode,
|
|
959
|
-
$metadata: deserializeMetadata(output),
|
|
960
|
-
};
|
|
961
|
-
break;
|
|
962
|
-
case "InternalException":
|
|
963
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
964
|
-
response = {
|
|
965
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
966
|
-
name: errorCode,
|
|
967
|
-
$metadata: deserializeMetadata(output),
|
|
968
|
-
};
|
|
969
|
-
break;
|
|
970
|
-
case "InvalidTypeException":
|
|
971
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
972
|
-
response = {
|
|
973
|
-
...(await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)),
|
|
974
|
-
name: errorCode,
|
|
975
|
-
$metadata: deserializeMetadata(output),
|
|
976
|
-
};
|
|
977
|
-
break;
|
|
978
|
-
case "LimitExceededException":
|
|
979
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
980
|
-
response = {
|
|
981
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
982
|
-
name: errorCode,
|
|
983
|
-
$metadata: deserializeMetadata(output),
|
|
984
|
-
};
|
|
985
|
-
break;
|
|
986
|
-
case "ResourceNotFoundException":
|
|
987
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
988
|
-
response = {
|
|
989
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
990
|
-
name: errorCode,
|
|
991
|
-
$metadata: deserializeMetadata(output),
|
|
992
|
-
};
|
|
993
|
-
break;
|
|
994
|
-
default:
|
|
995
|
-
const parsedBody = parsedOutput.body;
|
|
996
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
997
|
-
response = {
|
|
998
|
-
...parsedBody.Error,
|
|
999
|
-
name: `${errorCode}`,
|
|
1000
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1001
|
-
$fault: "client",
|
|
1002
|
-
$metadata: deserializeMetadata(output),
|
|
1003
|
-
} as any;
|
|
1004
|
-
}
|
|
1005
|
-
const message = response.message || response.Message || errorCode;
|
|
1006
|
-
response.message = message;
|
|
1007
|
-
delete response.Message;
|
|
1008
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1009
|
-
};
|
|
1010
|
-
|
|
1011
|
-
export const deserializeAws_queryDefineSuggesterCommand = async (
|
|
1012
|
-
output: __HttpResponse,
|
|
1013
|
-
context: __SerdeContext
|
|
1014
|
-
): Promise<DefineSuggesterCommandOutput> => {
|
|
1015
|
-
if (output.statusCode >= 300) {
|
|
1016
|
-
return deserializeAws_queryDefineSuggesterCommandError(output, context);
|
|
1017
|
-
}
|
|
1018
|
-
const data: any = await parseBody(output.body, context);
|
|
1019
|
-
let contents: any = {};
|
|
1020
|
-
contents = deserializeAws_queryDefineSuggesterResponse(data.DefineSuggesterResult, context);
|
|
1021
|
-
const response: DefineSuggesterCommandOutput = {
|
|
1022
|
-
$metadata: deserializeMetadata(output),
|
|
1023
|
-
...contents,
|
|
1024
|
-
};
|
|
1025
|
-
return Promise.resolve(response);
|
|
1026
|
-
};
|
|
1027
|
-
|
|
1028
|
-
const deserializeAws_queryDefineSuggesterCommandError = async (
|
|
1029
|
-
output: __HttpResponse,
|
|
1030
|
-
context: __SerdeContext
|
|
1031
|
-
): Promise<DefineSuggesterCommandOutput> => {
|
|
1032
|
-
const parsedOutput: any = {
|
|
1033
|
-
...output,
|
|
1034
|
-
body: await parseBody(output.body, context),
|
|
1035
|
-
};
|
|
1036
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1037
|
-
let errorCode: string = "UnknownError";
|
|
1038
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1039
|
-
switch (errorCode) {
|
|
1040
|
-
case "BaseException":
|
|
1041
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1042
|
-
response = {
|
|
1043
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
1044
|
-
name: errorCode,
|
|
1045
|
-
$metadata: deserializeMetadata(output),
|
|
1046
|
-
};
|
|
1047
|
-
break;
|
|
1048
|
-
case "InternalException":
|
|
1049
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1050
|
-
response = {
|
|
1051
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
1052
|
-
name: errorCode,
|
|
1053
|
-
$metadata: deserializeMetadata(output),
|
|
1054
|
-
};
|
|
1055
|
-
break;
|
|
1056
|
-
case "InvalidTypeException":
|
|
1057
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1058
|
-
response = {
|
|
1059
|
-
...(await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)),
|
|
1060
|
-
name: errorCode,
|
|
1061
|
-
$metadata: deserializeMetadata(output),
|
|
1062
|
-
};
|
|
1063
|
-
break;
|
|
1064
|
-
case "LimitExceededException":
|
|
1065
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1066
|
-
response = {
|
|
1067
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1068
|
-
name: errorCode,
|
|
1069
|
-
$metadata: deserializeMetadata(output),
|
|
1070
|
-
};
|
|
1071
|
-
break;
|
|
1072
|
-
case "ResourceNotFoundException":
|
|
1073
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1074
|
-
response = {
|
|
1075
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1076
|
-
name: errorCode,
|
|
1077
|
-
$metadata: deserializeMetadata(output),
|
|
1078
|
-
};
|
|
1079
|
-
break;
|
|
1080
|
-
default:
|
|
1081
|
-
const parsedBody = parsedOutput.body;
|
|
1082
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
1083
|
-
response = {
|
|
1084
|
-
...parsedBody.Error,
|
|
1085
|
-
name: `${errorCode}`,
|
|
1086
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1087
|
-
$fault: "client",
|
|
1088
|
-
$metadata: deserializeMetadata(output),
|
|
1089
|
-
} as any;
|
|
1090
|
-
}
|
|
1091
|
-
const message = response.message || response.Message || errorCode;
|
|
1092
|
-
response.message = message;
|
|
1093
|
-
delete response.Message;
|
|
1094
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1095
|
-
};
|
|
1096
|
-
|
|
1097
|
-
export const deserializeAws_queryDeleteAnalysisSchemeCommand = async (
|
|
1098
|
-
output: __HttpResponse,
|
|
1099
|
-
context: __SerdeContext
|
|
1100
|
-
): Promise<DeleteAnalysisSchemeCommandOutput> => {
|
|
1101
|
-
if (output.statusCode >= 300) {
|
|
1102
|
-
return deserializeAws_queryDeleteAnalysisSchemeCommandError(output, context);
|
|
1103
|
-
}
|
|
1104
|
-
const data: any = await parseBody(output.body, context);
|
|
1105
|
-
let contents: any = {};
|
|
1106
|
-
contents = deserializeAws_queryDeleteAnalysisSchemeResponse(data.DeleteAnalysisSchemeResult, context);
|
|
1107
|
-
const response: DeleteAnalysisSchemeCommandOutput = {
|
|
1108
|
-
$metadata: deserializeMetadata(output),
|
|
1109
|
-
...contents,
|
|
1110
|
-
};
|
|
1111
|
-
return Promise.resolve(response);
|
|
1112
|
-
};
|
|
1113
|
-
|
|
1114
|
-
const deserializeAws_queryDeleteAnalysisSchemeCommandError = async (
|
|
1115
|
-
output: __HttpResponse,
|
|
1116
|
-
context: __SerdeContext
|
|
1117
|
-
): Promise<DeleteAnalysisSchemeCommandOutput> => {
|
|
1118
|
-
const parsedOutput: any = {
|
|
1119
|
-
...output,
|
|
1120
|
-
body: await parseBody(output.body, context),
|
|
1121
|
-
};
|
|
1122
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1123
|
-
let errorCode: string = "UnknownError";
|
|
1124
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1125
|
-
switch (errorCode) {
|
|
1126
|
-
case "BaseException":
|
|
1127
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1128
|
-
response = {
|
|
1129
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
1130
|
-
name: errorCode,
|
|
1131
|
-
$metadata: deserializeMetadata(output),
|
|
1132
|
-
};
|
|
1133
|
-
break;
|
|
1134
|
-
case "InternalException":
|
|
1135
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1136
|
-
response = {
|
|
1137
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
1138
|
-
name: errorCode,
|
|
1139
|
-
$metadata: deserializeMetadata(output),
|
|
1140
|
-
};
|
|
1141
|
-
break;
|
|
1142
|
-
case "InvalidTypeException":
|
|
1143
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1144
|
-
response = {
|
|
1145
|
-
...(await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)),
|
|
1146
|
-
name: errorCode,
|
|
1147
|
-
$metadata: deserializeMetadata(output),
|
|
1148
|
-
};
|
|
1149
|
-
break;
|
|
1150
|
-
case "ResourceNotFoundException":
|
|
1151
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1152
|
-
response = {
|
|
1153
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1154
|
-
name: errorCode,
|
|
1155
|
-
$metadata: deserializeMetadata(output),
|
|
1156
|
-
};
|
|
1157
|
-
break;
|
|
1158
|
-
default:
|
|
1159
|
-
const parsedBody = parsedOutput.body;
|
|
1160
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
1161
|
-
response = {
|
|
1162
|
-
...parsedBody.Error,
|
|
1163
|
-
name: `${errorCode}`,
|
|
1164
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1165
|
-
$fault: "client",
|
|
1166
|
-
$metadata: deserializeMetadata(output),
|
|
1167
|
-
} as any;
|
|
1168
|
-
}
|
|
1169
|
-
const message = response.message || response.Message || errorCode;
|
|
1170
|
-
response.message = message;
|
|
1171
|
-
delete response.Message;
|
|
1172
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1173
|
-
};
|
|
1174
|
-
|
|
1175
|
-
export const deserializeAws_queryDeleteDomainCommand = async (
|
|
1176
|
-
output: __HttpResponse,
|
|
1177
|
-
context: __SerdeContext
|
|
1178
|
-
): Promise<DeleteDomainCommandOutput> => {
|
|
1179
|
-
if (output.statusCode >= 300) {
|
|
1180
|
-
return deserializeAws_queryDeleteDomainCommandError(output, context);
|
|
1181
|
-
}
|
|
1182
|
-
const data: any = await parseBody(output.body, context);
|
|
1183
|
-
let contents: any = {};
|
|
1184
|
-
contents = deserializeAws_queryDeleteDomainResponse(data.DeleteDomainResult, context);
|
|
1185
|
-
const response: DeleteDomainCommandOutput = {
|
|
1186
|
-
$metadata: deserializeMetadata(output),
|
|
1187
|
-
...contents,
|
|
1188
|
-
};
|
|
1189
|
-
return Promise.resolve(response);
|
|
1190
|
-
};
|
|
1191
|
-
|
|
1192
|
-
const deserializeAws_queryDeleteDomainCommandError = async (
|
|
1193
|
-
output: __HttpResponse,
|
|
1194
|
-
context: __SerdeContext
|
|
1195
|
-
): Promise<DeleteDomainCommandOutput> => {
|
|
1196
|
-
const parsedOutput: any = {
|
|
1197
|
-
...output,
|
|
1198
|
-
body: await parseBody(output.body, context),
|
|
1199
|
-
};
|
|
1200
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1201
|
-
let errorCode: string = "UnknownError";
|
|
1202
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1203
|
-
switch (errorCode) {
|
|
1204
|
-
case "BaseException":
|
|
1205
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1206
|
-
response = {
|
|
1207
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
1208
|
-
name: errorCode,
|
|
1209
|
-
$metadata: deserializeMetadata(output),
|
|
1210
|
-
};
|
|
1211
|
-
break;
|
|
1212
|
-
case "InternalException":
|
|
1213
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1214
|
-
response = {
|
|
1215
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
1216
|
-
name: errorCode,
|
|
1217
|
-
$metadata: deserializeMetadata(output),
|
|
1218
|
-
};
|
|
1219
|
-
break;
|
|
1220
|
-
default:
|
|
1221
|
-
const parsedBody = parsedOutput.body;
|
|
1222
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
1223
|
-
response = {
|
|
1224
|
-
...parsedBody.Error,
|
|
1225
|
-
name: `${errorCode}`,
|
|
1226
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1227
|
-
$fault: "client",
|
|
1228
|
-
$metadata: deserializeMetadata(output),
|
|
1229
|
-
} as any;
|
|
1230
|
-
}
|
|
1231
|
-
const message = response.message || response.Message || errorCode;
|
|
1232
|
-
response.message = message;
|
|
1233
|
-
delete response.Message;
|
|
1234
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1235
|
-
};
|
|
1236
|
-
|
|
1237
|
-
export const deserializeAws_queryDeleteExpressionCommand = async (
|
|
1238
|
-
output: __HttpResponse,
|
|
1239
|
-
context: __SerdeContext
|
|
1240
|
-
): Promise<DeleteExpressionCommandOutput> => {
|
|
1241
|
-
if (output.statusCode >= 300) {
|
|
1242
|
-
return deserializeAws_queryDeleteExpressionCommandError(output, context);
|
|
1243
|
-
}
|
|
1244
|
-
const data: any = await parseBody(output.body, context);
|
|
1245
|
-
let contents: any = {};
|
|
1246
|
-
contents = deserializeAws_queryDeleteExpressionResponse(data.DeleteExpressionResult, context);
|
|
1247
|
-
const response: DeleteExpressionCommandOutput = {
|
|
1248
|
-
$metadata: deserializeMetadata(output),
|
|
1249
|
-
...contents,
|
|
1250
|
-
};
|
|
1251
|
-
return Promise.resolve(response);
|
|
1252
|
-
};
|
|
1253
|
-
|
|
1254
|
-
const deserializeAws_queryDeleteExpressionCommandError = async (
|
|
1255
|
-
output: __HttpResponse,
|
|
1256
|
-
context: __SerdeContext
|
|
1257
|
-
): Promise<DeleteExpressionCommandOutput> => {
|
|
1258
|
-
const parsedOutput: any = {
|
|
1259
|
-
...output,
|
|
1260
|
-
body: await parseBody(output.body, context),
|
|
1261
|
-
};
|
|
1262
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1263
|
-
let errorCode: string = "UnknownError";
|
|
1264
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1265
|
-
switch (errorCode) {
|
|
1266
|
-
case "BaseException":
|
|
1267
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1268
|
-
response = {
|
|
1269
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
1270
|
-
name: errorCode,
|
|
1271
|
-
$metadata: deserializeMetadata(output),
|
|
1272
|
-
};
|
|
1273
|
-
break;
|
|
1274
|
-
case "InternalException":
|
|
1275
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1276
|
-
response = {
|
|
1277
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
1278
|
-
name: errorCode,
|
|
1279
|
-
$metadata: deserializeMetadata(output),
|
|
1280
|
-
};
|
|
1281
|
-
break;
|
|
1282
|
-
case "InvalidTypeException":
|
|
1283
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1284
|
-
response = {
|
|
1285
|
-
...(await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)),
|
|
1286
|
-
name: errorCode,
|
|
1287
|
-
$metadata: deserializeMetadata(output),
|
|
1288
|
-
};
|
|
1289
|
-
break;
|
|
1290
|
-
case "ResourceNotFoundException":
|
|
1291
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1292
|
-
response = {
|
|
1293
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1294
|
-
name: errorCode,
|
|
1295
|
-
$metadata: deserializeMetadata(output),
|
|
1296
|
-
};
|
|
1297
|
-
break;
|
|
1298
|
-
default:
|
|
1299
|
-
const parsedBody = parsedOutput.body;
|
|
1300
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
1301
|
-
response = {
|
|
1302
|
-
...parsedBody.Error,
|
|
1303
|
-
name: `${errorCode}`,
|
|
1304
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1305
|
-
$fault: "client",
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
} as any;
|
|
1308
|
-
}
|
|
1309
|
-
const message = response.message || response.Message || errorCode;
|
|
1310
|
-
response.message = message;
|
|
1311
|
-
delete response.Message;
|
|
1312
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1313
|
-
};
|
|
1314
|
-
|
|
1315
|
-
export const deserializeAws_queryDeleteIndexFieldCommand = async (
|
|
1316
|
-
output: __HttpResponse,
|
|
1317
|
-
context: __SerdeContext
|
|
1318
|
-
): Promise<DeleteIndexFieldCommandOutput> => {
|
|
1319
|
-
if (output.statusCode >= 300) {
|
|
1320
|
-
return deserializeAws_queryDeleteIndexFieldCommandError(output, context);
|
|
1321
|
-
}
|
|
1322
|
-
const data: any = await parseBody(output.body, context);
|
|
1323
|
-
let contents: any = {};
|
|
1324
|
-
contents = deserializeAws_queryDeleteIndexFieldResponse(data.DeleteIndexFieldResult, context);
|
|
1325
|
-
const response: DeleteIndexFieldCommandOutput = {
|
|
1326
|
-
$metadata: deserializeMetadata(output),
|
|
1327
|
-
...contents,
|
|
1328
|
-
};
|
|
1329
|
-
return Promise.resolve(response);
|
|
1330
|
-
};
|
|
1331
|
-
|
|
1332
|
-
const deserializeAws_queryDeleteIndexFieldCommandError = async (
|
|
1333
|
-
output: __HttpResponse,
|
|
1334
|
-
context: __SerdeContext
|
|
1335
|
-
): Promise<DeleteIndexFieldCommandOutput> => {
|
|
1336
|
-
const parsedOutput: any = {
|
|
1337
|
-
...output,
|
|
1338
|
-
body: await parseBody(output.body, context),
|
|
1339
|
-
};
|
|
1340
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1341
|
-
let errorCode: string = "UnknownError";
|
|
1342
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1343
|
-
switch (errorCode) {
|
|
1344
|
-
case "BaseException":
|
|
1345
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1346
|
-
response = {
|
|
1347
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
1348
|
-
name: errorCode,
|
|
1349
|
-
$metadata: deserializeMetadata(output),
|
|
1350
|
-
};
|
|
1351
|
-
break;
|
|
1352
|
-
case "InternalException":
|
|
1353
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1354
|
-
response = {
|
|
1355
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
1356
|
-
name: errorCode,
|
|
1357
|
-
$metadata: deserializeMetadata(output),
|
|
1358
|
-
};
|
|
1359
|
-
break;
|
|
1360
|
-
case "InvalidTypeException":
|
|
1361
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1362
|
-
response = {
|
|
1363
|
-
...(await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)),
|
|
1364
|
-
name: errorCode,
|
|
1365
|
-
$metadata: deserializeMetadata(output),
|
|
1366
|
-
};
|
|
1367
|
-
break;
|
|
1368
|
-
case "ResourceNotFoundException":
|
|
1369
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1370
|
-
response = {
|
|
1371
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1372
|
-
name: errorCode,
|
|
1373
|
-
$metadata: deserializeMetadata(output),
|
|
1374
|
-
};
|
|
1375
|
-
break;
|
|
1376
|
-
default:
|
|
1377
|
-
const parsedBody = parsedOutput.body;
|
|
1378
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
1379
|
-
response = {
|
|
1380
|
-
...parsedBody.Error,
|
|
1381
|
-
name: `${errorCode}`,
|
|
1382
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1383
|
-
$fault: "client",
|
|
1384
|
-
$metadata: deserializeMetadata(output),
|
|
1385
|
-
} as any;
|
|
1386
|
-
}
|
|
1387
|
-
const message = response.message || response.Message || errorCode;
|
|
1388
|
-
response.message = message;
|
|
1389
|
-
delete response.Message;
|
|
1390
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1391
|
-
};
|
|
1392
|
-
|
|
1393
|
-
export const deserializeAws_queryDeleteSuggesterCommand = async (
|
|
1394
|
-
output: __HttpResponse,
|
|
1395
|
-
context: __SerdeContext
|
|
1396
|
-
): Promise<DeleteSuggesterCommandOutput> => {
|
|
1397
|
-
if (output.statusCode >= 300) {
|
|
1398
|
-
return deserializeAws_queryDeleteSuggesterCommandError(output, context);
|
|
1399
|
-
}
|
|
1400
|
-
const data: any = await parseBody(output.body, context);
|
|
1401
|
-
let contents: any = {};
|
|
1402
|
-
contents = deserializeAws_queryDeleteSuggesterResponse(data.DeleteSuggesterResult, context);
|
|
1403
|
-
const response: DeleteSuggesterCommandOutput = {
|
|
1404
|
-
$metadata: deserializeMetadata(output),
|
|
1405
|
-
...contents,
|
|
1406
|
-
};
|
|
1407
|
-
return Promise.resolve(response);
|
|
1408
|
-
};
|
|
1409
|
-
|
|
1410
|
-
const deserializeAws_queryDeleteSuggesterCommandError = async (
|
|
1411
|
-
output: __HttpResponse,
|
|
1412
|
-
context: __SerdeContext
|
|
1413
|
-
): Promise<DeleteSuggesterCommandOutput> => {
|
|
1414
|
-
const parsedOutput: any = {
|
|
1415
|
-
...output,
|
|
1416
|
-
body: await parseBody(output.body, context),
|
|
1417
|
-
};
|
|
1418
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1419
|
-
let errorCode: string = "UnknownError";
|
|
1420
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1421
|
-
switch (errorCode) {
|
|
1422
|
-
case "BaseException":
|
|
1423
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1424
|
-
response = {
|
|
1425
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
1426
|
-
name: errorCode,
|
|
1427
|
-
$metadata: deserializeMetadata(output),
|
|
1428
|
-
};
|
|
1429
|
-
break;
|
|
1430
|
-
case "InternalException":
|
|
1431
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1432
|
-
response = {
|
|
1433
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
1434
|
-
name: errorCode,
|
|
1435
|
-
$metadata: deserializeMetadata(output),
|
|
1436
|
-
};
|
|
1437
|
-
break;
|
|
1438
|
-
case "InvalidTypeException":
|
|
1439
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1440
|
-
response = {
|
|
1441
|
-
...(await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)),
|
|
1442
|
-
name: errorCode,
|
|
1443
|
-
$metadata: deserializeMetadata(output),
|
|
1444
|
-
};
|
|
1445
|
-
break;
|
|
1446
|
-
case "ResourceNotFoundException":
|
|
1447
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1448
|
-
response = {
|
|
1449
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1450
|
-
name: errorCode,
|
|
1451
|
-
$metadata: deserializeMetadata(output),
|
|
1452
|
-
};
|
|
1453
|
-
break;
|
|
1454
|
-
default:
|
|
1455
|
-
const parsedBody = parsedOutput.body;
|
|
1456
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
1457
|
-
response = {
|
|
1458
|
-
...parsedBody.Error,
|
|
1459
|
-
name: `${errorCode}`,
|
|
1460
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1461
|
-
$fault: "client",
|
|
1462
|
-
$metadata: deserializeMetadata(output),
|
|
1463
|
-
} as any;
|
|
1464
|
-
}
|
|
1465
|
-
const message = response.message || response.Message || errorCode;
|
|
1466
|
-
response.message = message;
|
|
1467
|
-
delete response.Message;
|
|
1468
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1469
|
-
};
|
|
1470
|
-
|
|
1471
|
-
export const deserializeAws_queryDescribeAnalysisSchemesCommand = async (
|
|
1472
|
-
output: __HttpResponse,
|
|
1473
|
-
context: __SerdeContext
|
|
1474
|
-
): Promise<DescribeAnalysisSchemesCommandOutput> => {
|
|
1475
|
-
if (output.statusCode >= 300) {
|
|
1476
|
-
return deserializeAws_queryDescribeAnalysisSchemesCommandError(output, context);
|
|
1477
|
-
}
|
|
1478
|
-
const data: any = await parseBody(output.body, context);
|
|
1479
|
-
let contents: any = {};
|
|
1480
|
-
contents = deserializeAws_queryDescribeAnalysisSchemesResponse(data.DescribeAnalysisSchemesResult, context);
|
|
1481
|
-
const response: DescribeAnalysisSchemesCommandOutput = {
|
|
1482
|
-
$metadata: deserializeMetadata(output),
|
|
1483
|
-
...contents,
|
|
1484
|
-
};
|
|
1485
|
-
return Promise.resolve(response);
|
|
1486
|
-
};
|
|
1487
|
-
|
|
1488
|
-
const deserializeAws_queryDescribeAnalysisSchemesCommandError = async (
|
|
1489
|
-
output: __HttpResponse,
|
|
1490
|
-
context: __SerdeContext
|
|
1491
|
-
): Promise<DescribeAnalysisSchemesCommandOutput> => {
|
|
1492
|
-
const parsedOutput: any = {
|
|
1493
|
-
...output,
|
|
1494
|
-
body: await parseBody(output.body, context),
|
|
1495
|
-
};
|
|
1496
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1497
|
-
let errorCode: string = "UnknownError";
|
|
1498
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1499
|
-
switch (errorCode) {
|
|
1500
|
-
case "BaseException":
|
|
1501
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1502
|
-
response = {
|
|
1503
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
1504
|
-
name: errorCode,
|
|
1505
|
-
$metadata: deserializeMetadata(output),
|
|
1506
|
-
};
|
|
1507
|
-
break;
|
|
1508
|
-
case "InternalException":
|
|
1509
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1510
|
-
response = {
|
|
1511
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
1512
|
-
name: errorCode,
|
|
1513
|
-
$metadata: deserializeMetadata(output),
|
|
1514
|
-
};
|
|
1515
|
-
break;
|
|
1516
|
-
case "ResourceNotFoundException":
|
|
1517
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1518
|
-
response = {
|
|
1519
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1520
|
-
name: errorCode,
|
|
1521
|
-
$metadata: deserializeMetadata(output),
|
|
1522
|
-
};
|
|
1523
|
-
break;
|
|
1524
|
-
default:
|
|
1525
|
-
const parsedBody = parsedOutput.body;
|
|
1526
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
1527
|
-
response = {
|
|
1528
|
-
...parsedBody.Error,
|
|
1529
|
-
name: `${errorCode}`,
|
|
1530
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1531
|
-
$fault: "client",
|
|
1532
|
-
$metadata: deserializeMetadata(output),
|
|
1533
|
-
} as any;
|
|
1534
|
-
}
|
|
1535
|
-
const message = response.message || response.Message || errorCode;
|
|
1536
|
-
response.message = message;
|
|
1537
|
-
delete response.Message;
|
|
1538
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1539
|
-
};
|
|
1540
|
-
|
|
1541
|
-
export const deserializeAws_queryDescribeAvailabilityOptionsCommand = async (
|
|
1542
|
-
output: __HttpResponse,
|
|
1543
|
-
context: __SerdeContext
|
|
1544
|
-
): Promise<DescribeAvailabilityOptionsCommandOutput> => {
|
|
1545
|
-
if (output.statusCode >= 300) {
|
|
1546
|
-
return deserializeAws_queryDescribeAvailabilityOptionsCommandError(output, context);
|
|
1547
|
-
}
|
|
1548
|
-
const data: any = await parseBody(output.body, context);
|
|
1549
|
-
let contents: any = {};
|
|
1550
|
-
contents = deserializeAws_queryDescribeAvailabilityOptionsResponse(data.DescribeAvailabilityOptionsResult, context);
|
|
1551
|
-
const response: DescribeAvailabilityOptionsCommandOutput = {
|
|
1552
|
-
$metadata: deserializeMetadata(output),
|
|
1553
|
-
...contents,
|
|
1554
|
-
};
|
|
1555
|
-
return Promise.resolve(response);
|
|
1556
|
-
};
|
|
1557
|
-
|
|
1558
|
-
const deserializeAws_queryDescribeAvailabilityOptionsCommandError = async (
|
|
1559
|
-
output: __HttpResponse,
|
|
1560
|
-
context: __SerdeContext
|
|
1561
|
-
): Promise<DescribeAvailabilityOptionsCommandOutput> => {
|
|
1562
|
-
const parsedOutput: any = {
|
|
1563
|
-
...output,
|
|
1564
|
-
body: await parseBody(output.body, context),
|
|
1565
|
-
};
|
|
1566
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1567
|
-
let errorCode: string = "UnknownError";
|
|
1568
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1569
|
-
switch (errorCode) {
|
|
1570
|
-
case "BaseException":
|
|
1571
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1572
|
-
response = {
|
|
1573
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
1574
|
-
name: errorCode,
|
|
1575
|
-
$metadata: deserializeMetadata(output),
|
|
1576
|
-
};
|
|
1577
|
-
break;
|
|
1578
|
-
case "DisabledOperationException":
|
|
1579
|
-
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
1580
|
-
response = {
|
|
1581
|
-
...(await deserializeAws_queryDisabledOperationExceptionResponse(parsedOutput, context)),
|
|
1582
|
-
name: errorCode,
|
|
1583
|
-
$metadata: deserializeMetadata(output),
|
|
1584
|
-
};
|
|
1585
|
-
break;
|
|
1586
|
-
case "InternalException":
|
|
1587
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1588
|
-
response = {
|
|
1589
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
1590
|
-
name: errorCode,
|
|
1591
|
-
$metadata: deserializeMetadata(output),
|
|
1592
|
-
};
|
|
1593
|
-
break;
|
|
1594
|
-
case "InvalidTypeException":
|
|
1595
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1596
|
-
response = {
|
|
1597
|
-
...(await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)),
|
|
1598
|
-
name: errorCode,
|
|
1599
|
-
$metadata: deserializeMetadata(output),
|
|
1600
|
-
};
|
|
1601
|
-
break;
|
|
1602
|
-
case "LimitExceededException":
|
|
1603
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1604
|
-
response = {
|
|
1605
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1606
|
-
name: errorCode,
|
|
1607
|
-
$metadata: deserializeMetadata(output),
|
|
1608
|
-
};
|
|
1609
|
-
break;
|
|
1610
|
-
case "ResourceNotFoundException":
|
|
1611
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1612
|
-
response = {
|
|
1613
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1614
|
-
name: errorCode,
|
|
1615
|
-
$metadata: deserializeMetadata(output),
|
|
1616
|
-
};
|
|
1617
|
-
break;
|
|
1618
|
-
default:
|
|
1619
|
-
const parsedBody = parsedOutput.body;
|
|
1620
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
1621
|
-
response = {
|
|
1622
|
-
...parsedBody.Error,
|
|
1623
|
-
name: `${errorCode}`,
|
|
1624
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1625
|
-
$fault: "client",
|
|
1626
|
-
$metadata: deserializeMetadata(output),
|
|
1627
|
-
} as any;
|
|
1628
|
-
}
|
|
1629
|
-
const message = response.message || response.Message || errorCode;
|
|
1630
|
-
response.message = message;
|
|
1631
|
-
delete response.Message;
|
|
1632
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1633
|
-
};
|
|
1634
|
-
|
|
1635
|
-
export const deserializeAws_queryDescribeDomainEndpointOptionsCommand = async (
|
|
1636
|
-
output: __HttpResponse,
|
|
1637
|
-
context: __SerdeContext
|
|
1638
|
-
): Promise<DescribeDomainEndpointOptionsCommandOutput> => {
|
|
1639
|
-
if (output.statusCode >= 300) {
|
|
1640
|
-
return deserializeAws_queryDescribeDomainEndpointOptionsCommandError(output, context);
|
|
1641
|
-
}
|
|
1642
|
-
const data: any = await parseBody(output.body, context);
|
|
1643
|
-
let contents: any = {};
|
|
1644
|
-
contents = deserializeAws_queryDescribeDomainEndpointOptionsResponse(
|
|
1645
|
-
data.DescribeDomainEndpointOptionsResult,
|
|
1646
|
-
context
|
|
1647
|
-
);
|
|
1648
|
-
const response: DescribeDomainEndpointOptionsCommandOutput = {
|
|
1649
|
-
$metadata: deserializeMetadata(output),
|
|
1650
|
-
...contents,
|
|
1651
|
-
};
|
|
1652
|
-
return Promise.resolve(response);
|
|
1653
|
-
};
|
|
1654
|
-
|
|
1655
|
-
const deserializeAws_queryDescribeDomainEndpointOptionsCommandError = async (
|
|
1656
|
-
output: __HttpResponse,
|
|
1657
|
-
context: __SerdeContext
|
|
1658
|
-
): Promise<DescribeDomainEndpointOptionsCommandOutput> => {
|
|
1659
|
-
const parsedOutput: any = {
|
|
1660
|
-
...output,
|
|
1661
|
-
body: await parseBody(output.body, context),
|
|
1662
|
-
};
|
|
1663
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1664
|
-
let errorCode: string = "UnknownError";
|
|
1665
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1666
|
-
switch (errorCode) {
|
|
1667
|
-
case "BaseException":
|
|
1668
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1669
|
-
response = {
|
|
1670
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
1671
|
-
name: errorCode,
|
|
1672
|
-
$metadata: deserializeMetadata(output),
|
|
1673
|
-
};
|
|
1674
|
-
break;
|
|
1675
|
-
case "DisabledOperationException":
|
|
1676
|
-
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
1677
|
-
response = {
|
|
1678
|
-
...(await deserializeAws_queryDisabledOperationExceptionResponse(parsedOutput, context)),
|
|
1679
|
-
name: errorCode,
|
|
1680
|
-
$metadata: deserializeMetadata(output),
|
|
1681
|
-
};
|
|
1682
|
-
break;
|
|
1683
|
-
case "InternalException":
|
|
1684
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1685
|
-
response = {
|
|
1686
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
1687
|
-
name: errorCode,
|
|
1688
|
-
$metadata: deserializeMetadata(output),
|
|
1689
|
-
};
|
|
1690
|
-
break;
|
|
1691
|
-
case "LimitExceededException":
|
|
1692
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1693
|
-
response = {
|
|
1694
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1695
|
-
name: errorCode,
|
|
1696
|
-
$metadata: deserializeMetadata(output),
|
|
1697
|
-
};
|
|
1698
|
-
break;
|
|
1699
|
-
case "ResourceNotFoundException":
|
|
1700
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1701
|
-
response = {
|
|
1702
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1703
|
-
name: errorCode,
|
|
1704
|
-
$metadata: deserializeMetadata(output),
|
|
1705
|
-
};
|
|
1706
|
-
break;
|
|
1707
|
-
default:
|
|
1708
|
-
const parsedBody = parsedOutput.body;
|
|
1709
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
1710
|
-
response = {
|
|
1711
|
-
...parsedBody.Error,
|
|
1712
|
-
name: `${errorCode}`,
|
|
1713
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1714
|
-
$fault: "client",
|
|
1715
|
-
$metadata: deserializeMetadata(output),
|
|
1716
|
-
} as any;
|
|
1717
|
-
}
|
|
1718
|
-
const message = response.message || response.Message || errorCode;
|
|
1719
|
-
response.message = message;
|
|
1720
|
-
delete response.Message;
|
|
1721
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1722
|
-
};
|
|
1723
|
-
|
|
1724
|
-
export const deserializeAws_queryDescribeDomainsCommand = async (
|
|
1725
|
-
output: __HttpResponse,
|
|
1726
|
-
context: __SerdeContext
|
|
1727
|
-
): Promise<DescribeDomainsCommandOutput> => {
|
|
1728
|
-
if (output.statusCode >= 300) {
|
|
1729
|
-
return deserializeAws_queryDescribeDomainsCommandError(output, context);
|
|
1730
|
-
}
|
|
1731
|
-
const data: any = await parseBody(output.body, context);
|
|
1732
|
-
let contents: any = {};
|
|
1733
|
-
contents = deserializeAws_queryDescribeDomainsResponse(data.DescribeDomainsResult, context);
|
|
1734
|
-
const response: DescribeDomainsCommandOutput = {
|
|
1735
|
-
$metadata: deserializeMetadata(output),
|
|
1736
|
-
...contents,
|
|
1737
|
-
};
|
|
1738
|
-
return Promise.resolve(response);
|
|
1739
|
-
};
|
|
1740
|
-
|
|
1741
|
-
const deserializeAws_queryDescribeDomainsCommandError = async (
|
|
1742
|
-
output: __HttpResponse,
|
|
1743
|
-
context: __SerdeContext
|
|
1744
|
-
): Promise<DescribeDomainsCommandOutput> => {
|
|
1745
|
-
const parsedOutput: any = {
|
|
1746
|
-
...output,
|
|
1747
|
-
body: await parseBody(output.body, context),
|
|
1748
|
-
};
|
|
1749
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1750
|
-
let errorCode: string = "UnknownError";
|
|
1751
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1752
|
-
switch (errorCode) {
|
|
1753
|
-
case "BaseException":
|
|
1754
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1755
|
-
response = {
|
|
1756
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
1757
|
-
name: errorCode,
|
|
1758
|
-
$metadata: deserializeMetadata(output),
|
|
1759
|
-
};
|
|
1760
|
-
break;
|
|
1761
|
-
case "InternalException":
|
|
1762
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1763
|
-
response = {
|
|
1764
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
1765
|
-
name: errorCode,
|
|
1766
|
-
$metadata: deserializeMetadata(output),
|
|
1767
|
-
};
|
|
1768
|
-
break;
|
|
1769
|
-
default:
|
|
1770
|
-
const parsedBody = parsedOutput.body;
|
|
1771
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
1772
|
-
response = {
|
|
1773
|
-
...parsedBody.Error,
|
|
1774
|
-
name: `${errorCode}`,
|
|
1775
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1776
|
-
$fault: "client",
|
|
1777
|
-
$metadata: deserializeMetadata(output),
|
|
1778
|
-
} as any;
|
|
1779
|
-
}
|
|
1780
|
-
const message = response.message || response.Message || errorCode;
|
|
1781
|
-
response.message = message;
|
|
1782
|
-
delete response.Message;
|
|
1783
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1784
|
-
};
|
|
1785
|
-
|
|
1786
|
-
export const deserializeAws_queryDescribeExpressionsCommand = async (
|
|
1787
|
-
output: __HttpResponse,
|
|
1788
|
-
context: __SerdeContext
|
|
1789
|
-
): Promise<DescribeExpressionsCommandOutput> => {
|
|
1790
|
-
if (output.statusCode >= 300) {
|
|
1791
|
-
return deserializeAws_queryDescribeExpressionsCommandError(output, context);
|
|
1792
|
-
}
|
|
1793
|
-
const data: any = await parseBody(output.body, context);
|
|
1794
|
-
let contents: any = {};
|
|
1795
|
-
contents = deserializeAws_queryDescribeExpressionsResponse(data.DescribeExpressionsResult, context);
|
|
1796
|
-
const response: DescribeExpressionsCommandOutput = {
|
|
1797
|
-
$metadata: deserializeMetadata(output),
|
|
1798
|
-
...contents,
|
|
1799
|
-
};
|
|
1800
|
-
return Promise.resolve(response);
|
|
1801
|
-
};
|
|
1802
|
-
|
|
1803
|
-
const deserializeAws_queryDescribeExpressionsCommandError = async (
|
|
1804
|
-
output: __HttpResponse,
|
|
1805
|
-
context: __SerdeContext
|
|
1806
|
-
): Promise<DescribeExpressionsCommandOutput> => {
|
|
1807
|
-
const parsedOutput: any = {
|
|
1808
|
-
...output,
|
|
1809
|
-
body: await parseBody(output.body, context),
|
|
1810
|
-
};
|
|
1811
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1812
|
-
let errorCode: string = "UnknownError";
|
|
1813
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1814
|
-
switch (errorCode) {
|
|
1815
|
-
case "BaseException":
|
|
1816
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1817
|
-
response = {
|
|
1818
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
1819
|
-
name: errorCode,
|
|
1820
|
-
$metadata: deserializeMetadata(output),
|
|
1821
|
-
};
|
|
1822
|
-
break;
|
|
1823
|
-
case "InternalException":
|
|
1824
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1825
|
-
response = {
|
|
1826
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
1827
|
-
name: errorCode,
|
|
1828
|
-
$metadata: deserializeMetadata(output),
|
|
1829
|
-
};
|
|
1830
|
-
break;
|
|
1831
|
-
case "ResourceNotFoundException":
|
|
1832
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1833
|
-
response = {
|
|
1834
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1835
|
-
name: errorCode,
|
|
1836
|
-
$metadata: deserializeMetadata(output),
|
|
1837
|
-
};
|
|
1838
|
-
break;
|
|
1839
|
-
default:
|
|
1840
|
-
const parsedBody = parsedOutput.body;
|
|
1841
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
1842
|
-
response = {
|
|
1843
|
-
...parsedBody.Error,
|
|
1844
|
-
name: `${errorCode}`,
|
|
1845
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1846
|
-
$fault: "client",
|
|
1847
|
-
$metadata: deserializeMetadata(output),
|
|
1848
|
-
} as any;
|
|
1849
|
-
}
|
|
1850
|
-
const message = response.message || response.Message || errorCode;
|
|
1851
|
-
response.message = message;
|
|
1852
|
-
delete response.Message;
|
|
1853
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1854
|
-
};
|
|
1855
|
-
|
|
1856
|
-
export const deserializeAws_queryDescribeIndexFieldsCommand = async (
|
|
1857
|
-
output: __HttpResponse,
|
|
1858
|
-
context: __SerdeContext
|
|
1859
|
-
): Promise<DescribeIndexFieldsCommandOutput> => {
|
|
1860
|
-
if (output.statusCode >= 300) {
|
|
1861
|
-
return deserializeAws_queryDescribeIndexFieldsCommandError(output, context);
|
|
1862
|
-
}
|
|
1863
|
-
const data: any = await parseBody(output.body, context);
|
|
1864
|
-
let contents: any = {};
|
|
1865
|
-
contents = deserializeAws_queryDescribeIndexFieldsResponse(data.DescribeIndexFieldsResult, context);
|
|
1866
|
-
const response: DescribeIndexFieldsCommandOutput = {
|
|
1867
|
-
$metadata: deserializeMetadata(output),
|
|
1868
|
-
...contents,
|
|
1869
|
-
};
|
|
1870
|
-
return Promise.resolve(response);
|
|
1871
|
-
};
|
|
1872
|
-
|
|
1873
|
-
const deserializeAws_queryDescribeIndexFieldsCommandError = async (
|
|
1874
|
-
output: __HttpResponse,
|
|
1875
|
-
context: __SerdeContext
|
|
1876
|
-
): Promise<DescribeIndexFieldsCommandOutput> => {
|
|
1877
|
-
const parsedOutput: any = {
|
|
1878
|
-
...output,
|
|
1879
|
-
body: await parseBody(output.body, context),
|
|
1880
|
-
};
|
|
1881
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1882
|
-
let errorCode: string = "UnknownError";
|
|
1883
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1884
|
-
switch (errorCode) {
|
|
1885
|
-
case "BaseException":
|
|
1886
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1887
|
-
response = {
|
|
1888
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
1889
|
-
name: errorCode,
|
|
1890
|
-
$metadata: deserializeMetadata(output),
|
|
1891
|
-
};
|
|
1892
|
-
break;
|
|
1893
|
-
case "InternalException":
|
|
1894
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1895
|
-
response = {
|
|
1896
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
1897
|
-
name: errorCode,
|
|
1898
|
-
$metadata: deserializeMetadata(output),
|
|
1899
|
-
};
|
|
1900
|
-
break;
|
|
1901
|
-
case "ResourceNotFoundException":
|
|
1902
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1903
|
-
response = {
|
|
1904
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1905
|
-
name: errorCode,
|
|
1906
|
-
$metadata: deserializeMetadata(output),
|
|
1907
|
-
};
|
|
1908
|
-
break;
|
|
1909
|
-
default:
|
|
1910
|
-
const parsedBody = parsedOutput.body;
|
|
1911
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
1912
|
-
response = {
|
|
1913
|
-
...parsedBody.Error,
|
|
1914
|
-
name: `${errorCode}`,
|
|
1915
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1916
|
-
$fault: "client",
|
|
1917
|
-
$metadata: deserializeMetadata(output),
|
|
1918
|
-
} as any;
|
|
1919
|
-
}
|
|
1920
|
-
const message = response.message || response.Message || errorCode;
|
|
1921
|
-
response.message = message;
|
|
1922
|
-
delete response.Message;
|
|
1923
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1924
|
-
};
|
|
1925
|
-
|
|
1926
|
-
export const deserializeAws_queryDescribeScalingParametersCommand = async (
|
|
1927
|
-
output: __HttpResponse,
|
|
1928
|
-
context: __SerdeContext
|
|
1929
|
-
): Promise<DescribeScalingParametersCommandOutput> => {
|
|
1930
|
-
if (output.statusCode >= 300) {
|
|
1931
|
-
return deserializeAws_queryDescribeScalingParametersCommandError(output, context);
|
|
1932
|
-
}
|
|
1933
|
-
const data: any = await parseBody(output.body, context);
|
|
1934
|
-
let contents: any = {};
|
|
1935
|
-
contents = deserializeAws_queryDescribeScalingParametersResponse(data.DescribeScalingParametersResult, context);
|
|
1936
|
-
const response: DescribeScalingParametersCommandOutput = {
|
|
1937
|
-
$metadata: deserializeMetadata(output),
|
|
1938
|
-
...contents,
|
|
1939
|
-
};
|
|
1940
|
-
return Promise.resolve(response);
|
|
1941
|
-
};
|
|
1942
|
-
|
|
1943
|
-
const deserializeAws_queryDescribeScalingParametersCommandError = async (
|
|
1944
|
-
output: __HttpResponse,
|
|
1945
|
-
context: __SerdeContext
|
|
1946
|
-
): Promise<DescribeScalingParametersCommandOutput> => {
|
|
1947
|
-
const parsedOutput: any = {
|
|
1948
|
-
...output,
|
|
1949
|
-
body: await parseBody(output.body, context),
|
|
1950
|
-
};
|
|
1951
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1952
|
-
let errorCode: string = "UnknownError";
|
|
1953
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1954
|
-
switch (errorCode) {
|
|
1955
|
-
case "BaseException":
|
|
1956
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1957
|
-
response = {
|
|
1958
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
1959
|
-
name: errorCode,
|
|
1960
|
-
$metadata: deserializeMetadata(output),
|
|
1961
|
-
};
|
|
1962
|
-
break;
|
|
1963
|
-
case "InternalException":
|
|
1964
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1965
|
-
response = {
|
|
1966
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
1967
|
-
name: errorCode,
|
|
1968
|
-
$metadata: deserializeMetadata(output),
|
|
1969
|
-
};
|
|
1970
|
-
break;
|
|
1971
|
-
case "ResourceNotFoundException":
|
|
1972
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1973
|
-
response = {
|
|
1974
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1975
|
-
name: errorCode,
|
|
1976
|
-
$metadata: deserializeMetadata(output),
|
|
1977
|
-
};
|
|
1978
|
-
break;
|
|
1979
|
-
default:
|
|
1980
|
-
const parsedBody = parsedOutput.body;
|
|
1981
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
1982
|
-
response = {
|
|
1983
|
-
...parsedBody.Error,
|
|
1984
|
-
name: `${errorCode}`,
|
|
1985
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1986
|
-
$fault: "client",
|
|
1987
|
-
$metadata: deserializeMetadata(output),
|
|
1988
|
-
} as any;
|
|
1989
|
-
}
|
|
1990
|
-
const message = response.message || response.Message || errorCode;
|
|
1991
|
-
response.message = message;
|
|
1992
|
-
delete response.Message;
|
|
1993
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1994
|
-
};
|
|
1995
|
-
|
|
1996
|
-
export const deserializeAws_queryDescribeServiceAccessPoliciesCommand = async (
|
|
1997
|
-
output: __HttpResponse,
|
|
1998
|
-
context: __SerdeContext
|
|
1999
|
-
): Promise<DescribeServiceAccessPoliciesCommandOutput> => {
|
|
2000
|
-
if (output.statusCode >= 300) {
|
|
2001
|
-
return deserializeAws_queryDescribeServiceAccessPoliciesCommandError(output, context);
|
|
2002
|
-
}
|
|
2003
|
-
const data: any = await parseBody(output.body, context);
|
|
2004
|
-
let contents: any = {};
|
|
2005
|
-
contents = deserializeAws_queryDescribeServiceAccessPoliciesResponse(
|
|
2006
|
-
data.DescribeServiceAccessPoliciesResult,
|
|
2007
|
-
context
|
|
2008
|
-
);
|
|
2009
|
-
const response: DescribeServiceAccessPoliciesCommandOutput = {
|
|
2010
|
-
$metadata: deserializeMetadata(output),
|
|
2011
|
-
...contents,
|
|
2012
|
-
};
|
|
2013
|
-
return Promise.resolve(response);
|
|
2014
|
-
};
|
|
2015
|
-
|
|
2016
|
-
const deserializeAws_queryDescribeServiceAccessPoliciesCommandError = async (
|
|
2017
|
-
output: __HttpResponse,
|
|
2018
|
-
context: __SerdeContext
|
|
2019
|
-
): Promise<DescribeServiceAccessPoliciesCommandOutput> => {
|
|
2020
|
-
const parsedOutput: any = {
|
|
2021
|
-
...output,
|
|
2022
|
-
body: await parseBody(output.body, context),
|
|
2023
|
-
};
|
|
2024
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2025
|
-
let errorCode: string = "UnknownError";
|
|
2026
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2027
|
-
switch (errorCode) {
|
|
2028
|
-
case "BaseException":
|
|
2029
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
2030
|
-
response = {
|
|
2031
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
2032
|
-
name: errorCode,
|
|
2033
|
-
$metadata: deserializeMetadata(output),
|
|
2034
|
-
};
|
|
2035
|
-
break;
|
|
2036
|
-
case "InternalException":
|
|
2037
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
2038
|
-
response = {
|
|
2039
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
2040
|
-
name: errorCode,
|
|
2041
|
-
$metadata: deserializeMetadata(output),
|
|
2042
|
-
};
|
|
2043
|
-
break;
|
|
2044
|
-
case "ResourceNotFoundException":
|
|
2045
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
2046
|
-
response = {
|
|
2047
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2048
|
-
name: errorCode,
|
|
2049
|
-
$metadata: deserializeMetadata(output),
|
|
2050
|
-
};
|
|
2051
|
-
break;
|
|
2052
|
-
default:
|
|
2053
|
-
const parsedBody = parsedOutput.body;
|
|
2054
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
2055
|
-
response = {
|
|
2056
|
-
...parsedBody.Error,
|
|
2057
|
-
name: `${errorCode}`,
|
|
2058
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2059
|
-
$fault: "client",
|
|
2060
|
-
$metadata: deserializeMetadata(output),
|
|
2061
|
-
} as any;
|
|
2062
|
-
}
|
|
2063
|
-
const message = response.message || response.Message || errorCode;
|
|
2064
|
-
response.message = message;
|
|
2065
|
-
delete response.Message;
|
|
2066
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2067
|
-
};
|
|
2068
|
-
|
|
2069
|
-
export const deserializeAws_queryDescribeSuggestersCommand = async (
|
|
2070
|
-
output: __HttpResponse,
|
|
2071
|
-
context: __SerdeContext
|
|
2072
|
-
): Promise<DescribeSuggestersCommandOutput> => {
|
|
2073
|
-
if (output.statusCode >= 300) {
|
|
2074
|
-
return deserializeAws_queryDescribeSuggestersCommandError(output, context);
|
|
2075
|
-
}
|
|
2076
|
-
const data: any = await parseBody(output.body, context);
|
|
2077
|
-
let contents: any = {};
|
|
2078
|
-
contents = deserializeAws_queryDescribeSuggestersResponse(data.DescribeSuggestersResult, context);
|
|
2079
|
-
const response: DescribeSuggestersCommandOutput = {
|
|
2080
|
-
$metadata: deserializeMetadata(output),
|
|
2081
|
-
...contents,
|
|
2082
|
-
};
|
|
2083
|
-
return Promise.resolve(response);
|
|
2084
|
-
};
|
|
2085
|
-
|
|
2086
|
-
const deserializeAws_queryDescribeSuggestersCommandError = async (
|
|
2087
|
-
output: __HttpResponse,
|
|
2088
|
-
context: __SerdeContext
|
|
2089
|
-
): Promise<DescribeSuggestersCommandOutput> => {
|
|
2090
|
-
const parsedOutput: any = {
|
|
2091
|
-
...output,
|
|
2092
|
-
body: await parseBody(output.body, context),
|
|
2093
|
-
};
|
|
2094
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2095
|
-
let errorCode: string = "UnknownError";
|
|
2096
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2097
|
-
switch (errorCode) {
|
|
2098
|
-
case "BaseException":
|
|
2099
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
2100
|
-
response = {
|
|
2101
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
2102
|
-
name: errorCode,
|
|
2103
|
-
$metadata: deserializeMetadata(output),
|
|
2104
|
-
};
|
|
2105
|
-
break;
|
|
2106
|
-
case "InternalException":
|
|
2107
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
2108
|
-
response = {
|
|
2109
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
2110
|
-
name: errorCode,
|
|
2111
|
-
$metadata: deserializeMetadata(output),
|
|
2112
|
-
};
|
|
2113
|
-
break;
|
|
2114
|
-
case "ResourceNotFoundException":
|
|
2115
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
2116
|
-
response = {
|
|
2117
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2118
|
-
name: errorCode,
|
|
2119
|
-
$metadata: deserializeMetadata(output),
|
|
2120
|
-
};
|
|
2121
|
-
break;
|
|
2122
|
-
default:
|
|
2123
|
-
const parsedBody = parsedOutput.body;
|
|
2124
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
2125
|
-
response = {
|
|
2126
|
-
...parsedBody.Error,
|
|
2127
|
-
name: `${errorCode}`,
|
|
2128
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2129
|
-
$fault: "client",
|
|
2130
|
-
$metadata: deserializeMetadata(output),
|
|
2131
|
-
} as any;
|
|
2132
|
-
}
|
|
2133
|
-
const message = response.message || response.Message || errorCode;
|
|
2134
|
-
response.message = message;
|
|
2135
|
-
delete response.Message;
|
|
2136
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2137
|
-
};
|
|
2138
|
-
|
|
2139
|
-
export const deserializeAws_queryIndexDocumentsCommand = async (
|
|
2140
|
-
output: __HttpResponse,
|
|
2141
|
-
context: __SerdeContext
|
|
2142
|
-
): Promise<IndexDocumentsCommandOutput> => {
|
|
2143
|
-
if (output.statusCode >= 300) {
|
|
2144
|
-
return deserializeAws_queryIndexDocumentsCommandError(output, context);
|
|
2145
|
-
}
|
|
2146
|
-
const data: any = await parseBody(output.body, context);
|
|
2147
|
-
let contents: any = {};
|
|
2148
|
-
contents = deserializeAws_queryIndexDocumentsResponse(data.IndexDocumentsResult, context);
|
|
2149
|
-
const response: IndexDocumentsCommandOutput = {
|
|
2150
|
-
$metadata: deserializeMetadata(output),
|
|
2151
|
-
...contents,
|
|
2152
|
-
};
|
|
2153
|
-
return Promise.resolve(response);
|
|
2154
|
-
};
|
|
2155
|
-
|
|
2156
|
-
const deserializeAws_queryIndexDocumentsCommandError = async (
|
|
2157
|
-
output: __HttpResponse,
|
|
2158
|
-
context: __SerdeContext
|
|
2159
|
-
): Promise<IndexDocumentsCommandOutput> => {
|
|
2160
|
-
const parsedOutput: any = {
|
|
2161
|
-
...output,
|
|
2162
|
-
body: await parseBody(output.body, context),
|
|
2163
|
-
};
|
|
2164
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2165
|
-
let errorCode: string = "UnknownError";
|
|
2166
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2167
|
-
switch (errorCode) {
|
|
2168
|
-
case "BaseException":
|
|
2169
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
2170
|
-
response = {
|
|
2171
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
2172
|
-
name: errorCode,
|
|
2173
|
-
$metadata: deserializeMetadata(output),
|
|
2174
|
-
};
|
|
2175
|
-
break;
|
|
2176
|
-
case "InternalException":
|
|
2177
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
2178
|
-
response = {
|
|
2179
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
2180
|
-
name: errorCode,
|
|
2181
|
-
$metadata: deserializeMetadata(output),
|
|
2182
|
-
};
|
|
2183
|
-
break;
|
|
2184
|
-
case "ResourceNotFoundException":
|
|
2185
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
2186
|
-
response = {
|
|
2187
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2188
|
-
name: errorCode,
|
|
2189
|
-
$metadata: deserializeMetadata(output),
|
|
2190
|
-
};
|
|
2191
|
-
break;
|
|
2192
|
-
default:
|
|
2193
|
-
const parsedBody = parsedOutput.body;
|
|
2194
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
2195
|
-
response = {
|
|
2196
|
-
...parsedBody.Error,
|
|
2197
|
-
name: `${errorCode}`,
|
|
2198
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2199
|
-
$fault: "client",
|
|
2200
|
-
$metadata: deserializeMetadata(output),
|
|
2201
|
-
} as any;
|
|
2202
|
-
}
|
|
2203
|
-
const message = response.message || response.Message || errorCode;
|
|
2204
|
-
response.message = message;
|
|
2205
|
-
delete response.Message;
|
|
2206
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2207
|
-
};
|
|
2208
|
-
|
|
2209
|
-
export const deserializeAws_queryListDomainNamesCommand = async (
|
|
2210
|
-
output: __HttpResponse,
|
|
2211
|
-
context: __SerdeContext
|
|
2212
|
-
): Promise<ListDomainNamesCommandOutput> => {
|
|
2213
|
-
if (output.statusCode >= 300) {
|
|
2214
|
-
return deserializeAws_queryListDomainNamesCommandError(output, context);
|
|
2215
|
-
}
|
|
2216
|
-
const data: any = await parseBody(output.body, context);
|
|
2217
|
-
let contents: any = {};
|
|
2218
|
-
contents = deserializeAws_queryListDomainNamesResponse(data.ListDomainNamesResult, context);
|
|
2219
|
-
const response: ListDomainNamesCommandOutput = {
|
|
2220
|
-
$metadata: deserializeMetadata(output),
|
|
2221
|
-
...contents,
|
|
2222
|
-
};
|
|
2223
|
-
return Promise.resolve(response);
|
|
2224
|
-
};
|
|
2225
|
-
|
|
2226
|
-
const deserializeAws_queryListDomainNamesCommandError = async (
|
|
2227
|
-
output: __HttpResponse,
|
|
2228
|
-
context: __SerdeContext
|
|
2229
|
-
): Promise<ListDomainNamesCommandOutput> => {
|
|
2230
|
-
const parsedOutput: any = {
|
|
2231
|
-
...output,
|
|
2232
|
-
body: await parseBody(output.body, context),
|
|
2233
|
-
};
|
|
2234
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2235
|
-
let errorCode: string = "UnknownError";
|
|
2236
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2237
|
-
switch (errorCode) {
|
|
2238
|
-
case "BaseException":
|
|
2239
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
2240
|
-
response = {
|
|
2241
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
2242
|
-
name: errorCode,
|
|
2243
|
-
$metadata: deserializeMetadata(output),
|
|
2244
|
-
};
|
|
2245
|
-
break;
|
|
2246
|
-
default:
|
|
2247
|
-
const parsedBody = parsedOutput.body;
|
|
2248
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
2249
|
-
response = {
|
|
2250
|
-
...parsedBody.Error,
|
|
2251
|
-
name: `${errorCode}`,
|
|
2252
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2253
|
-
$fault: "client",
|
|
2254
|
-
$metadata: deserializeMetadata(output),
|
|
2255
|
-
} as any;
|
|
2256
|
-
}
|
|
2257
|
-
const message = response.message || response.Message || errorCode;
|
|
2258
|
-
response.message = message;
|
|
2259
|
-
delete response.Message;
|
|
2260
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2261
|
-
};
|
|
2262
|
-
|
|
2263
|
-
export const deserializeAws_queryUpdateAvailabilityOptionsCommand = async (
|
|
2264
|
-
output: __HttpResponse,
|
|
2265
|
-
context: __SerdeContext
|
|
2266
|
-
): Promise<UpdateAvailabilityOptionsCommandOutput> => {
|
|
2267
|
-
if (output.statusCode >= 300) {
|
|
2268
|
-
return deserializeAws_queryUpdateAvailabilityOptionsCommandError(output, context);
|
|
2269
|
-
}
|
|
2270
|
-
const data: any = await parseBody(output.body, context);
|
|
2271
|
-
let contents: any = {};
|
|
2272
|
-
contents = deserializeAws_queryUpdateAvailabilityOptionsResponse(data.UpdateAvailabilityOptionsResult, context);
|
|
2273
|
-
const response: UpdateAvailabilityOptionsCommandOutput = {
|
|
2274
|
-
$metadata: deserializeMetadata(output),
|
|
2275
|
-
...contents,
|
|
2276
|
-
};
|
|
2277
|
-
return Promise.resolve(response);
|
|
2278
|
-
};
|
|
2279
|
-
|
|
2280
|
-
const deserializeAws_queryUpdateAvailabilityOptionsCommandError = async (
|
|
2281
|
-
output: __HttpResponse,
|
|
2282
|
-
context: __SerdeContext
|
|
2283
|
-
): Promise<UpdateAvailabilityOptionsCommandOutput> => {
|
|
2284
|
-
const parsedOutput: any = {
|
|
2285
|
-
...output,
|
|
2286
|
-
body: await parseBody(output.body, context),
|
|
2287
|
-
};
|
|
2288
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2289
|
-
let errorCode: string = "UnknownError";
|
|
2290
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2291
|
-
switch (errorCode) {
|
|
2292
|
-
case "BaseException":
|
|
2293
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
2294
|
-
response = {
|
|
2295
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
2296
|
-
name: errorCode,
|
|
2297
|
-
$metadata: deserializeMetadata(output),
|
|
2298
|
-
};
|
|
2299
|
-
break;
|
|
2300
|
-
case "DisabledOperationException":
|
|
2301
|
-
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
2302
|
-
response = {
|
|
2303
|
-
...(await deserializeAws_queryDisabledOperationExceptionResponse(parsedOutput, context)),
|
|
2304
|
-
name: errorCode,
|
|
2305
|
-
$metadata: deserializeMetadata(output),
|
|
2306
|
-
};
|
|
2307
|
-
break;
|
|
2308
|
-
case "InternalException":
|
|
2309
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
2310
|
-
response = {
|
|
2311
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
2312
|
-
name: errorCode,
|
|
2313
|
-
$metadata: deserializeMetadata(output),
|
|
2314
|
-
};
|
|
2315
|
-
break;
|
|
2316
|
-
case "InvalidTypeException":
|
|
2317
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
2318
|
-
response = {
|
|
2319
|
-
...(await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)),
|
|
2320
|
-
name: errorCode,
|
|
2321
|
-
$metadata: deserializeMetadata(output),
|
|
2322
|
-
};
|
|
2323
|
-
break;
|
|
2324
|
-
case "LimitExceededException":
|
|
2325
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
2326
|
-
response = {
|
|
2327
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2328
|
-
name: errorCode,
|
|
2329
|
-
$metadata: deserializeMetadata(output),
|
|
2330
|
-
};
|
|
2331
|
-
break;
|
|
2332
|
-
case "ResourceNotFoundException":
|
|
2333
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
2334
|
-
response = {
|
|
2335
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2336
|
-
name: errorCode,
|
|
2337
|
-
$metadata: deserializeMetadata(output),
|
|
2338
|
-
};
|
|
2339
|
-
break;
|
|
2340
|
-
case "ValidationException":
|
|
2341
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
2342
|
-
response = {
|
|
2343
|
-
...(await deserializeAws_queryValidationExceptionResponse(parsedOutput, context)),
|
|
2344
|
-
name: errorCode,
|
|
2345
|
-
$metadata: deserializeMetadata(output),
|
|
2346
|
-
};
|
|
2347
|
-
break;
|
|
2348
|
-
default:
|
|
2349
|
-
const parsedBody = parsedOutput.body;
|
|
2350
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
2351
|
-
response = {
|
|
2352
|
-
...parsedBody.Error,
|
|
2353
|
-
name: `${errorCode}`,
|
|
2354
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2355
|
-
$fault: "client",
|
|
2356
|
-
$metadata: deserializeMetadata(output),
|
|
2357
|
-
} as any;
|
|
2358
|
-
}
|
|
2359
|
-
const message = response.message || response.Message || errorCode;
|
|
2360
|
-
response.message = message;
|
|
2361
|
-
delete response.Message;
|
|
2362
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2363
|
-
};
|
|
2364
|
-
|
|
2365
|
-
export const deserializeAws_queryUpdateDomainEndpointOptionsCommand = async (
|
|
2366
|
-
output: __HttpResponse,
|
|
2367
|
-
context: __SerdeContext
|
|
2368
|
-
): Promise<UpdateDomainEndpointOptionsCommandOutput> => {
|
|
2369
|
-
if (output.statusCode >= 300) {
|
|
2370
|
-
return deserializeAws_queryUpdateDomainEndpointOptionsCommandError(output, context);
|
|
2371
|
-
}
|
|
2372
|
-
const data: any = await parseBody(output.body, context);
|
|
2373
|
-
let contents: any = {};
|
|
2374
|
-
contents = deserializeAws_queryUpdateDomainEndpointOptionsResponse(data.UpdateDomainEndpointOptionsResult, context);
|
|
2375
|
-
const response: UpdateDomainEndpointOptionsCommandOutput = {
|
|
2376
|
-
$metadata: deserializeMetadata(output),
|
|
2377
|
-
...contents,
|
|
2378
|
-
};
|
|
2379
|
-
return Promise.resolve(response);
|
|
2380
|
-
};
|
|
2381
|
-
|
|
2382
|
-
const deserializeAws_queryUpdateDomainEndpointOptionsCommandError = async (
|
|
2383
|
-
output: __HttpResponse,
|
|
2384
|
-
context: __SerdeContext
|
|
2385
|
-
): Promise<UpdateDomainEndpointOptionsCommandOutput> => {
|
|
2386
|
-
const parsedOutput: any = {
|
|
2387
|
-
...output,
|
|
2388
|
-
body: await parseBody(output.body, context),
|
|
2389
|
-
};
|
|
2390
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2391
|
-
let errorCode: string = "UnknownError";
|
|
2392
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2393
|
-
switch (errorCode) {
|
|
2394
|
-
case "BaseException":
|
|
2395
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
2396
|
-
response = {
|
|
2397
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
2398
|
-
name: errorCode,
|
|
2399
|
-
$metadata: deserializeMetadata(output),
|
|
2400
|
-
};
|
|
2401
|
-
break;
|
|
2402
|
-
case "DisabledOperationException":
|
|
2403
|
-
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
2404
|
-
response = {
|
|
2405
|
-
...(await deserializeAws_queryDisabledOperationExceptionResponse(parsedOutput, context)),
|
|
2406
|
-
name: errorCode,
|
|
2407
|
-
$metadata: deserializeMetadata(output),
|
|
2408
|
-
};
|
|
2409
|
-
break;
|
|
2410
|
-
case "InternalException":
|
|
2411
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
2412
|
-
response = {
|
|
2413
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
2414
|
-
name: errorCode,
|
|
2415
|
-
$metadata: deserializeMetadata(output),
|
|
2416
|
-
};
|
|
2417
|
-
break;
|
|
2418
|
-
case "InvalidTypeException":
|
|
2419
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
2420
|
-
response = {
|
|
2421
|
-
...(await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)),
|
|
2422
|
-
name: errorCode,
|
|
2423
|
-
$metadata: deserializeMetadata(output),
|
|
2424
|
-
};
|
|
2425
|
-
break;
|
|
2426
|
-
case "LimitExceededException":
|
|
2427
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
2428
|
-
response = {
|
|
2429
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2430
|
-
name: errorCode,
|
|
2431
|
-
$metadata: deserializeMetadata(output),
|
|
2432
|
-
};
|
|
2433
|
-
break;
|
|
2434
|
-
case "ResourceNotFoundException":
|
|
2435
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
2436
|
-
response = {
|
|
2437
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2438
|
-
name: errorCode,
|
|
2439
|
-
$metadata: deserializeMetadata(output),
|
|
2440
|
-
};
|
|
2441
|
-
break;
|
|
2442
|
-
case "ValidationException":
|
|
2443
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
2444
|
-
response = {
|
|
2445
|
-
...(await deserializeAws_queryValidationExceptionResponse(parsedOutput, context)),
|
|
2446
|
-
name: errorCode,
|
|
2447
|
-
$metadata: deserializeMetadata(output),
|
|
2448
|
-
};
|
|
2449
|
-
break;
|
|
2450
|
-
default:
|
|
2451
|
-
const parsedBody = parsedOutput.body;
|
|
2452
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
2453
|
-
response = {
|
|
2454
|
-
...parsedBody.Error,
|
|
2455
|
-
name: `${errorCode}`,
|
|
2456
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2457
|
-
$fault: "client",
|
|
2458
|
-
$metadata: deserializeMetadata(output),
|
|
2459
|
-
} as any;
|
|
2460
|
-
}
|
|
2461
|
-
const message = response.message || response.Message || errorCode;
|
|
2462
|
-
response.message = message;
|
|
2463
|
-
delete response.Message;
|
|
2464
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2465
|
-
};
|
|
2466
|
-
|
|
2467
|
-
export const deserializeAws_queryUpdateScalingParametersCommand = async (
|
|
2468
|
-
output: __HttpResponse,
|
|
2469
|
-
context: __SerdeContext
|
|
2470
|
-
): Promise<UpdateScalingParametersCommandOutput> => {
|
|
2471
|
-
if (output.statusCode >= 300) {
|
|
2472
|
-
return deserializeAws_queryUpdateScalingParametersCommandError(output, context);
|
|
2473
|
-
}
|
|
2474
|
-
const data: any = await parseBody(output.body, context);
|
|
2475
|
-
let contents: any = {};
|
|
2476
|
-
contents = deserializeAws_queryUpdateScalingParametersResponse(data.UpdateScalingParametersResult, context);
|
|
2477
|
-
const response: UpdateScalingParametersCommandOutput = {
|
|
2478
|
-
$metadata: deserializeMetadata(output),
|
|
2479
|
-
...contents,
|
|
2480
|
-
};
|
|
2481
|
-
return Promise.resolve(response);
|
|
2482
|
-
};
|
|
2483
|
-
|
|
2484
|
-
const deserializeAws_queryUpdateScalingParametersCommandError = async (
|
|
2485
|
-
output: __HttpResponse,
|
|
2486
|
-
context: __SerdeContext
|
|
2487
|
-
): Promise<UpdateScalingParametersCommandOutput> => {
|
|
2488
|
-
const parsedOutput: any = {
|
|
2489
|
-
...output,
|
|
2490
|
-
body: await parseBody(output.body, context),
|
|
2491
|
-
};
|
|
2492
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2493
|
-
let errorCode: string = "UnknownError";
|
|
2494
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2495
|
-
switch (errorCode) {
|
|
2496
|
-
case "BaseException":
|
|
2497
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
2498
|
-
response = {
|
|
2499
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
2500
|
-
name: errorCode,
|
|
2501
|
-
$metadata: deserializeMetadata(output),
|
|
2502
|
-
};
|
|
2503
|
-
break;
|
|
2504
|
-
case "InternalException":
|
|
2505
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
2506
|
-
response = {
|
|
2507
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
2508
|
-
name: errorCode,
|
|
2509
|
-
$metadata: deserializeMetadata(output),
|
|
2510
|
-
};
|
|
2511
|
-
break;
|
|
2512
|
-
case "InvalidTypeException":
|
|
2513
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
2514
|
-
response = {
|
|
2515
|
-
...(await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)),
|
|
2516
|
-
name: errorCode,
|
|
2517
|
-
$metadata: deserializeMetadata(output),
|
|
2518
|
-
};
|
|
2519
|
-
break;
|
|
2520
|
-
case "LimitExceededException":
|
|
2521
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
2522
|
-
response = {
|
|
2523
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2524
|
-
name: errorCode,
|
|
2525
|
-
$metadata: deserializeMetadata(output),
|
|
2526
|
-
};
|
|
2527
|
-
break;
|
|
2528
|
-
case "ResourceNotFoundException":
|
|
2529
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
2530
|
-
response = {
|
|
2531
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2532
|
-
name: errorCode,
|
|
2533
|
-
$metadata: deserializeMetadata(output),
|
|
2534
|
-
};
|
|
2535
|
-
break;
|
|
2536
|
-
default:
|
|
2537
|
-
const parsedBody = parsedOutput.body;
|
|
2538
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
2539
|
-
response = {
|
|
2540
|
-
...parsedBody.Error,
|
|
2541
|
-
name: `${errorCode}`,
|
|
2542
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2543
|
-
$fault: "client",
|
|
2544
|
-
$metadata: deserializeMetadata(output),
|
|
2545
|
-
} as any;
|
|
2546
|
-
}
|
|
2547
|
-
const message = response.message || response.Message || errorCode;
|
|
2548
|
-
response.message = message;
|
|
2549
|
-
delete response.Message;
|
|
2550
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2551
|
-
};
|
|
2552
|
-
|
|
2553
|
-
export const deserializeAws_queryUpdateServiceAccessPoliciesCommand = async (
|
|
2554
|
-
output: __HttpResponse,
|
|
2555
|
-
context: __SerdeContext
|
|
2556
|
-
): Promise<UpdateServiceAccessPoliciesCommandOutput> => {
|
|
2557
|
-
if (output.statusCode >= 300) {
|
|
2558
|
-
return deserializeAws_queryUpdateServiceAccessPoliciesCommandError(output, context);
|
|
2559
|
-
}
|
|
2560
|
-
const data: any = await parseBody(output.body, context);
|
|
2561
|
-
let contents: any = {};
|
|
2562
|
-
contents = deserializeAws_queryUpdateServiceAccessPoliciesResponse(data.UpdateServiceAccessPoliciesResult, context);
|
|
2563
|
-
const response: UpdateServiceAccessPoliciesCommandOutput = {
|
|
2564
|
-
$metadata: deserializeMetadata(output),
|
|
2565
|
-
...contents,
|
|
2566
|
-
};
|
|
2567
|
-
return Promise.resolve(response);
|
|
2568
|
-
};
|
|
2569
|
-
|
|
2570
|
-
const deserializeAws_queryUpdateServiceAccessPoliciesCommandError = async (
|
|
2571
|
-
output: __HttpResponse,
|
|
2572
|
-
context: __SerdeContext
|
|
2573
|
-
): Promise<UpdateServiceAccessPoliciesCommandOutput> => {
|
|
2574
|
-
const parsedOutput: any = {
|
|
2575
|
-
...output,
|
|
2576
|
-
body: await parseBody(output.body, context),
|
|
2577
|
-
};
|
|
2578
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2579
|
-
let errorCode: string = "UnknownError";
|
|
2580
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2581
|
-
switch (errorCode) {
|
|
2582
|
-
case "BaseException":
|
|
2583
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
2584
|
-
response = {
|
|
2585
|
-
...(await deserializeAws_queryBaseExceptionResponse(parsedOutput, context)),
|
|
2586
|
-
name: errorCode,
|
|
2587
|
-
$metadata: deserializeMetadata(output),
|
|
2588
|
-
};
|
|
2589
|
-
break;
|
|
2590
|
-
case "InternalException":
|
|
2591
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
2592
|
-
response = {
|
|
2593
|
-
...(await deserializeAws_queryInternalExceptionResponse(parsedOutput, context)),
|
|
2594
|
-
name: errorCode,
|
|
2595
|
-
$metadata: deserializeMetadata(output),
|
|
2596
|
-
};
|
|
2597
|
-
break;
|
|
2598
|
-
case "InvalidTypeException":
|
|
2599
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
2600
|
-
response = {
|
|
2601
|
-
...(await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)),
|
|
2602
|
-
name: errorCode,
|
|
2603
|
-
$metadata: deserializeMetadata(output),
|
|
2604
|
-
};
|
|
2605
|
-
break;
|
|
2606
|
-
case "LimitExceededException":
|
|
2607
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
2608
|
-
response = {
|
|
2609
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2610
|
-
name: errorCode,
|
|
2611
|
-
$metadata: deserializeMetadata(output),
|
|
2612
|
-
};
|
|
2613
|
-
break;
|
|
2614
|
-
case "ResourceNotFoundException":
|
|
2615
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
2616
|
-
response = {
|
|
2617
|
-
...(await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2618
|
-
name: errorCode,
|
|
2619
|
-
$metadata: deserializeMetadata(output),
|
|
2620
|
-
};
|
|
2621
|
-
break;
|
|
2622
|
-
default:
|
|
2623
|
-
const parsedBody = parsedOutput.body;
|
|
2624
|
-
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
2625
|
-
response = {
|
|
2626
|
-
...parsedBody.Error,
|
|
2627
|
-
name: `${errorCode}`,
|
|
2628
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2629
|
-
$fault: "client",
|
|
2630
|
-
$metadata: deserializeMetadata(output),
|
|
2631
|
-
} as any;
|
|
2632
|
-
}
|
|
2633
|
-
const message = response.message || response.Message || errorCode;
|
|
2634
|
-
response.message = message;
|
|
2635
|
-
delete response.Message;
|
|
2636
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2637
|
-
};
|
|
2638
|
-
|
|
2639
|
-
const deserializeAws_queryBaseExceptionResponse = async (
|
|
2640
|
-
parsedOutput: any,
|
|
2641
|
-
context: __SerdeContext
|
|
2642
|
-
): Promise<BaseException> => {
|
|
2643
|
-
const body = parsedOutput.body;
|
|
2644
|
-
const deserialized: any = deserializeAws_queryBaseException(body.Error, context);
|
|
2645
|
-
const contents: BaseException = {
|
|
2646
|
-
name: "BaseException",
|
|
2647
|
-
$fault: "client",
|
|
2648
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2649
|
-
...deserialized,
|
|
2650
|
-
};
|
|
2651
|
-
return contents;
|
|
2652
|
-
};
|
|
2653
|
-
|
|
2654
|
-
const deserializeAws_queryDisabledOperationExceptionResponse = async (
|
|
2655
|
-
parsedOutput: any,
|
|
2656
|
-
context: __SerdeContext
|
|
2657
|
-
): Promise<DisabledOperationException> => {
|
|
2658
|
-
const body = parsedOutput.body;
|
|
2659
|
-
const deserialized: any = deserializeAws_queryDisabledOperationException(body.Error, context);
|
|
2660
|
-
const contents: DisabledOperationException = {
|
|
2661
|
-
name: "DisabledOperationException",
|
|
2662
|
-
$fault: "client",
|
|
2663
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2664
|
-
...deserialized,
|
|
2665
|
-
};
|
|
2666
|
-
return contents;
|
|
2667
|
-
};
|
|
2668
|
-
|
|
2669
|
-
const deserializeAws_queryInternalExceptionResponse = async (
|
|
2670
|
-
parsedOutput: any,
|
|
2671
|
-
context: __SerdeContext
|
|
2672
|
-
): Promise<InternalException> => {
|
|
2673
|
-
const body = parsedOutput.body;
|
|
2674
|
-
const deserialized: any = deserializeAws_queryInternalException(body.Error, context);
|
|
2675
|
-
const contents: InternalException = {
|
|
2676
|
-
name: "InternalException",
|
|
2677
|
-
$fault: "server",
|
|
2678
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2679
|
-
...deserialized,
|
|
2680
|
-
};
|
|
2681
|
-
return contents;
|
|
2682
|
-
};
|
|
2683
|
-
|
|
2684
|
-
const deserializeAws_queryInvalidTypeExceptionResponse = async (
|
|
2685
|
-
parsedOutput: any,
|
|
2686
|
-
context: __SerdeContext
|
|
2687
|
-
): Promise<InvalidTypeException> => {
|
|
2688
|
-
const body = parsedOutput.body;
|
|
2689
|
-
const deserialized: any = deserializeAws_queryInvalidTypeException(body.Error, context);
|
|
2690
|
-
const contents: InvalidTypeException = {
|
|
2691
|
-
name: "InvalidTypeException",
|
|
2692
|
-
$fault: "client",
|
|
2693
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2694
|
-
...deserialized,
|
|
2695
|
-
};
|
|
2696
|
-
return contents;
|
|
2697
|
-
};
|
|
2698
|
-
|
|
2699
|
-
const deserializeAws_queryLimitExceededExceptionResponse = async (
|
|
2700
|
-
parsedOutput: any,
|
|
2701
|
-
context: __SerdeContext
|
|
2702
|
-
): Promise<LimitExceededException> => {
|
|
2703
|
-
const body = parsedOutput.body;
|
|
2704
|
-
const deserialized: any = deserializeAws_queryLimitExceededException(body.Error, context);
|
|
2705
|
-
const contents: LimitExceededException = {
|
|
2706
|
-
name: "LimitExceededException",
|
|
2707
|
-
$fault: "client",
|
|
2708
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2709
|
-
...deserialized,
|
|
2710
|
-
};
|
|
2711
|
-
return contents;
|
|
2712
|
-
};
|
|
2713
|
-
|
|
2714
|
-
const deserializeAws_queryResourceAlreadyExistsExceptionResponse = async (
|
|
2715
|
-
parsedOutput: any,
|
|
2716
|
-
context: __SerdeContext
|
|
2717
|
-
): Promise<ResourceAlreadyExistsException> => {
|
|
2718
|
-
const body = parsedOutput.body;
|
|
2719
|
-
const deserialized: any = deserializeAws_queryResourceAlreadyExistsException(body.Error, context);
|
|
2720
|
-
const contents: ResourceAlreadyExistsException = {
|
|
2721
|
-
name: "ResourceAlreadyExistsException",
|
|
2722
|
-
$fault: "client",
|
|
2723
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2724
|
-
...deserialized,
|
|
2725
|
-
};
|
|
2726
|
-
return contents;
|
|
2727
|
-
};
|
|
2728
|
-
|
|
2729
|
-
const deserializeAws_queryResourceNotFoundExceptionResponse = async (
|
|
2730
|
-
parsedOutput: any,
|
|
2731
|
-
context: __SerdeContext
|
|
2732
|
-
): Promise<ResourceNotFoundException> => {
|
|
2733
|
-
const body = parsedOutput.body;
|
|
2734
|
-
const deserialized: any = deserializeAws_queryResourceNotFoundException(body.Error, context);
|
|
2735
|
-
const contents: ResourceNotFoundException = {
|
|
2736
|
-
name: "ResourceNotFoundException",
|
|
2737
|
-
$fault: "client",
|
|
2738
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2739
|
-
...deserialized,
|
|
2740
|
-
};
|
|
2741
|
-
return contents;
|
|
2742
|
-
};
|
|
2743
|
-
|
|
2744
|
-
const deserializeAws_queryValidationExceptionResponse = async (
|
|
2745
|
-
parsedOutput: any,
|
|
2746
|
-
context: __SerdeContext
|
|
2747
|
-
): Promise<ValidationException> => {
|
|
2748
|
-
const body = parsedOutput.body;
|
|
2749
|
-
const deserialized: any = deserializeAws_queryValidationException(body.Error, context);
|
|
2750
|
-
const contents: ValidationException = {
|
|
2751
|
-
name: "ValidationException",
|
|
2752
|
-
$fault: "client",
|
|
2753
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2754
|
-
...deserialized,
|
|
2755
|
-
};
|
|
2756
|
-
return contents;
|
|
2757
|
-
};
|
|
2758
|
-
|
|
2759
|
-
const serializeAws_queryAnalysisOptions = (input: AnalysisOptions, context: __SerdeContext): any => {
|
|
2760
|
-
const entries: any = {};
|
|
2761
|
-
if (input.Synonyms !== undefined && input.Synonyms !== null) {
|
|
2762
|
-
entries["Synonyms"] = input.Synonyms;
|
|
2763
|
-
}
|
|
2764
|
-
if (input.Stopwords !== undefined && input.Stopwords !== null) {
|
|
2765
|
-
entries["Stopwords"] = input.Stopwords;
|
|
2766
|
-
}
|
|
2767
|
-
if (input.StemmingDictionary !== undefined && input.StemmingDictionary !== null) {
|
|
2768
|
-
entries["StemmingDictionary"] = input.StemmingDictionary;
|
|
2769
|
-
}
|
|
2770
|
-
if (input.JapaneseTokenizationDictionary !== undefined && input.JapaneseTokenizationDictionary !== null) {
|
|
2771
|
-
entries["JapaneseTokenizationDictionary"] = input.JapaneseTokenizationDictionary;
|
|
2772
|
-
}
|
|
2773
|
-
if (input.AlgorithmicStemming !== undefined && input.AlgorithmicStemming !== null) {
|
|
2774
|
-
entries["AlgorithmicStemming"] = input.AlgorithmicStemming;
|
|
2775
|
-
}
|
|
2776
|
-
return entries;
|
|
2777
|
-
};
|
|
2778
|
-
|
|
2779
|
-
const serializeAws_queryAnalysisScheme = (input: AnalysisScheme, context: __SerdeContext): any => {
|
|
2780
|
-
const entries: any = {};
|
|
2781
|
-
if (input.AnalysisSchemeName !== undefined && input.AnalysisSchemeName !== null) {
|
|
2782
|
-
entries["AnalysisSchemeName"] = input.AnalysisSchemeName;
|
|
2783
|
-
}
|
|
2784
|
-
if (input.AnalysisSchemeLanguage !== undefined && input.AnalysisSchemeLanguage !== null) {
|
|
2785
|
-
entries["AnalysisSchemeLanguage"] = input.AnalysisSchemeLanguage;
|
|
2786
|
-
}
|
|
2787
|
-
if (input.AnalysisOptions !== undefined && input.AnalysisOptions !== null) {
|
|
2788
|
-
const memberEntries = serializeAws_queryAnalysisOptions(input.AnalysisOptions, context);
|
|
2789
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2790
|
-
const loc = `AnalysisOptions.${key}`;
|
|
2791
|
-
entries[loc] = value;
|
|
2792
|
-
});
|
|
2793
|
-
}
|
|
2794
|
-
return entries;
|
|
2795
|
-
};
|
|
2796
|
-
|
|
2797
|
-
const serializeAws_queryBuildSuggestersRequest = (input: BuildSuggestersRequest, context: __SerdeContext): any => {
|
|
2798
|
-
const entries: any = {};
|
|
2799
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
2800
|
-
entries["DomainName"] = input.DomainName;
|
|
2801
|
-
}
|
|
2802
|
-
return entries;
|
|
2803
|
-
};
|
|
2804
|
-
|
|
2805
|
-
const serializeAws_queryCreateDomainRequest = (input: CreateDomainRequest, context: __SerdeContext): any => {
|
|
2806
|
-
const entries: any = {};
|
|
2807
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
2808
|
-
entries["DomainName"] = input.DomainName;
|
|
2809
|
-
}
|
|
2810
|
-
return entries;
|
|
2811
|
-
};
|
|
2812
|
-
|
|
2813
|
-
const serializeAws_queryDateArrayOptions = (input: DateArrayOptions, context: __SerdeContext): any => {
|
|
2814
|
-
const entries: any = {};
|
|
2815
|
-
if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
|
|
2816
|
-
entries["DefaultValue"] = input.DefaultValue;
|
|
2817
|
-
}
|
|
2818
|
-
if (input.SourceFields !== undefined && input.SourceFields !== null) {
|
|
2819
|
-
entries["SourceFields"] = input.SourceFields;
|
|
2820
|
-
}
|
|
2821
|
-
if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
|
|
2822
|
-
entries["FacetEnabled"] = input.FacetEnabled;
|
|
2823
|
-
}
|
|
2824
|
-
if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
|
|
2825
|
-
entries["SearchEnabled"] = input.SearchEnabled;
|
|
2826
|
-
}
|
|
2827
|
-
if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
|
|
2828
|
-
entries["ReturnEnabled"] = input.ReturnEnabled;
|
|
2829
|
-
}
|
|
2830
|
-
return entries;
|
|
2831
|
-
};
|
|
2832
|
-
|
|
2833
|
-
const serializeAws_queryDateOptions = (input: DateOptions, context: __SerdeContext): any => {
|
|
2834
|
-
const entries: any = {};
|
|
2835
|
-
if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
|
|
2836
|
-
entries["DefaultValue"] = input.DefaultValue;
|
|
2837
|
-
}
|
|
2838
|
-
if (input.SourceField !== undefined && input.SourceField !== null) {
|
|
2839
|
-
entries["SourceField"] = input.SourceField;
|
|
2840
|
-
}
|
|
2841
|
-
if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
|
|
2842
|
-
entries["FacetEnabled"] = input.FacetEnabled;
|
|
2843
|
-
}
|
|
2844
|
-
if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
|
|
2845
|
-
entries["SearchEnabled"] = input.SearchEnabled;
|
|
2846
|
-
}
|
|
2847
|
-
if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
|
|
2848
|
-
entries["ReturnEnabled"] = input.ReturnEnabled;
|
|
2849
|
-
}
|
|
2850
|
-
if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
|
|
2851
|
-
entries["SortEnabled"] = input.SortEnabled;
|
|
2852
|
-
}
|
|
2853
|
-
return entries;
|
|
2854
|
-
};
|
|
2855
|
-
|
|
2856
|
-
const serializeAws_queryDefineAnalysisSchemeRequest = (
|
|
2857
|
-
input: DefineAnalysisSchemeRequest,
|
|
2858
|
-
context: __SerdeContext
|
|
2859
|
-
): any => {
|
|
2860
|
-
const entries: any = {};
|
|
2861
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
2862
|
-
entries["DomainName"] = input.DomainName;
|
|
2863
|
-
}
|
|
2864
|
-
if (input.AnalysisScheme !== undefined && input.AnalysisScheme !== null) {
|
|
2865
|
-
const memberEntries = serializeAws_queryAnalysisScheme(input.AnalysisScheme, context);
|
|
2866
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2867
|
-
const loc = `AnalysisScheme.${key}`;
|
|
2868
|
-
entries[loc] = value;
|
|
2869
|
-
});
|
|
2870
|
-
}
|
|
2871
|
-
return entries;
|
|
2872
|
-
};
|
|
2873
|
-
|
|
2874
|
-
const serializeAws_queryDefineExpressionRequest = (input: DefineExpressionRequest, context: __SerdeContext): any => {
|
|
2875
|
-
const entries: any = {};
|
|
2876
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
2877
|
-
entries["DomainName"] = input.DomainName;
|
|
2878
|
-
}
|
|
2879
|
-
if (input.Expression !== undefined && input.Expression !== null) {
|
|
2880
|
-
const memberEntries = serializeAws_queryExpression(input.Expression, context);
|
|
2881
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2882
|
-
const loc = `Expression.${key}`;
|
|
2883
|
-
entries[loc] = value;
|
|
2884
|
-
});
|
|
2885
|
-
}
|
|
2886
|
-
return entries;
|
|
2887
|
-
};
|
|
2888
|
-
|
|
2889
|
-
const serializeAws_queryDefineIndexFieldRequest = (input: DefineIndexFieldRequest, context: __SerdeContext): any => {
|
|
2890
|
-
const entries: any = {};
|
|
2891
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
2892
|
-
entries["DomainName"] = input.DomainName;
|
|
2893
|
-
}
|
|
2894
|
-
if (input.IndexField !== undefined && input.IndexField !== null) {
|
|
2895
|
-
const memberEntries = serializeAws_queryIndexField(input.IndexField, context);
|
|
2896
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2897
|
-
const loc = `IndexField.${key}`;
|
|
2898
|
-
entries[loc] = value;
|
|
2899
|
-
});
|
|
2900
|
-
}
|
|
2901
|
-
return entries;
|
|
2902
|
-
};
|
|
2903
|
-
|
|
2904
|
-
const serializeAws_queryDefineSuggesterRequest = (input: DefineSuggesterRequest, context: __SerdeContext): any => {
|
|
2905
|
-
const entries: any = {};
|
|
2906
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
2907
|
-
entries["DomainName"] = input.DomainName;
|
|
2908
|
-
}
|
|
2909
|
-
if (input.Suggester !== undefined && input.Suggester !== null) {
|
|
2910
|
-
const memberEntries = serializeAws_querySuggester(input.Suggester, context);
|
|
2911
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2912
|
-
const loc = `Suggester.${key}`;
|
|
2913
|
-
entries[loc] = value;
|
|
2914
|
-
});
|
|
2915
|
-
}
|
|
2916
|
-
return entries;
|
|
2917
|
-
};
|
|
2918
|
-
|
|
2919
|
-
const serializeAws_queryDeleteAnalysisSchemeRequest = (
|
|
2920
|
-
input: DeleteAnalysisSchemeRequest,
|
|
2921
|
-
context: __SerdeContext
|
|
2922
|
-
): any => {
|
|
2923
|
-
const entries: any = {};
|
|
2924
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
2925
|
-
entries["DomainName"] = input.DomainName;
|
|
2926
|
-
}
|
|
2927
|
-
if (input.AnalysisSchemeName !== undefined && input.AnalysisSchemeName !== null) {
|
|
2928
|
-
entries["AnalysisSchemeName"] = input.AnalysisSchemeName;
|
|
2929
|
-
}
|
|
2930
|
-
return entries;
|
|
2931
|
-
};
|
|
2932
|
-
|
|
2933
|
-
const serializeAws_queryDeleteDomainRequest = (input: DeleteDomainRequest, context: __SerdeContext): any => {
|
|
2934
|
-
const entries: any = {};
|
|
2935
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
2936
|
-
entries["DomainName"] = input.DomainName;
|
|
2937
|
-
}
|
|
2938
|
-
return entries;
|
|
2939
|
-
};
|
|
2940
|
-
|
|
2941
|
-
const serializeAws_queryDeleteExpressionRequest = (input: DeleteExpressionRequest, context: __SerdeContext): any => {
|
|
2942
|
-
const entries: any = {};
|
|
2943
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
2944
|
-
entries["DomainName"] = input.DomainName;
|
|
2945
|
-
}
|
|
2946
|
-
if (input.ExpressionName !== undefined && input.ExpressionName !== null) {
|
|
2947
|
-
entries["ExpressionName"] = input.ExpressionName;
|
|
2948
|
-
}
|
|
2949
|
-
return entries;
|
|
2950
|
-
};
|
|
2951
|
-
|
|
2952
|
-
const serializeAws_queryDeleteIndexFieldRequest = (input: DeleteIndexFieldRequest, context: __SerdeContext): any => {
|
|
2953
|
-
const entries: any = {};
|
|
2954
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
2955
|
-
entries["DomainName"] = input.DomainName;
|
|
2956
|
-
}
|
|
2957
|
-
if (input.IndexFieldName !== undefined && input.IndexFieldName !== null) {
|
|
2958
|
-
entries["IndexFieldName"] = input.IndexFieldName;
|
|
2959
|
-
}
|
|
2960
|
-
return entries;
|
|
2961
|
-
};
|
|
2962
|
-
|
|
2963
|
-
const serializeAws_queryDeleteSuggesterRequest = (input: DeleteSuggesterRequest, context: __SerdeContext): any => {
|
|
2964
|
-
const entries: any = {};
|
|
2965
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
2966
|
-
entries["DomainName"] = input.DomainName;
|
|
2967
|
-
}
|
|
2968
|
-
if (input.SuggesterName !== undefined && input.SuggesterName !== null) {
|
|
2969
|
-
entries["SuggesterName"] = input.SuggesterName;
|
|
2970
|
-
}
|
|
2971
|
-
return entries;
|
|
2972
|
-
};
|
|
2973
|
-
|
|
2974
|
-
const serializeAws_queryDescribeAnalysisSchemesRequest = (
|
|
2975
|
-
input: DescribeAnalysisSchemesRequest,
|
|
2976
|
-
context: __SerdeContext
|
|
2977
|
-
): any => {
|
|
2978
|
-
const entries: any = {};
|
|
2979
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
2980
|
-
entries["DomainName"] = input.DomainName;
|
|
2981
|
-
}
|
|
2982
|
-
if (input.AnalysisSchemeNames !== undefined && input.AnalysisSchemeNames !== null) {
|
|
2983
|
-
const memberEntries = serializeAws_queryStandardNameList(input.AnalysisSchemeNames, context);
|
|
2984
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2985
|
-
const loc = `AnalysisSchemeNames.${key}`;
|
|
2986
|
-
entries[loc] = value;
|
|
2987
|
-
});
|
|
2988
|
-
}
|
|
2989
|
-
if (input.Deployed !== undefined && input.Deployed !== null) {
|
|
2990
|
-
entries["Deployed"] = input.Deployed;
|
|
2991
|
-
}
|
|
2992
|
-
return entries;
|
|
2993
|
-
};
|
|
2994
|
-
|
|
2995
|
-
const serializeAws_queryDescribeAvailabilityOptionsRequest = (
|
|
2996
|
-
input: DescribeAvailabilityOptionsRequest,
|
|
2997
|
-
context: __SerdeContext
|
|
2998
|
-
): any => {
|
|
2999
|
-
const entries: any = {};
|
|
3000
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
3001
|
-
entries["DomainName"] = input.DomainName;
|
|
3002
|
-
}
|
|
3003
|
-
if (input.Deployed !== undefined && input.Deployed !== null) {
|
|
3004
|
-
entries["Deployed"] = input.Deployed;
|
|
3005
|
-
}
|
|
3006
|
-
return entries;
|
|
3007
|
-
};
|
|
3008
|
-
|
|
3009
|
-
const serializeAws_queryDescribeDomainEndpointOptionsRequest = (
|
|
3010
|
-
input: DescribeDomainEndpointOptionsRequest,
|
|
3011
|
-
context: __SerdeContext
|
|
3012
|
-
): any => {
|
|
3013
|
-
const entries: any = {};
|
|
3014
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
3015
|
-
entries["DomainName"] = input.DomainName;
|
|
3016
|
-
}
|
|
3017
|
-
if (input.Deployed !== undefined && input.Deployed !== null) {
|
|
3018
|
-
entries["Deployed"] = input.Deployed;
|
|
3019
|
-
}
|
|
3020
|
-
return entries;
|
|
3021
|
-
};
|
|
3022
|
-
|
|
3023
|
-
const serializeAws_queryDescribeDomainsRequest = (input: DescribeDomainsRequest, context: __SerdeContext): any => {
|
|
3024
|
-
const entries: any = {};
|
|
3025
|
-
if (input.DomainNames !== undefined && input.DomainNames !== null) {
|
|
3026
|
-
const memberEntries = serializeAws_queryDomainNameList(input.DomainNames, context);
|
|
3027
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3028
|
-
const loc = `DomainNames.${key}`;
|
|
3029
|
-
entries[loc] = value;
|
|
3030
|
-
});
|
|
3031
|
-
}
|
|
3032
|
-
return entries;
|
|
3033
|
-
};
|
|
3034
|
-
|
|
3035
|
-
const serializeAws_queryDescribeExpressionsRequest = (
|
|
3036
|
-
input: DescribeExpressionsRequest,
|
|
3037
|
-
context: __SerdeContext
|
|
3038
|
-
): any => {
|
|
3039
|
-
const entries: any = {};
|
|
3040
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
3041
|
-
entries["DomainName"] = input.DomainName;
|
|
3042
|
-
}
|
|
3043
|
-
if (input.ExpressionNames !== undefined && input.ExpressionNames !== null) {
|
|
3044
|
-
const memberEntries = serializeAws_queryStandardNameList(input.ExpressionNames, context);
|
|
3045
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3046
|
-
const loc = `ExpressionNames.${key}`;
|
|
3047
|
-
entries[loc] = value;
|
|
3048
|
-
});
|
|
3049
|
-
}
|
|
3050
|
-
if (input.Deployed !== undefined && input.Deployed !== null) {
|
|
3051
|
-
entries["Deployed"] = input.Deployed;
|
|
3052
|
-
}
|
|
3053
|
-
return entries;
|
|
3054
|
-
};
|
|
3055
|
-
|
|
3056
|
-
const serializeAws_queryDescribeIndexFieldsRequest = (
|
|
3057
|
-
input: DescribeIndexFieldsRequest,
|
|
3058
|
-
context: __SerdeContext
|
|
3059
|
-
): any => {
|
|
3060
|
-
const entries: any = {};
|
|
3061
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
3062
|
-
entries["DomainName"] = input.DomainName;
|
|
3063
|
-
}
|
|
3064
|
-
if (input.FieldNames !== undefined && input.FieldNames !== null) {
|
|
3065
|
-
const memberEntries = serializeAws_queryDynamicFieldNameList(input.FieldNames, context);
|
|
3066
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3067
|
-
const loc = `FieldNames.${key}`;
|
|
3068
|
-
entries[loc] = value;
|
|
3069
|
-
});
|
|
3070
|
-
}
|
|
3071
|
-
if (input.Deployed !== undefined && input.Deployed !== null) {
|
|
3072
|
-
entries["Deployed"] = input.Deployed;
|
|
3073
|
-
}
|
|
3074
|
-
return entries;
|
|
3075
|
-
};
|
|
3076
|
-
|
|
3077
|
-
const serializeAws_queryDescribeScalingParametersRequest = (
|
|
3078
|
-
input: DescribeScalingParametersRequest,
|
|
3079
|
-
context: __SerdeContext
|
|
3080
|
-
): any => {
|
|
3081
|
-
const entries: any = {};
|
|
3082
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
3083
|
-
entries["DomainName"] = input.DomainName;
|
|
3084
|
-
}
|
|
3085
|
-
return entries;
|
|
3086
|
-
};
|
|
3087
|
-
|
|
3088
|
-
const serializeAws_queryDescribeServiceAccessPoliciesRequest = (
|
|
3089
|
-
input: DescribeServiceAccessPoliciesRequest,
|
|
3090
|
-
context: __SerdeContext
|
|
3091
|
-
): any => {
|
|
3092
|
-
const entries: any = {};
|
|
3093
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
3094
|
-
entries["DomainName"] = input.DomainName;
|
|
3095
|
-
}
|
|
3096
|
-
if (input.Deployed !== undefined && input.Deployed !== null) {
|
|
3097
|
-
entries["Deployed"] = input.Deployed;
|
|
3098
|
-
}
|
|
3099
|
-
return entries;
|
|
3100
|
-
};
|
|
3101
|
-
|
|
3102
|
-
const serializeAws_queryDescribeSuggestersRequest = (
|
|
3103
|
-
input: DescribeSuggestersRequest,
|
|
3104
|
-
context: __SerdeContext
|
|
3105
|
-
): any => {
|
|
3106
|
-
const entries: any = {};
|
|
3107
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
3108
|
-
entries["DomainName"] = input.DomainName;
|
|
3109
|
-
}
|
|
3110
|
-
if (input.SuggesterNames !== undefined && input.SuggesterNames !== null) {
|
|
3111
|
-
const memberEntries = serializeAws_queryStandardNameList(input.SuggesterNames, context);
|
|
3112
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3113
|
-
const loc = `SuggesterNames.${key}`;
|
|
3114
|
-
entries[loc] = value;
|
|
3115
|
-
});
|
|
3116
|
-
}
|
|
3117
|
-
if (input.Deployed !== undefined && input.Deployed !== null) {
|
|
3118
|
-
entries["Deployed"] = input.Deployed;
|
|
3119
|
-
}
|
|
3120
|
-
return entries;
|
|
3121
|
-
};
|
|
3122
|
-
|
|
3123
|
-
const serializeAws_queryDocumentSuggesterOptions = (input: DocumentSuggesterOptions, context: __SerdeContext): any => {
|
|
3124
|
-
const entries: any = {};
|
|
3125
|
-
if (input.SourceField !== undefined && input.SourceField !== null) {
|
|
3126
|
-
entries["SourceField"] = input.SourceField;
|
|
3127
|
-
}
|
|
3128
|
-
if (input.FuzzyMatching !== undefined && input.FuzzyMatching !== null) {
|
|
3129
|
-
entries["FuzzyMatching"] = input.FuzzyMatching;
|
|
3130
|
-
}
|
|
3131
|
-
if (input.SortExpression !== undefined && input.SortExpression !== null) {
|
|
3132
|
-
entries["SortExpression"] = input.SortExpression;
|
|
3133
|
-
}
|
|
3134
|
-
return entries;
|
|
3135
|
-
};
|
|
3136
|
-
|
|
3137
|
-
const serializeAws_queryDomainEndpointOptions = (input: DomainEndpointOptions, context: __SerdeContext): any => {
|
|
3138
|
-
const entries: any = {};
|
|
3139
|
-
if (input.EnforceHTTPS !== undefined && input.EnforceHTTPS !== null) {
|
|
3140
|
-
entries["EnforceHTTPS"] = input.EnforceHTTPS;
|
|
3141
|
-
}
|
|
3142
|
-
if (input.TLSSecurityPolicy !== undefined && input.TLSSecurityPolicy !== null) {
|
|
3143
|
-
entries["TLSSecurityPolicy"] = input.TLSSecurityPolicy;
|
|
3144
|
-
}
|
|
3145
|
-
return entries;
|
|
3146
|
-
};
|
|
3147
|
-
|
|
3148
|
-
const serializeAws_queryDomainNameList = (input: string[], context: __SerdeContext): any => {
|
|
3149
|
-
const entries: any = {};
|
|
3150
|
-
let counter = 1;
|
|
3151
|
-
for (let entry of input) {
|
|
3152
|
-
if (entry === null) {
|
|
3153
|
-
continue;
|
|
3154
|
-
}
|
|
3155
|
-
entries[`member.${counter}`] = entry;
|
|
3156
|
-
counter++;
|
|
3157
|
-
}
|
|
3158
|
-
return entries;
|
|
3159
|
-
};
|
|
3160
|
-
|
|
3161
|
-
const serializeAws_queryDoubleArrayOptions = (input: DoubleArrayOptions, context: __SerdeContext): any => {
|
|
3162
|
-
const entries: any = {};
|
|
3163
|
-
if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
|
|
3164
|
-
entries["DefaultValue"] = __serializeFloat(input.DefaultValue);
|
|
3165
|
-
}
|
|
3166
|
-
if (input.SourceFields !== undefined && input.SourceFields !== null) {
|
|
3167
|
-
entries["SourceFields"] = input.SourceFields;
|
|
3168
|
-
}
|
|
3169
|
-
if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
|
|
3170
|
-
entries["FacetEnabled"] = input.FacetEnabled;
|
|
3171
|
-
}
|
|
3172
|
-
if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
|
|
3173
|
-
entries["SearchEnabled"] = input.SearchEnabled;
|
|
3174
|
-
}
|
|
3175
|
-
if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
|
|
3176
|
-
entries["ReturnEnabled"] = input.ReturnEnabled;
|
|
3177
|
-
}
|
|
3178
|
-
return entries;
|
|
3179
|
-
};
|
|
3180
|
-
|
|
3181
|
-
const serializeAws_queryDoubleOptions = (input: DoubleOptions, context: __SerdeContext): any => {
|
|
3182
|
-
const entries: any = {};
|
|
3183
|
-
if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
|
|
3184
|
-
entries["DefaultValue"] = __serializeFloat(input.DefaultValue);
|
|
3185
|
-
}
|
|
3186
|
-
if (input.SourceField !== undefined && input.SourceField !== null) {
|
|
3187
|
-
entries["SourceField"] = input.SourceField;
|
|
3188
|
-
}
|
|
3189
|
-
if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
|
|
3190
|
-
entries["FacetEnabled"] = input.FacetEnabled;
|
|
3191
|
-
}
|
|
3192
|
-
if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
|
|
3193
|
-
entries["SearchEnabled"] = input.SearchEnabled;
|
|
3194
|
-
}
|
|
3195
|
-
if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
|
|
3196
|
-
entries["ReturnEnabled"] = input.ReturnEnabled;
|
|
3197
|
-
}
|
|
3198
|
-
if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
|
|
3199
|
-
entries["SortEnabled"] = input.SortEnabled;
|
|
3200
|
-
}
|
|
3201
|
-
return entries;
|
|
3202
|
-
};
|
|
3203
|
-
|
|
3204
|
-
const serializeAws_queryDynamicFieldNameList = (input: string[], context: __SerdeContext): any => {
|
|
3205
|
-
const entries: any = {};
|
|
3206
|
-
let counter = 1;
|
|
3207
|
-
for (let entry of input) {
|
|
3208
|
-
if (entry === null) {
|
|
3209
|
-
continue;
|
|
3210
|
-
}
|
|
3211
|
-
entries[`member.${counter}`] = entry;
|
|
3212
|
-
counter++;
|
|
3213
|
-
}
|
|
3214
|
-
return entries;
|
|
3215
|
-
};
|
|
3216
|
-
|
|
3217
|
-
const serializeAws_queryExpression = (input: Expression, context: __SerdeContext): any => {
|
|
3218
|
-
const entries: any = {};
|
|
3219
|
-
if (input.ExpressionName !== undefined && input.ExpressionName !== null) {
|
|
3220
|
-
entries["ExpressionName"] = input.ExpressionName;
|
|
3221
|
-
}
|
|
3222
|
-
if (input.ExpressionValue !== undefined && input.ExpressionValue !== null) {
|
|
3223
|
-
entries["ExpressionValue"] = input.ExpressionValue;
|
|
3224
|
-
}
|
|
3225
|
-
return entries;
|
|
3226
|
-
};
|
|
3227
|
-
|
|
3228
|
-
const serializeAws_queryIndexDocumentsRequest = (input: IndexDocumentsRequest, context: __SerdeContext): any => {
|
|
3229
|
-
const entries: any = {};
|
|
3230
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
3231
|
-
entries["DomainName"] = input.DomainName;
|
|
3232
|
-
}
|
|
3233
|
-
return entries;
|
|
3234
|
-
};
|
|
3235
|
-
|
|
3236
|
-
const serializeAws_queryIndexField = (input: IndexField, context: __SerdeContext): any => {
|
|
3237
|
-
const entries: any = {};
|
|
3238
|
-
if (input.IndexFieldName !== undefined && input.IndexFieldName !== null) {
|
|
3239
|
-
entries["IndexFieldName"] = input.IndexFieldName;
|
|
3240
|
-
}
|
|
3241
|
-
if (input.IndexFieldType !== undefined && input.IndexFieldType !== null) {
|
|
3242
|
-
entries["IndexFieldType"] = input.IndexFieldType;
|
|
3243
|
-
}
|
|
3244
|
-
if (input.IntOptions !== undefined && input.IntOptions !== null) {
|
|
3245
|
-
const memberEntries = serializeAws_queryIntOptions(input.IntOptions, context);
|
|
3246
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3247
|
-
const loc = `IntOptions.${key}`;
|
|
3248
|
-
entries[loc] = value;
|
|
3249
|
-
});
|
|
3250
|
-
}
|
|
3251
|
-
if (input.DoubleOptions !== undefined && input.DoubleOptions !== null) {
|
|
3252
|
-
const memberEntries = serializeAws_queryDoubleOptions(input.DoubleOptions, context);
|
|
3253
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3254
|
-
const loc = `DoubleOptions.${key}`;
|
|
3255
|
-
entries[loc] = value;
|
|
3256
|
-
});
|
|
3257
|
-
}
|
|
3258
|
-
if (input.LiteralOptions !== undefined && input.LiteralOptions !== null) {
|
|
3259
|
-
const memberEntries = serializeAws_queryLiteralOptions(input.LiteralOptions, context);
|
|
3260
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3261
|
-
const loc = `LiteralOptions.${key}`;
|
|
3262
|
-
entries[loc] = value;
|
|
3263
|
-
});
|
|
3264
|
-
}
|
|
3265
|
-
if (input.TextOptions !== undefined && input.TextOptions !== null) {
|
|
3266
|
-
const memberEntries = serializeAws_queryTextOptions(input.TextOptions, context);
|
|
3267
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3268
|
-
const loc = `TextOptions.${key}`;
|
|
3269
|
-
entries[loc] = value;
|
|
3270
|
-
});
|
|
3271
|
-
}
|
|
3272
|
-
if (input.DateOptions !== undefined && input.DateOptions !== null) {
|
|
3273
|
-
const memberEntries = serializeAws_queryDateOptions(input.DateOptions, context);
|
|
3274
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3275
|
-
const loc = `DateOptions.${key}`;
|
|
3276
|
-
entries[loc] = value;
|
|
3277
|
-
});
|
|
3278
|
-
}
|
|
3279
|
-
if (input.LatLonOptions !== undefined && input.LatLonOptions !== null) {
|
|
3280
|
-
const memberEntries = serializeAws_queryLatLonOptions(input.LatLonOptions, context);
|
|
3281
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3282
|
-
const loc = `LatLonOptions.${key}`;
|
|
3283
|
-
entries[loc] = value;
|
|
3284
|
-
});
|
|
3285
|
-
}
|
|
3286
|
-
if (input.IntArrayOptions !== undefined && input.IntArrayOptions !== null) {
|
|
3287
|
-
const memberEntries = serializeAws_queryIntArrayOptions(input.IntArrayOptions, context);
|
|
3288
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3289
|
-
const loc = `IntArrayOptions.${key}`;
|
|
3290
|
-
entries[loc] = value;
|
|
3291
|
-
});
|
|
3292
|
-
}
|
|
3293
|
-
if (input.DoubleArrayOptions !== undefined && input.DoubleArrayOptions !== null) {
|
|
3294
|
-
const memberEntries = serializeAws_queryDoubleArrayOptions(input.DoubleArrayOptions, context);
|
|
3295
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3296
|
-
const loc = `DoubleArrayOptions.${key}`;
|
|
3297
|
-
entries[loc] = value;
|
|
3298
|
-
});
|
|
3299
|
-
}
|
|
3300
|
-
if (input.LiteralArrayOptions !== undefined && input.LiteralArrayOptions !== null) {
|
|
3301
|
-
const memberEntries = serializeAws_queryLiteralArrayOptions(input.LiteralArrayOptions, context);
|
|
3302
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3303
|
-
const loc = `LiteralArrayOptions.${key}`;
|
|
3304
|
-
entries[loc] = value;
|
|
3305
|
-
});
|
|
3306
|
-
}
|
|
3307
|
-
if (input.TextArrayOptions !== undefined && input.TextArrayOptions !== null) {
|
|
3308
|
-
const memberEntries = serializeAws_queryTextArrayOptions(input.TextArrayOptions, context);
|
|
3309
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3310
|
-
const loc = `TextArrayOptions.${key}`;
|
|
3311
|
-
entries[loc] = value;
|
|
3312
|
-
});
|
|
3313
|
-
}
|
|
3314
|
-
if (input.DateArrayOptions !== undefined && input.DateArrayOptions !== null) {
|
|
3315
|
-
const memberEntries = serializeAws_queryDateArrayOptions(input.DateArrayOptions, context);
|
|
3316
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3317
|
-
const loc = `DateArrayOptions.${key}`;
|
|
3318
|
-
entries[loc] = value;
|
|
3319
|
-
});
|
|
3320
|
-
}
|
|
3321
|
-
return entries;
|
|
3322
|
-
};
|
|
3323
|
-
|
|
3324
|
-
const serializeAws_queryIntArrayOptions = (input: IntArrayOptions, context: __SerdeContext): any => {
|
|
3325
|
-
const entries: any = {};
|
|
3326
|
-
if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
|
|
3327
|
-
entries["DefaultValue"] = input.DefaultValue;
|
|
3328
|
-
}
|
|
3329
|
-
if (input.SourceFields !== undefined && input.SourceFields !== null) {
|
|
3330
|
-
entries["SourceFields"] = input.SourceFields;
|
|
3331
|
-
}
|
|
3332
|
-
if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
|
|
3333
|
-
entries["FacetEnabled"] = input.FacetEnabled;
|
|
3334
|
-
}
|
|
3335
|
-
if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
|
|
3336
|
-
entries["SearchEnabled"] = input.SearchEnabled;
|
|
3337
|
-
}
|
|
3338
|
-
if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
|
|
3339
|
-
entries["ReturnEnabled"] = input.ReturnEnabled;
|
|
3340
|
-
}
|
|
3341
|
-
return entries;
|
|
3342
|
-
};
|
|
3343
|
-
|
|
3344
|
-
const serializeAws_queryIntOptions = (input: IntOptions, context: __SerdeContext): any => {
|
|
3345
|
-
const entries: any = {};
|
|
3346
|
-
if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
|
|
3347
|
-
entries["DefaultValue"] = input.DefaultValue;
|
|
3348
|
-
}
|
|
3349
|
-
if (input.SourceField !== undefined && input.SourceField !== null) {
|
|
3350
|
-
entries["SourceField"] = input.SourceField;
|
|
3351
|
-
}
|
|
3352
|
-
if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
|
|
3353
|
-
entries["FacetEnabled"] = input.FacetEnabled;
|
|
3354
|
-
}
|
|
3355
|
-
if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
|
|
3356
|
-
entries["SearchEnabled"] = input.SearchEnabled;
|
|
3357
|
-
}
|
|
3358
|
-
if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
|
|
3359
|
-
entries["ReturnEnabled"] = input.ReturnEnabled;
|
|
3360
|
-
}
|
|
3361
|
-
if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
|
|
3362
|
-
entries["SortEnabled"] = input.SortEnabled;
|
|
3363
|
-
}
|
|
3364
|
-
return entries;
|
|
3365
|
-
};
|
|
3366
|
-
|
|
3367
|
-
const serializeAws_queryLatLonOptions = (input: LatLonOptions, context: __SerdeContext): any => {
|
|
3368
|
-
const entries: any = {};
|
|
3369
|
-
if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
|
|
3370
|
-
entries["DefaultValue"] = input.DefaultValue;
|
|
3371
|
-
}
|
|
3372
|
-
if (input.SourceField !== undefined && input.SourceField !== null) {
|
|
3373
|
-
entries["SourceField"] = input.SourceField;
|
|
3374
|
-
}
|
|
3375
|
-
if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
|
|
3376
|
-
entries["FacetEnabled"] = input.FacetEnabled;
|
|
3377
|
-
}
|
|
3378
|
-
if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
|
|
3379
|
-
entries["SearchEnabled"] = input.SearchEnabled;
|
|
3380
|
-
}
|
|
3381
|
-
if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
|
|
3382
|
-
entries["ReturnEnabled"] = input.ReturnEnabled;
|
|
3383
|
-
}
|
|
3384
|
-
if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
|
|
3385
|
-
entries["SortEnabled"] = input.SortEnabled;
|
|
3386
|
-
}
|
|
3387
|
-
return entries;
|
|
3388
|
-
};
|
|
3389
|
-
|
|
3390
|
-
const serializeAws_queryLiteralArrayOptions = (input: LiteralArrayOptions, context: __SerdeContext): any => {
|
|
3391
|
-
const entries: any = {};
|
|
3392
|
-
if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
|
|
3393
|
-
entries["DefaultValue"] = input.DefaultValue;
|
|
3394
|
-
}
|
|
3395
|
-
if (input.SourceFields !== undefined && input.SourceFields !== null) {
|
|
3396
|
-
entries["SourceFields"] = input.SourceFields;
|
|
3397
|
-
}
|
|
3398
|
-
if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
|
|
3399
|
-
entries["FacetEnabled"] = input.FacetEnabled;
|
|
3400
|
-
}
|
|
3401
|
-
if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
|
|
3402
|
-
entries["SearchEnabled"] = input.SearchEnabled;
|
|
3403
|
-
}
|
|
3404
|
-
if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
|
|
3405
|
-
entries["ReturnEnabled"] = input.ReturnEnabled;
|
|
3406
|
-
}
|
|
3407
|
-
return entries;
|
|
3408
|
-
};
|
|
3409
|
-
|
|
3410
|
-
const serializeAws_queryLiteralOptions = (input: LiteralOptions, context: __SerdeContext): any => {
|
|
3411
|
-
const entries: any = {};
|
|
3412
|
-
if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
|
|
3413
|
-
entries["DefaultValue"] = input.DefaultValue;
|
|
3414
|
-
}
|
|
3415
|
-
if (input.SourceField !== undefined && input.SourceField !== null) {
|
|
3416
|
-
entries["SourceField"] = input.SourceField;
|
|
3417
|
-
}
|
|
3418
|
-
if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
|
|
3419
|
-
entries["FacetEnabled"] = input.FacetEnabled;
|
|
3420
|
-
}
|
|
3421
|
-
if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
|
|
3422
|
-
entries["SearchEnabled"] = input.SearchEnabled;
|
|
3423
|
-
}
|
|
3424
|
-
if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
|
|
3425
|
-
entries["ReturnEnabled"] = input.ReturnEnabled;
|
|
3426
|
-
}
|
|
3427
|
-
if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
|
|
3428
|
-
entries["SortEnabled"] = input.SortEnabled;
|
|
3429
|
-
}
|
|
3430
|
-
return entries;
|
|
3431
|
-
};
|
|
3432
|
-
|
|
3433
|
-
const serializeAws_queryScalingParameters = (input: ScalingParameters, context: __SerdeContext): any => {
|
|
3434
|
-
const entries: any = {};
|
|
3435
|
-
if (input.DesiredInstanceType !== undefined && input.DesiredInstanceType !== null) {
|
|
3436
|
-
entries["DesiredInstanceType"] = input.DesiredInstanceType;
|
|
3437
|
-
}
|
|
3438
|
-
if (input.DesiredReplicationCount !== undefined && input.DesiredReplicationCount !== null) {
|
|
3439
|
-
entries["DesiredReplicationCount"] = input.DesiredReplicationCount;
|
|
3440
|
-
}
|
|
3441
|
-
if (input.DesiredPartitionCount !== undefined && input.DesiredPartitionCount !== null) {
|
|
3442
|
-
entries["DesiredPartitionCount"] = input.DesiredPartitionCount;
|
|
3443
|
-
}
|
|
3444
|
-
return entries;
|
|
3445
|
-
};
|
|
3446
|
-
|
|
3447
|
-
const serializeAws_queryStandardNameList = (input: string[], context: __SerdeContext): any => {
|
|
3448
|
-
const entries: any = {};
|
|
3449
|
-
let counter = 1;
|
|
3450
|
-
for (let entry of input) {
|
|
3451
|
-
if (entry === null) {
|
|
3452
|
-
continue;
|
|
3453
|
-
}
|
|
3454
|
-
entries[`member.${counter}`] = entry;
|
|
3455
|
-
counter++;
|
|
3456
|
-
}
|
|
3457
|
-
return entries;
|
|
3458
|
-
};
|
|
3459
|
-
|
|
3460
|
-
const serializeAws_querySuggester = (input: Suggester, context: __SerdeContext): any => {
|
|
3461
|
-
const entries: any = {};
|
|
3462
|
-
if (input.SuggesterName !== undefined && input.SuggesterName !== null) {
|
|
3463
|
-
entries["SuggesterName"] = input.SuggesterName;
|
|
3464
|
-
}
|
|
3465
|
-
if (input.DocumentSuggesterOptions !== undefined && input.DocumentSuggesterOptions !== null) {
|
|
3466
|
-
const memberEntries = serializeAws_queryDocumentSuggesterOptions(input.DocumentSuggesterOptions, context);
|
|
3467
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3468
|
-
const loc = `DocumentSuggesterOptions.${key}`;
|
|
3469
|
-
entries[loc] = value;
|
|
3470
|
-
});
|
|
3471
|
-
}
|
|
3472
|
-
return entries;
|
|
3473
|
-
};
|
|
3474
|
-
|
|
3475
|
-
const serializeAws_queryTextArrayOptions = (input: TextArrayOptions, context: __SerdeContext): any => {
|
|
3476
|
-
const entries: any = {};
|
|
3477
|
-
if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
|
|
3478
|
-
entries["DefaultValue"] = input.DefaultValue;
|
|
3479
|
-
}
|
|
3480
|
-
if (input.SourceFields !== undefined && input.SourceFields !== null) {
|
|
3481
|
-
entries["SourceFields"] = input.SourceFields;
|
|
3482
|
-
}
|
|
3483
|
-
if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
|
|
3484
|
-
entries["ReturnEnabled"] = input.ReturnEnabled;
|
|
3485
|
-
}
|
|
3486
|
-
if (input.HighlightEnabled !== undefined && input.HighlightEnabled !== null) {
|
|
3487
|
-
entries["HighlightEnabled"] = input.HighlightEnabled;
|
|
3488
|
-
}
|
|
3489
|
-
if (input.AnalysisScheme !== undefined && input.AnalysisScheme !== null) {
|
|
3490
|
-
entries["AnalysisScheme"] = input.AnalysisScheme;
|
|
3491
|
-
}
|
|
3492
|
-
return entries;
|
|
3493
|
-
};
|
|
3494
|
-
|
|
3495
|
-
const serializeAws_queryTextOptions = (input: TextOptions, context: __SerdeContext): any => {
|
|
3496
|
-
const entries: any = {};
|
|
3497
|
-
if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
|
|
3498
|
-
entries["DefaultValue"] = input.DefaultValue;
|
|
3499
|
-
}
|
|
3500
|
-
if (input.SourceField !== undefined && input.SourceField !== null) {
|
|
3501
|
-
entries["SourceField"] = input.SourceField;
|
|
3502
|
-
}
|
|
3503
|
-
if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
|
|
3504
|
-
entries["ReturnEnabled"] = input.ReturnEnabled;
|
|
3505
|
-
}
|
|
3506
|
-
if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
|
|
3507
|
-
entries["SortEnabled"] = input.SortEnabled;
|
|
3508
|
-
}
|
|
3509
|
-
if (input.HighlightEnabled !== undefined && input.HighlightEnabled !== null) {
|
|
3510
|
-
entries["HighlightEnabled"] = input.HighlightEnabled;
|
|
3511
|
-
}
|
|
3512
|
-
if (input.AnalysisScheme !== undefined && input.AnalysisScheme !== null) {
|
|
3513
|
-
entries["AnalysisScheme"] = input.AnalysisScheme;
|
|
3514
|
-
}
|
|
3515
|
-
return entries;
|
|
3516
|
-
};
|
|
3517
|
-
|
|
3518
|
-
const serializeAws_queryUpdateAvailabilityOptionsRequest = (
|
|
3519
|
-
input: UpdateAvailabilityOptionsRequest,
|
|
3520
|
-
context: __SerdeContext
|
|
3521
|
-
): any => {
|
|
3522
|
-
const entries: any = {};
|
|
3523
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
3524
|
-
entries["DomainName"] = input.DomainName;
|
|
3525
|
-
}
|
|
3526
|
-
if (input.MultiAZ !== undefined && input.MultiAZ !== null) {
|
|
3527
|
-
entries["MultiAZ"] = input.MultiAZ;
|
|
3528
|
-
}
|
|
3529
|
-
return entries;
|
|
3530
|
-
};
|
|
3531
|
-
|
|
3532
|
-
const serializeAws_queryUpdateDomainEndpointOptionsRequest = (
|
|
3533
|
-
input: UpdateDomainEndpointOptionsRequest,
|
|
3534
|
-
context: __SerdeContext
|
|
3535
|
-
): any => {
|
|
3536
|
-
const entries: any = {};
|
|
3537
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
3538
|
-
entries["DomainName"] = input.DomainName;
|
|
3539
|
-
}
|
|
3540
|
-
if (input.DomainEndpointOptions !== undefined && input.DomainEndpointOptions !== null) {
|
|
3541
|
-
const memberEntries = serializeAws_queryDomainEndpointOptions(input.DomainEndpointOptions, context);
|
|
3542
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3543
|
-
const loc = `DomainEndpointOptions.${key}`;
|
|
3544
|
-
entries[loc] = value;
|
|
3545
|
-
});
|
|
3546
|
-
}
|
|
3547
|
-
return entries;
|
|
3548
|
-
};
|
|
3549
|
-
|
|
3550
|
-
const serializeAws_queryUpdateScalingParametersRequest = (
|
|
3551
|
-
input: UpdateScalingParametersRequest,
|
|
3552
|
-
context: __SerdeContext
|
|
3553
|
-
): any => {
|
|
3554
|
-
const entries: any = {};
|
|
3555
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
3556
|
-
entries["DomainName"] = input.DomainName;
|
|
3557
|
-
}
|
|
3558
|
-
if (input.ScalingParameters !== undefined && input.ScalingParameters !== null) {
|
|
3559
|
-
const memberEntries = serializeAws_queryScalingParameters(input.ScalingParameters, context);
|
|
3560
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3561
|
-
const loc = `ScalingParameters.${key}`;
|
|
3562
|
-
entries[loc] = value;
|
|
3563
|
-
});
|
|
3564
|
-
}
|
|
3565
|
-
return entries;
|
|
3566
|
-
};
|
|
3567
|
-
|
|
3568
|
-
const serializeAws_queryUpdateServiceAccessPoliciesRequest = (
|
|
3569
|
-
input: UpdateServiceAccessPoliciesRequest,
|
|
3570
|
-
context: __SerdeContext
|
|
3571
|
-
): any => {
|
|
3572
|
-
const entries: any = {};
|
|
3573
|
-
if (input.DomainName !== undefined && input.DomainName !== null) {
|
|
3574
|
-
entries["DomainName"] = input.DomainName;
|
|
3575
|
-
}
|
|
3576
|
-
if (input.AccessPolicies !== undefined && input.AccessPolicies !== null) {
|
|
3577
|
-
entries["AccessPolicies"] = input.AccessPolicies;
|
|
3578
|
-
}
|
|
3579
|
-
return entries;
|
|
3580
|
-
};
|
|
3581
|
-
|
|
3582
|
-
const deserializeAws_queryAccessPoliciesStatus = (output: any, context: __SerdeContext): AccessPoliciesStatus => {
|
|
3583
|
-
let contents: any = {
|
|
3584
|
-
Options: undefined,
|
|
3585
|
-
Status: undefined,
|
|
3586
|
-
};
|
|
3587
|
-
if (output["Options"] !== undefined) {
|
|
3588
|
-
contents.Options = __expectString(output["Options"]);
|
|
3589
|
-
}
|
|
3590
|
-
if (output["Status"] !== undefined) {
|
|
3591
|
-
contents.Status = deserializeAws_queryOptionStatus(output["Status"], context);
|
|
3592
|
-
}
|
|
3593
|
-
return contents;
|
|
3594
|
-
};
|
|
3595
|
-
|
|
3596
|
-
const deserializeAws_queryAnalysisOptions = (output: any, context: __SerdeContext): AnalysisOptions => {
|
|
3597
|
-
let contents: any = {
|
|
3598
|
-
Synonyms: undefined,
|
|
3599
|
-
Stopwords: undefined,
|
|
3600
|
-
StemmingDictionary: undefined,
|
|
3601
|
-
JapaneseTokenizationDictionary: undefined,
|
|
3602
|
-
AlgorithmicStemming: undefined,
|
|
3603
|
-
};
|
|
3604
|
-
if (output["Synonyms"] !== undefined) {
|
|
3605
|
-
contents.Synonyms = __expectString(output["Synonyms"]);
|
|
3606
|
-
}
|
|
3607
|
-
if (output["Stopwords"] !== undefined) {
|
|
3608
|
-
contents.Stopwords = __expectString(output["Stopwords"]);
|
|
3609
|
-
}
|
|
3610
|
-
if (output["StemmingDictionary"] !== undefined) {
|
|
3611
|
-
contents.StemmingDictionary = __expectString(output["StemmingDictionary"]);
|
|
3612
|
-
}
|
|
3613
|
-
if (output["JapaneseTokenizationDictionary"] !== undefined) {
|
|
3614
|
-
contents.JapaneseTokenizationDictionary = __expectString(output["JapaneseTokenizationDictionary"]);
|
|
3615
|
-
}
|
|
3616
|
-
if (output["AlgorithmicStemming"] !== undefined) {
|
|
3617
|
-
contents.AlgorithmicStemming = __expectString(output["AlgorithmicStemming"]);
|
|
3618
|
-
}
|
|
3619
|
-
return contents;
|
|
3620
|
-
};
|
|
3621
|
-
|
|
3622
|
-
const deserializeAws_queryAnalysisScheme = (output: any, context: __SerdeContext): AnalysisScheme => {
|
|
3623
|
-
let contents: any = {
|
|
3624
|
-
AnalysisSchemeName: undefined,
|
|
3625
|
-
AnalysisSchemeLanguage: undefined,
|
|
3626
|
-
AnalysisOptions: undefined,
|
|
3627
|
-
};
|
|
3628
|
-
if (output["AnalysisSchemeName"] !== undefined) {
|
|
3629
|
-
contents.AnalysisSchemeName = __expectString(output["AnalysisSchemeName"]);
|
|
3630
|
-
}
|
|
3631
|
-
if (output["AnalysisSchemeLanguage"] !== undefined) {
|
|
3632
|
-
contents.AnalysisSchemeLanguage = __expectString(output["AnalysisSchemeLanguage"]);
|
|
3633
|
-
}
|
|
3634
|
-
if (output["AnalysisOptions"] !== undefined) {
|
|
3635
|
-
contents.AnalysisOptions = deserializeAws_queryAnalysisOptions(output["AnalysisOptions"], context);
|
|
3636
|
-
}
|
|
3637
|
-
return contents;
|
|
3638
|
-
};
|
|
3639
|
-
|
|
3640
|
-
const deserializeAws_queryAnalysisSchemeStatus = (output: any, context: __SerdeContext): AnalysisSchemeStatus => {
|
|
3641
|
-
let contents: any = {
|
|
3642
|
-
Options: undefined,
|
|
3643
|
-
Status: undefined,
|
|
3644
|
-
};
|
|
3645
|
-
if (output["Options"] !== undefined) {
|
|
3646
|
-
contents.Options = deserializeAws_queryAnalysisScheme(output["Options"], context);
|
|
3647
|
-
}
|
|
3648
|
-
if (output["Status"] !== undefined) {
|
|
3649
|
-
contents.Status = deserializeAws_queryOptionStatus(output["Status"], context);
|
|
3650
|
-
}
|
|
3651
|
-
return contents;
|
|
3652
|
-
};
|
|
3653
|
-
|
|
3654
|
-
const deserializeAws_queryAnalysisSchemeStatusList = (output: any, context: __SerdeContext): AnalysisSchemeStatus[] => {
|
|
3655
|
-
return (output || [])
|
|
3656
|
-
.filter((e: any) => e != null)
|
|
3657
|
-
.map((entry: any) => {
|
|
3658
|
-
if (entry === null) {
|
|
3659
|
-
return null as any;
|
|
3660
|
-
}
|
|
3661
|
-
return deserializeAws_queryAnalysisSchemeStatus(entry, context);
|
|
3662
|
-
});
|
|
3663
|
-
};
|
|
3664
|
-
|
|
3665
|
-
const deserializeAws_queryAvailabilityOptionsStatus = (
|
|
3666
|
-
output: any,
|
|
3667
|
-
context: __SerdeContext
|
|
3668
|
-
): AvailabilityOptionsStatus => {
|
|
3669
|
-
let contents: any = {
|
|
3670
|
-
Options: undefined,
|
|
3671
|
-
Status: undefined,
|
|
3672
|
-
};
|
|
3673
|
-
if (output["Options"] !== undefined) {
|
|
3674
|
-
contents.Options = __parseBoolean(output["Options"]);
|
|
3675
|
-
}
|
|
3676
|
-
if (output["Status"] !== undefined) {
|
|
3677
|
-
contents.Status = deserializeAws_queryOptionStatus(output["Status"], context);
|
|
3678
|
-
}
|
|
3679
|
-
return contents;
|
|
3680
|
-
};
|
|
3681
|
-
|
|
3682
|
-
const deserializeAws_queryBaseException = (output: any, context: __SerdeContext): BaseException => {
|
|
3683
|
-
let contents: any = {
|
|
3684
|
-
Code: undefined,
|
|
3685
|
-
Message: undefined,
|
|
3686
|
-
};
|
|
3687
|
-
if (output["Code"] !== undefined) {
|
|
3688
|
-
contents.Code = __expectString(output["Code"]);
|
|
3689
|
-
}
|
|
3690
|
-
if (output["Message"] !== undefined) {
|
|
3691
|
-
contents.Message = __expectString(output["Message"]);
|
|
3692
|
-
}
|
|
3693
|
-
return contents;
|
|
3694
|
-
};
|
|
3695
|
-
|
|
3696
|
-
const deserializeAws_queryBuildSuggestersResponse = (output: any, context: __SerdeContext): BuildSuggestersResponse => {
|
|
3697
|
-
let contents: any = {
|
|
3698
|
-
FieldNames: undefined,
|
|
3699
|
-
};
|
|
3700
|
-
if (output.FieldNames === "") {
|
|
3701
|
-
contents.FieldNames = [];
|
|
3702
|
-
}
|
|
3703
|
-
if (output["FieldNames"] !== undefined && output["FieldNames"]["member"] !== undefined) {
|
|
3704
|
-
contents.FieldNames = deserializeAws_queryFieldNameList(
|
|
3705
|
-
__getArrayIfSingleItem(output["FieldNames"]["member"]),
|
|
3706
|
-
context
|
|
3707
|
-
);
|
|
3708
|
-
}
|
|
3709
|
-
return contents;
|
|
3710
|
-
};
|
|
3711
|
-
|
|
3712
|
-
const deserializeAws_queryCreateDomainResponse = (output: any, context: __SerdeContext): CreateDomainResponse => {
|
|
3713
|
-
let contents: any = {
|
|
3714
|
-
DomainStatus: undefined,
|
|
3715
|
-
};
|
|
3716
|
-
if (output["DomainStatus"] !== undefined) {
|
|
3717
|
-
contents.DomainStatus = deserializeAws_queryDomainStatus(output["DomainStatus"], context);
|
|
3718
|
-
}
|
|
3719
|
-
return contents;
|
|
3720
|
-
};
|
|
3721
|
-
|
|
3722
|
-
const deserializeAws_queryDateArrayOptions = (output: any, context: __SerdeContext): DateArrayOptions => {
|
|
3723
|
-
let contents: any = {
|
|
3724
|
-
DefaultValue: undefined,
|
|
3725
|
-
SourceFields: undefined,
|
|
3726
|
-
FacetEnabled: undefined,
|
|
3727
|
-
SearchEnabled: undefined,
|
|
3728
|
-
ReturnEnabled: undefined,
|
|
3729
|
-
};
|
|
3730
|
-
if (output["DefaultValue"] !== undefined) {
|
|
3731
|
-
contents.DefaultValue = __expectString(output["DefaultValue"]);
|
|
3732
|
-
}
|
|
3733
|
-
if (output["SourceFields"] !== undefined) {
|
|
3734
|
-
contents.SourceFields = __expectString(output["SourceFields"]);
|
|
3735
|
-
}
|
|
3736
|
-
if (output["FacetEnabled"] !== undefined) {
|
|
3737
|
-
contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]);
|
|
3738
|
-
}
|
|
3739
|
-
if (output["SearchEnabled"] !== undefined) {
|
|
3740
|
-
contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]);
|
|
3741
|
-
}
|
|
3742
|
-
if (output["ReturnEnabled"] !== undefined) {
|
|
3743
|
-
contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]);
|
|
3744
|
-
}
|
|
3745
|
-
return contents;
|
|
3746
|
-
};
|
|
3747
|
-
|
|
3748
|
-
const deserializeAws_queryDateOptions = (output: any, context: __SerdeContext): DateOptions => {
|
|
3749
|
-
let contents: any = {
|
|
3750
|
-
DefaultValue: undefined,
|
|
3751
|
-
SourceField: undefined,
|
|
3752
|
-
FacetEnabled: undefined,
|
|
3753
|
-
SearchEnabled: undefined,
|
|
3754
|
-
ReturnEnabled: undefined,
|
|
3755
|
-
SortEnabled: undefined,
|
|
3756
|
-
};
|
|
3757
|
-
if (output["DefaultValue"] !== undefined) {
|
|
3758
|
-
contents.DefaultValue = __expectString(output["DefaultValue"]);
|
|
3759
|
-
}
|
|
3760
|
-
if (output["SourceField"] !== undefined) {
|
|
3761
|
-
contents.SourceField = __expectString(output["SourceField"]);
|
|
3762
|
-
}
|
|
3763
|
-
if (output["FacetEnabled"] !== undefined) {
|
|
3764
|
-
contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]);
|
|
3765
|
-
}
|
|
3766
|
-
if (output["SearchEnabled"] !== undefined) {
|
|
3767
|
-
contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]);
|
|
3768
|
-
}
|
|
3769
|
-
if (output["ReturnEnabled"] !== undefined) {
|
|
3770
|
-
contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]);
|
|
3771
|
-
}
|
|
3772
|
-
if (output["SortEnabled"] !== undefined) {
|
|
3773
|
-
contents.SortEnabled = __parseBoolean(output["SortEnabled"]);
|
|
3774
|
-
}
|
|
3775
|
-
return contents;
|
|
3776
|
-
};
|
|
3777
|
-
|
|
3778
|
-
const deserializeAws_queryDefineAnalysisSchemeResponse = (
|
|
3779
|
-
output: any,
|
|
3780
|
-
context: __SerdeContext
|
|
3781
|
-
): DefineAnalysisSchemeResponse => {
|
|
3782
|
-
let contents: any = {
|
|
3783
|
-
AnalysisScheme: undefined,
|
|
3784
|
-
};
|
|
3785
|
-
if (output["AnalysisScheme"] !== undefined) {
|
|
3786
|
-
contents.AnalysisScheme = deserializeAws_queryAnalysisSchemeStatus(output["AnalysisScheme"], context);
|
|
3787
|
-
}
|
|
3788
|
-
return contents;
|
|
3789
|
-
};
|
|
3790
|
-
|
|
3791
|
-
const deserializeAws_queryDefineExpressionResponse = (
|
|
3792
|
-
output: any,
|
|
3793
|
-
context: __SerdeContext
|
|
3794
|
-
): DefineExpressionResponse => {
|
|
3795
|
-
let contents: any = {
|
|
3796
|
-
Expression: undefined,
|
|
3797
|
-
};
|
|
3798
|
-
if (output["Expression"] !== undefined) {
|
|
3799
|
-
contents.Expression = deserializeAws_queryExpressionStatus(output["Expression"], context);
|
|
3800
|
-
}
|
|
3801
|
-
return contents;
|
|
3802
|
-
};
|
|
3803
|
-
|
|
3804
|
-
const deserializeAws_queryDefineIndexFieldResponse = (
|
|
3805
|
-
output: any,
|
|
3806
|
-
context: __SerdeContext
|
|
3807
|
-
): DefineIndexFieldResponse => {
|
|
3808
|
-
let contents: any = {
|
|
3809
|
-
IndexField: undefined,
|
|
3810
|
-
};
|
|
3811
|
-
if (output["IndexField"] !== undefined) {
|
|
3812
|
-
contents.IndexField = deserializeAws_queryIndexFieldStatus(output["IndexField"], context);
|
|
3813
|
-
}
|
|
3814
|
-
return contents;
|
|
3815
|
-
};
|
|
3816
|
-
|
|
3817
|
-
const deserializeAws_queryDefineSuggesterResponse = (output: any, context: __SerdeContext): DefineSuggesterResponse => {
|
|
3818
|
-
let contents: any = {
|
|
3819
|
-
Suggester: undefined,
|
|
3820
|
-
};
|
|
3821
|
-
if (output["Suggester"] !== undefined) {
|
|
3822
|
-
contents.Suggester = deserializeAws_querySuggesterStatus(output["Suggester"], context);
|
|
3823
|
-
}
|
|
3824
|
-
return contents;
|
|
3825
|
-
};
|
|
3826
|
-
|
|
3827
|
-
const deserializeAws_queryDeleteAnalysisSchemeResponse = (
|
|
3828
|
-
output: any,
|
|
3829
|
-
context: __SerdeContext
|
|
3830
|
-
): DeleteAnalysisSchemeResponse => {
|
|
3831
|
-
let contents: any = {
|
|
3832
|
-
AnalysisScheme: undefined,
|
|
3833
|
-
};
|
|
3834
|
-
if (output["AnalysisScheme"] !== undefined) {
|
|
3835
|
-
contents.AnalysisScheme = deserializeAws_queryAnalysisSchemeStatus(output["AnalysisScheme"], context);
|
|
3836
|
-
}
|
|
3837
|
-
return contents;
|
|
3838
|
-
};
|
|
3839
|
-
|
|
3840
|
-
const deserializeAws_queryDeleteDomainResponse = (output: any, context: __SerdeContext): DeleteDomainResponse => {
|
|
3841
|
-
let contents: any = {
|
|
3842
|
-
DomainStatus: undefined,
|
|
3843
|
-
};
|
|
3844
|
-
if (output["DomainStatus"] !== undefined) {
|
|
3845
|
-
contents.DomainStatus = deserializeAws_queryDomainStatus(output["DomainStatus"], context);
|
|
3846
|
-
}
|
|
3847
|
-
return contents;
|
|
3848
|
-
};
|
|
3849
|
-
|
|
3850
|
-
const deserializeAws_queryDeleteExpressionResponse = (
|
|
3851
|
-
output: any,
|
|
3852
|
-
context: __SerdeContext
|
|
3853
|
-
): DeleteExpressionResponse => {
|
|
3854
|
-
let contents: any = {
|
|
3855
|
-
Expression: undefined,
|
|
3856
|
-
};
|
|
3857
|
-
if (output["Expression"] !== undefined) {
|
|
3858
|
-
contents.Expression = deserializeAws_queryExpressionStatus(output["Expression"], context);
|
|
3859
|
-
}
|
|
3860
|
-
return contents;
|
|
3861
|
-
};
|
|
3862
|
-
|
|
3863
|
-
const deserializeAws_queryDeleteIndexFieldResponse = (
|
|
3864
|
-
output: any,
|
|
3865
|
-
context: __SerdeContext
|
|
3866
|
-
): DeleteIndexFieldResponse => {
|
|
3867
|
-
let contents: any = {
|
|
3868
|
-
IndexField: undefined,
|
|
3869
|
-
};
|
|
3870
|
-
if (output["IndexField"] !== undefined) {
|
|
3871
|
-
contents.IndexField = deserializeAws_queryIndexFieldStatus(output["IndexField"], context);
|
|
3872
|
-
}
|
|
3873
|
-
return contents;
|
|
3874
|
-
};
|
|
3875
|
-
|
|
3876
|
-
const deserializeAws_queryDeleteSuggesterResponse = (output: any, context: __SerdeContext): DeleteSuggesterResponse => {
|
|
3877
|
-
let contents: any = {
|
|
3878
|
-
Suggester: undefined,
|
|
3879
|
-
};
|
|
3880
|
-
if (output["Suggester"] !== undefined) {
|
|
3881
|
-
contents.Suggester = deserializeAws_querySuggesterStatus(output["Suggester"], context);
|
|
3882
|
-
}
|
|
3883
|
-
return contents;
|
|
3884
|
-
};
|
|
3885
|
-
|
|
3886
|
-
const deserializeAws_queryDescribeAnalysisSchemesResponse = (
|
|
3887
|
-
output: any,
|
|
3888
|
-
context: __SerdeContext
|
|
3889
|
-
): DescribeAnalysisSchemesResponse => {
|
|
3890
|
-
let contents: any = {
|
|
3891
|
-
AnalysisSchemes: undefined,
|
|
3892
|
-
};
|
|
3893
|
-
if (output.AnalysisSchemes === "") {
|
|
3894
|
-
contents.AnalysisSchemes = [];
|
|
3895
|
-
}
|
|
3896
|
-
if (output["AnalysisSchemes"] !== undefined && output["AnalysisSchemes"]["member"] !== undefined) {
|
|
3897
|
-
contents.AnalysisSchemes = deserializeAws_queryAnalysisSchemeStatusList(
|
|
3898
|
-
__getArrayIfSingleItem(output["AnalysisSchemes"]["member"]),
|
|
3899
|
-
context
|
|
3900
|
-
);
|
|
3901
|
-
}
|
|
3902
|
-
return contents;
|
|
3903
|
-
};
|
|
3904
|
-
|
|
3905
|
-
const deserializeAws_queryDescribeAvailabilityOptionsResponse = (
|
|
3906
|
-
output: any,
|
|
3907
|
-
context: __SerdeContext
|
|
3908
|
-
): DescribeAvailabilityOptionsResponse => {
|
|
3909
|
-
let contents: any = {
|
|
3910
|
-
AvailabilityOptions: undefined,
|
|
3911
|
-
};
|
|
3912
|
-
if (output["AvailabilityOptions"] !== undefined) {
|
|
3913
|
-
contents.AvailabilityOptions = deserializeAws_queryAvailabilityOptionsStatus(
|
|
3914
|
-
output["AvailabilityOptions"],
|
|
3915
|
-
context
|
|
3916
|
-
);
|
|
3917
|
-
}
|
|
3918
|
-
return contents;
|
|
3919
|
-
};
|
|
3920
|
-
|
|
3921
|
-
const deserializeAws_queryDescribeDomainEndpointOptionsResponse = (
|
|
3922
|
-
output: any,
|
|
3923
|
-
context: __SerdeContext
|
|
3924
|
-
): DescribeDomainEndpointOptionsResponse => {
|
|
3925
|
-
let contents: any = {
|
|
3926
|
-
DomainEndpointOptions: undefined,
|
|
3927
|
-
};
|
|
3928
|
-
if (output["DomainEndpointOptions"] !== undefined) {
|
|
3929
|
-
contents.DomainEndpointOptions = deserializeAws_queryDomainEndpointOptionsStatus(
|
|
3930
|
-
output["DomainEndpointOptions"],
|
|
3931
|
-
context
|
|
3932
|
-
);
|
|
3933
|
-
}
|
|
3934
|
-
return contents;
|
|
3935
|
-
};
|
|
3936
|
-
|
|
3937
|
-
const deserializeAws_queryDescribeDomainsResponse = (output: any, context: __SerdeContext): DescribeDomainsResponse => {
|
|
3938
|
-
let contents: any = {
|
|
3939
|
-
DomainStatusList: undefined,
|
|
3940
|
-
};
|
|
3941
|
-
if (output.DomainStatusList === "") {
|
|
3942
|
-
contents.DomainStatusList = [];
|
|
3943
|
-
}
|
|
3944
|
-
if (output["DomainStatusList"] !== undefined && output["DomainStatusList"]["member"] !== undefined) {
|
|
3945
|
-
contents.DomainStatusList = deserializeAws_queryDomainStatusList(
|
|
3946
|
-
__getArrayIfSingleItem(output["DomainStatusList"]["member"]),
|
|
3947
|
-
context
|
|
3948
|
-
);
|
|
3949
|
-
}
|
|
3950
|
-
return contents;
|
|
3951
|
-
};
|
|
3952
|
-
|
|
3953
|
-
const deserializeAws_queryDescribeExpressionsResponse = (
|
|
3954
|
-
output: any,
|
|
3955
|
-
context: __SerdeContext
|
|
3956
|
-
): DescribeExpressionsResponse => {
|
|
3957
|
-
let contents: any = {
|
|
3958
|
-
Expressions: undefined,
|
|
3959
|
-
};
|
|
3960
|
-
if (output.Expressions === "") {
|
|
3961
|
-
contents.Expressions = [];
|
|
3962
|
-
}
|
|
3963
|
-
if (output["Expressions"] !== undefined && output["Expressions"]["member"] !== undefined) {
|
|
3964
|
-
contents.Expressions = deserializeAws_queryExpressionStatusList(
|
|
3965
|
-
__getArrayIfSingleItem(output["Expressions"]["member"]),
|
|
3966
|
-
context
|
|
3967
|
-
);
|
|
3968
|
-
}
|
|
3969
|
-
return contents;
|
|
3970
|
-
};
|
|
3971
|
-
|
|
3972
|
-
const deserializeAws_queryDescribeIndexFieldsResponse = (
|
|
3973
|
-
output: any,
|
|
3974
|
-
context: __SerdeContext
|
|
3975
|
-
): DescribeIndexFieldsResponse => {
|
|
3976
|
-
let contents: any = {
|
|
3977
|
-
IndexFields: undefined,
|
|
3978
|
-
};
|
|
3979
|
-
if (output.IndexFields === "") {
|
|
3980
|
-
contents.IndexFields = [];
|
|
3981
|
-
}
|
|
3982
|
-
if (output["IndexFields"] !== undefined && output["IndexFields"]["member"] !== undefined) {
|
|
3983
|
-
contents.IndexFields = deserializeAws_queryIndexFieldStatusList(
|
|
3984
|
-
__getArrayIfSingleItem(output["IndexFields"]["member"]),
|
|
3985
|
-
context
|
|
3986
|
-
);
|
|
3987
|
-
}
|
|
3988
|
-
return contents;
|
|
3989
|
-
};
|
|
3990
|
-
|
|
3991
|
-
const deserializeAws_queryDescribeScalingParametersResponse = (
|
|
3992
|
-
output: any,
|
|
3993
|
-
context: __SerdeContext
|
|
3994
|
-
): DescribeScalingParametersResponse => {
|
|
3995
|
-
let contents: any = {
|
|
3996
|
-
ScalingParameters: undefined,
|
|
3997
|
-
};
|
|
3998
|
-
if (output["ScalingParameters"] !== undefined) {
|
|
3999
|
-
contents.ScalingParameters = deserializeAws_queryScalingParametersStatus(output["ScalingParameters"], context);
|
|
4000
|
-
}
|
|
4001
|
-
return contents;
|
|
4002
|
-
};
|
|
4003
|
-
|
|
4004
|
-
const deserializeAws_queryDescribeServiceAccessPoliciesResponse = (
|
|
4005
|
-
output: any,
|
|
4006
|
-
context: __SerdeContext
|
|
4007
|
-
): DescribeServiceAccessPoliciesResponse => {
|
|
4008
|
-
let contents: any = {
|
|
4009
|
-
AccessPolicies: undefined,
|
|
4010
|
-
};
|
|
4011
|
-
if (output["AccessPolicies"] !== undefined) {
|
|
4012
|
-
contents.AccessPolicies = deserializeAws_queryAccessPoliciesStatus(output["AccessPolicies"], context);
|
|
4013
|
-
}
|
|
4014
|
-
return contents;
|
|
4015
|
-
};
|
|
4016
|
-
|
|
4017
|
-
const deserializeAws_queryDescribeSuggestersResponse = (
|
|
4018
|
-
output: any,
|
|
4019
|
-
context: __SerdeContext
|
|
4020
|
-
): DescribeSuggestersResponse => {
|
|
4021
|
-
let contents: any = {
|
|
4022
|
-
Suggesters: undefined,
|
|
4023
|
-
};
|
|
4024
|
-
if (output.Suggesters === "") {
|
|
4025
|
-
contents.Suggesters = [];
|
|
4026
|
-
}
|
|
4027
|
-
if (output["Suggesters"] !== undefined && output["Suggesters"]["member"] !== undefined) {
|
|
4028
|
-
contents.Suggesters = deserializeAws_querySuggesterStatusList(
|
|
4029
|
-
__getArrayIfSingleItem(output["Suggesters"]["member"]),
|
|
4030
|
-
context
|
|
4031
|
-
);
|
|
4032
|
-
}
|
|
4033
|
-
return contents;
|
|
4034
|
-
};
|
|
4035
|
-
|
|
4036
|
-
const deserializeAws_queryDisabledOperationException = (
|
|
4037
|
-
output: any,
|
|
4038
|
-
context: __SerdeContext
|
|
4039
|
-
): DisabledOperationException => {
|
|
4040
|
-
let contents: any = {
|
|
4041
|
-
Code: undefined,
|
|
4042
|
-
Message: undefined,
|
|
4043
|
-
};
|
|
4044
|
-
if (output["Code"] !== undefined) {
|
|
4045
|
-
contents.Code = __expectString(output["Code"]);
|
|
4046
|
-
}
|
|
4047
|
-
if (output["Message"] !== undefined) {
|
|
4048
|
-
contents.Message = __expectString(output["Message"]);
|
|
4049
|
-
}
|
|
4050
|
-
return contents;
|
|
4051
|
-
};
|
|
4052
|
-
|
|
4053
|
-
const deserializeAws_queryDocumentSuggesterOptions = (
|
|
4054
|
-
output: any,
|
|
4055
|
-
context: __SerdeContext
|
|
4056
|
-
): DocumentSuggesterOptions => {
|
|
4057
|
-
let contents: any = {
|
|
4058
|
-
SourceField: undefined,
|
|
4059
|
-
FuzzyMatching: undefined,
|
|
4060
|
-
SortExpression: undefined,
|
|
4061
|
-
};
|
|
4062
|
-
if (output["SourceField"] !== undefined) {
|
|
4063
|
-
contents.SourceField = __expectString(output["SourceField"]);
|
|
4064
|
-
}
|
|
4065
|
-
if (output["FuzzyMatching"] !== undefined) {
|
|
4066
|
-
contents.FuzzyMatching = __expectString(output["FuzzyMatching"]);
|
|
4067
|
-
}
|
|
4068
|
-
if (output["SortExpression"] !== undefined) {
|
|
4069
|
-
contents.SortExpression = __expectString(output["SortExpression"]);
|
|
4070
|
-
}
|
|
4071
|
-
return contents;
|
|
4072
|
-
};
|
|
4073
|
-
|
|
4074
|
-
const deserializeAws_queryDomainEndpointOptions = (output: any, context: __SerdeContext): DomainEndpointOptions => {
|
|
4075
|
-
let contents: any = {
|
|
4076
|
-
EnforceHTTPS: undefined,
|
|
4077
|
-
TLSSecurityPolicy: undefined,
|
|
4078
|
-
};
|
|
4079
|
-
if (output["EnforceHTTPS"] !== undefined) {
|
|
4080
|
-
contents.EnforceHTTPS = __parseBoolean(output["EnforceHTTPS"]);
|
|
4081
|
-
}
|
|
4082
|
-
if (output["TLSSecurityPolicy"] !== undefined) {
|
|
4083
|
-
contents.TLSSecurityPolicy = __expectString(output["TLSSecurityPolicy"]);
|
|
4084
|
-
}
|
|
4085
|
-
return contents;
|
|
4086
|
-
};
|
|
4087
|
-
|
|
4088
|
-
const deserializeAws_queryDomainEndpointOptionsStatus = (
|
|
4089
|
-
output: any,
|
|
4090
|
-
context: __SerdeContext
|
|
4091
|
-
): DomainEndpointOptionsStatus => {
|
|
4092
|
-
let contents: any = {
|
|
4093
|
-
Options: undefined,
|
|
4094
|
-
Status: undefined,
|
|
4095
|
-
};
|
|
4096
|
-
if (output["Options"] !== undefined) {
|
|
4097
|
-
contents.Options = deserializeAws_queryDomainEndpointOptions(output["Options"], context);
|
|
4098
|
-
}
|
|
4099
|
-
if (output["Status"] !== undefined) {
|
|
4100
|
-
contents.Status = deserializeAws_queryOptionStatus(output["Status"], context);
|
|
4101
|
-
}
|
|
4102
|
-
return contents;
|
|
4103
|
-
};
|
|
4104
|
-
|
|
4105
|
-
const deserializeAws_queryDomainNameMap = (output: any, context: __SerdeContext): { [key: string]: string } => {
|
|
4106
|
-
return output.reduce((acc: any, pair: any) => {
|
|
4107
|
-
if (pair["value"] === null) {
|
|
4108
|
-
return acc;
|
|
4109
|
-
}
|
|
4110
|
-
return {
|
|
4111
|
-
...acc,
|
|
4112
|
-
[pair["key"]]: __expectString(pair["value"]) as any,
|
|
4113
|
-
};
|
|
4114
|
-
}, {});
|
|
4115
|
-
};
|
|
4116
|
-
|
|
4117
|
-
const deserializeAws_queryDomainStatus = (output: any, context: __SerdeContext): DomainStatus => {
|
|
4118
|
-
let contents: any = {
|
|
4119
|
-
DomainId: undefined,
|
|
4120
|
-
DomainName: undefined,
|
|
4121
|
-
ARN: undefined,
|
|
4122
|
-
Created: undefined,
|
|
4123
|
-
Deleted: undefined,
|
|
4124
|
-
DocService: undefined,
|
|
4125
|
-
SearchService: undefined,
|
|
4126
|
-
RequiresIndexDocuments: undefined,
|
|
4127
|
-
Processing: undefined,
|
|
4128
|
-
SearchInstanceType: undefined,
|
|
4129
|
-
SearchPartitionCount: undefined,
|
|
4130
|
-
SearchInstanceCount: undefined,
|
|
4131
|
-
Limits: undefined,
|
|
4132
|
-
};
|
|
4133
|
-
if (output["DomainId"] !== undefined) {
|
|
4134
|
-
contents.DomainId = __expectString(output["DomainId"]);
|
|
4135
|
-
}
|
|
4136
|
-
if (output["DomainName"] !== undefined) {
|
|
4137
|
-
contents.DomainName = __expectString(output["DomainName"]);
|
|
4138
|
-
}
|
|
4139
|
-
if (output["ARN"] !== undefined) {
|
|
4140
|
-
contents.ARN = __expectString(output["ARN"]);
|
|
4141
|
-
}
|
|
4142
|
-
if (output["Created"] !== undefined) {
|
|
4143
|
-
contents.Created = __parseBoolean(output["Created"]);
|
|
4144
|
-
}
|
|
4145
|
-
if (output["Deleted"] !== undefined) {
|
|
4146
|
-
contents.Deleted = __parseBoolean(output["Deleted"]);
|
|
4147
|
-
}
|
|
4148
|
-
if (output["DocService"] !== undefined) {
|
|
4149
|
-
contents.DocService = deserializeAws_queryServiceEndpoint(output["DocService"], context);
|
|
4150
|
-
}
|
|
4151
|
-
if (output["SearchService"] !== undefined) {
|
|
4152
|
-
contents.SearchService = deserializeAws_queryServiceEndpoint(output["SearchService"], context);
|
|
4153
|
-
}
|
|
4154
|
-
if (output["RequiresIndexDocuments"] !== undefined) {
|
|
4155
|
-
contents.RequiresIndexDocuments = __parseBoolean(output["RequiresIndexDocuments"]);
|
|
4156
|
-
}
|
|
4157
|
-
if (output["Processing"] !== undefined) {
|
|
4158
|
-
contents.Processing = __parseBoolean(output["Processing"]);
|
|
4159
|
-
}
|
|
4160
|
-
if (output["SearchInstanceType"] !== undefined) {
|
|
4161
|
-
contents.SearchInstanceType = __expectString(output["SearchInstanceType"]);
|
|
4162
|
-
}
|
|
4163
|
-
if (output["SearchPartitionCount"] !== undefined) {
|
|
4164
|
-
contents.SearchPartitionCount = __strictParseInt32(output["SearchPartitionCount"]) as number;
|
|
4165
|
-
}
|
|
4166
|
-
if (output["SearchInstanceCount"] !== undefined) {
|
|
4167
|
-
contents.SearchInstanceCount = __strictParseInt32(output["SearchInstanceCount"]) as number;
|
|
4168
|
-
}
|
|
4169
|
-
if (output["Limits"] !== undefined) {
|
|
4170
|
-
contents.Limits = deserializeAws_queryLimits(output["Limits"], context);
|
|
4171
|
-
}
|
|
4172
|
-
return contents;
|
|
4173
|
-
};
|
|
4174
|
-
|
|
4175
|
-
const deserializeAws_queryDomainStatusList = (output: any, context: __SerdeContext): DomainStatus[] => {
|
|
4176
|
-
return (output || [])
|
|
4177
|
-
.filter((e: any) => e != null)
|
|
4178
|
-
.map((entry: any) => {
|
|
4179
|
-
if (entry === null) {
|
|
4180
|
-
return null as any;
|
|
4181
|
-
}
|
|
4182
|
-
return deserializeAws_queryDomainStatus(entry, context);
|
|
4183
|
-
});
|
|
4184
|
-
};
|
|
4185
|
-
|
|
4186
|
-
const deserializeAws_queryDoubleArrayOptions = (output: any, context: __SerdeContext): DoubleArrayOptions => {
|
|
4187
|
-
let contents: any = {
|
|
4188
|
-
DefaultValue: undefined,
|
|
4189
|
-
SourceFields: undefined,
|
|
4190
|
-
FacetEnabled: undefined,
|
|
4191
|
-
SearchEnabled: undefined,
|
|
4192
|
-
ReturnEnabled: undefined,
|
|
4193
|
-
};
|
|
4194
|
-
if (output["DefaultValue"] !== undefined) {
|
|
4195
|
-
contents.DefaultValue = __strictParseFloat(output["DefaultValue"]) as number;
|
|
4196
|
-
}
|
|
4197
|
-
if (output["SourceFields"] !== undefined) {
|
|
4198
|
-
contents.SourceFields = __expectString(output["SourceFields"]);
|
|
4199
|
-
}
|
|
4200
|
-
if (output["FacetEnabled"] !== undefined) {
|
|
4201
|
-
contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]);
|
|
4202
|
-
}
|
|
4203
|
-
if (output["SearchEnabled"] !== undefined) {
|
|
4204
|
-
contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]);
|
|
4205
|
-
}
|
|
4206
|
-
if (output["ReturnEnabled"] !== undefined) {
|
|
4207
|
-
contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]);
|
|
4208
|
-
}
|
|
4209
|
-
return contents;
|
|
4210
|
-
};
|
|
4211
|
-
|
|
4212
|
-
const deserializeAws_queryDoubleOptions = (output: any, context: __SerdeContext): DoubleOptions => {
|
|
4213
|
-
let contents: any = {
|
|
4214
|
-
DefaultValue: undefined,
|
|
4215
|
-
SourceField: undefined,
|
|
4216
|
-
FacetEnabled: undefined,
|
|
4217
|
-
SearchEnabled: undefined,
|
|
4218
|
-
ReturnEnabled: undefined,
|
|
4219
|
-
SortEnabled: undefined,
|
|
4220
|
-
};
|
|
4221
|
-
if (output["DefaultValue"] !== undefined) {
|
|
4222
|
-
contents.DefaultValue = __strictParseFloat(output["DefaultValue"]) as number;
|
|
4223
|
-
}
|
|
4224
|
-
if (output["SourceField"] !== undefined) {
|
|
4225
|
-
contents.SourceField = __expectString(output["SourceField"]);
|
|
4226
|
-
}
|
|
4227
|
-
if (output["FacetEnabled"] !== undefined) {
|
|
4228
|
-
contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]);
|
|
4229
|
-
}
|
|
4230
|
-
if (output["SearchEnabled"] !== undefined) {
|
|
4231
|
-
contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]);
|
|
4232
|
-
}
|
|
4233
|
-
if (output["ReturnEnabled"] !== undefined) {
|
|
4234
|
-
contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]);
|
|
4235
|
-
}
|
|
4236
|
-
if (output["SortEnabled"] !== undefined) {
|
|
4237
|
-
contents.SortEnabled = __parseBoolean(output["SortEnabled"]);
|
|
4238
|
-
}
|
|
4239
|
-
return contents;
|
|
4240
|
-
};
|
|
4241
|
-
|
|
4242
|
-
const deserializeAws_queryExpression = (output: any, context: __SerdeContext): Expression => {
|
|
4243
|
-
let contents: any = {
|
|
4244
|
-
ExpressionName: undefined,
|
|
4245
|
-
ExpressionValue: undefined,
|
|
4246
|
-
};
|
|
4247
|
-
if (output["ExpressionName"] !== undefined) {
|
|
4248
|
-
contents.ExpressionName = __expectString(output["ExpressionName"]);
|
|
4249
|
-
}
|
|
4250
|
-
if (output["ExpressionValue"] !== undefined) {
|
|
4251
|
-
contents.ExpressionValue = __expectString(output["ExpressionValue"]);
|
|
4252
|
-
}
|
|
4253
|
-
return contents;
|
|
4254
|
-
};
|
|
4255
|
-
|
|
4256
|
-
const deserializeAws_queryExpressionStatus = (output: any, context: __SerdeContext): ExpressionStatus => {
|
|
4257
|
-
let contents: any = {
|
|
4258
|
-
Options: undefined,
|
|
4259
|
-
Status: undefined,
|
|
4260
|
-
};
|
|
4261
|
-
if (output["Options"] !== undefined) {
|
|
4262
|
-
contents.Options = deserializeAws_queryExpression(output["Options"], context);
|
|
4263
|
-
}
|
|
4264
|
-
if (output["Status"] !== undefined) {
|
|
4265
|
-
contents.Status = deserializeAws_queryOptionStatus(output["Status"], context);
|
|
4266
|
-
}
|
|
4267
|
-
return contents;
|
|
4268
|
-
};
|
|
4269
|
-
|
|
4270
|
-
const deserializeAws_queryExpressionStatusList = (output: any, context: __SerdeContext): ExpressionStatus[] => {
|
|
4271
|
-
return (output || [])
|
|
4272
|
-
.filter((e: any) => e != null)
|
|
4273
|
-
.map((entry: any) => {
|
|
4274
|
-
if (entry === null) {
|
|
4275
|
-
return null as any;
|
|
4276
|
-
}
|
|
4277
|
-
return deserializeAws_queryExpressionStatus(entry, context);
|
|
4278
|
-
});
|
|
4279
|
-
};
|
|
4280
|
-
|
|
4281
|
-
const deserializeAws_queryFieldNameList = (output: any, context: __SerdeContext): string[] => {
|
|
4282
|
-
return (output || [])
|
|
4283
|
-
.filter((e: any) => e != null)
|
|
4284
|
-
.map((entry: any) => {
|
|
4285
|
-
if (entry === null) {
|
|
4286
|
-
return null as any;
|
|
4287
|
-
}
|
|
4288
|
-
return __expectString(entry) as any;
|
|
4289
|
-
});
|
|
4290
|
-
};
|
|
4291
|
-
|
|
4292
|
-
const deserializeAws_queryIndexDocumentsResponse = (output: any, context: __SerdeContext): IndexDocumentsResponse => {
|
|
4293
|
-
let contents: any = {
|
|
4294
|
-
FieldNames: undefined,
|
|
4295
|
-
};
|
|
4296
|
-
if (output.FieldNames === "") {
|
|
4297
|
-
contents.FieldNames = [];
|
|
4298
|
-
}
|
|
4299
|
-
if (output["FieldNames"] !== undefined && output["FieldNames"]["member"] !== undefined) {
|
|
4300
|
-
contents.FieldNames = deserializeAws_queryFieldNameList(
|
|
4301
|
-
__getArrayIfSingleItem(output["FieldNames"]["member"]),
|
|
4302
|
-
context
|
|
4303
|
-
);
|
|
4304
|
-
}
|
|
4305
|
-
return contents;
|
|
4306
|
-
};
|
|
4307
|
-
|
|
4308
|
-
const deserializeAws_queryIndexField = (output: any, context: __SerdeContext): IndexField => {
|
|
4309
|
-
let contents: any = {
|
|
4310
|
-
IndexFieldName: undefined,
|
|
4311
|
-
IndexFieldType: undefined,
|
|
4312
|
-
IntOptions: undefined,
|
|
4313
|
-
DoubleOptions: undefined,
|
|
4314
|
-
LiteralOptions: undefined,
|
|
4315
|
-
TextOptions: undefined,
|
|
4316
|
-
DateOptions: undefined,
|
|
4317
|
-
LatLonOptions: undefined,
|
|
4318
|
-
IntArrayOptions: undefined,
|
|
4319
|
-
DoubleArrayOptions: undefined,
|
|
4320
|
-
LiteralArrayOptions: undefined,
|
|
4321
|
-
TextArrayOptions: undefined,
|
|
4322
|
-
DateArrayOptions: undefined,
|
|
4323
|
-
};
|
|
4324
|
-
if (output["IndexFieldName"] !== undefined) {
|
|
4325
|
-
contents.IndexFieldName = __expectString(output["IndexFieldName"]);
|
|
4326
|
-
}
|
|
4327
|
-
if (output["IndexFieldType"] !== undefined) {
|
|
4328
|
-
contents.IndexFieldType = __expectString(output["IndexFieldType"]);
|
|
4329
|
-
}
|
|
4330
|
-
if (output["IntOptions"] !== undefined) {
|
|
4331
|
-
contents.IntOptions = deserializeAws_queryIntOptions(output["IntOptions"], context);
|
|
4332
|
-
}
|
|
4333
|
-
if (output["DoubleOptions"] !== undefined) {
|
|
4334
|
-
contents.DoubleOptions = deserializeAws_queryDoubleOptions(output["DoubleOptions"], context);
|
|
4335
|
-
}
|
|
4336
|
-
if (output["LiteralOptions"] !== undefined) {
|
|
4337
|
-
contents.LiteralOptions = deserializeAws_queryLiteralOptions(output["LiteralOptions"], context);
|
|
4338
|
-
}
|
|
4339
|
-
if (output["TextOptions"] !== undefined) {
|
|
4340
|
-
contents.TextOptions = deserializeAws_queryTextOptions(output["TextOptions"], context);
|
|
4341
|
-
}
|
|
4342
|
-
if (output["DateOptions"] !== undefined) {
|
|
4343
|
-
contents.DateOptions = deserializeAws_queryDateOptions(output["DateOptions"], context);
|
|
4344
|
-
}
|
|
4345
|
-
if (output["LatLonOptions"] !== undefined) {
|
|
4346
|
-
contents.LatLonOptions = deserializeAws_queryLatLonOptions(output["LatLonOptions"], context);
|
|
4347
|
-
}
|
|
4348
|
-
if (output["IntArrayOptions"] !== undefined) {
|
|
4349
|
-
contents.IntArrayOptions = deserializeAws_queryIntArrayOptions(output["IntArrayOptions"], context);
|
|
4350
|
-
}
|
|
4351
|
-
if (output["DoubleArrayOptions"] !== undefined) {
|
|
4352
|
-
contents.DoubleArrayOptions = deserializeAws_queryDoubleArrayOptions(output["DoubleArrayOptions"], context);
|
|
4353
|
-
}
|
|
4354
|
-
if (output["LiteralArrayOptions"] !== undefined) {
|
|
4355
|
-
contents.LiteralArrayOptions = deserializeAws_queryLiteralArrayOptions(output["LiteralArrayOptions"], context);
|
|
4356
|
-
}
|
|
4357
|
-
if (output["TextArrayOptions"] !== undefined) {
|
|
4358
|
-
contents.TextArrayOptions = deserializeAws_queryTextArrayOptions(output["TextArrayOptions"], context);
|
|
4359
|
-
}
|
|
4360
|
-
if (output["DateArrayOptions"] !== undefined) {
|
|
4361
|
-
contents.DateArrayOptions = deserializeAws_queryDateArrayOptions(output["DateArrayOptions"], context);
|
|
4362
|
-
}
|
|
4363
|
-
return contents;
|
|
4364
|
-
};
|
|
4365
|
-
|
|
4366
|
-
const deserializeAws_queryIndexFieldStatus = (output: any, context: __SerdeContext): IndexFieldStatus => {
|
|
4367
|
-
let contents: any = {
|
|
4368
|
-
Options: undefined,
|
|
4369
|
-
Status: undefined,
|
|
4370
|
-
};
|
|
4371
|
-
if (output["Options"] !== undefined) {
|
|
4372
|
-
contents.Options = deserializeAws_queryIndexField(output["Options"], context);
|
|
4373
|
-
}
|
|
4374
|
-
if (output["Status"] !== undefined) {
|
|
4375
|
-
contents.Status = deserializeAws_queryOptionStatus(output["Status"], context);
|
|
4376
|
-
}
|
|
4377
|
-
return contents;
|
|
4378
|
-
};
|
|
4379
|
-
|
|
4380
|
-
const deserializeAws_queryIndexFieldStatusList = (output: any, context: __SerdeContext): IndexFieldStatus[] => {
|
|
4381
|
-
return (output || [])
|
|
4382
|
-
.filter((e: any) => e != null)
|
|
4383
|
-
.map((entry: any) => {
|
|
4384
|
-
if (entry === null) {
|
|
4385
|
-
return null as any;
|
|
4386
|
-
}
|
|
4387
|
-
return deserializeAws_queryIndexFieldStatus(entry, context);
|
|
4388
|
-
});
|
|
4389
|
-
};
|
|
4390
|
-
|
|
4391
|
-
const deserializeAws_queryIntArrayOptions = (output: any, context: __SerdeContext): IntArrayOptions => {
|
|
4392
|
-
let contents: any = {
|
|
4393
|
-
DefaultValue: undefined,
|
|
4394
|
-
SourceFields: undefined,
|
|
4395
|
-
FacetEnabled: undefined,
|
|
4396
|
-
SearchEnabled: undefined,
|
|
4397
|
-
ReturnEnabled: undefined,
|
|
4398
|
-
};
|
|
4399
|
-
if (output["DefaultValue"] !== undefined) {
|
|
4400
|
-
contents.DefaultValue = __strictParseLong(output["DefaultValue"]) as number;
|
|
4401
|
-
}
|
|
4402
|
-
if (output["SourceFields"] !== undefined) {
|
|
4403
|
-
contents.SourceFields = __expectString(output["SourceFields"]);
|
|
4404
|
-
}
|
|
4405
|
-
if (output["FacetEnabled"] !== undefined) {
|
|
4406
|
-
contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]);
|
|
4407
|
-
}
|
|
4408
|
-
if (output["SearchEnabled"] !== undefined) {
|
|
4409
|
-
contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]);
|
|
4410
|
-
}
|
|
4411
|
-
if (output["ReturnEnabled"] !== undefined) {
|
|
4412
|
-
contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]);
|
|
4413
|
-
}
|
|
4414
|
-
return contents;
|
|
4415
|
-
};
|
|
4416
|
-
|
|
4417
|
-
const deserializeAws_queryInternalException = (output: any, context: __SerdeContext): InternalException => {
|
|
4418
|
-
let contents: any = {
|
|
4419
|
-
Code: undefined,
|
|
4420
|
-
Message: undefined,
|
|
4421
|
-
};
|
|
4422
|
-
if (output["Code"] !== undefined) {
|
|
4423
|
-
contents.Code = __expectString(output["Code"]);
|
|
4424
|
-
}
|
|
4425
|
-
if (output["Message"] !== undefined) {
|
|
4426
|
-
contents.Message = __expectString(output["Message"]);
|
|
4427
|
-
}
|
|
4428
|
-
return contents;
|
|
4429
|
-
};
|
|
4430
|
-
|
|
4431
|
-
const deserializeAws_queryIntOptions = (output: any, context: __SerdeContext): IntOptions => {
|
|
4432
|
-
let contents: any = {
|
|
4433
|
-
DefaultValue: undefined,
|
|
4434
|
-
SourceField: undefined,
|
|
4435
|
-
FacetEnabled: undefined,
|
|
4436
|
-
SearchEnabled: undefined,
|
|
4437
|
-
ReturnEnabled: undefined,
|
|
4438
|
-
SortEnabled: undefined,
|
|
4439
|
-
};
|
|
4440
|
-
if (output["DefaultValue"] !== undefined) {
|
|
4441
|
-
contents.DefaultValue = __strictParseLong(output["DefaultValue"]) as number;
|
|
4442
|
-
}
|
|
4443
|
-
if (output["SourceField"] !== undefined) {
|
|
4444
|
-
contents.SourceField = __expectString(output["SourceField"]);
|
|
4445
|
-
}
|
|
4446
|
-
if (output["FacetEnabled"] !== undefined) {
|
|
4447
|
-
contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]);
|
|
4448
|
-
}
|
|
4449
|
-
if (output["SearchEnabled"] !== undefined) {
|
|
4450
|
-
contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]);
|
|
4451
|
-
}
|
|
4452
|
-
if (output["ReturnEnabled"] !== undefined) {
|
|
4453
|
-
contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]);
|
|
4454
|
-
}
|
|
4455
|
-
if (output["SortEnabled"] !== undefined) {
|
|
4456
|
-
contents.SortEnabled = __parseBoolean(output["SortEnabled"]);
|
|
4457
|
-
}
|
|
4458
|
-
return contents;
|
|
4459
|
-
};
|
|
4460
|
-
|
|
4461
|
-
const deserializeAws_queryInvalidTypeException = (output: any, context: __SerdeContext): InvalidTypeException => {
|
|
4462
|
-
let contents: any = {
|
|
4463
|
-
Code: undefined,
|
|
4464
|
-
Message: undefined,
|
|
4465
|
-
};
|
|
4466
|
-
if (output["Code"] !== undefined) {
|
|
4467
|
-
contents.Code = __expectString(output["Code"]);
|
|
4468
|
-
}
|
|
4469
|
-
if (output["Message"] !== undefined) {
|
|
4470
|
-
contents.Message = __expectString(output["Message"]);
|
|
4471
|
-
}
|
|
4472
|
-
return contents;
|
|
4473
|
-
};
|
|
4474
|
-
|
|
4475
|
-
const deserializeAws_queryLatLonOptions = (output: any, context: __SerdeContext): LatLonOptions => {
|
|
4476
|
-
let contents: any = {
|
|
4477
|
-
DefaultValue: undefined,
|
|
4478
|
-
SourceField: undefined,
|
|
4479
|
-
FacetEnabled: undefined,
|
|
4480
|
-
SearchEnabled: undefined,
|
|
4481
|
-
ReturnEnabled: undefined,
|
|
4482
|
-
SortEnabled: undefined,
|
|
4483
|
-
};
|
|
4484
|
-
if (output["DefaultValue"] !== undefined) {
|
|
4485
|
-
contents.DefaultValue = __expectString(output["DefaultValue"]);
|
|
4486
|
-
}
|
|
4487
|
-
if (output["SourceField"] !== undefined) {
|
|
4488
|
-
contents.SourceField = __expectString(output["SourceField"]);
|
|
4489
|
-
}
|
|
4490
|
-
if (output["FacetEnabled"] !== undefined) {
|
|
4491
|
-
contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]);
|
|
4492
|
-
}
|
|
4493
|
-
if (output["SearchEnabled"] !== undefined) {
|
|
4494
|
-
contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]);
|
|
4495
|
-
}
|
|
4496
|
-
if (output["ReturnEnabled"] !== undefined) {
|
|
4497
|
-
contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]);
|
|
4498
|
-
}
|
|
4499
|
-
if (output["SortEnabled"] !== undefined) {
|
|
4500
|
-
contents.SortEnabled = __parseBoolean(output["SortEnabled"]);
|
|
4501
|
-
}
|
|
4502
|
-
return contents;
|
|
4503
|
-
};
|
|
4504
|
-
|
|
4505
|
-
const deserializeAws_queryLimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => {
|
|
4506
|
-
let contents: any = {
|
|
4507
|
-
Code: undefined,
|
|
4508
|
-
Message: undefined,
|
|
4509
|
-
};
|
|
4510
|
-
if (output["Code"] !== undefined) {
|
|
4511
|
-
contents.Code = __expectString(output["Code"]);
|
|
4512
|
-
}
|
|
4513
|
-
if (output["Message"] !== undefined) {
|
|
4514
|
-
contents.Message = __expectString(output["Message"]);
|
|
4515
|
-
}
|
|
4516
|
-
return contents;
|
|
4517
|
-
};
|
|
4518
|
-
|
|
4519
|
-
const deserializeAws_queryLimits = (output: any, context: __SerdeContext): Limits => {
|
|
4520
|
-
let contents: any = {
|
|
4521
|
-
MaximumReplicationCount: undefined,
|
|
4522
|
-
MaximumPartitionCount: undefined,
|
|
4523
|
-
};
|
|
4524
|
-
if (output["MaximumReplicationCount"] !== undefined) {
|
|
4525
|
-
contents.MaximumReplicationCount = __strictParseInt32(output["MaximumReplicationCount"]) as number;
|
|
4526
|
-
}
|
|
4527
|
-
if (output["MaximumPartitionCount"] !== undefined) {
|
|
4528
|
-
contents.MaximumPartitionCount = __strictParseInt32(output["MaximumPartitionCount"]) as number;
|
|
4529
|
-
}
|
|
4530
|
-
return contents;
|
|
4531
|
-
};
|
|
4532
|
-
|
|
4533
|
-
const deserializeAws_queryListDomainNamesResponse = (output: any, context: __SerdeContext): ListDomainNamesResponse => {
|
|
4534
|
-
let contents: any = {
|
|
4535
|
-
DomainNames: undefined,
|
|
4536
|
-
};
|
|
4537
|
-
if (output.DomainNames === "") {
|
|
4538
|
-
contents.DomainNames = {};
|
|
4539
|
-
}
|
|
4540
|
-
if (output["DomainNames"] !== undefined && output["DomainNames"]["entry"] !== undefined) {
|
|
4541
|
-
contents.DomainNames = deserializeAws_queryDomainNameMap(
|
|
4542
|
-
__getArrayIfSingleItem(output["DomainNames"]["entry"]),
|
|
4543
|
-
context
|
|
4544
|
-
);
|
|
4545
|
-
}
|
|
4546
|
-
return contents;
|
|
4547
|
-
};
|
|
4548
|
-
|
|
4549
|
-
const deserializeAws_queryLiteralArrayOptions = (output: any, context: __SerdeContext): LiteralArrayOptions => {
|
|
4550
|
-
let contents: any = {
|
|
4551
|
-
DefaultValue: undefined,
|
|
4552
|
-
SourceFields: undefined,
|
|
4553
|
-
FacetEnabled: undefined,
|
|
4554
|
-
SearchEnabled: undefined,
|
|
4555
|
-
ReturnEnabled: undefined,
|
|
4556
|
-
};
|
|
4557
|
-
if (output["DefaultValue"] !== undefined) {
|
|
4558
|
-
contents.DefaultValue = __expectString(output["DefaultValue"]);
|
|
4559
|
-
}
|
|
4560
|
-
if (output["SourceFields"] !== undefined) {
|
|
4561
|
-
contents.SourceFields = __expectString(output["SourceFields"]);
|
|
4562
|
-
}
|
|
4563
|
-
if (output["FacetEnabled"] !== undefined) {
|
|
4564
|
-
contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]);
|
|
4565
|
-
}
|
|
4566
|
-
if (output["SearchEnabled"] !== undefined) {
|
|
4567
|
-
contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]);
|
|
4568
|
-
}
|
|
4569
|
-
if (output["ReturnEnabled"] !== undefined) {
|
|
4570
|
-
contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]);
|
|
4571
|
-
}
|
|
4572
|
-
return contents;
|
|
4573
|
-
};
|
|
4574
|
-
|
|
4575
|
-
const deserializeAws_queryLiteralOptions = (output: any, context: __SerdeContext): LiteralOptions => {
|
|
4576
|
-
let contents: any = {
|
|
4577
|
-
DefaultValue: undefined,
|
|
4578
|
-
SourceField: undefined,
|
|
4579
|
-
FacetEnabled: undefined,
|
|
4580
|
-
SearchEnabled: undefined,
|
|
4581
|
-
ReturnEnabled: undefined,
|
|
4582
|
-
SortEnabled: undefined,
|
|
4583
|
-
};
|
|
4584
|
-
if (output["DefaultValue"] !== undefined) {
|
|
4585
|
-
contents.DefaultValue = __expectString(output["DefaultValue"]);
|
|
4586
|
-
}
|
|
4587
|
-
if (output["SourceField"] !== undefined) {
|
|
4588
|
-
contents.SourceField = __expectString(output["SourceField"]);
|
|
4589
|
-
}
|
|
4590
|
-
if (output["FacetEnabled"] !== undefined) {
|
|
4591
|
-
contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]);
|
|
4592
|
-
}
|
|
4593
|
-
if (output["SearchEnabled"] !== undefined) {
|
|
4594
|
-
contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]);
|
|
4595
|
-
}
|
|
4596
|
-
if (output["ReturnEnabled"] !== undefined) {
|
|
4597
|
-
contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]);
|
|
4598
|
-
}
|
|
4599
|
-
if (output["SortEnabled"] !== undefined) {
|
|
4600
|
-
contents.SortEnabled = __parseBoolean(output["SortEnabled"]);
|
|
4601
|
-
}
|
|
4602
|
-
return contents;
|
|
4603
|
-
};
|
|
4604
|
-
|
|
4605
|
-
const deserializeAws_queryOptionStatus = (output: any, context: __SerdeContext): OptionStatus => {
|
|
4606
|
-
let contents: any = {
|
|
4607
|
-
CreationDate: undefined,
|
|
4608
|
-
UpdateDate: undefined,
|
|
4609
|
-
UpdateVersion: undefined,
|
|
4610
|
-
State: undefined,
|
|
4611
|
-
PendingDeletion: undefined,
|
|
4612
|
-
};
|
|
4613
|
-
if (output["CreationDate"] !== undefined) {
|
|
4614
|
-
contents.CreationDate = __expectNonNull(__parseRfc3339DateTime(output["CreationDate"]));
|
|
4615
|
-
}
|
|
4616
|
-
if (output["UpdateDate"] !== undefined) {
|
|
4617
|
-
contents.UpdateDate = __expectNonNull(__parseRfc3339DateTime(output["UpdateDate"]));
|
|
4618
|
-
}
|
|
4619
|
-
if (output["UpdateVersion"] !== undefined) {
|
|
4620
|
-
contents.UpdateVersion = __strictParseInt32(output["UpdateVersion"]) as number;
|
|
4621
|
-
}
|
|
4622
|
-
if (output["State"] !== undefined) {
|
|
4623
|
-
contents.State = __expectString(output["State"]);
|
|
4624
|
-
}
|
|
4625
|
-
if (output["PendingDeletion"] !== undefined) {
|
|
4626
|
-
contents.PendingDeletion = __parseBoolean(output["PendingDeletion"]);
|
|
4627
|
-
}
|
|
4628
|
-
return contents;
|
|
4629
|
-
};
|
|
4630
|
-
|
|
4631
|
-
const deserializeAws_queryResourceAlreadyExistsException = (
|
|
4632
|
-
output: any,
|
|
4633
|
-
context: __SerdeContext
|
|
4634
|
-
): ResourceAlreadyExistsException => {
|
|
4635
|
-
let contents: any = {
|
|
4636
|
-
Code: undefined,
|
|
4637
|
-
Message: undefined,
|
|
4638
|
-
};
|
|
4639
|
-
if (output["Code"] !== undefined) {
|
|
4640
|
-
contents.Code = __expectString(output["Code"]);
|
|
4641
|
-
}
|
|
4642
|
-
if (output["Message"] !== undefined) {
|
|
4643
|
-
contents.Message = __expectString(output["Message"]);
|
|
4644
|
-
}
|
|
4645
|
-
return contents;
|
|
4646
|
-
};
|
|
4647
|
-
|
|
4648
|
-
const deserializeAws_queryResourceNotFoundException = (
|
|
4649
|
-
output: any,
|
|
4650
|
-
context: __SerdeContext
|
|
4651
|
-
): ResourceNotFoundException => {
|
|
4652
|
-
let contents: any = {
|
|
4653
|
-
Code: undefined,
|
|
4654
|
-
Message: undefined,
|
|
4655
|
-
};
|
|
4656
|
-
if (output["Code"] !== undefined) {
|
|
4657
|
-
contents.Code = __expectString(output["Code"]);
|
|
4658
|
-
}
|
|
4659
|
-
if (output["Message"] !== undefined) {
|
|
4660
|
-
contents.Message = __expectString(output["Message"]);
|
|
4661
|
-
}
|
|
4662
|
-
return contents;
|
|
4663
|
-
};
|
|
4664
|
-
|
|
4665
|
-
const deserializeAws_queryScalingParameters = (output: any, context: __SerdeContext): ScalingParameters => {
|
|
4666
|
-
let contents: any = {
|
|
4667
|
-
DesiredInstanceType: undefined,
|
|
4668
|
-
DesiredReplicationCount: undefined,
|
|
4669
|
-
DesiredPartitionCount: undefined,
|
|
4670
|
-
};
|
|
4671
|
-
if (output["DesiredInstanceType"] !== undefined) {
|
|
4672
|
-
contents.DesiredInstanceType = __expectString(output["DesiredInstanceType"]);
|
|
4673
|
-
}
|
|
4674
|
-
if (output["DesiredReplicationCount"] !== undefined) {
|
|
4675
|
-
contents.DesiredReplicationCount = __strictParseInt32(output["DesiredReplicationCount"]) as number;
|
|
4676
|
-
}
|
|
4677
|
-
if (output["DesiredPartitionCount"] !== undefined) {
|
|
4678
|
-
contents.DesiredPartitionCount = __strictParseInt32(output["DesiredPartitionCount"]) as number;
|
|
4679
|
-
}
|
|
4680
|
-
return contents;
|
|
4681
|
-
};
|
|
4682
|
-
|
|
4683
|
-
const deserializeAws_queryScalingParametersStatus = (output: any, context: __SerdeContext): ScalingParametersStatus => {
|
|
4684
|
-
let contents: any = {
|
|
4685
|
-
Options: undefined,
|
|
4686
|
-
Status: undefined,
|
|
4687
|
-
};
|
|
4688
|
-
if (output["Options"] !== undefined) {
|
|
4689
|
-
contents.Options = deserializeAws_queryScalingParameters(output["Options"], context);
|
|
4690
|
-
}
|
|
4691
|
-
if (output["Status"] !== undefined) {
|
|
4692
|
-
contents.Status = deserializeAws_queryOptionStatus(output["Status"], context);
|
|
4693
|
-
}
|
|
4694
|
-
return contents;
|
|
4695
|
-
};
|
|
4696
|
-
|
|
4697
|
-
const deserializeAws_queryServiceEndpoint = (output: any, context: __SerdeContext): ServiceEndpoint => {
|
|
4698
|
-
let contents: any = {
|
|
4699
|
-
Endpoint: undefined,
|
|
4700
|
-
};
|
|
4701
|
-
if (output["Endpoint"] !== undefined) {
|
|
4702
|
-
contents.Endpoint = __expectString(output["Endpoint"]);
|
|
4703
|
-
}
|
|
4704
|
-
return contents;
|
|
4705
|
-
};
|
|
4706
|
-
|
|
4707
|
-
const deserializeAws_querySuggester = (output: any, context: __SerdeContext): Suggester => {
|
|
4708
|
-
let contents: any = {
|
|
4709
|
-
SuggesterName: undefined,
|
|
4710
|
-
DocumentSuggesterOptions: undefined,
|
|
4711
|
-
};
|
|
4712
|
-
if (output["SuggesterName"] !== undefined) {
|
|
4713
|
-
contents.SuggesterName = __expectString(output["SuggesterName"]);
|
|
4714
|
-
}
|
|
4715
|
-
if (output["DocumentSuggesterOptions"] !== undefined) {
|
|
4716
|
-
contents.DocumentSuggesterOptions = deserializeAws_queryDocumentSuggesterOptions(
|
|
4717
|
-
output["DocumentSuggesterOptions"],
|
|
4718
|
-
context
|
|
4719
|
-
);
|
|
4720
|
-
}
|
|
4721
|
-
return contents;
|
|
4722
|
-
};
|
|
4723
|
-
|
|
4724
|
-
const deserializeAws_querySuggesterStatus = (output: any, context: __SerdeContext): SuggesterStatus => {
|
|
4725
|
-
let contents: any = {
|
|
4726
|
-
Options: undefined,
|
|
4727
|
-
Status: undefined,
|
|
4728
|
-
};
|
|
4729
|
-
if (output["Options"] !== undefined) {
|
|
4730
|
-
contents.Options = deserializeAws_querySuggester(output["Options"], context);
|
|
4731
|
-
}
|
|
4732
|
-
if (output["Status"] !== undefined) {
|
|
4733
|
-
contents.Status = deserializeAws_queryOptionStatus(output["Status"], context);
|
|
4734
|
-
}
|
|
4735
|
-
return contents;
|
|
4736
|
-
};
|
|
4737
|
-
|
|
4738
|
-
const deserializeAws_querySuggesterStatusList = (output: any, context: __SerdeContext): SuggesterStatus[] => {
|
|
4739
|
-
return (output || [])
|
|
4740
|
-
.filter((e: any) => e != null)
|
|
4741
|
-
.map((entry: any) => {
|
|
4742
|
-
if (entry === null) {
|
|
4743
|
-
return null as any;
|
|
4744
|
-
}
|
|
4745
|
-
return deserializeAws_querySuggesterStatus(entry, context);
|
|
4746
|
-
});
|
|
4747
|
-
};
|
|
4748
|
-
|
|
4749
|
-
const deserializeAws_queryTextArrayOptions = (output: any, context: __SerdeContext): TextArrayOptions => {
|
|
4750
|
-
let contents: any = {
|
|
4751
|
-
DefaultValue: undefined,
|
|
4752
|
-
SourceFields: undefined,
|
|
4753
|
-
ReturnEnabled: undefined,
|
|
4754
|
-
HighlightEnabled: undefined,
|
|
4755
|
-
AnalysisScheme: undefined,
|
|
4756
|
-
};
|
|
4757
|
-
if (output["DefaultValue"] !== undefined) {
|
|
4758
|
-
contents.DefaultValue = __expectString(output["DefaultValue"]);
|
|
4759
|
-
}
|
|
4760
|
-
if (output["SourceFields"] !== undefined) {
|
|
4761
|
-
contents.SourceFields = __expectString(output["SourceFields"]);
|
|
4762
|
-
}
|
|
4763
|
-
if (output["ReturnEnabled"] !== undefined) {
|
|
4764
|
-
contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]);
|
|
4765
|
-
}
|
|
4766
|
-
if (output["HighlightEnabled"] !== undefined) {
|
|
4767
|
-
contents.HighlightEnabled = __parseBoolean(output["HighlightEnabled"]);
|
|
4768
|
-
}
|
|
4769
|
-
if (output["AnalysisScheme"] !== undefined) {
|
|
4770
|
-
contents.AnalysisScheme = __expectString(output["AnalysisScheme"]);
|
|
4771
|
-
}
|
|
4772
|
-
return contents;
|
|
4773
|
-
};
|
|
4774
|
-
|
|
4775
|
-
const deserializeAws_queryTextOptions = (output: any, context: __SerdeContext): TextOptions => {
|
|
4776
|
-
let contents: any = {
|
|
4777
|
-
DefaultValue: undefined,
|
|
4778
|
-
SourceField: undefined,
|
|
4779
|
-
ReturnEnabled: undefined,
|
|
4780
|
-
SortEnabled: undefined,
|
|
4781
|
-
HighlightEnabled: undefined,
|
|
4782
|
-
AnalysisScheme: undefined,
|
|
4783
|
-
};
|
|
4784
|
-
if (output["DefaultValue"] !== undefined) {
|
|
4785
|
-
contents.DefaultValue = __expectString(output["DefaultValue"]);
|
|
4786
|
-
}
|
|
4787
|
-
if (output["SourceField"] !== undefined) {
|
|
4788
|
-
contents.SourceField = __expectString(output["SourceField"]);
|
|
4789
|
-
}
|
|
4790
|
-
if (output["ReturnEnabled"] !== undefined) {
|
|
4791
|
-
contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]);
|
|
4792
|
-
}
|
|
4793
|
-
if (output["SortEnabled"] !== undefined) {
|
|
4794
|
-
contents.SortEnabled = __parseBoolean(output["SortEnabled"]);
|
|
4795
|
-
}
|
|
4796
|
-
if (output["HighlightEnabled"] !== undefined) {
|
|
4797
|
-
contents.HighlightEnabled = __parseBoolean(output["HighlightEnabled"]);
|
|
4798
|
-
}
|
|
4799
|
-
if (output["AnalysisScheme"] !== undefined) {
|
|
4800
|
-
contents.AnalysisScheme = __expectString(output["AnalysisScheme"]);
|
|
4801
|
-
}
|
|
4802
|
-
return contents;
|
|
4803
|
-
};
|
|
4804
|
-
|
|
4805
|
-
const deserializeAws_queryUpdateAvailabilityOptionsResponse = (
|
|
4806
|
-
output: any,
|
|
4807
|
-
context: __SerdeContext
|
|
4808
|
-
): UpdateAvailabilityOptionsResponse => {
|
|
4809
|
-
let contents: any = {
|
|
4810
|
-
AvailabilityOptions: undefined,
|
|
4811
|
-
};
|
|
4812
|
-
if (output["AvailabilityOptions"] !== undefined) {
|
|
4813
|
-
contents.AvailabilityOptions = deserializeAws_queryAvailabilityOptionsStatus(
|
|
4814
|
-
output["AvailabilityOptions"],
|
|
4815
|
-
context
|
|
4816
|
-
);
|
|
4817
|
-
}
|
|
4818
|
-
return contents;
|
|
4819
|
-
};
|
|
4820
|
-
|
|
4821
|
-
const deserializeAws_queryUpdateDomainEndpointOptionsResponse = (
|
|
4822
|
-
output: any,
|
|
4823
|
-
context: __SerdeContext
|
|
4824
|
-
): UpdateDomainEndpointOptionsResponse => {
|
|
4825
|
-
let contents: any = {
|
|
4826
|
-
DomainEndpointOptions: undefined,
|
|
4827
|
-
};
|
|
4828
|
-
if (output["DomainEndpointOptions"] !== undefined) {
|
|
4829
|
-
contents.DomainEndpointOptions = deserializeAws_queryDomainEndpointOptionsStatus(
|
|
4830
|
-
output["DomainEndpointOptions"],
|
|
4831
|
-
context
|
|
4832
|
-
);
|
|
4833
|
-
}
|
|
4834
|
-
return contents;
|
|
4835
|
-
};
|
|
4836
|
-
|
|
4837
|
-
const deserializeAws_queryUpdateScalingParametersResponse = (
|
|
4838
|
-
output: any,
|
|
4839
|
-
context: __SerdeContext
|
|
4840
|
-
): UpdateScalingParametersResponse => {
|
|
4841
|
-
let contents: any = {
|
|
4842
|
-
ScalingParameters: undefined,
|
|
4843
|
-
};
|
|
4844
|
-
if (output["ScalingParameters"] !== undefined) {
|
|
4845
|
-
contents.ScalingParameters = deserializeAws_queryScalingParametersStatus(output["ScalingParameters"], context);
|
|
4846
|
-
}
|
|
4847
|
-
return contents;
|
|
4848
|
-
};
|
|
4849
|
-
|
|
4850
|
-
const deserializeAws_queryUpdateServiceAccessPoliciesResponse = (
|
|
4851
|
-
output: any,
|
|
4852
|
-
context: __SerdeContext
|
|
4853
|
-
): UpdateServiceAccessPoliciesResponse => {
|
|
4854
|
-
let contents: any = {
|
|
4855
|
-
AccessPolicies: undefined,
|
|
4856
|
-
};
|
|
4857
|
-
if (output["AccessPolicies"] !== undefined) {
|
|
4858
|
-
contents.AccessPolicies = deserializeAws_queryAccessPoliciesStatus(output["AccessPolicies"], context);
|
|
4859
|
-
}
|
|
4860
|
-
return contents;
|
|
4861
|
-
};
|
|
4862
|
-
|
|
4863
|
-
const deserializeAws_queryValidationException = (output: any, context: __SerdeContext): ValidationException => {
|
|
4864
|
-
let contents: any = {
|
|
4865
|
-
Code: undefined,
|
|
4866
|
-
Message: undefined,
|
|
4867
|
-
};
|
|
4868
|
-
if (output["Code"] !== undefined) {
|
|
4869
|
-
contents.Code = __expectString(output["Code"]);
|
|
4870
|
-
}
|
|
4871
|
-
if (output["Message"] !== undefined) {
|
|
4872
|
-
contents.Message = __expectString(output["Message"]);
|
|
4873
|
-
}
|
|
4874
|
-
return contents;
|
|
4875
|
-
};
|
|
4876
|
-
|
|
4877
|
-
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
|
|
4878
|
-
httpStatusCode: output.statusCode,
|
|
4879
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
4880
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4881
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4882
|
-
});
|
|
4883
|
-
|
|
4884
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4885
|
-
const collectBody = (streamBody: any = new Uint8Array(), context: __SerdeContext): Promise<Uint8Array> => {
|
|
4886
|
-
if (streamBody instanceof Uint8Array) {
|
|
4887
|
-
return Promise.resolve(streamBody);
|
|
4888
|
-
}
|
|
4889
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4890
|
-
};
|
|
4891
|
-
|
|
4892
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4893
|
-
const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> =>
|
|
4894
|
-
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4895
|
-
|
|
4896
|
-
const buildHttpRpcRequest = async (
|
|
4897
|
-
context: __SerdeContext,
|
|
4898
|
-
headers: __HeaderBag,
|
|
4899
|
-
path: string,
|
|
4900
|
-
resolvedHostname: string | undefined,
|
|
4901
|
-
body: any
|
|
4902
|
-
): Promise<__HttpRequest> => {
|
|
4903
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4904
|
-
const contents: any = {
|
|
4905
|
-
protocol,
|
|
4906
|
-
hostname,
|
|
4907
|
-
port,
|
|
4908
|
-
method: "POST",
|
|
4909
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
4910
|
-
headers,
|
|
4911
|
-
};
|
|
4912
|
-
if (resolvedHostname !== undefined) {
|
|
4913
|
-
contents.hostname = resolvedHostname;
|
|
4914
|
-
}
|
|
4915
|
-
if (body !== undefined) {
|
|
4916
|
-
contents.body = body;
|
|
4917
|
-
}
|
|
4918
|
-
return new __HttpRequest(contents);
|
|
4919
|
-
};
|
|
4920
|
-
|
|
4921
|
-
const parseBody = (streamBody: any, context: __SerdeContext): any =>
|
|
4922
|
-
collectBodyString(streamBody, context).then((encoded) => {
|
|
4923
|
-
if (encoded.length) {
|
|
4924
|
-
const parsedObj = xmlParse(encoded, {
|
|
4925
|
-
attributeNamePrefix: "",
|
|
4926
|
-
ignoreAttributes: false,
|
|
4927
|
-
parseNodeValue: false,
|
|
4928
|
-
trimValues: false,
|
|
4929
|
-
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : decodeHTML(val)),
|
|
4930
|
-
});
|
|
4931
|
-
const textNodeName = "#text";
|
|
4932
|
-
const key = Object.keys(parsedObj)[0];
|
|
4933
|
-
const parsedObjToReturn = parsedObj[key];
|
|
4934
|
-
if (parsedObjToReturn[textNodeName]) {
|
|
4935
|
-
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
4936
|
-
delete parsedObjToReturn[textNodeName];
|
|
4937
|
-
}
|
|
4938
|
-
return __getValueFromTextNode(parsedObjToReturn);
|
|
4939
|
-
}
|
|
4940
|
-
return {};
|
|
4941
|
-
});
|
|
4942
|
-
|
|
4943
|
-
const buildFormUrlencodedString = (formEntries: { [key: string]: string }): string =>
|
|
4944
|
-
Object.entries(formEntries)
|
|
4945
|
-
.map(([key, value]) => __extendedEncodeURIComponent(key) + "=" + __extendedEncodeURIComponent(value))
|
|
4946
|
-
.join("&");
|
|
4947
|
-
|
|
4948
|
-
const loadQueryErrorCode = (output: __HttpResponse, data: any): string => {
|
|
4949
|
-
if (data.Error.Code !== undefined) {
|
|
4950
|
-
return data.Error.Code;
|
|
4951
|
-
}
|
|
4952
|
-
if (output.statusCode == 404) {
|
|
4953
|
-
return "NotFound";
|
|
4954
|
-
}
|
|
4955
|
-
return "";
|
|
4956
|
-
};
|