UNPKG

cdk-amazon-chime-resources

Version:

![Experimental](https://img.shields.io/badge/experimental-important.svg?style=for-the-badge)

42 lines (41 loc) 1.93 kB
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { de_UpdateChannelReadMarkerCommand, se_UpdateChannelReadMarkerCommand } from "../protocols/Aws_restJson1"; export class UpdateChannelReadMarkerCommand extends $Command { static getEndpointParameterInstructions() { return { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, }; } constructor(input) { super(); this.input = input; } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(getEndpointPlugin(configuration, UpdateChannelReadMarkerCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; const clientName = "ChimeClient"; const commandName = "UpdateChannelReadMarkerCommand"; const handlerExecutionContext = { logger, clientName, commandName, inputFilterSensitiveLog: (_) => _, outputFilterSensitiveLog: (_) => _, }; const { requestHandler } = configuration; return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } serialize(input, context) { return se_UpdateChannelReadMarkerCommand(input, context); } deserialize(output, context) { return de_UpdateChannelReadMarkerCommand(output, context); } }