From ad00b164dad26f78c43c0ff5bbaf01a1546ad728 Mon Sep 17 00:00:00 2001 From: George Fu Date: Wed, 6 Aug 2025 16:14:02 -0400 Subject: [PATCH 1/3] chore: generate CWL in schema serde --- clients/client-cloudwatch-logs/package.json | 4 +- .../src/CloudWatchLogsClient.ts | 15 + .../src/commands/AssociateKmsKeyCommand.ts | 11 +- .../src/commands/CancelExportTaskCommand.ts | 11 +- .../src/commands/CreateDeliveryCommand.ts | 11 +- .../src/commands/CreateExportTaskCommand.ts | 11 +- .../CreateLogAnomalyDetectorCommand.ts | 11 +- .../src/commands/CreateLogGroupCommand.ts | 11 +- .../src/commands/CreateLogStreamCommand.ts | 11 +- .../commands/DeleteAccountPolicyCommand.ts | 11 +- .../DeleteDataProtectionPolicyCommand.ts | 11 +- .../src/commands/DeleteDeliveryCommand.ts | 11 +- .../DeleteDeliveryDestinationCommand.ts | 11 +- .../DeleteDeliveryDestinationPolicyCommand.ts | 14 +- .../commands/DeleteDeliverySourceCommand.ts | 11 +- .../src/commands/DeleteDestinationCommand.ts | 11 +- .../src/commands/DeleteIndexPolicyCommand.ts | 11 +- .../src/commands/DeleteIntegrationCommand.ts | 11 +- .../DeleteLogAnomalyDetectorCommand.ts | 11 +- .../src/commands/DeleteLogGroupCommand.ts | 11 +- .../src/commands/DeleteLogStreamCommand.ts | 11 +- .../src/commands/DeleteMetricFilterCommand.ts | 11 +- .../commands/DeleteQueryDefinitionCommand.ts | 11 +- .../commands/DeleteResourcePolicyCommand.ts | 11 +- .../commands/DeleteRetentionPolicyCommand.ts | 11 +- .../DeleteSubscriptionFilterCommand.ts | 11 +- .../src/commands/DeleteTransformerCommand.ts | 11 +- .../DescribeAccountPoliciesCommand.ts | 11 +- .../DescribeConfigurationTemplatesCommand.ts | 14 +- .../src/commands/DescribeDeliveriesCommand.ts | 11 +- .../DescribeDeliveryDestinationsCommand.ts | 14 +- .../DescribeDeliverySourcesCommand.ts | 11 +- .../commands/DescribeDestinationsCommand.ts | 11 +- .../commands/DescribeExportTasksCommand.ts | 11 +- .../commands/DescribeFieldIndexesCommand.ts | 11 +- .../commands/DescribeIndexPoliciesCommand.ts | 11 +- .../src/commands/DescribeLogGroupsCommand.ts | 11 +- .../src/commands/DescribeLogStreamsCommand.ts | 11 +- .../commands/DescribeMetricFiltersCommand.ts | 11 +- .../src/commands/DescribeQueriesCommand.ts | 11 +- .../DescribeQueryDefinitionsCommand.ts | 11 +- .../DescribeResourcePoliciesCommand.ts | 11 +- .../DescribeSubscriptionFiltersCommand.ts | 11 +- .../src/commands/DisassociateKmsKeyCommand.ts | 11 +- .../src/commands/FilterLogEventsCommand.ts | 11 +- .../GetDataProtectionPolicyCommand.ts | 11 +- .../src/commands/GetDeliveryCommand.ts | 11 +- .../commands/GetDeliveryDestinationCommand.ts | 11 +- .../GetDeliveryDestinationPolicyCommand.ts | 14 +- .../src/commands/GetDeliverySourceCommand.ts | 11 +- .../src/commands/GetIntegrationCommand.ts | 11 +- .../commands/GetLogAnomalyDetectorCommand.ts | 11 +- .../src/commands/GetLogEventsCommand.ts | 11 +- .../src/commands/GetLogGroupFieldsCommand.ts | 11 +- .../src/commands/GetLogObjectCommand.ts | 11 +- .../src/commands/GetLogRecordCommand.ts | 11 +- .../src/commands/GetQueryResultsCommand.ts | 11 +- .../src/commands/GetTransformerCommand.ts | 11 +- .../src/commands/ListAnomaliesCommand.ts | 11 +- .../src/commands/ListIntegrationsCommand.ts | 11 +- .../ListLogAnomalyDetectorsCommand.ts | 11 +- .../src/commands/ListLogGroupsCommand.ts | 11 +- .../commands/ListLogGroupsForQueryCommand.ts | 11 +- .../commands/ListTagsForResourceCommand.ts | 11 +- .../src/commands/ListTagsLogGroupCommand.ts | 11 +- .../src/commands/PutAccountPolicyCommand.ts | 11 +- .../PutDataProtectionPolicyCommand.ts | 11 +- .../commands/PutDeliveryDestinationCommand.ts | 11 +- .../PutDeliveryDestinationPolicyCommand.ts | 14 +- .../src/commands/PutDeliverySourceCommand.ts | 11 +- .../src/commands/PutDestinationCommand.ts | 11 +- .../commands/PutDestinationPolicyCommand.ts | 11 +- .../src/commands/PutIndexPolicyCommand.ts | 11 +- .../src/commands/PutIntegrationCommand.ts | 11 +- .../src/commands/PutLogEventsCommand.ts | 11 +- .../src/commands/PutMetricFilterCommand.ts | 11 +- .../src/commands/PutQueryDefinitionCommand.ts | 11 +- .../src/commands/PutResourcePolicyCommand.ts | 11 +- .../src/commands/PutRetentionPolicyCommand.ts | 11 +- .../commands/PutSubscriptionFilterCommand.ts | 11 +- .../src/commands/PutTransformerCommand.ts | 11 +- .../src/commands/StartLiveTailCommand.ts | 11 +- .../src/commands/StartQueryCommand.ts | 11 +- .../src/commands/StopQueryCommand.ts | 11 +- .../src/commands/TagLogGroupCommand.ts | 11 +- .../src/commands/TagResourceCommand.ts | 11 +- .../src/commands/TestMetricFilterCommand.ts | 11 +- .../src/commands/TestTransformerCommand.ts | 11 +- .../src/commands/UntagLogGroupCommand.ts | 11 +- .../src/commands/UntagResourceCommand.ts | 11 +- .../src/commands/UpdateAnomalyCommand.ts | 11 +- .../UpdateDeliveryConfigurationCommand.ts | 11 +- .../UpdateLogAnomalyDetectorCommand.ts | 11 +- .../src/protocols/Aws_json1_1.ts | 4765 ----------------- .../src/runtimeConfig.shared.ts | 2 + .../src/schemas/schemas.ts | 2289 ++++++++ codegen/sdk-codegen/build.gradle.kts | 5 + .../typescript/codegen/AddProtocolConfig.java | 1 + 98 files changed, 2586 insertions(+), 5511 deletions(-) delete mode 100644 clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts create mode 100644 clients/client-cloudwatch-logs/src/schemas/schemas.ts diff --git a/clients/client-cloudwatch-logs/package.json b/clients/client-cloudwatch-logs/package.json index 079a464918ba..3e26cbec20c9 100644 --- a/clients/client-cloudwatch-logs/package.json +++ b/clients/client-cloudwatch-logs/package.json @@ -59,9 +59,7 @@ "@smithy/util-middleware": "^4.0.5", "@smithy/util-retry": "^4.0.7", "@smithy/util-utf8": "^4.0.0", - "@types/uuid": "^9.0.1", - "tslib": "^2.6.2", - "uuid": "^9.0.1" + "tslib": "^2.6.2" }, "devDependencies": { "@tsconfig/node18": "18.2.4", diff --git a/clients/client-cloudwatch-logs/src/CloudWatchLogsClient.ts b/clients/client-cloudwatch-logs/src/CloudWatchLogsClient.ts index c1bd48739aaa..f639418d6be7 100644 --- a/clients/client-cloudwatch-logs/src/CloudWatchLogsClient.ts +++ b/clients/client-cloudwatch-logs/src/CloudWatchLogsClient.ts @@ -19,6 +19,7 @@ import { getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core"; +import { getSchemaSerdePlugin } from "@smithy/core/schema"; import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig, @@ -39,12 +40,15 @@ import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, + ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, EndpointV2 as __EndpointV2, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, + HttpRequest, + HttpResponse, Logger as __Logger, Provider as __Provider, Provider, @@ -609,6 +613,16 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand */ extensions?: RuntimeExtension[]; + /** + * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON) + * may be overridden. A default will always be set by the client. + * Available options depend on the service's supported protocols and will not be validated by + * the client. + * @alpha + * + */ + protocol?: ClientProtocol; + /** * The function that provides necessary utilities for generating and parsing event stream */ @@ -724,6 +738,7 @@ export class CloudWatchLogsClient extends __Client< const _config_8 = resolveHttpAuthSchemeConfig(_config_7); const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []); this.config = _config_9; + this.middlewareStack.use(getSchemaSerdePlugin(this.config)); this.middlewareStack.use(getUserAgentPlugin(this.config)); this.middlewareStack.use(getRetryPlugin(this.config)); this.middlewareStack.use(getContentLengthPlugin(this.config)); diff --git a/clients/client-cloudwatch-logs/src/commands/AssociateKmsKeyCommand.ts b/clients/client-cloudwatch-logs/src/commands/AssociateKmsKeyCommand.ts index 9986813409c9..df19535adc76 100644 --- a/clients/client-cloudwatch-logs/src/commands/AssociateKmsKeyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/AssociateKmsKeyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { AssociateKmsKeyRequest } from "../models/models_0"; -import { de_AssociateKmsKeyCommand, se_AssociateKmsKeyCommand } from "../protocols/Aws_json1_1"; +import { AssociateKmsKey } from "../schemas/schemas"; /** * @public @@ -124,16 +123,12 @@ export class AssociateKmsKeyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "AssociateKmsKey", {}) .n("CloudWatchLogsClient", "AssociateKmsKeyCommand") .f(void 0, void 0) - .ser(se_AssociateKmsKeyCommand) - .de(de_AssociateKmsKeyCommand) + .sc(AssociateKmsKey) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/CancelExportTaskCommand.ts b/clients/client-cloudwatch-logs/src/commands/CancelExportTaskCommand.ts index 664fffc76526..28c6821af85b 100644 --- a/clients/client-cloudwatch-logs/src/commands/CancelExportTaskCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/CancelExportTaskCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { CancelExportTaskRequest } from "../models/models_0"; -import { de_CancelExportTaskCommand, se_CancelExportTaskCommand } from "../protocols/Aws_json1_1"; +import { CancelExportTask } from "../schemas/schemas"; /** * @public @@ -79,16 +78,12 @@ export class CancelExportTaskCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "CancelExportTask", {}) .n("CloudWatchLogsClient", "CancelExportTaskCommand") .f(void 0, void 0) - .ser(se_CancelExportTaskCommand) - .de(de_CancelExportTaskCommand) + .sc(CancelExportTask) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/CreateDeliveryCommand.ts b/clients/client-cloudwatch-logs/src/commands/CreateDeliveryCommand.ts index 89c685200ed2..6a31d23a611d 100644 --- a/clients/client-cloudwatch-logs/src/commands/CreateDeliveryCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/CreateDeliveryCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { CreateDeliveryRequest, CreateDeliveryResponse } from "../models/models_0"; -import { de_CreateDeliveryCommand, se_CreateDeliveryCommand } from "../protocols/Aws_json1_1"; +import { CreateDelivery } from "../schemas/schemas"; /** * @public @@ -150,16 +149,12 @@ export class CreateDeliveryCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "CreateDelivery", {}) .n("CloudWatchLogsClient", "CreateDeliveryCommand") .f(void 0, void 0) - .ser(se_CreateDeliveryCommand) - .de(de_CreateDeliveryCommand) + .sc(CreateDelivery) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/CreateExportTaskCommand.ts b/clients/client-cloudwatch-logs/src/commands/CreateExportTaskCommand.ts index 6bc4022a6fe3..f4b9c8997f6a 100644 --- a/clients/client-cloudwatch-logs/src/commands/CreateExportTaskCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/CreateExportTaskCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { CreateExportTaskRequest, CreateExportTaskResponse } from "../models/models_0"; -import { de_CreateExportTaskCommand, se_CreateExportTaskCommand } from "../protocols/Aws_json1_1"; +import { CreateExportTask } from "../schemas/schemas"; /** * @public @@ -117,16 +116,12 @@ export class CreateExportTaskCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "CreateExportTask", {}) .n("CloudWatchLogsClient", "CreateExportTaskCommand") .f(void 0, void 0) - .ser(se_CreateExportTaskCommand) - .de(de_CreateExportTaskCommand) + .sc(CreateExportTask) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/CreateLogAnomalyDetectorCommand.ts b/clients/client-cloudwatch-logs/src/commands/CreateLogAnomalyDetectorCommand.ts index e030baf2f9c8..f3468cf52655 100644 --- a/clients/client-cloudwatch-logs/src/commands/CreateLogAnomalyDetectorCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/CreateLogAnomalyDetectorCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { CreateLogAnomalyDetectorRequest, CreateLogAnomalyDetectorResponse } from "../models/models_0"; -import { de_CreateLogAnomalyDetectorCommand, se_CreateLogAnomalyDetectorCommand } from "../protocols/Aws_json1_1"; +import { CreateLogAnomalyDetector } from "../schemas/schemas"; /** * @public @@ -118,16 +117,12 @@ export class CreateLogAnomalyDetectorCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "CreateLogAnomalyDetector", {}) .n("CloudWatchLogsClient", "CreateLogAnomalyDetectorCommand") .f(void 0, void 0) - .ser(se_CreateLogAnomalyDetectorCommand) - .de(de_CreateLogAnomalyDetectorCommand) + .sc(CreateLogAnomalyDetector) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/CreateLogGroupCommand.ts b/clients/client-cloudwatch-logs/src/commands/CreateLogGroupCommand.ts index 1b56b4da7bbf..2ec8d7c6f03e 100644 --- a/clients/client-cloudwatch-logs/src/commands/CreateLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/CreateLogGroupCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { CreateLogGroupRequest } from "../models/models_0"; -import { de_CreateLogGroupCommand, se_CreateLogGroupCommand } from "../protocols/Aws_json1_1"; +import { CreateLogGroup } from "../schemas/schemas"; /** * @public @@ -120,16 +119,12 @@ export class CreateLogGroupCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "CreateLogGroup", {}) .n("CloudWatchLogsClient", "CreateLogGroupCommand") .f(void 0, void 0) - .ser(se_CreateLogGroupCommand) - .de(de_CreateLogGroupCommand) + .sc(CreateLogGroup) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/CreateLogStreamCommand.ts b/clients/client-cloudwatch-logs/src/commands/CreateLogStreamCommand.ts index e1c26bb4c765..05d5aa7e98e4 100644 --- a/clients/client-cloudwatch-logs/src/commands/CreateLogStreamCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/CreateLogStreamCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { CreateLogStreamRequest } from "../models/models_0"; -import { de_CreateLogStreamCommand, se_CreateLogStreamCommand } from "../protocols/Aws_json1_1"; +import { CreateLogStream } from "../schemas/schemas"; /** * @public @@ -96,16 +95,12 @@ export class CreateLogStreamCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "CreateLogStream", {}) .n("CloudWatchLogsClient", "CreateLogStreamCommand") .f(void 0, void 0) - .ser(se_CreateLogStreamCommand) - .de(de_CreateLogStreamCommand) + .sc(CreateLogStream) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteAccountPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteAccountPolicyCommand.ts index 53d4f327ad51..83e3fc47f409 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteAccountPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteAccountPolicyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteAccountPolicyRequest } from "../models/models_0"; -import { de_DeleteAccountPolicyCommand, se_DeleteAccountPolicyCommand } from "../protocols/Aws_json1_1"; +import { DeleteAccountPolicy } from "../schemas/schemas"; /** * @public @@ -106,16 +105,12 @@ export class DeleteAccountPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteAccountPolicy", {}) .n("CloudWatchLogsClient", "DeleteAccountPolicyCommand") .f(void 0, void 0) - .ser(se_DeleteAccountPolicyCommand) - .de(de_DeleteAccountPolicyCommand) + .sc(DeleteAccountPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteDataProtectionPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteDataProtectionPolicyCommand.ts index 0e6cace62158..979a97e9260a 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteDataProtectionPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteDataProtectionPolicyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteDataProtectionPolicyRequest } from "../models/models_0"; -import { de_DeleteDataProtectionPolicyCommand, se_DeleteDataProtectionPolicyCommand } from "../protocols/Aws_json1_1"; +import { DeleteDataProtectionPolicy } from "../schemas/schemas"; /** * @public @@ -79,16 +78,12 @@ export class DeleteDataProtectionPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteDataProtectionPolicy", {}) .n("CloudWatchLogsClient", "DeleteDataProtectionPolicyCommand") .f(void 0, void 0) - .ser(se_DeleteDataProtectionPolicyCommand) - .de(de_DeleteDataProtectionPolicyCommand) + .sc(DeleteDataProtectionPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryCommand.ts index 10f3bb0c685b..867b9d8de23b 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteDeliveryRequest } from "../models/models_0"; -import { de_DeleteDeliveryCommand, se_DeleteDeliveryCommand } from "../protocols/Aws_json1_1"; +import { DeleteDelivery } from "../schemas/schemas"; /** * @public @@ -88,16 +87,12 @@ export class DeleteDeliveryCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteDelivery", {}) .n("CloudWatchLogsClient", "DeleteDeliveryCommand") .f(void 0, void 0) - .ser(se_DeleteDeliveryCommand) - .de(de_DeleteDeliveryCommand) + .sc(DeleteDelivery) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationCommand.ts index 5d31feda97b4..becf56fe39b1 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteDeliveryDestinationRequest } from "../models/models_0"; -import { de_DeleteDeliveryDestinationCommand, se_DeleteDeliveryDestinationCommand } from "../protocols/Aws_json1_1"; +import { DeleteDeliveryDestination } from "../schemas/schemas"; /** * @public @@ -89,16 +88,12 @@ export class DeleteDeliveryDestinationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteDeliveryDestination", {}) .n("CloudWatchLogsClient", "DeleteDeliveryDestinationCommand") .f(void 0, void 0) - .ser(se_DeleteDeliveryDestinationCommand) - .de(de_DeleteDeliveryDestinationCommand) + .sc(DeleteDeliveryDestination) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationPolicyCommand.ts index d6b07802d938..ef8bac344918 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationPolicyCommand.ts @@ -1,16 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteDeliveryDestinationPolicyRequest } from "../models/models_0"; -import { - de_DeleteDeliveryDestinationPolicyCommand, - se_DeleteDeliveryDestinationPolicyCommand, -} from "../protocols/Aws_json1_1"; +import { DeleteDeliveryDestinationPolicy } from "../schemas/schemas"; /** * @public @@ -82,16 +78,12 @@ export class DeleteDeliveryDestinationPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteDeliveryDestinationPolicy", {}) .n("CloudWatchLogsClient", "DeleteDeliveryDestinationPolicyCommand") .f(void 0, void 0) - .ser(se_DeleteDeliveryDestinationPolicyCommand) - .de(de_DeleteDeliveryDestinationPolicyCommand) + .sc(DeleteDeliveryDestinationPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteDeliverySourceCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteDeliverySourceCommand.ts index c0b9e4c91c16..918b45790d52 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteDeliverySourceCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteDeliverySourceCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteDeliverySourceRequest } from "../models/models_0"; -import { de_DeleteDeliverySourceCommand, se_DeleteDeliverySourceCommand } from "../protocols/Aws_json1_1"; +import { DeleteDeliverySource } from "../schemas/schemas"; /** * @public @@ -89,16 +88,12 @@ export class DeleteDeliverySourceCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteDeliverySource", {}) .n("CloudWatchLogsClient", "DeleteDeliverySourceCommand") .f(void 0, void 0) - .ser(se_DeleteDeliverySourceCommand) - .de(de_DeleteDeliverySourceCommand) + .sc(DeleteDeliverySource) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteDestinationCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteDestinationCommand.ts index 94416edbb4f9..573918661dec 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteDestinationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteDestinationCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteDestinationRequest } from "../models/models_0"; -import { de_DeleteDestinationCommand, se_DeleteDestinationCommand } from "../protocols/Aws_json1_1"; +import { DeleteDestination } from "../schemas/schemas"; /** * @public @@ -80,16 +79,12 @@ export class DeleteDestinationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteDestination", {}) .n("CloudWatchLogsClient", "DeleteDestinationCommand") .f(void 0, void 0) - .ser(se_DeleteDestinationCommand) - .de(de_DeleteDestinationCommand) + .sc(DeleteDestination) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteIndexPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteIndexPolicyCommand.ts index 8c3e9bca13c8..d790b12346d8 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteIndexPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteIndexPolicyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteIndexPolicyRequest, DeleteIndexPolicyResponse } from "../models/models_0"; -import { de_DeleteIndexPolicyCommand, se_DeleteIndexPolicyCommand } from "../protocols/Aws_json1_1"; +import { DeleteIndexPolicy } from "../schemas/schemas"; /** * @public @@ -87,16 +86,12 @@ export class DeleteIndexPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteIndexPolicy", {}) .n("CloudWatchLogsClient", "DeleteIndexPolicyCommand") .f(void 0, void 0) - .ser(se_DeleteIndexPolicyCommand) - .de(de_DeleteIndexPolicyCommand) + .sc(DeleteIndexPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteIntegrationCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteIntegrationCommand.ts index 3f9697598f2f..98f9937682a3 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteIntegrationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteIntegrationCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteIntegrationRequest, DeleteIntegrationResponse } from "../models/models_0"; -import { de_DeleteIntegrationCommand, se_DeleteIntegrationCommand } from "../protocols/Aws_json1_1"; +import { DeleteIntegration } from "../schemas/schemas"; /** * @public @@ -84,16 +83,12 @@ export class DeleteIntegrationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteIntegration", {}) .n("CloudWatchLogsClient", "DeleteIntegrationCommand") .f(void 0, void 0) - .ser(se_DeleteIntegrationCommand) - .de(de_DeleteIntegrationCommand) + .sc(DeleteIntegration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteLogAnomalyDetectorCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteLogAnomalyDetectorCommand.ts index 9e859823cdc5..98e5084f7073 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteLogAnomalyDetectorCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteLogAnomalyDetectorCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteLogAnomalyDetectorRequest } from "../models/models_0"; -import { de_DeleteLogAnomalyDetectorCommand, se_DeleteLogAnomalyDetectorCommand } from "../protocols/Aws_json1_1"; +import { DeleteLogAnomalyDetector } from "../schemas/schemas"; /** * @public @@ -78,16 +77,12 @@ export class DeleteLogAnomalyDetectorCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteLogAnomalyDetector", {}) .n("CloudWatchLogsClient", "DeleteLogAnomalyDetectorCommand") .f(void 0, void 0) - .ser(se_DeleteLogAnomalyDetectorCommand) - .de(de_DeleteLogAnomalyDetectorCommand) + .sc(DeleteLogAnomalyDetector) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteLogGroupCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteLogGroupCommand.ts index a98c244eb2f0..aa624abf0470 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteLogGroupCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteLogGroupRequest } from "../models/models_0"; -import { de_DeleteLogGroupCommand, se_DeleteLogGroupCommand } from "../protocols/Aws_json1_1"; +import { DeleteLogGroup } from "../schemas/schemas"; /** * @public @@ -79,16 +78,12 @@ export class DeleteLogGroupCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteLogGroup", {}) .n("CloudWatchLogsClient", "DeleteLogGroupCommand") .f(void 0, void 0) - .ser(se_DeleteLogGroupCommand) - .de(de_DeleteLogGroupCommand) + .sc(DeleteLogGroup) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteLogStreamCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteLogStreamCommand.ts index 6cdc32d8c8b2..215716954d65 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteLogStreamCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteLogStreamCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteLogStreamRequest } from "../models/models_0"; -import { de_DeleteLogStreamCommand, se_DeleteLogStreamCommand } from "../protocols/Aws_json1_1"; +import { DeleteLogStream } from "../schemas/schemas"; /** * @public @@ -80,16 +79,12 @@ export class DeleteLogStreamCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteLogStream", {}) .n("CloudWatchLogsClient", "DeleteLogStreamCommand") .f(void 0, void 0) - .ser(se_DeleteLogStreamCommand) - .de(de_DeleteLogStreamCommand) + .sc(DeleteLogStream) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteMetricFilterCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteMetricFilterCommand.ts index 91d3fa07078b..1d8ee24f47c4 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteMetricFilterCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteMetricFilterCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteMetricFilterRequest } from "../models/models_0"; -import { de_DeleteMetricFilterCommand, se_DeleteMetricFilterCommand } from "../protocols/Aws_json1_1"; +import { DeleteMetricFilter } from "../schemas/schemas"; /** * @public @@ -79,16 +78,12 @@ export class DeleteMetricFilterCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteMetricFilter", {}) .n("CloudWatchLogsClient", "DeleteMetricFilterCommand") .f(void 0, void 0) - .ser(se_DeleteMetricFilterCommand) - .de(de_DeleteMetricFilterCommand) + .sc(DeleteMetricFilter) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteQueryDefinitionCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteQueryDefinitionCommand.ts index e4b5ae1b2b87..5cc04dce5b48 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteQueryDefinitionCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteQueryDefinitionCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteQueryDefinitionRequest, DeleteQueryDefinitionResponse } from "../models/models_0"; -import { de_DeleteQueryDefinitionCommand, se_DeleteQueryDefinitionCommand } from "../protocols/Aws_json1_1"; +import { DeleteQueryDefinition } from "../schemas/schemas"; /** * @public @@ -81,16 +80,12 @@ export class DeleteQueryDefinitionCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteQueryDefinition", {}) .n("CloudWatchLogsClient", "DeleteQueryDefinitionCommand") .f(void 0, void 0) - .ser(se_DeleteQueryDefinitionCommand) - .de(de_DeleteQueryDefinitionCommand) + .sc(DeleteQueryDefinition) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteResourcePolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteResourcePolicyCommand.ts index 6b4448294a26..11c1bf56a116 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteResourcePolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteResourcePolicyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteResourcePolicyRequest } from "../models/models_0"; -import { de_DeleteResourcePolicyCommand, se_DeleteResourcePolicyCommand } from "../protocols/Aws_json1_1"; +import { DeleteResourcePolicy } from "../schemas/schemas"; /** * @public @@ -81,16 +80,12 @@ export class DeleteResourcePolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteResourcePolicy", {}) .n("CloudWatchLogsClient", "DeleteResourcePolicyCommand") .f(void 0, void 0) - .ser(se_DeleteResourcePolicyCommand) - .de(de_DeleteResourcePolicyCommand) + .sc(DeleteResourcePolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteRetentionPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteRetentionPolicyCommand.ts index 3c877e8e10e3..bed30fc55daf 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteRetentionPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteRetentionPolicyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteRetentionPolicyRequest } from "../models/models_0"; -import { de_DeleteRetentionPolicyCommand, se_DeleteRetentionPolicyCommand } from "../protocols/Aws_json1_1"; +import { DeleteRetentionPolicy } from "../schemas/schemas"; /** * @public @@ -80,16 +79,12 @@ export class DeleteRetentionPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteRetentionPolicy", {}) .n("CloudWatchLogsClient", "DeleteRetentionPolicyCommand") .f(void 0, void 0) - .ser(se_DeleteRetentionPolicyCommand) - .de(de_DeleteRetentionPolicyCommand) + .sc(DeleteRetentionPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteSubscriptionFilterCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteSubscriptionFilterCommand.ts index 4b0565dc02d9..ba816ae436f6 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteSubscriptionFilterCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteSubscriptionFilterCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteSubscriptionFilterRequest } from "../models/models_0"; -import { de_DeleteSubscriptionFilterCommand, se_DeleteSubscriptionFilterCommand } from "../protocols/Aws_json1_1"; +import { DeleteSubscriptionFilter } from "../schemas/schemas"; /** * @public @@ -79,16 +78,12 @@ export class DeleteSubscriptionFilterCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteSubscriptionFilter", {}) .n("CloudWatchLogsClient", "DeleteSubscriptionFilterCommand") .f(void 0, void 0) - .ser(se_DeleteSubscriptionFilterCommand) - .de(de_DeleteSubscriptionFilterCommand) + .sc(DeleteSubscriptionFilter) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteTransformerCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteTransformerCommand.ts index 81e4b9bbf433..6366185c602e 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteTransformerCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteTransformerCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteTransformerRequest } from "../models/models_0"; -import { de_DeleteTransformerCommand, se_DeleteTransformerCommand } from "../protocols/Aws_json1_1"; +import { DeleteTransformer } from "../schemas/schemas"; /** * @public @@ -86,16 +85,12 @@ export class DeleteTransformerCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DeleteTransformer", {}) .n("CloudWatchLogsClient", "DeleteTransformerCommand") .f(void 0, void 0) - .ser(se_DeleteTransformerCommand) - .de(de_DeleteTransformerCommand) + .sc(DeleteTransformer) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeAccountPoliciesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeAccountPoliciesCommand.ts index 99ebf199c3c3..2b51a2c67c93 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeAccountPoliciesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeAccountPoliciesCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeAccountPoliciesRequest, DescribeAccountPoliciesResponse } from "../models/models_0"; -import { de_DescribeAccountPoliciesCommand, se_DescribeAccountPoliciesCommand } from "../protocols/Aws_json1_1"; +import { DescribeAccountPolicies } from "../schemas/schemas"; /** * @public @@ -118,16 +117,12 @@ export class DescribeAccountPoliciesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeAccountPolicies", {}) .n("CloudWatchLogsClient", "DescribeAccountPoliciesCommand") .f(void 0, void 0) - .ser(se_DescribeAccountPoliciesCommand) - .de(de_DescribeAccountPoliciesCommand) + .sc(DescribeAccountPolicies) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeConfigurationTemplatesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeConfigurationTemplatesCommand.ts index 15b4e7455c45..fc6b648a895b 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeConfigurationTemplatesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeConfigurationTemplatesCommand.ts @@ -1,16 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeConfigurationTemplatesRequest, DescribeConfigurationTemplatesResponse } from "../models/models_0"; -import { - de_DescribeConfigurationTemplatesCommand, - se_DescribeConfigurationTemplatesCommand, -} from "../protocols/Aws_json1_1"; +import { DescribeConfigurationTemplates } from "../schemas/schemas"; /** * @public @@ -132,16 +128,12 @@ export class DescribeConfigurationTemplatesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeConfigurationTemplates", {}) .n("CloudWatchLogsClient", "DescribeConfigurationTemplatesCommand") .f(void 0, void 0) - .ser(se_DescribeConfigurationTemplatesCommand) - .de(de_DescribeConfigurationTemplatesCommand) + .sc(DescribeConfigurationTemplates) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeDeliveriesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeDeliveriesCommand.ts index 4ae32f84c59a..fa6bd6c89475 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeDeliveriesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeDeliveriesCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeDeliveriesRequest, DescribeDeliveriesResponse } from "../models/models_0"; -import { de_DescribeDeliveriesCommand, se_DescribeDeliveriesCommand } from "../protocols/Aws_json1_1"; +import { DescribeDeliveries } from "../schemas/schemas"; /** * @public @@ -112,16 +111,12 @@ export class DescribeDeliveriesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeDeliveries", {}) .n("CloudWatchLogsClient", "DescribeDeliveriesCommand") .f(void 0, void 0) - .ser(se_DescribeDeliveriesCommand) - .de(de_DescribeDeliveriesCommand) + .sc(DescribeDeliveries) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeDeliveryDestinationsCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeDeliveryDestinationsCommand.ts index 8a968395017c..b95256653b5f 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeDeliveryDestinationsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeDeliveryDestinationsCommand.ts @@ -1,16 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeDeliveryDestinationsRequest, DescribeDeliveryDestinationsResponse } from "../models/models_0"; -import { - de_DescribeDeliveryDestinationsCommand, - se_DescribeDeliveryDestinationsCommand, -} from "../protocols/Aws_json1_1"; +import { DescribeDeliveryDestinations } from "../schemas/schemas"; /** * @public @@ -101,16 +97,12 @@ export class DescribeDeliveryDestinationsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeDeliveryDestinations", {}) .n("CloudWatchLogsClient", "DescribeDeliveryDestinationsCommand") .f(void 0, void 0) - .ser(se_DescribeDeliveryDestinationsCommand) - .de(de_DescribeDeliveryDestinationsCommand) + .sc(DescribeDeliveryDestinations) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeDeliverySourcesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeDeliverySourcesCommand.ts index c5d22464fe3b..ba043586c85d 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeDeliverySourcesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeDeliverySourcesCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeDeliverySourcesRequest, DescribeDeliverySourcesResponse } from "../models/models_0"; -import { de_DescribeDeliverySourcesCommand, se_DescribeDeliverySourcesCommand } from "../protocols/Aws_json1_1"; +import { DescribeDeliverySources } from "../schemas/schemas"; /** * @public @@ -95,16 +94,12 @@ export class DescribeDeliverySourcesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeDeliverySources", {}) .n("CloudWatchLogsClient", "DescribeDeliverySourcesCommand") .f(void 0, void 0) - .ser(se_DescribeDeliverySourcesCommand) - .de(de_DescribeDeliverySourcesCommand) + .sc(DescribeDeliverySources) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeDestinationsCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeDestinationsCommand.ts index b3228f8d3149..eab7f5389aa4 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeDestinationsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeDestinationsCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeDestinationsRequest, DescribeDestinationsResponse } from "../models/models_0"; -import { de_DescribeDestinationsCommand, se_DescribeDestinationsCommand } from "../protocols/Aws_json1_1"; +import { DescribeDestinations } from "../schemas/schemas"; /** * @public @@ -87,16 +86,12 @@ export class DescribeDestinationsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeDestinations", {}) .n("CloudWatchLogsClient", "DescribeDestinationsCommand") .f(void 0, void 0) - .ser(se_DescribeDestinationsCommand) - .de(de_DescribeDestinationsCommand) + .sc(DescribeDestinations) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeExportTasksCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeExportTasksCommand.ts index b1394063f264..4984fe76a54b 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeExportTasksCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeExportTasksCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeExportTasksRequest, DescribeExportTasksResponse } from "../models/models_0"; -import { de_DescribeExportTasksCommand, se_DescribeExportTasksCommand } from "../protocols/Aws_json1_1"; +import { DescribeExportTasks } from "../schemas/schemas"; /** * @public @@ -97,16 +96,12 @@ export class DescribeExportTasksCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeExportTasks", {}) .n("CloudWatchLogsClient", "DescribeExportTasksCommand") .f(void 0, void 0) - .ser(se_DescribeExportTasksCommand) - .de(de_DescribeExportTasksCommand) + .sc(DescribeExportTasks) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeFieldIndexesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeFieldIndexesCommand.ts index 32679907a2a1..55cb7bb58e5d 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeFieldIndexesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeFieldIndexesCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeFieldIndexesRequest, DescribeFieldIndexesResponse } from "../models/models_0"; -import { de_DescribeFieldIndexesCommand, se_DescribeFieldIndexesCommand } from "../protocols/Aws_json1_1"; +import { DescribeFieldIndexes } from "../schemas/schemas"; /** * @public @@ -96,16 +95,12 @@ export class DescribeFieldIndexesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeFieldIndexes", {}) .n("CloudWatchLogsClient", "DescribeFieldIndexesCommand") .f(void 0, void 0) - .ser(se_DescribeFieldIndexesCommand) - .de(de_DescribeFieldIndexesCommand) + .sc(DescribeFieldIndexes) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeIndexPoliciesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeIndexPoliciesCommand.ts index ecc72ce61cb4..6f289295d321 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeIndexPoliciesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeIndexPoliciesCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeIndexPoliciesRequest, DescribeIndexPoliciesResponse } from "../models/models_0"; -import { de_DescribeIndexPoliciesCommand, se_DescribeIndexPoliciesCommand } from "../protocols/Aws_json1_1"; +import { DescribeIndexPolicies } from "../schemas/schemas"; /** * @public @@ -101,16 +100,12 @@ export class DescribeIndexPoliciesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeIndexPolicies", {}) .n("CloudWatchLogsClient", "DescribeIndexPoliciesCommand") .f(void 0, void 0) - .ser(se_DescribeIndexPoliciesCommand) - .de(de_DescribeIndexPoliciesCommand) + .sc(DescribeIndexPolicies) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeLogGroupsCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeLogGroupsCommand.ts index e7d00cf7163a..6dc2841b3f33 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeLogGroupsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeLogGroupsCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeLogGroupsRequest, DescribeLogGroupsResponse } from "../models/models_0"; -import { de_DescribeLogGroupsCommand, se_DescribeLogGroupsCommand } from "../protocols/Aws_json1_1"; +import { DescribeLogGroups } from "../schemas/schemas"; /** * @public @@ -115,16 +114,12 @@ export class DescribeLogGroupsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeLogGroups", {}) .n("CloudWatchLogsClient", "DescribeLogGroupsCommand") .f(void 0, void 0) - .ser(se_DescribeLogGroupsCommand) - .de(de_DescribeLogGroupsCommand) + .sc(DescribeLogGroups) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeLogStreamsCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeLogStreamsCommand.ts index adb6e8eff25e..a74744446cbd 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeLogStreamsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeLogStreamsCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeLogStreamsRequest, DescribeLogStreamsResponse } from "../models/models_0"; -import { de_DescribeLogStreamsCommand, se_DescribeLogStreamsCommand } from "../protocols/Aws_json1_1"; +import { DescribeLogStreams } from "../schemas/schemas"; /** * @public @@ -104,16 +103,12 @@ export class DescribeLogStreamsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeLogStreams", {}) .n("CloudWatchLogsClient", "DescribeLogStreamsCommand") .f(void 0, void 0) - .ser(se_DescribeLogStreamsCommand) - .de(de_DescribeLogStreamsCommand) + .sc(DescribeLogStreams) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeMetricFiltersCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeMetricFiltersCommand.ts index 473db7405dcd..8d94a3704ce5 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeMetricFiltersCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeMetricFiltersCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeMetricFiltersRequest, DescribeMetricFiltersResponse } from "../models/models_0"; -import { de_DescribeMetricFiltersCommand, se_DescribeMetricFiltersCommand } from "../protocols/Aws_json1_1"; +import { DescribeMetricFilters } from "../schemas/schemas"; /** * @public @@ -105,16 +104,12 @@ export class DescribeMetricFiltersCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeMetricFilters", {}) .n("CloudWatchLogsClient", "DescribeMetricFiltersCommand") .f(void 0, void 0) - .ser(se_DescribeMetricFiltersCommand) - .de(de_DescribeMetricFiltersCommand) + .sc(DescribeMetricFilters) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeQueriesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeQueriesCommand.ts index a8d24a32d8a3..6e6988b162b5 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeQueriesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeQueriesCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeQueriesRequest, DescribeQueriesResponse } from "../models/models_0"; -import { de_DescribeQueriesCommand, se_DescribeQueriesCommand } from "../protocols/Aws_json1_1"; +import { DescribeQueries } from "../schemas/schemas"; /** * @public @@ -93,16 +92,12 @@ export class DescribeQueriesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeQueries", {}) .n("CloudWatchLogsClient", "DescribeQueriesCommand") .f(void 0, void 0) - .ser(se_DescribeQueriesCommand) - .de(de_DescribeQueriesCommand) + .sc(DescribeQueries) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeQueryDefinitionsCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeQueryDefinitionsCommand.ts index 5a523501f9a2..c7e6cdad4bf6 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeQueryDefinitionsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeQueryDefinitionsCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeQueryDefinitionsRequest, DescribeQueryDefinitionsResponse } from "../models/models_0"; -import { de_DescribeQueryDefinitionsCommand, se_DescribeQueryDefinitionsCommand } from "../protocols/Aws_json1_1"; +import { DescribeQueryDefinitions } from "../schemas/schemas"; /** * @public @@ -93,16 +92,12 @@ export class DescribeQueryDefinitionsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeQueryDefinitions", {}) .n("CloudWatchLogsClient", "DescribeQueryDefinitionsCommand") .f(void 0, void 0) - .ser(se_DescribeQueryDefinitionsCommand) - .de(de_DescribeQueryDefinitionsCommand) + .sc(DescribeQueryDefinitions) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeResourcePoliciesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeResourcePoliciesCommand.ts index 25a8be1c0d68..8025f98de0a5 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeResourcePoliciesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeResourcePoliciesCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeResourcePoliciesRequest, DescribeResourcePoliciesResponse } from "../models/models_0"; -import { de_DescribeResourcePoliciesCommand, se_DescribeResourcePoliciesCommand } from "../protocols/Aws_json1_1"; +import { DescribeResourcePolicies } from "../schemas/schemas"; /** * @public @@ -87,16 +86,12 @@ export class DescribeResourcePoliciesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeResourcePolicies", {}) .n("CloudWatchLogsClient", "DescribeResourcePoliciesCommand") .f(void 0, void 0) - .ser(se_DescribeResourcePoliciesCommand) - .de(de_DescribeResourcePoliciesCommand) + .sc(DescribeResourcePolicies) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeSubscriptionFiltersCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeSubscriptionFiltersCommand.ts index 326020e4977c..77eedc3d2ab9 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeSubscriptionFiltersCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeSubscriptionFiltersCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeSubscriptionFiltersRequest, DescribeSubscriptionFiltersResponse } from "../models/models_0"; -import { de_DescribeSubscriptionFiltersCommand, se_DescribeSubscriptionFiltersCommand } from "../protocols/Aws_json1_1"; +import { DescribeSubscriptionFilters } from "../schemas/schemas"; /** * @public @@ -96,16 +95,12 @@ export class DescribeSubscriptionFiltersCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DescribeSubscriptionFilters", {}) .n("CloudWatchLogsClient", "DescribeSubscriptionFiltersCommand") .f(void 0, void 0) - .ser(se_DescribeSubscriptionFiltersCommand) - .de(de_DescribeSubscriptionFiltersCommand) + .sc(DescribeSubscriptionFilters) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DisassociateKmsKeyCommand.ts b/clients/client-cloudwatch-logs/src/commands/DisassociateKmsKeyCommand.ts index 4a196653398c..6a32ffe86ef5 100644 --- a/clients/client-cloudwatch-logs/src/commands/DisassociateKmsKeyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DisassociateKmsKeyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DisassociateKmsKeyRequest } from "../models/models_0"; -import { de_DisassociateKmsKeyCommand, se_DisassociateKmsKeyCommand } from "../protocols/Aws_json1_1"; +import { DisassociateKmsKey } from "../schemas/schemas"; /** * @public @@ -101,16 +100,12 @@ export class DisassociateKmsKeyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "DisassociateKmsKey", {}) .n("CloudWatchLogsClient", "DisassociateKmsKeyCommand") .f(void 0, void 0) - .ser(se_DisassociateKmsKeyCommand) - .de(de_DisassociateKmsKeyCommand) + .sc(DisassociateKmsKey) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/FilterLogEventsCommand.ts b/clients/client-cloudwatch-logs/src/commands/FilterLogEventsCommand.ts index 0f21f3b388fe..0e9730582c55 100644 --- a/clients/client-cloudwatch-logs/src/commands/FilterLogEventsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/FilterLogEventsCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { FilterLogEventsRequest, FilterLogEventsResponse } from "../models/models_0"; -import { de_FilterLogEventsCommand, se_FilterLogEventsCommand } from "../protocols/Aws_json1_1"; +import { FilterLogEvents } from "../schemas/schemas"; /** * @public @@ -148,16 +147,12 @@ export class FilterLogEventsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "FilterLogEvents", {}) .n("CloudWatchLogsClient", "FilterLogEventsCommand") .f(void 0, void 0) - .ser(se_FilterLogEventsCommand) - .de(de_FilterLogEventsCommand) + .sc(FilterLogEvents) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetDataProtectionPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetDataProtectionPolicyCommand.ts index 397ac1a540e1..b9b3bc009f63 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetDataProtectionPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetDataProtectionPolicyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetDataProtectionPolicyRequest, GetDataProtectionPolicyResponse } from "../models/models_0"; -import { de_GetDataProtectionPolicyCommand, se_GetDataProtectionPolicyCommand } from "../protocols/Aws_json1_1"; +import { GetDataProtectionPolicy } from "../schemas/schemas"; /** * @public @@ -82,16 +81,12 @@ export class GetDataProtectionPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "GetDataProtectionPolicy", {}) .n("CloudWatchLogsClient", "GetDataProtectionPolicyCommand") .f(void 0, void 0) - .ser(se_GetDataProtectionPolicyCommand) - .de(de_GetDataProtectionPolicyCommand) + .sc(GetDataProtectionPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetDeliveryCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetDeliveryCommand.ts index 07eab25fc3c7..602ff5efd019 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetDeliveryCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetDeliveryCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetDeliveryRequest, GetDeliveryResponse } from "../models/models_0"; -import { de_GetDeliveryCommand, se_GetDeliveryCommand } from "../protocols/Aws_json1_1"; +import { GetDelivery } from "../schemas/schemas"; /** * @public @@ -113,16 +112,12 @@ export class GetDeliveryCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "GetDelivery", {}) .n("CloudWatchLogsClient", "GetDeliveryCommand") .f(void 0, void 0) - .ser(se_GetDeliveryCommand) - .de(de_GetDeliveryCommand) + .sc(GetDelivery) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationCommand.ts index 74dee816d8c8..327da4f50673 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetDeliveryDestinationRequest, GetDeliveryDestinationResponse } from "../models/models_0"; -import { de_GetDeliveryDestinationCommand, se_GetDeliveryDestinationCommand } from "../protocols/Aws_json1_1"; +import { GetDeliveryDestination } from "../schemas/schemas"; /** * @public @@ -94,16 +93,12 @@ export class GetDeliveryDestinationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "GetDeliveryDestination", {}) .n("CloudWatchLogsClient", "GetDeliveryDestinationCommand") .f(void 0, void 0) - .ser(se_GetDeliveryDestinationCommand) - .de(de_GetDeliveryDestinationCommand) + .sc(GetDeliveryDestination) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationPolicyCommand.ts index 8d1329acea62..93c407fcddbb 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationPolicyCommand.ts @@ -1,16 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetDeliveryDestinationPolicyRequest, GetDeliveryDestinationPolicyResponse } from "../models/models_0"; -import { - de_GetDeliveryDestinationPolicyCommand, - se_GetDeliveryDestinationPolicyCommand, -} from "../protocols/Aws_json1_1"; +import { GetDeliveryDestinationPolicy } from "../schemas/schemas"; /** * @public @@ -85,16 +81,12 @@ export class GetDeliveryDestinationPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "GetDeliveryDestinationPolicy", {}) .n("CloudWatchLogsClient", "GetDeliveryDestinationPolicyCommand") .f(void 0, void 0) - .ser(se_GetDeliveryDestinationPolicyCommand) - .de(de_GetDeliveryDestinationPolicyCommand) + .sc(GetDeliveryDestinationPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetDeliverySourceCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetDeliverySourceCommand.ts index 80c23a8e2162..1e2498a8b8d9 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetDeliverySourceCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetDeliverySourceCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetDeliverySourceRequest, GetDeliverySourceResponse } from "../models/models_0"; -import { de_GetDeliverySourceCommand, se_GetDeliverySourceCommand } from "../protocols/Aws_json1_1"; +import { GetDeliverySource } from "../schemas/schemas"; /** * @public @@ -94,16 +93,12 @@ export class GetDeliverySourceCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "GetDeliverySource", {}) .n("CloudWatchLogsClient", "GetDeliverySourceCommand") .f(void 0, void 0) - .ser(se_GetDeliverySourceCommand) - .de(de_GetDeliverySourceCommand) + .sc(GetDeliverySource) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetIntegrationCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetIntegrationCommand.ts index 4f2799279b7c..e94c2afee1d2 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetIntegrationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetIntegrationCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetIntegrationRequest, GetIntegrationResponse } from "../models/models_0"; -import { de_GetIntegrationCommand, se_GetIntegrationCommand } from "../protocols/Aws_json1_1"; +import { GetIntegration } from "../schemas/schemas"; /** * @public @@ -133,16 +132,12 @@ export class GetIntegrationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "GetIntegration", {}) .n("CloudWatchLogsClient", "GetIntegrationCommand") .f(void 0, void 0) - .ser(se_GetIntegrationCommand) - .de(de_GetIntegrationCommand) + .sc(GetIntegration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetLogAnomalyDetectorCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetLogAnomalyDetectorCommand.ts index 00dfaf31dbe2..3e5134b0076d 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetLogAnomalyDetectorCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetLogAnomalyDetectorCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetLogAnomalyDetectorRequest, GetLogAnomalyDetectorResponse } from "../models/models_0"; -import { de_GetLogAnomalyDetectorCommand, se_GetLogAnomalyDetectorCommand } from "../protocols/Aws_json1_1"; +import { GetLogAnomalyDetector } from "../schemas/schemas"; /** * @public @@ -90,16 +89,12 @@ export class GetLogAnomalyDetectorCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "GetLogAnomalyDetector", {}) .n("CloudWatchLogsClient", "GetLogAnomalyDetectorCommand") .f(void 0, void 0) - .ser(se_GetLogAnomalyDetectorCommand) - .de(de_GetLogAnomalyDetectorCommand) + .sc(GetLogAnomalyDetector) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetLogEventsCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetLogEventsCommand.ts index 0116c4f0987c..6022def2e147 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetLogEventsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetLogEventsCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetLogEventsRequest, GetLogEventsResponse } from "../models/models_0"; -import { de_GetLogEventsCommand, se_GetLogEventsCommand } from "../protocols/Aws_json1_1"; +import { GetLogEvents } from "../schemas/schemas"; /** * @public @@ -125,16 +124,12 @@ export class GetLogEventsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "GetLogEvents", {}) .n("CloudWatchLogsClient", "GetLogEventsCommand") .f(void 0, void 0) - .ser(se_GetLogEventsCommand) - .de(de_GetLogEventsCommand) + .sc(GetLogEvents) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetLogGroupFieldsCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetLogGroupFieldsCommand.ts index 6e78e553e401..de887fe42746 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetLogGroupFieldsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetLogGroupFieldsCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetLogGroupFieldsRequest, GetLogGroupFieldsResponse } from "../models/models_0"; -import { de_GetLogGroupFieldsCommand, se_GetLogGroupFieldsCommand } from "../protocols/Aws_json1_1"; +import { GetLogGroupFields } from "../schemas/schemas"; /** * @public @@ -101,16 +100,12 @@ export class GetLogGroupFieldsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "GetLogGroupFields", {}) .n("CloudWatchLogsClient", "GetLogGroupFieldsCommand") .f(void 0, void 0) - .ser(se_GetLogGroupFieldsCommand) - .de(de_GetLogGroupFieldsCommand) + .sc(GetLogGroupFields) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetLogObjectCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetLogObjectCommand.ts index 39de2e96da85..51e84bc4581c 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetLogObjectCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetLogObjectCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetLogObjectRequest, GetLogObjectResponse, GetLogObjectResponseFilterSensitiveLog } from "../models/models_0"; -import { de_GetLogObjectCommand, se_GetLogObjectCommand } from "../protocols/Aws_json1_1"; +import { GetLogObject } from "../schemas/schemas"; /** * @public @@ -94,10 +93,7 @@ export class GetLogObjectCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "GetLogObject", { /** @@ -109,8 +105,7 @@ export class GetLogObjectCommand extends $Command }) .n("CloudWatchLogsClient", "GetLogObjectCommand") .f(void 0, GetLogObjectResponseFilterSensitiveLog) - .ser(se_GetLogObjectCommand) - .de(de_GetLogObjectCommand) + .sc(GetLogObject) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetLogRecordCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetLogRecordCommand.ts index 0556de5472d3..01e8d0eee512 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetLogRecordCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetLogRecordCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetLogRecordRequest, GetLogRecordResponse } from "../models/models_0"; -import { de_GetLogRecordCommand, se_GetLogRecordCommand } from "../protocols/Aws_json1_1"; +import { GetLogRecord } from "../schemas/schemas"; /** * @public @@ -86,16 +85,12 @@ export class GetLogRecordCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "GetLogRecord", {}) .n("CloudWatchLogsClient", "GetLogRecordCommand") .f(void 0, void 0) - .ser(se_GetLogRecordCommand) - .de(de_GetLogRecordCommand) + .sc(GetLogRecord) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetQueryResultsCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetQueryResultsCommand.ts index b6a7021d7452..142f87d600dd 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetQueryResultsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetQueryResultsCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetQueryResultsRequest, GetQueryResultsResponse } from "../models/models_0"; -import { de_GetQueryResultsCommand, se_GetQueryResultsCommand } from "../protocols/Aws_json1_1"; +import { GetQueryResults } from "../schemas/schemas"; /** * @public @@ -110,16 +109,12 @@ export class GetQueryResultsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "GetQueryResults", {}) .n("CloudWatchLogsClient", "GetQueryResultsCommand") .f(void 0, void 0) - .ser(se_GetQueryResultsCommand) - .de(de_GetQueryResultsCommand) + .sc(GetQueryResults) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetTransformerCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetTransformerCommand.ts index 536a1558a4cd..f21d5339b801 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetTransformerCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetTransformerCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetTransformerRequest, GetTransformerResponse } from "../models/models_0"; -import { de_GetTransformerCommand, se_GetTransformerCommand } from "../protocols/Aws_json1_1"; +import { GetTransformer } from "../schemas/schemas"; /** * @public @@ -233,16 +232,12 @@ export class GetTransformerCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "GetTransformer", {}) .n("CloudWatchLogsClient", "GetTransformerCommand") .f(void 0, void 0) - .ser(se_GetTransformerCommand) - .de(de_GetTransformerCommand) + .sc(GetTransformer) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/ListAnomaliesCommand.ts b/clients/client-cloudwatch-logs/src/commands/ListAnomaliesCommand.ts index e318a03083a7..615e8aed348e 100644 --- a/clients/client-cloudwatch-logs/src/commands/ListAnomaliesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/ListAnomaliesCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { ListAnomaliesRequest, ListAnomaliesResponse } from "../models/models_0"; -import { de_ListAnomaliesCommand, se_ListAnomaliesCommand } from "../protocols/Aws_json1_1"; +import { ListAnomalies } from "../schemas/schemas"; /** * @public @@ -127,16 +126,12 @@ export class ListAnomaliesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "ListAnomalies", {}) .n("CloudWatchLogsClient", "ListAnomaliesCommand") .f(void 0, void 0) - .ser(se_ListAnomaliesCommand) - .de(de_ListAnomaliesCommand) + .sc(ListAnomalies) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/ListIntegrationsCommand.ts b/clients/client-cloudwatch-logs/src/commands/ListIntegrationsCommand.ts index 0469751a1571..d5769d4650f5 100644 --- a/clients/client-cloudwatch-logs/src/commands/ListIntegrationsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/ListIntegrationsCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { ListIntegrationsRequest, ListIntegrationsResponse } from "../models/models_0"; -import { de_ListIntegrationsCommand, se_ListIntegrationsCommand } from "../protocols/Aws_json1_1"; +import { ListIntegrations } from "../schemas/schemas"; /** * @public @@ -84,16 +83,12 @@ export class ListIntegrationsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "ListIntegrations", {}) .n("CloudWatchLogsClient", "ListIntegrationsCommand") .f(void 0, void 0) - .ser(se_ListIntegrationsCommand) - .de(de_ListIntegrationsCommand) + .sc(ListIntegrations) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/ListLogAnomalyDetectorsCommand.ts b/clients/client-cloudwatch-logs/src/commands/ListLogAnomalyDetectorsCommand.ts index ba6bad82c72a..808b0bc3479a 100644 --- a/clients/client-cloudwatch-logs/src/commands/ListLogAnomalyDetectorsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/ListLogAnomalyDetectorsCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { ListLogAnomalyDetectorsRequest, ListLogAnomalyDetectorsResponse } from "../models/models_0"; -import { de_ListLogAnomalyDetectorsCommand, se_ListLogAnomalyDetectorsCommand } from "../protocols/Aws_json1_1"; +import { ListLogAnomalyDetectors } from "../schemas/schemas"; /** * @public @@ -98,16 +97,12 @@ export class ListLogAnomalyDetectorsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "ListLogAnomalyDetectors", {}) .n("CloudWatchLogsClient", "ListLogAnomalyDetectorsCommand") .f(void 0, void 0) - .ser(se_ListLogAnomalyDetectorsCommand) - .de(de_ListLogAnomalyDetectorsCommand) + .sc(ListLogAnomalyDetectors) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/ListLogGroupsCommand.ts b/clients/client-cloudwatch-logs/src/commands/ListLogGroupsCommand.ts index 5fc64773f3e7..9ea2264119b2 100644 --- a/clients/client-cloudwatch-logs/src/commands/ListLogGroupsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/ListLogGroupsCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { ListLogGroupsRequest, ListLogGroupsResponse } from "../models/models_0"; -import { de_ListLogGroupsCommand, se_ListLogGroupsCommand } from "../protocols/Aws_json1_1"; +import { ListLogGroups } from "../schemas/schemas"; /** * @public @@ -96,16 +95,12 @@ export class ListLogGroupsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "ListLogGroups", {}) .n("CloudWatchLogsClient", "ListLogGroupsCommand") .f(void 0, void 0) - .ser(se_ListLogGroupsCommand) - .de(de_ListLogGroupsCommand) + .sc(ListLogGroups) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/ListLogGroupsForQueryCommand.ts b/clients/client-cloudwatch-logs/src/commands/ListLogGroupsForQueryCommand.ts index fbc344e48175..f29bf85d88b1 100644 --- a/clients/client-cloudwatch-logs/src/commands/ListLogGroupsForQueryCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/ListLogGroupsForQueryCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { ListLogGroupsForQueryRequest, ListLogGroupsForQueryResponse } from "../models/models_0"; -import { de_ListLogGroupsForQueryCommand, se_ListLogGroupsForQueryCommand } from "../protocols/Aws_json1_1"; +import { ListLogGroupsForQuery } from "../schemas/schemas"; /** * @public @@ -90,16 +89,12 @@ export class ListLogGroupsForQueryCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "ListLogGroupsForQuery", {}) .n("CloudWatchLogsClient", "ListLogGroupsForQueryCommand") .f(void 0, void 0) - .ser(se_ListLogGroupsForQueryCommand) - .de(de_ListLogGroupsForQueryCommand) + .sc(ListLogGroupsForQuery) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/ListTagsForResourceCommand.ts b/clients/client-cloudwatch-logs/src/commands/ListTagsForResourceCommand.ts index 01c8829b6406..4da05a8d7e30 100644 --- a/clients/client-cloudwatch-logs/src/commands/ListTagsForResourceCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/ListTagsForResourceCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0"; -import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_1"; +import { ListTagsForResource } from "../schemas/schemas"; /** * @public @@ -80,16 +79,12 @@ export class ListTagsForResourceCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "ListTagsForResource", {}) .n("CloudWatchLogsClient", "ListTagsForResourceCommand") .f(void 0, void 0) - .ser(se_ListTagsForResourceCommand) - .de(de_ListTagsForResourceCommand) + .sc(ListTagsForResource) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/ListTagsLogGroupCommand.ts b/clients/client-cloudwatch-logs/src/commands/ListTagsLogGroupCommand.ts index 16e2cedddbba..597de08e5a20 100644 --- a/clients/client-cloudwatch-logs/src/commands/ListTagsLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/ListTagsLogGroupCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { ListTagsLogGroupRequest, ListTagsLogGroupResponse } from "../models/models_0"; -import { de_ListTagsLogGroupCommand, se_ListTagsLogGroupCommand } from "../protocols/Aws_json1_1"; +import { ListTagsLogGroup } from "../schemas/schemas"; /** * @public @@ -82,16 +81,12 @@ export class ListTagsLogGroupCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "ListTagsLogGroup", {}) .n("CloudWatchLogsClient", "ListTagsLogGroupCommand") .f(void 0, void 0) - .ser(se_ListTagsLogGroupCommand) - .de(de_ListTagsLogGroupCommand) + .sc(ListTagsLogGroup) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutAccountPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutAccountPolicyCommand.ts index eb5222f5995f..a22489237e28 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutAccountPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutAccountPolicyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutAccountPolicyRequest, PutAccountPolicyResponse } from "../models/models_0"; -import { de_PutAccountPolicyCommand, se_PutAccountPolicyCommand } from "../protocols/Aws_json1_1"; +import { PutAccountPolicy } from "../schemas/schemas"; /** * @public @@ -303,16 +302,12 @@ export class PutAccountPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutAccountPolicy", {}) .n("CloudWatchLogsClient", "PutAccountPolicyCommand") .f(void 0, void 0) - .ser(se_PutAccountPolicyCommand) - .de(de_PutAccountPolicyCommand) + .sc(PutAccountPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutDataProtectionPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutDataProtectionPolicyCommand.ts index 8143b0bda59e..628e57239cde 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutDataProtectionPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutDataProtectionPolicyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutDataProtectionPolicyRequest, PutDataProtectionPolicyResponse } from "../models/models_0"; -import { de_PutDataProtectionPolicyCommand, se_PutDataProtectionPolicyCommand } from "../protocols/Aws_json1_1"; +import { PutDataProtectionPolicy } from "../schemas/schemas"; /** * @public @@ -107,16 +106,12 @@ export class PutDataProtectionPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutDataProtectionPolicy", {}) .n("CloudWatchLogsClient", "PutDataProtectionPolicyCommand") .f(void 0, void 0) - .ser(se_PutDataProtectionPolicyCommand) - .de(de_PutDataProtectionPolicyCommand) + .sc(PutDataProtectionPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationCommand.ts index fe5e79b99c39..cfe54c7621d3 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutDeliveryDestinationRequest, PutDeliveryDestinationResponse } from "../models/models_0"; -import { de_PutDeliveryDestinationCommand, se_PutDeliveryDestinationCommand } from "../protocols/Aws_json1_1"; +import { PutDeliveryDestination } from "../schemas/schemas"; /** * @public @@ -141,16 +140,12 @@ export class PutDeliveryDestinationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutDeliveryDestination", {}) .n("CloudWatchLogsClient", "PutDeliveryDestinationCommand") .f(void 0, void 0) - .ser(se_PutDeliveryDestinationCommand) - .de(de_PutDeliveryDestinationCommand) + .sc(PutDeliveryDestination) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationPolicyCommand.ts index d41c29dddf9f..56e51837ca15 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationPolicyCommand.ts @@ -1,16 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutDeliveryDestinationPolicyRequest, PutDeliveryDestinationPolicyResponse } from "../models/models_0"; -import { - de_PutDeliveryDestinationPolicyCommand, - se_PutDeliveryDestinationPolicyCommand, -} from "../protocols/Aws_json1_1"; +import { PutDeliveryDestinationPolicy } from "../schemas/schemas"; /** * @public @@ -116,16 +112,12 @@ export class PutDeliveryDestinationPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutDeliveryDestinationPolicy", {}) .n("CloudWatchLogsClient", "PutDeliveryDestinationPolicyCommand") .f(void 0, void 0) - .ser(se_PutDeliveryDestinationPolicyCommand) - .de(de_PutDeliveryDestinationPolicyCommand) + .sc(PutDeliveryDestinationPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutDeliverySourceCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutDeliverySourceCommand.ts index 9759366adb64..53c46e506c91 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutDeliverySourceCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutDeliverySourceCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutDeliverySourceRequest, PutDeliverySourceResponse } from "../models/models_0"; -import { de_PutDeliverySourceCommand, se_PutDeliverySourceCommand } from "../protocols/Aws_json1_1"; +import { PutDeliverySource } from "../schemas/schemas"; /** * @public @@ -135,16 +134,12 @@ export class PutDeliverySourceCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutDeliverySource", {}) .n("CloudWatchLogsClient", "PutDeliverySourceCommand") .f(void 0, void 0) - .ser(se_PutDeliverySourceCommand) - .de(de_PutDeliverySourceCommand) + .sc(PutDeliverySource) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutDestinationCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutDestinationCommand.ts index 17b3c6f5f532..e95ef0902710 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutDestinationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutDestinationCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutDestinationRequest, PutDestinationResponse } from "../models/models_0"; -import { de_PutDestinationCommand, se_PutDestinationCommand } from "../protocols/Aws_json1_1"; +import { PutDestination } from "../schemas/schemas"; /** * @public @@ -99,16 +98,12 @@ export class PutDestinationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutDestination", {}) .n("CloudWatchLogsClient", "PutDestinationCommand") .f(void 0, void 0) - .ser(se_PutDestinationCommand) - .de(de_PutDestinationCommand) + .sc(PutDestination) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutDestinationPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutDestinationPolicyCommand.ts index 85b05929c529..be18beb10551 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutDestinationPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutDestinationPolicyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutDestinationPolicyRequest } from "../models/models_0"; -import { de_PutDestinationPolicyCommand, se_PutDestinationPolicyCommand } from "../protocols/Aws_json1_1"; +import { PutDestinationPolicy } from "../schemas/schemas"; /** * @public @@ -80,16 +79,12 @@ export class PutDestinationPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutDestinationPolicy", {}) .n("CloudWatchLogsClient", "PutDestinationPolicyCommand") .f(void 0, void 0) - .ser(se_PutDestinationPolicyCommand) - .de(de_PutDestinationPolicyCommand) + .sc(PutDestinationPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutIndexPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutIndexPolicyCommand.ts index 05c8fa0dc94e..5c7f3aebe2da 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutIndexPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutIndexPolicyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutIndexPolicyRequest, PutIndexPolicyResponse } from "../models/models_0"; -import { de_PutIndexPolicyCommand, se_PutIndexPolicyCommand } from "../protocols/Aws_json1_1"; +import { PutIndexPolicy } from "../schemas/schemas"; /** * @public @@ -123,16 +122,12 @@ export class PutIndexPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutIndexPolicy", {}) .n("CloudWatchLogsClient", "PutIndexPolicyCommand") .f(void 0, void 0) - .ser(se_PutIndexPolicyCommand) - .de(de_PutIndexPolicyCommand) + .sc(PutIndexPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutIntegrationCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutIntegrationCommand.ts index 068cf0d23ff1..fb5f4636628f 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutIntegrationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutIntegrationCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutIntegrationRequest, PutIntegrationResponse } from "../models/models_0"; -import { de_PutIntegrationCommand, se_PutIntegrationCommand } from "../protocols/Aws_json1_1"; +import { PutIntegration } from "../schemas/schemas"; /** * @public @@ -100,16 +99,12 @@ export class PutIntegrationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutIntegration", {}) .n("CloudWatchLogsClient", "PutIntegrationCommand") .f(void 0, void 0) - .ser(se_PutIntegrationCommand) - .de(de_PutIntegrationCommand) + .sc(PutIntegration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutLogEventsCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutLogEventsCommand.ts index ef2c65ce66dc..0b48997bf680 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutLogEventsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutLogEventsCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutLogEventsRequest, PutLogEventsResponse } from "../models/models_0"; -import { de_PutLogEventsCommand, se_PutLogEventsCommand } from "../protocols/Aws_json1_1"; +import { PutLogEvents } from "../schemas/schemas"; /** * @public @@ -176,16 +175,12 @@ export class PutLogEventsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutLogEvents", {}) .n("CloudWatchLogsClient", "PutLogEventsCommand") .f(void 0, void 0) - .ser(se_PutLogEventsCommand) - .de(de_PutLogEventsCommand) + .sc(PutLogEvents) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutMetricFilterCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutMetricFilterCommand.ts index 28d119da2e11..d1e81f5d17c7 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutMetricFilterCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutMetricFilterCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutMetricFilterRequest } from "../models/models_0"; -import { de_PutMetricFilterCommand, se_PutMetricFilterCommand } from "../protocols/Aws_json1_1"; +import { PutMetricFilter } from "../schemas/schemas"; /** * @public @@ -122,16 +121,12 @@ export class PutMetricFilterCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutMetricFilter", {}) .n("CloudWatchLogsClient", "PutMetricFilterCommand") .f(void 0, void 0) - .ser(se_PutMetricFilterCommand) - .de(de_PutMetricFilterCommand) + .sc(PutMetricFilter) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutQueryDefinitionCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutQueryDefinitionCommand.ts index c17ca35ff009..df3e7c8f5d7a 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutQueryDefinitionCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutQueryDefinitionCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutQueryDefinitionRequest, PutQueryDefinitionResponse } from "../models/models_0"; -import { de_PutQueryDefinitionCommand, se_PutQueryDefinitionCommand } from "../protocols/Aws_json1_1"; +import { PutQueryDefinition } from "../schemas/schemas"; /** * @public @@ -97,16 +96,12 @@ export class PutQueryDefinitionCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutQueryDefinition", {}) .n("CloudWatchLogsClient", "PutQueryDefinitionCommand") .f(void 0, void 0) - .ser(se_PutQueryDefinitionCommand) - .de(de_PutQueryDefinitionCommand) + .sc(PutQueryDefinition) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutResourcePolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutResourcePolicyCommand.ts index 1411c969c3bd..7b6f3936c454 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutResourcePolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutResourcePolicyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0"; -import { de_PutResourcePolicyCommand, se_PutResourcePolicyCommand } from "../protocols/Aws_json1_1"; +import { PutResourcePolicy } from "../schemas/schemas"; /** * @public @@ -96,16 +95,12 @@ export class PutResourcePolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutResourcePolicy", {}) .n("CloudWatchLogsClient", "PutResourcePolicyCommand") .f(void 0, void 0) - .ser(se_PutResourcePolicyCommand) - .de(de_PutResourcePolicyCommand) + .sc(PutResourcePolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutRetentionPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutRetentionPolicyCommand.ts index 1933ddb70352..6d08f1d5744e 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutRetentionPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutRetentionPolicyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutRetentionPolicyRequest } from "../models/models_0"; -import { de_PutRetentionPolicyCommand, se_PutRetentionPolicyCommand } from "../protocols/Aws_json1_1"; +import { PutRetentionPolicy } from "../schemas/schemas"; /** * @public @@ -98,16 +97,12 @@ export class PutRetentionPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutRetentionPolicy", {}) .n("CloudWatchLogsClient", "PutRetentionPolicyCommand") .f(void 0, void 0) - .ser(se_PutRetentionPolicyCommand) - .de(de_PutRetentionPolicyCommand) + .sc(PutRetentionPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutSubscriptionFilterCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutSubscriptionFilterCommand.ts index 44fe985c7ae9..a1c18e267468 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutSubscriptionFilterCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutSubscriptionFilterCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutSubscriptionFilterRequest } from "../models/models_0"; -import { de_PutSubscriptionFilterCommand, se_PutSubscriptionFilterCommand } from "../protocols/Aws_json1_1"; +import { PutSubscriptionFilter } from "../schemas/schemas"; /** * @public @@ -124,16 +123,12 @@ export class PutSubscriptionFilterCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutSubscriptionFilter", {}) .n("CloudWatchLogsClient", "PutSubscriptionFilterCommand") .f(void 0, void 0) - .ser(se_PutSubscriptionFilterCommand) - .de(de_PutSubscriptionFilterCommand) + .sc(PutSubscriptionFilter) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutTransformerCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutTransformerCommand.ts index 717a1df909f5..88294d82b576 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutTransformerCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutTransformerCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutTransformerRequest } from "../models/models_0"; -import { de_PutTransformerCommand, se_PutTransformerCommand } from "../protocols/Aws_json1_1"; +import { PutTransformer } from "../schemas/schemas"; /** * @public @@ -257,16 +256,12 @@ export class PutTransformerCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "PutTransformer", {}) .n("CloudWatchLogsClient", "PutTransformerCommand") .f(void 0, void 0) - .ser(se_PutTransformerCommand) - .de(de_PutTransformerCommand) + .sc(PutTransformer) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/StartLiveTailCommand.ts b/clients/client-cloudwatch-logs/src/commands/StartLiveTailCommand.ts index a91e98f4457d..88ee45f06b9d 100644 --- a/clients/client-cloudwatch-logs/src/commands/StartLiveTailCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/StartLiveTailCommand.ts @@ -1,6 +1,5 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; @@ -11,7 +10,7 @@ import { StartLiveTailResponse, StartLiveTailResponseFilterSensitiveLog, } from "../models/models_0"; -import { de_StartLiveTailCommand, se_StartLiveTailCommand } from "../protocols/Aws_json1_1"; +import { StartLiveTail } from "../schemas/schemas"; /** * @public @@ -174,10 +173,7 @@ export class StartLiveTailCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "StartLiveTail", { /** @@ -189,8 +185,7 @@ export class StartLiveTailCommand extends $Command }) .n("CloudWatchLogsClient", "StartLiveTailCommand") .f(void 0, StartLiveTailResponseFilterSensitiveLog) - .ser(se_StartLiveTailCommand) - .de(de_StartLiveTailCommand) + .sc(StartLiveTail) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/StartQueryCommand.ts b/clients/client-cloudwatch-logs/src/commands/StartQueryCommand.ts index d8b2c0831145..c9df90a229bc 100644 --- a/clients/client-cloudwatch-logs/src/commands/StartQueryCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/StartQueryCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { StartQueryRequest, StartQueryResponse } from "../models/models_0"; -import { de_StartQueryCommand, se_StartQueryCommand } from "../protocols/Aws_json1_1"; +import { StartQuery } from "../schemas/schemas"; /** * @public @@ -134,16 +133,12 @@ export class StartQueryCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "StartQuery", {}) .n("CloudWatchLogsClient", "StartQueryCommand") .f(void 0, void 0) - .ser(se_StartQueryCommand) - .de(de_StartQueryCommand) + .sc(StartQuery) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/StopQueryCommand.ts b/clients/client-cloudwatch-logs/src/commands/StopQueryCommand.ts index 00ed9fcf00ec..cbae593a5144 100644 --- a/clients/client-cloudwatch-logs/src/commands/StopQueryCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/StopQueryCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { StopQueryRequest, StopQueryResponse } from "../models/models_0"; -import { de_StopQueryCommand, se_StopQueryCommand } from "../protocols/Aws_json1_1"; +import { StopQuery } from "../schemas/schemas"; /** * @public @@ -79,16 +78,12 @@ export class StopQueryCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "StopQuery", {}) .n("CloudWatchLogsClient", "StopQueryCommand") .f(void 0, void 0) - .ser(se_StopQueryCommand) - .de(de_StopQueryCommand) + .sc(StopQuery) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/TagLogGroupCommand.ts b/clients/client-cloudwatch-logs/src/commands/TagLogGroupCommand.ts index b2dc73d49080..1f7f52adb06e 100644 --- a/clients/client-cloudwatch-logs/src/commands/TagLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/TagLogGroupCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { TagLogGroupRequest } from "../models/models_0"; -import { de_TagLogGroupCommand, se_TagLogGroupCommand } from "../protocols/Aws_json1_1"; +import { TagLogGroup } from "../schemas/schemas"; /** * @public @@ -90,16 +89,12 @@ export class TagLogGroupCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "TagLogGroup", {}) .n("CloudWatchLogsClient", "TagLogGroupCommand") .f(void 0, void 0) - .ser(se_TagLogGroupCommand) - .de(de_TagLogGroupCommand) + .sc(TagLogGroup) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/TagResourceCommand.ts b/clients/client-cloudwatch-logs/src/commands/TagResourceCommand.ts index 1251c339bbdd..3ee81bbabbca 100644 --- a/clients/client-cloudwatch-logs/src/commands/TagResourceCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/TagResourceCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { TagResourceRequest } from "../models/models_0"; -import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1"; +import { TagResource } from "../schemas/schemas"; /** * @public @@ -93,16 +92,12 @@ export class TagResourceCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "TagResource", {}) .n("CloudWatchLogsClient", "TagResourceCommand") .f(void 0, void 0) - .ser(se_TagResourceCommand) - .de(de_TagResourceCommand) + .sc(TagResource) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/TestMetricFilterCommand.ts b/clients/client-cloudwatch-logs/src/commands/TestMetricFilterCommand.ts index 392c8cf0d063..bb9a9d73120e 100644 --- a/clients/client-cloudwatch-logs/src/commands/TestMetricFilterCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/TestMetricFilterCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { TestMetricFilterRequest, TestMetricFilterResponse } from "../models/models_0"; -import { de_TestMetricFilterCommand, se_TestMetricFilterCommand } from "../protocols/Aws_json1_1"; +import { TestMetricFilter } from "../schemas/schemas"; /** * @public @@ -86,16 +85,12 @@ export class TestMetricFilterCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "TestMetricFilter", {}) .n("CloudWatchLogsClient", "TestMetricFilterCommand") .f(void 0, void 0) - .ser(se_TestMetricFilterCommand) - .de(de_TestMetricFilterCommand) + .sc(TestMetricFilter) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/TestTransformerCommand.ts b/clients/client-cloudwatch-logs/src/commands/TestTransformerCommand.ts index 3bb29688fb41..d8be93ea3802 100644 --- a/clients/client-cloudwatch-logs/src/commands/TestTransformerCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/TestTransformerCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { TestTransformerRequest, TestTransformerResponse } from "../models/models_0"; -import { de_TestTransformerCommand, se_TestTransformerCommand } from "../protocols/Aws_json1_1"; +import { TestTransformer } from "../schemas/schemas"; /** * @public @@ -236,16 +235,12 @@ export class TestTransformerCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "TestTransformer", {}) .n("CloudWatchLogsClient", "TestTransformerCommand") .f(void 0, void 0) - .ser(se_TestTransformerCommand) - .de(de_TestTransformerCommand) + .sc(TestTransformer) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/UntagLogGroupCommand.ts b/clients/client-cloudwatch-logs/src/commands/UntagLogGroupCommand.ts index d304974fe39d..8bcb9bfeb355 100644 --- a/clients/client-cloudwatch-logs/src/commands/UntagLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/UntagLogGroupCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { UntagLogGroupRequest } from "../models/models_0"; -import { de_UntagLogGroupCommand, se_UntagLogGroupCommand } from "../protocols/Aws_json1_1"; +import { UntagLogGroup } from "../schemas/schemas"; /** * @public @@ -82,16 +81,12 @@ export class UntagLogGroupCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "UntagLogGroup", {}) .n("CloudWatchLogsClient", "UntagLogGroupCommand") .f(void 0, void 0) - .ser(se_UntagLogGroupCommand) - .de(de_UntagLogGroupCommand) + .sc(UntagLogGroup) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/UntagResourceCommand.ts b/clients/client-cloudwatch-logs/src/commands/UntagResourceCommand.ts index f8b3db2ae7e8..cad64be722b4 100644 --- a/clients/client-cloudwatch-logs/src/commands/UntagResourceCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/UntagResourceCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { UntagResourceRequest } from "../models/models_0"; -import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1"; +import { UntagResource } from "../schemas/schemas"; /** * @public @@ -78,16 +77,12 @@ export class UntagResourceCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "UntagResource", {}) .n("CloudWatchLogsClient", "UntagResourceCommand") .f(void 0, void 0) - .ser(se_UntagResourceCommand) - .de(de_UntagResourceCommand) + .sc(UntagResource) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/UpdateAnomalyCommand.ts b/clients/client-cloudwatch-logs/src/commands/UpdateAnomalyCommand.ts index f1cfe5f76efa..38c115da8298 100644 --- a/clients/client-cloudwatch-logs/src/commands/UpdateAnomalyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/UpdateAnomalyCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { UpdateAnomalyRequest } from "../models/models_0"; -import { de_UpdateAnomalyCommand, se_UpdateAnomalyCommand } from "../protocols/Aws_json1_1"; +import { UpdateAnomaly } from "../schemas/schemas"; /** * @public @@ -95,16 +94,12 @@ export class UpdateAnomalyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "UpdateAnomaly", {}) .n("CloudWatchLogsClient", "UpdateAnomalyCommand") .f(void 0, void 0) - .ser(se_UpdateAnomalyCommand) - .de(de_UpdateAnomalyCommand) + .sc(UpdateAnomaly) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/UpdateDeliveryConfigurationCommand.ts b/clients/client-cloudwatch-logs/src/commands/UpdateDeliveryConfigurationCommand.ts index 1db76d22a89e..1b9c11cf658a 100644 --- a/clients/client-cloudwatch-logs/src/commands/UpdateDeliveryConfigurationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/UpdateDeliveryConfigurationCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { UpdateDeliveryConfigurationRequest, UpdateDeliveryConfigurationResponse } from "../models/models_0"; -import { de_UpdateDeliveryConfigurationCommand, se_UpdateDeliveryConfigurationCommand } from "../protocols/Aws_json1_1"; +import { UpdateDeliveryConfiguration } from "../schemas/schemas"; /** * @public @@ -96,16 +95,12 @@ export class UpdateDeliveryConfigurationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "UpdateDeliveryConfiguration", {}) .n("CloudWatchLogsClient", "UpdateDeliveryConfigurationCommand") .f(void 0, void 0) - .ser(se_UpdateDeliveryConfigurationCommand) - .de(de_UpdateDeliveryConfigurationCommand) + .sc(UpdateDeliveryConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/UpdateLogAnomalyDetectorCommand.ts b/clients/client-cloudwatch-logs/src/commands/UpdateLogAnomalyDetectorCommand.ts index 0b2ec15e4b07..fa1454d26900 100644 --- a/clients/client-cloudwatch-logs/src/commands/UpdateLogAnomalyDetectorCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/UpdateLogAnomalyDetectorCommand.ts @@ -1,13 +1,12 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { UpdateLogAnomalyDetectorRequest } from "../models/models_0"; -import { de_UpdateLogAnomalyDetectorCommand, se_UpdateLogAnomalyDetectorCommand } from "../protocols/Aws_json1_1"; +import { UpdateLogAnomalyDetector } from "../schemas/schemas"; /** * @public @@ -82,16 +81,12 @@ export class UpdateLogAnomalyDetectorCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("Logs_20140328", "UpdateLogAnomalyDetector", {}) .n("CloudWatchLogsClient", "UpdateLogAnomalyDetectorCommand") .f(void 0, void 0) - .ser(se_UpdateLogAnomalyDetectorCommand) - .de(de_UpdateLogAnomalyDetectorCommand) + .sc(UpdateLogAnomalyDetector) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts b/clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts deleted file mode 100644 index f314d89784e5..000000000000 --- a/clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts +++ /dev/null @@ -1,4765 +0,0 @@ -// smithy-typescript generated code -import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core"; -import { - HttpRequest as __HttpRequest, - HttpResponse as __HttpResponse, - isValidHostname as __isValidHostname, -} from "@smithy/protocol-http"; -import { - _json, - collectBody, - decorateServiceException as __decorateServiceException, - expectBoolean as __expectBoolean, - expectLong as __expectLong, - expectString as __expectString, - limitedParseDouble as __limitedParseDouble, - serializeFloat as __serializeFloat, - take, - withBaseException, -} from "@smithy/smithy-client"; -import { - Endpoint as __Endpoint, - EventStreamSerdeContext as __EventStreamSerdeContext, - HeaderBag as __HeaderBag, - ResponseMetadata as __ResponseMetadata, - SerdeContext as __SerdeContext, -} from "@smithy/types"; -import { v4 as generateIdempotencyToken } from "uuid"; - -import { AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput } from "../commands/AssociateKmsKeyCommand"; -import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "../commands/CancelExportTaskCommand"; -import { CreateDeliveryCommandInput, CreateDeliveryCommandOutput } from "../commands/CreateDeliveryCommand"; -import { CreateExportTaskCommandInput, CreateExportTaskCommandOutput } from "../commands/CreateExportTaskCommand"; -import { - CreateLogAnomalyDetectorCommandInput, - CreateLogAnomalyDetectorCommandOutput, -} from "../commands/CreateLogAnomalyDetectorCommand"; -import { CreateLogGroupCommandInput, CreateLogGroupCommandOutput } from "../commands/CreateLogGroupCommand"; -import { CreateLogStreamCommandInput, CreateLogStreamCommandOutput } from "../commands/CreateLogStreamCommand"; -import { - DeleteAccountPolicyCommandInput, - DeleteAccountPolicyCommandOutput, -} from "../commands/DeleteAccountPolicyCommand"; -import { - DeleteDataProtectionPolicyCommandInput, - DeleteDataProtectionPolicyCommandOutput, -} from "../commands/DeleteDataProtectionPolicyCommand"; -import { DeleteDeliveryCommandInput, DeleteDeliveryCommandOutput } from "../commands/DeleteDeliveryCommand"; -import { - DeleteDeliveryDestinationCommandInput, - DeleteDeliveryDestinationCommandOutput, -} from "../commands/DeleteDeliveryDestinationCommand"; -import { - DeleteDeliveryDestinationPolicyCommandInput, - DeleteDeliveryDestinationPolicyCommandOutput, -} from "../commands/DeleteDeliveryDestinationPolicyCommand"; -import { - DeleteDeliverySourceCommandInput, - DeleteDeliverySourceCommandOutput, -} from "../commands/DeleteDeliverySourceCommand"; -import { DeleteDestinationCommandInput, DeleteDestinationCommandOutput } from "../commands/DeleteDestinationCommand"; -import { DeleteIndexPolicyCommandInput, DeleteIndexPolicyCommandOutput } from "../commands/DeleteIndexPolicyCommand"; -import { DeleteIntegrationCommandInput, DeleteIntegrationCommandOutput } from "../commands/DeleteIntegrationCommand"; -import { - DeleteLogAnomalyDetectorCommandInput, - DeleteLogAnomalyDetectorCommandOutput, -} from "../commands/DeleteLogAnomalyDetectorCommand"; -import { DeleteLogGroupCommandInput, DeleteLogGroupCommandOutput } from "../commands/DeleteLogGroupCommand"; -import { DeleteLogStreamCommandInput, DeleteLogStreamCommandOutput } from "../commands/DeleteLogStreamCommand"; -import { DeleteMetricFilterCommandInput, DeleteMetricFilterCommandOutput } from "../commands/DeleteMetricFilterCommand"; -import { - DeleteQueryDefinitionCommandInput, - DeleteQueryDefinitionCommandOutput, -} from "../commands/DeleteQueryDefinitionCommand"; -import { - DeleteResourcePolicyCommandInput, - DeleteResourcePolicyCommandOutput, -} from "../commands/DeleteResourcePolicyCommand"; -import { - DeleteRetentionPolicyCommandInput, - DeleteRetentionPolicyCommandOutput, -} from "../commands/DeleteRetentionPolicyCommand"; -import { - DeleteSubscriptionFilterCommandInput, - DeleteSubscriptionFilterCommandOutput, -} from "../commands/DeleteSubscriptionFilterCommand"; -import { DeleteTransformerCommandInput, DeleteTransformerCommandOutput } from "../commands/DeleteTransformerCommand"; -import { - DescribeAccountPoliciesCommandInput, - DescribeAccountPoliciesCommandOutput, -} from "../commands/DescribeAccountPoliciesCommand"; -import { - DescribeConfigurationTemplatesCommandInput, - DescribeConfigurationTemplatesCommandOutput, -} from "../commands/DescribeConfigurationTemplatesCommand"; -import { DescribeDeliveriesCommandInput, DescribeDeliveriesCommandOutput } from "../commands/DescribeDeliveriesCommand"; -import { - DescribeDeliveryDestinationsCommandInput, - DescribeDeliveryDestinationsCommandOutput, -} from "../commands/DescribeDeliveryDestinationsCommand"; -import { - DescribeDeliverySourcesCommandInput, - DescribeDeliverySourcesCommandOutput, -} from "../commands/DescribeDeliverySourcesCommand"; -import { - DescribeDestinationsCommandInput, - DescribeDestinationsCommandOutput, -} from "../commands/DescribeDestinationsCommand"; -import { - DescribeExportTasksCommandInput, - DescribeExportTasksCommandOutput, -} from "../commands/DescribeExportTasksCommand"; -import { - DescribeFieldIndexesCommandInput, - DescribeFieldIndexesCommandOutput, -} from "../commands/DescribeFieldIndexesCommand"; -import { - DescribeIndexPoliciesCommandInput, - DescribeIndexPoliciesCommandOutput, -} from "../commands/DescribeIndexPoliciesCommand"; -import { DescribeLogGroupsCommandInput, DescribeLogGroupsCommandOutput } from "../commands/DescribeLogGroupsCommand"; -import { DescribeLogStreamsCommandInput, DescribeLogStreamsCommandOutput } from "../commands/DescribeLogStreamsCommand"; -import { - DescribeMetricFiltersCommandInput, - DescribeMetricFiltersCommandOutput, -} from "../commands/DescribeMetricFiltersCommand"; -import { DescribeQueriesCommandInput, DescribeQueriesCommandOutput } from "../commands/DescribeQueriesCommand"; -import { - DescribeQueryDefinitionsCommandInput, - DescribeQueryDefinitionsCommandOutput, -} from "../commands/DescribeQueryDefinitionsCommand"; -import { - DescribeResourcePoliciesCommandInput, - DescribeResourcePoliciesCommandOutput, -} from "../commands/DescribeResourcePoliciesCommand"; -import { - DescribeSubscriptionFiltersCommandInput, - DescribeSubscriptionFiltersCommandOutput, -} from "../commands/DescribeSubscriptionFiltersCommand"; -import { DisassociateKmsKeyCommandInput, DisassociateKmsKeyCommandOutput } from "../commands/DisassociateKmsKeyCommand"; -import { FilterLogEventsCommandInput, FilterLogEventsCommandOutput } from "../commands/FilterLogEventsCommand"; -import { - GetDataProtectionPolicyCommandInput, - GetDataProtectionPolicyCommandOutput, -} from "../commands/GetDataProtectionPolicyCommand"; -import { GetDeliveryCommandInput, GetDeliveryCommandOutput } from "../commands/GetDeliveryCommand"; -import { - GetDeliveryDestinationCommandInput, - GetDeliveryDestinationCommandOutput, -} from "../commands/GetDeliveryDestinationCommand"; -import { - GetDeliveryDestinationPolicyCommandInput, - GetDeliveryDestinationPolicyCommandOutput, -} from "../commands/GetDeliveryDestinationPolicyCommand"; -import { GetDeliverySourceCommandInput, GetDeliverySourceCommandOutput } from "../commands/GetDeliverySourceCommand"; -import { GetIntegrationCommandInput, GetIntegrationCommandOutput } from "../commands/GetIntegrationCommand"; -import { - GetLogAnomalyDetectorCommandInput, - GetLogAnomalyDetectorCommandOutput, -} from "../commands/GetLogAnomalyDetectorCommand"; -import { GetLogEventsCommandInput, GetLogEventsCommandOutput } from "../commands/GetLogEventsCommand"; -import { GetLogGroupFieldsCommandInput, GetLogGroupFieldsCommandOutput } from "../commands/GetLogGroupFieldsCommand"; -import { GetLogObjectCommandInput, GetLogObjectCommandOutput } from "../commands/GetLogObjectCommand"; -import { GetLogRecordCommandInput, GetLogRecordCommandOutput } from "../commands/GetLogRecordCommand"; -import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "../commands/GetQueryResultsCommand"; -import { GetTransformerCommandInput, GetTransformerCommandOutput } from "../commands/GetTransformerCommand"; -import { ListAnomaliesCommandInput, ListAnomaliesCommandOutput } from "../commands/ListAnomaliesCommand"; -import { ListIntegrationsCommandInput, ListIntegrationsCommandOutput } from "../commands/ListIntegrationsCommand"; -import { - ListLogAnomalyDetectorsCommandInput, - ListLogAnomalyDetectorsCommandOutput, -} from "../commands/ListLogAnomalyDetectorsCommand"; -import { ListLogGroupsCommandInput, ListLogGroupsCommandOutput } from "../commands/ListLogGroupsCommand"; -import { - ListLogGroupsForQueryCommandInput, - ListLogGroupsForQueryCommandOutput, -} from "../commands/ListLogGroupsForQueryCommand"; -import { - ListTagsForResourceCommandInput, - ListTagsForResourceCommandOutput, -} from "../commands/ListTagsForResourceCommand"; -import { ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput } from "../commands/ListTagsLogGroupCommand"; -import { PutAccountPolicyCommandInput, PutAccountPolicyCommandOutput } from "../commands/PutAccountPolicyCommand"; -import { - PutDataProtectionPolicyCommandInput, - PutDataProtectionPolicyCommandOutput, -} from "../commands/PutDataProtectionPolicyCommand"; -import { - PutDeliveryDestinationCommandInput, - PutDeliveryDestinationCommandOutput, -} from "../commands/PutDeliveryDestinationCommand"; -import { - PutDeliveryDestinationPolicyCommandInput, - PutDeliveryDestinationPolicyCommandOutput, -} from "../commands/PutDeliveryDestinationPolicyCommand"; -import { PutDeliverySourceCommandInput, PutDeliverySourceCommandOutput } from "../commands/PutDeliverySourceCommand"; -import { PutDestinationCommandInput, PutDestinationCommandOutput } from "../commands/PutDestinationCommand"; -import { - PutDestinationPolicyCommandInput, - PutDestinationPolicyCommandOutput, -} from "../commands/PutDestinationPolicyCommand"; -import { PutIndexPolicyCommandInput, PutIndexPolicyCommandOutput } from "../commands/PutIndexPolicyCommand"; -import { PutIntegrationCommandInput, PutIntegrationCommandOutput } from "../commands/PutIntegrationCommand"; -import { PutLogEventsCommandInput, PutLogEventsCommandOutput } from "../commands/PutLogEventsCommand"; -import { PutMetricFilterCommandInput, PutMetricFilterCommandOutput } from "../commands/PutMetricFilterCommand"; -import { PutQueryDefinitionCommandInput, PutQueryDefinitionCommandOutput } from "../commands/PutQueryDefinitionCommand"; -import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "../commands/PutResourcePolicyCommand"; -import { PutRetentionPolicyCommandInput, PutRetentionPolicyCommandOutput } from "../commands/PutRetentionPolicyCommand"; -import { - PutSubscriptionFilterCommandInput, - PutSubscriptionFilterCommandOutput, -} from "../commands/PutSubscriptionFilterCommand"; -import { PutTransformerCommandInput, PutTransformerCommandOutput } from "../commands/PutTransformerCommand"; -import { StartLiveTailCommandInput, StartLiveTailCommandOutput } from "../commands/StartLiveTailCommand"; -import { StartQueryCommandInput, StartQueryCommandOutput } from "../commands/StartQueryCommand"; -import { StopQueryCommandInput, StopQueryCommandOutput } from "../commands/StopQueryCommand"; -import { TagLogGroupCommandInput, TagLogGroupCommandOutput } from "../commands/TagLogGroupCommand"; -import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand"; -import { TestMetricFilterCommandInput, TestMetricFilterCommandOutput } from "../commands/TestMetricFilterCommand"; -import { TestTransformerCommandInput, TestTransformerCommandOutput } from "../commands/TestTransformerCommand"; -import { UntagLogGroupCommandInput, UntagLogGroupCommandOutput } from "../commands/UntagLogGroupCommand"; -import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand"; -import { UpdateAnomalyCommandInput, UpdateAnomalyCommandOutput } from "../commands/UpdateAnomalyCommand"; -import { - UpdateDeliveryConfigurationCommandInput, - UpdateDeliveryConfigurationCommandOutput, -} from "../commands/UpdateDeliveryConfigurationCommand"; -import { - UpdateLogAnomalyDetectorCommandInput, - UpdateLogAnomalyDetectorCommandOutput, -} from "../commands/UpdateLogAnomalyDetectorCommand"; -import { CloudWatchLogsServiceException as __BaseException } from "../models/CloudWatchLogsServiceException"; -import { - AccessDeniedException, - AddKeyEntry, - AddKeys, - AssociateKmsKeyRequest, - CancelExportTaskRequest, - ConflictException, - CopyValue, - CopyValueEntry, - CreateDeliveryRequest, - CreateExportTaskRequest, - CreateLogAnomalyDetectorRequest, - CreateLogGroupRequest, - CreateLogStreamRequest, - CSV, - DataAlreadyAcceptedException, - DateTimeConverter, - DeleteAccountPolicyRequest, - DeleteDataProtectionPolicyRequest, - DeleteDeliveryDestinationPolicyRequest, - DeleteDeliveryDestinationRequest, - DeleteDeliveryRequest, - DeleteDeliverySourceRequest, - DeleteDestinationRequest, - DeleteIndexPolicyRequest, - DeleteIntegrationRequest, - DeleteKeys, - DeleteLogAnomalyDetectorRequest, - DeleteLogGroupRequest, - DeleteLogStreamRequest, - DeleteMetricFilterRequest, - DeleteQueryDefinitionRequest, - DeleteResourcePolicyRequest, - DeleteRetentionPolicyRequest, - DeleteSubscriptionFilterRequest, - DeleteTransformerRequest, - DeliveryDestinationConfiguration, - DeliveryDestinationType, - DescribeAccountPoliciesRequest, - DescribeConfigurationTemplatesRequest, - DescribeDeliveriesRequest, - DescribeDeliveryDestinationsRequest, - DescribeDeliverySourcesRequest, - DescribeDestinationsRequest, - DescribeExportTasksRequest, - DescribeFieldIndexesRequest, - DescribeIndexPoliciesRequest, - DescribeLogGroupsRequest, - DescribeLogStreamsRequest, - DescribeMetricFiltersRequest, - DescribeMetricFiltersResponse, - DescribeQueriesRequest, - DescribeQueryDefinitionsRequest, - DescribeResourcePoliciesRequest, - DescribeSubscriptionFiltersRequest, - DisassociateKmsKeyRequest, - Entity, - FieldsData, - FilterLogEventsRequest, - GetDataProtectionPolicyRequest, - GetDeliveryDestinationPolicyRequest, - GetDeliveryDestinationRequest, - GetDeliveryRequest, - GetDeliverySourceRequest, - GetIntegrationRequest, - GetLogAnomalyDetectorRequest, - GetLogEventsRequest, - GetLogGroupFieldsRequest, - GetLogObjectRequest, - GetLogObjectResponseStream, - GetLogRecordRequest, - GetQueryResultsRequest, - GetQueryResultsResponse, - GetTransformerRequest, - Grok, - InputLogEvent, - InternalStreamingException, - InvalidOperationException, - InvalidParameterException, - InvalidSequenceTokenException, - LimitExceededException, - ListAnomaliesRequest, - ListIntegrationsRequest, - ListLogAnomalyDetectorsRequest, - ListLogGroupsForQueryRequest, - ListLogGroupsRequest, - ListTagsForResourceRequest, - ListTagsLogGroupRequest, - ListToMap, - LiveTailSessionStart, - LiveTailSessionUpdate, - LowerCaseString, - MalformedQueryException, - MetricFilter, - MetricTransformation, - MoveKeyEntry, - MoveKeys, - OpenSearchResourceConfig, - OperationAbortedException, - ParseCloudfront, - ParseJSON, - ParseKeyValue, - ParsePostgres, - ParseRoute53, - ParseToOCSF, - ParseVPC, - ParseWAF, - Processor, - PutAccountPolicyRequest, - PutDataProtectionPolicyRequest, - PutDeliveryDestinationPolicyRequest, - PutDeliveryDestinationRequest, - PutDeliverySourceRequest, - PutDestinationPolicyRequest, - PutDestinationRequest, - PutIndexPolicyRequest, - PutIntegrationRequest, - PutLogEventsRequest, - PutMetricFilterRequest, - PutQueryDefinitionRequest, - PutResourcePolicyRequest, - PutRetentionPolicyRequest, - PutSubscriptionFilterRequest, - PutTransformerRequest, - QueryStatistics, - RenameKeyEntry, - RenameKeys, - ResourceAlreadyExistsException, - ResourceConfig, - ResourceNotFoundException, - S3DeliveryConfiguration, - ServiceQuotaExceededException, - ServiceUnavailableException, - SessionStreamingException, - SessionTimeoutException, - SplitString, - SplitStringEntry, - StartLiveTailRequest, - StartLiveTailResponseStream, - StartQueryRequest, - StopQueryRequest, - SubstituteString, - SubstituteStringEntry, - SuppressionPeriod, - TagLogGroupRequest, - TagResourceRequest, - TestMetricFilterRequest, - TestTransformerRequest, - ThrottlingException, - TooManyTagsException, - TrimString, - TypeConverter, - TypeConverterEntry, - UnrecognizedClientException, - UntagLogGroupRequest, - UntagResourceRequest, - UpdateAnomalyRequest, - UpdateDeliveryConfigurationRequest, - UpdateLogAnomalyDetectorRequest, - UpperCaseString, - ValidationException, -} from "../models/models_0"; - -/** - * serializeAws_json1_1AssociateKmsKeyCommand - */ -export const se_AssociateKmsKeyCommand = async ( - input: AssociateKmsKeyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("AssociateKmsKey"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1CancelExportTaskCommand - */ -export const se_CancelExportTaskCommand = async ( - input: CancelExportTaskCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("CancelExportTask"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1CreateDeliveryCommand - */ -export const se_CreateDeliveryCommand = async ( - input: CreateDeliveryCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("CreateDelivery"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1CreateExportTaskCommand - */ -export const se_CreateExportTaskCommand = async ( - input: CreateExportTaskCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("CreateExportTask"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1CreateLogAnomalyDetectorCommand - */ -export const se_CreateLogAnomalyDetectorCommand = async ( - input: CreateLogAnomalyDetectorCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("CreateLogAnomalyDetector"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1CreateLogGroupCommand - */ -export const se_CreateLogGroupCommand = async ( - input: CreateLogGroupCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("CreateLogGroup"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1CreateLogStreamCommand - */ -export const se_CreateLogStreamCommand = async ( - input: CreateLogStreamCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("CreateLogStream"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteAccountPolicyCommand - */ -export const se_DeleteAccountPolicyCommand = async ( - input: DeleteAccountPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteAccountPolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteDataProtectionPolicyCommand - */ -export const se_DeleteDataProtectionPolicyCommand = async ( - input: DeleteDataProtectionPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteDataProtectionPolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteDeliveryCommand - */ -export const se_DeleteDeliveryCommand = async ( - input: DeleteDeliveryCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteDelivery"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteDeliveryDestinationCommand - */ -export const se_DeleteDeliveryDestinationCommand = async ( - input: DeleteDeliveryDestinationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteDeliveryDestination"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteDeliveryDestinationPolicyCommand - */ -export const se_DeleteDeliveryDestinationPolicyCommand = async ( - input: DeleteDeliveryDestinationPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteDeliveryDestinationPolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteDeliverySourceCommand - */ -export const se_DeleteDeliverySourceCommand = async ( - input: DeleteDeliverySourceCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteDeliverySource"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteDestinationCommand - */ -export const se_DeleteDestinationCommand = async ( - input: DeleteDestinationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteDestination"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteIndexPolicyCommand - */ -export const se_DeleteIndexPolicyCommand = async ( - input: DeleteIndexPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteIndexPolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteIntegrationCommand - */ -export const se_DeleteIntegrationCommand = async ( - input: DeleteIntegrationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteIntegration"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteLogAnomalyDetectorCommand - */ -export const se_DeleteLogAnomalyDetectorCommand = async ( - input: DeleteLogAnomalyDetectorCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteLogAnomalyDetector"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteLogGroupCommand - */ -export const se_DeleteLogGroupCommand = async ( - input: DeleteLogGroupCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteLogGroup"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteLogStreamCommand - */ -export const se_DeleteLogStreamCommand = async ( - input: DeleteLogStreamCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteLogStream"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteMetricFilterCommand - */ -export const se_DeleteMetricFilterCommand = async ( - input: DeleteMetricFilterCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteMetricFilter"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteQueryDefinitionCommand - */ -export const se_DeleteQueryDefinitionCommand = async ( - input: DeleteQueryDefinitionCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteQueryDefinition"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteResourcePolicyCommand - */ -export const se_DeleteResourcePolicyCommand = async ( - input: DeleteResourcePolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteResourcePolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteRetentionPolicyCommand - */ -export const se_DeleteRetentionPolicyCommand = async ( - input: DeleteRetentionPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteRetentionPolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteSubscriptionFilterCommand - */ -export const se_DeleteSubscriptionFilterCommand = async ( - input: DeleteSubscriptionFilterCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteSubscriptionFilter"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DeleteTransformerCommand - */ -export const se_DeleteTransformerCommand = async ( - input: DeleteTransformerCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DeleteTransformer"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeAccountPoliciesCommand - */ -export const se_DescribeAccountPoliciesCommand = async ( - input: DescribeAccountPoliciesCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeAccountPolicies"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeConfigurationTemplatesCommand - */ -export const se_DescribeConfigurationTemplatesCommand = async ( - input: DescribeConfigurationTemplatesCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeConfigurationTemplates"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeDeliveriesCommand - */ -export const se_DescribeDeliveriesCommand = async ( - input: DescribeDeliveriesCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeDeliveries"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeDeliveryDestinationsCommand - */ -export const se_DescribeDeliveryDestinationsCommand = async ( - input: DescribeDeliveryDestinationsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeDeliveryDestinations"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeDeliverySourcesCommand - */ -export const se_DescribeDeliverySourcesCommand = async ( - input: DescribeDeliverySourcesCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeDeliverySources"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeDestinationsCommand - */ -export const se_DescribeDestinationsCommand = async ( - input: DescribeDestinationsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeDestinations"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeExportTasksCommand - */ -export const se_DescribeExportTasksCommand = async ( - input: DescribeExportTasksCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeExportTasks"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeFieldIndexesCommand - */ -export const se_DescribeFieldIndexesCommand = async ( - input: DescribeFieldIndexesCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeFieldIndexes"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeIndexPoliciesCommand - */ -export const se_DescribeIndexPoliciesCommand = async ( - input: DescribeIndexPoliciesCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeIndexPolicies"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeLogGroupsCommand - */ -export const se_DescribeLogGroupsCommand = async ( - input: DescribeLogGroupsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeLogGroups"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeLogStreamsCommand - */ -export const se_DescribeLogStreamsCommand = async ( - input: DescribeLogStreamsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeLogStreams"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeMetricFiltersCommand - */ -export const se_DescribeMetricFiltersCommand = async ( - input: DescribeMetricFiltersCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeMetricFilters"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeQueriesCommand - */ -export const se_DescribeQueriesCommand = async ( - input: DescribeQueriesCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeQueries"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeQueryDefinitionsCommand - */ -export const se_DescribeQueryDefinitionsCommand = async ( - input: DescribeQueryDefinitionsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeQueryDefinitions"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeResourcePoliciesCommand - */ -export const se_DescribeResourcePoliciesCommand = async ( - input: DescribeResourcePoliciesCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeResourcePolicies"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DescribeSubscriptionFiltersCommand - */ -export const se_DescribeSubscriptionFiltersCommand = async ( - input: DescribeSubscriptionFiltersCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DescribeSubscriptionFilters"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1DisassociateKmsKeyCommand - */ -export const se_DisassociateKmsKeyCommand = async ( - input: DisassociateKmsKeyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("DisassociateKmsKey"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1FilterLogEventsCommand - */ -export const se_FilterLogEventsCommand = async ( - input: FilterLogEventsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("FilterLogEvents"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1GetDataProtectionPolicyCommand - */ -export const se_GetDataProtectionPolicyCommand = async ( - input: GetDataProtectionPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("GetDataProtectionPolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1GetDeliveryCommand - */ -export const se_GetDeliveryCommand = async ( - input: GetDeliveryCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("GetDelivery"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1GetDeliveryDestinationCommand - */ -export const se_GetDeliveryDestinationCommand = async ( - input: GetDeliveryDestinationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("GetDeliveryDestination"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1GetDeliveryDestinationPolicyCommand - */ -export const se_GetDeliveryDestinationPolicyCommand = async ( - input: GetDeliveryDestinationPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("GetDeliveryDestinationPolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1GetDeliverySourceCommand - */ -export const se_GetDeliverySourceCommand = async ( - input: GetDeliverySourceCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("GetDeliverySource"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1GetIntegrationCommand - */ -export const se_GetIntegrationCommand = async ( - input: GetIntegrationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("GetIntegration"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1GetLogAnomalyDetectorCommand - */ -export const se_GetLogAnomalyDetectorCommand = async ( - input: GetLogAnomalyDetectorCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("GetLogAnomalyDetector"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1GetLogEventsCommand - */ -export const se_GetLogEventsCommand = async ( - input: GetLogEventsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("GetLogEvents"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1GetLogGroupFieldsCommand - */ -export const se_GetLogGroupFieldsCommand = async ( - input: GetLogGroupFieldsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("GetLogGroupFields"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1GetLogObjectCommand - */ -export const se_GetLogObjectCommand = async ( - input: GetLogObjectCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("GetLogObject"); - let body: any; - body = JSON.stringify(_json(input)); - let { hostname: resolvedHostname } = await context.endpoint(); - if (context.disableHostPrefix !== true) { - resolvedHostname = "streaming-" + resolvedHostname; - if (!__isValidHostname(resolvedHostname)) { - throw new Error("ValidationError: prefixed hostname must be hostname compatible."); - } - } - return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body); -}; - -/** - * serializeAws_json1_1GetLogRecordCommand - */ -export const se_GetLogRecordCommand = async ( - input: GetLogRecordCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("GetLogRecord"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1GetQueryResultsCommand - */ -export const se_GetQueryResultsCommand = async ( - input: GetQueryResultsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("GetQueryResults"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1GetTransformerCommand - */ -export const se_GetTransformerCommand = async ( - input: GetTransformerCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("GetTransformer"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1ListAnomaliesCommand - */ -export const se_ListAnomaliesCommand = async ( - input: ListAnomaliesCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("ListAnomalies"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1ListIntegrationsCommand - */ -export const se_ListIntegrationsCommand = async ( - input: ListIntegrationsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("ListIntegrations"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1ListLogAnomalyDetectorsCommand - */ -export const se_ListLogAnomalyDetectorsCommand = async ( - input: ListLogAnomalyDetectorsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("ListLogAnomalyDetectors"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1ListLogGroupsCommand - */ -export const se_ListLogGroupsCommand = async ( - input: ListLogGroupsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("ListLogGroups"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1ListLogGroupsForQueryCommand - */ -export const se_ListLogGroupsForQueryCommand = async ( - input: ListLogGroupsForQueryCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("ListLogGroupsForQuery"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1ListTagsForResourceCommand - */ -export const se_ListTagsForResourceCommand = async ( - input: ListTagsForResourceCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("ListTagsForResource"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1ListTagsLogGroupCommand - */ -export const se_ListTagsLogGroupCommand = async ( - input: ListTagsLogGroupCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("ListTagsLogGroup"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutAccountPolicyCommand - */ -export const se_PutAccountPolicyCommand = async ( - input: PutAccountPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutAccountPolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutDataProtectionPolicyCommand - */ -export const se_PutDataProtectionPolicyCommand = async ( - input: PutDataProtectionPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutDataProtectionPolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutDeliveryDestinationCommand - */ -export const se_PutDeliveryDestinationCommand = async ( - input: PutDeliveryDestinationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutDeliveryDestination"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutDeliveryDestinationPolicyCommand - */ -export const se_PutDeliveryDestinationPolicyCommand = async ( - input: PutDeliveryDestinationPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutDeliveryDestinationPolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutDeliverySourceCommand - */ -export const se_PutDeliverySourceCommand = async ( - input: PutDeliverySourceCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutDeliverySource"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutDestinationCommand - */ -export const se_PutDestinationCommand = async ( - input: PutDestinationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutDestination"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutDestinationPolicyCommand - */ -export const se_PutDestinationPolicyCommand = async ( - input: PutDestinationPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutDestinationPolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutIndexPolicyCommand - */ -export const se_PutIndexPolicyCommand = async ( - input: PutIndexPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutIndexPolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutIntegrationCommand - */ -export const se_PutIntegrationCommand = async ( - input: PutIntegrationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutIntegration"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutLogEventsCommand - */ -export const se_PutLogEventsCommand = async ( - input: PutLogEventsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutLogEvents"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutMetricFilterCommand - */ -export const se_PutMetricFilterCommand = async ( - input: PutMetricFilterCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutMetricFilter"); - let body: any; - body = JSON.stringify(se_PutMetricFilterRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutQueryDefinitionCommand - */ -export const se_PutQueryDefinitionCommand = async ( - input: PutQueryDefinitionCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutQueryDefinition"); - let body: any; - body = JSON.stringify(se_PutQueryDefinitionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutResourcePolicyCommand - */ -export const se_PutResourcePolicyCommand = async ( - input: PutResourcePolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutResourcePolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutRetentionPolicyCommand - */ -export const se_PutRetentionPolicyCommand = async ( - input: PutRetentionPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutRetentionPolicy"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutSubscriptionFilterCommand - */ -export const se_PutSubscriptionFilterCommand = async ( - input: PutSubscriptionFilterCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutSubscriptionFilter"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1PutTransformerCommand - */ -export const se_PutTransformerCommand = async ( - input: PutTransformerCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("PutTransformer"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1StartLiveTailCommand - */ -export const se_StartLiveTailCommand = async ( - input: StartLiveTailCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("StartLiveTail"); - let body: any; - body = JSON.stringify(_json(input)); - let { hostname: resolvedHostname } = await context.endpoint(); - if (context.disableHostPrefix !== true) { - resolvedHostname = "streaming-" + resolvedHostname; - if (!__isValidHostname(resolvedHostname)) { - throw new Error("ValidationError: prefixed hostname must be hostname compatible."); - } - } - return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body); -}; - -/** - * serializeAws_json1_1StartQueryCommand - */ -export const se_StartQueryCommand = async ( - input: StartQueryCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("StartQuery"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1StopQueryCommand - */ -export const se_StopQueryCommand = async ( - input: StopQueryCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("StopQuery"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1TagLogGroupCommand - */ -export const se_TagLogGroupCommand = async ( - input: TagLogGroupCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("TagLogGroup"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1TagResourceCommand - */ -export const se_TagResourceCommand = async ( - input: TagResourceCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("TagResource"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1TestMetricFilterCommand - */ -export const se_TestMetricFilterCommand = async ( - input: TestMetricFilterCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("TestMetricFilter"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1TestTransformerCommand - */ -export const se_TestTransformerCommand = async ( - input: TestTransformerCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("TestTransformer"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1UntagLogGroupCommand - */ -export const se_UntagLogGroupCommand = async ( - input: UntagLogGroupCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("UntagLogGroup"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1UntagResourceCommand - */ -export const se_UntagResourceCommand = async ( - input: UntagResourceCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("UntagResource"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1UpdateAnomalyCommand - */ -export const se_UpdateAnomalyCommand = async ( - input: UpdateAnomalyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("UpdateAnomaly"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1UpdateDeliveryConfigurationCommand - */ -export const se_UpdateDeliveryConfigurationCommand = async ( - input: UpdateDeliveryConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("UpdateDeliveryConfiguration"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * serializeAws_json1_1UpdateLogAnomalyDetectorCommand - */ -export const se_UpdateLogAnomalyDetectorCommand = async ( - input: UpdateLogAnomalyDetectorCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const headers: __HeaderBag = sharedHeaders("UpdateLogAnomalyDetector"); - let body: any; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; - -/** - * deserializeAws_json1_1AssociateKmsKeyCommand - */ -export const de_AssociateKmsKeyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: AssociateKmsKeyCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1CancelExportTaskCommand - */ -export const de_CancelExportTaskCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: CancelExportTaskCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1CreateDeliveryCommand - */ -export const de_CreateDeliveryCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: CreateDeliveryCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1CreateExportTaskCommand - */ -export const de_CreateExportTaskCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: CreateExportTaskCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1CreateLogAnomalyDetectorCommand - */ -export const de_CreateLogAnomalyDetectorCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: CreateLogAnomalyDetectorCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1CreateLogGroupCommand - */ -export const de_CreateLogGroupCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: CreateLogGroupCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1CreateLogStreamCommand - */ -export const de_CreateLogStreamCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: CreateLogStreamCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteAccountPolicyCommand - */ -export const de_DeleteAccountPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteAccountPolicyCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteDataProtectionPolicyCommand - */ -export const de_DeleteDataProtectionPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteDataProtectionPolicyCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteDeliveryCommand - */ -export const de_DeleteDeliveryCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteDeliveryCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteDeliveryDestinationCommand - */ -export const de_DeleteDeliveryDestinationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteDeliveryDestinationCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteDeliveryDestinationPolicyCommand - */ -export const de_DeleteDeliveryDestinationPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteDeliveryDestinationPolicyCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteDeliverySourceCommand - */ -export const de_DeleteDeliverySourceCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteDeliverySourceCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteDestinationCommand - */ -export const de_DeleteDestinationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteDestinationCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteIndexPolicyCommand - */ -export const de_DeleteIndexPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DeleteIndexPolicyCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteIntegrationCommand - */ -export const de_DeleteIntegrationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DeleteIntegrationCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteLogAnomalyDetectorCommand - */ -export const de_DeleteLogAnomalyDetectorCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteLogAnomalyDetectorCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteLogGroupCommand - */ -export const de_DeleteLogGroupCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteLogGroupCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteLogStreamCommand - */ -export const de_DeleteLogStreamCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteLogStreamCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteMetricFilterCommand - */ -export const de_DeleteMetricFilterCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteMetricFilterCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteQueryDefinitionCommand - */ -export const de_DeleteQueryDefinitionCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DeleteQueryDefinitionCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteResourcePolicyCommand - */ -export const de_DeleteResourcePolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteResourcePolicyCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteRetentionPolicyCommand - */ -export const de_DeleteRetentionPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteRetentionPolicyCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteSubscriptionFilterCommand - */ -export const de_DeleteSubscriptionFilterCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteSubscriptionFilterCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DeleteTransformerCommand - */ -export const de_DeleteTransformerCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DeleteTransformerCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeAccountPoliciesCommand - */ -export const de_DescribeAccountPoliciesCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeAccountPoliciesCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeConfigurationTemplatesCommand - */ -export const de_DescribeConfigurationTemplatesCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeConfigurationTemplatesCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeDeliveriesCommand - */ -export const de_DescribeDeliveriesCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeDeliveriesCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeDeliveryDestinationsCommand - */ -export const de_DescribeDeliveryDestinationsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeDeliveryDestinationsCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeDeliverySourcesCommand - */ -export const de_DescribeDeliverySourcesCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeDeliverySourcesCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeDestinationsCommand - */ -export const de_DescribeDestinationsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeDestinationsCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeExportTasksCommand - */ -export const de_DescribeExportTasksCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeExportTasksCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeFieldIndexesCommand - */ -export const de_DescribeFieldIndexesCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeFieldIndexesCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeIndexPoliciesCommand - */ -export const de_DescribeIndexPoliciesCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeIndexPoliciesCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeLogGroupsCommand - */ -export const de_DescribeLogGroupsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeLogGroupsCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeLogStreamsCommand - */ -export const de_DescribeLogStreamsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeLogStreamsCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeMetricFiltersCommand - */ -export const de_DescribeMetricFiltersCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = de_DescribeMetricFiltersResponse(data, context); - const response: DescribeMetricFiltersCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeQueriesCommand - */ -export const de_DescribeQueriesCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeQueriesCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeQueryDefinitionsCommand - */ -export const de_DescribeQueryDefinitionsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeQueryDefinitionsCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeResourcePoliciesCommand - */ -export const de_DescribeResourcePoliciesCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeResourcePoliciesCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DescribeSubscriptionFiltersCommand - */ -export const de_DescribeSubscriptionFiltersCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: DescribeSubscriptionFiltersCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1DisassociateKmsKeyCommand - */ -export const de_DisassociateKmsKeyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: DisassociateKmsKeyCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1FilterLogEventsCommand - */ -export const de_FilterLogEventsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: FilterLogEventsCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1GetDataProtectionPolicyCommand - */ -export const de_GetDataProtectionPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: GetDataProtectionPolicyCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1GetDeliveryCommand - */ -export const de_GetDeliveryCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: GetDeliveryCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1GetDeliveryDestinationCommand - */ -export const de_GetDeliveryDestinationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: GetDeliveryDestinationCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1GetDeliveryDestinationPolicyCommand - */ -export const de_GetDeliveryDestinationPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: GetDeliveryDestinationPolicyCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1GetDeliverySourceCommand - */ -export const de_GetDeliverySourceCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: GetDeliverySourceCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1GetIntegrationCommand - */ -export const de_GetIntegrationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: GetIntegrationCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1GetLogAnomalyDetectorCommand - */ -export const de_GetLogAnomalyDetectorCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: GetLogAnomalyDetectorCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1GetLogEventsCommand - */ -export const de_GetLogEventsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: GetLogEventsCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1GetLogGroupFieldsCommand - */ -export const de_GetLogGroupFieldsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: GetLogGroupFieldsCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1GetLogObjectCommand - */ -export const de_GetLogObjectCommand = async ( - output: __HttpResponse, - context: __SerdeContext & __EventStreamSerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents = { fieldStream: de_GetLogObjectResponseStream(output.body, context) }; - const response: GetLogObjectCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1GetLogRecordCommand - */ -export const de_GetLogRecordCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: GetLogRecordCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1GetQueryResultsCommand - */ -export const de_GetQueryResultsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = de_GetQueryResultsResponse(data, context); - const response: GetQueryResultsCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1GetTransformerCommand - */ -export const de_GetTransformerCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: GetTransformerCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1ListAnomaliesCommand - */ -export const de_ListAnomaliesCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: ListAnomaliesCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1ListIntegrationsCommand - */ -export const de_ListIntegrationsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: ListIntegrationsCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1ListLogAnomalyDetectorsCommand - */ -export const de_ListLogAnomalyDetectorsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: ListLogAnomalyDetectorsCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1ListLogGroupsCommand - */ -export const de_ListLogGroupsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: ListLogGroupsCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1ListLogGroupsForQueryCommand - */ -export const de_ListLogGroupsForQueryCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: ListLogGroupsForQueryCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1ListTagsForResourceCommand - */ -export const de_ListTagsForResourceCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: ListTagsForResourceCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1ListTagsLogGroupCommand - */ -export const de_ListTagsLogGroupCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: ListTagsLogGroupCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1PutAccountPolicyCommand - */ -export const de_PutAccountPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: PutAccountPolicyCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1PutDataProtectionPolicyCommand - */ -export const de_PutDataProtectionPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: PutDataProtectionPolicyCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1PutDeliveryDestinationCommand - */ -export const de_PutDeliveryDestinationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: PutDeliveryDestinationCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1PutDeliveryDestinationPolicyCommand - */ -export const de_PutDeliveryDestinationPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: PutDeliveryDestinationPolicyCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1PutDeliverySourceCommand - */ -export const de_PutDeliverySourceCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: PutDeliverySourceCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1PutDestinationCommand - */ -export const de_PutDestinationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: PutDestinationCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1PutDestinationPolicyCommand - */ -export const de_PutDestinationPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: PutDestinationPolicyCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1PutIndexPolicyCommand - */ -export const de_PutIndexPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: PutIndexPolicyCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1PutIntegrationCommand - */ -export const de_PutIntegrationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: PutIntegrationCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1PutLogEventsCommand - */ -export const de_PutLogEventsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: PutLogEventsCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1PutMetricFilterCommand - */ -export const de_PutMetricFilterCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: PutMetricFilterCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1PutQueryDefinitionCommand - */ -export const de_PutQueryDefinitionCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: PutQueryDefinitionCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1PutResourcePolicyCommand - */ -export const de_PutResourcePolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: PutResourcePolicyCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1PutRetentionPolicyCommand - */ -export const de_PutRetentionPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: PutRetentionPolicyCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1PutSubscriptionFilterCommand - */ -export const de_PutSubscriptionFilterCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: PutSubscriptionFilterCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1PutTransformerCommand - */ -export const de_PutTransformerCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: PutTransformerCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1StartLiveTailCommand - */ -export const de_StartLiveTailCommand = async ( - output: __HttpResponse, - context: __SerdeContext & __EventStreamSerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents = { responseStream: de_StartLiveTailResponseStream(output.body, context) }; - const response: StartLiveTailCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1StartQueryCommand - */ -export const de_StartQueryCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: StartQueryCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1StopQueryCommand - */ -export const de_StopQueryCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: StopQueryCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1TagLogGroupCommand - */ -export const de_TagLogGroupCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: TagLogGroupCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1TagResourceCommand - */ -export const de_TagResourceCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: TagResourceCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1TestMetricFilterCommand - */ -export const de_TestMetricFilterCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: TestMetricFilterCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1TestTransformerCommand - */ -export const de_TestTransformerCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: TestTransformerCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1UntagLogGroupCommand - */ -export const de_UntagLogGroupCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: UntagLogGroupCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1UntagResourceCommand - */ -export const de_UntagResourceCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: UntagResourceCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1UpdateAnomalyCommand - */ -export const de_UpdateAnomalyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: UpdateAnomalyCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserializeAws_json1_1UpdateDeliveryConfigurationCommand - */ -export const de_UpdateDeliveryConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - const data: any = await parseBody(output.body, context); - let contents: any = {}; - contents = _json(data); - const response: UpdateDeliveryConfigurationCommandOutput = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; - -/** - * deserializeAws_json1_1UpdateLogAnomalyDetectorCommand - */ -export const de_UpdateLogAnomalyDetectorCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode >= 300) { - return de_CommandError(output, context); - } - await collectBody(output.body, context); - const response: UpdateLogAnomalyDetectorCommandOutput = { - $metadata: deserializeMetadata(output), - }; - return response; -}; - -/** - * deserialize_Aws_json1_1CommandError - */ -const de_CommandError = async (output: __HttpResponse, context: __SerdeContext): Promise => { - const parsedOutput: any = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.cloudwatchlogs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "OperationAbortedException": - case "com.amazonaws.cloudwatchlogs#OperationAbortedException": - throw await de_OperationAbortedExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ServiceUnavailableException": - case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException": - throw await de_ServiceUnavailableExceptionRes(parsedOutput, context); - case "InvalidOperationException": - case "com.amazonaws.cloudwatchlogs#InvalidOperationException": - throw await de_InvalidOperationExceptionRes(parsedOutput, context); - case "AccessDeniedException": - case "com.amazonaws.cloudwatchlogs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.cloudwatchlogs#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); - case "ServiceQuotaExceededException": - case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException": - throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); - case "ThrottlingException": - case "com.amazonaws.cloudwatchlogs#ThrottlingException": - throw await de_ThrottlingExceptionRes(parsedOutput, context); - case "ValidationException": - case "com.amazonaws.cloudwatchlogs#ValidationException": - throw await de_ValidationExceptionRes(parsedOutput, context); - case "LimitExceededException": - case "com.amazonaws.cloudwatchlogs#LimitExceededException": - throw await de_LimitExceededExceptionRes(parsedOutput, context); - case "ResourceAlreadyExistsException": - case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException": - throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context); - case "DataAlreadyAcceptedException": - case "com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException": - throw await de_DataAlreadyAcceptedExceptionRes(parsedOutput, context); - case "InvalidSequenceTokenException": - case "com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException": - throw await de_InvalidSequenceTokenExceptionRes(parsedOutput, context); - case "UnrecognizedClientException": - case "com.amazonaws.cloudwatchlogs#UnrecognizedClientException": - throw await de_UnrecognizedClientExceptionRes(parsedOutput, context); - case "MalformedQueryException": - case "com.amazonaws.cloudwatchlogs#MalformedQueryException": - throw await de_MalformedQueryExceptionRes(parsedOutput, context); - case "TooManyTagsException": - case "com.amazonaws.cloudwatchlogs#TooManyTagsException": - throw await de_TooManyTagsExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }) as never; - } -}; - -/** - * deserializeAws_json1_1AccessDeniedExceptionRes - */ -const de_AccessDeniedExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new AccessDeniedException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1ConflictExceptionRes - */ -const de_ConflictExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new ConflictException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1DataAlreadyAcceptedExceptionRes - */ -const de_DataAlreadyAcceptedExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new DataAlreadyAcceptedException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1InvalidOperationExceptionRes - */ -const de_InvalidOperationExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new InvalidOperationException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1InvalidParameterExceptionRes - */ -const de_InvalidParameterExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new InvalidParameterException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1InvalidSequenceTokenExceptionRes - */ -const de_InvalidSequenceTokenExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new InvalidSequenceTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1LimitExceededExceptionRes - */ -const de_LimitExceededExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new LimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1MalformedQueryExceptionRes - */ -const de_MalformedQueryExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new MalformedQueryException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1OperationAbortedExceptionRes - */ -const de_OperationAbortedExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new OperationAbortedException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1ResourceAlreadyExistsExceptionRes - */ -const de_ResourceAlreadyExistsExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new ResourceAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1ResourceNotFoundExceptionRes - */ -const de_ResourceNotFoundExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new ResourceNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1ServiceQuotaExceededExceptionRes - */ -const de_ServiceQuotaExceededExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new ServiceQuotaExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1ServiceUnavailableExceptionRes - */ -const de_ServiceUnavailableExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new ServiceUnavailableException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1ThrottlingExceptionRes - */ -const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new ThrottlingException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1TooManyTagsExceptionRes - */ -const de_TooManyTagsExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new TooManyTagsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1UnrecognizedClientExceptionRes - */ -const de_UnrecognizedClientExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new UnrecognizedClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1ValidationExceptionRes - */ -const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new ValidationException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1GetLogObjectResponseStream - */ -const de_GetLogObjectResponseStream = ( - output: any, - context: __SerdeContext & __EventStreamSerdeContext -): AsyncIterable => { - return context.eventStreamMarshaller.deserialize(output, async (event) => { - if (event["fields"] != null) { - return { - fields: await de_FieldsData_event(event["fields"], context), - }; - } - if (event["InternalStreamingException"] != null) { - return { - InternalStreamingException: await de_InternalStreamingException_event( - event["InternalStreamingException"], - context - ), - }; - } - return { $unknown: event as any }; - }); -}; -/** - * deserializeAws_json1_1StartLiveTailResponseStream - */ -const de_StartLiveTailResponseStream = ( - output: any, - context: __SerdeContext & __EventStreamSerdeContext -): AsyncIterable => { - return context.eventStreamMarshaller.deserialize(output, async (event) => { - if (event["sessionStart"] != null) { - return { - sessionStart: await de_LiveTailSessionStart_event(event["sessionStart"], context), - }; - } - if (event["sessionUpdate"] != null) { - return { - sessionUpdate: await de_LiveTailSessionUpdate_event(event["sessionUpdate"], context), - }; - } - if (event["SessionTimeoutException"] != null) { - return { - SessionTimeoutException: await de_SessionTimeoutException_event(event["SessionTimeoutException"], context), - }; - } - if (event["SessionStreamingException"] != null) { - return { - SessionStreamingException: await de_SessionStreamingException_event( - event["SessionStreamingException"], - context - ), - }; - } - return { $unknown: event as any }; - }); -}; -const de_FieldsData_event = async (output: any, context: __SerdeContext): Promise => { - const contents: FieldsData = {} as any; - const data: any = await parseBody(output.body, context); - Object.assign(contents, de_FieldsData(data, context)); - return contents; -}; -const de_InternalStreamingException_event = async ( - output: any, - context: __SerdeContext -): Promise => { - const parsedOutput: any = { - ...output, - body: await parseBody(output.body, context), - }; - return de_InternalStreamingExceptionRes(parsedOutput, context); -}; -const de_LiveTailSessionStart_event = async (output: any, context: __SerdeContext): Promise => { - const contents: LiveTailSessionStart = {} as any; - const data: any = await parseBody(output.body, context); - Object.assign(contents, _json(data)); - return contents; -}; -const de_LiveTailSessionUpdate_event = async (output: any, context: __SerdeContext): Promise => { - const contents: LiveTailSessionUpdate = {} as any; - const data: any = await parseBody(output.body, context); - Object.assign(contents, _json(data)); - return contents; -}; -const de_SessionStreamingException_event = async ( - output: any, - context: __SerdeContext -): Promise => { - const parsedOutput: any = { - ...output, - body: await parseBody(output.body, context), - }; - return de_SessionStreamingExceptionRes(parsedOutput, context); -}; -const de_SessionTimeoutException_event = async ( - output: any, - context: __SerdeContext -): Promise => { - const parsedOutput: any = { - ...output, - body: await parseBody(output.body, context), - }; - return de_SessionTimeoutExceptionRes(parsedOutput, context); -}; -/** - * deserializeAws_json1_1InternalStreamingExceptionRes - */ -const de_InternalStreamingExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new InternalStreamingException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1SessionStreamingExceptionRes - */ -const de_SessionStreamingExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new SessionStreamingException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -/** - * deserializeAws_json1_1SessionTimeoutExceptionRes - */ -const de_SessionTimeoutExceptionRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const body = parsedOutput.body; - const deserialized: any = _json(body); - const exception = new SessionTimeoutException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; - -// se_AccountIds omitted. - -// se_AddKeyEntries omitted. - -// se_AddKeyEntry omitted. - -// se_AddKeys omitted. - -// se_AssociateKmsKeyRequest omitted. - -// se_CancelExportTaskRequest omitted. - -// se_Columns omitted. - -// se_CopyValue omitted. - -// se_CopyValueEntries omitted. - -// se_CopyValueEntry omitted. - -// se_CreateDeliveryRequest omitted. - -// se_CreateExportTaskRequest omitted. - -// se_CreateLogAnomalyDetectorRequest omitted. - -// se_CreateLogGroupRequest omitted. - -// se_CreateLogStreamRequest omitted. - -// se_CSV omitted. - -// se_DashboardViewerPrincipals omitted. - -// se_DateTimeConverter omitted. - -// se_DeleteAccountPolicyRequest omitted. - -// se_DeleteDataProtectionPolicyRequest omitted. - -// se_DeleteDeliveryDestinationPolicyRequest omitted. - -// se_DeleteDeliveryDestinationRequest omitted. - -// se_DeleteDeliveryRequest omitted. - -// se_DeleteDeliverySourceRequest omitted. - -// se_DeleteDestinationRequest omitted. - -// se_DeleteIndexPolicyRequest omitted. - -// se_DeleteIntegrationRequest omitted. - -// se_DeleteKeys omitted. - -// se_DeleteLogAnomalyDetectorRequest omitted. - -// se_DeleteLogGroupRequest omitted. - -// se_DeleteLogStreamRequest omitted. - -// se_DeleteMetricFilterRequest omitted. - -// se_DeleteQueryDefinitionRequest omitted. - -// se_DeleteResourcePolicyRequest omitted. - -// se_DeleteRetentionPolicyRequest omitted. - -// se_DeleteSubscriptionFilterRequest omitted. - -// se_DeleteTransformerRequest omitted. - -// se_DeleteWithKeys omitted. - -// se_DeliveryDestinationConfiguration omitted. - -// se_DeliveryDestinationTypes omitted. - -// se_DescribeAccountPoliciesRequest omitted. - -// se_DescribeConfigurationTemplatesRequest omitted. - -// se_DescribeDeliveriesRequest omitted. - -// se_DescribeDeliveryDestinationsRequest omitted. - -// se_DescribeDeliverySourcesRequest omitted. - -// se_DescribeDestinationsRequest omitted. - -// se_DescribeExportTasksRequest omitted. - -// se_DescribeFieldIndexesLogGroupIdentifiers omitted. - -// se_DescribeFieldIndexesRequest omitted. - -// se_DescribeIndexPoliciesLogGroupIdentifiers omitted. - -// se_DescribeIndexPoliciesRequest omitted. - -// se_DescribeLogGroupsLogGroupIdentifiers omitted. - -// se_DescribeLogGroupsRequest omitted. - -// se_DescribeLogStreamsRequest omitted. - -// se_DescribeMetricFiltersRequest omitted. - -// se_DescribeQueriesRequest omitted. - -// se_DescribeQueryDefinitionsRequest omitted. - -// se_DescribeResourcePoliciesRequest omitted. - -// se_DescribeSubscriptionFiltersRequest omitted. - -// se_Dimensions omitted. - -// se_DisassociateKmsKeyRequest omitted. - -// se_Entity omitted. - -// se_EntityAttributes omitted. - -// se_EntityKeyAttributes omitted. - -// se_FilterLogEventsRequest omitted. - -// se_GetDataProtectionPolicyRequest omitted. - -// se_GetDeliveryDestinationPolicyRequest omitted. - -// se_GetDeliveryDestinationRequest omitted. - -// se_GetDeliveryRequest omitted. - -// se_GetDeliverySourceRequest omitted. - -// se_GetIntegrationRequest omitted. - -// se_GetLogAnomalyDetectorRequest omitted. - -// se_GetLogEventsRequest omitted. - -// se_GetLogGroupFieldsRequest omitted. - -// se_GetLogObjectRequest omitted. - -// se_GetLogRecordRequest omitted. - -// se_GetQueryResultsRequest omitted. - -// se_GetTransformerRequest omitted. - -// se_Grok omitted. - -// se_InputLogEvent omitted. - -// se_InputLogEvents omitted. - -// se_InputLogStreamNames omitted. - -// se_ListAnomaliesRequest omitted. - -// se_ListIntegrationsRequest omitted. - -// se_ListLogAnomalyDetectorsRequest omitted. - -// se_ListLogGroupsForQueryRequest omitted. - -// se_ListLogGroupsRequest omitted. - -// se_ListTagsForResourceRequest omitted. - -// se_ListTagsLogGroupRequest omitted. - -// se_ListToMap omitted. - -// se_LogGroupArnList omitted. - -// se_LogGroupIdentifiers omitted. - -// se_LogGroupNames omitted. - -// se_LogTypes omitted. - -// se_LowerCaseString omitted. - -// se_LowerCaseStringWithKeys omitted. - -// se_MatchPatterns omitted. - -/** - * serializeAws_json1_1MetricTransformation - */ -const se_MetricTransformation = (input: MetricTransformation, context: __SerdeContext): any => { - return take(input, { - defaultValue: __serializeFloat, - dimensions: _json, - metricName: [], - metricNamespace: [], - metricValue: [], - unit: [], - }); -}; - -/** - * serializeAws_json1_1MetricTransformations - */ -const se_MetricTransformations = (input: MetricTransformation[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - return se_MetricTransformation(entry, context); - }); -}; - -// se_MoveKeyEntries omitted. - -// se_MoveKeyEntry omitted. - -// se_MoveKeys omitted. - -// se_OpenSearchResourceConfig omitted. - -// se_ParseCloudfront omitted. - -// se_ParseJSON omitted. - -// se_ParseKeyValue omitted. - -// se_ParsePostgres omitted. - -// se_ParseRoute53 omitted. - -// se_ParseToOCSF omitted. - -// se_ParseVPC omitted. - -// se_ParseWAF omitted. - -// se_Processor omitted. - -// se_Processors omitted. - -// se_PutAccountPolicyRequest omitted. - -// se_PutDataProtectionPolicyRequest omitted. - -// se_PutDeliveryDestinationPolicyRequest omitted. - -// se_PutDeliveryDestinationRequest omitted. - -// se_PutDeliverySourceRequest omitted. - -// se_PutDestinationPolicyRequest omitted. - -// se_PutDestinationRequest omitted. - -// se_PutIndexPolicyRequest omitted. - -// se_PutIntegrationRequest omitted. - -// se_PutLogEventsRequest omitted. - -/** - * serializeAws_json1_1PutMetricFilterRequest - */ -const se_PutMetricFilterRequest = (input: PutMetricFilterRequest, context: __SerdeContext): any => { - return take(input, { - applyOnTransformedLogs: [], - filterName: [], - filterPattern: [], - logGroupName: [], - metricTransformations: (_) => se_MetricTransformations(_, context), - }); -}; - -/** - * serializeAws_json1_1PutQueryDefinitionRequest - */ -const se_PutQueryDefinitionRequest = (input: PutQueryDefinitionRequest, context: __SerdeContext): any => { - return take(input, { - clientToken: [true, (_) => _ ?? generateIdempotencyToken()], - logGroupNames: _json, - name: [], - queryDefinitionId: [], - queryLanguage: [], - queryString: [], - }); -}; - -// se_PutResourcePolicyRequest omitted. - -// se_PutRetentionPolicyRequest omitted. - -// se_PutSubscriptionFilterRequest omitted. - -// se_PutTransformerRequest omitted. - -// se_RecordFields omitted. - -// se_RenameKeyEntries omitted. - -// se_RenameKeyEntry omitted. - -// se_RenameKeys omitted. - -// se_ResourceConfig omitted. - -// se_ResourceTypes omitted. - -// se_S3DeliveryConfiguration omitted. - -// se_SplitString omitted. - -// se_SplitStringEntries omitted. - -// se_SplitStringEntry omitted. - -// se_StartLiveTailLogGroupIdentifiers omitted. - -// se_StartLiveTailRequest omitted. - -// se_StartQueryRequest omitted. - -// se_StopQueryRequest omitted. - -// se_SubstituteString omitted. - -// se_SubstituteStringEntries omitted. - -// se_SubstituteStringEntry omitted. - -// se_SuppressionPeriod omitted. - -// se_TagKeyList omitted. - -// se_TagList omitted. - -// se_TagLogGroupRequest omitted. - -// se_TagResourceRequest omitted. - -// se_Tags omitted. - -// se_TestEventMessages omitted. - -// se_TestMetricFilterRequest omitted. - -// se_TestTransformerRequest omitted. - -// se_TrimString omitted. - -// se_TrimStringWithKeys omitted. - -// se_TypeConverter omitted. - -// se_TypeConverterEntries omitted. - -// se_TypeConverterEntry omitted. - -// se_UntagLogGroupRequest omitted. - -// se_UntagResourceRequest omitted. - -// se_UpdateAnomalyRequest omitted. - -// se_UpdateDeliveryConfigurationRequest omitted. - -// se_UpdateLogAnomalyDetectorRequest omitted. - -// se_UpperCaseString omitted. - -// se_UpperCaseStringWithKeys omitted. - -// de_AccessDeniedException omitted. - -// de_AccountPolicies omitted. - -// de_AccountPolicy omitted. - -// de_AddKeyEntries omitted. - -// de_AddKeyEntry omitted. - -// de_AddKeys omitted. - -// de_AllowedFieldDelimiters omitted. - -// de_AllowedFields omitted. - -// de_Anomalies omitted. - -// de_Anomaly omitted. - -// de_AnomalyDetector omitted. - -// de_AnomalyDetectors omitted. - -// de_Columns omitted. - -// de_ConfigurationTemplate omitted. - -// de_ConfigurationTemplateDeliveryConfigValues omitted. - -// de_ConfigurationTemplates omitted. - -// de_ConflictException omitted. - -// de_CopyValue omitted. - -// de_CopyValueEntries omitted. - -// de_CopyValueEntry omitted. - -// de_CreateDeliveryResponse omitted. - -// de_CreateExportTaskResponse omitted. - -// de_CreateLogAnomalyDetectorResponse omitted. - -// de_CSV omitted. - -// de_DataAlreadyAcceptedException omitted. - -// de_DateTimeConverter omitted. - -// de_DeleteIndexPolicyResponse omitted. - -// de_DeleteIntegrationResponse omitted. - -// de_DeleteKeys omitted. - -// de_DeleteQueryDefinitionResponse omitted. - -// de_DeleteWithKeys omitted. - -// de_Deliveries omitted. - -// de_Delivery omitted. - -// de_DeliveryDestination omitted. - -// de_DeliveryDestinationConfiguration omitted. - -// de_DeliveryDestinations omitted. - -// de_DeliverySource omitted. - -// de_DeliverySources omitted. - -// de_DescribeAccountPoliciesResponse omitted. - -// de_DescribeConfigurationTemplatesResponse omitted. - -// de_DescribeDeliveriesResponse omitted. - -// de_DescribeDeliveryDestinationsResponse omitted. - -// de_DescribeDeliverySourcesResponse omitted. - -// de_DescribeDestinationsResponse omitted. - -// de_DescribeExportTasksResponse omitted. - -// de_DescribeFieldIndexesResponse omitted. - -// de_DescribeIndexPoliciesResponse omitted. - -// de_DescribeLogGroupsResponse omitted. - -// de_DescribeLogStreamsResponse omitted. - -/** - * deserializeAws_json1_1DescribeMetricFiltersResponse - */ -const de_DescribeMetricFiltersResponse = (output: any, context: __SerdeContext): DescribeMetricFiltersResponse => { - return take(output, { - metricFilters: (_: any) => de_MetricFilters(_, context), - nextToken: __expectString, - }) as any; -}; - -// de_DescribeQueriesResponse omitted. - -// de_DescribeQueryDefinitionsResponse omitted. - -// de_DescribeResourcePoliciesResponse omitted. - -// de_DescribeSubscriptionFiltersResponse omitted. - -// de_Destination omitted. - -// de_Destinations omitted. - -// de_Dimensions omitted. - -// de_Enumerations omitted. - -// de_ExportTask omitted. - -// de_ExportTaskExecutionInfo omitted. - -// de_ExportTasks omitted. - -// de_ExportTaskStatus omitted. - -// de_ExtractedValues omitted. - -// de_FieldIndex omitted. - -// de_FieldIndexes omitted. - -/** - * deserializeAws_json1_1FieldsData - */ -const de_FieldsData = (output: any, context: __SerdeContext): FieldsData => { - return take(output, { - data: context.base64Decoder, - }) as any; -}; - -// de_FilteredLogEvent omitted. - -// de_FilteredLogEvents omitted. - -// de_FilterLogEventsResponse omitted. - -// de_GetDataProtectionPolicyResponse omitted. - -// de_GetDeliveryDestinationPolicyResponse omitted. - -// de_GetDeliveryDestinationResponse omitted. - -// de_GetDeliveryResponse omitted. - -// de_GetDeliverySourceResponse omitted. - -// de_GetIntegrationResponse omitted. - -// de_GetLogAnomalyDetectorResponse omitted. - -// de_GetLogEventsResponse omitted. - -// de_GetLogGroupFieldsResponse omitted. - -// de_GetLogRecordResponse omitted. - -/** - * deserializeAws_json1_1GetQueryResultsResponse - */ -const de_GetQueryResultsResponse = (output: any, context: __SerdeContext): GetQueryResultsResponse => { - return take(output, { - encryptionKey: __expectString, - queryLanguage: __expectString, - results: _json, - statistics: (_: any) => de_QueryStatistics(_, context), - status: __expectString, - }) as any; -}; - -// de_GetTransformerResponse omitted. - -// de_Grok omitted. - -// de_Histogram omitted. - -// de_IndexPolicies omitted. - -// de_IndexPolicy omitted. - -// de_InheritedProperties omitted. - -// de_InputLogStreamNames omitted. - -// de_IntegrationDetails omitted. - -// de_IntegrationSummaries omitted. - -// de_IntegrationSummary omitted. - -// de_InternalStreamingException omitted. - -// de_InvalidOperationException omitted. - -// de_InvalidParameterException omitted. - -// de_InvalidSequenceTokenException omitted. - -// de_LimitExceededException omitted. - -// de_ListAnomaliesResponse omitted. - -// de_ListIntegrationsResponse omitted. - -// de_ListLogAnomalyDetectorsResponse omitted. - -// de_ListLogGroupsForQueryResponse omitted. - -// de_ListLogGroupsResponse omitted. - -// de_ListTagsForResourceResponse omitted. - -// de_ListTagsLogGroupResponse omitted. - -// de_ListToMap omitted. - -// de_LiveTailSessionLogEvent omitted. - -// de_LiveTailSessionMetadata omitted. - -// de_LiveTailSessionResults omitted. - -// de_LiveTailSessionStart omitted. - -// de_LiveTailSessionUpdate omitted. - -// de_LogEvent omitted. - -// de_LogGroup omitted. - -// de_LogGroupArnList omitted. - -// de_LogGroupField omitted. - -// de_LogGroupFieldList omitted. - -// de_LogGroupIdentifiers omitted. - -// de_LogGroupNames omitted. - -// de_LogGroups omitted. - -// de_LogGroupSummaries omitted. - -// de_LogGroupSummary omitted. - -// de_LogRecord omitted. - -// de_LogSamples omitted. - -// de_LogStream omitted. - -// de_LogStreams omitted. - -// de_LowerCaseString omitted. - -// de_LowerCaseStringWithKeys omitted. - -// de_MalformedQueryException omitted. - -// de_MatchPatterns omitted. - -/** - * deserializeAws_json1_1MetricFilter - */ -const de_MetricFilter = (output: any, context: __SerdeContext): MetricFilter => { - return take(output, { - applyOnTransformedLogs: __expectBoolean, - creationTime: __expectLong, - filterName: __expectString, - filterPattern: __expectString, - logGroupName: __expectString, - metricTransformations: (_: any) => de_MetricTransformations(_, context), - }) as any; -}; - -// de_MetricFilterMatches omitted. - -// de_MetricFilterMatchRecord omitted. - -/** - * deserializeAws_json1_1MetricFilters - */ -const de_MetricFilters = (output: any, context: __SerdeContext): MetricFilter[] => { - const retVal = (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_MetricFilter(entry, context); - }); - return retVal; -}; - -/** - * deserializeAws_json1_1MetricTransformation - */ -const de_MetricTransformation = (output: any, context: __SerdeContext): MetricTransformation => { - return take(output, { - defaultValue: __limitedParseDouble, - dimensions: _json, - metricName: __expectString, - metricNamespace: __expectString, - metricValue: __expectString, - unit: __expectString, - }) as any; -}; - -/** - * deserializeAws_json1_1MetricTransformations - */ -const de_MetricTransformations = (output: any, context: __SerdeContext): MetricTransformation[] => { - const retVal = (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_MetricTransformation(entry, context); - }); - return retVal; -}; - -// de_MoveKeyEntries omitted. - -// de_MoveKeyEntry omitted. - -// de_MoveKeys omitted. - -// de_OpenSearchApplication omitted. - -// de_OpenSearchCollection omitted. - -// de_OpenSearchDataAccessPolicy omitted. - -// de_OpenSearchDataSource omitted. - -// de_OpenSearchEncryptionPolicy omitted. - -// de_OpenSearchIntegrationDetails omitted. - -// de_OpenSearchLifecyclePolicy omitted. - -// de_OpenSearchNetworkPolicy omitted. - -// de_OpenSearchResourceStatus omitted. - -// de_OpenSearchWorkspace omitted. - -// de_OperationAbortedException omitted. - -// de_OutputFormats omitted. - -// de_OutputLogEvent omitted. - -// de_OutputLogEvents omitted. - -// de_ParseCloudfront omitted. - -// de_ParseJSON omitted. - -// de_ParseKeyValue omitted. - -// de_ParsePostgres omitted. - -// de_ParseRoute53 omitted. - -// de_ParseToOCSF omitted. - -// de_ParseVPC omitted. - -// de_ParseWAF omitted. - -// de_PatternToken omitted. - -// de_PatternTokens omitted. - -// de_Policy omitted. - -// de_Processor omitted. - -// de_Processors omitted. - -// de_PutAccountPolicyResponse omitted. - -// de_PutDataProtectionPolicyResponse omitted. - -// de_PutDeliveryDestinationPolicyResponse omitted. - -// de_PutDeliveryDestinationResponse omitted. - -// de_PutDeliverySourceResponse omitted. - -// de_PutDestinationResponse omitted. - -// de_PutIndexPolicyResponse omitted. - -// de_PutIntegrationResponse omitted. - -// de_PutLogEventsResponse omitted. - -// de_PutQueryDefinitionResponse omitted. - -// de_PutResourcePolicyResponse omitted. - -// de_QueryCompileError omitted. - -// de_QueryCompileErrorLocation omitted. - -// de_QueryDefinition omitted. - -// de_QueryDefinitionList omitted. - -// de_QueryInfo omitted. - -// de_QueryInfoList omitted. - -// de_QueryResults omitted. - -/** - * deserializeAws_json1_1QueryStatistics - */ -const de_QueryStatistics = (output: any, context: __SerdeContext): QueryStatistics => { - return take(output, { - bytesScanned: __limitedParseDouble, - estimatedBytesSkipped: __limitedParseDouble, - estimatedRecordsSkipped: __limitedParseDouble, - logGroupsScanned: __limitedParseDouble, - recordsMatched: __limitedParseDouble, - recordsScanned: __limitedParseDouble, - }) as any; -}; - -// de_RecordField omitted. - -// de_RecordFields omitted. - -// de_RejectedEntityInfo omitted. - -// de_RejectedLogEventsInfo omitted. - -// de_RenameKeyEntries omitted. - -// de_RenameKeyEntry omitted. - -// de_RenameKeys omitted. - -// de_ResourceAlreadyExistsException omitted. - -// de_ResourceArns omitted. - -// de_ResourceNotFoundException omitted. - -// de_ResourcePolicies omitted. - -// de_ResourcePolicy omitted. - -// de_ResultField omitted. - -// de_ResultRows omitted. - -// de_S3DeliveryConfiguration omitted. - -// de_SearchedLogStream omitted. - -// de_SearchedLogStreams omitted. - -// de_ServiceQuotaExceededException omitted. - -// de_ServiceUnavailableException omitted. - -// de_SessionStreamingException omitted. - -// de_SessionTimeoutException omitted. - -// de_SplitString omitted. - -// de_SplitStringEntries omitted. - -// de_SplitStringEntry omitted. - -// de_StartLiveTailLogGroupIdentifiers omitted. - -// de_StartQueryResponse omitted. - -// de_StopQueryResponse omitted. - -// de_SubscriptionFilter omitted. - -// de_SubscriptionFilters omitted. - -// de_SubstituteString omitted. - -// de_SubstituteStringEntries omitted. - -// de_SubstituteStringEntry omitted. - -// de_Tags omitted. - -// de_TestMetricFilterResponse omitted. - -// de_TestTransformerResponse omitted. - -// de_ThrottlingException omitted. - -// de_TooManyTagsException omitted. - -// de_TransformedLogRecord omitted. - -// de_TransformedLogs omitted. - -// de_TrimString omitted. - -// de_TrimStringWithKeys omitted. - -// de_TypeConverter omitted. - -// de_TypeConverterEntries omitted. - -// de_TypeConverterEntry omitted. - -// de_UnrecognizedClientException omitted. - -// de_UpdateDeliveryConfigurationResponse omitted. - -// de_UpperCaseString omitted. - -// de_UpperCaseStringWithKeys omitted. - -// de_ValidationException omitted. - -const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ - httpStatusCode: output.statusCode, - requestId: - output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], -}); - -// Encode Uint8Array data into string with utf-8. -const collectBodyString = (streamBody: any, context: __SerdeContext): Promise => - collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); - -const throwDefaultError = withBaseException(__BaseException); -const buildHttpRpcRequest = async ( - context: __SerdeContext, - headers: __HeaderBag, - path: string, - resolvedHostname: string | undefined, - body: any -): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const contents: any = { - protocol, - hostname, - port, - method: "POST", - path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, - headers, - }; - if (resolvedHostname !== undefined) { - contents.hostname = resolvedHostname; - } - if (body !== undefined) { - contents.body = body; - } - return new __HttpRequest(contents); -}; -function sharedHeaders(operation: string): __HeaderBag { - return { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": `Logs_20140328.${operation}`, - }; -} diff --git a/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts b/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts index 23b36ed16fbf..f7e45d100ad7 100644 --- a/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts +++ b/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { AwsSdkSigV4Signer } from "@aws-sdk/core"; +import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols"; import { NoOpLogger } from "@smithy/smithy-client"; import { IdentityProviderConfig } from "@smithy/types"; import { parseUrl } from "@smithy/url-parser"; @@ -30,6 +31,7 @@ export const getRuntimeConfig = (config: CloudWatchLogsClientConfig) => { }, ], logger: config?.logger ?? new NoOpLogger(), + protocol: config?.protocol ?? new AwsJson1_1Protocol({ defaultNamespace: "com.amazonaws.cloudwatchlogs" }), serviceId: config?.serviceId ?? "CloudWatch Logs", urlParser: config?.urlParser ?? parseUrl, utf8Decoder: config?.utf8Decoder ?? fromUtf8, diff --git a/clients/client-cloudwatch-logs/src/schemas/schemas.ts b/clients/client-cloudwatch-logs/src/schemas/schemas.ts new file mode 100644 index 000000000000..b8b7e40266fc --- /dev/null +++ b/clients/client-cloudwatch-logs/src/schemas/schemas.ts @@ -0,0 +1,2289 @@ +const _A = "Anomaly"; +const _AD = "AnomalyDetector"; +const _ADE = "AccessDeniedException"; +const _ADn = "AnomalyDetectors"; +const _AF = "AllowedFields"; +const _AK = "AddKeys"; +const _AKE = "AddKeyEntry"; +const _AKEd = "AddKeyEntries"; +const _AKK = "AssociateKmsKey"; +const _AKKR = "AssociateKmsKeyRequest"; +const _AP = "AccountPolicy"; +const _APc = "AccountPolicies"; +const _An = "Anomalies"; +const _CD = "CreateDelivery"; +const _CDR = "CreateDeliveryRequest"; +const _CDRr = "CreateDeliveryResponse"; +const _CE = "ConflictException"; +const _CET = "CancelExportTask"; +const _CETR = "CancelExportTaskRequest"; +const _CETRr = "CreateExportTaskRequest"; +const _CETRre = "CreateExportTaskResponse"; +const _CETr = "CreateExportTask"; +const _CLAD = "CreateLogAnomalyDetector"; +const _CLADR = "CreateLogAnomalyDetectorRequest"; +const _CLADRr = "CreateLogAnomalyDetectorResponse"; +const _CLG = "CreateLogGroup"; +const _CLGR = "CreateLogGroupRequest"; +const _CLS = "CreateLogStream"; +const _CLSR = "CreateLogStreamRequest"; +const _CSV = "CSV"; +const _CT = "ConfigurationTemplate"; +const _CTDCV = "ConfigurationTemplateDeliveryConfigValues"; +const _CTo = "ConfigurationTemplates"; +const _CV = "CopyValue"; +const _CVE = "CopyValueEntry"; +const _CVEo = "CopyValueEntries"; +const _D = "Delivery"; +const _DAAE = "DataAlreadyAcceptedException"; +const _DAP = "DeleteAccountPolicy"; +const _DAPR = "DeleteAccountPolicyRequest"; +const _DAPRe = "DescribeAccountPoliciesRequest"; +const _DAPRes = "DescribeAccountPoliciesResponse"; +const _DAPe = "DescribeAccountPolicies"; +const _DCT = "DescribeConfigurationTemplates"; +const _DCTR = "DescribeConfigurationTemplatesRequest"; +const _DCTRe = "DescribeConfigurationTemplatesResponse"; +const _DD = "DeliveryDestination"; +const _DDC = "DeliveryDestinationConfiguration"; +const _DDD = "DeleteDeliveryDestination"; +const _DDDP = "DeleteDeliveryDestinationPolicy"; +const _DDDPR = "DeleteDeliveryDestinationPolicyRequest"; +const _DDDR = "DeleteDeliveryDestinationRequest"; +const _DDDRe = "DescribeDeliveryDestinationsRequest"; +const _DDDRes = "DescribeDeliveryDestinationsResponse"; +const _DDDe = "DescribeDeliveryDestinations"; +const _DDPP = "DeleteDataProtectionPolicy"; +const _DDPPR = "DeleteDataProtectionPolicyRequest"; +const _DDR = "DeleteDeliveryRequest"; +const _DDRe = "DeleteDestinationRequest"; +const _DDRes = "DescribeDeliveriesRequest"; +const _DDResc = "DescribeDeliveriesResponse"; +const _DDRescr = "DescribeDestinationsRequest"; +const _DDRescri = "DescribeDestinationsResponse"; +const _DDS = "DeleteDeliverySource"; +const _DDSR = "DeleteDeliverySourceRequest"; +const _DDSRe = "DescribeDeliverySourcesRequest"; +const _DDSRes = "DescribeDeliverySourcesResponse"; +const _DDSe = "DescribeDeliverySources"; +const _DDe = "DeliveryDestinations"; +const _DDel = "DeleteDelivery"; +const _DDele = "DeleteDestination"; +const _DDes = "DescribeDeliveries"; +const _DDesc = "DescribeDestinations"; +const _DET = "DescribeExportTasks"; +const _DETR = "DescribeExportTasksRequest"; +const _DETRe = "DescribeExportTasksResponse"; +const _DFI = "DescribeFieldIndexes"; +const _DFIR = "DescribeFieldIndexesRequest"; +const _DFIRe = "DescribeFieldIndexesResponse"; +const _DI = "DeleteIntegration"; +const _DIP = "DeleteIndexPolicy"; +const _DIPR = "DeleteIndexPolicyRequest"; +const _DIPRe = "DeleteIndexPolicyResponse"; +const _DIPRes = "DescribeIndexPoliciesRequest"; +const _DIPResc = "DescribeIndexPoliciesResponse"; +const _DIPe = "DescribeIndexPolicies"; +const _DIR = "DeleteIntegrationRequest"; +const _DIRe = "DeleteIntegrationResponse"; +const _DK = "DeleteKeys"; +const _DKK = "DisassociateKmsKey"; +const _DKKR = "DisassociateKmsKeyRequest"; +const _DLAD = "DeleteLogAnomalyDetector"; +const _DLADR = "DeleteLogAnomalyDetectorRequest"; +const _DLG = "DeleteLogGroup"; +const _DLGR = "DeleteLogGroupRequest"; +const _DLGRe = "DescribeLogGroupsRequest"; +const _DLGRes = "DescribeLogGroupsResponse"; +const _DLGe = "DescribeLogGroups"; +const _DLS = "DeleteLogStream"; +const _DLSR = "DeleteLogStreamRequest"; +const _DLSRe = "DescribeLogStreamsRequest"; +const _DLSRes = "DescribeLogStreamsResponse"; +const _DLSe = "DescribeLogStreams"; +const _DMF = "DeleteMetricFilter"; +const _DMFR = "DeleteMetricFilterRequest"; +const _DMFRe = "DescribeMetricFiltersRequest"; +const _DMFRes = "DescribeMetricFiltersResponse"; +const _DMFe = "DescribeMetricFilters"; +const _DNP = "DestinationNamePrefix"; +const _DQ = "DescribeQueries"; +const _DQD = "DeleteQueryDefinition"; +const _DQDR = "DeleteQueryDefinitionRequest"; +const _DQDRe = "DeleteQueryDefinitionResponse"; +const _DQDRes = "DescribeQueryDefinitionsRequest"; +const _DQDResc = "DescribeQueryDefinitionsResponse"; +const _DQDe = "DescribeQueryDefinitions"; +const _DQR = "DescribeQueriesRequest"; +const _DQRe = "DescribeQueriesResponse"; +const _DRP = "DeleteResourcePolicy"; +const _DRPR = "DeleteResourcePolicyRequest"; +const _DRPRe = "DeleteRetentionPolicyRequest"; +const _DRPRes = "DescribeResourcePoliciesRequest"; +const _DRPResc = "DescribeResourcePoliciesResponse"; +const _DRPe = "DeleteRetentionPolicy"; +const _DRPes = "DescribeResourcePolicies"; +const _DS = "DeliverySource"; +const _DSF = "DeleteSubscriptionFilter"; +const _DSFR = "DeleteSubscriptionFilterRequest"; +const _DSFRe = "DescribeSubscriptionFiltersRequest"; +const _DSFRes = "DescribeSubscriptionFiltersResponse"; +const _DSFe = "DescribeSubscriptionFilters"; +const _DSe = "DeliverySources"; +const _DT = "DeleteTransformer"; +const _DTC = "DateTimeConverter"; +const _DTR = "DeleteTransformerRequest"; +const _De = "Destination"; +const _Del = "Deliveries"; +const _Des = "Destinations"; +const _E = "Entity"; +const _ET = "ExportTask"; +const _ETEI = "ExportTaskExecutionInfo"; +const _ETS = "ExportTaskStatus"; +const _ETx = "ExportTasks"; +const _FD = "FieldsData"; +const _FI = "FieldIndex"; +const _FIi = "FieldIndexes"; +const _FLE = "FilteredLogEvent"; +const _FLER = "FilterLogEventsRequest"; +const _FLERi = "FilterLogEventsResponse"; +const _FLEi = "FilteredLogEvents"; +const _FLEil = "FilterLogEvents"; +const _G = "Grok"; +const _GD = "GetDelivery"; +const _GDD = "GetDeliveryDestination"; +const _GDDP = "GetDeliveryDestinationPolicy"; +const _GDDPR = "GetDeliveryDestinationPolicyRequest"; +const _GDDPRe = "GetDeliveryDestinationPolicyResponse"; +const _GDDR = "GetDeliveryDestinationRequest"; +const _GDDRe = "GetDeliveryDestinationResponse"; +const _GDPP = "GetDataProtectionPolicy"; +const _GDPPR = "GetDataProtectionPolicyRequest"; +const _GDPPRe = "GetDataProtectionPolicyResponse"; +const _GDR = "GetDeliveryRequest"; +const _GDRe = "GetDeliveryResponse"; +const _GDS = "GetDeliverySource"; +const _GDSR = "GetDeliverySourceRequest"; +const _GDSRe = "GetDeliverySourceResponse"; +const _GI = "GetIntegration"; +const _GIR = "GetIntegrationRequest"; +const _GIRe = "GetIntegrationResponse"; +const _GLAD = "GetLogAnomalyDetector"; +const _GLADR = "GetLogAnomalyDetectorRequest"; +const _GLADRe = "GetLogAnomalyDetectorResponse"; +const _GLE = "GetLogEvents"; +const _GLER = "GetLogEventsRequest"; +const _GLERe = "GetLogEventsResponse"; +const _GLGF = "GetLogGroupFields"; +const _GLGFR = "GetLogGroupFieldsRequest"; +const _GLGFRe = "GetLogGroupFieldsResponse"; +const _GLO = "GetLogObject"; +const _GLOR = "GetLogObjectRequest"; +const _GLORS = "GetLogObjectResponseStream"; +const _GLORe = "GetLogObjectResponse"; +const _GLR = "GetLogRecord"; +const _GLRR = "GetLogRecordRequest"; +const _GLRRe = "GetLogRecordResponse"; +const _GQR = "GetQueryResults"; +const _GQRR = "GetQueryResultsRequest"; +const _GQRRe = "GetQueryResultsResponse"; +const _GT = "GetTransformer"; +const _GTR = "GetTransformerRequest"; +const _GTRe = "GetTransformerResponse"; +const _ID = "IntegrationDetails"; +const _ILE = "InputLogEvent"; +const _ILEn = "InputLogEvents"; +const _IOE = "InvalidOperationException"; +const _IP = "IndexPolicy"; +const _IPE = "InvalidParameterException"; +const _IPn = "IndexPolicies"; +const _IS = "IntegrationSummary"; +const _ISE = "InternalStreamingException"; +const _ISTE = "InvalidSequenceTokenException"; +const _ISn = "IntegrationSummaries"; +const _LA = "ListAnomalies"; +const _LAR = "ListAnomaliesRequest"; +const _LARi = "ListAnomaliesResponse"; +const _LCS = "LowerCaseString"; +const _LE = "LogEvent"; +const _LEE = "LimitExceededException"; +const _LG = "LogGroup"; +const _LGF = "LogGroupField"; +const _LGFL = "LogGroupFieldList"; +const _LGS = "LogGroupSummary"; +const _LGSo = "LogGroupSummaries"; +const _LGo = "LogGroups"; +const _LI = "ListIntegrations"; +const _LIR = "ListIntegrationsRequest"; +const _LIRi = "ListIntegrationsResponse"; +const _LLAD = "ListLogAnomalyDetectors"; +const _LLADR = "ListLogAnomalyDetectorsRequest"; +const _LLADRi = "ListLogAnomalyDetectorsResponse"; +const _LLG = "ListLogGroups"; +const _LLGFQ = "ListLogGroupsForQuery"; +const _LLGFQR = "ListLogGroupsForQueryRequest"; +const _LLGFQRi = "ListLogGroupsForQueryResponse"; +const _LLGR = "ListLogGroupsRequest"; +const _LLGRi = "ListLogGroupsResponse"; +const _LS = "LogStream"; +const _LSo = "LogSamples"; +const _LSog = "LogStreams"; +const _LTFR = "ListTagsForResource"; +const _LTFRR = "ListTagsForResourceRequest"; +const _LTFRRi = "ListTagsForResourceResponse"; +const _LTLG = "ListTagsLogGroup"; +const _LTLGR = "ListTagsLogGroupRequest"; +const _LTLGRi = "ListTagsLogGroupResponse"; +const _LTM = "ListToMap"; +const _LTSLE = "LiveTailSessionLogEvent"; +const _LTSM = "LiveTailSessionMetadata"; +const _LTSR = "LiveTailSessionResults"; +const _LTSS = "LiveTailSessionStart"; +const _LTSU = "LiveTailSessionUpdate"; +const _MF = "MetricFilter"; +const _MFM = "MetricFilterMatches"; +const _MFMR = "MetricFilterMatchRecord"; +const _MFe = "MetricFilters"; +const _MK = "MoveKeys"; +const _MKE = "MoveKeyEntry"; +const _MKEo = "MoveKeyEntries"; +const _MQE = "MalformedQueryException"; +const _MT = "MetricTransformation"; +const _MTe = "MetricTransformations"; +const _OAE = "OperationAbortedException"; +const _OLE = "OutputLogEvent"; +const _OLEu = "OutputLogEvents"; +const _OSA = "OpenSearchApplication"; +const _OSC = "OpenSearchCollection"; +const _OSDAP = "OpenSearchDataAccessPolicy"; +const _OSDS = "OpenSearchDataSource"; +const _OSEP = "OpenSearchEncryptionPolicy"; +const _OSID = "OpenSearchIntegrationDetails"; +const _OSLP = "OpenSearchLifecyclePolicy"; +const _OSNP = "OpenSearchNetworkPolicy"; +const _OSRC = "OpenSearchResourceConfig"; +const _OSRS = "OpenSearchResourceStatus"; +const _OSW = "OpenSearchWorkspace"; +const _P = "Policy"; +const _PAP = "PutAccountPolicy"; +const _PAPR = "PutAccountPolicyRequest"; +const _PAPRu = "PutAccountPolicyResponse"; +const _PC = "ParseCloudfront"; +const _PD = "PutDestination"; +const _PDD = "PutDeliveryDestination"; +const _PDDP = "PutDeliveryDestinationPolicy"; +const _PDDPR = "PutDeliveryDestinationPolicyRequest"; +const _PDDPRu = "PutDeliveryDestinationPolicyResponse"; +const _PDDR = "PutDeliveryDestinationRequest"; +const _PDDRu = "PutDeliveryDestinationResponse"; +const _PDP = "PutDestinationPolicy"; +const _PDPP = "PutDataProtectionPolicy"; +const _PDPPR = "PutDataProtectionPolicyRequest"; +const _PDPPRu = "PutDataProtectionPolicyResponse"; +const _PDPR = "PutDestinationPolicyRequest"; +const _PDR = "PutDestinationRequest"; +const _PDRu = "PutDestinationResponse"; +const _PDS = "PutDeliverySource"; +const _PDSR = "PutDeliverySourceRequest"; +const _PDSRu = "PutDeliverySourceResponse"; +const _PI = "PutIntegration"; +const _PIP = "PutIndexPolicy"; +const _PIPR = "PutIndexPolicyRequest"; +const _PIPRu = "PutIndexPolicyResponse"; +const _PIR = "PutIntegrationRequest"; +const _PIRu = "PutIntegrationResponse"; +const _PJSON = "ParseJSON"; +const _PKV = "ParseKeyValue"; +const _PLE = "PutLogEvents"; +const _PLER = "PutLogEventsRequest"; +const _PLERu = "PutLogEventsResponse"; +const _PMF = "PutMetricFilter"; +const _PMFR = "PutMetricFilterRequest"; +const _PP = "ParsePostgres"; +const _PQD = "PutQueryDefinition"; +const _PQDR = "PutQueryDefinitionRequest"; +const _PQDRu = "PutQueryDefinitionResponse"; +const _PR = "ParseRoute53"; +const _PRP = "PutResourcePolicy"; +const _PRPR = "PutResourcePolicyRequest"; +const _PRPRu = "PutResourcePolicyResponse"; +const _PRPRut = "PutRetentionPolicyRequest"; +const _PRPu = "PutRetentionPolicy"; +const _PSF = "PutSubscriptionFilter"; +const _PSFR = "PutSubscriptionFilterRequest"; +const _PT = "PatternToken"; +const _PTOCSF = "ParseToOCSF"; +const _PTR = "PutTransformerRequest"; +const _PTa = "PatternTokens"; +const _PTu = "PutTransformer"; +const _PVPC = "ParseVPC"; +const _PWAF = "ParseWAF"; +const _Pr = "Processor"; +const _Pro = "Processors"; +const _QCE = "QueryCompileError"; +const _QCEL = "QueryCompileErrorLocation"; +const _QD = "QueryDefinition"; +const _QDL = "QueryDefinitionList"; +const _QI = "QueryInfo"; +const _QIL = "QueryInfoList"; +const _QR = "QueryResults"; +const _QS = "QueryStatistics"; +const _RAEE = "ResourceAlreadyExistsException"; +const _RC = "ResourceConfig"; +const _REI = "RejectedEntityInfo"; +const _RF = "RecordField"; +const _RFe = "ResultField"; +const _RK = "RenameKeys"; +const _RKE = "RenameKeyEntry"; +const _RKEe = "RenameKeyEntries"; +const _RLEI = "RejectedLogEventsInfo"; +const _RNFE = "ResourceNotFoundException"; +const _RP = "ResourcePolicy"; +const _RPe = "ResourcePolicies"; +const _RR = "ResultRows"; +const _SDC = "S3DeliveryConfiguration"; +const _SF = "SubscriptionFilter"; +const _SFu = "SubscriptionFilters"; +const _SLS = "SearchedLogStream"; +const _SLSe = "SearchedLogStreams"; +const _SLT = "StartLiveTail"; +const _SLTR = "StartLiveTailRequest"; +const _SLTRS = "StartLiveTailResponseStream"; +const _SLTRt = "StartLiveTailResponse"; +const _SP = "SuppressionPeriod"; +const _SQ = "StartQuery"; +const _SQEE = "ServiceQuotaExceededException"; +const _SQR = "StartQueryRequest"; +const _SQRt = "StartQueryResponse"; +const _SQRto = "StopQueryRequest"; +const _SQRtop = "StopQueryResponse"; +const _SQt = "StopQuery"; +const _SS = "SplitString"; +const _SSE = "SessionStreamingException"; +const _SSEp = "SplitStringEntry"; +const _SSEpl = "SplitStringEntries"; +const _SSEu = "SubstituteStringEntry"; +const _SSEub = "SubstituteStringEntries"; +const _SSu = "SubstituteString"; +const _STE = "SessionTimeoutException"; +const _SUE = "ServiceUnavailableException"; +const _TC = "TypeConverter"; +const _TCE = "TypeConverterEntry"; +const _TCEy = "TypeConverterEntries"; +const _TE = "ThrottlingException"; +const _TL = "TransformedLogs"; +const _TLG = "TagLogGroup"; +const _TLGR = "TagLogGroupRequest"; +const _TLR = "TransformedLogRecord"; +const _TMF = "TestMetricFilter"; +const _TMFR = "TestMetricFilterRequest"; +const _TMFRe = "TestMetricFilterResponse"; +const _TMTE = "TooManyTagsException"; +const _TR = "TagResource"; +const _TRR = "TagResourceRequest"; +const _TS = "TrimString"; +const _TT = "TestTransformer"; +const _TTR = "TestTransformerRequest"; +const _TTRe = "TestTransformerResponse"; +const _UA = "UpdateAnomaly"; +const _UAR = "UpdateAnomalyRequest"; +const _UCE = "UnrecognizedClientException"; +const _UCS = "UpperCaseString"; +const _UDC = "UpdateDeliveryConfiguration"; +const _UDCR = "UpdateDeliveryConfigurationRequest"; +const _UDCRp = "UpdateDeliveryConfigurationResponse"; +const _ULAD = "UpdateLogAnomalyDetector"; +const _ULADR = "UpdateLogAnomalyDetectorRequest"; +const _ULG = "UntagLogGroup"; +const _ULGR = "UntagLogGroupRequest"; +const _UR = "UntagResource"; +const _URR = "UntagResourceRequest"; +const _VE = "ValidationException"; +const _a = "active"; +const _aA = "applicationArn"; +const _aAFAVLDFR = "allowedActionForAllowVendedLogsDeliveryForResource"; +const _aD = "anomalyDetectors"; +const _aDA = "anomalyDetectorArn"; +const _aDS = "anomalyDetectorStatus"; +const _aE = "applicationEndpoint"; +const _aF = "allowedFields"; +const _aFD = "allowedFieldDelimiters"; +const _aI = "accountId"; +const _aIc = "accountIdentifiers"; +const _aIn = "anomalyId"; +const _aIp = "applicationId"; +const _aK = "addKeys"; +const _aOF = "allowedOutputFormats"; +const _aOTL = "applyOnTransformedLogs"; +const _aP = "accountPolicies"; +const _aPc = "accessPolicy"; +const _aPcc = "accountPolicy"; +const _aSPF = "allowedSuffixPathFields"; +const _aVT = "anomalyVisibilityTime"; +const _an = "anomalies"; +const _ap = "application"; +const _ar = "arn"; +const _at = "attributes"; +const _b = "baseline"; +const _bS = "bytesScanned"; +const _c = "client"; +const _cA = "collectionArn"; +const _cE = "collectionEndpoint"; +const _cT = "configurationTemplates"; +const _cTS = "creationTimeStamp"; +const _cTl = "clientToken"; +const _cTo = "completionTime"; +const _cTr = "creationTime"; +const _cTre = "createTime"; +const _cV = "copyValue"; +const _co = "columns"; +const _cod = "code"; +const _col = "collection"; +const _cs = "csv"; +const _d = "description"; +const _dA = "destinationArn"; +const _dD = "deliveryDestinations"; +const _dDA = "deliveryDestinationArn"; +const _dDC = "deliveryDestinationConfiguration"; +const _dDCV = "defaultDeliveryConfigValues"; +const _dDN = "deliveryDestinationName"; +const _dDP = "deliveryDestinationPolicy"; +const _dDT = "deliveryDestinationType"; +const _dDTe = "deliveryDestinationTypes"; +const _dDe = "deliveryDestination"; +const _dK = "deleteKeys"; +const _dN = "detectorName"; +const _dNe = "destinationName"; +const _dP = "destinationPrefix"; +const _dPS = "dataProtectionStatus"; +const _dRA = "destinationResourceArn"; +const _dS = "deliverySources"; +const _dSN = "deliverySourceName"; +const _dSNa = "dataSourceName"; +const _dSRA = "dataSourceRoleArn"; +const _dSa = "dataSource"; +const _dSe = "deliverySource"; +const _dTC = "dateTimeConverter"; +const _dTP = "dynamicTokenPosition"; +const _dV = "defaultValue"; +const _dVP = "dashboardViewerPrincipals"; +const _da = "data"; +const _de = "delivery"; +const _del = "delimiter"; +const _deli = "deliveries"; +const _des = "destination"; +const _desc = "descending"; +const _dest = "destinations"; +const _di = "dimensions"; +const _dis = "distribution"; +const _e = "error"; +const _eBS = "estimatedBytesSkipped"; +const _eCO = "endCharOffset"; +const _eF = "evaluationFrequency"; +const _eHCP = "enableHiveCompatiblePath"; +const _eI = "executionInfo"; +const _eIv = "eventId"; +const _eK = "encryptionKey"; +const _eLEEI = "expiredLogEventEndIndex"; +const _eM = "eventMessage"; +const _eN = "eventNumber"; +const _eP = "encryptionPolicy"; +const _eRI = "expectedRevisionId"; +const _eRS = "estimatedRecordsSkipped"; +const _eS = "eventSource"; +const _eST = "expectedSequenceToken"; +const _eT = "exportTasks"; +const _eTn = "endTime"; +const _eTr = "errorType"; +const _eV = "extractedValues"; +const _en = "entries"; +const _ena = "enabled"; +const _end = "endpoint"; +const _ent = "entity"; +const _enu = "enumerations"; +const _ev = "events"; +const _f = "from"; +const _fD = "fieldDelimiter"; +const _fE = "flattenedElement"; +const _fET = "firstEventTime"; +const _fETi = "firstEventTimestamp"; +const _fI = "fieldIndexes"; +const _fIN = "fieldIndexName"; +const _fLGA = "filterLogGroupArn"; +const _fN = "filterName"; +const _fNP = "filterNamePrefix"; +const _fP = "filterPattern"; +const _fS = "firstSeen"; +const _fSi = "fieldStream"; +const _fU = "forceUpdate"; +const _fi = "field"; +const _fie = "fields"; +const _fl = "flatten"; +const _fo = "force"; +const _g = "grok"; +const _h = "histogram"; +const _hE = "httpError"; +const _i = "id"; +const _iD = "integrationDetails"; +const _iDs = "isDynamic"; +const _iLA = "includeLinkedAccounts"; +const _iN = "integrationName"; +const _iNP = "integrationNamePrefix"; +const _iP = "indexPolicies"; +const _iPLS = "isPatternLevelSuppression"; +const _iPn = "inheritedProperties"; +const _iPnd = "indexPolicy"; +const _iS = "integrationStatus"; +const _iSn = "integrationSummaries"; +const _iT = "ingestionTime"; +const _iTN = "inferredTokenName"; +const _iTn = "integrationType"; +const _in = "interleaved"; +const _k = "key"; +const _kA = "keyAttributes"; +const _kKA = "kmsKeyArn"; +const _kKI = "kmsKeyId"; +const _kP = "keyPrefix"; +const _kVD = "keyValueDelimiter"; +const _l = "locale"; +const _lCS = "lowerCaseString"; +const _lE = "logEvents"; +const _lEFP = "logEventFilterPattern"; +const _lEM = "logEventMessages"; +const _lET = "lastEventTime"; +const _lETa = "lastEventTimestamp"; +const _lG = "logGroups"; +const _lGA = "logGroupArn"; +const _lGAL = "logGroupArnList"; +const _lGC = "logGroupClass"; +const _lGF = "logGroupFields"; +const _lGI = "logGroupIdentifier"; +const _lGIo = "logGroupIdentifiers"; +const _lGN = "logGroupName"; +const _lGNP = "logGroupNamePrefix"; +const _lGNPo = "logGroupNamePattern"; +const _lGNo = "logGroupNames"; +const _lGS = "logGroupsScanned"; +const _lIT = "lastIngestionTime"; +const _lM = "lastModified"; +const _lMT = "lastModifiedTime"; +const _lMTS = "lastModifiedTimeStamp"; +const _lOP = "logObjectPointer"; +const _lP = "lifecyclePolicy"; +const _lR = "logRecord"; +const _lRP = "logRecordPointer"; +const _lS = "lastSeen"; +const _lSN = "logStreamName"; +const _lSNP = "logStreamNamePrefix"; +const _lSNPo = "logStreamNamePrefixes"; +const _lSNo = "logStreamNames"; +const _lST = "lastScanTime"; +const _lSo = "logSamples"; +const _lSog = "logStreams"; +const _lT = "logType"; +const _lTM = "listToMap"; +const _lTo = "logTypes"; +const _lUT = "lastUpdatedTime"; +const _lUTa = "lastUpdateTime"; +const _li = "limit"; +const _lo = "location"; +const _m = "message"; +const _mF = "metricFilters"; +const _mFC = "metricFilterCount"; +const _mK = "moveKeys"; +const _mN = "metricName"; +const _mNe = "metricNamespace"; +const _mP = "matchPatterns"; +const _mR = "maxResults"; +const _mT = "metricTransformations"; +const _mV = "metricValue"; +const _ma = "match"; +const _man = "mandatory"; +const _mat = "matches"; +const _n = "name"; +const _nBT = "nextBackwardToken"; +const _nFT = "nextForwardToken"; +const _nMV = "nonMatchValue"; +const _nP = "networkPolicy"; +const _nST = "nextSequenceToken"; +const _nT = "nextToken"; +const _oB = "orderBy"; +const _oF = "outputFormat"; +const _oIE = "overwriteIfExists"; +const _oSID = "openSearchIntegrationDetails"; +const _oSRC = "openSearchResourceConfig"; +const _oV = "ocsfVersion"; +const _p = "priority"; +const _pC = "parseCloudfront"; +const _pD = "policyDocument"; +const _pI = "patternId"; +const _pJSON = "parseJSON"; +const _pKV = "parseKeyValue"; +const _pN = "policyName"; +const _pP = "parsePostgres"; +const _pR = "patternRegex"; +const _pRa = "parseRoute53"; +const _pS = "patternString"; +const _pSo = "policyScope"; +const _pT = "policyType"; +const _pTOCSF = "parseToOCSF"; +const _pTa = "patternTokens"; +const _pVPC = "parseVPC"; +const _pWAF = "parseWAF"; +const _pe = "percent"; +const _po = "policy"; +const _q = "queries"; +const _qC = "quoteCharacter"; +const _qCE = "queryCompileError"; +const _qD = "queryDefinitions"; +const _qDI = "queryDefinitionId"; +const _qDNP = "queryDefinitionNamePrefix"; +const _qI = "queryId"; +const _qL = "queryLanguage"; +const _qS = "queryString"; +const _r = "results"; +const _rA = "resourceArn"; +const _rAe = "resourceArns"; +const _rAo = "roleArn"; +const _rC = "resourceConfig"; +const _rD = "retentionDays"; +const _rEI = "rejectedEntityInfo"; +const _rF = "recordFields"; +const _rI = "resourceIdentifier"; +const _rID = "retentionInDays"; +const _rIe = "requestId"; +const _rIev = "revisionId"; +const _rK = "renameKeys"; +const _rLEI = "rejectedLogEventsInfo"; +const _rM = "recordsMatched"; +const _rN = "resourceName"; +const _rP = "resourcePolicies"; +const _rPe = "resourcePolicy"; +const _rS = "recordsScanned"; +const _rSe = "responseStream"; +const _rT = "resourceType"; +const _rTe = "resourceTypes"; +const _rTen = "renameTo"; +const _s = "scope"; +const _sB = "storedBytes"; +const _sC = "selectionCriteria"; +const _sCO = "startCharOffset"; +const _sCe = "searchedCompletely"; +const _sCt = "statusCode"; +const _sD = "suppressedDate"; +const _sDC = "s3DeliveryConfiguration"; +const _sF = "subscriptionFilters"; +const _sFH = "startFromHead"; +const _sI = "sessionId"; +const _sLS = "searchedLogStreams"; +const _sM = "sessionMetadata"; +const _sMt = "statusMessage"; +const _sP = "suffixPath"; +const _sPu = "suppressionPeriod"; +const _sR = "sessionResults"; +const _sS = "suppressionState"; +const _sSe = "sessionStart"; +const _sSp = "splitString"; +const _sSu = "substituteString"; +const _sT = "sourceTimezone"; +const _sTe = "sequenceToken"; +const _sTt = "startTime"; +const _sTu = "suppressionType"; +const _sU = "suppressedUntil"; +const _sUe = "sessionUpdate"; +const _sUu = "suppressionUnit"; +const _sa = "sampled"; +const _se = "service"; +const _ser = "server"; +const _so = "source"; +const _st = "state"; +const _sta = "status"; +const _stat = "statistics"; +const _str = "streaming"; +const _su = "suppressed"; +const _suc = "success"; +const _t = "target"; +const _tA = "targetArn"; +const _tC = "transformerConfig"; +const _tCy = "typeConverter"; +const _tEM = "transformedEventMessage"; +const _tF = "targetFormat"; +const _tI = "taskId"; +const _tK = "tagKeys"; +const _tL = "transformedLogs"; +const _tN = "taskName"; +const _tNLESI = "tooNewLogEventStartIndex"; +const _tOLEEI = "tooOldLogEventEndIndex"; +const _tS = "tokenString"; +const _tSr = "trimString"; +const _tT = "targetTimezone"; +const _ta = "tags"; +const _ti = "timestamp"; +const _tim = "time"; +const _to = "to"; +const _ty = "type"; +const _u = "unmask"; +const _uCS = "upperCaseString"; +const _uST = "uploadSequenceToken"; +const _un = "unit"; +const _v = "value"; +const _vK = "valueKey"; +const _w = "workspace"; +const _wI = "workspaceId"; +const _wK = "withKeys"; +const n0 = "com.amazonaws.cloudwatchlogs"; + +// smithy-typescript generated code +import { error, list, op, struct, struct as uni } from "@smithy/core/schema"; + +import { CloudWatchLogsServiceException as __CloudWatchLogsServiceException } from "../models/CloudWatchLogsServiceException"; +import { + AccessDeniedException as __AccessDeniedException, + ConflictException as __ConflictException, + DataAlreadyAcceptedException as __DataAlreadyAcceptedException, + InternalStreamingException as __InternalStreamingException, + InvalidOperationException as __InvalidOperationException, + InvalidParameterException as __InvalidParameterException, + InvalidSequenceTokenException as __InvalidSequenceTokenException, + LimitExceededException as __LimitExceededException, + MalformedQueryException as __MalformedQueryException, + OperationAbortedException as __OperationAbortedException, + ResourceAlreadyExistsException as __ResourceAlreadyExistsException, + ResourceNotFoundException as __ResourceNotFoundException, + ServiceQuotaExceededException as __ServiceQuotaExceededException, + ServiceUnavailableException as __ServiceUnavailableException, + SessionStreamingException as __SessionStreamingException, + SessionTimeoutException as __SessionTimeoutException, + ThrottlingException as __ThrottlingException, + TooManyTagsException as __TooManyTagsException, + UnrecognizedClientException as __UnrecognizedClientException, + ValidationException as __ValidationException, +} from "../models/index"; + +/* eslint no-var: 0 */ + +export var AccessDeniedException = error( + n0, + _ADE, + { + [_e]: _c, + }, + [_m], + [0], + + __AccessDeniedException +); +export var AccountPolicy = struct(n0, _AP, 0, [_pN, _pD, _lUT, _pT, _s, _sC, _aI], [0, 0, 1, 0, 0, 0, 0]); +export var AddKeyEntry = struct(n0, _AKE, 0, [_k, _v, _oIE], [0, 0, 2]); +export var AddKeys = struct(n0, _AK, 0, [_en], [() => AddKeyEntries]); +export var Anomaly = struct( + n0, + _A, + 0, + [_aIn, _pI, _aDA, _pS, _pR, _p, _fS, _lS, _d, _a, _st, _h, _lSo, _pTa, _lGAL, _su, _sD, _sU, _iPLS], + [0, 0, 0, 0, 0, 0, 1, 1, 0, 2, 0, 128 | 1, () => LogSamples, () => PatternTokens, 64 | 0, 2, 1, 1, 2] +); +export var AnomalyDetector = struct( + n0, + _AD, + 0, + [_aDA, _dN, _lGAL, _eF, _fP, _aDS, _kKI, _cTS, _lMTS, _aVT], + [0, 0, 64 | 0, 0, 0, 0, 0, 1, 1, 1] +); +export var AssociateKmsKeyRequest = struct(n0, _AKKR, 0, [_lGN, _kKI, _rI], [0, 0, 0]); +export var CancelExportTaskRequest = struct(n0, _CETR, 0, [_tI], [0]); +export var ConfigurationTemplate = struct( + n0, + _CT, + 0, + [_se, _lT, _rT, _dDT, _dDCV, _aF, _aOF, _aAFAVLDFR, _aFD, _aSPF], + [0, 0, 0, 0, () => ConfigurationTemplateDeliveryConfigValues, () => AllowedFields, 64 | 0, 0, 64 | 0, 64 | 0] +); +export var ConfigurationTemplateDeliveryConfigValues = struct( + n0, + _CTDCV, + 0, + [_rF, _fD, _sDC], + [64 | 0, 0, () => S3DeliveryConfiguration] +); +export var ConflictException = error( + n0, + _CE, + { + [_e]: _c, + }, + [_m], + [0], + + __ConflictException +); +export var CopyValue = struct(n0, _CV, 0, [_en], [() => CopyValueEntries]); +export var CopyValueEntry = struct(n0, _CVE, 0, [_so, _t, _oIE], [0, 0, 2]); +export var CreateDeliveryRequest = struct( + n0, + _CDR, + 0, + [_dSN, _dDA, _rF, _fD, _sDC, _ta], + [0, 0, 64 | 0, 0, () => S3DeliveryConfiguration, 128 | 0] +); +export var CreateDeliveryResponse = struct(n0, _CDRr, 0, [_de], [() => Delivery]); +export var CreateExportTaskRequest = struct( + n0, + _CETRr, + 0, + [_tN, _lGN, _lSNP, _f, _to, _des, _dP], + [0, 0, 0, 1, 1, 0, 0] +); +export var CreateExportTaskResponse = struct(n0, _CETRre, 0, [_tI], [0]); +export var CreateLogAnomalyDetectorRequest = struct( + n0, + _CLADR, + 0, + [_lGAL, _dN, _eF, _fP, _kKI, _aVT, _ta], + [64 | 0, 0, 0, 0, 0, 1, 128 | 0] +); +export var CreateLogAnomalyDetectorResponse = struct(n0, _CLADRr, 0, [_aDA], [0]); +export var CreateLogGroupRequest = struct(n0, _CLGR, 0, [_lGN, _kKI, _ta, _lGC], [0, 0, 128 | 0, 0]); +export var CreateLogStreamRequest = struct(n0, _CLSR, 0, [_lGN, _lSN], [0, 0]); +export var CSV = struct(n0, _CSV, 0, [_qC, _del, _co, _so], [0, 0, 64 | 0, 0]); +export var DataAlreadyAcceptedException = error( + n0, + _DAAE, + { + [_e]: _c, + }, + [_eST, _m], + [0, 0], + + __DataAlreadyAcceptedException +); +export var DateTimeConverter = struct(n0, _DTC, 0, [_so, _t, _tF, _mP, _sT, _tT, _l], [0, 0, 0, 64 | 0, 0, 0, 0]); +export var DeleteAccountPolicyRequest = struct(n0, _DAPR, 0, [_pN, _pT], [0, 0]); +export var DeleteDataProtectionPolicyRequest = struct(n0, _DDPPR, 0, [_lGI], [0]); +export var DeleteDeliveryDestinationPolicyRequest = struct(n0, _DDDPR, 0, [_dDN], [0]); +export var DeleteDeliveryDestinationRequest = struct(n0, _DDDR, 0, [_n], [0]); +export var DeleteDeliveryRequest = struct(n0, _DDR, 0, [_i], [0]); +export var DeleteDeliverySourceRequest = struct(n0, _DDSR, 0, [_n], [0]); +export var DeleteDestinationRequest = struct(n0, _DDRe, 0, [_dNe], [0]); +export var DeleteIndexPolicyRequest = struct(n0, _DIPR, 0, [_lGI], [0]); +export var DeleteIndexPolicyResponse = struct(n0, _DIPRe, 0, [], []); +export var DeleteIntegrationRequest = struct(n0, _DIR, 0, [_iN, _fo], [0, 2]); +export var DeleteIntegrationResponse = struct(n0, _DIRe, 0, [], []); +export var DeleteKeys = struct(n0, _DK, 0, [_wK], [64 | 0]); +export var DeleteLogAnomalyDetectorRequest = struct(n0, _DLADR, 0, [_aDA], [0]); +export var DeleteLogGroupRequest = struct(n0, _DLGR, 0, [_lGN], [0]); +export var DeleteLogStreamRequest = struct(n0, _DLSR, 0, [_lGN, _lSN], [0, 0]); +export var DeleteMetricFilterRequest = struct(n0, _DMFR, 0, [_lGN, _fN], [0, 0]); +export var DeleteQueryDefinitionRequest = struct(n0, _DQDR, 0, [_qDI], [0]); +export var DeleteQueryDefinitionResponse = struct(n0, _DQDRe, 0, [_suc], [2]); +export var DeleteResourcePolicyRequest = struct(n0, _DRPR, 0, [_pN, _rA, _eRI], [0, 0, 0]); +export var DeleteRetentionPolicyRequest = struct(n0, _DRPRe, 0, [_lGN], [0]); +export var DeleteSubscriptionFilterRequest = struct(n0, _DSFR, 0, [_lGN, _fN], [0, 0]); +export var DeleteTransformerRequest = struct(n0, _DTR, 0, [_lGI], [0]); +export var Delivery = struct( + n0, + _D, + 0, + [_i, _ar, _dSN, _dDA, _dDT, _rF, _fD, _sDC, _ta], + [0, 0, 0, 0, 0, 64 | 0, 0, () => S3DeliveryConfiguration, 128 | 0] +); +export var DeliveryDestination = struct( + n0, + _DD, + 0, + [_n, _ar, _dDT, _oF, _dDC, _ta], + [0, 0, 0, 0, () => DeliveryDestinationConfiguration, 128 | 0] +); +export var DeliveryDestinationConfiguration = struct(n0, _DDC, 0, [_dRA], [0]); +export var DeliverySource = struct(n0, _DS, 0, [_n, _ar, _rAe, _se, _lT, _ta], [0, 0, 64 | 0, 0, 0, 128 | 0]); +export var DescribeAccountPoliciesRequest = struct(n0, _DAPRe, 0, [_pT, _pN, _aIc, _nT], [0, 0, 64 | 0, 0]); +export var DescribeAccountPoliciesResponse = struct(n0, _DAPRes, 0, [_aP, _nT], [() => AccountPolicies, 0]); +export var DescribeConfigurationTemplatesRequest = struct( + n0, + _DCTR, + 0, + [_se, _lTo, _rTe, _dDTe, _nT, _li], + [0, 64 | 0, 64 | 0, 64 | 0, 0, 1] +); +export var DescribeConfigurationTemplatesResponse = struct( + n0, + _DCTRe, + 0, + [_cT, _nT], + [() => ConfigurationTemplates, 0] +); +export var DescribeDeliveriesRequest = struct(n0, _DDRes, 0, [_nT, _li], [0, 1]); +export var DescribeDeliveriesResponse = struct(n0, _DDResc, 0, [_deli, _nT], [() => Deliveries, 0]); +export var DescribeDeliveryDestinationsRequest = struct(n0, _DDDRe, 0, [_nT, _li], [0, 1]); +export var DescribeDeliveryDestinationsResponse = struct(n0, _DDDRes, 0, [_dD, _nT], [() => DeliveryDestinations, 0]); +export var DescribeDeliverySourcesRequest = struct(n0, _DDSRe, 0, [_nT, _li], [0, 1]); +export var DescribeDeliverySourcesResponse = struct(n0, _DDSRes, 0, [_dS, _nT], [() => DeliverySources, 0]); +export var DescribeDestinationsRequest = struct(n0, _DDRescr, 0, [_DNP, _nT, _li], [0, 0, 1]); +export var DescribeDestinationsResponse = struct(n0, _DDRescri, 0, [_dest, _nT], [() => Destinations, 0]); +export var DescribeExportTasksRequest = struct(n0, _DETR, 0, [_tI, _sCt, _nT, _li], [0, 0, 0, 1]); +export var DescribeExportTasksResponse = struct(n0, _DETRe, 0, [_eT, _nT], [() => ExportTasks, 0]); +export var DescribeFieldIndexesRequest = struct(n0, _DFIR, 0, [_lGIo, _nT], [64 | 0, 0]); +export var DescribeFieldIndexesResponse = struct(n0, _DFIRe, 0, [_fI, _nT], [() => FieldIndexes, 0]); +export var DescribeIndexPoliciesRequest = struct(n0, _DIPRes, 0, [_lGIo, _nT], [64 | 0, 0]); +export var DescribeIndexPoliciesResponse = struct(n0, _DIPResc, 0, [_iP, _nT], [() => IndexPolicies, 0]); +export var DescribeLogGroupsRequest = struct( + n0, + _DLGRe, + 0, + [_aIc, _lGNP, _lGNPo, _nT, _li, _iLA, _lGC, _lGIo], + [64 | 0, 0, 0, 0, 1, 2, 0, 64 | 0] +); +export var DescribeLogGroupsResponse = struct(n0, _DLGRes, 0, [_lG, _nT], [() => LogGroups, 0]); +export var DescribeLogStreamsRequest = struct( + n0, + _DLSRe, + 0, + [_lGN, _lGI, _lSNP, _oB, _desc, _nT, _li], + [0, 0, 0, 0, 2, 0, 1] +); +export var DescribeLogStreamsResponse = struct(n0, _DLSRes, 0, [_lSog, _nT], [() => LogStreams, 0]); +export var DescribeMetricFiltersRequest = struct(n0, _DMFRe, 0, [_lGN, _fNP, _nT, _li, _mN, _mNe], [0, 0, 0, 1, 0, 0]); +export var DescribeMetricFiltersResponse = struct(n0, _DMFRes, 0, [_mF, _nT], [() => MetricFilters, 0]); +export var DescribeQueriesRequest = struct(n0, _DQR, 0, [_lGN, _sta, _mR, _nT, _qL], [0, 0, 1, 0, 0]); +export var DescribeQueriesResponse = struct(n0, _DQRe, 0, [_q, _nT], [() => QueryInfoList, 0]); +export var DescribeQueryDefinitionsRequest = struct(n0, _DQDRes, 0, [_qL, _qDNP, _mR, _nT], [0, 0, 1, 0]); +export var DescribeQueryDefinitionsResponse = struct(n0, _DQDResc, 0, [_qD, _nT], [() => QueryDefinitionList, 0]); +export var DescribeResourcePoliciesRequest = struct(n0, _DRPRes, 0, [_nT, _li, _rA, _pSo], [0, 1, 0, 0]); +export var DescribeResourcePoliciesResponse = struct(n0, _DRPResc, 0, [_rP, _nT], [() => ResourcePolicies, 0]); +export var DescribeSubscriptionFiltersRequest = struct(n0, _DSFRe, 0, [_lGN, _fNP, _nT, _li], [0, 0, 0, 1]); +export var DescribeSubscriptionFiltersResponse = struct(n0, _DSFRes, 0, [_sF, _nT], [() => SubscriptionFilters, 0]); +export var Destination = struct(n0, _De, 0, [_dNe, _tA, _rAo, _aPc, _ar, _cTr], [0, 0, 0, 0, 0, 1]); +export var DisassociateKmsKeyRequest = struct(n0, _DKKR, 0, [_lGN, _rI], [0, 0]); +export var Entity = struct(n0, _E, 0, [_kA, _at], [128 | 0, 128 | 0]); +export var ExportTask = struct( + n0, + _ET, + 0, + [_tI, _tN, _lGN, _f, _to, _des, _dP, _sta, _eI], + [0, 0, 0, 1, 1, 0, 0, () => ExportTaskStatus, () => ExportTaskExecutionInfo] +); +export var ExportTaskExecutionInfo = struct(n0, _ETEI, 0, [_cTr, _cTo], [1, 1]); +export var ExportTaskStatus = struct(n0, _ETS, 0, [_cod, _m], [0, 0]); +export var FieldIndex = struct(n0, _FI, 0, [_lGI, _fIN, _lST, _fET, _lET], [0, 0, 1, 1, 1]); +export var FieldsData = struct(n0, _FD, 0, [_da], [21]); +export var FilteredLogEvent = struct(n0, _FLE, 0, [_lSN, _ti, _m, _iT, _eIv], [0, 1, 0, 1, 0]); +export var FilterLogEventsRequest = struct( + n0, + _FLER, + 0, + [_lGN, _lGI, _lSNo, _lSNP, _sTt, _eTn, _fP, _nT, _li, _in, _u], + [0, 0, 64 | 0, 0, 1, 1, 0, 0, 1, 2, 2] +); +export var FilterLogEventsResponse = struct( + n0, + _FLERi, + 0, + [_ev, _sLS, _nT], + [() => FilteredLogEvents, () => SearchedLogStreams, 0] +); +export var GetDataProtectionPolicyRequest = struct(n0, _GDPPR, 0, [_lGI], [0]); +export var GetDataProtectionPolicyResponse = struct(n0, _GDPPRe, 0, [_lGI, _pD, _lUT], [0, 0, 1]); +export var GetDeliveryDestinationPolicyRequest = struct(n0, _GDDPR, 0, [_dDN], [0]); +export var GetDeliveryDestinationPolicyResponse = struct(n0, _GDDPRe, 0, [_po], [() => Policy]); +export var GetDeliveryDestinationRequest = struct(n0, _GDDR, 0, [_n], [0]); +export var GetDeliveryDestinationResponse = struct(n0, _GDDRe, 0, [_dDe], [() => DeliveryDestination]); +export var GetDeliveryRequest = struct(n0, _GDR, 0, [_i], [0]); +export var GetDeliveryResponse = struct(n0, _GDRe, 0, [_de], [() => Delivery]); +export var GetDeliverySourceRequest = struct(n0, _GDSR, 0, [_n], [0]); +export var GetDeliverySourceResponse = struct(n0, _GDSRe, 0, [_dSe], [() => DeliverySource]); +export var GetIntegrationRequest = struct(n0, _GIR, 0, [_iN], [0]); +export var GetIntegrationResponse = struct(n0, _GIRe, 0, [_iN, _iTn, _iS, _iD], [0, 0, 0, () => IntegrationDetails]); +export var GetLogAnomalyDetectorRequest = struct(n0, _GLADR, 0, [_aDA], [0]); +export var GetLogAnomalyDetectorResponse = struct( + n0, + _GLADRe, + 0, + [_dN, _lGAL, _eF, _fP, _aDS, _kKI, _cTS, _lMTS, _aVT], + [0, 64 | 0, 0, 0, 0, 0, 1, 1, 1] +); +export var GetLogEventsRequest = struct( + n0, + _GLER, + 0, + [_lGN, _lGI, _lSN, _sTt, _eTn, _nT, _li, _sFH, _u], + [0, 0, 0, 1, 1, 0, 1, 2, 2] +); +export var GetLogEventsResponse = struct(n0, _GLERe, 0, [_ev, _nFT, _nBT], [() => OutputLogEvents, 0, 0]); +export var GetLogGroupFieldsRequest = struct(n0, _GLGFR, 0, [_lGN, _tim, _lGI], [0, 1, 0]); +export var GetLogGroupFieldsResponse = struct(n0, _GLGFRe, 0, [_lGF], [() => LogGroupFieldList]); +export var GetLogObjectRequest = struct(n0, _GLOR, 0, [_u, _lOP], [2, 0]); +export var GetLogObjectResponse = struct(n0, _GLORe, 0, [_fSi], [[() => GetLogObjectResponseStream, 0]]); +export var GetLogRecordRequest = struct(n0, _GLRR, 0, [_lRP, _u], [0, 2]); +export var GetLogRecordResponse = struct(n0, _GLRRe, 0, [_lR], [128 | 0]); +export var GetQueryResultsRequest = struct(n0, _GQRR, 0, [_qI], [0]); +export var GetQueryResultsResponse = struct( + n0, + _GQRRe, + 0, + [_qL, _r, _stat, _sta, _eK], + [0, () => QueryResults, () => QueryStatistics, 0, 0] +); +export var GetTransformerRequest = struct(n0, _GTR, 0, [_lGI], [0]); +export var GetTransformerResponse = struct(n0, _GTRe, 0, [_lGI, _cTr, _lMT, _tC], [0, 1, 1, () => Processors]); +export var Grok = struct(n0, _G, 0, [_so, _ma], [0, 0]); +export var IndexPolicy = struct(n0, _IP, 0, [_lGI, _lUTa, _pD, _pN, _so], [0, 1, 0, 0, 0]); +export var InputLogEvent = struct(n0, _ILE, 0, [_ti, _m], [1, 0]); +export var IntegrationSummary = struct(n0, _IS, 0, [_iN, _iTn, _iS], [0, 0, 0]); +export var InternalStreamingException = error( + n0, + _ISE, + { + [_e]: _c, + }, + [_m], + [0], + + __InternalStreamingException +); +export var InvalidOperationException = error( + n0, + _IOE, + { + [_e]: _c, + }, + [_m], + [0], + + __InvalidOperationException +); +export var InvalidParameterException = error( + n0, + _IPE, + { + [_e]: _c, + }, + [_m], + [0], + + __InvalidParameterException +); +export var InvalidSequenceTokenException = error( + n0, + _ISTE, + { + [_e]: _c, + }, + [_eST, _m], + [0, 0], + + __InvalidSequenceTokenException +); +export var LimitExceededException = error( + n0, + _LEE, + { + [_e]: _c, + }, + [_m], + [0], + + __LimitExceededException +); +export var ListAnomaliesRequest = struct(n0, _LAR, 0, [_aDA, _sS, _li, _nT], [0, 0, 1, 0]); +export var ListAnomaliesResponse = struct(n0, _LARi, 0, [_an, _nT], [() => Anomalies, 0]); +export var ListIntegrationsRequest = struct(n0, _LIR, 0, [_iNP, _iTn, _iS], [0, 0, 0]); +export var ListIntegrationsResponse = struct(n0, _LIRi, 0, [_iSn], [() => IntegrationSummaries]); +export var ListLogAnomalyDetectorsRequest = struct(n0, _LLADR, 0, [_fLGA, _li, _nT], [0, 1, 0]); +export var ListLogAnomalyDetectorsResponse = struct(n0, _LLADRi, 0, [_aD, _nT], [() => AnomalyDetectors, 0]); +export var ListLogGroupsForQueryRequest = struct(n0, _LLGFQR, 0, [_qI, _nT, _mR], [0, 0, 1]); +export var ListLogGroupsForQueryResponse = struct(n0, _LLGFQRi, 0, [_lGIo, _nT], [64 | 0, 0]); +export var ListLogGroupsRequest = struct(n0, _LLGR, 0, [_lGNPo, _lGC, _iLA, _aIc, _nT, _li], [0, 0, 2, 64 | 0, 0, 1]); +export var ListLogGroupsResponse = struct(n0, _LLGRi, 0, [_lG, _nT], [() => LogGroupSummaries, 0]); +export var ListTagsForResourceRequest = struct(n0, _LTFRR, 0, [_rA], [0]); +export var ListTagsForResourceResponse = struct(n0, _LTFRRi, 0, [_ta], [128 | 0]); +export var ListTagsLogGroupRequest = struct(n0, _LTLGR, 0, [_lGN], [0]); +export var ListTagsLogGroupResponse = struct(n0, _LTLGRi, 0, [_ta], [128 | 0]); +export var ListToMap = struct(n0, _LTM, 0, [_so, _k, _vK, _t, _fl, _fE], [0, 0, 0, 0, 2, 0]); +export var LiveTailSessionLogEvent = struct(n0, _LTSLE, 0, [_lSN, _lGI, _m, _ti, _iT], [0, 0, 0, 1, 1]); +export var LiveTailSessionMetadata = struct(n0, _LTSM, 0, [_sa], [2]); +export var LiveTailSessionStart = struct( + n0, + _LTSS, + 0, + [_rIe, _sI, _lGIo, _lSNo, _lSNPo, _lEFP], + [0, 0, 64 | 0, 64 | 0, 64 | 0, 0] +); +export var LiveTailSessionUpdate = struct( + n0, + _LTSU, + 0, + [_sM, _sR], + [() => LiveTailSessionMetadata, () => LiveTailSessionResults] +); +export var LogEvent = struct(n0, _LE, 0, [_ti, _m], [1, 0]); +export var LogGroup = struct( + n0, + _LG, + 0, + [_lGN, _cTr, _rID, _mFC, _ar, _sB, _kKI, _dPS, _iPn, _lGC, _lGA], + [0, 1, 1, 1, 0, 1, 0, 0, 64 | 0, 0, 0] +); +export var LogGroupField = struct(n0, _LGF, 0, [_n, _pe], [0, 1]); +export var LogGroupSummary = struct(n0, _LGS, 0, [_lGN, _lGA, _lGC], [0, 0, 0]); +export var LogStream = struct(n0, _LS, 0, [_lSN, _cTr, _fETi, _lETa, _lIT, _uST, _ar, _sB], [0, 1, 1, 1, 1, 0, 0, 1]); +export var LowerCaseString = struct(n0, _LCS, 0, [_wK], [64 | 0]); +export var MalformedQueryException = error( + n0, + _MQE, + { + [_e]: _c, + }, + [_qCE, _m], + [() => QueryCompileError, 0], + + __MalformedQueryException +); +export var MetricFilter = struct( + n0, + _MF, + 0, + [_fN, _fP, _mT, _cTr, _lGN, _aOTL], + [0, 0, () => MetricTransformations, 1, 0, 2] +); +export var MetricFilterMatchRecord = struct(n0, _MFMR, 0, [_eN, _eM, _eV], [1, 0, 128 | 0]); +export var MetricTransformation = struct(n0, _MT, 0, [_mN, _mNe, _mV, _dV, _di, _un], [0, 0, 0, 1, 128 | 0, 0]); +export var MoveKeyEntry = struct(n0, _MKE, 0, [_so, _t, _oIE], [0, 0, 2]); +export var MoveKeys = struct(n0, _MK, 0, [_en], [() => MoveKeyEntries]); +export var OpenSearchApplication = struct( + n0, + _OSA, + 0, + [_aE, _aA, _aIp, _sta], + [0, 0, 0, () => OpenSearchResourceStatus] +); +export var OpenSearchCollection = struct(n0, _OSC, 0, [_cE, _cA, _sta], [0, 0, () => OpenSearchResourceStatus]); +export var OpenSearchDataAccessPolicy = struct(n0, _OSDAP, 0, [_pN, _sta], [0, () => OpenSearchResourceStatus]); +export var OpenSearchDataSource = struct(n0, _OSDS, 0, [_dSNa, _sta], [0, () => OpenSearchResourceStatus]); +export var OpenSearchEncryptionPolicy = struct(n0, _OSEP, 0, [_pN, _sta], [0, () => OpenSearchResourceStatus]); +export var OpenSearchIntegrationDetails = struct( + n0, + _OSID, + 0, + [_dSa, _ap, _col, _w, _eP, _nP, _aPc, _lP], + [ + () => OpenSearchDataSource, + () => OpenSearchApplication, + () => OpenSearchCollection, + () => OpenSearchWorkspace, + () => OpenSearchEncryptionPolicy, + () => OpenSearchNetworkPolicy, + () => OpenSearchDataAccessPolicy, + () => OpenSearchLifecyclePolicy, + ] +); +export var OpenSearchLifecyclePolicy = struct(n0, _OSLP, 0, [_pN, _sta], [0, () => OpenSearchResourceStatus]); +export var OpenSearchNetworkPolicy = struct(n0, _OSNP, 0, [_pN, _sta], [0, () => OpenSearchResourceStatus]); +export var OpenSearchResourceConfig = struct(n0, _OSRC, 0, [_kKA, _dSRA, _dVP, _aA, _rD], [0, 0, 64 | 0, 0, 1]); +export var OpenSearchResourceStatus = struct(n0, _OSRS, 0, [_sta, _sMt], [0, 0]); +export var OpenSearchWorkspace = struct(n0, _OSW, 0, [_wI, _sta], [0, () => OpenSearchResourceStatus]); +export var OperationAbortedException = error( + n0, + _OAE, + { + [_e]: _c, + }, + [_m], + [0], + + __OperationAbortedException +); +export var OutputLogEvent = struct(n0, _OLE, 0, [_ti, _m, _iT], [1, 0, 1]); +export var ParseCloudfront = struct(n0, _PC, 0, [_so], [0]); +export var ParseJSON = struct(n0, _PJSON, 0, [_so, _des], [0, 0]); +export var ParseKeyValue = struct(n0, _PKV, 0, [_so, _des, _fD, _kVD, _kP, _nMV, _oIE], [0, 0, 0, 0, 0, 0, 2]); +export var ParsePostgres = struct(n0, _PP, 0, [_so], [0]); +export var ParseRoute53 = struct(n0, _PR, 0, [_so], [0]); +export var ParseToOCSF = struct(n0, _PTOCSF, 0, [_so, _eS, _oV], [0, 0, 0]); +export var ParseVPC = struct(n0, _PVPC, 0, [_so], [0]); +export var ParseWAF = struct(n0, _PWAF, 0, [_so], [0]); +export var PatternToken = struct(n0, _PT, 0, [_dTP, _iDs, _tS, _enu, _iTN], [1, 2, 0, 128 | 1, 0]); +export var Policy = struct(n0, _P, 0, [_dDP], [0]); +export var Processor = struct( + n0, + _Pr, + 0, + [ + _aK, + _cV, + _cs, + _dTC, + _dK, + _g, + _lTM, + _lCS, + _mK, + _pC, + _pJSON, + _pKV, + _pRa, + _pTOCSF, + _pP, + _pVPC, + _pWAF, + _rK, + _sSp, + _sSu, + _tSr, + _tCy, + _uCS, + ], + [ + () => AddKeys, + () => CopyValue, + () => CSV, + () => DateTimeConverter, + () => DeleteKeys, + () => Grok, + () => ListToMap, + () => LowerCaseString, + () => MoveKeys, + () => ParseCloudfront, + () => ParseJSON, + () => ParseKeyValue, + () => ParseRoute53, + () => ParseToOCSF, + () => ParsePostgres, + () => ParseVPC, + () => ParseWAF, + () => RenameKeys, + () => SplitString, + () => SubstituteString, + () => TrimString, + () => TypeConverter, + () => UpperCaseString, + ] +); +export var PutAccountPolicyRequest = struct(n0, _PAPR, 0, [_pN, _pD, _pT, _s, _sC], [0, 0, 0, 0, 0]); +export var PutAccountPolicyResponse = struct(n0, _PAPRu, 0, [_aPcc], [() => AccountPolicy]); +export var PutDataProtectionPolicyRequest = struct(n0, _PDPPR, 0, [_lGI, _pD], [0, 0]); +export var PutDataProtectionPolicyResponse = struct(n0, _PDPPRu, 0, [_lGI, _pD, _lUT], [0, 0, 1]); +export var PutDeliveryDestinationPolicyRequest = struct(n0, _PDDPR, 0, [_dDN, _dDP], [0, 0]); +export var PutDeliveryDestinationPolicyResponse = struct(n0, _PDDPRu, 0, [_po], [() => Policy]); +export var PutDeliveryDestinationRequest = struct( + n0, + _PDDR, + 0, + [_n, _oF, _dDC, _dDT, _ta], + [0, 0, () => DeliveryDestinationConfiguration, 0, 128 | 0] +); +export var PutDeliveryDestinationResponse = struct(n0, _PDDRu, 0, [_dDe], [() => DeliveryDestination]); +export var PutDeliverySourceRequest = struct(n0, _PDSR, 0, [_n, _rA, _lT, _ta], [0, 0, 0, 128 | 0]); +export var PutDeliverySourceResponse = struct(n0, _PDSRu, 0, [_dSe], [() => DeliverySource]); +export var PutDestinationPolicyRequest = struct(n0, _PDPR, 0, [_dNe, _aPc, _fU], [0, 0, 2]); +export var PutDestinationRequest = struct(n0, _PDR, 0, [_dNe, _tA, _rAo, _ta], [0, 0, 0, 128 | 0]); +export var PutDestinationResponse = struct(n0, _PDRu, 0, [_des], [() => Destination]); +export var PutIndexPolicyRequest = struct(n0, _PIPR, 0, [_lGI, _pD], [0, 0]); +export var PutIndexPolicyResponse = struct(n0, _PIPRu, 0, [_iPnd], [() => IndexPolicy]); +export var PutIntegrationRequest = struct(n0, _PIR, 0, [_iN, _rC, _iTn], [0, () => ResourceConfig, 0]); +export var PutIntegrationResponse = struct(n0, _PIRu, 0, [_iN, _iS], [0, 0]); +export var PutLogEventsRequest = struct( + n0, + _PLER, + 0, + [_lGN, _lSN, _lE, _sTe, _ent], + [0, 0, () => InputLogEvents, 0, () => Entity] +); +export var PutLogEventsResponse = struct( + n0, + _PLERu, + 0, + [_nST, _rLEI, _rEI], + [0, () => RejectedLogEventsInfo, () => RejectedEntityInfo] +); +export var PutMetricFilterRequest = struct( + n0, + _PMFR, + 0, + [_lGN, _fN, _fP, _mT, _aOTL], + [0, 0, 0, () => MetricTransformations, 2] +); +export var PutQueryDefinitionRequest = struct( + n0, + _PQDR, + 0, + [_qL, _n, _qDI, _lGNo, _qS, _cTl], + [0, 0, 0, 64 | 0, 0, [0, 4]] +); +export var PutQueryDefinitionResponse = struct(n0, _PQDRu, 0, [_qDI], [0]); +export var PutResourcePolicyRequest = struct(n0, _PRPR, 0, [_pN, _pD, _rA, _eRI], [0, 0, 0, 0]); +export var PutResourcePolicyResponse = struct(n0, _PRPRu, 0, [_rPe, _rIev], [() => ResourcePolicy, 0]); +export var PutRetentionPolicyRequest = struct(n0, _PRPRut, 0, [_lGN, _rID], [0, 1]); +export var PutSubscriptionFilterRequest = struct( + n0, + _PSFR, + 0, + [_lGN, _fN, _fP, _dA, _rAo, _dis, _aOTL], + [0, 0, 0, 0, 0, 0, 2] +); +export var PutTransformerRequest = struct(n0, _PTR, 0, [_lGI, _tC], [0, () => Processors]); +export var QueryCompileError = struct(n0, _QCE, 0, [_lo, _m], [() => QueryCompileErrorLocation, 0]); +export var QueryCompileErrorLocation = struct(n0, _QCEL, 0, [_sCO, _eCO], [1, 1]); +export var QueryDefinition = struct(n0, _QD, 0, [_qL, _qDI, _n, _qS, _lM, _lGNo], [0, 0, 0, 0, 1, 64 | 0]); +export var QueryInfo = struct(n0, _QI, 0, [_qL, _qI, _qS, _sta, _cTre, _lGN], [0, 0, 0, 0, 1, 0]); +export var QueryStatistics = struct(n0, _QS, 0, [_rM, _rS, _eRS, _bS, _eBS, _lGS], [1, 1, 1, 1, 1, 1]); +export var RecordField = struct(n0, _RF, 0, [_n, _man], [0, 2]); +export var RejectedEntityInfo = struct(n0, _REI, 0, [_eTr], [0]); +export var RejectedLogEventsInfo = struct(n0, _RLEI, 0, [_tNLESI, _tOLEEI, _eLEEI], [1, 1, 1]); +export var RenameKeyEntry = struct(n0, _RKE, 0, [_k, _rTen, _oIE], [0, 0, 2]); +export var RenameKeys = struct(n0, _RK, 0, [_en], [() => RenameKeyEntries]); +export var ResourceAlreadyExistsException = error( + n0, + _RAEE, + { + [_e]: _c, + }, + [_m], + [0], + + __ResourceAlreadyExistsException +); +export var ResourceNotFoundException = error( + n0, + _RNFE, + { + [_e]: _c, + }, + [_m], + [0], + + __ResourceNotFoundException +); +export var ResourcePolicy = struct(n0, _RP, 0, [_pN, _pD, _lUT, _pSo, _rA, _rIev], [0, 0, 1, 0, 0, 0]); +export var ResultField = struct(n0, _RFe, 0, [_fi, _v], [0, 0]); +export var S3DeliveryConfiguration = struct(n0, _SDC, 0, [_sP, _eHCP], [0, 2]); +export var SearchedLogStream = struct(n0, _SLS, 0, [_lSN, _sCe], [0, 2]); +export var ServiceQuotaExceededException = error( + n0, + _SQEE, + { + [_e]: _c, + }, + [_m], + [0], + + __ServiceQuotaExceededException +); +export var ServiceUnavailableException = error( + n0, + _SUE, + { + [_e]: _ser, + }, + [_m], + [0], + + __ServiceUnavailableException +); +export var SessionStreamingException = error( + n0, + _SSE, + { + [_e]: _c, + }, + [_m], + [0], + + __SessionStreamingException +); +export var SessionTimeoutException = error( + n0, + _STE, + { + [_e]: _c, + }, + [_m], + [0], + + __SessionTimeoutException +); +export var SplitString = struct(n0, _SS, 0, [_en], [() => SplitStringEntries]); +export var SplitStringEntry = struct(n0, _SSEp, 0, [_so, _del], [0, 0]); +export var StartLiveTailRequest = struct(n0, _SLTR, 0, [_lGIo, _lSNo, _lSNPo, _lEFP], [64 | 0, 64 | 0, 64 | 0, 0]); +export var StartLiveTailResponse = struct(n0, _SLTRt, 0, [_rSe], [[() => StartLiveTailResponseStream, 0]]); +export var StartQueryRequest = struct( + n0, + _SQR, + 0, + [_qL, _lGN, _lGNo, _lGIo, _sTt, _eTn, _qS, _li], + [0, 0, 64 | 0, 64 | 0, 1, 1, 0, 1] +); +export var StartQueryResponse = struct(n0, _SQRt, 0, [_qI], [0]); +export var StopQueryRequest = struct(n0, _SQRto, 0, [_qI], [0]); +export var StopQueryResponse = struct(n0, _SQRtop, 0, [_suc], [2]); +export var SubscriptionFilter = struct( + n0, + _SF, + 0, + [_fN, _lGN, _fP, _dA, _rAo, _dis, _aOTL, _cTr], + [0, 0, 0, 0, 0, 0, 2, 1] +); +export var SubstituteString = struct(n0, _SSu, 0, [_en], [() => SubstituteStringEntries]); +export var SubstituteStringEntry = struct(n0, _SSEu, 0, [_so, _f, _to], [0, 0, 0]); +export var SuppressionPeriod = struct(n0, _SP, 0, [_v, _sUu], [1, 0]); +export var TagLogGroupRequest = struct(n0, _TLGR, 0, [_lGN, _ta], [0, 128 | 0]); +export var TagResourceRequest = struct(n0, _TRR, 0, [_rA, _ta], [0, 128 | 0]); +export var TestMetricFilterRequest = struct(n0, _TMFR, 0, [_fP, _lEM], [0, 64 | 0]); +export var TestMetricFilterResponse = struct(n0, _TMFRe, 0, [_mat], [() => MetricFilterMatches]); +export var TestTransformerRequest = struct(n0, _TTR, 0, [_tC, _lEM], [() => Processors, 64 | 0]); +export var TestTransformerResponse = struct(n0, _TTRe, 0, [_tL], [() => TransformedLogs]); +export var ThrottlingException = error( + n0, + _TE, + { + [_e]: _c, + }, + [_m], + [0], + + __ThrottlingException +); +export var TooManyTagsException = error( + n0, + _TMTE, + { + [_e]: _c, + [_hE]: 400, + }, + [_m, _rN], + [0, 0], + + __TooManyTagsException +); +export var TransformedLogRecord = struct(n0, _TLR, 0, [_eN, _eM, _tEM], [1, 0, 0]); +export var TrimString = struct(n0, _TS, 0, [_wK], [64 | 0]); +export var TypeConverter = struct(n0, _TC, 0, [_en], [() => TypeConverterEntries]); +export var TypeConverterEntry = struct(n0, _TCE, 0, [_k, _ty], [0, 0]); +export var UnrecognizedClientException = error( + n0, + _UCE, + { + [_e]: _c, + }, + [_m], + [0], + + __UnrecognizedClientException +); +export var UntagLogGroupRequest = struct(n0, _ULGR, 0, [_lGN, _ta], [0, 64 | 0]); +export var UntagResourceRequest = struct(n0, _URR, 0, [_rA, _tK], [0, 64 | 0]); +export var UpdateAnomalyRequest = struct( + n0, + _UAR, + 0, + [_aIn, _pI, _aDA, _sTu, _sPu, _b], + [0, 0, 0, 0, () => SuppressionPeriod, 2] +); +export var UpdateDeliveryConfigurationRequest = struct( + n0, + _UDCR, + 0, + [_i, _rF, _fD, _sDC], + [0, 64 | 0, 0, () => S3DeliveryConfiguration] +); +export var UpdateDeliveryConfigurationResponse = struct(n0, _UDCRp, 0, [], []); +export var UpdateLogAnomalyDetectorRequest = struct(n0, _ULADR, 0, [_aDA, _eF, _fP, _aVT, _ena], [0, 0, 0, 1, 2]); +export var UpperCaseString = struct(n0, _UCS, 0, [_wK], [64 | 0]); +export var ValidationException = error( + n0, + _VE, + { + [_e]: _c, + }, + [_m], + [0], + + __ValidationException +); +export var Unit = "unit" as const; + +export var CloudWatchLogsServiceException = error( + "smithy.ts.sdk.synthetic.com.amazonaws.cloudwatchlogs", + "CloudWatchLogsServiceException", + 0, + [], + [], + __CloudWatchLogsServiceException +); +export var AccountIds = 64 | 0; + +export var AccountPolicies = list(n0, _APc, 0, () => AccountPolicy); +export var AddKeyEntries = list(n0, _AKEd, 0, () => AddKeyEntry); +export var AllowedFieldDelimiters = 64 | 0; + +export var AllowedFields = list(n0, _AF, 0, () => RecordField); +export var Anomalies = list(n0, _An, 0, () => Anomaly); +export var AnomalyDetectors = list(n0, _ADn, 0, () => AnomalyDetector); +export var Columns = 64 | 0; + +export var ConfigurationTemplates = list(n0, _CTo, 0, () => ConfigurationTemplate); +export var CopyValueEntries = list(n0, _CVEo, 0, () => CopyValueEntry); +export var DashboardViewerPrincipals = 64 | 0; + +export var DeleteWithKeys = 64 | 0; + +export var Deliveries = list(n0, _Del, 0, () => Delivery); +export var DeliveryDestinations = list(n0, _DDe, 0, () => DeliveryDestination); +export var DeliveryDestinationTypes = 64 | 0; + +export var DeliverySources = list(n0, _DSe, 0, () => DeliverySource); +export var DescribeFieldIndexesLogGroupIdentifiers = 64 | 0; + +export var DescribeIndexPoliciesLogGroupIdentifiers = 64 | 0; + +export var DescribeLogGroupsLogGroupIdentifiers = 64 | 0; + +export var Destinations = list(n0, _Des, 0, () => Destination); +export var ExportTasks = list(n0, _ETx, 0, () => ExportTask); +export var FieldIndexes = list(n0, _FIi, 0, () => FieldIndex); +export var FilteredLogEvents = list(n0, _FLEi, 0, () => FilteredLogEvent); +export var IndexPolicies = list(n0, _IPn, 0, () => IndexPolicy); +export var InheritedProperties = 64 | 0; + +export var InputLogEvents = list(n0, _ILEn, 0, () => InputLogEvent); +export var InputLogStreamNames = 64 | 0; + +export var IntegrationSummaries = list(n0, _ISn, 0, () => IntegrationSummary); +export var LiveTailSessionResults = list(n0, _LTSR, 0, () => LiveTailSessionLogEvent); +export var LogGroupArnList = 64 | 0; + +export var LogGroupFieldList = list(n0, _LGFL, 0, () => LogGroupField); +export var LogGroupIdentifiers = 64 | 0; + +export var LogGroupNames = 64 | 0; + +export var LogGroups = list(n0, _LGo, 0, () => LogGroup); +export var LogGroupSummaries = list(n0, _LGSo, 0, () => LogGroupSummary); +export var LogSamples = list(n0, _LSo, 0, () => LogEvent); +export var LogStreams = list(n0, _LSog, 0, () => LogStream); +export var LogTypes = 64 | 0; + +export var LowerCaseStringWithKeys = 64 | 0; + +export var MatchPatterns = 64 | 0; + +export var MetricFilterMatches = list(n0, _MFM, 0, () => MetricFilterMatchRecord); +export var MetricFilters = list(n0, _MFe, 0, () => MetricFilter); +export var MetricTransformations = list(n0, _MTe, 0, () => MetricTransformation); +export var MoveKeyEntries = list(n0, _MKEo, 0, () => MoveKeyEntry); +export var OutputFormats = 64 | 0; + +export var OutputLogEvents = list(n0, _OLEu, 0, () => OutputLogEvent); +export var PatternTokens = list(n0, _PTa, 0, () => PatternToken); +export var Processors = list(n0, _Pro, 0, () => Processor); +export var QueryDefinitionList = list(n0, _QDL, 0, () => QueryDefinition); +export var QueryInfoList = list(n0, _QIL, 0, () => QueryInfo); +export var QueryResults = list(n0, _QR, 0, () => ResultRows); +export var RecordFields = 64 | 0; + +export var RenameKeyEntries = list(n0, _RKEe, 0, () => RenameKeyEntry); +export var ResourceArns = 64 | 0; + +export var ResourcePolicies = list(n0, _RPe, 0, () => ResourcePolicy); +export var ResourceTypes = 64 | 0; + +export var ResultRows = list(n0, _RR, 0, () => ResultField); +export var SearchedLogStreams = list(n0, _SLSe, 0, () => SearchedLogStream); +export var SplitStringEntries = list(n0, _SSEpl, 0, () => SplitStringEntry); +export var StartLiveTailLogGroupIdentifiers = 64 | 0; + +export var SubscriptionFilters = list(n0, _SFu, 0, () => SubscriptionFilter); +export var SubstituteStringEntries = list(n0, _SSEub, 0, () => SubstituteStringEntry); +export var TagKeyList = 64 | 0; + +export var TagList = 64 | 0; + +export var TestEventMessages = 64 | 0; + +export var TransformedLogs = list(n0, _TL, 0, () => TransformedLogRecord); +export var TrimStringWithKeys = 64 | 0; + +export var TypeConverterEntries = list(n0, _TCEy, 0, () => TypeConverterEntry); +export var UpperCaseStringWithKeys = 64 | 0; + +export var Dimensions = 128 | 0; + +export var EntityAttributes = 128 | 0; + +export var EntityKeyAttributes = 128 | 0; + +export var Enumerations = 128 | 1; + +export var ExtractedValues = 128 | 0; + +export var Histogram = 128 | 1; + +export var LogRecord = 128 | 0; + +export var Tags = 128 | 0; + +export var GetLogObjectResponseStream = uni( + n0, + _GLORS, + { + [_str]: 1, + }, + [_fie, _ISE], + [() => FieldsData, [() => InternalStreamingException, 0]] +); +export var IntegrationDetails = uni(n0, _ID, 0, [_oSID], [() => OpenSearchIntegrationDetails]); +export var ResourceConfig = uni(n0, _RC, 0, [_oSRC], [() => OpenSearchResourceConfig]); +export var StartLiveTailResponseStream = uni( + n0, + _SLTRS, + { + [_str]: 1, + }, + [_sSe, _sUe, _STE, _SSE], + [ + () => LiveTailSessionStart, + () => LiveTailSessionUpdate, + [() => SessionTimeoutException, 0], + [() => SessionStreamingException, 0], + ] +); +export var AssociateKmsKey = op( + n0, + _AKK, + 0, + () => AssociateKmsKeyRequest, + () => Unit +); +export var CancelExportTask = op( + n0, + _CET, + 0, + () => CancelExportTaskRequest, + () => Unit +); +export var CreateDelivery = op( + n0, + _CD, + 0, + () => CreateDeliveryRequest, + () => CreateDeliveryResponse +); +export var CreateExportTask = op( + n0, + _CETr, + 0, + () => CreateExportTaskRequest, + () => CreateExportTaskResponse +); +export var CreateLogAnomalyDetector = op( + n0, + _CLAD, + 0, + () => CreateLogAnomalyDetectorRequest, + () => CreateLogAnomalyDetectorResponse +); +export var CreateLogGroup = op( + n0, + _CLG, + 0, + () => CreateLogGroupRequest, + () => Unit +); +export var CreateLogStream = op( + n0, + _CLS, + 0, + () => CreateLogStreamRequest, + () => Unit +); +export var DeleteAccountPolicy = op( + n0, + _DAP, + 0, + () => DeleteAccountPolicyRequest, + () => Unit +); +export var DeleteDataProtectionPolicy = op( + n0, + _DDPP, + 0, + () => DeleteDataProtectionPolicyRequest, + () => Unit +); +export var DeleteDelivery = op( + n0, + _DDel, + 0, + () => DeleteDeliveryRequest, + () => Unit +); +export var DeleteDeliveryDestination = op( + n0, + _DDD, + 0, + () => DeleteDeliveryDestinationRequest, + () => Unit +); +export var DeleteDeliveryDestinationPolicy = op( + n0, + _DDDP, + 0, + () => DeleteDeliveryDestinationPolicyRequest, + () => Unit +); +export var DeleteDeliverySource = op( + n0, + _DDS, + 0, + () => DeleteDeliverySourceRequest, + () => Unit +); +export var DeleteDestination = op( + n0, + _DDele, + 0, + () => DeleteDestinationRequest, + () => Unit +); +export var DeleteIndexPolicy = op( + n0, + _DIP, + 0, + () => DeleteIndexPolicyRequest, + () => DeleteIndexPolicyResponse +); +export var DeleteIntegration = op( + n0, + _DI, + 0, + () => DeleteIntegrationRequest, + () => DeleteIntegrationResponse +); +export var DeleteLogAnomalyDetector = op( + n0, + _DLAD, + 0, + () => DeleteLogAnomalyDetectorRequest, + () => Unit +); +export var DeleteLogGroup = op( + n0, + _DLG, + 0, + () => DeleteLogGroupRequest, + () => Unit +); +export var DeleteLogStream = op( + n0, + _DLS, + 0, + () => DeleteLogStreamRequest, + () => Unit +); +export var DeleteMetricFilter = op( + n0, + _DMF, + 0, + () => DeleteMetricFilterRequest, + () => Unit +); +export var DeleteQueryDefinition = op( + n0, + _DQD, + 0, + () => DeleteQueryDefinitionRequest, + () => DeleteQueryDefinitionResponse +); +export var DeleteResourcePolicy = op( + n0, + _DRP, + 0, + () => DeleteResourcePolicyRequest, + () => Unit +); +export var DeleteRetentionPolicy = op( + n0, + _DRPe, + 0, + () => DeleteRetentionPolicyRequest, + () => Unit +); +export var DeleteSubscriptionFilter = op( + n0, + _DSF, + 0, + () => DeleteSubscriptionFilterRequest, + () => Unit +); +export var DeleteTransformer = op( + n0, + _DT, + 0, + () => DeleteTransformerRequest, + () => Unit +); +export var DescribeAccountPolicies = op( + n0, + _DAPe, + 0, + () => DescribeAccountPoliciesRequest, + () => DescribeAccountPoliciesResponse +); +export var DescribeConfigurationTemplates = op( + n0, + _DCT, + 0, + () => DescribeConfigurationTemplatesRequest, + () => DescribeConfigurationTemplatesResponse +); +export var DescribeDeliveries = op( + n0, + _DDes, + 0, + () => DescribeDeliveriesRequest, + () => DescribeDeliveriesResponse +); +export var DescribeDeliveryDestinations = op( + n0, + _DDDe, + 0, + () => DescribeDeliveryDestinationsRequest, + () => DescribeDeliveryDestinationsResponse +); +export var DescribeDeliverySources = op( + n0, + _DDSe, + 0, + () => DescribeDeliverySourcesRequest, + () => DescribeDeliverySourcesResponse +); +export var DescribeDestinations = op( + n0, + _DDesc, + 0, + () => DescribeDestinationsRequest, + () => DescribeDestinationsResponse +); +export var DescribeExportTasks = op( + n0, + _DET, + 0, + () => DescribeExportTasksRequest, + () => DescribeExportTasksResponse +); +export var DescribeFieldIndexes = op( + n0, + _DFI, + 0, + () => DescribeFieldIndexesRequest, + () => DescribeFieldIndexesResponse +); +export var DescribeIndexPolicies = op( + n0, + _DIPe, + 0, + () => DescribeIndexPoliciesRequest, + () => DescribeIndexPoliciesResponse +); +export var DescribeLogGroups = op( + n0, + _DLGe, + 0, + () => DescribeLogGroupsRequest, + () => DescribeLogGroupsResponse +); +export var DescribeLogStreams = op( + n0, + _DLSe, + 0, + () => DescribeLogStreamsRequest, + () => DescribeLogStreamsResponse +); +export var DescribeMetricFilters = op( + n0, + _DMFe, + 0, + () => DescribeMetricFiltersRequest, + () => DescribeMetricFiltersResponse +); +export var DescribeQueries = op( + n0, + _DQ, + 0, + () => DescribeQueriesRequest, + () => DescribeQueriesResponse +); +export var DescribeQueryDefinitions = op( + n0, + _DQDe, + 0, + () => DescribeQueryDefinitionsRequest, + () => DescribeQueryDefinitionsResponse +); +export var DescribeResourcePolicies = op( + n0, + _DRPes, + 0, + () => DescribeResourcePoliciesRequest, + () => DescribeResourcePoliciesResponse +); +export var DescribeSubscriptionFilters = op( + n0, + _DSFe, + 0, + () => DescribeSubscriptionFiltersRequest, + () => DescribeSubscriptionFiltersResponse +); +export var DisassociateKmsKey = op( + n0, + _DKK, + 0, + () => DisassociateKmsKeyRequest, + () => Unit +); +export var FilterLogEvents = op( + n0, + _FLEil, + 0, + () => FilterLogEventsRequest, + () => FilterLogEventsResponse +); +export var GetDataProtectionPolicy = op( + n0, + _GDPP, + 0, + () => GetDataProtectionPolicyRequest, + () => GetDataProtectionPolicyResponse +); +export var GetDelivery = op( + n0, + _GD, + 0, + () => GetDeliveryRequest, + () => GetDeliveryResponse +); +export var GetDeliveryDestination = op( + n0, + _GDD, + 0, + () => GetDeliveryDestinationRequest, + () => GetDeliveryDestinationResponse +); +export var GetDeliveryDestinationPolicy = op( + n0, + _GDDP, + 0, + () => GetDeliveryDestinationPolicyRequest, + () => GetDeliveryDestinationPolicyResponse +); +export var GetDeliverySource = op( + n0, + _GDS, + 0, + () => GetDeliverySourceRequest, + () => GetDeliverySourceResponse +); +export var GetIntegration = op( + n0, + _GI, + 0, + () => GetIntegrationRequest, + () => GetIntegrationResponse +); +export var GetLogAnomalyDetector = op( + n0, + _GLAD, + 0, + () => GetLogAnomalyDetectorRequest, + () => GetLogAnomalyDetectorResponse +); +export var GetLogEvents = op( + n0, + _GLE, + 0, + () => GetLogEventsRequest, + () => GetLogEventsResponse +); +export var GetLogGroupFields = op( + n0, + _GLGF, + 0, + () => GetLogGroupFieldsRequest, + () => GetLogGroupFieldsResponse +); +export var GetLogObject = op( + n0, + _GLO, + { + [_end]: ["streaming-"], + }, + () => GetLogObjectRequest, + () => GetLogObjectResponse +); +export var GetLogRecord = op( + n0, + _GLR, + 0, + () => GetLogRecordRequest, + () => GetLogRecordResponse +); +export var GetQueryResults = op( + n0, + _GQR, + 0, + () => GetQueryResultsRequest, + () => GetQueryResultsResponse +); +export var GetTransformer = op( + n0, + _GT, + 0, + () => GetTransformerRequest, + () => GetTransformerResponse +); +export var ListAnomalies = op( + n0, + _LA, + 0, + () => ListAnomaliesRequest, + () => ListAnomaliesResponse +); +export var ListIntegrations = op( + n0, + _LI, + 0, + () => ListIntegrationsRequest, + () => ListIntegrationsResponse +); +export var ListLogAnomalyDetectors = op( + n0, + _LLAD, + 0, + () => ListLogAnomalyDetectorsRequest, + () => ListLogAnomalyDetectorsResponse +); +export var ListLogGroups = op( + n0, + _LLG, + 0, + () => ListLogGroupsRequest, + () => ListLogGroupsResponse +); +export var ListLogGroupsForQuery = op( + n0, + _LLGFQ, + 0, + () => ListLogGroupsForQueryRequest, + () => ListLogGroupsForQueryResponse +); +export var ListTagsForResource = op( + n0, + _LTFR, + 0, + () => ListTagsForResourceRequest, + () => ListTagsForResourceResponse +); +export var ListTagsLogGroup = op( + n0, + _LTLG, + 0, + () => ListTagsLogGroupRequest, + () => ListTagsLogGroupResponse +); +export var PutAccountPolicy = op( + n0, + _PAP, + 0, + () => PutAccountPolicyRequest, + () => PutAccountPolicyResponse +); +export var PutDataProtectionPolicy = op( + n0, + _PDPP, + 0, + () => PutDataProtectionPolicyRequest, + () => PutDataProtectionPolicyResponse +); +export var PutDeliveryDestination = op( + n0, + _PDD, + 0, + () => PutDeliveryDestinationRequest, + () => PutDeliveryDestinationResponse +); +export var PutDeliveryDestinationPolicy = op( + n0, + _PDDP, + 0, + () => PutDeliveryDestinationPolicyRequest, + () => PutDeliveryDestinationPolicyResponse +); +export var PutDeliverySource = op( + n0, + _PDS, + 0, + () => PutDeliverySourceRequest, + () => PutDeliverySourceResponse +); +export var PutDestination = op( + n0, + _PD, + 0, + () => PutDestinationRequest, + () => PutDestinationResponse +); +export var PutDestinationPolicy = op( + n0, + _PDP, + 0, + () => PutDestinationPolicyRequest, + () => Unit +); +export var PutIndexPolicy = op( + n0, + _PIP, + 0, + () => PutIndexPolicyRequest, + () => PutIndexPolicyResponse +); +export var PutIntegration = op( + n0, + _PI, + 0, + () => PutIntegrationRequest, + () => PutIntegrationResponse +); +export var PutLogEvents = op( + n0, + _PLE, + 0, + () => PutLogEventsRequest, + () => PutLogEventsResponse +); +export var PutMetricFilter = op( + n0, + _PMF, + 0, + () => PutMetricFilterRequest, + () => Unit +); +export var PutQueryDefinition = op( + n0, + _PQD, + 0, + () => PutQueryDefinitionRequest, + () => PutQueryDefinitionResponse +); +export var PutResourcePolicy = op( + n0, + _PRP, + 0, + () => PutResourcePolicyRequest, + () => PutResourcePolicyResponse +); +export var PutRetentionPolicy = op( + n0, + _PRPu, + 0, + () => PutRetentionPolicyRequest, + () => Unit +); +export var PutSubscriptionFilter = op( + n0, + _PSF, + 0, + () => PutSubscriptionFilterRequest, + () => Unit +); +export var PutTransformer = op( + n0, + _PTu, + 0, + () => PutTransformerRequest, + () => Unit +); +export var StartLiveTail = op( + n0, + _SLT, + { + [_end]: ["streaming-"], + }, + () => StartLiveTailRequest, + () => StartLiveTailResponse +); +export var StartQuery = op( + n0, + _SQ, + 0, + () => StartQueryRequest, + () => StartQueryResponse +); +export var StopQuery = op( + n0, + _SQt, + 0, + () => StopQueryRequest, + () => StopQueryResponse +); +export var TagLogGroup = op( + n0, + _TLG, + 0, + () => TagLogGroupRequest, + () => Unit +); +export var TagResource = op( + n0, + _TR, + 0, + () => TagResourceRequest, + () => Unit +); +export var TestMetricFilter = op( + n0, + _TMF, + 0, + () => TestMetricFilterRequest, + () => TestMetricFilterResponse +); +export var TestTransformer = op( + n0, + _TT, + 0, + () => TestTransformerRequest, + () => TestTransformerResponse +); +export var UntagLogGroup = op( + n0, + _ULG, + 0, + () => UntagLogGroupRequest, + () => Unit +); +export var UntagResource = op( + n0, + _UR, + 0, + () => UntagResourceRequest, + () => Unit +); +export var UpdateAnomaly = op( + n0, + _UA, + 0, + () => UpdateAnomalyRequest, + () => Unit +); +export var UpdateDeliveryConfiguration = op( + n0, + _UDC, + 0, + () => UpdateDeliveryConfigurationRequest, + () => UpdateDeliveryConfigurationResponse +); +export var UpdateLogAnomalyDetector = op( + n0, + _ULAD, + 0, + () => UpdateLogAnomalyDetectorRequest, + () => Unit +); diff --git a/codegen/sdk-codegen/build.gradle.kts b/codegen/sdk-codegen/build.gradle.kts index abf28d79d2f1..138aa9a5360e 100644 --- a/codegen/sdk-codegen/build.gradle.kts +++ b/codegen/sdk-codegen/build.gradle.kts @@ -109,6 +109,9 @@ tasks.register("generate-smithy-build") { val useLegacyAuthServices = setOf( // e.g. "S3" - use this as exclusion list if needed. ) + val useSchemaSerde = setOf( + "CloudWatch Logs" + ) val projectionContents = Node.objectNodeBuilder() .withMember("imports", Node.fromStrings("${models.getAbsolutePath()}${File.separator}${file.name}")) .withMember("plugins", Node.objectNode() @@ -121,6 +124,8 @@ tasks.register("generate-smithy-build") { + clientName + " Client for Node.js, Browser and React Native") .withMember("useLegacyAuth", useLegacyAuthServices.contains(serviceTrait.sdkId)) + .withMember("generateSchemas", + useSchemaSerde.contains(serviceTrait.sdkId)) .build())) .build() projectionsBuilder.withMember(sdkId + "." + version.toLowerCase(), projectionContents) diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocolConfig.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocolConfig.java index c4c88923b002..508a2a053adf 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocolConfig.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocolConfig.java @@ -37,6 +37,7 @@ public AddProtocolConfig() { SchemaGenerationAllowlist.allow("com.amazonaws.s3#AmazonS3"); SchemaGenerationAllowlist.allow("com.amazonaws.dynamodb#DynamoDB_20120810"); SchemaGenerationAllowlist.allow("com.amazonaws.lambda#AWSGirApiService"); + SchemaGenerationAllowlist.allow("com.amazonaws.cloudwatchlogs#Logs_20140328"); // protocol tests SchemaGenerationAllowlist.allow("aws.protocoltests.json10#JsonRpc10"); From 48ae27205ffc157078fd0c631e5de286891e6470 Mon Sep 17 00:00:00 2001 From: George Fu Date: Wed, 6 Aug 2025 16:33:08 -0400 Subject: [PATCH 2/3] fix(core/protocols): x-amz-target in rpc protocols --- clients/client-cloudwatch-logs/package.json | 4 +- .../src/CloudWatchLogsClient.ts | 15 - .../src/commands/AssociateKmsKeyCommand.ts | 11 +- .../src/commands/CancelExportTaskCommand.ts | 11 +- .../src/commands/CreateDeliveryCommand.ts | 11 +- .../src/commands/CreateExportTaskCommand.ts | 11 +- .../CreateLogAnomalyDetectorCommand.ts | 11 +- .../src/commands/CreateLogGroupCommand.ts | 11 +- .../src/commands/CreateLogStreamCommand.ts | 11 +- .../commands/DeleteAccountPolicyCommand.ts | 11 +- .../DeleteDataProtectionPolicyCommand.ts | 11 +- .../src/commands/DeleteDeliveryCommand.ts | 11 +- .../DeleteDeliveryDestinationCommand.ts | 11 +- .../DeleteDeliveryDestinationPolicyCommand.ts | 14 +- .../commands/DeleteDeliverySourceCommand.ts | 11 +- .../src/commands/DeleteDestinationCommand.ts | 11 +- .../src/commands/DeleteIndexPolicyCommand.ts | 11 +- .../src/commands/DeleteIntegrationCommand.ts | 11 +- .../DeleteLogAnomalyDetectorCommand.ts | 11 +- .../src/commands/DeleteLogGroupCommand.ts | 11 +- .../src/commands/DeleteLogStreamCommand.ts | 11 +- .../src/commands/DeleteMetricFilterCommand.ts | 11 +- .../commands/DeleteQueryDefinitionCommand.ts | 11 +- .../commands/DeleteResourcePolicyCommand.ts | 11 +- .../commands/DeleteRetentionPolicyCommand.ts | 11 +- .../DeleteSubscriptionFilterCommand.ts | 11 +- .../src/commands/DeleteTransformerCommand.ts | 11 +- .../DescribeAccountPoliciesCommand.ts | 11 +- .../DescribeConfigurationTemplatesCommand.ts | 14 +- .../src/commands/DescribeDeliveriesCommand.ts | 11 +- .../DescribeDeliveryDestinationsCommand.ts | 14 +- .../DescribeDeliverySourcesCommand.ts | 11 +- .../commands/DescribeDestinationsCommand.ts | 11 +- .../commands/DescribeExportTasksCommand.ts | 11 +- .../commands/DescribeFieldIndexesCommand.ts | 11 +- .../commands/DescribeIndexPoliciesCommand.ts | 11 +- .../src/commands/DescribeLogGroupsCommand.ts | 11 +- .../src/commands/DescribeLogStreamsCommand.ts | 11 +- .../commands/DescribeMetricFiltersCommand.ts | 11 +- .../src/commands/DescribeQueriesCommand.ts | 11 +- .../DescribeQueryDefinitionsCommand.ts | 11 +- .../DescribeResourcePoliciesCommand.ts | 11 +- .../DescribeSubscriptionFiltersCommand.ts | 11 +- .../src/commands/DisassociateKmsKeyCommand.ts | 11 +- .../src/commands/FilterLogEventsCommand.ts | 11 +- .../GetDataProtectionPolicyCommand.ts | 11 +- .../src/commands/GetDeliveryCommand.ts | 11 +- .../commands/GetDeliveryDestinationCommand.ts | 11 +- .../GetDeliveryDestinationPolicyCommand.ts | 14 +- .../src/commands/GetDeliverySourceCommand.ts | 11 +- .../src/commands/GetIntegrationCommand.ts | 11 +- .../commands/GetLogAnomalyDetectorCommand.ts | 11 +- .../src/commands/GetLogEventsCommand.ts | 11 +- .../src/commands/GetLogGroupFieldsCommand.ts | 11 +- .../src/commands/GetLogObjectCommand.ts | 11 +- .../src/commands/GetLogRecordCommand.ts | 11 +- .../src/commands/GetQueryResultsCommand.ts | 11 +- .../src/commands/GetTransformerCommand.ts | 11 +- .../src/commands/ListAnomaliesCommand.ts | 11 +- .../src/commands/ListIntegrationsCommand.ts | 11 +- .../ListLogAnomalyDetectorsCommand.ts | 11 +- .../src/commands/ListLogGroupsCommand.ts | 11 +- .../commands/ListLogGroupsForQueryCommand.ts | 11 +- .../commands/ListTagsForResourceCommand.ts | 11 +- .../src/commands/ListTagsLogGroupCommand.ts | 11 +- .../src/commands/PutAccountPolicyCommand.ts | 11 +- .../PutDataProtectionPolicyCommand.ts | 11 +- .../commands/PutDeliveryDestinationCommand.ts | 11 +- .../PutDeliveryDestinationPolicyCommand.ts | 14 +- .../src/commands/PutDeliverySourceCommand.ts | 11 +- .../src/commands/PutDestinationCommand.ts | 11 +- .../commands/PutDestinationPolicyCommand.ts | 11 +- .../src/commands/PutIndexPolicyCommand.ts | 11 +- .../src/commands/PutIntegrationCommand.ts | 11 +- .../src/commands/PutLogEventsCommand.ts | 11 +- .../src/commands/PutMetricFilterCommand.ts | 11 +- .../src/commands/PutQueryDefinitionCommand.ts | 11 +- .../src/commands/PutResourcePolicyCommand.ts | 11 +- .../src/commands/PutRetentionPolicyCommand.ts | 11 +- .../commands/PutSubscriptionFilterCommand.ts | 11 +- .../src/commands/PutTransformerCommand.ts | 11 +- .../src/commands/StartLiveTailCommand.ts | 11 +- .../src/commands/StartQueryCommand.ts | 11 +- .../src/commands/StopQueryCommand.ts | 11 +- .../src/commands/TagLogGroupCommand.ts | 11 +- .../src/commands/TagResourceCommand.ts | 11 +- .../src/commands/TestMetricFilterCommand.ts | 11 +- .../src/commands/TestTransformerCommand.ts | 11 +- .../src/commands/UntagLogGroupCommand.ts | 11 +- .../src/commands/UntagResourceCommand.ts | 11 +- .../src/commands/UpdateAnomalyCommand.ts | 11 +- .../UpdateDeliveryConfigurationCommand.ts | 11 +- .../UpdateLogAnomalyDetectorCommand.ts | 11 +- .../src/protocols/Aws_json1_1.ts | 4765 +++++++++++++++++ .../src/runtimeConfig.shared.ts | 2 - .../src/schemas/schemas.ts | 2289 -------- codegen/sdk-codegen/build.gradle.kts | 2 +- .../typescript/codegen/AddProtocolConfig.java | 13 +- .../protocols/json/AwsJson1_0Protocol.ts | 7 +- .../protocols/json/AwsJson1_1Protocol.ts | 7 +- .../protocols/json/AwsJsonRpcProtocol.ts | 8 +- .../protocols/json/AwsRestJsonProtocol.ts | 8 +- .../protocols/query/AwsQueryProtocol.ts | 4 + .../protocols/xml/AwsRestXmlProtocol.ts | 10 +- scripts/model-analysis/model-analysis.js | 131 + 105 files changed, 5687 insertions(+), 2594 deletions(-) create mode 100644 clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts delete mode 100644 clients/client-cloudwatch-logs/src/schemas/schemas.ts create mode 100644 scripts/model-analysis/model-analysis.js diff --git a/clients/client-cloudwatch-logs/package.json b/clients/client-cloudwatch-logs/package.json index 3e26cbec20c9..079a464918ba 100644 --- a/clients/client-cloudwatch-logs/package.json +++ b/clients/client-cloudwatch-logs/package.json @@ -59,7 +59,9 @@ "@smithy/util-middleware": "^4.0.5", "@smithy/util-retry": "^4.0.7", "@smithy/util-utf8": "^4.0.0", - "tslib": "^2.6.2" + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node18": "18.2.4", diff --git a/clients/client-cloudwatch-logs/src/CloudWatchLogsClient.ts b/clients/client-cloudwatch-logs/src/CloudWatchLogsClient.ts index f639418d6be7..c1bd48739aaa 100644 --- a/clients/client-cloudwatch-logs/src/CloudWatchLogsClient.ts +++ b/clients/client-cloudwatch-logs/src/CloudWatchLogsClient.ts @@ -19,7 +19,6 @@ import { getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core"; -import { getSchemaSerdePlugin } from "@smithy/core/schema"; import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig, @@ -40,15 +39,12 @@ import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, - ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, EndpointV2 as __EndpointV2, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, - HttpRequest, - HttpResponse, Logger as __Logger, Provider as __Provider, Provider, @@ -613,16 +609,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand */ extensions?: RuntimeExtension[]; - /** - * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON) - * may be overridden. A default will always be set by the client. - * Available options depend on the service's supported protocols and will not be validated by - * the client. - * @alpha - * - */ - protocol?: ClientProtocol; - /** * The function that provides necessary utilities for generating and parsing event stream */ @@ -738,7 +724,6 @@ export class CloudWatchLogsClient extends __Client< const _config_8 = resolveHttpAuthSchemeConfig(_config_7); const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []); this.config = _config_9; - this.middlewareStack.use(getSchemaSerdePlugin(this.config)); this.middlewareStack.use(getUserAgentPlugin(this.config)); this.middlewareStack.use(getRetryPlugin(this.config)); this.middlewareStack.use(getContentLengthPlugin(this.config)); diff --git a/clients/client-cloudwatch-logs/src/commands/AssociateKmsKeyCommand.ts b/clients/client-cloudwatch-logs/src/commands/AssociateKmsKeyCommand.ts index df19535adc76..9986813409c9 100644 --- a/clients/client-cloudwatch-logs/src/commands/AssociateKmsKeyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/AssociateKmsKeyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { AssociateKmsKeyRequest } from "../models/models_0"; -import { AssociateKmsKey } from "../schemas/schemas"; +import { de_AssociateKmsKeyCommand, se_AssociateKmsKeyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -123,12 +124,16 @@ export class AssociateKmsKeyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "AssociateKmsKey", {}) .n("CloudWatchLogsClient", "AssociateKmsKeyCommand") .f(void 0, void 0) - .sc(AssociateKmsKey) + .ser(se_AssociateKmsKeyCommand) + .de(de_AssociateKmsKeyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/CancelExportTaskCommand.ts b/clients/client-cloudwatch-logs/src/commands/CancelExportTaskCommand.ts index 28c6821af85b..664fffc76526 100644 --- a/clients/client-cloudwatch-logs/src/commands/CancelExportTaskCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/CancelExportTaskCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { CancelExportTaskRequest } from "../models/models_0"; -import { CancelExportTask } from "../schemas/schemas"; +import { de_CancelExportTaskCommand, se_CancelExportTaskCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -78,12 +79,16 @@ export class CancelExportTaskCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "CancelExportTask", {}) .n("CloudWatchLogsClient", "CancelExportTaskCommand") .f(void 0, void 0) - .sc(CancelExportTask) + .ser(se_CancelExportTaskCommand) + .de(de_CancelExportTaskCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/CreateDeliveryCommand.ts b/clients/client-cloudwatch-logs/src/commands/CreateDeliveryCommand.ts index 6a31d23a611d..89c685200ed2 100644 --- a/clients/client-cloudwatch-logs/src/commands/CreateDeliveryCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/CreateDeliveryCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { CreateDeliveryRequest, CreateDeliveryResponse } from "../models/models_0"; -import { CreateDelivery } from "../schemas/schemas"; +import { de_CreateDeliveryCommand, se_CreateDeliveryCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -149,12 +150,16 @@ export class CreateDeliveryCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "CreateDelivery", {}) .n("CloudWatchLogsClient", "CreateDeliveryCommand") .f(void 0, void 0) - .sc(CreateDelivery) + .ser(se_CreateDeliveryCommand) + .de(de_CreateDeliveryCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/CreateExportTaskCommand.ts b/clients/client-cloudwatch-logs/src/commands/CreateExportTaskCommand.ts index f4b9c8997f6a..6bc4022a6fe3 100644 --- a/clients/client-cloudwatch-logs/src/commands/CreateExportTaskCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/CreateExportTaskCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { CreateExportTaskRequest, CreateExportTaskResponse } from "../models/models_0"; -import { CreateExportTask } from "../schemas/schemas"; +import { de_CreateExportTaskCommand, se_CreateExportTaskCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -116,12 +117,16 @@ export class CreateExportTaskCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "CreateExportTask", {}) .n("CloudWatchLogsClient", "CreateExportTaskCommand") .f(void 0, void 0) - .sc(CreateExportTask) + .ser(se_CreateExportTaskCommand) + .de(de_CreateExportTaskCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/CreateLogAnomalyDetectorCommand.ts b/clients/client-cloudwatch-logs/src/commands/CreateLogAnomalyDetectorCommand.ts index f3468cf52655..e030baf2f9c8 100644 --- a/clients/client-cloudwatch-logs/src/commands/CreateLogAnomalyDetectorCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/CreateLogAnomalyDetectorCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { CreateLogAnomalyDetectorRequest, CreateLogAnomalyDetectorResponse } from "../models/models_0"; -import { CreateLogAnomalyDetector } from "../schemas/schemas"; +import { de_CreateLogAnomalyDetectorCommand, se_CreateLogAnomalyDetectorCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -117,12 +118,16 @@ export class CreateLogAnomalyDetectorCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "CreateLogAnomalyDetector", {}) .n("CloudWatchLogsClient", "CreateLogAnomalyDetectorCommand") .f(void 0, void 0) - .sc(CreateLogAnomalyDetector) + .ser(se_CreateLogAnomalyDetectorCommand) + .de(de_CreateLogAnomalyDetectorCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/CreateLogGroupCommand.ts b/clients/client-cloudwatch-logs/src/commands/CreateLogGroupCommand.ts index 2ec8d7c6f03e..1b56b4da7bbf 100644 --- a/clients/client-cloudwatch-logs/src/commands/CreateLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/CreateLogGroupCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { CreateLogGroupRequest } from "../models/models_0"; -import { CreateLogGroup } from "../schemas/schemas"; +import { de_CreateLogGroupCommand, se_CreateLogGroupCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -119,12 +120,16 @@ export class CreateLogGroupCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "CreateLogGroup", {}) .n("CloudWatchLogsClient", "CreateLogGroupCommand") .f(void 0, void 0) - .sc(CreateLogGroup) + .ser(se_CreateLogGroupCommand) + .de(de_CreateLogGroupCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/CreateLogStreamCommand.ts b/clients/client-cloudwatch-logs/src/commands/CreateLogStreamCommand.ts index 05d5aa7e98e4..e1c26bb4c765 100644 --- a/clients/client-cloudwatch-logs/src/commands/CreateLogStreamCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/CreateLogStreamCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { CreateLogStreamRequest } from "../models/models_0"; -import { CreateLogStream } from "../schemas/schemas"; +import { de_CreateLogStreamCommand, se_CreateLogStreamCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -95,12 +96,16 @@ export class CreateLogStreamCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "CreateLogStream", {}) .n("CloudWatchLogsClient", "CreateLogStreamCommand") .f(void 0, void 0) - .sc(CreateLogStream) + .ser(se_CreateLogStreamCommand) + .de(de_CreateLogStreamCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteAccountPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteAccountPolicyCommand.ts index 83e3fc47f409..53d4f327ad51 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteAccountPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteAccountPolicyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteAccountPolicyRequest } from "../models/models_0"; -import { DeleteAccountPolicy } from "../schemas/schemas"; +import { de_DeleteAccountPolicyCommand, se_DeleteAccountPolicyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -105,12 +106,16 @@ export class DeleteAccountPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteAccountPolicy", {}) .n("CloudWatchLogsClient", "DeleteAccountPolicyCommand") .f(void 0, void 0) - .sc(DeleteAccountPolicy) + .ser(se_DeleteAccountPolicyCommand) + .de(de_DeleteAccountPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteDataProtectionPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteDataProtectionPolicyCommand.ts index 979a97e9260a..0e6cace62158 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteDataProtectionPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteDataProtectionPolicyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteDataProtectionPolicyRequest } from "../models/models_0"; -import { DeleteDataProtectionPolicy } from "../schemas/schemas"; +import { de_DeleteDataProtectionPolicyCommand, se_DeleteDataProtectionPolicyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -78,12 +79,16 @@ export class DeleteDataProtectionPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteDataProtectionPolicy", {}) .n("CloudWatchLogsClient", "DeleteDataProtectionPolicyCommand") .f(void 0, void 0) - .sc(DeleteDataProtectionPolicy) + .ser(se_DeleteDataProtectionPolicyCommand) + .de(de_DeleteDataProtectionPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryCommand.ts index 867b9d8de23b..10f3bb0c685b 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteDeliveryRequest } from "../models/models_0"; -import { DeleteDelivery } from "../schemas/schemas"; +import { de_DeleteDeliveryCommand, se_DeleteDeliveryCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -87,12 +88,16 @@ export class DeleteDeliveryCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteDelivery", {}) .n("CloudWatchLogsClient", "DeleteDeliveryCommand") .f(void 0, void 0) - .sc(DeleteDelivery) + .ser(se_DeleteDeliveryCommand) + .de(de_DeleteDeliveryCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationCommand.ts index becf56fe39b1..5d31feda97b4 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteDeliveryDestinationRequest } from "../models/models_0"; -import { DeleteDeliveryDestination } from "../schemas/schemas"; +import { de_DeleteDeliveryDestinationCommand, se_DeleteDeliveryDestinationCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -88,12 +89,16 @@ export class DeleteDeliveryDestinationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteDeliveryDestination", {}) .n("CloudWatchLogsClient", "DeleteDeliveryDestinationCommand") .f(void 0, void 0) - .sc(DeleteDeliveryDestination) + .ser(se_DeleteDeliveryDestinationCommand) + .de(de_DeleteDeliveryDestinationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationPolicyCommand.ts index ef8bac344918..d6b07802d938 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteDeliveryDestinationPolicyCommand.ts @@ -1,12 +1,16 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteDeliveryDestinationPolicyRequest } from "../models/models_0"; -import { DeleteDeliveryDestinationPolicy } from "../schemas/schemas"; +import { + de_DeleteDeliveryDestinationPolicyCommand, + se_DeleteDeliveryDestinationPolicyCommand, +} from "../protocols/Aws_json1_1"; /** * @public @@ -78,12 +82,16 @@ export class DeleteDeliveryDestinationPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteDeliveryDestinationPolicy", {}) .n("CloudWatchLogsClient", "DeleteDeliveryDestinationPolicyCommand") .f(void 0, void 0) - .sc(DeleteDeliveryDestinationPolicy) + .ser(se_DeleteDeliveryDestinationPolicyCommand) + .de(de_DeleteDeliveryDestinationPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteDeliverySourceCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteDeliverySourceCommand.ts index 918b45790d52..c0b9e4c91c16 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteDeliverySourceCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteDeliverySourceCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteDeliverySourceRequest } from "../models/models_0"; -import { DeleteDeliverySource } from "../schemas/schemas"; +import { de_DeleteDeliverySourceCommand, se_DeleteDeliverySourceCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -88,12 +89,16 @@ export class DeleteDeliverySourceCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteDeliverySource", {}) .n("CloudWatchLogsClient", "DeleteDeliverySourceCommand") .f(void 0, void 0) - .sc(DeleteDeliverySource) + .ser(se_DeleteDeliverySourceCommand) + .de(de_DeleteDeliverySourceCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteDestinationCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteDestinationCommand.ts index 573918661dec..94416edbb4f9 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteDestinationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteDestinationCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteDestinationRequest } from "../models/models_0"; -import { DeleteDestination } from "../schemas/schemas"; +import { de_DeleteDestinationCommand, se_DeleteDestinationCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -79,12 +80,16 @@ export class DeleteDestinationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteDestination", {}) .n("CloudWatchLogsClient", "DeleteDestinationCommand") .f(void 0, void 0) - .sc(DeleteDestination) + .ser(se_DeleteDestinationCommand) + .de(de_DeleteDestinationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteIndexPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteIndexPolicyCommand.ts index d790b12346d8..8c3e9bca13c8 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteIndexPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteIndexPolicyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteIndexPolicyRequest, DeleteIndexPolicyResponse } from "../models/models_0"; -import { DeleteIndexPolicy } from "../schemas/schemas"; +import { de_DeleteIndexPolicyCommand, se_DeleteIndexPolicyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -86,12 +87,16 @@ export class DeleteIndexPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteIndexPolicy", {}) .n("CloudWatchLogsClient", "DeleteIndexPolicyCommand") .f(void 0, void 0) - .sc(DeleteIndexPolicy) + .ser(se_DeleteIndexPolicyCommand) + .de(de_DeleteIndexPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteIntegrationCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteIntegrationCommand.ts index 98f9937682a3..3f9697598f2f 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteIntegrationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteIntegrationCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteIntegrationRequest, DeleteIntegrationResponse } from "../models/models_0"; -import { DeleteIntegration } from "../schemas/schemas"; +import { de_DeleteIntegrationCommand, se_DeleteIntegrationCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -83,12 +84,16 @@ export class DeleteIntegrationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteIntegration", {}) .n("CloudWatchLogsClient", "DeleteIntegrationCommand") .f(void 0, void 0) - .sc(DeleteIntegration) + .ser(se_DeleteIntegrationCommand) + .de(de_DeleteIntegrationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteLogAnomalyDetectorCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteLogAnomalyDetectorCommand.ts index 98e5084f7073..9e859823cdc5 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteLogAnomalyDetectorCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteLogAnomalyDetectorCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteLogAnomalyDetectorRequest } from "../models/models_0"; -import { DeleteLogAnomalyDetector } from "../schemas/schemas"; +import { de_DeleteLogAnomalyDetectorCommand, se_DeleteLogAnomalyDetectorCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -77,12 +78,16 @@ export class DeleteLogAnomalyDetectorCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteLogAnomalyDetector", {}) .n("CloudWatchLogsClient", "DeleteLogAnomalyDetectorCommand") .f(void 0, void 0) - .sc(DeleteLogAnomalyDetector) + .ser(se_DeleteLogAnomalyDetectorCommand) + .de(de_DeleteLogAnomalyDetectorCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteLogGroupCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteLogGroupCommand.ts index aa624abf0470..a98c244eb2f0 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteLogGroupCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteLogGroupRequest } from "../models/models_0"; -import { DeleteLogGroup } from "../schemas/schemas"; +import { de_DeleteLogGroupCommand, se_DeleteLogGroupCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -78,12 +79,16 @@ export class DeleteLogGroupCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteLogGroup", {}) .n("CloudWatchLogsClient", "DeleteLogGroupCommand") .f(void 0, void 0) - .sc(DeleteLogGroup) + .ser(se_DeleteLogGroupCommand) + .de(de_DeleteLogGroupCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteLogStreamCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteLogStreamCommand.ts index 215716954d65..6cdc32d8c8b2 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteLogStreamCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteLogStreamCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteLogStreamRequest } from "../models/models_0"; -import { DeleteLogStream } from "../schemas/schemas"; +import { de_DeleteLogStreamCommand, se_DeleteLogStreamCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -79,12 +80,16 @@ export class DeleteLogStreamCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteLogStream", {}) .n("CloudWatchLogsClient", "DeleteLogStreamCommand") .f(void 0, void 0) - .sc(DeleteLogStream) + .ser(se_DeleteLogStreamCommand) + .de(de_DeleteLogStreamCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteMetricFilterCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteMetricFilterCommand.ts index 1d8ee24f47c4..91d3fa07078b 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteMetricFilterCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteMetricFilterCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteMetricFilterRequest } from "../models/models_0"; -import { DeleteMetricFilter } from "../schemas/schemas"; +import { de_DeleteMetricFilterCommand, se_DeleteMetricFilterCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -78,12 +79,16 @@ export class DeleteMetricFilterCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteMetricFilter", {}) .n("CloudWatchLogsClient", "DeleteMetricFilterCommand") .f(void 0, void 0) - .sc(DeleteMetricFilter) + .ser(se_DeleteMetricFilterCommand) + .de(de_DeleteMetricFilterCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteQueryDefinitionCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteQueryDefinitionCommand.ts index 5cc04dce5b48..e4b5ae1b2b87 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteQueryDefinitionCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteQueryDefinitionCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteQueryDefinitionRequest, DeleteQueryDefinitionResponse } from "../models/models_0"; -import { DeleteQueryDefinition } from "../schemas/schemas"; +import { de_DeleteQueryDefinitionCommand, se_DeleteQueryDefinitionCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -80,12 +81,16 @@ export class DeleteQueryDefinitionCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteQueryDefinition", {}) .n("CloudWatchLogsClient", "DeleteQueryDefinitionCommand") .f(void 0, void 0) - .sc(DeleteQueryDefinition) + .ser(se_DeleteQueryDefinitionCommand) + .de(de_DeleteQueryDefinitionCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteResourcePolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteResourcePolicyCommand.ts index 11c1bf56a116..6b4448294a26 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteResourcePolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteResourcePolicyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteResourcePolicyRequest } from "../models/models_0"; -import { DeleteResourcePolicy } from "../schemas/schemas"; +import { de_DeleteResourcePolicyCommand, se_DeleteResourcePolicyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -80,12 +81,16 @@ export class DeleteResourcePolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteResourcePolicy", {}) .n("CloudWatchLogsClient", "DeleteResourcePolicyCommand") .f(void 0, void 0) - .sc(DeleteResourcePolicy) + .ser(se_DeleteResourcePolicyCommand) + .de(de_DeleteResourcePolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteRetentionPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteRetentionPolicyCommand.ts index bed30fc55daf..3c877e8e10e3 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteRetentionPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteRetentionPolicyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteRetentionPolicyRequest } from "../models/models_0"; -import { DeleteRetentionPolicy } from "../schemas/schemas"; +import { de_DeleteRetentionPolicyCommand, se_DeleteRetentionPolicyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -79,12 +80,16 @@ export class DeleteRetentionPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteRetentionPolicy", {}) .n("CloudWatchLogsClient", "DeleteRetentionPolicyCommand") .f(void 0, void 0) - .sc(DeleteRetentionPolicy) + .ser(se_DeleteRetentionPolicyCommand) + .de(de_DeleteRetentionPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteSubscriptionFilterCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteSubscriptionFilterCommand.ts index ba816ae436f6..4b0565dc02d9 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteSubscriptionFilterCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteSubscriptionFilterCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteSubscriptionFilterRequest } from "../models/models_0"; -import { DeleteSubscriptionFilter } from "../schemas/schemas"; +import { de_DeleteSubscriptionFilterCommand, se_DeleteSubscriptionFilterCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -78,12 +79,16 @@ export class DeleteSubscriptionFilterCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteSubscriptionFilter", {}) .n("CloudWatchLogsClient", "DeleteSubscriptionFilterCommand") .f(void 0, void 0) - .sc(DeleteSubscriptionFilter) + .ser(se_DeleteSubscriptionFilterCommand) + .de(de_DeleteSubscriptionFilterCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DeleteTransformerCommand.ts b/clients/client-cloudwatch-logs/src/commands/DeleteTransformerCommand.ts index 6366185c602e..81e4b9bbf433 100644 --- a/clients/client-cloudwatch-logs/src/commands/DeleteTransformerCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DeleteTransformerCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DeleteTransformerRequest } from "../models/models_0"; -import { DeleteTransformer } from "../schemas/schemas"; +import { de_DeleteTransformerCommand, se_DeleteTransformerCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -85,12 +86,16 @@ export class DeleteTransformerCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DeleteTransformer", {}) .n("CloudWatchLogsClient", "DeleteTransformerCommand") .f(void 0, void 0) - .sc(DeleteTransformer) + .ser(se_DeleteTransformerCommand) + .de(de_DeleteTransformerCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeAccountPoliciesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeAccountPoliciesCommand.ts index 2b51a2c67c93..99ebf199c3c3 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeAccountPoliciesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeAccountPoliciesCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeAccountPoliciesRequest, DescribeAccountPoliciesResponse } from "../models/models_0"; -import { DescribeAccountPolicies } from "../schemas/schemas"; +import { de_DescribeAccountPoliciesCommand, se_DescribeAccountPoliciesCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -117,12 +118,16 @@ export class DescribeAccountPoliciesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeAccountPolicies", {}) .n("CloudWatchLogsClient", "DescribeAccountPoliciesCommand") .f(void 0, void 0) - .sc(DescribeAccountPolicies) + .ser(se_DescribeAccountPoliciesCommand) + .de(de_DescribeAccountPoliciesCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeConfigurationTemplatesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeConfigurationTemplatesCommand.ts index fc6b648a895b..15b4e7455c45 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeConfigurationTemplatesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeConfigurationTemplatesCommand.ts @@ -1,12 +1,16 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeConfigurationTemplatesRequest, DescribeConfigurationTemplatesResponse } from "../models/models_0"; -import { DescribeConfigurationTemplates } from "../schemas/schemas"; +import { + de_DescribeConfigurationTemplatesCommand, + se_DescribeConfigurationTemplatesCommand, +} from "../protocols/Aws_json1_1"; /** * @public @@ -128,12 +132,16 @@ export class DescribeConfigurationTemplatesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeConfigurationTemplates", {}) .n("CloudWatchLogsClient", "DescribeConfigurationTemplatesCommand") .f(void 0, void 0) - .sc(DescribeConfigurationTemplates) + .ser(se_DescribeConfigurationTemplatesCommand) + .de(de_DescribeConfigurationTemplatesCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeDeliveriesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeDeliveriesCommand.ts index fa6bd6c89475..4ae32f84c59a 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeDeliveriesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeDeliveriesCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeDeliveriesRequest, DescribeDeliveriesResponse } from "../models/models_0"; -import { DescribeDeliveries } from "../schemas/schemas"; +import { de_DescribeDeliveriesCommand, se_DescribeDeliveriesCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -111,12 +112,16 @@ export class DescribeDeliveriesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeDeliveries", {}) .n("CloudWatchLogsClient", "DescribeDeliveriesCommand") .f(void 0, void 0) - .sc(DescribeDeliveries) + .ser(se_DescribeDeliveriesCommand) + .de(de_DescribeDeliveriesCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeDeliveryDestinationsCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeDeliveryDestinationsCommand.ts index b95256653b5f..8a968395017c 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeDeliveryDestinationsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeDeliveryDestinationsCommand.ts @@ -1,12 +1,16 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeDeliveryDestinationsRequest, DescribeDeliveryDestinationsResponse } from "../models/models_0"; -import { DescribeDeliveryDestinations } from "../schemas/schemas"; +import { + de_DescribeDeliveryDestinationsCommand, + se_DescribeDeliveryDestinationsCommand, +} from "../protocols/Aws_json1_1"; /** * @public @@ -97,12 +101,16 @@ export class DescribeDeliveryDestinationsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeDeliveryDestinations", {}) .n("CloudWatchLogsClient", "DescribeDeliveryDestinationsCommand") .f(void 0, void 0) - .sc(DescribeDeliveryDestinations) + .ser(se_DescribeDeliveryDestinationsCommand) + .de(de_DescribeDeliveryDestinationsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeDeliverySourcesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeDeliverySourcesCommand.ts index ba043586c85d..c5d22464fe3b 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeDeliverySourcesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeDeliverySourcesCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeDeliverySourcesRequest, DescribeDeliverySourcesResponse } from "../models/models_0"; -import { DescribeDeliverySources } from "../schemas/schemas"; +import { de_DescribeDeliverySourcesCommand, se_DescribeDeliverySourcesCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -94,12 +95,16 @@ export class DescribeDeliverySourcesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeDeliverySources", {}) .n("CloudWatchLogsClient", "DescribeDeliverySourcesCommand") .f(void 0, void 0) - .sc(DescribeDeliverySources) + .ser(se_DescribeDeliverySourcesCommand) + .de(de_DescribeDeliverySourcesCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeDestinationsCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeDestinationsCommand.ts index eab7f5389aa4..b3228f8d3149 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeDestinationsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeDestinationsCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeDestinationsRequest, DescribeDestinationsResponse } from "../models/models_0"; -import { DescribeDestinations } from "../schemas/schemas"; +import { de_DescribeDestinationsCommand, se_DescribeDestinationsCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -86,12 +87,16 @@ export class DescribeDestinationsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeDestinations", {}) .n("CloudWatchLogsClient", "DescribeDestinationsCommand") .f(void 0, void 0) - .sc(DescribeDestinations) + .ser(se_DescribeDestinationsCommand) + .de(de_DescribeDestinationsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeExportTasksCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeExportTasksCommand.ts index 4984fe76a54b..b1394063f264 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeExportTasksCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeExportTasksCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeExportTasksRequest, DescribeExportTasksResponse } from "../models/models_0"; -import { DescribeExportTasks } from "../schemas/schemas"; +import { de_DescribeExportTasksCommand, se_DescribeExportTasksCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -96,12 +97,16 @@ export class DescribeExportTasksCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeExportTasks", {}) .n("CloudWatchLogsClient", "DescribeExportTasksCommand") .f(void 0, void 0) - .sc(DescribeExportTasks) + .ser(se_DescribeExportTasksCommand) + .de(de_DescribeExportTasksCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeFieldIndexesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeFieldIndexesCommand.ts index 55cb7bb58e5d..32679907a2a1 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeFieldIndexesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeFieldIndexesCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeFieldIndexesRequest, DescribeFieldIndexesResponse } from "../models/models_0"; -import { DescribeFieldIndexes } from "../schemas/schemas"; +import { de_DescribeFieldIndexesCommand, se_DescribeFieldIndexesCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -95,12 +96,16 @@ export class DescribeFieldIndexesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeFieldIndexes", {}) .n("CloudWatchLogsClient", "DescribeFieldIndexesCommand") .f(void 0, void 0) - .sc(DescribeFieldIndexes) + .ser(se_DescribeFieldIndexesCommand) + .de(de_DescribeFieldIndexesCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeIndexPoliciesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeIndexPoliciesCommand.ts index 6f289295d321..ecc72ce61cb4 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeIndexPoliciesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeIndexPoliciesCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeIndexPoliciesRequest, DescribeIndexPoliciesResponse } from "../models/models_0"; -import { DescribeIndexPolicies } from "../schemas/schemas"; +import { de_DescribeIndexPoliciesCommand, se_DescribeIndexPoliciesCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -100,12 +101,16 @@ export class DescribeIndexPoliciesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeIndexPolicies", {}) .n("CloudWatchLogsClient", "DescribeIndexPoliciesCommand") .f(void 0, void 0) - .sc(DescribeIndexPolicies) + .ser(se_DescribeIndexPoliciesCommand) + .de(de_DescribeIndexPoliciesCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeLogGroupsCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeLogGroupsCommand.ts index 6dc2841b3f33..e7d00cf7163a 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeLogGroupsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeLogGroupsCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeLogGroupsRequest, DescribeLogGroupsResponse } from "../models/models_0"; -import { DescribeLogGroups } from "../schemas/schemas"; +import { de_DescribeLogGroupsCommand, se_DescribeLogGroupsCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -114,12 +115,16 @@ export class DescribeLogGroupsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeLogGroups", {}) .n("CloudWatchLogsClient", "DescribeLogGroupsCommand") .f(void 0, void 0) - .sc(DescribeLogGroups) + .ser(se_DescribeLogGroupsCommand) + .de(de_DescribeLogGroupsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeLogStreamsCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeLogStreamsCommand.ts index a74744446cbd..adb6e8eff25e 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeLogStreamsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeLogStreamsCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeLogStreamsRequest, DescribeLogStreamsResponse } from "../models/models_0"; -import { DescribeLogStreams } from "../schemas/schemas"; +import { de_DescribeLogStreamsCommand, se_DescribeLogStreamsCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -103,12 +104,16 @@ export class DescribeLogStreamsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeLogStreams", {}) .n("CloudWatchLogsClient", "DescribeLogStreamsCommand") .f(void 0, void 0) - .sc(DescribeLogStreams) + .ser(se_DescribeLogStreamsCommand) + .de(de_DescribeLogStreamsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeMetricFiltersCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeMetricFiltersCommand.ts index 8d94a3704ce5..473db7405dcd 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeMetricFiltersCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeMetricFiltersCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeMetricFiltersRequest, DescribeMetricFiltersResponse } from "../models/models_0"; -import { DescribeMetricFilters } from "../schemas/schemas"; +import { de_DescribeMetricFiltersCommand, se_DescribeMetricFiltersCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -104,12 +105,16 @@ export class DescribeMetricFiltersCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeMetricFilters", {}) .n("CloudWatchLogsClient", "DescribeMetricFiltersCommand") .f(void 0, void 0) - .sc(DescribeMetricFilters) + .ser(se_DescribeMetricFiltersCommand) + .de(de_DescribeMetricFiltersCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeQueriesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeQueriesCommand.ts index 6e6988b162b5..a8d24a32d8a3 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeQueriesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeQueriesCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeQueriesRequest, DescribeQueriesResponse } from "../models/models_0"; -import { DescribeQueries } from "../schemas/schemas"; +import { de_DescribeQueriesCommand, se_DescribeQueriesCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -92,12 +93,16 @@ export class DescribeQueriesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeQueries", {}) .n("CloudWatchLogsClient", "DescribeQueriesCommand") .f(void 0, void 0) - .sc(DescribeQueries) + .ser(se_DescribeQueriesCommand) + .de(de_DescribeQueriesCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeQueryDefinitionsCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeQueryDefinitionsCommand.ts index c7e6cdad4bf6..5a523501f9a2 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeQueryDefinitionsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeQueryDefinitionsCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeQueryDefinitionsRequest, DescribeQueryDefinitionsResponse } from "../models/models_0"; -import { DescribeQueryDefinitions } from "../schemas/schemas"; +import { de_DescribeQueryDefinitionsCommand, se_DescribeQueryDefinitionsCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -92,12 +93,16 @@ export class DescribeQueryDefinitionsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeQueryDefinitions", {}) .n("CloudWatchLogsClient", "DescribeQueryDefinitionsCommand") .f(void 0, void 0) - .sc(DescribeQueryDefinitions) + .ser(se_DescribeQueryDefinitionsCommand) + .de(de_DescribeQueryDefinitionsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeResourcePoliciesCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeResourcePoliciesCommand.ts index 8025f98de0a5..25a8be1c0d68 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeResourcePoliciesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeResourcePoliciesCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeResourcePoliciesRequest, DescribeResourcePoliciesResponse } from "../models/models_0"; -import { DescribeResourcePolicies } from "../schemas/schemas"; +import { de_DescribeResourcePoliciesCommand, se_DescribeResourcePoliciesCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -86,12 +87,16 @@ export class DescribeResourcePoliciesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeResourcePolicies", {}) .n("CloudWatchLogsClient", "DescribeResourcePoliciesCommand") .f(void 0, void 0) - .sc(DescribeResourcePolicies) + .ser(se_DescribeResourcePoliciesCommand) + .de(de_DescribeResourcePoliciesCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DescribeSubscriptionFiltersCommand.ts b/clients/client-cloudwatch-logs/src/commands/DescribeSubscriptionFiltersCommand.ts index 77eedc3d2ab9..326020e4977c 100644 --- a/clients/client-cloudwatch-logs/src/commands/DescribeSubscriptionFiltersCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DescribeSubscriptionFiltersCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DescribeSubscriptionFiltersRequest, DescribeSubscriptionFiltersResponse } from "../models/models_0"; -import { DescribeSubscriptionFilters } from "../schemas/schemas"; +import { de_DescribeSubscriptionFiltersCommand, se_DescribeSubscriptionFiltersCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -95,12 +96,16 @@ export class DescribeSubscriptionFiltersCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DescribeSubscriptionFilters", {}) .n("CloudWatchLogsClient", "DescribeSubscriptionFiltersCommand") .f(void 0, void 0) - .sc(DescribeSubscriptionFilters) + .ser(se_DescribeSubscriptionFiltersCommand) + .de(de_DescribeSubscriptionFiltersCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/DisassociateKmsKeyCommand.ts b/clients/client-cloudwatch-logs/src/commands/DisassociateKmsKeyCommand.ts index 6a32ffe86ef5..4a196653398c 100644 --- a/clients/client-cloudwatch-logs/src/commands/DisassociateKmsKeyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/DisassociateKmsKeyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { DisassociateKmsKeyRequest } from "../models/models_0"; -import { DisassociateKmsKey } from "../schemas/schemas"; +import { de_DisassociateKmsKeyCommand, se_DisassociateKmsKeyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -100,12 +101,16 @@ export class DisassociateKmsKeyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "DisassociateKmsKey", {}) .n("CloudWatchLogsClient", "DisassociateKmsKeyCommand") .f(void 0, void 0) - .sc(DisassociateKmsKey) + .ser(se_DisassociateKmsKeyCommand) + .de(de_DisassociateKmsKeyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/FilterLogEventsCommand.ts b/clients/client-cloudwatch-logs/src/commands/FilterLogEventsCommand.ts index 0e9730582c55..0f21f3b388fe 100644 --- a/clients/client-cloudwatch-logs/src/commands/FilterLogEventsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/FilterLogEventsCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { FilterLogEventsRequest, FilterLogEventsResponse } from "../models/models_0"; -import { FilterLogEvents } from "../schemas/schemas"; +import { de_FilterLogEventsCommand, se_FilterLogEventsCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -147,12 +148,16 @@ export class FilterLogEventsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "FilterLogEvents", {}) .n("CloudWatchLogsClient", "FilterLogEventsCommand") .f(void 0, void 0) - .sc(FilterLogEvents) + .ser(se_FilterLogEventsCommand) + .de(de_FilterLogEventsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetDataProtectionPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetDataProtectionPolicyCommand.ts index b9b3bc009f63..397ac1a540e1 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetDataProtectionPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetDataProtectionPolicyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetDataProtectionPolicyRequest, GetDataProtectionPolicyResponse } from "../models/models_0"; -import { GetDataProtectionPolicy } from "../schemas/schemas"; +import { de_GetDataProtectionPolicyCommand, se_GetDataProtectionPolicyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -81,12 +82,16 @@ export class GetDataProtectionPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "GetDataProtectionPolicy", {}) .n("CloudWatchLogsClient", "GetDataProtectionPolicyCommand") .f(void 0, void 0) - .sc(GetDataProtectionPolicy) + .ser(se_GetDataProtectionPolicyCommand) + .de(de_GetDataProtectionPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetDeliveryCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetDeliveryCommand.ts index 602ff5efd019..07eab25fc3c7 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetDeliveryCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetDeliveryCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetDeliveryRequest, GetDeliveryResponse } from "../models/models_0"; -import { GetDelivery } from "../schemas/schemas"; +import { de_GetDeliveryCommand, se_GetDeliveryCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -112,12 +113,16 @@ export class GetDeliveryCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "GetDelivery", {}) .n("CloudWatchLogsClient", "GetDeliveryCommand") .f(void 0, void 0) - .sc(GetDelivery) + .ser(se_GetDeliveryCommand) + .de(de_GetDeliveryCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationCommand.ts index 327da4f50673..74dee816d8c8 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetDeliveryDestinationRequest, GetDeliveryDestinationResponse } from "../models/models_0"; -import { GetDeliveryDestination } from "../schemas/schemas"; +import { de_GetDeliveryDestinationCommand, se_GetDeliveryDestinationCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -93,12 +94,16 @@ export class GetDeliveryDestinationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "GetDeliveryDestination", {}) .n("CloudWatchLogsClient", "GetDeliveryDestinationCommand") .f(void 0, void 0) - .sc(GetDeliveryDestination) + .ser(se_GetDeliveryDestinationCommand) + .de(de_GetDeliveryDestinationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationPolicyCommand.ts index 93c407fcddbb..8d1329acea62 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetDeliveryDestinationPolicyCommand.ts @@ -1,12 +1,16 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetDeliveryDestinationPolicyRequest, GetDeliveryDestinationPolicyResponse } from "../models/models_0"; -import { GetDeliveryDestinationPolicy } from "../schemas/schemas"; +import { + de_GetDeliveryDestinationPolicyCommand, + se_GetDeliveryDestinationPolicyCommand, +} from "../protocols/Aws_json1_1"; /** * @public @@ -81,12 +85,16 @@ export class GetDeliveryDestinationPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "GetDeliveryDestinationPolicy", {}) .n("CloudWatchLogsClient", "GetDeliveryDestinationPolicyCommand") .f(void 0, void 0) - .sc(GetDeliveryDestinationPolicy) + .ser(se_GetDeliveryDestinationPolicyCommand) + .de(de_GetDeliveryDestinationPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetDeliverySourceCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetDeliverySourceCommand.ts index 1e2498a8b8d9..80c23a8e2162 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetDeliverySourceCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetDeliverySourceCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetDeliverySourceRequest, GetDeliverySourceResponse } from "../models/models_0"; -import { GetDeliverySource } from "../schemas/schemas"; +import { de_GetDeliverySourceCommand, se_GetDeliverySourceCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -93,12 +94,16 @@ export class GetDeliverySourceCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "GetDeliverySource", {}) .n("CloudWatchLogsClient", "GetDeliverySourceCommand") .f(void 0, void 0) - .sc(GetDeliverySource) + .ser(se_GetDeliverySourceCommand) + .de(de_GetDeliverySourceCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetIntegrationCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetIntegrationCommand.ts index e94c2afee1d2..4f2799279b7c 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetIntegrationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetIntegrationCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetIntegrationRequest, GetIntegrationResponse } from "../models/models_0"; -import { GetIntegration } from "../schemas/schemas"; +import { de_GetIntegrationCommand, se_GetIntegrationCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -132,12 +133,16 @@ export class GetIntegrationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "GetIntegration", {}) .n("CloudWatchLogsClient", "GetIntegrationCommand") .f(void 0, void 0) - .sc(GetIntegration) + .ser(se_GetIntegrationCommand) + .de(de_GetIntegrationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetLogAnomalyDetectorCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetLogAnomalyDetectorCommand.ts index 3e5134b0076d..00dfaf31dbe2 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetLogAnomalyDetectorCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetLogAnomalyDetectorCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetLogAnomalyDetectorRequest, GetLogAnomalyDetectorResponse } from "../models/models_0"; -import { GetLogAnomalyDetector } from "../schemas/schemas"; +import { de_GetLogAnomalyDetectorCommand, se_GetLogAnomalyDetectorCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -89,12 +90,16 @@ export class GetLogAnomalyDetectorCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "GetLogAnomalyDetector", {}) .n("CloudWatchLogsClient", "GetLogAnomalyDetectorCommand") .f(void 0, void 0) - .sc(GetLogAnomalyDetector) + .ser(se_GetLogAnomalyDetectorCommand) + .de(de_GetLogAnomalyDetectorCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetLogEventsCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetLogEventsCommand.ts index 6022def2e147..0116c4f0987c 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetLogEventsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetLogEventsCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetLogEventsRequest, GetLogEventsResponse } from "../models/models_0"; -import { GetLogEvents } from "../schemas/schemas"; +import { de_GetLogEventsCommand, se_GetLogEventsCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -124,12 +125,16 @@ export class GetLogEventsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "GetLogEvents", {}) .n("CloudWatchLogsClient", "GetLogEventsCommand") .f(void 0, void 0) - .sc(GetLogEvents) + .ser(se_GetLogEventsCommand) + .de(de_GetLogEventsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetLogGroupFieldsCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetLogGroupFieldsCommand.ts index de887fe42746..6e78e553e401 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetLogGroupFieldsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetLogGroupFieldsCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetLogGroupFieldsRequest, GetLogGroupFieldsResponse } from "../models/models_0"; -import { GetLogGroupFields } from "../schemas/schemas"; +import { de_GetLogGroupFieldsCommand, se_GetLogGroupFieldsCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -100,12 +101,16 @@ export class GetLogGroupFieldsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "GetLogGroupFields", {}) .n("CloudWatchLogsClient", "GetLogGroupFieldsCommand") .f(void 0, void 0) - .sc(GetLogGroupFields) + .ser(se_GetLogGroupFieldsCommand) + .de(de_GetLogGroupFieldsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetLogObjectCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetLogObjectCommand.ts index 51e84bc4581c..39de2e96da85 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetLogObjectCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetLogObjectCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetLogObjectRequest, GetLogObjectResponse, GetLogObjectResponseFilterSensitiveLog } from "../models/models_0"; -import { GetLogObject } from "../schemas/schemas"; +import { de_GetLogObjectCommand, se_GetLogObjectCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -93,7 +94,10 @@ export class GetLogObjectCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "GetLogObject", { /** @@ -105,7 +109,8 @@ export class GetLogObjectCommand extends $Command }) .n("CloudWatchLogsClient", "GetLogObjectCommand") .f(void 0, GetLogObjectResponseFilterSensitiveLog) - .sc(GetLogObject) + .ser(se_GetLogObjectCommand) + .de(de_GetLogObjectCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetLogRecordCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetLogRecordCommand.ts index 01e8d0eee512..0556de5472d3 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetLogRecordCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetLogRecordCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetLogRecordRequest, GetLogRecordResponse } from "../models/models_0"; -import { GetLogRecord } from "../schemas/schemas"; +import { de_GetLogRecordCommand, se_GetLogRecordCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -85,12 +86,16 @@ export class GetLogRecordCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "GetLogRecord", {}) .n("CloudWatchLogsClient", "GetLogRecordCommand") .f(void 0, void 0) - .sc(GetLogRecord) + .ser(se_GetLogRecordCommand) + .de(de_GetLogRecordCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetQueryResultsCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetQueryResultsCommand.ts index 142f87d600dd..b6a7021d7452 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetQueryResultsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetQueryResultsCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetQueryResultsRequest, GetQueryResultsResponse } from "../models/models_0"; -import { GetQueryResults } from "../schemas/schemas"; +import { de_GetQueryResultsCommand, se_GetQueryResultsCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -109,12 +110,16 @@ export class GetQueryResultsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "GetQueryResults", {}) .n("CloudWatchLogsClient", "GetQueryResultsCommand") .f(void 0, void 0) - .sc(GetQueryResults) + .ser(se_GetQueryResultsCommand) + .de(de_GetQueryResultsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/GetTransformerCommand.ts b/clients/client-cloudwatch-logs/src/commands/GetTransformerCommand.ts index f21d5339b801..536a1558a4cd 100644 --- a/clients/client-cloudwatch-logs/src/commands/GetTransformerCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/GetTransformerCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { GetTransformerRequest, GetTransformerResponse } from "../models/models_0"; -import { GetTransformer } from "../schemas/schemas"; +import { de_GetTransformerCommand, se_GetTransformerCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -232,12 +233,16 @@ export class GetTransformerCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "GetTransformer", {}) .n("CloudWatchLogsClient", "GetTransformerCommand") .f(void 0, void 0) - .sc(GetTransformer) + .ser(se_GetTransformerCommand) + .de(de_GetTransformerCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/ListAnomaliesCommand.ts b/clients/client-cloudwatch-logs/src/commands/ListAnomaliesCommand.ts index 615e8aed348e..e318a03083a7 100644 --- a/clients/client-cloudwatch-logs/src/commands/ListAnomaliesCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/ListAnomaliesCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { ListAnomaliesRequest, ListAnomaliesResponse } from "../models/models_0"; -import { ListAnomalies } from "../schemas/schemas"; +import { de_ListAnomaliesCommand, se_ListAnomaliesCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -126,12 +127,16 @@ export class ListAnomaliesCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "ListAnomalies", {}) .n("CloudWatchLogsClient", "ListAnomaliesCommand") .f(void 0, void 0) - .sc(ListAnomalies) + .ser(se_ListAnomaliesCommand) + .de(de_ListAnomaliesCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/ListIntegrationsCommand.ts b/clients/client-cloudwatch-logs/src/commands/ListIntegrationsCommand.ts index d5769d4650f5..0469751a1571 100644 --- a/clients/client-cloudwatch-logs/src/commands/ListIntegrationsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/ListIntegrationsCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { ListIntegrationsRequest, ListIntegrationsResponse } from "../models/models_0"; -import { ListIntegrations } from "../schemas/schemas"; +import { de_ListIntegrationsCommand, se_ListIntegrationsCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -83,12 +84,16 @@ export class ListIntegrationsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "ListIntegrations", {}) .n("CloudWatchLogsClient", "ListIntegrationsCommand") .f(void 0, void 0) - .sc(ListIntegrations) + .ser(se_ListIntegrationsCommand) + .de(de_ListIntegrationsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/ListLogAnomalyDetectorsCommand.ts b/clients/client-cloudwatch-logs/src/commands/ListLogAnomalyDetectorsCommand.ts index 808b0bc3479a..ba6bad82c72a 100644 --- a/clients/client-cloudwatch-logs/src/commands/ListLogAnomalyDetectorsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/ListLogAnomalyDetectorsCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { ListLogAnomalyDetectorsRequest, ListLogAnomalyDetectorsResponse } from "../models/models_0"; -import { ListLogAnomalyDetectors } from "../schemas/schemas"; +import { de_ListLogAnomalyDetectorsCommand, se_ListLogAnomalyDetectorsCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -97,12 +98,16 @@ export class ListLogAnomalyDetectorsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "ListLogAnomalyDetectors", {}) .n("CloudWatchLogsClient", "ListLogAnomalyDetectorsCommand") .f(void 0, void 0) - .sc(ListLogAnomalyDetectors) + .ser(se_ListLogAnomalyDetectorsCommand) + .de(de_ListLogAnomalyDetectorsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/ListLogGroupsCommand.ts b/clients/client-cloudwatch-logs/src/commands/ListLogGroupsCommand.ts index 9ea2264119b2..5fc64773f3e7 100644 --- a/clients/client-cloudwatch-logs/src/commands/ListLogGroupsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/ListLogGroupsCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { ListLogGroupsRequest, ListLogGroupsResponse } from "../models/models_0"; -import { ListLogGroups } from "../schemas/schemas"; +import { de_ListLogGroupsCommand, se_ListLogGroupsCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -95,12 +96,16 @@ export class ListLogGroupsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "ListLogGroups", {}) .n("CloudWatchLogsClient", "ListLogGroupsCommand") .f(void 0, void 0) - .sc(ListLogGroups) + .ser(se_ListLogGroupsCommand) + .de(de_ListLogGroupsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/ListLogGroupsForQueryCommand.ts b/clients/client-cloudwatch-logs/src/commands/ListLogGroupsForQueryCommand.ts index f29bf85d88b1..fbc344e48175 100644 --- a/clients/client-cloudwatch-logs/src/commands/ListLogGroupsForQueryCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/ListLogGroupsForQueryCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { ListLogGroupsForQueryRequest, ListLogGroupsForQueryResponse } from "../models/models_0"; -import { ListLogGroupsForQuery } from "../schemas/schemas"; +import { de_ListLogGroupsForQueryCommand, se_ListLogGroupsForQueryCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -89,12 +90,16 @@ export class ListLogGroupsForQueryCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "ListLogGroupsForQuery", {}) .n("CloudWatchLogsClient", "ListLogGroupsForQueryCommand") .f(void 0, void 0) - .sc(ListLogGroupsForQuery) + .ser(se_ListLogGroupsForQueryCommand) + .de(de_ListLogGroupsForQueryCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/ListTagsForResourceCommand.ts b/clients/client-cloudwatch-logs/src/commands/ListTagsForResourceCommand.ts index 4da05a8d7e30..01c8829b6406 100644 --- a/clients/client-cloudwatch-logs/src/commands/ListTagsForResourceCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/ListTagsForResourceCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0"; -import { ListTagsForResource } from "../schemas/schemas"; +import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -79,12 +80,16 @@ export class ListTagsForResourceCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "ListTagsForResource", {}) .n("CloudWatchLogsClient", "ListTagsForResourceCommand") .f(void 0, void 0) - .sc(ListTagsForResource) + .ser(se_ListTagsForResourceCommand) + .de(de_ListTagsForResourceCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/ListTagsLogGroupCommand.ts b/clients/client-cloudwatch-logs/src/commands/ListTagsLogGroupCommand.ts index 597de08e5a20..16e2cedddbba 100644 --- a/clients/client-cloudwatch-logs/src/commands/ListTagsLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/ListTagsLogGroupCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { ListTagsLogGroupRequest, ListTagsLogGroupResponse } from "../models/models_0"; -import { ListTagsLogGroup } from "../schemas/schemas"; +import { de_ListTagsLogGroupCommand, se_ListTagsLogGroupCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -81,12 +82,16 @@ export class ListTagsLogGroupCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "ListTagsLogGroup", {}) .n("CloudWatchLogsClient", "ListTagsLogGroupCommand") .f(void 0, void 0) - .sc(ListTagsLogGroup) + .ser(se_ListTagsLogGroupCommand) + .de(de_ListTagsLogGroupCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutAccountPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutAccountPolicyCommand.ts index a22489237e28..eb5222f5995f 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutAccountPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutAccountPolicyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutAccountPolicyRequest, PutAccountPolicyResponse } from "../models/models_0"; -import { PutAccountPolicy } from "../schemas/schemas"; +import { de_PutAccountPolicyCommand, se_PutAccountPolicyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -302,12 +303,16 @@ export class PutAccountPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutAccountPolicy", {}) .n("CloudWatchLogsClient", "PutAccountPolicyCommand") .f(void 0, void 0) - .sc(PutAccountPolicy) + .ser(se_PutAccountPolicyCommand) + .de(de_PutAccountPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutDataProtectionPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutDataProtectionPolicyCommand.ts index 628e57239cde..8143b0bda59e 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutDataProtectionPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutDataProtectionPolicyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutDataProtectionPolicyRequest, PutDataProtectionPolicyResponse } from "../models/models_0"; -import { PutDataProtectionPolicy } from "../schemas/schemas"; +import { de_PutDataProtectionPolicyCommand, se_PutDataProtectionPolicyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -106,12 +107,16 @@ export class PutDataProtectionPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutDataProtectionPolicy", {}) .n("CloudWatchLogsClient", "PutDataProtectionPolicyCommand") .f(void 0, void 0) - .sc(PutDataProtectionPolicy) + .ser(se_PutDataProtectionPolicyCommand) + .de(de_PutDataProtectionPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationCommand.ts index cfe54c7621d3..fe5e79b99c39 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutDeliveryDestinationRequest, PutDeliveryDestinationResponse } from "../models/models_0"; -import { PutDeliveryDestination } from "../schemas/schemas"; +import { de_PutDeliveryDestinationCommand, se_PutDeliveryDestinationCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -140,12 +141,16 @@ export class PutDeliveryDestinationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutDeliveryDestination", {}) .n("CloudWatchLogsClient", "PutDeliveryDestinationCommand") .f(void 0, void 0) - .sc(PutDeliveryDestination) + .ser(se_PutDeliveryDestinationCommand) + .de(de_PutDeliveryDestinationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationPolicyCommand.ts index 56e51837ca15..d41c29dddf9f 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationPolicyCommand.ts @@ -1,12 +1,16 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutDeliveryDestinationPolicyRequest, PutDeliveryDestinationPolicyResponse } from "../models/models_0"; -import { PutDeliveryDestinationPolicy } from "../schemas/schemas"; +import { + de_PutDeliveryDestinationPolicyCommand, + se_PutDeliveryDestinationPolicyCommand, +} from "../protocols/Aws_json1_1"; /** * @public @@ -112,12 +116,16 @@ export class PutDeliveryDestinationPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutDeliveryDestinationPolicy", {}) .n("CloudWatchLogsClient", "PutDeliveryDestinationPolicyCommand") .f(void 0, void 0) - .sc(PutDeliveryDestinationPolicy) + .ser(se_PutDeliveryDestinationPolicyCommand) + .de(de_PutDeliveryDestinationPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutDeliverySourceCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutDeliverySourceCommand.ts index 53c46e506c91..9759366adb64 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutDeliverySourceCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutDeliverySourceCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutDeliverySourceRequest, PutDeliverySourceResponse } from "../models/models_0"; -import { PutDeliverySource } from "../schemas/schemas"; +import { de_PutDeliverySourceCommand, se_PutDeliverySourceCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -134,12 +135,16 @@ export class PutDeliverySourceCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutDeliverySource", {}) .n("CloudWatchLogsClient", "PutDeliverySourceCommand") .f(void 0, void 0) - .sc(PutDeliverySource) + .ser(se_PutDeliverySourceCommand) + .de(de_PutDeliverySourceCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutDestinationCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutDestinationCommand.ts index e95ef0902710..17b3c6f5f532 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutDestinationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutDestinationCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutDestinationRequest, PutDestinationResponse } from "../models/models_0"; -import { PutDestination } from "../schemas/schemas"; +import { de_PutDestinationCommand, se_PutDestinationCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -98,12 +99,16 @@ export class PutDestinationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutDestination", {}) .n("CloudWatchLogsClient", "PutDestinationCommand") .f(void 0, void 0) - .sc(PutDestination) + .ser(se_PutDestinationCommand) + .de(de_PutDestinationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutDestinationPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutDestinationPolicyCommand.ts index be18beb10551..85b05929c529 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutDestinationPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutDestinationPolicyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutDestinationPolicyRequest } from "../models/models_0"; -import { PutDestinationPolicy } from "../schemas/schemas"; +import { de_PutDestinationPolicyCommand, se_PutDestinationPolicyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -79,12 +80,16 @@ export class PutDestinationPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutDestinationPolicy", {}) .n("CloudWatchLogsClient", "PutDestinationPolicyCommand") .f(void 0, void 0) - .sc(PutDestinationPolicy) + .ser(se_PutDestinationPolicyCommand) + .de(de_PutDestinationPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutIndexPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutIndexPolicyCommand.ts index 5c7f3aebe2da..05c8fa0dc94e 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutIndexPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutIndexPolicyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutIndexPolicyRequest, PutIndexPolicyResponse } from "../models/models_0"; -import { PutIndexPolicy } from "../schemas/schemas"; +import { de_PutIndexPolicyCommand, se_PutIndexPolicyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -122,12 +123,16 @@ export class PutIndexPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutIndexPolicy", {}) .n("CloudWatchLogsClient", "PutIndexPolicyCommand") .f(void 0, void 0) - .sc(PutIndexPolicy) + .ser(se_PutIndexPolicyCommand) + .de(de_PutIndexPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutIntegrationCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutIntegrationCommand.ts index fb5f4636628f..068cf0d23ff1 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutIntegrationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutIntegrationCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutIntegrationRequest, PutIntegrationResponse } from "../models/models_0"; -import { PutIntegration } from "../schemas/schemas"; +import { de_PutIntegrationCommand, se_PutIntegrationCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -99,12 +100,16 @@ export class PutIntegrationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutIntegration", {}) .n("CloudWatchLogsClient", "PutIntegrationCommand") .f(void 0, void 0) - .sc(PutIntegration) + .ser(se_PutIntegrationCommand) + .de(de_PutIntegrationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutLogEventsCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutLogEventsCommand.ts index 0b48997bf680..ef2c65ce66dc 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutLogEventsCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutLogEventsCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutLogEventsRequest, PutLogEventsResponse } from "../models/models_0"; -import { PutLogEvents } from "../schemas/schemas"; +import { de_PutLogEventsCommand, se_PutLogEventsCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -175,12 +176,16 @@ export class PutLogEventsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutLogEvents", {}) .n("CloudWatchLogsClient", "PutLogEventsCommand") .f(void 0, void 0) - .sc(PutLogEvents) + .ser(se_PutLogEventsCommand) + .de(de_PutLogEventsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutMetricFilterCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutMetricFilterCommand.ts index d1e81f5d17c7..28d119da2e11 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutMetricFilterCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutMetricFilterCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutMetricFilterRequest } from "../models/models_0"; -import { PutMetricFilter } from "../schemas/schemas"; +import { de_PutMetricFilterCommand, se_PutMetricFilterCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -121,12 +122,16 @@ export class PutMetricFilterCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutMetricFilter", {}) .n("CloudWatchLogsClient", "PutMetricFilterCommand") .f(void 0, void 0) - .sc(PutMetricFilter) + .ser(se_PutMetricFilterCommand) + .de(de_PutMetricFilterCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutQueryDefinitionCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutQueryDefinitionCommand.ts index df3e7c8f5d7a..c17ca35ff009 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutQueryDefinitionCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutQueryDefinitionCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutQueryDefinitionRequest, PutQueryDefinitionResponse } from "../models/models_0"; -import { PutQueryDefinition } from "../schemas/schemas"; +import { de_PutQueryDefinitionCommand, se_PutQueryDefinitionCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -96,12 +97,16 @@ export class PutQueryDefinitionCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutQueryDefinition", {}) .n("CloudWatchLogsClient", "PutQueryDefinitionCommand") .f(void 0, void 0) - .sc(PutQueryDefinition) + .ser(se_PutQueryDefinitionCommand) + .de(de_PutQueryDefinitionCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutResourcePolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutResourcePolicyCommand.ts index 7b6f3936c454..1411c969c3bd 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutResourcePolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutResourcePolicyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0"; -import { PutResourcePolicy } from "../schemas/schemas"; +import { de_PutResourcePolicyCommand, se_PutResourcePolicyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -95,12 +96,16 @@ export class PutResourcePolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutResourcePolicy", {}) .n("CloudWatchLogsClient", "PutResourcePolicyCommand") .f(void 0, void 0) - .sc(PutResourcePolicy) + .ser(se_PutResourcePolicyCommand) + .de(de_PutResourcePolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutRetentionPolicyCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutRetentionPolicyCommand.ts index 6d08f1d5744e..1933ddb70352 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutRetentionPolicyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutRetentionPolicyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutRetentionPolicyRequest } from "../models/models_0"; -import { PutRetentionPolicy } from "../schemas/schemas"; +import { de_PutRetentionPolicyCommand, se_PutRetentionPolicyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -97,12 +98,16 @@ export class PutRetentionPolicyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutRetentionPolicy", {}) .n("CloudWatchLogsClient", "PutRetentionPolicyCommand") .f(void 0, void 0) - .sc(PutRetentionPolicy) + .ser(se_PutRetentionPolicyCommand) + .de(de_PutRetentionPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutSubscriptionFilterCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutSubscriptionFilterCommand.ts index a1c18e267468..44fe985c7ae9 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutSubscriptionFilterCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutSubscriptionFilterCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutSubscriptionFilterRequest } from "../models/models_0"; -import { PutSubscriptionFilter } from "../schemas/schemas"; +import { de_PutSubscriptionFilterCommand, se_PutSubscriptionFilterCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -123,12 +124,16 @@ export class PutSubscriptionFilterCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutSubscriptionFilter", {}) .n("CloudWatchLogsClient", "PutSubscriptionFilterCommand") .f(void 0, void 0) - .sc(PutSubscriptionFilter) + .ser(se_PutSubscriptionFilterCommand) + .de(de_PutSubscriptionFilterCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/PutTransformerCommand.ts b/clients/client-cloudwatch-logs/src/commands/PutTransformerCommand.ts index 88294d82b576..717a1df909f5 100644 --- a/clients/client-cloudwatch-logs/src/commands/PutTransformerCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/PutTransformerCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { PutTransformerRequest } from "../models/models_0"; -import { PutTransformer } from "../schemas/schemas"; +import { de_PutTransformerCommand, se_PutTransformerCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -256,12 +257,16 @@ export class PutTransformerCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "PutTransformer", {}) .n("CloudWatchLogsClient", "PutTransformerCommand") .f(void 0, void 0) - .sc(PutTransformer) + .ser(se_PutTransformerCommand) + .de(de_PutTransformerCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/StartLiveTailCommand.ts b/clients/client-cloudwatch-logs/src/commands/StartLiveTailCommand.ts index 88ee45f06b9d..a91e98f4457d 100644 --- a/clients/client-cloudwatch-logs/src/commands/StartLiveTailCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/StartLiveTailCommand.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; @@ -10,7 +11,7 @@ import { StartLiveTailResponse, StartLiveTailResponseFilterSensitiveLog, } from "../models/models_0"; -import { StartLiveTail } from "../schemas/schemas"; +import { de_StartLiveTailCommand, se_StartLiveTailCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -173,7 +174,10 @@ export class StartLiveTailCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "StartLiveTail", { /** @@ -185,7 +189,8 @@ export class StartLiveTailCommand extends $Command }) .n("CloudWatchLogsClient", "StartLiveTailCommand") .f(void 0, StartLiveTailResponseFilterSensitiveLog) - .sc(StartLiveTail) + .ser(se_StartLiveTailCommand) + .de(de_StartLiveTailCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/StartQueryCommand.ts b/clients/client-cloudwatch-logs/src/commands/StartQueryCommand.ts index c9df90a229bc..d8b2c0831145 100644 --- a/clients/client-cloudwatch-logs/src/commands/StartQueryCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/StartQueryCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { StartQueryRequest, StartQueryResponse } from "../models/models_0"; -import { StartQuery } from "../schemas/schemas"; +import { de_StartQueryCommand, se_StartQueryCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -133,12 +134,16 @@ export class StartQueryCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "StartQuery", {}) .n("CloudWatchLogsClient", "StartQueryCommand") .f(void 0, void 0) - .sc(StartQuery) + .ser(se_StartQueryCommand) + .de(de_StartQueryCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/StopQueryCommand.ts b/clients/client-cloudwatch-logs/src/commands/StopQueryCommand.ts index cbae593a5144..00ed9fcf00ec 100644 --- a/clients/client-cloudwatch-logs/src/commands/StopQueryCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/StopQueryCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { StopQueryRequest, StopQueryResponse } from "../models/models_0"; -import { StopQuery } from "../schemas/schemas"; +import { de_StopQueryCommand, se_StopQueryCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -78,12 +79,16 @@ export class StopQueryCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "StopQuery", {}) .n("CloudWatchLogsClient", "StopQueryCommand") .f(void 0, void 0) - .sc(StopQuery) + .ser(se_StopQueryCommand) + .de(de_StopQueryCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/TagLogGroupCommand.ts b/clients/client-cloudwatch-logs/src/commands/TagLogGroupCommand.ts index 1f7f52adb06e..b2dc73d49080 100644 --- a/clients/client-cloudwatch-logs/src/commands/TagLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/TagLogGroupCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { TagLogGroupRequest } from "../models/models_0"; -import { TagLogGroup } from "../schemas/schemas"; +import { de_TagLogGroupCommand, se_TagLogGroupCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -89,12 +90,16 @@ export class TagLogGroupCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "TagLogGroup", {}) .n("CloudWatchLogsClient", "TagLogGroupCommand") .f(void 0, void 0) - .sc(TagLogGroup) + .ser(se_TagLogGroupCommand) + .de(de_TagLogGroupCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/TagResourceCommand.ts b/clients/client-cloudwatch-logs/src/commands/TagResourceCommand.ts index 3ee81bbabbca..1251c339bbdd 100644 --- a/clients/client-cloudwatch-logs/src/commands/TagResourceCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/TagResourceCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { TagResourceRequest } from "../models/models_0"; -import { TagResource } from "../schemas/schemas"; +import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -92,12 +93,16 @@ export class TagResourceCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "TagResource", {}) .n("CloudWatchLogsClient", "TagResourceCommand") .f(void 0, void 0) - .sc(TagResource) + .ser(se_TagResourceCommand) + .de(de_TagResourceCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/TestMetricFilterCommand.ts b/clients/client-cloudwatch-logs/src/commands/TestMetricFilterCommand.ts index bb9a9d73120e..392c8cf0d063 100644 --- a/clients/client-cloudwatch-logs/src/commands/TestMetricFilterCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/TestMetricFilterCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { TestMetricFilterRequest, TestMetricFilterResponse } from "../models/models_0"; -import { TestMetricFilter } from "../schemas/schemas"; +import { de_TestMetricFilterCommand, se_TestMetricFilterCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -85,12 +86,16 @@ export class TestMetricFilterCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "TestMetricFilter", {}) .n("CloudWatchLogsClient", "TestMetricFilterCommand") .f(void 0, void 0) - .sc(TestMetricFilter) + .ser(se_TestMetricFilterCommand) + .de(de_TestMetricFilterCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/TestTransformerCommand.ts b/clients/client-cloudwatch-logs/src/commands/TestTransformerCommand.ts index d8be93ea3802..3bb29688fb41 100644 --- a/clients/client-cloudwatch-logs/src/commands/TestTransformerCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/TestTransformerCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { TestTransformerRequest, TestTransformerResponse } from "../models/models_0"; -import { TestTransformer } from "../schemas/schemas"; +import { de_TestTransformerCommand, se_TestTransformerCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -235,12 +236,16 @@ export class TestTransformerCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "TestTransformer", {}) .n("CloudWatchLogsClient", "TestTransformerCommand") .f(void 0, void 0) - .sc(TestTransformer) + .ser(se_TestTransformerCommand) + .de(de_TestTransformerCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/UntagLogGroupCommand.ts b/clients/client-cloudwatch-logs/src/commands/UntagLogGroupCommand.ts index 8bcb9bfeb355..d304974fe39d 100644 --- a/clients/client-cloudwatch-logs/src/commands/UntagLogGroupCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/UntagLogGroupCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { UntagLogGroupRequest } from "../models/models_0"; -import { UntagLogGroup } from "../schemas/schemas"; +import { de_UntagLogGroupCommand, se_UntagLogGroupCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -81,12 +82,16 @@ export class UntagLogGroupCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "UntagLogGroup", {}) .n("CloudWatchLogsClient", "UntagLogGroupCommand") .f(void 0, void 0) - .sc(UntagLogGroup) + .ser(se_UntagLogGroupCommand) + .de(de_UntagLogGroupCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/UntagResourceCommand.ts b/clients/client-cloudwatch-logs/src/commands/UntagResourceCommand.ts index cad64be722b4..f8b3db2ae7e8 100644 --- a/clients/client-cloudwatch-logs/src/commands/UntagResourceCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/UntagResourceCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { UntagResourceRequest } from "../models/models_0"; -import { UntagResource } from "../schemas/schemas"; +import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -77,12 +78,16 @@ export class UntagResourceCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "UntagResource", {}) .n("CloudWatchLogsClient", "UntagResourceCommand") .f(void 0, void 0) - .sc(UntagResource) + .ser(se_UntagResourceCommand) + .de(de_UntagResourceCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/UpdateAnomalyCommand.ts b/clients/client-cloudwatch-logs/src/commands/UpdateAnomalyCommand.ts index 38c115da8298..f1cfe5f76efa 100644 --- a/clients/client-cloudwatch-logs/src/commands/UpdateAnomalyCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/UpdateAnomalyCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { UpdateAnomalyRequest } from "../models/models_0"; -import { UpdateAnomaly } from "../schemas/schemas"; +import { de_UpdateAnomalyCommand, se_UpdateAnomalyCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -94,12 +95,16 @@ export class UpdateAnomalyCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "UpdateAnomaly", {}) .n("CloudWatchLogsClient", "UpdateAnomalyCommand") .f(void 0, void 0) - .sc(UpdateAnomaly) + .ser(se_UpdateAnomalyCommand) + .de(de_UpdateAnomalyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/UpdateDeliveryConfigurationCommand.ts b/clients/client-cloudwatch-logs/src/commands/UpdateDeliveryConfigurationCommand.ts index 1b9c11cf658a..1db76d22a89e 100644 --- a/clients/client-cloudwatch-logs/src/commands/UpdateDeliveryConfigurationCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/UpdateDeliveryConfigurationCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { UpdateDeliveryConfigurationRequest, UpdateDeliveryConfigurationResponse } from "../models/models_0"; -import { UpdateDeliveryConfiguration } from "../schemas/schemas"; +import { de_UpdateDeliveryConfigurationCommand, se_UpdateDeliveryConfigurationCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -95,12 +96,16 @@ export class UpdateDeliveryConfigurationCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "UpdateDeliveryConfiguration", {}) .n("CloudWatchLogsClient", "UpdateDeliveryConfigurationCommand") .f(void 0, void 0) - .sc(UpdateDeliveryConfiguration) + .ser(se_UpdateDeliveryConfigurationCommand) + .de(de_UpdateDeliveryConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/commands/UpdateLogAnomalyDetectorCommand.ts b/clients/client-cloudwatch-logs/src/commands/UpdateLogAnomalyDetectorCommand.ts index fa1454d26900..0b2ec15e4b07 100644 --- a/clients/client-cloudwatch-logs/src/commands/UpdateLogAnomalyDetectorCommand.ts +++ b/clients/client-cloudwatch-logs/src/commands/UpdateLogAnomalyDetectorCommand.ts @@ -1,12 +1,13 @@ // smithy-typescript generated code import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { UpdateLogAnomalyDetectorRequest } from "../models/models_0"; -import { UpdateLogAnomalyDetector } from "../schemas/schemas"; +import { de_UpdateLogAnomalyDetectorCommand, se_UpdateLogAnomalyDetectorCommand } from "../protocols/Aws_json1_1"; /** * @public @@ -81,12 +82,16 @@ export class UpdateLogAnomalyDetectorCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: CloudWatchLogsClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("Logs_20140328", "UpdateLogAnomalyDetector", {}) .n("CloudWatchLogsClient", "UpdateLogAnomalyDetectorCommand") .f(void 0, void 0) - .sc(UpdateLogAnomalyDetector) + .ser(se_UpdateLogAnomalyDetectorCommand) + .de(de_UpdateLogAnomalyDetectorCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts b/clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts new file mode 100644 index 000000000000..f314d89784e5 --- /dev/null +++ b/clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts @@ -0,0 +1,4765 @@ +// smithy-typescript generated code +import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core"; +import { + HttpRequest as __HttpRequest, + HttpResponse as __HttpResponse, + isValidHostname as __isValidHostname, +} from "@smithy/protocol-http"; +import { + _json, + collectBody, + decorateServiceException as __decorateServiceException, + expectBoolean as __expectBoolean, + expectLong as __expectLong, + expectString as __expectString, + limitedParseDouble as __limitedParseDouble, + serializeFloat as __serializeFloat, + take, + withBaseException, +} from "@smithy/smithy-client"; +import { + Endpoint as __Endpoint, + EventStreamSerdeContext as __EventStreamSerdeContext, + HeaderBag as __HeaderBag, + ResponseMetadata as __ResponseMetadata, + SerdeContext as __SerdeContext, +} from "@smithy/types"; +import { v4 as generateIdempotencyToken } from "uuid"; + +import { AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput } from "../commands/AssociateKmsKeyCommand"; +import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "../commands/CancelExportTaskCommand"; +import { CreateDeliveryCommandInput, CreateDeliveryCommandOutput } from "../commands/CreateDeliveryCommand"; +import { CreateExportTaskCommandInput, CreateExportTaskCommandOutput } from "../commands/CreateExportTaskCommand"; +import { + CreateLogAnomalyDetectorCommandInput, + CreateLogAnomalyDetectorCommandOutput, +} from "../commands/CreateLogAnomalyDetectorCommand"; +import { CreateLogGroupCommandInput, CreateLogGroupCommandOutput } from "../commands/CreateLogGroupCommand"; +import { CreateLogStreamCommandInput, CreateLogStreamCommandOutput } from "../commands/CreateLogStreamCommand"; +import { + DeleteAccountPolicyCommandInput, + DeleteAccountPolicyCommandOutput, +} from "../commands/DeleteAccountPolicyCommand"; +import { + DeleteDataProtectionPolicyCommandInput, + DeleteDataProtectionPolicyCommandOutput, +} from "../commands/DeleteDataProtectionPolicyCommand"; +import { DeleteDeliveryCommandInput, DeleteDeliveryCommandOutput } from "../commands/DeleteDeliveryCommand"; +import { + DeleteDeliveryDestinationCommandInput, + DeleteDeliveryDestinationCommandOutput, +} from "../commands/DeleteDeliveryDestinationCommand"; +import { + DeleteDeliveryDestinationPolicyCommandInput, + DeleteDeliveryDestinationPolicyCommandOutput, +} from "../commands/DeleteDeliveryDestinationPolicyCommand"; +import { + DeleteDeliverySourceCommandInput, + DeleteDeliverySourceCommandOutput, +} from "../commands/DeleteDeliverySourceCommand"; +import { DeleteDestinationCommandInput, DeleteDestinationCommandOutput } from "../commands/DeleteDestinationCommand"; +import { DeleteIndexPolicyCommandInput, DeleteIndexPolicyCommandOutput } from "../commands/DeleteIndexPolicyCommand"; +import { DeleteIntegrationCommandInput, DeleteIntegrationCommandOutput } from "../commands/DeleteIntegrationCommand"; +import { + DeleteLogAnomalyDetectorCommandInput, + DeleteLogAnomalyDetectorCommandOutput, +} from "../commands/DeleteLogAnomalyDetectorCommand"; +import { DeleteLogGroupCommandInput, DeleteLogGroupCommandOutput } from "../commands/DeleteLogGroupCommand"; +import { DeleteLogStreamCommandInput, DeleteLogStreamCommandOutput } from "../commands/DeleteLogStreamCommand"; +import { DeleteMetricFilterCommandInput, DeleteMetricFilterCommandOutput } from "../commands/DeleteMetricFilterCommand"; +import { + DeleteQueryDefinitionCommandInput, + DeleteQueryDefinitionCommandOutput, +} from "../commands/DeleteQueryDefinitionCommand"; +import { + DeleteResourcePolicyCommandInput, + DeleteResourcePolicyCommandOutput, +} from "../commands/DeleteResourcePolicyCommand"; +import { + DeleteRetentionPolicyCommandInput, + DeleteRetentionPolicyCommandOutput, +} from "../commands/DeleteRetentionPolicyCommand"; +import { + DeleteSubscriptionFilterCommandInput, + DeleteSubscriptionFilterCommandOutput, +} from "../commands/DeleteSubscriptionFilterCommand"; +import { DeleteTransformerCommandInput, DeleteTransformerCommandOutput } from "../commands/DeleteTransformerCommand"; +import { + DescribeAccountPoliciesCommandInput, + DescribeAccountPoliciesCommandOutput, +} from "../commands/DescribeAccountPoliciesCommand"; +import { + DescribeConfigurationTemplatesCommandInput, + DescribeConfigurationTemplatesCommandOutput, +} from "../commands/DescribeConfigurationTemplatesCommand"; +import { DescribeDeliveriesCommandInput, DescribeDeliveriesCommandOutput } from "../commands/DescribeDeliveriesCommand"; +import { + DescribeDeliveryDestinationsCommandInput, + DescribeDeliveryDestinationsCommandOutput, +} from "../commands/DescribeDeliveryDestinationsCommand"; +import { + DescribeDeliverySourcesCommandInput, + DescribeDeliverySourcesCommandOutput, +} from "../commands/DescribeDeliverySourcesCommand"; +import { + DescribeDestinationsCommandInput, + DescribeDestinationsCommandOutput, +} from "../commands/DescribeDestinationsCommand"; +import { + DescribeExportTasksCommandInput, + DescribeExportTasksCommandOutput, +} from "../commands/DescribeExportTasksCommand"; +import { + DescribeFieldIndexesCommandInput, + DescribeFieldIndexesCommandOutput, +} from "../commands/DescribeFieldIndexesCommand"; +import { + DescribeIndexPoliciesCommandInput, + DescribeIndexPoliciesCommandOutput, +} from "../commands/DescribeIndexPoliciesCommand"; +import { DescribeLogGroupsCommandInput, DescribeLogGroupsCommandOutput } from "../commands/DescribeLogGroupsCommand"; +import { DescribeLogStreamsCommandInput, DescribeLogStreamsCommandOutput } from "../commands/DescribeLogStreamsCommand"; +import { + DescribeMetricFiltersCommandInput, + DescribeMetricFiltersCommandOutput, +} from "../commands/DescribeMetricFiltersCommand"; +import { DescribeQueriesCommandInput, DescribeQueriesCommandOutput } from "../commands/DescribeQueriesCommand"; +import { + DescribeQueryDefinitionsCommandInput, + DescribeQueryDefinitionsCommandOutput, +} from "../commands/DescribeQueryDefinitionsCommand"; +import { + DescribeResourcePoliciesCommandInput, + DescribeResourcePoliciesCommandOutput, +} from "../commands/DescribeResourcePoliciesCommand"; +import { + DescribeSubscriptionFiltersCommandInput, + DescribeSubscriptionFiltersCommandOutput, +} from "../commands/DescribeSubscriptionFiltersCommand"; +import { DisassociateKmsKeyCommandInput, DisassociateKmsKeyCommandOutput } from "../commands/DisassociateKmsKeyCommand"; +import { FilterLogEventsCommandInput, FilterLogEventsCommandOutput } from "../commands/FilterLogEventsCommand"; +import { + GetDataProtectionPolicyCommandInput, + GetDataProtectionPolicyCommandOutput, +} from "../commands/GetDataProtectionPolicyCommand"; +import { GetDeliveryCommandInput, GetDeliveryCommandOutput } from "../commands/GetDeliveryCommand"; +import { + GetDeliveryDestinationCommandInput, + GetDeliveryDestinationCommandOutput, +} from "../commands/GetDeliveryDestinationCommand"; +import { + GetDeliveryDestinationPolicyCommandInput, + GetDeliveryDestinationPolicyCommandOutput, +} from "../commands/GetDeliveryDestinationPolicyCommand"; +import { GetDeliverySourceCommandInput, GetDeliverySourceCommandOutput } from "../commands/GetDeliverySourceCommand"; +import { GetIntegrationCommandInput, GetIntegrationCommandOutput } from "../commands/GetIntegrationCommand"; +import { + GetLogAnomalyDetectorCommandInput, + GetLogAnomalyDetectorCommandOutput, +} from "../commands/GetLogAnomalyDetectorCommand"; +import { GetLogEventsCommandInput, GetLogEventsCommandOutput } from "../commands/GetLogEventsCommand"; +import { GetLogGroupFieldsCommandInput, GetLogGroupFieldsCommandOutput } from "../commands/GetLogGroupFieldsCommand"; +import { GetLogObjectCommandInput, GetLogObjectCommandOutput } from "../commands/GetLogObjectCommand"; +import { GetLogRecordCommandInput, GetLogRecordCommandOutput } from "../commands/GetLogRecordCommand"; +import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "../commands/GetQueryResultsCommand"; +import { GetTransformerCommandInput, GetTransformerCommandOutput } from "../commands/GetTransformerCommand"; +import { ListAnomaliesCommandInput, ListAnomaliesCommandOutput } from "../commands/ListAnomaliesCommand"; +import { ListIntegrationsCommandInput, ListIntegrationsCommandOutput } from "../commands/ListIntegrationsCommand"; +import { + ListLogAnomalyDetectorsCommandInput, + ListLogAnomalyDetectorsCommandOutput, +} from "../commands/ListLogAnomalyDetectorsCommand"; +import { ListLogGroupsCommandInput, ListLogGroupsCommandOutput } from "../commands/ListLogGroupsCommand"; +import { + ListLogGroupsForQueryCommandInput, + ListLogGroupsForQueryCommandOutput, +} from "../commands/ListLogGroupsForQueryCommand"; +import { + ListTagsForResourceCommandInput, + ListTagsForResourceCommandOutput, +} from "../commands/ListTagsForResourceCommand"; +import { ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput } from "../commands/ListTagsLogGroupCommand"; +import { PutAccountPolicyCommandInput, PutAccountPolicyCommandOutput } from "../commands/PutAccountPolicyCommand"; +import { + PutDataProtectionPolicyCommandInput, + PutDataProtectionPolicyCommandOutput, +} from "../commands/PutDataProtectionPolicyCommand"; +import { + PutDeliveryDestinationCommandInput, + PutDeliveryDestinationCommandOutput, +} from "../commands/PutDeliveryDestinationCommand"; +import { + PutDeliveryDestinationPolicyCommandInput, + PutDeliveryDestinationPolicyCommandOutput, +} from "../commands/PutDeliveryDestinationPolicyCommand"; +import { PutDeliverySourceCommandInput, PutDeliverySourceCommandOutput } from "../commands/PutDeliverySourceCommand"; +import { PutDestinationCommandInput, PutDestinationCommandOutput } from "../commands/PutDestinationCommand"; +import { + PutDestinationPolicyCommandInput, + PutDestinationPolicyCommandOutput, +} from "../commands/PutDestinationPolicyCommand"; +import { PutIndexPolicyCommandInput, PutIndexPolicyCommandOutput } from "../commands/PutIndexPolicyCommand"; +import { PutIntegrationCommandInput, PutIntegrationCommandOutput } from "../commands/PutIntegrationCommand"; +import { PutLogEventsCommandInput, PutLogEventsCommandOutput } from "../commands/PutLogEventsCommand"; +import { PutMetricFilterCommandInput, PutMetricFilterCommandOutput } from "../commands/PutMetricFilterCommand"; +import { PutQueryDefinitionCommandInput, PutQueryDefinitionCommandOutput } from "../commands/PutQueryDefinitionCommand"; +import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "../commands/PutResourcePolicyCommand"; +import { PutRetentionPolicyCommandInput, PutRetentionPolicyCommandOutput } from "../commands/PutRetentionPolicyCommand"; +import { + PutSubscriptionFilterCommandInput, + PutSubscriptionFilterCommandOutput, +} from "../commands/PutSubscriptionFilterCommand"; +import { PutTransformerCommandInput, PutTransformerCommandOutput } from "../commands/PutTransformerCommand"; +import { StartLiveTailCommandInput, StartLiveTailCommandOutput } from "../commands/StartLiveTailCommand"; +import { StartQueryCommandInput, StartQueryCommandOutput } from "../commands/StartQueryCommand"; +import { StopQueryCommandInput, StopQueryCommandOutput } from "../commands/StopQueryCommand"; +import { TagLogGroupCommandInput, TagLogGroupCommandOutput } from "../commands/TagLogGroupCommand"; +import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand"; +import { TestMetricFilterCommandInput, TestMetricFilterCommandOutput } from "../commands/TestMetricFilterCommand"; +import { TestTransformerCommandInput, TestTransformerCommandOutput } from "../commands/TestTransformerCommand"; +import { UntagLogGroupCommandInput, UntagLogGroupCommandOutput } from "../commands/UntagLogGroupCommand"; +import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand"; +import { UpdateAnomalyCommandInput, UpdateAnomalyCommandOutput } from "../commands/UpdateAnomalyCommand"; +import { + UpdateDeliveryConfigurationCommandInput, + UpdateDeliveryConfigurationCommandOutput, +} from "../commands/UpdateDeliveryConfigurationCommand"; +import { + UpdateLogAnomalyDetectorCommandInput, + UpdateLogAnomalyDetectorCommandOutput, +} from "../commands/UpdateLogAnomalyDetectorCommand"; +import { CloudWatchLogsServiceException as __BaseException } from "../models/CloudWatchLogsServiceException"; +import { + AccessDeniedException, + AddKeyEntry, + AddKeys, + AssociateKmsKeyRequest, + CancelExportTaskRequest, + ConflictException, + CopyValue, + CopyValueEntry, + CreateDeliveryRequest, + CreateExportTaskRequest, + CreateLogAnomalyDetectorRequest, + CreateLogGroupRequest, + CreateLogStreamRequest, + CSV, + DataAlreadyAcceptedException, + DateTimeConverter, + DeleteAccountPolicyRequest, + DeleteDataProtectionPolicyRequest, + DeleteDeliveryDestinationPolicyRequest, + DeleteDeliveryDestinationRequest, + DeleteDeliveryRequest, + DeleteDeliverySourceRequest, + DeleteDestinationRequest, + DeleteIndexPolicyRequest, + DeleteIntegrationRequest, + DeleteKeys, + DeleteLogAnomalyDetectorRequest, + DeleteLogGroupRequest, + DeleteLogStreamRequest, + DeleteMetricFilterRequest, + DeleteQueryDefinitionRequest, + DeleteResourcePolicyRequest, + DeleteRetentionPolicyRequest, + DeleteSubscriptionFilterRequest, + DeleteTransformerRequest, + DeliveryDestinationConfiguration, + DeliveryDestinationType, + DescribeAccountPoliciesRequest, + DescribeConfigurationTemplatesRequest, + DescribeDeliveriesRequest, + DescribeDeliveryDestinationsRequest, + DescribeDeliverySourcesRequest, + DescribeDestinationsRequest, + DescribeExportTasksRequest, + DescribeFieldIndexesRequest, + DescribeIndexPoliciesRequest, + DescribeLogGroupsRequest, + DescribeLogStreamsRequest, + DescribeMetricFiltersRequest, + DescribeMetricFiltersResponse, + DescribeQueriesRequest, + DescribeQueryDefinitionsRequest, + DescribeResourcePoliciesRequest, + DescribeSubscriptionFiltersRequest, + DisassociateKmsKeyRequest, + Entity, + FieldsData, + FilterLogEventsRequest, + GetDataProtectionPolicyRequest, + GetDeliveryDestinationPolicyRequest, + GetDeliveryDestinationRequest, + GetDeliveryRequest, + GetDeliverySourceRequest, + GetIntegrationRequest, + GetLogAnomalyDetectorRequest, + GetLogEventsRequest, + GetLogGroupFieldsRequest, + GetLogObjectRequest, + GetLogObjectResponseStream, + GetLogRecordRequest, + GetQueryResultsRequest, + GetQueryResultsResponse, + GetTransformerRequest, + Grok, + InputLogEvent, + InternalStreamingException, + InvalidOperationException, + InvalidParameterException, + InvalidSequenceTokenException, + LimitExceededException, + ListAnomaliesRequest, + ListIntegrationsRequest, + ListLogAnomalyDetectorsRequest, + ListLogGroupsForQueryRequest, + ListLogGroupsRequest, + ListTagsForResourceRequest, + ListTagsLogGroupRequest, + ListToMap, + LiveTailSessionStart, + LiveTailSessionUpdate, + LowerCaseString, + MalformedQueryException, + MetricFilter, + MetricTransformation, + MoveKeyEntry, + MoveKeys, + OpenSearchResourceConfig, + OperationAbortedException, + ParseCloudfront, + ParseJSON, + ParseKeyValue, + ParsePostgres, + ParseRoute53, + ParseToOCSF, + ParseVPC, + ParseWAF, + Processor, + PutAccountPolicyRequest, + PutDataProtectionPolicyRequest, + PutDeliveryDestinationPolicyRequest, + PutDeliveryDestinationRequest, + PutDeliverySourceRequest, + PutDestinationPolicyRequest, + PutDestinationRequest, + PutIndexPolicyRequest, + PutIntegrationRequest, + PutLogEventsRequest, + PutMetricFilterRequest, + PutQueryDefinitionRequest, + PutResourcePolicyRequest, + PutRetentionPolicyRequest, + PutSubscriptionFilterRequest, + PutTransformerRequest, + QueryStatistics, + RenameKeyEntry, + RenameKeys, + ResourceAlreadyExistsException, + ResourceConfig, + ResourceNotFoundException, + S3DeliveryConfiguration, + ServiceQuotaExceededException, + ServiceUnavailableException, + SessionStreamingException, + SessionTimeoutException, + SplitString, + SplitStringEntry, + StartLiveTailRequest, + StartLiveTailResponseStream, + StartQueryRequest, + StopQueryRequest, + SubstituteString, + SubstituteStringEntry, + SuppressionPeriod, + TagLogGroupRequest, + TagResourceRequest, + TestMetricFilterRequest, + TestTransformerRequest, + ThrottlingException, + TooManyTagsException, + TrimString, + TypeConverter, + TypeConverterEntry, + UnrecognizedClientException, + UntagLogGroupRequest, + UntagResourceRequest, + UpdateAnomalyRequest, + UpdateDeliveryConfigurationRequest, + UpdateLogAnomalyDetectorRequest, + UpperCaseString, + ValidationException, +} from "../models/models_0"; + +/** + * serializeAws_json1_1AssociateKmsKeyCommand + */ +export const se_AssociateKmsKeyCommand = async ( + input: AssociateKmsKeyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("AssociateKmsKey"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1CancelExportTaskCommand + */ +export const se_CancelExportTaskCommand = async ( + input: CancelExportTaskCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CancelExportTask"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1CreateDeliveryCommand + */ +export const se_CreateDeliveryCommand = async ( + input: CreateDeliveryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CreateDelivery"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1CreateExportTaskCommand + */ +export const se_CreateExportTaskCommand = async ( + input: CreateExportTaskCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CreateExportTask"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1CreateLogAnomalyDetectorCommand + */ +export const se_CreateLogAnomalyDetectorCommand = async ( + input: CreateLogAnomalyDetectorCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CreateLogAnomalyDetector"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1CreateLogGroupCommand + */ +export const se_CreateLogGroupCommand = async ( + input: CreateLogGroupCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CreateLogGroup"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1CreateLogStreamCommand + */ +export const se_CreateLogStreamCommand = async ( + input: CreateLogStreamCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CreateLogStream"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteAccountPolicyCommand + */ +export const se_DeleteAccountPolicyCommand = async ( + input: DeleteAccountPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteAccountPolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteDataProtectionPolicyCommand + */ +export const se_DeleteDataProtectionPolicyCommand = async ( + input: DeleteDataProtectionPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteDataProtectionPolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteDeliveryCommand + */ +export const se_DeleteDeliveryCommand = async ( + input: DeleteDeliveryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteDelivery"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteDeliveryDestinationCommand + */ +export const se_DeleteDeliveryDestinationCommand = async ( + input: DeleteDeliveryDestinationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteDeliveryDestination"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteDeliveryDestinationPolicyCommand + */ +export const se_DeleteDeliveryDestinationPolicyCommand = async ( + input: DeleteDeliveryDestinationPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteDeliveryDestinationPolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteDeliverySourceCommand + */ +export const se_DeleteDeliverySourceCommand = async ( + input: DeleteDeliverySourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteDeliverySource"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteDestinationCommand + */ +export const se_DeleteDestinationCommand = async ( + input: DeleteDestinationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteDestination"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteIndexPolicyCommand + */ +export const se_DeleteIndexPolicyCommand = async ( + input: DeleteIndexPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteIndexPolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteIntegrationCommand + */ +export const se_DeleteIntegrationCommand = async ( + input: DeleteIntegrationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteIntegration"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteLogAnomalyDetectorCommand + */ +export const se_DeleteLogAnomalyDetectorCommand = async ( + input: DeleteLogAnomalyDetectorCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteLogAnomalyDetector"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteLogGroupCommand + */ +export const se_DeleteLogGroupCommand = async ( + input: DeleteLogGroupCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteLogGroup"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteLogStreamCommand + */ +export const se_DeleteLogStreamCommand = async ( + input: DeleteLogStreamCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteLogStream"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteMetricFilterCommand + */ +export const se_DeleteMetricFilterCommand = async ( + input: DeleteMetricFilterCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteMetricFilter"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteQueryDefinitionCommand + */ +export const se_DeleteQueryDefinitionCommand = async ( + input: DeleteQueryDefinitionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteQueryDefinition"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteResourcePolicyCommand + */ +export const se_DeleteResourcePolicyCommand = async ( + input: DeleteResourcePolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteResourcePolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteRetentionPolicyCommand + */ +export const se_DeleteRetentionPolicyCommand = async ( + input: DeleteRetentionPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteRetentionPolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteSubscriptionFilterCommand + */ +export const se_DeleteSubscriptionFilterCommand = async ( + input: DeleteSubscriptionFilterCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteSubscriptionFilter"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DeleteTransformerCommand + */ +export const se_DeleteTransformerCommand = async ( + input: DeleteTransformerCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteTransformer"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeAccountPoliciesCommand + */ +export const se_DescribeAccountPoliciesCommand = async ( + input: DescribeAccountPoliciesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeAccountPolicies"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeConfigurationTemplatesCommand + */ +export const se_DescribeConfigurationTemplatesCommand = async ( + input: DescribeConfigurationTemplatesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeConfigurationTemplates"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeDeliveriesCommand + */ +export const se_DescribeDeliveriesCommand = async ( + input: DescribeDeliveriesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeDeliveries"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeDeliveryDestinationsCommand + */ +export const se_DescribeDeliveryDestinationsCommand = async ( + input: DescribeDeliveryDestinationsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeDeliveryDestinations"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeDeliverySourcesCommand + */ +export const se_DescribeDeliverySourcesCommand = async ( + input: DescribeDeliverySourcesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeDeliverySources"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeDestinationsCommand + */ +export const se_DescribeDestinationsCommand = async ( + input: DescribeDestinationsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeDestinations"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeExportTasksCommand + */ +export const se_DescribeExportTasksCommand = async ( + input: DescribeExportTasksCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeExportTasks"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeFieldIndexesCommand + */ +export const se_DescribeFieldIndexesCommand = async ( + input: DescribeFieldIndexesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeFieldIndexes"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeIndexPoliciesCommand + */ +export const se_DescribeIndexPoliciesCommand = async ( + input: DescribeIndexPoliciesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeIndexPolicies"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeLogGroupsCommand + */ +export const se_DescribeLogGroupsCommand = async ( + input: DescribeLogGroupsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeLogGroups"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeLogStreamsCommand + */ +export const se_DescribeLogStreamsCommand = async ( + input: DescribeLogStreamsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeLogStreams"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeMetricFiltersCommand + */ +export const se_DescribeMetricFiltersCommand = async ( + input: DescribeMetricFiltersCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeMetricFilters"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeQueriesCommand + */ +export const se_DescribeQueriesCommand = async ( + input: DescribeQueriesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeQueries"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeQueryDefinitionsCommand + */ +export const se_DescribeQueryDefinitionsCommand = async ( + input: DescribeQueryDefinitionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeQueryDefinitions"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeResourcePoliciesCommand + */ +export const se_DescribeResourcePoliciesCommand = async ( + input: DescribeResourcePoliciesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeResourcePolicies"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DescribeSubscriptionFiltersCommand + */ +export const se_DescribeSubscriptionFiltersCommand = async ( + input: DescribeSubscriptionFiltersCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeSubscriptionFilters"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1DisassociateKmsKeyCommand + */ +export const se_DisassociateKmsKeyCommand = async ( + input: DisassociateKmsKeyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DisassociateKmsKey"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1FilterLogEventsCommand + */ +export const se_FilterLogEventsCommand = async ( + input: FilterLogEventsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("FilterLogEvents"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1GetDataProtectionPolicyCommand + */ +export const se_GetDataProtectionPolicyCommand = async ( + input: GetDataProtectionPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetDataProtectionPolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1GetDeliveryCommand + */ +export const se_GetDeliveryCommand = async ( + input: GetDeliveryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetDelivery"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1GetDeliveryDestinationCommand + */ +export const se_GetDeliveryDestinationCommand = async ( + input: GetDeliveryDestinationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetDeliveryDestination"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1GetDeliveryDestinationPolicyCommand + */ +export const se_GetDeliveryDestinationPolicyCommand = async ( + input: GetDeliveryDestinationPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetDeliveryDestinationPolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1GetDeliverySourceCommand + */ +export const se_GetDeliverySourceCommand = async ( + input: GetDeliverySourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetDeliverySource"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1GetIntegrationCommand + */ +export const se_GetIntegrationCommand = async ( + input: GetIntegrationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetIntegration"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1GetLogAnomalyDetectorCommand + */ +export const se_GetLogAnomalyDetectorCommand = async ( + input: GetLogAnomalyDetectorCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetLogAnomalyDetector"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1GetLogEventsCommand + */ +export const se_GetLogEventsCommand = async ( + input: GetLogEventsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetLogEvents"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1GetLogGroupFieldsCommand + */ +export const se_GetLogGroupFieldsCommand = async ( + input: GetLogGroupFieldsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetLogGroupFields"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1GetLogObjectCommand + */ +export const se_GetLogObjectCommand = async ( + input: GetLogObjectCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetLogObject"); + let body: any; + body = JSON.stringify(_json(input)); + let { hostname: resolvedHostname } = await context.endpoint(); + if (context.disableHostPrefix !== true) { + resolvedHostname = "streaming-" + resolvedHostname; + if (!__isValidHostname(resolvedHostname)) { + throw new Error("ValidationError: prefixed hostname must be hostname compatible."); + } + } + return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body); +}; + +/** + * serializeAws_json1_1GetLogRecordCommand + */ +export const se_GetLogRecordCommand = async ( + input: GetLogRecordCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetLogRecord"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1GetQueryResultsCommand + */ +export const se_GetQueryResultsCommand = async ( + input: GetQueryResultsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetQueryResults"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1GetTransformerCommand + */ +export const se_GetTransformerCommand = async ( + input: GetTransformerCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("GetTransformer"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1ListAnomaliesCommand + */ +export const se_ListAnomaliesCommand = async ( + input: ListAnomaliesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("ListAnomalies"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1ListIntegrationsCommand + */ +export const se_ListIntegrationsCommand = async ( + input: ListIntegrationsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("ListIntegrations"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1ListLogAnomalyDetectorsCommand + */ +export const se_ListLogAnomalyDetectorsCommand = async ( + input: ListLogAnomalyDetectorsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("ListLogAnomalyDetectors"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1ListLogGroupsCommand + */ +export const se_ListLogGroupsCommand = async ( + input: ListLogGroupsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("ListLogGroups"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1ListLogGroupsForQueryCommand + */ +export const se_ListLogGroupsForQueryCommand = async ( + input: ListLogGroupsForQueryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("ListLogGroupsForQuery"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1ListTagsForResourceCommand + */ +export const se_ListTagsForResourceCommand = async ( + input: ListTagsForResourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("ListTagsForResource"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1ListTagsLogGroupCommand + */ +export const se_ListTagsLogGroupCommand = async ( + input: ListTagsLogGroupCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("ListTagsLogGroup"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutAccountPolicyCommand + */ +export const se_PutAccountPolicyCommand = async ( + input: PutAccountPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutAccountPolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutDataProtectionPolicyCommand + */ +export const se_PutDataProtectionPolicyCommand = async ( + input: PutDataProtectionPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutDataProtectionPolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutDeliveryDestinationCommand + */ +export const se_PutDeliveryDestinationCommand = async ( + input: PutDeliveryDestinationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutDeliveryDestination"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutDeliveryDestinationPolicyCommand + */ +export const se_PutDeliveryDestinationPolicyCommand = async ( + input: PutDeliveryDestinationPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutDeliveryDestinationPolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutDeliverySourceCommand + */ +export const se_PutDeliverySourceCommand = async ( + input: PutDeliverySourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutDeliverySource"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutDestinationCommand + */ +export const se_PutDestinationCommand = async ( + input: PutDestinationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutDestination"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutDestinationPolicyCommand + */ +export const se_PutDestinationPolicyCommand = async ( + input: PutDestinationPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutDestinationPolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutIndexPolicyCommand + */ +export const se_PutIndexPolicyCommand = async ( + input: PutIndexPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutIndexPolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutIntegrationCommand + */ +export const se_PutIntegrationCommand = async ( + input: PutIntegrationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutIntegration"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutLogEventsCommand + */ +export const se_PutLogEventsCommand = async ( + input: PutLogEventsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutLogEvents"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutMetricFilterCommand + */ +export const se_PutMetricFilterCommand = async ( + input: PutMetricFilterCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutMetricFilter"); + let body: any; + body = JSON.stringify(se_PutMetricFilterRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutQueryDefinitionCommand + */ +export const se_PutQueryDefinitionCommand = async ( + input: PutQueryDefinitionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutQueryDefinition"); + let body: any; + body = JSON.stringify(se_PutQueryDefinitionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutResourcePolicyCommand + */ +export const se_PutResourcePolicyCommand = async ( + input: PutResourcePolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutResourcePolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutRetentionPolicyCommand + */ +export const se_PutRetentionPolicyCommand = async ( + input: PutRetentionPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutRetentionPolicy"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutSubscriptionFilterCommand + */ +export const se_PutSubscriptionFilterCommand = async ( + input: PutSubscriptionFilterCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutSubscriptionFilter"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1PutTransformerCommand + */ +export const se_PutTransformerCommand = async ( + input: PutTransformerCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutTransformer"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1StartLiveTailCommand + */ +export const se_StartLiveTailCommand = async ( + input: StartLiveTailCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("StartLiveTail"); + let body: any; + body = JSON.stringify(_json(input)); + let { hostname: resolvedHostname } = await context.endpoint(); + if (context.disableHostPrefix !== true) { + resolvedHostname = "streaming-" + resolvedHostname; + if (!__isValidHostname(resolvedHostname)) { + throw new Error("ValidationError: prefixed hostname must be hostname compatible."); + } + } + return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body); +}; + +/** + * serializeAws_json1_1StartQueryCommand + */ +export const se_StartQueryCommand = async ( + input: StartQueryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("StartQuery"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1StopQueryCommand + */ +export const se_StopQueryCommand = async ( + input: StopQueryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("StopQuery"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1TagLogGroupCommand + */ +export const se_TagLogGroupCommand = async ( + input: TagLogGroupCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("TagLogGroup"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1TagResourceCommand + */ +export const se_TagResourceCommand = async ( + input: TagResourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("TagResource"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1TestMetricFilterCommand + */ +export const se_TestMetricFilterCommand = async ( + input: TestMetricFilterCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("TestMetricFilter"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1TestTransformerCommand + */ +export const se_TestTransformerCommand = async ( + input: TestTransformerCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("TestTransformer"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1UntagLogGroupCommand + */ +export const se_UntagLogGroupCommand = async ( + input: UntagLogGroupCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UntagLogGroup"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1UntagResourceCommand + */ +export const se_UntagResourceCommand = async ( + input: UntagResourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UntagResource"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1UpdateAnomalyCommand + */ +export const se_UpdateAnomalyCommand = async ( + input: UpdateAnomalyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateAnomaly"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1UpdateDeliveryConfigurationCommand + */ +export const se_UpdateDeliveryConfigurationCommand = async ( + input: UpdateDeliveryConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateDeliveryConfiguration"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1UpdateLogAnomalyDetectorCommand + */ +export const se_UpdateLogAnomalyDetectorCommand = async ( + input: UpdateLogAnomalyDetectorCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateLogAnomalyDetector"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * deserializeAws_json1_1AssociateKmsKeyCommand + */ +export const de_AssociateKmsKeyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: AssociateKmsKeyCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1CancelExportTaskCommand + */ +export const de_CancelExportTaskCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: CancelExportTaskCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1CreateDeliveryCommand + */ +export const de_CreateDeliveryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: CreateDeliveryCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1CreateExportTaskCommand + */ +export const de_CreateExportTaskCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: CreateExportTaskCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1CreateLogAnomalyDetectorCommand + */ +export const de_CreateLogAnomalyDetectorCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: CreateLogAnomalyDetectorCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1CreateLogGroupCommand + */ +export const de_CreateLogGroupCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: CreateLogGroupCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1CreateLogStreamCommand + */ +export const de_CreateLogStreamCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: CreateLogStreamCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteAccountPolicyCommand + */ +export const de_DeleteAccountPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteAccountPolicyCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteDataProtectionPolicyCommand + */ +export const de_DeleteDataProtectionPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteDataProtectionPolicyCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteDeliveryCommand + */ +export const de_DeleteDeliveryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteDeliveryCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteDeliveryDestinationCommand + */ +export const de_DeleteDeliveryDestinationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteDeliveryDestinationCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteDeliveryDestinationPolicyCommand + */ +export const de_DeleteDeliveryDestinationPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteDeliveryDestinationPolicyCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteDeliverySourceCommand + */ +export const de_DeleteDeliverySourceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteDeliverySourceCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteDestinationCommand + */ +export const de_DeleteDestinationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteDestinationCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteIndexPolicyCommand + */ +export const de_DeleteIndexPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DeleteIndexPolicyCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteIntegrationCommand + */ +export const de_DeleteIntegrationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DeleteIntegrationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteLogAnomalyDetectorCommand + */ +export const de_DeleteLogAnomalyDetectorCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteLogAnomalyDetectorCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteLogGroupCommand + */ +export const de_DeleteLogGroupCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteLogGroupCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteLogStreamCommand + */ +export const de_DeleteLogStreamCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteLogStreamCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteMetricFilterCommand + */ +export const de_DeleteMetricFilterCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteMetricFilterCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteQueryDefinitionCommand + */ +export const de_DeleteQueryDefinitionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DeleteQueryDefinitionCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteResourcePolicyCommand + */ +export const de_DeleteResourcePolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteResourcePolicyCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteRetentionPolicyCommand + */ +export const de_DeleteRetentionPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteRetentionPolicyCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteSubscriptionFilterCommand + */ +export const de_DeleteSubscriptionFilterCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteSubscriptionFilterCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DeleteTransformerCommand + */ +export const de_DeleteTransformerCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DeleteTransformerCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeAccountPoliciesCommand + */ +export const de_DescribeAccountPoliciesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeAccountPoliciesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeConfigurationTemplatesCommand + */ +export const de_DescribeConfigurationTemplatesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeConfigurationTemplatesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeDeliveriesCommand + */ +export const de_DescribeDeliveriesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeDeliveriesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeDeliveryDestinationsCommand + */ +export const de_DescribeDeliveryDestinationsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeDeliveryDestinationsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeDeliverySourcesCommand + */ +export const de_DescribeDeliverySourcesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeDeliverySourcesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeDestinationsCommand + */ +export const de_DescribeDestinationsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeDestinationsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeExportTasksCommand + */ +export const de_DescribeExportTasksCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeExportTasksCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeFieldIndexesCommand + */ +export const de_DescribeFieldIndexesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeFieldIndexesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeIndexPoliciesCommand + */ +export const de_DescribeIndexPoliciesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeIndexPoliciesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeLogGroupsCommand + */ +export const de_DescribeLogGroupsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeLogGroupsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeLogStreamsCommand + */ +export const de_DescribeLogStreamsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeLogStreamsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeMetricFiltersCommand + */ +export const de_DescribeMetricFiltersCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_DescribeMetricFiltersResponse(data, context); + const response: DescribeMetricFiltersCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeQueriesCommand + */ +export const de_DescribeQueriesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeQueriesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeQueryDefinitionsCommand + */ +export const de_DescribeQueryDefinitionsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeQueryDefinitionsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeResourcePoliciesCommand + */ +export const de_DescribeResourcePoliciesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeResourcePoliciesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DescribeSubscriptionFiltersCommand + */ +export const de_DescribeSubscriptionFiltersCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeSubscriptionFiltersCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1DisassociateKmsKeyCommand + */ +export const de_DisassociateKmsKeyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: DisassociateKmsKeyCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1FilterLogEventsCommand + */ +export const de_FilterLogEventsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: FilterLogEventsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1GetDataProtectionPolicyCommand + */ +export const de_GetDataProtectionPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: GetDataProtectionPolicyCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1GetDeliveryCommand + */ +export const de_GetDeliveryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: GetDeliveryCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1GetDeliveryDestinationCommand + */ +export const de_GetDeliveryDestinationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: GetDeliveryDestinationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1GetDeliveryDestinationPolicyCommand + */ +export const de_GetDeliveryDestinationPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: GetDeliveryDestinationPolicyCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1GetDeliverySourceCommand + */ +export const de_GetDeliverySourceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: GetDeliverySourceCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1GetIntegrationCommand + */ +export const de_GetIntegrationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: GetIntegrationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1GetLogAnomalyDetectorCommand + */ +export const de_GetLogAnomalyDetectorCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: GetLogAnomalyDetectorCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1GetLogEventsCommand + */ +export const de_GetLogEventsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: GetLogEventsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1GetLogGroupFieldsCommand + */ +export const de_GetLogGroupFieldsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: GetLogGroupFieldsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1GetLogObjectCommand + */ +export const de_GetLogObjectCommand = async ( + output: __HttpResponse, + context: __SerdeContext & __EventStreamSerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents = { fieldStream: de_GetLogObjectResponseStream(output.body, context) }; + const response: GetLogObjectCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1GetLogRecordCommand + */ +export const de_GetLogRecordCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: GetLogRecordCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1GetQueryResultsCommand + */ +export const de_GetQueryResultsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_GetQueryResultsResponse(data, context); + const response: GetQueryResultsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1GetTransformerCommand + */ +export const de_GetTransformerCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: GetTransformerCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1ListAnomaliesCommand + */ +export const de_ListAnomaliesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListAnomaliesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1ListIntegrationsCommand + */ +export const de_ListIntegrationsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListIntegrationsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1ListLogAnomalyDetectorsCommand + */ +export const de_ListLogAnomalyDetectorsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListLogAnomalyDetectorsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1ListLogGroupsCommand + */ +export const de_ListLogGroupsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListLogGroupsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1ListLogGroupsForQueryCommand + */ +export const de_ListLogGroupsForQueryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListLogGroupsForQueryCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1ListTagsForResourceCommand + */ +export const de_ListTagsForResourceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListTagsForResourceCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1ListTagsLogGroupCommand + */ +export const de_ListTagsLogGroupCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListTagsLogGroupCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1PutAccountPolicyCommand + */ +export const de_PutAccountPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: PutAccountPolicyCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1PutDataProtectionPolicyCommand + */ +export const de_PutDataProtectionPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: PutDataProtectionPolicyCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1PutDeliveryDestinationCommand + */ +export const de_PutDeliveryDestinationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: PutDeliveryDestinationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1PutDeliveryDestinationPolicyCommand + */ +export const de_PutDeliveryDestinationPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: PutDeliveryDestinationPolicyCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1PutDeliverySourceCommand + */ +export const de_PutDeliverySourceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: PutDeliverySourceCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1PutDestinationCommand + */ +export const de_PutDestinationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: PutDestinationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1PutDestinationPolicyCommand + */ +export const de_PutDestinationPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: PutDestinationPolicyCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1PutIndexPolicyCommand + */ +export const de_PutIndexPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: PutIndexPolicyCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1PutIntegrationCommand + */ +export const de_PutIntegrationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: PutIntegrationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1PutLogEventsCommand + */ +export const de_PutLogEventsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: PutLogEventsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1PutMetricFilterCommand + */ +export const de_PutMetricFilterCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: PutMetricFilterCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1PutQueryDefinitionCommand + */ +export const de_PutQueryDefinitionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: PutQueryDefinitionCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1PutResourcePolicyCommand + */ +export const de_PutResourcePolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: PutResourcePolicyCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1PutRetentionPolicyCommand + */ +export const de_PutRetentionPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: PutRetentionPolicyCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1PutSubscriptionFilterCommand + */ +export const de_PutSubscriptionFilterCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: PutSubscriptionFilterCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1PutTransformerCommand + */ +export const de_PutTransformerCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: PutTransformerCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1StartLiveTailCommand + */ +export const de_StartLiveTailCommand = async ( + output: __HttpResponse, + context: __SerdeContext & __EventStreamSerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents = { responseStream: de_StartLiveTailResponseStream(output.body, context) }; + const response: StartLiveTailCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1StartQueryCommand + */ +export const de_StartQueryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: StartQueryCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1StopQueryCommand + */ +export const de_StopQueryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: StopQueryCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1TagLogGroupCommand + */ +export const de_TagLogGroupCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: TagLogGroupCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1TagResourceCommand + */ +export const de_TagResourceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: TagResourceCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1TestMetricFilterCommand + */ +export const de_TestMetricFilterCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: TestMetricFilterCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1TestTransformerCommand + */ +export const de_TestTransformerCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: TestTransformerCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1UntagLogGroupCommand + */ +export const de_UntagLogGroupCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: UntagLogGroupCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1UntagResourceCommand + */ +export const de_UntagResourceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: UntagResourceCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1UpdateAnomalyCommand + */ +export const de_UpdateAnomalyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: UpdateAnomalyCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserializeAws_json1_1UpdateDeliveryConfigurationCommand + */ +export const de_UpdateDeliveryConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: UpdateDeliveryConfigurationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1UpdateLogAnomalyDetectorCommand + */ +export const de_UpdateLogAnomalyDetectorCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + await collectBody(output.body, context); + const response: UpdateLogAnomalyDetectorCommandOutput = { + $metadata: deserializeMetadata(output), + }; + return response; +}; + +/** + * deserialize_Aws_json1_1CommandError + */ +const de_CommandError = async (output: __HttpResponse, context: __SerdeContext): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidParameterException": + case "com.amazonaws.cloudwatchlogs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "OperationAbortedException": + case "com.amazonaws.cloudwatchlogs#OperationAbortedException": + throw await de_OperationAbortedExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceUnavailableException": + case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException": + throw await de_ServiceUnavailableExceptionRes(parsedOutput, context); + case "InvalidOperationException": + case "com.amazonaws.cloudwatchlogs#InvalidOperationException": + throw await de_InvalidOperationExceptionRes(parsedOutput, context); + case "AccessDeniedException": + case "com.amazonaws.cloudwatchlogs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.cloudwatchlogs#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.cloudwatchlogs#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.cloudwatchlogs#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.cloudwatchlogs#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "ResourceAlreadyExistsException": + case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException": + throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context); + case "DataAlreadyAcceptedException": + case "com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException": + throw await de_DataAlreadyAcceptedExceptionRes(parsedOutput, context); + case "InvalidSequenceTokenException": + case "com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException": + throw await de_InvalidSequenceTokenExceptionRes(parsedOutput, context); + case "UnrecognizedClientException": + case "com.amazonaws.cloudwatchlogs#UnrecognizedClientException": + throw await de_UnrecognizedClientExceptionRes(parsedOutput, context); + case "MalformedQueryException": + case "com.amazonaws.cloudwatchlogs#MalformedQueryException": + throw await de_MalformedQueryExceptionRes(parsedOutput, context); + case "TooManyTagsException": + case "com.amazonaws.cloudwatchlogs#TooManyTagsException": + throw await de_TooManyTagsExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }) as never; + } +}; + +/** + * deserializeAws_json1_1AccessDeniedExceptionRes + */ +const de_AccessDeniedExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new AccessDeniedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1ConflictExceptionRes + */ +const de_ConflictExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new ConflictException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1DataAlreadyAcceptedExceptionRes + */ +const de_DataAlreadyAcceptedExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new DataAlreadyAcceptedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1InvalidOperationExceptionRes + */ +const de_InvalidOperationExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new InvalidOperationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1InvalidParameterExceptionRes + */ +const de_InvalidParameterExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new InvalidParameterException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1InvalidSequenceTokenExceptionRes + */ +const de_InvalidSequenceTokenExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new InvalidSequenceTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1LimitExceededExceptionRes + */ +const de_LimitExceededExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new LimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1MalformedQueryExceptionRes + */ +const de_MalformedQueryExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new MalformedQueryException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1OperationAbortedExceptionRes + */ +const de_OperationAbortedExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new OperationAbortedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1ResourceAlreadyExistsExceptionRes + */ +const de_ResourceAlreadyExistsExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new ResourceAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1ResourceNotFoundExceptionRes + */ +const de_ResourceNotFoundExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new ResourceNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1ServiceQuotaExceededExceptionRes + */ +const de_ServiceQuotaExceededExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new ServiceQuotaExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1ServiceUnavailableExceptionRes + */ +const de_ServiceUnavailableExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new ServiceUnavailableException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1ThrottlingExceptionRes + */ +const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new ThrottlingException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1TooManyTagsExceptionRes + */ +const de_TooManyTagsExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new TooManyTagsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1UnrecognizedClientExceptionRes + */ +const de_UnrecognizedClientExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new UnrecognizedClientException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1ValidationExceptionRes + */ +const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new ValidationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1GetLogObjectResponseStream + */ +const de_GetLogObjectResponseStream = ( + output: any, + context: __SerdeContext & __EventStreamSerdeContext +): AsyncIterable => { + return context.eventStreamMarshaller.deserialize(output, async (event) => { + if (event["fields"] != null) { + return { + fields: await de_FieldsData_event(event["fields"], context), + }; + } + if (event["InternalStreamingException"] != null) { + return { + InternalStreamingException: await de_InternalStreamingException_event( + event["InternalStreamingException"], + context + ), + }; + } + return { $unknown: event as any }; + }); +}; +/** + * deserializeAws_json1_1StartLiveTailResponseStream + */ +const de_StartLiveTailResponseStream = ( + output: any, + context: __SerdeContext & __EventStreamSerdeContext +): AsyncIterable => { + return context.eventStreamMarshaller.deserialize(output, async (event) => { + if (event["sessionStart"] != null) { + return { + sessionStart: await de_LiveTailSessionStart_event(event["sessionStart"], context), + }; + } + if (event["sessionUpdate"] != null) { + return { + sessionUpdate: await de_LiveTailSessionUpdate_event(event["sessionUpdate"], context), + }; + } + if (event["SessionTimeoutException"] != null) { + return { + SessionTimeoutException: await de_SessionTimeoutException_event(event["SessionTimeoutException"], context), + }; + } + if (event["SessionStreamingException"] != null) { + return { + SessionStreamingException: await de_SessionStreamingException_event( + event["SessionStreamingException"], + context + ), + }; + } + return { $unknown: event as any }; + }); +}; +const de_FieldsData_event = async (output: any, context: __SerdeContext): Promise => { + const contents: FieldsData = {} as any; + const data: any = await parseBody(output.body, context); + Object.assign(contents, de_FieldsData(data, context)); + return contents; +}; +const de_InternalStreamingException_event = async ( + output: any, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseBody(output.body, context), + }; + return de_InternalStreamingExceptionRes(parsedOutput, context); +}; +const de_LiveTailSessionStart_event = async (output: any, context: __SerdeContext): Promise => { + const contents: LiveTailSessionStart = {} as any; + const data: any = await parseBody(output.body, context); + Object.assign(contents, _json(data)); + return contents; +}; +const de_LiveTailSessionUpdate_event = async (output: any, context: __SerdeContext): Promise => { + const contents: LiveTailSessionUpdate = {} as any; + const data: any = await parseBody(output.body, context); + Object.assign(contents, _json(data)); + return contents; +}; +const de_SessionStreamingException_event = async ( + output: any, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseBody(output.body, context), + }; + return de_SessionStreamingExceptionRes(parsedOutput, context); +}; +const de_SessionTimeoutException_event = async ( + output: any, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseBody(output.body, context), + }; + return de_SessionTimeoutExceptionRes(parsedOutput, context); +}; +/** + * deserializeAws_json1_1InternalStreamingExceptionRes + */ +const de_InternalStreamingExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new InternalStreamingException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1SessionStreamingExceptionRes + */ +const de_SessionStreamingExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new SessionStreamingException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +/** + * deserializeAws_json1_1SessionTimeoutExceptionRes + */ +const de_SessionTimeoutExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const body = parsedOutput.body; + const deserialized: any = _json(body); + const exception = new SessionTimeoutException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return __decorateServiceException(exception, body); +}; + +// se_AccountIds omitted. + +// se_AddKeyEntries omitted. + +// se_AddKeyEntry omitted. + +// se_AddKeys omitted. + +// se_AssociateKmsKeyRequest omitted. + +// se_CancelExportTaskRequest omitted. + +// se_Columns omitted. + +// se_CopyValue omitted. + +// se_CopyValueEntries omitted. + +// se_CopyValueEntry omitted. + +// se_CreateDeliveryRequest omitted. + +// se_CreateExportTaskRequest omitted. + +// se_CreateLogAnomalyDetectorRequest omitted. + +// se_CreateLogGroupRequest omitted. + +// se_CreateLogStreamRequest omitted. + +// se_CSV omitted. + +// se_DashboardViewerPrincipals omitted. + +// se_DateTimeConverter omitted. + +// se_DeleteAccountPolicyRequest omitted. + +// se_DeleteDataProtectionPolicyRequest omitted. + +// se_DeleteDeliveryDestinationPolicyRequest omitted. + +// se_DeleteDeliveryDestinationRequest omitted. + +// se_DeleteDeliveryRequest omitted. + +// se_DeleteDeliverySourceRequest omitted. + +// se_DeleteDestinationRequest omitted. + +// se_DeleteIndexPolicyRequest omitted. + +// se_DeleteIntegrationRequest omitted. + +// se_DeleteKeys omitted. + +// se_DeleteLogAnomalyDetectorRequest omitted. + +// se_DeleteLogGroupRequest omitted. + +// se_DeleteLogStreamRequest omitted. + +// se_DeleteMetricFilterRequest omitted. + +// se_DeleteQueryDefinitionRequest omitted. + +// se_DeleteResourcePolicyRequest omitted. + +// se_DeleteRetentionPolicyRequest omitted. + +// se_DeleteSubscriptionFilterRequest omitted. + +// se_DeleteTransformerRequest omitted. + +// se_DeleteWithKeys omitted. + +// se_DeliveryDestinationConfiguration omitted. + +// se_DeliveryDestinationTypes omitted. + +// se_DescribeAccountPoliciesRequest omitted. + +// se_DescribeConfigurationTemplatesRequest omitted. + +// se_DescribeDeliveriesRequest omitted. + +// se_DescribeDeliveryDestinationsRequest omitted. + +// se_DescribeDeliverySourcesRequest omitted. + +// se_DescribeDestinationsRequest omitted. + +// se_DescribeExportTasksRequest omitted. + +// se_DescribeFieldIndexesLogGroupIdentifiers omitted. + +// se_DescribeFieldIndexesRequest omitted. + +// se_DescribeIndexPoliciesLogGroupIdentifiers omitted. + +// se_DescribeIndexPoliciesRequest omitted. + +// se_DescribeLogGroupsLogGroupIdentifiers omitted. + +// se_DescribeLogGroupsRequest omitted. + +// se_DescribeLogStreamsRequest omitted. + +// se_DescribeMetricFiltersRequest omitted. + +// se_DescribeQueriesRequest omitted. + +// se_DescribeQueryDefinitionsRequest omitted. + +// se_DescribeResourcePoliciesRequest omitted. + +// se_DescribeSubscriptionFiltersRequest omitted. + +// se_Dimensions omitted. + +// se_DisassociateKmsKeyRequest omitted. + +// se_Entity omitted. + +// se_EntityAttributes omitted. + +// se_EntityKeyAttributes omitted. + +// se_FilterLogEventsRequest omitted. + +// se_GetDataProtectionPolicyRequest omitted. + +// se_GetDeliveryDestinationPolicyRequest omitted. + +// se_GetDeliveryDestinationRequest omitted. + +// se_GetDeliveryRequest omitted. + +// se_GetDeliverySourceRequest omitted. + +// se_GetIntegrationRequest omitted. + +// se_GetLogAnomalyDetectorRequest omitted. + +// se_GetLogEventsRequest omitted. + +// se_GetLogGroupFieldsRequest omitted. + +// se_GetLogObjectRequest omitted. + +// se_GetLogRecordRequest omitted. + +// se_GetQueryResultsRequest omitted. + +// se_GetTransformerRequest omitted. + +// se_Grok omitted. + +// se_InputLogEvent omitted. + +// se_InputLogEvents omitted. + +// se_InputLogStreamNames omitted. + +// se_ListAnomaliesRequest omitted. + +// se_ListIntegrationsRequest omitted. + +// se_ListLogAnomalyDetectorsRequest omitted. + +// se_ListLogGroupsForQueryRequest omitted. + +// se_ListLogGroupsRequest omitted. + +// se_ListTagsForResourceRequest omitted. + +// se_ListTagsLogGroupRequest omitted. + +// se_ListToMap omitted. + +// se_LogGroupArnList omitted. + +// se_LogGroupIdentifiers omitted. + +// se_LogGroupNames omitted. + +// se_LogTypes omitted. + +// se_LowerCaseString omitted. + +// se_LowerCaseStringWithKeys omitted. + +// se_MatchPatterns omitted. + +/** + * serializeAws_json1_1MetricTransformation + */ +const se_MetricTransformation = (input: MetricTransformation, context: __SerdeContext): any => { + return take(input, { + defaultValue: __serializeFloat, + dimensions: _json, + metricName: [], + metricNamespace: [], + metricValue: [], + unit: [], + }); +}; + +/** + * serializeAws_json1_1MetricTransformations + */ +const se_MetricTransformations = (input: MetricTransformation[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + return se_MetricTransformation(entry, context); + }); +}; + +// se_MoveKeyEntries omitted. + +// se_MoveKeyEntry omitted. + +// se_MoveKeys omitted. + +// se_OpenSearchResourceConfig omitted. + +// se_ParseCloudfront omitted. + +// se_ParseJSON omitted. + +// se_ParseKeyValue omitted. + +// se_ParsePostgres omitted. + +// se_ParseRoute53 omitted. + +// se_ParseToOCSF omitted. + +// se_ParseVPC omitted. + +// se_ParseWAF omitted. + +// se_Processor omitted. + +// se_Processors omitted. + +// se_PutAccountPolicyRequest omitted. + +// se_PutDataProtectionPolicyRequest omitted. + +// se_PutDeliveryDestinationPolicyRequest omitted. + +// se_PutDeliveryDestinationRequest omitted. + +// se_PutDeliverySourceRequest omitted. + +// se_PutDestinationPolicyRequest omitted. + +// se_PutDestinationRequest omitted. + +// se_PutIndexPolicyRequest omitted. + +// se_PutIntegrationRequest omitted. + +// se_PutLogEventsRequest omitted. + +/** + * serializeAws_json1_1PutMetricFilterRequest + */ +const se_PutMetricFilterRequest = (input: PutMetricFilterRequest, context: __SerdeContext): any => { + return take(input, { + applyOnTransformedLogs: [], + filterName: [], + filterPattern: [], + logGroupName: [], + metricTransformations: (_) => se_MetricTransformations(_, context), + }); +}; + +/** + * serializeAws_json1_1PutQueryDefinitionRequest + */ +const se_PutQueryDefinitionRequest = (input: PutQueryDefinitionRequest, context: __SerdeContext): any => { + return take(input, { + clientToken: [true, (_) => _ ?? generateIdempotencyToken()], + logGroupNames: _json, + name: [], + queryDefinitionId: [], + queryLanguage: [], + queryString: [], + }); +}; + +// se_PutResourcePolicyRequest omitted. + +// se_PutRetentionPolicyRequest omitted. + +// se_PutSubscriptionFilterRequest omitted. + +// se_PutTransformerRequest omitted. + +// se_RecordFields omitted. + +// se_RenameKeyEntries omitted. + +// se_RenameKeyEntry omitted. + +// se_RenameKeys omitted. + +// se_ResourceConfig omitted. + +// se_ResourceTypes omitted. + +// se_S3DeliveryConfiguration omitted. + +// se_SplitString omitted. + +// se_SplitStringEntries omitted. + +// se_SplitStringEntry omitted. + +// se_StartLiveTailLogGroupIdentifiers omitted. + +// se_StartLiveTailRequest omitted. + +// se_StartQueryRequest omitted. + +// se_StopQueryRequest omitted. + +// se_SubstituteString omitted. + +// se_SubstituteStringEntries omitted. + +// se_SubstituteStringEntry omitted. + +// se_SuppressionPeriod omitted. + +// se_TagKeyList omitted. + +// se_TagList omitted. + +// se_TagLogGroupRequest omitted. + +// se_TagResourceRequest omitted. + +// se_Tags omitted. + +// se_TestEventMessages omitted. + +// se_TestMetricFilterRequest omitted. + +// se_TestTransformerRequest omitted. + +// se_TrimString omitted. + +// se_TrimStringWithKeys omitted. + +// se_TypeConverter omitted. + +// se_TypeConverterEntries omitted. + +// se_TypeConverterEntry omitted. + +// se_UntagLogGroupRequest omitted. + +// se_UntagResourceRequest omitted. + +// se_UpdateAnomalyRequest omitted. + +// se_UpdateDeliveryConfigurationRequest omitted. + +// se_UpdateLogAnomalyDetectorRequest omitted. + +// se_UpperCaseString omitted. + +// se_UpperCaseStringWithKeys omitted. + +// de_AccessDeniedException omitted. + +// de_AccountPolicies omitted. + +// de_AccountPolicy omitted. + +// de_AddKeyEntries omitted. + +// de_AddKeyEntry omitted. + +// de_AddKeys omitted. + +// de_AllowedFieldDelimiters omitted. + +// de_AllowedFields omitted. + +// de_Anomalies omitted. + +// de_Anomaly omitted. + +// de_AnomalyDetector omitted. + +// de_AnomalyDetectors omitted. + +// de_Columns omitted. + +// de_ConfigurationTemplate omitted. + +// de_ConfigurationTemplateDeliveryConfigValues omitted. + +// de_ConfigurationTemplates omitted. + +// de_ConflictException omitted. + +// de_CopyValue omitted. + +// de_CopyValueEntries omitted. + +// de_CopyValueEntry omitted. + +// de_CreateDeliveryResponse omitted. + +// de_CreateExportTaskResponse omitted. + +// de_CreateLogAnomalyDetectorResponse omitted. + +// de_CSV omitted. + +// de_DataAlreadyAcceptedException omitted. + +// de_DateTimeConverter omitted. + +// de_DeleteIndexPolicyResponse omitted. + +// de_DeleteIntegrationResponse omitted. + +// de_DeleteKeys omitted. + +// de_DeleteQueryDefinitionResponse omitted. + +// de_DeleteWithKeys omitted. + +// de_Deliveries omitted. + +// de_Delivery omitted. + +// de_DeliveryDestination omitted. + +// de_DeliveryDestinationConfiguration omitted. + +// de_DeliveryDestinations omitted. + +// de_DeliverySource omitted. + +// de_DeliverySources omitted. + +// de_DescribeAccountPoliciesResponse omitted. + +// de_DescribeConfigurationTemplatesResponse omitted. + +// de_DescribeDeliveriesResponse omitted. + +// de_DescribeDeliveryDestinationsResponse omitted. + +// de_DescribeDeliverySourcesResponse omitted. + +// de_DescribeDestinationsResponse omitted. + +// de_DescribeExportTasksResponse omitted. + +// de_DescribeFieldIndexesResponse omitted. + +// de_DescribeIndexPoliciesResponse omitted. + +// de_DescribeLogGroupsResponse omitted. + +// de_DescribeLogStreamsResponse omitted. + +/** + * deserializeAws_json1_1DescribeMetricFiltersResponse + */ +const de_DescribeMetricFiltersResponse = (output: any, context: __SerdeContext): DescribeMetricFiltersResponse => { + return take(output, { + metricFilters: (_: any) => de_MetricFilters(_, context), + nextToken: __expectString, + }) as any; +}; + +// de_DescribeQueriesResponse omitted. + +// de_DescribeQueryDefinitionsResponse omitted. + +// de_DescribeResourcePoliciesResponse omitted. + +// de_DescribeSubscriptionFiltersResponse omitted. + +// de_Destination omitted. + +// de_Destinations omitted. + +// de_Dimensions omitted. + +// de_Enumerations omitted. + +// de_ExportTask omitted. + +// de_ExportTaskExecutionInfo omitted. + +// de_ExportTasks omitted. + +// de_ExportTaskStatus omitted. + +// de_ExtractedValues omitted. + +// de_FieldIndex omitted. + +// de_FieldIndexes omitted. + +/** + * deserializeAws_json1_1FieldsData + */ +const de_FieldsData = (output: any, context: __SerdeContext): FieldsData => { + return take(output, { + data: context.base64Decoder, + }) as any; +}; + +// de_FilteredLogEvent omitted. + +// de_FilteredLogEvents omitted. + +// de_FilterLogEventsResponse omitted. + +// de_GetDataProtectionPolicyResponse omitted. + +// de_GetDeliveryDestinationPolicyResponse omitted. + +// de_GetDeliveryDestinationResponse omitted. + +// de_GetDeliveryResponse omitted. + +// de_GetDeliverySourceResponse omitted. + +// de_GetIntegrationResponse omitted. + +// de_GetLogAnomalyDetectorResponse omitted. + +// de_GetLogEventsResponse omitted. + +// de_GetLogGroupFieldsResponse omitted. + +// de_GetLogRecordResponse omitted. + +/** + * deserializeAws_json1_1GetQueryResultsResponse + */ +const de_GetQueryResultsResponse = (output: any, context: __SerdeContext): GetQueryResultsResponse => { + return take(output, { + encryptionKey: __expectString, + queryLanguage: __expectString, + results: _json, + statistics: (_: any) => de_QueryStatistics(_, context), + status: __expectString, + }) as any; +}; + +// de_GetTransformerResponse omitted. + +// de_Grok omitted. + +// de_Histogram omitted. + +// de_IndexPolicies omitted. + +// de_IndexPolicy omitted. + +// de_InheritedProperties omitted. + +// de_InputLogStreamNames omitted. + +// de_IntegrationDetails omitted. + +// de_IntegrationSummaries omitted. + +// de_IntegrationSummary omitted. + +// de_InternalStreamingException omitted. + +// de_InvalidOperationException omitted. + +// de_InvalidParameterException omitted. + +// de_InvalidSequenceTokenException omitted. + +// de_LimitExceededException omitted. + +// de_ListAnomaliesResponse omitted. + +// de_ListIntegrationsResponse omitted. + +// de_ListLogAnomalyDetectorsResponse omitted. + +// de_ListLogGroupsForQueryResponse omitted. + +// de_ListLogGroupsResponse omitted. + +// de_ListTagsForResourceResponse omitted. + +// de_ListTagsLogGroupResponse omitted. + +// de_ListToMap omitted. + +// de_LiveTailSessionLogEvent omitted. + +// de_LiveTailSessionMetadata omitted. + +// de_LiveTailSessionResults omitted. + +// de_LiveTailSessionStart omitted. + +// de_LiveTailSessionUpdate omitted. + +// de_LogEvent omitted. + +// de_LogGroup omitted. + +// de_LogGroupArnList omitted. + +// de_LogGroupField omitted. + +// de_LogGroupFieldList omitted. + +// de_LogGroupIdentifiers omitted. + +// de_LogGroupNames omitted. + +// de_LogGroups omitted. + +// de_LogGroupSummaries omitted. + +// de_LogGroupSummary omitted. + +// de_LogRecord omitted. + +// de_LogSamples omitted. + +// de_LogStream omitted. + +// de_LogStreams omitted. + +// de_LowerCaseString omitted. + +// de_LowerCaseStringWithKeys omitted. + +// de_MalformedQueryException omitted. + +// de_MatchPatterns omitted. + +/** + * deserializeAws_json1_1MetricFilter + */ +const de_MetricFilter = (output: any, context: __SerdeContext): MetricFilter => { + return take(output, { + applyOnTransformedLogs: __expectBoolean, + creationTime: __expectLong, + filterName: __expectString, + filterPattern: __expectString, + logGroupName: __expectString, + metricTransformations: (_: any) => de_MetricTransformations(_, context), + }) as any; +}; + +// de_MetricFilterMatches omitted. + +// de_MetricFilterMatchRecord omitted. + +/** + * deserializeAws_json1_1MetricFilters + */ +const de_MetricFilters = (output: any, context: __SerdeContext): MetricFilter[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_MetricFilter(entry, context); + }); + return retVal; +}; + +/** + * deserializeAws_json1_1MetricTransformation + */ +const de_MetricTransformation = (output: any, context: __SerdeContext): MetricTransformation => { + return take(output, { + defaultValue: __limitedParseDouble, + dimensions: _json, + metricName: __expectString, + metricNamespace: __expectString, + metricValue: __expectString, + unit: __expectString, + }) as any; +}; + +/** + * deserializeAws_json1_1MetricTransformations + */ +const de_MetricTransformations = (output: any, context: __SerdeContext): MetricTransformation[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_MetricTransformation(entry, context); + }); + return retVal; +}; + +// de_MoveKeyEntries omitted. + +// de_MoveKeyEntry omitted. + +// de_MoveKeys omitted. + +// de_OpenSearchApplication omitted. + +// de_OpenSearchCollection omitted. + +// de_OpenSearchDataAccessPolicy omitted. + +// de_OpenSearchDataSource omitted. + +// de_OpenSearchEncryptionPolicy omitted. + +// de_OpenSearchIntegrationDetails omitted. + +// de_OpenSearchLifecyclePolicy omitted. + +// de_OpenSearchNetworkPolicy omitted. + +// de_OpenSearchResourceStatus omitted. + +// de_OpenSearchWorkspace omitted. + +// de_OperationAbortedException omitted. + +// de_OutputFormats omitted. + +// de_OutputLogEvent omitted. + +// de_OutputLogEvents omitted. + +// de_ParseCloudfront omitted. + +// de_ParseJSON omitted. + +// de_ParseKeyValue omitted. + +// de_ParsePostgres omitted. + +// de_ParseRoute53 omitted. + +// de_ParseToOCSF omitted. + +// de_ParseVPC omitted. + +// de_ParseWAF omitted. + +// de_PatternToken omitted. + +// de_PatternTokens omitted. + +// de_Policy omitted. + +// de_Processor omitted. + +// de_Processors omitted. + +// de_PutAccountPolicyResponse omitted. + +// de_PutDataProtectionPolicyResponse omitted. + +// de_PutDeliveryDestinationPolicyResponse omitted. + +// de_PutDeliveryDestinationResponse omitted. + +// de_PutDeliverySourceResponse omitted. + +// de_PutDestinationResponse omitted. + +// de_PutIndexPolicyResponse omitted. + +// de_PutIntegrationResponse omitted. + +// de_PutLogEventsResponse omitted. + +// de_PutQueryDefinitionResponse omitted. + +// de_PutResourcePolicyResponse omitted. + +// de_QueryCompileError omitted. + +// de_QueryCompileErrorLocation omitted. + +// de_QueryDefinition omitted. + +// de_QueryDefinitionList omitted. + +// de_QueryInfo omitted. + +// de_QueryInfoList omitted. + +// de_QueryResults omitted. + +/** + * deserializeAws_json1_1QueryStatistics + */ +const de_QueryStatistics = (output: any, context: __SerdeContext): QueryStatistics => { + return take(output, { + bytesScanned: __limitedParseDouble, + estimatedBytesSkipped: __limitedParseDouble, + estimatedRecordsSkipped: __limitedParseDouble, + logGroupsScanned: __limitedParseDouble, + recordsMatched: __limitedParseDouble, + recordsScanned: __limitedParseDouble, + }) as any; +}; + +// de_RecordField omitted. + +// de_RecordFields omitted. + +// de_RejectedEntityInfo omitted. + +// de_RejectedLogEventsInfo omitted. + +// de_RenameKeyEntries omitted. + +// de_RenameKeyEntry omitted. + +// de_RenameKeys omitted. + +// de_ResourceAlreadyExistsException omitted. + +// de_ResourceArns omitted. + +// de_ResourceNotFoundException omitted. + +// de_ResourcePolicies omitted. + +// de_ResourcePolicy omitted. + +// de_ResultField omitted. + +// de_ResultRows omitted. + +// de_S3DeliveryConfiguration omitted. + +// de_SearchedLogStream omitted. + +// de_SearchedLogStreams omitted. + +// de_ServiceQuotaExceededException omitted. + +// de_ServiceUnavailableException omitted. + +// de_SessionStreamingException omitted. + +// de_SessionTimeoutException omitted. + +// de_SplitString omitted. + +// de_SplitStringEntries omitted. + +// de_SplitStringEntry omitted. + +// de_StartLiveTailLogGroupIdentifiers omitted. + +// de_StartQueryResponse omitted. + +// de_StopQueryResponse omitted. + +// de_SubscriptionFilter omitted. + +// de_SubscriptionFilters omitted. + +// de_SubstituteString omitted. + +// de_SubstituteStringEntries omitted. + +// de_SubstituteStringEntry omitted. + +// de_Tags omitted. + +// de_TestMetricFilterResponse omitted. + +// de_TestTransformerResponse omitted. + +// de_ThrottlingException omitted. + +// de_TooManyTagsException omitted. + +// de_TransformedLogRecord omitted. + +// de_TransformedLogs omitted. + +// de_TrimString omitted. + +// de_TrimStringWithKeys omitted. + +// de_TypeConverter omitted. + +// de_TypeConverterEntries omitted. + +// de_TypeConverterEntry omitted. + +// de_UnrecognizedClientException omitted. + +// de_UpdateDeliveryConfigurationResponse omitted. + +// de_UpperCaseString omitted. + +// de_UpperCaseStringWithKeys omitted. + +// de_ValidationException omitted. + +const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ + httpStatusCode: output.statusCode, + requestId: + output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"], +}); + +// Encode Uint8Array data into string with utf-8. +const collectBodyString = (streamBody: any, context: __SerdeContext): Promise => + collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + +const throwDefaultError = withBaseException(__BaseException); +const buildHttpRpcRequest = async ( + context: __SerdeContext, + headers: __HeaderBag, + path: string, + resolvedHostname: string | undefined, + body: any +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const contents: any = { + protocol, + hostname, + port, + method: "POST", + path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, + headers, + }; + if (resolvedHostname !== undefined) { + contents.hostname = resolvedHostname; + } + if (body !== undefined) { + contents.body = body; + } + return new __HttpRequest(contents); +}; +function sharedHeaders(operation: string): __HeaderBag { + return { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": `Logs_20140328.${operation}`, + }; +} diff --git a/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts b/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts index f7e45d100ad7..23b36ed16fbf 100644 --- a/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts +++ b/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts @@ -1,6 +1,5 @@ // smithy-typescript generated code import { AwsSdkSigV4Signer } from "@aws-sdk/core"; -import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols"; import { NoOpLogger } from "@smithy/smithy-client"; import { IdentityProviderConfig } from "@smithy/types"; import { parseUrl } from "@smithy/url-parser"; @@ -31,7 +30,6 @@ export const getRuntimeConfig = (config: CloudWatchLogsClientConfig) => { }, ], logger: config?.logger ?? new NoOpLogger(), - protocol: config?.protocol ?? new AwsJson1_1Protocol({ defaultNamespace: "com.amazonaws.cloudwatchlogs" }), serviceId: config?.serviceId ?? "CloudWatch Logs", urlParser: config?.urlParser ?? parseUrl, utf8Decoder: config?.utf8Decoder ?? fromUtf8, diff --git a/clients/client-cloudwatch-logs/src/schemas/schemas.ts b/clients/client-cloudwatch-logs/src/schemas/schemas.ts deleted file mode 100644 index b8b7e40266fc..000000000000 --- a/clients/client-cloudwatch-logs/src/schemas/schemas.ts +++ /dev/null @@ -1,2289 +0,0 @@ -const _A = "Anomaly"; -const _AD = "AnomalyDetector"; -const _ADE = "AccessDeniedException"; -const _ADn = "AnomalyDetectors"; -const _AF = "AllowedFields"; -const _AK = "AddKeys"; -const _AKE = "AddKeyEntry"; -const _AKEd = "AddKeyEntries"; -const _AKK = "AssociateKmsKey"; -const _AKKR = "AssociateKmsKeyRequest"; -const _AP = "AccountPolicy"; -const _APc = "AccountPolicies"; -const _An = "Anomalies"; -const _CD = "CreateDelivery"; -const _CDR = "CreateDeliveryRequest"; -const _CDRr = "CreateDeliveryResponse"; -const _CE = "ConflictException"; -const _CET = "CancelExportTask"; -const _CETR = "CancelExportTaskRequest"; -const _CETRr = "CreateExportTaskRequest"; -const _CETRre = "CreateExportTaskResponse"; -const _CETr = "CreateExportTask"; -const _CLAD = "CreateLogAnomalyDetector"; -const _CLADR = "CreateLogAnomalyDetectorRequest"; -const _CLADRr = "CreateLogAnomalyDetectorResponse"; -const _CLG = "CreateLogGroup"; -const _CLGR = "CreateLogGroupRequest"; -const _CLS = "CreateLogStream"; -const _CLSR = "CreateLogStreamRequest"; -const _CSV = "CSV"; -const _CT = "ConfigurationTemplate"; -const _CTDCV = "ConfigurationTemplateDeliveryConfigValues"; -const _CTo = "ConfigurationTemplates"; -const _CV = "CopyValue"; -const _CVE = "CopyValueEntry"; -const _CVEo = "CopyValueEntries"; -const _D = "Delivery"; -const _DAAE = "DataAlreadyAcceptedException"; -const _DAP = "DeleteAccountPolicy"; -const _DAPR = "DeleteAccountPolicyRequest"; -const _DAPRe = "DescribeAccountPoliciesRequest"; -const _DAPRes = "DescribeAccountPoliciesResponse"; -const _DAPe = "DescribeAccountPolicies"; -const _DCT = "DescribeConfigurationTemplates"; -const _DCTR = "DescribeConfigurationTemplatesRequest"; -const _DCTRe = "DescribeConfigurationTemplatesResponse"; -const _DD = "DeliveryDestination"; -const _DDC = "DeliveryDestinationConfiguration"; -const _DDD = "DeleteDeliveryDestination"; -const _DDDP = "DeleteDeliveryDestinationPolicy"; -const _DDDPR = "DeleteDeliveryDestinationPolicyRequest"; -const _DDDR = "DeleteDeliveryDestinationRequest"; -const _DDDRe = "DescribeDeliveryDestinationsRequest"; -const _DDDRes = "DescribeDeliveryDestinationsResponse"; -const _DDDe = "DescribeDeliveryDestinations"; -const _DDPP = "DeleteDataProtectionPolicy"; -const _DDPPR = "DeleteDataProtectionPolicyRequest"; -const _DDR = "DeleteDeliveryRequest"; -const _DDRe = "DeleteDestinationRequest"; -const _DDRes = "DescribeDeliveriesRequest"; -const _DDResc = "DescribeDeliveriesResponse"; -const _DDRescr = "DescribeDestinationsRequest"; -const _DDRescri = "DescribeDestinationsResponse"; -const _DDS = "DeleteDeliverySource"; -const _DDSR = "DeleteDeliverySourceRequest"; -const _DDSRe = "DescribeDeliverySourcesRequest"; -const _DDSRes = "DescribeDeliverySourcesResponse"; -const _DDSe = "DescribeDeliverySources"; -const _DDe = "DeliveryDestinations"; -const _DDel = "DeleteDelivery"; -const _DDele = "DeleteDestination"; -const _DDes = "DescribeDeliveries"; -const _DDesc = "DescribeDestinations"; -const _DET = "DescribeExportTasks"; -const _DETR = "DescribeExportTasksRequest"; -const _DETRe = "DescribeExportTasksResponse"; -const _DFI = "DescribeFieldIndexes"; -const _DFIR = "DescribeFieldIndexesRequest"; -const _DFIRe = "DescribeFieldIndexesResponse"; -const _DI = "DeleteIntegration"; -const _DIP = "DeleteIndexPolicy"; -const _DIPR = "DeleteIndexPolicyRequest"; -const _DIPRe = "DeleteIndexPolicyResponse"; -const _DIPRes = "DescribeIndexPoliciesRequest"; -const _DIPResc = "DescribeIndexPoliciesResponse"; -const _DIPe = "DescribeIndexPolicies"; -const _DIR = "DeleteIntegrationRequest"; -const _DIRe = "DeleteIntegrationResponse"; -const _DK = "DeleteKeys"; -const _DKK = "DisassociateKmsKey"; -const _DKKR = "DisassociateKmsKeyRequest"; -const _DLAD = "DeleteLogAnomalyDetector"; -const _DLADR = "DeleteLogAnomalyDetectorRequest"; -const _DLG = "DeleteLogGroup"; -const _DLGR = "DeleteLogGroupRequest"; -const _DLGRe = "DescribeLogGroupsRequest"; -const _DLGRes = "DescribeLogGroupsResponse"; -const _DLGe = "DescribeLogGroups"; -const _DLS = "DeleteLogStream"; -const _DLSR = "DeleteLogStreamRequest"; -const _DLSRe = "DescribeLogStreamsRequest"; -const _DLSRes = "DescribeLogStreamsResponse"; -const _DLSe = "DescribeLogStreams"; -const _DMF = "DeleteMetricFilter"; -const _DMFR = "DeleteMetricFilterRequest"; -const _DMFRe = "DescribeMetricFiltersRequest"; -const _DMFRes = "DescribeMetricFiltersResponse"; -const _DMFe = "DescribeMetricFilters"; -const _DNP = "DestinationNamePrefix"; -const _DQ = "DescribeQueries"; -const _DQD = "DeleteQueryDefinition"; -const _DQDR = "DeleteQueryDefinitionRequest"; -const _DQDRe = "DeleteQueryDefinitionResponse"; -const _DQDRes = "DescribeQueryDefinitionsRequest"; -const _DQDResc = "DescribeQueryDefinitionsResponse"; -const _DQDe = "DescribeQueryDefinitions"; -const _DQR = "DescribeQueriesRequest"; -const _DQRe = "DescribeQueriesResponse"; -const _DRP = "DeleteResourcePolicy"; -const _DRPR = "DeleteResourcePolicyRequest"; -const _DRPRe = "DeleteRetentionPolicyRequest"; -const _DRPRes = "DescribeResourcePoliciesRequest"; -const _DRPResc = "DescribeResourcePoliciesResponse"; -const _DRPe = "DeleteRetentionPolicy"; -const _DRPes = "DescribeResourcePolicies"; -const _DS = "DeliverySource"; -const _DSF = "DeleteSubscriptionFilter"; -const _DSFR = "DeleteSubscriptionFilterRequest"; -const _DSFRe = "DescribeSubscriptionFiltersRequest"; -const _DSFRes = "DescribeSubscriptionFiltersResponse"; -const _DSFe = "DescribeSubscriptionFilters"; -const _DSe = "DeliverySources"; -const _DT = "DeleteTransformer"; -const _DTC = "DateTimeConverter"; -const _DTR = "DeleteTransformerRequest"; -const _De = "Destination"; -const _Del = "Deliveries"; -const _Des = "Destinations"; -const _E = "Entity"; -const _ET = "ExportTask"; -const _ETEI = "ExportTaskExecutionInfo"; -const _ETS = "ExportTaskStatus"; -const _ETx = "ExportTasks"; -const _FD = "FieldsData"; -const _FI = "FieldIndex"; -const _FIi = "FieldIndexes"; -const _FLE = "FilteredLogEvent"; -const _FLER = "FilterLogEventsRequest"; -const _FLERi = "FilterLogEventsResponse"; -const _FLEi = "FilteredLogEvents"; -const _FLEil = "FilterLogEvents"; -const _G = "Grok"; -const _GD = "GetDelivery"; -const _GDD = "GetDeliveryDestination"; -const _GDDP = "GetDeliveryDestinationPolicy"; -const _GDDPR = "GetDeliveryDestinationPolicyRequest"; -const _GDDPRe = "GetDeliveryDestinationPolicyResponse"; -const _GDDR = "GetDeliveryDestinationRequest"; -const _GDDRe = "GetDeliveryDestinationResponse"; -const _GDPP = "GetDataProtectionPolicy"; -const _GDPPR = "GetDataProtectionPolicyRequest"; -const _GDPPRe = "GetDataProtectionPolicyResponse"; -const _GDR = "GetDeliveryRequest"; -const _GDRe = "GetDeliveryResponse"; -const _GDS = "GetDeliverySource"; -const _GDSR = "GetDeliverySourceRequest"; -const _GDSRe = "GetDeliverySourceResponse"; -const _GI = "GetIntegration"; -const _GIR = "GetIntegrationRequest"; -const _GIRe = "GetIntegrationResponse"; -const _GLAD = "GetLogAnomalyDetector"; -const _GLADR = "GetLogAnomalyDetectorRequest"; -const _GLADRe = "GetLogAnomalyDetectorResponse"; -const _GLE = "GetLogEvents"; -const _GLER = "GetLogEventsRequest"; -const _GLERe = "GetLogEventsResponse"; -const _GLGF = "GetLogGroupFields"; -const _GLGFR = "GetLogGroupFieldsRequest"; -const _GLGFRe = "GetLogGroupFieldsResponse"; -const _GLO = "GetLogObject"; -const _GLOR = "GetLogObjectRequest"; -const _GLORS = "GetLogObjectResponseStream"; -const _GLORe = "GetLogObjectResponse"; -const _GLR = "GetLogRecord"; -const _GLRR = "GetLogRecordRequest"; -const _GLRRe = "GetLogRecordResponse"; -const _GQR = "GetQueryResults"; -const _GQRR = "GetQueryResultsRequest"; -const _GQRRe = "GetQueryResultsResponse"; -const _GT = "GetTransformer"; -const _GTR = "GetTransformerRequest"; -const _GTRe = "GetTransformerResponse"; -const _ID = "IntegrationDetails"; -const _ILE = "InputLogEvent"; -const _ILEn = "InputLogEvents"; -const _IOE = "InvalidOperationException"; -const _IP = "IndexPolicy"; -const _IPE = "InvalidParameterException"; -const _IPn = "IndexPolicies"; -const _IS = "IntegrationSummary"; -const _ISE = "InternalStreamingException"; -const _ISTE = "InvalidSequenceTokenException"; -const _ISn = "IntegrationSummaries"; -const _LA = "ListAnomalies"; -const _LAR = "ListAnomaliesRequest"; -const _LARi = "ListAnomaliesResponse"; -const _LCS = "LowerCaseString"; -const _LE = "LogEvent"; -const _LEE = "LimitExceededException"; -const _LG = "LogGroup"; -const _LGF = "LogGroupField"; -const _LGFL = "LogGroupFieldList"; -const _LGS = "LogGroupSummary"; -const _LGSo = "LogGroupSummaries"; -const _LGo = "LogGroups"; -const _LI = "ListIntegrations"; -const _LIR = "ListIntegrationsRequest"; -const _LIRi = "ListIntegrationsResponse"; -const _LLAD = "ListLogAnomalyDetectors"; -const _LLADR = "ListLogAnomalyDetectorsRequest"; -const _LLADRi = "ListLogAnomalyDetectorsResponse"; -const _LLG = "ListLogGroups"; -const _LLGFQ = "ListLogGroupsForQuery"; -const _LLGFQR = "ListLogGroupsForQueryRequest"; -const _LLGFQRi = "ListLogGroupsForQueryResponse"; -const _LLGR = "ListLogGroupsRequest"; -const _LLGRi = "ListLogGroupsResponse"; -const _LS = "LogStream"; -const _LSo = "LogSamples"; -const _LSog = "LogStreams"; -const _LTFR = "ListTagsForResource"; -const _LTFRR = "ListTagsForResourceRequest"; -const _LTFRRi = "ListTagsForResourceResponse"; -const _LTLG = "ListTagsLogGroup"; -const _LTLGR = "ListTagsLogGroupRequest"; -const _LTLGRi = "ListTagsLogGroupResponse"; -const _LTM = "ListToMap"; -const _LTSLE = "LiveTailSessionLogEvent"; -const _LTSM = "LiveTailSessionMetadata"; -const _LTSR = "LiveTailSessionResults"; -const _LTSS = "LiveTailSessionStart"; -const _LTSU = "LiveTailSessionUpdate"; -const _MF = "MetricFilter"; -const _MFM = "MetricFilterMatches"; -const _MFMR = "MetricFilterMatchRecord"; -const _MFe = "MetricFilters"; -const _MK = "MoveKeys"; -const _MKE = "MoveKeyEntry"; -const _MKEo = "MoveKeyEntries"; -const _MQE = "MalformedQueryException"; -const _MT = "MetricTransformation"; -const _MTe = "MetricTransformations"; -const _OAE = "OperationAbortedException"; -const _OLE = "OutputLogEvent"; -const _OLEu = "OutputLogEvents"; -const _OSA = "OpenSearchApplication"; -const _OSC = "OpenSearchCollection"; -const _OSDAP = "OpenSearchDataAccessPolicy"; -const _OSDS = "OpenSearchDataSource"; -const _OSEP = "OpenSearchEncryptionPolicy"; -const _OSID = "OpenSearchIntegrationDetails"; -const _OSLP = "OpenSearchLifecyclePolicy"; -const _OSNP = "OpenSearchNetworkPolicy"; -const _OSRC = "OpenSearchResourceConfig"; -const _OSRS = "OpenSearchResourceStatus"; -const _OSW = "OpenSearchWorkspace"; -const _P = "Policy"; -const _PAP = "PutAccountPolicy"; -const _PAPR = "PutAccountPolicyRequest"; -const _PAPRu = "PutAccountPolicyResponse"; -const _PC = "ParseCloudfront"; -const _PD = "PutDestination"; -const _PDD = "PutDeliveryDestination"; -const _PDDP = "PutDeliveryDestinationPolicy"; -const _PDDPR = "PutDeliveryDestinationPolicyRequest"; -const _PDDPRu = "PutDeliveryDestinationPolicyResponse"; -const _PDDR = "PutDeliveryDestinationRequest"; -const _PDDRu = "PutDeliveryDestinationResponse"; -const _PDP = "PutDestinationPolicy"; -const _PDPP = "PutDataProtectionPolicy"; -const _PDPPR = "PutDataProtectionPolicyRequest"; -const _PDPPRu = "PutDataProtectionPolicyResponse"; -const _PDPR = "PutDestinationPolicyRequest"; -const _PDR = "PutDestinationRequest"; -const _PDRu = "PutDestinationResponse"; -const _PDS = "PutDeliverySource"; -const _PDSR = "PutDeliverySourceRequest"; -const _PDSRu = "PutDeliverySourceResponse"; -const _PI = "PutIntegration"; -const _PIP = "PutIndexPolicy"; -const _PIPR = "PutIndexPolicyRequest"; -const _PIPRu = "PutIndexPolicyResponse"; -const _PIR = "PutIntegrationRequest"; -const _PIRu = "PutIntegrationResponse"; -const _PJSON = "ParseJSON"; -const _PKV = "ParseKeyValue"; -const _PLE = "PutLogEvents"; -const _PLER = "PutLogEventsRequest"; -const _PLERu = "PutLogEventsResponse"; -const _PMF = "PutMetricFilter"; -const _PMFR = "PutMetricFilterRequest"; -const _PP = "ParsePostgres"; -const _PQD = "PutQueryDefinition"; -const _PQDR = "PutQueryDefinitionRequest"; -const _PQDRu = "PutQueryDefinitionResponse"; -const _PR = "ParseRoute53"; -const _PRP = "PutResourcePolicy"; -const _PRPR = "PutResourcePolicyRequest"; -const _PRPRu = "PutResourcePolicyResponse"; -const _PRPRut = "PutRetentionPolicyRequest"; -const _PRPu = "PutRetentionPolicy"; -const _PSF = "PutSubscriptionFilter"; -const _PSFR = "PutSubscriptionFilterRequest"; -const _PT = "PatternToken"; -const _PTOCSF = "ParseToOCSF"; -const _PTR = "PutTransformerRequest"; -const _PTa = "PatternTokens"; -const _PTu = "PutTransformer"; -const _PVPC = "ParseVPC"; -const _PWAF = "ParseWAF"; -const _Pr = "Processor"; -const _Pro = "Processors"; -const _QCE = "QueryCompileError"; -const _QCEL = "QueryCompileErrorLocation"; -const _QD = "QueryDefinition"; -const _QDL = "QueryDefinitionList"; -const _QI = "QueryInfo"; -const _QIL = "QueryInfoList"; -const _QR = "QueryResults"; -const _QS = "QueryStatistics"; -const _RAEE = "ResourceAlreadyExistsException"; -const _RC = "ResourceConfig"; -const _REI = "RejectedEntityInfo"; -const _RF = "RecordField"; -const _RFe = "ResultField"; -const _RK = "RenameKeys"; -const _RKE = "RenameKeyEntry"; -const _RKEe = "RenameKeyEntries"; -const _RLEI = "RejectedLogEventsInfo"; -const _RNFE = "ResourceNotFoundException"; -const _RP = "ResourcePolicy"; -const _RPe = "ResourcePolicies"; -const _RR = "ResultRows"; -const _SDC = "S3DeliveryConfiguration"; -const _SF = "SubscriptionFilter"; -const _SFu = "SubscriptionFilters"; -const _SLS = "SearchedLogStream"; -const _SLSe = "SearchedLogStreams"; -const _SLT = "StartLiveTail"; -const _SLTR = "StartLiveTailRequest"; -const _SLTRS = "StartLiveTailResponseStream"; -const _SLTRt = "StartLiveTailResponse"; -const _SP = "SuppressionPeriod"; -const _SQ = "StartQuery"; -const _SQEE = "ServiceQuotaExceededException"; -const _SQR = "StartQueryRequest"; -const _SQRt = "StartQueryResponse"; -const _SQRto = "StopQueryRequest"; -const _SQRtop = "StopQueryResponse"; -const _SQt = "StopQuery"; -const _SS = "SplitString"; -const _SSE = "SessionStreamingException"; -const _SSEp = "SplitStringEntry"; -const _SSEpl = "SplitStringEntries"; -const _SSEu = "SubstituteStringEntry"; -const _SSEub = "SubstituteStringEntries"; -const _SSu = "SubstituteString"; -const _STE = "SessionTimeoutException"; -const _SUE = "ServiceUnavailableException"; -const _TC = "TypeConverter"; -const _TCE = "TypeConverterEntry"; -const _TCEy = "TypeConverterEntries"; -const _TE = "ThrottlingException"; -const _TL = "TransformedLogs"; -const _TLG = "TagLogGroup"; -const _TLGR = "TagLogGroupRequest"; -const _TLR = "TransformedLogRecord"; -const _TMF = "TestMetricFilter"; -const _TMFR = "TestMetricFilterRequest"; -const _TMFRe = "TestMetricFilterResponse"; -const _TMTE = "TooManyTagsException"; -const _TR = "TagResource"; -const _TRR = "TagResourceRequest"; -const _TS = "TrimString"; -const _TT = "TestTransformer"; -const _TTR = "TestTransformerRequest"; -const _TTRe = "TestTransformerResponse"; -const _UA = "UpdateAnomaly"; -const _UAR = "UpdateAnomalyRequest"; -const _UCE = "UnrecognizedClientException"; -const _UCS = "UpperCaseString"; -const _UDC = "UpdateDeliveryConfiguration"; -const _UDCR = "UpdateDeliveryConfigurationRequest"; -const _UDCRp = "UpdateDeliveryConfigurationResponse"; -const _ULAD = "UpdateLogAnomalyDetector"; -const _ULADR = "UpdateLogAnomalyDetectorRequest"; -const _ULG = "UntagLogGroup"; -const _ULGR = "UntagLogGroupRequest"; -const _UR = "UntagResource"; -const _URR = "UntagResourceRequest"; -const _VE = "ValidationException"; -const _a = "active"; -const _aA = "applicationArn"; -const _aAFAVLDFR = "allowedActionForAllowVendedLogsDeliveryForResource"; -const _aD = "anomalyDetectors"; -const _aDA = "anomalyDetectorArn"; -const _aDS = "anomalyDetectorStatus"; -const _aE = "applicationEndpoint"; -const _aF = "allowedFields"; -const _aFD = "allowedFieldDelimiters"; -const _aI = "accountId"; -const _aIc = "accountIdentifiers"; -const _aIn = "anomalyId"; -const _aIp = "applicationId"; -const _aK = "addKeys"; -const _aOF = "allowedOutputFormats"; -const _aOTL = "applyOnTransformedLogs"; -const _aP = "accountPolicies"; -const _aPc = "accessPolicy"; -const _aPcc = "accountPolicy"; -const _aSPF = "allowedSuffixPathFields"; -const _aVT = "anomalyVisibilityTime"; -const _an = "anomalies"; -const _ap = "application"; -const _ar = "arn"; -const _at = "attributes"; -const _b = "baseline"; -const _bS = "bytesScanned"; -const _c = "client"; -const _cA = "collectionArn"; -const _cE = "collectionEndpoint"; -const _cT = "configurationTemplates"; -const _cTS = "creationTimeStamp"; -const _cTl = "clientToken"; -const _cTo = "completionTime"; -const _cTr = "creationTime"; -const _cTre = "createTime"; -const _cV = "copyValue"; -const _co = "columns"; -const _cod = "code"; -const _col = "collection"; -const _cs = "csv"; -const _d = "description"; -const _dA = "destinationArn"; -const _dD = "deliveryDestinations"; -const _dDA = "deliveryDestinationArn"; -const _dDC = "deliveryDestinationConfiguration"; -const _dDCV = "defaultDeliveryConfigValues"; -const _dDN = "deliveryDestinationName"; -const _dDP = "deliveryDestinationPolicy"; -const _dDT = "deliveryDestinationType"; -const _dDTe = "deliveryDestinationTypes"; -const _dDe = "deliveryDestination"; -const _dK = "deleteKeys"; -const _dN = "detectorName"; -const _dNe = "destinationName"; -const _dP = "destinationPrefix"; -const _dPS = "dataProtectionStatus"; -const _dRA = "destinationResourceArn"; -const _dS = "deliverySources"; -const _dSN = "deliverySourceName"; -const _dSNa = "dataSourceName"; -const _dSRA = "dataSourceRoleArn"; -const _dSa = "dataSource"; -const _dSe = "deliverySource"; -const _dTC = "dateTimeConverter"; -const _dTP = "dynamicTokenPosition"; -const _dV = "defaultValue"; -const _dVP = "dashboardViewerPrincipals"; -const _da = "data"; -const _de = "delivery"; -const _del = "delimiter"; -const _deli = "deliveries"; -const _des = "destination"; -const _desc = "descending"; -const _dest = "destinations"; -const _di = "dimensions"; -const _dis = "distribution"; -const _e = "error"; -const _eBS = "estimatedBytesSkipped"; -const _eCO = "endCharOffset"; -const _eF = "evaluationFrequency"; -const _eHCP = "enableHiveCompatiblePath"; -const _eI = "executionInfo"; -const _eIv = "eventId"; -const _eK = "encryptionKey"; -const _eLEEI = "expiredLogEventEndIndex"; -const _eM = "eventMessage"; -const _eN = "eventNumber"; -const _eP = "encryptionPolicy"; -const _eRI = "expectedRevisionId"; -const _eRS = "estimatedRecordsSkipped"; -const _eS = "eventSource"; -const _eST = "expectedSequenceToken"; -const _eT = "exportTasks"; -const _eTn = "endTime"; -const _eTr = "errorType"; -const _eV = "extractedValues"; -const _en = "entries"; -const _ena = "enabled"; -const _end = "endpoint"; -const _ent = "entity"; -const _enu = "enumerations"; -const _ev = "events"; -const _f = "from"; -const _fD = "fieldDelimiter"; -const _fE = "flattenedElement"; -const _fET = "firstEventTime"; -const _fETi = "firstEventTimestamp"; -const _fI = "fieldIndexes"; -const _fIN = "fieldIndexName"; -const _fLGA = "filterLogGroupArn"; -const _fN = "filterName"; -const _fNP = "filterNamePrefix"; -const _fP = "filterPattern"; -const _fS = "firstSeen"; -const _fSi = "fieldStream"; -const _fU = "forceUpdate"; -const _fi = "field"; -const _fie = "fields"; -const _fl = "flatten"; -const _fo = "force"; -const _g = "grok"; -const _h = "histogram"; -const _hE = "httpError"; -const _i = "id"; -const _iD = "integrationDetails"; -const _iDs = "isDynamic"; -const _iLA = "includeLinkedAccounts"; -const _iN = "integrationName"; -const _iNP = "integrationNamePrefix"; -const _iP = "indexPolicies"; -const _iPLS = "isPatternLevelSuppression"; -const _iPn = "inheritedProperties"; -const _iPnd = "indexPolicy"; -const _iS = "integrationStatus"; -const _iSn = "integrationSummaries"; -const _iT = "ingestionTime"; -const _iTN = "inferredTokenName"; -const _iTn = "integrationType"; -const _in = "interleaved"; -const _k = "key"; -const _kA = "keyAttributes"; -const _kKA = "kmsKeyArn"; -const _kKI = "kmsKeyId"; -const _kP = "keyPrefix"; -const _kVD = "keyValueDelimiter"; -const _l = "locale"; -const _lCS = "lowerCaseString"; -const _lE = "logEvents"; -const _lEFP = "logEventFilterPattern"; -const _lEM = "logEventMessages"; -const _lET = "lastEventTime"; -const _lETa = "lastEventTimestamp"; -const _lG = "logGroups"; -const _lGA = "logGroupArn"; -const _lGAL = "logGroupArnList"; -const _lGC = "logGroupClass"; -const _lGF = "logGroupFields"; -const _lGI = "logGroupIdentifier"; -const _lGIo = "logGroupIdentifiers"; -const _lGN = "logGroupName"; -const _lGNP = "logGroupNamePrefix"; -const _lGNPo = "logGroupNamePattern"; -const _lGNo = "logGroupNames"; -const _lGS = "logGroupsScanned"; -const _lIT = "lastIngestionTime"; -const _lM = "lastModified"; -const _lMT = "lastModifiedTime"; -const _lMTS = "lastModifiedTimeStamp"; -const _lOP = "logObjectPointer"; -const _lP = "lifecyclePolicy"; -const _lR = "logRecord"; -const _lRP = "logRecordPointer"; -const _lS = "lastSeen"; -const _lSN = "logStreamName"; -const _lSNP = "logStreamNamePrefix"; -const _lSNPo = "logStreamNamePrefixes"; -const _lSNo = "logStreamNames"; -const _lST = "lastScanTime"; -const _lSo = "logSamples"; -const _lSog = "logStreams"; -const _lT = "logType"; -const _lTM = "listToMap"; -const _lTo = "logTypes"; -const _lUT = "lastUpdatedTime"; -const _lUTa = "lastUpdateTime"; -const _li = "limit"; -const _lo = "location"; -const _m = "message"; -const _mF = "metricFilters"; -const _mFC = "metricFilterCount"; -const _mK = "moveKeys"; -const _mN = "metricName"; -const _mNe = "metricNamespace"; -const _mP = "matchPatterns"; -const _mR = "maxResults"; -const _mT = "metricTransformations"; -const _mV = "metricValue"; -const _ma = "match"; -const _man = "mandatory"; -const _mat = "matches"; -const _n = "name"; -const _nBT = "nextBackwardToken"; -const _nFT = "nextForwardToken"; -const _nMV = "nonMatchValue"; -const _nP = "networkPolicy"; -const _nST = "nextSequenceToken"; -const _nT = "nextToken"; -const _oB = "orderBy"; -const _oF = "outputFormat"; -const _oIE = "overwriteIfExists"; -const _oSID = "openSearchIntegrationDetails"; -const _oSRC = "openSearchResourceConfig"; -const _oV = "ocsfVersion"; -const _p = "priority"; -const _pC = "parseCloudfront"; -const _pD = "policyDocument"; -const _pI = "patternId"; -const _pJSON = "parseJSON"; -const _pKV = "parseKeyValue"; -const _pN = "policyName"; -const _pP = "parsePostgres"; -const _pR = "patternRegex"; -const _pRa = "parseRoute53"; -const _pS = "patternString"; -const _pSo = "policyScope"; -const _pT = "policyType"; -const _pTOCSF = "parseToOCSF"; -const _pTa = "patternTokens"; -const _pVPC = "parseVPC"; -const _pWAF = "parseWAF"; -const _pe = "percent"; -const _po = "policy"; -const _q = "queries"; -const _qC = "quoteCharacter"; -const _qCE = "queryCompileError"; -const _qD = "queryDefinitions"; -const _qDI = "queryDefinitionId"; -const _qDNP = "queryDefinitionNamePrefix"; -const _qI = "queryId"; -const _qL = "queryLanguage"; -const _qS = "queryString"; -const _r = "results"; -const _rA = "resourceArn"; -const _rAe = "resourceArns"; -const _rAo = "roleArn"; -const _rC = "resourceConfig"; -const _rD = "retentionDays"; -const _rEI = "rejectedEntityInfo"; -const _rF = "recordFields"; -const _rI = "resourceIdentifier"; -const _rID = "retentionInDays"; -const _rIe = "requestId"; -const _rIev = "revisionId"; -const _rK = "renameKeys"; -const _rLEI = "rejectedLogEventsInfo"; -const _rM = "recordsMatched"; -const _rN = "resourceName"; -const _rP = "resourcePolicies"; -const _rPe = "resourcePolicy"; -const _rS = "recordsScanned"; -const _rSe = "responseStream"; -const _rT = "resourceType"; -const _rTe = "resourceTypes"; -const _rTen = "renameTo"; -const _s = "scope"; -const _sB = "storedBytes"; -const _sC = "selectionCriteria"; -const _sCO = "startCharOffset"; -const _sCe = "searchedCompletely"; -const _sCt = "statusCode"; -const _sD = "suppressedDate"; -const _sDC = "s3DeliveryConfiguration"; -const _sF = "subscriptionFilters"; -const _sFH = "startFromHead"; -const _sI = "sessionId"; -const _sLS = "searchedLogStreams"; -const _sM = "sessionMetadata"; -const _sMt = "statusMessage"; -const _sP = "suffixPath"; -const _sPu = "suppressionPeriod"; -const _sR = "sessionResults"; -const _sS = "suppressionState"; -const _sSe = "sessionStart"; -const _sSp = "splitString"; -const _sSu = "substituteString"; -const _sT = "sourceTimezone"; -const _sTe = "sequenceToken"; -const _sTt = "startTime"; -const _sTu = "suppressionType"; -const _sU = "suppressedUntil"; -const _sUe = "sessionUpdate"; -const _sUu = "suppressionUnit"; -const _sa = "sampled"; -const _se = "service"; -const _ser = "server"; -const _so = "source"; -const _st = "state"; -const _sta = "status"; -const _stat = "statistics"; -const _str = "streaming"; -const _su = "suppressed"; -const _suc = "success"; -const _t = "target"; -const _tA = "targetArn"; -const _tC = "transformerConfig"; -const _tCy = "typeConverter"; -const _tEM = "transformedEventMessage"; -const _tF = "targetFormat"; -const _tI = "taskId"; -const _tK = "tagKeys"; -const _tL = "transformedLogs"; -const _tN = "taskName"; -const _tNLESI = "tooNewLogEventStartIndex"; -const _tOLEEI = "tooOldLogEventEndIndex"; -const _tS = "tokenString"; -const _tSr = "trimString"; -const _tT = "targetTimezone"; -const _ta = "tags"; -const _ti = "timestamp"; -const _tim = "time"; -const _to = "to"; -const _ty = "type"; -const _u = "unmask"; -const _uCS = "upperCaseString"; -const _uST = "uploadSequenceToken"; -const _un = "unit"; -const _v = "value"; -const _vK = "valueKey"; -const _w = "workspace"; -const _wI = "workspaceId"; -const _wK = "withKeys"; -const n0 = "com.amazonaws.cloudwatchlogs"; - -// smithy-typescript generated code -import { error, list, op, struct, struct as uni } from "@smithy/core/schema"; - -import { CloudWatchLogsServiceException as __CloudWatchLogsServiceException } from "../models/CloudWatchLogsServiceException"; -import { - AccessDeniedException as __AccessDeniedException, - ConflictException as __ConflictException, - DataAlreadyAcceptedException as __DataAlreadyAcceptedException, - InternalStreamingException as __InternalStreamingException, - InvalidOperationException as __InvalidOperationException, - InvalidParameterException as __InvalidParameterException, - InvalidSequenceTokenException as __InvalidSequenceTokenException, - LimitExceededException as __LimitExceededException, - MalformedQueryException as __MalformedQueryException, - OperationAbortedException as __OperationAbortedException, - ResourceAlreadyExistsException as __ResourceAlreadyExistsException, - ResourceNotFoundException as __ResourceNotFoundException, - ServiceQuotaExceededException as __ServiceQuotaExceededException, - ServiceUnavailableException as __ServiceUnavailableException, - SessionStreamingException as __SessionStreamingException, - SessionTimeoutException as __SessionTimeoutException, - ThrottlingException as __ThrottlingException, - TooManyTagsException as __TooManyTagsException, - UnrecognizedClientException as __UnrecognizedClientException, - ValidationException as __ValidationException, -} from "../models/index"; - -/* eslint no-var: 0 */ - -export var AccessDeniedException = error( - n0, - _ADE, - { - [_e]: _c, - }, - [_m], - [0], - - __AccessDeniedException -); -export var AccountPolicy = struct(n0, _AP, 0, [_pN, _pD, _lUT, _pT, _s, _sC, _aI], [0, 0, 1, 0, 0, 0, 0]); -export var AddKeyEntry = struct(n0, _AKE, 0, [_k, _v, _oIE], [0, 0, 2]); -export var AddKeys = struct(n0, _AK, 0, [_en], [() => AddKeyEntries]); -export var Anomaly = struct( - n0, - _A, - 0, - [_aIn, _pI, _aDA, _pS, _pR, _p, _fS, _lS, _d, _a, _st, _h, _lSo, _pTa, _lGAL, _su, _sD, _sU, _iPLS], - [0, 0, 0, 0, 0, 0, 1, 1, 0, 2, 0, 128 | 1, () => LogSamples, () => PatternTokens, 64 | 0, 2, 1, 1, 2] -); -export var AnomalyDetector = struct( - n0, - _AD, - 0, - [_aDA, _dN, _lGAL, _eF, _fP, _aDS, _kKI, _cTS, _lMTS, _aVT], - [0, 0, 64 | 0, 0, 0, 0, 0, 1, 1, 1] -); -export var AssociateKmsKeyRequest = struct(n0, _AKKR, 0, [_lGN, _kKI, _rI], [0, 0, 0]); -export var CancelExportTaskRequest = struct(n0, _CETR, 0, [_tI], [0]); -export var ConfigurationTemplate = struct( - n0, - _CT, - 0, - [_se, _lT, _rT, _dDT, _dDCV, _aF, _aOF, _aAFAVLDFR, _aFD, _aSPF], - [0, 0, 0, 0, () => ConfigurationTemplateDeliveryConfigValues, () => AllowedFields, 64 | 0, 0, 64 | 0, 64 | 0] -); -export var ConfigurationTemplateDeliveryConfigValues = struct( - n0, - _CTDCV, - 0, - [_rF, _fD, _sDC], - [64 | 0, 0, () => S3DeliveryConfiguration] -); -export var ConflictException = error( - n0, - _CE, - { - [_e]: _c, - }, - [_m], - [0], - - __ConflictException -); -export var CopyValue = struct(n0, _CV, 0, [_en], [() => CopyValueEntries]); -export var CopyValueEntry = struct(n0, _CVE, 0, [_so, _t, _oIE], [0, 0, 2]); -export var CreateDeliveryRequest = struct( - n0, - _CDR, - 0, - [_dSN, _dDA, _rF, _fD, _sDC, _ta], - [0, 0, 64 | 0, 0, () => S3DeliveryConfiguration, 128 | 0] -); -export var CreateDeliveryResponse = struct(n0, _CDRr, 0, [_de], [() => Delivery]); -export var CreateExportTaskRequest = struct( - n0, - _CETRr, - 0, - [_tN, _lGN, _lSNP, _f, _to, _des, _dP], - [0, 0, 0, 1, 1, 0, 0] -); -export var CreateExportTaskResponse = struct(n0, _CETRre, 0, [_tI], [0]); -export var CreateLogAnomalyDetectorRequest = struct( - n0, - _CLADR, - 0, - [_lGAL, _dN, _eF, _fP, _kKI, _aVT, _ta], - [64 | 0, 0, 0, 0, 0, 1, 128 | 0] -); -export var CreateLogAnomalyDetectorResponse = struct(n0, _CLADRr, 0, [_aDA], [0]); -export var CreateLogGroupRequest = struct(n0, _CLGR, 0, [_lGN, _kKI, _ta, _lGC], [0, 0, 128 | 0, 0]); -export var CreateLogStreamRequest = struct(n0, _CLSR, 0, [_lGN, _lSN], [0, 0]); -export var CSV = struct(n0, _CSV, 0, [_qC, _del, _co, _so], [0, 0, 64 | 0, 0]); -export var DataAlreadyAcceptedException = error( - n0, - _DAAE, - { - [_e]: _c, - }, - [_eST, _m], - [0, 0], - - __DataAlreadyAcceptedException -); -export var DateTimeConverter = struct(n0, _DTC, 0, [_so, _t, _tF, _mP, _sT, _tT, _l], [0, 0, 0, 64 | 0, 0, 0, 0]); -export var DeleteAccountPolicyRequest = struct(n0, _DAPR, 0, [_pN, _pT], [0, 0]); -export var DeleteDataProtectionPolicyRequest = struct(n0, _DDPPR, 0, [_lGI], [0]); -export var DeleteDeliveryDestinationPolicyRequest = struct(n0, _DDDPR, 0, [_dDN], [0]); -export var DeleteDeliveryDestinationRequest = struct(n0, _DDDR, 0, [_n], [0]); -export var DeleteDeliveryRequest = struct(n0, _DDR, 0, [_i], [0]); -export var DeleteDeliverySourceRequest = struct(n0, _DDSR, 0, [_n], [0]); -export var DeleteDestinationRequest = struct(n0, _DDRe, 0, [_dNe], [0]); -export var DeleteIndexPolicyRequest = struct(n0, _DIPR, 0, [_lGI], [0]); -export var DeleteIndexPolicyResponse = struct(n0, _DIPRe, 0, [], []); -export var DeleteIntegrationRequest = struct(n0, _DIR, 0, [_iN, _fo], [0, 2]); -export var DeleteIntegrationResponse = struct(n0, _DIRe, 0, [], []); -export var DeleteKeys = struct(n0, _DK, 0, [_wK], [64 | 0]); -export var DeleteLogAnomalyDetectorRequest = struct(n0, _DLADR, 0, [_aDA], [0]); -export var DeleteLogGroupRequest = struct(n0, _DLGR, 0, [_lGN], [0]); -export var DeleteLogStreamRequest = struct(n0, _DLSR, 0, [_lGN, _lSN], [0, 0]); -export var DeleteMetricFilterRequest = struct(n0, _DMFR, 0, [_lGN, _fN], [0, 0]); -export var DeleteQueryDefinitionRequest = struct(n0, _DQDR, 0, [_qDI], [0]); -export var DeleteQueryDefinitionResponse = struct(n0, _DQDRe, 0, [_suc], [2]); -export var DeleteResourcePolicyRequest = struct(n0, _DRPR, 0, [_pN, _rA, _eRI], [0, 0, 0]); -export var DeleteRetentionPolicyRequest = struct(n0, _DRPRe, 0, [_lGN], [0]); -export var DeleteSubscriptionFilterRequest = struct(n0, _DSFR, 0, [_lGN, _fN], [0, 0]); -export var DeleteTransformerRequest = struct(n0, _DTR, 0, [_lGI], [0]); -export var Delivery = struct( - n0, - _D, - 0, - [_i, _ar, _dSN, _dDA, _dDT, _rF, _fD, _sDC, _ta], - [0, 0, 0, 0, 0, 64 | 0, 0, () => S3DeliveryConfiguration, 128 | 0] -); -export var DeliveryDestination = struct( - n0, - _DD, - 0, - [_n, _ar, _dDT, _oF, _dDC, _ta], - [0, 0, 0, 0, () => DeliveryDestinationConfiguration, 128 | 0] -); -export var DeliveryDestinationConfiguration = struct(n0, _DDC, 0, [_dRA], [0]); -export var DeliverySource = struct(n0, _DS, 0, [_n, _ar, _rAe, _se, _lT, _ta], [0, 0, 64 | 0, 0, 0, 128 | 0]); -export var DescribeAccountPoliciesRequest = struct(n0, _DAPRe, 0, [_pT, _pN, _aIc, _nT], [0, 0, 64 | 0, 0]); -export var DescribeAccountPoliciesResponse = struct(n0, _DAPRes, 0, [_aP, _nT], [() => AccountPolicies, 0]); -export var DescribeConfigurationTemplatesRequest = struct( - n0, - _DCTR, - 0, - [_se, _lTo, _rTe, _dDTe, _nT, _li], - [0, 64 | 0, 64 | 0, 64 | 0, 0, 1] -); -export var DescribeConfigurationTemplatesResponse = struct( - n0, - _DCTRe, - 0, - [_cT, _nT], - [() => ConfigurationTemplates, 0] -); -export var DescribeDeliveriesRequest = struct(n0, _DDRes, 0, [_nT, _li], [0, 1]); -export var DescribeDeliveriesResponse = struct(n0, _DDResc, 0, [_deli, _nT], [() => Deliveries, 0]); -export var DescribeDeliveryDestinationsRequest = struct(n0, _DDDRe, 0, [_nT, _li], [0, 1]); -export var DescribeDeliveryDestinationsResponse = struct(n0, _DDDRes, 0, [_dD, _nT], [() => DeliveryDestinations, 0]); -export var DescribeDeliverySourcesRequest = struct(n0, _DDSRe, 0, [_nT, _li], [0, 1]); -export var DescribeDeliverySourcesResponse = struct(n0, _DDSRes, 0, [_dS, _nT], [() => DeliverySources, 0]); -export var DescribeDestinationsRequest = struct(n0, _DDRescr, 0, [_DNP, _nT, _li], [0, 0, 1]); -export var DescribeDestinationsResponse = struct(n0, _DDRescri, 0, [_dest, _nT], [() => Destinations, 0]); -export var DescribeExportTasksRequest = struct(n0, _DETR, 0, [_tI, _sCt, _nT, _li], [0, 0, 0, 1]); -export var DescribeExportTasksResponse = struct(n0, _DETRe, 0, [_eT, _nT], [() => ExportTasks, 0]); -export var DescribeFieldIndexesRequest = struct(n0, _DFIR, 0, [_lGIo, _nT], [64 | 0, 0]); -export var DescribeFieldIndexesResponse = struct(n0, _DFIRe, 0, [_fI, _nT], [() => FieldIndexes, 0]); -export var DescribeIndexPoliciesRequest = struct(n0, _DIPRes, 0, [_lGIo, _nT], [64 | 0, 0]); -export var DescribeIndexPoliciesResponse = struct(n0, _DIPResc, 0, [_iP, _nT], [() => IndexPolicies, 0]); -export var DescribeLogGroupsRequest = struct( - n0, - _DLGRe, - 0, - [_aIc, _lGNP, _lGNPo, _nT, _li, _iLA, _lGC, _lGIo], - [64 | 0, 0, 0, 0, 1, 2, 0, 64 | 0] -); -export var DescribeLogGroupsResponse = struct(n0, _DLGRes, 0, [_lG, _nT], [() => LogGroups, 0]); -export var DescribeLogStreamsRequest = struct( - n0, - _DLSRe, - 0, - [_lGN, _lGI, _lSNP, _oB, _desc, _nT, _li], - [0, 0, 0, 0, 2, 0, 1] -); -export var DescribeLogStreamsResponse = struct(n0, _DLSRes, 0, [_lSog, _nT], [() => LogStreams, 0]); -export var DescribeMetricFiltersRequest = struct(n0, _DMFRe, 0, [_lGN, _fNP, _nT, _li, _mN, _mNe], [0, 0, 0, 1, 0, 0]); -export var DescribeMetricFiltersResponse = struct(n0, _DMFRes, 0, [_mF, _nT], [() => MetricFilters, 0]); -export var DescribeQueriesRequest = struct(n0, _DQR, 0, [_lGN, _sta, _mR, _nT, _qL], [0, 0, 1, 0, 0]); -export var DescribeQueriesResponse = struct(n0, _DQRe, 0, [_q, _nT], [() => QueryInfoList, 0]); -export var DescribeQueryDefinitionsRequest = struct(n0, _DQDRes, 0, [_qL, _qDNP, _mR, _nT], [0, 0, 1, 0]); -export var DescribeQueryDefinitionsResponse = struct(n0, _DQDResc, 0, [_qD, _nT], [() => QueryDefinitionList, 0]); -export var DescribeResourcePoliciesRequest = struct(n0, _DRPRes, 0, [_nT, _li, _rA, _pSo], [0, 1, 0, 0]); -export var DescribeResourcePoliciesResponse = struct(n0, _DRPResc, 0, [_rP, _nT], [() => ResourcePolicies, 0]); -export var DescribeSubscriptionFiltersRequest = struct(n0, _DSFRe, 0, [_lGN, _fNP, _nT, _li], [0, 0, 0, 1]); -export var DescribeSubscriptionFiltersResponse = struct(n0, _DSFRes, 0, [_sF, _nT], [() => SubscriptionFilters, 0]); -export var Destination = struct(n0, _De, 0, [_dNe, _tA, _rAo, _aPc, _ar, _cTr], [0, 0, 0, 0, 0, 1]); -export var DisassociateKmsKeyRequest = struct(n0, _DKKR, 0, [_lGN, _rI], [0, 0]); -export var Entity = struct(n0, _E, 0, [_kA, _at], [128 | 0, 128 | 0]); -export var ExportTask = struct( - n0, - _ET, - 0, - [_tI, _tN, _lGN, _f, _to, _des, _dP, _sta, _eI], - [0, 0, 0, 1, 1, 0, 0, () => ExportTaskStatus, () => ExportTaskExecutionInfo] -); -export var ExportTaskExecutionInfo = struct(n0, _ETEI, 0, [_cTr, _cTo], [1, 1]); -export var ExportTaskStatus = struct(n0, _ETS, 0, [_cod, _m], [0, 0]); -export var FieldIndex = struct(n0, _FI, 0, [_lGI, _fIN, _lST, _fET, _lET], [0, 0, 1, 1, 1]); -export var FieldsData = struct(n0, _FD, 0, [_da], [21]); -export var FilteredLogEvent = struct(n0, _FLE, 0, [_lSN, _ti, _m, _iT, _eIv], [0, 1, 0, 1, 0]); -export var FilterLogEventsRequest = struct( - n0, - _FLER, - 0, - [_lGN, _lGI, _lSNo, _lSNP, _sTt, _eTn, _fP, _nT, _li, _in, _u], - [0, 0, 64 | 0, 0, 1, 1, 0, 0, 1, 2, 2] -); -export var FilterLogEventsResponse = struct( - n0, - _FLERi, - 0, - [_ev, _sLS, _nT], - [() => FilteredLogEvents, () => SearchedLogStreams, 0] -); -export var GetDataProtectionPolicyRequest = struct(n0, _GDPPR, 0, [_lGI], [0]); -export var GetDataProtectionPolicyResponse = struct(n0, _GDPPRe, 0, [_lGI, _pD, _lUT], [0, 0, 1]); -export var GetDeliveryDestinationPolicyRequest = struct(n0, _GDDPR, 0, [_dDN], [0]); -export var GetDeliveryDestinationPolicyResponse = struct(n0, _GDDPRe, 0, [_po], [() => Policy]); -export var GetDeliveryDestinationRequest = struct(n0, _GDDR, 0, [_n], [0]); -export var GetDeliveryDestinationResponse = struct(n0, _GDDRe, 0, [_dDe], [() => DeliveryDestination]); -export var GetDeliveryRequest = struct(n0, _GDR, 0, [_i], [0]); -export var GetDeliveryResponse = struct(n0, _GDRe, 0, [_de], [() => Delivery]); -export var GetDeliverySourceRequest = struct(n0, _GDSR, 0, [_n], [0]); -export var GetDeliverySourceResponse = struct(n0, _GDSRe, 0, [_dSe], [() => DeliverySource]); -export var GetIntegrationRequest = struct(n0, _GIR, 0, [_iN], [0]); -export var GetIntegrationResponse = struct(n0, _GIRe, 0, [_iN, _iTn, _iS, _iD], [0, 0, 0, () => IntegrationDetails]); -export var GetLogAnomalyDetectorRequest = struct(n0, _GLADR, 0, [_aDA], [0]); -export var GetLogAnomalyDetectorResponse = struct( - n0, - _GLADRe, - 0, - [_dN, _lGAL, _eF, _fP, _aDS, _kKI, _cTS, _lMTS, _aVT], - [0, 64 | 0, 0, 0, 0, 0, 1, 1, 1] -); -export var GetLogEventsRequest = struct( - n0, - _GLER, - 0, - [_lGN, _lGI, _lSN, _sTt, _eTn, _nT, _li, _sFH, _u], - [0, 0, 0, 1, 1, 0, 1, 2, 2] -); -export var GetLogEventsResponse = struct(n0, _GLERe, 0, [_ev, _nFT, _nBT], [() => OutputLogEvents, 0, 0]); -export var GetLogGroupFieldsRequest = struct(n0, _GLGFR, 0, [_lGN, _tim, _lGI], [0, 1, 0]); -export var GetLogGroupFieldsResponse = struct(n0, _GLGFRe, 0, [_lGF], [() => LogGroupFieldList]); -export var GetLogObjectRequest = struct(n0, _GLOR, 0, [_u, _lOP], [2, 0]); -export var GetLogObjectResponse = struct(n0, _GLORe, 0, [_fSi], [[() => GetLogObjectResponseStream, 0]]); -export var GetLogRecordRequest = struct(n0, _GLRR, 0, [_lRP, _u], [0, 2]); -export var GetLogRecordResponse = struct(n0, _GLRRe, 0, [_lR], [128 | 0]); -export var GetQueryResultsRequest = struct(n0, _GQRR, 0, [_qI], [0]); -export var GetQueryResultsResponse = struct( - n0, - _GQRRe, - 0, - [_qL, _r, _stat, _sta, _eK], - [0, () => QueryResults, () => QueryStatistics, 0, 0] -); -export var GetTransformerRequest = struct(n0, _GTR, 0, [_lGI], [0]); -export var GetTransformerResponse = struct(n0, _GTRe, 0, [_lGI, _cTr, _lMT, _tC], [0, 1, 1, () => Processors]); -export var Grok = struct(n0, _G, 0, [_so, _ma], [0, 0]); -export var IndexPolicy = struct(n0, _IP, 0, [_lGI, _lUTa, _pD, _pN, _so], [0, 1, 0, 0, 0]); -export var InputLogEvent = struct(n0, _ILE, 0, [_ti, _m], [1, 0]); -export var IntegrationSummary = struct(n0, _IS, 0, [_iN, _iTn, _iS], [0, 0, 0]); -export var InternalStreamingException = error( - n0, - _ISE, - { - [_e]: _c, - }, - [_m], - [0], - - __InternalStreamingException -); -export var InvalidOperationException = error( - n0, - _IOE, - { - [_e]: _c, - }, - [_m], - [0], - - __InvalidOperationException -); -export var InvalidParameterException = error( - n0, - _IPE, - { - [_e]: _c, - }, - [_m], - [0], - - __InvalidParameterException -); -export var InvalidSequenceTokenException = error( - n0, - _ISTE, - { - [_e]: _c, - }, - [_eST, _m], - [0, 0], - - __InvalidSequenceTokenException -); -export var LimitExceededException = error( - n0, - _LEE, - { - [_e]: _c, - }, - [_m], - [0], - - __LimitExceededException -); -export var ListAnomaliesRequest = struct(n0, _LAR, 0, [_aDA, _sS, _li, _nT], [0, 0, 1, 0]); -export var ListAnomaliesResponse = struct(n0, _LARi, 0, [_an, _nT], [() => Anomalies, 0]); -export var ListIntegrationsRequest = struct(n0, _LIR, 0, [_iNP, _iTn, _iS], [0, 0, 0]); -export var ListIntegrationsResponse = struct(n0, _LIRi, 0, [_iSn], [() => IntegrationSummaries]); -export var ListLogAnomalyDetectorsRequest = struct(n0, _LLADR, 0, [_fLGA, _li, _nT], [0, 1, 0]); -export var ListLogAnomalyDetectorsResponse = struct(n0, _LLADRi, 0, [_aD, _nT], [() => AnomalyDetectors, 0]); -export var ListLogGroupsForQueryRequest = struct(n0, _LLGFQR, 0, [_qI, _nT, _mR], [0, 0, 1]); -export var ListLogGroupsForQueryResponse = struct(n0, _LLGFQRi, 0, [_lGIo, _nT], [64 | 0, 0]); -export var ListLogGroupsRequest = struct(n0, _LLGR, 0, [_lGNPo, _lGC, _iLA, _aIc, _nT, _li], [0, 0, 2, 64 | 0, 0, 1]); -export var ListLogGroupsResponse = struct(n0, _LLGRi, 0, [_lG, _nT], [() => LogGroupSummaries, 0]); -export var ListTagsForResourceRequest = struct(n0, _LTFRR, 0, [_rA], [0]); -export var ListTagsForResourceResponse = struct(n0, _LTFRRi, 0, [_ta], [128 | 0]); -export var ListTagsLogGroupRequest = struct(n0, _LTLGR, 0, [_lGN], [0]); -export var ListTagsLogGroupResponse = struct(n0, _LTLGRi, 0, [_ta], [128 | 0]); -export var ListToMap = struct(n0, _LTM, 0, [_so, _k, _vK, _t, _fl, _fE], [0, 0, 0, 0, 2, 0]); -export var LiveTailSessionLogEvent = struct(n0, _LTSLE, 0, [_lSN, _lGI, _m, _ti, _iT], [0, 0, 0, 1, 1]); -export var LiveTailSessionMetadata = struct(n0, _LTSM, 0, [_sa], [2]); -export var LiveTailSessionStart = struct( - n0, - _LTSS, - 0, - [_rIe, _sI, _lGIo, _lSNo, _lSNPo, _lEFP], - [0, 0, 64 | 0, 64 | 0, 64 | 0, 0] -); -export var LiveTailSessionUpdate = struct( - n0, - _LTSU, - 0, - [_sM, _sR], - [() => LiveTailSessionMetadata, () => LiveTailSessionResults] -); -export var LogEvent = struct(n0, _LE, 0, [_ti, _m], [1, 0]); -export var LogGroup = struct( - n0, - _LG, - 0, - [_lGN, _cTr, _rID, _mFC, _ar, _sB, _kKI, _dPS, _iPn, _lGC, _lGA], - [0, 1, 1, 1, 0, 1, 0, 0, 64 | 0, 0, 0] -); -export var LogGroupField = struct(n0, _LGF, 0, [_n, _pe], [0, 1]); -export var LogGroupSummary = struct(n0, _LGS, 0, [_lGN, _lGA, _lGC], [0, 0, 0]); -export var LogStream = struct(n0, _LS, 0, [_lSN, _cTr, _fETi, _lETa, _lIT, _uST, _ar, _sB], [0, 1, 1, 1, 1, 0, 0, 1]); -export var LowerCaseString = struct(n0, _LCS, 0, [_wK], [64 | 0]); -export var MalformedQueryException = error( - n0, - _MQE, - { - [_e]: _c, - }, - [_qCE, _m], - [() => QueryCompileError, 0], - - __MalformedQueryException -); -export var MetricFilter = struct( - n0, - _MF, - 0, - [_fN, _fP, _mT, _cTr, _lGN, _aOTL], - [0, 0, () => MetricTransformations, 1, 0, 2] -); -export var MetricFilterMatchRecord = struct(n0, _MFMR, 0, [_eN, _eM, _eV], [1, 0, 128 | 0]); -export var MetricTransformation = struct(n0, _MT, 0, [_mN, _mNe, _mV, _dV, _di, _un], [0, 0, 0, 1, 128 | 0, 0]); -export var MoveKeyEntry = struct(n0, _MKE, 0, [_so, _t, _oIE], [0, 0, 2]); -export var MoveKeys = struct(n0, _MK, 0, [_en], [() => MoveKeyEntries]); -export var OpenSearchApplication = struct( - n0, - _OSA, - 0, - [_aE, _aA, _aIp, _sta], - [0, 0, 0, () => OpenSearchResourceStatus] -); -export var OpenSearchCollection = struct(n0, _OSC, 0, [_cE, _cA, _sta], [0, 0, () => OpenSearchResourceStatus]); -export var OpenSearchDataAccessPolicy = struct(n0, _OSDAP, 0, [_pN, _sta], [0, () => OpenSearchResourceStatus]); -export var OpenSearchDataSource = struct(n0, _OSDS, 0, [_dSNa, _sta], [0, () => OpenSearchResourceStatus]); -export var OpenSearchEncryptionPolicy = struct(n0, _OSEP, 0, [_pN, _sta], [0, () => OpenSearchResourceStatus]); -export var OpenSearchIntegrationDetails = struct( - n0, - _OSID, - 0, - [_dSa, _ap, _col, _w, _eP, _nP, _aPc, _lP], - [ - () => OpenSearchDataSource, - () => OpenSearchApplication, - () => OpenSearchCollection, - () => OpenSearchWorkspace, - () => OpenSearchEncryptionPolicy, - () => OpenSearchNetworkPolicy, - () => OpenSearchDataAccessPolicy, - () => OpenSearchLifecyclePolicy, - ] -); -export var OpenSearchLifecyclePolicy = struct(n0, _OSLP, 0, [_pN, _sta], [0, () => OpenSearchResourceStatus]); -export var OpenSearchNetworkPolicy = struct(n0, _OSNP, 0, [_pN, _sta], [0, () => OpenSearchResourceStatus]); -export var OpenSearchResourceConfig = struct(n0, _OSRC, 0, [_kKA, _dSRA, _dVP, _aA, _rD], [0, 0, 64 | 0, 0, 1]); -export var OpenSearchResourceStatus = struct(n0, _OSRS, 0, [_sta, _sMt], [0, 0]); -export var OpenSearchWorkspace = struct(n0, _OSW, 0, [_wI, _sta], [0, () => OpenSearchResourceStatus]); -export var OperationAbortedException = error( - n0, - _OAE, - { - [_e]: _c, - }, - [_m], - [0], - - __OperationAbortedException -); -export var OutputLogEvent = struct(n0, _OLE, 0, [_ti, _m, _iT], [1, 0, 1]); -export var ParseCloudfront = struct(n0, _PC, 0, [_so], [0]); -export var ParseJSON = struct(n0, _PJSON, 0, [_so, _des], [0, 0]); -export var ParseKeyValue = struct(n0, _PKV, 0, [_so, _des, _fD, _kVD, _kP, _nMV, _oIE], [0, 0, 0, 0, 0, 0, 2]); -export var ParsePostgres = struct(n0, _PP, 0, [_so], [0]); -export var ParseRoute53 = struct(n0, _PR, 0, [_so], [0]); -export var ParseToOCSF = struct(n0, _PTOCSF, 0, [_so, _eS, _oV], [0, 0, 0]); -export var ParseVPC = struct(n0, _PVPC, 0, [_so], [0]); -export var ParseWAF = struct(n0, _PWAF, 0, [_so], [0]); -export var PatternToken = struct(n0, _PT, 0, [_dTP, _iDs, _tS, _enu, _iTN], [1, 2, 0, 128 | 1, 0]); -export var Policy = struct(n0, _P, 0, [_dDP], [0]); -export var Processor = struct( - n0, - _Pr, - 0, - [ - _aK, - _cV, - _cs, - _dTC, - _dK, - _g, - _lTM, - _lCS, - _mK, - _pC, - _pJSON, - _pKV, - _pRa, - _pTOCSF, - _pP, - _pVPC, - _pWAF, - _rK, - _sSp, - _sSu, - _tSr, - _tCy, - _uCS, - ], - [ - () => AddKeys, - () => CopyValue, - () => CSV, - () => DateTimeConverter, - () => DeleteKeys, - () => Grok, - () => ListToMap, - () => LowerCaseString, - () => MoveKeys, - () => ParseCloudfront, - () => ParseJSON, - () => ParseKeyValue, - () => ParseRoute53, - () => ParseToOCSF, - () => ParsePostgres, - () => ParseVPC, - () => ParseWAF, - () => RenameKeys, - () => SplitString, - () => SubstituteString, - () => TrimString, - () => TypeConverter, - () => UpperCaseString, - ] -); -export var PutAccountPolicyRequest = struct(n0, _PAPR, 0, [_pN, _pD, _pT, _s, _sC], [0, 0, 0, 0, 0]); -export var PutAccountPolicyResponse = struct(n0, _PAPRu, 0, [_aPcc], [() => AccountPolicy]); -export var PutDataProtectionPolicyRequest = struct(n0, _PDPPR, 0, [_lGI, _pD], [0, 0]); -export var PutDataProtectionPolicyResponse = struct(n0, _PDPPRu, 0, [_lGI, _pD, _lUT], [0, 0, 1]); -export var PutDeliveryDestinationPolicyRequest = struct(n0, _PDDPR, 0, [_dDN, _dDP], [0, 0]); -export var PutDeliveryDestinationPolicyResponse = struct(n0, _PDDPRu, 0, [_po], [() => Policy]); -export var PutDeliveryDestinationRequest = struct( - n0, - _PDDR, - 0, - [_n, _oF, _dDC, _dDT, _ta], - [0, 0, () => DeliveryDestinationConfiguration, 0, 128 | 0] -); -export var PutDeliveryDestinationResponse = struct(n0, _PDDRu, 0, [_dDe], [() => DeliveryDestination]); -export var PutDeliverySourceRequest = struct(n0, _PDSR, 0, [_n, _rA, _lT, _ta], [0, 0, 0, 128 | 0]); -export var PutDeliverySourceResponse = struct(n0, _PDSRu, 0, [_dSe], [() => DeliverySource]); -export var PutDestinationPolicyRequest = struct(n0, _PDPR, 0, [_dNe, _aPc, _fU], [0, 0, 2]); -export var PutDestinationRequest = struct(n0, _PDR, 0, [_dNe, _tA, _rAo, _ta], [0, 0, 0, 128 | 0]); -export var PutDestinationResponse = struct(n0, _PDRu, 0, [_des], [() => Destination]); -export var PutIndexPolicyRequest = struct(n0, _PIPR, 0, [_lGI, _pD], [0, 0]); -export var PutIndexPolicyResponse = struct(n0, _PIPRu, 0, [_iPnd], [() => IndexPolicy]); -export var PutIntegrationRequest = struct(n0, _PIR, 0, [_iN, _rC, _iTn], [0, () => ResourceConfig, 0]); -export var PutIntegrationResponse = struct(n0, _PIRu, 0, [_iN, _iS], [0, 0]); -export var PutLogEventsRequest = struct( - n0, - _PLER, - 0, - [_lGN, _lSN, _lE, _sTe, _ent], - [0, 0, () => InputLogEvents, 0, () => Entity] -); -export var PutLogEventsResponse = struct( - n0, - _PLERu, - 0, - [_nST, _rLEI, _rEI], - [0, () => RejectedLogEventsInfo, () => RejectedEntityInfo] -); -export var PutMetricFilterRequest = struct( - n0, - _PMFR, - 0, - [_lGN, _fN, _fP, _mT, _aOTL], - [0, 0, 0, () => MetricTransformations, 2] -); -export var PutQueryDefinitionRequest = struct( - n0, - _PQDR, - 0, - [_qL, _n, _qDI, _lGNo, _qS, _cTl], - [0, 0, 0, 64 | 0, 0, [0, 4]] -); -export var PutQueryDefinitionResponse = struct(n0, _PQDRu, 0, [_qDI], [0]); -export var PutResourcePolicyRequest = struct(n0, _PRPR, 0, [_pN, _pD, _rA, _eRI], [0, 0, 0, 0]); -export var PutResourcePolicyResponse = struct(n0, _PRPRu, 0, [_rPe, _rIev], [() => ResourcePolicy, 0]); -export var PutRetentionPolicyRequest = struct(n0, _PRPRut, 0, [_lGN, _rID], [0, 1]); -export var PutSubscriptionFilterRequest = struct( - n0, - _PSFR, - 0, - [_lGN, _fN, _fP, _dA, _rAo, _dis, _aOTL], - [0, 0, 0, 0, 0, 0, 2] -); -export var PutTransformerRequest = struct(n0, _PTR, 0, [_lGI, _tC], [0, () => Processors]); -export var QueryCompileError = struct(n0, _QCE, 0, [_lo, _m], [() => QueryCompileErrorLocation, 0]); -export var QueryCompileErrorLocation = struct(n0, _QCEL, 0, [_sCO, _eCO], [1, 1]); -export var QueryDefinition = struct(n0, _QD, 0, [_qL, _qDI, _n, _qS, _lM, _lGNo], [0, 0, 0, 0, 1, 64 | 0]); -export var QueryInfo = struct(n0, _QI, 0, [_qL, _qI, _qS, _sta, _cTre, _lGN], [0, 0, 0, 0, 1, 0]); -export var QueryStatistics = struct(n0, _QS, 0, [_rM, _rS, _eRS, _bS, _eBS, _lGS], [1, 1, 1, 1, 1, 1]); -export var RecordField = struct(n0, _RF, 0, [_n, _man], [0, 2]); -export var RejectedEntityInfo = struct(n0, _REI, 0, [_eTr], [0]); -export var RejectedLogEventsInfo = struct(n0, _RLEI, 0, [_tNLESI, _tOLEEI, _eLEEI], [1, 1, 1]); -export var RenameKeyEntry = struct(n0, _RKE, 0, [_k, _rTen, _oIE], [0, 0, 2]); -export var RenameKeys = struct(n0, _RK, 0, [_en], [() => RenameKeyEntries]); -export var ResourceAlreadyExistsException = error( - n0, - _RAEE, - { - [_e]: _c, - }, - [_m], - [0], - - __ResourceAlreadyExistsException -); -export var ResourceNotFoundException = error( - n0, - _RNFE, - { - [_e]: _c, - }, - [_m], - [0], - - __ResourceNotFoundException -); -export var ResourcePolicy = struct(n0, _RP, 0, [_pN, _pD, _lUT, _pSo, _rA, _rIev], [0, 0, 1, 0, 0, 0]); -export var ResultField = struct(n0, _RFe, 0, [_fi, _v], [0, 0]); -export var S3DeliveryConfiguration = struct(n0, _SDC, 0, [_sP, _eHCP], [0, 2]); -export var SearchedLogStream = struct(n0, _SLS, 0, [_lSN, _sCe], [0, 2]); -export var ServiceQuotaExceededException = error( - n0, - _SQEE, - { - [_e]: _c, - }, - [_m], - [0], - - __ServiceQuotaExceededException -); -export var ServiceUnavailableException = error( - n0, - _SUE, - { - [_e]: _ser, - }, - [_m], - [0], - - __ServiceUnavailableException -); -export var SessionStreamingException = error( - n0, - _SSE, - { - [_e]: _c, - }, - [_m], - [0], - - __SessionStreamingException -); -export var SessionTimeoutException = error( - n0, - _STE, - { - [_e]: _c, - }, - [_m], - [0], - - __SessionTimeoutException -); -export var SplitString = struct(n0, _SS, 0, [_en], [() => SplitStringEntries]); -export var SplitStringEntry = struct(n0, _SSEp, 0, [_so, _del], [0, 0]); -export var StartLiveTailRequest = struct(n0, _SLTR, 0, [_lGIo, _lSNo, _lSNPo, _lEFP], [64 | 0, 64 | 0, 64 | 0, 0]); -export var StartLiveTailResponse = struct(n0, _SLTRt, 0, [_rSe], [[() => StartLiveTailResponseStream, 0]]); -export var StartQueryRequest = struct( - n0, - _SQR, - 0, - [_qL, _lGN, _lGNo, _lGIo, _sTt, _eTn, _qS, _li], - [0, 0, 64 | 0, 64 | 0, 1, 1, 0, 1] -); -export var StartQueryResponse = struct(n0, _SQRt, 0, [_qI], [0]); -export var StopQueryRequest = struct(n0, _SQRto, 0, [_qI], [0]); -export var StopQueryResponse = struct(n0, _SQRtop, 0, [_suc], [2]); -export var SubscriptionFilter = struct( - n0, - _SF, - 0, - [_fN, _lGN, _fP, _dA, _rAo, _dis, _aOTL, _cTr], - [0, 0, 0, 0, 0, 0, 2, 1] -); -export var SubstituteString = struct(n0, _SSu, 0, [_en], [() => SubstituteStringEntries]); -export var SubstituteStringEntry = struct(n0, _SSEu, 0, [_so, _f, _to], [0, 0, 0]); -export var SuppressionPeriod = struct(n0, _SP, 0, [_v, _sUu], [1, 0]); -export var TagLogGroupRequest = struct(n0, _TLGR, 0, [_lGN, _ta], [0, 128 | 0]); -export var TagResourceRequest = struct(n0, _TRR, 0, [_rA, _ta], [0, 128 | 0]); -export var TestMetricFilterRequest = struct(n0, _TMFR, 0, [_fP, _lEM], [0, 64 | 0]); -export var TestMetricFilterResponse = struct(n0, _TMFRe, 0, [_mat], [() => MetricFilterMatches]); -export var TestTransformerRequest = struct(n0, _TTR, 0, [_tC, _lEM], [() => Processors, 64 | 0]); -export var TestTransformerResponse = struct(n0, _TTRe, 0, [_tL], [() => TransformedLogs]); -export var ThrottlingException = error( - n0, - _TE, - { - [_e]: _c, - }, - [_m], - [0], - - __ThrottlingException -); -export var TooManyTagsException = error( - n0, - _TMTE, - { - [_e]: _c, - [_hE]: 400, - }, - [_m, _rN], - [0, 0], - - __TooManyTagsException -); -export var TransformedLogRecord = struct(n0, _TLR, 0, [_eN, _eM, _tEM], [1, 0, 0]); -export var TrimString = struct(n0, _TS, 0, [_wK], [64 | 0]); -export var TypeConverter = struct(n0, _TC, 0, [_en], [() => TypeConverterEntries]); -export var TypeConverterEntry = struct(n0, _TCE, 0, [_k, _ty], [0, 0]); -export var UnrecognizedClientException = error( - n0, - _UCE, - { - [_e]: _c, - }, - [_m], - [0], - - __UnrecognizedClientException -); -export var UntagLogGroupRequest = struct(n0, _ULGR, 0, [_lGN, _ta], [0, 64 | 0]); -export var UntagResourceRequest = struct(n0, _URR, 0, [_rA, _tK], [0, 64 | 0]); -export var UpdateAnomalyRequest = struct( - n0, - _UAR, - 0, - [_aIn, _pI, _aDA, _sTu, _sPu, _b], - [0, 0, 0, 0, () => SuppressionPeriod, 2] -); -export var UpdateDeliveryConfigurationRequest = struct( - n0, - _UDCR, - 0, - [_i, _rF, _fD, _sDC], - [0, 64 | 0, 0, () => S3DeliveryConfiguration] -); -export var UpdateDeliveryConfigurationResponse = struct(n0, _UDCRp, 0, [], []); -export var UpdateLogAnomalyDetectorRequest = struct(n0, _ULADR, 0, [_aDA, _eF, _fP, _aVT, _ena], [0, 0, 0, 1, 2]); -export var UpperCaseString = struct(n0, _UCS, 0, [_wK], [64 | 0]); -export var ValidationException = error( - n0, - _VE, - { - [_e]: _c, - }, - [_m], - [0], - - __ValidationException -); -export var Unit = "unit" as const; - -export var CloudWatchLogsServiceException = error( - "smithy.ts.sdk.synthetic.com.amazonaws.cloudwatchlogs", - "CloudWatchLogsServiceException", - 0, - [], - [], - __CloudWatchLogsServiceException -); -export var AccountIds = 64 | 0; - -export var AccountPolicies = list(n0, _APc, 0, () => AccountPolicy); -export var AddKeyEntries = list(n0, _AKEd, 0, () => AddKeyEntry); -export var AllowedFieldDelimiters = 64 | 0; - -export var AllowedFields = list(n0, _AF, 0, () => RecordField); -export var Anomalies = list(n0, _An, 0, () => Anomaly); -export var AnomalyDetectors = list(n0, _ADn, 0, () => AnomalyDetector); -export var Columns = 64 | 0; - -export var ConfigurationTemplates = list(n0, _CTo, 0, () => ConfigurationTemplate); -export var CopyValueEntries = list(n0, _CVEo, 0, () => CopyValueEntry); -export var DashboardViewerPrincipals = 64 | 0; - -export var DeleteWithKeys = 64 | 0; - -export var Deliveries = list(n0, _Del, 0, () => Delivery); -export var DeliveryDestinations = list(n0, _DDe, 0, () => DeliveryDestination); -export var DeliveryDestinationTypes = 64 | 0; - -export var DeliverySources = list(n0, _DSe, 0, () => DeliverySource); -export var DescribeFieldIndexesLogGroupIdentifiers = 64 | 0; - -export var DescribeIndexPoliciesLogGroupIdentifiers = 64 | 0; - -export var DescribeLogGroupsLogGroupIdentifiers = 64 | 0; - -export var Destinations = list(n0, _Des, 0, () => Destination); -export var ExportTasks = list(n0, _ETx, 0, () => ExportTask); -export var FieldIndexes = list(n0, _FIi, 0, () => FieldIndex); -export var FilteredLogEvents = list(n0, _FLEi, 0, () => FilteredLogEvent); -export var IndexPolicies = list(n0, _IPn, 0, () => IndexPolicy); -export var InheritedProperties = 64 | 0; - -export var InputLogEvents = list(n0, _ILEn, 0, () => InputLogEvent); -export var InputLogStreamNames = 64 | 0; - -export var IntegrationSummaries = list(n0, _ISn, 0, () => IntegrationSummary); -export var LiveTailSessionResults = list(n0, _LTSR, 0, () => LiveTailSessionLogEvent); -export var LogGroupArnList = 64 | 0; - -export var LogGroupFieldList = list(n0, _LGFL, 0, () => LogGroupField); -export var LogGroupIdentifiers = 64 | 0; - -export var LogGroupNames = 64 | 0; - -export var LogGroups = list(n0, _LGo, 0, () => LogGroup); -export var LogGroupSummaries = list(n0, _LGSo, 0, () => LogGroupSummary); -export var LogSamples = list(n0, _LSo, 0, () => LogEvent); -export var LogStreams = list(n0, _LSog, 0, () => LogStream); -export var LogTypes = 64 | 0; - -export var LowerCaseStringWithKeys = 64 | 0; - -export var MatchPatterns = 64 | 0; - -export var MetricFilterMatches = list(n0, _MFM, 0, () => MetricFilterMatchRecord); -export var MetricFilters = list(n0, _MFe, 0, () => MetricFilter); -export var MetricTransformations = list(n0, _MTe, 0, () => MetricTransformation); -export var MoveKeyEntries = list(n0, _MKEo, 0, () => MoveKeyEntry); -export var OutputFormats = 64 | 0; - -export var OutputLogEvents = list(n0, _OLEu, 0, () => OutputLogEvent); -export var PatternTokens = list(n0, _PTa, 0, () => PatternToken); -export var Processors = list(n0, _Pro, 0, () => Processor); -export var QueryDefinitionList = list(n0, _QDL, 0, () => QueryDefinition); -export var QueryInfoList = list(n0, _QIL, 0, () => QueryInfo); -export var QueryResults = list(n0, _QR, 0, () => ResultRows); -export var RecordFields = 64 | 0; - -export var RenameKeyEntries = list(n0, _RKEe, 0, () => RenameKeyEntry); -export var ResourceArns = 64 | 0; - -export var ResourcePolicies = list(n0, _RPe, 0, () => ResourcePolicy); -export var ResourceTypes = 64 | 0; - -export var ResultRows = list(n0, _RR, 0, () => ResultField); -export var SearchedLogStreams = list(n0, _SLSe, 0, () => SearchedLogStream); -export var SplitStringEntries = list(n0, _SSEpl, 0, () => SplitStringEntry); -export var StartLiveTailLogGroupIdentifiers = 64 | 0; - -export var SubscriptionFilters = list(n0, _SFu, 0, () => SubscriptionFilter); -export var SubstituteStringEntries = list(n0, _SSEub, 0, () => SubstituteStringEntry); -export var TagKeyList = 64 | 0; - -export var TagList = 64 | 0; - -export var TestEventMessages = 64 | 0; - -export var TransformedLogs = list(n0, _TL, 0, () => TransformedLogRecord); -export var TrimStringWithKeys = 64 | 0; - -export var TypeConverterEntries = list(n0, _TCEy, 0, () => TypeConverterEntry); -export var UpperCaseStringWithKeys = 64 | 0; - -export var Dimensions = 128 | 0; - -export var EntityAttributes = 128 | 0; - -export var EntityKeyAttributes = 128 | 0; - -export var Enumerations = 128 | 1; - -export var ExtractedValues = 128 | 0; - -export var Histogram = 128 | 1; - -export var LogRecord = 128 | 0; - -export var Tags = 128 | 0; - -export var GetLogObjectResponseStream = uni( - n0, - _GLORS, - { - [_str]: 1, - }, - [_fie, _ISE], - [() => FieldsData, [() => InternalStreamingException, 0]] -); -export var IntegrationDetails = uni(n0, _ID, 0, [_oSID], [() => OpenSearchIntegrationDetails]); -export var ResourceConfig = uni(n0, _RC, 0, [_oSRC], [() => OpenSearchResourceConfig]); -export var StartLiveTailResponseStream = uni( - n0, - _SLTRS, - { - [_str]: 1, - }, - [_sSe, _sUe, _STE, _SSE], - [ - () => LiveTailSessionStart, - () => LiveTailSessionUpdate, - [() => SessionTimeoutException, 0], - [() => SessionStreamingException, 0], - ] -); -export var AssociateKmsKey = op( - n0, - _AKK, - 0, - () => AssociateKmsKeyRequest, - () => Unit -); -export var CancelExportTask = op( - n0, - _CET, - 0, - () => CancelExportTaskRequest, - () => Unit -); -export var CreateDelivery = op( - n0, - _CD, - 0, - () => CreateDeliveryRequest, - () => CreateDeliveryResponse -); -export var CreateExportTask = op( - n0, - _CETr, - 0, - () => CreateExportTaskRequest, - () => CreateExportTaskResponse -); -export var CreateLogAnomalyDetector = op( - n0, - _CLAD, - 0, - () => CreateLogAnomalyDetectorRequest, - () => CreateLogAnomalyDetectorResponse -); -export var CreateLogGroup = op( - n0, - _CLG, - 0, - () => CreateLogGroupRequest, - () => Unit -); -export var CreateLogStream = op( - n0, - _CLS, - 0, - () => CreateLogStreamRequest, - () => Unit -); -export var DeleteAccountPolicy = op( - n0, - _DAP, - 0, - () => DeleteAccountPolicyRequest, - () => Unit -); -export var DeleteDataProtectionPolicy = op( - n0, - _DDPP, - 0, - () => DeleteDataProtectionPolicyRequest, - () => Unit -); -export var DeleteDelivery = op( - n0, - _DDel, - 0, - () => DeleteDeliveryRequest, - () => Unit -); -export var DeleteDeliveryDestination = op( - n0, - _DDD, - 0, - () => DeleteDeliveryDestinationRequest, - () => Unit -); -export var DeleteDeliveryDestinationPolicy = op( - n0, - _DDDP, - 0, - () => DeleteDeliveryDestinationPolicyRequest, - () => Unit -); -export var DeleteDeliverySource = op( - n0, - _DDS, - 0, - () => DeleteDeliverySourceRequest, - () => Unit -); -export var DeleteDestination = op( - n0, - _DDele, - 0, - () => DeleteDestinationRequest, - () => Unit -); -export var DeleteIndexPolicy = op( - n0, - _DIP, - 0, - () => DeleteIndexPolicyRequest, - () => DeleteIndexPolicyResponse -); -export var DeleteIntegration = op( - n0, - _DI, - 0, - () => DeleteIntegrationRequest, - () => DeleteIntegrationResponse -); -export var DeleteLogAnomalyDetector = op( - n0, - _DLAD, - 0, - () => DeleteLogAnomalyDetectorRequest, - () => Unit -); -export var DeleteLogGroup = op( - n0, - _DLG, - 0, - () => DeleteLogGroupRequest, - () => Unit -); -export var DeleteLogStream = op( - n0, - _DLS, - 0, - () => DeleteLogStreamRequest, - () => Unit -); -export var DeleteMetricFilter = op( - n0, - _DMF, - 0, - () => DeleteMetricFilterRequest, - () => Unit -); -export var DeleteQueryDefinition = op( - n0, - _DQD, - 0, - () => DeleteQueryDefinitionRequest, - () => DeleteQueryDefinitionResponse -); -export var DeleteResourcePolicy = op( - n0, - _DRP, - 0, - () => DeleteResourcePolicyRequest, - () => Unit -); -export var DeleteRetentionPolicy = op( - n0, - _DRPe, - 0, - () => DeleteRetentionPolicyRequest, - () => Unit -); -export var DeleteSubscriptionFilter = op( - n0, - _DSF, - 0, - () => DeleteSubscriptionFilterRequest, - () => Unit -); -export var DeleteTransformer = op( - n0, - _DT, - 0, - () => DeleteTransformerRequest, - () => Unit -); -export var DescribeAccountPolicies = op( - n0, - _DAPe, - 0, - () => DescribeAccountPoliciesRequest, - () => DescribeAccountPoliciesResponse -); -export var DescribeConfigurationTemplates = op( - n0, - _DCT, - 0, - () => DescribeConfigurationTemplatesRequest, - () => DescribeConfigurationTemplatesResponse -); -export var DescribeDeliveries = op( - n0, - _DDes, - 0, - () => DescribeDeliveriesRequest, - () => DescribeDeliveriesResponse -); -export var DescribeDeliveryDestinations = op( - n0, - _DDDe, - 0, - () => DescribeDeliveryDestinationsRequest, - () => DescribeDeliveryDestinationsResponse -); -export var DescribeDeliverySources = op( - n0, - _DDSe, - 0, - () => DescribeDeliverySourcesRequest, - () => DescribeDeliverySourcesResponse -); -export var DescribeDestinations = op( - n0, - _DDesc, - 0, - () => DescribeDestinationsRequest, - () => DescribeDestinationsResponse -); -export var DescribeExportTasks = op( - n0, - _DET, - 0, - () => DescribeExportTasksRequest, - () => DescribeExportTasksResponse -); -export var DescribeFieldIndexes = op( - n0, - _DFI, - 0, - () => DescribeFieldIndexesRequest, - () => DescribeFieldIndexesResponse -); -export var DescribeIndexPolicies = op( - n0, - _DIPe, - 0, - () => DescribeIndexPoliciesRequest, - () => DescribeIndexPoliciesResponse -); -export var DescribeLogGroups = op( - n0, - _DLGe, - 0, - () => DescribeLogGroupsRequest, - () => DescribeLogGroupsResponse -); -export var DescribeLogStreams = op( - n0, - _DLSe, - 0, - () => DescribeLogStreamsRequest, - () => DescribeLogStreamsResponse -); -export var DescribeMetricFilters = op( - n0, - _DMFe, - 0, - () => DescribeMetricFiltersRequest, - () => DescribeMetricFiltersResponse -); -export var DescribeQueries = op( - n0, - _DQ, - 0, - () => DescribeQueriesRequest, - () => DescribeQueriesResponse -); -export var DescribeQueryDefinitions = op( - n0, - _DQDe, - 0, - () => DescribeQueryDefinitionsRequest, - () => DescribeQueryDefinitionsResponse -); -export var DescribeResourcePolicies = op( - n0, - _DRPes, - 0, - () => DescribeResourcePoliciesRequest, - () => DescribeResourcePoliciesResponse -); -export var DescribeSubscriptionFilters = op( - n0, - _DSFe, - 0, - () => DescribeSubscriptionFiltersRequest, - () => DescribeSubscriptionFiltersResponse -); -export var DisassociateKmsKey = op( - n0, - _DKK, - 0, - () => DisassociateKmsKeyRequest, - () => Unit -); -export var FilterLogEvents = op( - n0, - _FLEil, - 0, - () => FilterLogEventsRequest, - () => FilterLogEventsResponse -); -export var GetDataProtectionPolicy = op( - n0, - _GDPP, - 0, - () => GetDataProtectionPolicyRequest, - () => GetDataProtectionPolicyResponse -); -export var GetDelivery = op( - n0, - _GD, - 0, - () => GetDeliveryRequest, - () => GetDeliveryResponse -); -export var GetDeliveryDestination = op( - n0, - _GDD, - 0, - () => GetDeliveryDestinationRequest, - () => GetDeliveryDestinationResponse -); -export var GetDeliveryDestinationPolicy = op( - n0, - _GDDP, - 0, - () => GetDeliveryDestinationPolicyRequest, - () => GetDeliveryDestinationPolicyResponse -); -export var GetDeliverySource = op( - n0, - _GDS, - 0, - () => GetDeliverySourceRequest, - () => GetDeliverySourceResponse -); -export var GetIntegration = op( - n0, - _GI, - 0, - () => GetIntegrationRequest, - () => GetIntegrationResponse -); -export var GetLogAnomalyDetector = op( - n0, - _GLAD, - 0, - () => GetLogAnomalyDetectorRequest, - () => GetLogAnomalyDetectorResponse -); -export var GetLogEvents = op( - n0, - _GLE, - 0, - () => GetLogEventsRequest, - () => GetLogEventsResponse -); -export var GetLogGroupFields = op( - n0, - _GLGF, - 0, - () => GetLogGroupFieldsRequest, - () => GetLogGroupFieldsResponse -); -export var GetLogObject = op( - n0, - _GLO, - { - [_end]: ["streaming-"], - }, - () => GetLogObjectRequest, - () => GetLogObjectResponse -); -export var GetLogRecord = op( - n0, - _GLR, - 0, - () => GetLogRecordRequest, - () => GetLogRecordResponse -); -export var GetQueryResults = op( - n0, - _GQR, - 0, - () => GetQueryResultsRequest, - () => GetQueryResultsResponse -); -export var GetTransformer = op( - n0, - _GT, - 0, - () => GetTransformerRequest, - () => GetTransformerResponse -); -export var ListAnomalies = op( - n0, - _LA, - 0, - () => ListAnomaliesRequest, - () => ListAnomaliesResponse -); -export var ListIntegrations = op( - n0, - _LI, - 0, - () => ListIntegrationsRequest, - () => ListIntegrationsResponse -); -export var ListLogAnomalyDetectors = op( - n0, - _LLAD, - 0, - () => ListLogAnomalyDetectorsRequest, - () => ListLogAnomalyDetectorsResponse -); -export var ListLogGroups = op( - n0, - _LLG, - 0, - () => ListLogGroupsRequest, - () => ListLogGroupsResponse -); -export var ListLogGroupsForQuery = op( - n0, - _LLGFQ, - 0, - () => ListLogGroupsForQueryRequest, - () => ListLogGroupsForQueryResponse -); -export var ListTagsForResource = op( - n0, - _LTFR, - 0, - () => ListTagsForResourceRequest, - () => ListTagsForResourceResponse -); -export var ListTagsLogGroup = op( - n0, - _LTLG, - 0, - () => ListTagsLogGroupRequest, - () => ListTagsLogGroupResponse -); -export var PutAccountPolicy = op( - n0, - _PAP, - 0, - () => PutAccountPolicyRequest, - () => PutAccountPolicyResponse -); -export var PutDataProtectionPolicy = op( - n0, - _PDPP, - 0, - () => PutDataProtectionPolicyRequest, - () => PutDataProtectionPolicyResponse -); -export var PutDeliveryDestination = op( - n0, - _PDD, - 0, - () => PutDeliveryDestinationRequest, - () => PutDeliveryDestinationResponse -); -export var PutDeliveryDestinationPolicy = op( - n0, - _PDDP, - 0, - () => PutDeliveryDestinationPolicyRequest, - () => PutDeliveryDestinationPolicyResponse -); -export var PutDeliverySource = op( - n0, - _PDS, - 0, - () => PutDeliverySourceRequest, - () => PutDeliverySourceResponse -); -export var PutDestination = op( - n0, - _PD, - 0, - () => PutDestinationRequest, - () => PutDestinationResponse -); -export var PutDestinationPolicy = op( - n0, - _PDP, - 0, - () => PutDestinationPolicyRequest, - () => Unit -); -export var PutIndexPolicy = op( - n0, - _PIP, - 0, - () => PutIndexPolicyRequest, - () => PutIndexPolicyResponse -); -export var PutIntegration = op( - n0, - _PI, - 0, - () => PutIntegrationRequest, - () => PutIntegrationResponse -); -export var PutLogEvents = op( - n0, - _PLE, - 0, - () => PutLogEventsRequest, - () => PutLogEventsResponse -); -export var PutMetricFilter = op( - n0, - _PMF, - 0, - () => PutMetricFilterRequest, - () => Unit -); -export var PutQueryDefinition = op( - n0, - _PQD, - 0, - () => PutQueryDefinitionRequest, - () => PutQueryDefinitionResponse -); -export var PutResourcePolicy = op( - n0, - _PRP, - 0, - () => PutResourcePolicyRequest, - () => PutResourcePolicyResponse -); -export var PutRetentionPolicy = op( - n0, - _PRPu, - 0, - () => PutRetentionPolicyRequest, - () => Unit -); -export var PutSubscriptionFilter = op( - n0, - _PSF, - 0, - () => PutSubscriptionFilterRequest, - () => Unit -); -export var PutTransformer = op( - n0, - _PTu, - 0, - () => PutTransformerRequest, - () => Unit -); -export var StartLiveTail = op( - n0, - _SLT, - { - [_end]: ["streaming-"], - }, - () => StartLiveTailRequest, - () => StartLiveTailResponse -); -export var StartQuery = op( - n0, - _SQ, - 0, - () => StartQueryRequest, - () => StartQueryResponse -); -export var StopQuery = op( - n0, - _SQt, - 0, - () => StopQueryRequest, - () => StopQueryResponse -); -export var TagLogGroup = op( - n0, - _TLG, - 0, - () => TagLogGroupRequest, - () => Unit -); -export var TagResource = op( - n0, - _TR, - 0, - () => TagResourceRequest, - () => Unit -); -export var TestMetricFilter = op( - n0, - _TMF, - 0, - () => TestMetricFilterRequest, - () => TestMetricFilterResponse -); -export var TestTransformer = op( - n0, - _TT, - 0, - () => TestTransformerRequest, - () => TestTransformerResponse -); -export var UntagLogGroup = op( - n0, - _ULG, - 0, - () => UntagLogGroupRequest, - () => Unit -); -export var UntagResource = op( - n0, - _UR, - 0, - () => UntagResourceRequest, - () => Unit -); -export var UpdateAnomaly = op( - n0, - _UA, - 0, - () => UpdateAnomalyRequest, - () => Unit -); -export var UpdateDeliveryConfiguration = op( - n0, - _UDC, - 0, - () => UpdateDeliveryConfigurationRequest, - () => UpdateDeliveryConfigurationResponse -); -export var UpdateLogAnomalyDetector = op( - n0, - _ULAD, - 0, - () => UpdateLogAnomalyDetectorRequest, - () => Unit -); diff --git a/codegen/sdk-codegen/build.gradle.kts b/codegen/sdk-codegen/build.gradle.kts index 138aa9a5360e..7178688d35ef 100644 --- a/codegen/sdk-codegen/build.gradle.kts +++ b/codegen/sdk-codegen/build.gradle.kts @@ -110,7 +110,7 @@ tasks.register("generate-smithy-build") { // e.g. "S3" - use this as exclusion list if needed. ) val useSchemaSerde = setOf( - "CloudWatch Logs" + // "CloudWatch Logs" ) val projectionContents = Node.objectNodeBuilder() .withMember("imports", Node.fromStrings("${models.getAbsolutePath()}${File.separator}${file.name}")) diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocolConfig.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocolConfig.java index 508a2a053adf..9ba8ccafb3f2 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocolConfig.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddProtocolConfig.java @@ -70,6 +70,7 @@ public Map> getRuntimeConfigWriters( return Collections.emptyMap(); } String namespace = settings.getService().getNamespace(); + String rpcTarget = settings.getService().getName(); String xmlns = settings.getService(model) .getTrait(XmlNamespaceTrait.class) .map(XmlNamespaceTrait::getUri) @@ -145,7 +146,11 @@ public Map> getRuntimeConfigWriters( writer.addImportSubmodule( "AwsJson1_0Protocol", null, AwsDependency.AWS_SDK_CORE, "/protocols"); - writer.write("new AwsJson1_0Protocol({ defaultNamespace: $S })", namespace); + writer.write( + "new AwsJson1_0Protocol({ defaultNamespace: $S, serviceTarget: $S })", + namespace, + rpcTarget + ); } ); } else if (Objects.equals(settings.getProtocol(), AwsJson1_1Trait.ID)) { @@ -154,7 +159,11 @@ public Map> getRuntimeConfigWriters( writer.addImportSubmodule( "AwsJson1_1Protocol", null, AwsDependency.AWS_SDK_CORE, "/protocols"); - writer.write("new AwsJson1_1Protocol({ defaultNamespace: $S })", namespace); + writer.write( + "new AwsJson1_1Protocol({ defaultNamespace: $S, serviceTarget: $S })", + namespace, + rpcTarget + ); } ); } diff --git a/packages/core/src/submodules/protocols/json/AwsJson1_0Protocol.ts b/packages/core/src/submodules/protocols/json/AwsJson1_0Protocol.ts index caaf7bc30bfe..6fe1290ab9b7 100644 --- a/packages/core/src/submodules/protocols/json/AwsJson1_0Protocol.ts +++ b/packages/core/src/submodules/protocols/json/AwsJson1_0Protocol.ts @@ -5,9 +5,10 @@ import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol"; * @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1 */ export class AwsJson1_0Protocol extends AwsJsonRpcProtocol { - public constructor({ defaultNamespace }: { defaultNamespace: string }) { + public constructor({ defaultNamespace, serviceTarget }: { defaultNamespace: string; serviceTarget: string }) { super({ defaultNamespace, + serviceTarget, }); } @@ -18,4 +19,8 @@ export class AwsJson1_0Protocol extends AwsJsonRpcProtocol { protected getJsonRpcVersion() { return "1.0" as const; } + + protected getDefaultContentType(): string { + return "application/x-amz-json-1.1"; + } } diff --git a/packages/core/src/submodules/protocols/json/AwsJson1_1Protocol.ts b/packages/core/src/submodules/protocols/json/AwsJson1_1Protocol.ts index 8f291c696269..e05250b56866 100644 --- a/packages/core/src/submodules/protocols/json/AwsJson1_1Protocol.ts +++ b/packages/core/src/submodules/protocols/json/AwsJson1_1Protocol.ts @@ -5,9 +5,10 @@ import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol"; * @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1 */ export class AwsJson1_1Protocol extends AwsJsonRpcProtocol { - public constructor({ defaultNamespace }: { defaultNamespace: string }) { + public constructor({ defaultNamespace, serviceTarget }: { defaultNamespace: string; serviceTarget: string }) { super({ defaultNamespace, + serviceTarget, }); } @@ -18,4 +19,8 @@ export class AwsJson1_1Protocol extends AwsJsonRpcProtocol { protected getJsonRpcVersion() { return "1.1" as const; } + + protected getDefaultContentType(): string { + return "application/x-amz-json-1.1"; + } } diff --git a/packages/core/src/submodules/protocols/json/AwsJsonRpcProtocol.ts b/packages/core/src/submodules/protocols/json/AwsJsonRpcProtocol.ts index 9da3b0f12170..ff561878cbf1 100644 --- a/packages/core/src/submodules/protocols/json/AwsJsonRpcProtocol.ts +++ b/packages/core/src/submodules/protocols/json/AwsJsonRpcProtocol.ts @@ -22,12 +22,14 @@ import { loadRestJsonErrorCode } from "./parseJsonBody"; export abstract class AwsJsonRpcProtocol extends RpcProtocol { protected serializer: ShapeSerializer; protected deserializer: ShapeDeserializer; + protected serviceTarget: string; private codec: JsonCodec; - protected constructor({ defaultNamespace }: { defaultNamespace: string }) { + protected constructor({ defaultNamespace, serviceTarget }: { defaultNamespace: string; serviceTarget: string }) { super({ defaultNamespace, }); + this.serviceTarget = serviceTarget; this.codec = new JsonCodec({ timestampFormat: { useTrait: true, @@ -50,9 +52,7 @@ export abstract class AwsJsonRpcProtocol extends RpcProtocol { } Object.assign(request.headers, { "content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`, - "x-amz-target": - (this.getJsonRpcVersion() === "1.0" ? `JsonRpc10.` : `JsonProtocol.`) + - NormalizedSchema.of(operationSchema).getName(), + "x-amz-target": `${this.serviceTarget}.${NormalizedSchema.of(operationSchema).getName()}`, }); if (deref(operationSchema.input) === "unit" || !request.body) { request.body = "{}"; diff --git a/packages/core/src/submodules/protocols/json/AwsRestJsonProtocol.ts b/packages/core/src/submodules/protocols/json/AwsRestJsonProtocol.ts index 0d9ba1fe9cf6..a0ae41a3562a 100644 --- a/packages/core/src/submodules/protocols/json/AwsRestJsonProtocol.ts +++ b/packages/core/src/submodules/protocols/json/AwsRestJsonProtocol.ts @@ -81,7 +81,7 @@ export class AwsRestJsonProtocol extends HttpBindingProtocol { } else if (httpPayloadMember.isBlobSchema()) { request.headers["content-type"] = "application/octet-stream"; } else { - request.headers["content-type"] = "application/json"; + request.headers["content-type"] = this.getDefaultContentType(); } } else if (!inputSchema.isUnitSchema()) { const hasBody = Object.values(members).find((m) => { @@ -89,7 +89,7 @@ export class AwsRestJsonProtocol extends HttpBindingProtocol { return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0; }); if (hasBody) { - request.headers["content-type"] = "application/json"; + request.headers["content-type"] = this.getDefaultContentType(); } } } @@ -157,4 +157,8 @@ export class AwsRestJsonProtocol extends HttpBindingProtocol { throw exception; } + + protected getDefaultContentType(): string { + return "application/json"; + } } diff --git a/packages/core/src/submodules/protocols/query/AwsQueryProtocol.ts b/packages/core/src/submodules/protocols/query/AwsQueryProtocol.ts index ec47aa7f166f..1f03cf7edcb8 100644 --- a/packages/core/src/submodules/protocols/query/AwsQueryProtocol.ts +++ b/packages/core/src/submodules/protocols/query/AwsQueryProtocol.ts @@ -212,4 +212,8 @@ export class AwsQueryProtocol extends RpcProtocol { const errorData = this.loadQueryError(data); return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown"; } + + protected getDefaultContentType(): string { + return "application/x-www-form-urlencoded"; + } } diff --git a/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts b/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts index 8f3465da9857..ce47c8327760 100644 --- a/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts +++ b/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts @@ -85,7 +85,7 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol { } else if (httpPayloadMember.isBlobSchema()) { request.headers["content-type"] = "application/octet-stream"; } else { - request.headers["content-type"] = "application/xml"; + request.headers["content-type"] = this.getDefaultContentType(); } } else if (!ns.isUnitSchema()) { const hasBody = Object.values(members).find((m) => { @@ -93,12 +93,12 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol { return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0; }); if (hasBody) { - request.headers["content-type"] = "application/xml"; + request.headers["content-type"] = this.getDefaultContentType(); } } } - if (request.headers["content-type"] === "application/xml") { + if (request.headers["content-type"] === this.getDefaultContentType()) { if (typeof request.body === "string") { request.body = '' + request.body; } @@ -172,4 +172,8 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol { throw exception; } + + protected getDefaultContentType(): string { + return "application/xml"; + } } diff --git a/scripts/model-analysis/model-analysis.js b/scripts/model-analysis/model-analysis.js new file mode 100644 index 000000000000..67c3e5b7c0a2 --- /dev/null +++ b/scripts/model-analysis/model-analysis.js @@ -0,0 +1,131 @@ +/** + * This script analyzes the collection of AWS service models. + */ + +const path = require("node:path"); +const fs = require("node:fs"); + +const root = path.join(__dirname, "..", ".."); + +const models = path.join(root, "codegen", "sdk-codegen", "aws-models"); + +for (const file of fs.readdirSync(models)) { + if (file.endsWith(".json")) { + const model = require(path.join(models, file)); + const shapes = model.shapes; + const service = Object.entries(shapes).find(([id, s]) => s.type === "service"); + const operations = Object.entries(shapes).filter(([id, s]) => { + return s.type === "operation"; + }); + const protocol = Object.entries(service[1].traits).find(([id, trait]) => id.startsWith("aws.protocol"))[0]; + + if (protocol.includes("rest")) { + const inputOutputShapes = Object.entries(shapes).filter(([id, s]) => { + return ( + (s.traits?.["smithy.api#input"] || s.traits?.["smithy.api#output"]) && s.type === "structure" && s.members + ); + }); + for (const [id, ioShape] of inputOutputShapes) { + const hasCompleteHttpBindings = + Object.values(ioShape.members ?? {}).filter((member) => { + return Object.keys(member?.traits ?? {}).filter((trait) => trait.includes("http")); + }).length === Object.keys(ioShape.members).length; + if (hasCompleteHttpBindings) { + // console.log(`✅ complete http bindings for operation ${id}`); + } else { + /** + * This flags an operation that has incomplete HTTP bindings. This is valid, but + * would currently be considered unusual for AWS SDK models. As of writing there + * are no such cases. + */ + console.log(`❌ incomplete http bindings for operation ${id}`); + } + } + + const eventStreamShapes = Object.entries(shapes).filter( + ([id, s]) => s.type === "union" && s.traits["smithy.api#streaming"] + ); + + const eventStreamInputMembers = Object.entries(shapes).filter(([id, s]) => { + return ( + s.traits?.["smithy.api#input"] && + s.type === "structure" && + Object.entries(s.members).find(([name, member]) => { + return eventStreamShapes.find(([_id, s]) => _id === member.target); + }) + ); + }); + const eventStreamOutputMembers = Object.entries(shapes).filter(([id, s]) => { + return ( + s.traits?.["smithy.api#output"] && + s.type === "structure" && + Object.entries(s.members).find(([name, member]) => { + return eventStreamShapes.find(([_id, s]) => _id === member.target); + }) + ); + }); + + const eventStreamInputOperations = operations.filter(([id, op]) => { + return eventStreamInputMembers.find(([_id, s]) => _id === op.input.target); + }); + const eventStreamOutputOperations = operations.filter(([id, op]) => { + return eventStreamOutputMembers.find(([_id, s]) => _id === op.output.target); + }); + + if (eventStreamShapes.length) { + console.log("=".repeat(99)); + + /** + * This reports the services that have event stream operations and lists them. + */ + console.log({ + service: service[0], + operations: operations.length, + protocol, + eventStreamInputOperations: eventStreamInputOperations.map(([id, op]) => id), + eventStreamOutputOperations: eventStreamOutputOperations.map(([id, op]) => id), + }); + + /** + * This reports the shapes that are input/outputs of event stream operations and whether + * they have complete HTTP bindings modeled. + */ + for (const group of [eventStreamInputMembers, eventStreamOutputMembers]) { + for (const [id, struct] of group) { + console.log(id, ":"); + const members = struct.members ?? {}; + + const hasCompleteHttpBindings = + Object.values(members).filter((member) => { + return Object.keys(member.traits).filter((trait) => trait.includes("http")); + }).length === Object.keys(members).length; + + if (hasCompleteHttpBindings) { + console.log("✅ complete http bindings"); + } else { + console.log("❌ incomplete http bindings"); + } + + const payloadBindingMember = Object.values(members).find((member) => { + return member.traits?.["smithy.api#httpPayload"]; + }); + const payloadBindingIsEventStream = eventStreamShapes.find(([id, s]) => id === payloadBindingMember.target); + + if (payloadBindingIsEventStream) { + console.log("✅ payload binding is event stream"); + } else { + console.log("❌ payload binding is not event stream. How would that even work?"); + } + for (const [memberName, member] of Object.entries(members)) { + console.log( + " ", + memberName, + Object.keys(member.traits).filter((trait) => trait.includes("http")) + ); + } + } + } + } + } + } +} From db3da4dff4cf014f54145f612a5d560eb70ae3f1 Mon Sep 17 00:00:00 2001 From: George Fu Date: Thu, 7 Aug 2025 14:17:43 -0400 Subject: [PATCH 3/3] fix(core/protocols): construction of x-amz-target header --- .../protocols/json/AwsJson1_0Protocol.spec.ts | 3 +++ .../protocols/json/AwsJson1_0Protocol.ts | 5 ++++- .../protocols/json/AwsJson1_1Protocol.spec.ts | 15 +++++++++------ .../protocols/json/AwsJson1_1Protocol.ts | 3 +++ .../protocols/json/AwsJsonRpcProtocol.spec.ts | 2 +- .../protocols/json/AwsRestJsonProtocol.ts | 3 +++ .../protocols/query/AwsQueryProtocol.ts | 3 +++ .../protocols/xml/AwsRestXmlProtocol.ts | 3 +++ .../src/runtimeConfig.shared.ts | 4 +++- .../src/runtimeConfig.shared.ts | 4 +++- .../src/schemas/schemas.ts | 14 +++++++------- 11 files changed, 42 insertions(+), 17 deletions(-) diff --git a/packages/core/src/submodules/protocols/json/AwsJson1_0Protocol.spec.ts b/packages/core/src/submodules/protocols/json/AwsJson1_0Protocol.spec.ts index c0941edaf9e4..2fbf12434488 100644 --- a/packages/core/src/submodules/protocols/json/AwsJson1_0Protocol.spec.ts +++ b/packages/core/src/submodules/protocols/json/AwsJson1_0Protocol.spec.ts @@ -30,6 +30,7 @@ describe(AwsJson1_0Protocol.name, () => { it("serializes blobs and timestamps", () => { const protocol = new AwsJson1_0Protocol({ defaultNamespace: "namespace", + serviceTarget: "JsonRpc10", }); protocol.setSerdeContext(serdeContext); const codec = protocol.getPayloadCodec(); @@ -55,6 +56,7 @@ describe(AwsJson1_0Protocol.name, () => { it("deserializes blobs and timestamps", async () => { const protocol = new AwsJson1_0Protocol({ defaultNamespace: "namespace", + serviceTarget: "JsonRpc10", }); protocol.setSerdeContext(serdeContext); const codec = protocol.getPayloadCodec(); @@ -73,6 +75,7 @@ describe(AwsJson1_0Protocol.name, () => { it("ignores JSON name and HTTP bindings", async () => { const protocol = new AwsJson1_0Protocol({ defaultNamespace: "namespace", + serviceTarget: "JsonRpc10", }); protocol.setSerdeContext(serdeContext); diff --git a/packages/core/src/submodules/protocols/json/AwsJson1_0Protocol.ts b/packages/core/src/submodules/protocols/json/AwsJson1_0Protocol.ts index 6fe1290ab9b7..8945f534443a 100644 --- a/packages/core/src/submodules/protocols/json/AwsJson1_0Protocol.ts +++ b/packages/core/src/submodules/protocols/json/AwsJson1_0Protocol.ts @@ -20,7 +20,10 @@ export class AwsJson1_0Protocol extends AwsJsonRpcProtocol { return "1.0" as const; } + /** + * @override + */ protected getDefaultContentType(): string { - return "application/x-amz-json-1.1"; + return "application/x-amz-json-1.0"; } } diff --git a/packages/core/src/submodules/protocols/json/AwsJson1_1Protocol.spec.ts b/packages/core/src/submodules/protocols/json/AwsJson1_1Protocol.spec.ts index 40c9b37bc7bd..1d4c5ba60204 100644 --- a/packages/core/src/submodules/protocols/json/AwsJson1_1Protocol.spec.ts +++ b/packages/core/src/submodules/protocols/json/AwsJson1_1Protocol.spec.ts @@ -2,22 +2,24 @@ import { HttpResponse } from "@smithy/protocol-http"; import { describe, expect, test as it } from "vitest"; import { context, deleteObjects } from "../test-schema.spec"; -import { AwsJson1_0Protocol } from "./AwsJson1_0Protocol"; +import { AwsJson1_1Protocol } from "./AwsJson1_1Protocol"; /** * These tests are cursory since most coverage is provided by protocol tests. */ -describe(AwsJson1_0Protocol, () => { +describe(AwsJson1_1Protocol, () => { it("is 1.0", async () => { - const protocol = new AwsJson1_0Protocol({ + const protocol = new AwsJson1_1Protocol({ defaultNamespace: "", + serviceTarget: "JsonRpc11", }); - expect(protocol.getShapeId()).toEqual("aws.protocols#awsJson1_0"); + expect(protocol.getShapeId()).toEqual("aws.protocols#awsJson1_1"); }); it("serializes a request", async () => { - const protocol = new AwsJson1_0Protocol({ + const protocol = new AwsJson1_1Protocol({ defaultNamespace: "", + serviceTarget: "JsonRpc11", }); const httpRequest = await protocol.serializeRequest( deleteObjects, @@ -59,8 +61,9 @@ describe(AwsJson1_0Protocol, () => { headers: {}, }); - const protocol = new AwsJson1_0Protocol({ + const protocol = new AwsJson1_1Protocol({ defaultNamespace: "", + serviceTarget: "JsonRpc11", }); const output = await protocol.deserializeResponse(deleteObjects, context, httpResponse); diff --git a/packages/core/src/submodules/protocols/json/AwsJson1_1Protocol.ts b/packages/core/src/submodules/protocols/json/AwsJson1_1Protocol.ts index e05250b56866..4b4745ee2046 100644 --- a/packages/core/src/submodules/protocols/json/AwsJson1_1Protocol.ts +++ b/packages/core/src/submodules/protocols/json/AwsJson1_1Protocol.ts @@ -20,6 +20,9 @@ export class AwsJson1_1Protocol extends AwsJsonRpcProtocol { return "1.1" as const; } + /** + * @override + */ protected getDefaultContentType(): string { return "application/x-amz-json-1.1"; } diff --git a/packages/core/src/submodules/protocols/json/AwsJsonRpcProtocol.spec.ts b/packages/core/src/submodules/protocols/json/AwsJsonRpcProtocol.spec.ts index 31db5f743f72..d477d5eb71e0 100644 --- a/packages/core/src/submodules/protocols/json/AwsJsonRpcProtocol.spec.ts +++ b/packages/core/src/submodules/protocols/json/AwsJsonRpcProtocol.spec.ts @@ -7,7 +7,7 @@ describe(AwsJsonRpcProtocol.name, () => { it("has expected codec settings", async () => { const protocol = new (class extends AwsJsonRpcProtocol { constructor() { - super({ defaultNamespace: "" }); + super({ defaultNamespace: "", serviceTarget: "" }); } getShapeId(): string { diff --git a/packages/core/src/submodules/protocols/json/AwsRestJsonProtocol.ts b/packages/core/src/submodules/protocols/json/AwsRestJsonProtocol.ts index a0ae41a3562a..0b89f40148f4 100644 --- a/packages/core/src/submodules/protocols/json/AwsRestJsonProtocol.ts +++ b/packages/core/src/submodules/protocols/json/AwsRestJsonProtocol.ts @@ -158,6 +158,9 @@ export class AwsRestJsonProtocol extends HttpBindingProtocol { throw exception; } + /** + * @override + */ protected getDefaultContentType(): string { return "application/json"; } diff --git a/packages/core/src/submodules/protocols/query/AwsQueryProtocol.ts b/packages/core/src/submodules/protocols/query/AwsQueryProtocol.ts index 1f03cf7edcb8..9c66bfb0d4a5 100644 --- a/packages/core/src/submodules/protocols/query/AwsQueryProtocol.ts +++ b/packages/core/src/submodules/protocols/query/AwsQueryProtocol.ts @@ -213,6 +213,9 @@ export class AwsQueryProtocol extends RpcProtocol { return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown"; } + /** + * @override + */ protected getDefaultContentType(): string { return "application/x-www-form-urlencoded"; } diff --git a/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts b/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts index ce47c8327760..a0a57aa4ec77 100644 --- a/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts +++ b/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts @@ -173,6 +173,9 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol { throw exception; } + /** + * @override + */ protected getDefaultContentType(): string { return "application/xml"; } diff --git a/private/aws-protocoltests-json-10-schema/src/runtimeConfig.shared.ts b/private/aws-protocoltests-json-10-schema/src/runtimeConfig.shared.ts index 70fff70b46ac..b1369d8a2e49 100644 --- a/private/aws-protocoltests-json-10-schema/src/runtimeConfig.shared.ts +++ b/private/aws-protocoltests-json-10-schema/src/runtimeConfig.shared.ts @@ -31,7 +31,9 @@ export const getRuntimeConfig = (config: JSONRPC10ClientConfig) => { }, ], logger: config?.logger ?? new NoOpLogger(), - protocol: config?.protocol ?? new AwsJson1_0Protocol({ defaultNamespace: "aws.protocoltests.json10" }), + protocol: + config?.protocol ?? + new AwsJson1_0Protocol({ defaultNamespace: "aws.protocoltests.json10", serviceTarget: "JsonRpc10" }), serviceId: config?.serviceId ?? "JSON RPC 10", urlParser: config?.urlParser ?? parseUrl, utf8Decoder: config?.utf8Decoder ?? fromUtf8, diff --git a/private/aws-protocoltests-json-schema/src/runtimeConfig.shared.ts b/private/aws-protocoltests-json-schema/src/runtimeConfig.shared.ts index 02dfd0e73f90..c5c69b5bdf81 100644 --- a/private/aws-protocoltests-json-schema/src/runtimeConfig.shared.ts +++ b/private/aws-protocoltests-json-schema/src/runtimeConfig.shared.ts @@ -31,7 +31,9 @@ export const getRuntimeConfig = (config: JsonProtocolClientConfig) => { }, ], logger: config?.logger ?? new NoOpLogger(), - protocol: config?.protocol ?? new AwsJson1_1Protocol({ defaultNamespace: "aws.protocoltests.json" }), + protocol: + config?.protocol ?? + new AwsJson1_1Protocol({ defaultNamespace: "aws.protocoltests.json", serviceTarget: "JsonProtocol" }), serviceId: config?.serviceId ?? "Json Protocol", urlParser: config?.urlParser ?? parseUrl, utf8Decoder: config?.utf8Decoder ?? fromUtf8, diff --git a/private/aws-protocoltests-restjson-schema/src/schemas/schemas.ts b/private/aws-protocoltests-restjson-schema/src/schemas/schemas.ts index 59b70b8f679b..a654ff45d27e 100644 --- a/private/aws-protocoltests-restjson-schema/src/schemas/schemas.ts +++ b/private/aws-protocoltests-restjson-schema/src/schemas/schemas.ts @@ -2046,8 +2046,8 @@ export var TimestampFormatHeadersIO = struct( ); export var TopLevel = struct(n0, _TLo, 0, [_di, _dLi, _dMi], [() => Dialog, () => DialogList, () => DialogMap]); export var UnionInputOutput = struct(n0, _UIO, 0, [_con], [() => MyUnion]); -export var GreetingStruct = struct(n2, _GS, 0, [_sa], [0]); -export var GreetingStruct_n1 = struct(n1, _GS, 0, [_hi], [0]); +export var GreetingStruct_n2 = struct(n2, _GS, 0, [_sa], [0]); +export var GreetingStruct = struct(n1, _GS, 0, [_hi], [0]); export var Unit = "unit" as const; export var RestJsonProtocolServiceException = error( @@ -2110,7 +2110,7 @@ export var DenseNumberMap = 128 | 1; export var DenseSetMap = map(n0, _DSM, 0, 0, 64 | 0); export var DenseStringMap = 128 | 0; -export var DenseStructMap = map(n0, _DSMe, 0, 0, () => GreetingStruct_n1); +export var DenseStructMap = map(n0, _DSMe, 0, 0, () => GreetingStruct); export var DialogMap = map(n0, _DM, 0, 0, () => Dialog); export var DocumentValuedMap = 128 | 15; @@ -2150,7 +2150,7 @@ export var SparseStructMap = map( [_sp]: 1, }, 0, - () => GreetingStruct_n1 + () => GreetingStruct ); export var TestStringMap = 128 | 0; @@ -2175,7 +2175,7 @@ export var MyUnion = uni( _MU, 0, [_sV, _bVo, _nVu, _bVl, _tV, _eV, _lVi, _mV, _sVt, _rSV], - [0, 2, 1, 21, 4, 0, 64 | 0, 128 | 0, () => GreetingStruct_n1, () => GreetingStruct] + [0, 2, 1, 21, 4, 0, 64 | 0, 128 | 0, () => GreetingStruct, () => GreetingStruct_n2] ); export var PlayerAction = uni(n0, _PA, 0, [_qu], [() => Unit]); export var SimpleUnion = uni(n0, _SU, 0, [_int, _st], [1, 0]); @@ -2570,7 +2570,7 @@ export var MalformedAcceptWithBody = op( [_ht]: ["POST", "/MalformedAcceptWithBody", 200], }, () => Unit, - () => GreetingStruct_n1 + () => GreetingStruct ); export var MalformedAcceptWithGenericString = op( n0, @@ -2623,7 +2623,7 @@ export var MalformedContentTypeWithBody = op( { [_ht]: ["POST", "/MalformedContentTypeWithBody", 200], }, - () => GreetingStruct_n1, + () => GreetingStruct, () => Unit ); export var MalformedContentTypeWithGenericString = op(