Skip to content
Closed
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
20 changes: 16 additions & 4 deletions clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import {
isValidHostname as __isValidHostname,
} from "@smithy/protocol-http";
import {
_json,
collectBody,
decorateServiceException as __decorateServiceException,
expectBoolean as __expectBoolean,
expectLong as __expectLong,
expectString as __expectString,
limitedParseDouble as __limitedParseDouble,
serializeFloat as __serializeFloat,
_json,
collectBody,
take,
withBaseException,
} from "@smithy/smithy-client";
Expand Down Expand Up @@ -3059,7 +3059,19 @@ export const de_StartLiveTailCommand = async (
if (output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = { responseStream: de_StartLiveTailResponseStream(output.body, context) };

// new event stream deser paradigm
const contents: any = {
// http bindings go here, using HttpResponse.
// REST only, excludes body binding.
};
contents.responseStream = await context.eventStreamMarshaller.writeResponse(
contents,
// structure deserializer
// RPC JSON, RPC CBOR only
de_StartLiveTailResponseStream(output.body, context)
);

const response: StartLiveTailCommandOutput = {
$metadata: deserializeMetadata(output),
...contents,
Expand Down Expand Up @@ -3634,7 +3646,7 @@ const de_StartLiveTailResponseStream = (
),
};
}
return { $unknown: output };
return { $unknown: event as any };
});
};
const de_LiveTailSessionStart_event = async (output: any, context: __SerdeContext): Promise<LiveTailSessionStart> => {
Expand Down
Loading