Skip to content

Commit 48ae272

Browse files
committed
fix(core/protocols): x-amz-target in rpc protocols
1 parent ad00b16 commit 48ae272

File tree

105 files changed

+5687
-2594
lines changed

Some content is hidden

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

105 files changed

+5687
-2594
lines changed

clients/client-cloudwatch-logs/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@
5959
"@smithy/util-middleware": "^4.0.5",
6060
"@smithy/util-retry": "^4.0.7",
6161
"@smithy/util-utf8": "^4.0.0",
62-
"tslib": "^2.6.2"
62+
"@types/uuid": "^9.0.1",
63+
"tslib": "^2.6.2",
64+
"uuid": "^9.0.1"
6365
},
6466
"devDependencies": {
6567
"@tsconfig/node18": "18.2.4",

clients/client-cloudwatch-logs/src/CloudWatchLogsClient.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
getHttpAuthSchemeEndpointRuleSetPlugin,
2020
getHttpSigningPlugin,
2121
} from "@smithy/core";
22-
import { getSchemaSerdePlugin } from "@smithy/core/schema";
2322
import {
2423
EventStreamSerdeInputConfig,
2524
EventStreamSerdeResolvedConfig,
@@ -40,15 +39,12 @@ import {
4039
BodyLengthCalculator as __BodyLengthCalculator,
4140
CheckOptionalClientConfig as __CheckOptionalClientConfig,
4241
ChecksumConstructor as __ChecksumConstructor,
43-
ClientProtocol,
4442
Decoder as __Decoder,
4543
Encoder as __Encoder,
4644
EndpointV2 as __EndpointV2,
4745
EventStreamSerdeProvider as __EventStreamSerdeProvider,
4846
HashConstructor as __HashConstructor,
4947
HttpHandlerOptions as __HttpHandlerOptions,
50-
HttpRequest,
51-
HttpResponse,
5248
Logger as __Logger,
5349
Provider as __Provider,
5450
Provider,
@@ -613,16 +609,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
613609
*/
614610
extensions?: RuntimeExtension[];
615611

616-
/**
617-
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
618-
* may be overridden. A default will always be set by the client.
619-
* Available options depend on the service's supported protocols and will not be validated by
620-
* the client.
621-
* @alpha
622-
*
623-
*/
624-
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
625-
626612
/**
627613
* The function that provides necessary utilities for generating and parsing event stream
628614
*/
@@ -738,7 +724,6 @@ export class CloudWatchLogsClient extends __Client<
738724
const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
739725
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
740726
this.config = _config_9;
741-
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
742727
this.middlewareStack.use(getUserAgentPlugin(this.config));
743728
this.middlewareStack.use(getRetryPlugin(this.config));
744729
this.middlewareStack.use(getContentLengthPlugin(this.config));

clients/client-cloudwatch-logs/src/commands/AssociateKmsKeyCommand.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// smithy-typescript generated code
22
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
34
import { Command as $Command } from "@smithy/smithy-client";
45
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
56

67
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
78
import { commonParams } from "../endpoint/EndpointParameters";
89
import { AssociateKmsKeyRequest } from "../models/models_0";
9-
import { AssociateKmsKey } from "../schemas/schemas";
10+
import { de_AssociateKmsKeyCommand, se_AssociateKmsKeyCommand } from "../protocols/Aws_json1_1";
1011

1112
/**
1213
* @public
@@ -123,12 +124,16 @@ export class AssociateKmsKeyCommand extends $Command
123124
>()
124125
.ep(commonParams)
125126
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
126-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
127+
return [
128+
getSerdePlugin(config, this.serialize, this.deserialize),
129+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
130+
];
127131
})
128132
.s("Logs_20140328", "AssociateKmsKey", {})
129133
.n("CloudWatchLogsClient", "AssociateKmsKeyCommand")
130134
.f(void 0, void 0)
131-
.sc(AssociateKmsKey)
135+
.ser(se_AssociateKmsKeyCommand)
136+
.de(de_AssociateKmsKeyCommand)
132137
.build() {
133138
/** @internal type navigation helper, not in runtime. */
134139
protected declare static __types: {

clients/client-cloudwatch-logs/src/commands/CancelExportTaskCommand.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// smithy-typescript generated code
22
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
34
import { Command as $Command } from "@smithy/smithy-client";
45
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
56

67
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
78
import { commonParams } from "../endpoint/EndpointParameters";
89
import { CancelExportTaskRequest } from "../models/models_0";
9-
import { CancelExportTask } from "../schemas/schemas";
10+
import { de_CancelExportTaskCommand, se_CancelExportTaskCommand } from "../protocols/Aws_json1_1";
1011

1112
/**
1213
* @public
@@ -78,12 +79,16 @@ export class CancelExportTaskCommand extends $Command
7879
>()
7980
.ep(commonParams)
8081
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
81-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
82+
return [
83+
getSerdePlugin(config, this.serialize, this.deserialize),
84+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
85+
];
8286
})
8387
.s("Logs_20140328", "CancelExportTask", {})
8488
.n("CloudWatchLogsClient", "CancelExportTaskCommand")
8589
.f(void 0, void 0)
86-
.sc(CancelExportTask)
90+
.ser(se_CancelExportTaskCommand)
91+
.de(de_CancelExportTaskCommand)
8792
.build() {
8893
/** @internal type navigation helper, not in runtime. */
8994
protected declare static __types: {

clients/client-cloudwatch-logs/src/commands/CreateDeliveryCommand.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// smithy-typescript generated code
22
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
34
import { Command as $Command } from "@smithy/smithy-client";
45
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
56

67
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
78
import { commonParams } from "../endpoint/EndpointParameters";
89
import { CreateDeliveryRequest, CreateDeliveryResponse } from "../models/models_0";
9-
import { CreateDelivery } from "../schemas/schemas";
10+
import { de_CreateDeliveryCommand, se_CreateDeliveryCommand } from "../protocols/Aws_json1_1";
1011

1112
/**
1213
* @public
@@ -149,12 +150,16 @@ export class CreateDeliveryCommand extends $Command
149150
>()
150151
.ep(commonParams)
151152
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
152-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
153+
return [
154+
getSerdePlugin(config, this.serialize, this.deserialize),
155+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
156+
];
153157
})
154158
.s("Logs_20140328", "CreateDelivery", {})
155159
.n("CloudWatchLogsClient", "CreateDeliveryCommand")
156160
.f(void 0, void 0)
157-
.sc(CreateDelivery)
161+
.ser(se_CreateDeliveryCommand)
162+
.de(de_CreateDeliveryCommand)
158163
.build() {
159164
/** @internal type navigation helper, not in runtime. */
160165
protected declare static __types: {

clients/client-cloudwatch-logs/src/commands/CreateExportTaskCommand.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// smithy-typescript generated code
22
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
34
import { Command as $Command } from "@smithy/smithy-client";
45
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
56

67
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
78
import { commonParams } from "../endpoint/EndpointParameters";
89
import { CreateExportTaskRequest, CreateExportTaskResponse } from "../models/models_0";
9-
import { CreateExportTask } from "../schemas/schemas";
10+
import { de_CreateExportTaskCommand, se_CreateExportTaskCommand } from "../protocols/Aws_json1_1";
1011

1112
/**
1213
* @public
@@ -116,12 +117,16 @@ export class CreateExportTaskCommand extends $Command
116117
>()
117118
.ep(commonParams)
118119
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
119-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
120+
return [
121+
getSerdePlugin(config, this.serialize, this.deserialize),
122+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
123+
];
120124
})
121125
.s("Logs_20140328", "CreateExportTask", {})
122126
.n("CloudWatchLogsClient", "CreateExportTaskCommand")
123127
.f(void 0, void 0)
124-
.sc(CreateExportTask)
128+
.ser(se_CreateExportTaskCommand)
129+
.de(de_CreateExportTaskCommand)
125130
.build() {
126131
/** @internal type navigation helper, not in runtime. */
127132
protected declare static __types: {

clients/client-cloudwatch-logs/src/commands/CreateLogAnomalyDetectorCommand.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// smithy-typescript generated code
22
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
34
import { Command as $Command } from "@smithy/smithy-client";
45
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
56

67
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
78
import { commonParams } from "../endpoint/EndpointParameters";
89
import { CreateLogAnomalyDetectorRequest, CreateLogAnomalyDetectorResponse } from "../models/models_0";
9-
import { CreateLogAnomalyDetector } from "../schemas/schemas";
10+
import { de_CreateLogAnomalyDetectorCommand, se_CreateLogAnomalyDetectorCommand } from "../protocols/Aws_json1_1";
1011

1112
/**
1213
* @public
@@ -117,12 +118,16 @@ export class CreateLogAnomalyDetectorCommand extends $Command
117118
>()
118119
.ep(commonParams)
119120
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
120-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
121+
return [
122+
getSerdePlugin(config, this.serialize, this.deserialize),
123+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
124+
];
121125
})
122126
.s("Logs_20140328", "CreateLogAnomalyDetector", {})
123127
.n("CloudWatchLogsClient", "CreateLogAnomalyDetectorCommand")
124128
.f(void 0, void 0)
125-
.sc(CreateLogAnomalyDetector)
129+
.ser(se_CreateLogAnomalyDetectorCommand)
130+
.de(de_CreateLogAnomalyDetectorCommand)
126131
.build() {
127132
/** @internal type navigation helper, not in runtime. */
128133
protected declare static __types: {

clients/client-cloudwatch-logs/src/commands/CreateLogGroupCommand.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// smithy-typescript generated code
22
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
34
import { Command as $Command } from "@smithy/smithy-client";
45
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
56

67
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
78
import { commonParams } from "../endpoint/EndpointParameters";
89
import { CreateLogGroupRequest } from "../models/models_0";
9-
import { CreateLogGroup } from "../schemas/schemas";
10+
import { de_CreateLogGroupCommand, se_CreateLogGroupCommand } from "../protocols/Aws_json1_1";
1011

1112
/**
1213
* @public
@@ -119,12 +120,16 @@ export class CreateLogGroupCommand extends $Command
119120
>()
120121
.ep(commonParams)
121122
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
122-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
123+
return [
124+
getSerdePlugin(config, this.serialize, this.deserialize),
125+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
126+
];
123127
})
124128
.s("Logs_20140328", "CreateLogGroup", {})
125129
.n("CloudWatchLogsClient", "CreateLogGroupCommand")
126130
.f(void 0, void 0)
127-
.sc(CreateLogGroup)
131+
.ser(se_CreateLogGroupCommand)
132+
.de(de_CreateLogGroupCommand)
128133
.build() {
129134
/** @internal type navigation helper, not in runtime. */
130135
protected declare static __types: {

clients/client-cloudwatch-logs/src/commands/CreateLogStreamCommand.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// smithy-typescript generated code
22
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
34
import { Command as $Command } from "@smithy/smithy-client";
45
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
56

67
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
78
import { commonParams } from "../endpoint/EndpointParameters";
89
import { CreateLogStreamRequest } from "../models/models_0";
9-
import { CreateLogStream } from "../schemas/schemas";
10+
import { de_CreateLogStreamCommand, se_CreateLogStreamCommand } from "../protocols/Aws_json1_1";
1011

1112
/**
1213
* @public
@@ -95,12 +96,16 @@ export class CreateLogStreamCommand extends $Command
9596
>()
9697
.ep(commonParams)
9798
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
98-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
99+
return [
100+
getSerdePlugin(config, this.serialize, this.deserialize),
101+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
102+
];
99103
})
100104
.s("Logs_20140328", "CreateLogStream", {})
101105
.n("CloudWatchLogsClient", "CreateLogStreamCommand")
102106
.f(void 0, void 0)
103-
.sc(CreateLogStream)
107+
.ser(se_CreateLogStreamCommand)
108+
.de(de_CreateLogStreamCommand)
104109
.build() {
105110
/** @internal type navigation helper, not in runtime. */
106111
protected declare static __types: {

clients/client-cloudwatch-logs/src/commands/DeleteAccountPolicyCommand.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// smithy-typescript generated code
22
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
34
import { Command as $Command } from "@smithy/smithy-client";
45
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
56

67
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
78
import { commonParams } from "../endpoint/EndpointParameters";
89
import { DeleteAccountPolicyRequest } from "../models/models_0";
9-
import { DeleteAccountPolicy } from "../schemas/schemas";
10+
import { de_DeleteAccountPolicyCommand, se_DeleteAccountPolicyCommand } from "../protocols/Aws_json1_1";
1011

1112
/**
1213
* @public
@@ -105,12 +106,16 @@ export class DeleteAccountPolicyCommand extends $Command
105106
>()
106107
.ep(commonParams)
107108
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
108-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
109+
return [
110+
getSerdePlugin(config, this.serialize, this.deserialize),
111+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
112+
];
109113
})
110114
.s("Logs_20140328", "DeleteAccountPolicy", {})
111115
.n("CloudWatchLogsClient", "DeleteAccountPolicyCommand")
112116
.f(void 0, void 0)
113-
.sc(DeleteAccountPolicy)
117+
.ser(se_DeleteAccountPolicyCommand)
118+
.de(de_DeleteAccountPolicyCommand)
114119
.build() {
115120
/** @internal type navigation helper, not in runtime. */
116121
protected declare static __types: {

0 commit comments

Comments
 (0)