@@ -21,6 +21,11 @@ import {
2121 resolveEndpointsConfig ,
2222 resolveRegionConfig ,
2323} from "@smithy/config-resolver" ;
24+ import {
25+ CompressionInputConfig ,
26+ CompressionResolvedConfig ,
27+ resolveCompressionConfig ,
28+ } from "@smithy/middleware-compression" ;
2429import { getContentLengthPlugin } from "@smithy/middleware-content-length" ;
2530import { getRetryPlugin , resolveRetryConfig , RetryInputConfig , RetryResolvedConfig } from "@smithy/middleware-retry" ;
2631import { HttpHandler as __HttpHandler } from "@smithy/protocol-http" ;
@@ -293,7 +298,8 @@ export type EC2ProtocolClientConfigType = Partial<__SmithyConfiguration<__HttpHa
293298 EndpointsInputConfig &
294299 RetryInputConfig &
295300 HostHeaderInputConfig &
296- UserAgentInputConfig ;
301+ UserAgentInputConfig &
302+ CompressionInputConfig ;
297303/**
298304 * @public
299305 *
@@ -311,7 +317,8 @@ export type EC2ProtocolClientResolvedConfigType = __SmithyResolvedConfiguration<
311317 EndpointsResolvedConfig &
312318 RetryResolvedConfig &
313319 HostHeaderResolvedConfig &
314- UserAgentResolvedConfig ;
320+ UserAgentResolvedConfig &
321+ CompressionResolvedConfig ;
315322/**
316323 * @public
317324 *
@@ -341,9 +348,10 @@ export class EC2ProtocolClient extends __Client<
341348 const _config_3 = resolveRetryConfig ( _config_2 ) ;
342349 const _config_4 = resolveHostHeaderConfig ( _config_3 ) ;
343350 const _config_5 = resolveUserAgentConfig ( _config_4 ) ;
344- const _config_6 = resolveRuntimeExtensions ( _config_5 , configuration ?. extensions || [ ] ) ;
345- super ( _config_6 ) ;
346- this . config = _config_6 ;
351+ const _config_6 = resolveCompressionConfig ( _config_5 ) ;
352+ const _config_7 = resolveRuntimeExtensions ( _config_6 , configuration ?. extensions || [ ] ) ;
353+ super ( _config_7 ) ;
354+ this . config = _config_7 ;
347355 this . middlewareStack . use ( getRetryPlugin ( this . config ) ) ;
348356 this . middlewareStack . use ( getContentLengthPlugin ( this . config ) ) ;
349357 this . middlewareStack . use ( getHostHeaderPlugin ( this . config ) ) ;
0 commit comments