@aws-sdk/client-cloudsearch 3.31.0 → 3.32.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 +8 -0
- package/dist/cjs/CloudSearchClient.js +13 -13
- package/dist/cjs/CloudSearchClient.js.map +1 -1
- package/dist/cjs/commands/BuildSuggestersCommand.js +3 -3
- package/dist/cjs/commands/BuildSuggestersCommand.js.map +1 -1
- package/dist/cjs/commands/CreateDomainCommand.js +3 -3
- package/dist/cjs/commands/CreateDomainCommand.js.map +1 -1
- package/dist/cjs/commands/DefineAnalysisSchemeCommand.js +3 -3
- package/dist/cjs/commands/DefineAnalysisSchemeCommand.js.map +1 -1
- package/dist/cjs/commands/DefineExpressionCommand.js +3 -3
- package/dist/cjs/commands/DefineExpressionCommand.js.map +1 -1
- package/dist/cjs/commands/DefineIndexFieldCommand.js +3 -3
- package/dist/cjs/commands/DefineIndexFieldCommand.js.map +1 -1
- package/dist/cjs/commands/DefineSuggesterCommand.js +3 -3
- package/dist/cjs/commands/DefineSuggesterCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAnalysisSchemeCommand.js +3 -3
- package/dist/cjs/commands/DeleteAnalysisSchemeCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteDomainCommand.js +3 -3
- package/dist/cjs/commands/DeleteDomainCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteExpressionCommand.js +3 -3
- package/dist/cjs/commands/DeleteExpressionCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteIndexFieldCommand.js +3 -3
- package/dist/cjs/commands/DeleteIndexFieldCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteSuggesterCommand.js +3 -3
- package/dist/cjs/commands/DeleteSuggesterCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAnalysisSchemesCommand.js +3 -3
- package/dist/cjs/commands/DescribeAnalysisSchemesCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAvailabilityOptionsCommand.js +3 -3
- package/dist/cjs/commands/DescribeAvailabilityOptionsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeDomainEndpointOptionsCommand.js +3 -3
- package/dist/cjs/commands/DescribeDomainEndpointOptionsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeDomainsCommand.js +3 -3
- package/dist/cjs/commands/DescribeDomainsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeExpressionsCommand.js +3 -3
- package/dist/cjs/commands/DescribeExpressionsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeIndexFieldsCommand.js +3 -3
- package/dist/cjs/commands/DescribeIndexFieldsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeScalingParametersCommand.js +3 -3
- package/dist/cjs/commands/DescribeScalingParametersCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeServiceAccessPoliciesCommand.js +3 -3
- package/dist/cjs/commands/DescribeServiceAccessPoliciesCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeSuggestersCommand.js +3 -3
- package/dist/cjs/commands/DescribeSuggestersCommand.js.map +1 -1
- package/dist/cjs/commands/IndexDocumentsCommand.js +3 -3
- package/dist/cjs/commands/IndexDocumentsCommand.js.map +1 -1
- package/dist/cjs/commands/ListDomainNamesCommand.js +3 -3
- package/dist/cjs/commands/ListDomainNamesCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateAvailabilityOptionsCommand.js +3 -3
- package/dist/cjs/commands/UpdateAvailabilityOptionsCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateDomainEndpointOptionsCommand.js +3 -3
- package/dist/cjs/commands/UpdateDomainEndpointOptionsCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateScalingParametersCommand.js +3 -3
- package/dist/cjs/commands/UpdateScalingParametersCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateServiceAccessPoliciesCommand.js +3 -3
- package/dist/cjs/commands/UpdateServiceAccessPoliciesCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +29 -29
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_query.js +133 -133
- package/dist/cjs/protocols/Aws_query.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/package.json +31 -31
- package/tsconfig.json +1 -2
|
@@ -2632,7 +2632,7 @@ const serializeAws_queryDomainNameList = (input, context) => {
|
|
|
2632
2632
|
const serializeAws_queryDoubleArrayOptions = (input, context) => {
|
|
2633
2633
|
const entries = {};
|
|
2634
2634
|
if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
|
|
2635
|
-
entries["DefaultValue"] =
|
|
2635
|
+
entries["DefaultValue"] = smithy_client_1.serializeFloat(input.DefaultValue);
|
|
2636
2636
|
}
|
|
2637
2637
|
if (input.SourceFields !== undefined && input.SourceFields !== null) {
|
|
2638
2638
|
entries["SourceFields"] = input.SourceFields;
|
|
@@ -2651,7 +2651,7 @@ const serializeAws_queryDoubleArrayOptions = (input, context) => {
|
|
|
2651
2651
|
const serializeAws_queryDoubleOptions = (input, context) => {
|
|
2652
2652
|
const entries = {};
|
|
2653
2653
|
if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
|
|
2654
|
-
entries["DefaultValue"] =
|
|
2654
|
+
entries["DefaultValue"] = smithy_client_1.serializeFloat(input.DefaultValue);
|
|
2655
2655
|
}
|
|
2656
2656
|
if (input.SourceField !== undefined && input.SourceField !== null) {
|
|
2657
2657
|
entries["SourceField"] = input.SourceField;
|
|
@@ -3024,7 +3024,7 @@ const deserializeAws_queryAccessPoliciesStatus = (output, context) => {
|
|
|
3024
3024
|
Status: undefined,
|
|
3025
3025
|
};
|
|
3026
3026
|
if (output["Options"] !== undefined) {
|
|
3027
|
-
contents.Options =
|
|
3027
|
+
contents.Options = smithy_client_1.expectString(output["Options"]);
|
|
3028
3028
|
}
|
|
3029
3029
|
if (output["Status"] !== undefined) {
|
|
3030
3030
|
contents.Status = deserializeAws_queryOptionStatus(output["Status"], context);
|
|
@@ -3040,19 +3040,19 @@ const deserializeAws_queryAnalysisOptions = (output, context) => {
|
|
|
3040
3040
|
AlgorithmicStemming: undefined,
|
|
3041
3041
|
};
|
|
3042
3042
|
if (output["Synonyms"] !== undefined) {
|
|
3043
|
-
contents.Synonyms =
|
|
3043
|
+
contents.Synonyms = smithy_client_1.expectString(output["Synonyms"]);
|
|
3044
3044
|
}
|
|
3045
3045
|
if (output["Stopwords"] !== undefined) {
|
|
3046
|
-
contents.Stopwords =
|
|
3046
|
+
contents.Stopwords = smithy_client_1.expectString(output["Stopwords"]);
|
|
3047
3047
|
}
|
|
3048
3048
|
if (output["StemmingDictionary"] !== undefined) {
|
|
3049
|
-
contents.StemmingDictionary =
|
|
3049
|
+
contents.StemmingDictionary = smithy_client_1.expectString(output["StemmingDictionary"]);
|
|
3050
3050
|
}
|
|
3051
3051
|
if (output["JapaneseTokenizationDictionary"] !== undefined) {
|
|
3052
|
-
contents.JapaneseTokenizationDictionary =
|
|
3052
|
+
contents.JapaneseTokenizationDictionary = smithy_client_1.expectString(output["JapaneseTokenizationDictionary"]);
|
|
3053
3053
|
}
|
|
3054
3054
|
if (output["AlgorithmicStemming"] !== undefined) {
|
|
3055
|
-
contents.AlgorithmicStemming =
|
|
3055
|
+
contents.AlgorithmicStemming = smithy_client_1.expectString(output["AlgorithmicStemming"]);
|
|
3056
3056
|
}
|
|
3057
3057
|
return contents;
|
|
3058
3058
|
};
|
|
@@ -3063,10 +3063,10 @@ const deserializeAws_queryAnalysisScheme = (output, context) => {
|
|
|
3063
3063
|
AnalysisOptions: undefined,
|
|
3064
3064
|
};
|
|
3065
3065
|
if (output["AnalysisSchemeName"] !== undefined) {
|
|
3066
|
-
contents.AnalysisSchemeName =
|
|
3066
|
+
contents.AnalysisSchemeName = smithy_client_1.expectString(output["AnalysisSchemeName"]);
|
|
3067
3067
|
}
|
|
3068
3068
|
if (output["AnalysisSchemeLanguage"] !== undefined) {
|
|
3069
|
-
contents.AnalysisSchemeLanguage =
|
|
3069
|
+
contents.AnalysisSchemeLanguage = smithy_client_1.expectString(output["AnalysisSchemeLanguage"]);
|
|
3070
3070
|
}
|
|
3071
3071
|
if (output["AnalysisOptions"] !== undefined) {
|
|
3072
3072
|
contents.AnalysisOptions = deserializeAws_queryAnalysisOptions(output["AnalysisOptions"], context);
|
|
@@ -3102,7 +3102,7 @@ const deserializeAws_queryAvailabilityOptionsStatus = (output, context) => {
|
|
|
3102
3102
|
Status: undefined,
|
|
3103
3103
|
};
|
|
3104
3104
|
if (output["Options"] !== undefined) {
|
|
3105
|
-
contents.Options =
|
|
3105
|
+
contents.Options = smithy_client_1.parseBoolean(output["Options"]);
|
|
3106
3106
|
}
|
|
3107
3107
|
if (output["Status"] !== undefined) {
|
|
3108
3108
|
contents.Status = deserializeAws_queryOptionStatus(output["Status"], context);
|
|
@@ -3115,10 +3115,10 @@ const deserializeAws_queryBaseException = (output, context) => {
|
|
|
3115
3115
|
Message: undefined,
|
|
3116
3116
|
};
|
|
3117
3117
|
if (output["Code"] !== undefined) {
|
|
3118
|
-
contents.Code =
|
|
3118
|
+
contents.Code = smithy_client_1.expectString(output["Code"]);
|
|
3119
3119
|
}
|
|
3120
3120
|
if (output["Message"] !== undefined) {
|
|
3121
|
-
contents.Message =
|
|
3121
|
+
contents.Message = smithy_client_1.expectString(output["Message"]);
|
|
3122
3122
|
}
|
|
3123
3123
|
return contents;
|
|
3124
3124
|
};
|
|
@@ -3130,7 +3130,7 @@ const deserializeAws_queryBuildSuggestersResponse = (output, context) => {
|
|
|
3130
3130
|
contents.FieldNames = [];
|
|
3131
3131
|
}
|
|
3132
3132
|
if (output["FieldNames"] !== undefined && output["FieldNames"]["member"] !== undefined) {
|
|
3133
|
-
contents.FieldNames = deserializeAws_queryFieldNameList(
|
|
3133
|
+
contents.FieldNames = deserializeAws_queryFieldNameList(smithy_client_1.getArrayIfSingleItem(output["FieldNames"]["member"]), context);
|
|
3134
3134
|
}
|
|
3135
3135
|
return contents;
|
|
3136
3136
|
};
|
|
@@ -3152,19 +3152,19 @@ const deserializeAws_queryDateArrayOptions = (output, context) => {
|
|
|
3152
3152
|
ReturnEnabled: undefined,
|
|
3153
3153
|
};
|
|
3154
3154
|
if (output["DefaultValue"] !== undefined) {
|
|
3155
|
-
contents.DefaultValue =
|
|
3155
|
+
contents.DefaultValue = smithy_client_1.expectString(output["DefaultValue"]);
|
|
3156
3156
|
}
|
|
3157
3157
|
if (output["SourceFields"] !== undefined) {
|
|
3158
|
-
contents.SourceFields =
|
|
3158
|
+
contents.SourceFields = smithy_client_1.expectString(output["SourceFields"]);
|
|
3159
3159
|
}
|
|
3160
3160
|
if (output["FacetEnabled"] !== undefined) {
|
|
3161
|
-
contents.FacetEnabled =
|
|
3161
|
+
contents.FacetEnabled = smithy_client_1.parseBoolean(output["FacetEnabled"]);
|
|
3162
3162
|
}
|
|
3163
3163
|
if (output["SearchEnabled"] !== undefined) {
|
|
3164
|
-
contents.SearchEnabled =
|
|
3164
|
+
contents.SearchEnabled = smithy_client_1.parseBoolean(output["SearchEnabled"]);
|
|
3165
3165
|
}
|
|
3166
3166
|
if (output["ReturnEnabled"] !== undefined) {
|
|
3167
|
-
contents.ReturnEnabled =
|
|
3167
|
+
contents.ReturnEnabled = smithy_client_1.parseBoolean(output["ReturnEnabled"]);
|
|
3168
3168
|
}
|
|
3169
3169
|
return contents;
|
|
3170
3170
|
};
|
|
@@ -3178,22 +3178,22 @@ const deserializeAws_queryDateOptions = (output, context) => {
|
|
|
3178
3178
|
SortEnabled: undefined,
|
|
3179
3179
|
};
|
|
3180
3180
|
if (output["DefaultValue"] !== undefined) {
|
|
3181
|
-
contents.DefaultValue =
|
|
3181
|
+
contents.DefaultValue = smithy_client_1.expectString(output["DefaultValue"]);
|
|
3182
3182
|
}
|
|
3183
3183
|
if (output["SourceField"] !== undefined) {
|
|
3184
|
-
contents.SourceField =
|
|
3184
|
+
contents.SourceField = smithy_client_1.expectString(output["SourceField"]);
|
|
3185
3185
|
}
|
|
3186
3186
|
if (output["FacetEnabled"] !== undefined) {
|
|
3187
|
-
contents.FacetEnabled =
|
|
3187
|
+
contents.FacetEnabled = smithy_client_1.parseBoolean(output["FacetEnabled"]);
|
|
3188
3188
|
}
|
|
3189
3189
|
if (output["SearchEnabled"] !== undefined) {
|
|
3190
|
-
contents.SearchEnabled =
|
|
3190
|
+
contents.SearchEnabled = smithy_client_1.parseBoolean(output["SearchEnabled"]);
|
|
3191
3191
|
}
|
|
3192
3192
|
if (output["ReturnEnabled"] !== undefined) {
|
|
3193
|
-
contents.ReturnEnabled =
|
|
3193
|
+
contents.ReturnEnabled = smithy_client_1.parseBoolean(output["ReturnEnabled"]);
|
|
3194
3194
|
}
|
|
3195
3195
|
if (output["SortEnabled"] !== undefined) {
|
|
3196
|
-
contents.SortEnabled =
|
|
3196
|
+
contents.SortEnabled = smithy_client_1.parseBoolean(output["SortEnabled"]);
|
|
3197
3197
|
}
|
|
3198
3198
|
return contents;
|
|
3199
3199
|
};
|
|
@@ -3286,7 +3286,7 @@ const deserializeAws_queryDescribeAnalysisSchemesResponse = (output, context) =>
|
|
|
3286
3286
|
contents.AnalysisSchemes = [];
|
|
3287
3287
|
}
|
|
3288
3288
|
if (output["AnalysisSchemes"] !== undefined && output["AnalysisSchemes"]["member"] !== undefined) {
|
|
3289
|
-
contents.AnalysisSchemes = deserializeAws_queryAnalysisSchemeStatusList(
|
|
3289
|
+
contents.AnalysisSchemes = deserializeAws_queryAnalysisSchemeStatusList(smithy_client_1.getArrayIfSingleItem(output["AnalysisSchemes"]["member"]), context);
|
|
3290
3290
|
}
|
|
3291
3291
|
return contents;
|
|
3292
3292
|
};
|
|
@@ -3316,7 +3316,7 @@ const deserializeAws_queryDescribeDomainsResponse = (output, context) => {
|
|
|
3316
3316
|
contents.DomainStatusList = [];
|
|
3317
3317
|
}
|
|
3318
3318
|
if (output["DomainStatusList"] !== undefined && output["DomainStatusList"]["member"] !== undefined) {
|
|
3319
|
-
contents.DomainStatusList = deserializeAws_queryDomainStatusList(
|
|
3319
|
+
contents.DomainStatusList = deserializeAws_queryDomainStatusList(smithy_client_1.getArrayIfSingleItem(output["DomainStatusList"]["member"]), context);
|
|
3320
3320
|
}
|
|
3321
3321
|
return contents;
|
|
3322
3322
|
};
|
|
@@ -3328,7 +3328,7 @@ const deserializeAws_queryDescribeExpressionsResponse = (output, context) => {
|
|
|
3328
3328
|
contents.Expressions = [];
|
|
3329
3329
|
}
|
|
3330
3330
|
if (output["Expressions"] !== undefined && output["Expressions"]["member"] !== undefined) {
|
|
3331
|
-
contents.Expressions = deserializeAws_queryExpressionStatusList(
|
|
3331
|
+
contents.Expressions = deserializeAws_queryExpressionStatusList(smithy_client_1.getArrayIfSingleItem(output["Expressions"]["member"]), context);
|
|
3332
3332
|
}
|
|
3333
3333
|
return contents;
|
|
3334
3334
|
};
|
|
@@ -3340,7 +3340,7 @@ const deserializeAws_queryDescribeIndexFieldsResponse = (output, context) => {
|
|
|
3340
3340
|
contents.IndexFields = [];
|
|
3341
3341
|
}
|
|
3342
3342
|
if (output["IndexFields"] !== undefined && output["IndexFields"]["member"] !== undefined) {
|
|
3343
|
-
contents.IndexFields = deserializeAws_queryIndexFieldStatusList(
|
|
3343
|
+
contents.IndexFields = deserializeAws_queryIndexFieldStatusList(smithy_client_1.getArrayIfSingleItem(output["IndexFields"]["member"]), context);
|
|
3344
3344
|
}
|
|
3345
3345
|
return contents;
|
|
3346
3346
|
};
|
|
@@ -3370,7 +3370,7 @@ const deserializeAws_queryDescribeSuggestersResponse = (output, context) => {
|
|
|
3370
3370
|
contents.Suggesters = [];
|
|
3371
3371
|
}
|
|
3372
3372
|
if (output["Suggesters"] !== undefined && output["Suggesters"]["member"] !== undefined) {
|
|
3373
|
-
contents.Suggesters = deserializeAws_querySuggesterStatusList(
|
|
3373
|
+
contents.Suggesters = deserializeAws_querySuggesterStatusList(smithy_client_1.getArrayIfSingleItem(output["Suggesters"]["member"]), context);
|
|
3374
3374
|
}
|
|
3375
3375
|
return contents;
|
|
3376
3376
|
};
|
|
@@ -3380,10 +3380,10 @@ const deserializeAws_queryDisabledOperationException = (output, context) => {
|
|
|
3380
3380
|
Message: undefined,
|
|
3381
3381
|
};
|
|
3382
3382
|
if (output["Code"] !== undefined) {
|
|
3383
|
-
contents.Code =
|
|
3383
|
+
contents.Code = smithy_client_1.expectString(output["Code"]);
|
|
3384
3384
|
}
|
|
3385
3385
|
if (output["Message"] !== undefined) {
|
|
3386
|
-
contents.Message =
|
|
3386
|
+
contents.Message = smithy_client_1.expectString(output["Message"]);
|
|
3387
3387
|
}
|
|
3388
3388
|
return contents;
|
|
3389
3389
|
};
|
|
@@ -3394,13 +3394,13 @@ const deserializeAws_queryDocumentSuggesterOptions = (output, context) => {
|
|
|
3394
3394
|
SortExpression: undefined,
|
|
3395
3395
|
};
|
|
3396
3396
|
if (output["SourceField"] !== undefined) {
|
|
3397
|
-
contents.SourceField =
|
|
3397
|
+
contents.SourceField = smithy_client_1.expectString(output["SourceField"]);
|
|
3398
3398
|
}
|
|
3399
3399
|
if (output["FuzzyMatching"] !== undefined) {
|
|
3400
|
-
contents.FuzzyMatching =
|
|
3400
|
+
contents.FuzzyMatching = smithy_client_1.expectString(output["FuzzyMatching"]);
|
|
3401
3401
|
}
|
|
3402
3402
|
if (output["SortExpression"] !== undefined) {
|
|
3403
|
-
contents.SortExpression =
|
|
3403
|
+
contents.SortExpression = smithy_client_1.expectString(output["SortExpression"]);
|
|
3404
3404
|
}
|
|
3405
3405
|
return contents;
|
|
3406
3406
|
};
|
|
@@ -3410,10 +3410,10 @@ const deserializeAws_queryDomainEndpointOptions = (output, context) => {
|
|
|
3410
3410
|
TLSSecurityPolicy: undefined,
|
|
3411
3411
|
};
|
|
3412
3412
|
if (output["EnforceHTTPS"] !== undefined) {
|
|
3413
|
-
contents.EnforceHTTPS =
|
|
3413
|
+
contents.EnforceHTTPS = smithy_client_1.parseBoolean(output["EnforceHTTPS"]);
|
|
3414
3414
|
}
|
|
3415
3415
|
if (output["TLSSecurityPolicy"] !== undefined) {
|
|
3416
|
-
contents.TLSSecurityPolicy =
|
|
3416
|
+
contents.TLSSecurityPolicy = smithy_client_1.expectString(output["TLSSecurityPolicy"]);
|
|
3417
3417
|
}
|
|
3418
3418
|
return contents;
|
|
3419
3419
|
};
|
|
@@ -3437,7 +3437,7 @@ const deserializeAws_queryDomainNameMap = (output, context) => {
|
|
|
3437
3437
|
}
|
|
3438
3438
|
return {
|
|
3439
3439
|
...acc,
|
|
3440
|
-
[pair["key"]]:
|
|
3440
|
+
[pair["key"]]: smithy_client_1.expectString(pair["value"]),
|
|
3441
3441
|
};
|
|
3442
3442
|
}, {});
|
|
3443
3443
|
};
|
|
@@ -3458,19 +3458,19 @@ const deserializeAws_queryDomainStatus = (output, context) => {
|
|
|
3458
3458
|
Limits: undefined,
|
|
3459
3459
|
};
|
|
3460
3460
|
if (output["DomainId"] !== undefined) {
|
|
3461
|
-
contents.DomainId =
|
|
3461
|
+
contents.DomainId = smithy_client_1.expectString(output["DomainId"]);
|
|
3462
3462
|
}
|
|
3463
3463
|
if (output["DomainName"] !== undefined) {
|
|
3464
|
-
contents.DomainName =
|
|
3464
|
+
contents.DomainName = smithy_client_1.expectString(output["DomainName"]);
|
|
3465
3465
|
}
|
|
3466
3466
|
if (output["ARN"] !== undefined) {
|
|
3467
|
-
contents.ARN =
|
|
3467
|
+
contents.ARN = smithy_client_1.expectString(output["ARN"]);
|
|
3468
3468
|
}
|
|
3469
3469
|
if (output["Created"] !== undefined) {
|
|
3470
|
-
contents.Created =
|
|
3470
|
+
contents.Created = smithy_client_1.parseBoolean(output["Created"]);
|
|
3471
3471
|
}
|
|
3472
3472
|
if (output["Deleted"] !== undefined) {
|
|
3473
|
-
contents.Deleted =
|
|
3473
|
+
contents.Deleted = smithy_client_1.parseBoolean(output["Deleted"]);
|
|
3474
3474
|
}
|
|
3475
3475
|
if (output["DocService"] !== undefined) {
|
|
3476
3476
|
contents.DocService = deserializeAws_queryServiceEndpoint(output["DocService"], context);
|
|
@@ -3479,19 +3479,19 @@ const deserializeAws_queryDomainStatus = (output, context) => {
|
|
|
3479
3479
|
contents.SearchService = deserializeAws_queryServiceEndpoint(output["SearchService"], context);
|
|
3480
3480
|
}
|
|
3481
3481
|
if (output["RequiresIndexDocuments"] !== undefined) {
|
|
3482
|
-
contents.RequiresIndexDocuments =
|
|
3482
|
+
contents.RequiresIndexDocuments = smithy_client_1.parseBoolean(output["RequiresIndexDocuments"]);
|
|
3483
3483
|
}
|
|
3484
3484
|
if (output["Processing"] !== undefined) {
|
|
3485
|
-
contents.Processing =
|
|
3485
|
+
contents.Processing = smithy_client_1.parseBoolean(output["Processing"]);
|
|
3486
3486
|
}
|
|
3487
3487
|
if (output["SearchInstanceType"] !== undefined) {
|
|
3488
|
-
contents.SearchInstanceType =
|
|
3488
|
+
contents.SearchInstanceType = smithy_client_1.expectString(output["SearchInstanceType"]);
|
|
3489
3489
|
}
|
|
3490
3490
|
if (output["SearchPartitionCount"] !== undefined) {
|
|
3491
|
-
contents.SearchPartitionCount =
|
|
3491
|
+
contents.SearchPartitionCount = smithy_client_1.strictParseInt32(output["SearchPartitionCount"]);
|
|
3492
3492
|
}
|
|
3493
3493
|
if (output["SearchInstanceCount"] !== undefined) {
|
|
3494
|
-
contents.SearchInstanceCount =
|
|
3494
|
+
contents.SearchInstanceCount = smithy_client_1.strictParseInt32(output["SearchInstanceCount"]);
|
|
3495
3495
|
}
|
|
3496
3496
|
if (output["Limits"] !== undefined) {
|
|
3497
3497
|
contents.Limits = deserializeAws_queryLimits(output["Limits"], context);
|
|
@@ -3517,19 +3517,19 @@ const deserializeAws_queryDoubleArrayOptions = (output, context) => {
|
|
|
3517
3517
|
ReturnEnabled: undefined,
|
|
3518
3518
|
};
|
|
3519
3519
|
if (output["DefaultValue"] !== undefined) {
|
|
3520
|
-
contents.DefaultValue =
|
|
3520
|
+
contents.DefaultValue = smithy_client_1.strictParseFloat(output["DefaultValue"]);
|
|
3521
3521
|
}
|
|
3522
3522
|
if (output["SourceFields"] !== undefined) {
|
|
3523
|
-
contents.SourceFields =
|
|
3523
|
+
contents.SourceFields = smithy_client_1.expectString(output["SourceFields"]);
|
|
3524
3524
|
}
|
|
3525
3525
|
if (output["FacetEnabled"] !== undefined) {
|
|
3526
|
-
contents.FacetEnabled =
|
|
3526
|
+
contents.FacetEnabled = smithy_client_1.parseBoolean(output["FacetEnabled"]);
|
|
3527
3527
|
}
|
|
3528
3528
|
if (output["SearchEnabled"] !== undefined) {
|
|
3529
|
-
contents.SearchEnabled =
|
|
3529
|
+
contents.SearchEnabled = smithy_client_1.parseBoolean(output["SearchEnabled"]);
|
|
3530
3530
|
}
|
|
3531
3531
|
if (output["ReturnEnabled"] !== undefined) {
|
|
3532
|
-
contents.ReturnEnabled =
|
|
3532
|
+
contents.ReturnEnabled = smithy_client_1.parseBoolean(output["ReturnEnabled"]);
|
|
3533
3533
|
}
|
|
3534
3534
|
return contents;
|
|
3535
3535
|
};
|
|
@@ -3543,22 +3543,22 @@ const deserializeAws_queryDoubleOptions = (output, context) => {
|
|
|
3543
3543
|
SortEnabled: undefined,
|
|
3544
3544
|
};
|
|
3545
3545
|
if (output["DefaultValue"] !== undefined) {
|
|
3546
|
-
contents.DefaultValue =
|
|
3546
|
+
contents.DefaultValue = smithy_client_1.strictParseFloat(output["DefaultValue"]);
|
|
3547
3547
|
}
|
|
3548
3548
|
if (output["SourceField"] !== undefined) {
|
|
3549
|
-
contents.SourceField =
|
|
3549
|
+
contents.SourceField = smithy_client_1.expectString(output["SourceField"]);
|
|
3550
3550
|
}
|
|
3551
3551
|
if (output["FacetEnabled"] !== undefined) {
|
|
3552
|
-
contents.FacetEnabled =
|
|
3552
|
+
contents.FacetEnabled = smithy_client_1.parseBoolean(output["FacetEnabled"]);
|
|
3553
3553
|
}
|
|
3554
3554
|
if (output["SearchEnabled"] !== undefined) {
|
|
3555
|
-
contents.SearchEnabled =
|
|
3555
|
+
contents.SearchEnabled = smithy_client_1.parseBoolean(output["SearchEnabled"]);
|
|
3556
3556
|
}
|
|
3557
3557
|
if (output["ReturnEnabled"] !== undefined) {
|
|
3558
|
-
contents.ReturnEnabled =
|
|
3558
|
+
contents.ReturnEnabled = smithy_client_1.parseBoolean(output["ReturnEnabled"]);
|
|
3559
3559
|
}
|
|
3560
3560
|
if (output["SortEnabled"] !== undefined) {
|
|
3561
|
-
contents.SortEnabled =
|
|
3561
|
+
contents.SortEnabled = smithy_client_1.parseBoolean(output["SortEnabled"]);
|
|
3562
3562
|
}
|
|
3563
3563
|
return contents;
|
|
3564
3564
|
};
|
|
@@ -3568,10 +3568,10 @@ const deserializeAws_queryExpression = (output, context) => {
|
|
|
3568
3568
|
ExpressionValue: undefined,
|
|
3569
3569
|
};
|
|
3570
3570
|
if (output["ExpressionName"] !== undefined) {
|
|
3571
|
-
contents.ExpressionName =
|
|
3571
|
+
contents.ExpressionName = smithy_client_1.expectString(output["ExpressionName"]);
|
|
3572
3572
|
}
|
|
3573
3573
|
if (output["ExpressionValue"] !== undefined) {
|
|
3574
|
-
contents.ExpressionValue =
|
|
3574
|
+
contents.ExpressionValue = smithy_client_1.expectString(output["ExpressionValue"]);
|
|
3575
3575
|
}
|
|
3576
3576
|
return contents;
|
|
3577
3577
|
};
|
|
@@ -3605,7 +3605,7 @@ const deserializeAws_queryFieldNameList = (output, context) => {
|
|
|
3605
3605
|
if (entry === null) {
|
|
3606
3606
|
return null;
|
|
3607
3607
|
}
|
|
3608
|
-
return
|
|
3608
|
+
return smithy_client_1.expectString(entry);
|
|
3609
3609
|
});
|
|
3610
3610
|
};
|
|
3611
3611
|
const deserializeAws_queryIndexDocumentsResponse = (output, context) => {
|
|
@@ -3616,7 +3616,7 @@ const deserializeAws_queryIndexDocumentsResponse = (output, context) => {
|
|
|
3616
3616
|
contents.FieldNames = [];
|
|
3617
3617
|
}
|
|
3618
3618
|
if (output["FieldNames"] !== undefined && output["FieldNames"]["member"] !== undefined) {
|
|
3619
|
-
contents.FieldNames = deserializeAws_queryFieldNameList(
|
|
3619
|
+
contents.FieldNames = deserializeAws_queryFieldNameList(smithy_client_1.getArrayIfSingleItem(output["FieldNames"]["member"]), context);
|
|
3620
3620
|
}
|
|
3621
3621
|
return contents;
|
|
3622
3622
|
};
|
|
@@ -3637,10 +3637,10 @@ const deserializeAws_queryIndexField = (output, context) => {
|
|
|
3637
3637
|
DateArrayOptions: undefined,
|
|
3638
3638
|
};
|
|
3639
3639
|
if (output["IndexFieldName"] !== undefined) {
|
|
3640
|
-
contents.IndexFieldName =
|
|
3640
|
+
contents.IndexFieldName = smithy_client_1.expectString(output["IndexFieldName"]);
|
|
3641
3641
|
}
|
|
3642
3642
|
if (output["IndexFieldType"] !== undefined) {
|
|
3643
|
-
contents.IndexFieldType =
|
|
3643
|
+
contents.IndexFieldType = smithy_client_1.expectString(output["IndexFieldType"]);
|
|
3644
3644
|
}
|
|
3645
3645
|
if (output["IntOptions"] !== undefined) {
|
|
3646
3646
|
contents.IntOptions = deserializeAws_queryIntOptions(output["IntOptions"], context);
|
|
@@ -3709,19 +3709,19 @@ const deserializeAws_queryIntArrayOptions = (output, context) => {
|
|
|
3709
3709
|
ReturnEnabled: undefined,
|
|
3710
3710
|
};
|
|
3711
3711
|
if (output["DefaultValue"] !== undefined) {
|
|
3712
|
-
contents.DefaultValue =
|
|
3712
|
+
contents.DefaultValue = smithy_client_1.strictParseLong(output["DefaultValue"]);
|
|
3713
3713
|
}
|
|
3714
3714
|
if (output["SourceFields"] !== undefined) {
|
|
3715
|
-
contents.SourceFields =
|
|
3715
|
+
contents.SourceFields = smithy_client_1.expectString(output["SourceFields"]);
|
|
3716
3716
|
}
|
|
3717
3717
|
if (output["FacetEnabled"] !== undefined) {
|
|
3718
|
-
contents.FacetEnabled =
|
|
3718
|
+
contents.FacetEnabled = smithy_client_1.parseBoolean(output["FacetEnabled"]);
|
|
3719
3719
|
}
|
|
3720
3720
|
if (output["SearchEnabled"] !== undefined) {
|
|
3721
|
-
contents.SearchEnabled =
|
|
3721
|
+
contents.SearchEnabled = smithy_client_1.parseBoolean(output["SearchEnabled"]);
|
|
3722
3722
|
}
|
|
3723
3723
|
if (output["ReturnEnabled"] !== undefined) {
|
|
3724
|
-
contents.ReturnEnabled =
|
|
3724
|
+
contents.ReturnEnabled = smithy_client_1.parseBoolean(output["ReturnEnabled"]);
|
|
3725
3725
|
}
|
|
3726
3726
|
return contents;
|
|
3727
3727
|
};
|
|
@@ -3731,10 +3731,10 @@ const deserializeAws_queryInternalException = (output, context) => {
|
|
|
3731
3731
|
Message: undefined,
|
|
3732
3732
|
};
|
|
3733
3733
|
if (output["Code"] !== undefined) {
|
|
3734
|
-
contents.Code =
|
|
3734
|
+
contents.Code = smithy_client_1.expectString(output["Code"]);
|
|
3735
3735
|
}
|
|
3736
3736
|
if (output["Message"] !== undefined) {
|
|
3737
|
-
contents.Message =
|
|
3737
|
+
contents.Message = smithy_client_1.expectString(output["Message"]);
|
|
3738
3738
|
}
|
|
3739
3739
|
return contents;
|
|
3740
3740
|
};
|
|
@@ -3748,22 +3748,22 @@ const deserializeAws_queryIntOptions = (output, context) => {
|
|
|
3748
3748
|
SortEnabled: undefined,
|
|
3749
3749
|
};
|
|
3750
3750
|
if (output["DefaultValue"] !== undefined) {
|
|
3751
|
-
contents.DefaultValue =
|
|
3751
|
+
contents.DefaultValue = smithy_client_1.strictParseLong(output["DefaultValue"]);
|
|
3752
3752
|
}
|
|
3753
3753
|
if (output["SourceField"] !== undefined) {
|
|
3754
|
-
contents.SourceField =
|
|
3754
|
+
contents.SourceField = smithy_client_1.expectString(output["SourceField"]);
|
|
3755
3755
|
}
|
|
3756
3756
|
if (output["FacetEnabled"] !== undefined) {
|
|
3757
|
-
contents.FacetEnabled =
|
|
3757
|
+
contents.FacetEnabled = smithy_client_1.parseBoolean(output["FacetEnabled"]);
|
|
3758
3758
|
}
|
|
3759
3759
|
if (output["SearchEnabled"] !== undefined) {
|
|
3760
|
-
contents.SearchEnabled =
|
|
3760
|
+
contents.SearchEnabled = smithy_client_1.parseBoolean(output["SearchEnabled"]);
|
|
3761
3761
|
}
|
|
3762
3762
|
if (output["ReturnEnabled"] !== undefined) {
|
|
3763
|
-
contents.ReturnEnabled =
|
|
3763
|
+
contents.ReturnEnabled = smithy_client_1.parseBoolean(output["ReturnEnabled"]);
|
|
3764
3764
|
}
|
|
3765
3765
|
if (output["SortEnabled"] !== undefined) {
|
|
3766
|
-
contents.SortEnabled =
|
|
3766
|
+
contents.SortEnabled = smithy_client_1.parseBoolean(output["SortEnabled"]);
|
|
3767
3767
|
}
|
|
3768
3768
|
return contents;
|
|
3769
3769
|
};
|
|
@@ -3773,10 +3773,10 @@ const deserializeAws_queryInvalidTypeException = (output, context) => {
|
|
|
3773
3773
|
Message: undefined,
|
|
3774
3774
|
};
|
|
3775
3775
|
if (output["Code"] !== undefined) {
|
|
3776
|
-
contents.Code =
|
|
3776
|
+
contents.Code = smithy_client_1.expectString(output["Code"]);
|
|
3777
3777
|
}
|
|
3778
3778
|
if (output["Message"] !== undefined) {
|
|
3779
|
-
contents.Message =
|
|
3779
|
+
contents.Message = smithy_client_1.expectString(output["Message"]);
|
|
3780
3780
|
}
|
|
3781
3781
|
return contents;
|
|
3782
3782
|
};
|
|
@@ -3790,22 +3790,22 @@ const deserializeAws_queryLatLonOptions = (output, context) => {
|
|
|
3790
3790
|
SortEnabled: undefined,
|
|
3791
3791
|
};
|
|
3792
3792
|
if (output["DefaultValue"] !== undefined) {
|
|
3793
|
-
contents.DefaultValue =
|
|
3793
|
+
contents.DefaultValue = smithy_client_1.expectString(output["DefaultValue"]);
|
|
3794
3794
|
}
|
|
3795
3795
|
if (output["SourceField"] !== undefined) {
|
|
3796
|
-
contents.SourceField =
|
|
3796
|
+
contents.SourceField = smithy_client_1.expectString(output["SourceField"]);
|
|
3797
3797
|
}
|
|
3798
3798
|
if (output["FacetEnabled"] !== undefined) {
|
|
3799
|
-
contents.FacetEnabled =
|
|
3799
|
+
contents.FacetEnabled = smithy_client_1.parseBoolean(output["FacetEnabled"]);
|
|
3800
3800
|
}
|
|
3801
3801
|
if (output["SearchEnabled"] !== undefined) {
|
|
3802
|
-
contents.SearchEnabled =
|
|
3802
|
+
contents.SearchEnabled = smithy_client_1.parseBoolean(output["SearchEnabled"]);
|
|
3803
3803
|
}
|
|
3804
3804
|
if (output["ReturnEnabled"] !== undefined) {
|
|
3805
|
-
contents.ReturnEnabled =
|
|
3805
|
+
contents.ReturnEnabled = smithy_client_1.parseBoolean(output["ReturnEnabled"]);
|
|
3806
3806
|
}
|
|
3807
3807
|
if (output["SortEnabled"] !== undefined) {
|
|
3808
|
-
contents.SortEnabled =
|
|
3808
|
+
contents.SortEnabled = smithy_client_1.parseBoolean(output["SortEnabled"]);
|
|
3809
3809
|
}
|
|
3810
3810
|
return contents;
|
|
3811
3811
|
};
|
|
@@ -3815,10 +3815,10 @@ const deserializeAws_queryLimitExceededException = (output, context) => {
|
|
|
3815
3815
|
Message: undefined,
|
|
3816
3816
|
};
|
|
3817
3817
|
if (output["Code"] !== undefined) {
|
|
3818
|
-
contents.Code =
|
|
3818
|
+
contents.Code = smithy_client_1.expectString(output["Code"]);
|
|
3819
3819
|
}
|
|
3820
3820
|
if (output["Message"] !== undefined) {
|
|
3821
|
-
contents.Message =
|
|
3821
|
+
contents.Message = smithy_client_1.expectString(output["Message"]);
|
|
3822
3822
|
}
|
|
3823
3823
|
return contents;
|
|
3824
3824
|
};
|
|
@@ -3828,10 +3828,10 @@ const deserializeAws_queryLimits = (output, context) => {
|
|
|
3828
3828
|
MaximumPartitionCount: undefined,
|
|
3829
3829
|
};
|
|
3830
3830
|
if (output["MaximumReplicationCount"] !== undefined) {
|
|
3831
|
-
contents.MaximumReplicationCount =
|
|
3831
|
+
contents.MaximumReplicationCount = smithy_client_1.strictParseInt32(output["MaximumReplicationCount"]);
|
|
3832
3832
|
}
|
|
3833
3833
|
if (output["MaximumPartitionCount"] !== undefined) {
|
|
3834
|
-
contents.MaximumPartitionCount =
|
|
3834
|
+
contents.MaximumPartitionCount = smithy_client_1.strictParseInt32(output["MaximumPartitionCount"]);
|
|
3835
3835
|
}
|
|
3836
3836
|
return contents;
|
|
3837
3837
|
};
|
|
@@ -3843,7 +3843,7 @@ const deserializeAws_queryListDomainNamesResponse = (output, context) => {
|
|
|
3843
3843
|
contents.DomainNames = {};
|
|
3844
3844
|
}
|
|
3845
3845
|
if (output["DomainNames"] !== undefined && output["DomainNames"]["entry"] !== undefined) {
|
|
3846
|
-
contents.DomainNames = deserializeAws_queryDomainNameMap(
|
|
3846
|
+
contents.DomainNames = deserializeAws_queryDomainNameMap(smithy_client_1.getArrayIfSingleItem(output["DomainNames"]["entry"]), context);
|
|
3847
3847
|
}
|
|
3848
3848
|
return contents;
|
|
3849
3849
|
};
|
|
@@ -3856,19 +3856,19 @@ const deserializeAws_queryLiteralArrayOptions = (output, context) => {
|
|
|
3856
3856
|
ReturnEnabled: undefined,
|
|
3857
3857
|
};
|
|
3858
3858
|
if (output["DefaultValue"] !== undefined) {
|
|
3859
|
-
contents.DefaultValue =
|
|
3859
|
+
contents.DefaultValue = smithy_client_1.expectString(output["DefaultValue"]);
|
|
3860
3860
|
}
|
|
3861
3861
|
if (output["SourceFields"] !== undefined) {
|
|
3862
|
-
contents.SourceFields =
|
|
3862
|
+
contents.SourceFields = smithy_client_1.expectString(output["SourceFields"]);
|
|
3863
3863
|
}
|
|
3864
3864
|
if (output["FacetEnabled"] !== undefined) {
|
|
3865
|
-
contents.FacetEnabled =
|
|
3865
|
+
contents.FacetEnabled = smithy_client_1.parseBoolean(output["FacetEnabled"]);
|
|
3866
3866
|
}
|
|
3867
3867
|
if (output["SearchEnabled"] !== undefined) {
|
|
3868
|
-
contents.SearchEnabled =
|
|
3868
|
+
contents.SearchEnabled = smithy_client_1.parseBoolean(output["SearchEnabled"]);
|
|
3869
3869
|
}
|
|
3870
3870
|
if (output["ReturnEnabled"] !== undefined) {
|
|
3871
|
-
contents.ReturnEnabled =
|
|
3871
|
+
contents.ReturnEnabled = smithy_client_1.parseBoolean(output["ReturnEnabled"]);
|
|
3872
3872
|
}
|
|
3873
3873
|
return contents;
|
|
3874
3874
|
};
|
|
@@ -3882,22 +3882,22 @@ const deserializeAws_queryLiteralOptions = (output, context) => {
|
|
|
3882
3882
|
SortEnabled: undefined,
|
|
3883
3883
|
};
|
|
3884
3884
|
if (output["DefaultValue"] !== undefined) {
|
|
3885
|
-
contents.DefaultValue =
|
|
3885
|
+
contents.DefaultValue = smithy_client_1.expectString(output["DefaultValue"]);
|
|
3886
3886
|
}
|
|
3887
3887
|
if (output["SourceField"] !== undefined) {
|
|
3888
|
-
contents.SourceField =
|
|
3888
|
+
contents.SourceField = smithy_client_1.expectString(output["SourceField"]);
|
|
3889
3889
|
}
|
|
3890
3890
|
if (output["FacetEnabled"] !== undefined) {
|
|
3891
|
-
contents.FacetEnabled =
|
|
3891
|
+
contents.FacetEnabled = smithy_client_1.parseBoolean(output["FacetEnabled"]);
|
|
3892
3892
|
}
|
|
3893
3893
|
if (output["SearchEnabled"] !== undefined) {
|
|
3894
|
-
contents.SearchEnabled =
|
|
3894
|
+
contents.SearchEnabled = smithy_client_1.parseBoolean(output["SearchEnabled"]);
|
|
3895
3895
|
}
|
|
3896
3896
|
if (output["ReturnEnabled"] !== undefined) {
|
|
3897
|
-
contents.ReturnEnabled =
|
|
3897
|
+
contents.ReturnEnabled = smithy_client_1.parseBoolean(output["ReturnEnabled"]);
|
|
3898
3898
|
}
|
|
3899
3899
|
if (output["SortEnabled"] !== undefined) {
|
|
3900
|
-
contents.SortEnabled =
|
|
3900
|
+
contents.SortEnabled = smithy_client_1.parseBoolean(output["SortEnabled"]);
|
|
3901
3901
|
}
|
|
3902
3902
|
return contents;
|
|
3903
3903
|
};
|
|
@@ -3910,19 +3910,19 @@ const deserializeAws_queryOptionStatus = (output, context) => {
|
|
|
3910
3910
|
PendingDeletion: undefined,
|
|
3911
3911
|
};
|
|
3912
3912
|
if (output["CreationDate"] !== undefined) {
|
|
3913
|
-
contents.CreationDate =
|
|
3913
|
+
contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["CreationDate"]));
|
|
3914
3914
|
}
|
|
3915
3915
|
if (output["UpdateDate"] !== undefined) {
|
|
3916
|
-
contents.UpdateDate =
|
|
3916
|
+
contents.UpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["UpdateDate"]));
|
|
3917
3917
|
}
|
|
3918
3918
|
if (output["UpdateVersion"] !== undefined) {
|
|
3919
|
-
contents.UpdateVersion =
|
|
3919
|
+
contents.UpdateVersion = smithy_client_1.strictParseInt32(output["UpdateVersion"]);
|
|
3920
3920
|
}
|
|
3921
3921
|
if (output["State"] !== undefined) {
|
|
3922
|
-
contents.State =
|
|
3922
|
+
contents.State = smithy_client_1.expectString(output["State"]);
|
|
3923
3923
|
}
|
|
3924
3924
|
if (output["PendingDeletion"] !== undefined) {
|
|
3925
|
-
contents.PendingDeletion =
|
|
3925
|
+
contents.PendingDeletion = smithy_client_1.parseBoolean(output["PendingDeletion"]);
|
|
3926
3926
|
}
|
|
3927
3927
|
return contents;
|
|
3928
3928
|
};
|
|
@@ -3932,10 +3932,10 @@ const deserializeAws_queryResourceAlreadyExistsException = (output, context) =>
|
|
|
3932
3932
|
Message: undefined,
|
|
3933
3933
|
};
|
|
3934
3934
|
if (output["Code"] !== undefined) {
|
|
3935
|
-
contents.Code =
|
|
3935
|
+
contents.Code = smithy_client_1.expectString(output["Code"]);
|
|
3936
3936
|
}
|
|
3937
3937
|
if (output["Message"] !== undefined) {
|
|
3938
|
-
contents.Message =
|
|
3938
|
+
contents.Message = smithy_client_1.expectString(output["Message"]);
|
|
3939
3939
|
}
|
|
3940
3940
|
return contents;
|
|
3941
3941
|
};
|
|
@@ -3945,10 +3945,10 @@ const deserializeAws_queryResourceNotFoundException = (output, context) => {
|
|
|
3945
3945
|
Message: undefined,
|
|
3946
3946
|
};
|
|
3947
3947
|
if (output["Code"] !== undefined) {
|
|
3948
|
-
contents.Code =
|
|
3948
|
+
contents.Code = smithy_client_1.expectString(output["Code"]);
|
|
3949
3949
|
}
|
|
3950
3950
|
if (output["Message"] !== undefined) {
|
|
3951
|
-
contents.Message =
|
|
3951
|
+
contents.Message = smithy_client_1.expectString(output["Message"]);
|
|
3952
3952
|
}
|
|
3953
3953
|
return contents;
|
|
3954
3954
|
};
|
|
@@ -3959,13 +3959,13 @@ const deserializeAws_queryScalingParameters = (output, context) => {
|
|
|
3959
3959
|
DesiredPartitionCount: undefined,
|
|
3960
3960
|
};
|
|
3961
3961
|
if (output["DesiredInstanceType"] !== undefined) {
|
|
3962
|
-
contents.DesiredInstanceType =
|
|
3962
|
+
contents.DesiredInstanceType = smithy_client_1.expectString(output["DesiredInstanceType"]);
|
|
3963
3963
|
}
|
|
3964
3964
|
if (output["DesiredReplicationCount"] !== undefined) {
|
|
3965
|
-
contents.DesiredReplicationCount =
|
|
3965
|
+
contents.DesiredReplicationCount = smithy_client_1.strictParseInt32(output["DesiredReplicationCount"]);
|
|
3966
3966
|
}
|
|
3967
3967
|
if (output["DesiredPartitionCount"] !== undefined) {
|
|
3968
|
-
contents.DesiredPartitionCount =
|
|
3968
|
+
contents.DesiredPartitionCount = smithy_client_1.strictParseInt32(output["DesiredPartitionCount"]);
|
|
3969
3969
|
}
|
|
3970
3970
|
return contents;
|
|
3971
3971
|
};
|
|
@@ -3987,7 +3987,7 @@ const deserializeAws_queryServiceEndpoint = (output, context) => {
|
|
|
3987
3987
|
Endpoint: undefined,
|
|
3988
3988
|
};
|
|
3989
3989
|
if (output["Endpoint"] !== undefined) {
|
|
3990
|
-
contents.Endpoint =
|
|
3990
|
+
contents.Endpoint = smithy_client_1.expectString(output["Endpoint"]);
|
|
3991
3991
|
}
|
|
3992
3992
|
return contents;
|
|
3993
3993
|
};
|
|
@@ -3997,7 +3997,7 @@ const deserializeAws_querySuggester = (output, context) => {
|
|
|
3997
3997
|
DocumentSuggesterOptions: undefined,
|
|
3998
3998
|
};
|
|
3999
3999
|
if (output["SuggesterName"] !== undefined) {
|
|
4000
|
-
contents.SuggesterName =
|
|
4000
|
+
contents.SuggesterName = smithy_client_1.expectString(output["SuggesterName"]);
|
|
4001
4001
|
}
|
|
4002
4002
|
if (output["DocumentSuggesterOptions"] !== undefined) {
|
|
4003
4003
|
contents.DocumentSuggesterOptions = deserializeAws_queryDocumentSuggesterOptions(output["DocumentSuggesterOptions"], context);
|
|
@@ -4036,19 +4036,19 @@ const deserializeAws_queryTextArrayOptions = (output, context) => {
|
|
|
4036
4036
|
AnalysisScheme: undefined,
|
|
4037
4037
|
};
|
|
4038
4038
|
if (output["DefaultValue"] !== undefined) {
|
|
4039
|
-
contents.DefaultValue =
|
|
4039
|
+
contents.DefaultValue = smithy_client_1.expectString(output["DefaultValue"]);
|
|
4040
4040
|
}
|
|
4041
4041
|
if (output["SourceFields"] !== undefined) {
|
|
4042
|
-
contents.SourceFields =
|
|
4042
|
+
contents.SourceFields = smithy_client_1.expectString(output["SourceFields"]);
|
|
4043
4043
|
}
|
|
4044
4044
|
if (output["ReturnEnabled"] !== undefined) {
|
|
4045
|
-
contents.ReturnEnabled =
|
|
4045
|
+
contents.ReturnEnabled = smithy_client_1.parseBoolean(output["ReturnEnabled"]);
|
|
4046
4046
|
}
|
|
4047
4047
|
if (output["HighlightEnabled"] !== undefined) {
|
|
4048
|
-
contents.HighlightEnabled =
|
|
4048
|
+
contents.HighlightEnabled = smithy_client_1.parseBoolean(output["HighlightEnabled"]);
|
|
4049
4049
|
}
|
|
4050
4050
|
if (output["AnalysisScheme"] !== undefined) {
|
|
4051
|
-
contents.AnalysisScheme =
|
|
4051
|
+
contents.AnalysisScheme = smithy_client_1.expectString(output["AnalysisScheme"]);
|
|
4052
4052
|
}
|
|
4053
4053
|
return contents;
|
|
4054
4054
|
};
|
|
@@ -4062,22 +4062,22 @@ const deserializeAws_queryTextOptions = (output, context) => {
|
|
|
4062
4062
|
AnalysisScheme: undefined,
|
|
4063
4063
|
};
|
|
4064
4064
|
if (output["DefaultValue"] !== undefined) {
|
|
4065
|
-
contents.DefaultValue =
|
|
4065
|
+
contents.DefaultValue = smithy_client_1.expectString(output["DefaultValue"]);
|
|
4066
4066
|
}
|
|
4067
4067
|
if (output["SourceField"] !== undefined) {
|
|
4068
|
-
contents.SourceField =
|
|
4068
|
+
contents.SourceField = smithy_client_1.expectString(output["SourceField"]);
|
|
4069
4069
|
}
|
|
4070
4070
|
if (output["ReturnEnabled"] !== undefined) {
|
|
4071
|
-
contents.ReturnEnabled =
|
|
4071
|
+
contents.ReturnEnabled = smithy_client_1.parseBoolean(output["ReturnEnabled"]);
|
|
4072
4072
|
}
|
|
4073
4073
|
if (output["SortEnabled"] !== undefined) {
|
|
4074
|
-
contents.SortEnabled =
|
|
4074
|
+
contents.SortEnabled = smithy_client_1.parseBoolean(output["SortEnabled"]);
|
|
4075
4075
|
}
|
|
4076
4076
|
if (output["HighlightEnabled"] !== undefined) {
|
|
4077
|
-
contents.HighlightEnabled =
|
|
4077
|
+
contents.HighlightEnabled = smithy_client_1.parseBoolean(output["HighlightEnabled"]);
|
|
4078
4078
|
}
|
|
4079
4079
|
if (output["AnalysisScheme"] !== undefined) {
|
|
4080
|
-
contents.AnalysisScheme =
|
|
4080
|
+
contents.AnalysisScheme = smithy_client_1.expectString(output["AnalysisScheme"]);
|
|
4081
4081
|
}
|
|
4082
4082
|
return contents;
|
|
4083
4083
|
};
|
|
@@ -4123,10 +4123,10 @@ const deserializeAws_queryValidationException = (output, context) => {
|
|
|
4123
4123
|
Message: undefined,
|
|
4124
4124
|
};
|
|
4125
4125
|
if (output["Code"] !== undefined) {
|
|
4126
|
-
contents.Code =
|
|
4126
|
+
contents.Code = smithy_client_1.expectString(output["Code"]);
|
|
4127
4127
|
}
|
|
4128
4128
|
if (output["Message"] !== undefined) {
|
|
4129
|
-
contents.Message =
|
|
4129
|
+
contents.Message = smithy_client_1.expectString(output["Message"]);
|
|
4130
4130
|
}
|
|
4131
4131
|
return contents;
|
|
4132
4132
|
};
|
|
@@ -4168,12 +4168,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4168
4168
|
};
|
|
4169
4169
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4170
4170
|
if (encoded.length) {
|
|
4171
|
-
const parsedObj =
|
|
4171
|
+
const parsedObj = fast_xml_parser_1.parse(encoded, {
|
|
4172
4172
|
attributeNamePrefix: "",
|
|
4173
4173
|
ignoreAttributes: false,
|
|
4174
4174
|
parseNodeValue: false,
|
|
4175
4175
|
trimValues: false,
|
|
4176
|
-
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" :
|
|
4176
|
+
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : entities_1.decodeHTML(val)),
|
|
4177
4177
|
});
|
|
4178
4178
|
const textNodeName = "#text";
|
|
4179
4179
|
const key = Object.keys(parsedObj)[0];
|
|
@@ -4182,12 +4182,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4182
4182
|
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
4183
4183
|
delete parsedObjToReturn[textNodeName];
|
|
4184
4184
|
}
|
|
4185
|
-
return
|
|
4185
|
+
return smithy_client_1.getValueFromTextNode(parsedObjToReturn);
|
|
4186
4186
|
}
|
|
4187
4187
|
return {};
|
|
4188
4188
|
});
|
|
4189
4189
|
const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
|
|
4190
|
-
.map(([key, value]) =>
|
|
4190
|
+
.map(([key, value]) => smithy_client_1.extendedEncodeURIComponent(key) + "=" + smithy_client_1.extendedEncodeURIComponent(value))
|
|
4191
4191
|
.join("&");
|
|
4192
4192
|
const loadQueryErrorCode = (output, data) => {
|
|
4193
4193
|
if (data.Error.Code !== undefined) {
|