Skip to content

Commit ad00b16

Browse files
committed
chore: generate CWL in schema serde
1 parent 35c2bf2 commit ad00b16

File tree

98 files changed

+2586
-5511
lines changed

Some content is hidden

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

98 files changed

+2586
-5511
lines changed

clients/client-cloudwatch-logs/package.json

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

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
getHttpAuthSchemeEndpointRuleSetPlugin,
2020
getHttpSigningPlugin,
2121
} from "@smithy/core";
22+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
2223
import {
2324
EventStreamSerdeInputConfig,
2425
EventStreamSerdeResolvedConfig,
@@ -39,12 +40,15 @@ import {
3940
BodyLengthCalculator as __BodyLengthCalculator,
4041
CheckOptionalClientConfig as __CheckOptionalClientConfig,
4142
ChecksumConstructor as __ChecksumConstructor,
43+
ClientProtocol,
4244
Decoder as __Decoder,
4345
Encoder as __Encoder,
4446
EndpointV2 as __EndpointV2,
4547
EventStreamSerdeProvider as __EventStreamSerdeProvider,
4648
HashConstructor as __HashConstructor,
4749
HttpHandlerOptions as __HttpHandlerOptions,
50+
HttpRequest,
51+
HttpResponse,
4852
Logger as __Logger,
4953
Provider as __Provider,
5054
Provider,
@@ -609,6 +613,16 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
609613
*/
610614
extensions?: RuntimeExtension[];
611615

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+
612626
/**
613627
* The function that provides necessary utilities for generating and parsing event stream
614628
*/
@@ -724,6 +738,7 @@ export class CloudWatchLogsClient extends __Client<
724738
const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
725739
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
726740
this.config = _config_9;
741+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
727742
this.middlewareStack.use(getUserAgentPlugin(this.config));
728743
this.middlewareStack.use(getRetryPlugin(this.config));
729744
this.middlewareStack.use(getContentLengthPlugin(this.config));

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

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

76
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
87
import { commonParams } from "../endpoint/EndpointParameters";
98
import { AssociateKmsKeyRequest } from "../models/models_0";
10-
import { de_AssociateKmsKeyCommand, se_AssociateKmsKeyCommand } from "../protocols/Aws_json1_1";
9+
import { AssociateKmsKey } from "../schemas/schemas";
1110

1211
/**
1312
* @public
@@ -124,16 +123,12 @@ export class AssociateKmsKeyCommand extends $Command
124123
>()
125124
.ep(commonParams)
126125
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
127-
return [
128-
getSerdePlugin(config, this.serialize, this.deserialize),
129-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
130-
];
126+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
131127
})
132128
.s("Logs_20140328", "AssociateKmsKey", {})
133129
.n("CloudWatchLogsClient", "AssociateKmsKeyCommand")
134130
.f(void 0, void 0)
135-
.ser(se_AssociateKmsKeyCommand)
136-
.de(de_AssociateKmsKeyCommand)
131+
.sc(AssociateKmsKey)
137132
.build() {
138133
/** @internal type navigation helper, not in runtime. */
139134
protected declare static __types: {

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

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

76
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
87
import { commonParams } from "../endpoint/EndpointParameters";
98
import { CancelExportTaskRequest } from "../models/models_0";
10-
import { de_CancelExportTaskCommand, se_CancelExportTaskCommand } from "../protocols/Aws_json1_1";
9+
import { CancelExportTask } from "../schemas/schemas";
1110

1211
/**
1312
* @public
@@ -79,16 +78,12 @@ export class CancelExportTaskCommand extends $Command
7978
>()
8079
.ep(commonParams)
8180
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
82-
return [
83-
getSerdePlugin(config, this.serialize, this.deserialize),
84-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
85-
];
81+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
8682
})
8783
.s("Logs_20140328", "CancelExportTask", {})
8884
.n("CloudWatchLogsClient", "CancelExportTaskCommand")
8985
.f(void 0, void 0)
90-
.ser(se_CancelExportTaskCommand)
91-
.de(de_CancelExportTaskCommand)
86+
.sc(CancelExportTask)
9287
.build() {
9388
/** @internal type navigation helper, not in runtime. */
9489
protected declare static __types: {

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

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

76
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
87
import { commonParams } from "../endpoint/EndpointParameters";
98
import { CreateDeliveryRequest, CreateDeliveryResponse } from "../models/models_0";
10-
import { de_CreateDeliveryCommand, se_CreateDeliveryCommand } from "../protocols/Aws_json1_1";
9+
import { CreateDelivery } from "../schemas/schemas";
1110

1211
/**
1312
* @public
@@ -150,16 +149,12 @@ export class CreateDeliveryCommand extends $Command
150149
>()
151150
.ep(commonParams)
152151
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
153-
return [
154-
getSerdePlugin(config, this.serialize, this.deserialize),
155-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
156-
];
152+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
157153
})
158154
.s("Logs_20140328", "CreateDelivery", {})
159155
.n("CloudWatchLogsClient", "CreateDeliveryCommand")
160156
.f(void 0, void 0)
161-
.ser(se_CreateDeliveryCommand)
162-
.de(de_CreateDeliveryCommand)
157+
.sc(CreateDelivery)
163158
.build() {
164159
/** @internal type navigation helper, not in runtime. */
165160
protected declare static __types: {

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

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

76
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
87
import { commonParams } from "../endpoint/EndpointParameters";
98
import { CreateExportTaskRequest, CreateExportTaskResponse } from "../models/models_0";
10-
import { de_CreateExportTaskCommand, se_CreateExportTaskCommand } from "../protocols/Aws_json1_1";
9+
import { CreateExportTask } from "../schemas/schemas";
1110

1211
/**
1312
* @public
@@ -117,16 +116,12 @@ export class CreateExportTaskCommand extends $Command
117116
>()
118117
.ep(commonParams)
119118
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
120-
return [
121-
getSerdePlugin(config, this.serialize, this.deserialize),
122-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
123-
];
119+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
124120
})
125121
.s("Logs_20140328", "CreateExportTask", {})
126122
.n("CloudWatchLogsClient", "CreateExportTaskCommand")
127123
.f(void 0, void 0)
128-
.ser(se_CreateExportTaskCommand)
129-
.de(de_CreateExportTaskCommand)
124+
.sc(CreateExportTask)
130125
.build() {
131126
/** @internal type navigation helper, not in runtime. */
132127
protected declare static __types: {

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

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

76
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
87
import { commonParams } from "../endpoint/EndpointParameters";
98
import { CreateLogAnomalyDetectorRequest, CreateLogAnomalyDetectorResponse } from "../models/models_0";
10-
import { de_CreateLogAnomalyDetectorCommand, se_CreateLogAnomalyDetectorCommand } from "../protocols/Aws_json1_1";
9+
import { CreateLogAnomalyDetector } from "../schemas/schemas";
1110

1211
/**
1312
* @public
@@ -118,16 +117,12 @@ export class CreateLogAnomalyDetectorCommand extends $Command
118117
>()
119118
.ep(commonParams)
120119
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
121-
return [
122-
getSerdePlugin(config, this.serialize, this.deserialize),
123-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
124-
];
120+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
125121
})
126122
.s("Logs_20140328", "CreateLogAnomalyDetector", {})
127123
.n("CloudWatchLogsClient", "CreateLogAnomalyDetectorCommand")
128124
.f(void 0, void 0)
129-
.ser(se_CreateLogAnomalyDetectorCommand)
130-
.de(de_CreateLogAnomalyDetectorCommand)
125+
.sc(CreateLogAnomalyDetector)
131126
.build() {
132127
/** @internal type navigation helper, not in runtime. */
133128
protected declare static __types: {

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

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

76
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
87
import { commonParams } from "../endpoint/EndpointParameters";
98
import { CreateLogGroupRequest } from "../models/models_0";
10-
import { de_CreateLogGroupCommand, se_CreateLogGroupCommand } from "../protocols/Aws_json1_1";
9+
import { CreateLogGroup } from "../schemas/schemas";
1110

1211
/**
1312
* @public
@@ -120,16 +119,12 @@ export class CreateLogGroupCommand extends $Command
120119
>()
121120
.ep(commonParams)
122121
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
123-
return [
124-
getSerdePlugin(config, this.serialize, this.deserialize),
125-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
126-
];
122+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
127123
})
128124
.s("Logs_20140328", "CreateLogGroup", {})
129125
.n("CloudWatchLogsClient", "CreateLogGroupCommand")
130126
.f(void 0, void 0)
131-
.ser(se_CreateLogGroupCommand)
132-
.de(de_CreateLogGroupCommand)
127+
.sc(CreateLogGroup)
133128
.build() {
134129
/** @internal type navigation helper, not in runtime. */
135130
protected declare static __types: {

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

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

76
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
87
import { commonParams } from "../endpoint/EndpointParameters";
98
import { CreateLogStreamRequest } from "../models/models_0";
10-
import { de_CreateLogStreamCommand, se_CreateLogStreamCommand } from "../protocols/Aws_json1_1";
9+
import { CreateLogStream } from "../schemas/schemas";
1110

1211
/**
1312
* @public
@@ -96,16 +95,12 @@ export class CreateLogStreamCommand extends $Command
9695
>()
9796
.ep(commonParams)
9897
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
99-
return [
100-
getSerdePlugin(config, this.serialize, this.deserialize),
101-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
102-
];
98+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10399
})
104100
.s("Logs_20140328", "CreateLogStream", {})
105101
.n("CloudWatchLogsClient", "CreateLogStreamCommand")
106102
.f(void 0, void 0)
107-
.ser(se_CreateLogStreamCommand)
108-
.de(de_CreateLogStreamCommand)
103+
.sc(CreateLogStream)
109104
.build() {
110105
/** @internal type navigation helper, not in runtime. */
111106
protected declare static __types: {

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

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

76
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
87
import { commonParams } from "../endpoint/EndpointParameters";
98
import { DeleteAccountPolicyRequest } from "../models/models_0";
10-
import { de_DeleteAccountPolicyCommand, se_DeleteAccountPolicyCommand } from "../protocols/Aws_json1_1";
9+
import { DeleteAccountPolicy } from "../schemas/schemas";
1110

1211
/**
1312
* @public
@@ -106,16 +105,12 @@ export class DeleteAccountPolicyCommand extends $Command
106105
>()
107106
.ep(commonParams)
108107
.m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) {
109-
return [
110-
getSerdePlugin(config, this.serialize, this.deserialize),
111-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
112-
];
108+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
113109
})
114110
.s("Logs_20140328", "DeleteAccountPolicy", {})
115111
.n("CloudWatchLogsClient", "DeleteAccountPolicyCommand")
116112
.f(void 0, void 0)
117-
.ser(se_DeleteAccountPolicyCommand)
118-
.de(de_DeleteAccountPolicyCommand)
113+
.sc(DeleteAccountPolicy)
119114
.build() {
120115
/** @internal type navigation helper, not in runtime. */
121116
protected declare static __types: {

0 commit comments

Comments
 (0)