Skip to content

Commit

Permalink
chore(client-cloudwatch): add middleware depending on requestCompress…
Browse files Browse the repository at this point in the history
…ion trait
  • Loading branch information
trivikr committed Jan 3, 2024
1 parent b6f4cc9 commit e2e81a7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { getCompressionPlugin } from "@smithy/middleware-compression";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
Expand Down Expand Up @@ -150,6 +151,7 @@ export class PutMetricDataCommand extends $Command
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getCompressionPlugin(config, { encodings: ["gzip"] }),
];
})
.s("GraniteServiceVersion20100801", "PutMetricData", {})
Expand Down

0 comments on commit e2e81a7

Please sign in to comment.