Skip to content

Commit 5c5fd2e

Browse files
authored
feat(clients): allow protocol selection by class constructor (#7568)
1 parent 0ddef7f commit 5c5fd2e

File tree

20,780 files changed

+394403
-230819
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

20,780 files changed

+394403
-230819
lines changed

clients/client-accessanalyzer/package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,30 +32,30 @@
3232
"@aws-sdk/util-endpoints": "*",
3333
"@aws-sdk/util-user-agent-browser": "*",
3434
"@aws-sdk/util-user-agent-node": "*",
35-
"@smithy/config-resolver": "^4.4.3",
36-
"@smithy/core": "^3.18.7",
37-
"@smithy/fetch-http-handler": "^5.3.6",
38-
"@smithy/hash-node": "^4.2.5",
39-
"@smithy/invalid-dependency": "^4.2.5",
40-
"@smithy/middleware-content-length": "^4.2.5",
41-
"@smithy/middleware-endpoint": "^4.3.14",
42-
"@smithy/middleware-retry": "^4.4.14",
43-
"@smithy/middleware-serde": "^4.2.6",
44-
"@smithy/middleware-stack": "^4.2.5",
45-
"@smithy/node-config-provider": "^4.3.5",
46-
"@smithy/node-http-handler": "^4.4.5",
47-
"@smithy/protocol-http": "^5.3.5",
48-
"@smithy/smithy-client": "^4.9.10",
49-
"@smithy/types": "^4.9.0",
50-
"@smithy/url-parser": "^4.2.5",
35+
"@smithy/config-resolver": "^4.4.4",
36+
"@smithy/core": "^3.19.0",
37+
"@smithy/fetch-http-handler": "^5.3.7",
38+
"@smithy/hash-node": "^4.2.6",
39+
"@smithy/invalid-dependency": "^4.2.6",
40+
"@smithy/middleware-content-length": "^4.2.6",
41+
"@smithy/middleware-endpoint": "^4.3.15",
42+
"@smithy/middleware-retry": "^4.4.15",
43+
"@smithy/middleware-serde": "^4.2.7",
44+
"@smithy/middleware-stack": "^4.2.6",
45+
"@smithy/node-config-provider": "^4.3.6",
46+
"@smithy/node-http-handler": "^4.4.6",
47+
"@smithy/protocol-http": "^5.3.6",
48+
"@smithy/smithy-client": "^4.10.0",
49+
"@smithy/types": "^4.10.0",
50+
"@smithy/url-parser": "^4.2.6",
5151
"@smithy/util-base64": "^4.3.0",
5252
"@smithy/util-body-length-browser": "^4.2.0",
5353
"@smithy/util-body-length-node": "^4.2.1",
54-
"@smithy/util-defaults-mode-browser": "^4.3.13",
55-
"@smithy/util-defaults-mode-node": "^4.2.16",
56-
"@smithy/util-endpoints": "^3.2.5",
57-
"@smithy/util-middleware": "^4.2.5",
58-
"@smithy/util-retry": "^4.2.5",
54+
"@smithy/util-defaults-mode-browser": "^4.3.14",
55+
"@smithy/util-defaults-mode-node": "^4.2.17",
56+
"@smithy/util-endpoints": "^3.2.6",
57+
"@smithy/util-middleware": "^4.2.6",
58+
"@smithy/util-retry": "^4.2.6",
5959
"@smithy/util-utf8": "^4.2.0",
6060
"tslib": "^2.6.2"
6161
},

clients/client-accessanalyzer/src/AccessAnalyzerClient.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,10 @@ import {
4343
type BodyLengthCalculator as __BodyLengthCalculator,
4444
type CheckOptionalClientConfig as __CheckOptionalClientConfig,
4545
type ChecksumConstructor as __ChecksumConstructor,
46-
type ClientProtocol,
4746
type Decoder as __Decoder,
4847
type Encoder as __Encoder,
4948
type HashConstructor as __HashConstructor,
5049
type HttpHandlerOptions as __HttpHandlerOptions,
51-
type HttpRequest,
52-
type HttpResponse,
5350
type Logger as __Logger,
5451
type Provider as __Provider,
5552
type StreamCollector as __StreamCollector,
@@ -382,16 +379,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
382379
*/
383380
extensions?: RuntimeExtension[];
384381

385-
/**
386-
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
387-
* may be overridden. A default will always be set by the client.
388-
* Available options depend on the service's supported protocols and will not be validated by
389-
* the client.
390-
* @alpha
391-
*
392-
*/
393-
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
394-
395382
/**
396383
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
397384
*/

clients/client-accessanalyzer/src/commands/ApplyArchiveRuleCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
} from "../AccessAnalyzerClient";
1111
import { commonParams } from "../endpoint/EndpointParameters";
1212
import type { ApplyArchiveRuleRequest } from "../models/models_0";
13-
import { ApplyArchiveRule } from "../schemas/schemas_0";
13+
import { ApplyArchiveRule$ } from "../schemas/schemas_0";
1414

1515
/**
1616
* @public
@@ -92,7 +92,7 @@ export class ApplyArchiveRuleCommand extends $Command
9292
})
9393
.s("AccessAnalyzer", "ApplyArchiveRule", {})
9494
.n("AccessAnalyzerClient", "ApplyArchiveRuleCommand")
95-
.sc(ApplyArchiveRule)
95+
.sc(ApplyArchiveRule$)
9696
.build() {
9797
/** @internal type navigation helper, not in runtime. */
9898
protected declare static __types: {

clients/client-accessanalyzer/src/commands/CancelPolicyGenerationCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
} from "../AccessAnalyzerClient";
1111
import { commonParams } from "../endpoint/EndpointParameters";
1212
import type { CancelPolicyGenerationRequest, CancelPolicyGenerationResponse } from "../models/models_0";
13-
import { CancelPolicyGeneration } from "../schemas/schemas_0";
13+
import { CancelPolicyGeneration$ } from "../schemas/schemas_0";
1414

1515
/**
1616
* @public
@@ -87,7 +87,7 @@ export class CancelPolicyGenerationCommand extends $Command
8787
})
8888
.s("AccessAnalyzer", "CancelPolicyGeneration", {})
8989
.n("AccessAnalyzerClient", "CancelPolicyGenerationCommand")
90-
.sc(CancelPolicyGeneration)
90+
.sc(CancelPolicyGeneration$)
9191
.build() {
9292
/** @internal type navigation helper, not in runtime. */
9393
protected declare static __types: {

clients/client-accessanalyzer/src/commands/CheckAccessNotGrantedCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
} from "../AccessAnalyzerClient";
1111
import { commonParams } from "../endpoint/EndpointParameters";
1212
import type { CheckAccessNotGrantedRequest, CheckAccessNotGrantedResponse } from "../models/models_0";
13-
import { CheckAccessNotGranted } from "../schemas/schemas_0";
13+
import { CheckAccessNotGranted$ } from "../schemas/schemas_0";
1414

1515
/**
1616
* @public
@@ -193,7 +193,7 @@ export class CheckAccessNotGrantedCommand extends $Command
193193
})
194194
.s("AccessAnalyzer", "CheckAccessNotGranted", {})
195195
.n("AccessAnalyzerClient", "CheckAccessNotGrantedCommand")
196-
.sc(CheckAccessNotGranted)
196+
.sc(CheckAccessNotGranted$)
197197
.build() {
198198
/** @internal type navigation helper, not in runtime. */
199199
protected declare static __types: {

clients/client-accessanalyzer/src/commands/CheckNoNewAccessCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
} from "../AccessAnalyzerClient";
1111
import { commonParams } from "../endpoint/EndpointParameters";
1212
import type { CheckNoNewAccessRequest, CheckNoNewAccessResponse } from "../models/models_0";
13-
import { CheckNoNewAccess } from "../schemas/schemas_0";
13+
import { CheckNoNewAccess$ } from "../schemas/schemas_0";
1414

1515
/**
1616
* @public
@@ -105,7 +105,7 @@ export class CheckNoNewAccessCommand extends $Command
105105
})
106106
.s("AccessAnalyzer", "CheckNoNewAccess", {})
107107
.n("AccessAnalyzerClient", "CheckNoNewAccessCommand")
108-
.sc(CheckNoNewAccess)
108+
.sc(CheckNoNewAccess$)
109109
.build() {
110110
/** @internal type navigation helper, not in runtime. */
111111
protected declare static __types: {

clients/client-accessanalyzer/src/commands/CheckNoPublicAccessCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
} from "../AccessAnalyzerClient";
1111
import { commonParams } from "../endpoint/EndpointParameters";
1212
import type { CheckNoPublicAccessRequest, CheckNoPublicAccessResponse } from "../models/models_0";
13-
import { CheckNoPublicAccess } from "../schemas/schemas_0";
13+
import { CheckNoPublicAccess$ } from "../schemas/schemas_0";
1414

1515
/**
1616
* @public
@@ -145,7 +145,7 @@ export class CheckNoPublicAccessCommand extends $Command
145145
})
146146
.s("AccessAnalyzer", "CheckNoPublicAccess", {})
147147
.n("AccessAnalyzerClient", "CheckNoPublicAccessCommand")
148-
.sc(CheckNoPublicAccess)
148+
.sc(CheckNoPublicAccess$)
149149
.build() {
150150
/** @internal type navigation helper, not in runtime. */
151151
protected declare static __types: {

clients/client-accessanalyzer/src/commands/CreateAccessPreviewCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
} from "../AccessAnalyzerClient";
1111
import { commonParams } from "../endpoint/EndpointParameters";
1212
import type { CreateAccessPreviewRequest, CreateAccessPreviewResponse } from "../models/models_0";
13-
import { CreateAccessPreview } from "../schemas/schemas_0";
13+
import { CreateAccessPreview$ } from "../schemas/schemas_0";
1414

1515
/**
1616
* @public
@@ -225,7 +225,7 @@ export class CreateAccessPreviewCommand extends $Command
225225
})
226226
.s("AccessAnalyzer", "CreateAccessPreview", {})
227227
.n("AccessAnalyzerClient", "CreateAccessPreviewCommand")
228-
.sc(CreateAccessPreview)
228+
.sc(CreateAccessPreview$)
229229
.build() {
230230
/** @internal type navigation helper, not in runtime. */
231231
protected declare static __types: {

clients/client-accessanalyzer/src/commands/CreateAnalyzerCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
} from "../AccessAnalyzerClient";
1111
import { commonParams } from "../endpoint/EndpointParameters";
1212
import type { CreateAnalyzerRequest, CreateAnalyzerResponse } from "../models/models_0";
13-
import { CreateAnalyzer } from "../schemas/schemas_0";
13+
import { CreateAnalyzer$ } from "../schemas/schemas_0";
1414

1515
/**
1616
* @public
@@ -155,7 +155,7 @@ export class CreateAnalyzerCommand extends $Command
155155
})
156156
.s("AccessAnalyzer", "CreateAnalyzer", {})
157157
.n("AccessAnalyzerClient", "CreateAnalyzerCommand")
158-
.sc(CreateAnalyzer)
158+
.sc(CreateAnalyzer$)
159159
.build() {
160160
/** @internal type navigation helper, not in runtime. */
161161
protected declare static __types: {

clients/client-accessanalyzer/src/commands/CreateArchiveRuleCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
} from "../AccessAnalyzerClient";
1111
import { commonParams } from "../endpoint/EndpointParameters";
1212
import type { CreateArchiveRuleRequest } from "../models/models_0";
13-
import { CreateArchiveRule } from "../schemas/schemas_0";
13+
import { CreateArchiveRule$ } from "../schemas/schemas_0";
1414

1515
/**
1616
* @public
@@ -112,7 +112,7 @@ export class CreateArchiveRuleCommand extends $Command
112112
})
113113
.s("AccessAnalyzer", "CreateArchiveRule", {})
114114
.n("AccessAnalyzerClient", "CreateArchiveRuleCommand")
115-
.sc(CreateArchiveRule)
115+
.sc(CreateArchiveRule$)
116116
.build() {
117117
/** @internal type navigation helper, not in runtime. */
118118
protected declare static __types: {

0 commit comments

Comments
 (0)