Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: log requestId, extendedRequestId, cfId in $metadata #1819

Merged
merged 2 commits into from
Dec 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion clients/client-accessanalyzer/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2782,7 +2782,9 @@ const deserializeAws_restJson1ValueList = (output: any, context: __SerdeContext)

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-acm-pca/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3427,7 +3427,9 @@ const deserializeAws_json1_1TooManyTagsException = (output: any, context: __Serd

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-acm/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2101,7 +2101,9 @@ const deserializeAws_json1_1ValidationEmailList = (output: any, context: __Serde

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-alexa-for-business/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10652,7 +10652,9 @@ const deserializeAws_json1_1UserDataList = (output: any, context: __SerdeContext

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-amplify/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5484,7 +5484,9 @@ const deserializeAws_restJson1Webhooks = (output: any, context: __SerdeContext):

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-amplifybackend/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4244,7 +4244,9 @@ const deserializeAws_restJson1SocialProviderSettings = (

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-api-gateway/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18126,7 +18126,9 @@ const deserializeAws_restJson1VpcLink = (output: any, context: __SerdeContext):

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,9 @@ const deserializeAws_restJson1Identity = (output: any, context: __SerdeContext):

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-apigatewayv2/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10719,7 +10719,9 @@ const deserializeAws_restJson1VpcLink = (output: any, context: __SerdeContext):

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-app-mesh/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8518,7 +8518,9 @@ const deserializeAws_restJson1WeightedTargets = (output: any, context: __SerdeCo

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-appconfig/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4608,7 +4608,9 @@ const deserializeAws_restJson1ValidatorTypeList = (

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-appflow/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4746,7 +4746,9 @@ const deserializeAws_restJson1ZendeskSourceProperties = (

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-appintegrations/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,9 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): {

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1941,7 +1941,9 @@ const deserializeAws_json1_1ValidationException = (output: any, context: __Serde

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4160,7 +4160,9 @@ const deserializeAws_json1_1UpdateApplicationResponse = (

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-application-insights/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3616,7 +3616,9 @@ const deserializeAws_json1_1WorkloadMetaData = (output: any, context: __SerdeCon

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-appstream/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6656,7 +6656,9 @@ const deserializeAws_json1_1VpcConfig = (output: any, context: __SerdeContext):

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-appsync/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6126,7 +6126,9 @@ const deserializeAws_restJson1UserPoolConfig = (output: any, context: __SerdeCon

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-athena/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3585,7 +3585,9 @@ const deserializeAws_json1_1WorkGroupSummary = (output: any, context: __SerdeCon

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-auditmanager/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7292,7 +7292,9 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-auto-scaling-plans/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,9 @@ const deserializeAws_json1_1ValidationException = (output: any, context: __Serde

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-auto-scaling/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8851,7 +8851,9 @@ const deserializeAws_queryTerminationPolicies = (output: any, context: __SerdeCo

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-backup/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7250,7 +7250,9 @@ const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-batch/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3546,7 +3546,9 @@ const deserializeAws_restJson1Volumes = (output: any, context: __SerdeContext):

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-braket/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,9 @@ const deserializeAws_restJson1QuantumTaskSummaryList = (output: any, context: __

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-budgets/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3737,7 +3737,9 @@ const deserializeAws_json1_1Users = (output: any, context: __SerdeContext): stri

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-chime/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28359,7 +28359,9 @@ const deserializeAws_restJson1VoiceConnectorSettings = (

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-cloud9/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2096,7 +2096,9 @@ const deserializeAws_json1_1UpdateEnvironmentResult = (

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-clouddirectory/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12718,7 +12718,9 @@ const deserializeAws_restJson1TypedLinkSpecifierList = (output: any, context: __

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-cloudformation/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9541,7 +9541,9 @@ const deserializeAws_queryValidateTemplateOutput = (output: any, context: __Serd

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-cloudfront/protocols/Aws_restXml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17013,7 +17013,9 @@ const deserializeAws_restXmlViewerCertificate = (output: any, context: __SerdeCo

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-cloudhsm-v2/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2287,7 +2287,9 @@ const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __Ser

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-cloudhsm/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2340,7 +2340,9 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-cloudsearch-domain/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,9 @@ const deserializeAws_restJson1SuggestStatus = (output: any, context: __SerdeCont

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-cloudsearch/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4818,7 +4818,9 @@ const deserializeAws_queryValidationException = (output: any, context: __SerdeCo

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
4 changes: 3 additions & 1 deletion clients/client-cloudtrail/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4479,7 +4479,9 @@ const deserializeAws_json1_1UpdateTrailResponse = (output: any, context: __Serde

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"],
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
});

// Collect low-level response body stream to Uint8Array.
Expand Down
Loading