From 04cd86593d5bed61dbcb2006912a3853e3cc4f8a Mon Sep 17 00:00:00 2001 From: George Fu Date: Thu, 7 Aug 2025 15:50:22 -0400 Subject: [PATCH 1/3] chore(middleware-logger): log-filter for schemas --- packages/middleware-logger/package.json | 2 + .../middleware-logger/src/loggerMiddleware.ts | 35 +++++++++----- .../middleware-logger/src/schemaLogFilter.ts | 46 +++++++++++++++++++ 3 files changed, 72 insertions(+), 11 deletions(-) create mode 100644 packages/middleware-logger/src/schemaLogFilter.ts diff --git a/packages/middleware-logger/package.json b/packages/middleware-logger/package.json index 5dbeb5ce06b8..36d263b88c05 100644 --- a/packages/middleware-logger/package.json +++ b/packages/middleware-logger/package.json @@ -25,7 +25,9 @@ "types": "./dist-types/index.d.ts", "dependencies": { "@aws-sdk/types": "*", + "@smithy/core": "^3.8.0", "@smithy/types": "^4.3.2", + "@smithy/util-middleware": "^4.0.5", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/middleware-logger/src/loggerMiddleware.ts b/packages/middleware-logger/src/loggerMiddleware.ts index ac547d64dcf1..c6841a63d95f 100644 --- a/packages/middleware-logger/src/loggerMiddleware.ts +++ b/packages/middleware-logger/src/loggerMiddleware.ts @@ -1,4 +1,4 @@ -import { +import type { AbsoluteLocation, HandlerExecutionContext, InitializeHandler, @@ -6,8 +6,12 @@ import { InitializeHandlerOptions, InitializeHandlerOutput, MetadataBearer, + OperationSchema, Pluggable, } from "@smithy/types"; +import { getSmithyContext } from "@smithy/util-middleware"; + +import { schemaLogFilter } from "./schemaLogFilter"; export const loggerMiddleware = () => @@ -16,33 +20,42 @@ export const loggerMiddleware = context: HandlerExecutionContext ): InitializeHandler => async (args: InitializeHandlerArguments): Promise> => { + const { operationSchema } = getSmithyContext(context) as { + operationSchema: OperationSchema; + }; + try { const response = await next(args); - const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; - const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions; - const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; - const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog ?? context.outputFilterSensitiveLog; + const { clientName, commandName, logger } = context; + + const inputLogFilter = operationSchema + ? schemaLogFilter.bind(operationSchema.input) + : context.inputFilterSensitiveLog; + const outputLogFilter = operationSchema + ? schemaLogFilter.bind(operationSchema.output) + : context.outputFilterSensitiveLog; const { $metadata, ...outputWithoutMetadata } = response.output; logger?.info?.({ clientName, commandName, - input: inputFilterSensitiveLog(args.input), - output: outputFilterSensitiveLog(outputWithoutMetadata), + input: inputLogFilter(args.input), + output: outputLogFilter(outputWithoutMetadata), metadata: $metadata, }); return response; } catch (error) { - const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; + const { clientName, commandName, logger } = context; - const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions; - const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; + const inputLogFilter = operationSchema + ? schemaLogFilter.bind(operationSchema.input) + : context.inputFilterSensitiveLog; logger?.error?.({ clientName, commandName, - input: inputFilterSensitiveLog(args.input), + input: inputLogFilter(args.input), error, metadata: (error as any).$metadata, }); diff --git a/packages/middleware-logger/src/schemaLogFilter.ts b/packages/middleware-logger/src/schemaLogFilter.ts new file mode 100644 index 000000000000..4b39d707a8b6 --- /dev/null +++ b/packages/middleware-logger/src/schemaLogFilter.ts @@ -0,0 +1,46 @@ +import { NormalizedSchema } from "@smithy/core/schema"; +import type { Schema as ISchema } from "@smithy/types"; + +const SENSITIVE_STRING = "***SensitiveInformation***"; + +/** + * Redacts sensitive parts of any data object using its schema, for logging. + * + * @internal + * @param schema - with filtering traits. + * @param data - to be logged. + */ +export function schemaLogFilter(schema: ISchema, data: unknown): any { + if (data == null) { + return data; + } + const ns = NormalizedSchema.of(schema); + if (ns.getMergedTraits().sensitive) { + return SENSITIVE_STRING; + } + + if (ns.isListSchema()) { + const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive; + if (isSensitive) { + return SENSITIVE_STRING; + } + } else if (ns.isMapSchema()) { + const isSensitive = + !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive; + if (isSensitive) { + return SENSITIVE_STRING; + } + } else if (ns.isStructSchema() && typeof data === "object") { + const object = data as Record; + + const newObject = {} as any; + for (const [member, memberNs] of ns.structIterator()) { + if (object[member] != null) { + newObject[member] = schemaLogFilter(memberNs, object[member]); + } + } + return newObject; + } + + return data; +} From 2c67c5a0972366a0181e790ea3dc5f8230080ba4 Mon Sep 17 00:00:00 2001 From: George Fu Date: Fri, 8 Aug 2025 11:29:33 -0400 Subject: [PATCH 2/3] chore: bucket contextParam customization for schema-serde --- clients/client-s3/package.json | 5 +- clients/client-s3/src/S3Client.ts | 15 + .../commands/AbortMultipartUploadCommand.ts | 14 +- .../CompleteMultipartUploadCommand.ts | 16 +- .../src/commands/CopyObjectCommand.ts | 16 +- .../src/commands/CreateBucketCommand.ts | 9 +- ...reateBucketMetadataConfigurationCommand.ts | 12 +- ...BucketMetadataTableConfigurationCommand.ts | 12 +- .../commands/CreateMultipartUploadCommand.ts | 16 +- .../src/commands/CreateSessionCommand.ts | 21 +- ...leteBucketAnalyticsConfigurationCommand.ts | 16 +- .../src/commands/DeleteBucketCommand.ts | 13 +- .../src/commands/DeleteBucketCorsCommand.ts | 13 +- .../commands/DeleteBucketEncryptionCommand.ts | 13 +- ...tIntelligentTieringConfigurationCommand.ts | 16 +- ...leteBucketInventoryConfigurationCommand.ts | 16 +- .../commands/DeleteBucketLifecycleCommand.ts | 13 +- ...eleteBucketMetadataConfigurationCommand.ts | 16 +- ...BucketMetadataTableConfigurationCommand.ts | 16 +- ...DeleteBucketMetricsConfigurationCommand.ts | 16 +- .../DeleteBucketOwnershipControlsCommand.ts | 16 +- .../src/commands/DeleteBucketPolicyCommand.ts | 13 +- .../DeleteBucketReplicationCommand.ts | 13 +- .../commands/DeleteBucketTaggingCommand.ts | 13 +- .../commands/DeleteBucketWebsiteCommand.ts | 13 +- .../src/commands/DeleteObjectCommand.ts | 14 +- .../commands/DeleteObjectTaggingCommand.ts | 14 +- .../src/commands/DeleteObjectsCommand.ts | 9 +- .../DeletePublicAccessBlockCommand.ts | 13 +- ...GetBucketAccelerateConfigurationCommand.ts | 17 +- .../src/commands/GetBucketAclCommand.ts | 14 +- .../GetBucketAnalyticsConfigurationCommand.ts | 17 +- .../src/commands/GetBucketCorsCommand.ts | 14 +- .../commands/GetBucketEncryptionCommand.ts | 20 +- ...tIntelligentTieringConfigurationCommand.ts | 17 +- .../GetBucketInventoryConfigurationCommand.ts | 23 +- .../GetBucketLifecycleConfigurationCommand.ts | 17 +- .../src/commands/GetBucketLocationCommand.ts | 14 +- .../src/commands/GetBucketLoggingCommand.ts | 14 +- .../GetBucketMetadataConfigurationCommand.ts | 17 +- ...BucketMetadataTableConfigurationCommand.ts | 17 +- .../GetBucketMetricsConfigurationCommand.ts | 17 +- ...tBucketNotificationConfigurationCommand.ts | 17 +- .../GetBucketOwnershipControlsCommand.ts | 14 +- .../src/commands/GetBucketPolicyCommand.ts | 14 +- .../commands/GetBucketPolicyStatusCommand.ts | 14 +- .../commands/GetBucketReplicationCommand.ts | 14 +- .../GetBucketRequestPaymentCommand.ts | 14 +- .../src/commands/GetBucketTaggingCommand.ts | 14 +- .../commands/GetBucketVersioningCommand.ts | 14 +- .../src/commands/GetBucketWebsiteCommand.ts | 14 +- .../src/commands/GetObjectAclCommand.ts | 14 +- .../commands/GetObjectAttributesCommand.ts | 15 +- .../src/commands/GetObjectCommand.ts | 16 +- .../src/commands/GetObjectLegalHoldCommand.ts | 14 +- .../GetObjectLockConfigurationCommand.ts | 14 +- .../src/commands/GetObjectRetentionCommand.ts | 14 +- .../src/commands/GetObjectTaggingCommand.ts | 14 +- .../src/commands/GetObjectTorrentCommand.ts | 19 +- .../commands/GetPublicAccessBlockCommand.ts | 14 +- .../src/commands/HeadBucketCommand.ts | 14 +- .../src/commands/HeadObjectCommand.ts | 16 +- ...istBucketAnalyticsConfigurationsCommand.ts | 17 +- ...IntelligentTieringConfigurationsCommand.ts | 17 +- ...istBucketInventoryConfigurationsCommand.ts | 23 +- .../ListBucketMetricsConfigurationsCommand.ts | 17 +- .../src/commands/ListBucketsCommand.ts | 14 +- .../commands/ListDirectoryBucketsCommand.ts | 14 +- .../commands/ListMultipartUploadsCommand.ts | 14 +- .../src/commands/ListObjectVersionsCommand.ts | 14 +- .../src/commands/ListObjectsCommand.ts | 14 +- .../src/commands/ListObjectsV2Command.ts | 14 +- .../src/commands/ListPartsCommand.ts | 11 +- ...PutBucketAccelerateConfigurationCommand.ts | 12 +- .../src/commands/PutBucketAclCommand.ts | 9 +- .../PutBucketAnalyticsConfigurationCommand.ts | 16 +- .../src/commands/PutBucketCorsCommand.ts | 9 +- .../commands/PutBucketEncryptionCommand.ts | 11 +- ...tIntelligentTieringConfigurationCommand.ts | 16 +- .../PutBucketInventoryConfigurationCommand.ts | 21 +- .../PutBucketLifecycleConfigurationCommand.ts | 12 +- .../src/commands/PutBucketLoggingCommand.ts | 9 +- .../PutBucketMetricsConfigurationCommand.ts | 16 +- ...tBucketNotificationConfigurationCommand.ts | 16 +- .../PutBucketOwnershipControlsCommand.ts | 9 +- .../src/commands/PutBucketPolicyCommand.ts | 9 +- .../commands/PutBucketReplicationCommand.ts | 9 +- .../PutBucketRequestPaymentCommand.ts | 9 +- .../src/commands/PutBucketTaggingCommand.ts | 9 +- .../commands/PutBucketVersioningCommand.ts | 9 +- .../src/commands/PutBucketWebsiteCommand.ts | 9 +- .../src/commands/PutObjectAclCommand.ts | 9 +- .../src/commands/PutObjectCommand.ts | 16 +- .../src/commands/PutObjectLegalHoldCommand.ts | 9 +- .../PutObjectLockConfigurationCommand.ts | 9 +- .../src/commands/PutObjectRetentionCommand.ts | 9 +- .../src/commands/PutObjectTaggingCommand.ts | 9 +- .../commands/PutPublicAccessBlockCommand.ts | 9 +- .../src/commands/RenameObjectCommand.ts | 14 +- .../src/commands/RestoreObjectCommand.ts | 11 +- .../commands/SelectObjectContentCommand.ts | 16 +- ...adataInventoryTableConfigurationCommand.ts | 12 +- ...etadataJournalTableConfigurationCommand.ts | 12 +- .../src/commands/UploadPartCommand.ts | 16 +- .../src/commands/UploadPartCopyCommand.ts | 16 +- .../commands/WriteGetObjectResponseCommand.ts | 15 +- clients/client-s3/src/models/models_0.ts | 241 +- clients/client-s3/src/models/models_1.ts | 166 +- .../client-s3/src/protocols/Aws_restXml.ts | 11295 ---------------- clients/client-s3/src/runtimeConfig.shared.ts | 7 + clients/client-s3/src/schemas/schemas.ts | 9743 +++++++++++++ codegen/sdk-codegen/build.gradle.kts | 2 +- .../typescript/codegen/AddProtocolConfig.java | 1 + .../aws/typescript/codegen/AddS3Config.java | 52 +- .../protocols/xml/AwsRestXmlProtocol.ts | 10 - packages/middleware-logger/package.json | 2 - .../middleware-logger/src/loggerMiddleware.ts | 33 +- .../middleware-logger/src/schemaLogFilter.ts | 46 - 118 files changed, 10230 insertions(+), 12842 deletions(-) delete mode 100644 clients/client-s3/src/protocols/Aws_restXml.ts create mode 100644 clients/client-s3/src/schemas/schemas.ts delete mode 100644 packages/middleware-logger/src/schemaLogFilter.ts diff --git a/clients/client-s3/package.json b/clients/client-s3/package.json index 743a4120efb2..ed87b5a5a563 100644 --- a/clients/client-s3/package.json +++ b/clients/client-s3/package.json @@ -47,7 +47,6 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@aws-sdk/xml-builder": "*", "@smithy/config-resolver": "^4.1.5", "@smithy/core": "^3.8.0", "@smithy/eventstream-serde-browser": "^4.0.5", @@ -81,9 +80,7 @@ "@smithy/util-stream": "^4.2.4", "@smithy/util-utf8": "^4.0.0", "@smithy/util-waiter": "^4.0.7", - "@types/uuid": "^9.0.1", - "tslib": "^2.6.2", - "uuid": "^9.0.1" + "tslib": "^2.6.2" }, "devDependencies": { "@aws-sdk/signature-v4-crt": "*", diff --git a/clients/client-s3/src/S3Client.ts b/clients/client-s3/src/S3Client.ts index cbda19b3b90d..d1571fe528c2 100644 --- a/clients/client-s3/src/S3Client.ts +++ b/clients/client-s3/src/S3Client.ts @@ -35,6 +35,7 @@ import { getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core"; +import { getSchemaSerdePlugin } from "@smithy/core/schema"; import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig, @@ -56,6 +57,7 @@ import { CheckOptionalClientConfig as __CheckOptionalClientConfig, Checksum as __Checksum, ChecksumConstructor as __ChecksumConstructor, + ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, EndpointV2 as __EndpointV2, @@ -63,6 +65,8 @@ import { Hash as __Hash, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, + HttpRequest, + HttpResponse, Logger as __Logger, Provider as __Provider, Provider, @@ -772,6 +776,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 */ @@ -874,6 +888,7 @@ export class S3Client extends __Client< const _config_10 = resolveS3Config(_config_9, { session: [() => this, CreateSessionCommand] }); const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []); this.config = _config_11; + 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-s3/src/commands/AbortMultipartUploadCommand.ts b/clients/client-s3/src/commands/AbortMultipartUploadCommand.ts index 2fb6a9c86e9c..5874e7a6e585 100644 --- a/clients/client-s3/src/commands/AbortMultipartUploadCommand.ts +++ b/clients/client-s3/src/commands/AbortMultipartUploadCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { AbortMultipartUploadOutput, AbortMultipartUploadRequest } from "../models/models_0"; -import { de_AbortMultipartUploadCommand, se_AbortMultipartUploadCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { AbortMultipartUpload } from "../schemas/schemas"; /** * @public @@ -178,17 +177,12 @@ export class AbortMultipartUploadCommand extends $Command Key: { type: "contextParams", name: "Key" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "AbortMultipartUpload", {}) .n("S3Client", "AbortMultipartUploadCommand") - .f(void 0, void 0) - .ser(se_AbortMultipartUploadCommand) - .de(de_AbortMultipartUploadCommand) + + .sc(AbortMultipartUpload) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/CompleteMultipartUploadCommand.ts b/clients/client-s3/src/commands/CompleteMultipartUploadCommand.ts index 1f3400ead85b..a397a42f7429 100644 --- a/clients/client-s3/src/commands/CompleteMultipartUploadCommand.ts +++ b/clients/client-s3/src/commands/CompleteMultipartUploadCommand.ts @@ -2,19 +2,13 @@ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { - CompleteMultipartUploadOutput, - CompleteMultipartUploadOutputFilterSensitiveLog, - CompleteMultipartUploadRequest, - CompleteMultipartUploadRequestFilterSensitiveLog, -} from "../models/models_0"; -import { de_CompleteMultipartUploadCommand, se_CompleteMultipartUploadCommand } from "../protocols/Aws_restXml"; +import { CompleteMultipartUploadOutput, CompleteMultipartUploadRequest } from "../models/models_0"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { CompleteMultipartUpload } from "../schemas/schemas"; /** * @public @@ -314,7 +308,6 @@ export class CompleteMultipartUploadCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -322,9 +315,8 @@ export class CompleteMultipartUploadCommand extends $Command }) .s("AmazonS3", "CompleteMultipartUpload", {}) .n("S3Client", "CompleteMultipartUploadCommand") - .f(CompleteMultipartUploadRequestFilterSensitiveLog, CompleteMultipartUploadOutputFilterSensitiveLog) - .ser(se_CompleteMultipartUploadCommand) - .de(de_CompleteMultipartUploadCommand) + + .sc(CompleteMultipartUpload) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/CopyObjectCommand.ts b/clients/client-s3/src/commands/CopyObjectCommand.ts index 07217dc4a699..7c69b3fa00ad 100644 --- a/clients/client-s3/src/commands/CopyObjectCommand.ts +++ b/clients/client-s3/src/commands/CopyObjectCommand.ts @@ -2,19 +2,13 @@ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { - CopyObjectOutput, - CopyObjectOutputFilterSensitiveLog, - CopyObjectRequest, - CopyObjectRequestFilterSensitiveLog, -} from "../models/models_0"; -import { de_CopyObjectCommand, se_CopyObjectCommand } from "../protocols/Aws_restXml"; +import { CopyObjectOutput, CopyObjectRequest } from "../models/models_0"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { CopyObject } from "../schemas/schemas"; /** * @public @@ -367,7 +361,6 @@ export class CopyObjectCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -375,9 +368,8 @@ export class CopyObjectCommand extends $Command }) .s("AmazonS3", "CopyObject", {}) .n("S3Client", "CopyObjectCommand") - .f(CopyObjectRequestFilterSensitiveLog, CopyObjectOutputFilterSensitiveLog) - .ser(se_CopyObjectCommand) - .de(de_CopyObjectCommand) + + .sc(CopyObject) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/CreateBucketCommand.ts b/clients/client-s3/src/commands/CreateBucketCommand.ts index a576794589e4..479a6fbb34c6 100644 --- a/clients/client-s3/src/commands/CreateBucketCommand.ts +++ b/clients/client-s3/src/commands/CreateBucketCommand.ts @@ -2,14 +2,13 @@ import { getLocationConstraintPlugin } from "@aws-sdk/middleware-location-constraint"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { CreateBucketOutput, CreateBucketRequest } from "../models/models_0"; -import { de_CreateBucketCommand, se_CreateBucketCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { CreateBucket } from "../schemas/schemas"; /** * @public @@ -296,7 +295,6 @@ export class CreateBucketCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getLocationConstraintPlugin(config), @@ -304,9 +302,8 @@ export class CreateBucketCommand extends $Command }) .s("AmazonS3", "CreateBucket", {}) .n("S3Client", "CreateBucketCommand") - .f(void 0, void 0) - .ser(se_CreateBucketCommand) - .de(de_CreateBucketCommand) + + .sc(CreateBucket) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/CreateBucketMetadataConfigurationCommand.ts b/clients/client-s3/src/commands/CreateBucketMetadataConfigurationCommand.ts index 285dc3d113be..631396a370d5 100644 --- a/clients/client-s3/src/commands/CreateBucketMetadataConfigurationCommand.ts +++ b/clients/client-s3/src/commands/CreateBucketMetadataConfigurationCommand.ts @@ -1,17 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { CreateBucketMetadataConfigurationRequest } from "../models/models_0"; -import { - de_CreateBucketMetadataConfigurationCommand, - se_CreateBucketMetadataConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { CreateBucketMetadataConfiguration } from "../schemas/schemas"; /** * @public @@ -187,7 +183,6 @@ export class CreateBucketMetadataConfigurationCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -197,9 +192,8 @@ export class CreateBucketMetadataConfigurationCommand extends $Command }) .s("AmazonS3", "CreateBucketMetadataConfiguration", {}) .n("S3Client", "CreateBucketMetadataConfigurationCommand") - .f(void 0, void 0) - .ser(se_CreateBucketMetadataConfigurationCommand) - .de(de_CreateBucketMetadataConfigurationCommand) + + .sc(CreateBucketMetadataConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/CreateBucketMetadataTableConfigurationCommand.ts b/clients/client-s3/src/commands/CreateBucketMetadataTableConfigurationCommand.ts index b6ccacab41cd..9f8f3865fa9d 100644 --- a/clients/client-s3/src/commands/CreateBucketMetadataTableConfigurationCommand.ts +++ b/clients/client-s3/src/commands/CreateBucketMetadataTableConfigurationCommand.ts @@ -1,17 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { CreateBucketMetadataTableConfigurationRequest } from "../models/models_0"; -import { - de_CreateBucketMetadataTableConfigurationCommand, - se_CreateBucketMetadataTableConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { CreateBucketMetadataTableConfiguration } from "../schemas/schemas"; /** * @public @@ -154,7 +150,6 @@ export class CreateBucketMetadataTableConfigurationCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -164,9 +159,8 @@ export class CreateBucketMetadataTableConfigurationCommand extends $Command }) .s("AmazonS3", "CreateBucketMetadataTableConfiguration", {}) .n("S3Client", "CreateBucketMetadataTableConfigurationCommand") - .f(void 0, void 0) - .ser(se_CreateBucketMetadataTableConfigurationCommand) - .de(de_CreateBucketMetadataTableConfigurationCommand) + + .sc(CreateBucketMetadataTableConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/CreateMultipartUploadCommand.ts b/clients/client-s3/src/commands/CreateMultipartUploadCommand.ts index fd01c69cfbbe..72a20f479d20 100644 --- a/clients/client-s3/src/commands/CreateMultipartUploadCommand.ts +++ b/clients/client-s3/src/commands/CreateMultipartUploadCommand.ts @@ -2,19 +2,13 @@ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { - CreateMultipartUploadOutput, - CreateMultipartUploadOutputFilterSensitiveLog, - CreateMultipartUploadRequest, - CreateMultipartUploadRequestFilterSensitiveLog, -} from "../models/models_0"; -import { de_CreateMultipartUploadCommand, se_CreateMultipartUploadCommand } from "../protocols/Aws_restXml"; +import { CreateMultipartUploadOutput, CreateMultipartUploadRequest } from "../models/models_0"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { CreateMultipartUpload } from "../schemas/schemas"; /** * @public @@ -392,7 +386,6 @@ export class CreateMultipartUploadCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -400,9 +393,8 @@ export class CreateMultipartUploadCommand extends $Command }) .s("AmazonS3", "CreateMultipartUpload", {}) .n("S3Client", "CreateMultipartUploadCommand") - .f(CreateMultipartUploadRequestFilterSensitiveLog, CreateMultipartUploadOutputFilterSensitiveLog) - .ser(se_CreateMultipartUploadCommand) - .de(de_CreateMultipartUploadCommand) + + .sc(CreateMultipartUpload) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/CreateSessionCommand.ts b/clients/client-s3/src/commands/CreateSessionCommand.ts index b25a72b86fb9..ff5309bf20ee 100644 --- a/clients/client-s3/src/commands/CreateSessionCommand.ts +++ b/clients/client-s3/src/commands/CreateSessionCommand.ts @@ -1,19 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { - CreateSessionOutput, - CreateSessionOutputFilterSensitiveLog, - CreateSessionRequest, - CreateSessionRequestFilterSensitiveLog, -} from "../models/models_0"; -import { de_CreateSessionCommand, se_CreateSessionCommand } from "../protocols/Aws_restXml"; +import { CreateSessionOutput, CreateSessionRequest } from "../models/models_0"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { CreateSession } from "../schemas/schemas"; /** * @public @@ -198,17 +192,12 @@ export class CreateSessionCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "CreateSession", {}) .n("S3Client", "CreateSessionCommand") - .f(CreateSessionRequestFilterSensitiveLog, CreateSessionOutputFilterSensitiveLog) - .ser(se_CreateSessionCommand) - .de(de_CreateSessionCommand) + + .sc(CreateSession) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketAnalyticsConfigurationCommand.ts b/clients/client-s3/src/commands/DeleteBucketAnalyticsConfigurationCommand.ts index b1f3cbf96646..84fec2833031 100644 --- a/clients/client-s3/src/commands/DeleteBucketAnalyticsConfigurationCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketAnalyticsConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketAnalyticsConfigurationRequest } from "../models/models_0"; -import { - de_DeleteBucketAnalyticsConfigurationCommand, - se_DeleteBucketAnalyticsConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucketAnalyticsConfiguration } from "../schemas/schemas"; /** * @public @@ -103,16 +99,12 @@ export class DeleteBucketAnalyticsConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketAnalyticsConfiguration", {}) .n("S3Client", "DeleteBucketAnalyticsConfigurationCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketAnalyticsConfigurationCommand) - .de(de_DeleteBucketAnalyticsConfigurationCommand) + + .sc(DeleteBucketAnalyticsConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketCommand.ts b/clients/client-s3/src/commands/DeleteBucketCommand.ts index 0a3b63af2911..6f80da198aba 100644 --- a/clients/client-s3/src/commands/DeleteBucketCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketRequest } from "../models/models_0"; -import { de_DeleteBucketCommand, se_DeleteBucketCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucket } from "../schemas/schemas"; /** * @public @@ -139,16 +138,12 @@ export class DeleteBucketCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucket", {}) .n("S3Client", "DeleteBucketCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketCommand) - .de(de_DeleteBucketCommand) + + .sc(DeleteBucket) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketCorsCommand.ts b/clients/client-s3/src/commands/DeleteBucketCorsCommand.ts index d7868bda8bf6..3b4baef7e076 100644 --- a/clients/client-s3/src/commands/DeleteBucketCorsCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketCorsCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketCorsRequest } from "../models/models_0"; -import { de_DeleteBucketCorsCommand, se_DeleteBucketCorsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucketCors } from "../schemas/schemas"; /** * @public @@ -106,16 +105,12 @@ export class DeleteBucketCorsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketCors", {}) .n("S3Client", "DeleteBucketCorsCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketCorsCommand) - .de(de_DeleteBucketCorsCommand) + + .sc(DeleteBucketCors) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketEncryptionCommand.ts b/clients/client-s3/src/commands/DeleteBucketEncryptionCommand.ts index 31c4c3c81f20..dc7ceebc930b 100644 --- a/clients/client-s3/src/commands/DeleteBucketEncryptionCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketEncryptionCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketEncryptionRequest } from "../models/models_0"; -import { de_DeleteBucketEncryptionCommand, se_DeleteBucketEncryptionCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucketEncryption } from "../schemas/schemas"; /** * @public @@ -129,16 +128,12 @@ export class DeleteBucketEncryptionCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketEncryption", {}) .n("S3Client", "DeleteBucketEncryptionCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketEncryptionCommand) - .de(de_DeleteBucketEncryptionCommand) + + .sc(DeleteBucketEncryption) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketIntelligentTieringConfigurationCommand.ts b/clients/client-s3/src/commands/DeleteBucketIntelligentTieringConfigurationCommand.ts index 08c1f46050a9..9ba533ccc2c8 100644 --- a/clients/client-s3/src/commands/DeleteBucketIntelligentTieringConfigurationCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketIntelligentTieringConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketIntelligentTieringConfigurationRequest } from "../models/models_0"; -import { - de_DeleteBucketIntelligentTieringConfigurationCommand, - se_DeleteBucketIntelligentTieringConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucketIntelligentTieringConfiguration } from "../schemas/schemas"; /** * @public @@ -100,16 +96,12 @@ export class DeleteBucketIntelligentTieringConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketIntelligentTieringConfiguration", {}) .n("S3Client", "DeleteBucketIntelligentTieringConfigurationCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketIntelligentTieringConfigurationCommand) - .de(de_DeleteBucketIntelligentTieringConfigurationCommand) + + .sc(DeleteBucketIntelligentTieringConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketInventoryConfigurationCommand.ts b/clients/client-s3/src/commands/DeleteBucketInventoryConfigurationCommand.ts index 209829ed5ffb..c32318646086 100644 --- a/clients/client-s3/src/commands/DeleteBucketInventoryConfigurationCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketInventoryConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketInventoryConfigurationRequest } from "../models/models_0"; -import { - de_DeleteBucketInventoryConfigurationCommand, - se_DeleteBucketInventoryConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucketInventoryConfiguration } from "../schemas/schemas"; /** * @public @@ -101,16 +97,12 @@ export class DeleteBucketInventoryConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketInventoryConfiguration", {}) .n("S3Client", "DeleteBucketInventoryConfigurationCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketInventoryConfigurationCommand) - .de(de_DeleteBucketInventoryConfigurationCommand) + + .sc(DeleteBucketInventoryConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketLifecycleCommand.ts b/clients/client-s3/src/commands/DeleteBucketLifecycleCommand.ts index 3f04f55e87ea..c11c49e51016 100644 --- a/clients/client-s3/src/commands/DeleteBucketLifecycleCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketLifecycleCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketLifecycleRequest } from "../models/models_0"; -import { de_DeleteBucketLifecycleCommand, se_DeleteBucketLifecycleCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucketLifecycle } from "../schemas/schemas"; /** * @public @@ -148,16 +147,12 @@ export class DeleteBucketLifecycleCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketLifecycle", {}) .n("S3Client", "DeleteBucketLifecycleCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketLifecycleCommand) - .de(de_DeleteBucketLifecycleCommand) + + .sc(DeleteBucketLifecycle) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketMetadataConfigurationCommand.ts b/clients/client-s3/src/commands/DeleteBucketMetadataConfigurationCommand.ts index b2a96f77a740..b263744b83fb 100644 --- a/clients/client-s3/src/commands/DeleteBucketMetadataConfigurationCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketMetadataConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketMetadataConfigurationRequest } from "../models/models_0"; -import { - de_DeleteBucketMetadataConfigurationCommand, - se_DeleteBucketMetadataConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucketMetadataConfiguration } from "../schemas/schemas"; /** * @public @@ -117,16 +113,12 @@ export class DeleteBucketMetadataConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketMetadataConfiguration", {}) .n("S3Client", "DeleteBucketMetadataConfigurationCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketMetadataConfigurationCommand) - .de(de_DeleteBucketMetadataConfigurationCommand) + + .sc(DeleteBucketMetadataConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketMetadataTableConfigurationCommand.ts b/clients/client-s3/src/commands/DeleteBucketMetadataTableConfigurationCommand.ts index 6a29b6ac695b..f8e6f5b08a6e 100644 --- a/clients/client-s3/src/commands/DeleteBucketMetadataTableConfigurationCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketMetadataTableConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketMetadataTableConfigurationRequest } from "../models/models_0"; -import { - de_DeleteBucketMetadataTableConfigurationCommand, - se_DeleteBucketMetadataTableConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucketMetadataTableConfiguration } from "../schemas/schemas"; /** * @public @@ -118,16 +114,12 @@ export class DeleteBucketMetadataTableConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketMetadataTableConfiguration", {}) .n("S3Client", "DeleteBucketMetadataTableConfigurationCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketMetadataTableConfigurationCommand) - .de(de_DeleteBucketMetadataTableConfigurationCommand) + + .sc(DeleteBucketMetadataTableConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketMetricsConfigurationCommand.ts b/clients/client-s3/src/commands/DeleteBucketMetricsConfigurationCommand.ts index 09567acfa41b..485388e3bfa4 100644 --- a/clients/client-s3/src/commands/DeleteBucketMetricsConfigurationCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketMetricsConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketMetricsConfigurationRequest } from "../models/models_0"; -import { - de_DeleteBucketMetricsConfigurationCommand, - se_DeleteBucketMetricsConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucketMetricsConfiguration } from "../schemas/schemas"; /** * @public @@ -108,16 +104,12 @@ export class DeleteBucketMetricsConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketMetricsConfiguration", {}) .n("S3Client", "DeleteBucketMetricsConfigurationCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketMetricsConfigurationCommand) - .de(de_DeleteBucketMetricsConfigurationCommand) + + .sc(DeleteBucketMetricsConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketOwnershipControlsCommand.ts b/clients/client-s3/src/commands/DeleteBucketOwnershipControlsCommand.ts index 0afb9223ed9a..90609dca8bac 100644 --- a/clients/client-s3/src/commands/DeleteBucketOwnershipControlsCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketOwnershipControlsCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketOwnershipControlsRequest } from "../models/models_0"; -import { - de_DeleteBucketOwnershipControlsCommand, - se_DeleteBucketOwnershipControlsCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucketOwnershipControls } from "../schemas/schemas"; /** * @public @@ -94,16 +90,12 @@ export class DeleteBucketOwnershipControlsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketOwnershipControls", {}) .n("S3Client", "DeleteBucketOwnershipControlsCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketOwnershipControlsCommand) - .de(de_DeleteBucketOwnershipControlsCommand) + + .sc(DeleteBucketOwnershipControls) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketPolicyCommand.ts b/clients/client-s3/src/commands/DeleteBucketPolicyCommand.ts index 7d5b8b76d104..18723555135d 100644 --- a/clients/client-s3/src/commands/DeleteBucketPolicyCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketPolicyCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketPolicyRequest } from "../models/models_0"; -import { de_DeleteBucketPolicyCommand, se_DeleteBucketPolicyCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucketPolicy } from "../schemas/schemas"; /** * @public @@ -147,16 +146,12 @@ export class DeleteBucketPolicyCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketPolicy", {}) .n("S3Client", "DeleteBucketPolicyCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketPolicyCommand) - .de(de_DeleteBucketPolicyCommand) + + .sc(DeleteBucketPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketReplicationCommand.ts b/clients/client-s3/src/commands/DeleteBucketReplicationCommand.ts index 6bfabaed20e6..134db8f1ac27 100644 --- a/clients/client-s3/src/commands/DeleteBucketReplicationCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketReplicationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketReplicationRequest } from "../models/models_0"; -import { de_DeleteBucketReplicationCommand, se_DeleteBucketReplicationCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucketReplication } from "../schemas/schemas"; /** * @public @@ -109,16 +108,12 @@ export class DeleteBucketReplicationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketReplication", {}) .n("S3Client", "DeleteBucketReplicationCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketReplicationCommand) - .de(de_DeleteBucketReplicationCommand) + + .sc(DeleteBucketReplication) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketTaggingCommand.ts b/clients/client-s3/src/commands/DeleteBucketTaggingCommand.ts index 350715a5b8d2..6ee033e71191 100644 --- a/clients/client-s3/src/commands/DeleteBucketTaggingCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketTaggingCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketTaggingRequest } from "../models/models_0"; -import { de_DeleteBucketTaggingCommand, se_DeleteBucketTaggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucketTagging } from "../schemas/schemas"; /** * @public @@ -102,16 +101,12 @@ export class DeleteBucketTaggingCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketTagging", {}) .n("S3Client", "DeleteBucketTaggingCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketTaggingCommand) - .de(de_DeleteBucketTaggingCommand) + + .sc(DeleteBucketTagging) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketWebsiteCommand.ts b/clients/client-s3/src/commands/DeleteBucketWebsiteCommand.ts index 6ea07303ed6f..96a1fe0900ff 100644 --- a/clients/client-s3/src/commands/DeleteBucketWebsiteCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketWebsiteCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketWebsiteRequest } from "../models/models_0"; -import { de_DeleteBucketWebsiteCommand, se_DeleteBucketWebsiteCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteBucketWebsite } from "../schemas/schemas"; /** * @public @@ -109,16 +108,12 @@ export class DeleteBucketWebsiteCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketWebsite", {}) .n("S3Client", "DeleteBucketWebsiteCommand") - .f(void 0, void 0) - .ser(se_DeleteBucketWebsiteCommand) - .de(de_DeleteBucketWebsiteCommand) + + .sc(DeleteBucketWebsite) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteObjectCommand.ts b/clients/client-s3/src/commands/DeleteObjectCommand.ts index 3f2353bedd03..14c0288b2801 100644 --- a/clients/client-s3/src/commands/DeleteObjectCommand.ts +++ b/clients/client-s3/src/commands/DeleteObjectCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteObjectOutput, DeleteObjectRequest } from "../models/models_0"; -import { de_DeleteObjectCommand, se_DeleteObjectCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteObject } from "../schemas/schemas"; /** * @public @@ -225,17 +224,12 @@ export class DeleteObjectCommand extends $Command Key: { type: "contextParams", name: "Key" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "DeleteObject", {}) .n("S3Client", "DeleteObjectCommand") - .f(void 0, void 0) - .ser(se_DeleteObjectCommand) - .de(de_DeleteObjectCommand) + + .sc(DeleteObject) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts b/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts index a7adb63964c0..d7d347388c49 100644 --- a/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts +++ b/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteObjectTaggingOutput, DeleteObjectTaggingRequest } from "../models/models_0"; -import { de_DeleteObjectTaggingCommand, se_DeleteObjectTaggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteObjectTagging } from "../schemas/schemas"; /** * @public @@ -130,17 +129,12 @@ export class DeleteObjectTaggingCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "DeleteObjectTagging", {}) .n("S3Client", "DeleteObjectTaggingCommand") - .f(void 0, void 0) - .ser(se_DeleteObjectTaggingCommand) - .de(de_DeleteObjectTaggingCommand) + + .sc(DeleteObjectTagging) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteObjectsCommand.ts b/clients/client-s3/src/commands/DeleteObjectsCommand.ts index e1f95b0aa823..41c45c2525e5 100644 --- a/clients/client-s3/src/commands/DeleteObjectsCommand.ts +++ b/clients/client-s3/src/commands/DeleteObjectsCommand.ts @@ -2,14 +2,13 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteObjectsOutput, DeleteObjectsRequest } from "../models/models_0"; -import { de_DeleteObjectsCommand, se_DeleteObjectsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeleteObjects } from "../schemas/schemas"; /** * @public @@ -310,7 +309,6 @@ export class DeleteObjectsCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -321,9 +319,8 @@ export class DeleteObjectsCommand extends $Command }) .s("AmazonS3", "DeleteObjects", {}) .n("S3Client", "DeleteObjectsCommand") - .f(void 0, void 0) - .ser(se_DeleteObjectsCommand) - .de(de_DeleteObjectsCommand) + + .sc(DeleteObjects) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeletePublicAccessBlockCommand.ts b/clients/client-s3/src/commands/DeletePublicAccessBlockCommand.ts index c0a79a8da245..c384237c0008 100644 --- a/clients/client-s3/src/commands/DeletePublicAccessBlockCommand.ts +++ b/clients/client-s3/src/commands/DeletePublicAccessBlockCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeletePublicAccessBlockRequest } from "../models/models_0"; -import { de_DeletePublicAccessBlockCommand, se_DeletePublicAccessBlockCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { DeletePublicAccessBlock } from "../schemas/schemas"; /** * @public @@ -101,16 +100,12 @@ export class DeletePublicAccessBlockCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeletePublicAccessBlock", {}) .n("S3Client", "DeletePublicAccessBlockCommand") - .f(void 0, void 0) - .ser(se_DeletePublicAccessBlockCommand) - .de(de_DeletePublicAccessBlockCommand) + + .sc(DeletePublicAccessBlock) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketAccelerateConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketAccelerateConfigurationCommand.ts index b1f01fc94111..f393374f87d4 100644 --- a/clients/client-s3/src/commands/GetBucketAccelerateConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketAccelerateConfigurationCommand.ts @@ -1,17 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketAccelerateConfigurationOutput, GetBucketAccelerateConfigurationRequest } from "../models/models_0"; -import { - de_GetBucketAccelerateConfigurationCommand, - se_GetBucketAccelerateConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketAccelerateConfiguration } from "../schemas/schemas"; /** * @public @@ -106,17 +102,12 @@ export class GetBucketAccelerateConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketAccelerateConfiguration", {}) .n("S3Client", "GetBucketAccelerateConfigurationCommand") - .f(void 0, void 0) - .ser(se_GetBucketAccelerateConfigurationCommand) - .de(de_GetBucketAccelerateConfigurationCommand) + + .sc(GetBucketAccelerateConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketAclCommand.ts b/clients/client-s3/src/commands/GetBucketAclCommand.ts index 5fce672e3a42..f64b9863798b 100644 --- a/clients/client-s3/src/commands/GetBucketAclCommand.ts +++ b/clients/client-s3/src/commands/GetBucketAclCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketAclOutput, GetBucketAclRequest } from "../models/models_0"; -import { de_GetBucketAclCommand, se_GetBucketAclCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketAcl } from "../schemas/schemas"; /** * @public @@ -122,17 +121,12 @@ export class GetBucketAclCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketAcl", {}) .n("S3Client", "GetBucketAclCommand") - .f(void 0, void 0) - .ser(se_GetBucketAclCommand) - .de(de_GetBucketAclCommand) + + .sc(GetBucketAcl) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketAnalyticsConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketAnalyticsConfigurationCommand.ts index f47aa8e85194..da55cedd3d1f 100644 --- a/clients/client-s3/src/commands/GetBucketAnalyticsConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketAnalyticsConfigurationCommand.ts @@ -1,17 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketAnalyticsConfigurationOutput, GetBucketAnalyticsConfigurationRequest } from "../models/models_0"; -import { - de_GetBucketAnalyticsConfigurationCommand, - se_GetBucketAnalyticsConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketAnalyticsConfiguration } from "../schemas/schemas"; /** * @public @@ -139,17 +135,12 @@ export class GetBucketAnalyticsConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketAnalyticsConfiguration", {}) .n("S3Client", "GetBucketAnalyticsConfigurationCommand") - .f(void 0, void 0) - .ser(se_GetBucketAnalyticsConfigurationCommand) - .de(de_GetBucketAnalyticsConfigurationCommand) + + .sc(GetBucketAnalyticsConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketCorsCommand.ts b/clients/client-s3/src/commands/GetBucketCorsCommand.ts index b02c2a5846a5..6750903b6f33 100644 --- a/clients/client-s3/src/commands/GetBucketCorsCommand.ts +++ b/clients/client-s3/src/commands/GetBucketCorsCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketCorsOutput, GetBucketCorsRequest } from "../models/models_0"; -import { de_GetBucketCorsCommand, se_GetBucketCorsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketCors } from "../schemas/schemas"; /** * @public @@ -144,17 +143,12 @@ export class GetBucketCorsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketCors", {}) .n("S3Client", "GetBucketCorsCommand") - .f(void 0, void 0) - .ser(se_GetBucketCorsCommand) - .de(de_GetBucketCorsCommand) + + .sc(GetBucketCors) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketEncryptionCommand.ts b/clients/client-s3/src/commands/GetBucketEncryptionCommand.ts index ca8bab5e5b3d..4359eab00d2f 100644 --- a/clients/client-s3/src/commands/GetBucketEncryptionCommand.ts +++ b/clients/client-s3/src/commands/GetBucketEncryptionCommand.ts @@ -1,18 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { - GetBucketEncryptionOutput, - GetBucketEncryptionOutputFilterSensitiveLog, - GetBucketEncryptionRequest, -} from "../models/models_0"; -import { de_GetBucketEncryptionCommand, se_GetBucketEncryptionCommand } from "../protocols/Aws_restXml"; +import { GetBucketEncryptionOutput, GetBucketEncryptionRequest } from "../models/models_0"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketEncryption } from "../schemas/schemas"; /** * @public @@ -146,17 +141,12 @@ export class GetBucketEncryptionCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketEncryption", {}) .n("S3Client", "GetBucketEncryptionCommand") - .f(void 0, GetBucketEncryptionOutputFilterSensitiveLog) - .ser(se_GetBucketEncryptionCommand) - .de(de_GetBucketEncryptionCommand) + + .sc(GetBucketEncryption) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketIntelligentTieringConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketIntelligentTieringConfigurationCommand.ts index f2ba03957278..766cea434934 100644 --- a/clients/client-s3/src/commands/GetBucketIntelligentTieringConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketIntelligentTieringConfigurationCommand.ts @@ -1,7 +1,6 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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,11 +9,8 @@ import { GetBucketIntelligentTieringConfigurationOutput, GetBucketIntelligentTieringConfigurationRequest, } from "../models/models_0"; -import { - de_GetBucketIntelligentTieringConfigurationCommand, - se_GetBucketIntelligentTieringConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketIntelligentTieringConfiguration } from "../schemas/schemas"; /** * @public @@ -133,17 +129,12 @@ export class GetBucketIntelligentTieringConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketIntelligentTieringConfiguration", {}) .n("S3Client", "GetBucketIntelligentTieringConfigurationCommand") - .f(void 0, void 0) - .ser(se_GetBucketIntelligentTieringConfigurationCommand) - .de(de_GetBucketIntelligentTieringConfigurationCommand) + + .sc(GetBucketIntelligentTieringConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketInventoryConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketInventoryConfigurationCommand.ts index 9c96d0091314..24b021e37283 100644 --- a/clients/client-s3/src/commands/GetBucketInventoryConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketInventoryConfigurationCommand.ts @@ -1,21 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { - GetBucketInventoryConfigurationOutput, - GetBucketInventoryConfigurationOutputFilterSensitiveLog, - GetBucketInventoryConfigurationRequest, -} from "../models/models_0"; -import { - de_GetBucketInventoryConfigurationCommand, - se_GetBucketInventoryConfigurationCommand, -} from "../protocols/Aws_restXml"; +import { GetBucketInventoryConfigurationOutput, GetBucketInventoryConfigurationRequest } from "../models/models_0"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketInventoryConfiguration } from "../schemas/schemas"; /** * @public @@ -138,17 +130,12 @@ export class GetBucketInventoryConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketInventoryConfiguration", {}) .n("S3Client", "GetBucketInventoryConfigurationCommand") - .f(void 0, GetBucketInventoryConfigurationOutputFilterSensitiveLog) - .ser(se_GetBucketInventoryConfigurationCommand) - .de(de_GetBucketInventoryConfigurationCommand) + + .sc(GetBucketInventoryConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketLifecycleConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketLifecycleConfigurationCommand.ts index b7a2b4514b08..ac9c12f2087a 100644 --- a/clients/client-s3/src/commands/GetBucketLifecycleConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketLifecycleConfigurationCommand.ts @@ -1,17 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketLifecycleConfigurationOutput, GetBucketLifecycleConfigurationRequest } from "../models/models_0"; -import { - de_GetBucketLifecycleConfigurationCommand, - se_GetBucketLifecycleConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketLifecycleConfiguration } from "../schemas/schemas"; /** * @public @@ -251,17 +247,12 @@ export class GetBucketLifecycleConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketLifecycleConfiguration", {}) .n("S3Client", "GetBucketLifecycleConfigurationCommand") - .f(void 0, void 0) - .ser(se_GetBucketLifecycleConfigurationCommand) - .de(de_GetBucketLifecycleConfigurationCommand) + + .sc(GetBucketLifecycleConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketLocationCommand.ts b/clients/client-s3/src/commands/GetBucketLocationCommand.ts index e4a535c0c2a6..88dbd8d71666 100644 --- a/clients/client-s3/src/commands/GetBucketLocationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketLocationCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketLocationOutput, GetBucketLocationRequest } from "../models/models_0"; -import { de_GetBucketLocationCommand, se_GetBucketLocationCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketLocation } from "../schemas/schemas"; /** * @public @@ -116,17 +115,12 @@ export class GetBucketLocationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketLocation", {}) .n("S3Client", "GetBucketLocationCommand") - .f(void 0, void 0) - .ser(se_GetBucketLocationCommand) - .de(de_GetBucketLocationCommand) + + .sc(GetBucketLocation) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketLoggingCommand.ts b/clients/client-s3/src/commands/GetBucketLoggingCommand.ts index 3fbdcc045a98..a12545ce2617 100644 --- a/clients/client-s3/src/commands/GetBucketLoggingCommand.ts +++ b/clients/client-s3/src/commands/GetBucketLoggingCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketLoggingOutput, GetBucketLoggingRequest } from "../models/models_0"; -import { de_GetBucketLoggingCommand, se_GetBucketLoggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketLogging } from "../schemas/schemas"; /** * @public @@ -119,17 +118,12 @@ export class GetBucketLoggingCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketLogging", {}) .n("S3Client", "GetBucketLoggingCommand") - .f(void 0, void 0) - .ser(se_GetBucketLoggingCommand) - .de(de_GetBucketLoggingCommand) + + .sc(GetBucketLogging) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketMetadataConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketMetadataConfigurationCommand.ts index cffd79253ce1..5c1c429e1c26 100644 --- a/clients/client-s3/src/commands/GetBucketMetadataConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketMetadataConfigurationCommand.ts @@ -1,17 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketMetadataConfigurationOutput, GetBucketMetadataConfigurationRequest } from "../models/models_0"; -import { - de_GetBucketMetadataConfigurationCommand, - se_GetBucketMetadataConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketMetadataConfiguration } from "../schemas/schemas"; /** * @public @@ -152,17 +148,12 @@ export class GetBucketMetadataConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketMetadataConfiguration", {}) .n("S3Client", "GetBucketMetadataConfigurationCommand") - .f(void 0, void 0) - .ser(se_GetBucketMetadataConfigurationCommand) - .de(de_GetBucketMetadataConfigurationCommand) + + .sc(GetBucketMetadataConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketMetadataTableConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketMetadataTableConfigurationCommand.ts index c7677719fcbc..2b9a9540e13f 100644 --- a/clients/client-s3/src/commands/GetBucketMetadataTableConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketMetadataTableConfigurationCommand.ts @@ -1,7 +1,6 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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,11 +9,8 @@ import { GetBucketMetadataTableConfigurationOutput, GetBucketMetadataTableConfigurationRequest, } from "../models/models_0"; -import { - de_GetBucketMetadataTableConfigurationCommand, - se_GetBucketMetadataTableConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketMetadataTableConfiguration } from "../schemas/schemas"; /** * @public @@ -138,17 +134,12 @@ export class GetBucketMetadataTableConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketMetadataTableConfiguration", {}) .n("S3Client", "GetBucketMetadataTableConfigurationCommand") - .f(void 0, void 0) - .ser(se_GetBucketMetadataTableConfigurationCommand) - .de(de_GetBucketMetadataTableConfigurationCommand) + + .sc(GetBucketMetadataTableConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketMetricsConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketMetricsConfigurationCommand.ts index 935ea0c1752c..ff783e4e7620 100644 --- a/clients/client-s3/src/commands/GetBucketMetricsConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketMetricsConfigurationCommand.ts @@ -1,17 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketMetricsConfigurationOutput, GetBucketMetricsConfigurationRequest } from "../models/models_0"; -import { - de_GetBucketMetricsConfigurationCommand, - se_GetBucketMetricsConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketMetricsConfiguration } from "../schemas/schemas"; /** * @public @@ -134,17 +130,12 @@ export class GetBucketMetricsConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketMetricsConfiguration", {}) .n("S3Client", "GetBucketMetricsConfigurationCommand") - .f(void 0, void 0) - .ser(se_GetBucketMetricsConfigurationCommand) - .de(de_GetBucketMetricsConfigurationCommand) + + .sc(GetBucketMetricsConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketNotificationConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketNotificationConfigurationCommand.ts index db4d94188021..9f66a1b269ff 100644 --- a/clients/client-s3/src/commands/GetBucketNotificationConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketNotificationConfigurationCommand.ts @@ -1,17 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketNotificationConfigurationRequest, NotificationConfiguration } from "../models/models_0"; -import { - de_GetBucketNotificationConfigurationCommand, - se_GetBucketNotificationConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketNotificationConfiguration } from "../schemas/schemas"; /** * @public @@ -158,17 +154,12 @@ export class GetBucketNotificationConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketNotificationConfiguration", {}) .n("S3Client", "GetBucketNotificationConfigurationCommand") - .f(void 0, void 0) - .ser(se_GetBucketNotificationConfigurationCommand) - .de(de_GetBucketNotificationConfigurationCommand) + + .sc(GetBucketNotificationConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketOwnershipControlsCommand.ts b/clients/client-s3/src/commands/GetBucketOwnershipControlsCommand.ts index a03ce93ed5d1..8efd3b067833 100644 --- a/clients/client-s3/src/commands/GetBucketOwnershipControlsCommand.ts +++ b/clients/client-s3/src/commands/GetBucketOwnershipControlsCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketOwnershipControlsOutput, GetBucketOwnershipControlsRequest } from "../models/models_0"; -import { de_GetBucketOwnershipControlsCommand, se_GetBucketOwnershipControlsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketOwnershipControls } from "../schemas/schemas"; /** * @public @@ -114,17 +113,12 @@ export class GetBucketOwnershipControlsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketOwnershipControls", {}) .n("S3Client", "GetBucketOwnershipControlsCommand") - .f(void 0, void 0) - .ser(se_GetBucketOwnershipControlsCommand) - .de(de_GetBucketOwnershipControlsCommand) + + .sc(GetBucketOwnershipControls) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketPolicyCommand.ts b/clients/client-s3/src/commands/GetBucketPolicyCommand.ts index 8c93362dc9ba..95a973197799 100644 --- a/clients/client-s3/src/commands/GetBucketPolicyCommand.ts +++ b/clients/client-s3/src/commands/GetBucketPolicyCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketPolicyOutput, GetBucketPolicyRequest } from "../models/models_0"; -import { de_GetBucketPolicyCommand, se_GetBucketPolicyCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketPolicy } from "../schemas/schemas"; /** * @public @@ -155,17 +154,12 @@ export class GetBucketPolicyCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketPolicy", {}) .n("S3Client", "GetBucketPolicyCommand") - .f(void 0, void 0) - .ser(se_GetBucketPolicyCommand) - .de(de_GetBucketPolicyCommand) + + .sc(GetBucketPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketPolicyStatusCommand.ts b/clients/client-s3/src/commands/GetBucketPolicyStatusCommand.ts index 5de3a74a3291..221cab58426b 100644 --- a/clients/client-s3/src/commands/GetBucketPolicyStatusCommand.ts +++ b/clients/client-s3/src/commands/GetBucketPolicyStatusCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketPolicyStatusOutput, GetBucketPolicyStatusRequest } from "../models/models_0"; -import { de_GetBucketPolicyStatusCommand, se_GetBucketPolicyStatusCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketPolicyStatus } from "../schemas/schemas"; /** * @public @@ -106,17 +105,12 @@ export class GetBucketPolicyStatusCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketPolicyStatus", {}) .n("S3Client", "GetBucketPolicyStatusCommand") - .f(void 0, void 0) - .ser(se_GetBucketPolicyStatusCommand) - .de(de_GetBucketPolicyStatusCommand) + + .sc(GetBucketPolicyStatus) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketReplicationCommand.ts b/clients/client-s3/src/commands/GetBucketReplicationCommand.ts index 0b6c85725407..0a6841bfd8bd 100644 --- a/clients/client-s3/src/commands/GetBucketReplicationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketReplicationCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketReplicationOutput, GetBucketReplicationRequest } from "../models/models_0"; -import { de_GetBucketReplicationCommand, se_GetBucketReplicationCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketReplication } from "../schemas/schemas"; /** * @public @@ -195,17 +194,12 @@ export class GetBucketReplicationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketReplication", {}) .n("S3Client", "GetBucketReplicationCommand") - .f(void 0, void 0) - .ser(se_GetBucketReplicationCommand) - .de(de_GetBucketReplicationCommand) + + .sc(GetBucketReplication) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketRequestPaymentCommand.ts b/clients/client-s3/src/commands/GetBucketRequestPaymentCommand.ts index 0c8b4bba2236..5a624ee73152 100644 --- a/clients/client-s3/src/commands/GetBucketRequestPaymentCommand.ts +++ b/clients/client-s3/src/commands/GetBucketRequestPaymentCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketRequestPaymentOutput, GetBucketRequestPaymentRequest } from "../models/models_0"; -import { de_GetBucketRequestPaymentCommand, se_GetBucketRequestPaymentCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketRequestPayment } from "../schemas/schemas"; /** * @public @@ -101,17 +100,12 @@ export class GetBucketRequestPaymentCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketRequestPayment", {}) .n("S3Client", "GetBucketRequestPaymentCommand") - .f(void 0, void 0) - .ser(se_GetBucketRequestPaymentCommand) - .de(de_GetBucketRequestPaymentCommand) + + .sc(GetBucketRequestPayment) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketTaggingCommand.ts b/clients/client-s3/src/commands/GetBucketTaggingCommand.ts index 7ec2ed37fa13..c9e8c665811a 100644 --- a/clients/client-s3/src/commands/GetBucketTaggingCommand.ts +++ b/clients/client-s3/src/commands/GetBucketTaggingCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketTaggingOutput, GetBucketTaggingRequest } from "../models/models_0"; -import { de_GetBucketTaggingCommand, se_GetBucketTaggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketTagging } from "../schemas/schemas"; /** * @public @@ -134,17 +133,12 @@ export class GetBucketTaggingCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketTagging", {}) .n("S3Client", "GetBucketTaggingCommand") - .f(void 0, void 0) - .ser(se_GetBucketTaggingCommand) - .de(de_GetBucketTaggingCommand) + + .sc(GetBucketTagging) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketVersioningCommand.ts b/clients/client-s3/src/commands/GetBucketVersioningCommand.ts index 9c1605dd2946..2ce75050ec1c 100644 --- a/clients/client-s3/src/commands/GetBucketVersioningCommand.ts +++ b/clients/client-s3/src/commands/GetBucketVersioningCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketVersioningOutput, GetBucketVersioningRequest } from "../models/models_0"; -import { de_GetBucketVersioningCommand, se_GetBucketVersioningCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketVersioning } from "../schemas/schemas"; /** * @public @@ -116,17 +115,12 @@ export class GetBucketVersioningCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketVersioning", {}) .n("S3Client", "GetBucketVersioningCommand") - .f(void 0, void 0) - .ser(se_GetBucketVersioningCommand) - .de(de_GetBucketVersioningCommand) + + .sc(GetBucketVersioning) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketWebsiteCommand.ts b/clients/client-s3/src/commands/GetBucketWebsiteCommand.ts index a235cfd6d38b..76a20fa00384 100644 --- a/clients/client-s3/src/commands/GetBucketWebsiteCommand.ts +++ b/clients/client-s3/src/commands/GetBucketWebsiteCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketWebsiteOutput, GetBucketWebsiteRequest } from "../models/models_0"; -import { de_GetBucketWebsiteCommand, se_GetBucketWebsiteCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetBucketWebsite } from "../schemas/schemas"; /** * @public @@ -139,17 +138,12 @@ export class GetBucketWebsiteCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetBucketWebsite", {}) .n("S3Client", "GetBucketWebsiteCommand") - .f(void 0, void 0) - .ser(se_GetBucketWebsiteCommand) - .de(de_GetBucketWebsiteCommand) + + .sc(GetBucketWebsite) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectAclCommand.ts b/clients/client-s3/src/commands/GetObjectAclCommand.ts index 3f845cd49633..f6f8d6e7d916 100644 --- a/clients/client-s3/src/commands/GetObjectAclCommand.ts +++ b/clients/client-s3/src/commands/GetObjectAclCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetObjectAclOutput, GetObjectAclRequest } from "../models/models_0"; -import { de_GetObjectAclCommand, se_GetObjectAclCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetObjectAcl } from "../schemas/schemas"; /** * @public @@ -188,17 +187,12 @@ export class GetObjectAclCommand extends $Command Key: { type: "contextParams", name: "Key" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetObjectAcl", {}) .n("S3Client", "GetObjectAclCommand") - .f(void 0, void 0) - .ser(se_GetObjectAclCommand) - .de(de_GetObjectAclCommand) + + .sc(GetObjectAcl) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectAttributesCommand.ts b/clients/client-s3/src/commands/GetObjectAttributesCommand.ts index 74fd8101092d..bf1438a734d4 100644 --- a/clients/client-s3/src/commands/GetObjectAttributesCommand.ts +++ b/clients/client-s3/src/commands/GetObjectAttributesCommand.ts @@ -2,18 +2,13 @@ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { - GetObjectAttributesOutput, - GetObjectAttributesRequest, - GetObjectAttributesRequestFilterSensitiveLog, -} from "../models/models_0"; -import { de_GetObjectAttributesCommand, se_GetObjectAttributesCommand } from "../protocols/Aws_restXml"; +import { GetObjectAttributesOutput, GetObjectAttributesRequest } from "../models/models_0"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetObjectAttributes } from "../schemas/schemas"; /** * @public @@ -329,7 +324,6 @@ export class GetObjectAttributesCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -337,9 +331,8 @@ export class GetObjectAttributesCommand extends $Command }) .s("AmazonS3", "GetObjectAttributes", {}) .n("S3Client", "GetObjectAttributesCommand") - .f(GetObjectAttributesRequestFilterSensitiveLog, void 0) - .ser(se_GetObjectAttributesCommand) - .de(de_GetObjectAttributesCommand) + + .sc(GetObjectAttributes) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectCommand.ts b/clients/client-s3/src/commands/GetObjectCommand.ts index 07a34b82a6ab..0c79f17eebd8 100644 --- a/clients/client-s3/src/commands/GetObjectCommand.ts +++ b/clients/client-s3/src/commands/GetObjectCommand.ts @@ -3,19 +3,13 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksu import { getS3ExpiresMiddlewarePlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer, StreamingBlobPayloadOutputTypes } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { - GetObjectOutput, - GetObjectOutputFilterSensitiveLog, - GetObjectRequest, - GetObjectRequestFilterSensitiveLog, -} from "../models/models_0"; -import { de_GetObjectCommand, se_GetObjectCommand } from "../protocols/Aws_restXml"; +import { GetObjectOutput, GetObjectRequest } from "../models/models_0"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetObject } from "../schemas/schemas"; /** * @public @@ -378,7 +372,6 @@ export class GetObjectCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestChecksumRequired: false, @@ -391,9 +384,8 @@ export class GetObjectCommand extends $Command }) .s("AmazonS3", "GetObject", {}) .n("S3Client", "GetObjectCommand") - .f(GetObjectRequestFilterSensitiveLog, GetObjectOutputFilterSensitiveLog) - .ser(se_GetObjectCommand) - .de(de_GetObjectCommand) + + .sc(GetObject) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectLegalHoldCommand.ts b/clients/client-s3/src/commands/GetObjectLegalHoldCommand.ts index 691ec0030616..a962dc424eb9 100644 --- a/clients/client-s3/src/commands/GetObjectLegalHoldCommand.ts +++ b/clients/client-s3/src/commands/GetObjectLegalHoldCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetObjectLegalHoldOutput, GetObjectLegalHoldRequest } from "../models/models_0"; -import { de_GetObjectLegalHoldCommand, se_GetObjectLegalHoldCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetObjectLegalHold } from "../schemas/schemas"; /** * @public @@ -90,17 +89,12 @@ export class GetObjectLegalHoldCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetObjectLegalHold", {}) .n("S3Client", "GetObjectLegalHoldCommand") - .f(void 0, void 0) - .ser(se_GetObjectLegalHoldCommand) - .de(de_GetObjectLegalHoldCommand) + + .sc(GetObjectLegalHold) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectLockConfigurationCommand.ts b/clients/client-s3/src/commands/GetObjectLockConfigurationCommand.ts index 6b1871b8ea5b..b5a796760786 100644 --- a/clients/client-s3/src/commands/GetObjectLockConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetObjectLockConfigurationCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetObjectLockConfigurationOutput, GetObjectLockConfigurationRequest } from "../models/models_0"; -import { de_GetObjectLockConfigurationCommand, se_GetObjectLockConfigurationCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetObjectLockConfiguration } from "../schemas/schemas"; /** * @public @@ -95,17 +94,12 @@ export class GetObjectLockConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetObjectLockConfiguration", {}) .n("S3Client", "GetObjectLockConfigurationCommand") - .f(void 0, void 0) - .ser(se_GetObjectLockConfigurationCommand) - .de(de_GetObjectLockConfigurationCommand) + + .sc(GetObjectLockConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectRetentionCommand.ts b/clients/client-s3/src/commands/GetObjectRetentionCommand.ts index f73c2fbd0a6f..7e73dbd9d944 100644 --- a/clients/client-s3/src/commands/GetObjectRetentionCommand.ts +++ b/clients/client-s3/src/commands/GetObjectRetentionCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetObjectRetentionOutput, GetObjectRetentionRequest } from "../models/models_0"; -import { de_GetObjectRetentionCommand, se_GetObjectRetentionCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetObjectRetention } from "../schemas/schemas"; /** * @public @@ -91,17 +90,12 @@ export class GetObjectRetentionCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetObjectRetention", {}) .n("S3Client", "GetObjectRetentionCommand") - .f(void 0, void 0) - .ser(se_GetObjectRetentionCommand) - .de(de_GetObjectRetentionCommand) + + .sc(GetObjectRetention) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectTaggingCommand.ts b/clients/client-s3/src/commands/GetObjectTaggingCommand.ts index 673b21bf6a01..6881d16e71ba 100644 --- a/clients/client-s3/src/commands/GetObjectTaggingCommand.ts +++ b/clients/client-s3/src/commands/GetObjectTaggingCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetObjectTaggingOutput, GetObjectTaggingRequest } from "../models/models_0"; -import { de_GetObjectTaggingCommand, se_GetObjectTaggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetObjectTagging } from "../schemas/schemas"; /** * @public @@ -160,17 +159,12 @@ export class GetObjectTaggingCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetObjectTagging", {}) .n("S3Client", "GetObjectTaggingCommand") - .f(void 0, void 0) - .ser(se_GetObjectTaggingCommand) - .de(de_GetObjectTaggingCommand) + + .sc(GetObjectTagging) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectTorrentCommand.ts b/clients/client-s3/src/commands/GetObjectTorrentCommand.ts index 53c8649e9312..15b8b9729c96 100644 --- a/clients/client-s3/src/commands/GetObjectTorrentCommand.ts +++ b/clients/client-s3/src/commands/GetObjectTorrentCommand.ts @@ -1,17 +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, StreamingBlobPayloadOutputTypes } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { - GetObjectTorrentOutput, - GetObjectTorrentOutputFilterSensitiveLog, - GetObjectTorrentRequest, -} from "../models/models_0"; -import { de_GetObjectTorrentCommand, se_GetObjectTorrentCommand } from "../protocols/Aws_restXml"; +import { GetObjectTorrentOutput, GetObjectTorrentRequest } from "../models/models_0"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetObjectTorrent } from "../schemas/schemas"; /** * @public @@ -123,16 +118,12 @@ export class GetObjectTorrentCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "GetObjectTorrent", {}) .n("S3Client", "GetObjectTorrentCommand") - .f(void 0, GetObjectTorrentOutputFilterSensitiveLog) - .ser(se_GetObjectTorrentCommand) - .de(de_GetObjectTorrentCommand) + + .sc(GetObjectTorrent) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetPublicAccessBlockCommand.ts b/clients/client-s3/src/commands/GetPublicAccessBlockCommand.ts index bd037f390e47..27cb7a13eb16 100644 --- a/clients/client-s3/src/commands/GetPublicAccessBlockCommand.ts +++ b/clients/client-s3/src/commands/GetPublicAccessBlockCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetPublicAccessBlockOutput, GetPublicAccessBlockRequest } from "../models/models_0"; -import { de_GetPublicAccessBlockCommand, se_GetPublicAccessBlockCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { GetPublicAccessBlock } from "../schemas/schemas"; /** * @public @@ -116,17 +115,12 @@ export class GetPublicAccessBlockCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "GetPublicAccessBlock", {}) .n("S3Client", "GetPublicAccessBlockCommand") - .f(void 0, void 0) - .ser(se_GetPublicAccessBlockCommand) - .de(de_GetPublicAccessBlockCommand) + + .sc(GetPublicAccessBlock) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/HeadBucketCommand.ts b/clients/client-s3/src/commands/HeadBucketCommand.ts index b03aa20ce71e..36bdb3c39f7b 100644 --- a/clients/client-s3/src/commands/HeadBucketCommand.ts +++ b/clients/client-s3/src/commands/HeadBucketCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { HeadBucketOutput, HeadBucketRequest } from "../models/models_0"; -import { de_HeadBucketCommand, se_HeadBucketCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { HeadBucket } from "../schemas/schemas"; /** * @public @@ -159,17 +158,12 @@ export class HeadBucketCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "HeadBucket", {}) .n("S3Client", "HeadBucketCommand") - .f(void 0, void 0) - .ser(se_HeadBucketCommand) - .de(de_HeadBucketCommand) + + .sc(HeadBucket) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/HeadObjectCommand.ts b/clients/client-s3/src/commands/HeadObjectCommand.ts index 5c3e3c51c02d..3a38c124f068 100644 --- a/clients/client-s3/src/commands/HeadObjectCommand.ts +++ b/clients/client-s3/src/commands/HeadObjectCommand.ts @@ -2,19 +2,13 @@ import { getS3ExpiresMiddlewarePlugin, getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { - HeadObjectOutput, - HeadObjectOutputFilterSensitiveLog, - HeadObjectRequest, - HeadObjectRequestFilterSensitiveLog, -} from "../models/models_0"; -import { de_HeadObjectCommand, se_HeadObjectCommand } from "../protocols/Aws_restXml"; +import { HeadObjectOutput, HeadObjectRequest } from "../models/models_0"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { HeadObject } from "../schemas/schemas"; /** * @public @@ -315,7 +309,6 @@ export class HeadObjectCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -324,9 +317,8 @@ export class HeadObjectCommand extends $Command }) .s("AmazonS3", "HeadObject", {}) .n("S3Client", "HeadObjectCommand") - .f(HeadObjectRequestFilterSensitiveLog, HeadObjectOutputFilterSensitiveLog) - .ser(se_HeadObjectCommand) - .de(de_HeadObjectCommand) + + .sc(HeadObject) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListBucketAnalyticsConfigurationsCommand.ts b/clients/client-s3/src/commands/ListBucketAnalyticsConfigurationsCommand.ts index 98ba7dedc5f7..b45eb759ccf8 100644 --- a/clients/client-s3/src/commands/ListBucketAnalyticsConfigurationsCommand.ts +++ b/clients/client-s3/src/commands/ListBucketAnalyticsConfigurationsCommand.ts @@ -1,17 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListBucketAnalyticsConfigurationsOutput, ListBucketAnalyticsConfigurationsRequest } from "../models/models_0"; -import { - de_ListBucketAnalyticsConfigurationsCommand, - se_ListBucketAnalyticsConfigurationsCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { ListBucketAnalyticsConfigurations } from "../schemas/schemas"; /** * @public @@ -151,17 +147,12 @@ export class ListBucketAnalyticsConfigurationsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "ListBucketAnalyticsConfigurations", {}) .n("S3Client", "ListBucketAnalyticsConfigurationsCommand") - .f(void 0, void 0) - .ser(se_ListBucketAnalyticsConfigurationsCommand) - .de(de_ListBucketAnalyticsConfigurationsCommand) + + .sc(ListBucketAnalyticsConfigurations) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListBucketIntelligentTieringConfigurationsCommand.ts b/clients/client-s3/src/commands/ListBucketIntelligentTieringConfigurationsCommand.ts index a42db557a3af..ae76a767ecdf 100644 --- a/clients/client-s3/src/commands/ListBucketIntelligentTieringConfigurationsCommand.ts +++ b/clients/client-s3/src/commands/ListBucketIntelligentTieringConfigurationsCommand.ts @@ -1,7 +1,6 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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,11 +9,8 @@ import { ListBucketIntelligentTieringConfigurationsOutput, ListBucketIntelligentTieringConfigurationsRequest, } from "../models/models_0"; -import { - de_ListBucketIntelligentTieringConfigurationsCommand, - se_ListBucketIntelligentTieringConfigurationsCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { ListBucketIntelligentTieringConfigurations } from "../schemas/schemas"; /** * @public @@ -138,17 +134,12 @@ export class ListBucketIntelligentTieringConfigurationsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "ListBucketIntelligentTieringConfigurations", {}) .n("S3Client", "ListBucketIntelligentTieringConfigurationsCommand") - .f(void 0, void 0) - .ser(se_ListBucketIntelligentTieringConfigurationsCommand) - .de(de_ListBucketIntelligentTieringConfigurationsCommand) + + .sc(ListBucketIntelligentTieringConfigurations) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListBucketInventoryConfigurationsCommand.ts b/clients/client-s3/src/commands/ListBucketInventoryConfigurationsCommand.ts index 258f639076ec..bcb78761f0ad 100644 --- a/clients/client-s3/src/commands/ListBucketInventoryConfigurationsCommand.ts +++ b/clients/client-s3/src/commands/ListBucketInventoryConfigurationsCommand.ts @@ -1,21 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { - ListBucketInventoryConfigurationsOutput, - ListBucketInventoryConfigurationsOutputFilterSensitiveLog, - ListBucketInventoryConfigurationsRequest, -} from "../models/models_0"; -import { - de_ListBucketInventoryConfigurationsCommand, - se_ListBucketInventoryConfigurationsCommand, -} from "../protocols/Aws_restXml"; +import { ListBucketInventoryConfigurationsOutput, ListBucketInventoryConfigurationsRequest } from "../models/models_0"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { ListBucketInventoryConfigurations } from "../schemas/schemas"; /** * @public @@ -150,17 +142,12 @@ export class ListBucketInventoryConfigurationsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "ListBucketInventoryConfigurations", {}) .n("S3Client", "ListBucketInventoryConfigurationsCommand") - .f(void 0, ListBucketInventoryConfigurationsOutputFilterSensitiveLog) - .ser(se_ListBucketInventoryConfigurationsCommand) - .de(de_ListBucketInventoryConfigurationsCommand) + + .sc(ListBucketInventoryConfigurations) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListBucketMetricsConfigurationsCommand.ts b/clients/client-s3/src/commands/ListBucketMetricsConfigurationsCommand.ts index 3fb383f4d80d..81a7253fc118 100644 --- a/clients/client-s3/src/commands/ListBucketMetricsConfigurationsCommand.ts +++ b/clients/client-s3/src/commands/ListBucketMetricsConfigurationsCommand.ts @@ -1,17 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListBucketMetricsConfigurationsOutput, ListBucketMetricsConfigurationsRequest } from "../models/models_0"; -import { - de_ListBucketMetricsConfigurationsCommand, - se_ListBucketMetricsConfigurationsCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { ListBucketMetricsConfigurations } from "../schemas/schemas"; /** * @public @@ -139,17 +135,12 @@ export class ListBucketMetricsConfigurationsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "ListBucketMetricsConfigurations", {}) .n("S3Client", "ListBucketMetricsConfigurationsCommand") - .f(void 0, void 0) - .ser(se_ListBucketMetricsConfigurationsCommand) - .de(de_ListBucketMetricsConfigurationsCommand) + + .sc(ListBucketMetricsConfigurations) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListBucketsCommand.ts b/clients/client-s3/src/commands/ListBucketsCommand.ts index 1d59ef312ec0..c78359cb32c6 100644 --- a/clients/client-s3/src/commands/ListBucketsCommand.ts +++ b/clients/client-s3/src/commands/ListBucketsCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListBucketsOutput, ListBucketsRequest } from "../models/models_0"; -import { de_ListBucketsCommand, se_ListBucketsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { ListBuckets } from "../schemas/schemas"; /** * @public @@ -136,17 +135,12 @@ export class ListBucketsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "ListBuckets", {}) .n("S3Client", "ListBucketsCommand") - .f(void 0, void 0) - .ser(se_ListBucketsCommand) - .de(de_ListBucketsCommand) + + .sc(ListBuckets) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListDirectoryBucketsCommand.ts b/clients/client-s3/src/commands/ListDirectoryBucketsCommand.ts index e4925e8dd081..5d99a2627b1a 100644 --- a/clients/client-s3/src/commands/ListDirectoryBucketsCommand.ts +++ b/clients/client-s3/src/commands/ListDirectoryBucketsCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListDirectoryBucketsOutput, ListDirectoryBucketsRequest } from "../models/models_0"; -import { de_ListDirectoryBucketsCommand, se_ListDirectoryBucketsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { ListDirectoryBuckets } from "../schemas/schemas"; /** * @public @@ -109,17 +108,12 @@ export class ListDirectoryBucketsCommand extends $Command UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "ListDirectoryBuckets", {}) .n("S3Client", "ListDirectoryBucketsCommand") - .f(void 0, void 0) - .ser(se_ListDirectoryBucketsCommand) - .de(de_ListDirectoryBucketsCommand) + + .sc(ListDirectoryBuckets) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts b/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts index 2e457e26e010..665eba0b1c45 100644 --- a/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts +++ b/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListMultipartUploadsOutput, ListMultipartUploadsRequest } from "../models/models_0"; -import { de_ListMultipartUploadsCommand, se_ListMultipartUploadsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { ListMultipartUploads } from "../schemas/schemas"; /** * @public @@ -344,17 +343,12 @@ export class ListMultipartUploadsCommand extends $Command Prefix: { type: "contextParams", name: "Prefix" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "ListMultipartUploads", {}) .n("S3Client", "ListMultipartUploadsCommand") - .f(void 0, void 0) - .ser(se_ListMultipartUploadsCommand) - .de(de_ListMultipartUploadsCommand) + + .sc(ListMultipartUploads) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListObjectVersionsCommand.ts b/clients/client-s3/src/commands/ListObjectVersionsCommand.ts index 06e4b73b0aa5..e55775e805e8 100644 --- a/clients/client-s3/src/commands/ListObjectVersionsCommand.ts +++ b/clients/client-s3/src/commands/ListObjectVersionsCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListObjectVersionsOutput, ListObjectVersionsRequest } from "../models/models_1"; -import { de_ListObjectVersionsCommand, se_ListObjectVersionsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { ListObjectVersions } from "../schemas/schemas"; /** * @public @@ -220,17 +219,12 @@ export class ListObjectVersionsCommand extends $Command Prefix: { type: "contextParams", name: "Prefix" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "ListObjectVersions", {}) .n("S3Client", "ListObjectVersionsCommand") - .f(void 0, void 0) - .ser(se_ListObjectVersionsCommand) - .de(de_ListObjectVersionsCommand) + + .sc(ListObjectVersions) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListObjectsCommand.ts b/clients/client-s3/src/commands/ListObjectsCommand.ts index a5383feaaf81..45a07318087b 100644 --- a/clients/client-s3/src/commands/ListObjectsCommand.ts +++ b/clients/client-s3/src/commands/ListObjectsCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListObjectsOutput, ListObjectsRequest } from "../models/models_1"; -import { de_ListObjectsCommand, se_ListObjectsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { ListObjects } from "../schemas/schemas"; /** * @public @@ -206,17 +205,12 @@ export class ListObjectsCommand extends $Command Prefix: { type: "contextParams", name: "Prefix" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "ListObjects", {}) .n("S3Client", "ListObjectsCommand") - .f(void 0, void 0) - .ser(se_ListObjectsCommand) - .de(de_ListObjectsCommand) + + .sc(ListObjects) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListObjectsV2Command.ts b/clients/client-s3/src/commands/ListObjectsV2Command.ts index f5e10dfced4b..cb22ca36fad7 100644 --- a/clients/client-s3/src/commands/ListObjectsV2Command.ts +++ b/clients/client-s3/src/commands/ListObjectsV2Command.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListObjectsV2Output, ListObjectsV2Request } from "../models/models_1"; -import { de_ListObjectsV2Command, se_ListObjectsV2Command } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { ListObjectsV2 } from "../schemas/schemas"; /** * @public @@ -260,17 +259,12 @@ export class ListObjectsV2Command extends $Command Prefix: { type: "contextParams", name: "Prefix" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "ListObjectsV2", {}) .n("S3Client", "ListObjectsV2Command") - .f(void 0, void 0) - .ser(se_ListObjectsV2Command) - .de(de_ListObjectsV2Command) + + .sc(ListObjectsV2) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListPartsCommand.ts b/clients/client-s3/src/commands/ListPartsCommand.ts index f6c90c628210..7574d3312b7e 100644 --- a/clients/client-s3/src/commands/ListPartsCommand.ts +++ b/clients/client-s3/src/commands/ListPartsCommand.ts @@ -2,14 +2,13 @@ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { ListPartsOutput, ListPartsRequest, ListPartsRequestFilterSensitiveLog } from "../models/models_1"; -import { de_ListPartsCommand, se_ListPartsCommand } from "../protocols/Aws_restXml"; +import { ListPartsOutput, ListPartsRequest } from "../models/models_1"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { ListParts } from "../schemas/schemas"; /** * @public @@ -247,7 +246,6 @@ export class ListPartsCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -255,9 +253,8 @@ export class ListPartsCommand extends $Command }) .s("AmazonS3", "ListParts", {}) .n("S3Client", "ListPartsCommand") - .f(ListPartsRequestFilterSensitiveLog, void 0) - .ser(se_ListPartsCommand) - .de(de_ListPartsCommand) + + .sc(ListParts) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketAccelerateConfigurationCommand.ts b/clients/client-s3/src/commands/PutBucketAccelerateConfigurationCommand.ts index e9802aaa6f7f..ed6f495240da 100644 --- a/clients/client-s3/src/commands/PutBucketAccelerateConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketAccelerateConfigurationCommand.ts @@ -1,17 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketAccelerateConfigurationRequest } from "../models/models_1"; -import { - de_PutBucketAccelerateConfigurationCommand, - se_PutBucketAccelerateConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketAccelerateConfiguration } from "../schemas/schemas"; /** * @public @@ -117,7 +113,6 @@ export class PutBucketAccelerateConfigurationCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -127,9 +122,8 @@ export class PutBucketAccelerateConfigurationCommand extends $Command }) .s("AmazonS3", "PutBucketAccelerateConfiguration", {}) .n("S3Client", "PutBucketAccelerateConfigurationCommand") - .f(void 0, void 0) - .ser(se_PutBucketAccelerateConfigurationCommand) - .de(de_PutBucketAccelerateConfigurationCommand) + + .sc(PutBucketAccelerateConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketAclCommand.ts b/clients/client-s3/src/commands/PutBucketAclCommand.ts index 4bed48abee7b..b9f6873b3235 100644 --- a/clients/client-s3/src/commands/PutBucketAclCommand.ts +++ b/clients/client-s3/src/commands/PutBucketAclCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketAclRequest } from "../models/models_1"; -import { de_PutBucketAclCommand, se_PutBucketAclCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketAcl } from "../schemas/schemas"; /** * @public @@ -314,7 +313,6 @@ export class PutBucketAclCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -324,9 +322,8 @@ export class PutBucketAclCommand extends $Command }) .s("AmazonS3", "PutBucketAcl", {}) .n("S3Client", "PutBucketAclCommand") - .f(void 0, void 0) - .ser(se_PutBucketAclCommand) - .de(de_PutBucketAclCommand) + + .sc(PutBucketAcl) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketAnalyticsConfigurationCommand.ts b/clients/client-s3/src/commands/PutBucketAnalyticsConfigurationCommand.ts index 9c41a3f5a62a..fc35d7fd0f9e 100644 --- a/clients/client-s3/src/commands/PutBucketAnalyticsConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketAnalyticsConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketAnalyticsConfigurationRequest } from "../models/models_1"; -import { - de_PutBucketAnalyticsConfigurationCommand, - se_PutBucketAnalyticsConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketAnalyticsConfiguration } from "../schemas/schemas"; /** * @public @@ -210,16 +206,12 @@ export class PutBucketAnalyticsConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "PutBucketAnalyticsConfiguration", {}) .n("S3Client", "PutBucketAnalyticsConfigurationCommand") - .f(void 0, void 0) - .ser(se_PutBucketAnalyticsConfigurationCommand) - .de(de_PutBucketAnalyticsConfigurationCommand) + + .sc(PutBucketAnalyticsConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketCorsCommand.ts b/clients/client-s3/src/commands/PutBucketCorsCommand.ts index 226aa528b9ae..7bde2e5e8d09 100644 --- a/clients/client-s3/src/commands/PutBucketCorsCommand.ts +++ b/clients/client-s3/src/commands/PutBucketCorsCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketCorsRequest } from "../models/models_1"; -import { de_PutBucketCorsCommand, se_PutBucketCorsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketCors } from "../schemas/schemas"; /** * @public @@ -194,7 +193,6 @@ export class PutBucketCorsCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -204,9 +202,8 @@ export class PutBucketCorsCommand extends $Command }) .s("AmazonS3", "PutBucketCors", {}) .n("S3Client", "PutBucketCorsCommand") - .f(void 0, void 0) - .ser(se_PutBucketCorsCommand) - .de(de_PutBucketCorsCommand) + + .sc(PutBucketCors) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketEncryptionCommand.ts b/clients/client-s3/src/commands/PutBucketEncryptionCommand.ts index 08608eac352a..32d6610770e1 100644 --- a/clients/client-s3/src/commands/PutBucketEncryptionCommand.ts +++ b/clients/client-s3/src/commands/PutBucketEncryptionCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { PutBucketEncryptionRequest, PutBucketEncryptionRequestFilterSensitiveLog } from "../models/models_1"; -import { de_PutBucketEncryptionCommand, se_PutBucketEncryptionCommand } from "../protocols/Aws_restXml"; +import { PutBucketEncryptionRequest } from "../models/models_1"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketEncryption } from "../schemas/schemas"; /** * @public @@ -204,7 +203,6 @@ export class PutBucketEncryptionCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -214,9 +212,8 @@ export class PutBucketEncryptionCommand extends $Command }) .s("AmazonS3", "PutBucketEncryption", {}) .n("S3Client", "PutBucketEncryptionCommand") - .f(PutBucketEncryptionRequestFilterSensitiveLog, void 0) - .ser(se_PutBucketEncryptionCommand) - .de(de_PutBucketEncryptionCommand) + + .sc(PutBucketEncryption) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketIntelligentTieringConfigurationCommand.ts b/clients/client-s3/src/commands/PutBucketIntelligentTieringConfigurationCommand.ts index 426ee24d8542..ff4f2f0176c4 100644 --- a/clients/client-s3/src/commands/PutBucketIntelligentTieringConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketIntelligentTieringConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketIntelligentTieringConfigurationRequest } from "../models/models_1"; -import { - de_PutBucketIntelligentTieringConfigurationCommand, - se_PutBucketIntelligentTieringConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketIntelligentTieringConfiguration } from "../schemas/schemas"; /** * @public @@ -158,16 +154,12 @@ export class PutBucketIntelligentTieringConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "PutBucketIntelligentTieringConfiguration", {}) .n("S3Client", "PutBucketIntelligentTieringConfigurationCommand") - .f(void 0, void 0) - .ser(se_PutBucketIntelligentTieringConfigurationCommand) - .de(de_PutBucketIntelligentTieringConfigurationCommand) + + .sc(PutBucketIntelligentTieringConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketInventoryConfigurationCommand.ts b/clients/client-s3/src/commands/PutBucketInventoryConfigurationCommand.ts index 5f10efdaadf5..176eeeb45943 100644 --- a/clients/client-s3/src/commands/PutBucketInventoryConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketInventoryConfigurationCommand.ts @@ -1,19 +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 { commonParams } from "../endpoint/EndpointParameters"; -import { - PutBucketInventoryConfigurationRequest, - PutBucketInventoryConfigurationRequestFilterSensitiveLog, -} from "../models/models_1"; -import { - de_PutBucketInventoryConfigurationCommand, - se_PutBucketInventoryConfigurationCommand, -} from "../protocols/Aws_restXml"; +import { PutBucketInventoryConfigurationRequest } from "../models/models_1"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketInventoryConfiguration } from "../schemas/schemas"; /** * @public @@ -188,16 +181,12 @@ export class PutBucketInventoryConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "PutBucketInventoryConfiguration", {}) .n("S3Client", "PutBucketInventoryConfigurationCommand") - .f(PutBucketInventoryConfigurationRequestFilterSensitiveLog, void 0) - .ser(se_PutBucketInventoryConfigurationCommand) - .de(de_PutBucketInventoryConfigurationCommand) + + .sc(PutBucketInventoryConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketLifecycleConfigurationCommand.ts b/clients/client-s3/src/commands/PutBucketLifecycleConfigurationCommand.ts index 2fc13c9bf475..452093384259 100644 --- a/clients/client-s3/src/commands/PutBucketLifecycleConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketLifecycleConfigurationCommand.ts @@ -2,17 +2,13 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketLifecycleConfigurationOutput, PutBucketLifecycleConfigurationRequest } from "../models/models_1"; -import { - de_PutBucketLifecycleConfigurationCommand, - se_PutBucketLifecycleConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketLifecycleConfiguration } from "../schemas/schemas"; /** * @public @@ -295,7 +291,6 @@ export class PutBucketLifecycleConfigurationCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -306,9 +301,8 @@ export class PutBucketLifecycleConfigurationCommand extends $Command }) .s("AmazonS3", "PutBucketLifecycleConfiguration", {}) .n("S3Client", "PutBucketLifecycleConfigurationCommand") - .f(void 0, void 0) - .ser(se_PutBucketLifecycleConfigurationCommand) - .de(de_PutBucketLifecycleConfigurationCommand) + + .sc(PutBucketLifecycleConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketLoggingCommand.ts b/clients/client-s3/src/commands/PutBucketLoggingCommand.ts index 6fb645dad164..635664a737a7 100644 --- a/clients/client-s3/src/commands/PutBucketLoggingCommand.ts +++ b/clients/client-s3/src/commands/PutBucketLoggingCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketLoggingRequest } from "../models/models_1"; -import { de_PutBucketLoggingCommand, se_PutBucketLoggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketLogging } from "../schemas/schemas"; /** * @public @@ -218,7 +217,6 @@ export class PutBucketLoggingCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -228,9 +226,8 @@ export class PutBucketLoggingCommand extends $Command }) .s("AmazonS3", "PutBucketLogging", {}) .n("S3Client", "PutBucketLoggingCommand") - .f(void 0, void 0) - .ser(se_PutBucketLoggingCommand) - .de(de_PutBucketLoggingCommand) + + .sc(PutBucketLogging) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketMetricsConfigurationCommand.ts b/clients/client-s3/src/commands/PutBucketMetricsConfigurationCommand.ts index 2b8b09ed550a..5ea51519eb56 100644 --- a/clients/client-s3/src/commands/PutBucketMetricsConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketMetricsConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketMetricsConfigurationRequest } from "../models/models_1"; -import { - de_PutBucketMetricsConfigurationCommand, - se_PutBucketMetricsConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketMetricsConfiguration } from "../schemas/schemas"; /** * @public @@ -143,16 +139,12 @@ export class PutBucketMetricsConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "PutBucketMetricsConfiguration", {}) .n("S3Client", "PutBucketMetricsConfigurationCommand") - .f(void 0, void 0) - .ser(se_PutBucketMetricsConfigurationCommand) - .de(de_PutBucketMetricsConfigurationCommand) + + .sc(PutBucketMetricsConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketNotificationConfigurationCommand.ts b/clients/client-s3/src/commands/PutBucketNotificationConfigurationCommand.ts index 3cb12689c088..1f96334b6097 100644 --- a/clients/client-s3/src/commands/PutBucketNotificationConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketNotificationConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketNotificationConfigurationRequest } from "../models/models_1"; -import { - de_PutBucketNotificationConfigurationCommand, - se_PutBucketNotificationConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketNotificationConfiguration } from "../schemas/schemas"; /** * @public @@ -206,16 +202,12 @@ export class PutBucketNotificationConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "PutBucketNotificationConfiguration", {}) .n("S3Client", "PutBucketNotificationConfigurationCommand") - .f(void 0, void 0) - .ser(se_PutBucketNotificationConfigurationCommand) - .de(de_PutBucketNotificationConfigurationCommand) + + .sc(PutBucketNotificationConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketOwnershipControlsCommand.ts b/clients/client-s3/src/commands/PutBucketOwnershipControlsCommand.ts index 923f606755bc..8a5cf3220ce2 100644 --- a/clients/client-s3/src/commands/PutBucketOwnershipControlsCommand.ts +++ b/clients/client-s3/src/commands/PutBucketOwnershipControlsCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketOwnershipControlsRequest } from "../models/models_1"; -import { de_PutBucketOwnershipControlsCommand, se_PutBucketOwnershipControlsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketOwnershipControls } from "../schemas/schemas"; /** * @public @@ -101,7 +100,6 @@ export class PutBucketOwnershipControlsCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -111,9 +109,8 @@ export class PutBucketOwnershipControlsCommand extends $Command }) .s("AmazonS3", "PutBucketOwnershipControls", {}) .n("S3Client", "PutBucketOwnershipControlsCommand") - .f(void 0, void 0) - .ser(se_PutBucketOwnershipControlsCommand) - .de(de_PutBucketOwnershipControlsCommand) + + .sc(PutBucketOwnershipControls) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketPolicyCommand.ts b/clients/client-s3/src/commands/PutBucketPolicyCommand.ts index cedad7f47123..a4d44546f926 100644 --- a/clients/client-s3/src/commands/PutBucketPolicyCommand.ts +++ b/clients/client-s3/src/commands/PutBucketPolicyCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketPolicyRequest } from "../models/models_1"; -import { de_PutBucketPolicyCommand, se_PutBucketPolicyCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketPolicy } from "../schemas/schemas"; /** * @public @@ -162,7 +161,6 @@ export class PutBucketPolicyCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -172,9 +170,8 @@ export class PutBucketPolicyCommand extends $Command }) .s("AmazonS3", "PutBucketPolicy", {}) .n("S3Client", "PutBucketPolicyCommand") - .f(void 0, void 0) - .ser(se_PutBucketPolicyCommand) - .de(de_PutBucketPolicyCommand) + + .sc(PutBucketPolicy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketReplicationCommand.ts b/clients/client-s3/src/commands/PutBucketReplicationCommand.ts index 1ec46f96efd0..22dc6bff46e3 100644 --- a/clients/client-s3/src/commands/PutBucketReplicationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketReplicationCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketReplicationRequest } from "../models/models_1"; -import { de_PutBucketReplicationCommand, se_PutBucketReplicationCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketReplication } from "../schemas/schemas"; /** * @public @@ -231,7 +230,6 @@ export class PutBucketReplicationCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -241,9 +239,8 @@ export class PutBucketReplicationCommand extends $Command }) .s("AmazonS3", "PutBucketReplication", {}) .n("S3Client", "PutBucketReplicationCommand") - .f(void 0, void 0) - .ser(se_PutBucketReplicationCommand) - .de(de_PutBucketReplicationCommand) + + .sc(PutBucketReplication) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketRequestPaymentCommand.ts b/clients/client-s3/src/commands/PutBucketRequestPaymentCommand.ts index 64a856100385..b34cf22accf8 100644 --- a/clients/client-s3/src/commands/PutBucketRequestPaymentCommand.ts +++ b/clients/client-s3/src/commands/PutBucketRequestPaymentCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketRequestPaymentRequest } from "../models/models_1"; -import { de_PutBucketRequestPaymentCommand, se_PutBucketRequestPaymentCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketRequestPayment } from "../schemas/schemas"; /** * @public @@ -113,7 +112,6 @@ export class PutBucketRequestPaymentCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -123,9 +121,8 @@ export class PutBucketRequestPaymentCommand extends $Command }) .s("AmazonS3", "PutBucketRequestPayment", {}) .n("S3Client", "PutBucketRequestPaymentCommand") - .f(void 0, void 0) - .ser(se_PutBucketRequestPaymentCommand) - .de(de_PutBucketRequestPaymentCommand) + + .sc(PutBucketRequestPayment) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketTaggingCommand.ts b/clients/client-s3/src/commands/PutBucketTaggingCommand.ts index e2ec72dfa8cb..27891643eedd 100644 --- a/clients/client-s3/src/commands/PutBucketTaggingCommand.ts +++ b/clients/client-s3/src/commands/PutBucketTaggingCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketTaggingRequest } from "../models/models_1"; -import { de_PutBucketTaggingCommand, se_PutBucketTaggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketTagging } from "../schemas/schemas"; /** * @public @@ -162,7 +161,6 @@ export class PutBucketTaggingCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -172,9 +170,8 @@ export class PutBucketTaggingCommand extends $Command }) .s("AmazonS3", "PutBucketTagging", {}) .n("S3Client", "PutBucketTaggingCommand") - .f(void 0, void 0) - .ser(se_PutBucketTaggingCommand) - .de(de_PutBucketTaggingCommand) + + .sc(PutBucketTagging) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketVersioningCommand.ts b/clients/client-s3/src/commands/PutBucketVersioningCommand.ts index 0f5cd31ba488..f854624d8369 100644 --- a/clients/client-s3/src/commands/PutBucketVersioningCommand.ts +++ b/clients/client-s3/src/commands/PutBucketVersioningCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketVersioningRequest } from "../models/models_1"; -import { de_PutBucketVersioningCommand, se_PutBucketVersioningCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketVersioning } from "../schemas/schemas"; /** * @public @@ -145,7 +144,6 @@ export class PutBucketVersioningCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -155,9 +153,8 @@ export class PutBucketVersioningCommand extends $Command }) .s("AmazonS3", "PutBucketVersioning", {}) .n("S3Client", "PutBucketVersioningCommand") - .f(void 0, void 0) - .ser(se_PutBucketVersioningCommand) - .de(de_PutBucketVersioningCommand) + + .sc(PutBucketVersioning) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketWebsiteCommand.ts b/clients/client-s3/src/commands/PutBucketWebsiteCommand.ts index 5881fbc3b058..8b5a05ec4155 100644 --- a/clients/client-s3/src/commands/PutBucketWebsiteCommand.ts +++ b/clients/client-s3/src/commands/PutBucketWebsiteCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketWebsiteRequest } from "../models/models_1"; -import { de_PutBucketWebsiteCommand, se_PutBucketWebsiteCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutBucketWebsite } from "../schemas/schemas"; /** * @public @@ -250,7 +249,6 @@ export class PutBucketWebsiteCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -260,9 +258,8 @@ export class PutBucketWebsiteCommand extends $Command }) .s("AmazonS3", "PutBucketWebsite", {}) .n("S3Client", "PutBucketWebsiteCommand") - .f(void 0, void 0) - .ser(se_PutBucketWebsiteCommand) - .de(de_PutBucketWebsiteCommand) + + .sc(PutBucketWebsite) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutObjectAclCommand.ts b/clients/client-s3/src/commands/PutObjectAclCommand.ts index b6644c212734..a8d7a9b39e2a 100644 --- a/clients/client-s3/src/commands/PutObjectAclCommand.ts +++ b/clients/client-s3/src/commands/PutObjectAclCommand.ts @@ -2,14 +2,13 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutObjectAclOutput, PutObjectAclRequest } from "../models/models_1"; -import { de_PutObjectAclCommand, se_PutObjectAclCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutObjectAcl } from "../schemas/schemas"; /** * @public @@ -308,7 +307,6 @@ export class PutObjectAclCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -319,9 +317,8 @@ export class PutObjectAclCommand extends $Command }) .s("AmazonS3", "PutObjectAcl", {}) .n("S3Client", "PutObjectAclCommand") - .f(void 0, void 0) - .ser(se_PutObjectAclCommand) - .de(de_PutObjectAclCommand) + + .sc(PutObjectAcl) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutObjectCommand.ts b/clients/client-s3/src/commands/PutObjectCommand.ts index ddc45964786d..da587097d4de 100644 --- a/clients/client-s3/src/commands/PutObjectCommand.ts +++ b/clients/client-s3/src/commands/PutObjectCommand.ts @@ -3,19 +3,13 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksu import { getCheckContentLengthHeaderPlugin, getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer, StreamingBlobPayloadInputTypes } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { - PutObjectOutput, - PutObjectOutputFilterSensitiveLog, - PutObjectRequest, - PutObjectRequestFilterSensitiveLog, -} from "../models/models_1"; -import { de_PutObjectCommand, se_PutObjectCommand } from "../protocols/Aws_restXml"; +import { PutObjectOutput, PutObjectRequest } from "../models/models_1"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutObject } from "../schemas/schemas"; /** * @public @@ -465,7 +459,6 @@ export class PutObjectCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -478,9 +471,8 @@ export class PutObjectCommand extends $Command }) .s("AmazonS3", "PutObject", {}) .n("S3Client", "PutObjectCommand") - .f(PutObjectRequestFilterSensitiveLog, PutObjectOutputFilterSensitiveLog) - .ser(se_PutObjectCommand) - .de(de_PutObjectCommand) + + .sc(PutObject) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutObjectLegalHoldCommand.ts b/clients/client-s3/src/commands/PutObjectLegalHoldCommand.ts index 42c0abc52a2a..e760706caea2 100644 --- a/clients/client-s3/src/commands/PutObjectLegalHoldCommand.ts +++ b/clients/client-s3/src/commands/PutObjectLegalHoldCommand.ts @@ -2,14 +2,13 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutObjectLegalHoldOutput, PutObjectLegalHoldRequest } from "../models/models_1"; -import { de_PutObjectLegalHoldCommand, se_PutObjectLegalHoldCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutObjectLegalHold } from "../schemas/schemas"; /** * @public @@ -87,7 +86,6 @@ export class PutObjectLegalHoldCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -98,9 +96,8 @@ export class PutObjectLegalHoldCommand extends $Command }) .s("AmazonS3", "PutObjectLegalHold", {}) .n("S3Client", "PutObjectLegalHoldCommand") - .f(void 0, void 0) - .ser(se_PutObjectLegalHoldCommand) - .de(de_PutObjectLegalHoldCommand) + + .sc(PutObjectLegalHold) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutObjectLockConfigurationCommand.ts b/clients/client-s3/src/commands/PutObjectLockConfigurationCommand.ts index 117c6ba82c84..238d297c8ab8 100644 --- a/clients/client-s3/src/commands/PutObjectLockConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutObjectLockConfigurationCommand.ts @@ -2,14 +2,13 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutObjectLockConfigurationOutput, PutObjectLockConfigurationRequest } from "../models/models_1"; -import { de_PutObjectLockConfigurationCommand, se_PutObjectLockConfigurationCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutObjectLockConfiguration } from "../schemas/schemas"; /** * @public @@ -111,7 +110,6 @@ export class PutObjectLockConfigurationCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -122,9 +120,8 @@ export class PutObjectLockConfigurationCommand extends $Command }) .s("AmazonS3", "PutObjectLockConfiguration", {}) .n("S3Client", "PutObjectLockConfigurationCommand") - .f(void 0, void 0) - .ser(se_PutObjectLockConfigurationCommand) - .de(de_PutObjectLockConfigurationCommand) + + .sc(PutObjectLockConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutObjectRetentionCommand.ts b/clients/client-s3/src/commands/PutObjectRetentionCommand.ts index 4a22684eefd9..38b187c643f1 100644 --- a/clients/client-s3/src/commands/PutObjectRetentionCommand.ts +++ b/clients/client-s3/src/commands/PutObjectRetentionCommand.ts @@ -2,14 +2,13 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutObjectRetentionOutput, PutObjectRetentionRequest } from "../models/models_1"; -import { de_PutObjectRetentionCommand, se_PutObjectRetentionCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutObjectRetention } from "../schemas/schemas"; /** * @public @@ -92,7 +91,6 @@ export class PutObjectRetentionCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -103,9 +101,8 @@ export class PutObjectRetentionCommand extends $Command }) .s("AmazonS3", "PutObjectRetention", {}) .n("S3Client", "PutObjectRetentionCommand") - .f(void 0, void 0) - .ser(se_PutObjectRetentionCommand) - .de(de_PutObjectRetentionCommand) + + .sc(PutObjectRetention) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutObjectTaggingCommand.ts b/clients/client-s3/src/commands/PutObjectTaggingCommand.ts index fa12aa7c747b..be9ee48a10ae 100644 --- a/clients/client-s3/src/commands/PutObjectTaggingCommand.ts +++ b/clients/client-s3/src/commands/PutObjectTaggingCommand.ts @@ -2,14 +2,13 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutObjectTaggingOutput, PutObjectTaggingRequest } from "../models/models_1"; -import { de_PutObjectTaggingCommand, se_PutObjectTaggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutObjectTagging } from "../schemas/schemas"; /** * @public @@ -165,7 +164,6 @@ export class PutObjectTaggingCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -176,9 +174,8 @@ export class PutObjectTaggingCommand extends $Command }) .s("AmazonS3", "PutObjectTagging", {}) .n("S3Client", "PutObjectTaggingCommand") - .f(void 0, void 0) - .ser(se_PutObjectTaggingCommand) - .de(de_PutObjectTaggingCommand) + + .sc(PutObjectTagging) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutPublicAccessBlockCommand.ts b/clients/client-s3/src/commands/PutPublicAccessBlockCommand.ts index 48737d4a51b7..83df90368e51 100644 --- a/clients/client-s3/src/commands/PutPublicAccessBlockCommand.ts +++ b/clients/client-s3/src/commands/PutPublicAccessBlockCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutPublicAccessBlockRequest } from "../models/models_1"; -import { de_PutPublicAccessBlockCommand, se_PutPublicAccessBlockCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { PutPublicAccessBlock } from "../schemas/schemas"; /** * @public @@ -118,7 +117,6 @@ export class PutPublicAccessBlockCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -128,9 +126,8 @@ export class PutPublicAccessBlockCommand extends $Command }) .s("AmazonS3", "PutPublicAccessBlock", {}) .n("S3Client", "PutPublicAccessBlockCommand") - .f(void 0, void 0) - .ser(se_PutPublicAccessBlockCommand) - .de(de_PutPublicAccessBlockCommand) + + .sc(PutPublicAccessBlock) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/RenameObjectCommand.ts b/clients/client-s3/src/commands/RenameObjectCommand.ts index cbe286ed489e..8ed451431d86 100644 --- a/clients/client-s3/src/commands/RenameObjectCommand.ts +++ b/clients/client-s3/src/commands/RenameObjectCommand.ts @@ -1,14 +1,13 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { RenameObjectOutput, RenameObjectRequest } from "../models/models_1"; -import { de_RenameObjectCommand, se_RenameObjectCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { RenameObject } from "../schemas/schemas"; /** * @public @@ -139,17 +138,12 @@ export class RenameObjectCommand extends $Command Key: { type: "contextParams", name: "Key" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - getThrow200ExceptionsPlugin(config), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; }) .s("AmazonS3", "RenameObject", {}) .n("S3Client", "RenameObjectCommand") - .f(void 0, void 0) - .ser(se_RenameObjectCommand) - .de(de_RenameObjectCommand) + + .sc(RenameObject) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/RestoreObjectCommand.ts b/clients/client-s3/src/commands/RestoreObjectCommand.ts index 4e43d07ecd4a..3d4f365852ca 100644 --- a/clients/client-s3/src/commands/RestoreObjectCommand.ts +++ b/clients/client-s3/src/commands/RestoreObjectCommand.ts @@ -2,14 +2,13 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { RestoreObjectOutput, RestoreObjectRequest, RestoreObjectRequestFilterSensitiveLog } from "../models/models_1"; -import { de_RestoreObjectCommand, se_RestoreObjectCommand } from "../protocols/Aws_restXml"; +import { RestoreObjectOutput, RestoreObjectRequest } from "../models/models_1"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { RestoreObject } from "../schemas/schemas"; /** * @public @@ -377,7 +376,6 @@ export class RestoreObjectCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -388,9 +386,8 @@ export class RestoreObjectCommand extends $Command }) .s("AmazonS3", "RestoreObject", {}) .n("S3Client", "RestoreObjectCommand") - .f(RestoreObjectRequestFilterSensitiveLog, void 0) - .ser(se_RestoreObjectCommand) - .de(de_RestoreObjectCommand) + + .sc(RestoreObject) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/SelectObjectContentCommand.ts b/clients/client-s3/src/commands/SelectObjectContentCommand.ts index c7642e05cb63..2e78bd9aba8d 100644 --- a/clients/client-s3/src/commands/SelectObjectContentCommand.ts +++ b/clients/client-s3/src/commands/SelectObjectContentCommand.ts @@ -2,19 +2,13 @@ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { - SelectObjectContentOutput, - SelectObjectContentOutputFilterSensitiveLog, - SelectObjectContentRequest, - SelectObjectContentRequestFilterSensitiveLog, -} from "../models/models_1"; -import { de_SelectObjectContentCommand, se_SelectObjectContentCommand } from "../protocols/Aws_restXml"; +import { SelectObjectContentOutput, SelectObjectContentRequest } from "../models/models_1"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { SelectObjectContent } from "../schemas/schemas"; /** * @public @@ -253,7 +247,6 @@ export class SelectObjectContentCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -268,9 +261,8 @@ export class SelectObjectContentCommand extends $Command }, }) .n("S3Client", "SelectObjectContentCommand") - .f(SelectObjectContentRequestFilterSensitiveLog, SelectObjectContentOutputFilterSensitiveLog) - .ser(se_SelectObjectContentCommand) - .de(de_SelectObjectContentCommand) + + .sc(SelectObjectContent) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.ts b/clients/client-s3/src/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.ts index 12aa05d49c86..476c7c7fa934 100644 --- a/clients/client-s3/src/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.ts +++ b/clients/client-s3/src/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.ts @@ -1,17 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { UpdateBucketMetadataInventoryTableConfigurationRequest } from "../models/models_1"; -import { - de_UpdateBucketMetadataInventoryTableConfigurationCommand, - se_UpdateBucketMetadataInventoryTableConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { UpdateBucketMetadataInventoryTableConfiguration } from "../schemas/schemas"; /** * @public @@ -167,7 +163,6 @@ export class UpdateBucketMetadataInventoryTableConfigurationCommand extends $Com }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -177,9 +172,8 @@ export class UpdateBucketMetadataInventoryTableConfigurationCommand extends $Com }) .s("AmazonS3", "UpdateBucketMetadataInventoryTableConfiguration", {}) .n("S3Client", "UpdateBucketMetadataInventoryTableConfigurationCommand") - .f(void 0, void 0) - .ser(se_UpdateBucketMetadataInventoryTableConfigurationCommand) - .de(de_UpdateBucketMetadataInventoryTableConfigurationCommand) + + .sc(UpdateBucketMetadataInventoryTableConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/UpdateBucketMetadataJournalTableConfigurationCommand.ts b/clients/client-s3/src/commands/UpdateBucketMetadataJournalTableConfigurationCommand.ts index c39a2affc42f..d74f43afaea6 100644 --- a/clients/client-s3/src/commands/UpdateBucketMetadataJournalTableConfigurationCommand.ts +++ b/clients/client-s3/src/commands/UpdateBucketMetadataJournalTableConfigurationCommand.ts @@ -1,17 +1,13 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { UpdateBucketMetadataJournalTableConfigurationRequest } from "../models/models_1"; -import { - de_UpdateBucketMetadataJournalTableConfigurationCommand, - se_UpdateBucketMetadataJournalTableConfigurationCommand, -} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { UpdateBucketMetadataJournalTableConfiguration } from "../schemas/schemas"; /** * @public @@ -119,7 +115,6 @@ export class UpdateBucketMetadataJournalTableConfigurationCommand extends $Comma }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -129,9 +124,8 @@ export class UpdateBucketMetadataJournalTableConfigurationCommand extends $Comma }) .s("AmazonS3", "UpdateBucketMetadataJournalTableConfiguration", {}) .n("S3Client", "UpdateBucketMetadataJournalTableConfigurationCommand") - .f(void 0, void 0) - .ser(se_UpdateBucketMetadataJournalTableConfigurationCommand) - .de(de_UpdateBucketMetadataJournalTableConfigurationCommand) + + .sc(UpdateBucketMetadataJournalTableConfiguration) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/UploadPartCommand.ts b/clients/client-s3/src/commands/UploadPartCommand.ts index e28587467512..17ed9d9c9a7c 100644 --- a/clients/client-s3/src/commands/UploadPartCommand.ts +++ b/clients/client-s3/src/commands/UploadPartCommand.ts @@ -3,19 +3,13 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksu import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer, StreamingBlobPayloadInputTypes } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { - UploadPartOutput, - UploadPartOutputFilterSensitiveLog, - UploadPartRequest, - UploadPartRequestFilterSensitiveLog, -} from "../models/models_1"; -import { de_UploadPartCommand, se_UploadPartCommand } from "../protocols/Aws_restXml"; +import { UploadPartOutput, UploadPartRequest } from "../models/models_1"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { UploadPart } from "../schemas/schemas"; /** * @public @@ -310,7 +304,6 @@ export class UploadPartCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -322,9 +315,8 @@ export class UploadPartCommand extends $Command }) .s("AmazonS3", "UploadPart", {}) .n("S3Client", "UploadPartCommand") - .f(UploadPartRequestFilterSensitiveLog, UploadPartOutputFilterSensitiveLog) - .ser(se_UploadPartCommand) - .de(de_UploadPartCommand) + + .sc(UploadPart) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/UploadPartCopyCommand.ts b/clients/client-s3/src/commands/UploadPartCopyCommand.ts index 736b69d1162a..0a2f9745eeaa 100644 --- a/clients/client-s3/src/commands/UploadPartCopyCommand.ts +++ b/clients/client-s3/src/commands/UploadPartCopyCommand.ts @@ -2,19 +2,13 @@ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { - UploadPartCopyOutput, - UploadPartCopyOutputFilterSensitiveLog, - UploadPartCopyRequest, - UploadPartCopyRequestFilterSensitiveLog, -} from "../models/models_1"; -import { de_UploadPartCopyCommand, se_UploadPartCopyCommand } from "../protocols/Aws_restXml"; +import { UploadPartCopyOutput, UploadPartCopyRequest } from "../models/models_1"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { UploadPartCopy } from "../schemas/schemas"; /** * @public @@ -367,7 +361,6 @@ export class UploadPartCopyCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ - getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -375,9 +368,8 @@ export class UploadPartCopyCommand extends $Command }) .s("AmazonS3", "UploadPartCopy", {}) .n("S3Client", "UploadPartCopyCommand") - .f(UploadPartCopyRequestFilterSensitiveLog, UploadPartCopyOutputFilterSensitiveLog) - .ser(se_UploadPartCopyCommand) - .de(de_UploadPartCopyCommand) + + .sc(UploadPartCopy) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/WriteGetObjectResponseCommand.ts b/clients/client-s3/src/commands/WriteGetObjectResponseCommand.ts index 40dc90752681..3943efacc6fb 100644 --- a/clients/client-s3/src/commands/WriteGetObjectResponseCommand.ts +++ b/clients/client-s3/src/commands/WriteGetObjectResponseCommand.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, StreamingBlobPayloadInputTypes } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { WriteGetObjectResponseRequest, WriteGetObjectResponseRequestFilterSensitiveLog } from "../models/models_1"; -import { de_WriteGetObjectResponseCommand, se_WriteGetObjectResponseCommand } from "../protocols/Aws_restXml"; +import { WriteGetObjectResponseRequest } from "../models/models_1"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; +import { WriteGetObjectResponse } from "../schemas/schemas"; /** * @public @@ -146,16 +145,12 @@ export class WriteGetObjectResponseCommand extends $Command UseObjectLambdaEndpoint: { type: "staticContextParams", value: true }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [ - getSerdePlugin(config, this.serialize, this.deserialize), - getEndpointPlugin(config, Command.getEndpointParameterInstructions()), - ]; + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "WriteGetObjectResponse", {}) .n("S3Client", "WriteGetObjectResponseCommand") - .f(WriteGetObjectResponseRequestFilterSensitiveLog, void 0) - .ser(se_WriteGetObjectResponseCommand) - .de(de_WriteGetObjectResponseCommand) + + .sc(WriteGetObjectResponse) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/models/models_0.ts b/clients/client-s3/src/models/models_0.ts index 9afc80d3114c..1665abdcd129 100644 --- a/clients/client-s3/src/models/models_0.ts +++ b/clients/client-s3/src/models/models_0.ts @@ -1,6 +1,5 @@ // smithy-typescript generated code -import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; - +import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { StreamingBlobTypes } from "@smithy/types"; import { S3ServiceException as __BaseException } from "./S3ServiceException"; @@ -13595,241 +13594,3 @@ export interface RestoreStatus { */ RestoreExpiryDate?: Date | undefined; } - -/** - * @internal - */ -export const CompleteMultipartUploadOutputFilterSensitiveLog = (obj: CompleteMultipartUploadOutput): any => ({ - ...obj, - ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const CompleteMultipartUploadRequestFilterSensitiveLog = (obj: CompleteMultipartUploadRequest): any => ({ - ...obj, - ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const CopyObjectOutputFilterSensitiveLog = (obj: CopyObjectOutput): any => ({ - ...obj, - ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), - ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const CopyObjectRequestFilterSensitiveLog = (obj: CopyObjectRequest): any => ({ - ...obj, - ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), - ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), - ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), - ...(obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const CreateMultipartUploadOutputFilterSensitiveLog = (obj: CreateMultipartUploadOutput): any => ({ - ...obj, - ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), - ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const CreateMultipartUploadRequestFilterSensitiveLog = (obj: CreateMultipartUploadRequest): any => ({ - ...obj, - ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), - ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), - ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const SessionCredentialsFilterSensitiveLog = (obj: SessionCredentials): any => ({ - ...obj, - ...(obj.SecretAccessKey && { SecretAccessKey: SENSITIVE_STRING }), - ...(obj.SessionToken && { SessionToken: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const CreateSessionOutputFilterSensitiveLog = (obj: CreateSessionOutput): any => ({ - ...obj, - ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), - ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), - ...(obj.Credentials && { Credentials: SessionCredentialsFilterSensitiveLog(obj.Credentials) }), -}); - -/** - * @internal - */ -export const CreateSessionRequestFilterSensitiveLog = (obj: CreateSessionRequest): any => ({ - ...obj, - ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), - ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const ServerSideEncryptionByDefaultFilterSensitiveLog = (obj: ServerSideEncryptionByDefault): any => ({ - ...obj, - ...(obj.KMSMasterKeyID && { KMSMasterKeyID: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const ServerSideEncryptionRuleFilterSensitiveLog = (obj: ServerSideEncryptionRule): any => ({ - ...obj, - ...(obj.ApplyServerSideEncryptionByDefault && { - ApplyServerSideEncryptionByDefault: ServerSideEncryptionByDefaultFilterSensitiveLog( - obj.ApplyServerSideEncryptionByDefault - ), - }), -}); - -/** - * @internal - */ -export const ServerSideEncryptionConfigurationFilterSensitiveLog = (obj: ServerSideEncryptionConfiguration): any => ({ - ...obj, - ...(obj.Rules && { Rules: obj.Rules.map((item) => ServerSideEncryptionRuleFilterSensitiveLog(item)) }), -}); - -/** - * @internal - */ -export const GetBucketEncryptionOutputFilterSensitiveLog = (obj: GetBucketEncryptionOutput): any => ({ - ...obj, - ...(obj.ServerSideEncryptionConfiguration && { - ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationFilterSensitiveLog( - obj.ServerSideEncryptionConfiguration - ), - }), -}); - -/** - * @internal - */ -export const SSEKMSFilterSensitiveLog = (obj: SSEKMS): any => ({ - ...obj, - ...(obj.KeyId && { KeyId: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const InventoryEncryptionFilterSensitiveLog = (obj: InventoryEncryption): any => ({ - ...obj, - ...(obj.SSEKMS && { SSEKMS: SSEKMSFilterSensitiveLog(obj.SSEKMS) }), -}); - -/** - * @internal - */ -export const InventoryS3BucketDestinationFilterSensitiveLog = (obj: InventoryS3BucketDestination): any => ({ - ...obj, - ...(obj.Encryption && { Encryption: InventoryEncryptionFilterSensitiveLog(obj.Encryption) }), -}); - -/** - * @internal - */ -export const InventoryDestinationFilterSensitiveLog = (obj: InventoryDestination): any => ({ - ...obj, - ...(obj.S3BucketDestination && { - S3BucketDestination: InventoryS3BucketDestinationFilterSensitiveLog(obj.S3BucketDestination), - }), -}); - -/** - * @internal - */ -export const InventoryConfigurationFilterSensitiveLog = (obj: InventoryConfiguration): any => ({ - ...obj, - ...(obj.Destination && { Destination: InventoryDestinationFilterSensitiveLog(obj.Destination) }), -}); - -/** - * @internal - */ -export const GetBucketInventoryConfigurationOutputFilterSensitiveLog = ( - obj: GetBucketInventoryConfigurationOutput -): any => ({ - ...obj, - ...(obj.InventoryConfiguration && { - InventoryConfiguration: InventoryConfigurationFilterSensitiveLog(obj.InventoryConfiguration), - }), -}); - -/** - * @internal - */ -export const GetObjectOutputFilterSensitiveLog = (obj: GetObjectOutput): any => ({ - ...obj, - ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const GetObjectRequestFilterSensitiveLog = (obj: GetObjectRequest): any => ({ - ...obj, - ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const GetObjectAttributesRequestFilterSensitiveLog = (obj: GetObjectAttributesRequest): any => ({ - ...obj, - ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const GetObjectTorrentOutputFilterSensitiveLog = (obj: GetObjectTorrentOutput): any => ({ - ...obj, -}); - -/** - * @internal - */ -export const HeadObjectOutputFilterSensitiveLog = (obj: HeadObjectOutput): any => ({ - ...obj, - ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const HeadObjectRequestFilterSensitiveLog = (obj: HeadObjectRequest): any => ({ - ...obj, - ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const ListBucketInventoryConfigurationsOutputFilterSensitiveLog = ( - obj: ListBucketInventoryConfigurationsOutput -): any => ({ - ...obj, - ...(obj.InventoryConfigurationList && { - InventoryConfigurationList: obj.InventoryConfigurationList.map((item) => - InventoryConfigurationFilterSensitiveLog(item) - ), - }), -}); diff --git a/clients/client-s3/src/models/models_1.ts b/clients/client-s3/src/models/models_1.ts index 5fd5b70166c5..6eba99efd242 100644 --- a/clients/client-s3/src/models/models_1.ts +++ b/clients/client-s3/src/models/models_1.ts @@ -1,6 +1,5 @@ // smithy-typescript generated code -import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; - +import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { StreamingBlobTypes } from "@smithy/types"; import { @@ -20,7 +19,6 @@ import { Initiator, IntelligentTieringConfiguration, InventoryConfiguration, - InventoryConfigurationFilterSensitiveLog, InventoryConfigurationState, LifecycleRule, LoggingEnabled, @@ -47,12 +45,10 @@ import { RoutingRule, ServerSideEncryption, ServerSideEncryptionConfiguration, - ServerSideEncryptionConfigurationFilterSensitiveLog, StorageClass, Tag, TransitionDefaultMinimumObjectSize, } from "./models_0"; - import { S3ServiceException as __BaseException } from "./S3ServiceException"; /** @@ -6182,163 +6178,3 @@ export interface WriteGetObjectResponseRequest { */ BucketKeyEnabled?: boolean | undefined; } - -/** - * @internal - */ -export const ListPartsRequestFilterSensitiveLog = (obj: ListPartsRequest): any => ({ - ...obj, - ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const PutBucketEncryptionRequestFilterSensitiveLog = (obj: PutBucketEncryptionRequest): any => ({ - ...obj, - ...(obj.ServerSideEncryptionConfiguration && { - ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationFilterSensitiveLog( - obj.ServerSideEncryptionConfiguration - ), - }), -}); - -/** - * @internal - */ -export const PutBucketInventoryConfigurationRequestFilterSensitiveLog = ( - obj: PutBucketInventoryConfigurationRequest -): any => ({ - ...obj, - ...(obj.InventoryConfiguration && { - InventoryConfiguration: InventoryConfigurationFilterSensitiveLog(obj.InventoryConfiguration), - }), -}); - -/** - * @internal - */ -export const PutObjectOutputFilterSensitiveLog = (obj: PutObjectOutput): any => ({ - ...obj, - ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), - ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const PutObjectRequestFilterSensitiveLog = (obj: PutObjectRequest): any => ({ - ...obj, - ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), - ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), - ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const EncryptionFilterSensitiveLog = (obj: Encryption): any => ({ - ...obj, - ...(obj.KMSKeyId && { KMSKeyId: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const S3LocationFilterSensitiveLog = (obj: S3Location): any => ({ - ...obj, - ...(obj.Encryption && { Encryption: EncryptionFilterSensitiveLog(obj.Encryption) }), -}); - -/** - * @internal - */ -export const OutputLocationFilterSensitiveLog = (obj: OutputLocation): any => ({ - ...obj, - ...(obj.S3 && { S3: S3LocationFilterSensitiveLog(obj.S3) }), -}); - -/** - * @internal - */ -export const RestoreRequestFilterSensitiveLog = (obj: RestoreRequest): any => ({ - ...obj, - ...(obj.OutputLocation && { OutputLocation: OutputLocationFilterSensitiveLog(obj.OutputLocation) }), -}); - -/** - * @internal - */ -export const RestoreObjectRequestFilterSensitiveLog = (obj: RestoreObjectRequest): any => ({ - ...obj, - ...(obj.RestoreRequest && { RestoreRequest: RestoreRequestFilterSensitiveLog(obj.RestoreRequest) }), -}); - -/** - * @internal - */ -export const SelectObjectContentEventStreamFilterSensitiveLog = (obj: SelectObjectContentEventStream): any => { - if (obj.Records !== undefined) return { Records: obj.Records }; - if (obj.Stats !== undefined) return { Stats: obj.Stats }; - if (obj.Progress !== undefined) return { Progress: obj.Progress }; - if (obj.Cont !== undefined) return { Cont: obj.Cont }; - if (obj.End !== undefined) return { End: obj.End }; - if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; -}; - -/** - * @internal - */ -export const SelectObjectContentOutputFilterSensitiveLog = (obj: SelectObjectContentOutput): any => ({ - ...obj, - ...(obj.Payload && { Payload: "STREAMING_CONTENT" }), -}); - -/** - * @internal - */ -export const SelectObjectContentRequestFilterSensitiveLog = (obj: SelectObjectContentRequest): any => ({ - ...obj, - ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const UploadPartOutputFilterSensitiveLog = (obj: UploadPartOutput): any => ({ - ...obj, - ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const UploadPartRequestFilterSensitiveLog = (obj: UploadPartRequest): any => ({ - ...obj, - ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const UploadPartCopyOutputFilterSensitiveLog = (obj: UploadPartCopyOutput): any => ({ - ...obj, - ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const UploadPartCopyRequestFilterSensitiveLog = (obj: UploadPartCopyRequest): any => ({ - ...obj, - ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), - ...(obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: SENSITIVE_STRING }), -}); - -/** - * @internal - */ -export const WriteGetObjectResponseRequestFilterSensitiveLog = (obj: WriteGetObjectResponseRequest): any => ({ - ...obj, - ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), -}); diff --git a/clients/client-s3/src/protocols/Aws_restXml.ts b/clients/client-s3/src/protocols/Aws_restXml.ts deleted file mode 100644 index c947783784e4..000000000000 --- a/clients/client-s3/src/protocols/Aws_restXml.ts +++ /dev/null @@ -1,11295 +0,0 @@ -// smithy-typescript generated code -import { loadRestXmlErrorCode, parseXmlBody as parseBody, parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core"; -import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder"; -import { requestBuilder as rb } from "@smithy/core"; -import { - HttpRequest as __HttpRequest, - HttpResponse as __HttpResponse, - isValidHostname as __isValidHostname, -} from "@smithy/protocol-http"; -import { - collectBody, - dateToUtcString as __dateToUtcString, - decorateServiceException as __decorateServiceException, - expectNonNull as __expectNonNull, - expectObject as __expectObject, - expectString as __expectString, - expectUnion as __expectUnion, - extendedEncodeURIComponent as __extendedEncodeURIComponent, - getArrayIfSingleItem as __getArrayIfSingleItem, - isSerializableHeaderValue, - map, - parseBoolean as __parseBoolean, - parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, - parseRfc7231DateTime as __parseRfc7231DateTime, - quoteHeader as __quoteHeader, - resolvedPath as __resolvedPath, - serializeDateTime as __serializeDateTime, - strictParseInt32 as __strictParseInt32, - strictParseLong as __strictParseLong, - withBaseException, -} from "@smithy/smithy-client"; -import { - Endpoint as __Endpoint, - EventStreamSerdeContext as __EventStreamSerdeContext, - ResponseMetadata as __ResponseMetadata, - SdkStreamSerdeContext as __SdkStreamSerdeContext, - SerdeContext as __SerdeContext, -} from "@smithy/types"; -import { v4 as generateIdempotencyToken } from "uuid"; - -import { - AbortMultipartUploadCommandInput, - AbortMultipartUploadCommandOutput, -} from "../commands/AbortMultipartUploadCommand"; -import { - CompleteMultipartUploadCommandInput, - CompleteMultipartUploadCommandOutput, -} from "../commands/CompleteMultipartUploadCommand"; -import { CopyObjectCommandInput, CopyObjectCommandOutput } from "../commands/CopyObjectCommand"; -import { CreateBucketCommandInput, CreateBucketCommandOutput } from "../commands/CreateBucketCommand"; -import { - CreateBucketMetadataConfigurationCommandInput, - CreateBucketMetadataConfigurationCommandOutput, -} from "../commands/CreateBucketMetadataConfigurationCommand"; -import { - CreateBucketMetadataTableConfigurationCommandInput, - CreateBucketMetadataTableConfigurationCommandOutput, -} from "../commands/CreateBucketMetadataTableConfigurationCommand"; -import { - CreateMultipartUploadCommandInput, - CreateMultipartUploadCommandOutput, -} from "../commands/CreateMultipartUploadCommand"; -import { CreateSessionCommandInput, CreateSessionCommandOutput } from "../commands/CreateSessionCommand"; -import { - DeleteBucketAnalyticsConfigurationCommandInput, - DeleteBucketAnalyticsConfigurationCommandOutput, -} from "../commands/DeleteBucketAnalyticsConfigurationCommand"; -import { DeleteBucketCommandInput, DeleteBucketCommandOutput } from "../commands/DeleteBucketCommand"; -import { DeleteBucketCorsCommandInput, DeleteBucketCorsCommandOutput } from "../commands/DeleteBucketCorsCommand"; -import { - DeleteBucketEncryptionCommandInput, - DeleteBucketEncryptionCommandOutput, -} from "../commands/DeleteBucketEncryptionCommand"; -import { - DeleteBucketIntelligentTieringConfigurationCommandInput, - DeleteBucketIntelligentTieringConfigurationCommandOutput, -} from "../commands/DeleteBucketIntelligentTieringConfigurationCommand"; -import { - DeleteBucketInventoryConfigurationCommandInput, - DeleteBucketInventoryConfigurationCommandOutput, -} from "../commands/DeleteBucketInventoryConfigurationCommand"; -import { - DeleteBucketLifecycleCommandInput, - DeleteBucketLifecycleCommandOutput, -} from "../commands/DeleteBucketLifecycleCommand"; -import { - DeleteBucketMetadataConfigurationCommandInput, - DeleteBucketMetadataConfigurationCommandOutput, -} from "../commands/DeleteBucketMetadataConfigurationCommand"; -import { - DeleteBucketMetadataTableConfigurationCommandInput, - DeleteBucketMetadataTableConfigurationCommandOutput, -} from "../commands/DeleteBucketMetadataTableConfigurationCommand"; -import { - DeleteBucketMetricsConfigurationCommandInput, - DeleteBucketMetricsConfigurationCommandOutput, -} from "../commands/DeleteBucketMetricsConfigurationCommand"; -import { - DeleteBucketOwnershipControlsCommandInput, - DeleteBucketOwnershipControlsCommandOutput, -} from "../commands/DeleteBucketOwnershipControlsCommand"; -import { DeleteBucketPolicyCommandInput, DeleteBucketPolicyCommandOutput } from "../commands/DeleteBucketPolicyCommand"; -import { - DeleteBucketReplicationCommandInput, - DeleteBucketReplicationCommandOutput, -} from "../commands/DeleteBucketReplicationCommand"; -import { - DeleteBucketTaggingCommandInput, - DeleteBucketTaggingCommandOutput, -} from "../commands/DeleteBucketTaggingCommand"; -import { - DeleteBucketWebsiteCommandInput, - DeleteBucketWebsiteCommandOutput, -} from "../commands/DeleteBucketWebsiteCommand"; -import { DeleteObjectCommandInput, DeleteObjectCommandOutput } from "../commands/DeleteObjectCommand"; -import { DeleteObjectsCommandInput, DeleteObjectsCommandOutput } from "../commands/DeleteObjectsCommand"; -import { - DeleteObjectTaggingCommandInput, - DeleteObjectTaggingCommandOutput, -} from "../commands/DeleteObjectTaggingCommand"; -import { - DeletePublicAccessBlockCommandInput, - DeletePublicAccessBlockCommandOutput, -} from "../commands/DeletePublicAccessBlockCommand"; -import { - GetBucketAccelerateConfigurationCommandInput, - GetBucketAccelerateConfigurationCommandOutput, -} from "../commands/GetBucketAccelerateConfigurationCommand"; -import { GetBucketAclCommandInput, GetBucketAclCommandOutput } from "../commands/GetBucketAclCommand"; -import { - GetBucketAnalyticsConfigurationCommandInput, - GetBucketAnalyticsConfigurationCommandOutput, -} from "../commands/GetBucketAnalyticsConfigurationCommand"; -import { GetBucketCorsCommandInput, GetBucketCorsCommandOutput } from "../commands/GetBucketCorsCommand"; -import { - GetBucketEncryptionCommandInput, - GetBucketEncryptionCommandOutput, -} from "../commands/GetBucketEncryptionCommand"; -import { - GetBucketIntelligentTieringConfigurationCommandInput, - GetBucketIntelligentTieringConfigurationCommandOutput, -} from "../commands/GetBucketIntelligentTieringConfigurationCommand"; -import { - GetBucketInventoryConfigurationCommandInput, - GetBucketInventoryConfigurationCommandOutput, -} from "../commands/GetBucketInventoryConfigurationCommand"; -import { - GetBucketLifecycleConfigurationCommandInput, - GetBucketLifecycleConfigurationCommandOutput, -} from "../commands/GetBucketLifecycleConfigurationCommand"; -import { GetBucketLocationCommandInput, GetBucketLocationCommandOutput } from "../commands/GetBucketLocationCommand"; -import { GetBucketLoggingCommandInput, GetBucketLoggingCommandOutput } from "../commands/GetBucketLoggingCommand"; -import { - GetBucketMetadataConfigurationCommandInput, - GetBucketMetadataConfigurationCommandOutput, -} from "../commands/GetBucketMetadataConfigurationCommand"; -import { - GetBucketMetadataTableConfigurationCommandInput, - GetBucketMetadataTableConfigurationCommandOutput, -} from "../commands/GetBucketMetadataTableConfigurationCommand"; -import { - GetBucketMetricsConfigurationCommandInput, - GetBucketMetricsConfigurationCommandOutput, -} from "../commands/GetBucketMetricsConfigurationCommand"; -import { - GetBucketNotificationConfigurationCommandInput, - GetBucketNotificationConfigurationCommandOutput, -} from "../commands/GetBucketNotificationConfigurationCommand"; -import { - GetBucketOwnershipControlsCommandInput, - GetBucketOwnershipControlsCommandOutput, -} from "../commands/GetBucketOwnershipControlsCommand"; -import { GetBucketPolicyCommandInput, GetBucketPolicyCommandOutput } from "../commands/GetBucketPolicyCommand"; -import { - GetBucketPolicyStatusCommandInput, - GetBucketPolicyStatusCommandOutput, -} from "../commands/GetBucketPolicyStatusCommand"; -import { - GetBucketReplicationCommandInput, - GetBucketReplicationCommandOutput, -} from "../commands/GetBucketReplicationCommand"; -import { - GetBucketRequestPaymentCommandInput, - GetBucketRequestPaymentCommandOutput, -} from "../commands/GetBucketRequestPaymentCommand"; -import { GetBucketTaggingCommandInput, GetBucketTaggingCommandOutput } from "../commands/GetBucketTaggingCommand"; -import { - GetBucketVersioningCommandInput, - GetBucketVersioningCommandOutput, -} from "../commands/GetBucketVersioningCommand"; -import { GetBucketWebsiteCommandInput, GetBucketWebsiteCommandOutput } from "../commands/GetBucketWebsiteCommand"; -import { GetObjectAclCommandInput, GetObjectAclCommandOutput } from "../commands/GetObjectAclCommand"; -import { - GetObjectAttributesCommandInput, - GetObjectAttributesCommandOutput, -} from "../commands/GetObjectAttributesCommand"; -import { GetObjectCommandInput, GetObjectCommandOutput } from "../commands/GetObjectCommand"; -import { GetObjectLegalHoldCommandInput, GetObjectLegalHoldCommandOutput } from "../commands/GetObjectLegalHoldCommand"; -import { - GetObjectLockConfigurationCommandInput, - GetObjectLockConfigurationCommandOutput, -} from "../commands/GetObjectLockConfigurationCommand"; -import { GetObjectRetentionCommandInput, GetObjectRetentionCommandOutput } from "../commands/GetObjectRetentionCommand"; -import { GetObjectTaggingCommandInput, GetObjectTaggingCommandOutput } from "../commands/GetObjectTaggingCommand"; -import { GetObjectTorrentCommandInput, GetObjectTorrentCommandOutput } from "../commands/GetObjectTorrentCommand"; -import { - GetPublicAccessBlockCommandInput, - GetPublicAccessBlockCommandOutput, -} from "../commands/GetPublicAccessBlockCommand"; -import { HeadBucketCommandInput, HeadBucketCommandOutput } from "../commands/HeadBucketCommand"; -import { HeadObjectCommandInput, HeadObjectCommandOutput } from "../commands/HeadObjectCommand"; -import { - ListBucketAnalyticsConfigurationsCommandInput, - ListBucketAnalyticsConfigurationsCommandOutput, -} from "../commands/ListBucketAnalyticsConfigurationsCommand"; -import { - ListBucketIntelligentTieringConfigurationsCommandInput, - ListBucketIntelligentTieringConfigurationsCommandOutput, -} from "../commands/ListBucketIntelligentTieringConfigurationsCommand"; -import { - ListBucketInventoryConfigurationsCommandInput, - ListBucketInventoryConfigurationsCommandOutput, -} from "../commands/ListBucketInventoryConfigurationsCommand"; -import { - ListBucketMetricsConfigurationsCommandInput, - ListBucketMetricsConfigurationsCommandOutput, -} from "../commands/ListBucketMetricsConfigurationsCommand"; -import { ListBucketsCommandInput, ListBucketsCommandOutput } from "../commands/ListBucketsCommand"; -import { - ListDirectoryBucketsCommandInput, - ListDirectoryBucketsCommandOutput, -} from "../commands/ListDirectoryBucketsCommand"; -import { - ListMultipartUploadsCommandInput, - ListMultipartUploadsCommandOutput, -} from "../commands/ListMultipartUploadsCommand"; -import { ListObjectsCommandInput, ListObjectsCommandOutput } from "../commands/ListObjectsCommand"; -import { ListObjectsV2CommandInput, ListObjectsV2CommandOutput } from "../commands/ListObjectsV2Command"; -import { ListObjectVersionsCommandInput, ListObjectVersionsCommandOutput } from "../commands/ListObjectVersionsCommand"; -import { ListPartsCommandInput, ListPartsCommandOutput } from "../commands/ListPartsCommand"; -import { - PutBucketAccelerateConfigurationCommandInput, - PutBucketAccelerateConfigurationCommandOutput, -} from "../commands/PutBucketAccelerateConfigurationCommand"; -import { PutBucketAclCommandInput, PutBucketAclCommandOutput } from "../commands/PutBucketAclCommand"; -import { - PutBucketAnalyticsConfigurationCommandInput, - PutBucketAnalyticsConfigurationCommandOutput, -} from "../commands/PutBucketAnalyticsConfigurationCommand"; -import { PutBucketCorsCommandInput, PutBucketCorsCommandOutput } from "../commands/PutBucketCorsCommand"; -import { - PutBucketEncryptionCommandInput, - PutBucketEncryptionCommandOutput, -} from "../commands/PutBucketEncryptionCommand"; -import { - PutBucketIntelligentTieringConfigurationCommandInput, - PutBucketIntelligentTieringConfigurationCommandOutput, -} from "../commands/PutBucketIntelligentTieringConfigurationCommand"; -import { - PutBucketInventoryConfigurationCommandInput, - PutBucketInventoryConfigurationCommandOutput, -} from "../commands/PutBucketInventoryConfigurationCommand"; -import { - PutBucketLifecycleConfigurationCommandInput, - PutBucketLifecycleConfigurationCommandOutput, -} from "../commands/PutBucketLifecycleConfigurationCommand"; -import { PutBucketLoggingCommandInput, PutBucketLoggingCommandOutput } from "../commands/PutBucketLoggingCommand"; -import { - PutBucketMetricsConfigurationCommandInput, - PutBucketMetricsConfigurationCommandOutput, -} from "../commands/PutBucketMetricsConfigurationCommand"; -import { - PutBucketNotificationConfigurationCommandInput, - PutBucketNotificationConfigurationCommandOutput, -} from "../commands/PutBucketNotificationConfigurationCommand"; -import { - PutBucketOwnershipControlsCommandInput, - PutBucketOwnershipControlsCommandOutput, -} from "../commands/PutBucketOwnershipControlsCommand"; -import { PutBucketPolicyCommandInput, PutBucketPolicyCommandOutput } from "../commands/PutBucketPolicyCommand"; -import { - PutBucketReplicationCommandInput, - PutBucketReplicationCommandOutput, -} from "../commands/PutBucketReplicationCommand"; -import { - PutBucketRequestPaymentCommandInput, - PutBucketRequestPaymentCommandOutput, -} from "../commands/PutBucketRequestPaymentCommand"; -import { PutBucketTaggingCommandInput, PutBucketTaggingCommandOutput } from "../commands/PutBucketTaggingCommand"; -import { - PutBucketVersioningCommandInput, - PutBucketVersioningCommandOutput, -} from "../commands/PutBucketVersioningCommand"; -import { PutBucketWebsiteCommandInput, PutBucketWebsiteCommandOutput } from "../commands/PutBucketWebsiteCommand"; -import { PutObjectAclCommandInput, PutObjectAclCommandOutput } from "../commands/PutObjectAclCommand"; -import { PutObjectCommandInput, PutObjectCommandOutput } from "../commands/PutObjectCommand"; -import { PutObjectLegalHoldCommandInput, PutObjectLegalHoldCommandOutput } from "../commands/PutObjectLegalHoldCommand"; -import { - PutObjectLockConfigurationCommandInput, - PutObjectLockConfigurationCommandOutput, -} from "../commands/PutObjectLockConfigurationCommand"; -import { PutObjectRetentionCommandInput, PutObjectRetentionCommandOutput } from "../commands/PutObjectRetentionCommand"; -import { PutObjectTaggingCommandInput, PutObjectTaggingCommandOutput } from "../commands/PutObjectTaggingCommand"; -import { - PutPublicAccessBlockCommandInput, - PutPublicAccessBlockCommandOutput, -} from "../commands/PutPublicAccessBlockCommand"; -import { RenameObjectCommandInput, RenameObjectCommandOutput } from "../commands/RenameObjectCommand"; -import { RestoreObjectCommandInput, RestoreObjectCommandOutput } from "../commands/RestoreObjectCommand"; -import { - SelectObjectContentCommandInput, - SelectObjectContentCommandOutput, -} from "../commands/SelectObjectContentCommand"; -import { - UpdateBucketMetadataInventoryTableConfigurationCommandInput, - UpdateBucketMetadataInventoryTableConfigurationCommandOutput, -} from "../commands/UpdateBucketMetadataInventoryTableConfigurationCommand"; -import { - UpdateBucketMetadataJournalTableConfigurationCommandInput, - UpdateBucketMetadataJournalTableConfigurationCommandOutput, -} from "../commands/UpdateBucketMetadataJournalTableConfigurationCommand"; -import { UploadPartCommandInput, UploadPartCommandOutput } from "../commands/UploadPartCommand"; -import { UploadPartCopyCommandInput, UploadPartCopyCommandOutput } from "../commands/UploadPartCopyCommand"; -import { - WriteGetObjectResponseCommandInput, - WriteGetObjectResponseCommandOutput, -} from "../commands/WriteGetObjectResponseCommand"; -import { - _Error, - AbortIncompleteMultipartUpload, - AccelerateConfiguration, - AccessControlPolicy, - AccessControlTranslation, - AnalyticsAndOperator, - AnalyticsConfiguration, - AnalyticsExportDestination, - AnalyticsFilter, - AnalyticsS3BucketDestination, - Bucket, - BucketAlreadyExists, - BucketAlreadyOwnedByYou, - BucketInfo, - Checksum, - ChecksumAlgorithm, - CommonPrefix, - CompletedMultipartUpload, - CompletedPart, - Condition, - CopyObjectResult, - CORSRule, - CreateBucketConfiguration, - DefaultRetention, - Delete, - DeletedObject, - DeleteMarkerReplication, - Destination, - DestinationResult, - EncryptionConfiguration, - ErrorDetails, - ErrorDocument, - Event, - EventBridgeConfiguration, - ExistingObjectReplication, - FilterRule, - GetBucketMetadataConfigurationResult, - GetBucketMetadataTableConfigurationResult, - GetObjectAttributesParts, - Grant, - Grantee, - IndexDocument, - Initiator, - IntelligentTieringAndOperator, - IntelligentTieringConfiguration, - IntelligentTieringFilter, - InvalidObjectState, - InventoryConfiguration, - InventoryDestination, - InventoryEncryption, - InventoryFilter, - InventoryOptionalField, - InventoryS3BucketDestination, - InventorySchedule, - InventoryTableConfiguration, - InventoryTableConfigurationResult, - JournalTableConfiguration, - JournalTableConfigurationResult, - LambdaFunctionConfiguration, - LifecycleExpiration, - LifecycleRule, - LifecycleRuleAndOperator, - LifecycleRuleFilter, - LocationInfo, - LoggingEnabled, - MetadataConfiguration, - MetadataConfigurationResult, - MetadataTableConfiguration, - MetadataTableConfigurationResult, - MetadataTableEncryptionConfiguration, - Metrics, - MetricsAndOperator, - MetricsConfiguration, - MetricsFilter, - MultipartUpload, - NoncurrentVersionExpiration, - NoncurrentVersionTransition, - NoSuchBucket, - NoSuchKey, - NoSuchUpload, - NotFound, - NotificationConfiguration, - NotificationConfigurationFilter, - ObjectIdentifier, - ObjectLockConfiguration, - ObjectLockLegalHold, - ObjectLockRetention, - ObjectLockRule, - ObjectNotInActiveTierError, - ObjectPart, - Owner, - OwnershipControls, - OwnershipControlsRule, - PartitionedPrefix, - PolicyStatus, - PublicAccessBlockConfiguration, - QueueConfiguration, - RecordExpiration, - Redirect, - RedirectAllRequestsTo, - ReplicaModifications, - ReplicationConfiguration, - ReplicationRule, - ReplicationRuleAndOperator, - ReplicationRuleFilter, - ReplicationTime, - ReplicationTimeValue, - RestoreStatus, - RoutingRule, - S3KeyFilter, - S3TablesDestination, - S3TablesDestinationResult, - ServerSideEncryptionByDefault, - ServerSideEncryptionConfiguration, - ServerSideEncryptionRule, - SessionCredentials, - SimplePrefix, - SourceSelectionCriteria, - SSEKMS, - SseKmsEncryptedObjects, - SSES3, - StorageClassAnalysis, - StorageClassAnalysisDataExport, - Tag, - TargetGrant, - TargetObjectKeyFormat, - Tiering, - TopicConfiguration, - Transition, -} from "../models/models_0"; -import { - _Object, - BucketLifecycleConfiguration, - BucketLoggingStatus, - ContinuationEvent, - CopyPartResult, - CORSConfiguration, - CSVInput, - CSVOutput, - DeleteMarkerEntry, - Encryption, - EncryptionTypeMismatch, - EndEvent, - GlacierJobParameters, - IdempotencyParameterMismatch, - InputSerialization, - InvalidRequest, - InvalidWriteOffset, - InventoryTableConfigurationUpdates, - JournalTableConfigurationUpdates, - JSONInput, - JSONOutput, - MetadataEntry, - ObjectAlreadyInActiveTierError, - ObjectVersion, - OutputLocation, - OutputSerialization, - ParquetInput, - Part, - Progress, - ProgressEvent, - RecordsEvent, - RequestPaymentConfiguration, - RequestProgress, - RestoreRequest, - S3Location, - ScanRange, - SelectObjectContentEventStream, - SelectParameters, - Stats, - StatsEvent, - Tagging, - TooManyParts, - VersioningConfiguration, - WebsiteConfiguration, -} from "../models/models_1"; -import { S3ServiceException as __BaseException } from "../models/S3ServiceException"; - -/** - * serializeAws_restXmlAbortMultipartUploadCommand - */ -export const se_AbortMultipartUploadCommand = async ( - input: AbortMultipartUploadCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - [_xaimit]: [() => isSerializableHeaderValue(input[_IMIT]), () => __dateToUtcString(input[_IMIT]!).toString()], - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_xi]: [, "AbortMultipartUpload"], - [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlCompleteMultipartUploadCommand - */ -export const se_CompleteMultipartUploadCommand = async ( - input: CompleteMultipartUploadCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xacc]: input[_CCRC]!, - [_xacc_]: input[_CCRCC]!, - [_xacc__]: input[_CCRCNVME]!, - [_xacs]: input[_CSHA]!, - [_xacs_]: input[_CSHAh]!, - [_xact]: input[_CT]!, - [_xamos]: [() => isSerializableHeaderValue(input[_MOS]), () => input[_MOS]!.toString()], - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - [_im]: input[_IM]!, - [_inm]: input[_INM]!, - [_xasseca]: input[_SSECA]!, - [_xasseck]: input[_SSECK]!, - [_xasseckm]: input[_SSECKMD]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], - }); - let body: any; - let contents: any; - if (input.MultipartUpload !== undefined) { - contents = se_CompletedMultipartUpload(input.MultipartUpload, context); - contents = contents.n("CompleteMultipartUpload"); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("POST").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlCopyObjectCommand - */ -export const se_CopyObjectCommand = async ( - input: CopyObjectCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - ...(input.Metadata !== undefined && - Object.keys(input.Metadata).reduce((acc: any, suffix: string) => { - acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix]; - return acc; - }, {})), - [_xaa]: input[_ACL]!, - [_cc]: input[_CC]!, - [_xaca]: input[_CA]!, - [_cd]: input[_CD]!, - [_ce]: input[_CE]!, - [_cl]: input[_CL]!, - [_ct]: input[_CTo]!, - [_xacs__]: input[_CS]!, - [_xacsim]: input[_CSIM]!, - [_xacsims]: [() => isSerializableHeaderValue(input[_CSIMS]), () => __dateToUtcString(input[_CSIMS]!).toString()], - [_xacsinm]: input[_CSINM]!, - [_xacsius]: [() => isSerializableHeaderValue(input[_CSIUS]), () => __dateToUtcString(input[_CSIUS]!).toString()], - [_e]: [() => isSerializableHeaderValue(input[_E]), () => __dateToUtcString(input[_E]!).toString()], - [_xagfc]: input[_GFC]!, - [_xagr]: input[_GR]!, - [_xagra]: input[_GRACP]!, - [_xagwa]: input[_GWACP]!, - [_xamd]: input[_MD]!, - [_xatd]: input[_TD]!, - [_xasse]: input[_SSE]!, - [_xasc]: input[_SC]!, - [_xawrl]: input[_WRL]!, - [_xasseca]: input[_SSECA]!, - [_xasseck]: input[_SSECK]!, - [_xasseckm]: input[_SSECKMD]!, - [_xasseakki]: input[_SSEKMSKI]!, - [_xassec]: input[_SSEKMSEC]!, - [_xassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()], - [_xacssseca]: input[_CSSSECA]!, - [_xacssseck]: input[_CSSSECK]!, - [_xacssseckm]: input[_CSSSECKMD]!, - [_xarp]: input[_RP]!, - [_xat]: input[_T]!, - [_xaolm]: input[_OLM]!, - [_xaolrud]: [() => isSerializableHeaderValue(input[_OLRUD]), () => __serializeDateTime(input[_OLRUD]!).toString()], - [_xaollh]: input[_OLLHS]!, - [_xaebo]: input[_EBO]!, - [_xasebo]: input[_ESBO]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_xi]: [, "CopyObject"], - }); - let body: any; - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlCreateBucketCommand - */ -export const se_CreateBucketCommand = async ( - input: CreateBucketCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xaa]: input[_ACL]!, - [_xagfc]: input[_GFC]!, - [_xagr]: input[_GR]!, - [_xagra]: input[_GRACP]!, - [_xagw]: input[_GW]!, - [_xagwa]: input[_GWACP]!, - [_xabole]: [() => isSerializableHeaderValue(input[_OLEFB]), () => input[_OLEFB]!.toString()], - [_xaoo]: input[_OO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - let body: any; - let contents: any; - if (input.CreateBucketConfiguration !== undefined) { - contents = se_CreateBucketConfiguration(input.CreateBucketConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlCreateBucketMetadataConfigurationCommand - */ -export const se_CreateBucketMetadataConfigurationCommand = async ( - input: CreateBucketMetadataConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_mC]: [, ""], - }); - let body: any; - let contents: any; - if (input.MetadataConfiguration !== undefined) { - contents = se_MetadataConfiguration(input.MetadataConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("POST").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlCreateBucketMetadataTableConfigurationCommand - */ -export const se_CreateBucketMetadataTableConfigurationCommand = async ( - input: CreateBucketMetadataTableConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_mT]: [, ""], - }); - let body: any; - let contents: any; - if (input.MetadataTableConfiguration !== undefined) { - contents = se_MetadataTableConfiguration(input.MetadataTableConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("POST").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlCreateMultipartUploadCommand - */ -export const se_CreateMultipartUploadCommand = async ( - input: CreateMultipartUploadCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - ...(input.Metadata !== undefined && - Object.keys(input.Metadata).reduce((acc: any, suffix: string) => { - acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix]; - return acc; - }, {})), - [_xaa]: input[_ACL]!, - [_cc]: input[_CC]!, - [_cd]: input[_CD]!, - [_ce]: input[_CE]!, - [_cl]: input[_CL]!, - [_ct]: input[_CTo]!, - [_e]: [() => isSerializableHeaderValue(input[_E]), () => __dateToUtcString(input[_E]!).toString()], - [_xagfc]: input[_GFC]!, - [_xagr]: input[_GR]!, - [_xagra]: input[_GRACP]!, - [_xagwa]: input[_GWACP]!, - [_xasse]: input[_SSE]!, - [_xasc]: input[_SC]!, - [_xawrl]: input[_WRL]!, - [_xasseca]: input[_SSECA]!, - [_xasseck]: input[_SSECK]!, - [_xasseckm]: input[_SSECKMD]!, - [_xasseakki]: input[_SSEKMSKI]!, - [_xassec]: input[_SSEKMSEC]!, - [_xassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()], - [_xarp]: input[_RP]!, - [_xat]: input[_T]!, - [_xaolm]: input[_OLM]!, - [_xaolrud]: [() => isSerializableHeaderValue(input[_OLRUD]), () => __serializeDateTime(input[_OLRUD]!).toString()], - [_xaollh]: input[_OLLHS]!, - [_xaebo]: input[_EBO]!, - [_xaca]: input[_CA]!, - [_xact]: input[_CT]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_u]: [, ""], - }); - let body: any; - b.m("POST").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlCreateSessionCommand - */ -export const se_CreateSessionCommand = async ( - input: CreateSessionCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xacsm]: input[_SM]!, - [_xasse]: input[_SSE]!, - [_xasseakki]: input[_SSEKMSKI]!, - [_xassec]: input[_SSEKMSEC]!, - [_xassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()], - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_s]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketCommand - */ -export const se_DeleteBucketCommand = async ( - input: DeleteBucketCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - let body: any; - b.m("DELETE").h(headers).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand - */ -export const se_DeleteBucketAnalyticsConfigurationCommand = async ( - input: DeleteBucketAnalyticsConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_a]: [, ""], - [_i]: [, __expectNonNull(input[_I]!, `Id`)], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketCorsCommand - */ -export const se_DeleteBucketCorsCommand = async ( - input: DeleteBucketCorsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_c]: [, ""], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketEncryptionCommand - */ -export const se_DeleteBucketEncryptionCommand = async ( - input: DeleteBucketEncryptionCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_en]: [, ""], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand - */ -export const se_DeleteBucketIntelligentTieringConfigurationCommand = async ( - input: DeleteBucketIntelligentTieringConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_it]: [, ""], - [_i]: [, __expectNonNull(input[_I]!, `Id`)], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketInventoryConfigurationCommand - */ -export const se_DeleteBucketInventoryConfigurationCommand = async ( - input: DeleteBucketInventoryConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_in]: [, ""], - [_i]: [, __expectNonNull(input[_I]!, `Id`)], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketLifecycleCommand - */ -export const se_DeleteBucketLifecycleCommand = async ( - input: DeleteBucketLifecycleCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_l]: [, ""], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketMetadataConfigurationCommand - */ -export const se_DeleteBucketMetadataConfigurationCommand = async ( - input: DeleteBucketMetadataConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_mC]: [, ""], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketMetadataTableConfigurationCommand - */ -export const se_DeleteBucketMetadataTableConfigurationCommand = async ( - input: DeleteBucketMetadataTableConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_mT]: [, ""], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketMetricsConfigurationCommand - */ -export const se_DeleteBucketMetricsConfigurationCommand = async ( - input: DeleteBucketMetricsConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_m]: [, ""], - [_i]: [, __expectNonNull(input[_I]!, `Id`)], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketOwnershipControlsCommand - */ -export const se_DeleteBucketOwnershipControlsCommand = async ( - input: DeleteBucketOwnershipControlsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_oC]: [, ""], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketPolicyCommand - */ -export const se_DeleteBucketPolicyCommand = async ( - input: DeleteBucketPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_p]: [, ""], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketReplicationCommand - */ -export const se_DeleteBucketReplicationCommand = async ( - input: DeleteBucketReplicationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_r]: [, ""], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketTaggingCommand - */ -export const se_DeleteBucketTaggingCommand = async ( - input: DeleteBucketTaggingCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_t]: [, ""], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteBucketWebsiteCommand - */ -export const se_DeleteBucketWebsiteCommand = async ( - input: DeleteBucketWebsiteCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_w]: [, ""], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteObjectCommand - */ -export const se_DeleteObjectCommand = async ( - input: DeleteObjectCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xam]: input[_MFA]!, - [_xarp]: input[_RP]!, - [_xabgr]: [() => isSerializableHeaderValue(input[_BGR]), () => input[_BGR]!.toString()], - [_xaebo]: input[_EBO]!, - [_im]: input[_IM]!, - [_xaimlmt]: [() => isSerializableHeaderValue(input[_IMLMT]), () => __dateToUtcString(input[_IMLMT]!).toString()], - [_xaims]: [() => isSerializableHeaderValue(input[_IMS]), () => input[_IMS]!.toString()], - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_xi]: [, "DeleteObject"], - [_vI]: [, input[_VI]!], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteObjectsCommand - */ -export const se_DeleteObjectsCommand = async ( - input: DeleteObjectsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xam]: input[_MFA]!, - [_xarp]: input[_RP]!, - [_xabgr]: [() => isSerializableHeaderValue(input[_BGR]), () => input[_BGR]!.toString()], - [_xaebo]: input[_EBO]!, - [_xasca]: input[_CA]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_d]: [, ""], - }); - let body: any; - let contents: any; - if (input.Delete !== undefined) { - contents = se_Delete(input.Delete, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("POST").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeleteObjectTaggingCommand - */ -export const se_DeleteObjectTaggingCommand = async ( - input: DeleteObjectTaggingCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_t]: [, ""], - [_vI]: [, input[_VI]!], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlDeletePublicAccessBlockCommand - */ -export const se_DeletePublicAccessBlockCommand = async ( - input: DeletePublicAccessBlockCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_pAB]: [, ""], - }); - let body: any; - b.m("DELETE").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketAccelerateConfigurationCommand - */ -export const se_GetBucketAccelerateConfigurationCommand = async ( - input: GetBucketAccelerateConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - [_xarp]: input[_RP]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_ac]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketAclCommand - */ -export const se_GetBucketAclCommand = async ( - input: GetBucketAclCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_acl]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketAnalyticsConfigurationCommand - */ -export const se_GetBucketAnalyticsConfigurationCommand = async ( - input: GetBucketAnalyticsConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_a]: [, ""], - [_xi]: [, "GetBucketAnalyticsConfiguration"], - [_i]: [, __expectNonNull(input[_I]!, `Id`)], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketCorsCommand - */ -export const se_GetBucketCorsCommand = async ( - input: GetBucketCorsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_c]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketEncryptionCommand - */ -export const se_GetBucketEncryptionCommand = async ( - input: GetBucketEncryptionCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_en]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketIntelligentTieringConfigurationCommand - */ -export const se_GetBucketIntelligentTieringConfigurationCommand = async ( - input: GetBucketIntelligentTieringConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_it]: [, ""], - [_xi]: [, "GetBucketIntelligentTieringConfiguration"], - [_i]: [, __expectNonNull(input[_I]!, `Id`)], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketInventoryConfigurationCommand - */ -export const se_GetBucketInventoryConfigurationCommand = async ( - input: GetBucketInventoryConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_in]: [, ""], - [_xi]: [, "GetBucketInventoryConfiguration"], - [_i]: [, __expectNonNull(input[_I]!, `Id`)], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketLifecycleConfigurationCommand - */ -export const se_GetBucketLifecycleConfigurationCommand = async ( - input: GetBucketLifecycleConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_l]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketLocationCommand - */ -export const se_GetBucketLocationCommand = async ( - input: GetBucketLocationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_lo]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketLoggingCommand - */ -export const se_GetBucketLoggingCommand = async ( - input: GetBucketLoggingCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_log]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketMetadataConfigurationCommand - */ -export const se_GetBucketMetadataConfigurationCommand = async ( - input: GetBucketMetadataConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_mC]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketMetadataTableConfigurationCommand - */ -export const se_GetBucketMetadataTableConfigurationCommand = async ( - input: GetBucketMetadataTableConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_mT]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketMetricsConfigurationCommand - */ -export const se_GetBucketMetricsConfigurationCommand = async ( - input: GetBucketMetricsConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_m]: [, ""], - [_xi]: [, "GetBucketMetricsConfiguration"], - [_i]: [, __expectNonNull(input[_I]!, `Id`)], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketNotificationConfigurationCommand - */ -export const se_GetBucketNotificationConfigurationCommand = async ( - input: GetBucketNotificationConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_n]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketOwnershipControlsCommand - */ -export const se_GetBucketOwnershipControlsCommand = async ( - input: GetBucketOwnershipControlsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_oC]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketPolicyCommand - */ -export const se_GetBucketPolicyCommand = async ( - input: GetBucketPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_p]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketPolicyStatusCommand - */ -export const se_GetBucketPolicyStatusCommand = async ( - input: GetBucketPolicyStatusCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_pS]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketReplicationCommand - */ -export const se_GetBucketReplicationCommand = async ( - input: GetBucketReplicationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_r]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketRequestPaymentCommand - */ -export const se_GetBucketRequestPaymentCommand = async ( - input: GetBucketRequestPaymentCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_rP]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketTaggingCommand - */ -export const se_GetBucketTaggingCommand = async ( - input: GetBucketTaggingCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_t]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketVersioningCommand - */ -export const se_GetBucketVersioningCommand = async ( - input: GetBucketVersioningCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_v]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetBucketWebsiteCommand - */ -export const se_GetBucketWebsiteCommand = async ( - input: GetBucketWebsiteCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_w]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetObjectCommand - */ -export const se_GetObjectCommand = async ( - input: GetObjectCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_im]: input[_IM]!, - [_ims]: [() => isSerializableHeaderValue(input[_IMSf]), () => __dateToUtcString(input[_IMSf]!).toString()], - [_inm]: input[_INM]!, - [_ius]: [() => isSerializableHeaderValue(input[_IUS]), () => __dateToUtcString(input[_IUS]!).toString()], - [_ra]: input[_R]!, - [_xasseca]: input[_SSECA]!, - [_xasseck]: input[_SSECK]!, - [_xasseckm]: input[_SSECKMD]!, - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - [_xacm]: input[_CM]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_xi]: [, "GetObject"], - [_rcc]: [, input[_RCC]!], - [_rcd]: [, input[_RCD]!], - [_rce]: [, input[_RCE]!], - [_rcl]: [, input[_RCL]!], - [_rct]: [, input[_RCT]!], - [_re]: [() => input.ResponseExpires !== void 0, () => __dateToUtcString(input[_RE]!).toString()], - [_vI]: [, input[_VI]!], - [_pN]: [() => input.PartNumber !== void 0, () => input[_PN]!.toString()], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetObjectAclCommand - */ -export const se_GetObjectAclCommand = async ( - input: GetObjectAclCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_acl]: [, ""], - [_vI]: [, input[_VI]!], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetObjectAttributesCommand - */ -export const se_GetObjectAttributesCommand = async ( - input: GetObjectAttributesCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xamp]: [() => isSerializableHeaderValue(input[_MP]), () => input[_MP]!.toString()], - [_xapnm]: input[_PNM]!, - [_xasseca]: input[_SSECA]!, - [_xasseck]: input[_SSECK]!, - [_xasseckm]: input[_SSECKMD]!, - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - [_xaoa]: [() => isSerializableHeaderValue(input[_OA]), () => (input[_OA]! || []).map(__quoteHeader).join(", ")], - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_at]: [, ""], - [_vI]: [, input[_VI]!], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetObjectLegalHoldCommand - */ -export const se_GetObjectLegalHoldCommand = async ( - input: GetObjectLegalHoldCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_lh]: [, ""], - [_vI]: [, input[_VI]!], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetObjectLockConfigurationCommand - */ -export const se_GetObjectLockConfigurationCommand = async ( - input: GetObjectLockConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_ol]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetObjectRetentionCommand - */ -export const se_GetObjectRetentionCommand = async ( - input: GetObjectRetentionCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_ret]: [, ""], - [_vI]: [, input[_VI]!], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetObjectTaggingCommand - */ -export const se_GetObjectTaggingCommand = async ( - input: GetObjectTaggingCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - [_xarp]: input[_RP]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_t]: [, ""], - [_vI]: [, input[_VI]!], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetObjectTorrentCommand - */ -export const se_GetObjectTorrentCommand = async ( - input: GetObjectTorrentCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_to]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlGetPublicAccessBlockCommand - */ -export const se_GetPublicAccessBlockCommand = async ( - input: GetPublicAccessBlockCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_pAB]: [, ""], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlHeadBucketCommand - */ -export const se_HeadBucketCommand = async ( - input: HeadBucketCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - let body: any; - b.m("HEAD").h(headers).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlHeadObjectCommand - */ -export const se_HeadObjectCommand = async ( - input: HeadObjectCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_im]: input[_IM]!, - [_ims]: [() => isSerializableHeaderValue(input[_IMSf]), () => __dateToUtcString(input[_IMSf]!).toString()], - [_inm]: input[_INM]!, - [_ius]: [() => isSerializableHeaderValue(input[_IUS]), () => __dateToUtcString(input[_IUS]!).toString()], - [_ra]: input[_R]!, - [_xasseca]: input[_SSECA]!, - [_xasseck]: input[_SSECK]!, - [_xasseckm]: input[_SSECKMD]!, - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - [_xacm]: input[_CM]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_rcc]: [, input[_RCC]!], - [_rcd]: [, input[_RCD]!], - [_rce]: [, input[_RCE]!], - [_rcl]: [, input[_RCL]!], - [_rct]: [, input[_RCT]!], - [_re]: [() => input.ResponseExpires !== void 0, () => __dateToUtcString(input[_RE]!).toString()], - [_vI]: [, input[_VI]!], - [_pN]: [() => input.PartNumber !== void 0, () => input[_PN]!.toString()], - }); - let body: any; - b.m("HEAD").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlListBucketAnalyticsConfigurationsCommand - */ -export const se_ListBucketAnalyticsConfigurationsCommand = async ( - input: ListBucketAnalyticsConfigurationsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_a]: [, ""], - [_xi]: [, "ListBucketAnalyticsConfigurations"], - [_ct_]: [, input[_CTon]!], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlListBucketIntelligentTieringConfigurationsCommand - */ -export const se_ListBucketIntelligentTieringConfigurationsCommand = async ( - input: ListBucketIntelligentTieringConfigurationsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_it]: [, ""], - [_xi]: [, "ListBucketIntelligentTieringConfigurations"], - [_ct_]: [, input[_CTon]!], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlListBucketInventoryConfigurationsCommand - */ -export const se_ListBucketInventoryConfigurationsCommand = async ( - input: ListBucketInventoryConfigurationsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_in]: [, ""], - [_xi]: [, "ListBucketInventoryConfigurations"], - [_ct_]: [, input[_CTon]!], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlListBucketMetricsConfigurationsCommand - */ -export const se_ListBucketMetricsConfigurationsCommand = async ( - input: ListBucketMetricsConfigurationsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_m]: [, ""], - [_xi]: [, "ListBucketMetricsConfigurations"], - [_ct_]: [, input[_CTon]!], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlListBucketsCommand - */ -export const se_ListBucketsCommand = async ( - input: ListBucketsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = {}; - b.bp("/"); - const query: any = map({ - [_xi]: [, "ListBuckets"], - [_mb]: [() => input.MaxBuckets !== void 0, () => input[_MB]!.toString()], - [_ct_]: [, input[_CTon]!], - [_pr]: [, input[_P]!], - [_br]: [, input[_BR]!], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlListDirectoryBucketsCommand - */ -export const se_ListDirectoryBucketsCommand = async ( - input: ListDirectoryBucketsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = {}; - b.bp("/"); - const query: any = map({ - [_xi]: [, "ListDirectoryBuckets"], - [_ct_]: [, input[_CTon]!], - [_mdb]: [() => input.MaxDirectoryBuckets !== void 0, () => input[_MDB]!.toString()], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlListMultipartUploadsCommand - */ -export const se_ListMultipartUploadsCommand = async ( - input: ListMultipartUploadsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - [_xarp]: input[_RP]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_u]: [, ""], - [_de]: [, input[_D]!], - [_et]: [, input[_ET]!], - [_km]: [, input[_KM]!], - [_mu]: [() => input.MaxUploads !== void 0, () => input[_MU]!.toString()], - [_pr]: [, input[_P]!], - [_uim]: [, input[_UIM]!], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlListObjectsCommand - */ -export const se_ListObjectsCommand = async ( - input: ListObjectsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - [_xaooa]: [() => isSerializableHeaderValue(input[_OOA]), () => (input[_OOA]! || []).map(__quoteHeader).join(", ")], - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_de]: [, input[_D]!], - [_et]: [, input[_ET]!], - [_ma]: [, input[_M]!], - [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK]!.toString()], - [_pr]: [, input[_P]!], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlListObjectsV2Command - */ -export const se_ListObjectsV2Command = async ( - input: ListObjectsV2CommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - [_xaooa]: [() => isSerializableHeaderValue(input[_OOA]), () => (input[_OOA]! || []).map(__quoteHeader).join(", ")], - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_lt]: [, "2"], - [_de]: [, input[_D]!], - [_et]: [, input[_ET]!], - [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK]!.toString()], - [_pr]: [, input[_P]!], - [_ct_]: [, input[_CTon]!], - [_fo]: [() => input.FetchOwner !== void 0, () => input[_FO]!.toString()], - [_sa]: [, input[_SA]!], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlListObjectVersionsCommand - */ -export const se_ListObjectVersionsCommand = async ( - input: ListObjectVersionsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xaebo]: input[_EBO]!, - [_xarp]: input[_RP]!, - [_xaooa]: [() => isSerializableHeaderValue(input[_OOA]), () => (input[_OOA]! || []).map(__quoteHeader).join(", ")], - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_ver]: [, ""], - [_de]: [, input[_D]!], - [_et]: [, input[_ET]!], - [_km]: [, input[_KM]!], - [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK]!.toString()], - [_pr]: [, input[_P]!], - [_vim]: [, input[_VIM]!], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlListPartsCommand - */ -export const se_ListPartsCommand = async ( - input: ListPartsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - [_xasseca]: input[_SSECA]!, - [_xasseck]: input[_SSECK]!, - [_xasseckm]: input[_SSECKMD]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_xi]: [, "ListParts"], - [_mp]: [() => input.MaxParts !== void 0, () => input[_MP]!.toString()], - [_pnm]: [, input[_PNM]!], - [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], - }); - let body: any; - b.m("GET").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketAccelerateConfigurationCommand - */ -export const se_PutBucketAccelerateConfigurationCommand = async ( - input: PutBucketAccelerateConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xaebo]: input[_EBO]!, - [_xasca]: input[_CA]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_ac]: [, ""], - }); - let body: any; - let contents: any; - if (input.AccelerateConfiguration !== undefined) { - contents = se_AccelerateConfiguration(input.AccelerateConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketAclCommand - */ -export const se_PutBucketAclCommand = async ( - input: PutBucketAclCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xaa]: input[_ACL]!, - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xagfc]: input[_GFC]!, - [_xagr]: input[_GR]!, - [_xagra]: input[_GRACP]!, - [_xagw]: input[_GW]!, - [_xagwa]: input[_GWACP]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_acl]: [, ""], - }); - let body: any; - let contents: any; - if (input.AccessControlPolicy !== undefined) { - contents = se_AccessControlPolicy(input.AccessControlPolicy, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketAnalyticsConfigurationCommand - */ -export const se_PutBucketAnalyticsConfigurationCommand = async ( - input: PutBucketAnalyticsConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_a]: [, ""], - [_i]: [, __expectNonNull(input[_I]!, `Id`)], - }); - let body: any; - let contents: any; - if (input.AnalyticsConfiguration !== undefined) { - contents = se_AnalyticsConfiguration(input.AnalyticsConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketCorsCommand - */ -export const se_PutBucketCorsCommand = async ( - input: PutBucketCorsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_c]: [, ""], - }); - let body: any; - let contents: any; - if (input.CORSConfiguration !== undefined) { - contents = se_CORSConfiguration(input.CORSConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketEncryptionCommand - */ -export const se_PutBucketEncryptionCommand = async ( - input: PutBucketEncryptionCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_en]: [, ""], - }); - let body: any; - let contents: any; - if (input.ServerSideEncryptionConfiguration !== undefined) { - contents = se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketIntelligentTieringConfigurationCommand - */ -export const se_PutBucketIntelligentTieringConfigurationCommand = async ( - input: PutBucketIntelligentTieringConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_it]: [, ""], - [_i]: [, __expectNonNull(input[_I]!, `Id`)], - }); - let body: any; - let contents: any; - if (input.IntelligentTieringConfiguration !== undefined) { - contents = se_IntelligentTieringConfiguration(input.IntelligentTieringConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketInventoryConfigurationCommand - */ -export const se_PutBucketInventoryConfigurationCommand = async ( - input: PutBucketInventoryConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_in]: [, ""], - [_i]: [, __expectNonNull(input[_I]!, `Id`)], - }); - let body: any; - let contents: any; - if (input.InventoryConfiguration !== undefined) { - contents = se_InventoryConfiguration(input.InventoryConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketLifecycleConfigurationCommand - */ -export const se_PutBucketLifecycleConfigurationCommand = async ( - input: PutBucketLifecycleConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - [_xatdmos]: input[_TDMOS]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_l]: [, ""], - }); - let body: any; - let contents: any; - if (input.LifecycleConfiguration !== undefined) { - contents = se_BucketLifecycleConfiguration(input.LifecycleConfiguration, context); - contents = contents.n("LifecycleConfiguration"); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketLoggingCommand - */ -export const se_PutBucketLoggingCommand = async ( - input: PutBucketLoggingCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_log]: [, ""], - }); - let body: any; - let contents: any; - if (input.BucketLoggingStatus !== undefined) { - contents = se_BucketLoggingStatus(input.BucketLoggingStatus, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketMetricsConfigurationCommand - */ -export const se_PutBucketMetricsConfigurationCommand = async ( - input: PutBucketMetricsConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_m]: [, ""], - [_i]: [, __expectNonNull(input[_I]!, `Id`)], - }); - let body: any; - let contents: any; - if (input.MetricsConfiguration !== undefined) { - contents = se_MetricsConfiguration(input.MetricsConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketNotificationConfigurationCommand - */ -export const se_PutBucketNotificationConfigurationCommand = async ( - input: PutBucketNotificationConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xaebo]: input[_EBO]!, - [_xasdv]: [() => isSerializableHeaderValue(input[_SDV]), () => input[_SDV]!.toString()], - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_n]: [, ""], - }); - let body: any; - let contents: any; - if (input.NotificationConfiguration !== undefined) { - contents = se_NotificationConfiguration(input.NotificationConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketOwnershipControlsCommand - */ -export const se_PutBucketOwnershipControlsCommand = async ( - input: PutBucketOwnershipControlsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xaebo]: input[_EBO]!, - [_xasca]: input[_CA]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_oC]: [, ""], - }); - let body: any; - let contents: any; - if (input.OwnershipControls !== undefined) { - contents = se_OwnershipControls(input.OwnershipControls, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketPolicyCommand - */ -export const se_PutBucketPolicyCommand = async ( - input: PutBucketPolicyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "text/plain", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xacrsba]: [() => isSerializableHeaderValue(input[_CRSBA]), () => input[_CRSBA]!.toString()], - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_p]: [, ""], - }); - let body: any; - let contents: any; - if (input.Policy !== undefined) { - contents = input.Policy; - body = contents; - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketReplicationCommand - */ -export const se_PutBucketReplicationCommand = async ( - input: PutBucketReplicationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xabolt]: input[_To]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_r]: [, ""], - }); - let body: any; - let contents: any; - if (input.ReplicationConfiguration !== undefined) { - contents = se_ReplicationConfiguration(input.ReplicationConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketRequestPaymentCommand - */ -export const se_PutBucketRequestPaymentCommand = async ( - input: PutBucketRequestPaymentCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_rP]: [, ""], - }); - let body: any; - let contents: any; - if (input.RequestPaymentConfiguration !== undefined) { - contents = se_RequestPaymentConfiguration(input.RequestPaymentConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketTaggingCommand - */ -export const se_PutBucketTaggingCommand = async ( - input: PutBucketTaggingCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_t]: [, ""], - }); - let body: any; - let contents: any; - if (input.Tagging !== undefined) { - contents = se_Tagging(input.Tagging, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketVersioningCommand - */ -export const se_PutBucketVersioningCommand = async ( - input: PutBucketVersioningCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xam]: input[_MFA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_v]: [, ""], - }); - let body: any; - let contents: any; - if (input.VersioningConfiguration !== undefined) { - contents = se_VersioningConfiguration(input.VersioningConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutBucketWebsiteCommand - */ -export const se_PutBucketWebsiteCommand = async ( - input: PutBucketWebsiteCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_w]: [, ""], - }); - let body: any; - let contents: any; - if (input.WebsiteConfiguration !== undefined) { - contents = se_WebsiteConfiguration(input.WebsiteConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutObjectCommand - */ -export const se_PutObjectCommand = async ( - input: PutObjectCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - ...(input.Metadata !== undefined && - Object.keys(input.Metadata).reduce((acc: any, suffix: string) => { - acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix]; - return acc; - }, {})), - [_ct]: input[_CTo] || "application/octet-stream", - [_xaa]: input[_ACL]!, - [_cc]: input[_CC]!, - [_cd]: input[_CD]!, - [_ce]: input[_CE]!, - [_cl]: input[_CL]!, - [_cl_]: [() => isSerializableHeaderValue(input[_CLo]), () => input[_CLo]!.toString()], - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xacc]: input[_CCRC]!, - [_xacc_]: input[_CCRCC]!, - [_xacc__]: input[_CCRCNVME]!, - [_xacs]: input[_CSHA]!, - [_xacs_]: input[_CSHAh]!, - [_e]: [() => isSerializableHeaderValue(input[_E]), () => __dateToUtcString(input[_E]!).toString()], - [_im]: input[_IM]!, - [_inm]: input[_INM]!, - [_xagfc]: input[_GFC]!, - [_xagr]: input[_GR]!, - [_xagra]: input[_GRACP]!, - [_xagwa]: input[_GWACP]!, - [_xawob]: [() => isSerializableHeaderValue(input[_WOB]), () => input[_WOB]!.toString()], - [_xasse]: input[_SSE]!, - [_xasc]: input[_SC]!, - [_xawrl]: input[_WRL]!, - [_xasseca]: input[_SSECA]!, - [_xasseck]: input[_SSECK]!, - [_xasseckm]: input[_SSECKMD]!, - [_xasseakki]: input[_SSEKMSKI]!, - [_xassec]: input[_SSEKMSEC]!, - [_xassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()], - [_xarp]: input[_RP]!, - [_xat]: input[_T]!, - [_xaolm]: input[_OLM]!, - [_xaolrud]: [() => isSerializableHeaderValue(input[_OLRUD]), () => __serializeDateTime(input[_OLRUD]!).toString()], - [_xaollh]: input[_OLLHS]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_xi]: [, "PutObject"], - }); - let body: any; - let contents: any; - if (input.Body !== undefined) { - contents = input.Body; - body = contents; - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutObjectAclCommand - */ -export const se_PutObjectAclCommand = async ( - input: PutObjectAclCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xaa]: input[_ACL]!, - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xagfc]: input[_GFC]!, - [_xagr]: input[_GR]!, - [_xagra]: input[_GRACP]!, - [_xagw]: input[_GW]!, - [_xagwa]: input[_GWACP]!, - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_acl]: [, ""], - [_vI]: [, input[_VI]!], - }); - let body: any; - let contents: any; - if (input.AccessControlPolicy !== undefined) { - contents = se_AccessControlPolicy(input.AccessControlPolicy, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutObjectLegalHoldCommand - */ -export const se_PutObjectLegalHoldCommand = async ( - input: PutObjectLegalHoldCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xarp]: input[_RP]!, - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_lh]: [, ""], - [_vI]: [, input[_VI]!], - }); - let body: any; - let contents: any; - if (input.LegalHold !== undefined) { - contents = se_ObjectLockLegalHold(input.LegalHold, context); - contents = contents.n("LegalHold"); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutObjectLockConfigurationCommand - */ -export const se_PutObjectLockConfigurationCommand = async ( - input: PutObjectLockConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xarp]: input[_RP]!, - [_xabolt]: input[_To]!, - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_ol]: [, ""], - }); - let body: any; - let contents: any; - if (input.ObjectLockConfiguration !== undefined) { - contents = se_ObjectLockConfiguration(input.ObjectLockConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutObjectRetentionCommand - */ -export const se_PutObjectRetentionCommand = async ( - input: PutObjectRetentionCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xarp]: input[_RP]!, - [_xabgr]: [() => isSerializableHeaderValue(input[_BGR]), () => input[_BGR]!.toString()], - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_ret]: [, ""], - [_vI]: [, input[_VI]!], - }); - let body: any; - let contents: any; - if (input.Retention !== undefined) { - contents = se_ObjectLockRetention(input.Retention, context); - contents = contents.n("Retention"); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutObjectTaggingCommand - */ -export const se_PutObjectTaggingCommand = async ( - input: PutObjectTaggingCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - [_xarp]: input[_RP]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_t]: [, ""], - [_vI]: [, input[_VI]!], - }); - let body: any; - let contents: any; - if (input.Tagging !== undefined) { - contents = se_Tagging(input.Tagging, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlPutPublicAccessBlockCommand - */ -export const se_PutPublicAccessBlockCommand = async ( - input: PutPublicAccessBlockCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_pAB]: [, ""], - }); - let body: any; - let contents: any; - if (input.PublicAccessBlockConfiguration !== undefined) { - contents = se_PublicAccessBlockConfiguration(input.PublicAccessBlockConfiguration, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlRenameObjectCommand - */ -export const se_RenameObjectCommand = async ( - input: RenameObjectCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xars]: input[_RS]!, - [_im]: input[_DIM]!, - [_inm]: input[_DINM]!, - [_ims]: [() => isSerializableHeaderValue(input[_DIMS]), () => __dateToUtcString(input[_DIMS]!).toString()], - [_ius]: [() => isSerializableHeaderValue(input[_DIUS]), () => __dateToUtcString(input[_DIUS]!).toString()], - [_xarsim]: input[_SIM]!, - [_xarsinm]: input[_SINM]!, - [_xarsims]: [() => isSerializableHeaderValue(input[_SIMS]), () => __dateToUtcString(input[_SIMS]!).toString()], - [_xarsius]: [() => isSerializableHeaderValue(input[_SIUS]), () => __dateToUtcString(input[_SIUS]!).toString()], - [_xact_]: input[_CTl] ?? generateIdempotencyToken(), - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_rO]: [, ""], - }); - let body: any; - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlRestoreObjectCommand - */ -export const se_RestoreObjectCommand = async ( - input: RestoreObjectCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xarp]: input[_RP]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_res]: [, ""], - [_vI]: [, input[_VI]!], - }); - let body: any; - let contents: any; - if (input.RestoreRequest !== undefined) { - contents = se_RestoreRequest(input.RestoreRequest, context); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("POST").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlSelectObjectContentCommand - */ -export const se_SelectObjectContentCommand = async ( - input: SelectObjectContentCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_xasseca]: input[_SSECA]!, - [_xasseck]: input[_SSECK]!, - [_xasseckm]: input[_SSECKMD]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_se]: [, ""], - [_st]: [, "2"], - }); - let body: any; - body = _ve; - const bn = new __XmlNode(_SOCR); - bn.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - bn.cc(input, _Ex); - bn.cc(input, _ETx); - if (input[_IS] != null) { - bn.c(se_InputSerialization(input[_IS], context).n(_IS)); - } - if (input[_OS] != null) { - bn.c(se_OutputSerialization(input[_OS], context).n(_OS)); - } - if (input[_RPe] != null) { - bn.c(se_RequestProgress(input[_RPe], context).n(_RPe)); - } - if (input[_SR] != null) { - bn.c(se_ScanRange(input[_SR], context).n(_SR)); - } - body += bn.toString(); - b.m("POST").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlUpdateBucketMetadataInventoryTableConfigurationCommand - */ -export const se_UpdateBucketMetadataInventoryTableConfigurationCommand = async ( - input: UpdateBucketMetadataInventoryTableConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_mIT]: [, ""], - }); - let body: any; - let contents: any; - if (input.InventoryTableConfiguration !== undefined) { - contents = se_InventoryTableConfigurationUpdates(input.InventoryTableConfiguration, context); - contents = contents.n("InventoryTableConfiguration"); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlUpdateBucketMetadataJournalTableConfigurationCommand - */ -export const se_UpdateBucketMetadataJournalTableConfigurationCommand = async ( - input: UpdateBucketMetadataJournalTableConfigurationCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/xml", - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - const query: any = map({ - [_mJT]: [, ""], - }); - let body: any; - let contents: any; - if (input.JournalTableConfiguration !== undefined) { - contents = se_JournalTableConfigurationUpdates(input.JournalTableConfiguration, context); - contents = contents.n("JournalTableConfiguration"); - body = _ve; - contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - body += contents.toString(); - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlUploadPartCommand - */ -export const se_UploadPartCommand = async ( - input: UploadPartCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "content-type": "application/octet-stream", - [_cl_]: [() => isSerializableHeaderValue(input[_CLo]), () => input[_CLo]!.toString()], - [_cm]: input[_CMD]!, - [_xasca]: input[_CA]!, - [_xacc]: input[_CCRC]!, - [_xacc_]: input[_CCRCC]!, - [_xacc__]: input[_CCRCNVME]!, - [_xacs]: input[_CSHA]!, - [_xacs_]: input[_CSHAh]!, - [_xasseca]: input[_SSECA]!, - [_xasseck]: input[_SSECK]!, - [_xasseckm]: input[_SSECKMD]!, - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_xi]: [, "UploadPart"], - [_pN]: [__expectNonNull(input.PartNumber, `PartNumber`) != null, () => input[_PN]!.toString()], - [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], - }); - let body: any; - let contents: any; - if (input.Body !== undefined) { - contents = input.Body; - body = contents; - } - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlUploadPartCopyCommand - */ -export const se_UploadPartCopyCommand = async ( - input: UploadPartCopyCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - [_xacs__]: input[_CS]!, - [_xacsim]: input[_CSIM]!, - [_xacsims]: [() => isSerializableHeaderValue(input[_CSIMS]), () => __dateToUtcString(input[_CSIMS]!).toString()], - [_xacsinm]: input[_CSINM]!, - [_xacsius]: [() => isSerializableHeaderValue(input[_CSIUS]), () => __dateToUtcString(input[_CSIUS]!).toString()], - [_xacsr]: input[_CSR]!, - [_xasseca]: input[_SSECA]!, - [_xasseck]: input[_SSECK]!, - [_xasseckm]: input[_SSECKMD]!, - [_xacssseca]: input[_CSSSECA]!, - [_xacssseck]: input[_CSSSECK]!, - [_xacssseckm]: input[_CSSSECKMD]!, - [_xarp]: input[_RP]!, - [_xaebo]: input[_EBO]!, - [_xasebo]: input[_ESBO]!, - }); - b.bp("/{Key+}"); - b.p("Bucket", () => input.Bucket!, "{Bucket}", false); - b.p("Key", () => input.Key!, "{Key+}", true); - const query: any = map({ - [_xi]: [, "UploadPartCopy"], - [_pN]: [__expectNonNull(input.PartNumber, `PartNumber`) != null, () => input[_PN]!.toString()], - [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], - }); - let body: any; - b.m("PUT").h(headers).q(query).b(body); - return b.build(); -}; - -/** - * serializeAws_restXmlWriteGetObjectResponseCommand - */ -export const se_WriteGetObjectResponseCommand = async ( - input: WriteGetObjectResponseCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const b = rb(input, context); - const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-content-sha256": "UNSIGNED-PAYLOAD", - ...(input.Metadata !== undefined && - Object.keys(input.Metadata).reduce((acc: any, suffix: string) => { - acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix]; - return acc; - }, {})), - "content-type": "application/octet-stream", - [_xarr]: input[_RR]!, - [_xart]: input[_RT]!, - [_xafs]: [() => isSerializableHeaderValue(input[_SCt]), () => input[_SCt]!.toString()], - [_xafec]: input[_EC]!, - [_xafem]: input[_EM]!, - [_xafhar]: input[_AR]!, - [_xafhcc]: input[_CC]!, - [_xafhcd]: input[_CD]!, - [_xafhce]: input[_CE]!, - [_xafhcl]: input[_CL]!, - [_cl_]: [() => isSerializableHeaderValue(input[_CLo]), () => input[_CLo]!.toString()], - [_xafhcr]: input[_CR]!, - [_xafhct]: input[_CTo]!, - [_xafhxacc]: input[_CCRC]!, - [_xafhxacc_]: input[_CCRCC]!, - [_xafhxacc__]: input[_CCRCNVME]!, - [_xafhxacs]: input[_CSHA]!, - [_xafhxacs_]: input[_CSHAh]!, - [_xafhxadm]: [() => isSerializableHeaderValue(input[_DM]), () => input[_DM]!.toString()], - [_xafhe]: input[_ETa]!, - [_xafhe_]: [() => isSerializableHeaderValue(input[_E]), () => __dateToUtcString(input[_E]!).toString()], - [_xafhxae]: input[_Exp]!, - [_xafhlm]: [() => isSerializableHeaderValue(input[_LM]), () => __dateToUtcString(input[_LM]!).toString()], - [_xafhxamm]: [() => isSerializableHeaderValue(input[_MM]), () => input[_MM]!.toString()], - [_xafhxaolm]: input[_OLM]!, - [_xafhxaollh]: input[_OLLHS]!, - [_xafhxaolrud]: [ - () => isSerializableHeaderValue(input[_OLRUD]), - () => __serializeDateTime(input[_OLRUD]!).toString(), - ], - [_xafhxampc]: [() => isSerializableHeaderValue(input[_PC]), () => input[_PC]!.toString()], - [_xafhxars]: input[_RSe]!, - [_xafhxarc]: input[_RC]!, - [_xafhxar]: input[_Re]!, - [_xafhxasse]: input[_SSE]!, - [_xafhxasseca]: input[_SSECA]!, - [_xafhxasseakki]: input[_SSEKMSKI]!, - [_xafhxasseckm]: input[_SSECKMD]!, - [_xafhxasc]: input[_SC]!, - [_xafhxatc]: [() => isSerializableHeaderValue(input[_TC]), () => input[_TC]!.toString()], - [_xafhxavi]: input[_VI]!, - [_xafhxassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()], - }); - b.bp("/WriteGetObjectResponse"); - let body: any; - let contents: any; - if (input.Body !== undefined) { - contents = input.Body; - body = contents; - } - let { hostname: resolvedHostname } = await context.endpoint(); - if (context.disableHostPrefix !== true) { - resolvedHostname = "{RequestRoute}." + resolvedHostname; - if (input.RequestRoute === undefined) { - throw new Error("Empty value provided for input host prefix: RequestRoute."); - } - resolvedHostname = resolvedHostname.replace("{RequestRoute}", input.RequestRoute!); - if (!__isValidHostname(resolvedHostname)) { - throw new Error("ValidationError: prefixed hostname must be hostname compatible."); - } - } - b.hn(resolvedHostname); - b.m("POST").h(headers).b(body); - return b.build(); -}; - -/** - * deserializeAws_restXmlAbortMultipartUploadCommand - */ -export const de_AbortMultipartUploadCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_RC]: [, output.headers[_xarc]], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlCompleteMultipartUploadCommand - */ -export const de_CompleteMultipartUploadCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_Exp]: [, output.headers[_xae]], - [_SSE]: [, output.headers[_xasse]], - [_VI]: [, output.headers[_xavi]], - [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], - [_RC]: [, output.headers[_xarc]], - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_B] != null) { - contents[_B] = __expectString(data[_B]); - } - if (data[_CCRC] != null) { - contents[_CCRC] = __expectString(data[_CCRC]); - } - if (data[_CCRCC] != null) { - contents[_CCRCC] = __expectString(data[_CCRCC]); - } - if (data[_CCRCNVME] != null) { - contents[_CCRCNVME] = __expectString(data[_CCRCNVME]); - } - if (data[_CSHA] != null) { - contents[_CSHA] = __expectString(data[_CSHA]); - } - if (data[_CSHAh] != null) { - contents[_CSHAh] = __expectString(data[_CSHAh]); - } - if (data[_CT] != null) { - contents[_CT] = __expectString(data[_CT]); - } - if (data[_ETa] != null) { - contents[_ETa] = __expectString(data[_ETa]); - } - if (data[_K] != null) { - contents[_K] = __expectString(data[_K]); - } - if (data[_L] != null) { - contents[_L] = __expectString(data[_L]); - } - return contents; -}; - -/** - * deserializeAws_restXmlCopyObjectCommand - */ -export const de_CopyObjectCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_Exp]: [, output.headers[_xae]], - [_CSVI]: [, output.headers[_xacsvi]], - [_VI]: [, output.headers[_xavi]], - [_SSE]: [, output.headers[_xasse]], - [_SSECA]: [, output.headers[_xasseca]], - [_SSECKMD]: [, output.headers[_xasseckm]], - [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_SSEKMSEC]: [, output.headers[_xassec]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], - [_RC]: [, output.headers[_xarc]], - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.CopyObjectResult = de_CopyObjectResult(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlCreateBucketCommand - */ -export const de_CreateBucketCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_L]: [, output.headers[_lo]], - [_BA]: [, output.headers[_xaba]], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlCreateBucketMetadataConfigurationCommand - */ -export const de_CreateBucketMetadataConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlCreateBucketMetadataTableConfigurationCommand - */ -export const de_CreateBucketMetadataTableConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlCreateMultipartUploadCommand - */ -export const de_CreateMultipartUploadCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_AD]: [ - () => void 0 !== output.headers[_xaad], - () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xaad])), - ], - [_ARI]: [, output.headers[_xaari]], - [_SSE]: [, output.headers[_xasse]], - [_SSECA]: [, output.headers[_xasseca]], - [_SSECKMD]: [, output.headers[_xasseckm]], - [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_SSEKMSEC]: [, output.headers[_xassec]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], - [_RC]: [, output.headers[_xarc]], - [_CA]: [, output.headers[_xaca]], - [_CT]: [, output.headers[_xact]], - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_B] != null) { - contents[_B] = __expectString(data[_B]); - } - if (data[_K] != null) { - contents[_K] = __expectString(data[_K]); - } - if (data[_UI] != null) { - contents[_UI] = __expectString(data[_UI]); - } - return contents; -}; - -/** - * deserializeAws_restXmlCreateSessionCommand - */ -export const de_CreateSessionCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_SSE]: [, output.headers[_xasse]], - [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_SSEKMSEC]: [, output.headers[_xassec]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_C] != null) { - contents[_C] = de_SessionCredentials(data[_C], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketCommand - */ -export const de_DeleteBucketCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand - */ -export const de_DeleteBucketAnalyticsConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketCorsCommand - */ -export const de_DeleteBucketCorsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketEncryptionCommand - */ -export const de_DeleteBucketEncryptionCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand - */ -export const de_DeleteBucketIntelligentTieringConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketInventoryConfigurationCommand - */ -export const de_DeleteBucketInventoryConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketLifecycleCommand - */ -export const de_DeleteBucketLifecycleCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketMetadataConfigurationCommand - */ -export const de_DeleteBucketMetadataConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketMetadataTableConfigurationCommand - */ -export const de_DeleteBucketMetadataTableConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketMetricsConfigurationCommand - */ -export const de_DeleteBucketMetricsConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketOwnershipControlsCommand - */ -export const de_DeleteBucketOwnershipControlsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketPolicyCommand - */ -export const de_DeleteBucketPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketReplicationCommand - */ -export const de_DeleteBucketReplicationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketTaggingCommand - */ -export const de_DeleteBucketTaggingCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteBucketWebsiteCommand - */ -export const de_DeleteBucketWebsiteCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteObjectCommand - */ -export const de_DeleteObjectCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_DM]: [() => void 0 !== output.headers[_xadm], () => __parseBoolean(output.headers[_xadm])], - [_VI]: [, output.headers[_xavi]], - [_RC]: [, output.headers[_xarc]], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeleteObjectsCommand - */ -export const de_DeleteObjectsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_RC]: [, output.headers[_xarc]], - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.Deleted === "") { - contents[_De] = []; - } else if (data[_De] != null) { - contents[_De] = de_DeletedObjects(__getArrayIfSingleItem(data[_De]), context); - } - if (data.Error === "") { - contents[_Err] = []; - } else if (data[_Er] != null) { - contents[_Err] = de_Errors(__getArrayIfSingleItem(data[_Er]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlDeleteObjectTaggingCommand - */ -export const de_DeleteObjectTaggingCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_VI]: [, output.headers[_xavi]], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlDeletePublicAccessBlockCommand - */ -export const de_DeletePublicAccessBlockCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketAccelerateConfigurationCommand - */ -export const de_GetBucketAccelerateConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_RC]: [, output.headers[_xarc]], - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_S] != null) { - contents[_S] = __expectString(data[_S]); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketAclCommand - */ -export const de_GetBucketAclCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.AccessControlList === "") { - contents[_Gr] = []; - } else if (data[_ACLc] != null && data[_ACLc][_G] != null) { - contents[_Gr] = de_Grants(__getArrayIfSingleItem(data[_ACLc][_G]), context); - } - if (data[_O] != null) { - contents[_O] = de_Owner(data[_O], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketAnalyticsConfigurationCommand - */ -export const de_GetBucketAnalyticsConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.AnalyticsConfiguration = de_AnalyticsConfiguration(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketCorsCommand - */ -export const de_GetBucketCorsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.CORSRule === "") { - contents[_CORSRu] = []; - } else if (data[_CORSR] != null) { - contents[_CORSRu] = de_CORSRules(__getArrayIfSingleItem(data[_CORSR]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketEncryptionCommand - */ -export const de_GetBucketEncryptionCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.ServerSideEncryptionConfiguration = de_ServerSideEncryptionConfiguration(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketIntelligentTieringConfigurationCommand - */ -export const de_GetBucketIntelligentTieringConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.IntelligentTieringConfiguration = de_IntelligentTieringConfiguration(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketInventoryConfigurationCommand - */ -export const de_GetBucketInventoryConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.InventoryConfiguration = de_InventoryConfiguration(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketLifecycleConfigurationCommand - */ -export const de_GetBucketLifecycleConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_TDMOS]: [, output.headers[_xatdmos]], - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.Rule === "") { - contents[_Rul] = []; - } else if (data[_Ru] != null) { - contents[_Rul] = de_LifecycleRules(__getArrayIfSingleItem(data[_Ru]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketLocationCommand - */ -export const de_GetBucketLocationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_LC] != null) { - contents[_LC] = __expectString(data[_LC]); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketLoggingCommand - */ -export const de_GetBucketLoggingCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_LE] != null) { - contents[_LE] = de_LoggingEnabled(data[_LE], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketMetadataConfigurationCommand - */ -export const de_GetBucketMetadataConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.GetBucketMetadataConfigurationResult = de_GetBucketMetadataConfigurationResult(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketMetadataTableConfigurationCommand - */ -export const de_GetBucketMetadataTableConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.GetBucketMetadataTableConfigurationResult = de_GetBucketMetadataTableConfigurationResult(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketMetricsConfigurationCommand - */ -export const de_GetBucketMetricsConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.MetricsConfiguration = de_MetricsConfiguration(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketNotificationConfigurationCommand - */ -export const de_GetBucketNotificationConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_EBC] != null) { - contents[_EBC] = de_EventBridgeConfiguration(data[_EBC], context); - } - if (data.CloudFunctionConfiguration === "") { - contents[_LFC] = []; - } else if (data[_CFC] != null) { - contents[_LFC] = de_LambdaFunctionConfigurationList(__getArrayIfSingleItem(data[_CFC]), context); - } - if (data.QueueConfiguration === "") { - contents[_QCu] = []; - } else if (data[_QC] != null) { - contents[_QCu] = de_QueueConfigurationList(__getArrayIfSingleItem(data[_QC]), context); - } - if (data.TopicConfiguration === "") { - contents[_TCop] = []; - } else if (data[_TCo] != null) { - contents[_TCop] = de_TopicConfigurationList(__getArrayIfSingleItem(data[_TCo]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketOwnershipControlsCommand - */ -export const de_GetBucketOwnershipControlsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.OwnershipControls = de_OwnershipControls(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketPolicyCommand - */ -export const de_GetBucketPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: any = await collectBodyString(output.body, context); - contents.Policy = __expectString(data); - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketPolicyStatusCommand - */ -export const de_GetBucketPolicyStatusCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.PolicyStatus = de_PolicyStatus(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketReplicationCommand - */ -export const de_GetBucketReplicationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.ReplicationConfiguration = de_ReplicationConfiguration(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketRequestPaymentCommand - */ -export const de_GetBucketRequestPaymentCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_Pa] != null) { - contents[_Pa] = __expectString(data[_Pa]); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketTaggingCommand - */ -export const de_GetBucketTaggingCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.TagSet === "") { - contents[_TS] = []; - } else if (data[_TS] != null && data[_TS][_Ta] != null) { - contents[_TS] = de_TagSet(__getArrayIfSingleItem(data[_TS][_Ta]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketVersioningCommand - */ -export const de_GetBucketVersioningCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_MDf] != null) { - contents[_MFAD] = __expectString(data[_MDf]); - } - if (data[_S] != null) { - contents[_S] = __expectString(data[_S]); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketWebsiteCommand - */ -export const de_GetBucketWebsiteCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_ED] != null) { - contents[_ED] = de_ErrorDocument(data[_ED], context); - } - if (data[_ID] != null) { - contents[_ID] = de_IndexDocument(data[_ID], context); - } - if (data[_RART] != null) { - contents[_RART] = de_RedirectAllRequestsTo(data[_RART], context); - } - if (data.RoutingRules === "") { - contents[_RRo] = []; - } else if (data[_RRo] != null && data[_RRo][_RRou] != null) { - contents[_RRo] = de_RoutingRules(__getArrayIfSingleItem(data[_RRo][_RRou]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetObjectCommand - */ -export const de_GetObjectCommand = async ( - output: __HttpResponse, - context: __SerdeContext & __SdkStreamSerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_DM]: [() => void 0 !== output.headers[_xadm], () => __parseBoolean(output.headers[_xadm])], - [_AR]: [, output.headers[_ar]], - [_Exp]: [, output.headers[_xae]], - [_Re]: [, output.headers[_xar]], - [_LM]: [() => void 0 !== output.headers[_lm], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_lm]))], - [_CLo]: [() => void 0 !== output.headers[_cl_], () => __strictParseLong(output.headers[_cl_])], - [_ETa]: [, output.headers[_eta]], - [_CCRC]: [, output.headers[_xacc]], - [_CCRCC]: [, output.headers[_xacc_]], - [_CCRCNVME]: [, output.headers[_xacc__]], - [_CSHA]: [, output.headers[_xacs]], - [_CSHAh]: [, output.headers[_xacs_]], - [_CT]: [, output.headers[_xact]], - [_MM]: [() => void 0 !== output.headers[_xamm], () => __strictParseInt32(output.headers[_xamm])], - [_VI]: [, output.headers[_xavi]], - [_CC]: [, output.headers[_cc]], - [_CD]: [, output.headers[_cd]], - [_CE]: [, output.headers[_ce]], - [_CL]: [, output.headers[_cl]], - [_CR]: [, output.headers[_cr]], - [_CTo]: [, output.headers[_ct]], - [_E]: [() => void 0 !== output.headers[_e], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_e]))], - [_ES]: [, output.headers[_ex]], - [_WRL]: [, output.headers[_xawrl]], - [_SSE]: [, output.headers[_xasse]], - [_SSECA]: [, output.headers[_xasseca]], - [_SSECKMD]: [, output.headers[_xasseckm]], - [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], - [_SC]: [, output.headers[_xasc]], - [_RC]: [, output.headers[_xarc]], - [_RSe]: [, output.headers[_xars_]], - [_PC]: [() => void 0 !== output.headers[_xampc], () => __strictParseInt32(output.headers[_xampc])], - [_TC]: [() => void 0 !== output.headers[_xatc], () => __strictParseInt32(output.headers[_xatc])], - [_OLM]: [, output.headers[_xaolm]], - [_OLRUD]: [ - () => void 0 !== output.headers[_xaolrud], - () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers[_xaolrud])), - ], - [_OLLHS]: [, output.headers[_xaollh]], - Metadata: [ - , - Object.keys(output.headers) - .filter((header) => header.startsWith("x-amz-meta-")) - .reduce((acc, header) => { - acc[header.substring(11)] = output.headers[header]; - return acc; - }, {} as any), - ], - }); - const data: any = output.body; - context.sdkStreamMixin(data); - contents.Body = data; - return contents; -}; - -/** - * deserializeAws_restXmlGetObjectAclCommand - */ -export const de_GetObjectAclCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_RC]: [, output.headers[_xarc]], - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.AccessControlList === "") { - contents[_Gr] = []; - } else if (data[_ACLc] != null && data[_ACLc][_G] != null) { - contents[_Gr] = de_Grants(__getArrayIfSingleItem(data[_ACLc][_G]), context); - } - if (data[_O] != null) { - contents[_O] = de_Owner(data[_O], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetObjectAttributesCommand - */ -export const de_GetObjectAttributesCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_DM]: [() => void 0 !== output.headers[_xadm], () => __parseBoolean(output.headers[_xadm])], - [_LM]: [() => void 0 !== output.headers[_lm], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_lm]))], - [_VI]: [, output.headers[_xavi]], - [_RC]: [, output.headers[_xarc]], - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_Ch] != null) { - contents[_Ch] = de_Checksum(data[_Ch], context); - } - if (data[_ETa] != null) { - contents[_ETa] = __expectString(data[_ETa]); - } - if (data[_OP] != null) { - contents[_OP] = de_GetObjectAttributesParts(data[_OP], context); - } - if (data[_OSb] != null) { - contents[_OSb] = __strictParseLong(data[_OSb]) as number; - } - if (data[_SC] != null) { - contents[_SC] = __expectString(data[_SC]); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetObjectLegalHoldCommand - */ -export const de_GetObjectLegalHoldCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.LegalHold = de_ObjectLockLegalHold(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlGetObjectLockConfigurationCommand - */ -export const de_GetObjectLockConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.ObjectLockConfiguration = de_ObjectLockConfiguration(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlGetObjectRetentionCommand - */ -export const de_GetObjectRetentionCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.Retention = de_ObjectLockRetention(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlGetObjectTaggingCommand - */ -export const de_GetObjectTaggingCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_VI]: [, output.headers[_xavi]], - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.TagSet === "") { - contents[_TS] = []; - } else if (data[_TS] != null && data[_TS][_Ta] != null) { - contents[_TS] = de_TagSet(__getArrayIfSingleItem(data[_TS][_Ta]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetObjectTorrentCommand - */ -export const de_GetObjectTorrentCommand = async ( - output: __HttpResponse, - context: __SerdeContext & __SdkStreamSerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_RC]: [, output.headers[_xarc]], - }); - const data: any = output.body; - context.sdkStreamMixin(data); - contents.Body = data; - return contents; -}; - -/** - * deserializeAws_restXmlGetPublicAccessBlockCommand - */ -export const de_GetPublicAccessBlockCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.PublicAccessBlockConfiguration = de_PublicAccessBlockConfiguration(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlHeadBucketCommand - */ -export const de_HeadBucketCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_BA]: [, output.headers[_xaba]], - [_BLT]: [, output.headers[_xablt]], - [_BLN]: [, output.headers[_xabln]], - [_BR]: [, output.headers[_xabr]], - [_APA]: [() => void 0 !== output.headers[_xaapa], () => __parseBoolean(output.headers[_xaapa])], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlHeadObjectCommand - */ -export const de_HeadObjectCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_DM]: [() => void 0 !== output.headers[_xadm], () => __parseBoolean(output.headers[_xadm])], - [_AR]: [, output.headers[_ar]], - [_Exp]: [, output.headers[_xae]], - [_Re]: [, output.headers[_xar]], - [_AS]: [, output.headers[_xaas]], - [_LM]: [() => void 0 !== output.headers[_lm], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_lm]))], - [_CLo]: [() => void 0 !== output.headers[_cl_], () => __strictParseLong(output.headers[_cl_])], - [_CCRC]: [, output.headers[_xacc]], - [_CCRCC]: [, output.headers[_xacc_]], - [_CCRCNVME]: [, output.headers[_xacc__]], - [_CSHA]: [, output.headers[_xacs]], - [_CSHAh]: [, output.headers[_xacs_]], - [_CT]: [, output.headers[_xact]], - [_ETa]: [, output.headers[_eta]], - [_MM]: [() => void 0 !== output.headers[_xamm], () => __strictParseInt32(output.headers[_xamm])], - [_VI]: [, output.headers[_xavi]], - [_CC]: [, output.headers[_cc]], - [_CD]: [, output.headers[_cd]], - [_CE]: [, output.headers[_ce]], - [_CL]: [, output.headers[_cl]], - [_CTo]: [, output.headers[_ct]], - [_CR]: [, output.headers[_cr]], - [_E]: [() => void 0 !== output.headers[_e], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_e]))], - [_ES]: [, output.headers[_ex]], - [_WRL]: [, output.headers[_xawrl]], - [_SSE]: [, output.headers[_xasse]], - [_SSECA]: [, output.headers[_xasseca]], - [_SSECKMD]: [, output.headers[_xasseckm]], - [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], - [_SC]: [, output.headers[_xasc]], - [_RC]: [, output.headers[_xarc]], - [_RSe]: [, output.headers[_xars_]], - [_PC]: [() => void 0 !== output.headers[_xampc], () => __strictParseInt32(output.headers[_xampc])], - [_TC]: [() => void 0 !== output.headers[_xatc], () => __strictParseInt32(output.headers[_xatc])], - [_OLM]: [, output.headers[_xaolm]], - [_OLRUD]: [ - () => void 0 !== output.headers[_xaolrud], - () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers[_xaolrud])), - ], - [_OLLHS]: [, output.headers[_xaollh]], - Metadata: [ - , - Object.keys(output.headers) - .filter((header) => header.startsWith("x-amz-meta-")) - .reduce((acc, header) => { - acc[header.substring(11)] = output.headers[header]; - return acc; - }, {} as any), - ], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlListBucketAnalyticsConfigurationsCommand - */ -export const de_ListBucketAnalyticsConfigurationsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.AnalyticsConfiguration === "") { - contents[_ACLn] = []; - } else if (data[_AC] != null) { - contents[_ACLn] = de_AnalyticsConfigurationList(__getArrayIfSingleItem(data[_AC]), context); - } - if (data[_CTon] != null) { - contents[_CTon] = __expectString(data[_CTon]); - } - if (data[_IT] != null) { - contents[_IT] = __parseBoolean(data[_IT]); - } - if (data[_NCT] != null) { - contents[_NCT] = __expectString(data[_NCT]); - } - return contents; -}; - -/** - * deserializeAws_restXmlListBucketIntelligentTieringConfigurationsCommand - */ -export const de_ListBucketIntelligentTieringConfigurationsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_CTon] != null) { - contents[_CTon] = __expectString(data[_CTon]); - } - if (data.IntelligentTieringConfiguration === "") { - contents[_ITCL] = []; - } else if (data[_ITC] != null) { - contents[_ITCL] = de_IntelligentTieringConfigurationList(__getArrayIfSingleItem(data[_ITC]), context); - } - if (data[_IT] != null) { - contents[_IT] = __parseBoolean(data[_IT]); - } - if (data[_NCT] != null) { - contents[_NCT] = __expectString(data[_NCT]); - } - return contents; -}; - -/** - * deserializeAws_restXmlListBucketInventoryConfigurationsCommand - */ -export const de_ListBucketInventoryConfigurationsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_CTon] != null) { - contents[_CTon] = __expectString(data[_CTon]); - } - if (data.InventoryConfiguration === "") { - contents[_ICL] = []; - } else if (data[_IC] != null) { - contents[_ICL] = de_InventoryConfigurationList(__getArrayIfSingleItem(data[_IC]), context); - } - if (data[_IT] != null) { - contents[_IT] = __parseBoolean(data[_IT]); - } - if (data[_NCT] != null) { - contents[_NCT] = __expectString(data[_NCT]); - } - return contents; -}; - -/** - * deserializeAws_restXmlListBucketMetricsConfigurationsCommand - */ -export const de_ListBucketMetricsConfigurationsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_CTon] != null) { - contents[_CTon] = __expectString(data[_CTon]); - } - if (data[_IT] != null) { - contents[_IT] = __parseBoolean(data[_IT]); - } - if (data.MetricsConfiguration === "") { - contents[_MCL] = []; - } else if (data[_MC] != null) { - contents[_MCL] = de_MetricsConfigurationList(__getArrayIfSingleItem(data[_MC]), context); - } - if (data[_NCT] != null) { - contents[_NCT] = __expectString(data[_NCT]); - } - return contents; -}; - -/** - * deserializeAws_restXmlListBucketsCommand - */ -export const de_ListBucketsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.Buckets === "") { - contents[_Bu] = []; - } else if (data[_Bu] != null && data[_Bu][_B] != null) { - contents[_Bu] = de_Buckets(__getArrayIfSingleItem(data[_Bu][_B]), context); - } - if (data[_CTon] != null) { - contents[_CTon] = __expectString(data[_CTon]); - } - if (data[_O] != null) { - contents[_O] = de_Owner(data[_O], context); - } - if (data[_P] != null) { - contents[_P] = __expectString(data[_P]); - } - return contents; -}; - -/** - * deserializeAws_restXmlListDirectoryBucketsCommand - */ -export const de_ListDirectoryBucketsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.Buckets === "") { - contents[_Bu] = []; - } else if (data[_Bu] != null && data[_Bu][_B] != null) { - contents[_Bu] = de_Buckets(__getArrayIfSingleItem(data[_Bu][_B]), context); - } - if (data[_CTon] != null) { - contents[_CTon] = __expectString(data[_CTon]); - } - return contents; -}; - -/** - * deserializeAws_restXmlListMultipartUploadsCommand - */ -export const de_ListMultipartUploadsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_RC]: [, output.headers[_xarc]], - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_B] != null) { - contents[_B] = __expectString(data[_B]); - } - if (data.CommonPrefixes === "") { - contents[_CP] = []; - } else if (data[_CP] != null) { - contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); - } - if (data[_D] != null) { - contents[_D] = __expectString(data[_D]); - } - if (data[_ET] != null) { - contents[_ET] = __expectString(data[_ET]); - } - if (data[_IT] != null) { - contents[_IT] = __parseBoolean(data[_IT]); - } - if (data[_KM] != null) { - contents[_KM] = __expectString(data[_KM]); - } - if (data[_MU] != null) { - contents[_MU] = __strictParseInt32(data[_MU]) as number; - } - if (data[_NKM] != null) { - contents[_NKM] = __expectString(data[_NKM]); - } - if (data[_NUIM] != null) { - contents[_NUIM] = __expectString(data[_NUIM]); - } - if (data[_P] != null) { - contents[_P] = __expectString(data[_P]); - } - if (data[_UIM] != null) { - contents[_UIM] = __expectString(data[_UIM]); - } - if (data.Upload === "") { - contents[_Up] = []; - } else if (data[_U] != null) { - contents[_Up] = de_MultipartUploadList(__getArrayIfSingleItem(data[_U]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlListObjectsCommand - */ -export const de_ListObjectsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_RC]: [, output.headers[_xarc]], - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.CommonPrefixes === "") { - contents[_CP] = []; - } else if (data[_CP] != null) { - contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); - } - if (data.Contents === "") { - contents[_Co] = []; - } else if (data[_Co] != null) { - contents[_Co] = de_ObjectList(__getArrayIfSingleItem(data[_Co]), context); - } - if (data[_D] != null) { - contents[_D] = __expectString(data[_D]); - } - if (data[_ET] != null) { - contents[_ET] = __expectString(data[_ET]); - } - if (data[_IT] != null) { - contents[_IT] = __parseBoolean(data[_IT]); - } - if (data[_M] != null) { - contents[_M] = __expectString(data[_M]); - } - if (data[_MK] != null) { - contents[_MK] = __strictParseInt32(data[_MK]) as number; - } - if (data[_N] != null) { - contents[_N] = __expectString(data[_N]); - } - if (data[_NM] != null) { - contents[_NM] = __expectString(data[_NM]); - } - if (data[_P] != null) { - contents[_P] = __expectString(data[_P]); - } - return contents; -}; - -/** - * deserializeAws_restXmlListObjectsV2Command - */ -export const de_ListObjectsV2Command = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_RC]: [, output.headers[_xarc]], - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.CommonPrefixes === "") { - contents[_CP] = []; - } else if (data[_CP] != null) { - contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); - } - if (data.Contents === "") { - contents[_Co] = []; - } else if (data[_Co] != null) { - contents[_Co] = de_ObjectList(__getArrayIfSingleItem(data[_Co]), context); - } - if (data[_CTon] != null) { - contents[_CTon] = __expectString(data[_CTon]); - } - if (data[_D] != null) { - contents[_D] = __expectString(data[_D]); - } - if (data[_ET] != null) { - contents[_ET] = __expectString(data[_ET]); - } - if (data[_IT] != null) { - contents[_IT] = __parseBoolean(data[_IT]); - } - if (data[_KC] != null) { - contents[_KC] = __strictParseInt32(data[_KC]) as number; - } - if (data[_MK] != null) { - contents[_MK] = __strictParseInt32(data[_MK]) as number; - } - if (data[_N] != null) { - contents[_N] = __expectString(data[_N]); - } - if (data[_NCT] != null) { - contents[_NCT] = __expectString(data[_NCT]); - } - if (data[_P] != null) { - contents[_P] = __expectString(data[_P]); - } - if (data[_SA] != null) { - contents[_SA] = __expectString(data[_SA]); - } - return contents; -}; - -/** - * deserializeAws_restXmlListObjectVersionsCommand - */ -export const de_ListObjectVersionsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_RC]: [, output.headers[_xarc]], - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.CommonPrefixes === "") { - contents[_CP] = []; - } else if (data[_CP] != null) { - contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); - } - if (data.DeleteMarker === "") { - contents[_DMe] = []; - } else if (data[_DM] != null) { - contents[_DMe] = de_DeleteMarkers(__getArrayIfSingleItem(data[_DM]), context); - } - if (data[_D] != null) { - contents[_D] = __expectString(data[_D]); - } - if (data[_ET] != null) { - contents[_ET] = __expectString(data[_ET]); - } - if (data[_IT] != null) { - contents[_IT] = __parseBoolean(data[_IT]); - } - if (data[_KM] != null) { - contents[_KM] = __expectString(data[_KM]); - } - if (data[_MK] != null) { - contents[_MK] = __strictParseInt32(data[_MK]) as number; - } - if (data[_N] != null) { - contents[_N] = __expectString(data[_N]); - } - if (data[_NKM] != null) { - contents[_NKM] = __expectString(data[_NKM]); - } - if (data[_NVIM] != null) { - contents[_NVIM] = __expectString(data[_NVIM]); - } - if (data[_P] != null) { - contents[_P] = __expectString(data[_P]); - } - if (data[_VIM] != null) { - contents[_VIM] = __expectString(data[_VIM]); - } - if (data.Version === "") { - contents[_Ve] = []; - } else if (data[_V] != null) { - contents[_Ve] = de_ObjectVersionList(__getArrayIfSingleItem(data[_V]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlListPartsCommand - */ -export const de_ListPartsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_AD]: [ - () => void 0 !== output.headers[_xaad], - () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xaad])), - ], - [_ARI]: [, output.headers[_xaari]], - [_RC]: [, output.headers[_xarc]], - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data[_B] != null) { - contents[_B] = __expectString(data[_B]); - } - if (data[_CA] != null) { - contents[_CA] = __expectString(data[_CA]); - } - if (data[_CT] != null) { - contents[_CT] = __expectString(data[_CT]); - } - if (data[_In] != null) { - contents[_In] = de_Initiator(data[_In], context); - } - if (data[_IT] != null) { - contents[_IT] = __parseBoolean(data[_IT]); - } - if (data[_K] != null) { - contents[_K] = __expectString(data[_K]); - } - if (data[_MP] != null) { - contents[_MP] = __strictParseInt32(data[_MP]) as number; - } - if (data[_NPNM] != null) { - contents[_NPNM] = __expectString(data[_NPNM]); - } - if (data[_O] != null) { - contents[_O] = de_Owner(data[_O], context); - } - if (data[_PNM] != null) { - contents[_PNM] = __expectString(data[_PNM]); - } - if (data.Part === "") { - contents[_Part] = []; - } else if (data[_Par] != null) { - contents[_Part] = de_Parts(__getArrayIfSingleItem(data[_Par]), context); - } - if (data[_SC] != null) { - contents[_SC] = __expectString(data[_SC]); - } - if (data[_UI] != null) { - contents[_UI] = __expectString(data[_UI]); - } - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketAccelerateConfigurationCommand - */ -export const de_PutBucketAccelerateConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketAclCommand - */ -export const de_PutBucketAclCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketAnalyticsConfigurationCommand - */ -export const de_PutBucketAnalyticsConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketCorsCommand - */ -export const de_PutBucketCorsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketEncryptionCommand - */ -export const de_PutBucketEncryptionCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketIntelligentTieringConfigurationCommand - */ -export const de_PutBucketIntelligentTieringConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketInventoryConfigurationCommand - */ -export const de_PutBucketInventoryConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketLifecycleConfigurationCommand - */ -export const de_PutBucketLifecycleConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_TDMOS]: [, output.headers[_xatdmos]], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketLoggingCommand - */ -export const de_PutBucketLoggingCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketMetricsConfigurationCommand - */ -export const de_PutBucketMetricsConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketNotificationConfigurationCommand - */ -export const de_PutBucketNotificationConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketOwnershipControlsCommand - */ -export const de_PutBucketOwnershipControlsCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketPolicyCommand - */ -export const de_PutBucketPolicyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketReplicationCommand - */ -export const de_PutBucketReplicationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketRequestPaymentCommand - */ -export const de_PutBucketRequestPaymentCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketTaggingCommand - */ -export const de_PutBucketTaggingCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketVersioningCommand - */ -export const de_PutBucketVersioningCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutBucketWebsiteCommand - */ -export const de_PutBucketWebsiteCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutObjectCommand - */ -export const de_PutObjectCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_Exp]: [, output.headers[_xae]], - [_ETa]: [, output.headers[_eta]], - [_CCRC]: [, output.headers[_xacc]], - [_CCRCC]: [, output.headers[_xacc_]], - [_CCRCNVME]: [, output.headers[_xacc__]], - [_CSHA]: [, output.headers[_xacs]], - [_CSHAh]: [, output.headers[_xacs_]], - [_CT]: [, output.headers[_xact]], - [_SSE]: [, output.headers[_xasse]], - [_VI]: [, output.headers[_xavi]], - [_SSECA]: [, output.headers[_xasseca]], - [_SSECKMD]: [, output.headers[_xasseckm]], - [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_SSEKMSEC]: [, output.headers[_xassec]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], - [_Si]: [() => void 0 !== output.headers[_xaos], () => __strictParseLong(output.headers[_xaos])], - [_RC]: [, output.headers[_xarc]], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutObjectAclCommand - */ -export const de_PutObjectAclCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_RC]: [, output.headers[_xarc]], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutObjectLegalHoldCommand - */ -export const de_PutObjectLegalHoldCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_RC]: [, output.headers[_xarc]], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutObjectLockConfigurationCommand - */ -export const de_PutObjectLockConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_RC]: [, output.headers[_xarc]], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutObjectRetentionCommand - */ -export const de_PutObjectRetentionCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_RC]: [, output.headers[_xarc]], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutObjectTaggingCommand - */ -export const de_PutObjectTaggingCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_VI]: [, output.headers[_xavi]], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlPutPublicAccessBlockCommand - */ -export const de_PutPublicAccessBlockCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlRenameObjectCommand - */ -export const de_RenameObjectCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlRestoreObjectCommand - */ -export const de_RestoreObjectCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_RC]: [, output.headers[_xarc]], - [_ROP]: [, output.headers[_xarop]], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlSelectObjectContentCommand - */ -export const de_SelectObjectContentCommand = async ( - output: __HttpResponse, - context: __SerdeContext & __EventStreamSerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: any = output.body; - contents.Payload = de_SelectObjectContentEventStream(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlUpdateBucketMetadataInventoryTableConfigurationCommand - */ -export const de_UpdateBucketMetadataInventoryTableConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlUpdateBucketMetadataJournalTableConfigurationCommand - */ -export const de_UpdateBucketMetadataJournalTableConfigurationCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlUploadPartCommand - */ -export const de_UploadPartCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_SSE]: [, output.headers[_xasse]], - [_ETa]: [, output.headers[_eta]], - [_CCRC]: [, output.headers[_xacc]], - [_CCRCC]: [, output.headers[_xacc_]], - [_CCRCNVME]: [, output.headers[_xacc__]], - [_CSHA]: [, output.headers[_xacs]], - [_CSHAh]: [, output.headers[_xacs_]], - [_SSECA]: [, output.headers[_xasseca]], - [_SSECKMD]: [, output.headers[_xasseckm]], - [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], - [_RC]: [, output.headers[_xarc]], - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserializeAws_restXmlUploadPartCopyCommand - */ -export const de_UploadPartCopyCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - [_CSVI]: [, output.headers[_xacsvi]], - [_SSE]: [, output.headers[_xasse]], - [_SSECA]: [, output.headers[_xasseca]], - [_SSECKMD]: [, output.headers[_xasseckm]], - [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], - [_RC]: [, output.headers[_xarc]], - }); - const data: Record | undefined = __expectObject(await parseBody(output.body, context)); - contents.CopyPartResult = de_CopyPartResult(data, context); - return contents; -}; - -/** - * deserializeAws_restXmlWriteGetObjectResponseCommand - */ -export const de_WriteGetObjectResponseCommand = async ( - output: __HttpResponse, - context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; - -/** - * deserialize_Aws_restXmlCommandError - */ -const de_CommandError = async (output: __HttpResponse, context: __SerdeContext): Promise => { - const parsedOutput: any = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestXmlErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "NoSuchUpload": - case "com.amazonaws.s3#NoSuchUpload": - throw await de_NoSuchUploadRes(parsedOutput, context); - case "ObjectNotInActiveTierError": - case "com.amazonaws.s3#ObjectNotInActiveTierError": - throw await de_ObjectNotInActiveTierErrorRes(parsedOutput, context); - case "BucketAlreadyExists": - case "com.amazonaws.s3#BucketAlreadyExists": - throw await de_BucketAlreadyExistsRes(parsedOutput, context); - case "BucketAlreadyOwnedByYou": - case "com.amazonaws.s3#BucketAlreadyOwnedByYou": - throw await de_BucketAlreadyOwnedByYouRes(parsedOutput, context); - case "NoSuchBucket": - case "com.amazonaws.s3#NoSuchBucket": - throw await de_NoSuchBucketRes(parsedOutput, context); - case "InvalidObjectState": - case "com.amazonaws.s3#InvalidObjectState": - throw await de_InvalidObjectStateRes(parsedOutput, context); - case "NoSuchKey": - case "com.amazonaws.s3#NoSuchKey": - throw await de_NoSuchKeyRes(parsedOutput, context); - case "NotFound": - case "com.amazonaws.s3#NotFound": - throw await de_NotFoundRes(parsedOutput, context); - case "EncryptionTypeMismatch": - case "com.amazonaws.s3#EncryptionTypeMismatch": - throw await de_EncryptionTypeMismatchRes(parsedOutput, context); - case "InvalidRequest": - case "com.amazonaws.s3#InvalidRequest": - throw await de_InvalidRequestRes(parsedOutput, context); - case "InvalidWriteOffset": - case "com.amazonaws.s3#InvalidWriteOffset": - throw await de_InvalidWriteOffsetRes(parsedOutput, context); - case "TooManyParts": - case "com.amazonaws.s3#TooManyParts": - throw await de_TooManyPartsRes(parsedOutput, context); - case "IdempotencyParameterMismatch": - case "com.amazonaws.s3#IdempotencyParameterMismatch": - throw await de_IdempotencyParameterMismatchRes(parsedOutput, context); - case "ObjectAlreadyInActiveTierError": - case "com.amazonaws.s3#ObjectAlreadyInActiveTierError": - throw await de_ObjectAlreadyInActiveTierErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }) as never; - } -}; - -const throwDefaultError = withBaseException(__BaseException); -/** - * deserializeAws_restXmlBucketAlreadyExistsRes - */ -const de_BucketAlreadyExistsRes = async (parsedOutput: any, context: __SerdeContext): Promise => { - const contents: any = map({}); - const data: any = parsedOutput.body; - const exception = new BucketAlreadyExists({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; - -/** - * deserializeAws_restXmlBucketAlreadyOwnedByYouRes - */ -const de_BucketAlreadyOwnedByYouRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const contents: any = map({}); - const data: any = parsedOutput.body; - const exception = new BucketAlreadyOwnedByYou({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; - -/** - * deserializeAws_restXmlEncryptionTypeMismatchRes - */ -const de_EncryptionTypeMismatchRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const contents: any = map({}); - const data: any = parsedOutput.body; - const exception = new EncryptionTypeMismatch({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; - -/** - * deserializeAws_restXmlIdempotencyParameterMismatchRes - */ -const de_IdempotencyParameterMismatchRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const contents: any = map({}); - const data: any = parsedOutput.body; - const exception = new IdempotencyParameterMismatch({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; - -/** - * deserializeAws_restXmlInvalidObjectStateRes - */ -const de_InvalidObjectStateRes = async (parsedOutput: any, context: __SerdeContext): Promise => { - const contents: any = map({}); - const data: any = parsedOutput.body; - if (data[_AT] != null) { - contents[_AT] = __expectString(data[_AT]); - } - if (data[_SC] != null) { - contents[_SC] = __expectString(data[_SC]); - } - const exception = new InvalidObjectState({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; - -/** - * deserializeAws_restXmlInvalidRequestRes - */ -const de_InvalidRequestRes = async (parsedOutput: any, context: __SerdeContext): Promise => { - const contents: any = map({}); - const data: any = parsedOutput.body; - const exception = new InvalidRequest({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; - -/** - * deserializeAws_restXmlInvalidWriteOffsetRes - */ -const de_InvalidWriteOffsetRes = async (parsedOutput: any, context: __SerdeContext): Promise => { - const contents: any = map({}); - const data: any = parsedOutput.body; - const exception = new InvalidWriteOffset({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; - -/** - * deserializeAws_restXmlNoSuchBucketRes - */ -const de_NoSuchBucketRes = async (parsedOutput: any, context: __SerdeContext): Promise => { - const contents: any = map({}); - const data: any = parsedOutput.body; - const exception = new NoSuchBucket({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; - -/** - * deserializeAws_restXmlNoSuchKeyRes - */ -const de_NoSuchKeyRes = async (parsedOutput: any, context: __SerdeContext): Promise => { - const contents: any = map({}); - const data: any = parsedOutput.body; - const exception = new NoSuchKey({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; - -/** - * deserializeAws_restXmlNoSuchUploadRes - */ -const de_NoSuchUploadRes = async (parsedOutput: any, context: __SerdeContext): Promise => { - const contents: any = map({}); - const data: any = parsedOutput.body; - const exception = new NoSuchUpload({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; - -/** - * deserializeAws_restXmlNotFoundRes - */ -const de_NotFoundRes = async (parsedOutput: any, context: __SerdeContext): Promise => { - const contents: any = map({}); - const data: any = parsedOutput.body; - const exception = new NotFound({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; - -/** - * deserializeAws_restXmlObjectAlreadyInActiveTierErrorRes - */ -const de_ObjectAlreadyInActiveTierErrorRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const contents: any = map({}); - const data: any = parsedOutput.body; - const exception = new ObjectAlreadyInActiveTierError({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; - -/** - * deserializeAws_restXmlObjectNotInActiveTierErrorRes - */ -const de_ObjectNotInActiveTierErrorRes = async ( - parsedOutput: any, - context: __SerdeContext -): Promise => { - const contents: any = map({}); - const data: any = parsedOutput.body; - const exception = new ObjectNotInActiveTierError({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; - -/** - * deserializeAws_restXmlTooManyPartsRes - */ -const de_TooManyPartsRes = async (parsedOutput: any, context: __SerdeContext): Promise => { - const contents: any = map({}); - const data: any = parsedOutput.body; - const exception = new TooManyParts({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; - -/** - * deserializeAws_restXmlSelectObjectContentEventStream - */ -const de_SelectObjectContentEventStream = ( - output: any, - context: __SerdeContext & __EventStreamSerdeContext -): AsyncIterable => { - return context.eventStreamMarshaller.deserialize(output, async (event) => { - if (event["Records"] != null) { - return { - Records: await de_RecordsEvent_event(event["Records"], context), - }; - } - if (event["Stats"] != null) { - return { - Stats: await de_StatsEvent_event(event["Stats"], context), - }; - } - if (event["Progress"] != null) { - return { - Progress: await de_ProgressEvent_event(event["Progress"], context), - }; - } - if (event["Cont"] != null) { - return { - Cont: await de_ContinuationEvent_event(event["Cont"], context), - }; - } - if (event["End"] != null) { - return { - End: await de_EndEvent_event(event["End"], context), - }; - } - return { $unknown: event as any }; - }); -}; -const de_ContinuationEvent_event = async (output: any, context: __SerdeContext): Promise => { - const contents: ContinuationEvent = {} as any; - const data: any = await parseBody(output.body, context); - Object.assign(contents, de_ContinuationEvent(data, context)); - return contents; -}; -const de_EndEvent_event = async (output: any, context: __SerdeContext): Promise => { - const contents: EndEvent = {} as any; - const data: any = await parseBody(output.body, context); - Object.assign(contents, de_EndEvent(data, context)); - return contents; -}; -const de_ProgressEvent_event = async (output: any, context: __SerdeContext): Promise => { - const contents: ProgressEvent = {} as any; - const data: any = await parseBody(output.body, context); - contents.Details = de_Progress(data, context); - return contents; -}; -const de_RecordsEvent_event = async (output: any, context: __SerdeContext): Promise => { - const contents: RecordsEvent = {} as any; - contents.Payload = output.body; - return contents; -}; -const de_StatsEvent_event = async (output: any, context: __SerdeContext): Promise => { - const contents: StatsEvent = {} as any; - const data: any = await parseBody(output.body, context); - contents.Details = de_Stats(data, context); - return contents; -}; -/** - * serializeAws_restXmlAbortIncompleteMultipartUpload - */ -const se_AbortIncompleteMultipartUpload = (input: AbortIncompleteMultipartUpload, context: __SerdeContext): any => { - const bn = new __XmlNode(_AIMU); - if (input[_DAI] != null) { - bn.c(__XmlNode.of(_DAI, String(input[_DAI])).n(_DAI)); - } - return bn; -}; - -/** - * serializeAws_restXmlAccelerateConfiguration - */ -const se_AccelerateConfiguration = (input: AccelerateConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_ACc); - if (input[_S] != null) { - bn.c(__XmlNode.of(_BAS, input[_S]).n(_S)); - } - return bn; -}; - -/** - * serializeAws_restXmlAccessControlPolicy - */ -const se_AccessControlPolicy = (input: AccessControlPolicy, context: __SerdeContext): any => { - const bn = new __XmlNode(_ACP); - bn.lc(input, "Grants", "AccessControlList", () => se_Grants(input[_Gr]!, context)); - if (input[_O] != null) { - bn.c(se_Owner(input[_O], context).n(_O)); - } - return bn; -}; - -/** - * serializeAws_restXmlAccessControlTranslation - */ -const se_AccessControlTranslation = (input: AccessControlTranslation, context: __SerdeContext): any => { - const bn = new __XmlNode(_ACT); - if (input[_O] != null) { - bn.c(__XmlNode.of(_OOw, input[_O]).n(_O)); - } - return bn; -}; - -/** - * serializeAws_restXmlAllowedHeaders - */ -const se_AllowedHeaders = (input: string[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = __XmlNode.of(_AH, entry); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlAllowedMethods - */ -const se_AllowedMethods = (input: string[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = __XmlNode.of(_AM, entry); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlAllowedOrigins - */ -const se_AllowedOrigins = (input: string[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = __XmlNode.of(_AO, entry); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlAnalyticsAndOperator - */ -const se_AnalyticsAndOperator = (input: AnalyticsAndOperator, context: __SerdeContext): any => { - const bn = new __XmlNode(_AAO); - bn.cc(input, _P); - bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); - return bn; -}; - -/** - * serializeAws_restXmlAnalyticsConfiguration - */ -const se_AnalyticsConfiguration = (input: AnalyticsConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_AC); - if (input[_I] != null) { - bn.c(__XmlNode.of(_AI, input[_I]).n(_I)); - } - if (input[_F] != null) { - bn.c(se_AnalyticsFilter(input[_F], context).n(_F)); - } - if (input[_SCA] != null) { - bn.c(se_StorageClassAnalysis(input[_SCA], context).n(_SCA)); - } - return bn; -}; - -/** - * serializeAws_restXmlAnalyticsExportDestination - */ -const se_AnalyticsExportDestination = (input: AnalyticsExportDestination, context: __SerdeContext): any => { - const bn = new __XmlNode(_AED); - if (input[_SBD] != null) { - bn.c(se_AnalyticsS3BucketDestination(input[_SBD], context).n(_SBD)); - } - return bn; -}; - -/** - * serializeAws_restXmlAnalyticsFilter - */ -const se_AnalyticsFilter = (input: AnalyticsFilter, context: __SerdeContext): any => { - const bn = new __XmlNode(_AF); - AnalyticsFilter.visit(input, { - Prefix: (value) => { - if (input[_P] != null) { - bn.c(__XmlNode.of(_P, value).n(_P)); - } - }, - Tag: (value) => { - if (input[_Ta] != null) { - bn.c(se_Tag(value, context).n(_Ta)); - } - }, - And: (value) => { - if (input[_A] != null) { - bn.c(se_AnalyticsAndOperator(value, context).n(_A)); - } - }, - _: (name: string, value: any) => { - if (!(value instanceof __XmlNode || value instanceof __XmlText)) { - throw new Error("Unable to serialize unknown union members in XML."); - } - bn.c(new __XmlNode(name).c(value)); - }, - }); - return bn; -}; - -/** - * serializeAws_restXmlAnalyticsS3BucketDestination - */ -const se_AnalyticsS3BucketDestination = (input: AnalyticsS3BucketDestination, context: __SerdeContext): any => { - const bn = new __XmlNode(_ASBD); - if (input[_Fo] != null) { - bn.c(__XmlNode.of(_ASEFF, input[_Fo]).n(_Fo)); - } - if (input[_BAI] != null) { - bn.c(__XmlNode.of(_AIc, input[_BAI]).n(_BAI)); - } - if (input[_B] != null) { - bn.c(__XmlNode.of(_BN, input[_B]).n(_B)); - } - bn.cc(input, _P); - return bn; -}; - -/** - * serializeAws_restXmlBucketInfo - */ -const se_BucketInfo = (input: BucketInfo, context: __SerdeContext): any => { - const bn = new __XmlNode(_BI); - bn.cc(input, _DR); - if (input[_Ty] != null) { - bn.c(__XmlNode.of(_BT, input[_Ty]).n(_Ty)); - } - return bn; -}; - -/** - * serializeAws_restXmlBucketLifecycleConfiguration - */ -const se_BucketLifecycleConfiguration = (input: BucketLifecycleConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_BLC); - bn.l(input, "Rules", "Rule", () => se_LifecycleRules(input[_Rul]!, context)); - return bn; -}; - -/** - * serializeAws_restXmlBucketLoggingStatus - */ -const se_BucketLoggingStatus = (input: BucketLoggingStatus, context: __SerdeContext): any => { - const bn = new __XmlNode(_BLS); - if (input[_LE] != null) { - bn.c(se_LoggingEnabled(input[_LE], context).n(_LE)); - } - return bn; -}; - -/** - * serializeAws_restXmlCompletedMultipartUpload - */ -const se_CompletedMultipartUpload = (input: CompletedMultipartUpload, context: __SerdeContext): any => { - const bn = new __XmlNode(_CMU); - bn.l(input, "Parts", "Part", () => se_CompletedPartList(input[_Part]!, context)); - return bn; -}; - -/** - * serializeAws_restXmlCompletedPart - */ -const se_CompletedPart = (input: CompletedPart, context: __SerdeContext): any => { - const bn = new __XmlNode(_CPo); - bn.cc(input, _ETa); - bn.cc(input, _CCRC); - bn.cc(input, _CCRCC); - bn.cc(input, _CCRCNVME); - bn.cc(input, _CSHA); - bn.cc(input, _CSHAh); - if (input[_PN] != null) { - bn.c(__XmlNode.of(_PN, String(input[_PN])).n(_PN)); - } - return bn; -}; - -/** - * serializeAws_restXmlCompletedPartList - */ -const se_CompletedPartList = (input: CompletedPart[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_CompletedPart(entry, context); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlCondition - */ -const se_Condition = (input: Condition, context: __SerdeContext): any => { - const bn = new __XmlNode(_Con); - bn.cc(input, _HECRE); - bn.cc(input, _KPE); - return bn; -}; - -/** - * serializeAws_restXmlCORSConfiguration - */ -const se_CORSConfiguration = (input: CORSConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_CORSC); - bn.l(input, "CORSRules", "CORSRule", () => se_CORSRules(input[_CORSRu]!, context)); - return bn; -}; - -/** - * serializeAws_restXmlCORSRule - */ -const se_CORSRule = (input: CORSRule, context: __SerdeContext): any => { - const bn = new __XmlNode(_CORSR); - bn.cc(input, _ID_); - bn.l(input, "AllowedHeaders", "AllowedHeader", () => se_AllowedHeaders(input[_AHl]!, context)); - bn.l(input, "AllowedMethods", "AllowedMethod", () => se_AllowedMethods(input[_AMl]!, context)); - bn.l(input, "AllowedOrigins", "AllowedOrigin", () => se_AllowedOrigins(input[_AOl]!, context)); - bn.l(input, "ExposeHeaders", "ExposeHeader", () => se_ExposeHeaders(input[_EH]!, context)); - if (input[_MAS] != null) { - bn.c(__XmlNode.of(_MAS, String(input[_MAS])).n(_MAS)); - } - return bn; -}; - -/** - * serializeAws_restXmlCORSRules - */ -const se_CORSRules = (input: CORSRule[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_CORSRule(entry, context); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlCreateBucketConfiguration - */ -const se_CreateBucketConfiguration = (input: CreateBucketConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_CBC); - if (input[_LC] != null) { - bn.c(__XmlNode.of(_BLCu, input[_LC]).n(_LC)); - } - if (input[_L] != null) { - bn.c(se_LocationInfo(input[_L], context).n(_L)); - } - if (input[_B] != null) { - bn.c(se_BucketInfo(input[_B], context).n(_B)); - } - bn.lc(input, "Tags", "Tags", () => se_TagSet(input[_Tag]!, context)); - return bn; -}; - -/** - * serializeAws_restXmlCSVInput - */ -const se_CSVInput = (input: CSVInput, context: __SerdeContext): any => { - const bn = new __XmlNode(_CSVIn); - bn.cc(input, _FHI); - bn.cc(input, _Com); - bn.cc(input, _QEC); - bn.cc(input, _RD); - bn.cc(input, _FD); - bn.cc(input, _QCuo); - if (input[_AQRD] != null) { - bn.c(__XmlNode.of(_AQRD, String(input[_AQRD])).n(_AQRD)); - } - return bn; -}; - -/** - * serializeAws_restXmlCSVOutput - */ -const se_CSVOutput = (input: CSVOutput, context: __SerdeContext): any => { - const bn = new __XmlNode(_CSVO); - bn.cc(input, _QF); - bn.cc(input, _QEC); - bn.cc(input, _RD); - bn.cc(input, _FD); - bn.cc(input, _QCuo); - return bn; -}; - -/** - * serializeAws_restXmlDefaultRetention - */ -const se_DefaultRetention = (input: DefaultRetention, context: __SerdeContext): any => { - const bn = new __XmlNode(_DRe); - if (input[_Mo] != null) { - bn.c(__XmlNode.of(_OLRM, input[_Mo]).n(_Mo)); - } - if (input[_Da] != null) { - bn.c(__XmlNode.of(_Da, String(input[_Da])).n(_Da)); - } - if (input[_Y] != null) { - bn.c(__XmlNode.of(_Y, String(input[_Y])).n(_Y)); - } - return bn; -}; - -/** - * serializeAws_restXmlDelete - */ -const se_Delete = (input: Delete, context: __SerdeContext): any => { - const bn = new __XmlNode(_Del); - bn.l(input, "Objects", "Object", () => se_ObjectIdentifierList(input[_Ob]!, context)); - if (input[_Q] != null) { - bn.c(__XmlNode.of(_Q, String(input[_Q])).n(_Q)); - } - return bn; -}; - -/** - * serializeAws_restXmlDeleteMarkerReplication - */ -const se_DeleteMarkerReplication = (input: DeleteMarkerReplication, context: __SerdeContext): any => { - const bn = new __XmlNode(_DMR); - if (input[_S] != null) { - bn.c(__XmlNode.of(_DMRS, input[_S]).n(_S)); - } - return bn; -}; - -/** - * serializeAws_restXmlDestination - */ -const se_Destination = (input: Destination, context: __SerdeContext): any => { - const bn = new __XmlNode(_Des); - if (input[_B] != null) { - bn.c(__XmlNode.of(_BN, input[_B]).n(_B)); - } - if (input[_Ac] != null) { - bn.c(__XmlNode.of(_AIc, input[_Ac]).n(_Ac)); - } - bn.cc(input, _SC); - if (input[_ACT] != null) { - bn.c(se_AccessControlTranslation(input[_ACT], context).n(_ACT)); - } - if (input[_ECn] != null) { - bn.c(se_EncryptionConfiguration(input[_ECn], context).n(_ECn)); - } - if (input[_RTe] != null) { - bn.c(se_ReplicationTime(input[_RTe], context).n(_RTe)); - } - if (input[_Me] != null) { - bn.c(se_Metrics(input[_Me], context).n(_Me)); - } - return bn; -}; - -/** - * serializeAws_restXmlEncryption - */ -const se_Encryption = (input: Encryption, context: __SerdeContext): any => { - const bn = new __XmlNode(_En); - if (input[_ETn] != null) { - bn.c(__XmlNode.of(_SSE, input[_ETn]).n(_ETn)); - } - if (input[_KMSKI] != null) { - bn.c(__XmlNode.of(_SSEKMSKI, input[_KMSKI]).n(_KMSKI)); - } - bn.cc(input, _KMSC); - return bn; -}; - -/** - * serializeAws_restXmlEncryptionConfiguration - */ -const se_EncryptionConfiguration = (input: EncryptionConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_ECn); - bn.cc(input, _RKKID); - return bn; -}; - -/** - * serializeAws_restXmlErrorDocument - */ -const se_ErrorDocument = (input: ErrorDocument, context: __SerdeContext): any => { - const bn = new __XmlNode(_ED); - if (input[_K] != null) { - bn.c(__XmlNode.of(_OK, input[_K]).n(_K)); - } - return bn; -}; - -/** - * serializeAws_restXmlEventBridgeConfiguration - */ -const se_EventBridgeConfiguration = (input: EventBridgeConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_EBC); - return bn; -}; - -/** - * serializeAws_restXmlEventList - */ -const se_EventList = (input: Event[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = __XmlNode.of(_Ev, entry); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlExistingObjectReplication - */ -const se_ExistingObjectReplication = (input: ExistingObjectReplication, context: __SerdeContext): any => { - const bn = new __XmlNode(_EOR); - if (input[_S] != null) { - bn.c(__XmlNode.of(_EORS, input[_S]).n(_S)); - } - return bn; -}; - -/** - * serializeAws_restXmlExposeHeaders - */ -const se_ExposeHeaders = (input: string[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = __XmlNode.of(_EHx, entry); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlFilterRule - */ -const se_FilterRule = (input: FilterRule, context: __SerdeContext): any => { - const bn = new __XmlNode(_FR); - if (input[_N] != null) { - bn.c(__XmlNode.of(_FRN, input[_N]).n(_N)); - } - if (input[_Va] != null) { - bn.c(__XmlNode.of(_FRV, input[_Va]).n(_Va)); - } - return bn; -}; - -/** - * serializeAws_restXmlFilterRuleList - */ -const se_FilterRuleList = (input: FilterRule[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_FilterRule(entry, context); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlGlacierJobParameters - */ -const se_GlacierJobParameters = (input: GlacierJobParameters, context: __SerdeContext): any => { - const bn = new __XmlNode(_GJP); - bn.cc(input, _Ti); - return bn; -}; - -/** - * serializeAws_restXmlGrant - */ -const se_Grant = (input: Grant, context: __SerdeContext): any => { - const bn = new __XmlNode(_G); - if (input[_Gra] != null) { - const n = se_Grantee(input[_Gra], context).n(_Gra); - n.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); - bn.c(n); - } - bn.cc(input, _Pe); - return bn; -}; - -/** - * serializeAws_restXmlGrantee - */ -const se_Grantee = (input: Grantee, context: __SerdeContext): any => { - const bn = new __XmlNode(_Gra); - bn.cc(input, _DN); - bn.cc(input, _EA); - bn.cc(input, _ID_); - bn.cc(input, _URI); - bn.a("xsi:type", input[_Ty]); - return bn; -}; - -/** - * serializeAws_restXmlGrants - */ -const se_Grants = (input: Grant[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_Grant(entry, context); - return n.n(_G); - }); -}; - -/** - * serializeAws_restXmlIndexDocument - */ -const se_IndexDocument = (input: IndexDocument, context: __SerdeContext): any => { - const bn = new __XmlNode(_ID); - bn.cc(input, _Su); - return bn; -}; - -/** - * serializeAws_restXmlInputSerialization - */ -const se_InputSerialization = (input: InputSerialization, context: __SerdeContext): any => { - const bn = new __XmlNode(_IS); - if (input[_CSV] != null) { - bn.c(se_CSVInput(input[_CSV], context).n(_CSV)); - } - bn.cc(input, _CTom); - if (input[_JSON] != null) { - bn.c(se_JSONInput(input[_JSON], context).n(_JSON)); - } - if (input[_Parq] != null) { - bn.c(se_ParquetInput(input[_Parq], context).n(_Parq)); - } - return bn; -}; - -/** - * serializeAws_restXmlIntelligentTieringAndOperator - */ -const se_IntelligentTieringAndOperator = (input: IntelligentTieringAndOperator, context: __SerdeContext): any => { - const bn = new __XmlNode(_ITAO); - bn.cc(input, _P); - bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); - return bn; -}; - -/** - * serializeAws_restXmlIntelligentTieringConfiguration - */ -const se_IntelligentTieringConfiguration = (input: IntelligentTieringConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_ITC); - if (input[_I] != null) { - bn.c(__XmlNode.of(_ITI, input[_I]).n(_I)); - } - if (input[_F] != null) { - bn.c(se_IntelligentTieringFilter(input[_F], context).n(_F)); - } - if (input[_S] != null) { - bn.c(__XmlNode.of(_ITS, input[_S]).n(_S)); - } - bn.l(input, "Tierings", "Tiering", () => se_TieringList(input[_Tie]!, context)); - return bn; -}; - -/** - * serializeAws_restXmlIntelligentTieringFilter - */ -const se_IntelligentTieringFilter = (input: IntelligentTieringFilter, context: __SerdeContext): any => { - const bn = new __XmlNode(_ITF); - bn.cc(input, _P); - if (input[_Ta] != null) { - bn.c(se_Tag(input[_Ta], context).n(_Ta)); - } - if (input[_A] != null) { - bn.c(se_IntelligentTieringAndOperator(input[_A], context).n(_A)); - } - return bn; -}; - -/** - * serializeAws_restXmlInventoryConfiguration - */ -const se_InventoryConfiguration = (input: InventoryConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_IC); - if (input[_Des] != null) { - bn.c(se_InventoryDestination(input[_Des], context).n(_Des)); - } - if (input[_IE] != null) { - bn.c(__XmlNode.of(_IE, String(input[_IE])).n(_IE)); - } - if (input[_F] != null) { - bn.c(se_InventoryFilter(input[_F], context).n(_F)); - } - if (input[_I] != null) { - bn.c(__XmlNode.of(_II, input[_I]).n(_I)); - } - if (input[_IOV] != null) { - bn.c(__XmlNode.of(_IIOV, input[_IOV]).n(_IOV)); - } - bn.lc(input, "OptionalFields", "OptionalFields", () => se_InventoryOptionalFields(input[_OF]!, context)); - if (input[_Sc] != null) { - bn.c(se_InventorySchedule(input[_Sc], context).n(_Sc)); - } - return bn; -}; - -/** - * serializeAws_restXmlInventoryDestination - */ -const se_InventoryDestination = (input: InventoryDestination, context: __SerdeContext): any => { - const bn = new __XmlNode(_IDn); - if (input[_SBD] != null) { - bn.c(se_InventoryS3BucketDestination(input[_SBD], context).n(_SBD)); - } - return bn; -}; - -/** - * serializeAws_restXmlInventoryEncryption - */ -const se_InventoryEncryption = (input: InventoryEncryption, context: __SerdeContext): any => { - const bn = new __XmlNode(_IEn); - if (input[_SSES] != null) { - bn.c(se_SSES3(input[_SSES], context).n(_SS)); - } - if (input[_SSEKMS] != null) { - bn.c(se_SSEKMS(input[_SSEKMS], context).n(_SK)); - } - return bn; -}; - -/** - * serializeAws_restXmlInventoryFilter - */ -const se_InventoryFilter = (input: InventoryFilter, context: __SerdeContext): any => { - const bn = new __XmlNode(_IF); - bn.cc(input, _P); - return bn; -}; - -/** - * serializeAws_restXmlInventoryOptionalFields - */ -const se_InventoryOptionalFields = (input: InventoryOptionalField[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = __XmlNode.of(_IOF, entry); - return n.n(_Fi); - }); -}; - -/** - * serializeAws_restXmlInventoryS3BucketDestination - */ -const se_InventoryS3BucketDestination = (input: InventoryS3BucketDestination, context: __SerdeContext): any => { - const bn = new __XmlNode(_ISBD); - bn.cc(input, _AIc); - if (input[_B] != null) { - bn.c(__XmlNode.of(_BN, input[_B]).n(_B)); - } - if (input[_Fo] != null) { - bn.c(__XmlNode.of(_IFn, input[_Fo]).n(_Fo)); - } - bn.cc(input, _P); - if (input[_En] != null) { - bn.c(se_InventoryEncryption(input[_En], context).n(_En)); - } - return bn; -}; - -/** - * serializeAws_restXmlInventorySchedule - */ -const se_InventorySchedule = (input: InventorySchedule, context: __SerdeContext): any => { - const bn = new __XmlNode(_ISn); - if (input[_Fr] != null) { - bn.c(__XmlNode.of(_IFnv, input[_Fr]).n(_Fr)); - } - return bn; -}; - -/** - * serializeAws_restXmlInventoryTableConfiguration - */ -const se_InventoryTableConfiguration = (input: InventoryTableConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_ITCn); - if (input[_CSo] != null) { - bn.c(__XmlNode.of(_ICS, input[_CSo]).n(_CSo)); - } - if (input[_ECn] != null) { - bn.c(se_MetadataTableEncryptionConfiguration(input[_ECn], context).n(_ECn)); - } - return bn; -}; - -/** - * serializeAws_restXmlInventoryTableConfigurationUpdates - */ -const se_InventoryTableConfigurationUpdates = ( - input: InventoryTableConfigurationUpdates, - context: __SerdeContext -): any => { - const bn = new __XmlNode(_ITCU); - if (input[_CSo] != null) { - bn.c(__XmlNode.of(_ICS, input[_CSo]).n(_CSo)); - } - if (input[_ECn] != null) { - bn.c(se_MetadataTableEncryptionConfiguration(input[_ECn], context).n(_ECn)); - } - return bn; -}; - -/** - * serializeAws_restXmlJournalTableConfiguration - */ -const se_JournalTableConfiguration = (input: JournalTableConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_JTC); - if (input[_REe] != null) { - bn.c(se_RecordExpiration(input[_REe], context).n(_REe)); - } - if (input[_ECn] != null) { - bn.c(se_MetadataTableEncryptionConfiguration(input[_ECn], context).n(_ECn)); - } - return bn; -}; - -/** - * serializeAws_restXmlJournalTableConfigurationUpdates - */ -const se_JournalTableConfigurationUpdates = (input: JournalTableConfigurationUpdates, context: __SerdeContext): any => { - const bn = new __XmlNode(_JTCU); - if (input[_REe] != null) { - bn.c(se_RecordExpiration(input[_REe], context).n(_REe)); - } - return bn; -}; - -/** - * serializeAws_restXmlJSONInput - */ -const se_JSONInput = (input: JSONInput, context: __SerdeContext): any => { - const bn = new __XmlNode(_JSONI); - if (input[_Ty] != null) { - bn.c(__XmlNode.of(_JSONT, input[_Ty]).n(_Ty)); - } - return bn; -}; - -/** - * serializeAws_restXmlJSONOutput - */ -const se_JSONOutput = (input: JSONOutput, context: __SerdeContext): any => { - const bn = new __XmlNode(_JSONO); - bn.cc(input, _RD); - return bn; -}; - -/** - * serializeAws_restXmlLambdaFunctionConfiguration - */ -const se_LambdaFunctionConfiguration = (input: LambdaFunctionConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_LFCa); - if (input[_I] != null) { - bn.c(__XmlNode.of(_NI, input[_I]).n(_I)); - } - if (input[_LFA] != null) { - bn.c(__XmlNode.of(_LFA, input[_LFA]).n(_CF)); - } - bn.l(input, "Events", "Event", () => se_EventList(input[_Eve]!, context)); - if (input[_F] != null) { - bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F)); - } - return bn; -}; - -/** - * serializeAws_restXmlLambdaFunctionConfigurationList - */ -const se_LambdaFunctionConfigurationList = (input: LambdaFunctionConfiguration[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_LambdaFunctionConfiguration(entry, context); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlLifecycleExpiration - */ -const se_LifecycleExpiration = (input: LifecycleExpiration, context: __SerdeContext): any => { - const bn = new __XmlNode(_LEi); - if (input[_Dat] != null) { - bn.c(__XmlNode.of(_Dat, __serializeDateTime(input[_Dat]).toString()).n(_Dat)); - } - if (input[_Da] != null) { - bn.c(__XmlNode.of(_Da, String(input[_Da])).n(_Da)); - } - if (input[_EODM] != null) { - bn.c(__XmlNode.of(_EODM, String(input[_EODM])).n(_EODM)); - } - return bn; -}; - -/** - * serializeAws_restXmlLifecycleRule - */ -const se_LifecycleRule = (input: LifecycleRule, context: __SerdeContext): any => { - const bn = new __XmlNode(_LR); - if (input[_Exp] != null) { - bn.c(se_LifecycleExpiration(input[_Exp], context).n(_Exp)); - } - bn.cc(input, _ID_); - bn.cc(input, _P); - if (input[_F] != null) { - bn.c(se_LifecycleRuleFilter(input[_F], context).n(_F)); - } - if (input[_S] != null) { - bn.c(__XmlNode.of(_ESx, input[_S]).n(_S)); - } - bn.l(input, "Transitions", "Transition", () => se_TransitionList(input[_Tr]!, context)); - bn.l(input, "NoncurrentVersionTransitions", "NoncurrentVersionTransition", () => - se_NoncurrentVersionTransitionList(input[_NVT]!, context) - ); - if (input[_NVE] != null) { - bn.c(se_NoncurrentVersionExpiration(input[_NVE], context).n(_NVE)); - } - if (input[_AIMU] != null) { - bn.c(se_AbortIncompleteMultipartUpload(input[_AIMU], context).n(_AIMU)); - } - return bn; -}; - -/** - * serializeAws_restXmlLifecycleRuleAndOperator - */ -const se_LifecycleRuleAndOperator = (input: LifecycleRuleAndOperator, context: __SerdeContext): any => { - const bn = new __XmlNode(_LRAO); - bn.cc(input, _P); - bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); - if (input[_OSGT] != null) { - bn.c(__XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT)); - } - if (input[_OSLT] != null) { - bn.c(__XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT)); - } - return bn; -}; - -/** - * serializeAws_restXmlLifecycleRuleFilter - */ -const se_LifecycleRuleFilter = (input: LifecycleRuleFilter, context: __SerdeContext): any => { - const bn = new __XmlNode(_LRF); - bn.cc(input, _P); - if (input[_Ta] != null) { - bn.c(se_Tag(input[_Ta], context).n(_Ta)); - } - if (input[_OSGT] != null) { - bn.c(__XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT)); - } - if (input[_OSLT] != null) { - bn.c(__XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT)); - } - if (input[_A] != null) { - bn.c(se_LifecycleRuleAndOperator(input[_A], context).n(_A)); - } - return bn; -}; - -/** - * serializeAws_restXmlLifecycleRules - */ -const se_LifecycleRules = (input: LifecycleRule[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_LifecycleRule(entry, context); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlLocationInfo - */ -const se_LocationInfo = (input: LocationInfo, context: __SerdeContext): any => { - const bn = new __XmlNode(_LI); - if (input[_Ty] != null) { - bn.c(__XmlNode.of(_LT, input[_Ty]).n(_Ty)); - } - if (input[_N] != null) { - bn.c(__XmlNode.of(_LNAS, input[_N]).n(_N)); - } - return bn; -}; - -/** - * serializeAws_restXmlLoggingEnabled - */ -const se_LoggingEnabled = (input: LoggingEnabled, context: __SerdeContext): any => { - const bn = new __XmlNode(_LE); - bn.cc(input, _TB); - bn.lc(input, "TargetGrants", "TargetGrants", () => se_TargetGrants(input[_TG]!, context)); - bn.cc(input, _TP); - if (input[_TOKF] != null) { - bn.c(se_TargetObjectKeyFormat(input[_TOKF], context).n(_TOKF)); - } - return bn; -}; - -/** - * serializeAws_restXmlMetadataConfiguration - */ -const se_MetadataConfiguration = (input: MetadataConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_MCe); - if (input[_JTC] != null) { - bn.c(se_JournalTableConfiguration(input[_JTC], context).n(_JTC)); - } - if (input[_ITCn] != null) { - bn.c(se_InventoryTableConfiguration(input[_ITCn], context).n(_ITCn)); - } - return bn; -}; - -/** - * serializeAws_restXmlMetadataEntry - */ -const se_MetadataEntry = (input: MetadataEntry, context: __SerdeContext): any => { - const bn = new __XmlNode(_ME); - if (input[_N] != null) { - bn.c(__XmlNode.of(_MKe, input[_N]).n(_N)); - } - if (input[_Va] != null) { - bn.c(__XmlNode.of(_MV, input[_Va]).n(_Va)); - } - return bn; -}; - -/** - * serializeAws_restXmlMetadataTableConfiguration - */ -const se_MetadataTableConfiguration = (input: MetadataTableConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_MTC); - if (input[_STD] != null) { - bn.c(se_S3TablesDestination(input[_STD], context).n(_STD)); - } - return bn; -}; - -/** - * serializeAws_restXmlMetadataTableEncryptionConfiguration - */ -const se_MetadataTableEncryptionConfiguration = ( - input: MetadataTableEncryptionConfiguration, - context: __SerdeContext -): any => { - const bn = new __XmlNode(_MTEC); - if (input[_SAs] != null) { - bn.c(__XmlNode.of(_TSA, input[_SAs]).n(_SAs)); - } - bn.cc(input, _KKA); - return bn; -}; - -/** - * serializeAws_restXmlMetrics - */ -const se_Metrics = (input: Metrics, context: __SerdeContext): any => { - const bn = new __XmlNode(_Me); - if (input[_S] != null) { - bn.c(__XmlNode.of(_MS, input[_S]).n(_S)); - } - if (input[_ETv] != null) { - bn.c(se_ReplicationTimeValue(input[_ETv], context).n(_ETv)); - } - return bn; -}; - -/** - * serializeAws_restXmlMetricsAndOperator - */ -const se_MetricsAndOperator = (input: MetricsAndOperator, context: __SerdeContext): any => { - const bn = new __XmlNode(_MAO); - bn.cc(input, _P); - bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); - bn.cc(input, _APAc); - return bn; -}; - -/** - * serializeAws_restXmlMetricsConfiguration - */ -const se_MetricsConfiguration = (input: MetricsConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_MC); - if (input[_I] != null) { - bn.c(__XmlNode.of(_MI, input[_I]).n(_I)); - } - if (input[_F] != null) { - bn.c(se_MetricsFilter(input[_F], context).n(_F)); - } - return bn; -}; - -/** - * serializeAws_restXmlMetricsFilter - */ -const se_MetricsFilter = (input: MetricsFilter, context: __SerdeContext): any => { - const bn = new __XmlNode(_MF); - MetricsFilter.visit(input, { - Prefix: (value) => { - if (input[_P] != null) { - bn.c(__XmlNode.of(_P, value).n(_P)); - } - }, - Tag: (value) => { - if (input[_Ta] != null) { - bn.c(se_Tag(value, context).n(_Ta)); - } - }, - AccessPointArn: (value) => { - if (input[_APAc] != null) { - bn.c(__XmlNode.of(_APAc, value).n(_APAc)); - } - }, - And: (value) => { - if (input[_A] != null) { - bn.c(se_MetricsAndOperator(value, context).n(_A)); - } - }, - _: (name: string, value: any) => { - if (!(value instanceof __XmlNode || value instanceof __XmlText)) { - throw new Error("Unable to serialize unknown union members in XML."); - } - bn.c(new __XmlNode(name).c(value)); - }, - }); - return bn; -}; - -/** - * serializeAws_restXmlNoncurrentVersionExpiration - */ -const se_NoncurrentVersionExpiration = (input: NoncurrentVersionExpiration, context: __SerdeContext): any => { - const bn = new __XmlNode(_NVE); - if (input[_ND] != null) { - bn.c(__XmlNode.of(_Da, String(input[_ND])).n(_ND)); - } - if (input[_NNV] != null) { - bn.c(__XmlNode.of(_VC, String(input[_NNV])).n(_NNV)); - } - return bn; -}; - -/** - * serializeAws_restXmlNoncurrentVersionTransition - */ -const se_NoncurrentVersionTransition = (input: NoncurrentVersionTransition, context: __SerdeContext): any => { - const bn = new __XmlNode(_NVTo); - if (input[_ND] != null) { - bn.c(__XmlNode.of(_Da, String(input[_ND])).n(_ND)); - } - if (input[_SC] != null) { - bn.c(__XmlNode.of(_TSC, input[_SC]).n(_SC)); - } - if (input[_NNV] != null) { - bn.c(__XmlNode.of(_VC, String(input[_NNV])).n(_NNV)); - } - return bn; -}; - -/** - * serializeAws_restXmlNoncurrentVersionTransitionList - */ -const se_NoncurrentVersionTransitionList = (input: NoncurrentVersionTransition[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_NoncurrentVersionTransition(entry, context); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlNotificationConfiguration - */ -const se_NotificationConfiguration = (input: NotificationConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_NC); - bn.l(input, "TopicConfigurations", "TopicConfiguration", () => se_TopicConfigurationList(input[_TCop]!, context)); - bn.l(input, "QueueConfigurations", "QueueConfiguration", () => se_QueueConfigurationList(input[_QCu]!, context)); - bn.l(input, "LambdaFunctionConfigurations", "CloudFunctionConfiguration", () => - se_LambdaFunctionConfigurationList(input[_LFC]!, context) - ); - if (input[_EBC] != null) { - bn.c(se_EventBridgeConfiguration(input[_EBC], context).n(_EBC)); - } - return bn; -}; - -/** - * serializeAws_restXmlNotificationConfigurationFilter - */ -const se_NotificationConfigurationFilter = (input: NotificationConfigurationFilter, context: __SerdeContext): any => { - const bn = new __XmlNode(_NCF); - if (input[_K] != null) { - bn.c(se_S3KeyFilter(input[_K], context).n(_SKe)); - } - return bn; -}; - -/** - * serializeAws_restXmlObjectIdentifier - */ -const se_ObjectIdentifier = (input: ObjectIdentifier, context: __SerdeContext): any => { - const bn = new __XmlNode(_OI); - if (input[_K] != null) { - bn.c(__XmlNode.of(_OK, input[_K]).n(_K)); - } - if (input[_VI] != null) { - bn.c(__XmlNode.of(_OVI, input[_VI]).n(_VI)); - } - bn.cc(input, _ETa); - if (input[_LMT] != null) { - bn.c(__XmlNode.of(_LMT, __dateToUtcString(input[_LMT]).toString()).n(_LMT)); - } - if (input[_Si] != null) { - bn.c(__XmlNode.of(_Si, String(input[_Si])).n(_Si)); - } - return bn; -}; - -/** - * serializeAws_restXmlObjectIdentifierList - */ -const se_ObjectIdentifierList = (input: ObjectIdentifier[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_ObjectIdentifier(entry, context); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlObjectLockConfiguration - */ -const se_ObjectLockConfiguration = (input: ObjectLockConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_OLC); - bn.cc(input, _OLE); - if (input[_Ru] != null) { - bn.c(se_ObjectLockRule(input[_Ru], context).n(_Ru)); - } - return bn; -}; - -/** - * serializeAws_restXmlObjectLockLegalHold - */ -const se_ObjectLockLegalHold = (input: ObjectLockLegalHold, context: __SerdeContext): any => { - const bn = new __XmlNode(_OLLH); - if (input[_S] != null) { - bn.c(__XmlNode.of(_OLLHS, input[_S]).n(_S)); - } - return bn; -}; - -/** - * serializeAws_restXmlObjectLockRetention - */ -const se_ObjectLockRetention = (input: ObjectLockRetention, context: __SerdeContext): any => { - const bn = new __XmlNode(_OLR); - if (input[_Mo] != null) { - bn.c(__XmlNode.of(_OLRM, input[_Mo]).n(_Mo)); - } - if (input[_RUD] != null) { - bn.c(__XmlNode.of(_Dat, __serializeDateTime(input[_RUD]).toString()).n(_RUD)); - } - return bn; -}; - -/** - * serializeAws_restXmlObjectLockRule - */ -const se_ObjectLockRule = (input: ObjectLockRule, context: __SerdeContext): any => { - const bn = new __XmlNode(_OLRb); - if (input[_DRe] != null) { - bn.c(se_DefaultRetention(input[_DRe], context).n(_DRe)); - } - return bn; -}; - -/** - * serializeAws_restXmlOutputLocation - */ -const se_OutputLocation = (input: OutputLocation, context: __SerdeContext): any => { - const bn = new __XmlNode(_OL); - if (input[_S_] != null) { - bn.c(se_S3Location(input[_S_], context).n(_S_)); - } - return bn; -}; - -/** - * serializeAws_restXmlOutputSerialization - */ -const se_OutputSerialization = (input: OutputSerialization, context: __SerdeContext): any => { - const bn = new __XmlNode(_OS); - if (input[_CSV] != null) { - bn.c(se_CSVOutput(input[_CSV], context).n(_CSV)); - } - if (input[_JSON] != null) { - bn.c(se_JSONOutput(input[_JSON], context).n(_JSON)); - } - return bn; -}; - -/** - * serializeAws_restXmlOwner - */ -const se_Owner = (input: Owner, context: __SerdeContext): any => { - const bn = new __XmlNode(_O); - bn.cc(input, _DN); - bn.cc(input, _ID_); - return bn; -}; - -/** - * serializeAws_restXmlOwnershipControls - */ -const se_OwnershipControls = (input: OwnershipControls, context: __SerdeContext): any => { - const bn = new __XmlNode(_OC); - bn.l(input, "Rules", "Rule", () => se_OwnershipControlsRules(input[_Rul]!, context)); - return bn; -}; - -/** - * serializeAws_restXmlOwnershipControlsRule - */ -const se_OwnershipControlsRule = (input: OwnershipControlsRule, context: __SerdeContext): any => { - const bn = new __XmlNode(_OCR); - bn.cc(input, _OO); - return bn; -}; - -/** - * serializeAws_restXmlOwnershipControlsRules - */ -const se_OwnershipControlsRules = (input: OwnershipControlsRule[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_OwnershipControlsRule(entry, context); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlParquetInput - */ -const se_ParquetInput = (input: ParquetInput, context: __SerdeContext): any => { - const bn = new __XmlNode(_PI); - return bn; -}; - -/** - * serializeAws_restXmlPartitionedPrefix - */ -const se_PartitionedPrefix = (input: PartitionedPrefix, context: __SerdeContext): any => { - const bn = new __XmlNode(_PP); - bn.cc(input, _PDS); - return bn; -}; - -/** - * serializeAws_restXmlPublicAccessBlockConfiguration - */ -const se_PublicAccessBlockConfiguration = (input: PublicAccessBlockConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_PABC); - if (input[_BPA] != null) { - bn.c(__XmlNode.of(_Se, String(input[_BPA])).n(_BPA)); - } - if (input[_IPA] != null) { - bn.c(__XmlNode.of(_Se, String(input[_IPA])).n(_IPA)); - } - if (input[_BPP] != null) { - bn.c(__XmlNode.of(_Se, String(input[_BPP])).n(_BPP)); - } - if (input[_RPB] != null) { - bn.c(__XmlNode.of(_Se, String(input[_RPB])).n(_RPB)); - } - return bn; -}; - -/** - * serializeAws_restXmlQueueConfiguration - */ -const se_QueueConfiguration = (input: QueueConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_QC); - if (input[_I] != null) { - bn.c(__XmlNode.of(_NI, input[_I]).n(_I)); - } - if (input[_QA] != null) { - bn.c(__XmlNode.of(_QA, input[_QA]).n(_Qu)); - } - bn.l(input, "Events", "Event", () => se_EventList(input[_Eve]!, context)); - if (input[_F] != null) { - bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F)); - } - return bn; -}; - -/** - * serializeAws_restXmlQueueConfigurationList - */ -const se_QueueConfigurationList = (input: QueueConfiguration[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_QueueConfiguration(entry, context); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlRecordExpiration - */ -const se_RecordExpiration = (input: RecordExpiration, context: __SerdeContext): any => { - const bn = new __XmlNode(_REe); - if (input[_Exp] != null) { - bn.c(__XmlNode.of(_ESxp, input[_Exp]).n(_Exp)); - } - if (input[_Da] != null) { - bn.c(__XmlNode.of(_RED, String(input[_Da])).n(_Da)); - } - return bn; -}; - -/** - * serializeAws_restXmlRedirect - */ -const se_Redirect = (input: Redirect, context: __SerdeContext): any => { - const bn = new __XmlNode(_Red); - bn.cc(input, _HN); - bn.cc(input, _HRC); - bn.cc(input, _Pr); - bn.cc(input, _RKPW); - bn.cc(input, _RKW); - return bn; -}; - -/** - * serializeAws_restXmlRedirectAllRequestsTo - */ -const se_RedirectAllRequestsTo = (input: RedirectAllRequestsTo, context: __SerdeContext): any => { - const bn = new __XmlNode(_RART); - bn.cc(input, _HN); - bn.cc(input, _Pr); - return bn; -}; - -/** - * serializeAws_restXmlReplicaModifications - */ -const se_ReplicaModifications = (input: ReplicaModifications, context: __SerdeContext): any => { - const bn = new __XmlNode(_RM); - if (input[_S] != null) { - bn.c(__XmlNode.of(_RMS, input[_S]).n(_S)); - } - return bn; -}; - -/** - * serializeAws_restXmlReplicationConfiguration - */ -const se_ReplicationConfiguration = (input: ReplicationConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_RCe); - bn.cc(input, _Ro); - bn.l(input, "Rules", "Rule", () => se_ReplicationRules(input[_Rul]!, context)); - return bn; -}; - -/** - * serializeAws_restXmlReplicationRule - */ -const se_ReplicationRule = (input: ReplicationRule, context: __SerdeContext): any => { - const bn = new __XmlNode(_RRe); - bn.cc(input, _ID_); - if (input[_Pri] != null) { - bn.c(__XmlNode.of(_Pri, String(input[_Pri])).n(_Pri)); - } - bn.cc(input, _P); - if (input[_F] != null) { - bn.c(se_ReplicationRuleFilter(input[_F], context).n(_F)); - } - if (input[_S] != null) { - bn.c(__XmlNode.of(_RRS, input[_S]).n(_S)); - } - if (input[_SSC] != null) { - bn.c(se_SourceSelectionCriteria(input[_SSC], context).n(_SSC)); - } - if (input[_EOR] != null) { - bn.c(se_ExistingObjectReplication(input[_EOR], context).n(_EOR)); - } - if (input[_Des] != null) { - bn.c(se_Destination(input[_Des], context).n(_Des)); - } - if (input[_DMR] != null) { - bn.c(se_DeleteMarkerReplication(input[_DMR], context).n(_DMR)); - } - return bn; -}; - -/** - * serializeAws_restXmlReplicationRuleAndOperator - */ -const se_ReplicationRuleAndOperator = (input: ReplicationRuleAndOperator, context: __SerdeContext): any => { - const bn = new __XmlNode(_RRAO); - bn.cc(input, _P); - bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); - return bn; -}; - -/** - * serializeAws_restXmlReplicationRuleFilter - */ -const se_ReplicationRuleFilter = (input: ReplicationRuleFilter, context: __SerdeContext): any => { - const bn = new __XmlNode(_RRF); - bn.cc(input, _P); - if (input[_Ta] != null) { - bn.c(se_Tag(input[_Ta], context).n(_Ta)); - } - if (input[_A] != null) { - bn.c(se_ReplicationRuleAndOperator(input[_A], context).n(_A)); - } - return bn; -}; - -/** - * serializeAws_restXmlReplicationRules - */ -const se_ReplicationRules = (input: ReplicationRule[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_ReplicationRule(entry, context); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlReplicationTime - */ -const se_ReplicationTime = (input: ReplicationTime, context: __SerdeContext): any => { - const bn = new __XmlNode(_RTe); - if (input[_S] != null) { - bn.c(__XmlNode.of(_RTS, input[_S]).n(_S)); - } - if (input[_Tim] != null) { - bn.c(se_ReplicationTimeValue(input[_Tim], context).n(_Tim)); - } - return bn; -}; - -/** - * serializeAws_restXmlReplicationTimeValue - */ -const se_ReplicationTimeValue = (input: ReplicationTimeValue, context: __SerdeContext): any => { - const bn = new __XmlNode(_RTV); - if (input[_Mi] != null) { - bn.c(__XmlNode.of(_Mi, String(input[_Mi])).n(_Mi)); - } - return bn; -}; - -/** - * serializeAws_restXmlRequestPaymentConfiguration - */ -const se_RequestPaymentConfiguration = (input: RequestPaymentConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_RPC); - bn.cc(input, _Pa); - return bn; -}; - -/** - * serializeAws_restXmlRequestProgress - */ -const se_RequestProgress = (input: RequestProgress, context: __SerdeContext): any => { - const bn = new __XmlNode(_RPe); - if (input[_Ena] != null) { - bn.c(__XmlNode.of(_ERP, String(input[_Ena])).n(_Ena)); - } - return bn; -}; - -/** - * serializeAws_restXmlRestoreRequest - */ -const se_RestoreRequest = (input: RestoreRequest, context: __SerdeContext): any => { - const bn = new __XmlNode(_RRes); - if (input[_Da] != null) { - bn.c(__XmlNode.of(_Da, String(input[_Da])).n(_Da)); - } - if (input[_GJP] != null) { - bn.c(se_GlacierJobParameters(input[_GJP], context).n(_GJP)); - } - if (input[_Ty] != null) { - bn.c(__XmlNode.of(_RRT, input[_Ty]).n(_Ty)); - } - bn.cc(input, _Ti); - bn.cc(input, _Desc); - if (input[_SP] != null) { - bn.c(se_SelectParameters(input[_SP], context).n(_SP)); - } - if (input[_OL] != null) { - bn.c(se_OutputLocation(input[_OL], context).n(_OL)); - } - return bn; -}; - -/** - * serializeAws_restXmlRoutingRule - */ -const se_RoutingRule = (input: RoutingRule, context: __SerdeContext): any => { - const bn = new __XmlNode(_RRou); - if (input[_Con] != null) { - bn.c(se_Condition(input[_Con], context).n(_Con)); - } - if (input[_Red] != null) { - bn.c(se_Redirect(input[_Red], context).n(_Red)); - } - return bn; -}; - -/** - * serializeAws_restXmlRoutingRules - */ -const se_RoutingRules = (input: RoutingRule[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_RoutingRule(entry, context); - return n.n(_RRou); - }); -}; - -/** - * serializeAws_restXmlS3KeyFilter - */ -const se_S3KeyFilter = (input: S3KeyFilter, context: __SerdeContext): any => { - const bn = new __XmlNode(_SKF); - bn.l(input, "FilterRules", "FilterRule", () => se_FilterRuleList(input[_FRi]!, context)); - return bn; -}; - -/** - * serializeAws_restXmlS3Location - */ -const se_S3Location = (input: S3Location, context: __SerdeContext): any => { - const bn = new __XmlNode(_SL); - bn.cc(input, _BN); - if (input[_P] != null) { - bn.c(__XmlNode.of(_LP, input[_P]).n(_P)); - } - if (input[_En] != null) { - bn.c(se_Encryption(input[_En], context).n(_En)); - } - if (input[_CACL] != null) { - bn.c(__XmlNode.of(_OCACL, input[_CACL]).n(_CACL)); - } - bn.lc(input, "AccessControlList", "AccessControlList", () => se_Grants(input[_ACLc]!, context)); - if (input[_T] != null) { - bn.c(se_Tagging(input[_T], context).n(_T)); - } - bn.lc(input, "UserMetadata", "UserMetadata", () => se_UserMetadata(input[_UM]!, context)); - bn.cc(input, _SC); - return bn; -}; - -/** - * serializeAws_restXmlS3TablesDestination - */ -const se_S3TablesDestination = (input: S3TablesDestination, context: __SerdeContext): any => { - const bn = new __XmlNode(_STD); - if (input[_TBA] != null) { - bn.c(__XmlNode.of(_STBA, input[_TBA]).n(_TBA)); - } - if (input[_TN] != null) { - bn.c(__XmlNode.of(_STN, input[_TN]).n(_TN)); - } - return bn; -}; - -/** - * serializeAws_restXmlScanRange - */ -const se_ScanRange = (input: ScanRange, context: __SerdeContext): any => { - const bn = new __XmlNode(_SR); - if (input[_St] != null) { - bn.c(__XmlNode.of(_St, String(input[_St])).n(_St)); - } - if (input[_End] != null) { - bn.c(__XmlNode.of(_End, String(input[_End])).n(_End)); - } - return bn; -}; - -/** - * serializeAws_restXmlSelectParameters - */ -const se_SelectParameters = (input: SelectParameters, context: __SerdeContext): any => { - const bn = new __XmlNode(_SP); - if (input[_IS] != null) { - bn.c(se_InputSerialization(input[_IS], context).n(_IS)); - } - bn.cc(input, _ETx); - bn.cc(input, _Ex); - if (input[_OS] != null) { - bn.c(se_OutputSerialization(input[_OS], context).n(_OS)); - } - return bn; -}; - -/** - * serializeAws_restXmlServerSideEncryptionByDefault - */ -const se_ServerSideEncryptionByDefault = (input: ServerSideEncryptionByDefault, context: __SerdeContext): any => { - const bn = new __XmlNode(_SSEBD); - if (input[_SSEA] != null) { - bn.c(__XmlNode.of(_SSE, input[_SSEA]).n(_SSEA)); - } - if (input[_KMSMKID] != null) { - bn.c(__XmlNode.of(_SSEKMSKI, input[_KMSMKID]).n(_KMSMKID)); - } - return bn; -}; - -/** - * serializeAws_restXmlServerSideEncryptionConfiguration - */ -const se_ServerSideEncryptionConfiguration = ( - input: ServerSideEncryptionConfiguration, - context: __SerdeContext -): any => { - const bn = new __XmlNode(_SSEC); - bn.l(input, "Rules", "Rule", () => se_ServerSideEncryptionRules(input[_Rul]!, context)); - return bn; -}; - -/** - * serializeAws_restXmlServerSideEncryptionRule - */ -const se_ServerSideEncryptionRule = (input: ServerSideEncryptionRule, context: __SerdeContext): any => { - const bn = new __XmlNode(_SSER); - if (input[_ASSEBD] != null) { - bn.c(se_ServerSideEncryptionByDefault(input[_ASSEBD], context).n(_ASSEBD)); - } - if (input[_BKE] != null) { - bn.c(__XmlNode.of(_BKE, String(input[_BKE])).n(_BKE)); - } - return bn; -}; - -/** - * serializeAws_restXmlServerSideEncryptionRules - */ -const se_ServerSideEncryptionRules = (input: ServerSideEncryptionRule[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_ServerSideEncryptionRule(entry, context); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlSimplePrefix - */ -const se_SimplePrefix = (input: SimplePrefix, context: __SerdeContext): any => { - const bn = new __XmlNode(_SPi); - return bn; -}; - -/** - * serializeAws_restXmlSourceSelectionCriteria - */ -const se_SourceSelectionCriteria = (input: SourceSelectionCriteria, context: __SerdeContext): any => { - const bn = new __XmlNode(_SSC); - if (input[_SKEO] != null) { - bn.c(se_SseKmsEncryptedObjects(input[_SKEO], context).n(_SKEO)); - } - if (input[_RM] != null) { - bn.c(se_ReplicaModifications(input[_RM], context).n(_RM)); - } - return bn; -}; - -/** - * serializeAws_restXmlSSEKMS - */ -const se_SSEKMS = (input: SSEKMS, context: __SerdeContext): any => { - const bn = new __XmlNode(_SK); - if (input[_KI] != null) { - bn.c(__XmlNode.of(_SSEKMSKI, input[_KI]).n(_KI)); - } - return bn; -}; - -/** - * serializeAws_restXmlSseKmsEncryptedObjects - */ -const se_SseKmsEncryptedObjects = (input: SseKmsEncryptedObjects, context: __SerdeContext): any => { - const bn = new __XmlNode(_SKEO); - if (input[_S] != null) { - bn.c(__XmlNode.of(_SKEOS, input[_S]).n(_S)); - } - return bn; -}; - -/** - * serializeAws_restXmlSSES3 - */ -const se_SSES3 = (input: SSES3, context: __SerdeContext): any => { - const bn = new __XmlNode(_SS); - return bn; -}; - -/** - * serializeAws_restXmlStorageClassAnalysis - */ -const se_StorageClassAnalysis = (input: StorageClassAnalysis, context: __SerdeContext): any => { - const bn = new __XmlNode(_SCA); - if (input[_DE] != null) { - bn.c(se_StorageClassAnalysisDataExport(input[_DE], context).n(_DE)); - } - return bn; -}; - -/** - * serializeAws_restXmlStorageClassAnalysisDataExport - */ -const se_StorageClassAnalysisDataExport = (input: StorageClassAnalysisDataExport, context: __SerdeContext): any => { - const bn = new __XmlNode(_SCADE); - if (input[_OSV] != null) { - bn.c(__XmlNode.of(_SCASV, input[_OSV]).n(_OSV)); - } - if (input[_Des] != null) { - bn.c(se_AnalyticsExportDestination(input[_Des], context).n(_Des)); - } - return bn; -}; - -/** - * serializeAws_restXmlTag - */ -const se_Tag = (input: Tag, context: __SerdeContext): any => { - const bn = new __XmlNode(_Ta); - if (input[_K] != null) { - bn.c(__XmlNode.of(_OK, input[_K]).n(_K)); - } - bn.cc(input, _Va); - return bn; -}; - -/** - * serializeAws_restXmlTagging - */ -const se_Tagging = (input: Tagging, context: __SerdeContext): any => { - const bn = new __XmlNode(_T); - bn.lc(input, "TagSet", "TagSet", () => se_TagSet(input[_TS]!, context)); - return bn; -}; - -/** - * serializeAws_restXmlTagSet - */ -const se_TagSet = (input: Tag[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_Tag(entry, context); - return n.n(_Ta); - }); -}; - -/** - * serializeAws_restXmlTargetGrant - */ -const se_TargetGrant = (input: TargetGrant, context: __SerdeContext): any => { - const bn = new __XmlNode(_TGa); - if (input[_Gra] != null) { - const n = se_Grantee(input[_Gra], context).n(_Gra); - n.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); - bn.c(n); - } - if (input[_Pe] != null) { - bn.c(__XmlNode.of(_BLP, input[_Pe]).n(_Pe)); - } - return bn; -}; - -/** - * serializeAws_restXmlTargetGrants - */ -const se_TargetGrants = (input: TargetGrant[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_TargetGrant(entry, context); - return n.n(_G); - }); -}; - -/** - * serializeAws_restXmlTargetObjectKeyFormat - */ -const se_TargetObjectKeyFormat = (input: TargetObjectKeyFormat, context: __SerdeContext): any => { - const bn = new __XmlNode(_TOKF); - if (input[_SPi] != null) { - bn.c(se_SimplePrefix(input[_SPi], context).n(_SPi)); - } - if (input[_PP] != null) { - bn.c(se_PartitionedPrefix(input[_PP], context).n(_PP)); - } - return bn; -}; - -/** - * serializeAws_restXmlTiering - */ -const se_Tiering = (input: Tiering, context: __SerdeContext): any => { - const bn = new __XmlNode(_Tier); - if (input[_Da] != null) { - bn.c(__XmlNode.of(_ITD, String(input[_Da])).n(_Da)); - } - if (input[_AT] != null) { - bn.c(__XmlNode.of(_ITAT, input[_AT]).n(_AT)); - } - return bn; -}; - -/** - * serializeAws_restXmlTieringList - */ -const se_TieringList = (input: Tiering[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_Tiering(entry, context); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlTopicConfiguration - */ -const se_TopicConfiguration = (input: TopicConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_TCo); - if (input[_I] != null) { - bn.c(__XmlNode.of(_NI, input[_I]).n(_I)); - } - if (input[_TA] != null) { - bn.c(__XmlNode.of(_TA, input[_TA]).n(_Top)); - } - bn.l(input, "Events", "Event", () => se_EventList(input[_Eve]!, context)); - if (input[_F] != null) { - bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F)); - } - return bn; -}; - -/** - * serializeAws_restXmlTopicConfigurationList - */ -const se_TopicConfigurationList = (input: TopicConfiguration[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_TopicConfiguration(entry, context); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlTransition - */ -const se_Transition = (input: Transition, context: __SerdeContext): any => { - const bn = new __XmlNode(_Tra); - if (input[_Dat] != null) { - bn.c(__XmlNode.of(_Dat, __serializeDateTime(input[_Dat]).toString()).n(_Dat)); - } - if (input[_Da] != null) { - bn.c(__XmlNode.of(_Da, String(input[_Da])).n(_Da)); - } - if (input[_SC] != null) { - bn.c(__XmlNode.of(_TSC, input[_SC]).n(_SC)); - } - return bn; -}; - -/** - * serializeAws_restXmlTransitionList - */ -const se_TransitionList = (input: Transition[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_Transition(entry, context); - return n.n(_me); - }); -}; - -/** - * serializeAws_restXmlUserMetadata - */ -const se_UserMetadata = (input: MetadataEntry[], context: __SerdeContext): any => { - return input - .filter((e: any) => e != null) - .map((entry) => { - const n = se_MetadataEntry(entry, context); - return n.n(_ME); - }); -}; - -/** - * serializeAws_restXmlVersioningConfiguration - */ -const se_VersioningConfiguration = (input: VersioningConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_VCe); - if (input[_MFAD] != null) { - bn.c(__XmlNode.of(_MFAD, input[_MFAD]).n(_MDf)); - } - if (input[_S] != null) { - bn.c(__XmlNode.of(_BVS, input[_S]).n(_S)); - } - return bn; -}; - -/** - * serializeAws_restXmlWebsiteConfiguration - */ -const se_WebsiteConfiguration = (input: WebsiteConfiguration, context: __SerdeContext): any => { - const bn = new __XmlNode(_WC); - if (input[_ED] != null) { - bn.c(se_ErrorDocument(input[_ED], context).n(_ED)); - } - if (input[_ID] != null) { - bn.c(se_IndexDocument(input[_ID], context).n(_ID)); - } - if (input[_RART] != null) { - bn.c(se_RedirectAllRequestsTo(input[_RART], context).n(_RART)); - } - bn.lc(input, "RoutingRules", "RoutingRules", () => se_RoutingRules(input[_RRo]!, context)); - return bn; -}; - -/** - * deserializeAws_restXmlAbortIncompleteMultipartUpload - */ -const de_AbortIncompleteMultipartUpload = (output: any, context: __SerdeContext): AbortIncompleteMultipartUpload => { - const contents: any = {}; - if (output[_DAI] != null) { - contents[_DAI] = __strictParseInt32(output[_DAI]) as number; - } - return contents; -}; - -/** - * deserializeAws_restXmlAccessControlTranslation - */ -const de_AccessControlTranslation = (output: any, context: __SerdeContext): AccessControlTranslation => { - const contents: any = {}; - if (output[_O] != null) { - contents[_O] = __expectString(output[_O]); - } - return contents; -}; - -/** - * deserializeAws_restXmlAllowedHeaders - */ -const de_AllowedHeaders = (output: any, context: __SerdeContext): string[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return __expectString(entry) as any; - }); -}; - -/** - * deserializeAws_restXmlAllowedMethods - */ -const de_AllowedMethods = (output: any, context: __SerdeContext): string[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return __expectString(entry) as any; - }); -}; - -/** - * deserializeAws_restXmlAllowedOrigins - */ -const de_AllowedOrigins = (output: any, context: __SerdeContext): string[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return __expectString(entry) as any; - }); -}; - -/** - * deserializeAws_restXmlAnalyticsAndOperator - */ -const de_AnalyticsAndOperator = (output: any, context: __SerdeContext): AnalyticsAndOperator => { - const contents: any = {}; - if (output[_P] != null) { - contents[_P] = __expectString(output[_P]); - } - if (output.Tag === "") { - contents[_Tag] = []; - } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlAnalyticsConfiguration - */ -const de_AnalyticsConfiguration = (output: any, context: __SerdeContext): AnalyticsConfiguration => { - const contents: any = {}; - if (output[_I] != null) { - contents[_I] = __expectString(output[_I]); - } - if (output.Filter === "") { - // Pass empty tags. - } else if (output[_F] != null) { - contents[_F] = de_AnalyticsFilter(__expectUnion(output[_F]), context); - } - if (output[_SCA] != null) { - contents[_SCA] = de_StorageClassAnalysis(output[_SCA], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlAnalyticsConfigurationList - */ -const de_AnalyticsConfigurationList = (output: any, context: __SerdeContext): AnalyticsConfiguration[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_AnalyticsConfiguration(entry, context); - }); -}; - -/** - * deserializeAws_restXmlAnalyticsExportDestination - */ -const de_AnalyticsExportDestination = (output: any, context: __SerdeContext): AnalyticsExportDestination => { - const contents: any = {}; - if (output[_SBD] != null) { - contents[_SBD] = de_AnalyticsS3BucketDestination(output[_SBD], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlAnalyticsFilter - */ -const de_AnalyticsFilter = (output: any, context: __SerdeContext): AnalyticsFilter => { - if (output[_P] != null) { - return { - Prefix: __expectString(output[_P]) as any, - }; - } - if (output[_Ta] != null) { - return { - Tag: de_Tag(output[_Ta], context), - }; - } - if (output[_A] != null) { - return { - And: de_AnalyticsAndOperator(output[_A], context), - }; - } - return { $unknown: Object.entries(output)[0] }; -}; - -/** - * deserializeAws_restXmlAnalyticsS3BucketDestination - */ -const de_AnalyticsS3BucketDestination = (output: any, context: __SerdeContext): AnalyticsS3BucketDestination => { - const contents: any = {}; - if (output[_Fo] != null) { - contents[_Fo] = __expectString(output[_Fo]); - } - if (output[_BAI] != null) { - contents[_BAI] = __expectString(output[_BAI]); - } - if (output[_B] != null) { - contents[_B] = __expectString(output[_B]); - } - if (output[_P] != null) { - contents[_P] = __expectString(output[_P]); - } - return contents; -}; - -/** - * deserializeAws_restXmlBucket - */ -const de_Bucket = (output: any, context: __SerdeContext): Bucket => { - const contents: any = {}; - if (output[_N] != null) { - contents[_N] = __expectString(output[_N]); - } - if (output[_CDr] != null) { - contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CDr])); - } - if (output[_BR] != null) { - contents[_BR] = __expectString(output[_BR]); - } - if (output[_BA] != null) { - contents[_BA] = __expectString(output[_BA]); - } - return contents; -}; - -/** - * deserializeAws_restXmlBuckets - */ -const de_Buckets = (output: any, context: __SerdeContext): Bucket[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_Bucket(entry, context); - }); -}; - -/** - * deserializeAws_restXmlChecksum - */ -const de_Checksum = (output: any, context: __SerdeContext): Checksum => { - const contents: any = {}; - if (output[_CCRC] != null) { - contents[_CCRC] = __expectString(output[_CCRC]); - } - if (output[_CCRCC] != null) { - contents[_CCRCC] = __expectString(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = __expectString(output[_CCRCNVME]); - } - if (output[_CSHA] != null) { - contents[_CSHA] = __expectString(output[_CSHA]); - } - if (output[_CSHAh] != null) { - contents[_CSHAh] = __expectString(output[_CSHAh]); - } - if (output[_CT] != null) { - contents[_CT] = __expectString(output[_CT]); - } - return contents; -}; - -/** - * deserializeAws_restXmlChecksumAlgorithmList - */ -const de_ChecksumAlgorithmList = (output: any, context: __SerdeContext): ChecksumAlgorithm[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return __expectString(entry) as any; - }); -}; - -/** - * deserializeAws_restXmlCommonPrefix - */ -const de_CommonPrefix = (output: any, context: __SerdeContext): CommonPrefix => { - const contents: any = {}; - if (output[_P] != null) { - contents[_P] = __expectString(output[_P]); - } - return contents; -}; - -/** - * deserializeAws_restXmlCommonPrefixList - */ -const de_CommonPrefixList = (output: any, context: __SerdeContext): CommonPrefix[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_CommonPrefix(entry, context); - }); -}; - -/** - * deserializeAws_restXmlCondition - */ -const de_Condition = (output: any, context: __SerdeContext): Condition => { - const contents: any = {}; - if (output[_HECRE] != null) { - contents[_HECRE] = __expectString(output[_HECRE]); - } - if (output[_KPE] != null) { - contents[_KPE] = __expectString(output[_KPE]); - } - return contents; -}; - -/** - * deserializeAws_restXmlContinuationEvent - */ -const de_ContinuationEvent = (output: any, context: __SerdeContext): ContinuationEvent => { - const contents: any = {}; - return contents; -}; - -/** - * deserializeAws_restXmlCopyObjectResult - */ -const de_CopyObjectResult = (output: any, context: __SerdeContext): CopyObjectResult => { - const contents: any = {}; - if (output[_ETa] != null) { - contents[_ETa] = __expectString(output[_ETa]); - } - if (output[_LM] != null) { - contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); - } - if (output[_CT] != null) { - contents[_CT] = __expectString(output[_CT]); - } - if (output[_CCRC] != null) { - contents[_CCRC] = __expectString(output[_CCRC]); - } - if (output[_CCRCC] != null) { - contents[_CCRCC] = __expectString(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = __expectString(output[_CCRCNVME]); - } - if (output[_CSHA] != null) { - contents[_CSHA] = __expectString(output[_CSHA]); - } - if (output[_CSHAh] != null) { - contents[_CSHAh] = __expectString(output[_CSHAh]); - } - return contents; -}; - -/** - * deserializeAws_restXmlCopyPartResult - */ -const de_CopyPartResult = (output: any, context: __SerdeContext): CopyPartResult => { - const contents: any = {}; - if (output[_ETa] != null) { - contents[_ETa] = __expectString(output[_ETa]); - } - if (output[_LM] != null) { - contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); - } - if (output[_CCRC] != null) { - contents[_CCRC] = __expectString(output[_CCRC]); - } - if (output[_CCRCC] != null) { - contents[_CCRCC] = __expectString(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = __expectString(output[_CCRCNVME]); - } - if (output[_CSHA] != null) { - contents[_CSHA] = __expectString(output[_CSHA]); - } - if (output[_CSHAh] != null) { - contents[_CSHAh] = __expectString(output[_CSHAh]); - } - return contents; -}; - -/** - * deserializeAws_restXmlCORSRule - */ -const de_CORSRule = (output: any, context: __SerdeContext): CORSRule => { - const contents: any = {}; - if (output[_ID_] != null) { - contents[_ID_] = __expectString(output[_ID_]); - } - if (output.AllowedHeader === "") { - contents[_AHl] = []; - } else if (output[_AH] != null) { - contents[_AHl] = de_AllowedHeaders(__getArrayIfSingleItem(output[_AH]), context); - } - if (output.AllowedMethod === "") { - contents[_AMl] = []; - } else if (output[_AM] != null) { - contents[_AMl] = de_AllowedMethods(__getArrayIfSingleItem(output[_AM]), context); - } - if (output.AllowedOrigin === "") { - contents[_AOl] = []; - } else if (output[_AO] != null) { - contents[_AOl] = de_AllowedOrigins(__getArrayIfSingleItem(output[_AO]), context); - } - if (output.ExposeHeader === "") { - contents[_EH] = []; - } else if (output[_EHx] != null) { - contents[_EH] = de_ExposeHeaders(__getArrayIfSingleItem(output[_EHx]), context); - } - if (output[_MAS] != null) { - contents[_MAS] = __strictParseInt32(output[_MAS]) as number; - } - return contents; -}; - -/** - * deserializeAws_restXmlCORSRules - */ -const de_CORSRules = (output: any, context: __SerdeContext): CORSRule[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_CORSRule(entry, context); - }); -}; - -/** - * deserializeAws_restXmlDefaultRetention - */ -const de_DefaultRetention = (output: any, context: __SerdeContext): DefaultRetention => { - const contents: any = {}; - if (output[_Mo] != null) { - contents[_Mo] = __expectString(output[_Mo]); - } - if (output[_Da] != null) { - contents[_Da] = __strictParseInt32(output[_Da]) as number; - } - if (output[_Y] != null) { - contents[_Y] = __strictParseInt32(output[_Y]) as number; - } - return contents; -}; - -/** - * deserializeAws_restXmlDeletedObject - */ -const de_DeletedObject = (output: any, context: __SerdeContext): DeletedObject => { - const contents: any = {}; - if (output[_K] != null) { - contents[_K] = __expectString(output[_K]); - } - if (output[_VI] != null) { - contents[_VI] = __expectString(output[_VI]); - } - if (output[_DM] != null) { - contents[_DM] = __parseBoolean(output[_DM]); - } - if (output[_DMVI] != null) { - contents[_DMVI] = __expectString(output[_DMVI]); - } - return contents; -}; - -/** - * deserializeAws_restXmlDeletedObjects - */ -const de_DeletedObjects = (output: any, context: __SerdeContext): DeletedObject[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_DeletedObject(entry, context); - }); -}; - -/** - * deserializeAws_restXmlDeleteMarkerEntry - */ -const de_DeleteMarkerEntry = (output: any, context: __SerdeContext): DeleteMarkerEntry => { - const contents: any = {}; - if (output[_O] != null) { - contents[_O] = de_Owner(output[_O], context); - } - if (output[_K] != null) { - contents[_K] = __expectString(output[_K]); - } - if (output[_VI] != null) { - contents[_VI] = __expectString(output[_VI]); - } - if (output[_IL] != null) { - contents[_IL] = __parseBoolean(output[_IL]); - } - if (output[_LM] != null) { - contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); - } - return contents; -}; - -/** - * deserializeAws_restXmlDeleteMarkerReplication - */ -const de_DeleteMarkerReplication = (output: any, context: __SerdeContext): DeleteMarkerReplication => { - const contents: any = {}; - if (output[_S] != null) { - contents[_S] = __expectString(output[_S]); - } - return contents; -}; - -/** - * deserializeAws_restXmlDeleteMarkers - */ -const de_DeleteMarkers = (output: any, context: __SerdeContext): DeleteMarkerEntry[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_DeleteMarkerEntry(entry, context); - }); -}; - -/** - * deserializeAws_restXmlDestination - */ -const de_Destination = (output: any, context: __SerdeContext): Destination => { - const contents: any = {}; - if (output[_B] != null) { - contents[_B] = __expectString(output[_B]); - } - if (output[_Ac] != null) { - contents[_Ac] = __expectString(output[_Ac]); - } - if (output[_SC] != null) { - contents[_SC] = __expectString(output[_SC]); - } - if (output[_ACT] != null) { - contents[_ACT] = de_AccessControlTranslation(output[_ACT], context); - } - if (output[_ECn] != null) { - contents[_ECn] = de_EncryptionConfiguration(output[_ECn], context); - } - if (output[_RTe] != null) { - contents[_RTe] = de_ReplicationTime(output[_RTe], context); - } - if (output[_Me] != null) { - contents[_Me] = de_Metrics(output[_Me], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlDestinationResult - */ -const de_DestinationResult = (output: any, context: __SerdeContext): DestinationResult => { - const contents: any = {}; - if (output[_TBT] != null) { - contents[_TBT] = __expectString(output[_TBT]); - } - if (output[_TBA] != null) { - contents[_TBA] = __expectString(output[_TBA]); - } - if (output[_TNa] != null) { - contents[_TNa] = __expectString(output[_TNa]); - } - return contents; -}; - -/** - * deserializeAws_restXmlEncryptionConfiguration - */ -const de_EncryptionConfiguration = (output: any, context: __SerdeContext): EncryptionConfiguration => { - const contents: any = {}; - if (output[_RKKID] != null) { - contents[_RKKID] = __expectString(output[_RKKID]); - } - return contents; -}; - -/** - * deserializeAws_restXmlEndEvent - */ -const de_EndEvent = (output: any, context: __SerdeContext): EndEvent => { - const contents: any = {}; - return contents; -}; - -/** - * deserializeAws_restXml_Error - */ -const de__Error = (output: any, context: __SerdeContext): _Error => { - const contents: any = {}; - if (output[_K] != null) { - contents[_K] = __expectString(output[_K]); - } - if (output[_VI] != null) { - contents[_VI] = __expectString(output[_VI]); - } - if (output[_Cod] != null) { - contents[_Cod] = __expectString(output[_Cod]); - } - if (output[_Mes] != null) { - contents[_Mes] = __expectString(output[_Mes]); - } - return contents; -}; - -/** - * deserializeAws_restXmlErrorDetails - */ -const de_ErrorDetails = (output: any, context: __SerdeContext): ErrorDetails => { - const contents: any = {}; - if (output[_EC] != null) { - contents[_EC] = __expectString(output[_EC]); - } - if (output[_EM] != null) { - contents[_EM] = __expectString(output[_EM]); - } - return contents; -}; - -/** - * deserializeAws_restXmlErrorDocument - */ -const de_ErrorDocument = (output: any, context: __SerdeContext): ErrorDocument => { - const contents: any = {}; - if (output[_K] != null) { - contents[_K] = __expectString(output[_K]); - } - return contents; -}; - -/** - * deserializeAws_restXmlErrors - */ -const de_Errors = (output: any, context: __SerdeContext): _Error[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de__Error(entry, context); - }); -}; - -/** - * deserializeAws_restXmlEventBridgeConfiguration - */ -const de_EventBridgeConfiguration = (output: any, context: __SerdeContext): EventBridgeConfiguration => { - const contents: any = {}; - return contents; -}; - -/** - * deserializeAws_restXmlEventList - */ -const de_EventList = (output: any, context: __SerdeContext): Event[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return __expectString(entry) as any; - }); -}; - -/** - * deserializeAws_restXmlExistingObjectReplication - */ -const de_ExistingObjectReplication = (output: any, context: __SerdeContext): ExistingObjectReplication => { - const contents: any = {}; - if (output[_S] != null) { - contents[_S] = __expectString(output[_S]); - } - return contents; -}; - -/** - * deserializeAws_restXmlExposeHeaders - */ -const de_ExposeHeaders = (output: any, context: __SerdeContext): string[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return __expectString(entry) as any; - }); -}; - -/** - * deserializeAws_restXmlFilterRule - */ -const de_FilterRule = (output: any, context: __SerdeContext): FilterRule => { - const contents: any = {}; - if (output[_N] != null) { - contents[_N] = __expectString(output[_N]); - } - if (output[_Va] != null) { - contents[_Va] = __expectString(output[_Va]); - } - return contents; -}; - -/** - * deserializeAws_restXmlFilterRuleList - */ -const de_FilterRuleList = (output: any, context: __SerdeContext): FilterRule[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_FilterRule(entry, context); - }); -}; - -/** - * deserializeAws_restXmlGetBucketMetadataConfigurationResult - */ -const de_GetBucketMetadataConfigurationResult = ( - output: any, - context: __SerdeContext -): GetBucketMetadataConfigurationResult => { - const contents: any = {}; - if (output[_MCR] != null) { - contents[_MCR] = de_MetadataConfigurationResult(output[_MCR], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetBucketMetadataTableConfigurationResult - */ -const de_GetBucketMetadataTableConfigurationResult = ( - output: any, - context: __SerdeContext -): GetBucketMetadataTableConfigurationResult => { - const contents: any = {}; - if (output[_MTCR] != null) { - contents[_MTCR] = de_MetadataTableConfigurationResult(output[_MTCR], context); - } - if (output[_S] != null) { - contents[_S] = __expectString(output[_S]); - } - if (output[_Er] != null) { - contents[_Er] = de_ErrorDetails(output[_Er], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlGetObjectAttributesParts - */ -const de_GetObjectAttributesParts = (output: any, context: __SerdeContext): GetObjectAttributesParts => { - const contents: any = {}; - if (output[_PC] != null) { - contents[_TPC] = __strictParseInt32(output[_PC]) as number; - } - if (output[_PNM] != null) { - contents[_PNM] = __expectString(output[_PNM]); - } - if (output[_NPNM] != null) { - contents[_NPNM] = __expectString(output[_NPNM]); - } - if (output[_MP] != null) { - contents[_MP] = __strictParseInt32(output[_MP]) as number; - } - if (output[_IT] != null) { - contents[_IT] = __parseBoolean(output[_IT]); - } - if (output.Part === "") { - contents[_Part] = []; - } else if (output[_Par] != null) { - contents[_Part] = de_PartsList(__getArrayIfSingleItem(output[_Par]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlGrant - */ -const de_Grant = (output: any, context: __SerdeContext): Grant => { - const contents: any = {}; - if (output[_Gra] != null) { - contents[_Gra] = de_Grantee(output[_Gra], context); - } - if (output[_Pe] != null) { - contents[_Pe] = __expectString(output[_Pe]); - } - return contents; -}; - -/** - * deserializeAws_restXmlGrantee - */ -const de_Grantee = (output: any, context: __SerdeContext): Grantee => { - const contents: any = {}; - if (output[_DN] != null) { - contents[_DN] = __expectString(output[_DN]); - } - if (output[_EA] != null) { - contents[_EA] = __expectString(output[_EA]); - } - if (output[_ID_] != null) { - contents[_ID_] = __expectString(output[_ID_]); - } - if (output[_URI] != null) { - contents[_URI] = __expectString(output[_URI]); - } - if (output[_x] != null) { - contents[_Ty] = __expectString(output[_x]); - } - return contents; -}; - -/** - * deserializeAws_restXmlGrants - */ -const de_Grants = (output: any, context: __SerdeContext): Grant[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_Grant(entry, context); - }); -}; - -/** - * deserializeAws_restXmlIndexDocument - */ -const de_IndexDocument = (output: any, context: __SerdeContext): IndexDocument => { - const contents: any = {}; - if (output[_Su] != null) { - contents[_Su] = __expectString(output[_Su]); - } - return contents; -}; - -/** - * deserializeAws_restXmlInitiator - */ -const de_Initiator = (output: any, context: __SerdeContext): Initiator => { - const contents: any = {}; - if (output[_ID_] != null) { - contents[_ID_] = __expectString(output[_ID_]); - } - if (output[_DN] != null) { - contents[_DN] = __expectString(output[_DN]); - } - return contents; -}; - -/** - * deserializeAws_restXmlIntelligentTieringAndOperator - */ -const de_IntelligentTieringAndOperator = (output: any, context: __SerdeContext): IntelligentTieringAndOperator => { - const contents: any = {}; - if (output[_P] != null) { - contents[_P] = __expectString(output[_P]); - } - if (output.Tag === "") { - contents[_Tag] = []; - } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlIntelligentTieringConfiguration - */ -const de_IntelligentTieringConfiguration = (output: any, context: __SerdeContext): IntelligentTieringConfiguration => { - const contents: any = {}; - if (output[_I] != null) { - contents[_I] = __expectString(output[_I]); - } - if (output[_F] != null) { - contents[_F] = de_IntelligentTieringFilter(output[_F], context); - } - if (output[_S] != null) { - contents[_S] = __expectString(output[_S]); - } - if (output.Tiering === "") { - contents[_Tie] = []; - } else if (output[_Tier] != null) { - contents[_Tie] = de_TieringList(__getArrayIfSingleItem(output[_Tier]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlIntelligentTieringConfigurationList - */ -const de_IntelligentTieringConfigurationList = ( - output: any, - context: __SerdeContext -): IntelligentTieringConfiguration[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_IntelligentTieringConfiguration(entry, context); - }); -}; - -/** - * deserializeAws_restXmlIntelligentTieringFilter - */ -const de_IntelligentTieringFilter = (output: any, context: __SerdeContext): IntelligentTieringFilter => { - const contents: any = {}; - if (output[_P] != null) { - contents[_P] = __expectString(output[_P]); - } - if (output[_Ta] != null) { - contents[_Ta] = de_Tag(output[_Ta], context); - } - if (output[_A] != null) { - contents[_A] = de_IntelligentTieringAndOperator(output[_A], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlInventoryConfiguration - */ -const de_InventoryConfiguration = (output: any, context: __SerdeContext): InventoryConfiguration => { - const contents: any = {}; - if (output[_Des] != null) { - contents[_Des] = de_InventoryDestination(output[_Des], context); - } - if (output[_IE] != null) { - contents[_IE] = __parseBoolean(output[_IE]); - } - if (output[_F] != null) { - contents[_F] = de_InventoryFilter(output[_F], context); - } - if (output[_I] != null) { - contents[_I] = __expectString(output[_I]); - } - if (output[_IOV] != null) { - contents[_IOV] = __expectString(output[_IOV]); - } - if (output.OptionalFields === "") { - contents[_OF] = []; - } else if (output[_OF] != null && output[_OF][_Fi] != null) { - contents[_OF] = de_InventoryOptionalFields(__getArrayIfSingleItem(output[_OF][_Fi]), context); - } - if (output[_Sc] != null) { - contents[_Sc] = de_InventorySchedule(output[_Sc], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlInventoryConfigurationList - */ -const de_InventoryConfigurationList = (output: any, context: __SerdeContext): InventoryConfiguration[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_InventoryConfiguration(entry, context); - }); -}; - -/** - * deserializeAws_restXmlInventoryDestination - */ -const de_InventoryDestination = (output: any, context: __SerdeContext): InventoryDestination => { - const contents: any = {}; - if (output[_SBD] != null) { - contents[_SBD] = de_InventoryS3BucketDestination(output[_SBD], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlInventoryEncryption - */ -const de_InventoryEncryption = (output: any, context: __SerdeContext): InventoryEncryption => { - const contents: any = {}; - if (output[_SS] != null) { - contents[_SSES] = de_SSES3(output[_SS], context); - } - if (output[_SK] != null) { - contents[_SSEKMS] = de_SSEKMS(output[_SK], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlInventoryFilter - */ -const de_InventoryFilter = (output: any, context: __SerdeContext): InventoryFilter => { - const contents: any = {}; - if (output[_P] != null) { - contents[_P] = __expectString(output[_P]); - } - return contents; -}; - -/** - * deserializeAws_restXmlInventoryOptionalFields - */ -const de_InventoryOptionalFields = (output: any, context: __SerdeContext): InventoryOptionalField[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return __expectString(entry) as any; - }); -}; - -/** - * deserializeAws_restXmlInventoryS3BucketDestination - */ -const de_InventoryS3BucketDestination = (output: any, context: __SerdeContext): InventoryS3BucketDestination => { - const contents: any = {}; - if (output[_AIc] != null) { - contents[_AIc] = __expectString(output[_AIc]); - } - if (output[_B] != null) { - contents[_B] = __expectString(output[_B]); - } - if (output[_Fo] != null) { - contents[_Fo] = __expectString(output[_Fo]); - } - if (output[_P] != null) { - contents[_P] = __expectString(output[_P]); - } - if (output[_En] != null) { - contents[_En] = de_InventoryEncryption(output[_En], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlInventorySchedule - */ -const de_InventorySchedule = (output: any, context: __SerdeContext): InventorySchedule => { - const contents: any = {}; - if (output[_Fr] != null) { - contents[_Fr] = __expectString(output[_Fr]); - } - return contents; -}; - -/** - * deserializeAws_restXmlInventoryTableConfigurationResult - */ -const de_InventoryTableConfigurationResult = ( - output: any, - context: __SerdeContext -): InventoryTableConfigurationResult => { - const contents: any = {}; - if (output[_CSo] != null) { - contents[_CSo] = __expectString(output[_CSo]); - } - if (output[_TSa] != null) { - contents[_TSa] = __expectString(output[_TSa]); - } - if (output[_Er] != null) { - contents[_Er] = de_ErrorDetails(output[_Er], context); - } - if (output[_TN] != null) { - contents[_TN] = __expectString(output[_TN]); - } - if (output[_TAa] != null) { - contents[_TAa] = __expectString(output[_TAa]); - } - return contents; -}; - -/** - * deserializeAws_restXmlJournalTableConfigurationResult - */ -const de_JournalTableConfigurationResult = (output: any, context: __SerdeContext): JournalTableConfigurationResult => { - const contents: any = {}; - if (output[_TSa] != null) { - contents[_TSa] = __expectString(output[_TSa]); - } - if (output[_Er] != null) { - contents[_Er] = de_ErrorDetails(output[_Er], context); - } - if (output[_TN] != null) { - contents[_TN] = __expectString(output[_TN]); - } - if (output[_TAa] != null) { - contents[_TAa] = __expectString(output[_TAa]); - } - if (output[_REe] != null) { - contents[_REe] = de_RecordExpiration(output[_REe], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlLambdaFunctionConfiguration - */ -const de_LambdaFunctionConfiguration = (output: any, context: __SerdeContext): LambdaFunctionConfiguration => { - const contents: any = {}; - if (output[_I] != null) { - contents[_I] = __expectString(output[_I]); - } - if (output[_CF] != null) { - contents[_LFA] = __expectString(output[_CF]); - } - if (output.Event === "") { - contents[_Eve] = []; - } else if (output[_Ev] != null) { - contents[_Eve] = de_EventList(__getArrayIfSingleItem(output[_Ev]), context); - } - if (output[_F] != null) { - contents[_F] = de_NotificationConfigurationFilter(output[_F], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlLambdaFunctionConfigurationList - */ -const de_LambdaFunctionConfigurationList = (output: any, context: __SerdeContext): LambdaFunctionConfiguration[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_LambdaFunctionConfiguration(entry, context); - }); -}; - -/** - * deserializeAws_restXmlLifecycleExpiration - */ -const de_LifecycleExpiration = (output: any, context: __SerdeContext): LifecycleExpiration => { - const contents: any = {}; - if (output[_Dat] != null) { - contents[_Dat] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Dat])); - } - if (output[_Da] != null) { - contents[_Da] = __strictParseInt32(output[_Da]) as number; - } - if (output[_EODM] != null) { - contents[_EODM] = __parseBoolean(output[_EODM]); - } - return contents; -}; - -/** - * deserializeAws_restXmlLifecycleRule - */ -const de_LifecycleRule = (output: any, context: __SerdeContext): LifecycleRule => { - const contents: any = {}; - if (output[_Exp] != null) { - contents[_Exp] = de_LifecycleExpiration(output[_Exp], context); - } - if (output[_ID_] != null) { - contents[_ID_] = __expectString(output[_ID_]); - } - if (output[_P] != null) { - contents[_P] = __expectString(output[_P]); - } - if (output[_F] != null) { - contents[_F] = de_LifecycleRuleFilter(output[_F], context); - } - if (output[_S] != null) { - contents[_S] = __expectString(output[_S]); - } - if (output.Transition === "") { - contents[_Tr] = []; - } else if (output[_Tra] != null) { - contents[_Tr] = de_TransitionList(__getArrayIfSingleItem(output[_Tra]), context); - } - if (output.NoncurrentVersionTransition === "") { - contents[_NVT] = []; - } else if (output[_NVTo] != null) { - contents[_NVT] = de_NoncurrentVersionTransitionList(__getArrayIfSingleItem(output[_NVTo]), context); - } - if (output[_NVE] != null) { - contents[_NVE] = de_NoncurrentVersionExpiration(output[_NVE], context); - } - if (output[_AIMU] != null) { - contents[_AIMU] = de_AbortIncompleteMultipartUpload(output[_AIMU], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlLifecycleRuleAndOperator - */ -const de_LifecycleRuleAndOperator = (output: any, context: __SerdeContext): LifecycleRuleAndOperator => { - const contents: any = {}; - if (output[_P] != null) { - contents[_P] = __expectString(output[_P]); - } - if (output.Tag === "") { - contents[_Tag] = []; - } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); - } - if (output[_OSGT] != null) { - contents[_OSGT] = __strictParseLong(output[_OSGT]) as number; - } - if (output[_OSLT] != null) { - contents[_OSLT] = __strictParseLong(output[_OSLT]) as number; - } - return contents; -}; - -/** - * deserializeAws_restXmlLifecycleRuleFilter - */ -const de_LifecycleRuleFilter = (output: any, context: __SerdeContext): LifecycleRuleFilter => { - const contents: any = {}; - if (output[_P] != null) { - contents[_P] = __expectString(output[_P]); - } - if (output[_Ta] != null) { - contents[_Ta] = de_Tag(output[_Ta], context); - } - if (output[_OSGT] != null) { - contents[_OSGT] = __strictParseLong(output[_OSGT]) as number; - } - if (output[_OSLT] != null) { - contents[_OSLT] = __strictParseLong(output[_OSLT]) as number; - } - if (output[_A] != null) { - contents[_A] = de_LifecycleRuleAndOperator(output[_A], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlLifecycleRules - */ -const de_LifecycleRules = (output: any, context: __SerdeContext): LifecycleRule[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_LifecycleRule(entry, context); - }); -}; - -/** - * deserializeAws_restXmlLoggingEnabled - */ -const de_LoggingEnabled = (output: any, context: __SerdeContext): LoggingEnabled => { - const contents: any = {}; - if (output[_TB] != null) { - contents[_TB] = __expectString(output[_TB]); - } - if (output.TargetGrants === "") { - contents[_TG] = []; - } else if (output[_TG] != null && output[_TG][_G] != null) { - contents[_TG] = de_TargetGrants(__getArrayIfSingleItem(output[_TG][_G]), context); - } - if (output[_TP] != null) { - contents[_TP] = __expectString(output[_TP]); - } - if (output[_TOKF] != null) { - contents[_TOKF] = de_TargetObjectKeyFormat(output[_TOKF], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlMetadataConfigurationResult - */ -const de_MetadataConfigurationResult = (output: any, context: __SerdeContext): MetadataConfigurationResult => { - const contents: any = {}; - if (output[_DRes] != null) { - contents[_DRes] = de_DestinationResult(output[_DRes], context); - } - if (output[_JTCR] != null) { - contents[_JTCR] = de_JournalTableConfigurationResult(output[_JTCR], context); - } - if (output[_ITCR] != null) { - contents[_ITCR] = de_InventoryTableConfigurationResult(output[_ITCR], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlMetadataTableConfigurationResult - */ -const de_MetadataTableConfigurationResult = ( - output: any, - context: __SerdeContext -): MetadataTableConfigurationResult => { - const contents: any = {}; - if (output[_STDR] != null) { - contents[_STDR] = de_S3TablesDestinationResult(output[_STDR], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlMetrics - */ -const de_Metrics = (output: any, context: __SerdeContext): Metrics => { - const contents: any = {}; - if (output[_S] != null) { - contents[_S] = __expectString(output[_S]); - } - if (output[_ETv] != null) { - contents[_ETv] = de_ReplicationTimeValue(output[_ETv], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlMetricsAndOperator - */ -const de_MetricsAndOperator = (output: any, context: __SerdeContext): MetricsAndOperator => { - const contents: any = {}; - if (output[_P] != null) { - contents[_P] = __expectString(output[_P]); - } - if (output.Tag === "") { - contents[_Tag] = []; - } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); - } - if (output[_APAc] != null) { - contents[_APAc] = __expectString(output[_APAc]); - } - return contents; -}; - -/** - * deserializeAws_restXmlMetricsConfiguration - */ -const de_MetricsConfiguration = (output: any, context: __SerdeContext): MetricsConfiguration => { - const contents: any = {}; - if (output[_I] != null) { - contents[_I] = __expectString(output[_I]); - } - if (output.Filter === "") { - // Pass empty tags. - } else if (output[_F] != null) { - contents[_F] = de_MetricsFilter(__expectUnion(output[_F]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlMetricsConfigurationList - */ -const de_MetricsConfigurationList = (output: any, context: __SerdeContext): MetricsConfiguration[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_MetricsConfiguration(entry, context); - }); -}; - -/** - * deserializeAws_restXmlMetricsFilter - */ -const de_MetricsFilter = (output: any, context: __SerdeContext): MetricsFilter => { - if (output[_P] != null) { - return { - Prefix: __expectString(output[_P]) as any, - }; - } - if (output[_Ta] != null) { - return { - Tag: de_Tag(output[_Ta], context), - }; - } - if (output[_APAc] != null) { - return { - AccessPointArn: __expectString(output[_APAc]) as any, - }; - } - if (output[_A] != null) { - return { - And: de_MetricsAndOperator(output[_A], context), - }; - } - return { $unknown: Object.entries(output)[0] }; -}; - -/** - * deserializeAws_restXmlMultipartUpload - */ -const de_MultipartUpload = (output: any, context: __SerdeContext): MultipartUpload => { - const contents: any = {}; - if (output[_UI] != null) { - contents[_UI] = __expectString(output[_UI]); - } - if (output[_K] != null) { - contents[_K] = __expectString(output[_K]); - } - if (output[_Ini] != null) { - contents[_Ini] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ini])); - } - if (output[_SC] != null) { - contents[_SC] = __expectString(output[_SC]); - } - if (output[_O] != null) { - contents[_O] = de_Owner(output[_O], context); - } - if (output[_In] != null) { - contents[_In] = de_Initiator(output[_In], context); - } - if (output[_CA] != null) { - contents[_CA] = __expectString(output[_CA]); - } - if (output[_CT] != null) { - contents[_CT] = __expectString(output[_CT]); - } - return contents; -}; - -/** - * deserializeAws_restXmlMultipartUploadList - */ -const de_MultipartUploadList = (output: any, context: __SerdeContext): MultipartUpload[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_MultipartUpload(entry, context); - }); -}; - -/** - * deserializeAws_restXmlNoncurrentVersionExpiration - */ -const de_NoncurrentVersionExpiration = (output: any, context: __SerdeContext): NoncurrentVersionExpiration => { - const contents: any = {}; - if (output[_ND] != null) { - contents[_ND] = __strictParseInt32(output[_ND]) as number; - } - if (output[_NNV] != null) { - contents[_NNV] = __strictParseInt32(output[_NNV]) as number; - } - return contents; -}; - -/** - * deserializeAws_restXmlNoncurrentVersionTransition - */ -const de_NoncurrentVersionTransition = (output: any, context: __SerdeContext): NoncurrentVersionTransition => { - const contents: any = {}; - if (output[_ND] != null) { - contents[_ND] = __strictParseInt32(output[_ND]) as number; - } - if (output[_SC] != null) { - contents[_SC] = __expectString(output[_SC]); - } - if (output[_NNV] != null) { - contents[_NNV] = __strictParseInt32(output[_NNV]) as number; - } - return contents; -}; - -/** - * deserializeAws_restXmlNoncurrentVersionTransitionList - */ -const de_NoncurrentVersionTransitionList = (output: any, context: __SerdeContext): NoncurrentVersionTransition[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_NoncurrentVersionTransition(entry, context); - }); -}; - -/** - * deserializeAws_restXmlNotificationConfigurationFilter - */ -const de_NotificationConfigurationFilter = (output: any, context: __SerdeContext): NotificationConfigurationFilter => { - const contents: any = {}; - if (output[_SKe] != null) { - contents[_K] = de_S3KeyFilter(output[_SKe], context); - } - return contents; -}; - -/** - * deserializeAws_restXml_Object - */ -const de__Object = (output: any, context: __SerdeContext): _Object => { - const contents: any = {}; - if (output[_K] != null) { - contents[_K] = __expectString(output[_K]); - } - if (output[_LM] != null) { - contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); - } - if (output[_ETa] != null) { - contents[_ETa] = __expectString(output[_ETa]); - } - if (output.ChecksumAlgorithm === "") { - contents[_CA] = []; - } else if (output[_CA] != null) { - contents[_CA] = de_ChecksumAlgorithmList(__getArrayIfSingleItem(output[_CA]), context); - } - if (output[_CT] != null) { - contents[_CT] = __expectString(output[_CT]); - } - if (output[_Si] != null) { - contents[_Si] = __strictParseLong(output[_Si]) as number; - } - if (output[_SC] != null) { - contents[_SC] = __expectString(output[_SC]); - } - if (output[_O] != null) { - contents[_O] = de_Owner(output[_O], context); - } - if (output[_RSes] != null) { - contents[_RSes] = de_RestoreStatus(output[_RSes], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlObjectList - */ -const de_ObjectList = (output: any, context: __SerdeContext): _Object[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de__Object(entry, context); - }); -}; - -/** - * deserializeAws_restXmlObjectLockConfiguration - */ -const de_ObjectLockConfiguration = (output: any, context: __SerdeContext): ObjectLockConfiguration => { - const contents: any = {}; - if (output[_OLE] != null) { - contents[_OLE] = __expectString(output[_OLE]); - } - if (output[_Ru] != null) { - contents[_Ru] = de_ObjectLockRule(output[_Ru], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlObjectLockLegalHold - */ -const de_ObjectLockLegalHold = (output: any, context: __SerdeContext): ObjectLockLegalHold => { - const contents: any = {}; - if (output[_S] != null) { - contents[_S] = __expectString(output[_S]); - } - return contents; -}; - -/** - * deserializeAws_restXmlObjectLockRetention - */ -const de_ObjectLockRetention = (output: any, context: __SerdeContext): ObjectLockRetention => { - const contents: any = {}; - if (output[_Mo] != null) { - contents[_Mo] = __expectString(output[_Mo]); - } - if (output[_RUD] != null) { - contents[_RUD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_RUD])); - } - return contents; -}; - -/** - * deserializeAws_restXmlObjectLockRule - */ -const de_ObjectLockRule = (output: any, context: __SerdeContext): ObjectLockRule => { - const contents: any = {}; - if (output[_DRe] != null) { - contents[_DRe] = de_DefaultRetention(output[_DRe], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlObjectPart - */ -const de_ObjectPart = (output: any, context: __SerdeContext): ObjectPart => { - const contents: any = {}; - if (output[_PN] != null) { - contents[_PN] = __strictParseInt32(output[_PN]) as number; - } - if (output[_Si] != null) { - contents[_Si] = __strictParseLong(output[_Si]) as number; - } - if (output[_CCRC] != null) { - contents[_CCRC] = __expectString(output[_CCRC]); - } - if (output[_CCRCC] != null) { - contents[_CCRCC] = __expectString(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = __expectString(output[_CCRCNVME]); - } - if (output[_CSHA] != null) { - contents[_CSHA] = __expectString(output[_CSHA]); - } - if (output[_CSHAh] != null) { - contents[_CSHAh] = __expectString(output[_CSHAh]); - } - return contents; -}; - -/** - * deserializeAws_restXmlObjectVersion - */ -const de_ObjectVersion = (output: any, context: __SerdeContext): ObjectVersion => { - const contents: any = {}; - if (output[_ETa] != null) { - contents[_ETa] = __expectString(output[_ETa]); - } - if (output.ChecksumAlgorithm === "") { - contents[_CA] = []; - } else if (output[_CA] != null) { - contents[_CA] = de_ChecksumAlgorithmList(__getArrayIfSingleItem(output[_CA]), context); - } - if (output[_CT] != null) { - contents[_CT] = __expectString(output[_CT]); - } - if (output[_Si] != null) { - contents[_Si] = __strictParseLong(output[_Si]) as number; - } - if (output[_SC] != null) { - contents[_SC] = __expectString(output[_SC]); - } - if (output[_K] != null) { - contents[_K] = __expectString(output[_K]); - } - if (output[_VI] != null) { - contents[_VI] = __expectString(output[_VI]); - } - if (output[_IL] != null) { - contents[_IL] = __parseBoolean(output[_IL]); - } - if (output[_LM] != null) { - contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); - } - if (output[_O] != null) { - contents[_O] = de_Owner(output[_O], context); - } - if (output[_RSes] != null) { - contents[_RSes] = de_RestoreStatus(output[_RSes], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlObjectVersionList - */ -const de_ObjectVersionList = (output: any, context: __SerdeContext): ObjectVersion[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_ObjectVersion(entry, context); - }); -}; - -/** - * deserializeAws_restXmlOwner - */ -const de_Owner = (output: any, context: __SerdeContext): Owner => { - const contents: any = {}; - if (output[_DN] != null) { - contents[_DN] = __expectString(output[_DN]); - } - if (output[_ID_] != null) { - contents[_ID_] = __expectString(output[_ID_]); - } - return contents; -}; - -/** - * deserializeAws_restXmlOwnershipControls - */ -const de_OwnershipControls = (output: any, context: __SerdeContext): OwnershipControls => { - const contents: any = {}; - if (output.Rule === "") { - contents[_Rul] = []; - } else if (output[_Ru] != null) { - contents[_Rul] = de_OwnershipControlsRules(__getArrayIfSingleItem(output[_Ru]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlOwnershipControlsRule - */ -const de_OwnershipControlsRule = (output: any, context: __SerdeContext): OwnershipControlsRule => { - const contents: any = {}; - if (output[_OO] != null) { - contents[_OO] = __expectString(output[_OO]); - } - return contents; -}; - -/** - * deserializeAws_restXmlOwnershipControlsRules - */ -const de_OwnershipControlsRules = (output: any, context: __SerdeContext): OwnershipControlsRule[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_OwnershipControlsRule(entry, context); - }); -}; - -/** - * deserializeAws_restXmlPart - */ -const de_Part = (output: any, context: __SerdeContext): Part => { - const contents: any = {}; - if (output[_PN] != null) { - contents[_PN] = __strictParseInt32(output[_PN]) as number; - } - if (output[_LM] != null) { - contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); - } - if (output[_ETa] != null) { - contents[_ETa] = __expectString(output[_ETa]); - } - if (output[_Si] != null) { - contents[_Si] = __strictParseLong(output[_Si]) as number; - } - if (output[_CCRC] != null) { - contents[_CCRC] = __expectString(output[_CCRC]); - } - if (output[_CCRCC] != null) { - contents[_CCRCC] = __expectString(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = __expectString(output[_CCRCNVME]); - } - if (output[_CSHA] != null) { - contents[_CSHA] = __expectString(output[_CSHA]); - } - if (output[_CSHAh] != null) { - contents[_CSHAh] = __expectString(output[_CSHAh]); - } - return contents; -}; - -/** - * deserializeAws_restXmlPartitionedPrefix - */ -const de_PartitionedPrefix = (output: any, context: __SerdeContext): PartitionedPrefix => { - const contents: any = {}; - if (output[_PDS] != null) { - contents[_PDS] = __expectString(output[_PDS]); - } - return contents; -}; - -/** - * deserializeAws_restXmlParts - */ -const de_Parts = (output: any, context: __SerdeContext): Part[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_Part(entry, context); - }); -}; - -/** - * deserializeAws_restXmlPartsList - */ -const de_PartsList = (output: any, context: __SerdeContext): ObjectPart[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_ObjectPart(entry, context); - }); -}; - -/** - * deserializeAws_restXmlPolicyStatus - */ -const de_PolicyStatus = (output: any, context: __SerdeContext): PolicyStatus => { - const contents: any = {}; - if (output[_IP] != null) { - contents[_IP] = __parseBoolean(output[_IP]); - } - return contents; -}; - -/** - * deserializeAws_restXmlProgress - */ -const de_Progress = (output: any, context: __SerdeContext): Progress => { - const contents: any = {}; - if (output[_BS] != null) { - contents[_BS] = __strictParseLong(output[_BS]) as number; - } - if (output[_BP] != null) { - contents[_BP] = __strictParseLong(output[_BP]) as number; - } - if (output[_BRy] != null) { - contents[_BRy] = __strictParseLong(output[_BRy]) as number; - } - return contents; -}; - -/** - * deserializeAws_restXmlPublicAccessBlockConfiguration - */ -const de_PublicAccessBlockConfiguration = (output: any, context: __SerdeContext): PublicAccessBlockConfiguration => { - const contents: any = {}; - if (output[_BPA] != null) { - contents[_BPA] = __parseBoolean(output[_BPA]); - } - if (output[_IPA] != null) { - contents[_IPA] = __parseBoolean(output[_IPA]); - } - if (output[_BPP] != null) { - contents[_BPP] = __parseBoolean(output[_BPP]); - } - if (output[_RPB] != null) { - contents[_RPB] = __parseBoolean(output[_RPB]); - } - return contents; -}; - -/** - * deserializeAws_restXmlQueueConfiguration - */ -const de_QueueConfiguration = (output: any, context: __SerdeContext): QueueConfiguration => { - const contents: any = {}; - if (output[_I] != null) { - contents[_I] = __expectString(output[_I]); - } - if (output[_Qu] != null) { - contents[_QA] = __expectString(output[_Qu]); - } - if (output.Event === "") { - contents[_Eve] = []; - } else if (output[_Ev] != null) { - contents[_Eve] = de_EventList(__getArrayIfSingleItem(output[_Ev]), context); - } - if (output[_F] != null) { - contents[_F] = de_NotificationConfigurationFilter(output[_F], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlQueueConfigurationList - */ -const de_QueueConfigurationList = (output: any, context: __SerdeContext): QueueConfiguration[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_QueueConfiguration(entry, context); - }); -}; - -/** - * deserializeAws_restXmlRecordExpiration - */ -const de_RecordExpiration = (output: any, context: __SerdeContext): RecordExpiration => { - const contents: any = {}; - if (output[_Exp] != null) { - contents[_Exp] = __expectString(output[_Exp]); - } - if (output[_Da] != null) { - contents[_Da] = __strictParseInt32(output[_Da]) as number; - } - return contents; -}; - -/** - * deserializeAws_restXmlRedirect - */ -const de_Redirect = (output: any, context: __SerdeContext): Redirect => { - const contents: any = {}; - if (output[_HN] != null) { - contents[_HN] = __expectString(output[_HN]); - } - if (output[_HRC] != null) { - contents[_HRC] = __expectString(output[_HRC]); - } - if (output[_Pr] != null) { - contents[_Pr] = __expectString(output[_Pr]); - } - if (output[_RKPW] != null) { - contents[_RKPW] = __expectString(output[_RKPW]); - } - if (output[_RKW] != null) { - contents[_RKW] = __expectString(output[_RKW]); - } - return contents; -}; - -/** - * deserializeAws_restXmlRedirectAllRequestsTo - */ -const de_RedirectAllRequestsTo = (output: any, context: __SerdeContext): RedirectAllRequestsTo => { - const contents: any = {}; - if (output[_HN] != null) { - contents[_HN] = __expectString(output[_HN]); - } - if (output[_Pr] != null) { - contents[_Pr] = __expectString(output[_Pr]); - } - return contents; -}; - -/** - * deserializeAws_restXmlReplicaModifications - */ -const de_ReplicaModifications = (output: any, context: __SerdeContext): ReplicaModifications => { - const contents: any = {}; - if (output[_S] != null) { - contents[_S] = __expectString(output[_S]); - } - return contents; -}; - -/** - * deserializeAws_restXmlReplicationConfiguration - */ -const de_ReplicationConfiguration = (output: any, context: __SerdeContext): ReplicationConfiguration => { - const contents: any = {}; - if (output[_Ro] != null) { - contents[_Ro] = __expectString(output[_Ro]); - } - if (output.Rule === "") { - contents[_Rul] = []; - } else if (output[_Ru] != null) { - contents[_Rul] = de_ReplicationRules(__getArrayIfSingleItem(output[_Ru]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlReplicationRule - */ -const de_ReplicationRule = (output: any, context: __SerdeContext): ReplicationRule => { - const contents: any = {}; - if (output[_ID_] != null) { - contents[_ID_] = __expectString(output[_ID_]); - } - if (output[_Pri] != null) { - contents[_Pri] = __strictParseInt32(output[_Pri]) as number; - } - if (output[_P] != null) { - contents[_P] = __expectString(output[_P]); - } - if (output[_F] != null) { - contents[_F] = de_ReplicationRuleFilter(output[_F], context); - } - if (output[_S] != null) { - contents[_S] = __expectString(output[_S]); - } - if (output[_SSC] != null) { - contents[_SSC] = de_SourceSelectionCriteria(output[_SSC], context); - } - if (output[_EOR] != null) { - contents[_EOR] = de_ExistingObjectReplication(output[_EOR], context); - } - if (output[_Des] != null) { - contents[_Des] = de_Destination(output[_Des], context); - } - if (output[_DMR] != null) { - contents[_DMR] = de_DeleteMarkerReplication(output[_DMR], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlReplicationRuleAndOperator - */ -const de_ReplicationRuleAndOperator = (output: any, context: __SerdeContext): ReplicationRuleAndOperator => { - const contents: any = {}; - if (output[_P] != null) { - contents[_P] = __expectString(output[_P]); - } - if (output.Tag === "") { - contents[_Tag] = []; - } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlReplicationRuleFilter - */ -const de_ReplicationRuleFilter = (output: any, context: __SerdeContext): ReplicationRuleFilter => { - const contents: any = {}; - if (output[_P] != null) { - contents[_P] = __expectString(output[_P]); - } - if (output[_Ta] != null) { - contents[_Ta] = de_Tag(output[_Ta], context); - } - if (output[_A] != null) { - contents[_A] = de_ReplicationRuleAndOperator(output[_A], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlReplicationRules - */ -const de_ReplicationRules = (output: any, context: __SerdeContext): ReplicationRule[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_ReplicationRule(entry, context); - }); -}; - -/** - * deserializeAws_restXmlReplicationTime - */ -const de_ReplicationTime = (output: any, context: __SerdeContext): ReplicationTime => { - const contents: any = {}; - if (output[_S] != null) { - contents[_S] = __expectString(output[_S]); - } - if (output[_Tim] != null) { - contents[_Tim] = de_ReplicationTimeValue(output[_Tim], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlReplicationTimeValue - */ -const de_ReplicationTimeValue = (output: any, context: __SerdeContext): ReplicationTimeValue => { - const contents: any = {}; - if (output[_Mi] != null) { - contents[_Mi] = __strictParseInt32(output[_Mi]) as number; - } - return contents; -}; - -/** - * deserializeAws_restXmlRestoreStatus - */ -const de_RestoreStatus = (output: any, context: __SerdeContext): RestoreStatus => { - const contents: any = {}; - if (output[_IRIP] != null) { - contents[_IRIP] = __parseBoolean(output[_IRIP]); - } - if (output[_REDe] != null) { - contents[_REDe] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_REDe])); - } - return contents; -}; - -/** - * deserializeAws_restXmlRoutingRule - */ -const de_RoutingRule = (output: any, context: __SerdeContext): RoutingRule => { - const contents: any = {}; - if (output[_Con] != null) { - contents[_Con] = de_Condition(output[_Con], context); - } - if (output[_Red] != null) { - contents[_Red] = de_Redirect(output[_Red], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlRoutingRules - */ -const de_RoutingRules = (output: any, context: __SerdeContext): RoutingRule[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_RoutingRule(entry, context); - }); -}; - -/** - * deserializeAws_restXmlS3KeyFilter - */ -const de_S3KeyFilter = (output: any, context: __SerdeContext): S3KeyFilter => { - const contents: any = {}; - if (output.FilterRule === "") { - contents[_FRi] = []; - } else if (output[_FR] != null) { - contents[_FRi] = de_FilterRuleList(__getArrayIfSingleItem(output[_FR]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlS3TablesDestinationResult - */ -const de_S3TablesDestinationResult = (output: any, context: __SerdeContext): S3TablesDestinationResult => { - const contents: any = {}; - if (output[_TBA] != null) { - contents[_TBA] = __expectString(output[_TBA]); - } - if (output[_TN] != null) { - contents[_TN] = __expectString(output[_TN]); - } - if (output[_TAa] != null) { - contents[_TAa] = __expectString(output[_TAa]); - } - if (output[_TNa] != null) { - contents[_TNa] = __expectString(output[_TNa]); - } - return contents; -}; - -/** - * deserializeAws_restXmlServerSideEncryptionByDefault - */ -const de_ServerSideEncryptionByDefault = (output: any, context: __SerdeContext): ServerSideEncryptionByDefault => { - const contents: any = {}; - if (output[_SSEA] != null) { - contents[_SSEA] = __expectString(output[_SSEA]); - } - if (output[_KMSMKID] != null) { - contents[_KMSMKID] = __expectString(output[_KMSMKID]); - } - return contents; -}; - -/** - * deserializeAws_restXmlServerSideEncryptionConfiguration - */ -const de_ServerSideEncryptionConfiguration = ( - output: any, - context: __SerdeContext -): ServerSideEncryptionConfiguration => { - const contents: any = {}; - if (output.Rule === "") { - contents[_Rul] = []; - } else if (output[_Ru] != null) { - contents[_Rul] = de_ServerSideEncryptionRules(__getArrayIfSingleItem(output[_Ru]), context); - } - return contents; -}; - -/** - * deserializeAws_restXmlServerSideEncryptionRule - */ -const de_ServerSideEncryptionRule = (output: any, context: __SerdeContext): ServerSideEncryptionRule => { - const contents: any = {}; - if (output[_ASSEBD] != null) { - contents[_ASSEBD] = de_ServerSideEncryptionByDefault(output[_ASSEBD], context); - } - if (output[_BKE] != null) { - contents[_BKE] = __parseBoolean(output[_BKE]); - } - return contents; -}; - -/** - * deserializeAws_restXmlServerSideEncryptionRules - */ -const de_ServerSideEncryptionRules = (output: any, context: __SerdeContext): ServerSideEncryptionRule[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_ServerSideEncryptionRule(entry, context); - }); -}; - -/** - * deserializeAws_restXmlSessionCredentials - */ -const de_SessionCredentials = (output: any, context: __SerdeContext): SessionCredentials => { - const contents: any = {}; - if (output[_AKI] != null) { - contents[_AKI] = __expectString(output[_AKI]); - } - if (output[_SAK] != null) { - contents[_SAK] = __expectString(output[_SAK]); - } - if (output[_ST] != null) { - contents[_ST] = __expectString(output[_ST]); - } - if (output[_Exp] != null) { - contents[_Exp] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Exp])); - } - return contents; -}; - -/** - * deserializeAws_restXmlSimplePrefix - */ -const de_SimplePrefix = (output: any, context: __SerdeContext): SimplePrefix => { - const contents: any = {}; - return contents; -}; - -/** - * deserializeAws_restXmlSourceSelectionCriteria - */ -const de_SourceSelectionCriteria = (output: any, context: __SerdeContext): SourceSelectionCriteria => { - const contents: any = {}; - if (output[_SKEO] != null) { - contents[_SKEO] = de_SseKmsEncryptedObjects(output[_SKEO], context); - } - if (output[_RM] != null) { - contents[_RM] = de_ReplicaModifications(output[_RM], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlSSEKMS - */ -const de_SSEKMS = (output: any, context: __SerdeContext): SSEKMS => { - const contents: any = {}; - if (output[_KI] != null) { - contents[_KI] = __expectString(output[_KI]); - } - return contents; -}; - -/** - * deserializeAws_restXmlSseKmsEncryptedObjects - */ -const de_SseKmsEncryptedObjects = (output: any, context: __SerdeContext): SseKmsEncryptedObjects => { - const contents: any = {}; - if (output[_S] != null) { - contents[_S] = __expectString(output[_S]); - } - return contents; -}; - -/** - * deserializeAws_restXmlSSES3 - */ -const de_SSES3 = (output: any, context: __SerdeContext): SSES3 => { - const contents: any = {}; - return contents; -}; - -/** - * deserializeAws_restXmlStats - */ -const de_Stats = (output: any, context: __SerdeContext): Stats => { - const contents: any = {}; - if (output[_BS] != null) { - contents[_BS] = __strictParseLong(output[_BS]) as number; - } - if (output[_BP] != null) { - contents[_BP] = __strictParseLong(output[_BP]) as number; - } - if (output[_BRy] != null) { - contents[_BRy] = __strictParseLong(output[_BRy]) as number; - } - return contents; -}; - -/** - * deserializeAws_restXmlStorageClassAnalysis - */ -const de_StorageClassAnalysis = (output: any, context: __SerdeContext): StorageClassAnalysis => { - const contents: any = {}; - if (output[_DE] != null) { - contents[_DE] = de_StorageClassAnalysisDataExport(output[_DE], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlStorageClassAnalysisDataExport - */ -const de_StorageClassAnalysisDataExport = (output: any, context: __SerdeContext): StorageClassAnalysisDataExport => { - const contents: any = {}; - if (output[_OSV] != null) { - contents[_OSV] = __expectString(output[_OSV]); - } - if (output[_Des] != null) { - contents[_Des] = de_AnalyticsExportDestination(output[_Des], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlTag - */ -const de_Tag = (output: any, context: __SerdeContext): Tag => { - const contents: any = {}; - if (output[_K] != null) { - contents[_K] = __expectString(output[_K]); - } - if (output[_Va] != null) { - contents[_Va] = __expectString(output[_Va]); - } - return contents; -}; - -/** - * deserializeAws_restXmlTagSet - */ -const de_TagSet = (output: any, context: __SerdeContext): Tag[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_Tag(entry, context); - }); -}; - -/** - * deserializeAws_restXmlTargetGrant - */ -const de_TargetGrant = (output: any, context: __SerdeContext): TargetGrant => { - const contents: any = {}; - if (output[_Gra] != null) { - contents[_Gra] = de_Grantee(output[_Gra], context); - } - if (output[_Pe] != null) { - contents[_Pe] = __expectString(output[_Pe]); - } - return contents; -}; - -/** - * deserializeAws_restXmlTargetGrants - */ -const de_TargetGrants = (output: any, context: __SerdeContext): TargetGrant[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_TargetGrant(entry, context); - }); -}; - -/** - * deserializeAws_restXmlTargetObjectKeyFormat - */ -const de_TargetObjectKeyFormat = (output: any, context: __SerdeContext): TargetObjectKeyFormat => { - const contents: any = {}; - if (output[_SPi] != null) { - contents[_SPi] = de_SimplePrefix(output[_SPi], context); - } - if (output[_PP] != null) { - contents[_PP] = de_PartitionedPrefix(output[_PP], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlTiering - */ -const de_Tiering = (output: any, context: __SerdeContext): Tiering => { - const contents: any = {}; - if (output[_Da] != null) { - contents[_Da] = __strictParseInt32(output[_Da]) as number; - } - if (output[_AT] != null) { - contents[_AT] = __expectString(output[_AT]); - } - return contents; -}; - -/** - * deserializeAws_restXmlTieringList - */ -const de_TieringList = (output: any, context: __SerdeContext): Tiering[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_Tiering(entry, context); - }); -}; - -/** - * deserializeAws_restXmlTopicConfiguration - */ -const de_TopicConfiguration = (output: any, context: __SerdeContext): TopicConfiguration => { - const contents: any = {}; - if (output[_I] != null) { - contents[_I] = __expectString(output[_I]); - } - if (output[_Top] != null) { - contents[_TA] = __expectString(output[_Top]); - } - if (output.Event === "") { - contents[_Eve] = []; - } else if (output[_Ev] != null) { - contents[_Eve] = de_EventList(__getArrayIfSingleItem(output[_Ev]), context); - } - if (output[_F] != null) { - contents[_F] = de_NotificationConfigurationFilter(output[_F], context); - } - return contents; -}; - -/** - * deserializeAws_restXmlTopicConfigurationList - */ -const de_TopicConfigurationList = (output: any, context: __SerdeContext): TopicConfiguration[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_TopicConfiguration(entry, context); - }); -}; - -/** - * deserializeAws_restXmlTransition - */ -const de_Transition = (output: any, context: __SerdeContext): Transition => { - const contents: any = {}; - if (output[_Dat] != null) { - contents[_Dat] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Dat])); - } - if (output[_Da] != null) { - contents[_Da] = __strictParseInt32(output[_Da]) as number; - } - if (output[_SC] != null) { - contents[_SC] = __expectString(output[_SC]); - } - return contents; -}; - -/** - * deserializeAws_restXmlTransitionList - */ -const de_TransitionList = (output: any, context: __SerdeContext): Transition[] => { - return (output || []) - .filter((e: any) => e != null) - .map((entry: any) => { - return de_Transition(entry, context); - }); -}; - -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 _A = "And"; -const _AAO = "AnalyticsAndOperator"; -const _AC = "AnalyticsConfiguration"; -const _ACL = "ACL"; -const _ACLc = "AccessControlList"; -const _ACLn = "AnalyticsConfigurationList"; -const _ACP = "AccessControlPolicy"; -const _ACT = "AccessControlTranslation"; -const _ACc = "AccelerateConfiguration"; -const _AD = "AbortDate"; -const _AED = "AnalyticsExportDestination"; -const _AF = "AnalyticsFilter"; -const _AH = "AllowedHeader"; -const _AHl = "AllowedHeaders"; -const _AI = "AnalyticsId"; -const _AIMU = "AbortIncompleteMultipartUpload"; -const _AIc = "AccountId"; -const _AKI = "AccessKeyId"; -const _AM = "AllowedMethod"; -const _AMl = "AllowedMethods"; -const _AO = "AllowedOrigin"; -const _AOl = "AllowedOrigins"; -const _APA = "AccessPointAlias"; -const _APAc = "AccessPointArn"; -const _AQRD = "AllowQuotedRecordDelimiter"; -const _AR = "AcceptRanges"; -const _ARI = "AbortRuleId"; -const _AS = "ArchiveStatus"; -const _ASBD = "AnalyticsS3BucketDestination"; -const _ASEFF = "AnalyticsS3ExportFileFormat"; -const _ASSEBD = "ApplyServerSideEncryptionByDefault"; -const _AT = "AccessTier"; -const _Ac = "Account"; -const _B = "Bucket"; -const _BA = "BucketArn"; -const _BAI = "BucketAccountId"; -const _BAS = "BucketAccelerateStatus"; -const _BGR = "BypassGovernanceRetention"; -const _BI = "BucketInfo"; -const _BKE = "BucketKeyEnabled"; -const _BLC = "BucketLifecycleConfiguration"; -const _BLCu = "BucketLocationConstraint"; -const _BLN = "BucketLocationName"; -const _BLP = "BucketLogsPermission"; -const _BLS = "BucketLoggingStatus"; -const _BLT = "BucketLocationType"; -const _BN = "BucketName"; -const _BP = "BytesProcessed"; -const _BPA = "BlockPublicAcls"; -const _BPP = "BlockPublicPolicy"; -const _BR = "BucketRegion"; -const _BRy = "BytesReturned"; -const _BS = "BytesScanned"; -const _BT = "BucketType"; -const _BVS = "BucketVersioningStatus"; -const _Bu = "Buckets"; -const _C = "Credentials"; -const _CA = "ChecksumAlgorithm"; -const _CACL = "CannedACL"; -const _CBC = "CreateBucketConfiguration"; -const _CC = "CacheControl"; -const _CCRC = "ChecksumCRC32"; -const _CCRCC = "ChecksumCRC32C"; -const _CCRCNVME = "ChecksumCRC64NVME"; -const _CD = "ContentDisposition"; -const _CDr = "CreationDate"; -const _CE = "ContentEncoding"; -const _CF = "CloudFunction"; -const _CFC = "CloudFunctionConfiguration"; -const _CL = "ContentLanguage"; -const _CLo = "ContentLength"; -const _CM = "ChecksumMode"; -const _CMD = "ContentMD5"; -const _CMU = "CompletedMultipartUpload"; -const _CORSC = "CORSConfiguration"; -const _CORSR = "CORSRule"; -const _CORSRu = "CORSRules"; -const _CP = "CommonPrefixes"; -const _CPo = "CompletedPart"; -const _CR = "ContentRange"; -const _CRSBA = "ConfirmRemoveSelfBucketAccess"; -const _CS = "CopySource"; -const _CSHA = "ChecksumSHA1"; -const _CSHAh = "ChecksumSHA256"; -const _CSIM = "CopySourceIfMatch"; -const _CSIMS = "CopySourceIfModifiedSince"; -const _CSINM = "CopySourceIfNoneMatch"; -const _CSIUS = "CopySourceIfUnmodifiedSince"; -const _CSR = "CopySourceRange"; -const _CSSSECA = "CopySourceSSECustomerAlgorithm"; -const _CSSSECK = "CopySourceSSECustomerKey"; -const _CSSSECKMD = "CopySourceSSECustomerKeyMD5"; -const _CSV = "CSV"; -const _CSVI = "CopySourceVersionId"; -const _CSVIn = "CSVInput"; -const _CSVO = "CSVOutput"; -const _CSo = "ConfigurationState"; -const _CT = "ChecksumType"; -const _CTl = "ClientToken"; -const _CTo = "ContentType"; -const _CTom = "CompressionType"; -const _CTon = "ContinuationToken"; -const _Ch = "Checksum"; -const _Co = "Contents"; -const _Cod = "Code"; -const _Com = "Comments"; -const _Con = "Condition"; -const _D = "Delimiter"; -const _DAI = "DaysAfterInitiation"; -const _DE = "DataExport"; -const _DIM = "DestinationIfMatch"; -const _DIMS = "DestinationIfModifiedSince"; -const _DINM = "DestinationIfNoneMatch"; -const _DIUS = "DestinationIfUnmodifiedSince"; -const _DM = "DeleteMarker"; -const _DMR = "DeleteMarkerReplication"; -const _DMRS = "DeleteMarkerReplicationStatus"; -const _DMVI = "DeleteMarkerVersionId"; -const _DMe = "DeleteMarkers"; -const _DN = "DisplayName"; -const _DR = "DataRedundancy"; -const _DRe = "DefaultRetention"; -const _DRes = "DestinationResult"; -const _Da = "Days"; -const _Dat = "Date"; -const _De = "Deleted"; -const _Del = "Delete"; -const _Des = "Destination"; -const _Desc = "Description"; -const _E = "Expires"; -const _EA = "EmailAddress"; -const _EBC = "EventBridgeConfiguration"; -const _EBO = "ExpectedBucketOwner"; -const _EC = "ErrorCode"; -const _ECn = "EncryptionConfiguration"; -const _ED = "ErrorDocument"; -const _EH = "ExposeHeaders"; -const _EHx = "ExposeHeader"; -const _EM = "ErrorMessage"; -const _EODM = "ExpiredObjectDeleteMarker"; -const _EOR = "ExistingObjectReplication"; -const _EORS = "ExistingObjectReplicationStatus"; -const _ERP = "EnableRequestProgress"; -const _ES = "ExpiresString"; -const _ESBO = "ExpectedSourceBucketOwner"; -const _ESx = "ExpirationStatus"; -const _ESxp = "ExpirationState"; -const _ET = "EncodingType"; -const _ETa = "ETag"; -const _ETn = "EncryptionType"; -const _ETv = "EventThreshold"; -const _ETx = "ExpressionType"; -const _En = "Encryption"; -const _Ena = "Enabled"; -const _End = "End"; -const _Er = "Error"; -const _Err = "Errors"; -const _Ev = "Event"; -const _Eve = "Events"; -const _Ex = "Expression"; -const _Exp = "Expiration"; -const _F = "Filter"; -const _FD = "FieldDelimiter"; -const _FHI = "FileHeaderInfo"; -const _FO = "FetchOwner"; -const _FR = "FilterRule"; -const _FRN = "FilterRuleName"; -const _FRV = "FilterRuleValue"; -const _FRi = "FilterRules"; -const _Fi = "Field"; -const _Fo = "Format"; -const _Fr = "Frequency"; -const _G = "Grant"; -const _GFC = "GrantFullControl"; -const _GJP = "GlacierJobParameters"; -const _GR = "GrantRead"; -const _GRACP = "GrantReadACP"; -const _GW = "GrantWrite"; -const _GWACP = "GrantWriteACP"; -const _Gr = "Grants"; -const _Gra = "Grantee"; -const _HECRE = "HttpErrorCodeReturnedEquals"; -const _HN = "HostName"; -const _HRC = "HttpRedirectCode"; -const _I = "Id"; -const _IC = "InventoryConfiguration"; -const _ICL = "InventoryConfigurationList"; -const _ICS = "InventoryConfigurationState"; -const _ID = "IndexDocument"; -const _ID_ = "ID"; -const _IDn = "InventoryDestination"; -const _IE = "IsEnabled"; -const _IEn = "InventoryEncryption"; -const _IF = "InventoryFilter"; -const _IFn = "InventoryFormat"; -const _IFnv = "InventoryFrequency"; -const _II = "InventoryId"; -const _IIOV = "InventoryIncludedObjectVersions"; -const _IL = "IsLatest"; -const _IM = "IfMatch"; -const _IMIT = "IfMatchInitiatedTime"; -const _IMLMT = "IfMatchLastModifiedTime"; -const _IMS = "IfMatchSize"; -const _IMSf = "IfModifiedSince"; -const _INM = "IfNoneMatch"; -const _IOF = "InventoryOptionalField"; -const _IOV = "IncludedObjectVersions"; -const _IP = "IsPublic"; -const _IPA = "IgnorePublicAcls"; -const _IRIP = "IsRestoreInProgress"; -const _IS = "InputSerialization"; -const _ISBD = "InventoryS3BucketDestination"; -const _ISn = "InventorySchedule"; -const _IT = "IsTruncated"; -const _ITAO = "IntelligentTieringAndOperator"; -const _ITAT = "IntelligentTieringAccessTier"; -const _ITC = "IntelligentTieringConfiguration"; -const _ITCL = "IntelligentTieringConfigurationList"; -const _ITCR = "InventoryTableConfigurationResult"; -const _ITCU = "InventoryTableConfigurationUpdates"; -const _ITCn = "InventoryTableConfiguration"; -const _ITD = "IntelligentTieringDays"; -const _ITF = "IntelligentTieringFilter"; -const _ITI = "IntelligentTieringId"; -const _ITS = "IntelligentTieringStatus"; -const _IUS = "IfUnmodifiedSince"; -const _In = "Initiator"; -const _Ini = "Initiated"; -const _JSON = "JSON"; -const _JSONI = "JSONInput"; -const _JSONO = "JSONOutput"; -const _JSONT = "JSONType"; -const _JTC = "JournalTableConfiguration"; -const _JTCR = "JournalTableConfigurationResult"; -const _JTCU = "JournalTableConfigurationUpdates"; -const _K = "Key"; -const _KC = "KeyCount"; -const _KI = "KeyId"; -const _KKA = "KmsKeyArn"; -const _KM = "KeyMarker"; -const _KMSC = "KMSContext"; -const _KMSKI = "KMSKeyId"; -const _KMSMKID = "KMSMasterKeyID"; -const _KPE = "KeyPrefixEquals"; -const _L = "Location"; -const _LC = "LocationConstraint"; -const _LE = "LoggingEnabled"; -const _LEi = "LifecycleExpiration"; -const _LFA = "LambdaFunctionArn"; -const _LFC = "LambdaFunctionConfigurations"; -const _LFCa = "LambdaFunctionConfiguration"; -const _LI = "LocationInfo"; -const _LM = "LastModified"; -const _LMT = "LastModifiedTime"; -const _LNAS = "LocationNameAsString"; -const _LP = "LocationPrefix"; -const _LR = "LifecycleRule"; -const _LRAO = "LifecycleRuleAndOperator"; -const _LRF = "LifecycleRuleFilter"; -const _LT = "LocationType"; -const _M = "Marker"; -const _MAO = "MetricsAndOperator"; -const _MAS = "MaxAgeSeconds"; -const _MB = "MaxBuckets"; -const _MC = "MetricsConfiguration"; -const _MCL = "MetricsConfigurationList"; -const _MCR = "MetadataConfigurationResult"; -const _MCe = "MetadataConfiguration"; -const _MD = "MetadataDirective"; -const _MDB = "MaxDirectoryBuckets"; -const _MDf = "MfaDelete"; -const _ME = "MetadataEntry"; -const _MF = "MetricsFilter"; -const _MFA = "MFA"; -const _MFAD = "MFADelete"; -const _MI = "MetricsId"; -const _MK = "MaxKeys"; -const _MKe = "MetadataKey"; -const _MM = "MissingMeta"; -const _MOS = "MpuObjectSize"; -const _MP = "MaxParts"; -const _MS = "MetricsStatus"; -const _MTC = "MetadataTableConfiguration"; -const _MTCR = "MetadataTableConfigurationResult"; -const _MTEC = "MetadataTableEncryptionConfiguration"; -const _MU = "MaxUploads"; -const _MV = "MetadataValue"; -const _Me = "Metrics"; -const _Mes = "Message"; -const _Mi = "Minutes"; -const _Mo = "Mode"; -const _N = "Name"; -const _NC = "NotificationConfiguration"; -const _NCF = "NotificationConfigurationFilter"; -const _NCT = "NextContinuationToken"; -const _ND = "NoncurrentDays"; -const _NI = "NotificationId"; -const _NKM = "NextKeyMarker"; -const _NM = "NextMarker"; -const _NNV = "NewerNoncurrentVersions"; -const _NPNM = "NextPartNumberMarker"; -const _NUIM = "NextUploadIdMarker"; -const _NVE = "NoncurrentVersionExpiration"; -const _NVIM = "NextVersionIdMarker"; -const _NVT = "NoncurrentVersionTransitions"; -const _NVTo = "NoncurrentVersionTransition"; -const _O = "Owner"; -const _OA = "ObjectAttributes"; -const _OC = "OwnershipControls"; -const _OCACL = "ObjectCannedACL"; -const _OCR = "OwnershipControlsRule"; -const _OF = "OptionalFields"; -const _OI = "ObjectIdentifier"; -const _OK = "ObjectKey"; -const _OL = "OutputLocation"; -const _OLC = "ObjectLockConfiguration"; -const _OLE = "ObjectLockEnabled"; -const _OLEFB = "ObjectLockEnabledForBucket"; -const _OLLH = "ObjectLockLegalHold"; -const _OLLHS = "ObjectLockLegalHoldStatus"; -const _OLM = "ObjectLockMode"; -const _OLR = "ObjectLockRetention"; -const _OLRM = "ObjectLockRetentionMode"; -const _OLRUD = "ObjectLockRetainUntilDate"; -const _OLRb = "ObjectLockRule"; -const _OO = "ObjectOwnership"; -const _OOA = "OptionalObjectAttributes"; -const _OOw = "OwnerOverride"; -const _OP = "ObjectParts"; -const _OS = "OutputSerialization"; -const _OSGT = "ObjectSizeGreaterThan"; -const _OSGTB = "ObjectSizeGreaterThanBytes"; -const _OSLT = "ObjectSizeLessThan"; -const _OSLTB = "ObjectSizeLessThanBytes"; -const _OSV = "OutputSchemaVersion"; -const _OSb = "ObjectSize"; -const _OVI = "ObjectVersionId"; -const _Ob = "Objects"; -const _P = "Prefix"; -const _PABC = "PublicAccessBlockConfiguration"; -const _PC = "PartsCount"; -const _PDS = "PartitionDateSource"; -const _PI = "ParquetInput"; -const _PN = "PartNumber"; -const _PNM = "PartNumberMarker"; -const _PP = "PartitionedPrefix"; -const _Pa = "Payer"; -const _Par = "Part"; -const _Parq = "Parquet"; -const _Part = "Parts"; -const _Pe = "Permission"; -const _Pr = "Protocol"; -const _Pri = "Priority"; -const _Q = "Quiet"; -const _QA = "QueueArn"; -const _QC = "QueueConfiguration"; -const _QCu = "QueueConfigurations"; -const _QCuo = "QuoteCharacter"; -const _QEC = "QuoteEscapeCharacter"; -const _QF = "QuoteFields"; -const _Qu = "Queue"; -const _R = "Range"; -const _RART = "RedirectAllRequestsTo"; -const _RC = "RequestCharged"; -const _RCC = "ResponseCacheControl"; -const _RCD = "ResponseContentDisposition"; -const _RCE = "ResponseContentEncoding"; -const _RCL = "ResponseContentLanguage"; -const _RCT = "ResponseContentType"; -const _RCe = "ReplicationConfiguration"; -const _RD = "RecordDelimiter"; -const _RE = "ResponseExpires"; -const _RED = "RecordExpirationDays"; -const _REDe = "RestoreExpiryDate"; -const _REe = "RecordExpiration"; -const _RKKID = "ReplicaKmsKeyID"; -const _RKPW = "ReplaceKeyPrefixWith"; -const _RKW = "ReplaceKeyWith"; -const _RM = "ReplicaModifications"; -const _RMS = "ReplicaModificationsStatus"; -const _ROP = "RestoreOutputPath"; -const _RP = "RequestPayer"; -const _RPB = "RestrictPublicBuckets"; -const _RPC = "RequestPaymentConfiguration"; -const _RPe = "RequestProgress"; -const _RR = "RequestRoute"; -const _RRAO = "ReplicationRuleAndOperator"; -const _RRF = "ReplicationRuleFilter"; -const _RRS = "ReplicationRuleStatus"; -const _RRT = "RestoreRequestType"; -const _RRe = "ReplicationRule"; -const _RRes = "RestoreRequest"; -const _RRo = "RoutingRules"; -const _RRou = "RoutingRule"; -const _RS = "RenameSource"; -const _RSe = "ReplicationStatus"; -const _RSes = "RestoreStatus"; -const _RT = "RequestToken"; -const _RTS = "ReplicationTimeStatus"; -const _RTV = "ReplicationTimeValue"; -const _RTe = "ReplicationTime"; -const _RUD = "RetainUntilDate"; -const _Re = "Restore"; -const _Red = "Redirect"; -const _Ro = "Role"; -const _Ru = "Rule"; -const _Rul = "Rules"; -const _S = "Status"; -const _SA = "StartAfter"; -const _SAK = "SecretAccessKey"; -const _SAs = "SseAlgorithm"; -const _SBD = "S3BucketDestination"; -const _SC = "StorageClass"; -const _SCA = "StorageClassAnalysis"; -const _SCADE = "StorageClassAnalysisDataExport"; -const _SCASV = "StorageClassAnalysisSchemaVersion"; -const _SCt = "StatusCode"; -const _SDV = "SkipDestinationValidation"; -const _SIM = "SourceIfMatch"; -const _SIMS = "SourceIfModifiedSince"; -const _SINM = "SourceIfNoneMatch"; -const _SIUS = "SourceIfUnmodifiedSince"; -const _SK = "SSE-KMS"; -const _SKEO = "SseKmsEncryptedObjects"; -const _SKEOS = "SseKmsEncryptedObjectsStatus"; -const _SKF = "S3KeyFilter"; -const _SKe = "S3Key"; -const _SL = "S3Location"; -const _SM = "SessionMode"; -const _SOCR = "SelectObjectContentRequest"; -const _SP = "SelectParameters"; -const _SPi = "SimplePrefix"; -const _SR = "ScanRange"; -const _SS = "SSE-S3"; -const _SSC = "SourceSelectionCriteria"; -const _SSE = "ServerSideEncryption"; -const _SSEA = "SSEAlgorithm"; -const _SSEBD = "ServerSideEncryptionByDefault"; -const _SSEC = "ServerSideEncryptionConfiguration"; -const _SSECA = "SSECustomerAlgorithm"; -const _SSECK = "SSECustomerKey"; -const _SSECKMD = "SSECustomerKeyMD5"; -const _SSEKMS = "SSEKMS"; -const _SSEKMSEC = "SSEKMSEncryptionContext"; -const _SSEKMSKI = "SSEKMSKeyId"; -const _SSER = "ServerSideEncryptionRule"; -const _SSES = "SSES3"; -const _ST = "SessionToken"; -const _STBA = "S3TablesBucketArn"; -const _STD = "S3TablesDestination"; -const _STDR = "S3TablesDestinationResult"; -const _STN = "S3TablesName"; -const _S_ = "S3"; -const _Sc = "Schedule"; -const _Se = "Setting"; -const _Si = "Size"; -const _St = "Start"; -const _Su = "Suffix"; -const _T = "Tagging"; -const _TA = "TopicArn"; -const _TAa = "TableArn"; -const _TB = "TargetBucket"; -const _TBA = "TableBucketArn"; -const _TBT = "TableBucketType"; -const _TC = "TagCount"; -const _TCo = "TopicConfiguration"; -const _TCop = "TopicConfigurations"; -const _TD = "TaggingDirective"; -const _TDMOS = "TransitionDefaultMinimumObjectSize"; -const _TG = "TargetGrants"; -const _TGa = "TargetGrant"; -const _TN = "TableName"; -const _TNa = "TableNamespace"; -const _TOKF = "TargetObjectKeyFormat"; -const _TP = "TargetPrefix"; -const _TPC = "TotalPartsCount"; -const _TS = "TagSet"; -const _TSA = "TableSseAlgorithm"; -const _TSC = "TransitionStorageClass"; -const _TSa = "TableStatus"; -const _Ta = "Tag"; -const _Tag = "Tags"; -const _Ti = "Tier"; -const _Tie = "Tierings"; -const _Tier = "Tiering"; -const _Tim = "Time"; -const _To = "Token"; -const _Top = "Topic"; -const _Tr = "Transitions"; -const _Tra = "Transition"; -const _Ty = "Type"; -const _U = "Upload"; -const _UI = "UploadId"; -const _UIM = "UploadIdMarker"; -const _UM = "UserMetadata"; -const _URI = "URI"; -const _Up = "Uploads"; -const _V = "Version"; -const _VC = "VersionCount"; -const _VCe = "VersioningConfiguration"; -const _VI = "VersionId"; -const _VIM = "VersionIdMarker"; -const _Va = "Value"; -const _Ve = "Versions"; -const _WC = "WebsiteConfiguration"; -const _WOB = "WriteOffsetBytes"; -const _WRL = "WebsiteRedirectLocation"; -const _Y = "Years"; -const _a = "analytics"; -const _ac = "accelerate"; -const _acl = "acl"; -const _ar = "accept-ranges"; -const _at = "attributes"; -const _br = "bucket-region"; -const _c = "cors"; -const _cc = "cache-control"; -const _cd = "content-disposition"; -const _ce = "content-encoding"; -const _cl = "content-language"; -const _cl_ = "content-length"; -const _cm = "content-md5"; -const _cr = "content-range"; -const _ct = "content-type"; -const _ct_ = "continuation-token"; -const _d = "delete"; -const _de = "delimiter"; -const _e = "expires"; -const _en = "encryption"; -const _et = "encoding-type"; -const _eta = "etag"; -const _ex = "expiresstring"; -const _fo = "fetch-owner"; -const _i = "id"; -const _im = "if-match"; -const _ims = "if-modified-since"; -const _in = "inventory"; -const _inm = "if-none-match"; -const _it = "intelligent-tiering"; -const _ius = "if-unmodified-since"; -const _km = "key-marker"; -const _l = "lifecycle"; -const _lh = "legal-hold"; -const _lm = "last-modified"; -const _lo = "location"; -const _log = "logging"; -const _lt = "list-type"; -const _m = "metrics"; -const _mC = "metadataConfiguration"; -const _mIT = "metadataInventoryTable"; -const _mJT = "metadataJournalTable"; -const _mT = "metadataTable"; -const _ma = "marker"; -const _mb = "max-buckets"; -const _mdb = "max-directory-buckets"; -const _me = "member"; -const _mk = "max-keys"; -const _mp = "max-parts"; -const _mu = "max-uploads"; -const _n = "notification"; -const _oC = "ownershipControls"; -const _ol = "object-lock"; -const _p = "policy"; -const _pAB = "publicAccessBlock"; -const _pN = "partNumber"; -const _pS = "policyStatus"; -const _pnm = "part-number-marker"; -const _pr = "prefix"; -const _r = "replication"; -const _rO = "renameObject"; -const _rP = "requestPayment"; -const _ra = "range"; -const _rcc = "response-cache-control"; -const _rcd = "response-content-disposition"; -const _rce = "response-content-encoding"; -const _rcl = "response-content-language"; -const _rct = "response-content-type"; -const _re = "response-expires"; -const _res = "restore"; -const _ret = "retention"; -const _s = "session"; -const _sa = "start-after"; -const _se = "select"; -const _st = "select-type"; -const _t = "tagging"; -const _to = "torrent"; -const _u = "uploads"; -const _uI = "uploadId"; -const _uim = "upload-id-marker"; -const _v = "versioning"; -const _vI = "versionId"; -const _ve = ''; -const _ver = "versions"; -const _vim = "version-id-marker"; -const _w = "website"; -const _x = "xsi:type"; -const _xaa = "x-amz-acl"; -const _xaad = "x-amz-abort-date"; -const _xaapa = "x-amz-access-point-alias"; -const _xaari = "x-amz-abort-rule-id"; -const _xaas = "x-amz-archive-status"; -const _xaba = "x-amz-bucket-arn"; -const _xabgr = "x-amz-bypass-governance-retention"; -const _xabln = "x-amz-bucket-location-name"; -const _xablt = "x-amz-bucket-location-type"; -const _xabole = "x-amz-bucket-object-lock-enabled"; -const _xabolt = "x-amz-bucket-object-lock-token"; -const _xabr = "x-amz-bucket-region"; -const _xaca = "x-amz-checksum-algorithm"; -const _xacc = "x-amz-checksum-crc32"; -const _xacc_ = "x-amz-checksum-crc32c"; -const _xacc__ = "x-amz-checksum-crc64nvme"; -const _xacm = "x-amz-checksum-mode"; -const _xacrsba = "x-amz-confirm-remove-self-bucket-access"; -const _xacs = "x-amz-checksum-sha1"; -const _xacs_ = "x-amz-checksum-sha256"; -const _xacs__ = "x-amz-copy-source"; -const _xacsim = "x-amz-copy-source-if-match"; -const _xacsims = "x-amz-copy-source-if-modified-since"; -const _xacsinm = "x-amz-copy-source-if-none-match"; -const _xacsius = "x-amz-copy-source-if-unmodified-since"; -const _xacsm = "x-amz-create-session-mode"; -const _xacsr = "x-amz-copy-source-range"; -const _xacssseca = "x-amz-copy-source-server-side-encryption-customer-algorithm"; -const _xacssseck = "x-amz-copy-source-server-side-encryption-customer-key"; -const _xacssseckm = "x-amz-copy-source-server-side-encryption-customer-key-md5"; -const _xacsvi = "x-amz-copy-source-version-id"; -const _xact = "x-amz-checksum-type"; -const _xact_ = "x-amz-client-token"; -const _xadm = "x-amz-delete-marker"; -const _xae = "x-amz-expiration"; -const _xaebo = "x-amz-expected-bucket-owner"; -const _xafec = "x-amz-fwd-error-code"; -const _xafem = "x-amz-fwd-error-message"; -const _xafhar = "x-amz-fwd-header-accept-ranges"; -const _xafhcc = "x-amz-fwd-header-cache-control"; -const _xafhcd = "x-amz-fwd-header-content-disposition"; -const _xafhce = "x-amz-fwd-header-content-encoding"; -const _xafhcl = "x-amz-fwd-header-content-language"; -const _xafhcr = "x-amz-fwd-header-content-range"; -const _xafhct = "x-amz-fwd-header-content-type"; -const _xafhe = "x-amz-fwd-header-etag"; -const _xafhe_ = "x-amz-fwd-header-expires"; -const _xafhlm = "x-amz-fwd-header-last-modified"; -const _xafhxacc = "x-amz-fwd-header-x-amz-checksum-crc32"; -const _xafhxacc_ = "x-amz-fwd-header-x-amz-checksum-crc32c"; -const _xafhxacc__ = "x-amz-fwd-header-x-amz-checksum-crc64nvme"; -const _xafhxacs = "x-amz-fwd-header-x-amz-checksum-sha1"; -const _xafhxacs_ = "x-amz-fwd-header-x-amz-checksum-sha256"; -const _xafhxadm = "x-amz-fwd-header-x-amz-delete-marker"; -const _xafhxae = "x-amz-fwd-header-x-amz-expiration"; -const _xafhxamm = "x-amz-fwd-header-x-amz-missing-meta"; -const _xafhxampc = "x-amz-fwd-header-x-amz-mp-parts-count"; -const _xafhxaollh = "x-amz-fwd-header-x-amz-object-lock-legal-hold"; -const _xafhxaolm = "x-amz-fwd-header-x-amz-object-lock-mode"; -const _xafhxaolrud = "x-amz-fwd-header-x-amz-object-lock-retain-until-date"; -const _xafhxar = "x-amz-fwd-header-x-amz-restore"; -const _xafhxarc = "x-amz-fwd-header-x-amz-request-charged"; -const _xafhxars = "x-amz-fwd-header-x-amz-replication-status"; -const _xafhxasc = "x-amz-fwd-header-x-amz-storage-class"; -const _xafhxasse = "x-amz-fwd-header-x-amz-server-side-encryption"; -const _xafhxasseakki = "x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id"; -const _xafhxassebke = "x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled"; -const _xafhxasseca = "x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm"; -const _xafhxasseckm = "x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5"; -const _xafhxatc = "x-amz-fwd-header-x-amz-tagging-count"; -const _xafhxavi = "x-amz-fwd-header-x-amz-version-id"; -const _xafs = "x-amz-fwd-status"; -const _xagfc = "x-amz-grant-full-control"; -const _xagr = "x-amz-grant-read"; -const _xagra = "x-amz-grant-read-acp"; -const _xagw = "x-amz-grant-write"; -const _xagwa = "x-amz-grant-write-acp"; -const _xaimit = "x-amz-if-match-initiated-time"; -const _xaimlmt = "x-amz-if-match-last-modified-time"; -const _xaims = "x-amz-if-match-size"; -const _xam = "x-amz-mfa"; -const _xamd = "x-amz-metadata-directive"; -const _xamm = "x-amz-missing-meta"; -const _xamos = "x-amz-mp-object-size"; -const _xamp = "x-amz-max-parts"; -const _xampc = "x-amz-mp-parts-count"; -const _xaoa = "x-amz-object-attributes"; -const _xaollh = "x-amz-object-lock-legal-hold"; -const _xaolm = "x-amz-object-lock-mode"; -const _xaolrud = "x-amz-object-lock-retain-until-date"; -const _xaoo = "x-amz-object-ownership"; -const _xaooa = "x-amz-optional-object-attributes"; -const _xaos = "x-amz-object-size"; -const _xapnm = "x-amz-part-number-marker"; -const _xar = "x-amz-restore"; -const _xarc = "x-amz-request-charged"; -const _xarop = "x-amz-restore-output-path"; -const _xarp = "x-amz-request-payer"; -const _xarr = "x-amz-request-route"; -const _xars = "x-amz-rename-source"; -const _xars_ = "x-amz-replication-status"; -const _xarsim = "x-amz-rename-source-if-match"; -const _xarsims = "x-amz-rename-source-if-modified-since"; -const _xarsinm = "x-amz-rename-source-if-none-match"; -const _xarsius = "x-amz-rename-source-if-unmodified-since"; -const _xart = "x-amz-request-token"; -const _xasc = "x-amz-storage-class"; -const _xasca = "x-amz-sdk-checksum-algorithm"; -const _xasdv = "x-amz-skip-destination-validation"; -const _xasebo = "x-amz-source-expected-bucket-owner"; -const _xasse = "x-amz-server-side-encryption"; -const _xasseakki = "x-amz-server-side-encryption-aws-kms-key-id"; -const _xassebke = "x-amz-server-side-encryption-bucket-key-enabled"; -const _xassec = "x-amz-server-side-encryption-context"; -const _xasseca = "x-amz-server-side-encryption-customer-algorithm"; -const _xasseck = "x-amz-server-side-encryption-customer-key"; -const _xasseckm = "x-amz-server-side-encryption-customer-key-md5"; -const _xat = "x-amz-tagging"; -const _xatc = "x-amz-tagging-count"; -const _xatd = "x-amz-tagging-directive"; -const _xatdmos = "x-amz-transition-default-minimum-object-size"; -const _xavi = "x-amz-version-id"; -const _xawob = "x-amz-write-offset-bytes"; -const _xawrl = "x-amz-website-redirect-location"; -const _xi = "x-id"; diff --git a/clients/client-s3/src/runtimeConfig.shared.ts b/clients/client-s3/src/runtimeConfig.shared.ts index 3ce74841d8b2..7cb09f0259cd 100644 --- a/clients/client-s3/src/runtimeConfig.shared.ts +++ b/clients/client-s3/src/runtimeConfig.shared.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { AwsSdkSigV4ASigner, AwsSdkSigV4Signer } from "@aws-sdk/core"; +import { AwsRestXmlProtocol } from "@aws-sdk/core/protocols"; import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region"; import { NoOpLogger } from "@smithy/smithy-client"; import { IdentityProviderConfig } from "@smithy/types"; @@ -38,6 +39,12 @@ export const getRuntimeConfig = (config: S3ClientConfig) => { }, ], logger: config?.logger ?? new NoOpLogger(), + protocol: + config?.protocol ?? + new AwsRestXmlProtocol({ + defaultNamespace: "com.amazonaws.s3", + xmlNamespace: "http://s3.amazonaws.com/doc/2006-03-01/", + }), sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, serviceId: config?.serviceId ?? "S3", signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion, diff --git a/clients/client-s3/src/schemas/schemas.ts b/clients/client-s3/src/schemas/schemas.ts new file mode 100644 index 000000000000..7cfcbc455ac5 --- /dev/null +++ b/clients/client-s3/src/schemas/schemas.ts @@ -0,0 +1,9743 @@ +const _A = "Account"; +const _AAO = "AnalyticsAndOperator"; +const _AC = "AccelerateConfiguration"; +const _ACL = "AccessControlList"; +const _ACL_ = "ACL"; +const _ACLn = "AnalyticsConfigurationList"; +const _ACP = "AccessControlPolicy"; +const _ACT = "AccessControlTranslation"; +const _ACn = "AnalyticsConfiguration"; +const _AD = "AbortDate"; +const _AED = "AnalyticsExportDestination"; +const _AF = "AnalyticsFilter"; +const _AH = "AllowedHeaders"; +const _AHl = "AllowedHeader"; +const _AI = "AccountId"; +const _AIMU = "AbortIncompleteMultipartUpload"; +const _AKI = "AccessKeyId"; +const _AM = "AllowedMethods"; +const _AMU = "AbortMultipartUpload"; +const _AMUO = "AbortMultipartUploadOutput"; +const _AMUR = "AbortMultipartUploadRequest"; +const _AMl = "AllowedMethod"; +const _AO = "AllowedOrigins"; +const _AOl = "AllowedOrigin"; +const _APA = "AccessPointAlias"; +const _APAc = "AccessPointArn"; +const _AQRD = "AllowQuotedRecordDelimiter"; +const _AR = "AcceptRanges"; +const _ARI = "AbortRuleId"; +const _AS = "ArchiveStatus"; +const _ASBD = "AnalyticsS3BucketDestination"; +const _ASSEBD = "ApplyServerSideEncryptionByDefault"; +const _AT = "AccessTier"; +const _An = "And"; +const _B = "Bucket"; +const _BA = "BucketArn"; +const _BAE = "BucketAlreadyExists"; +const _BAI = "BucketAccountId"; +const _BAOBY = "BucketAlreadyOwnedByYou"; +const _BGR = "BypassGovernanceRetention"; +const _BI = "BucketInfo"; +const _BKE = "BucketKeyEnabled"; +const _BLC = "BucketLifecycleConfiguration"; +const _BLN = "BucketLocationName"; +const _BLS = "BucketLoggingStatus"; +const _BLT = "BucketLocationType"; +const _BN = "BucketName"; +const _BP = "BytesProcessed"; +const _BPA = "BlockPublicAcls"; +const _BPP = "BlockPublicPolicy"; +const _BR = "BucketRegion"; +const _BRy = "BytesReturned"; +const _BS = "BytesScanned"; +const _Bo = "Body"; +const _Bu = "Buckets"; +const _C = "Checksum"; +const _CA = "ChecksumAlgorithm"; +const _CACL = "CannedACL"; +const _CB = "CreateBucket"; +const _CBC = "CreateBucketConfiguration"; +const _CBMC = "CreateBucketMetadataConfiguration"; +const _CBMCR = "CreateBucketMetadataConfigurationRequest"; +const _CBMTC = "CreateBucketMetadataTableConfiguration"; +const _CBMTCR = "CreateBucketMetadataTableConfigurationRequest"; +const _CBO = "CreateBucketOutput"; +const _CBR = "CreateBucketRequest"; +const _CC = "CacheControl"; +const _CCRC = "ChecksumCRC32"; +const _CCRCC = "ChecksumCRC32C"; +const _CCRCNVME = "ChecksumCRC64NVME"; +const _CC_ = "Cache-Control"; +const _CD = "CreationDate"; +const _CD_ = "Content-Disposition"; +const _CDo = "ContentDisposition"; +const _CE = "ContinuationEvent"; +const _CE_ = "Content-Encoding"; +const _CEo = "ContentEncoding"; +const _CF = "CloudFunction"; +const _CFC = "CloudFunctionConfiguration"; +const _CL = "ContentLanguage"; +const _CL_ = "Content-Language"; +const _CL__ = "Content-Length"; +const _CLo = "ContentLength"; +const _CM = "Content-MD5"; +const _CMD = "ContentMD5"; +const _CMU = "CompletedMultipartUpload"; +const _CMUO = "CompleteMultipartUploadOutput"; +const _CMUOr = "CreateMultipartUploadOutput"; +const _CMUR = "CompleteMultipartUploadResult"; +const _CMURo = "CompleteMultipartUploadRequest"; +const _CMURr = "CreateMultipartUploadRequest"; +const _CMUo = "CompleteMultipartUpload"; +const _CMUr = "CreateMultipartUpload"; +const _CMh = "ChecksumMode"; +const _CO = "CopyObject"; +const _COO = "CopyObjectOutput"; +const _COR = "CopyObjectResult"; +const _CORSC = "CORSConfiguration"; +const _CORSR = "CORSRules"; +const _CORSRu = "CORSRule"; +const _CORo = "CopyObjectRequest"; +const _CP = "CommonPrefix"; +const _CPL = "CommonPrefixList"; +const _CPLo = "CompletedPartList"; +const _CPR = "CopyPartResult"; +const _CPo = "CompletedPart"; +const _CPom = "CommonPrefixes"; +const _CR = "ContentRange"; +const _CRSBA = "ConfirmRemoveSelfBucketAccess"; +const _CR_ = "Content-Range"; +const _CS = "CopySource"; +const _CSHA = "ChecksumSHA1"; +const _CSHAh = "ChecksumSHA256"; +const _CSIM = "CopySourceIfMatch"; +const _CSIMS = "CopySourceIfModifiedSince"; +const _CSINM = "CopySourceIfNoneMatch"; +const _CSIUS = "CopySourceIfUnmodifiedSince"; +const _CSO = "CreateSessionOutput"; +const _CSR = "CreateSessionResult"; +const _CSRo = "CopySourceRange"; +const _CSRr = "CreateSessionRequest"; +const _CSSSECA = "CopySourceSSECustomerAlgorithm"; +const _CSSSECK = "CopySourceSSECustomerKey"; +const _CSSSECKMD = "CopySourceSSECustomerKeyMD5"; +const _CSV = "CSV"; +const _CSVI = "CopySourceVersionId"; +const _CSVIn = "CSVInput"; +const _CSVO = "CSVOutput"; +const _CSo = "ConfigurationState"; +const _CSr = "CreateSession"; +const _CT = "ChecksumType"; +const _CT_ = "Content-Type"; +const _CTl = "ClientToken"; +const _CTo = "ContentType"; +const _CTom = "CompressionType"; +const _CTon = "ContinuationToken"; +const _Co = "Condition"; +const _Cod = "Code"; +const _Com = "Comments"; +const _Con = "Contents"; +const _Cont = "Cont"; +const _Cr = "Credentials"; +const _D = "Days"; +const _DAI = "DaysAfterInitiation"; +const _DB = "DeleteBucket"; +const _DBAC = "DeleteBucketAnalyticsConfiguration"; +const _DBACR = "DeleteBucketAnalyticsConfigurationRequest"; +const _DBC = "DeleteBucketCors"; +const _DBCR = "DeleteBucketCorsRequest"; +const _DBE = "DeleteBucketEncryption"; +const _DBER = "DeleteBucketEncryptionRequest"; +const _DBIC = "DeleteBucketInventoryConfiguration"; +const _DBICR = "DeleteBucketInventoryConfigurationRequest"; +const _DBITC = "DeleteBucketIntelligentTieringConfiguration"; +const _DBITCR = "DeleteBucketIntelligentTieringConfigurationRequest"; +const _DBL = "DeleteBucketLifecycle"; +const _DBLR = "DeleteBucketLifecycleRequest"; +const _DBMC = "DeleteBucketMetadataConfiguration"; +const _DBMCR = "DeleteBucketMetadataConfigurationRequest"; +const _DBMCRe = "DeleteBucketMetricsConfigurationRequest"; +const _DBMCe = "DeleteBucketMetricsConfiguration"; +const _DBMTC = "DeleteBucketMetadataTableConfiguration"; +const _DBMTCR = "DeleteBucketMetadataTableConfigurationRequest"; +const _DBOC = "DeleteBucketOwnershipControls"; +const _DBOCR = "DeleteBucketOwnershipControlsRequest"; +const _DBP = "DeleteBucketPolicy"; +const _DBPR = "DeleteBucketPolicyRequest"; +const _DBR = "DeleteBucketRequest"; +const _DBRR = "DeleteBucketReplicationRequest"; +const _DBRe = "DeleteBucketReplication"; +const _DBT = "DeleteBucketTagging"; +const _DBTR = "DeleteBucketTaggingRequest"; +const _DBW = "DeleteBucketWebsite"; +const _DBWR = "DeleteBucketWebsiteRequest"; +const _DE = "DataExport"; +const _DIM = "DestinationIfMatch"; +const _DIMS = "DestinationIfModifiedSince"; +const _DINM = "DestinationIfNoneMatch"; +const _DIUS = "DestinationIfUnmodifiedSince"; +const _DM = "DeleteMarker"; +const _DME = "DeleteMarkerEntry"; +const _DMR = "DeleteMarkerReplication"; +const _DMVI = "DeleteMarkerVersionId"; +const _DMe = "DeleteMarkers"; +const _DN = "DisplayName"; +const _DO = "DeletedObject"; +const _DOO = "DeleteObjectOutput"; +const _DOOe = "DeleteObjectsOutput"; +const _DOR = "DeleteObjectRequest"; +const _DORe = "DeleteObjectsRequest"; +const _DOT = "DeleteObjectTagging"; +const _DOTO = "DeleteObjectTaggingOutput"; +const _DOTR = "DeleteObjectTaggingRequest"; +const _DOe = "DeletedObjects"; +const _DOel = "DeleteObject"; +const _DOele = "DeleteObjects"; +const _DPAB = "DeletePublicAccessBlock"; +const _DPABR = "DeletePublicAccessBlockRequest"; +const _DR = "DataRedundancy"; +const _DRe = "DefaultRetention"; +const _DRel = "DeleteResult"; +const _DRes = "DestinationResult"; +const _Da = "Date"; +const _De = "Delete"; +const _Del = "Deleted"; +const _Deli = "Delimiter"; +const _Des = "Destination"; +const _Desc = "Description"; +const _Det = "Details"; +const _E = "Expiration"; +const _EA = "EmailAddress"; +const _EBC = "EventBridgeConfiguration"; +const _EBO = "ExpectedBucketOwner"; +const _EC = "EncryptionConfiguration"; +const _ECr = "ErrorCode"; +const _ED = "ErrorDetails"; +const _EDr = "ErrorDocument"; +const _EE = "EndEvent"; +const _EH = "ExposeHeaders"; +const _EHx = "ExposeHeader"; +const _EM = "ErrorMessage"; +const _EODM = "ExpiredObjectDeleteMarker"; +const _EOR = "ExistingObjectReplication"; +const _ES = "ExpiresString"; +const _ESBO = "ExpectedSourceBucketOwner"; +const _ET = "ETag"; +const _ETM = "EncryptionTypeMismatch"; +const _ETn = "EncryptionType"; +const _ETnc = "EncodingType"; +const _ETv = "EventThreshold"; +const _ETx = "ExpressionType"; +const _En = "Encryption"; +const _Ena = "Enabled"; +const _End = "End"; +const _Er = "Errors"; +const _Err = "Error"; +const _Ev = "Events"; +const _Eve = "Event"; +const _Ex = "Expires"; +const _Exp = "Expression"; +const _F = "Filter"; +const _FD = "FieldDelimiter"; +const _FHI = "FileHeaderInfo"; +const _FO = "FetchOwner"; +const _FR = "FilterRule"; +const _FRL = "FilterRuleList"; +const _FRi = "FilterRules"; +const _Fi = "Field"; +const _Fo = "Format"; +const _Fr = "Frequency"; +const _G = "Grants"; +const _GBA = "GetBucketAcl"; +const _GBAC = "GetBucketAccelerateConfiguration"; +const _GBACO = "GetBucketAccelerateConfigurationOutput"; +const _GBACOe = "GetBucketAnalyticsConfigurationOutput"; +const _GBACR = "GetBucketAccelerateConfigurationRequest"; +const _GBACRe = "GetBucketAnalyticsConfigurationRequest"; +const _GBACe = "GetBucketAnalyticsConfiguration"; +const _GBAO = "GetBucketAclOutput"; +const _GBAR = "GetBucketAclRequest"; +const _GBC = "GetBucketCors"; +const _GBCO = "GetBucketCorsOutput"; +const _GBCR = "GetBucketCorsRequest"; +const _GBE = "GetBucketEncryption"; +const _GBEO = "GetBucketEncryptionOutput"; +const _GBER = "GetBucketEncryptionRequest"; +const _GBIC = "GetBucketInventoryConfiguration"; +const _GBICO = "GetBucketInventoryConfigurationOutput"; +const _GBICR = "GetBucketInventoryConfigurationRequest"; +const _GBITC = "GetBucketIntelligentTieringConfiguration"; +const _GBITCO = "GetBucketIntelligentTieringConfigurationOutput"; +const _GBITCR = "GetBucketIntelligentTieringConfigurationRequest"; +const _GBL = "GetBucketLocation"; +const _GBLC = "GetBucketLifecycleConfiguration"; +const _GBLCO = "GetBucketLifecycleConfigurationOutput"; +const _GBLCR = "GetBucketLifecycleConfigurationRequest"; +const _GBLO = "GetBucketLocationOutput"; +const _GBLOe = "GetBucketLoggingOutput"; +const _GBLR = "GetBucketLocationRequest"; +const _GBLRe = "GetBucketLoggingRequest"; +const _GBLe = "GetBucketLogging"; +const _GBMC = "GetBucketMetadataConfiguration"; +const _GBMCO = "GetBucketMetadataConfigurationOutput"; +const _GBMCOe = "GetBucketMetricsConfigurationOutput"; +const _GBMCR = "GetBucketMetadataConfigurationResult"; +const _GBMCRe = "GetBucketMetadataConfigurationRequest"; +const _GBMCRet = "GetBucketMetricsConfigurationRequest"; +const _GBMCe = "GetBucketMetricsConfiguration"; +const _GBMTC = "GetBucketMetadataTableConfiguration"; +const _GBMTCO = "GetBucketMetadataTableConfigurationOutput"; +const _GBMTCR = "GetBucketMetadataTableConfigurationResult"; +const _GBMTCRe = "GetBucketMetadataTableConfigurationRequest"; +const _GBNC = "GetBucketNotificationConfiguration"; +const _GBNCR = "GetBucketNotificationConfigurationRequest"; +const _GBOC = "GetBucketOwnershipControls"; +const _GBOCO = "GetBucketOwnershipControlsOutput"; +const _GBOCR = "GetBucketOwnershipControlsRequest"; +const _GBP = "GetBucketPolicy"; +const _GBPO = "GetBucketPolicyOutput"; +const _GBPR = "GetBucketPolicyRequest"; +const _GBPS = "GetBucketPolicyStatus"; +const _GBPSO = "GetBucketPolicyStatusOutput"; +const _GBPSR = "GetBucketPolicyStatusRequest"; +const _GBR = "GetBucketReplication"; +const _GBRO = "GetBucketReplicationOutput"; +const _GBRP = "GetBucketRequestPayment"; +const _GBRPO = "GetBucketRequestPaymentOutput"; +const _GBRPR = "GetBucketRequestPaymentRequest"; +const _GBRR = "GetBucketReplicationRequest"; +const _GBT = "GetBucketTagging"; +const _GBTO = "GetBucketTaggingOutput"; +const _GBTR = "GetBucketTaggingRequest"; +const _GBV = "GetBucketVersioning"; +const _GBVO = "GetBucketVersioningOutput"; +const _GBVR = "GetBucketVersioningRequest"; +const _GBW = "GetBucketWebsite"; +const _GBWO = "GetBucketWebsiteOutput"; +const _GBWR = "GetBucketWebsiteRequest"; +const _GFC = "GrantFullControl"; +const _GJP = "GlacierJobParameters"; +const _GO = "GetObject"; +const _GOA = "GetObjectAcl"; +const _GOAO = "GetObjectAclOutput"; +const _GOAOe = "GetObjectAttributesOutput"; +const _GOAP = "GetObjectAttributesParts"; +const _GOAR = "GetObjectAclRequest"; +const _GOARe = "GetObjectAttributesResponse"; +const _GOARet = "GetObjectAttributesRequest"; +const _GOAe = "GetObjectAttributes"; +const _GOLC = "GetObjectLockConfiguration"; +const _GOLCO = "GetObjectLockConfigurationOutput"; +const _GOLCR = "GetObjectLockConfigurationRequest"; +const _GOLH = "GetObjectLegalHold"; +const _GOLHO = "GetObjectLegalHoldOutput"; +const _GOLHR = "GetObjectLegalHoldRequest"; +const _GOO = "GetObjectOutput"; +const _GOR = "GetObjectRequest"; +const _GORO = "GetObjectRetentionOutput"; +const _GORR = "GetObjectRetentionRequest"; +const _GORe = "GetObjectRetention"; +const _GOT = "GetObjectTagging"; +const _GOTO = "GetObjectTaggingOutput"; +const _GOTOe = "GetObjectTorrentOutput"; +const _GOTR = "GetObjectTaggingRequest"; +const _GOTRe = "GetObjectTorrentRequest"; +const _GOTe = "GetObjectTorrent"; +const _GPAB = "GetPublicAccessBlock"; +const _GPABO = "GetPublicAccessBlockOutput"; +const _GPABR = "GetPublicAccessBlockRequest"; +const _GR = "GrantRead"; +const _GRACP = "GrantReadACP"; +const _GW = "GrantWrite"; +const _GWACP = "GrantWriteACP"; +const _Gr = "Grant"; +const _Gra = "Grantee"; +const _HB = "HeadBucket"; +const _HBO = "HeadBucketOutput"; +const _HBR = "HeadBucketRequest"; +const _HECRE = "HttpErrorCodeReturnedEquals"; +const _HN = "HostName"; +const _HO = "HeadObject"; +const _HOO = "HeadObjectOutput"; +const _HOR = "HeadObjectRequest"; +const _HRC = "HttpRedirectCode"; +const _I = "Id"; +const _IC = "InventoryConfiguration"; +const _ICL = "InventoryConfigurationList"; +const _ID = "ID"; +const _IDn = "IndexDocument"; +const _IDnv = "InventoryDestination"; +const _IE = "IsEnabled"; +const _IEn = "InventoryEncryption"; +const _IF = "InventoryFilter"; +const _IL = "IsLatest"; +const _IM = "IfMatch"; +const _IMIT = "IfMatchInitiatedTime"; +const _IMLMT = "IfMatchLastModifiedTime"; +const _IMS = "IfMatchSize"; +const _IMS_ = "If-Modified-Since"; +const _IMSf = "IfModifiedSince"; +const _IMUR = "InitiateMultipartUploadResult"; +const _IM_ = "If-Match"; +const _INM = "IfNoneMatch"; +const _INM_ = "If-None-Match"; +const _IOF = "InventoryOptionalFields"; +const _IOS = "InvalidObjectState"; +const _IOV = "IncludedObjectVersions"; +const _IP = "IsPublic"; +const _IPA = "IgnorePublicAcls"; +const _IPM = "IdempotencyParameterMismatch"; +const _IR = "InvalidRequest"; +const _IRIP = "IsRestoreInProgress"; +const _IS = "InputSerialization"; +const _ISBD = "InventoryS3BucketDestination"; +const _ISn = "InventorySchedule"; +const _IT = "IsTruncated"; +const _ITAO = "IntelligentTieringAndOperator"; +const _ITC = "IntelligentTieringConfiguration"; +const _ITCL = "IntelligentTieringConfigurationList"; +const _ITCR = "InventoryTableConfigurationResult"; +const _ITCU = "InventoryTableConfigurationUpdates"; +const _ITCn = "InventoryTableConfiguration"; +const _ITF = "IntelligentTieringFilter"; +const _IUS = "IfUnmodifiedSince"; +const _IUS_ = "If-Unmodified-Since"; +const _IWO = "InvalidWriteOffset"; +const _In = "Initiator"; +const _Ini = "Initiated"; +const _JSON = "JSON"; +const _JSONI = "JSONInput"; +const _JSONO = "JSONOutput"; +const _JTC = "JournalTableConfiguration"; +const _JTCR = "JournalTableConfigurationResult"; +const _JTCU = "JournalTableConfigurationUpdates"; +const _K = "Key"; +const _KC = "KeyCount"; +const _KI = "KeyId"; +const _KKA = "KmsKeyArn"; +const _KM = "KeyMarker"; +const _KMSC = "KMSContext"; +const _KMSKI = "KMSKeyId"; +const _KMSMKID = "KMSMasterKeyID"; +const _KPE = "KeyPrefixEquals"; +const _L = "Location"; +const _LAMBR = "ListAllMyBucketsResult"; +const _LAMDBR = "ListAllMyDirectoryBucketsResult"; +const _LB = "ListBuckets"; +const _LBAC = "ListBucketAnalyticsConfigurations"; +const _LBACO = "ListBucketAnalyticsConfigurationsOutput"; +const _LBACR = "ListBucketAnalyticsConfigurationResult"; +const _LBACRi = "ListBucketAnalyticsConfigurationsRequest"; +const _LBIC = "ListBucketInventoryConfigurations"; +const _LBICO = "ListBucketInventoryConfigurationsOutput"; +const _LBICR = "ListBucketInventoryConfigurationsRequest"; +const _LBITC = "ListBucketIntelligentTieringConfigurations"; +const _LBITCO = "ListBucketIntelligentTieringConfigurationsOutput"; +const _LBITCR = "ListBucketIntelligentTieringConfigurationsRequest"; +const _LBMC = "ListBucketMetricsConfigurations"; +const _LBMCO = "ListBucketMetricsConfigurationsOutput"; +const _LBMCR = "ListBucketMetricsConfigurationsRequest"; +const _LBO = "ListBucketsOutput"; +const _LBR = "ListBucketsRequest"; +const _LBRi = "ListBucketResult"; +const _LC = "LocationConstraint"; +const _LCi = "LifecycleConfiguration"; +const _LDB = "ListDirectoryBuckets"; +const _LDBO = "ListDirectoryBucketsOutput"; +const _LDBR = "ListDirectoryBucketsRequest"; +const _LE = "LoggingEnabled"; +const _LEi = "LifecycleExpiration"; +const _LFA = "LambdaFunctionArn"; +const _LFC = "LambdaFunctionConfiguration"; +const _LFCL = "LambdaFunctionConfigurationList"; +const _LFCa = "LambdaFunctionConfigurations"; +const _LH = "LegalHold"; +const _LI = "LocationInfo"; +const _LICR = "ListInventoryConfigurationsResult"; +const _LM = "LastModified"; +const _LMCR = "ListMetricsConfigurationsResult"; +const _LMT = "LastModifiedTime"; +const _LMU = "ListMultipartUploads"; +const _LMUO = "ListMultipartUploadsOutput"; +const _LMUR = "ListMultipartUploadsResult"; +const _LMURi = "ListMultipartUploadsRequest"; +const _LM_ = "Last-Modified"; +const _LO = "ListObjects"; +const _LOO = "ListObjectsOutput"; +const _LOR = "ListObjectsRequest"; +const _LOV = "ListObjectsV2"; +const _LOVO = "ListObjectsV2Output"; +const _LOVOi = "ListObjectVersionsOutput"; +const _LOVR = "ListObjectsV2Request"; +const _LOVRi = "ListObjectVersionsRequest"; +const _LOVi = "ListObjectVersions"; +const _LP = "ListParts"; +const _LPO = "ListPartsOutput"; +const _LPR = "ListPartsResult"; +const _LPRi = "ListPartsRequest"; +const _LR = "LifecycleRule"; +const _LRAO = "LifecycleRuleAndOperator"; +const _LRF = "LifecycleRuleFilter"; +const _LRi = "LifecycleRules"; +const _LVR = "ListVersionsResult"; +const _M = "Metadata"; +const _MAO = "MetricsAndOperator"; +const _MAS = "MaxAgeSeconds"; +const _MB = "MaxBuckets"; +const _MC = "MetadataConfiguration"; +const _MCL = "MetricsConfigurationList"; +const _MCR = "MetadataConfigurationResult"; +const _MCe = "MetricsConfiguration"; +const _MD = "MetadataDirective"; +const _MDB = "MaxDirectoryBuckets"; +const _MDf = "MfaDelete"; +const _ME = "MetadataEntry"; +const _MF = "MetricsFilter"; +const _MFA = "MFA"; +const _MFAD = "MFADelete"; +const _MK = "MaxKeys"; +const _MM = "MissingMeta"; +const _MOS = "MpuObjectSize"; +const _MP = "MaxParts"; +const _MTC = "MetadataTableConfiguration"; +const _MTCR = "MetadataTableConfigurationResult"; +const _MTEC = "MetadataTableEncryptionConfiguration"; +const _MU = "MultipartUpload"; +const _MUL = "MultipartUploadList"; +const _MUa = "MaxUploads"; +const _Ma = "Marker"; +const _Me = "Metrics"; +const _Mes = "Message"; +const _Mi = "Minutes"; +const _Mo = "Mode"; +const _N = "Name"; +const _NC = "NotificationConfiguration"; +const _NCF = "NotificationConfigurationFilter"; +const _NCT = "NextContinuationToken"; +const _ND = "NoncurrentDays"; +const _NF = "NotFound"; +const _NKM = "NextKeyMarker"; +const _NM = "NextMarker"; +const _NNV = "NewerNoncurrentVersions"; +const _NPNM = "NextPartNumberMarker"; +const _NSB = "NoSuchBucket"; +const _NSK = "NoSuchKey"; +const _NSU = "NoSuchUpload"; +const _NUIM = "NextUploadIdMarker"; +const _NVE = "NoncurrentVersionExpiration"; +const _NVIM = "NextVersionIdMarker"; +const _NVT = "NoncurrentVersionTransitions"; +const _NVTL = "NoncurrentVersionTransitionList"; +const _NVTo = "NoncurrentVersionTransition"; +const _O = "Owner"; +const _OA = "ObjectAttributes"; +const _OAIATE = "ObjectAlreadyInActiveTierError"; +const _OC = "OwnershipControls"; +const _OCR = "OwnershipControlsRule"; +const _OCRw = "OwnershipControlsRules"; +const _OF = "OptionalFields"; +const _OI = "ObjectIdentifier"; +const _OIL = "ObjectIdentifierList"; +const _OL = "OutputLocation"; +const _OLC = "ObjectLockConfiguration"; +const _OLE = "ObjectLockEnabled"; +const _OLEFB = "ObjectLockEnabledForBucket"; +const _OLLH = "ObjectLockLegalHold"; +const _OLLHS = "ObjectLockLegalHoldStatus"; +const _OLM = "ObjectLockMode"; +const _OLR = "ObjectLockRetention"; +const _OLRUD = "ObjectLockRetainUntilDate"; +const _OLRb = "ObjectLockRule"; +const _OLb = "ObjectList"; +const _ONIATE = "ObjectNotInActiveTierError"; +const _OO = "ObjectOwnership"; +const _OOA = "OptionalObjectAttributes"; +const _OP = "ObjectParts"; +const _OPb = "ObjectPart"; +const _OS = "ObjectSize"; +const _OSGT = "ObjectSizeGreaterThan"; +const _OSLT = "ObjectSizeLessThan"; +const _OSV = "OutputSchemaVersion"; +const _OSu = "OutputSerialization"; +const _OV = "ObjectVersion"; +const _OVL = "ObjectVersionList"; +const _Ob = "Objects"; +const _Obj = "Object"; +const _P = "Prefix"; +const _PABC = "PublicAccessBlockConfiguration"; +const _PBA = "PutBucketAcl"; +const _PBAC = "PutBucketAccelerateConfiguration"; +const _PBACR = "PutBucketAccelerateConfigurationRequest"; +const _PBACRu = "PutBucketAnalyticsConfigurationRequest"; +const _PBACu = "PutBucketAnalyticsConfiguration"; +const _PBAR = "PutBucketAclRequest"; +const _PBC = "PutBucketCors"; +const _PBCR = "PutBucketCorsRequest"; +const _PBE = "PutBucketEncryption"; +const _PBER = "PutBucketEncryptionRequest"; +const _PBIC = "PutBucketInventoryConfiguration"; +const _PBICR = "PutBucketInventoryConfigurationRequest"; +const _PBITC = "PutBucketIntelligentTieringConfiguration"; +const _PBITCR = "PutBucketIntelligentTieringConfigurationRequest"; +const _PBL = "PutBucketLogging"; +const _PBLC = "PutBucketLifecycleConfiguration"; +const _PBLCO = "PutBucketLifecycleConfigurationOutput"; +const _PBLCR = "PutBucketLifecycleConfigurationRequest"; +const _PBLR = "PutBucketLoggingRequest"; +const _PBMC = "PutBucketMetricsConfiguration"; +const _PBMCR = "PutBucketMetricsConfigurationRequest"; +const _PBNC = "PutBucketNotificationConfiguration"; +const _PBNCR = "PutBucketNotificationConfigurationRequest"; +const _PBOC = "PutBucketOwnershipControls"; +const _PBOCR = "PutBucketOwnershipControlsRequest"; +const _PBP = "PutBucketPolicy"; +const _PBPR = "PutBucketPolicyRequest"; +const _PBR = "PutBucketReplication"; +const _PBRP = "PutBucketRequestPayment"; +const _PBRPR = "PutBucketRequestPaymentRequest"; +const _PBRR = "PutBucketReplicationRequest"; +const _PBT = "PutBucketTagging"; +const _PBTR = "PutBucketTaggingRequest"; +const _PBV = "PutBucketVersioning"; +const _PBVR = "PutBucketVersioningRequest"; +const _PBW = "PutBucketWebsite"; +const _PBWR = "PutBucketWebsiteRequest"; +const _PC = "PartsCount"; +const _PDS = "PartitionDateSource"; +const _PE = "ProgressEvent"; +const _PI = "ParquetInput"; +const _PL = "PartsList"; +const _PN = "PartNumber"; +const _PNM = "PartNumberMarker"; +const _PO = "PutObject"; +const _POA = "PutObjectAcl"; +const _POAO = "PutObjectAclOutput"; +const _POAR = "PutObjectAclRequest"; +const _POLC = "PutObjectLockConfiguration"; +const _POLCO = "PutObjectLockConfigurationOutput"; +const _POLCR = "PutObjectLockConfigurationRequest"; +const _POLH = "PutObjectLegalHold"; +const _POLHO = "PutObjectLegalHoldOutput"; +const _POLHR = "PutObjectLegalHoldRequest"; +const _POO = "PutObjectOutput"; +const _POR = "PutObjectRequest"; +const _PORO = "PutObjectRetentionOutput"; +const _PORR = "PutObjectRetentionRequest"; +const _PORu = "PutObjectRetention"; +const _POT = "PutObjectTagging"; +const _POTO = "PutObjectTaggingOutput"; +const _POTR = "PutObjectTaggingRequest"; +const _PP = "PartitionedPrefix"; +const _PPAB = "PutPublicAccessBlock"; +const _PPABR = "PutPublicAccessBlockRequest"; +const _PS = "PolicyStatus"; +const _Pa = "Parts"; +const _Par = "Part"; +const _Parq = "Parquet"; +const _Pay = "Payer"; +const _Payl = "Payload"; +const _Pe = "Permission"; +const _Po = "Policy"; +const _Pr = "Progress"; +const _Pri = "Priority"; +const _Pro = "Protocol"; +const _Q = "Quiet"; +const _QA = "QueueArn"; +const _QC = "QuoteCharacter"; +const _QCL = "QueueConfigurationList"; +const _QCu = "QueueConfigurations"; +const _QCue = "QueueConfiguration"; +const _QEC = "QuoteEscapeCharacter"; +const _QF = "QuoteFields"; +const _Qu = "Queue"; +const _R = "Rules"; +const _RART = "RedirectAllRequestsTo"; +const _RC = "RequestCharged"; +const _RCC = "ResponseCacheControl"; +const _RCD = "ResponseContentDisposition"; +const _RCE = "ResponseContentEncoding"; +const _RCL = "ResponseContentLanguage"; +const _RCT = "ResponseContentType"; +const _RCe = "ReplicationConfiguration"; +const _RD = "RecordDelimiter"; +const _RE = "ResponseExpires"; +const _RED = "RestoreExpiryDate"; +const _REe = "RecordExpiration"; +const _REec = "RecordsEvent"; +const _RKKID = "ReplicaKmsKeyID"; +const _RKPW = "ReplaceKeyPrefixWith"; +const _RKW = "ReplaceKeyWith"; +const _RM = "ReplicaModifications"; +const _RO = "RenameObject"; +const _ROO = "RenameObjectOutput"; +const _ROOe = "RestoreObjectOutput"; +const _ROP = "RestoreOutputPath"; +const _ROR = "RenameObjectRequest"; +const _RORe = "RestoreObjectRequest"; +const _ROe = "RestoreObject"; +const _RP = "RequestPayer"; +const _RPB = "RestrictPublicBuckets"; +const _RPC = "RequestPaymentConfiguration"; +const _RPe = "RequestProgress"; +const _RR = "RoutingRules"; +const _RRAO = "ReplicationRuleAndOperator"; +const _RRF = "ReplicationRuleFilter"; +const _RRe = "ReplicationRule"; +const _RRep = "ReplicationRules"; +const _RReq = "RequestRoute"; +const _RRes = "RestoreRequest"; +const _RRo = "RoutingRule"; +const _RS = "ReplicationStatus"; +const _RSe = "RestoreStatus"; +const _RSen = "RenameSource"; +const _RT = "ReplicationTime"; +const _RTV = "ReplicationTimeValue"; +const _RTe = "RequestToken"; +const _RUD = "RetainUntilDate"; +const _Ra = "Range"; +const _Re = "Restore"; +const _Rec = "Records"; +const _Red = "Redirect"; +const _Ret = "Retention"; +const _Ro = "Role"; +const _Ru = "Rule"; +const _S = "Status"; +const _SA = "StartAfter"; +const _SAK = "SecretAccessKey"; +const _SAs = "SseAlgorithm"; +const _SB = "StreamingBlob"; +const _SBD = "S3BucketDestination"; +const _SC = "StorageClass"; +const _SCA = "StorageClassAnalysis"; +const _SCADE = "StorageClassAnalysisDataExport"; +const _SCV = "SessionCredentialValue"; +const _SCe = "SessionCredentials"; +const _SCt = "StatusCode"; +const _SDV = "SkipDestinationValidation"; +const _SE = "StatsEvent"; +const _SIM = "SourceIfMatch"; +const _SIMS = "SourceIfModifiedSince"; +const _SINM = "SourceIfNoneMatch"; +const _SIUS = "SourceIfUnmodifiedSince"; +const _SK = "SSE-KMS"; +const _SKEO = "SseKmsEncryptedObjects"; +const _SKF = "S3KeyFilter"; +const _SKe = "S3Key"; +const _SL = "S3Location"; +const _SM = "SessionMode"; +const _SOC = "SelectObjectContent"; +const _SOCES = "SelectObjectContentEventStream"; +const _SOCO = "SelectObjectContentOutput"; +const _SOCR = "SelectObjectContentRequest"; +const _SP = "SelectParameters"; +const _SPi = "SimplePrefix"; +const _SR = "ScanRange"; +const _SS = "SSE-S3"; +const _SSC = "SourceSelectionCriteria"; +const _SSE = "ServerSideEncryption"; +const _SSEA = "SSEAlgorithm"; +const _SSEBD = "ServerSideEncryptionByDefault"; +const _SSEC = "ServerSideEncryptionConfiguration"; +const _SSECA = "SSECustomerAlgorithm"; +const _SSECK = "SSECustomerKey"; +const _SSECKMD = "SSECustomerKeyMD5"; +const _SSEKMS = "SSEKMS"; +const _SSEKMSEC = "SSEKMSEncryptionContext"; +const _SSEKMSKI = "SSEKMSKeyId"; +const _SSER = "ServerSideEncryptionRule"; +const _SSERe = "ServerSideEncryptionRules"; +const _SSES = "SSES3"; +const _ST = "SessionToken"; +const _STD = "S3TablesDestination"; +const _STDR = "S3TablesDestinationResult"; +const _S_ = "S3"; +const _Sc = "Schedule"; +const _Si = "Size"; +const _St = "Start"; +const _Sta = "Stats"; +const _Su = "Suffix"; +const _T = "Tags"; +const _TA = "TableArn"; +const _TAo = "TopicArn"; +const _TB = "TargetBucket"; +const _TBA = "TableBucketArn"; +const _TBT = "TableBucketType"; +const _TC = "TagCount"; +const _TCL = "TopicConfigurationList"; +const _TCo = "TopicConfigurations"; +const _TCop = "TopicConfiguration"; +const _TD = "TaggingDirective"; +const _TDMOS = "TransitionDefaultMinimumObjectSize"; +const _TG = "TargetGrants"; +const _TGa = "TargetGrant"; +const _TL = "TieringList"; +const _TLr = "TransitionList"; +const _TMP = "TooManyParts"; +const _TN = "TableNamespace"; +const _TNa = "TableName"; +const _TOKF = "TargetObjectKeyFormat"; +const _TP = "TargetPrefix"; +const _TPC = "TotalPartsCount"; +const _TS = "TagSet"; +const _TSa = "TableStatus"; +const _Ta = "Tag"; +const _Tag = "Tagging"; +const _Ti = "Tier"; +const _Tie = "Tierings"; +const _Tier = "Tiering"; +const _Tim = "Time"; +const _To = "Token"; +const _Top = "Topic"; +const _Tr = "Transitions"; +const _Tra = "Transition"; +const _Ty = "Type"; +const _U = "Uploads"; +const _UBMITC = "UpdateBucketMetadataInventoryTableConfiguration"; +const _UBMITCR = "UpdateBucketMetadataInventoryTableConfigurationRequest"; +const _UBMJTC = "UpdateBucketMetadataJournalTableConfiguration"; +const _UBMJTCR = "UpdateBucketMetadataJournalTableConfigurationRequest"; +const _UI = "UploadId"; +const _UIM = "UploadIdMarker"; +const _UM = "UserMetadata"; +const _UP = "UploadPart"; +const _UPC = "UploadPartCopy"; +const _UPCO = "UploadPartCopyOutput"; +const _UPCR = "UploadPartCopyRequest"; +const _UPO = "UploadPartOutput"; +const _UPR = "UploadPartRequest"; +const _URI = "URI"; +const _Up = "Upload"; +const _V = "Value"; +const _VC = "VersioningConfiguration"; +const _VI = "VersionId"; +const _VIM = "VersionIdMarker"; +const _Ve = "Versions"; +const _Ver = "Version"; +const _WC = "WebsiteConfiguration"; +const _WGOR = "WriteGetObjectResponse"; +const _WGORR = "WriteGetObjectResponseRequest"; +const _WOB = "WriteOffsetBytes"; +const _WRL = "WebsiteRedirectLocation"; +const _Y = "Years"; +const _ar = "accept-ranges"; +const _br = "bucket-region"; +const _c = "client"; +const _ct = "continuation-token"; +const _d = "delimiter"; +const _e = "error"; +const _eP = "eventPayload"; +const _en = "endpoint"; +const _et = "encoding-type"; +const _fo = "fetch-owner"; +const _h = "http"; +const _hE = "httpError"; +const _hH = "httpHeader"; +const _hL = "hostLabel"; +const _hP = "httpPayload"; +const _hPH = "httpPrefixHeaders"; +const _hQ = "httpQuery"; +const _hi = "http://www.w3.org/2001/XMLSchema-instance"; +const _i = "id"; +const _iT = "idempotencyToken"; +const _km = "key-marker"; +const _m = "marker"; +const _mb = "max-buckets"; +const _mdb = "max-directory-buckets"; +const _mk = "max-keys"; +const _mp = "max-parts"; +const _mu = "max-uploads"; +const _p = "prefix"; +const _pN = "partNumber"; +const _pnm = "part-number-marker"; +const _rcc = "response-cache-control"; +const _rcd = "response-content-disposition"; +const _rce = "response-content-encoding"; +const _rcl = "response-content-language"; +const _rct = "response-content-type"; +const _re = "response-expires"; +const _s = "streaming"; +const _sa = "start-after"; +const _uI = "uploadId"; +const _uim = "upload-id-marker"; +const _vI = "versionId"; +const _vim = "version-id-marker"; +const _x = "xsi"; +const _xA = "xmlAttribute"; +const _xF = "xmlFlattened"; +const _xN = "xmlName"; +const _xNm = "xmlNamespace"; +const _xaa = "x-amz-acl"; +const _xaad = "x-amz-abort-date"; +const _xaapa = "x-amz-access-point-alias"; +const _xaari = "x-amz-abort-rule-id"; +const _xaas = "x-amz-archive-status"; +const _xaba = "x-amz-bucket-arn"; +const _xabgr = "x-amz-bypass-governance-retention"; +const _xabln = "x-amz-bucket-location-name"; +const _xablt = "x-amz-bucket-location-type"; +const _xabole = "x-amz-bucket-object-lock-enabled"; +const _xabolt = "x-amz-bucket-object-lock-token"; +const _xabr = "x-amz-bucket-region"; +const _xaca = "x-amz-checksum-algorithm"; +const _xacc = "x-amz-checksum-crc32"; +const _xacc_ = "x-amz-checksum-crc32c"; +const _xacc__ = "x-amz-checksum-crc64nvme"; +const _xacm = "x-amz-checksum-mode"; +const _xacrsba = "x-amz-confirm-remove-self-bucket-access"; +const _xacs = "x-amz-checksum-sha1"; +const _xacs_ = "x-amz-checksum-sha256"; +const _xacs__ = "x-amz-copy-source"; +const _xacsim = "x-amz-copy-source-if-match"; +const _xacsims = "x-amz-copy-source-if-modified-since"; +const _xacsinm = "x-amz-copy-source-if-none-match"; +const _xacsius = "x-amz-copy-source-if-unmodified-since"; +const _xacsm = "x-amz-create-session-mode"; +const _xacsr = "x-amz-copy-source-range"; +const _xacssseca = "x-amz-copy-source-server-side-encryption-customer-algorithm"; +const _xacssseck = "x-amz-copy-source-server-side-encryption-customer-key"; +const _xacssseckM = "x-amz-copy-source-server-side-encryption-customer-key-MD5"; +const _xacsvi = "x-amz-copy-source-version-id"; +const _xact = "x-amz-checksum-type"; +const _xact_ = "x-amz-client-token"; +const _xadm = "x-amz-delete-marker"; +const _xae = "x-amz-expiration"; +const _xaebo = "x-amz-expected-bucket-owner"; +const _xafec = "x-amz-fwd-error-code"; +const _xafem = "x-amz-fwd-error-message"; +const _xafhCC = "x-amz-fwd-header-Cache-Control"; +const _xafhCD = "x-amz-fwd-header-Content-Disposition"; +const _xafhCE = "x-amz-fwd-header-Content-Encoding"; +const _xafhCL = "x-amz-fwd-header-Content-Language"; +const _xafhCR = "x-amz-fwd-header-Content-Range"; +const _xafhCT = "x-amz-fwd-header-Content-Type"; +const _xafhE = "x-amz-fwd-header-ETag"; +const _xafhE_ = "x-amz-fwd-header-Expires"; +const _xafhLM = "x-amz-fwd-header-Last-Modified"; +const _xafhar = "x-amz-fwd-header-accept-ranges"; +const _xafhxacc = "x-amz-fwd-header-x-amz-checksum-crc32"; +const _xafhxacc_ = "x-amz-fwd-header-x-amz-checksum-crc32c"; +const _xafhxacc__ = "x-amz-fwd-header-x-amz-checksum-crc64nvme"; +const _xafhxacs = "x-amz-fwd-header-x-amz-checksum-sha1"; +const _xafhxacs_ = "x-amz-fwd-header-x-amz-checksum-sha256"; +const _xafhxadm = "x-amz-fwd-header-x-amz-delete-marker"; +const _xafhxae = "x-amz-fwd-header-x-amz-expiration"; +const _xafhxamm = "x-amz-fwd-header-x-amz-missing-meta"; +const _xafhxampc = "x-amz-fwd-header-x-amz-mp-parts-count"; +const _xafhxaollh = "x-amz-fwd-header-x-amz-object-lock-legal-hold"; +const _xafhxaolm = "x-amz-fwd-header-x-amz-object-lock-mode"; +const _xafhxaolrud = "x-amz-fwd-header-x-amz-object-lock-retain-until-date"; +const _xafhxar = "x-amz-fwd-header-x-amz-restore"; +const _xafhxarc = "x-amz-fwd-header-x-amz-request-charged"; +const _xafhxars = "x-amz-fwd-header-x-amz-replication-status"; +const _xafhxasc = "x-amz-fwd-header-x-amz-storage-class"; +const _xafhxasse = "x-amz-fwd-header-x-amz-server-side-encryption"; +const _xafhxasseakki = "x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id"; +const _xafhxassebke = "x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled"; +const _xafhxasseca = "x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm"; +const _xafhxasseckM = "x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5"; +const _xafhxatc = "x-amz-fwd-header-x-amz-tagging-count"; +const _xafhxavi = "x-amz-fwd-header-x-amz-version-id"; +const _xafs = "x-amz-fwd-status"; +const _xagfc = "x-amz-grant-full-control"; +const _xagr = "x-amz-grant-read"; +const _xagra = "x-amz-grant-read-acp"; +const _xagw = "x-amz-grant-write"; +const _xagwa = "x-amz-grant-write-acp"; +const _xaimit = "x-amz-if-match-initiated-time"; +const _xaimlmt = "x-amz-if-match-last-modified-time"; +const _xaims = "x-amz-if-match-size"; +const _xam = "x-amz-meta-"; +const _xam_ = "x-amz-mfa"; +const _xamd = "x-amz-metadata-directive"; +const _xamm = "x-amz-missing-meta"; +const _xamos = "x-amz-mp-object-size"; +const _xamp = "x-amz-max-parts"; +const _xampc = "x-amz-mp-parts-count"; +const _xaoa = "x-amz-object-attributes"; +const _xaollh = "x-amz-object-lock-legal-hold"; +const _xaolm = "x-amz-object-lock-mode"; +const _xaolrud = "x-amz-object-lock-retain-until-date"; +const _xaoo = "x-amz-object-ownership"; +const _xaooa = "x-amz-optional-object-attributes"; +const _xaos = "x-amz-object-size"; +const _xapnm = "x-amz-part-number-marker"; +const _xar = "x-amz-restore"; +const _xarc = "x-amz-request-charged"; +const _xarop = "x-amz-restore-output-path"; +const _xarp = "x-amz-request-payer"; +const _xarr = "x-amz-request-route"; +const _xars = "x-amz-replication-status"; +const _xars_ = "x-amz-rename-source"; +const _xarsim = "x-amz-rename-source-if-match"; +const _xarsims = "x-amz-rename-source-if-modified-since"; +const _xarsinm = "x-amz-rename-source-if-none-match"; +const _xarsius = "x-amz-rename-source-if-unmodified-since"; +const _xart = "x-amz-request-token"; +const _xasc = "x-amz-storage-class"; +const _xasca = "x-amz-sdk-checksum-algorithm"; +const _xasdv = "x-amz-skip-destination-validation"; +const _xasebo = "x-amz-source-expected-bucket-owner"; +const _xasse = "x-amz-server-side-encryption"; +const _xasseakki = "x-amz-server-side-encryption-aws-kms-key-id"; +const _xassebke = "x-amz-server-side-encryption-bucket-key-enabled"; +const _xassec = "x-amz-server-side-encryption-context"; +const _xasseca = "x-amz-server-side-encryption-customer-algorithm"; +const _xasseck = "x-amz-server-side-encryption-customer-key"; +const _xasseckM = "x-amz-server-side-encryption-customer-key-MD5"; +const _xat = "x-amz-tagging"; +const _xatc = "x-amz-tagging-count"; +const _xatd = "x-amz-tagging-directive"; +const _xatdmos = "x-amz-transition-default-minimum-object-size"; +const _xavi = "x-amz-version-id"; +const _xawob = "x-amz-write-offset-bytes"; +const _xawrl = "x-amz-website-redirect-location"; +const _xs = "xsi:type"; +const n0 = "com.amazonaws.s3"; + +// smithy-typescript generated code +import { error, list, op, sim, struct, struct as uni } from "@smithy/core/schema"; + +import { + BucketAlreadyExists as __BucketAlreadyExists, + BucketAlreadyOwnedByYou as __BucketAlreadyOwnedByYou, + EncryptionTypeMismatch as __EncryptionTypeMismatch, + IdempotencyParameterMismatch as __IdempotencyParameterMismatch, + InvalidObjectState as __InvalidObjectState, + InvalidRequest as __InvalidRequest, + InvalidWriteOffset as __InvalidWriteOffset, + NoSuchBucket as __NoSuchBucket, + NoSuchKey as __NoSuchKey, + NoSuchUpload as __NoSuchUpload, + NotFound as __NotFound, + ObjectAlreadyInActiveTierError as __ObjectAlreadyInActiveTierError, + ObjectNotInActiveTierError as __ObjectNotInActiveTierError, + TooManyParts as __TooManyParts, +} from "../models/index"; +import { S3ServiceException as __S3ServiceException } from "../models/S3ServiceException"; + +/* eslint no-var: 0 */ + +export var CopySourceSSECustomerKey = sim(n0, _CSSSECK, 0, 8); +export var SessionCredentialValue = sim(n0, _SCV, 0, 8); +export var SSECustomerKey = sim(n0, _SSECK, 0, 8); +export var SSEKMSEncryptionContext = sim(n0, _SSEKMSEC, 0, 8); +export var SSEKMSKeyId = sim(n0, _SSEKMSKI, 0, 8); +export var StreamingBlob = sim(n0, _SB, 42, { + [_s]: 1, +}); +export var AbortIncompleteMultipartUpload = struct(n0, _AIMU, 0, [_DAI], [1]); +export var AbortMultipartUploadOutput = struct( + n0, + _AMUO, + 0, + [_RC], + [ + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var AbortMultipartUploadRequest = struct( + n0, + _AMUR, + 0, + [_B, _K, _UI, _RP, _EBO, _IMIT], + [ + [0, 1], + [0, 1], + [ + 0, + { + [_hQ]: _uI, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 6, + { + [_hH]: _xaimit, + }, + ], + ] +); +export var AccelerateConfiguration = struct(n0, _AC, 0, [_S], [0]); +export var AccessControlPolicy = struct( + n0, + _ACP, + 0, + [_G, _O], + [ + [ + () => Grants, + { + [_xN]: _ACL, + }, + ], + () => Owner, + ] +); +export var AccessControlTranslation = struct(n0, _ACT, 0, [_O], [0]); +export var AnalyticsAndOperator = struct( + n0, + _AAO, + 0, + [_P, _T], + [ + 0, + [ + () => TagSet, + { + [_xN]: _Ta, + [_xF]: 1, + }, + ], + ] +); +export var AnalyticsConfiguration = struct( + n0, + _ACn, + 0, + [_I, _F, _SCA], + [0, [() => AnalyticsFilter, 0], () => StorageClassAnalysis] +); +export var AnalyticsExportDestination = struct(n0, _AED, 0, [_SBD], [() => AnalyticsS3BucketDestination]); +export var AnalyticsS3BucketDestination = struct(n0, _ASBD, 0, [_Fo, _BAI, _B, _P], [0, 0, 0, 0]); +export var Bucket = struct(n0, _B, 0, [_N, _CD, _BR, _BA], [0, 4, 0, 0]); +export var BucketAlreadyExists = error( + n0, + _BAE, + { + [_e]: _c, + [_hE]: 409, + }, + [], + [], + + __BucketAlreadyExists +); +export var BucketAlreadyOwnedByYou = error( + n0, + _BAOBY, + { + [_e]: _c, + [_hE]: 409, + }, + [], + [], + + __BucketAlreadyOwnedByYou +); +export var BucketInfo = struct(n0, _BI, 0, [_DR, _Ty], [0, 0]); +export var BucketLifecycleConfiguration = struct( + n0, + _BLC, + 0, + [_R], + [ + [ + () => LifecycleRules, + { + [_xN]: _Ru, + [_xF]: 1, + }, + ], + ] +); +export var BucketLoggingStatus = struct(n0, _BLS, 0, [_LE], [[() => LoggingEnabled, 0]]); +export var Checksum = struct(n0, _C, 0, [_CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CT], [0, 0, 0, 0, 0, 0]); +export var CommonPrefix = struct(n0, _CP, 0, [_P], [0]); +export var CompletedMultipartUpload = struct( + n0, + _CMU, + 0, + [_Pa], + [ + [ + () => CompletedPartList, + { + [_xN]: _Par, + [_xF]: 1, + }, + ], + ] +); +export var CompletedPart = struct( + n0, + _CPo, + 0, + [_ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _PN], + [0, 0, 0, 0, 0, 0, 1] +); +export var CompleteMultipartUploadOutput = struct( + n0, + _CMUO, + { + [_xN]: _CMUR, + }, + [_L, _B, _K, _E, _ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CT, _SSE, _VI, _SSEKMSKI, _BKE, _RC], + [ + 0, + 0, + 0, + [ + 0, + { + [_hH]: _xae, + }, + ], + 0, + 0, + 0, + 0, + 0, + 0, + 0, + [ + 0, + { + [_hH]: _xasse, + }, + ], + [ + 0, + { + [_hH]: _xavi, + }, + ], + [ + () => SSEKMSKeyId, + { + [_hH]: _xasseakki, + }, + ], + [ + 2, + { + [_hH]: _xassebke, + }, + ], + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var CompleteMultipartUploadRequest = struct( + n0, + _CMURo, + 0, + [ + _B, + _K, + _MU, + _UI, + _CCRC, + _CCRCC, + _CCRCNVME, + _CSHA, + _CSHAh, + _CT, + _MOS, + _RP, + _EBO, + _IM, + _INM, + _SSECA, + _SSECK, + _SSECKMD, + ], + [ + [0, 1], + [0, 1], + [ + () => CompletedMultipartUpload, + { + [_xN]: _CMUo, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hQ]: _uI, + }, + ], + [ + 0, + { + [_hH]: _xacc, + }, + ], + [ + 0, + { + [_hH]: _xacc_, + }, + ], + [ + 0, + { + [_hH]: _xacc__, + }, + ], + [ + 0, + { + [_hH]: _xacs, + }, + ], + [ + 0, + { + [_hH]: _xacs_, + }, + ], + [ + 0, + { + [_hH]: _xact, + }, + ], + [ + 1, + { + [_hH]: _xamos, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _IM_, + }, + ], + [ + 0, + { + [_hH]: _INM_, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + () => SSECustomerKey, + { + [_hH]: _xasseck, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + ] +); +export var Condition = struct(n0, _Co, 0, [_HECRE, _KPE], [0, 0]); +export var ContinuationEvent = struct(n0, _CE, 0, [], []); +export var CopyObjectOutput = struct( + n0, + _COO, + 0, + [_COR, _E, _CSVI, _VI, _SSE, _SSECA, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _RC], + [ + [() => CopyObjectResult, 16], + [ + 0, + { + [_hH]: _xae, + }, + ], + [ + 0, + { + [_hH]: _xacsvi, + }, + ], + [ + 0, + { + [_hH]: _xavi, + }, + ], + [ + 0, + { + [_hH]: _xasse, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + () => SSEKMSKeyId, + { + [_hH]: _xasseakki, + }, + ], + [ + () => SSEKMSEncryptionContext, + { + [_hH]: _xassec, + }, + ], + [ + 2, + { + [_hH]: _xassebke, + }, + ], + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var CopyObjectRequest = struct( + n0, + _CORo, + 0, + [ + _ACL_, + _B, + _CC, + _CA, + _CDo, + _CEo, + _CL, + _CTo, + _CS, + _CSIM, + _CSIMS, + _CSINM, + _CSIUS, + _Ex, + _GFC, + _GR, + _GRACP, + _GWACP, + _K, + _M, + _MD, + _TD, + _SSE, + _SC, + _WRL, + _SSECA, + _SSECK, + _SSECKMD, + _SSEKMSKI, + _SSEKMSEC, + _BKE, + _CSSSECA, + _CSSSECK, + _CSSSECKMD, + _RP, + _Tag, + _OLM, + _OLRUD, + _OLLHS, + _EBO, + _ESBO, + ], + [ + [ + 0, + { + [_hH]: _xaa, + }, + ], + [0, 1], + [ + 0, + { + [_hH]: _CC_, + }, + ], + [ + 0, + { + [_hH]: _xaca, + }, + ], + [ + 0, + { + [_hH]: _CD_, + }, + ], + [ + 0, + { + [_hH]: _CE_, + }, + ], + [ + 0, + { + [_hH]: _CL_, + }, + ], + [ + 0, + { + [_hH]: _CT_, + }, + ], + [ + 0, + { + [_hH]: _xacs__, + }, + ], + [ + 0, + { + [_hH]: _xacsim, + }, + ], + [ + 4, + { + [_hH]: _xacsims, + }, + ], + [ + 0, + { + [_hH]: _xacsinm, + }, + ], + [ + 4, + { + [_hH]: _xacsius, + }, + ], + [ + 4, + { + [_hH]: _Ex, + }, + ], + [ + 0, + { + [_hH]: _xagfc, + }, + ], + [ + 0, + { + [_hH]: _xagr, + }, + ], + [ + 0, + { + [_hH]: _xagra, + }, + ], + [ + 0, + { + [_hH]: _xagwa, + }, + ], + [0, 1], + [ + 128 | 0, + { + [_hPH]: _xam, + }, + ], + [ + 0, + { + [_hH]: _xamd, + }, + ], + [ + 0, + { + [_hH]: _xatd, + }, + ], + [ + 0, + { + [_hH]: _xasse, + }, + ], + [ + 0, + { + [_hH]: _xasc, + }, + ], + [ + 0, + { + [_hH]: _xawrl, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + () => SSECustomerKey, + { + [_hH]: _xasseck, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + () => SSEKMSKeyId, + { + [_hH]: _xasseakki, + }, + ], + [ + () => SSEKMSEncryptionContext, + { + [_hH]: _xassec, + }, + ], + [ + 2, + { + [_hH]: _xassebke, + }, + ], + [ + 0, + { + [_hH]: _xacssseca, + }, + ], + [ + () => CopySourceSSECustomerKey, + { + [_hH]: _xacssseck, + }, + ], + [ + 0, + { + [_hH]: _xacssseckM, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xat, + }, + ], + [ + 0, + { + [_hH]: _xaolm, + }, + ], + [ + 5, + { + [_hH]: _xaolrud, + }, + ], + [ + 0, + { + [_hH]: _xaollh, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _xasebo, + }, + ], + ] +); +export var CopyObjectResult = struct( + n0, + _COR, + 0, + [_ET, _LM, _CT, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh], + [0, 4, 0, 0, 0, 0, 0, 0] +); +export var CopyPartResult = struct( + n0, + _CPR, + 0, + [_ET, _LM, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh], + [0, 4, 0, 0, 0, 0, 0] +); +export var CORSConfiguration = struct( + n0, + _CORSC, + 0, + [_CORSR], + [ + [ + () => CORSRules, + { + [_xN]: _CORSRu, + [_xF]: 1, + }, + ], + ] +); +export var CORSRule = struct( + n0, + _CORSRu, + 0, + [_ID, _AH, _AM, _AO, _EH, _MAS], + [ + 0, + [ + 64 | 0, + { + [_xN]: _AHl, + [_xF]: 1, + }, + ], + [ + 64 | 0, + { + [_xN]: _AMl, + [_xF]: 1, + }, + ], + [ + 64 | 0, + { + [_xN]: _AOl, + [_xF]: 1, + }, + ], + [ + 64 | 0, + { + [_xN]: _EHx, + [_xF]: 1, + }, + ], + 1, + ] +); +export var CreateBucketConfiguration = struct( + n0, + _CBC, + 0, + [_LC, _L, _B, _T], + [0, () => LocationInfo, () => BucketInfo, [() => TagSet, 0]] +); +export var CreateBucketMetadataConfigurationRequest = struct( + n0, + _CBMCR, + 0, + [_B, _CMD, _CA, _MC, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + () => MetadataConfiguration, + { + [_xN]: _MC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var CreateBucketMetadataTableConfigurationRequest = struct( + n0, + _CBMTCR, + 0, + [_B, _CMD, _CA, _MTC, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + () => MetadataTableConfiguration, + { + [_xN]: _MTC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var CreateBucketOutput = struct( + n0, + _CBO, + 0, + [_L, _BA], + [ + [ + 0, + { + [_hH]: _L, + }, + ], + [ + 0, + { + [_hH]: _xaba, + }, + ], + ] +); +export var CreateBucketRequest = struct( + n0, + _CBR, + 0, + [_ACL_, _B, _CBC, _GFC, _GR, _GRACP, _GW, _GWACP, _OLEFB, _OO], + [ + [ + 0, + { + [_hH]: _xaa, + }, + ], + [0, 1], + [ + () => CreateBucketConfiguration, + { + [_xN]: _CBC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xagfc, + }, + ], + [ + 0, + { + [_hH]: _xagr, + }, + ], + [ + 0, + { + [_hH]: _xagra, + }, + ], + [ + 0, + { + [_hH]: _xagw, + }, + ], + [ + 0, + { + [_hH]: _xagwa, + }, + ], + [ + 2, + { + [_hH]: _xabole, + }, + ], + [ + 0, + { + [_hH]: _xaoo, + }, + ], + ] +); +export var CreateMultipartUploadOutput = struct( + n0, + _CMUOr, + { + [_xN]: _IMUR, + }, + [_AD, _ARI, _B, _K, _UI, _SSE, _SSECA, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _RC, _CA, _CT], + [ + [ + 4, + { + [_hH]: _xaad, + }, + ], + [ + 0, + { + [_hH]: _xaari, + }, + ], + [ + 0, + { + [_xN]: _B, + }, + ], + 0, + 0, + [ + 0, + { + [_hH]: _xasse, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + () => SSEKMSKeyId, + { + [_hH]: _xasseakki, + }, + ], + [ + () => SSEKMSEncryptionContext, + { + [_hH]: _xassec, + }, + ], + [ + 2, + { + [_hH]: _xassebke, + }, + ], + [ + 0, + { + [_hH]: _xarc, + }, + ], + [ + 0, + { + [_hH]: _xaca, + }, + ], + [ + 0, + { + [_hH]: _xact, + }, + ], + ] +); +export var CreateMultipartUploadRequest = struct( + n0, + _CMURr, + 0, + [ + _ACL_, + _B, + _CC, + _CDo, + _CEo, + _CL, + _CTo, + _Ex, + _GFC, + _GR, + _GRACP, + _GWACP, + _K, + _M, + _SSE, + _SC, + _WRL, + _SSECA, + _SSECK, + _SSECKMD, + _SSEKMSKI, + _SSEKMSEC, + _BKE, + _RP, + _Tag, + _OLM, + _OLRUD, + _OLLHS, + _EBO, + _CA, + _CT, + ], + [ + [ + 0, + { + [_hH]: _xaa, + }, + ], + [0, 1], + [ + 0, + { + [_hH]: _CC_, + }, + ], + [ + 0, + { + [_hH]: _CD_, + }, + ], + [ + 0, + { + [_hH]: _CE_, + }, + ], + [ + 0, + { + [_hH]: _CL_, + }, + ], + [ + 0, + { + [_hH]: _CT_, + }, + ], + [ + 4, + { + [_hH]: _Ex, + }, + ], + [ + 0, + { + [_hH]: _xagfc, + }, + ], + [ + 0, + { + [_hH]: _xagr, + }, + ], + [ + 0, + { + [_hH]: _xagra, + }, + ], + [ + 0, + { + [_hH]: _xagwa, + }, + ], + [0, 1], + [ + 128 | 0, + { + [_hPH]: _xam, + }, + ], + [ + 0, + { + [_hH]: _xasse, + }, + ], + [ + 0, + { + [_hH]: _xasc, + }, + ], + [ + 0, + { + [_hH]: _xawrl, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + () => SSECustomerKey, + { + [_hH]: _xasseck, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + () => SSEKMSKeyId, + { + [_hH]: _xasseakki, + }, + ], + [ + () => SSEKMSEncryptionContext, + { + [_hH]: _xassec, + }, + ], + [ + 2, + { + [_hH]: _xassebke, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xat, + }, + ], + [ + 0, + { + [_hH]: _xaolm, + }, + ], + [ + 5, + { + [_hH]: _xaolrud, + }, + ], + [ + 0, + { + [_hH]: _xaollh, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _xaca, + }, + ], + [ + 0, + { + [_hH]: _xact, + }, + ], + ] +); +export var CreateSessionOutput = struct( + n0, + _CSO, + { + [_xN]: _CSR, + }, + [_SSE, _SSEKMSKI, _SSEKMSEC, _BKE, _Cr], + [ + [ + 0, + { + [_hH]: _xasse, + }, + ], + [ + () => SSEKMSKeyId, + { + [_hH]: _xasseakki, + }, + ], + [ + () => SSEKMSEncryptionContext, + { + [_hH]: _xassec, + }, + ], + [ + 2, + { + [_hH]: _xassebke, + }, + ], + [ + () => SessionCredentials, + { + [_xN]: _Cr, + }, + ], + ] +); +export var CreateSessionRequest = struct( + n0, + _CSRr, + 0, + [_SM, _B, _SSE, _SSEKMSKI, _SSEKMSEC, _BKE], + [ + [ + 0, + { + [_hH]: _xacsm, + }, + ], + [0, 1], + [ + 0, + { + [_hH]: _xasse, + }, + ], + [ + () => SSEKMSKeyId, + { + [_hH]: _xasseakki, + }, + ], + [ + () => SSEKMSEncryptionContext, + { + [_hH]: _xassec, + }, + ], + [ + 2, + { + [_hH]: _xassebke, + }, + ], + ] +); +export var CSVInput = struct(n0, _CSVIn, 0, [_FHI, _Com, _QEC, _RD, _FD, _QC, _AQRD], [0, 0, 0, 0, 0, 0, 2]); +export var CSVOutput = struct(n0, _CSVO, 0, [_QF, _QEC, _RD, _FD, _QC], [0, 0, 0, 0, 0]); +export var DefaultRetention = struct(n0, _DRe, 0, [_Mo, _D, _Y], [0, 1, 1]); +export var Delete = struct( + n0, + _De, + 0, + [_Ob, _Q], + [ + [ + () => ObjectIdentifierList, + { + [_xN]: _Obj, + [_xF]: 1, + }, + ], + 2, + ] +); +export var DeleteBucketAnalyticsConfigurationRequest = struct( + n0, + _DBACR, + 0, + [_B, _I, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _i, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeleteBucketCorsRequest = struct( + n0, + _DBCR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeleteBucketEncryptionRequest = struct( + n0, + _DBER, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeleteBucketIntelligentTieringConfigurationRequest = struct( + n0, + _DBITCR, + 0, + [_B, _I, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _i, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeleteBucketInventoryConfigurationRequest = struct( + n0, + _DBICR, + 0, + [_B, _I, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _i, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeleteBucketLifecycleRequest = struct( + n0, + _DBLR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeleteBucketMetadataConfigurationRequest = struct( + n0, + _DBMCR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeleteBucketMetadataTableConfigurationRequest = struct( + n0, + _DBMTCR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeleteBucketMetricsConfigurationRequest = struct( + n0, + _DBMCRe, + 0, + [_B, _I, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _i, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeleteBucketOwnershipControlsRequest = struct( + n0, + _DBOCR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeleteBucketPolicyRequest = struct( + n0, + _DBPR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeleteBucketReplicationRequest = struct( + n0, + _DBRR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeleteBucketRequest = struct( + n0, + _DBR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeleteBucketTaggingRequest = struct( + n0, + _DBTR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeleteBucketWebsiteRequest = struct( + n0, + _DBWR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeletedObject = struct(n0, _DO, 0, [_K, _VI, _DM, _DMVI], [0, 0, 2, 0]); +export var DeleteMarkerEntry = struct(n0, _DME, 0, [_O, _K, _VI, _IL, _LM], [() => Owner, 0, 0, 2, 4]); +export var DeleteMarkerReplication = struct(n0, _DMR, 0, [_S], [0]); +export var DeleteObjectOutput = struct( + n0, + _DOO, + 0, + [_DM, _VI, _RC], + [ + [ + 2, + { + [_hH]: _xadm, + }, + ], + [ + 0, + { + [_hH]: _xavi, + }, + ], + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var DeleteObjectRequest = struct( + n0, + _DOR, + 0, + [_B, _K, _MFA, _VI, _RP, _BGR, _EBO, _IM, _IMLMT, _IMS], + [ + [0, 1], + [0, 1], + [ + 0, + { + [_hH]: _xam_, + }, + ], + [ + 0, + { + [_hQ]: _vI, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 2, + { + [_hH]: _xabgr, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _IM_, + }, + ], + [ + 6, + { + [_hH]: _xaimlmt, + }, + ], + [ + 1, + { + [_hH]: _xaims, + }, + ], + ] +); +export var DeleteObjectsOutput = struct( + n0, + _DOOe, + { + [_xN]: _DRel, + }, + [_Del, _RC, _Er], + [ + [ + () => DeletedObjects, + { + [_xF]: 1, + }, + ], + [ + 0, + { + [_hH]: _xarc, + }, + ], + [ + () => Errors, + { + [_xN]: _Err, + [_xF]: 1, + }, + ], + ] +); +export var DeleteObjectsRequest = struct( + n0, + _DORe, + 0, + [_B, _De, _MFA, _RP, _BGR, _EBO, _CA], + [ + [0, 1], + [ + () => Delete, + { + [_xN]: _De, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xam_, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 2, + { + [_hH]: _xabgr, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + ] +); +export var DeleteObjectTaggingOutput = struct( + n0, + _DOTO, + 0, + [_VI], + [ + [ + 0, + { + [_hH]: _xavi, + }, + ], + ] +); +export var DeleteObjectTaggingRequest = struct( + n0, + _DOTR, + 0, + [_B, _K, _VI, _EBO], + [ + [0, 1], + [0, 1], + [ + 0, + { + [_hQ]: _vI, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var DeletePublicAccessBlockRequest = struct( + n0, + _DPABR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var Destination = struct( + n0, + _Des, + 0, + [_B, _A, _SC, _ACT, _EC, _RT, _Me], + [0, 0, 0, () => AccessControlTranslation, () => EncryptionConfiguration, () => ReplicationTime, () => Metrics] +); +export var DestinationResult = struct(n0, _DRes, 0, [_TBT, _TBA, _TN], [0, 0, 0]); +export var Encryption = struct(n0, _En, 0, [_ETn, _KMSKI, _KMSC], [0, [() => SSEKMSKeyId, 0], 0]); +export var EncryptionConfiguration = struct(n0, _EC, 0, [_RKKID], [0]); +export var EncryptionTypeMismatch = error( + n0, + _ETM, + { + [_e]: _c, + [_hE]: 400, + }, + [], + [], + + __EncryptionTypeMismatch +); +export var EndEvent = struct(n0, _EE, 0, [], []); +export var _Error = struct(n0, _Err, 0, [_K, _VI, _Cod, _Mes], [0, 0, 0, 0]); +export var ErrorDetails = struct(n0, _ED, 0, [_ECr, _EM], [0, 0]); +export var ErrorDocument = struct(n0, _EDr, 0, [_K], [0]); +export var EventBridgeConfiguration = struct(n0, _EBC, 0, [], []); +export var ExistingObjectReplication = struct(n0, _EOR, 0, [_S], [0]); +export var FilterRule = struct(n0, _FR, 0, [_N, _V], [0, 0]); +export var GetBucketAccelerateConfigurationOutput = struct( + n0, + _GBACO, + { + [_xN]: _AC, + }, + [_S, _RC], + [ + 0, + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var GetBucketAccelerateConfigurationRequest = struct( + n0, + _GBACR, + 0, + [_B, _EBO, _RP], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + ] +); +export var GetBucketAclOutput = struct( + n0, + _GBAO, + { + [_xN]: _ACP, + }, + [_O, _G], + [ + () => Owner, + [ + () => Grants, + { + [_xN]: _ACL, + }, + ], + ] +); +export var GetBucketAclRequest = struct( + n0, + _GBAR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketAnalyticsConfigurationOutput = struct(n0, _GBACOe, 0, [_ACn], [[() => AnalyticsConfiguration, 16]]); +export var GetBucketAnalyticsConfigurationRequest = struct( + n0, + _GBACRe, + 0, + [_B, _I, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _i, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketCorsOutput = struct( + n0, + _GBCO, + { + [_xN]: _CORSC, + }, + [_CORSR], + [ + [ + () => CORSRules, + { + [_xN]: _CORSRu, + [_xF]: 1, + }, + ], + ] +); +export var GetBucketCorsRequest = struct( + n0, + _GBCR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketEncryptionOutput = struct(n0, _GBEO, 0, [_SSEC], [[() => ServerSideEncryptionConfiguration, 16]]); +export var GetBucketEncryptionRequest = struct( + n0, + _GBER, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketIntelligentTieringConfigurationOutput = struct( + n0, + _GBITCO, + 0, + [_ITC], + [[() => IntelligentTieringConfiguration, 16]] +); +export var GetBucketIntelligentTieringConfigurationRequest = struct( + n0, + _GBITCR, + 0, + [_B, _I, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _i, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketInventoryConfigurationOutput = struct(n0, _GBICO, 0, [_IC], [[() => InventoryConfiguration, 16]]); +export var GetBucketInventoryConfigurationRequest = struct( + n0, + _GBICR, + 0, + [_B, _I, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _i, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketLifecycleConfigurationOutput = struct( + n0, + _GBLCO, + { + [_xN]: _LCi, + }, + [_R, _TDMOS], + [ + [ + () => LifecycleRules, + { + [_xN]: _Ru, + [_xF]: 1, + }, + ], + [ + 0, + { + [_hH]: _xatdmos, + }, + ], + ] +); +export var GetBucketLifecycleConfigurationRequest = struct( + n0, + _GBLCR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketLocationOutput = struct( + n0, + _GBLO, + { + [_xN]: _LC, + }, + [_LC], + [0] +); +export var GetBucketLocationRequest = struct( + n0, + _GBLR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketLoggingOutput = struct( + n0, + _GBLOe, + { + [_xN]: _BLS, + }, + [_LE], + [[() => LoggingEnabled, 0]] +); +export var GetBucketLoggingRequest = struct( + n0, + _GBLRe, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketMetadataConfigurationOutput = struct( + n0, + _GBMCO, + 0, + [_GBMCR], + [[() => GetBucketMetadataConfigurationResult, 16]] +); +export var GetBucketMetadataConfigurationRequest = struct( + n0, + _GBMCRe, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketMetadataConfigurationResult = struct(n0, _GBMCR, 0, [_MCR], [() => MetadataConfigurationResult]); +export var GetBucketMetadataTableConfigurationOutput = struct( + n0, + _GBMTCO, + 0, + [_GBMTCR], + [[() => GetBucketMetadataTableConfigurationResult, 16]] +); +export var GetBucketMetadataTableConfigurationRequest = struct( + n0, + _GBMTCRe, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketMetadataTableConfigurationResult = struct( + n0, + _GBMTCR, + 0, + [_MTCR, _S, _Err], + [() => MetadataTableConfigurationResult, 0, () => ErrorDetails] +); +export var GetBucketMetricsConfigurationOutput = struct(n0, _GBMCOe, 0, [_MCe], [[() => MetricsConfiguration, 16]]); +export var GetBucketMetricsConfigurationRequest = struct( + n0, + _GBMCRet, + 0, + [_B, _I, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _i, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketNotificationConfigurationRequest = struct( + n0, + _GBNCR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketOwnershipControlsOutput = struct(n0, _GBOCO, 0, [_OC], [[() => OwnershipControls, 16]]); +export var GetBucketOwnershipControlsRequest = struct( + n0, + _GBOCR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketPolicyOutput = struct(n0, _GBPO, 0, [_Po], [[0, 16]]); +export var GetBucketPolicyRequest = struct( + n0, + _GBPR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketPolicyStatusOutput = struct(n0, _GBPSO, 0, [_PS], [[() => PolicyStatus, 16]]); +export var GetBucketPolicyStatusRequest = struct( + n0, + _GBPSR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketReplicationOutput = struct(n0, _GBRO, 0, [_RCe], [[() => ReplicationConfiguration, 16]]); +export var GetBucketReplicationRequest = struct( + n0, + _GBRR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketRequestPaymentOutput = struct( + n0, + _GBRPO, + { + [_xN]: _RPC, + }, + [_Pay], + [0] +); +export var GetBucketRequestPaymentRequest = struct( + n0, + _GBRPR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketTaggingOutput = struct( + n0, + _GBTO, + { + [_xN]: _Tag, + }, + [_TS], + [[() => TagSet, 0]] +); +export var GetBucketTaggingRequest = struct( + n0, + _GBTR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketVersioningOutput = struct( + n0, + _GBVO, + { + [_xN]: _VC, + }, + [_S, _MFAD], + [ + 0, + [ + 0, + { + [_xN]: _MDf, + }, + ], + ] +); +export var GetBucketVersioningRequest = struct( + n0, + _GBVR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetBucketWebsiteOutput = struct( + n0, + _GBWO, + { + [_xN]: _WC, + }, + [_RART, _IDn, _EDr, _RR], + [() => RedirectAllRequestsTo, () => IndexDocument, () => ErrorDocument, [() => RoutingRules, 0]] +); +export var GetBucketWebsiteRequest = struct( + n0, + _GBWR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetObjectAclOutput = struct( + n0, + _GOAO, + { + [_xN]: _ACP, + }, + [_O, _G, _RC], + [ + () => Owner, + [ + () => Grants, + { + [_xN]: _ACL, + }, + ], + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var GetObjectAclRequest = struct( + n0, + _GOAR, + 0, + [_B, _K, _VI, _RP, _EBO], + [ + [0, 1], + [0, 1], + [ + 0, + { + [_hQ]: _vI, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetObjectAttributesOutput = struct( + n0, + _GOAOe, + { + [_xN]: _GOARe, + }, + [_DM, _LM, _VI, _RC, _ET, _C, _OP, _SC, _OS], + [ + [ + 2, + { + [_hH]: _xadm, + }, + ], + [ + 4, + { + [_hH]: _LM_, + }, + ], + [ + 0, + { + [_hH]: _xavi, + }, + ], + [ + 0, + { + [_hH]: _xarc, + }, + ], + 0, + () => Checksum, + [() => GetObjectAttributesParts, 0], + 0, + 1, + ] +); +export var GetObjectAttributesParts = struct( + n0, + _GOAP, + 0, + [_TPC, _PNM, _NPNM, _MP, _IT, _Pa], + [ + [ + 1, + { + [_xN]: _PC, + }, + ], + 0, + 0, + 1, + 2, + [ + () => PartsList, + { + [_xN]: _Par, + [_xF]: 1, + }, + ], + ] +); +export var GetObjectAttributesRequest = struct( + n0, + _GOARet, + 0, + [_B, _K, _VI, _MP, _PNM, _SSECA, _SSECK, _SSECKMD, _RP, _EBO, _OA], + [ + [0, 1], + [0, 1], + [ + 0, + { + [_hQ]: _vI, + }, + ], + [ + 1, + { + [_hH]: _xamp, + }, + ], + [ + 0, + { + [_hH]: _xapnm, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + () => SSECustomerKey, + { + [_hH]: _xasseck, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 64 | 0, + { + [_hH]: _xaoa, + }, + ], + ] +); +export var GetObjectLegalHoldOutput = struct( + n0, + _GOLHO, + 0, + [_LH], + [ + [ + () => ObjectLockLegalHold, + { + [_xN]: _LH, + [_hP]: 1, + }, + ], + ] +); +export var GetObjectLegalHoldRequest = struct( + n0, + _GOLHR, + 0, + [_B, _K, _VI, _RP, _EBO], + [ + [0, 1], + [0, 1], + [ + 0, + { + [_hQ]: _vI, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetObjectLockConfigurationOutput = struct(n0, _GOLCO, 0, [_OLC], [[() => ObjectLockConfiguration, 16]]); +export var GetObjectLockConfigurationRequest = struct( + n0, + _GOLCR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetObjectOutput = struct( + n0, + _GOO, + 0, + [ + _Bo, + _DM, + _AR, + _E, + _Re, + _LM, + _CLo, + _ET, + _CCRC, + _CCRCC, + _CCRCNVME, + _CSHA, + _CSHAh, + _CT, + _MM, + _VI, + _CC, + _CDo, + _CEo, + _CL, + _CR, + _CTo, + _Ex, + _ES, + _WRL, + _SSE, + _M, + _SSECA, + _SSECKMD, + _SSEKMSKI, + _BKE, + _SC, + _RC, + _RS, + _PC, + _TC, + _OLM, + _OLRUD, + _OLLHS, + ], + [ + [() => StreamingBlob, 16], + [ + 2, + { + [_hH]: _xadm, + }, + ], + [ + 0, + { + [_hH]: _ar, + }, + ], + [ + 0, + { + [_hH]: _xae, + }, + ], + [ + 0, + { + [_hH]: _xar, + }, + ], + [ + 4, + { + [_hH]: _LM_, + }, + ], + [ + 1, + { + [_hH]: _CL__, + }, + ], + [ + 0, + { + [_hH]: _ET, + }, + ], + [ + 0, + { + [_hH]: _xacc, + }, + ], + [ + 0, + { + [_hH]: _xacc_, + }, + ], + [ + 0, + { + [_hH]: _xacc__, + }, + ], + [ + 0, + { + [_hH]: _xacs, + }, + ], + [ + 0, + { + [_hH]: _xacs_, + }, + ], + [ + 0, + { + [_hH]: _xact, + }, + ], + [ + 1, + { + [_hH]: _xamm, + }, + ], + [ + 0, + { + [_hH]: _xavi, + }, + ], + [ + 0, + { + [_hH]: _CC_, + }, + ], + [ + 0, + { + [_hH]: _CD_, + }, + ], + [ + 0, + { + [_hH]: _CE_, + }, + ], + [ + 0, + { + [_hH]: _CL_, + }, + ], + [ + 0, + { + [_hH]: _CR_, + }, + ], + [ + 0, + { + [_hH]: _CT_, + }, + ], + [ + 4, + { + [_hH]: _Ex, + }, + ], + [ + 0, + { + [_hH]: _ES, + }, + ], + [ + 0, + { + [_hH]: _xawrl, + }, + ], + [ + 0, + { + [_hH]: _xasse, + }, + ], + [ + 128 | 0, + { + [_hPH]: _xam, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + () => SSEKMSKeyId, + { + [_hH]: _xasseakki, + }, + ], + [ + 2, + { + [_hH]: _xassebke, + }, + ], + [ + 0, + { + [_hH]: _xasc, + }, + ], + [ + 0, + { + [_hH]: _xarc, + }, + ], + [ + 0, + { + [_hH]: _xars, + }, + ], + [ + 1, + { + [_hH]: _xampc, + }, + ], + [ + 1, + { + [_hH]: _xatc, + }, + ], + [ + 0, + { + [_hH]: _xaolm, + }, + ], + [ + 5, + { + [_hH]: _xaolrud, + }, + ], + [ + 0, + { + [_hH]: _xaollh, + }, + ], + ] +); +export var GetObjectRequest = struct( + n0, + _GOR, + 0, + [ + _B, + _IM, + _IMSf, + _INM, + _IUS, + _K, + _Ra, + _RCC, + _RCD, + _RCE, + _RCL, + _RCT, + _RE, + _VI, + _SSECA, + _SSECK, + _SSECKMD, + _RP, + _PN, + _EBO, + _CMh, + ], + [ + [0, 1], + [ + 0, + { + [_hH]: _IM_, + }, + ], + [ + 4, + { + [_hH]: _IMS_, + }, + ], + [ + 0, + { + [_hH]: _INM_, + }, + ], + [ + 4, + { + [_hH]: _IUS_, + }, + ], + [0, 1], + [ + 0, + { + [_hH]: _Ra, + }, + ], + [ + 0, + { + [_hQ]: _rcc, + }, + ], + [ + 0, + { + [_hQ]: _rcd, + }, + ], + [ + 0, + { + [_hQ]: _rce, + }, + ], + [ + 0, + { + [_hQ]: _rcl, + }, + ], + [ + 0, + { + [_hQ]: _rct, + }, + ], + [ + 6, + { + [_hQ]: _re, + }, + ], + [ + 0, + { + [_hQ]: _vI, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + () => SSECustomerKey, + { + [_hH]: _xasseck, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 1, + { + [_hQ]: _pN, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _xacm, + }, + ], + ] +); +export var GetObjectRetentionOutput = struct( + n0, + _GORO, + 0, + [_Ret], + [ + [ + () => ObjectLockRetention, + { + [_xN]: _Ret, + [_hP]: 1, + }, + ], + ] +); +export var GetObjectRetentionRequest = struct( + n0, + _GORR, + 0, + [_B, _K, _VI, _RP, _EBO], + [ + [0, 1], + [0, 1], + [ + 0, + { + [_hQ]: _vI, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetObjectTaggingOutput = struct( + n0, + _GOTO, + { + [_xN]: _Tag, + }, + [_VI, _TS], + [ + [ + 0, + { + [_hH]: _xavi, + }, + ], + [() => TagSet, 0], + ] +); +export var GetObjectTaggingRequest = struct( + n0, + _GOTR, + 0, + [_B, _K, _VI, _EBO, _RP], + [ + [0, 1], + [0, 1], + [ + 0, + { + [_hQ]: _vI, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + ] +); +export var GetObjectTorrentOutput = struct( + n0, + _GOTOe, + 0, + [_Bo, _RC], + [ + [() => StreamingBlob, 16], + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var GetObjectTorrentRequest = struct( + n0, + _GOTRe, + 0, + [_B, _K, _RP, _EBO], + [ + [0, 1], + [0, 1], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GetPublicAccessBlockOutput = struct(n0, _GPABO, 0, [_PABC], [[() => PublicAccessBlockConfiguration, 16]]); +export var GetPublicAccessBlockRequest = struct( + n0, + _GPABR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var GlacierJobParameters = struct(n0, _GJP, 0, [_Ti], [0]); +export var Grant = struct( + n0, + _Gr, + 0, + [_Gra, _Pe], + [ + [ + () => Grantee, + { + [_xNm]: [_x, _hi], + }, + ], + 0, + ] +); +export var Grantee = struct( + n0, + _Gra, + 0, + [_DN, _EA, _ID, _URI, _Ty], + [ + 0, + 0, + 0, + 0, + [ + 0, + { + [_xN]: _xs, + [_xA]: 1, + }, + ], + ] +); +export var HeadBucketOutput = struct( + n0, + _HBO, + 0, + [_BA, _BLT, _BLN, _BR, _APA], + [ + [ + 0, + { + [_hH]: _xaba, + }, + ], + [ + 0, + { + [_hH]: _xablt, + }, + ], + [ + 0, + { + [_hH]: _xabln, + }, + ], + [ + 0, + { + [_hH]: _xabr, + }, + ], + [ + 2, + { + [_hH]: _xaapa, + }, + ], + ] +); +export var HeadBucketRequest = struct( + n0, + _HBR, + 0, + [_B, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var HeadObjectOutput = struct( + n0, + _HOO, + 0, + [ + _DM, + _AR, + _E, + _Re, + _AS, + _LM, + _CLo, + _CCRC, + _CCRCC, + _CCRCNVME, + _CSHA, + _CSHAh, + _CT, + _ET, + _MM, + _VI, + _CC, + _CDo, + _CEo, + _CL, + _CTo, + _CR, + _Ex, + _ES, + _WRL, + _SSE, + _M, + _SSECA, + _SSECKMD, + _SSEKMSKI, + _BKE, + _SC, + _RC, + _RS, + _PC, + _TC, + _OLM, + _OLRUD, + _OLLHS, + ], + [ + [ + 2, + { + [_hH]: _xadm, + }, + ], + [ + 0, + { + [_hH]: _ar, + }, + ], + [ + 0, + { + [_hH]: _xae, + }, + ], + [ + 0, + { + [_hH]: _xar, + }, + ], + [ + 0, + { + [_hH]: _xaas, + }, + ], + [ + 4, + { + [_hH]: _LM_, + }, + ], + [ + 1, + { + [_hH]: _CL__, + }, + ], + [ + 0, + { + [_hH]: _xacc, + }, + ], + [ + 0, + { + [_hH]: _xacc_, + }, + ], + [ + 0, + { + [_hH]: _xacc__, + }, + ], + [ + 0, + { + [_hH]: _xacs, + }, + ], + [ + 0, + { + [_hH]: _xacs_, + }, + ], + [ + 0, + { + [_hH]: _xact, + }, + ], + [ + 0, + { + [_hH]: _ET, + }, + ], + [ + 1, + { + [_hH]: _xamm, + }, + ], + [ + 0, + { + [_hH]: _xavi, + }, + ], + [ + 0, + { + [_hH]: _CC_, + }, + ], + [ + 0, + { + [_hH]: _CD_, + }, + ], + [ + 0, + { + [_hH]: _CE_, + }, + ], + [ + 0, + { + [_hH]: _CL_, + }, + ], + [ + 0, + { + [_hH]: _CT_, + }, + ], + [ + 0, + { + [_hH]: _CR_, + }, + ], + [ + 4, + { + [_hH]: _Ex, + }, + ], + [ + 0, + { + [_hH]: _ES, + }, + ], + [ + 0, + { + [_hH]: _xawrl, + }, + ], + [ + 0, + { + [_hH]: _xasse, + }, + ], + [ + 128 | 0, + { + [_hPH]: _xam, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + () => SSEKMSKeyId, + { + [_hH]: _xasseakki, + }, + ], + [ + 2, + { + [_hH]: _xassebke, + }, + ], + [ + 0, + { + [_hH]: _xasc, + }, + ], + [ + 0, + { + [_hH]: _xarc, + }, + ], + [ + 0, + { + [_hH]: _xars, + }, + ], + [ + 1, + { + [_hH]: _xampc, + }, + ], + [ + 1, + { + [_hH]: _xatc, + }, + ], + [ + 0, + { + [_hH]: _xaolm, + }, + ], + [ + 5, + { + [_hH]: _xaolrud, + }, + ], + [ + 0, + { + [_hH]: _xaollh, + }, + ], + ] +); +export var HeadObjectRequest = struct( + n0, + _HOR, + 0, + [ + _B, + _IM, + _IMSf, + _INM, + _IUS, + _K, + _Ra, + _RCC, + _RCD, + _RCE, + _RCL, + _RCT, + _RE, + _VI, + _SSECA, + _SSECK, + _SSECKMD, + _RP, + _PN, + _EBO, + _CMh, + ], + [ + [0, 1], + [ + 0, + { + [_hH]: _IM_, + }, + ], + [ + 4, + { + [_hH]: _IMS_, + }, + ], + [ + 0, + { + [_hH]: _INM_, + }, + ], + [ + 4, + { + [_hH]: _IUS_, + }, + ], + [0, 1], + [ + 0, + { + [_hH]: _Ra, + }, + ], + [ + 0, + { + [_hQ]: _rcc, + }, + ], + [ + 0, + { + [_hQ]: _rcd, + }, + ], + [ + 0, + { + [_hQ]: _rce, + }, + ], + [ + 0, + { + [_hQ]: _rcl, + }, + ], + [ + 0, + { + [_hQ]: _rct, + }, + ], + [ + 6, + { + [_hQ]: _re, + }, + ], + [ + 0, + { + [_hQ]: _vI, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + () => SSECustomerKey, + { + [_hH]: _xasseck, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 1, + { + [_hQ]: _pN, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _xacm, + }, + ], + ] +); +export var IdempotencyParameterMismatch = error( + n0, + _IPM, + { + [_e]: _c, + [_hE]: 400, + }, + [], + [], + + __IdempotencyParameterMismatch +); +export var IndexDocument = struct(n0, _IDn, 0, [_Su], [0]); +export var Initiator = struct(n0, _In, 0, [_ID, _DN], [0, 0]); +export var InputSerialization = struct( + n0, + _IS, + 0, + [_CSV, _CTom, _JSON, _Parq], + [() => CSVInput, 0, () => JSONInput, () => ParquetInput] +); +export var IntelligentTieringAndOperator = struct( + n0, + _ITAO, + 0, + [_P, _T], + [ + 0, + [ + () => TagSet, + { + [_xN]: _Ta, + [_xF]: 1, + }, + ], + ] +); +export var IntelligentTieringConfiguration = struct( + n0, + _ITC, + 0, + [_I, _F, _S, _Tie], + [ + 0, + [() => IntelligentTieringFilter, 0], + 0, + [ + () => TieringList, + { + [_xN]: _Tier, + [_xF]: 1, + }, + ], + ] +); +export var IntelligentTieringFilter = struct( + n0, + _ITF, + 0, + [_P, _Ta, _An], + [0, () => Tag, [() => IntelligentTieringAndOperator, 0]] +); +export var InvalidObjectState = error( + n0, + _IOS, + { + [_e]: _c, + [_hE]: 403, + }, + [_SC, _AT], + [0, 0], + + __InvalidObjectState +); +export var InvalidRequest = error( + n0, + _IR, + { + [_e]: _c, + [_hE]: 400, + }, + [], + [], + + __InvalidRequest +); +export var InvalidWriteOffset = error( + n0, + _IWO, + { + [_e]: _c, + [_hE]: 400, + }, + [], + [], + + __InvalidWriteOffset +); +export var InventoryConfiguration = struct( + n0, + _IC, + 0, + [_Des, _IE, _F, _I, _IOV, _OF, _Sc], + [ + [() => InventoryDestination, 0], + 2, + () => InventoryFilter, + 0, + 0, + [() => InventoryOptionalFields, 0], + () => InventorySchedule, + ] +); +export var InventoryDestination = struct(n0, _IDnv, 0, [_SBD], [[() => InventoryS3BucketDestination, 0]]); +export var InventoryEncryption = struct( + n0, + _IEn, + 0, + [_SSES, _SSEKMS], + [ + [ + () => SSES3, + { + [_xN]: _SS, + }, + ], + [ + () => SSEKMS, + { + [_xN]: _SK, + }, + ], + ] +); +export var InventoryFilter = struct(n0, _IF, 0, [_P], [0]); +export var InventoryS3BucketDestination = struct( + n0, + _ISBD, + 0, + [_AI, _B, _Fo, _P, _En], + [0, 0, 0, 0, [() => InventoryEncryption, 0]] +); +export var InventorySchedule = struct(n0, _ISn, 0, [_Fr], [0]); +export var InventoryTableConfiguration = struct( + n0, + _ITCn, + 0, + [_CSo, _EC], + [0, () => MetadataTableEncryptionConfiguration] +); +export var InventoryTableConfigurationResult = struct( + n0, + _ITCR, + 0, + [_CSo, _TSa, _Err, _TNa, _TA], + [0, 0, () => ErrorDetails, 0, 0] +); +export var InventoryTableConfigurationUpdates = struct( + n0, + _ITCU, + 0, + [_CSo, _EC], + [0, () => MetadataTableEncryptionConfiguration] +); +export var JournalTableConfiguration = struct( + n0, + _JTC, + 0, + [_REe, _EC], + [() => RecordExpiration, () => MetadataTableEncryptionConfiguration] +); +export var JournalTableConfigurationResult = struct( + n0, + _JTCR, + 0, + [_TSa, _Err, _TNa, _TA, _REe], + [0, () => ErrorDetails, 0, 0, () => RecordExpiration] +); +export var JournalTableConfigurationUpdates = struct(n0, _JTCU, 0, [_REe], [() => RecordExpiration]); +export var JSONInput = struct(n0, _JSONI, 0, [_Ty], [0]); +export var JSONOutput = struct(n0, _JSONO, 0, [_RD], [0]); +export var LambdaFunctionConfiguration = struct( + n0, + _LFC, + 0, + [_I, _LFA, _Ev, _F], + [ + 0, + [ + 0, + { + [_xN]: _CF, + }, + ], + [ + 64 | 0, + { + [_xN]: _Eve, + [_xF]: 1, + }, + ], + [() => NotificationConfigurationFilter, 0], + ] +); +export var LifecycleExpiration = struct(n0, _LEi, 0, [_Da, _D, _EODM], [5, 1, 2]); +export var LifecycleRule = struct( + n0, + _LR, + 0, + [_E, _ID, _P, _F, _S, _Tr, _NVT, _NVE, _AIMU], + [ + () => LifecycleExpiration, + 0, + 0, + [() => LifecycleRuleFilter, 0], + 0, + [ + () => TransitionList, + { + [_xN]: _Tra, + [_xF]: 1, + }, + ], + [ + () => NoncurrentVersionTransitionList, + { + [_xN]: _NVTo, + [_xF]: 1, + }, + ], + () => NoncurrentVersionExpiration, + () => AbortIncompleteMultipartUpload, + ] +); +export var LifecycleRuleAndOperator = struct( + n0, + _LRAO, + 0, + [_P, _T, _OSGT, _OSLT], + [ + 0, + [ + () => TagSet, + { + [_xN]: _Ta, + [_xF]: 1, + }, + ], + 1, + 1, + ] +); +export var LifecycleRuleFilter = struct( + n0, + _LRF, + 0, + [_P, _Ta, _OSGT, _OSLT, _An], + [0, () => Tag, 1, 1, [() => LifecycleRuleAndOperator, 0]] +); +export var ListBucketAnalyticsConfigurationsOutput = struct( + n0, + _LBACO, + { + [_xN]: _LBACR, + }, + [_IT, _CTon, _NCT, _ACLn], + [ + 2, + 0, + 0, + [ + () => AnalyticsConfigurationList, + { + [_xN]: _ACn, + [_xF]: 1, + }, + ], + ] +); +export var ListBucketAnalyticsConfigurationsRequest = struct( + n0, + _LBACRi, + 0, + [_B, _CTon, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _ct, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var ListBucketIntelligentTieringConfigurationsOutput = struct( + n0, + _LBITCO, + 0, + [_IT, _CTon, _NCT, _ITCL], + [ + 2, + 0, + 0, + [ + () => IntelligentTieringConfigurationList, + { + [_xN]: _ITC, + [_xF]: 1, + }, + ], + ] +); +export var ListBucketIntelligentTieringConfigurationsRequest = struct( + n0, + _LBITCR, + 0, + [_B, _CTon, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _ct, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var ListBucketInventoryConfigurationsOutput = struct( + n0, + _LBICO, + { + [_xN]: _LICR, + }, + [_CTon, _ICL, _IT, _NCT], + [ + 0, + [ + () => InventoryConfigurationList, + { + [_xN]: _IC, + [_xF]: 1, + }, + ], + 2, + 0, + ] +); +export var ListBucketInventoryConfigurationsRequest = struct( + n0, + _LBICR, + 0, + [_B, _CTon, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _ct, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var ListBucketMetricsConfigurationsOutput = struct( + n0, + _LBMCO, + { + [_xN]: _LMCR, + }, + [_IT, _CTon, _NCT, _MCL], + [ + 2, + 0, + 0, + [ + () => MetricsConfigurationList, + { + [_xN]: _MCe, + [_xF]: 1, + }, + ], + ] +); +export var ListBucketMetricsConfigurationsRequest = struct( + n0, + _LBMCR, + 0, + [_B, _CTon, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _ct, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var ListBucketsOutput = struct( + n0, + _LBO, + { + [_xN]: _LAMBR, + }, + [_Bu, _O, _CTon, _P], + [[() => Buckets, 0], () => Owner, 0, 0] +); +export var ListBucketsRequest = struct( + n0, + _LBR, + 0, + [_MB, _CTon, _P, _BR], + [ + [ + 1, + { + [_hQ]: _mb, + }, + ], + [ + 0, + { + [_hQ]: _ct, + }, + ], + [ + 0, + { + [_hQ]: _p, + }, + ], + [ + 0, + { + [_hQ]: _br, + }, + ], + ] +); +export var ListDirectoryBucketsOutput = struct( + n0, + _LDBO, + { + [_xN]: _LAMDBR, + }, + [_Bu, _CTon], + [[() => Buckets, 0], 0] +); +export var ListDirectoryBucketsRequest = struct( + n0, + _LDBR, + 0, + [_CTon, _MDB], + [ + [ + 0, + { + [_hQ]: _ct, + }, + ], + [ + 1, + { + [_hQ]: _mdb, + }, + ], + ] +); +export var ListMultipartUploadsOutput = struct( + n0, + _LMUO, + { + [_xN]: _LMUR, + }, + [_B, _KM, _UIM, _NKM, _P, _Deli, _NUIM, _MUa, _IT, _U, _CPom, _ETnc, _RC], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + [ + () => MultipartUploadList, + { + [_xN]: _Up, + [_xF]: 1, + }, + ], + [ + () => CommonPrefixList, + { + [_xF]: 1, + }, + ], + 0, + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var ListMultipartUploadsRequest = struct( + n0, + _LMURi, + 0, + [_B, _Deli, _ETnc, _KM, _MUa, _P, _UIM, _EBO, _RP], + [ + [0, 1], + [ + 0, + { + [_hQ]: _d, + }, + ], + [ + 0, + { + [_hQ]: _et, + }, + ], + [ + 0, + { + [_hQ]: _km, + }, + ], + [ + 1, + { + [_hQ]: _mu, + }, + ], + [ + 0, + { + [_hQ]: _p, + }, + ], + [ + 0, + { + [_hQ]: _uim, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + ] +); +export var ListObjectsOutput = struct( + n0, + _LOO, + { + [_xN]: _LBRi, + }, + [_IT, _Ma, _NM, _Con, _N, _P, _Deli, _MK, _CPom, _ETnc, _RC], + [ + 2, + 0, + 0, + [ + () => ObjectList, + { + [_xF]: 1, + }, + ], + 0, + 0, + 0, + 1, + [ + () => CommonPrefixList, + { + [_xF]: 1, + }, + ], + 0, + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var ListObjectsRequest = struct( + n0, + _LOR, + 0, + [_B, _Deli, _ETnc, _Ma, _MK, _P, _RP, _EBO, _OOA], + [ + [0, 1], + [ + 0, + { + [_hQ]: _d, + }, + ], + [ + 0, + { + [_hQ]: _et, + }, + ], + [ + 0, + { + [_hQ]: _m, + }, + ], + [ + 1, + { + [_hQ]: _mk, + }, + ], + [ + 0, + { + [_hQ]: _p, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 64 | 0, + { + [_hH]: _xaooa, + }, + ], + ] +); +export var ListObjectsV2Output = struct( + n0, + _LOVO, + { + [_xN]: _LBRi, + }, + [_IT, _Con, _N, _P, _Deli, _MK, _CPom, _ETnc, _KC, _CTon, _NCT, _SA, _RC], + [ + 2, + [ + () => ObjectList, + { + [_xF]: 1, + }, + ], + 0, + 0, + 0, + 1, + [ + () => CommonPrefixList, + { + [_xF]: 1, + }, + ], + 0, + 1, + 0, + 0, + 0, + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var ListObjectsV2Request = struct( + n0, + _LOVR, + 0, + [_B, _Deli, _ETnc, _MK, _P, _CTon, _FO, _SA, _RP, _EBO, _OOA], + [ + [0, 1], + [ + 0, + { + [_hQ]: _d, + }, + ], + [ + 0, + { + [_hQ]: _et, + }, + ], + [ + 1, + { + [_hQ]: _mk, + }, + ], + [ + 0, + { + [_hQ]: _p, + }, + ], + [ + 0, + { + [_hQ]: _ct, + }, + ], + [ + 2, + { + [_hQ]: _fo, + }, + ], + [ + 0, + { + [_hQ]: _sa, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 64 | 0, + { + [_hH]: _xaooa, + }, + ], + ] +); +export var ListObjectVersionsOutput = struct( + n0, + _LOVOi, + { + [_xN]: _LVR, + }, + [_IT, _KM, _VIM, _NKM, _NVIM, _Ve, _DMe, _N, _P, _Deli, _MK, _CPom, _ETnc, _RC], + [ + 2, + 0, + 0, + 0, + 0, + [ + () => ObjectVersionList, + { + [_xN]: _Ver, + [_xF]: 1, + }, + ], + [ + () => DeleteMarkers, + { + [_xN]: _DM, + [_xF]: 1, + }, + ], + 0, + 0, + 0, + 1, + [ + () => CommonPrefixList, + { + [_xF]: 1, + }, + ], + 0, + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var ListObjectVersionsRequest = struct( + n0, + _LOVRi, + 0, + [_B, _Deli, _ETnc, _KM, _MK, _P, _VIM, _EBO, _RP, _OOA], + [ + [0, 1], + [ + 0, + { + [_hQ]: _d, + }, + ], + [ + 0, + { + [_hQ]: _et, + }, + ], + [ + 0, + { + [_hQ]: _km, + }, + ], + [ + 1, + { + [_hQ]: _mk, + }, + ], + [ + 0, + { + [_hQ]: _p, + }, + ], + [ + 0, + { + [_hQ]: _vim, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 64 | 0, + { + [_hH]: _xaooa, + }, + ], + ] +); +export var ListPartsOutput = struct( + n0, + _LPO, + { + [_xN]: _LPR, + }, + [_AD, _ARI, _B, _K, _UI, _PNM, _NPNM, _MP, _IT, _Pa, _In, _O, _SC, _RC, _CA, _CT], + [ + [ + 4, + { + [_hH]: _xaad, + }, + ], + [ + 0, + { + [_hH]: _xaari, + }, + ], + 0, + 0, + 0, + 0, + 0, + 1, + 2, + [ + () => Parts, + { + [_xN]: _Par, + [_xF]: 1, + }, + ], + () => Initiator, + () => Owner, + 0, + [ + 0, + { + [_hH]: _xarc, + }, + ], + 0, + 0, + ] +); +export var ListPartsRequest = struct( + n0, + _LPRi, + 0, + [_B, _K, _MP, _PNM, _UI, _RP, _EBO, _SSECA, _SSECK, _SSECKMD], + [ + [0, 1], + [0, 1], + [ + 1, + { + [_hQ]: _mp, + }, + ], + [ + 0, + { + [_hQ]: _pnm, + }, + ], + [ + 0, + { + [_hQ]: _uI, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + () => SSECustomerKey, + { + [_hH]: _xasseck, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + ] +); +export var LocationInfo = struct(n0, _LI, 0, [_Ty, _N], [0, 0]); +export var LoggingEnabled = struct( + n0, + _LE, + 0, + [_TB, _TG, _TP, _TOKF], + [0, [() => TargetGrants, 0], 0, [() => TargetObjectKeyFormat, 0]] +); +export var MetadataConfiguration = struct( + n0, + _MC, + 0, + [_JTC, _ITCn], + [() => JournalTableConfiguration, () => InventoryTableConfiguration] +); +export var MetadataConfigurationResult = struct( + n0, + _MCR, + 0, + [_DRes, _JTCR, _ITCR], + [() => DestinationResult, () => JournalTableConfigurationResult, () => InventoryTableConfigurationResult] +); +export var MetadataEntry = struct(n0, _ME, 0, [_N, _V], [0, 0]); +export var MetadataTableConfiguration = struct(n0, _MTC, 0, [_STD], [() => S3TablesDestination]); +export var MetadataTableConfigurationResult = struct(n0, _MTCR, 0, [_STDR], [() => S3TablesDestinationResult]); +export var MetadataTableEncryptionConfiguration = struct(n0, _MTEC, 0, [_SAs, _KKA], [0, 0]); +export var Metrics = struct(n0, _Me, 0, [_S, _ETv], [0, () => ReplicationTimeValue]); +export var MetricsAndOperator = struct( + n0, + _MAO, + 0, + [_P, _T, _APAc], + [ + 0, + [ + () => TagSet, + { + [_xN]: _Ta, + [_xF]: 1, + }, + ], + 0, + ] +); +export var MetricsConfiguration = struct(n0, _MCe, 0, [_I, _F], [0, [() => MetricsFilter, 0]]); +export var MultipartUpload = struct( + n0, + _MU, + 0, + [_UI, _K, _Ini, _SC, _O, _In, _CA, _CT], + [0, 0, 4, 0, () => Owner, () => Initiator, 0, 0] +); +export var NoncurrentVersionExpiration = struct(n0, _NVE, 0, [_ND, _NNV], [1, 1]); +export var NoncurrentVersionTransition = struct(n0, _NVTo, 0, [_ND, _SC, _NNV], [1, 0, 1]); +export var NoSuchBucket = error( + n0, + _NSB, + { + [_e]: _c, + [_hE]: 404, + }, + [], + [], + + __NoSuchBucket +); +export var NoSuchKey = error( + n0, + _NSK, + { + [_e]: _c, + [_hE]: 404, + }, + [], + [], + + __NoSuchKey +); +export var NoSuchUpload = error( + n0, + _NSU, + { + [_e]: _c, + [_hE]: 404, + }, + [], + [], + + __NoSuchUpload +); +export var NotFound = error( + n0, + _NF, + { + [_e]: _c, + }, + [], + [], + + __NotFound +); +export var NotificationConfiguration = struct( + n0, + _NC, + 0, + [_TCo, _QCu, _LFCa, _EBC], + [ + [ + () => TopicConfigurationList, + { + [_xN]: _TCop, + [_xF]: 1, + }, + ], + [ + () => QueueConfigurationList, + { + [_xN]: _QCue, + [_xF]: 1, + }, + ], + [ + () => LambdaFunctionConfigurationList, + { + [_xN]: _CFC, + [_xF]: 1, + }, + ], + () => EventBridgeConfiguration, + ] +); +export var NotificationConfigurationFilter = struct( + n0, + _NCF, + 0, + [_K], + [ + [ + () => S3KeyFilter, + { + [_xN]: _SKe, + }, + ], + ] +); +export var _Object = struct( + n0, + _Obj, + 0, + [_K, _LM, _ET, _CA, _CT, _Si, _SC, _O, _RSe], + [ + 0, + 4, + 0, + [ + 64 | 0, + { + [_xF]: 1, + }, + ], + 0, + 1, + 0, + () => Owner, + () => RestoreStatus, + ] +); +export var ObjectAlreadyInActiveTierError = error( + n0, + _OAIATE, + { + [_e]: _c, + [_hE]: 403, + }, + [], + [], + + __ObjectAlreadyInActiveTierError +); +export var ObjectIdentifier = struct(n0, _OI, 0, [_K, _VI, _ET, _LMT, _Si], [0, 0, 0, 6, 1]); +export var ObjectLockConfiguration = struct(n0, _OLC, 0, [_OLE, _Ru], [0, () => ObjectLockRule]); +export var ObjectLockLegalHold = struct(n0, _OLLH, 0, [_S], [0]); +export var ObjectLockRetention = struct(n0, _OLR, 0, [_Mo, _RUD], [0, 5]); +export var ObjectLockRule = struct(n0, _OLRb, 0, [_DRe], [() => DefaultRetention]); +export var ObjectNotInActiveTierError = error( + n0, + _ONIATE, + { + [_e]: _c, + [_hE]: 403, + }, + [], + [], + + __ObjectNotInActiveTierError +); +export var ObjectPart = struct(n0, _OPb, 0, [_PN, _Si, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh], [1, 1, 0, 0, 0, 0, 0]); +export var ObjectVersion = struct( + n0, + _OV, + 0, + [_ET, _CA, _CT, _Si, _SC, _K, _VI, _IL, _LM, _O, _RSe], + [ + 0, + [ + 64 | 0, + { + [_xF]: 1, + }, + ], + 0, + 1, + 0, + 0, + 0, + 2, + 4, + () => Owner, + () => RestoreStatus, + ] +); +export var OutputLocation = struct(n0, _OL, 0, [_S_], [[() => S3Location, 0]]); +export var OutputSerialization = struct(n0, _OSu, 0, [_CSV, _JSON], [() => CSVOutput, () => JSONOutput]); +export var Owner = struct(n0, _O, 0, [_DN, _ID], [0, 0]); +export var OwnershipControls = struct( + n0, + _OC, + 0, + [_R], + [ + [ + () => OwnershipControlsRules, + { + [_xN]: _Ru, + [_xF]: 1, + }, + ], + ] +); +export var OwnershipControlsRule = struct(n0, _OCR, 0, [_OO], [0]); +export var ParquetInput = struct(n0, _PI, 0, [], []); +export var Part = struct( + n0, + _Par, + 0, + [_PN, _LM, _ET, _Si, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh], + [1, 4, 0, 1, 0, 0, 0, 0, 0] +); +export var PartitionedPrefix = struct( + n0, + _PP, + { + [_xN]: _PP, + }, + [_PDS], + [0] +); +export var PolicyStatus = struct( + n0, + _PS, + 0, + [_IP], + [ + [ + 2, + { + [_xN]: _IP, + }, + ], + ] +); +export var Progress = struct(n0, _Pr, 0, [_BS, _BP, _BRy], [1, 1, 1]); +export var ProgressEvent = struct( + n0, + _PE, + 0, + [_Det], + [ + [ + () => Progress, + { + [_eP]: 1, + }, + ], + ] +); +export var PublicAccessBlockConfiguration = struct( + n0, + _PABC, + 0, + [_BPA, _IPA, _BPP, _RPB], + [ + [ + 2, + { + [_xN]: _BPA, + }, + ], + [ + 2, + { + [_xN]: _IPA, + }, + ], + [ + 2, + { + [_xN]: _BPP, + }, + ], + [ + 2, + { + [_xN]: _RPB, + }, + ], + ] +); +export var PutBucketAccelerateConfigurationRequest = struct( + n0, + _PBACR, + 0, + [_B, _AC, _EBO, _CA], + [ + [0, 1], + [ + () => AccelerateConfiguration, + { + [_xN]: _AC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + ] +); +export var PutBucketAclRequest = struct( + n0, + _PBAR, + 0, + [_ACL_, _ACP, _B, _CMD, _CA, _GFC, _GR, _GRACP, _GW, _GWACP, _EBO], + [ + [ + 0, + { + [_hH]: _xaa, + }, + ], + [ + () => AccessControlPolicy, + { + [_xN]: _ACP, + [_hP]: 1, + }, + ], + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + 0, + { + [_hH]: _xagfc, + }, + ], + [ + 0, + { + [_hH]: _xagr, + }, + ], + [ + 0, + { + [_hH]: _xagra, + }, + ], + [ + 0, + { + [_hH]: _xagw, + }, + ], + [ + 0, + { + [_hH]: _xagwa, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutBucketAnalyticsConfigurationRequest = struct( + n0, + _PBACRu, + 0, + [_B, _I, _ACn, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _i, + }, + ], + [ + () => AnalyticsConfiguration, + { + [_xN]: _ACn, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutBucketCorsRequest = struct( + n0, + _PBCR, + 0, + [_B, _CORSC, _CMD, _CA, _EBO], + [ + [0, 1], + [ + () => CORSConfiguration, + { + [_xN]: _CORSC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutBucketEncryptionRequest = struct( + n0, + _PBER, + 0, + [_B, _CMD, _CA, _SSEC, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + () => ServerSideEncryptionConfiguration, + { + [_xN]: _SSEC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutBucketIntelligentTieringConfigurationRequest = struct( + n0, + _PBITCR, + 0, + [_B, _I, _EBO, _ITC], + [ + [0, 1], + [ + 0, + { + [_hQ]: _i, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + () => IntelligentTieringConfiguration, + { + [_xN]: _ITC, + [_hP]: 1, + }, + ], + ] +); +export var PutBucketInventoryConfigurationRequest = struct( + n0, + _PBICR, + 0, + [_B, _I, _IC, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _i, + }, + ], + [ + () => InventoryConfiguration, + { + [_xN]: _IC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutBucketLifecycleConfigurationOutput = struct( + n0, + _PBLCO, + 0, + [_TDMOS], + [ + [ + 0, + { + [_hH]: _xatdmos, + }, + ], + ] +); +export var PutBucketLifecycleConfigurationRequest = struct( + n0, + _PBLCR, + 0, + [_B, _CA, _LCi, _EBO, _TDMOS], + [ + [0, 1], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + () => BucketLifecycleConfiguration, + { + [_xN]: _LCi, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _xatdmos, + }, + ], + ] +); +export var PutBucketLoggingRequest = struct( + n0, + _PBLR, + 0, + [_B, _BLS, _CMD, _CA, _EBO], + [ + [0, 1], + [ + () => BucketLoggingStatus, + { + [_xN]: _BLS, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutBucketMetricsConfigurationRequest = struct( + n0, + _PBMCR, + 0, + [_B, _I, _MCe, _EBO], + [ + [0, 1], + [ + 0, + { + [_hQ]: _i, + }, + ], + [ + () => MetricsConfiguration, + { + [_xN]: _MCe, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutBucketNotificationConfigurationRequest = struct( + n0, + _PBNCR, + 0, + [_B, _NC, _EBO, _SDV], + [ + [0, 1], + [ + () => NotificationConfiguration, + { + [_xN]: _NC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 2, + { + [_hH]: _xasdv, + }, + ], + ] +); +export var PutBucketOwnershipControlsRequest = struct( + n0, + _PBOCR, + 0, + [_B, _CMD, _EBO, _OC, _CA], + [ + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + () => OwnershipControls, + { + [_xN]: _OC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + ] +); +export var PutBucketPolicyRequest = struct( + n0, + _PBPR, + 0, + [_B, _CMD, _CA, _CRSBA, _Po, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + 2, + { + [_hH]: _xacrsba, + }, + ], + [0, 16], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutBucketReplicationRequest = struct( + n0, + _PBRR, + 0, + [_B, _CMD, _CA, _RCe, _To, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + () => ReplicationConfiguration, + { + [_xN]: _RCe, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xabolt, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutBucketRequestPaymentRequest = struct( + n0, + _PBRPR, + 0, + [_B, _CMD, _CA, _RPC, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + () => RequestPaymentConfiguration, + { + [_xN]: _RPC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutBucketTaggingRequest = struct( + n0, + _PBTR, + 0, + [_B, _CMD, _CA, _Tag, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + () => Tagging, + { + [_xN]: _Tag, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutBucketVersioningRequest = struct( + n0, + _PBVR, + 0, + [_B, _CMD, _CA, _MFA, _VC, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + 0, + { + [_hH]: _xam_, + }, + ], + [ + () => VersioningConfiguration, + { + [_xN]: _VC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutBucketWebsiteRequest = struct( + n0, + _PBWR, + 0, + [_B, _CMD, _CA, _WC, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + () => WebsiteConfiguration, + { + [_xN]: _WC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutObjectAclOutput = struct( + n0, + _POAO, + 0, + [_RC], + [ + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var PutObjectAclRequest = struct( + n0, + _POAR, + 0, + [_ACL_, _ACP, _B, _CMD, _CA, _GFC, _GR, _GRACP, _GW, _GWACP, _K, _RP, _VI, _EBO], + [ + [ + 0, + { + [_hH]: _xaa, + }, + ], + [ + () => AccessControlPolicy, + { + [_xN]: _ACP, + [_hP]: 1, + }, + ], + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + 0, + { + [_hH]: _xagfc, + }, + ], + [ + 0, + { + [_hH]: _xagr, + }, + ], + [ + 0, + { + [_hH]: _xagra, + }, + ], + [ + 0, + { + [_hH]: _xagw, + }, + ], + [ + 0, + { + [_hH]: _xagwa, + }, + ], + [0, 1], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hQ]: _vI, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutObjectLegalHoldOutput = struct( + n0, + _POLHO, + 0, + [_RC], + [ + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var PutObjectLegalHoldRequest = struct( + n0, + _POLHR, + 0, + [_B, _K, _LH, _RP, _VI, _CMD, _CA, _EBO], + [ + [0, 1], + [0, 1], + [ + () => ObjectLockLegalHold, + { + [_xN]: _LH, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hQ]: _vI, + }, + ], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutObjectLockConfigurationOutput = struct( + n0, + _POLCO, + 0, + [_RC], + [ + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var PutObjectLockConfigurationRequest = struct( + n0, + _POLCR, + 0, + [_B, _OLC, _RP, _To, _CMD, _CA, _EBO], + [ + [0, 1], + [ + () => ObjectLockConfiguration, + { + [_xN]: _OLC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xabolt, + }, + ], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutObjectOutput = struct( + n0, + _POO, + 0, + [ + _E, + _ET, + _CCRC, + _CCRCC, + _CCRCNVME, + _CSHA, + _CSHAh, + _CT, + _SSE, + _VI, + _SSECA, + _SSECKMD, + _SSEKMSKI, + _SSEKMSEC, + _BKE, + _Si, + _RC, + ], + [ + [ + 0, + { + [_hH]: _xae, + }, + ], + [ + 0, + { + [_hH]: _ET, + }, + ], + [ + 0, + { + [_hH]: _xacc, + }, + ], + [ + 0, + { + [_hH]: _xacc_, + }, + ], + [ + 0, + { + [_hH]: _xacc__, + }, + ], + [ + 0, + { + [_hH]: _xacs, + }, + ], + [ + 0, + { + [_hH]: _xacs_, + }, + ], + [ + 0, + { + [_hH]: _xact, + }, + ], + [ + 0, + { + [_hH]: _xasse, + }, + ], + [ + 0, + { + [_hH]: _xavi, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + () => SSEKMSKeyId, + { + [_hH]: _xasseakki, + }, + ], + [ + () => SSEKMSEncryptionContext, + { + [_hH]: _xassec, + }, + ], + [ + 2, + { + [_hH]: _xassebke, + }, + ], + [ + 1, + { + [_hH]: _xaos, + }, + ], + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var PutObjectRequest = struct( + n0, + _POR, + 0, + [ + _ACL_, + _Bo, + _B, + _CC, + _CDo, + _CEo, + _CL, + _CLo, + _CMD, + _CTo, + _CA, + _CCRC, + _CCRCC, + _CCRCNVME, + _CSHA, + _CSHAh, + _Ex, + _IM, + _INM, + _GFC, + _GR, + _GRACP, + _GWACP, + _K, + _WOB, + _M, + _SSE, + _SC, + _WRL, + _SSECA, + _SSECK, + _SSECKMD, + _SSEKMSKI, + _SSEKMSEC, + _BKE, + _RP, + _Tag, + _OLM, + _OLRUD, + _OLLHS, + _EBO, + ], + [ + [ + 0, + { + [_hH]: _xaa, + }, + ], + [() => StreamingBlob, 16], + [0, 1], + [ + 0, + { + [_hH]: _CC_, + }, + ], + [ + 0, + { + [_hH]: _CD_, + }, + ], + [ + 0, + { + [_hH]: _CE_, + }, + ], + [ + 0, + { + [_hH]: _CL_, + }, + ], + [ + 1, + { + [_hH]: _CL__, + }, + ], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _CT_, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + 0, + { + [_hH]: _xacc, + }, + ], + [ + 0, + { + [_hH]: _xacc_, + }, + ], + [ + 0, + { + [_hH]: _xacc__, + }, + ], + [ + 0, + { + [_hH]: _xacs, + }, + ], + [ + 0, + { + [_hH]: _xacs_, + }, + ], + [ + 4, + { + [_hH]: _Ex, + }, + ], + [ + 0, + { + [_hH]: _IM_, + }, + ], + [ + 0, + { + [_hH]: _INM_, + }, + ], + [ + 0, + { + [_hH]: _xagfc, + }, + ], + [ + 0, + { + [_hH]: _xagr, + }, + ], + [ + 0, + { + [_hH]: _xagra, + }, + ], + [ + 0, + { + [_hH]: _xagwa, + }, + ], + [0, 1], + [ + 1, + { + [_hH]: _xawob, + }, + ], + [ + 128 | 0, + { + [_hPH]: _xam, + }, + ], + [ + 0, + { + [_hH]: _xasse, + }, + ], + [ + 0, + { + [_hH]: _xasc, + }, + ], + [ + 0, + { + [_hH]: _xawrl, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + () => SSECustomerKey, + { + [_hH]: _xasseck, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + () => SSEKMSKeyId, + { + [_hH]: _xasseakki, + }, + ], + [ + () => SSEKMSEncryptionContext, + { + [_hH]: _xassec, + }, + ], + [ + 2, + { + [_hH]: _xassebke, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xat, + }, + ], + [ + 0, + { + [_hH]: _xaolm, + }, + ], + [ + 5, + { + [_hH]: _xaolrud, + }, + ], + [ + 0, + { + [_hH]: _xaollh, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutObjectRetentionOutput = struct( + n0, + _PORO, + 0, + [_RC], + [ + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var PutObjectRetentionRequest = struct( + n0, + _PORR, + 0, + [_B, _K, _Ret, _RP, _VI, _BGR, _CMD, _CA, _EBO], + [ + [0, 1], + [0, 1], + [ + () => ObjectLockRetention, + { + [_xN]: _Ret, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hQ]: _vI, + }, + ], + [ + 2, + { + [_hH]: _xabgr, + }, + ], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var PutObjectTaggingOutput = struct( + n0, + _POTO, + 0, + [_VI], + [ + [ + 0, + { + [_hH]: _xavi, + }, + ], + ] +); +export var PutObjectTaggingRequest = struct( + n0, + _POTR, + 0, + [_B, _K, _VI, _CMD, _CA, _Tag, _EBO, _RP], + [ + [0, 1], + [0, 1], + [ + 0, + { + [_hQ]: _vI, + }, + ], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + () => Tagging, + { + [_xN]: _Tag, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + ] +); +export var PutPublicAccessBlockRequest = struct( + n0, + _PPABR, + 0, + [_B, _CMD, _CA, _PABC, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + () => PublicAccessBlockConfiguration, + { + [_xN]: _PABC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var QueueConfiguration = struct( + n0, + _QCue, + 0, + [_I, _QA, _Ev, _F], + [ + 0, + [ + 0, + { + [_xN]: _Qu, + }, + ], + [ + 64 | 0, + { + [_xN]: _Eve, + [_xF]: 1, + }, + ], + [() => NotificationConfigurationFilter, 0], + ] +); +export var RecordExpiration = struct(n0, _REe, 0, [_E, _D], [0, 1]); +export var RecordsEvent = struct( + n0, + _REec, + 0, + [_Payl], + [ + [ + 21, + { + [_eP]: 1, + }, + ], + ] +); +export var Redirect = struct(n0, _Red, 0, [_HN, _HRC, _Pro, _RKPW, _RKW], [0, 0, 0, 0, 0]); +export var RedirectAllRequestsTo = struct(n0, _RART, 0, [_HN, _Pro], [0, 0]); +export var RenameObjectOutput = struct(n0, _ROO, 0, [], []); +export var RenameObjectRequest = struct( + n0, + _ROR, + 0, + [_B, _K, _RSen, _DIM, _DINM, _DIMS, _DIUS, _SIM, _SINM, _SIMS, _SIUS, _CTl], + [ + [0, 1], + [0, 1], + [ + 0, + { + [_hH]: _xars_, + }, + ], + [ + 0, + { + [_hH]: _IM_, + }, + ], + [ + 0, + { + [_hH]: _INM_, + }, + ], + [ + 4, + { + [_hH]: _IMS_, + }, + ], + [ + 4, + { + [_hH]: _IUS_, + }, + ], + [ + 0, + { + [_hH]: _xarsim, + }, + ], + [ + 0, + { + [_hH]: _xarsinm, + }, + ], + [ + 6, + { + [_hH]: _xarsims, + }, + ], + [ + 6, + { + [_hH]: _xarsius, + }, + ], + [ + 0, + { + [_hH]: _xact_, + [_iT]: 1, + }, + ], + ] +); +export var ReplicaModifications = struct(n0, _RM, 0, [_S], [0]); +export var ReplicationConfiguration = struct( + n0, + _RCe, + 0, + [_Ro, _R], + [ + 0, + [ + () => ReplicationRules, + { + [_xN]: _Ru, + [_xF]: 1, + }, + ], + ] +); +export var ReplicationRule = struct( + n0, + _RRe, + 0, + [_ID, _Pri, _P, _F, _S, _SSC, _EOR, _Des, _DMR], + [ + 0, + 1, + 0, + [() => ReplicationRuleFilter, 0], + 0, + () => SourceSelectionCriteria, + () => ExistingObjectReplication, + () => Destination, + () => DeleteMarkerReplication, + ] +); +export var ReplicationRuleAndOperator = struct( + n0, + _RRAO, + 0, + [_P, _T], + [ + 0, + [ + () => TagSet, + { + [_xN]: _Ta, + [_xF]: 1, + }, + ], + ] +); +export var ReplicationRuleFilter = struct( + n0, + _RRF, + 0, + [_P, _Ta, _An], + [0, () => Tag, [() => ReplicationRuleAndOperator, 0]] +); +export var ReplicationTime = struct(n0, _RT, 0, [_S, _Tim], [0, () => ReplicationTimeValue]); +export var ReplicationTimeValue = struct(n0, _RTV, 0, [_Mi], [1]); +export var RequestPaymentConfiguration = struct(n0, _RPC, 0, [_Pay], [0]); +export var RequestProgress = struct(n0, _RPe, 0, [_Ena], [2]); +export var RestoreObjectOutput = struct( + n0, + _ROOe, + 0, + [_RC, _ROP], + [ + [ + 0, + { + [_hH]: _xarc, + }, + ], + [ + 0, + { + [_hH]: _xarop, + }, + ], + ] +); +export var RestoreObjectRequest = struct( + n0, + _RORe, + 0, + [_B, _K, _VI, _RRes, _RP, _CA, _EBO], + [ + [0, 1], + [0, 1], + [ + 0, + { + [_hQ]: _vI, + }, + ], + [ + () => RestoreRequest, + { + [_hP]: 1, + [_xN]: _RRes, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var RestoreRequest = struct( + n0, + _RRes, + 0, + [_D, _GJP, _Ty, _Ti, _Desc, _SP, _OL], + [1, () => GlacierJobParameters, 0, 0, 0, () => SelectParameters, [() => OutputLocation, 0]] +); +export var RestoreStatus = struct(n0, _RSe, 0, [_IRIP, _RED], [2, 4]); +export var RoutingRule = struct(n0, _RRo, 0, [_Co, _Red], [() => Condition, () => Redirect]); +export var S3KeyFilter = struct( + n0, + _SKF, + 0, + [_FRi], + [ + [ + () => FilterRuleList, + { + [_xN]: _FR, + [_xF]: 1, + }, + ], + ] +); +export var S3Location = struct( + n0, + _SL, + 0, + [_BN, _P, _En, _CACL, _ACL, _Tag, _UM, _SC], + [0, 0, [() => Encryption, 0], 0, [() => Grants, 0], [() => Tagging, 0], [() => UserMetadata, 0], 0] +); +export var S3TablesDestination = struct(n0, _STD, 0, [_TBA, _TNa], [0, 0]); +export var S3TablesDestinationResult = struct(n0, _STDR, 0, [_TBA, _TNa, _TA, _TN], [0, 0, 0, 0]); +export var ScanRange = struct(n0, _SR, 0, [_St, _End], [1, 1]); +export var SelectObjectContentOutput = struct(n0, _SOCO, 0, [_Payl], [[() => SelectObjectContentEventStream, 16]]); +export var SelectObjectContentRequest = struct( + n0, + _SOCR, + 0, + [_B, _K, _SSECA, _SSECK, _SSECKMD, _Exp, _ETx, _RPe, _IS, _OSu, _SR, _EBO], + [ + [0, 1], + [0, 1], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + () => SSECustomerKey, + { + [_hH]: _xasseck, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + 0, + 0, + () => RequestProgress, + () => InputSerialization, + () => OutputSerialization, + () => ScanRange, + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var SelectParameters = struct( + n0, + _SP, + 0, + [_IS, _ETx, _Exp, _OSu], + [() => InputSerialization, 0, 0, () => OutputSerialization] +); +export var ServerSideEncryptionByDefault = struct(n0, _SSEBD, 0, [_SSEA, _KMSMKID], [0, [() => SSEKMSKeyId, 0]]); +export var ServerSideEncryptionConfiguration = struct( + n0, + _SSEC, + 0, + [_R], + [ + [ + () => ServerSideEncryptionRules, + { + [_xN]: _Ru, + [_xF]: 1, + }, + ], + ] +); +export var ServerSideEncryptionRule = struct( + n0, + _SSER, + 0, + [_ASSEBD, _BKE], + [[() => ServerSideEncryptionByDefault, 0], 2] +); +export var SessionCredentials = struct( + n0, + _SCe, + 0, + [_AKI, _SAK, _ST, _E], + [ + [ + 0, + { + [_xN]: _AKI, + }, + ], + [ + () => SessionCredentialValue, + { + [_xN]: _SAK, + }, + ], + [ + () => SessionCredentialValue, + { + [_xN]: _ST, + }, + ], + [ + 4, + { + [_xN]: _E, + }, + ], + ] +); +export var SimplePrefix = struct( + n0, + _SPi, + { + [_xN]: _SPi, + }, + [], + [] +); +export var SourceSelectionCriteria = struct( + n0, + _SSC, + 0, + [_SKEO, _RM], + [() => SseKmsEncryptedObjects, () => ReplicaModifications] +); +export var SSEKMS = struct( + n0, + _SSEKMS, + { + [_xN]: _SK, + }, + [_KI], + [[() => SSEKMSKeyId, 0]] +); +export var SseKmsEncryptedObjects = struct(n0, _SKEO, 0, [_S], [0]); +export var SSES3 = struct( + n0, + _SSES, + { + [_xN]: _SS, + }, + [], + [] +); +export var Stats = struct(n0, _Sta, 0, [_BS, _BP, _BRy], [1, 1, 1]); +export var StatsEvent = struct( + n0, + _SE, + 0, + [_Det], + [ + [ + () => Stats, + { + [_eP]: 1, + }, + ], + ] +); +export var StorageClassAnalysis = struct(n0, _SCA, 0, [_DE], [() => StorageClassAnalysisDataExport]); +export var StorageClassAnalysisDataExport = struct(n0, _SCADE, 0, [_OSV, _Des], [0, () => AnalyticsExportDestination]); +export var Tag = struct(n0, _Ta, 0, [_K, _V], [0, 0]); +export var Tagging = struct(n0, _Tag, 0, [_TS], [[() => TagSet, 0]]); +export var TargetGrant = struct( + n0, + _TGa, + 0, + [_Gra, _Pe], + [ + [ + () => Grantee, + { + [_xNm]: [_x, _hi], + }, + ], + 0, + ] +); +export var TargetObjectKeyFormat = struct( + n0, + _TOKF, + 0, + [_SPi, _PP], + [ + [ + () => SimplePrefix, + { + [_xN]: _SPi, + }, + ], + [ + () => PartitionedPrefix, + { + [_xN]: _PP, + }, + ], + ] +); +export var Tiering = struct(n0, _Tier, 0, [_D, _AT], [1, 0]); +export var TooManyParts = error( + n0, + _TMP, + { + [_e]: _c, + [_hE]: 400, + }, + [], + [], + + __TooManyParts +); +export var TopicConfiguration = struct( + n0, + _TCop, + 0, + [_I, _TAo, _Ev, _F], + [ + 0, + [ + 0, + { + [_xN]: _Top, + }, + ], + [ + 64 | 0, + { + [_xN]: _Eve, + [_xF]: 1, + }, + ], + [() => NotificationConfigurationFilter, 0], + ] +); +export var Transition = struct(n0, _Tra, 0, [_Da, _D, _SC], [5, 1, 0]); +export var UpdateBucketMetadataInventoryTableConfigurationRequest = struct( + n0, + _UBMITCR, + 0, + [_B, _CMD, _CA, _ITCn, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + () => InventoryTableConfigurationUpdates, + { + [_xN]: _ITCn, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var UpdateBucketMetadataJournalTableConfigurationRequest = struct( + n0, + _UBMJTCR, + 0, + [_B, _CMD, _CA, _JTC, _EBO], + [ + [0, 1], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + () => JournalTableConfigurationUpdates, + { + [_xN]: _JTC, + [_hP]: 1, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var UploadPartCopyOutput = struct( + n0, + _UPCO, + 0, + [_CSVI, _CPR, _SSE, _SSECA, _SSECKMD, _SSEKMSKI, _BKE, _RC], + [ + [ + 0, + { + [_hH]: _xacsvi, + }, + ], + [() => CopyPartResult, 16], + [ + 0, + { + [_hH]: _xasse, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + () => SSEKMSKeyId, + { + [_hH]: _xasseakki, + }, + ], + [ + 2, + { + [_hH]: _xassebke, + }, + ], + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var UploadPartCopyRequest = struct( + n0, + _UPCR, + 0, + [ + _B, + _CS, + _CSIM, + _CSIMS, + _CSINM, + _CSIUS, + _CSRo, + _K, + _PN, + _UI, + _SSECA, + _SSECK, + _SSECKMD, + _CSSSECA, + _CSSSECK, + _CSSSECKMD, + _RP, + _EBO, + _ESBO, + ], + [ + [0, 1], + [ + 0, + { + [_hH]: _xacs__, + }, + ], + [ + 0, + { + [_hH]: _xacsim, + }, + ], + [ + 4, + { + [_hH]: _xacsims, + }, + ], + [ + 0, + { + [_hH]: _xacsinm, + }, + ], + [ + 4, + { + [_hH]: _xacsius, + }, + ], + [ + 0, + { + [_hH]: _xacsr, + }, + ], + [0, 1], + [ + 1, + { + [_hQ]: _pN, + }, + ], + [ + 0, + { + [_hQ]: _uI, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + () => SSECustomerKey, + { + [_hH]: _xasseck, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + 0, + { + [_hH]: _xacssseca, + }, + ], + [ + () => CopySourceSSECustomerKey, + { + [_hH]: _xacssseck, + }, + ], + [ + 0, + { + [_hH]: _xacssseckM, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + [ + 0, + { + [_hH]: _xasebo, + }, + ], + ] +); +export var UploadPartOutput = struct( + n0, + _UPO, + 0, + [_SSE, _ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _SSECA, _SSECKMD, _SSEKMSKI, _BKE, _RC], + [ + [ + 0, + { + [_hH]: _xasse, + }, + ], + [ + 0, + { + [_hH]: _ET, + }, + ], + [ + 0, + { + [_hH]: _xacc, + }, + ], + [ + 0, + { + [_hH]: _xacc_, + }, + ], + [ + 0, + { + [_hH]: _xacc__, + }, + ], + [ + 0, + { + [_hH]: _xacs, + }, + ], + [ + 0, + { + [_hH]: _xacs_, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + () => SSEKMSKeyId, + { + [_hH]: _xasseakki, + }, + ], + [ + 2, + { + [_hH]: _xassebke, + }, + ], + [ + 0, + { + [_hH]: _xarc, + }, + ], + ] +); +export var UploadPartRequest = struct( + n0, + _UPR, + 0, + [ + _Bo, + _B, + _CLo, + _CMD, + _CA, + _CCRC, + _CCRCC, + _CCRCNVME, + _CSHA, + _CSHAh, + _K, + _PN, + _UI, + _SSECA, + _SSECK, + _SSECKMD, + _RP, + _EBO, + ], + [ + [() => StreamingBlob, 16], + [0, 1], + [ + 1, + { + [_hH]: _CL__, + }, + ], + [ + 0, + { + [_hH]: _CM, + }, + ], + [ + 0, + { + [_hH]: _xasca, + }, + ], + [ + 0, + { + [_hH]: _xacc, + }, + ], + [ + 0, + { + [_hH]: _xacc_, + }, + ], + [ + 0, + { + [_hH]: _xacc__, + }, + ], + [ + 0, + { + [_hH]: _xacs, + }, + ], + [ + 0, + { + [_hH]: _xacs_, + }, + ], + [0, 1], + [ + 1, + { + [_hQ]: _pN, + }, + ], + [ + 0, + { + [_hQ]: _uI, + }, + ], + [ + 0, + { + [_hH]: _xasseca, + }, + ], + [ + () => SSECustomerKey, + { + [_hH]: _xasseck, + }, + ], + [ + 0, + { + [_hH]: _xasseckM, + }, + ], + [ + 0, + { + [_hH]: _xarp, + }, + ], + [ + 0, + { + [_hH]: _xaebo, + }, + ], + ] +); +export var VersioningConfiguration = struct( + n0, + _VC, + 0, + [_MFAD, _S], + [ + [ + 0, + { + [_xN]: _MDf, + }, + ], + 0, + ] +); +export var WebsiteConfiguration = struct( + n0, + _WC, + 0, + [_EDr, _IDn, _RART, _RR], + [() => ErrorDocument, () => IndexDocument, () => RedirectAllRequestsTo, [() => RoutingRules, 0]] +); +export var WriteGetObjectResponseRequest = struct( + n0, + _WGORR, + 0, + [ + _RReq, + _RTe, + _Bo, + _SCt, + _ECr, + _EM, + _AR, + _CC, + _CDo, + _CEo, + _CL, + _CLo, + _CR, + _CTo, + _CCRC, + _CCRCC, + _CCRCNVME, + _CSHA, + _CSHAh, + _DM, + _ET, + _Ex, + _E, + _LM, + _MM, + _M, + _OLM, + _OLLHS, + _OLRUD, + _PC, + _RS, + _RC, + _Re, + _SSE, + _SSECA, + _SSEKMSKI, + _SSECKMD, + _SC, + _TC, + _VI, + _BKE, + ], + [ + [ + 0, + { + [_hL]: 1, + [_hH]: _xarr, + }, + ], + [ + 0, + { + [_hH]: _xart, + }, + ], + [() => StreamingBlob, 16], + [ + 1, + { + [_hH]: _xafs, + }, + ], + [ + 0, + { + [_hH]: _xafec, + }, + ], + [ + 0, + { + [_hH]: _xafem, + }, + ], + [ + 0, + { + [_hH]: _xafhar, + }, + ], + [ + 0, + { + [_hH]: _xafhCC, + }, + ], + [ + 0, + { + [_hH]: _xafhCD, + }, + ], + [ + 0, + { + [_hH]: _xafhCE, + }, + ], + [ + 0, + { + [_hH]: _xafhCL, + }, + ], + [ + 1, + { + [_hH]: _CL__, + }, + ], + [ + 0, + { + [_hH]: _xafhCR, + }, + ], + [ + 0, + { + [_hH]: _xafhCT, + }, + ], + [ + 0, + { + [_hH]: _xafhxacc, + }, + ], + [ + 0, + { + [_hH]: _xafhxacc_, + }, + ], + [ + 0, + { + [_hH]: _xafhxacc__, + }, + ], + [ + 0, + { + [_hH]: _xafhxacs, + }, + ], + [ + 0, + { + [_hH]: _xafhxacs_, + }, + ], + [ + 2, + { + [_hH]: _xafhxadm, + }, + ], + [ + 0, + { + [_hH]: _xafhE, + }, + ], + [ + 4, + { + [_hH]: _xafhE_, + }, + ], + [ + 0, + { + [_hH]: _xafhxae, + }, + ], + [ + 4, + { + [_hH]: _xafhLM, + }, + ], + [ + 1, + { + [_hH]: _xafhxamm, + }, + ], + [ + 128 | 0, + { + [_hPH]: _xam, + }, + ], + [ + 0, + { + [_hH]: _xafhxaolm, + }, + ], + [ + 0, + { + [_hH]: _xafhxaollh, + }, + ], + [ + 5, + { + [_hH]: _xafhxaolrud, + }, + ], + [ + 1, + { + [_hH]: _xafhxampc, + }, + ], + [ + 0, + { + [_hH]: _xafhxars, + }, + ], + [ + 0, + { + [_hH]: _xafhxarc, + }, + ], + [ + 0, + { + [_hH]: _xafhxar, + }, + ], + [ + 0, + { + [_hH]: _xafhxasse, + }, + ], + [ + 0, + { + [_hH]: _xafhxasseca, + }, + ], + [ + () => SSEKMSKeyId, + { + [_hH]: _xafhxasseakki, + }, + ], + [ + 0, + { + [_hH]: _xafhxasseckM, + }, + ], + [ + 0, + { + [_hH]: _xafhxasc, + }, + ], + [ + 1, + { + [_hH]: _xafhxatc, + }, + ], + [ + 0, + { + [_hH]: _xafhxavi, + }, + ], + [ + 2, + { + [_hH]: _xafhxassebke, + }, + ], + ] +); +export var Unit = "unit" as const; + +export var S3ServiceException = error( + "smithy.ts.sdk.synthetic.com.amazonaws.s3", + "S3ServiceException", + 0, + [], + [], + __S3ServiceException +); +export var AllowedHeaders = 64 | 0; + +export var AllowedMethods = 64 | 0; + +export var AllowedOrigins = 64 | 0; + +export var AnalyticsConfigurationList = list(n0, _ACLn, 0, [() => AnalyticsConfiguration, 0]); +export var Buckets = list(n0, _Bu, 0, [ + () => Bucket, + { + [_xN]: _B, + }, +]); +export var ChecksumAlgorithmList = 64 | 0; + +export var CommonPrefixList = list(n0, _CPL, 0, () => CommonPrefix); +export var CompletedPartList = list(n0, _CPLo, 0, () => CompletedPart); +export var CORSRules = list(n0, _CORSR, 0, [() => CORSRule, 0]); +export var DeletedObjects = list(n0, _DOe, 0, () => DeletedObject); +export var DeleteMarkers = list(n0, _DMe, 0, () => DeleteMarkerEntry); +export var Errors = list(n0, _Er, 0, () => _Error); +export var EventList = 64 | 0; + +export var ExposeHeaders = 64 | 0; + +export var FilterRuleList = list(n0, _FRL, 0, () => FilterRule); +export var Grants = list(n0, _G, 0, [ + () => Grant, + { + [_xN]: _Gr, + }, +]); +export var IntelligentTieringConfigurationList = list(n0, _ITCL, 0, [() => IntelligentTieringConfiguration, 0]); +export var InventoryConfigurationList = list(n0, _ICL, 0, [() => InventoryConfiguration, 0]); +export var InventoryOptionalFields = list(n0, _IOF, 0, [ + 0, + { + [_xN]: _Fi, + }, +]); +export var LambdaFunctionConfigurationList = list(n0, _LFCL, 0, [() => LambdaFunctionConfiguration, 0]); +export var LifecycleRules = list(n0, _LRi, 0, [() => LifecycleRule, 0]); +export var MetricsConfigurationList = list(n0, _MCL, 0, [() => MetricsConfiguration, 0]); +export var MultipartUploadList = list(n0, _MUL, 0, () => MultipartUpload); +export var NoncurrentVersionTransitionList = list(n0, _NVTL, 0, () => NoncurrentVersionTransition); +export var ObjectAttributesList = 64 | 0; + +export var ObjectIdentifierList = list(n0, _OIL, 0, () => ObjectIdentifier); +export var ObjectList = list(n0, _OLb, 0, [() => _Object, 0]); +export var ObjectVersionList = list(n0, _OVL, 0, [() => ObjectVersion, 0]); +export var OptionalObjectAttributesList = 64 | 0; + +export var OwnershipControlsRules = list(n0, _OCRw, 0, () => OwnershipControlsRule); +export var Parts = list(n0, _Pa, 0, () => Part); +export var PartsList = list(n0, _PL, 0, () => ObjectPart); +export var QueueConfigurationList = list(n0, _QCL, 0, [() => QueueConfiguration, 0]); +export var ReplicationRules = list(n0, _RRep, 0, [() => ReplicationRule, 0]); +export var RoutingRules = list(n0, _RR, 0, [ + () => RoutingRule, + { + [_xN]: _RRo, + }, +]); +export var ServerSideEncryptionRules = list(n0, _SSERe, 0, [() => ServerSideEncryptionRule, 0]); +export var TagSet = list(n0, _TS, 0, [ + () => Tag, + { + [_xN]: _Ta, + }, +]); +export var TargetGrants = list(n0, _TG, 0, [ + () => TargetGrant, + { + [_xN]: _Gr, + }, +]); +export var TieringList = list(n0, _TL, 0, () => Tiering); +export var TopicConfigurationList = list(n0, _TCL, 0, [() => TopicConfiguration, 0]); +export var TransitionList = list(n0, _TLr, 0, () => Transition); +export var UserMetadata = list(n0, _UM, 0, [ + () => MetadataEntry, + { + [_xN]: _ME, + }, +]); +export var Metadata = 128 | 0; + +export var AnalyticsFilter = uni(n0, _AF, 0, [_P, _Ta, _An], [0, () => Tag, [() => AnalyticsAndOperator, 0]]); +export var MetricsFilter = uni(n0, _MF, 0, [_P, _Ta, _APAc, _An], [0, () => Tag, 0, [() => MetricsAndOperator, 0]]); +export var SelectObjectContentEventStream = uni( + n0, + _SOCES, + { + [_s]: 1, + }, + [_Rec, _Sta, _Pr, _Cont, _End], + [[() => RecordsEvent, 0], [() => StatsEvent, 0], [() => ProgressEvent, 0], () => ContinuationEvent, () => EndEvent] +); +export var AbortMultipartUpload = op( + n0, + _AMU, + { + [_h]: ["DELETE", "/{Bucket}/{Key+}?x-id=AbortMultipartUpload", 204], + }, + () => AbortMultipartUploadRequest, + () => AbortMultipartUploadOutput +); +export var CompleteMultipartUpload = op( + n0, + _CMUo, + { + [_h]: ["POST", "/{Bucket}/{Key+}", 200], + }, + () => CompleteMultipartUploadRequest, + () => CompleteMultipartUploadOutput +); +export var CopyObject = op( + n0, + _CO, + { + [_h]: ["PUT", "/{Bucket}/{Key+}?x-id=CopyObject", 200], + }, + () => CopyObjectRequest, + () => CopyObjectOutput +); +export var CreateBucket = op( + n0, + _CB, + { + [_h]: ["PUT", "/{Bucket}", 200], + }, + () => CreateBucketRequest, + () => CreateBucketOutput +); +export var CreateBucketMetadataConfiguration = op( + n0, + _CBMC, + { + [_h]: ["POST", "/{Bucket}?metadataConfiguration", 200], + }, + () => CreateBucketMetadataConfigurationRequest, + () => Unit +); +export var CreateBucketMetadataTableConfiguration = op( + n0, + _CBMTC, + { + [_h]: ["POST", "/{Bucket}?metadataTable", 200], + }, + () => CreateBucketMetadataTableConfigurationRequest, + () => Unit +); +export var CreateMultipartUpload = op( + n0, + _CMUr, + { + [_h]: ["POST", "/{Bucket}/{Key+}?uploads", 200], + }, + () => CreateMultipartUploadRequest, + () => CreateMultipartUploadOutput +); +export var CreateSession = op( + n0, + _CSr, + { + [_h]: ["GET", "/{Bucket}?session", 200], + }, + () => CreateSessionRequest, + () => CreateSessionOutput +); +export var DeleteBucket = op( + n0, + _DB, + { + [_h]: ["DELETE", "/{Bucket}", 204], + }, + () => DeleteBucketRequest, + () => Unit +); +export var DeleteBucketAnalyticsConfiguration = op( + n0, + _DBAC, + { + [_h]: ["DELETE", "/{Bucket}?analytics", 204], + }, + () => DeleteBucketAnalyticsConfigurationRequest, + () => Unit +); +export var DeleteBucketCors = op( + n0, + _DBC, + { + [_h]: ["DELETE", "/{Bucket}?cors", 204], + }, + () => DeleteBucketCorsRequest, + () => Unit +); +export var DeleteBucketEncryption = op( + n0, + _DBE, + { + [_h]: ["DELETE", "/{Bucket}?encryption", 204], + }, + () => DeleteBucketEncryptionRequest, + () => Unit +); +export var DeleteBucketIntelligentTieringConfiguration = op( + n0, + _DBITC, + { + [_h]: ["DELETE", "/{Bucket}?intelligent-tiering", 204], + }, + () => DeleteBucketIntelligentTieringConfigurationRequest, + () => Unit +); +export var DeleteBucketInventoryConfiguration = op( + n0, + _DBIC, + { + [_h]: ["DELETE", "/{Bucket}?inventory", 204], + }, + () => DeleteBucketInventoryConfigurationRequest, + () => Unit +); +export var DeleteBucketLifecycle = op( + n0, + _DBL, + { + [_h]: ["DELETE", "/{Bucket}?lifecycle", 204], + }, + () => DeleteBucketLifecycleRequest, + () => Unit +); +export var DeleteBucketMetadataConfiguration = op( + n0, + _DBMC, + { + [_h]: ["DELETE", "/{Bucket}?metadataConfiguration", 204], + }, + () => DeleteBucketMetadataConfigurationRequest, + () => Unit +); +export var DeleteBucketMetadataTableConfiguration = op( + n0, + _DBMTC, + { + [_h]: ["DELETE", "/{Bucket}?metadataTable", 204], + }, + () => DeleteBucketMetadataTableConfigurationRequest, + () => Unit +); +export var DeleteBucketMetricsConfiguration = op( + n0, + _DBMCe, + { + [_h]: ["DELETE", "/{Bucket}?metrics", 204], + }, + () => DeleteBucketMetricsConfigurationRequest, + () => Unit +); +export var DeleteBucketOwnershipControls = op( + n0, + _DBOC, + { + [_h]: ["DELETE", "/{Bucket}?ownershipControls", 204], + }, + () => DeleteBucketOwnershipControlsRequest, + () => Unit +); +export var DeleteBucketPolicy = op( + n0, + _DBP, + { + [_h]: ["DELETE", "/{Bucket}?policy", 204], + }, + () => DeleteBucketPolicyRequest, + () => Unit +); +export var DeleteBucketReplication = op( + n0, + _DBRe, + { + [_h]: ["DELETE", "/{Bucket}?replication", 204], + }, + () => DeleteBucketReplicationRequest, + () => Unit +); +export var DeleteBucketTagging = op( + n0, + _DBT, + { + [_h]: ["DELETE", "/{Bucket}?tagging", 204], + }, + () => DeleteBucketTaggingRequest, + () => Unit +); +export var DeleteBucketWebsite = op( + n0, + _DBW, + { + [_h]: ["DELETE", "/{Bucket}?website", 204], + }, + () => DeleteBucketWebsiteRequest, + () => Unit +); +export var DeleteObject = op( + n0, + _DOel, + { + [_h]: ["DELETE", "/{Bucket}/{Key+}?x-id=DeleteObject", 204], + }, + () => DeleteObjectRequest, + () => DeleteObjectOutput +); +export var DeleteObjects = op( + n0, + _DOele, + { + [_h]: ["POST", "/{Bucket}?delete", 200], + }, + () => DeleteObjectsRequest, + () => DeleteObjectsOutput +); +export var DeleteObjectTagging = op( + n0, + _DOT, + { + [_h]: ["DELETE", "/{Bucket}/{Key+}?tagging", 204], + }, + () => DeleteObjectTaggingRequest, + () => DeleteObjectTaggingOutput +); +export var DeletePublicAccessBlock = op( + n0, + _DPAB, + { + [_h]: ["DELETE", "/{Bucket}?publicAccessBlock", 204], + }, + () => DeletePublicAccessBlockRequest, + () => Unit +); +export var GetBucketAccelerateConfiguration = op( + n0, + _GBAC, + { + [_h]: ["GET", "/{Bucket}?accelerate", 200], + }, + () => GetBucketAccelerateConfigurationRequest, + () => GetBucketAccelerateConfigurationOutput +); +export var GetBucketAcl = op( + n0, + _GBA, + { + [_h]: ["GET", "/{Bucket}?acl", 200], + }, + () => GetBucketAclRequest, + () => GetBucketAclOutput +); +export var GetBucketAnalyticsConfiguration = op( + n0, + _GBACe, + { + [_h]: ["GET", "/{Bucket}?analytics&x-id=GetBucketAnalyticsConfiguration", 200], + }, + () => GetBucketAnalyticsConfigurationRequest, + () => GetBucketAnalyticsConfigurationOutput +); +export var GetBucketCors = op( + n0, + _GBC, + { + [_h]: ["GET", "/{Bucket}?cors", 200], + }, + () => GetBucketCorsRequest, + () => GetBucketCorsOutput +); +export var GetBucketEncryption = op( + n0, + _GBE, + { + [_h]: ["GET", "/{Bucket}?encryption", 200], + }, + () => GetBucketEncryptionRequest, + () => GetBucketEncryptionOutput +); +export var GetBucketIntelligentTieringConfiguration = op( + n0, + _GBITC, + { + [_h]: ["GET", "/{Bucket}?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration", 200], + }, + () => GetBucketIntelligentTieringConfigurationRequest, + () => GetBucketIntelligentTieringConfigurationOutput +); +export var GetBucketInventoryConfiguration = op( + n0, + _GBIC, + { + [_h]: ["GET", "/{Bucket}?inventory&x-id=GetBucketInventoryConfiguration", 200], + }, + () => GetBucketInventoryConfigurationRequest, + () => GetBucketInventoryConfigurationOutput +); +export var GetBucketLifecycleConfiguration = op( + n0, + _GBLC, + { + [_h]: ["GET", "/{Bucket}?lifecycle", 200], + }, + () => GetBucketLifecycleConfigurationRequest, + () => GetBucketLifecycleConfigurationOutput +); +export var GetBucketLocation = op( + n0, + _GBL, + { + [_h]: ["GET", "/{Bucket}?location", 200], + }, + () => GetBucketLocationRequest, + () => GetBucketLocationOutput +); +export var GetBucketLogging = op( + n0, + _GBLe, + { + [_h]: ["GET", "/{Bucket}?logging", 200], + }, + () => GetBucketLoggingRequest, + () => GetBucketLoggingOutput +); +export var GetBucketMetadataConfiguration = op( + n0, + _GBMC, + { + [_h]: ["GET", "/{Bucket}?metadataConfiguration", 200], + }, + () => GetBucketMetadataConfigurationRequest, + () => GetBucketMetadataConfigurationOutput +); +export var GetBucketMetadataTableConfiguration = op( + n0, + _GBMTC, + { + [_h]: ["GET", "/{Bucket}?metadataTable", 200], + }, + () => GetBucketMetadataTableConfigurationRequest, + () => GetBucketMetadataTableConfigurationOutput +); +export var GetBucketMetricsConfiguration = op( + n0, + _GBMCe, + { + [_h]: ["GET", "/{Bucket}?metrics&x-id=GetBucketMetricsConfiguration", 200], + }, + () => GetBucketMetricsConfigurationRequest, + () => GetBucketMetricsConfigurationOutput +); +export var GetBucketNotificationConfiguration = op( + n0, + _GBNC, + { + [_h]: ["GET", "/{Bucket}?notification", 200], + }, + () => GetBucketNotificationConfigurationRequest, + () => NotificationConfiguration +); +export var GetBucketOwnershipControls = op( + n0, + _GBOC, + { + [_h]: ["GET", "/{Bucket}?ownershipControls", 200], + }, + () => GetBucketOwnershipControlsRequest, + () => GetBucketOwnershipControlsOutput +); +export var GetBucketPolicy = op( + n0, + _GBP, + { + [_h]: ["GET", "/{Bucket}?policy", 200], + }, + () => GetBucketPolicyRequest, + () => GetBucketPolicyOutput +); +export var GetBucketPolicyStatus = op( + n0, + _GBPS, + { + [_h]: ["GET", "/{Bucket}?policyStatus", 200], + }, + () => GetBucketPolicyStatusRequest, + () => GetBucketPolicyStatusOutput +); +export var GetBucketReplication = op( + n0, + _GBR, + { + [_h]: ["GET", "/{Bucket}?replication", 200], + }, + () => GetBucketReplicationRequest, + () => GetBucketReplicationOutput +); +export var GetBucketRequestPayment = op( + n0, + _GBRP, + { + [_h]: ["GET", "/{Bucket}?requestPayment", 200], + }, + () => GetBucketRequestPaymentRequest, + () => GetBucketRequestPaymentOutput +); +export var GetBucketTagging = op( + n0, + _GBT, + { + [_h]: ["GET", "/{Bucket}?tagging", 200], + }, + () => GetBucketTaggingRequest, + () => GetBucketTaggingOutput +); +export var GetBucketVersioning = op( + n0, + _GBV, + { + [_h]: ["GET", "/{Bucket}?versioning", 200], + }, + () => GetBucketVersioningRequest, + () => GetBucketVersioningOutput +); +export var GetBucketWebsite = op( + n0, + _GBW, + { + [_h]: ["GET", "/{Bucket}?website", 200], + }, + () => GetBucketWebsiteRequest, + () => GetBucketWebsiteOutput +); +export var GetObject = op( + n0, + _GO, + { + [_h]: ["GET", "/{Bucket}/{Key+}?x-id=GetObject", 200], + }, + () => GetObjectRequest, + () => GetObjectOutput +); +export var GetObjectAcl = op( + n0, + _GOA, + { + [_h]: ["GET", "/{Bucket}/{Key+}?acl", 200], + }, + () => GetObjectAclRequest, + () => GetObjectAclOutput +); +export var GetObjectAttributes = op( + n0, + _GOAe, + { + [_h]: ["GET", "/{Bucket}/{Key+}?attributes", 200], + }, + () => GetObjectAttributesRequest, + () => GetObjectAttributesOutput +); +export var GetObjectLegalHold = op( + n0, + _GOLH, + { + [_h]: ["GET", "/{Bucket}/{Key+}?legal-hold", 200], + }, + () => GetObjectLegalHoldRequest, + () => GetObjectLegalHoldOutput +); +export var GetObjectLockConfiguration = op( + n0, + _GOLC, + { + [_h]: ["GET", "/{Bucket}?object-lock", 200], + }, + () => GetObjectLockConfigurationRequest, + () => GetObjectLockConfigurationOutput +); +export var GetObjectRetention = op( + n0, + _GORe, + { + [_h]: ["GET", "/{Bucket}/{Key+}?retention", 200], + }, + () => GetObjectRetentionRequest, + () => GetObjectRetentionOutput +); +export var GetObjectTagging = op( + n0, + _GOT, + { + [_h]: ["GET", "/{Bucket}/{Key+}?tagging", 200], + }, + () => GetObjectTaggingRequest, + () => GetObjectTaggingOutput +); +export var GetObjectTorrent = op( + n0, + _GOTe, + { + [_h]: ["GET", "/{Bucket}/{Key+}?torrent", 200], + }, + () => GetObjectTorrentRequest, + () => GetObjectTorrentOutput +); +export var GetPublicAccessBlock = op( + n0, + _GPAB, + { + [_h]: ["GET", "/{Bucket}?publicAccessBlock", 200], + }, + () => GetPublicAccessBlockRequest, + () => GetPublicAccessBlockOutput +); +export var HeadBucket = op( + n0, + _HB, + { + [_h]: ["HEAD", "/{Bucket}", 200], + }, + () => HeadBucketRequest, + () => HeadBucketOutput +); +export var HeadObject = op( + n0, + _HO, + { + [_h]: ["HEAD", "/{Bucket}/{Key+}", 200], + }, + () => HeadObjectRequest, + () => HeadObjectOutput +); +export var ListBucketAnalyticsConfigurations = op( + n0, + _LBAC, + { + [_h]: ["GET", "/{Bucket}?analytics&x-id=ListBucketAnalyticsConfigurations", 200], + }, + () => ListBucketAnalyticsConfigurationsRequest, + () => ListBucketAnalyticsConfigurationsOutput +); +export var ListBucketIntelligentTieringConfigurations = op( + n0, + _LBITC, + { + [_h]: ["GET", "/{Bucket}?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations", 200], + }, + () => ListBucketIntelligentTieringConfigurationsRequest, + () => ListBucketIntelligentTieringConfigurationsOutput +); +export var ListBucketInventoryConfigurations = op( + n0, + _LBIC, + { + [_h]: ["GET", "/{Bucket}?inventory&x-id=ListBucketInventoryConfigurations", 200], + }, + () => ListBucketInventoryConfigurationsRequest, + () => ListBucketInventoryConfigurationsOutput +); +export var ListBucketMetricsConfigurations = op( + n0, + _LBMC, + { + [_h]: ["GET", "/{Bucket}?metrics&x-id=ListBucketMetricsConfigurations", 200], + }, + () => ListBucketMetricsConfigurationsRequest, + () => ListBucketMetricsConfigurationsOutput +); +export var ListBuckets = op( + n0, + _LB, + { + [_h]: ["GET", "/?x-id=ListBuckets", 200], + }, + () => ListBucketsRequest, + () => ListBucketsOutput +); +export var ListDirectoryBuckets = op( + n0, + _LDB, + { + [_h]: ["GET", "/?x-id=ListDirectoryBuckets", 200], + }, + () => ListDirectoryBucketsRequest, + () => ListDirectoryBucketsOutput +); +export var ListMultipartUploads = op( + n0, + _LMU, + { + [_h]: ["GET", "/{Bucket}?uploads", 200], + }, + () => ListMultipartUploadsRequest, + () => ListMultipartUploadsOutput +); +export var ListObjects = op( + n0, + _LO, + { + [_h]: ["GET", "/{Bucket}", 200], + }, + () => ListObjectsRequest, + () => ListObjectsOutput +); +export var ListObjectsV2 = op( + n0, + _LOV, + { + [_h]: ["GET", "/{Bucket}?list-type=2", 200], + }, + () => ListObjectsV2Request, + () => ListObjectsV2Output +); +export var ListObjectVersions = op( + n0, + _LOVi, + { + [_h]: ["GET", "/{Bucket}?versions", 200], + }, + () => ListObjectVersionsRequest, + () => ListObjectVersionsOutput +); +export var ListParts = op( + n0, + _LP, + { + [_h]: ["GET", "/{Bucket}/{Key+}?x-id=ListParts", 200], + }, + () => ListPartsRequest, + () => ListPartsOutput +); +export var PutBucketAccelerateConfiguration = op( + n0, + _PBAC, + { + [_h]: ["PUT", "/{Bucket}?accelerate", 200], + }, + () => PutBucketAccelerateConfigurationRequest, + () => Unit +); +export var PutBucketAcl = op( + n0, + _PBA, + { + [_h]: ["PUT", "/{Bucket}?acl", 200], + }, + () => PutBucketAclRequest, + () => Unit +); +export var PutBucketAnalyticsConfiguration = op( + n0, + _PBACu, + { + [_h]: ["PUT", "/{Bucket}?analytics", 200], + }, + () => PutBucketAnalyticsConfigurationRequest, + () => Unit +); +export var PutBucketCors = op( + n0, + _PBC, + { + [_h]: ["PUT", "/{Bucket}?cors", 200], + }, + () => PutBucketCorsRequest, + () => Unit +); +export var PutBucketEncryption = op( + n0, + _PBE, + { + [_h]: ["PUT", "/{Bucket}?encryption", 200], + }, + () => PutBucketEncryptionRequest, + () => Unit +); +export var PutBucketIntelligentTieringConfiguration = op( + n0, + _PBITC, + { + [_h]: ["PUT", "/{Bucket}?intelligent-tiering", 200], + }, + () => PutBucketIntelligentTieringConfigurationRequest, + () => Unit +); +export var PutBucketInventoryConfiguration = op( + n0, + _PBIC, + { + [_h]: ["PUT", "/{Bucket}?inventory", 200], + }, + () => PutBucketInventoryConfigurationRequest, + () => Unit +); +export var PutBucketLifecycleConfiguration = op( + n0, + _PBLC, + { + [_h]: ["PUT", "/{Bucket}?lifecycle", 200], + }, + () => PutBucketLifecycleConfigurationRequest, + () => PutBucketLifecycleConfigurationOutput +); +export var PutBucketLogging = op( + n0, + _PBL, + { + [_h]: ["PUT", "/{Bucket}?logging", 200], + }, + () => PutBucketLoggingRequest, + () => Unit +); +export var PutBucketMetricsConfiguration = op( + n0, + _PBMC, + { + [_h]: ["PUT", "/{Bucket}?metrics", 200], + }, + () => PutBucketMetricsConfigurationRequest, + () => Unit +); +export var PutBucketNotificationConfiguration = op( + n0, + _PBNC, + { + [_h]: ["PUT", "/{Bucket}?notification", 200], + }, + () => PutBucketNotificationConfigurationRequest, + () => Unit +); +export var PutBucketOwnershipControls = op( + n0, + _PBOC, + { + [_h]: ["PUT", "/{Bucket}?ownershipControls", 200], + }, + () => PutBucketOwnershipControlsRequest, + () => Unit +); +export var PutBucketPolicy = op( + n0, + _PBP, + { + [_h]: ["PUT", "/{Bucket}?policy", 200], + }, + () => PutBucketPolicyRequest, + () => Unit +); +export var PutBucketReplication = op( + n0, + _PBR, + { + [_h]: ["PUT", "/{Bucket}?replication", 200], + }, + () => PutBucketReplicationRequest, + () => Unit +); +export var PutBucketRequestPayment = op( + n0, + _PBRP, + { + [_h]: ["PUT", "/{Bucket}?requestPayment", 200], + }, + () => PutBucketRequestPaymentRequest, + () => Unit +); +export var PutBucketTagging = op( + n0, + _PBT, + { + [_h]: ["PUT", "/{Bucket}?tagging", 200], + }, + () => PutBucketTaggingRequest, + () => Unit +); +export var PutBucketVersioning = op( + n0, + _PBV, + { + [_h]: ["PUT", "/{Bucket}?versioning", 200], + }, + () => PutBucketVersioningRequest, + () => Unit +); +export var PutBucketWebsite = op( + n0, + _PBW, + { + [_h]: ["PUT", "/{Bucket}?website", 200], + }, + () => PutBucketWebsiteRequest, + () => Unit +); +export var PutObject = op( + n0, + _PO, + { + [_h]: ["PUT", "/{Bucket}/{Key+}?x-id=PutObject", 200], + }, + () => PutObjectRequest, + () => PutObjectOutput +); +export var PutObjectAcl = op( + n0, + _POA, + { + [_h]: ["PUT", "/{Bucket}/{Key+}?acl", 200], + }, + () => PutObjectAclRequest, + () => PutObjectAclOutput +); +export var PutObjectLegalHold = op( + n0, + _POLH, + { + [_h]: ["PUT", "/{Bucket}/{Key+}?legal-hold", 200], + }, + () => PutObjectLegalHoldRequest, + () => PutObjectLegalHoldOutput +); +export var PutObjectLockConfiguration = op( + n0, + _POLC, + { + [_h]: ["PUT", "/{Bucket}?object-lock", 200], + }, + () => PutObjectLockConfigurationRequest, + () => PutObjectLockConfigurationOutput +); +export var PutObjectRetention = op( + n0, + _PORu, + { + [_h]: ["PUT", "/{Bucket}/{Key+}?retention", 200], + }, + () => PutObjectRetentionRequest, + () => PutObjectRetentionOutput +); +export var PutObjectTagging = op( + n0, + _POT, + { + [_h]: ["PUT", "/{Bucket}/{Key+}?tagging", 200], + }, + () => PutObjectTaggingRequest, + () => PutObjectTaggingOutput +); +export var PutPublicAccessBlock = op( + n0, + _PPAB, + { + [_h]: ["PUT", "/{Bucket}?publicAccessBlock", 200], + }, + () => PutPublicAccessBlockRequest, + () => Unit +); +export var RenameObject = op( + n0, + _RO, + { + [_h]: ["PUT", "/{Bucket}/{Key+}?renameObject", 200], + }, + () => RenameObjectRequest, + () => RenameObjectOutput +); +export var RestoreObject = op( + n0, + _ROe, + { + [_h]: ["POST", "/{Bucket}/{Key+}?restore", 200], + }, + () => RestoreObjectRequest, + () => RestoreObjectOutput +); +export var SelectObjectContent = op( + n0, + _SOC, + { + [_h]: ["POST", "/{Bucket}/{Key+}?select&select-type=2", 200], + }, + () => SelectObjectContentRequest, + () => SelectObjectContentOutput +); +export var UpdateBucketMetadataInventoryTableConfiguration = op( + n0, + _UBMITC, + { + [_h]: ["PUT", "/{Bucket}?metadataInventoryTable", 200], + }, + () => UpdateBucketMetadataInventoryTableConfigurationRequest, + () => Unit +); +export var UpdateBucketMetadataJournalTableConfiguration = op( + n0, + _UBMJTC, + { + [_h]: ["PUT", "/{Bucket}?metadataJournalTable", 200], + }, + () => UpdateBucketMetadataJournalTableConfigurationRequest, + () => Unit +); +export var UploadPart = op( + n0, + _UP, + { + [_h]: ["PUT", "/{Bucket}/{Key+}?x-id=UploadPart", 200], + }, + () => UploadPartRequest, + () => UploadPartOutput +); +export var UploadPartCopy = op( + n0, + _UPC, + { + [_h]: ["PUT", "/{Bucket}/{Key+}?x-id=UploadPartCopy", 200], + }, + () => UploadPartCopyRequest, + () => UploadPartCopyOutput +); +export var WriteGetObjectResponse = op( + n0, + _WGOR, + { + [_en]: ["{RequestRoute}."], + [_h]: ["POST", "/WriteGetObjectResponse", 200], + }, + () => WriteGetObjectResponseRequest, + () => Unit +); diff --git a/codegen/sdk-codegen/build.gradle.kts b/codegen/sdk-codegen/build.gradle.kts index 7178688d35ef..f1c3b96e4b05 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" + "S3" ) 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 9ba8ccafb3f2..e82e5e30b883 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 @@ -38,6 +38,7 @@ public AddProtocolConfig() { SchemaGenerationAllowlist.allow("com.amazonaws.dynamodb#DynamoDB_20120810"); SchemaGenerationAllowlist.allow("com.amazonaws.lambda#AWSGirApiService"); SchemaGenerationAllowlist.allow("com.amazonaws.cloudwatchlogs#Logs_20140328"); + SchemaGenerationAllowlist.allow("com.amazonaws.sts#AWSSecurityTokenServiceV20110615"); // protocol tests SchemaGenerationAllowlist.allow("aws.protocoltests.json10#JsonRpc10"); diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java index cd75b4baaa52..cd7e9363f8d2 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java @@ -34,6 +34,7 @@ import software.amazon.smithy.model.knowledge.OperationIndex; import software.amazon.smithy.model.knowledge.TopDownIndex; import software.amazon.smithy.model.pattern.SmithyPattern; +import software.amazon.smithy.model.pattern.UriPattern; import software.amazon.smithy.model.shapes.MemberShape; import software.amazon.smithy.model.shapes.OperationShape; import software.amazon.smithy.model.shapes.ServiceShape; @@ -47,9 +48,11 @@ import software.amazon.smithy.model.traits.EndpointTrait; import software.amazon.smithy.model.traits.HttpHeaderTrait; import software.amazon.smithy.model.traits.HttpPayloadTrait; +import software.amazon.smithy.model.traits.HttpTrait; import software.amazon.smithy.model.traits.StreamingTrait; import software.amazon.smithy.model.traits.Trait; import software.amazon.smithy.model.transform.ModelTransformer; +import software.amazon.smithy.rulesengine.traits.ContextParamTrait; import software.amazon.smithy.rulesengine.traits.EndpointRuleSetTrait; import software.amazon.smithy.typescript.codegen.LanguageTarget; import software.amazon.smithy.typescript.codegen.TypeScriptDependency; @@ -113,6 +116,53 @@ public static Shape removeHostPrefixTrait(Shape shape) { .orElse(shape); } + /** + * Remove `/{Bucket}` from the operation endpoint URI IFF + * - it is in a prefix position. + * - input has a member called "Bucket". + * - "Bucket" input member is a contextParam. + */ + public static Shape removeUriBucketPrefix(Shape shape, Model model) { + return shape.asOperationShape() + .map(OperationShape::shapeToBuilder) + .map((Object object) -> { + OperationShape.Builder builder = (OperationShape.Builder) object; + Trait trait = builder.getAllTraits().get(HttpTrait.ID); + if (trait instanceof HttpTrait httpTrait) { + String uri = httpTrait.getUri().toString(); + + StructureShape input = model.expectShape( + shape.asOperationShape().get().getInputShape() + ).asStructureShape().orElseThrow( + () -> new RuntimeException("operation must have input structure") + ); + + boolean hasBucketPrefix = uri.startsWith("/{Bucket}") ; + Optional bucket = input.getMember("Bucket"); + boolean inputHasBucketMember = bucket.isPresent(); + boolean bucketIsContextParam = bucket + .map(ms -> ms.getTrait(ContextParamTrait.class)) + .isPresent(); + + if (hasBucketPrefix && inputHasBucketMember && bucketIsContextParam) { + String replaced = uri + .replace("/{Bucket}/", "/") + .replace("/{Bucket}", "/"); + builder.addTrait( + httpTrait + .toBuilder() + .uri(UriPattern.parse(replaced)) + .build() + ); + } + } + return builder; + }) + .map(OperationShape.Builder::build) + .map(s -> (Shape) s) + .orElse(shape); + } + @Override public List runAfter() { return List.of( @@ -243,7 +293,7 @@ public Model preprocessModel(Model model, TypeScriptSettings settings) { Model builtModel = modelBuilder.addShapes(inputShapes).build(); if (hasRuleset) { return ModelTransformer.create().mapShapes( - builtModel, AddS3Config::removeHostPrefixTrait + builtModel, (shape) -> removeUriBucketPrefix(shape, model) ); } return builtModel; diff --git a/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts b/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts index a0a57aa4ec77..873ed90a84da 100644 --- a/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts +++ b/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts @@ -61,16 +61,6 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol { const ns = NormalizedSchema.of(operationSchema.input); const members = ns.getMemberSchemas(); - request.path = - String(request.path) - .split("/") - .filter((segment) => { - // for legacy reasons, - // Bucket is in the http trait but is handled by endpoints ruleset. - return segment !== "{Bucket}"; - }) - .join("/") || "/"; - if (!request.headers["content-type"]) { const httpPayloadMember = Object.values(members).find((m) => { return !!m.getMergedTraits().httpPayload; diff --git a/packages/middleware-logger/package.json b/packages/middleware-logger/package.json index 36d263b88c05..5dbeb5ce06b8 100644 --- a/packages/middleware-logger/package.json +++ b/packages/middleware-logger/package.json @@ -25,9 +25,7 @@ "types": "./dist-types/index.d.ts", "dependencies": { "@aws-sdk/types": "*", - "@smithy/core": "^3.8.0", "@smithy/types": "^4.3.2", - "@smithy/util-middleware": "^4.0.5", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/middleware-logger/src/loggerMiddleware.ts b/packages/middleware-logger/src/loggerMiddleware.ts index c6841a63d95f..7d249f815169 100644 --- a/packages/middleware-logger/src/loggerMiddleware.ts +++ b/packages/middleware-logger/src/loggerMiddleware.ts @@ -6,12 +6,8 @@ import type { InitializeHandlerOptions, InitializeHandlerOutput, MetadataBearer, - OperationSchema, Pluggable, } from "@smithy/types"; -import { getSmithyContext } from "@smithy/util-middleware"; - -import { schemaLogFilter } from "./schemaLogFilter"; export const loggerMiddleware = () => @@ -20,42 +16,33 @@ export const loggerMiddleware = context: HandlerExecutionContext ): InitializeHandler => async (args: InitializeHandlerArguments): Promise> => { - const { operationSchema } = getSmithyContext(context) as { - operationSchema: OperationSchema; - }; - try { const response = await next(args); + const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; - const { clientName, commandName, logger } = context; - - const inputLogFilter = operationSchema - ? schemaLogFilter.bind(operationSchema.input) - : context.inputFilterSensitiveLog; - const outputLogFilter = operationSchema - ? schemaLogFilter.bind(operationSchema.output) - : context.outputFilterSensitiveLog; + const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions; + const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; + const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog ?? context.outputFilterSensitiveLog; const { $metadata, ...outputWithoutMetadata } = response.output; logger?.info?.({ clientName, commandName, - input: inputLogFilter(args.input), - output: outputLogFilter(outputWithoutMetadata), + input: inputFilterSensitiveLog(args.input), + output: outputFilterSensitiveLog(outputWithoutMetadata), metadata: $metadata, }); return response; } catch (error) { - const { clientName, commandName, logger } = context; + const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; - const inputLogFilter = operationSchema - ? schemaLogFilter.bind(operationSchema.input) - : context.inputFilterSensitiveLog; + const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions; + const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; logger?.error?.({ clientName, commandName, - input: inputLogFilter(args.input), + input: inputFilterSensitiveLog(args.input), error, metadata: (error as any).$metadata, }); diff --git a/packages/middleware-logger/src/schemaLogFilter.ts b/packages/middleware-logger/src/schemaLogFilter.ts deleted file mode 100644 index 4b39d707a8b6..000000000000 --- a/packages/middleware-logger/src/schemaLogFilter.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { NormalizedSchema } from "@smithy/core/schema"; -import type { Schema as ISchema } from "@smithy/types"; - -const SENSITIVE_STRING = "***SensitiveInformation***"; - -/** - * Redacts sensitive parts of any data object using its schema, for logging. - * - * @internal - * @param schema - with filtering traits. - * @param data - to be logged. - */ -export function schemaLogFilter(schema: ISchema, data: unknown): any { - if (data == null) { - return data; - } - const ns = NormalizedSchema.of(schema); - if (ns.getMergedTraits().sensitive) { - return SENSITIVE_STRING; - } - - if (ns.isListSchema()) { - const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive; - if (isSensitive) { - return SENSITIVE_STRING; - } - } else if (ns.isMapSchema()) { - const isSensitive = - !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive; - if (isSensitive) { - return SENSITIVE_STRING; - } - } else if (ns.isStructSchema() && typeof data === "object") { - const object = data as Record; - - const newObject = {} as any; - for (const [member, memberNs] of ns.structIterator()) { - if (object[member] != null) { - newObject[member] = schemaLogFilter(memberNs, object[member]); - } - } - return newObject; - } - - return data; -} From 123da5f75e2df3d106f12e03ff03de6d50363d49 Mon Sep 17 00:00:00 2001 From: George Fu Date: Fri, 8 Aug 2025 12:15:54 -0400 Subject: [PATCH 3/3] chore: unset s3 schema --- clients/client-s3/package.json | 5 +- clients/client-s3/src/S3Client.ts | 15 - .../commands/AbortMultipartUploadCommand.ts | 14 +- .../CompleteMultipartUploadCommand.ts | 16 +- .../src/commands/CopyObjectCommand.ts | 16 +- .../src/commands/CreateBucketCommand.ts | 9 +- ...reateBucketMetadataConfigurationCommand.ts | 12 +- ...BucketMetadataTableConfigurationCommand.ts | 12 +- .../commands/CreateMultipartUploadCommand.ts | 16 +- .../src/commands/CreateSessionCommand.ts | 21 +- ...leteBucketAnalyticsConfigurationCommand.ts | 16 +- .../src/commands/DeleteBucketCommand.ts | 13 +- .../src/commands/DeleteBucketCorsCommand.ts | 13 +- .../commands/DeleteBucketEncryptionCommand.ts | 13 +- ...tIntelligentTieringConfigurationCommand.ts | 16 +- ...leteBucketInventoryConfigurationCommand.ts | 16 +- .../commands/DeleteBucketLifecycleCommand.ts | 13 +- ...eleteBucketMetadataConfigurationCommand.ts | 16 +- ...BucketMetadataTableConfigurationCommand.ts | 16 +- ...DeleteBucketMetricsConfigurationCommand.ts | 16 +- .../DeleteBucketOwnershipControlsCommand.ts | 16 +- .../src/commands/DeleteBucketPolicyCommand.ts | 13 +- .../DeleteBucketReplicationCommand.ts | 13 +- .../commands/DeleteBucketTaggingCommand.ts | 13 +- .../commands/DeleteBucketWebsiteCommand.ts | 13 +- .../src/commands/DeleteObjectCommand.ts | 14 +- .../commands/DeleteObjectTaggingCommand.ts | 14 +- .../src/commands/DeleteObjectsCommand.ts | 9 +- .../DeletePublicAccessBlockCommand.ts | 13 +- ...GetBucketAccelerateConfigurationCommand.ts | 17 +- .../src/commands/GetBucketAclCommand.ts | 14 +- .../GetBucketAnalyticsConfigurationCommand.ts | 17 +- .../src/commands/GetBucketCorsCommand.ts | 14 +- .../commands/GetBucketEncryptionCommand.ts | 20 +- ...tIntelligentTieringConfigurationCommand.ts | 17 +- .../GetBucketInventoryConfigurationCommand.ts | 23 +- .../GetBucketLifecycleConfigurationCommand.ts | 17 +- .../src/commands/GetBucketLocationCommand.ts | 14 +- .../src/commands/GetBucketLoggingCommand.ts | 14 +- .../GetBucketMetadataConfigurationCommand.ts | 17 +- ...BucketMetadataTableConfigurationCommand.ts | 17 +- .../GetBucketMetricsConfigurationCommand.ts | 17 +- ...tBucketNotificationConfigurationCommand.ts | 17 +- .../GetBucketOwnershipControlsCommand.ts | 14 +- .../src/commands/GetBucketPolicyCommand.ts | 14 +- .../commands/GetBucketPolicyStatusCommand.ts | 14 +- .../commands/GetBucketReplicationCommand.ts | 14 +- .../GetBucketRequestPaymentCommand.ts | 14 +- .../src/commands/GetBucketTaggingCommand.ts | 14 +- .../commands/GetBucketVersioningCommand.ts | 14 +- .../src/commands/GetBucketWebsiteCommand.ts | 14 +- .../src/commands/GetObjectAclCommand.ts | 14 +- .../commands/GetObjectAttributesCommand.ts | 15 +- .../src/commands/GetObjectCommand.ts | 16 +- .../src/commands/GetObjectLegalHoldCommand.ts | 14 +- .../GetObjectLockConfigurationCommand.ts | 14 +- .../src/commands/GetObjectRetentionCommand.ts | 14 +- .../src/commands/GetObjectTaggingCommand.ts | 14 +- .../src/commands/GetObjectTorrentCommand.ts | 19 +- .../commands/GetPublicAccessBlockCommand.ts | 14 +- .../src/commands/HeadBucketCommand.ts | 14 +- .../src/commands/HeadObjectCommand.ts | 16 +- ...istBucketAnalyticsConfigurationsCommand.ts | 17 +- ...IntelligentTieringConfigurationsCommand.ts | 17 +- ...istBucketInventoryConfigurationsCommand.ts | 23 +- .../ListBucketMetricsConfigurationsCommand.ts | 17 +- .../src/commands/ListBucketsCommand.ts | 14 +- .../commands/ListDirectoryBucketsCommand.ts | 14 +- .../commands/ListMultipartUploadsCommand.ts | 14 +- .../src/commands/ListObjectVersionsCommand.ts | 14 +- .../src/commands/ListObjectsCommand.ts | 14 +- .../src/commands/ListObjectsV2Command.ts | 14 +- .../src/commands/ListPartsCommand.ts | 11 +- ...PutBucketAccelerateConfigurationCommand.ts | 12 +- .../src/commands/PutBucketAclCommand.ts | 9 +- .../PutBucketAnalyticsConfigurationCommand.ts | 16 +- .../src/commands/PutBucketCorsCommand.ts | 9 +- .../commands/PutBucketEncryptionCommand.ts | 11 +- ...tIntelligentTieringConfigurationCommand.ts | 16 +- .../PutBucketInventoryConfigurationCommand.ts | 21 +- .../PutBucketLifecycleConfigurationCommand.ts | 12 +- .../src/commands/PutBucketLoggingCommand.ts | 9 +- .../PutBucketMetricsConfigurationCommand.ts | 16 +- ...tBucketNotificationConfigurationCommand.ts | 16 +- .../PutBucketOwnershipControlsCommand.ts | 9 +- .../src/commands/PutBucketPolicyCommand.ts | 9 +- .../commands/PutBucketReplicationCommand.ts | 9 +- .../PutBucketRequestPaymentCommand.ts | 9 +- .../src/commands/PutBucketTaggingCommand.ts | 9 +- .../commands/PutBucketVersioningCommand.ts | 9 +- .../src/commands/PutBucketWebsiteCommand.ts | 9 +- .../src/commands/PutObjectAclCommand.ts | 9 +- .../src/commands/PutObjectCommand.ts | 16 +- .../src/commands/PutObjectLegalHoldCommand.ts | 9 +- .../PutObjectLockConfigurationCommand.ts | 9 +- .../src/commands/PutObjectRetentionCommand.ts | 9 +- .../src/commands/PutObjectTaggingCommand.ts | 9 +- .../commands/PutPublicAccessBlockCommand.ts | 9 +- .../src/commands/RenameObjectCommand.ts | 14 +- .../src/commands/RestoreObjectCommand.ts | 11 +- .../commands/SelectObjectContentCommand.ts | 16 +- ...adataInventoryTableConfigurationCommand.ts | 12 +- ...etadataJournalTableConfigurationCommand.ts | 12 +- .../src/commands/UploadPartCommand.ts | 16 +- .../src/commands/UploadPartCopyCommand.ts | 16 +- .../commands/WriteGetObjectResponseCommand.ts | 15 +- clients/client-s3/src/models/models_0.ts | 241 +- clients/client-s3/src/models/models_1.ts | 166 +- .../client-s3/src/protocols/Aws_restXml.ts | 11295 ++++++++++++++++ clients/client-s3/src/runtimeConfig.shared.ts | 7 - clients/client-s3/src/schemas/schemas.ts | 9743 ------------- codegen/sdk-codegen/build.gradle.kts | 2 +- .../aws/typescript/codegen/AddS3Config.java | 10 +- .../protocols/json/AwsJsonRpcProtocol.ts | 31 +- .../protocols/json/AwsRestJsonProtocol.ts | 31 +- .../protocols/query/AwsQueryProtocol.ts | 34 +- .../protocols/xml/AwsRestXmlProtocol.spec.ts | 5 +- .../protocols/xml/AwsRestXmlProtocol.ts | 32 +- .../protocols/xml/XmlShapeSerializer.ts | 8 +- .../src/ClientRetryTest.spec.ts | 6 + .../src/middleware-serde.spec.ts | 2 +- 121 files changed, 12865 insertions(+), 10222 deletions(-) create mode 100644 clients/client-s3/src/protocols/Aws_restXml.ts delete mode 100644 clients/client-s3/src/schemas/schemas.ts diff --git a/clients/client-s3/package.json b/clients/client-s3/package.json index ed87b5a5a563..743a4120efb2 100644 --- a/clients/client-s3/package.json +++ b/clients/client-s3/package.json @@ -47,6 +47,7 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", + "@aws-sdk/xml-builder": "*", "@smithy/config-resolver": "^4.1.5", "@smithy/core": "^3.8.0", "@smithy/eventstream-serde-browser": "^4.0.5", @@ -80,7 +81,9 @@ "@smithy/util-stream": "^4.2.4", "@smithy/util-utf8": "^4.0.0", "@smithy/util-waiter": "^4.0.7", - "tslib": "^2.6.2" + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "devDependencies": { "@aws-sdk/signature-v4-crt": "*", diff --git a/clients/client-s3/src/S3Client.ts b/clients/client-s3/src/S3Client.ts index d1571fe528c2..cbda19b3b90d 100644 --- a/clients/client-s3/src/S3Client.ts +++ b/clients/client-s3/src/S3Client.ts @@ -35,7 +35,6 @@ import { getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core"; -import { getSchemaSerdePlugin } from "@smithy/core/schema"; import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig, @@ -57,7 +56,6 @@ import { CheckOptionalClientConfig as __CheckOptionalClientConfig, Checksum as __Checksum, ChecksumConstructor as __ChecksumConstructor, - ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, EndpointV2 as __EndpointV2, @@ -65,8 +63,6 @@ import { Hash as __Hash, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, - HttpRequest, - HttpResponse, Logger as __Logger, Provider as __Provider, Provider, @@ -776,16 +772,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 */ @@ -888,7 +874,6 @@ export class S3Client extends __Client< const _config_10 = resolveS3Config(_config_9, { session: [() => this, CreateSessionCommand] }); const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []); this.config = _config_11; - 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-s3/src/commands/AbortMultipartUploadCommand.ts b/clients/client-s3/src/commands/AbortMultipartUploadCommand.ts index 5874e7a6e585..2fb6a9c86e9c 100644 --- a/clients/client-s3/src/commands/AbortMultipartUploadCommand.ts +++ b/clients/client-s3/src/commands/AbortMultipartUploadCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { AbortMultipartUploadOutput, AbortMultipartUploadRequest } from "../models/models_0"; +import { de_AbortMultipartUploadCommand, se_AbortMultipartUploadCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { AbortMultipartUpload } from "../schemas/schemas"; /** * @public @@ -177,12 +178,17 @@ export class AbortMultipartUploadCommand extends $Command Key: { type: "contextParams", name: "Key" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "AbortMultipartUpload", {}) .n("S3Client", "AbortMultipartUploadCommand") - - .sc(AbortMultipartUpload) + .f(void 0, void 0) + .ser(se_AbortMultipartUploadCommand) + .de(de_AbortMultipartUploadCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/CompleteMultipartUploadCommand.ts b/clients/client-s3/src/commands/CompleteMultipartUploadCommand.ts index a397a42f7429..1f3400ead85b 100644 --- a/clients/client-s3/src/commands/CompleteMultipartUploadCommand.ts +++ b/clients/client-s3/src/commands/CompleteMultipartUploadCommand.ts @@ -2,13 +2,19 @@ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { CompleteMultipartUploadOutput, CompleteMultipartUploadRequest } from "../models/models_0"; +import { + CompleteMultipartUploadOutput, + CompleteMultipartUploadOutputFilterSensitiveLog, + CompleteMultipartUploadRequest, + CompleteMultipartUploadRequestFilterSensitiveLog, +} from "../models/models_0"; +import { de_CompleteMultipartUploadCommand, se_CompleteMultipartUploadCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { CompleteMultipartUpload } from "../schemas/schemas"; /** * @public @@ -308,6 +314,7 @@ export class CompleteMultipartUploadCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -315,8 +322,9 @@ export class CompleteMultipartUploadCommand extends $Command }) .s("AmazonS3", "CompleteMultipartUpload", {}) .n("S3Client", "CompleteMultipartUploadCommand") - - .sc(CompleteMultipartUpload) + .f(CompleteMultipartUploadRequestFilterSensitiveLog, CompleteMultipartUploadOutputFilterSensitiveLog) + .ser(se_CompleteMultipartUploadCommand) + .de(de_CompleteMultipartUploadCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/CopyObjectCommand.ts b/clients/client-s3/src/commands/CopyObjectCommand.ts index 7c69b3fa00ad..07217dc4a699 100644 --- a/clients/client-s3/src/commands/CopyObjectCommand.ts +++ b/clients/client-s3/src/commands/CopyObjectCommand.ts @@ -2,13 +2,19 @@ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { CopyObjectOutput, CopyObjectRequest } from "../models/models_0"; +import { + CopyObjectOutput, + CopyObjectOutputFilterSensitiveLog, + CopyObjectRequest, + CopyObjectRequestFilterSensitiveLog, +} from "../models/models_0"; +import { de_CopyObjectCommand, se_CopyObjectCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { CopyObject } from "../schemas/schemas"; /** * @public @@ -361,6 +367,7 @@ export class CopyObjectCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -368,8 +375,9 @@ export class CopyObjectCommand extends $Command }) .s("AmazonS3", "CopyObject", {}) .n("S3Client", "CopyObjectCommand") - - .sc(CopyObject) + .f(CopyObjectRequestFilterSensitiveLog, CopyObjectOutputFilterSensitiveLog) + .ser(se_CopyObjectCommand) + .de(de_CopyObjectCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/CreateBucketCommand.ts b/clients/client-s3/src/commands/CreateBucketCommand.ts index 479a6fbb34c6..a576794589e4 100644 --- a/clients/client-s3/src/commands/CreateBucketCommand.ts +++ b/clients/client-s3/src/commands/CreateBucketCommand.ts @@ -2,13 +2,14 @@ import { getLocationConstraintPlugin } from "@aws-sdk/middleware-location-constraint"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { CreateBucketOutput, CreateBucketRequest } from "../models/models_0"; +import { de_CreateBucketCommand, se_CreateBucketCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { CreateBucket } from "../schemas/schemas"; /** * @public @@ -295,6 +296,7 @@ export class CreateBucketCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getLocationConstraintPlugin(config), @@ -302,8 +304,9 @@ export class CreateBucketCommand extends $Command }) .s("AmazonS3", "CreateBucket", {}) .n("S3Client", "CreateBucketCommand") - - .sc(CreateBucket) + .f(void 0, void 0) + .ser(se_CreateBucketCommand) + .de(de_CreateBucketCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/CreateBucketMetadataConfigurationCommand.ts b/clients/client-s3/src/commands/CreateBucketMetadataConfigurationCommand.ts index 631396a370d5..285dc3d113be 100644 --- a/clients/client-s3/src/commands/CreateBucketMetadataConfigurationCommand.ts +++ b/clients/client-s3/src/commands/CreateBucketMetadataConfigurationCommand.ts @@ -1,13 +1,17 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { CreateBucketMetadataConfigurationRequest } from "../models/models_0"; +import { + de_CreateBucketMetadataConfigurationCommand, + se_CreateBucketMetadataConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { CreateBucketMetadataConfiguration } from "../schemas/schemas"; /** * @public @@ -183,6 +187,7 @@ export class CreateBucketMetadataConfigurationCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -192,8 +197,9 @@ export class CreateBucketMetadataConfigurationCommand extends $Command }) .s("AmazonS3", "CreateBucketMetadataConfiguration", {}) .n("S3Client", "CreateBucketMetadataConfigurationCommand") - - .sc(CreateBucketMetadataConfiguration) + .f(void 0, void 0) + .ser(se_CreateBucketMetadataConfigurationCommand) + .de(de_CreateBucketMetadataConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/CreateBucketMetadataTableConfigurationCommand.ts b/clients/client-s3/src/commands/CreateBucketMetadataTableConfigurationCommand.ts index 9f8f3865fa9d..b6ccacab41cd 100644 --- a/clients/client-s3/src/commands/CreateBucketMetadataTableConfigurationCommand.ts +++ b/clients/client-s3/src/commands/CreateBucketMetadataTableConfigurationCommand.ts @@ -1,13 +1,17 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { CreateBucketMetadataTableConfigurationRequest } from "../models/models_0"; +import { + de_CreateBucketMetadataTableConfigurationCommand, + se_CreateBucketMetadataTableConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { CreateBucketMetadataTableConfiguration } from "../schemas/schemas"; /** * @public @@ -150,6 +154,7 @@ export class CreateBucketMetadataTableConfigurationCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -159,8 +164,9 @@ export class CreateBucketMetadataTableConfigurationCommand extends $Command }) .s("AmazonS3", "CreateBucketMetadataTableConfiguration", {}) .n("S3Client", "CreateBucketMetadataTableConfigurationCommand") - - .sc(CreateBucketMetadataTableConfiguration) + .f(void 0, void 0) + .ser(se_CreateBucketMetadataTableConfigurationCommand) + .de(de_CreateBucketMetadataTableConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/CreateMultipartUploadCommand.ts b/clients/client-s3/src/commands/CreateMultipartUploadCommand.ts index 72a20f479d20..fd01c69cfbbe 100644 --- a/clients/client-s3/src/commands/CreateMultipartUploadCommand.ts +++ b/clients/client-s3/src/commands/CreateMultipartUploadCommand.ts @@ -2,13 +2,19 @@ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { CreateMultipartUploadOutput, CreateMultipartUploadRequest } from "../models/models_0"; +import { + CreateMultipartUploadOutput, + CreateMultipartUploadOutputFilterSensitiveLog, + CreateMultipartUploadRequest, + CreateMultipartUploadRequestFilterSensitiveLog, +} from "../models/models_0"; +import { de_CreateMultipartUploadCommand, se_CreateMultipartUploadCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { CreateMultipartUpload } from "../schemas/schemas"; /** * @public @@ -386,6 +392,7 @@ export class CreateMultipartUploadCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -393,8 +400,9 @@ export class CreateMultipartUploadCommand extends $Command }) .s("AmazonS3", "CreateMultipartUpload", {}) .n("S3Client", "CreateMultipartUploadCommand") - - .sc(CreateMultipartUpload) + .f(CreateMultipartUploadRequestFilterSensitiveLog, CreateMultipartUploadOutputFilterSensitiveLog) + .ser(se_CreateMultipartUploadCommand) + .de(de_CreateMultipartUploadCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/CreateSessionCommand.ts b/clients/client-s3/src/commands/CreateSessionCommand.ts index ff5309bf20ee..b25a72b86fb9 100644 --- a/clients/client-s3/src/commands/CreateSessionCommand.ts +++ b/clients/client-s3/src/commands/CreateSessionCommand.ts @@ -1,13 +1,19 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { CreateSessionOutput, CreateSessionRequest } from "../models/models_0"; +import { + CreateSessionOutput, + CreateSessionOutputFilterSensitiveLog, + CreateSessionRequest, + CreateSessionRequestFilterSensitiveLog, +} from "../models/models_0"; +import { de_CreateSessionCommand, se_CreateSessionCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { CreateSession } from "../schemas/schemas"; /** * @public @@ -192,12 +198,17 @@ export class CreateSessionCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "CreateSession", {}) .n("S3Client", "CreateSessionCommand") - - .sc(CreateSession) + .f(CreateSessionRequestFilterSensitiveLog, CreateSessionOutputFilterSensitiveLog) + .ser(se_CreateSessionCommand) + .de(de_CreateSessionCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketAnalyticsConfigurationCommand.ts b/clients/client-s3/src/commands/DeleteBucketAnalyticsConfigurationCommand.ts index 84fec2833031..b1f3cbf96646 100644 --- a/clients/client-s3/src/commands/DeleteBucketAnalyticsConfigurationCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketAnalyticsConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketAnalyticsConfigurationRequest } from "../models/models_0"; +import { + de_DeleteBucketAnalyticsConfigurationCommand, + se_DeleteBucketAnalyticsConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucketAnalyticsConfiguration } from "../schemas/schemas"; /** * @public @@ -99,12 +103,16 @@ export class DeleteBucketAnalyticsConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucketAnalyticsConfiguration", {}) .n("S3Client", "DeleteBucketAnalyticsConfigurationCommand") - - .sc(DeleteBucketAnalyticsConfiguration) + .f(void 0, void 0) + .ser(se_DeleteBucketAnalyticsConfigurationCommand) + .de(de_DeleteBucketAnalyticsConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketCommand.ts b/clients/client-s3/src/commands/DeleteBucketCommand.ts index 6f80da198aba..0a3b63af2911 100644 --- a/clients/client-s3/src/commands/DeleteBucketCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketRequest } from "../models/models_0"; +import { de_DeleteBucketCommand, se_DeleteBucketCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucket } from "../schemas/schemas"; /** * @public @@ -138,12 +139,16 @@ export class DeleteBucketCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucket", {}) .n("S3Client", "DeleteBucketCommand") - - .sc(DeleteBucket) + .f(void 0, void 0) + .ser(se_DeleteBucketCommand) + .de(de_DeleteBucketCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketCorsCommand.ts b/clients/client-s3/src/commands/DeleteBucketCorsCommand.ts index 3b4baef7e076..d7868bda8bf6 100644 --- a/clients/client-s3/src/commands/DeleteBucketCorsCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketCorsCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketCorsRequest } from "../models/models_0"; +import { de_DeleteBucketCorsCommand, se_DeleteBucketCorsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucketCors } from "../schemas/schemas"; /** * @public @@ -105,12 +106,16 @@ export class DeleteBucketCorsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucketCors", {}) .n("S3Client", "DeleteBucketCorsCommand") - - .sc(DeleteBucketCors) + .f(void 0, void 0) + .ser(se_DeleteBucketCorsCommand) + .de(de_DeleteBucketCorsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketEncryptionCommand.ts b/clients/client-s3/src/commands/DeleteBucketEncryptionCommand.ts index dc7ceebc930b..31c4c3c81f20 100644 --- a/clients/client-s3/src/commands/DeleteBucketEncryptionCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketEncryptionCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketEncryptionRequest } from "../models/models_0"; +import { de_DeleteBucketEncryptionCommand, se_DeleteBucketEncryptionCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucketEncryption } from "../schemas/schemas"; /** * @public @@ -128,12 +129,16 @@ export class DeleteBucketEncryptionCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucketEncryption", {}) .n("S3Client", "DeleteBucketEncryptionCommand") - - .sc(DeleteBucketEncryption) + .f(void 0, void 0) + .ser(se_DeleteBucketEncryptionCommand) + .de(de_DeleteBucketEncryptionCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketIntelligentTieringConfigurationCommand.ts b/clients/client-s3/src/commands/DeleteBucketIntelligentTieringConfigurationCommand.ts index 9ba533ccc2c8..08c1f46050a9 100644 --- a/clients/client-s3/src/commands/DeleteBucketIntelligentTieringConfigurationCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketIntelligentTieringConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketIntelligentTieringConfigurationRequest } from "../models/models_0"; +import { + de_DeleteBucketIntelligentTieringConfigurationCommand, + se_DeleteBucketIntelligentTieringConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucketIntelligentTieringConfiguration } from "../schemas/schemas"; /** * @public @@ -96,12 +100,16 @@ export class DeleteBucketIntelligentTieringConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucketIntelligentTieringConfiguration", {}) .n("S3Client", "DeleteBucketIntelligentTieringConfigurationCommand") - - .sc(DeleteBucketIntelligentTieringConfiguration) + .f(void 0, void 0) + .ser(se_DeleteBucketIntelligentTieringConfigurationCommand) + .de(de_DeleteBucketIntelligentTieringConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketInventoryConfigurationCommand.ts b/clients/client-s3/src/commands/DeleteBucketInventoryConfigurationCommand.ts index c32318646086..209829ed5ffb 100644 --- a/clients/client-s3/src/commands/DeleteBucketInventoryConfigurationCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketInventoryConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketInventoryConfigurationRequest } from "../models/models_0"; +import { + de_DeleteBucketInventoryConfigurationCommand, + se_DeleteBucketInventoryConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucketInventoryConfiguration } from "../schemas/schemas"; /** * @public @@ -97,12 +101,16 @@ export class DeleteBucketInventoryConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucketInventoryConfiguration", {}) .n("S3Client", "DeleteBucketInventoryConfigurationCommand") - - .sc(DeleteBucketInventoryConfiguration) + .f(void 0, void 0) + .ser(se_DeleteBucketInventoryConfigurationCommand) + .de(de_DeleteBucketInventoryConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketLifecycleCommand.ts b/clients/client-s3/src/commands/DeleteBucketLifecycleCommand.ts index c11c49e51016..3f04f55e87ea 100644 --- a/clients/client-s3/src/commands/DeleteBucketLifecycleCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketLifecycleCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketLifecycleRequest } from "../models/models_0"; +import { de_DeleteBucketLifecycleCommand, se_DeleteBucketLifecycleCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucketLifecycle } from "../schemas/schemas"; /** * @public @@ -147,12 +148,16 @@ export class DeleteBucketLifecycleCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucketLifecycle", {}) .n("S3Client", "DeleteBucketLifecycleCommand") - - .sc(DeleteBucketLifecycle) + .f(void 0, void 0) + .ser(se_DeleteBucketLifecycleCommand) + .de(de_DeleteBucketLifecycleCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketMetadataConfigurationCommand.ts b/clients/client-s3/src/commands/DeleteBucketMetadataConfigurationCommand.ts index b263744b83fb..b2a96f77a740 100644 --- a/clients/client-s3/src/commands/DeleteBucketMetadataConfigurationCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketMetadataConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketMetadataConfigurationRequest } from "../models/models_0"; +import { + de_DeleteBucketMetadataConfigurationCommand, + se_DeleteBucketMetadataConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucketMetadataConfiguration } from "../schemas/schemas"; /** * @public @@ -113,12 +117,16 @@ export class DeleteBucketMetadataConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucketMetadataConfiguration", {}) .n("S3Client", "DeleteBucketMetadataConfigurationCommand") - - .sc(DeleteBucketMetadataConfiguration) + .f(void 0, void 0) + .ser(se_DeleteBucketMetadataConfigurationCommand) + .de(de_DeleteBucketMetadataConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketMetadataTableConfigurationCommand.ts b/clients/client-s3/src/commands/DeleteBucketMetadataTableConfigurationCommand.ts index f8e6f5b08a6e..6a29b6ac695b 100644 --- a/clients/client-s3/src/commands/DeleteBucketMetadataTableConfigurationCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketMetadataTableConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketMetadataTableConfigurationRequest } from "../models/models_0"; +import { + de_DeleteBucketMetadataTableConfigurationCommand, + se_DeleteBucketMetadataTableConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucketMetadataTableConfiguration } from "../schemas/schemas"; /** * @public @@ -114,12 +118,16 @@ export class DeleteBucketMetadataTableConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucketMetadataTableConfiguration", {}) .n("S3Client", "DeleteBucketMetadataTableConfigurationCommand") - - .sc(DeleteBucketMetadataTableConfiguration) + .f(void 0, void 0) + .ser(se_DeleteBucketMetadataTableConfigurationCommand) + .de(de_DeleteBucketMetadataTableConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketMetricsConfigurationCommand.ts b/clients/client-s3/src/commands/DeleteBucketMetricsConfigurationCommand.ts index 485388e3bfa4..09567acfa41b 100644 --- a/clients/client-s3/src/commands/DeleteBucketMetricsConfigurationCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketMetricsConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketMetricsConfigurationRequest } from "../models/models_0"; +import { + de_DeleteBucketMetricsConfigurationCommand, + se_DeleteBucketMetricsConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucketMetricsConfiguration } from "../schemas/schemas"; /** * @public @@ -104,12 +108,16 @@ export class DeleteBucketMetricsConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucketMetricsConfiguration", {}) .n("S3Client", "DeleteBucketMetricsConfigurationCommand") - - .sc(DeleteBucketMetricsConfiguration) + .f(void 0, void 0) + .ser(se_DeleteBucketMetricsConfigurationCommand) + .de(de_DeleteBucketMetricsConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketOwnershipControlsCommand.ts b/clients/client-s3/src/commands/DeleteBucketOwnershipControlsCommand.ts index 90609dca8bac..0afb9223ed9a 100644 --- a/clients/client-s3/src/commands/DeleteBucketOwnershipControlsCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketOwnershipControlsCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketOwnershipControlsRequest } from "../models/models_0"; +import { + de_DeleteBucketOwnershipControlsCommand, + se_DeleteBucketOwnershipControlsCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucketOwnershipControls } from "../schemas/schemas"; /** * @public @@ -90,12 +94,16 @@ export class DeleteBucketOwnershipControlsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucketOwnershipControls", {}) .n("S3Client", "DeleteBucketOwnershipControlsCommand") - - .sc(DeleteBucketOwnershipControls) + .f(void 0, void 0) + .ser(se_DeleteBucketOwnershipControlsCommand) + .de(de_DeleteBucketOwnershipControlsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketPolicyCommand.ts b/clients/client-s3/src/commands/DeleteBucketPolicyCommand.ts index 18723555135d..7d5b8b76d104 100644 --- a/clients/client-s3/src/commands/DeleteBucketPolicyCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketPolicyCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketPolicyRequest } from "../models/models_0"; +import { de_DeleteBucketPolicyCommand, se_DeleteBucketPolicyCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucketPolicy } from "../schemas/schemas"; /** * @public @@ -146,12 +147,16 @@ export class DeleteBucketPolicyCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucketPolicy", {}) .n("S3Client", "DeleteBucketPolicyCommand") - - .sc(DeleteBucketPolicy) + .f(void 0, void 0) + .ser(se_DeleteBucketPolicyCommand) + .de(de_DeleteBucketPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketReplicationCommand.ts b/clients/client-s3/src/commands/DeleteBucketReplicationCommand.ts index 134db8f1ac27..6bfabaed20e6 100644 --- a/clients/client-s3/src/commands/DeleteBucketReplicationCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketReplicationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketReplicationRequest } from "../models/models_0"; +import { de_DeleteBucketReplicationCommand, se_DeleteBucketReplicationCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucketReplication } from "../schemas/schemas"; /** * @public @@ -108,12 +109,16 @@ export class DeleteBucketReplicationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucketReplication", {}) .n("S3Client", "DeleteBucketReplicationCommand") - - .sc(DeleteBucketReplication) + .f(void 0, void 0) + .ser(se_DeleteBucketReplicationCommand) + .de(de_DeleteBucketReplicationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketTaggingCommand.ts b/clients/client-s3/src/commands/DeleteBucketTaggingCommand.ts index 6ee033e71191..350715a5b8d2 100644 --- a/clients/client-s3/src/commands/DeleteBucketTaggingCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketTaggingCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketTaggingRequest } from "../models/models_0"; +import { de_DeleteBucketTaggingCommand, se_DeleteBucketTaggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucketTagging } from "../schemas/schemas"; /** * @public @@ -101,12 +102,16 @@ export class DeleteBucketTaggingCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucketTagging", {}) .n("S3Client", "DeleteBucketTaggingCommand") - - .sc(DeleteBucketTagging) + .f(void 0, void 0) + .ser(se_DeleteBucketTaggingCommand) + .de(de_DeleteBucketTaggingCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteBucketWebsiteCommand.ts b/clients/client-s3/src/commands/DeleteBucketWebsiteCommand.ts index 96a1fe0900ff..6ea07303ed6f 100644 --- a/clients/client-s3/src/commands/DeleteBucketWebsiteCommand.ts +++ b/clients/client-s3/src/commands/DeleteBucketWebsiteCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteBucketWebsiteRequest } from "../models/models_0"; +import { de_DeleteBucketWebsiteCommand, se_DeleteBucketWebsiteCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteBucketWebsite } from "../schemas/schemas"; /** * @public @@ -108,12 +109,16 @@ export class DeleteBucketWebsiteCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeleteBucketWebsite", {}) .n("S3Client", "DeleteBucketWebsiteCommand") - - .sc(DeleteBucketWebsite) + .f(void 0, void 0) + .ser(se_DeleteBucketWebsiteCommand) + .de(de_DeleteBucketWebsiteCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteObjectCommand.ts b/clients/client-s3/src/commands/DeleteObjectCommand.ts index 14c0288b2801..3f2353bedd03 100644 --- a/clients/client-s3/src/commands/DeleteObjectCommand.ts +++ b/clients/client-s3/src/commands/DeleteObjectCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteObjectOutput, DeleteObjectRequest } from "../models/models_0"; +import { de_DeleteObjectCommand, se_DeleteObjectCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteObject } from "../schemas/schemas"; /** * @public @@ -224,12 +225,17 @@ export class DeleteObjectCommand extends $Command Key: { type: "contextParams", name: "Key" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "DeleteObject", {}) .n("S3Client", "DeleteObjectCommand") - - .sc(DeleteObject) + .f(void 0, void 0) + .ser(se_DeleteObjectCommand) + .de(de_DeleteObjectCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts b/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts index d7d347388c49..a7adb63964c0 100644 --- a/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts +++ b/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteObjectTaggingOutput, DeleteObjectTaggingRequest } from "../models/models_0"; +import { de_DeleteObjectTaggingCommand, se_DeleteObjectTaggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteObjectTagging } from "../schemas/schemas"; /** * @public @@ -129,12 +130,17 @@ export class DeleteObjectTaggingCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "DeleteObjectTagging", {}) .n("S3Client", "DeleteObjectTaggingCommand") - - .sc(DeleteObjectTagging) + .f(void 0, void 0) + .ser(se_DeleteObjectTaggingCommand) + .de(de_DeleteObjectTaggingCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeleteObjectsCommand.ts b/clients/client-s3/src/commands/DeleteObjectsCommand.ts index 41c45c2525e5..e1f95b0aa823 100644 --- a/clients/client-s3/src/commands/DeleteObjectsCommand.ts +++ b/clients/client-s3/src/commands/DeleteObjectsCommand.ts @@ -2,13 +2,14 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { DeleteObjectsOutput, DeleteObjectsRequest } from "../models/models_0"; +import { de_DeleteObjectsCommand, se_DeleteObjectsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeleteObjects } from "../schemas/schemas"; /** * @public @@ -309,6 +310,7 @@ export class DeleteObjectsCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -319,8 +321,9 @@ export class DeleteObjectsCommand extends $Command }) .s("AmazonS3", "DeleteObjects", {}) .n("S3Client", "DeleteObjectsCommand") - - .sc(DeleteObjects) + .f(void 0, void 0) + .ser(se_DeleteObjectsCommand) + .de(de_DeleteObjectsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/DeletePublicAccessBlockCommand.ts b/clients/client-s3/src/commands/DeletePublicAccessBlockCommand.ts index c384237c0008..c0a79a8da245 100644 --- a/clients/client-s3/src/commands/DeletePublicAccessBlockCommand.ts +++ b/clients/client-s3/src/commands/DeletePublicAccessBlockCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { DeletePublicAccessBlockRequest } from "../models/models_0"; +import { de_DeletePublicAccessBlockCommand, se_DeletePublicAccessBlockCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { DeletePublicAccessBlock } from "../schemas/schemas"; /** * @public @@ -100,12 +101,16 @@ export class DeletePublicAccessBlockCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "DeletePublicAccessBlock", {}) .n("S3Client", "DeletePublicAccessBlockCommand") - - .sc(DeletePublicAccessBlock) + .f(void 0, void 0) + .ser(se_DeletePublicAccessBlockCommand) + .de(de_DeletePublicAccessBlockCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketAccelerateConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketAccelerateConfigurationCommand.ts index f393374f87d4..b1f01fc94111 100644 --- a/clients/client-s3/src/commands/GetBucketAccelerateConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketAccelerateConfigurationCommand.ts @@ -1,13 +1,17 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketAccelerateConfigurationOutput, GetBucketAccelerateConfigurationRequest } from "../models/models_0"; +import { + de_GetBucketAccelerateConfigurationCommand, + se_GetBucketAccelerateConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketAccelerateConfiguration } from "../schemas/schemas"; /** * @public @@ -102,12 +106,17 @@ export class GetBucketAccelerateConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketAccelerateConfiguration", {}) .n("S3Client", "GetBucketAccelerateConfigurationCommand") - - .sc(GetBucketAccelerateConfiguration) + .f(void 0, void 0) + .ser(se_GetBucketAccelerateConfigurationCommand) + .de(de_GetBucketAccelerateConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketAclCommand.ts b/clients/client-s3/src/commands/GetBucketAclCommand.ts index f64b9863798b..5fce672e3a42 100644 --- a/clients/client-s3/src/commands/GetBucketAclCommand.ts +++ b/clients/client-s3/src/commands/GetBucketAclCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketAclOutput, GetBucketAclRequest } from "../models/models_0"; +import { de_GetBucketAclCommand, se_GetBucketAclCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketAcl } from "../schemas/schemas"; /** * @public @@ -121,12 +122,17 @@ export class GetBucketAclCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketAcl", {}) .n("S3Client", "GetBucketAclCommand") - - .sc(GetBucketAcl) + .f(void 0, void 0) + .ser(se_GetBucketAclCommand) + .de(de_GetBucketAclCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketAnalyticsConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketAnalyticsConfigurationCommand.ts index da55cedd3d1f..f47aa8e85194 100644 --- a/clients/client-s3/src/commands/GetBucketAnalyticsConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketAnalyticsConfigurationCommand.ts @@ -1,13 +1,17 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketAnalyticsConfigurationOutput, GetBucketAnalyticsConfigurationRequest } from "../models/models_0"; +import { + de_GetBucketAnalyticsConfigurationCommand, + se_GetBucketAnalyticsConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketAnalyticsConfiguration } from "../schemas/schemas"; /** * @public @@ -135,12 +139,17 @@ export class GetBucketAnalyticsConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketAnalyticsConfiguration", {}) .n("S3Client", "GetBucketAnalyticsConfigurationCommand") - - .sc(GetBucketAnalyticsConfiguration) + .f(void 0, void 0) + .ser(se_GetBucketAnalyticsConfigurationCommand) + .de(de_GetBucketAnalyticsConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketCorsCommand.ts b/clients/client-s3/src/commands/GetBucketCorsCommand.ts index 6750903b6f33..b02c2a5846a5 100644 --- a/clients/client-s3/src/commands/GetBucketCorsCommand.ts +++ b/clients/client-s3/src/commands/GetBucketCorsCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketCorsOutput, GetBucketCorsRequest } from "../models/models_0"; +import { de_GetBucketCorsCommand, se_GetBucketCorsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketCors } from "../schemas/schemas"; /** * @public @@ -143,12 +144,17 @@ export class GetBucketCorsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketCors", {}) .n("S3Client", "GetBucketCorsCommand") - - .sc(GetBucketCors) + .f(void 0, void 0) + .ser(se_GetBucketCorsCommand) + .de(de_GetBucketCorsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketEncryptionCommand.ts b/clients/client-s3/src/commands/GetBucketEncryptionCommand.ts index 4359eab00d2f..ca8bab5e5b3d 100644 --- a/clients/client-s3/src/commands/GetBucketEncryptionCommand.ts +++ b/clients/client-s3/src/commands/GetBucketEncryptionCommand.ts @@ -1,13 +1,18 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { GetBucketEncryptionOutput, GetBucketEncryptionRequest } from "../models/models_0"; +import { + GetBucketEncryptionOutput, + GetBucketEncryptionOutputFilterSensitiveLog, + GetBucketEncryptionRequest, +} from "../models/models_0"; +import { de_GetBucketEncryptionCommand, se_GetBucketEncryptionCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketEncryption } from "../schemas/schemas"; /** * @public @@ -141,12 +146,17 @@ export class GetBucketEncryptionCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketEncryption", {}) .n("S3Client", "GetBucketEncryptionCommand") - - .sc(GetBucketEncryption) + .f(void 0, GetBucketEncryptionOutputFilterSensitiveLog) + .ser(se_GetBucketEncryptionCommand) + .de(de_GetBucketEncryptionCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketIntelligentTieringConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketIntelligentTieringConfigurationCommand.ts index 766cea434934..f2ba03957278 100644 --- a/clients/client-s3/src/commands/GetBucketIntelligentTieringConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketIntelligentTieringConfigurationCommand.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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"; @@ -9,8 +10,11 @@ import { GetBucketIntelligentTieringConfigurationOutput, GetBucketIntelligentTieringConfigurationRequest, } from "../models/models_0"; +import { + de_GetBucketIntelligentTieringConfigurationCommand, + se_GetBucketIntelligentTieringConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketIntelligentTieringConfiguration } from "../schemas/schemas"; /** * @public @@ -129,12 +133,17 @@ export class GetBucketIntelligentTieringConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketIntelligentTieringConfiguration", {}) .n("S3Client", "GetBucketIntelligentTieringConfigurationCommand") - - .sc(GetBucketIntelligentTieringConfiguration) + .f(void 0, void 0) + .ser(se_GetBucketIntelligentTieringConfigurationCommand) + .de(de_GetBucketIntelligentTieringConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketInventoryConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketInventoryConfigurationCommand.ts index 24b021e37283..9c96d0091314 100644 --- a/clients/client-s3/src/commands/GetBucketInventoryConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketInventoryConfigurationCommand.ts @@ -1,13 +1,21 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { GetBucketInventoryConfigurationOutput, GetBucketInventoryConfigurationRequest } from "../models/models_0"; +import { + GetBucketInventoryConfigurationOutput, + GetBucketInventoryConfigurationOutputFilterSensitiveLog, + GetBucketInventoryConfigurationRequest, +} from "../models/models_0"; +import { + de_GetBucketInventoryConfigurationCommand, + se_GetBucketInventoryConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketInventoryConfiguration } from "../schemas/schemas"; /** * @public @@ -130,12 +138,17 @@ export class GetBucketInventoryConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketInventoryConfiguration", {}) .n("S3Client", "GetBucketInventoryConfigurationCommand") - - .sc(GetBucketInventoryConfiguration) + .f(void 0, GetBucketInventoryConfigurationOutputFilterSensitiveLog) + .ser(se_GetBucketInventoryConfigurationCommand) + .de(de_GetBucketInventoryConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketLifecycleConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketLifecycleConfigurationCommand.ts index ac9c12f2087a..b7a2b4514b08 100644 --- a/clients/client-s3/src/commands/GetBucketLifecycleConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketLifecycleConfigurationCommand.ts @@ -1,13 +1,17 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketLifecycleConfigurationOutput, GetBucketLifecycleConfigurationRequest } from "../models/models_0"; +import { + de_GetBucketLifecycleConfigurationCommand, + se_GetBucketLifecycleConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketLifecycleConfiguration } from "../schemas/schemas"; /** * @public @@ -247,12 +251,17 @@ export class GetBucketLifecycleConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketLifecycleConfiguration", {}) .n("S3Client", "GetBucketLifecycleConfigurationCommand") - - .sc(GetBucketLifecycleConfiguration) + .f(void 0, void 0) + .ser(se_GetBucketLifecycleConfigurationCommand) + .de(de_GetBucketLifecycleConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketLocationCommand.ts b/clients/client-s3/src/commands/GetBucketLocationCommand.ts index 88dbd8d71666..e4a535c0c2a6 100644 --- a/clients/client-s3/src/commands/GetBucketLocationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketLocationCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketLocationOutput, GetBucketLocationRequest } from "../models/models_0"; +import { de_GetBucketLocationCommand, se_GetBucketLocationCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketLocation } from "../schemas/schemas"; /** * @public @@ -115,12 +116,17 @@ export class GetBucketLocationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketLocation", {}) .n("S3Client", "GetBucketLocationCommand") - - .sc(GetBucketLocation) + .f(void 0, void 0) + .ser(se_GetBucketLocationCommand) + .de(de_GetBucketLocationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketLoggingCommand.ts b/clients/client-s3/src/commands/GetBucketLoggingCommand.ts index a12545ce2617..3fbdcc045a98 100644 --- a/clients/client-s3/src/commands/GetBucketLoggingCommand.ts +++ b/clients/client-s3/src/commands/GetBucketLoggingCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketLoggingOutput, GetBucketLoggingRequest } from "../models/models_0"; +import { de_GetBucketLoggingCommand, se_GetBucketLoggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketLogging } from "../schemas/schemas"; /** * @public @@ -118,12 +119,17 @@ export class GetBucketLoggingCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketLogging", {}) .n("S3Client", "GetBucketLoggingCommand") - - .sc(GetBucketLogging) + .f(void 0, void 0) + .ser(se_GetBucketLoggingCommand) + .de(de_GetBucketLoggingCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketMetadataConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketMetadataConfigurationCommand.ts index 5c1c429e1c26..cffd79253ce1 100644 --- a/clients/client-s3/src/commands/GetBucketMetadataConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketMetadataConfigurationCommand.ts @@ -1,13 +1,17 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketMetadataConfigurationOutput, GetBucketMetadataConfigurationRequest } from "../models/models_0"; +import { + de_GetBucketMetadataConfigurationCommand, + se_GetBucketMetadataConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketMetadataConfiguration } from "../schemas/schemas"; /** * @public @@ -148,12 +152,17 @@ export class GetBucketMetadataConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketMetadataConfiguration", {}) .n("S3Client", "GetBucketMetadataConfigurationCommand") - - .sc(GetBucketMetadataConfiguration) + .f(void 0, void 0) + .ser(se_GetBucketMetadataConfigurationCommand) + .de(de_GetBucketMetadataConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketMetadataTableConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketMetadataTableConfigurationCommand.ts index 2b9a9540e13f..c7677719fcbc 100644 --- a/clients/client-s3/src/commands/GetBucketMetadataTableConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketMetadataTableConfigurationCommand.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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"; @@ -9,8 +10,11 @@ import { GetBucketMetadataTableConfigurationOutput, GetBucketMetadataTableConfigurationRequest, } from "../models/models_0"; +import { + de_GetBucketMetadataTableConfigurationCommand, + se_GetBucketMetadataTableConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketMetadataTableConfiguration } from "../schemas/schemas"; /** * @public @@ -134,12 +138,17 @@ export class GetBucketMetadataTableConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketMetadataTableConfiguration", {}) .n("S3Client", "GetBucketMetadataTableConfigurationCommand") - - .sc(GetBucketMetadataTableConfiguration) + .f(void 0, void 0) + .ser(se_GetBucketMetadataTableConfigurationCommand) + .de(de_GetBucketMetadataTableConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketMetricsConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketMetricsConfigurationCommand.ts index ff783e4e7620..935ea0c1752c 100644 --- a/clients/client-s3/src/commands/GetBucketMetricsConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketMetricsConfigurationCommand.ts @@ -1,13 +1,17 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketMetricsConfigurationOutput, GetBucketMetricsConfigurationRequest } from "../models/models_0"; +import { + de_GetBucketMetricsConfigurationCommand, + se_GetBucketMetricsConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketMetricsConfiguration } from "../schemas/schemas"; /** * @public @@ -130,12 +134,17 @@ export class GetBucketMetricsConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketMetricsConfiguration", {}) .n("S3Client", "GetBucketMetricsConfigurationCommand") - - .sc(GetBucketMetricsConfiguration) + .f(void 0, void 0) + .ser(se_GetBucketMetricsConfigurationCommand) + .de(de_GetBucketMetricsConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketNotificationConfigurationCommand.ts b/clients/client-s3/src/commands/GetBucketNotificationConfigurationCommand.ts index 9f66a1b269ff..db4d94188021 100644 --- a/clients/client-s3/src/commands/GetBucketNotificationConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketNotificationConfigurationCommand.ts @@ -1,13 +1,17 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketNotificationConfigurationRequest, NotificationConfiguration } from "../models/models_0"; +import { + de_GetBucketNotificationConfigurationCommand, + se_GetBucketNotificationConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketNotificationConfiguration } from "../schemas/schemas"; /** * @public @@ -154,12 +158,17 @@ export class GetBucketNotificationConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketNotificationConfiguration", {}) .n("S3Client", "GetBucketNotificationConfigurationCommand") - - .sc(GetBucketNotificationConfiguration) + .f(void 0, void 0) + .ser(se_GetBucketNotificationConfigurationCommand) + .de(de_GetBucketNotificationConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketOwnershipControlsCommand.ts b/clients/client-s3/src/commands/GetBucketOwnershipControlsCommand.ts index 8efd3b067833..a03ce93ed5d1 100644 --- a/clients/client-s3/src/commands/GetBucketOwnershipControlsCommand.ts +++ b/clients/client-s3/src/commands/GetBucketOwnershipControlsCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketOwnershipControlsOutput, GetBucketOwnershipControlsRequest } from "../models/models_0"; +import { de_GetBucketOwnershipControlsCommand, se_GetBucketOwnershipControlsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketOwnershipControls } from "../schemas/schemas"; /** * @public @@ -113,12 +114,17 @@ export class GetBucketOwnershipControlsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketOwnershipControls", {}) .n("S3Client", "GetBucketOwnershipControlsCommand") - - .sc(GetBucketOwnershipControls) + .f(void 0, void 0) + .ser(se_GetBucketOwnershipControlsCommand) + .de(de_GetBucketOwnershipControlsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketPolicyCommand.ts b/clients/client-s3/src/commands/GetBucketPolicyCommand.ts index 95a973197799..8c93362dc9ba 100644 --- a/clients/client-s3/src/commands/GetBucketPolicyCommand.ts +++ b/clients/client-s3/src/commands/GetBucketPolicyCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketPolicyOutput, GetBucketPolicyRequest } from "../models/models_0"; +import { de_GetBucketPolicyCommand, se_GetBucketPolicyCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketPolicy } from "../schemas/schemas"; /** * @public @@ -154,12 +155,17 @@ export class GetBucketPolicyCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketPolicy", {}) .n("S3Client", "GetBucketPolicyCommand") - - .sc(GetBucketPolicy) + .f(void 0, void 0) + .ser(se_GetBucketPolicyCommand) + .de(de_GetBucketPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketPolicyStatusCommand.ts b/clients/client-s3/src/commands/GetBucketPolicyStatusCommand.ts index 221cab58426b..5de3a74a3291 100644 --- a/clients/client-s3/src/commands/GetBucketPolicyStatusCommand.ts +++ b/clients/client-s3/src/commands/GetBucketPolicyStatusCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketPolicyStatusOutput, GetBucketPolicyStatusRequest } from "../models/models_0"; +import { de_GetBucketPolicyStatusCommand, se_GetBucketPolicyStatusCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketPolicyStatus } from "../schemas/schemas"; /** * @public @@ -105,12 +106,17 @@ export class GetBucketPolicyStatusCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketPolicyStatus", {}) .n("S3Client", "GetBucketPolicyStatusCommand") - - .sc(GetBucketPolicyStatus) + .f(void 0, void 0) + .ser(se_GetBucketPolicyStatusCommand) + .de(de_GetBucketPolicyStatusCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketReplicationCommand.ts b/clients/client-s3/src/commands/GetBucketReplicationCommand.ts index 0a6841bfd8bd..0b6c85725407 100644 --- a/clients/client-s3/src/commands/GetBucketReplicationCommand.ts +++ b/clients/client-s3/src/commands/GetBucketReplicationCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketReplicationOutput, GetBucketReplicationRequest } from "../models/models_0"; +import { de_GetBucketReplicationCommand, se_GetBucketReplicationCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketReplication } from "../schemas/schemas"; /** * @public @@ -194,12 +195,17 @@ export class GetBucketReplicationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketReplication", {}) .n("S3Client", "GetBucketReplicationCommand") - - .sc(GetBucketReplication) + .f(void 0, void 0) + .ser(se_GetBucketReplicationCommand) + .de(de_GetBucketReplicationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketRequestPaymentCommand.ts b/clients/client-s3/src/commands/GetBucketRequestPaymentCommand.ts index 5a624ee73152..0c8b4bba2236 100644 --- a/clients/client-s3/src/commands/GetBucketRequestPaymentCommand.ts +++ b/clients/client-s3/src/commands/GetBucketRequestPaymentCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketRequestPaymentOutput, GetBucketRequestPaymentRequest } from "../models/models_0"; +import { de_GetBucketRequestPaymentCommand, se_GetBucketRequestPaymentCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketRequestPayment } from "../schemas/schemas"; /** * @public @@ -100,12 +101,17 @@ export class GetBucketRequestPaymentCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketRequestPayment", {}) .n("S3Client", "GetBucketRequestPaymentCommand") - - .sc(GetBucketRequestPayment) + .f(void 0, void 0) + .ser(se_GetBucketRequestPaymentCommand) + .de(de_GetBucketRequestPaymentCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketTaggingCommand.ts b/clients/client-s3/src/commands/GetBucketTaggingCommand.ts index c9e8c665811a..7ec2ed37fa13 100644 --- a/clients/client-s3/src/commands/GetBucketTaggingCommand.ts +++ b/clients/client-s3/src/commands/GetBucketTaggingCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketTaggingOutput, GetBucketTaggingRequest } from "../models/models_0"; +import { de_GetBucketTaggingCommand, se_GetBucketTaggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketTagging } from "../schemas/schemas"; /** * @public @@ -133,12 +134,17 @@ export class GetBucketTaggingCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketTagging", {}) .n("S3Client", "GetBucketTaggingCommand") - - .sc(GetBucketTagging) + .f(void 0, void 0) + .ser(se_GetBucketTaggingCommand) + .de(de_GetBucketTaggingCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketVersioningCommand.ts b/clients/client-s3/src/commands/GetBucketVersioningCommand.ts index 2ce75050ec1c..9c1605dd2946 100644 --- a/clients/client-s3/src/commands/GetBucketVersioningCommand.ts +++ b/clients/client-s3/src/commands/GetBucketVersioningCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketVersioningOutput, GetBucketVersioningRequest } from "../models/models_0"; +import { de_GetBucketVersioningCommand, se_GetBucketVersioningCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketVersioning } from "../schemas/schemas"; /** * @public @@ -115,12 +116,17 @@ export class GetBucketVersioningCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketVersioning", {}) .n("S3Client", "GetBucketVersioningCommand") - - .sc(GetBucketVersioning) + .f(void 0, void 0) + .ser(se_GetBucketVersioningCommand) + .de(de_GetBucketVersioningCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetBucketWebsiteCommand.ts b/clients/client-s3/src/commands/GetBucketWebsiteCommand.ts index 76a20fa00384..a235cfd6d38b 100644 --- a/clients/client-s3/src/commands/GetBucketWebsiteCommand.ts +++ b/clients/client-s3/src/commands/GetBucketWebsiteCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetBucketWebsiteOutput, GetBucketWebsiteRequest } from "../models/models_0"; +import { de_GetBucketWebsiteCommand, se_GetBucketWebsiteCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetBucketWebsite } from "../schemas/schemas"; /** * @public @@ -138,12 +139,17 @@ export class GetBucketWebsiteCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetBucketWebsite", {}) .n("S3Client", "GetBucketWebsiteCommand") - - .sc(GetBucketWebsite) + .f(void 0, void 0) + .ser(se_GetBucketWebsiteCommand) + .de(de_GetBucketWebsiteCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectAclCommand.ts b/clients/client-s3/src/commands/GetObjectAclCommand.ts index f6f8d6e7d916..3f845cd49633 100644 --- a/clients/client-s3/src/commands/GetObjectAclCommand.ts +++ b/clients/client-s3/src/commands/GetObjectAclCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetObjectAclOutput, GetObjectAclRequest } from "../models/models_0"; +import { de_GetObjectAclCommand, se_GetObjectAclCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetObjectAcl } from "../schemas/schemas"; /** * @public @@ -187,12 +188,17 @@ export class GetObjectAclCommand extends $Command Key: { type: "contextParams", name: "Key" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetObjectAcl", {}) .n("S3Client", "GetObjectAclCommand") - - .sc(GetObjectAcl) + .f(void 0, void 0) + .ser(se_GetObjectAclCommand) + .de(de_GetObjectAclCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectAttributesCommand.ts b/clients/client-s3/src/commands/GetObjectAttributesCommand.ts index bf1438a734d4..74fd8101092d 100644 --- a/clients/client-s3/src/commands/GetObjectAttributesCommand.ts +++ b/clients/client-s3/src/commands/GetObjectAttributesCommand.ts @@ -2,13 +2,18 @@ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { GetObjectAttributesOutput, GetObjectAttributesRequest } from "../models/models_0"; +import { + GetObjectAttributesOutput, + GetObjectAttributesRequest, + GetObjectAttributesRequestFilterSensitiveLog, +} from "../models/models_0"; +import { de_GetObjectAttributesCommand, se_GetObjectAttributesCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetObjectAttributes } from "../schemas/schemas"; /** * @public @@ -324,6 +329,7 @@ export class GetObjectAttributesCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -331,8 +337,9 @@ export class GetObjectAttributesCommand extends $Command }) .s("AmazonS3", "GetObjectAttributes", {}) .n("S3Client", "GetObjectAttributesCommand") - - .sc(GetObjectAttributes) + .f(GetObjectAttributesRequestFilterSensitiveLog, void 0) + .ser(se_GetObjectAttributesCommand) + .de(de_GetObjectAttributesCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectCommand.ts b/clients/client-s3/src/commands/GetObjectCommand.ts index 0c79f17eebd8..07a34b82a6ab 100644 --- a/clients/client-s3/src/commands/GetObjectCommand.ts +++ b/clients/client-s3/src/commands/GetObjectCommand.ts @@ -3,13 +3,19 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksu import { getS3ExpiresMiddlewarePlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer, StreamingBlobPayloadOutputTypes } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { GetObjectOutput, GetObjectRequest } from "../models/models_0"; +import { + GetObjectOutput, + GetObjectOutputFilterSensitiveLog, + GetObjectRequest, + GetObjectRequestFilterSensitiveLog, +} from "../models/models_0"; +import { de_GetObjectCommand, se_GetObjectCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetObject } from "../schemas/schemas"; /** * @public @@ -372,6 +378,7 @@ export class GetObjectCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestChecksumRequired: false, @@ -384,8 +391,9 @@ export class GetObjectCommand extends $Command }) .s("AmazonS3", "GetObject", {}) .n("S3Client", "GetObjectCommand") - - .sc(GetObject) + .f(GetObjectRequestFilterSensitiveLog, GetObjectOutputFilterSensitiveLog) + .ser(se_GetObjectCommand) + .de(de_GetObjectCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectLegalHoldCommand.ts b/clients/client-s3/src/commands/GetObjectLegalHoldCommand.ts index a962dc424eb9..691ec0030616 100644 --- a/clients/client-s3/src/commands/GetObjectLegalHoldCommand.ts +++ b/clients/client-s3/src/commands/GetObjectLegalHoldCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetObjectLegalHoldOutput, GetObjectLegalHoldRequest } from "../models/models_0"; +import { de_GetObjectLegalHoldCommand, se_GetObjectLegalHoldCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetObjectLegalHold } from "../schemas/schemas"; /** * @public @@ -89,12 +90,17 @@ export class GetObjectLegalHoldCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetObjectLegalHold", {}) .n("S3Client", "GetObjectLegalHoldCommand") - - .sc(GetObjectLegalHold) + .f(void 0, void 0) + .ser(se_GetObjectLegalHoldCommand) + .de(de_GetObjectLegalHoldCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectLockConfigurationCommand.ts b/clients/client-s3/src/commands/GetObjectLockConfigurationCommand.ts index b5a796760786..6b1871b8ea5b 100644 --- a/clients/client-s3/src/commands/GetObjectLockConfigurationCommand.ts +++ b/clients/client-s3/src/commands/GetObjectLockConfigurationCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetObjectLockConfigurationOutput, GetObjectLockConfigurationRequest } from "../models/models_0"; +import { de_GetObjectLockConfigurationCommand, se_GetObjectLockConfigurationCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetObjectLockConfiguration } from "../schemas/schemas"; /** * @public @@ -94,12 +95,17 @@ export class GetObjectLockConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetObjectLockConfiguration", {}) .n("S3Client", "GetObjectLockConfigurationCommand") - - .sc(GetObjectLockConfiguration) + .f(void 0, void 0) + .ser(se_GetObjectLockConfigurationCommand) + .de(de_GetObjectLockConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectRetentionCommand.ts b/clients/client-s3/src/commands/GetObjectRetentionCommand.ts index 7e73dbd9d944..f73c2fbd0a6f 100644 --- a/clients/client-s3/src/commands/GetObjectRetentionCommand.ts +++ b/clients/client-s3/src/commands/GetObjectRetentionCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetObjectRetentionOutput, GetObjectRetentionRequest } from "../models/models_0"; +import { de_GetObjectRetentionCommand, se_GetObjectRetentionCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetObjectRetention } from "../schemas/schemas"; /** * @public @@ -90,12 +91,17 @@ export class GetObjectRetentionCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetObjectRetention", {}) .n("S3Client", "GetObjectRetentionCommand") - - .sc(GetObjectRetention) + .f(void 0, void 0) + .ser(se_GetObjectRetentionCommand) + .de(de_GetObjectRetentionCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectTaggingCommand.ts b/clients/client-s3/src/commands/GetObjectTaggingCommand.ts index 6881d16e71ba..673b21bf6a01 100644 --- a/clients/client-s3/src/commands/GetObjectTaggingCommand.ts +++ b/clients/client-s3/src/commands/GetObjectTaggingCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetObjectTaggingOutput, GetObjectTaggingRequest } from "../models/models_0"; +import { de_GetObjectTaggingCommand, se_GetObjectTaggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetObjectTagging } from "../schemas/schemas"; /** * @public @@ -159,12 +160,17 @@ export class GetObjectTaggingCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetObjectTagging", {}) .n("S3Client", "GetObjectTaggingCommand") - - .sc(GetObjectTagging) + .f(void 0, void 0) + .ser(se_GetObjectTaggingCommand) + .de(de_GetObjectTaggingCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetObjectTorrentCommand.ts b/clients/client-s3/src/commands/GetObjectTorrentCommand.ts index 15b8b9729c96..53c8649e9312 100644 --- a/clients/client-s3/src/commands/GetObjectTorrentCommand.ts +++ b/clients/client-s3/src/commands/GetObjectTorrentCommand.ts @@ -1,12 +1,17 @@ // 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, StreamingBlobPayloadOutputTypes } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { GetObjectTorrentOutput, GetObjectTorrentRequest } from "../models/models_0"; +import { + GetObjectTorrentOutput, + GetObjectTorrentOutputFilterSensitiveLog, + GetObjectTorrentRequest, +} from "../models/models_0"; +import { de_GetObjectTorrentCommand, se_GetObjectTorrentCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetObjectTorrent } from "../schemas/schemas"; /** * @public @@ -118,12 +123,16 @@ export class GetObjectTorrentCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "GetObjectTorrent", {}) .n("S3Client", "GetObjectTorrentCommand") - - .sc(GetObjectTorrent) + .f(void 0, GetObjectTorrentOutputFilterSensitiveLog) + .ser(se_GetObjectTorrentCommand) + .de(de_GetObjectTorrentCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/GetPublicAccessBlockCommand.ts b/clients/client-s3/src/commands/GetPublicAccessBlockCommand.ts index 27cb7a13eb16..bd037f390e47 100644 --- a/clients/client-s3/src/commands/GetPublicAccessBlockCommand.ts +++ b/clients/client-s3/src/commands/GetPublicAccessBlockCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { GetPublicAccessBlockOutput, GetPublicAccessBlockRequest } from "../models/models_0"; +import { de_GetPublicAccessBlockCommand, se_GetPublicAccessBlockCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { GetPublicAccessBlock } from "../schemas/schemas"; /** * @public @@ -115,12 +116,17 @@ export class GetPublicAccessBlockCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "GetPublicAccessBlock", {}) .n("S3Client", "GetPublicAccessBlockCommand") - - .sc(GetPublicAccessBlock) + .f(void 0, void 0) + .ser(se_GetPublicAccessBlockCommand) + .de(de_GetPublicAccessBlockCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/HeadBucketCommand.ts b/clients/client-s3/src/commands/HeadBucketCommand.ts index 36bdb3c39f7b..b03aa20ce71e 100644 --- a/clients/client-s3/src/commands/HeadBucketCommand.ts +++ b/clients/client-s3/src/commands/HeadBucketCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { HeadBucketOutput, HeadBucketRequest } from "../models/models_0"; +import { de_HeadBucketCommand, se_HeadBucketCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { HeadBucket } from "../schemas/schemas"; /** * @public @@ -158,12 +159,17 @@ export class HeadBucketCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "HeadBucket", {}) .n("S3Client", "HeadBucketCommand") - - .sc(HeadBucket) + .f(void 0, void 0) + .ser(se_HeadBucketCommand) + .de(de_HeadBucketCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/HeadObjectCommand.ts b/clients/client-s3/src/commands/HeadObjectCommand.ts index 3a38c124f068..5c3e3c51c02d 100644 --- a/clients/client-s3/src/commands/HeadObjectCommand.ts +++ b/clients/client-s3/src/commands/HeadObjectCommand.ts @@ -2,13 +2,19 @@ import { getS3ExpiresMiddlewarePlugin, getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { HeadObjectOutput, HeadObjectRequest } from "../models/models_0"; +import { + HeadObjectOutput, + HeadObjectOutputFilterSensitiveLog, + HeadObjectRequest, + HeadObjectRequestFilterSensitiveLog, +} from "../models/models_0"; +import { de_HeadObjectCommand, se_HeadObjectCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { HeadObject } from "../schemas/schemas"; /** * @public @@ -309,6 +315,7 @@ export class HeadObjectCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -317,8 +324,9 @@ export class HeadObjectCommand extends $Command }) .s("AmazonS3", "HeadObject", {}) .n("S3Client", "HeadObjectCommand") - - .sc(HeadObject) + .f(HeadObjectRequestFilterSensitiveLog, HeadObjectOutputFilterSensitiveLog) + .ser(se_HeadObjectCommand) + .de(de_HeadObjectCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListBucketAnalyticsConfigurationsCommand.ts b/clients/client-s3/src/commands/ListBucketAnalyticsConfigurationsCommand.ts index b45eb759ccf8..98ba7dedc5f7 100644 --- a/clients/client-s3/src/commands/ListBucketAnalyticsConfigurationsCommand.ts +++ b/clients/client-s3/src/commands/ListBucketAnalyticsConfigurationsCommand.ts @@ -1,13 +1,17 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListBucketAnalyticsConfigurationsOutput, ListBucketAnalyticsConfigurationsRequest } from "../models/models_0"; +import { + de_ListBucketAnalyticsConfigurationsCommand, + se_ListBucketAnalyticsConfigurationsCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { ListBucketAnalyticsConfigurations } from "../schemas/schemas"; /** * @public @@ -147,12 +151,17 @@ export class ListBucketAnalyticsConfigurationsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "ListBucketAnalyticsConfigurations", {}) .n("S3Client", "ListBucketAnalyticsConfigurationsCommand") - - .sc(ListBucketAnalyticsConfigurations) + .f(void 0, void 0) + .ser(se_ListBucketAnalyticsConfigurationsCommand) + .de(de_ListBucketAnalyticsConfigurationsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListBucketIntelligentTieringConfigurationsCommand.ts b/clients/client-s3/src/commands/ListBucketIntelligentTieringConfigurationsCommand.ts index ae76a767ecdf..a42db557a3af 100644 --- a/clients/client-s3/src/commands/ListBucketIntelligentTieringConfigurationsCommand.ts +++ b/clients/client-s3/src/commands/ListBucketIntelligentTieringConfigurationsCommand.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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"; @@ -9,8 +10,11 @@ import { ListBucketIntelligentTieringConfigurationsOutput, ListBucketIntelligentTieringConfigurationsRequest, } from "../models/models_0"; +import { + de_ListBucketIntelligentTieringConfigurationsCommand, + se_ListBucketIntelligentTieringConfigurationsCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { ListBucketIntelligentTieringConfigurations } from "../schemas/schemas"; /** * @public @@ -134,12 +138,17 @@ export class ListBucketIntelligentTieringConfigurationsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "ListBucketIntelligentTieringConfigurations", {}) .n("S3Client", "ListBucketIntelligentTieringConfigurationsCommand") - - .sc(ListBucketIntelligentTieringConfigurations) + .f(void 0, void 0) + .ser(se_ListBucketIntelligentTieringConfigurationsCommand) + .de(de_ListBucketIntelligentTieringConfigurationsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListBucketInventoryConfigurationsCommand.ts b/clients/client-s3/src/commands/ListBucketInventoryConfigurationsCommand.ts index bcb78761f0ad..258f639076ec 100644 --- a/clients/client-s3/src/commands/ListBucketInventoryConfigurationsCommand.ts +++ b/clients/client-s3/src/commands/ListBucketInventoryConfigurationsCommand.ts @@ -1,13 +1,21 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { ListBucketInventoryConfigurationsOutput, ListBucketInventoryConfigurationsRequest } from "../models/models_0"; +import { + ListBucketInventoryConfigurationsOutput, + ListBucketInventoryConfigurationsOutputFilterSensitiveLog, + ListBucketInventoryConfigurationsRequest, +} from "../models/models_0"; +import { + de_ListBucketInventoryConfigurationsCommand, + se_ListBucketInventoryConfigurationsCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { ListBucketInventoryConfigurations } from "../schemas/schemas"; /** * @public @@ -142,12 +150,17 @@ export class ListBucketInventoryConfigurationsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "ListBucketInventoryConfigurations", {}) .n("S3Client", "ListBucketInventoryConfigurationsCommand") - - .sc(ListBucketInventoryConfigurations) + .f(void 0, ListBucketInventoryConfigurationsOutputFilterSensitiveLog) + .ser(se_ListBucketInventoryConfigurationsCommand) + .de(de_ListBucketInventoryConfigurationsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListBucketMetricsConfigurationsCommand.ts b/clients/client-s3/src/commands/ListBucketMetricsConfigurationsCommand.ts index 81a7253fc118..3fb383f4d80d 100644 --- a/clients/client-s3/src/commands/ListBucketMetricsConfigurationsCommand.ts +++ b/clients/client-s3/src/commands/ListBucketMetricsConfigurationsCommand.ts @@ -1,13 +1,17 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListBucketMetricsConfigurationsOutput, ListBucketMetricsConfigurationsRequest } from "../models/models_0"; +import { + de_ListBucketMetricsConfigurationsCommand, + se_ListBucketMetricsConfigurationsCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { ListBucketMetricsConfigurations } from "../schemas/schemas"; /** * @public @@ -135,12 +139,17 @@ export class ListBucketMetricsConfigurationsCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "ListBucketMetricsConfigurations", {}) .n("S3Client", "ListBucketMetricsConfigurationsCommand") - - .sc(ListBucketMetricsConfigurations) + .f(void 0, void 0) + .ser(se_ListBucketMetricsConfigurationsCommand) + .de(de_ListBucketMetricsConfigurationsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListBucketsCommand.ts b/clients/client-s3/src/commands/ListBucketsCommand.ts index c78359cb32c6..1d59ef312ec0 100644 --- a/clients/client-s3/src/commands/ListBucketsCommand.ts +++ b/clients/client-s3/src/commands/ListBucketsCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListBucketsOutput, ListBucketsRequest } from "../models/models_0"; +import { de_ListBucketsCommand, se_ListBucketsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { ListBuckets } from "../schemas/schemas"; /** * @public @@ -135,12 +136,17 @@ export class ListBucketsCommand extends $Command >() .ep(commonParams) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "ListBuckets", {}) .n("S3Client", "ListBucketsCommand") - - .sc(ListBuckets) + .f(void 0, void 0) + .ser(se_ListBucketsCommand) + .de(de_ListBucketsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListDirectoryBucketsCommand.ts b/clients/client-s3/src/commands/ListDirectoryBucketsCommand.ts index 5d99a2627b1a..e4925e8dd081 100644 --- a/clients/client-s3/src/commands/ListDirectoryBucketsCommand.ts +++ b/clients/client-s3/src/commands/ListDirectoryBucketsCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListDirectoryBucketsOutput, ListDirectoryBucketsRequest } from "../models/models_0"; +import { de_ListDirectoryBucketsCommand, se_ListDirectoryBucketsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { ListDirectoryBuckets } from "../schemas/schemas"; /** * @public @@ -108,12 +109,17 @@ export class ListDirectoryBucketsCommand extends $Command UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "ListDirectoryBuckets", {}) .n("S3Client", "ListDirectoryBucketsCommand") - - .sc(ListDirectoryBuckets) + .f(void 0, void 0) + .ser(se_ListDirectoryBucketsCommand) + .de(de_ListDirectoryBucketsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts b/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts index 665eba0b1c45..2e457e26e010 100644 --- a/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts +++ b/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListMultipartUploadsOutput, ListMultipartUploadsRequest } from "../models/models_0"; +import { de_ListMultipartUploadsCommand, se_ListMultipartUploadsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { ListMultipartUploads } from "../schemas/schemas"; /** * @public @@ -343,12 +344,17 @@ export class ListMultipartUploadsCommand extends $Command Prefix: { type: "contextParams", name: "Prefix" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "ListMultipartUploads", {}) .n("S3Client", "ListMultipartUploadsCommand") - - .sc(ListMultipartUploads) + .f(void 0, void 0) + .ser(se_ListMultipartUploadsCommand) + .de(de_ListMultipartUploadsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListObjectVersionsCommand.ts b/clients/client-s3/src/commands/ListObjectVersionsCommand.ts index e55775e805e8..06e4b73b0aa5 100644 --- a/clients/client-s3/src/commands/ListObjectVersionsCommand.ts +++ b/clients/client-s3/src/commands/ListObjectVersionsCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListObjectVersionsOutput, ListObjectVersionsRequest } from "../models/models_1"; +import { de_ListObjectVersionsCommand, se_ListObjectVersionsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { ListObjectVersions } from "../schemas/schemas"; /** * @public @@ -219,12 +220,17 @@ export class ListObjectVersionsCommand extends $Command Prefix: { type: "contextParams", name: "Prefix" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "ListObjectVersions", {}) .n("S3Client", "ListObjectVersionsCommand") - - .sc(ListObjectVersions) + .f(void 0, void 0) + .ser(se_ListObjectVersionsCommand) + .de(de_ListObjectVersionsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListObjectsCommand.ts b/clients/client-s3/src/commands/ListObjectsCommand.ts index 45a07318087b..a5383feaaf81 100644 --- a/clients/client-s3/src/commands/ListObjectsCommand.ts +++ b/clients/client-s3/src/commands/ListObjectsCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListObjectsOutput, ListObjectsRequest } from "../models/models_1"; +import { de_ListObjectsCommand, se_ListObjectsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { ListObjects } from "../schemas/schemas"; /** * @public @@ -205,12 +206,17 @@ export class ListObjectsCommand extends $Command Prefix: { type: "contextParams", name: "Prefix" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "ListObjects", {}) .n("S3Client", "ListObjectsCommand") - - .sc(ListObjects) + .f(void 0, void 0) + .ser(se_ListObjectsCommand) + .de(de_ListObjectsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListObjectsV2Command.ts b/clients/client-s3/src/commands/ListObjectsV2Command.ts index cb22ca36fad7..f5e10dfced4b 100644 --- a/clients/client-s3/src/commands/ListObjectsV2Command.ts +++ b/clients/client-s3/src/commands/ListObjectsV2Command.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { ListObjectsV2Output, ListObjectsV2Request } from "../models/models_1"; +import { de_ListObjectsV2Command, se_ListObjectsV2Command } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { ListObjectsV2 } from "../schemas/schemas"; /** * @public @@ -259,12 +260,17 @@ export class ListObjectsV2Command extends $Command Prefix: { type: "contextParams", name: "Prefix" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "ListObjectsV2", {}) .n("S3Client", "ListObjectsV2Command") - - .sc(ListObjectsV2) + .f(void 0, void 0) + .ser(se_ListObjectsV2Command) + .de(de_ListObjectsV2Command) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/ListPartsCommand.ts b/clients/client-s3/src/commands/ListPartsCommand.ts index 7574d3312b7e..f6c90c628210 100644 --- a/clients/client-s3/src/commands/ListPartsCommand.ts +++ b/clients/client-s3/src/commands/ListPartsCommand.ts @@ -2,13 +2,14 @@ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { ListPartsOutput, ListPartsRequest } from "../models/models_1"; +import { ListPartsOutput, ListPartsRequest, ListPartsRequestFilterSensitiveLog } from "../models/models_1"; +import { de_ListPartsCommand, se_ListPartsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { ListParts } from "../schemas/schemas"; /** * @public @@ -246,6 +247,7 @@ export class ListPartsCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -253,8 +255,9 @@ export class ListPartsCommand extends $Command }) .s("AmazonS3", "ListParts", {}) .n("S3Client", "ListPartsCommand") - - .sc(ListParts) + .f(ListPartsRequestFilterSensitiveLog, void 0) + .ser(se_ListPartsCommand) + .de(de_ListPartsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketAccelerateConfigurationCommand.ts b/clients/client-s3/src/commands/PutBucketAccelerateConfigurationCommand.ts index ed6f495240da..e9802aaa6f7f 100644 --- a/clients/client-s3/src/commands/PutBucketAccelerateConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketAccelerateConfigurationCommand.ts @@ -1,13 +1,17 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketAccelerateConfigurationRequest } from "../models/models_1"; +import { + de_PutBucketAccelerateConfigurationCommand, + se_PutBucketAccelerateConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketAccelerateConfiguration } from "../schemas/schemas"; /** * @public @@ -113,6 +117,7 @@ export class PutBucketAccelerateConfigurationCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -122,8 +127,9 @@ export class PutBucketAccelerateConfigurationCommand extends $Command }) .s("AmazonS3", "PutBucketAccelerateConfiguration", {}) .n("S3Client", "PutBucketAccelerateConfigurationCommand") - - .sc(PutBucketAccelerateConfiguration) + .f(void 0, void 0) + .ser(se_PutBucketAccelerateConfigurationCommand) + .de(de_PutBucketAccelerateConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketAclCommand.ts b/clients/client-s3/src/commands/PutBucketAclCommand.ts index b9f6873b3235..4bed48abee7b 100644 --- a/clients/client-s3/src/commands/PutBucketAclCommand.ts +++ b/clients/client-s3/src/commands/PutBucketAclCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketAclRequest } from "../models/models_1"; +import { de_PutBucketAclCommand, se_PutBucketAclCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketAcl } from "../schemas/schemas"; /** * @public @@ -313,6 +314,7 @@ export class PutBucketAclCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -322,8 +324,9 @@ export class PutBucketAclCommand extends $Command }) .s("AmazonS3", "PutBucketAcl", {}) .n("S3Client", "PutBucketAclCommand") - - .sc(PutBucketAcl) + .f(void 0, void 0) + .ser(se_PutBucketAclCommand) + .de(de_PutBucketAclCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketAnalyticsConfigurationCommand.ts b/clients/client-s3/src/commands/PutBucketAnalyticsConfigurationCommand.ts index fc35d7fd0f9e..9c41a3f5a62a 100644 --- a/clients/client-s3/src/commands/PutBucketAnalyticsConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketAnalyticsConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketAnalyticsConfigurationRequest } from "../models/models_1"; +import { + de_PutBucketAnalyticsConfigurationCommand, + se_PutBucketAnalyticsConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketAnalyticsConfiguration } from "../schemas/schemas"; /** * @public @@ -206,12 +210,16 @@ export class PutBucketAnalyticsConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "PutBucketAnalyticsConfiguration", {}) .n("S3Client", "PutBucketAnalyticsConfigurationCommand") - - .sc(PutBucketAnalyticsConfiguration) + .f(void 0, void 0) + .ser(se_PutBucketAnalyticsConfigurationCommand) + .de(de_PutBucketAnalyticsConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketCorsCommand.ts b/clients/client-s3/src/commands/PutBucketCorsCommand.ts index 7bde2e5e8d09..226aa528b9ae 100644 --- a/clients/client-s3/src/commands/PutBucketCorsCommand.ts +++ b/clients/client-s3/src/commands/PutBucketCorsCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketCorsRequest } from "../models/models_1"; +import { de_PutBucketCorsCommand, se_PutBucketCorsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketCors } from "../schemas/schemas"; /** * @public @@ -193,6 +194,7 @@ export class PutBucketCorsCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -202,8 +204,9 @@ export class PutBucketCorsCommand extends $Command }) .s("AmazonS3", "PutBucketCors", {}) .n("S3Client", "PutBucketCorsCommand") - - .sc(PutBucketCors) + .f(void 0, void 0) + .ser(se_PutBucketCorsCommand) + .de(de_PutBucketCorsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketEncryptionCommand.ts b/clients/client-s3/src/commands/PutBucketEncryptionCommand.ts index 32d6610770e1..08608eac352a 100644 --- a/clients/client-s3/src/commands/PutBucketEncryptionCommand.ts +++ b/clients/client-s3/src/commands/PutBucketEncryptionCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { PutBucketEncryptionRequest } from "../models/models_1"; +import { PutBucketEncryptionRequest, PutBucketEncryptionRequestFilterSensitiveLog } from "../models/models_1"; +import { de_PutBucketEncryptionCommand, se_PutBucketEncryptionCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketEncryption } from "../schemas/schemas"; /** * @public @@ -203,6 +204,7 @@ export class PutBucketEncryptionCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -212,8 +214,9 @@ export class PutBucketEncryptionCommand extends $Command }) .s("AmazonS3", "PutBucketEncryption", {}) .n("S3Client", "PutBucketEncryptionCommand") - - .sc(PutBucketEncryption) + .f(PutBucketEncryptionRequestFilterSensitiveLog, void 0) + .ser(se_PutBucketEncryptionCommand) + .de(de_PutBucketEncryptionCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketIntelligentTieringConfigurationCommand.ts b/clients/client-s3/src/commands/PutBucketIntelligentTieringConfigurationCommand.ts index ff4f2f0176c4..426ee24d8542 100644 --- a/clients/client-s3/src/commands/PutBucketIntelligentTieringConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketIntelligentTieringConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketIntelligentTieringConfigurationRequest } from "../models/models_1"; +import { + de_PutBucketIntelligentTieringConfigurationCommand, + se_PutBucketIntelligentTieringConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketIntelligentTieringConfiguration } from "../schemas/schemas"; /** * @public @@ -154,12 +158,16 @@ export class PutBucketIntelligentTieringConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "PutBucketIntelligentTieringConfiguration", {}) .n("S3Client", "PutBucketIntelligentTieringConfigurationCommand") - - .sc(PutBucketIntelligentTieringConfiguration) + .f(void 0, void 0) + .ser(se_PutBucketIntelligentTieringConfigurationCommand) + .de(de_PutBucketIntelligentTieringConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketInventoryConfigurationCommand.ts b/clients/client-s3/src/commands/PutBucketInventoryConfigurationCommand.ts index 176eeeb45943..5f10efdaadf5 100644 --- a/clients/client-s3/src/commands/PutBucketInventoryConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketInventoryConfigurationCommand.ts @@ -1,12 +1,19 @@ // 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 { commonParams } from "../endpoint/EndpointParameters"; -import { PutBucketInventoryConfigurationRequest } from "../models/models_1"; +import { + PutBucketInventoryConfigurationRequest, + PutBucketInventoryConfigurationRequestFilterSensitiveLog, +} from "../models/models_1"; +import { + de_PutBucketInventoryConfigurationCommand, + se_PutBucketInventoryConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketInventoryConfiguration } from "../schemas/schemas"; /** * @public @@ -181,12 +188,16 @@ export class PutBucketInventoryConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "PutBucketInventoryConfiguration", {}) .n("S3Client", "PutBucketInventoryConfigurationCommand") - - .sc(PutBucketInventoryConfiguration) + .f(PutBucketInventoryConfigurationRequestFilterSensitiveLog, void 0) + .ser(se_PutBucketInventoryConfigurationCommand) + .de(de_PutBucketInventoryConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketLifecycleConfigurationCommand.ts b/clients/client-s3/src/commands/PutBucketLifecycleConfigurationCommand.ts index 452093384259..2fc13c9bf475 100644 --- a/clients/client-s3/src/commands/PutBucketLifecycleConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketLifecycleConfigurationCommand.ts @@ -2,13 +2,17 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketLifecycleConfigurationOutput, PutBucketLifecycleConfigurationRequest } from "../models/models_1"; +import { + de_PutBucketLifecycleConfigurationCommand, + se_PutBucketLifecycleConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketLifecycleConfiguration } from "../schemas/schemas"; /** * @public @@ -291,6 +295,7 @@ export class PutBucketLifecycleConfigurationCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -301,8 +306,9 @@ export class PutBucketLifecycleConfigurationCommand extends $Command }) .s("AmazonS3", "PutBucketLifecycleConfiguration", {}) .n("S3Client", "PutBucketLifecycleConfigurationCommand") - - .sc(PutBucketLifecycleConfiguration) + .f(void 0, void 0) + .ser(se_PutBucketLifecycleConfigurationCommand) + .de(de_PutBucketLifecycleConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketLoggingCommand.ts b/clients/client-s3/src/commands/PutBucketLoggingCommand.ts index 635664a737a7..6fb645dad164 100644 --- a/clients/client-s3/src/commands/PutBucketLoggingCommand.ts +++ b/clients/client-s3/src/commands/PutBucketLoggingCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketLoggingRequest } from "../models/models_1"; +import { de_PutBucketLoggingCommand, se_PutBucketLoggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketLogging } from "../schemas/schemas"; /** * @public @@ -217,6 +218,7 @@ export class PutBucketLoggingCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -226,8 +228,9 @@ export class PutBucketLoggingCommand extends $Command }) .s("AmazonS3", "PutBucketLogging", {}) .n("S3Client", "PutBucketLoggingCommand") - - .sc(PutBucketLogging) + .f(void 0, void 0) + .ser(se_PutBucketLoggingCommand) + .de(de_PutBucketLoggingCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketMetricsConfigurationCommand.ts b/clients/client-s3/src/commands/PutBucketMetricsConfigurationCommand.ts index 5ea51519eb56..2b8b09ed550a 100644 --- a/clients/client-s3/src/commands/PutBucketMetricsConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketMetricsConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketMetricsConfigurationRequest } from "../models/models_1"; +import { + de_PutBucketMetricsConfigurationCommand, + se_PutBucketMetricsConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketMetricsConfiguration } from "../schemas/schemas"; /** * @public @@ -139,12 +143,16 @@ export class PutBucketMetricsConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "PutBucketMetricsConfiguration", {}) .n("S3Client", "PutBucketMetricsConfigurationCommand") - - .sc(PutBucketMetricsConfiguration) + .f(void 0, void 0) + .ser(se_PutBucketMetricsConfigurationCommand) + .de(de_PutBucketMetricsConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketNotificationConfigurationCommand.ts b/clients/client-s3/src/commands/PutBucketNotificationConfigurationCommand.ts index 1f96334b6097..3cb12689c088 100644 --- a/clients/client-s3/src/commands/PutBucketNotificationConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketNotificationConfigurationCommand.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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketNotificationConfigurationRequest } from "../models/models_1"; +import { + de_PutBucketNotificationConfigurationCommand, + se_PutBucketNotificationConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketNotificationConfiguration } from "../schemas/schemas"; /** * @public @@ -202,12 +206,16 @@ export class PutBucketNotificationConfigurationCommand extends $Command Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "PutBucketNotificationConfiguration", {}) .n("S3Client", "PutBucketNotificationConfigurationCommand") - - .sc(PutBucketNotificationConfiguration) + .f(void 0, void 0) + .ser(se_PutBucketNotificationConfigurationCommand) + .de(de_PutBucketNotificationConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketOwnershipControlsCommand.ts b/clients/client-s3/src/commands/PutBucketOwnershipControlsCommand.ts index 8a5cf3220ce2..923f606755bc 100644 --- a/clients/client-s3/src/commands/PutBucketOwnershipControlsCommand.ts +++ b/clients/client-s3/src/commands/PutBucketOwnershipControlsCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketOwnershipControlsRequest } from "../models/models_1"; +import { de_PutBucketOwnershipControlsCommand, se_PutBucketOwnershipControlsCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketOwnershipControls } from "../schemas/schemas"; /** * @public @@ -100,6 +101,7 @@ export class PutBucketOwnershipControlsCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -109,8 +111,9 @@ export class PutBucketOwnershipControlsCommand extends $Command }) .s("AmazonS3", "PutBucketOwnershipControls", {}) .n("S3Client", "PutBucketOwnershipControlsCommand") - - .sc(PutBucketOwnershipControls) + .f(void 0, void 0) + .ser(se_PutBucketOwnershipControlsCommand) + .de(de_PutBucketOwnershipControlsCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketPolicyCommand.ts b/clients/client-s3/src/commands/PutBucketPolicyCommand.ts index a4d44546f926..cedad7f47123 100644 --- a/clients/client-s3/src/commands/PutBucketPolicyCommand.ts +++ b/clients/client-s3/src/commands/PutBucketPolicyCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketPolicyRequest } from "../models/models_1"; +import { de_PutBucketPolicyCommand, se_PutBucketPolicyCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketPolicy } from "../schemas/schemas"; /** * @public @@ -161,6 +162,7 @@ export class PutBucketPolicyCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -170,8 +172,9 @@ export class PutBucketPolicyCommand extends $Command }) .s("AmazonS3", "PutBucketPolicy", {}) .n("S3Client", "PutBucketPolicyCommand") - - .sc(PutBucketPolicy) + .f(void 0, void 0) + .ser(se_PutBucketPolicyCommand) + .de(de_PutBucketPolicyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketReplicationCommand.ts b/clients/client-s3/src/commands/PutBucketReplicationCommand.ts index 22dc6bff46e3..1ec46f96efd0 100644 --- a/clients/client-s3/src/commands/PutBucketReplicationCommand.ts +++ b/clients/client-s3/src/commands/PutBucketReplicationCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketReplicationRequest } from "../models/models_1"; +import { de_PutBucketReplicationCommand, se_PutBucketReplicationCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketReplication } from "../schemas/schemas"; /** * @public @@ -230,6 +231,7 @@ export class PutBucketReplicationCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -239,8 +241,9 @@ export class PutBucketReplicationCommand extends $Command }) .s("AmazonS3", "PutBucketReplication", {}) .n("S3Client", "PutBucketReplicationCommand") - - .sc(PutBucketReplication) + .f(void 0, void 0) + .ser(se_PutBucketReplicationCommand) + .de(de_PutBucketReplicationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketRequestPaymentCommand.ts b/clients/client-s3/src/commands/PutBucketRequestPaymentCommand.ts index b34cf22accf8..64a856100385 100644 --- a/clients/client-s3/src/commands/PutBucketRequestPaymentCommand.ts +++ b/clients/client-s3/src/commands/PutBucketRequestPaymentCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketRequestPaymentRequest } from "../models/models_1"; +import { de_PutBucketRequestPaymentCommand, se_PutBucketRequestPaymentCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketRequestPayment } from "../schemas/schemas"; /** * @public @@ -112,6 +113,7 @@ export class PutBucketRequestPaymentCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -121,8 +123,9 @@ export class PutBucketRequestPaymentCommand extends $Command }) .s("AmazonS3", "PutBucketRequestPayment", {}) .n("S3Client", "PutBucketRequestPaymentCommand") - - .sc(PutBucketRequestPayment) + .f(void 0, void 0) + .ser(se_PutBucketRequestPaymentCommand) + .de(de_PutBucketRequestPaymentCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketTaggingCommand.ts b/clients/client-s3/src/commands/PutBucketTaggingCommand.ts index 27891643eedd..e2ec72dfa8cb 100644 --- a/clients/client-s3/src/commands/PutBucketTaggingCommand.ts +++ b/clients/client-s3/src/commands/PutBucketTaggingCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketTaggingRequest } from "../models/models_1"; +import { de_PutBucketTaggingCommand, se_PutBucketTaggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketTagging } from "../schemas/schemas"; /** * @public @@ -161,6 +162,7 @@ export class PutBucketTaggingCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -170,8 +172,9 @@ export class PutBucketTaggingCommand extends $Command }) .s("AmazonS3", "PutBucketTagging", {}) .n("S3Client", "PutBucketTaggingCommand") - - .sc(PutBucketTagging) + .f(void 0, void 0) + .ser(se_PutBucketTaggingCommand) + .de(de_PutBucketTaggingCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketVersioningCommand.ts b/clients/client-s3/src/commands/PutBucketVersioningCommand.ts index f854624d8369..0f5cd31ba488 100644 --- a/clients/client-s3/src/commands/PutBucketVersioningCommand.ts +++ b/clients/client-s3/src/commands/PutBucketVersioningCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketVersioningRequest } from "../models/models_1"; +import { de_PutBucketVersioningCommand, se_PutBucketVersioningCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketVersioning } from "../schemas/schemas"; /** * @public @@ -144,6 +145,7 @@ export class PutBucketVersioningCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -153,8 +155,9 @@ export class PutBucketVersioningCommand extends $Command }) .s("AmazonS3", "PutBucketVersioning", {}) .n("S3Client", "PutBucketVersioningCommand") - - .sc(PutBucketVersioning) + .f(void 0, void 0) + .ser(se_PutBucketVersioningCommand) + .de(de_PutBucketVersioningCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutBucketWebsiteCommand.ts b/clients/client-s3/src/commands/PutBucketWebsiteCommand.ts index 8b5a05ec4155..5881fbc3b058 100644 --- a/clients/client-s3/src/commands/PutBucketWebsiteCommand.ts +++ b/clients/client-s3/src/commands/PutBucketWebsiteCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutBucketWebsiteRequest } from "../models/models_1"; +import { de_PutBucketWebsiteCommand, se_PutBucketWebsiteCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutBucketWebsite } from "../schemas/schemas"; /** * @public @@ -249,6 +250,7 @@ export class PutBucketWebsiteCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -258,8 +260,9 @@ export class PutBucketWebsiteCommand extends $Command }) .s("AmazonS3", "PutBucketWebsite", {}) .n("S3Client", "PutBucketWebsiteCommand") - - .sc(PutBucketWebsite) + .f(void 0, void 0) + .ser(se_PutBucketWebsiteCommand) + .de(de_PutBucketWebsiteCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutObjectAclCommand.ts b/clients/client-s3/src/commands/PutObjectAclCommand.ts index a8d7a9b39e2a..b6644c212734 100644 --- a/clients/client-s3/src/commands/PutObjectAclCommand.ts +++ b/clients/client-s3/src/commands/PutObjectAclCommand.ts @@ -2,13 +2,14 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutObjectAclOutput, PutObjectAclRequest } from "../models/models_1"; +import { de_PutObjectAclCommand, se_PutObjectAclCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutObjectAcl } from "../schemas/schemas"; /** * @public @@ -307,6 +308,7 @@ export class PutObjectAclCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -317,8 +319,9 @@ export class PutObjectAclCommand extends $Command }) .s("AmazonS3", "PutObjectAcl", {}) .n("S3Client", "PutObjectAclCommand") - - .sc(PutObjectAcl) + .f(void 0, void 0) + .ser(se_PutObjectAclCommand) + .de(de_PutObjectAclCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutObjectCommand.ts b/clients/client-s3/src/commands/PutObjectCommand.ts index da587097d4de..ddc45964786d 100644 --- a/clients/client-s3/src/commands/PutObjectCommand.ts +++ b/clients/client-s3/src/commands/PutObjectCommand.ts @@ -3,13 +3,19 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksu import { getCheckContentLengthHeaderPlugin, getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer, StreamingBlobPayloadInputTypes } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { PutObjectOutput, PutObjectRequest } from "../models/models_1"; +import { + PutObjectOutput, + PutObjectOutputFilterSensitiveLog, + PutObjectRequest, + PutObjectRequestFilterSensitiveLog, +} from "../models/models_1"; +import { de_PutObjectCommand, se_PutObjectCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutObject } from "../schemas/schemas"; /** * @public @@ -459,6 +465,7 @@ export class PutObjectCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -471,8 +478,9 @@ export class PutObjectCommand extends $Command }) .s("AmazonS3", "PutObject", {}) .n("S3Client", "PutObjectCommand") - - .sc(PutObject) + .f(PutObjectRequestFilterSensitiveLog, PutObjectOutputFilterSensitiveLog) + .ser(se_PutObjectCommand) + .de(de_PutObjectCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutObjectLegalHoldCommand.ts b/clients/client-s3/src/commands/PutObjectLegalHoldCommand.ts index e760706caea2..42c0abc52a2a 100644 --- a/clients/client-s3/src/commands/PutObjectLegalHoldCommand.ts +++ b/clients/client-s3/src/commands/PutObjectLegalHoldCommand.ts @@ -2,13 +2,14 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutObjectLegalHoldOutput, PutObjectLegalHoldRequest } from "../models/models_1"; +import { de_PutObjectLegalHoldCommand, se_PutObjectLegalHoldCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutObjectLegalHold } from "../schemas/schemas"; /** * @public @@ -86,6 +87,7 @@ export class PutObjectLegalHoldCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -96,8 +98,9 @@ export class PutObjectLegalHoldCommand extends $Command }) .s("AmazonS3", "PutObjectLegalHold", {}) .n("S3Client", "PutObjectLegalHoldCommand") - - .sc(PutObjectLegalHold) + .f(void 0, void 0) + .ser(se_PutObjectLegalHoldCommand) + .de(de_PutObjectLegalHoldCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutObjectLockConfigurationCommand.ts b/clients/client-s3/src/commands/PutObjectLockConfigurationCommand.ts index 238d297c8ab8..117c6ba82c84 100644 --- a/clients/client-s3/src/commands/PutObjectLockConfigurationCommand.ts +++ b/clients/client-s3/src/commands/PutObjectLockConfigurationCommand.ts @@ -2,13 +2,14 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutObjectLockConfigurationOutput, PutObjectLockConfigurationRequest } from "../models/models_1"; +import { de_PutObjectLockConfigurationCommand, se_PutObjectLockConfigurationCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutObjectLockConfiguration } from "../schemas/schemas"; /** * @public @@ -110,6 +111,7 @@ export class PutObjectLockConfigurationCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -120,8 +122,9 @@ export class PutObjectLockConfigurationCommand extends $Command }) .s("AmazonS3", "PutObjectLockConfiguration", {}) .n("S3Client", "PutObjectLockConfigurationCommand") - - .sc(PutObjectLockConfiguration) + .f(void 0, void 0) + .ser(se_PutObjectLockConfigurationCommand) + .de(de_PutObjectLockConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutObjectRetentionCommand.ts b/clients/client-s3/src/commands/PutObjectRetentionCommand.ts index 38b187c643f1..4a22684eefd9 100644 --- a/clients/client-s3/src/commands/PutObjectRetentionCommand.ts +++ b/clients/client-s3/src/commands/PutObjectRetentionCommand.ts @@ -2,13 +2,14 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutObjectRetentionOutput, PutObjectRetentionRequest } from "../models/models_1"; +import { de_PutObjectRetentionCommand, se_PutObjectRetentionCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutObjectRetention } from "../schemas/schemas"; /** * @public @@ -91,6 +92,7 @@ export class PutObjectRetentionCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -101,8 +103,9 @@ export class PutObjectRetentionCommand extends $Command }) .s("AmazonS3", "PutObjectRetention", {}) .n("S3Client", "PutObjectRetentionCommand") - - .sc(PutObjectRetention) + .f(void 0, void 0) + .ser(se_PutObjectRetentionCommand) + .de(de_PutObjectRetentionCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutObjectTaggingCommand.ts b/clients/client-s3/src/commands/PutObjectTaggingCommand.ts index be9ee48a10ae..fa12aa7c747b 100644 --- a/clients/client-s3/src/commands/PutObjectTaggingCommand.ts +++ b/clients/client-s3/src/commands/PutObjectTaggingCommand.ts @@ -2,13 +2,14 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutObjectTaggingOutput, PutObjectTaggingRequest } from "../models/models_1"; +import { de_PutObjectTaggingCommand, se_PutObjectTaggingCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutObjectTagging } from "../schemas/schemas"; /** * @public @@ -164,6 +165,7 @@ export class PutObjectTaggingCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -174,8 +176,9 @@ export class PutObjectTaggingCommand extends $Command }) .s("AmazonS3", "PutObjectTagging", {}) .n("S3Client", "PutObjectTaggingCommand") - - .sc(PutObjectTagging) + .f(void 0, void 0) + .ser(se_PutObjectTaggingCommand) + .de(de_PutObjectTaggingCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/PutPublicAccessBlockCommand.ts b/clients/client-s3/src/commands/PutPublicAccessBlockCommand.ts index 83df90368e51..48737d4a51b7 100644 --- a/clients/client-s3/src/commands/PutPublicAccessBlockCommand.ts +++ b/clients/client-s3/src/commands/PutPublicAccessBlockCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { PutPublicAccessBlockRequest } from "../models/models_1"; +import { de_PutPublicAccessBlockCommand, se_PutPublicAccessBlockCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { PutPublicAccessBlock } from "../schemas/schemas"; /** * @public @@ -117,6 +118,7 @@ export class PutPublicAccessBlockCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -126,8 +128,9 @@ export class PutPublicAccessBlockCommand extends $Command }) .s("AmazonS3", "PutPublicAccessBlock", {}) .n("S3Client", "PutPublicAccessBlockCommand") - - .sc(PutPublicAccessBlock) + .f(void 0, void 0) + .ser(se_PutPublicAccessBlockCommand) + .de(de_PutPublicAccessBlockCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/RenameObjectCommand.ts b/clients/client-s3/src/commands/RenameObjectCommand.ts index 8ed451431d86..cbe286ed489e 100644 --- a/clients/client-s3/src/commands/RenameObjectCommand.ts +++ b/clients/client-s3/src/commands/RenameObjectCommand.ts @@ -1,13 +1,14 @@ // smithy-typescript generated code import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { RenameObjectOutput, RenameObjectRequest } from "../models/models_1"; +import { de_RenameObjectCommand, se_RenameObjectCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { RenameObject } from "../schemas/schemas"; /** * @public @@ -138,12 +139,17 @@ export class RenameObjectCommand extends $Command Key: { type: "contextParams", name: "Key" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + getThrow200ExceptionsPlugin(config), + ]; }) .s("AmazonS3", "RenameObject", {}) .n("S3Client", "RenameObjectCommand") - - .sc(RenameObject) + .f(void 0, void 0) + .ser(se_RenameObjectCommand) + .de(de_RenameObjectCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/RestoreObjectCommand.ts b/clients/client-s3/src/commands/RestoreObjectCommand.ts index 3d4f365852ca..4e43d07ecd4a 100644 --- a/clients/client-s3/src/commands/RestoreObjectCommand.ts +++ b/clients/client-s3/src/commands/RestoreObjectCommand.ts @@ -2,13 +2,14 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { RestoreObjectOutput, RestoreObjectRequest } from "../models/models_1"; +import { RestoreObjectOutput, RestoreObjectRequest, RestoreObjectRequestFilterSensitiveLog } from "../models/models_1"; +import { de_RestoreObjectCommand, se_RestoreObjectCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { RestoreObject } from "../schemas/schemas"; /** * @public @@ -376,6 +377,7 @@ export class RestoreObjectCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -386,8 +388,9 @@ export class RestoreObjectCommand extends $Command }) .s("AmazonS3", "RestoreObject", {}) .n("S3Client", "RestoreObjectCommand") - - .sc(RestoreObject) + .f(RestoreObjectRequestFilterSensitiveLog, void 0) + .ser(se_RestoreObjectCommand) + .de(de_RestoreObjectCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/SelectObjectContentCommand.ts b/clients/client-s3/src/commands/SelectObjectContentCommand.ts index 2e78bd9aba8d..c7642e05cb63 100644 --- a/clients/client-s3/src/commands/SelectObjectContentCommand.ts +++ b/clients/client-s3/src/commands/SelectObjectContentCommand.ts @@ -2,13 +2,19 @@ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { SelectObjectContentOutput, SelectObjectContentRequest } from "../models/models_1"; +import { + SelectObjectContentOutput, + SelectObjectContentOutputFilterSensitiveLog, + SelectObjectContentRequest, + SelectObjectContentRequestFilterSensitiveLog, +} from "../models/models_1"; +import { de_SelectObjectContentCommand, se_SelectObjectContentCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { SelectObjectContent } from "../schemas/schemas"; /** * @public @@ -247,6 +253,7 @@ export class SelectObjectContentCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -261,8 +268,9 @@ export class SelectObjectContentCommand extends $Command }, }) .n("S3Client", "SelectObjectContentCommand") - - .sc(SelectObjectContent) + .f(SelectObjectContentRequestFilterSensitiveLog, SelectObjectContentOutputFilterSensitiveLog) + .ser(se_SelectObjectContentCommand) + .de(de_SelectObjectContentCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.ts b/clients/client-s3/src/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.ts index 476c7c7fa934..12aa05d49c86 100644 --- a/clients/client-s3/src/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.ts +++ b/clients/client-s3/src/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.ts @@ -1,13 +1,17 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { UpdateBucketMetadataInventoryTableConfigurationRequest } from "../models/models_1"; +import { + de_UpdateBucketMetadataInventoryTableConfigurationCommand, + se_UpdateBucketMetadataInventoryTableConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { UpdateBucketMetadataInventoryTableConfiguration } from "../schemas/schemas"; /** * @public @@ -163,6 +167,7 @@ export class UpdateBucketMetadataInventoryTableConfigurationCommand extends $Com }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -172,8 +177,9 @@ export class UpdateBucketMetadataInventoryTableConfigurationCommand extends $Com }) .s("AmazonS3", "UpdateBucketMetadataInventoryTableConfiguration", {}) .n("S3Client", "UpdateBucketMetadataInventoryTableConfigurationCommand") - - .sc(UpdateBucketMetadataInventoryTableConfiguration) + .f(void 0, void 0) + .ser(se_UpdateBucketMetadataInventoryTableConfigurationCommand) + .de(de_UpdateBucketMetadataInventoryTableConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/UpdateBucketMetadataJournalTableConfigurationCommand.ts b/clients/client-s3/src/commands/UpdateBucketMetadataJournalTableConfigurationCommand.ts index d74f43afaea6..c39a2affc42f 100644 --- a/clients/client-s3/src/commands/UpdateBucketMetadataJournalTableConfigurationCommand.ts +++ b/clients/client-s3/src/commands/UpdateBucketMetadataJournalTableConfigurationCommand.ts @@ -1,13 +1,17 @@ // smithy-typescript generated code import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums"; 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 { commonParams } from "../endpoint/EndpointParameters"; import { UpdateBucketMetadataJournalTableConfigurationRequest } from "../models/models_1"; +import { + de_UpdateBucketMetadataJournalTableConfigurationCommand, + se_UpdateBucketMetadataJournalTableConfigurationCommand, +} from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { UpdateBucketMetadataJournalTableConfiguration } from "../schemas/schemas"; /** * @public @@ -115,6 +119,7 @@ export class UpdateBucketMetadataJournalTableConfigurationCommand extends $Comma }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -124,8 +129,9 @@ export class UpdateBucketMetadataJournalTableConfigurationCommand extends $Comma }) .s("AmazonS3", "UpdateBucketMetadataJournalTableConfiguration", {}) .n("S3Client", "UpdateBucketMetadataJournalTableConfigurationCommand") - - .sc(UpdateBucketMetadataJournalTableConfiguration) + .f(void 0, void 0) + .ser(se_UpdateBucketMetadataJournalTableConfigurationCommand) + .de(de_UpdateBucketMetadataJournalTableConfigurationCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/UploadPartCommand.ts b/clients/client-s3/src/commands/UploadPartCommand.ts index 17ed9d9c9a7c..e28587467512 100644 --- a/clients/client-s3/src/commands/UploadPartCommand.ts +++ b/clients/client-s3/src/commands/UploadPartCommand.ts @@ -3,13 +3,19 @@ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksu import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer, StreamingBlobPayloadInputTypes } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { UploadPartOutput, UploadPartRequest } from "../models/models_1"; +import { + UploadPartOutput, + UploadPartOutputFilterSensitiveLog, + UploadPartRequest, + UploadPartRequestFilterSensitiveLog, +} from "../models/models_1"; +import { de_UploadPartCommand, se_UploadPartCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { UploadPart } from "../schemas/schemas"; /** * @public @@ -304,6 +310,7 @@ export class UploadPartCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, @@ -315,8 +322,9 @@ export class UploadPartCommand extends $Command }) .s("AmazonS3", "UploadPart", {}) .n("S3Client", "UploadPartCommand") - - .sc(UploadPart) + .f(UploadPartRequestFilterSensitiveLog, UploadPartOutputFilterSensitiveLog) + .ser(se_UploadPartCommand) + .de(de_UploadPartCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/UploadPartCopyCommand.ts b/clients/client-s3/src/commands/UploadPartCopyCommand.ts index 0a2f9745eeaa..736b69d1162a 100644 --- a/clients/client-s3/src/commands/UploadPartCopyCommand.ts +++ b/clients/client-s3/src/commands/UploadPartCopyCommand.ts @@ -2,13 +2,19 @@ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; 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 { commonParams } from "../endpoint/EndpointParameters"; -import { UploadPartCopyOutput, UploadPartCopyRequest } from "../models/models_1"; +import { + UploadPartCopyOutput, + UploadPartCopyOutputFilterSensitiveLog, + UploadPartCopyRequest, + UploadPartCopyRequestFilterSensitiveLog, +} from "../models/models_1"; +import { de_UploadPartCopyCommand, se_UploadPartCopyCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { UploadPartCopy } from "../schemas/schemas"; /** * @public @@ -361,6 +367,7 @@ export class UploadPartCopyCommand extends $Command }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ + getSerdePlugin(config, this.serialize, this.deserialize), getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config), getSsecPlugin(config), @@ -368,8 +375,9 @@ export class UploadPartCopyCommand extends $Command }) .s("AmazonS3", "UploadPartCopy", {}) .n("S3Client", "UploadPartCopyCommand") - - .sc(UploadPartCopy) + .f(UploadPartCopyRequestFilterSensitiveLog, UploadPartCopyOutputFilterSensitiveLog) + .ser(se_UploadPartCopyCommand) + .de(de_UploadPartCopyCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/commands/WriteGetObjectResponseCommand.ts b/clients/client-s3/src/commands/WriteGetObjectResponseCommand.ts index 3943efacc6fb..40dc90752681 100644 --- a/clients/client-s3/src/commands/WriteGetObjectResponseCommand.ts +++ b/clients/client-s3/src/commands/WriteGetObjectResponseCommand.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, StreamingBlobPayloadInputTypes } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { WriteGetObjectResponseRequest } from "../models/models_1"; +import { WriteGetObjectResponseRequest, WriteGetObjectResponseRequestFilterSensitiveLog } from "../models/models_1"; +import { de_WriteGetObjectResponseCommand, se_WriteGetObjectResponseCommand } from "../protocols/Aws_restXml"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; -import { WriteGetObjectResponse } from "../schemas/schemas"; /** * @public @@ -145,12 +146,16 @@ export class WriteGetObjectResponseCommand extends $Command UseObjectLambdaEndpoint: { type: "staticContextParams", value: true }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { - return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; }) .s("AmazonS3", "WriteGetObjectResponse", {}) .n("S3Client", "WriteGetObjectResponseCommand") - - .sc(WriteGetObjectResponse) + .f(WriteGetObjectResponseRequestFilterSensitiveLog, void 0) + .ser(se_WriteGetObjectResponseCommand) + .de(de_WriteGetObjectResponseCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { diff --git a/clients/client-s3/src/models/models_0.ts b/clients/client-s3/src/models/models_0.ts index 1665abdcd129..9afc80d3114c 100644 --- a/clients/client-s3/src/models/models_0.ts +++ b/clients/client-s3/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code -import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { S3ServiceException as __BaseException } from "./S3ServiceException"; @@ -13594,3 +13595,241 @@ export interface RestoreStatus { */ RestoreExpiryDate?: Date | undefined; } + +/** + * @internal + */ +export const CompleteMultipartUploadOutputFilterSensitiveLog = (obj: CompleteMultipartUploadOutput): any => ({ + ...obj, + ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const CompleteMultipartUploadRequestFilterSensitiveLog = (obj: CompleteMultipartUploadRequest): any => ({ + ...obj, + ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const CopyObjectOutputFilterSensitiveLog = (obj: CopyObjectOutput): any => ({ + ...obj, + ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), + ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const CopyObjectRequestFilterSensitiveLog = (obj: CopyObjectRequest): any => ({ + ...obj, + ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), + ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), + ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), + ...(obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const CreateMultipartUploadOutputFilterSensitiveLog = (obj: CreateMultipartUploadOutput): any => ({ + ...obj, + ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), + ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const CreateMultipartUploadRequestFilterSensitiveLog = (obj: CreateMultipartUploadRequest): any => ({ + ...obj, + ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), + ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), + ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const SessionCredentialsFilterSensitiveLog = (obj: SessionCredentials): any => ({ + ...obj, + ...(obj.SecretAccessKey && { SecretAccessKey: SENSITIVE_STRING }), + ...(obj.SessionToken && { SessionToken: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const CreateSessionOutputFilterSensitiveLog = (obj: CreateSessionOutput): any => ({ + ...obj, + ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), + ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), + ...(obj.Credentials && { Credentials: SessionCredentialsFilterSensitiveLog(obj.Credentials) }), +}); + +/** + * @internal + */ +export const CreateSessionRequestFilterSensitiveLog = (obj: CreateSessionRequest): any => ({ + ...obj, + ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), + ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const ServerSideEncryptionByDefaultFilterSensitiveLog = (obj: ServerSideEncryptionByDefault): any => ({ + ...obj, + ...(obj.KMSMasterKeyID && { KMSMasterKeyID: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const ServerSideEncryptionRuleFilterSensitiveLog = (obj: ServerSideEncryptionRule): any => ({ + ...obj, + ...(obj.ApplyServerSideEncryptionByDefault && { + ApplyServerSideEncryptionByDefault: ServerSideEncryptionByDefaultFilterSensitiveLog( + obj.ApplyServerSideEncryptionByDefault + ), + }), +}); + +/** + * @internal + */ +export const ServerSideEncryptionConfigurationFilterSensitiveLog = (obj: ServerSideEncryptionConfiguration): any => ({ + ...obj, + ...(obj.Rules && { Rules: obj.Rules.map((item) => ServerSideEncryptionRuleFilterSensitiveLog(item)) }), +}); + +/** + * @internal + */ +export const GetBucketEncryptionOutputFilterSensitiveLog = (obj: GetBucketEncryptionOutput): any => ({ + ...obj, + ...(obj.ServerSideEncryptionConfiguration && { + ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationFilterSensitiveLog( + obj.ServerSideEncryptionConfiguration + ), + }), +}); + +/** + * @internal + */ +export const SSEKMSFilterSensitiveLog = (obj: SSEKMS): any => ({ + ...obj, + ...(obj.KeyId && { KeyId: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const InventoryEncryptionFilterSensitiveLog = (obj: InventoryEncryption): any => ({ + ...obj, + ...(obj.SSEKMS && { SSEKMS: SSEKMSFilterSensitiveLog(obj.SSEKMS) }), +}); + +/** + * @internal + */ +export const InventoryS3BucketDestinationFilterSensitiveLog = (obj: InventoryS3BucketDestination): any => ({ + ...obj, + ...(obj.Encryption && { Encryption: InventoryEncryptionFilterSensitiveLog(obj.Encryption) }), +}); + +/** + * @internal + */ +export const InventoryDestinationFilterSensitiveLog = (obj: InventoryDestination): any => ({ + ...obj, + ...(obj.S3BucketDestination && { + S3BucketDestination: InventoryS3BucketDestinationFilterSensitiveLog(obj.S3BucketDestination), + }), +}); + +/** + * @internal + */ +export const InventoryConfigurationFilterSensitiveLog = (obj: InventoryConfiguration): any => ({ + ...obj, + ...(obj.Destination && { Destination: InventoryDestinationFilterSensitiveLog(obj.Destination) }), +}); + +/** + * @internal + */ +export const GetBucketInventoryConfigurationOutputFilterSensitiveLog = ( + obj: GetBucketInventoryConfigurationOutput +): any => ({ + ...obj, + ...(obj.InventoryConfiguration && { + InventoryConfiguration: InventoryConfigurationFilterSensitiveLog(obj.InventoryConfiguration), + }), +}); + +/** + * @internal + */ +export const GetObjectOutputFilterSensitiveLog = (obj: GetObjectOutput): any => ({ + ...obj, + ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const GetObjectRequestFilterSensitiveLog = (obj: GetObjectRequest): any => ({ + ...obj, + ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const GetObjectAttributesRequestFilterSensitiveLog = (obj: GetObjectAttributesRequest): any => ({ + ...obj, + ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const GetObjectTorrentOutputFilterSensitiveLog = (obj: GetObjectTorrentOutput): any => ({ + ...obj, +}); + +/** + * @internal + */ +export const HeadObjectOutputFilterSensitiveLog = (obj: HeadObjectOutput): any => ({ + ...obj, + ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const HeadObjectRequestFilterSensitiveLog = (obj: HeadObjectRequest): any => ({ + ...obj, + ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const ListBucketInventoryConfigurationsOutputFilterSensitiveLog = ( + obj: ListBucketInventoryConfigurationsOutput +): any => ({ + ...obj, + ...(obj.InventoryConfigurationList && { + InventoryConfigurationList: obj.InventoryConfigurationList.map((item) => + InventoryConfigurationFilterSensitiveLog(item) + ), + }), +}); diff --git a/clients/client-s3/src/models/models_1.ts b/clients/client-s3/src/models/models_1.ts index 6eba99efd242..5fd5b70166c5 100644 --- a/clients/client-s3/src/models/models_1.ts +++ b/clients/client-s3/src/models/models_1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code -import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { @@ -19,6 +20,7 @@ import { Initiator, IntelligentTieringConfiguration, InventoryConfiguration, + InventoryConfigurationFilterSensitiveLog, InventoryConfigurationState, LifecycleRule, LoggingEnabled, @@ -45,10 +47,12 @@ import { RoutingRule, ServerSideEncryption, ServerSideEncryptionConfiguration, + ServerSideEncryptionConfigurationFilterSensitiveLog, StorageClass, Tag, TransitionDefaultMinimumObjectSize, } from "./models_0"; + import { S3ServiceException as __BaseException } from "./S3ServiceException"; /** @@ -6178,3 +6182,163 @@ export interface WriteGetObjectResponseRequest { */ BucketKeyEnabled?: boolean | undefined; } + +/** + * @internal + */ +export const ListPartsRequestFilterSensitiveLog = (obj: ListPartsRequest): any => ({ + ...obj, + ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const PutBucketEncryptionRequestFilterSensitiveLog = (obj: PutBucketEncryptionRequest): any => ({ + ...obj, + ...(obj.ServerSideEncryptionConfiguration && { + ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationFilterSensitiveLog( + obj.ServerSideEncryptionConfiguration + ), + }), +}); + +/** + * @internal + */ +export const PutBucketInventoryConfigurationRequestFilterSensitiveLog = ( + obj: PutBucketInventoryConfigurationRequest +): any => ({ + ...obj, + ...(obj.InventoryConfiguration && { + InventoryConfiguration: InventoryConfigurationFilterSensitiveLog(obj.InventoryConfiguration), + }), +}); + +/** + * @internal + */ +export const PutObjectOutputFilterSensitiveLog = (obj: PutObjectOutput): any => ({ + ...obj, + ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), + ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const PutObjectRequestFilterSensitiveLog = (obj: PutObjectRequest): any => ({ + ...obj, + ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), + ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), + ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const EncryptionFilterSensitiveLog = (obj: Encryption): any => ({ + ...obj, + ...(obj.KMSKeyId && { KMSKeyId: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const S3LocationFilterSensitiveLog = (obj: S3Location): any => ({ + ...obj, + ...(obj.Encryption && { Encryption: EncryptionFilterSensitiveLog(obj.Encryption) }), +}); + +/** + * @internal + */ +export const OutputLocationFilterSensitiveLog = (obj: OutputLocation): any => ({ + ...obj, + ...(obj.S3 && { S3: S3LocationFilterSensitiveLog(obj.S3) }), +}); + +/** + * @internal + */ +export const RestoreRequestFilterSensitiveLog = (obj: RestoreRequest): any => ({ + ...obj, + ...(obj.OutputLocation && { OutputLocation: OutputLocationFilterSensitiveLog(obj.OutputLocation) }), +}); + +/** + * @internal + */ +export const RestoreObjectRequestFilterSensitiveLog = (obj: RestoreObjectRequest): any => ({ + ...obj, + ...(obj.RestoreRequest && { RestoreRequest: RestoreRequestFilterSensitiveLog(obj.RestoreRequest) }), +}); + +/** + * @internal + */ +export const SelectObjectContentEventStreamFilterSensitiveLog = (obj: SelectObjectContentEventStream): any => { + if (obj.Records !== undefined) return { Records: obj.Records }; + if (obj.Stats !== undefined) return { Stats: obj.Stats }; + if (obj.Progress !== undefined) return { Progress: obj.Progress }; + if (obj.Cont !== undefined) return { Cont: obj.Cont }; + if (obj.End !== undefined) return { End: obj.End }; + if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; +}; + +/** + * @internal + */ +export const SelectObjectContentOutputFilterSensitiveLog = (obj: SelectObjectContentOutput): any => ({ + ...obj, + ...(obj.Payload && { Payload: "STREAMING_CONTENT" }), +}); + +/** + * @internal + */ +export const SelectObjectContentRequestFilterSensitiveLog = (obj: SelectObjectContentRequest): any => ({ + ...obj, + ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const UploadPartOutputFilterSensitiveLog = (obj: UploadPartOutput): any => ({ + ...obj, + ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const UploadPartRequestFilterSensitiveLog = (obj: UploadPartRequest): any => ({ + ...obj, + ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const UploadPartCopyOutputFilterSensitiveLog = (obj: UploadPartCopyOutput): any => ({ + ...obj, + ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const UploadPartCopyRequestFilterSensitiveLog = (obj: UploadPartCopyRequest): any => ({ + ...obj, + ...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }), + ...(obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const WriteGetObjectResponseRequestFilterSensitiveLog = (obj: WriteGetObjectResponseRequest): any => ({ + ...obj, + ...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }), +}); diff --git a/clients/client-s3/src/protocols/Aws_restXml.ts b/clients/client-s3/src/protocols/Aws_restXml.ts new file mode 100644 index 000000000000..c947783784e4 --- /dev/null +++ b/clients/client-s3/src/protocols/Aws_restXml.ts @@ -0,0 +1,11295 @@ +// smithy-typescript generated code +import { loadRestXmlErrorCode, parseXmlBody as parseBody, parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core"; +import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder"; +import { requestBuilder as rb } from "@smithy/core"; +import { + HttpRequest as __HttpRequest, + HttpResponse as __HttpResponse, + isValidHostname as __isValidHostname, +} from "@smithy/protocol-http"; +import { + collectBody, + dateToUtcString as __dateToUtcString, + decorateServiceException as __decorateServiceException, + expectNonNull as __expectNonNull, + expectObject as __expectObject, + expectString as __expectString, + expectUnion as __expectUnion, + extendedEncodeURIComponent as __extendedEncodeURIComponent, + getArrayIfSingleItem as __getArrayIfSingleItem, + isSerializableHeaderValue, + map, + parseBoolean as __parseBoolean, + parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, + parseRfc7231DateTime as __parseRfc7231DateTime, + quoteHeader as __quoteHeader, + resolvedPath as __resolvedPath, + serializeDateTime as __serializeDateTime, + strictParseInt32 as __strictParseInt32, + strictParseLong as __strictParseLong, + withBaseException, +} from "@smithy/smithy-client"; +import { + Endpoint as __Endpoint, + EventStreamSerdeContext as __EventStreamSerdeContext, + ResponseMetadata as __ResponseMetadata, + SdkStreamSerdeContext as __SdkStreamSerdeContext, + SerdeContext as __SerdeContext, +} from "@smithy/types"; +import { v4 as generateIdempotencyToken } from "uuid"; + +import { + AbortMultipartUploadCommandInput, + AbortMultipartUploadCommandOutput, +} from "../commands/AbortMultipartUploadCommand"; +import { + CompleteMultipartUploadCommandInput, + CompleteMultipartUploadCommandOutput, +} from "../commands/CompleteMultipartUploadCommand"; +import { CopyObjectCommandInput, CopyObjectCommandOutput } from "../commands/CopyObjectCommand"; +import { CreateBucketCommandInput, CreateBucketCommandOutput } from "../commands/CreateBucketCommand"; +import { + CreateBucketMetadataConfigurationCommandInput, + CreateBucketMetadataConfigurationCommandOutput, +} from "../commands/CreateBucketMetadataConfigurationCommand"; +import { + CreateBucketMetadataTableConfigurationCommandInput, + CreateBucketMetadataTableConfigurationCommandOutput, +} from "../commands/CreateBucketMetadataTableConfigurationCommand"; +import { + CreateMultipartUploadCommandInput, + CreateMultipartUploadCommandOutput, +} from "../commands/CreateMultipartUploadCommand"; +import { CreateSessionCommandInput, CreateSessionCommandOutput } from "../commands/CreateSessionCommand"; +import { + DeleteBucketAnalyticsConfigurationCommandInput, + DeleteBucketAnalyticsConfigurationCommandOutput, +} from "../commands/DeleteBucketAnalyticsConfigurationCommand"; +import { DeleteBucketCommandInput, DeleteBucketCommandOutput } from "../commands/DeleteBucketCommand"; +import { DeleteBucketCorsCommandInput, DeleteBucketCorsCommandOutput } from "../commands/DeleteBucketCorsCommand"; +import { + DeleteBucketEncryptionCommandInput, + DeleteBucketEncryptionCommandOutput, +} from "../commands/DeleteBucketEncryptionCommand"; +import { + DeleteBucketIntelligentTieringConfigurationCommandInput, + DeleteBucketIntelligentTieringConfigurationCommandOutput, +} from "../commands/DeleteBucketIntelligentTieringConfigurationCommand"; +import { + DeleteBucketInventoryConfigurationCommandInput, + DeleteBucketInventoryConfigurationCommandOutput, +} from "../commands/DeleteBucketInventoryConfigurationCommand"; +import { + DeleteBucketLifecycleCommandInput, + DeleteBucketLifecycleCommandOutput, +} from "../commands/DeleteBucketLifecycleCommand"; +import { + DeleteBucketMetadataConfigurationCommandInput, + DeleteBucketMetadataConfigurationCommandOutput, +} from "../commands/DeleteBucketMetadataConfigurationCommand"; +import { + DeleteBucketMetadataTableConfigurationCommandInput, + DeleteBucketMetadataTableConfigurationCommandOutput, +} from "../commands/DeleteBucketMetadataTableConfigurationCommand"; +import { + DeleteBucketMetricsConfigurationCommandInput, + DeleteBucketMetricsConfigurationCommandOutput, +} from "../commands/DeleteBucketMetricsConfigurationCommand"; +import { + DeleteBucketOwnershipControlsCommandInput, + DeleteBucketOwnershipControlsCommandOutput, +} from "../commands/DeleteBucketOwnershipControlsCommand"; +import { DeleteBucketPolicyCommandInput, DeleteBucketPolicyCommandOutput } from "../commands/DeleteBucketPolicyCommand"; +import { + DeleteBucketReplicationCommandInput, + DeleteBucketReplicationCommandOutput, +} from "../commands/DeleteBucketReplicationCommand"; +import { + DeleteBucketTaggingCommandInput, + DeleteBucketTaggingCommandOutput, +} from "../commands/DeleteBucketTaggingCommand"; +import { + DeleteBucketWebsiteCommandInput, + DeleteBucketWebsiteCommandOutput, +} from "../commands/DeleteBucketWebsiteCommand"; +import { DeleteObjectCommandInput, DeleteObjectCommandOutput } from "../commands/DeleteObjectCommand"; +import { DeleteObjectsCommandInput, DeleteObjectsCommandOutput } from "../commands/DeleteObjectsCommand"; +import { + DeleteObjectTaggingCommandInput, + DeleteObjectTaggingCommandOutput, +} from "../commands/DeleteObjectTaggingCommand"; +import { + DeletePublicAccessBlockCommandInput, + DeletePublicAccessBlockCommandOutput, +} from "../commands/DeletePublicAccessBlockCommand"; +import { + GetBucketAccelerateConfigurationCommandInput, + GetBucketAccelerateConfigurationCommandOutput, +} from "../commands/GetBucketAccelerateConfigurationCommand"; +import { GetBucketAclCommandInput, GetBucketAclCommandOutput } from "../commands/GetBucketAclCommand"; +import { + GetBucketAnalyticsConfigurationCommandInput, + GetBucketAnalyticsConfigurationCommandOutput, +} from "../commands/GetBucketAnalyticsConfigurationCommand"; +import { GetBucketCorsCommandInput, GetBucketCorsCommandOutput } from "../commands/GetBucketCorsCommand"; +import { + GetBucketEncryptionCommandInput, + GetBucketEncryptionCommandOutput, +} from "../commands/GetBucketEncryptionCommand"; +import { + GetBucketIntelligentTieringConfigurationCommandInput, + GetBucketIntelligentTieringConfigurationCommandOutput, +} from "../commands/GetBucketIntelligentTieringConfigurationCommand"; +import { + GetBucketInventoryConfigurationCommandInput, + GetBucketInventoryConfigurationCommandOutput, +} from "../commands/GetBucketInventoryConfigurationCommand"; +import { + GetBucketLifecycleConfigurationCommandInput, + GetBucketLifecycleConfigurationCommandOutput, +} from "../commands/GetBucketLifecycleConfigurationCommand"; +import { GetBucketLocationCommandInput, GetBucketLocationCommandOutput } from "../commands/GetBucketLocationCommand"; +import { GetBucketLoggingCommandInput, GetBucketLoggingCommandOutput } from "../commands/GetBucketLoggingCommand"; +import { + GetBucketMetadataConfigurationCommandInput, + GetBucketMetadataConfigurationCommandOutput, +} from "../commands/GetBucketMetadataConfigurationCommand"; +import { + GetBucketMetadataTableConfigurationCommandInput, + GetBucketMetadataTableConfigurationCommandOutput, +} from "../commands/GetBucketMetadataTableConfigurationCommand"; +import { + GetBucketMetricsConfigurationCommandInput, + GetBucketMetricsConfigurationCommandOutput, +} from "../commands/GetBucketMetricsConfigurationCommand"; +import { + GetBucketNotificationConfigurationCommandInput, + GetBucketNotificationConfigurationCommandOutput, +} from "../commands/GetBucketNotificationConfigurationCommand"; +import { + GetBucketOwnershipControlsCommandInput, + GetBucketOwnershipControlsCommandOutput, +} from "../commands/GetBucketOwnershipControlsCommand"; +import { GetBucketPolicyCommandInput, GetBucketPolicyCommandOutput } from "../commands/GetBucketPolicyCommand"; +import { + GetBucketPolicyStatusCommandInput, + GetBucketPolicyStatusCommandOutput, +} from "../commands/GetBucketPolicyStatusCommand"; +import { + GetBucketReplicationCommandInput, + GetBucketReplicationCommandOutput, +} from "../commands/GetBucketReplicationCommand"; +import { + GetBucketRequestPaymentCommandInput, + GetBucketRequestPaymentCommandOutput, +} from "../commands/GetBucketRequestPaymentCommand"; +import { GetBucketTaggingCommandInput, GetBucketTaggingCommandOutput } from "../commands/GetBucketTaggingCommand"; +import { + GetBucketVersioningCommandInput, + GetBucketVersioningCommandOutput, +} from "../commands/GetBucketVersioningCommand"; +import { GetBucketWebsiteCommandInput, GetBucketWebsiteCommandOutput } from "../commands/GetBucketWebsiteCommand"; +import { GetObjectAclCommandInput, GetObjectAclCommandOutput } from "../commands/GetObjectAclCommand"; +import { + GetObjectAttributesCommandInput, + GetObjectAttributesCommandOutput, +} from "../commands/GetObjectAttributesCommand"; +import { GetObjectCommandInput, GetObjectCommandOutput } from "../commands/GetObjectCommand"; +import { GetObjectLegalHoldCommandInput, GetObjectLegalHoldCommandOutput } from "../commands/GetObjectLegalHoldCommand"; +import { + GetObjectLockConfigurationCommandInput, + GetObjectLockConfigurationCommandOutput, +} from "../commands/GetObjectLockConfigurationCommand"; +import { GetObjectRetentionCommandInput, GetObjectRetentionCommandOutput } from "../commands/GetObjectRetentionCommand"; +import { GetObjectTaggingCommandInput, GetObjectTaggingCommandOutput } from "../commands/GetObjectTaggingCommand"; +import { GetObjectTorrentCommandInput, GetObjectTorrentCommandOutput } from "../commands/GetObjectTorrentCommand"; +import { + GetPublicAccessBlockCommandInput, + GetPublicAccessBlockCommandOutput, +} from "../commands/GetPublicAccessBlockCommand"; +import { HeadBucketCommandInput, HeadBucketCommandOutput } from "../commands/HeadBucketCommand"; +import { HeadObjectCommandInput, HeadObjectCommandOutput } from "../commands/HeadObjectCommand"; +import { + ListBucketAnalyticsConfigurationsCommandInput, + ListBucketAnalyticsConfigurationsCommandOutput, +} from "../commands/ListBucketAnalyticsConfigurationsCommand"; +import { + ListBucketIntelligentTieringConfigurationsCommandInput, + ListBucketIntelligentTieringConfigurationsCommandOutput, +} from "../commands/ListBucketIntelligentTieringConfigurationsCommand"; +import { + ListBucketInventoryConfigurationsCommandInput, + ListBucketInventoryConfigurationsCommandOutput, +} from "../commands/ListBucketInventoryConfigurationsCommand"; +import { + ListBucketMetricsConfigurationsCommandInput, + ListBucketMetricsConfigurationsCommandOutput, +} from "../commands/ListBucketMetricsConfigurationsCommand"; +import { ListBucketsCommandInput, ListBucketsCommandOutput } from "../commands/ListBucketsCommand"; +import { + ListDirectoryBucketsCommandInput, + ListDirectoryBucketsCommandOutput, +} from "../commands/ListDirectoryBucketsCommand"; +import { + ListMultipartUploadsCommandInput, + ListMultipartUploadsCommandOutput, +} from "../commands/ListMultipartUploadsCommand"; +import { ListObjectsCommandInput, ListObjectsCommandOutput } from "../commands/ListObjectsCommand"; +import { ListObjectsV2CommandInput, ListObjectsV2CommandOutput } from "../commands/ListObjectsV2Command"; +import { ListObjectVersionsCommandInput, ListObjectVersionsCommandOutput } from "../commands/ListObjectVersionsCommand"; +import { ListPartsCommandInput, ListPartsCommandOutput } from "../commands/ListPartsCommand"; +import { + PutBucketAccelerateConfigurationCommandInput, + PutBucketAccelerateConfigurationCommandOutput, +} from "../commands/PutBucketAccelerateConfigurationCommand"; +import { PutBucketAclCommandInput, PutBucketAclCommandOutput } from "../commands/PutBucketAclCommand"; +import { + PutBucketAnalyticsConfigurationCommandInput, + PutBucketAnalyticsConfigurationCommandOutput, +} from "../commands/PutBucketAnalyticsConfigurationCommand"; +import { PutBucketCorsCommandInput, PutBucketCorsCommandOutput } from "../commands/PutBucketCorsCommand"; +import { + PutBucketEncryptionCommandInput, + PutBucketEncryptionCommandOutput, +} from "../commands/PutBucketEncryptionCommand"; +import { + PutBucketIntelligentTieringConfigurationCommandInput, + PutBucketIntelligentTieringConfigurationCommandOutput, +} from "../commands/PutBucketIntelligentTieringConfigurationCommand"; +import { + PutBucketInventoryConfigurationCommandInput, + PutBucketInventoryConfigurationCommandOutput, +} from "../commands/PutBucketInventoryConfigurationCommand"; +import { + PutBucketLifecycleConfigurationCommandInput, + PutBucketLifecycleConfigurationCommandOutput, +} from "../commands/PutBucketLifecycleConfigurationCommand"; +import { PutBucketLoggingCommandInput, PutBucketLoggingCommandOutput } from "../commands/PutBucketLoggingCommand"; +import { + PutBucketMetricsConfigurationCommandInput, + PutBucketMetricsConfigurationCommandOutput, +} from "../commands/PutBucketMetricsConfigurationCommand"; +import { + PutBucketNotificationConfigurationCommandInput, + PutBucketNotificationConfigurationCommandOutput, +} from "../commands/PutBucketNotificationConfigurationCommand"; +import { + PutBucketOwnershipControlsCommandInput, + PutBucketOwnershipControlsCommandOutput, +} from "../commands/PutBucketOwnershipControlsCommand"; +import { PutBucketPolicyCommandInput, PutBucketPolicyCommandOutput } from "../commands/PutBucketPolicyCommand"; +import { + PutBucketReplicationCommandInput, + PutBucketReplicationCommandOutput, +} from "../commands/PutBucketReplicationCommand"; +import { + PutBucketRequestPaymentCommandInput, + PutBucketRequestPaymentCommandOutput, +} from "../commands/PutBucketRequestPaymentCommand"; +import { PutBucketTaggingCommandInput, PutBucketTaggingCommandOutput } from "../commands/PutBucketTaggingCommand"; +import { + PutBucketVersioningCommandInput, + PutBucketVersioningCommandOutput, +} from "../commands/PutBucketVersioningCommand"; +import { PutBucketWebsiteCommandInput, PutBucketWebsiteCommandOutput } from "../commands/PutBucketWebsiteCommand"; +import { PutObjectAclCommandInput, PutObjectAclCommandOutput } from "../commands/PutObjectAclCommand"; +import { PutObjectCommandInput, PutObjectCommandOutput } from "../commands/PutObjectCommand"; +import { PutObjectLegalHoldCommandInput, PutObjectLegalHoldCommandOutput } from "../commands/PutObjectLegalHoldCommand"; +import { + PutObjectLockConfigurationCommandInput, + PutObjectLockConfigurationCommandOutput, +} from "../commands/PutObjectLockConfigurationCommand"; +import { PutObjectRetentionCommandInput, PutObjectRetentionCommandOutput } from "../commands/PutObjectRetentionCommand"; +import { PutObjectTaggingCommandInput, PutObjectTaggingCommandOutput } from "../commands/PutObjectTaggingCommand"; +import { + PutPublicAccessBlockCommandInput, + PutPublicAccessBlockCommandOutput, +} from "../commands/PutPublicAccessBlockCommand"; +import { RenameObjectCommandInput, RenameObjectCommandOutput } from "../commands/RenameObjectCommand"; +import { RestoreObjectCommandInput, RestoreObjectCommandOutput } from "../commands/RestoreObjectCommand"; +import { + SelectObjectContentCommandInput, + SelectObjectContentCommandOutput, +} from "../commands/SelectObjectContentCommand"; +import { + UpdateBucketMetadataInventoryTableConfigurationCommandInput, + UpdateBucketMetadataInventoryTableConfigurationCommandOutput, +} from "../commands/UpdateBucketMetadataInventoryTableConfigurationCommand"; +import { + UpdateBucketMetadataJournalTableConfigurationCommandInput, + UpdateBucketMetadataJournalTableConfigurationCommandOutput, +} from "../commands/UpdateBucketMetadataJournalTableConfigurationCommand"; +import { UploadPartCommandInput, UploadPartCommandOutput } from "../commands/UploadPartCommand"; +import { UploadPartCopyCommandInput, UploadPartCopyCommandOutput } from "../commands/UploadPartCopyCommand"; +import { + WriteGetObjectResponseCommandInput, + WriteGetObjectResponseCommandOutput, +} from "../commands/WriteGetObjectResponseCommand"; +import { + _Error, + AbortIncompleteMultipartUpload, + AccelerateConfiguration, + AccessControlPolicy, + AccessControlTranslation, + AnalyticsAndOperator, + AnalyticsConfiguration, + AnalyticsExportDestination, + AnalyticsFilter, + AnalyticsS3BucketDestination, + Bucket, + BucketAlreadyExists, + BucketAlreadyOwnedByYou, + BucketInfo, + Checksum, + ChecksumAlgorithm, + CommonPrefix, + CompletedMultipartUpload, + CompletedPart, + Condition, + CopyObjectResult, + CORSRule, + CreateBucketConfiguration, + DefaultRetention, + Delete, + DeletedObject, + DeleteMarkerReplication, + Destination, + DestinationResult, + EncryptionConfiguration, + ErrorDetails, + ErrorDocument, + Event, + EventBridgeConfiguration, + ExistingObjectReplication, + FilterRule, + GetBucketMetadataConfigurationResult, + GetBucketMetadataTableConfigurationResult, + GetObjectAttributesParts, + Grant, + Grantee, + IndexDocument, + Initiator, + IntelligentTieringAndOperator, + IntelligentTieringConfiguration, + IntelligentTieringFilter, + InvalidObjectState, + InventoryConfiguration, + InventoryDestination, + InventoryEncryption, + InventoryFilter, + InventoryOptionalField, + InventoryS3BucketDestination, + InventorySchedule, + InventoryTableConfiguration, + InventoryTableConfigurationResult, + JournalTableConfiguration, + JournalTableConfigurationResult, + LambdaFunctionConfiguration, + LifecycleExpiration, + LifecycleRule, + LifecycleRuleAndOperator, + LifecycleRuleFilter, + LocationInfo, + LoggingEnabled, + MetadataConfiguration, + MetadataConfigurationResult, + MetadataTableConfiguration, + MetadataTableConfigurationResult, + MetadataTableEncryptionConfiguration, + Metrics, + MetricsAndOperator, + MetricsConfiguration, + MetricsFilter, + MultipartUpload, + NoncurrentVersionExpiration, + NoncurrentVersionTransition, + NoSuchBucket, + NoSuchKey, + NoSuchUpload, + NotFound, + NotificationConfiguration, + NotificationConfigurationFilter, + ObjectIdentifier, + ObjectLockConfiguration, + ObjectLockLegalHold, + ObjectLockRetention, + ObjectLockRule, + ObjectNotInActiveTierError, + ObjectPart, + Owner, + OwnershipControls, + OwnershipControlsRule, + PartitionedPrefix, + PolicyStatus, + PublicAccessBlockConfiguration, + QueueConfiguration, + RecordExpiration, + Redirect, + RedirectAllRequestsTo, + ReplicaModifications, + ReplicationConfiguration, + ReplicationRule, + ReplicationRuleAndOperator, + ReplicationRuleFilter, + ReplicationTime, + ReplicationTimeValue, + RestoreStatus, + RoutingRule, + S3KeyFilter, + S3TablesDestination, + S3TablesDestinationResult, + ServerSideEncryptionByDefault, + ServerSideEncryptionConfiguration, + ServerSideEncryptionRule, + SessionCredentials, + SimplePrefix, + SourceSelectionCriteria, + SSEKMS, + SseKmsEncryptedObjects, + SSES3, + StorageClassAnalysis, + StorageClassAnalysisDataExport, + Tag, + TargetGrant, + TargetObjectKeyFormat, + Tiering, + TopicConfiguration, + Transition, +} from "../models/models_0"; +import { + _Object, + BucketLifecycleConfiguration, + BucketLoggingStatus, + ContinuationEvent, + CopyPartResult, + CORSConfiguration, + CSVInput, + CSVOutput, + DeleteMarkerEntry, + Encryption, + EncryptionTypeMismatch, + EndEvent, + GlacierJobParameters, + IdempotencyParameterMismatch, + InputSerialization, + InvalidRequest, + InvalidWriteOffset, + InventoryTableConfigurationUpdates, + JournalTableConfigurationUpdates, + JSONInput, + JSONOutput, + MetadataEntry, + ObjectAlreadyInActiveTierError, + ObjectVersion, + OutputLocation, + OutputSerialization, + ParquetInput, + Part, + Progress, + ProgressEvent, + RecordsEvent, + RequestPaymentConfiguration, + RequestProgress, + RestoreRequest, + S3Location, + ScanRange, + SelectObjectContentEventStream, + SelectParameters, + Stats, + StatsEvent, + Tagging, + TooManyParts, + VersioningConfiguration, + WebsiteConfiguration, +} from "../models/models_1"; +import { S3ServiceException as __BaseException } from "../models/S3ServiceException"; + +/** + * serializeAws_restXmlAbortMultipartUploadCommand + */ +export const se_AbortMultipartUploadCommand = async ( + input: AbortMultipartUploadCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xaimit]: [() => isSerializableHeaderValue(input[_IMIT]), () => __dateToUtcString(input[_IMIT]!).toString()], + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_xi]: [, "AbortMultipartUpload"], + [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlCompleteMultipartUploadCommand + */ +export const se_CompleteMultipartUploadCommand = async ( + input: CompleteMultipartUploadCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xacc]: input[_CCRC]!, + [_xacc_]: input[_CCRCC]!, + [_xacc__]: input[_CCRCNVME]!, + [_xacs]: input[_CSHA]!, + [_xacs_]: input[_CSHAh]!, + [_xact]: input[_CT]!, + [_xamos]: [() => isSerializableHeaderValue(input[_MOS]), () => input[_MOS]!.toString()], + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_im]: input[_IM]!, + [_inm]: input[_INM]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], + }); + let body: any; + let contents: any; + if (input.MultipartUpload !== undefined) { + contents = se_CompletedMultipartUpload(input.MultipartUpload, context); + contents = contents.n("CompleteMultipartUpload"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("POST").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlCopyObjectCommand + */ +export const se_CopyObjectCommand = async ( + input: CopyObjectCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + ...(input.Metadata !== undefined && + Object.keys(input.Metadata).reduce((acc: any, suffix: string) => { + acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix]; + return acc; + }, {})), + [_xaa]: input[_ACL]!, + [_cc]: input[_CC]!, + [_xaca]: input[_CA]!, + [_cd]: input[_CD]!, + [_ce]: input[_CE]!, + [_cl]: input[_CL]!, + [_ct]: input[_CTo]!, + [_xacs__]: input[_CS]!, + [_xacsim]: input[_CSIM]!, + [_xacsims]: [() => isSerializableHeaderValue(input[_CSIMS]), () => __dateToUtcString(input[_CSIMS]!).toString()], + [_xacsinm]: input[_CSINM]!, + [_xacsius]: [() => isSerializableHeaderValue(input[_CSIUS]), () => __dateToUtcString(input[_CSIUS]!).toString()], + [_e]: [() => isSerializableHeaderValue(input[_E]), () => __dateToUtcString(input[_E]!).toString()], + [_xagfc]: input[_GFC]!, + [_xagr]: input[_GR]!, + [_xagra]: input[_GRACP]!, + [_xagwa]: input[_GWACP]!, + [_xamd]: input[_MD]!, + [_xatd]: input[_TD]!, + [_xasse]: input[_SSE]!, + [_xasc]: input[_SC]!, + [_xawrl]: input[_WRL]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xasseakki]: input[_SSEKMSKI]!, + [_xassec]: input[_SSEKMSEC]!, + [_xassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()], + [_xacssseca]: input[_CSSSECA]!, + [_xacssseck]: input[_CSSSECK]!, + [_xacssseckm]: input[_CSSSECKMD]!, + [_xarp]: input[_RP]!, + [_xat]: input[_T]!, + [_xaolm]: input[_OLM]!, + [_xaolrud]: [() => isSerializableHeaderValue(input[_OLRUD]), () => __serializeDateTime(input[_OLRUD]!).toString()], + [_xaollh]: input[_OLLHS]!, + [_xaebo]: input[_EBO]!, + [_xasebo]: input[_ESBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_xi]: [, "CopyObject"], + }); + let body: any; + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlCreateBucketCommand + */ +export const se_CreateBucketCommand = async ( + input: CreateBucketCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xaa]: input[_ACL]!, + [_xagfc]: input[_GFC]!, + [_xagr]: input[_GR]!, + [_xagra]: input[_GRACP]!, + [_xagw]: input[_GW]!, + [_xagwa]: input[_GWACP]!, + [_xabole]: [() => isSerializableHeaderValue(input[_OLEFB]), () => input[_OLEFB]!.toString()], + [_xaoo]: input[_OO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + let body: any; + let contents: any; + if (input.CreateBucketConfiguration !== undefined) { + contents = se_CreateBucketConfiguration(input.CreateBucketConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlCreateBucketMetadataConfigurationCommand + */ +export const se_CreateBucketMetadataConfigurationCommand = async ( + input: CreateBucketMetadataConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_mC]: [, ""], + }); + let body: any; + let contents: any; + if (input.MetadataConfiguration !== undefined) { + contents = se_MetadataConfiguration(input.MetadataConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("POST").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlCreateBucketMetadataTableConfigurationCommand + */ +export const se_CreateBucketMetadataTableConfigurationCommand = async ( + input: CreateBucketMetadataTableConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_mT]: [, ""], + }); + let body: any; + let contents: any; + if (input.MetadataTableConfiguration !== undefined) { + contents = se_MetadataTableConfiguration(input.MetadataTableConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("POST").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlCreateMultipartUploadCommand + */ +export const se_CreateMultipartUploadCommand = async ( + input: CreateMultipartUploadCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + ...(input.Metadata !== undefined && + Object.keys(input.Metadata).reduce((acc: any, suffix: string) => { + acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix]; + return acc; + }, {})), + [_xaa]: input[_ACL]!, + [_cc]: input[_CC]!, + [_cd]: input[_CD]!, + [_ce]: input[_CE]!, + [_cl]: input[_CL]!, + [_ct]: input[_CTo]!, + [_e]: [() => isSerializableHeaderValue(input[_E]), () => __dateToUtcString(input[_E]!).toString()], + [_xagfc]: input[_GFC]!, + [_xagr]: input[_GR]!, + [_xagra]: input[_GRACP]!, + [_xagwa]: input[_GWACP]!, + [_xasse]: input[_SSE]!, + [_xasc]: input[_SC]!, + [_xawrl]: input[_WRL]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xasseakki]: input[_SSEKMSKI]!, + [_xassec]: input[_SSEKMSEC]!, + [_xassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()], + [_xarp]: input[_RP]!, + [_xat]: input[_T]!, + [_xaolm]: input[_OLM]!, + [_xaolrud]: [() => isSerializableHeaderValue(input[_OLRUD]), () => __serializeDateTime(input[_OLRUD]!).toString()], + [_xaollh]: input[_OLLHS]!, + [_xaebo]: input[_EBO]!, + [_xaca]: input[_CA]!, + [_xact]: input[_CT]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_u]: [, ""], + }); + let body: any; + b.m("POST").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlCreateSessionCommand + */ +export const se_CreateSessionCommand = async ( + input: CreateSessionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xacsm]: input[_SM]!, + [_xasse]: input[_SSE]!, + [_xasseakki]: input[_SSEKMSKI]!, + [_xassec]: input[_SSEKMSEC]!, + [_xassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()], + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_s]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketCommand + */ +export const se_DeleteBucketCommand = async ( + input: DeleteBucketCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + let body: any; + b.m("DELETE").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand + */ +export const se_DeleteBucketAnalyticsConfigurationCommand = async ( + input: DeleteBucketAnalyticsConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_a]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketCorsCommand + */ +export const se_DeleteBucketCorsCommand = async ( + input: DeleteBucketCorsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_c]: [, ""], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketEncryptionCommand + */ +export const se_DeleteBucketEncryptionCommand = async ( + input: DeleteBucketEncryptionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_en]: [, ""], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand + */ +export const se_DeleteBucketIntelligentTieringConfigurationCommand = async ( + input: DeleteBucketIntelligentTieringConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_it]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketInventoryConfigurationCommand + */ +export const se_DeleteBucketInventoryConfigurationCommand = async ( + input: DeleteBucketInventoryConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_in]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketLifecycleCommand + */ +export const se_DeleteBucketLifecycleCommand = async ( + input: DeleteBucketLifecycleCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_l]: [, ""], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketMetadataConfigurationCommand + */ +export const se_DeleteBucketMetadataConfigurationCommand = async ( + input: DeleteBucketMetadataConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_mC]: [, ""], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketMetadataTableConfigurationCommand + */ +export const se_DeleteBucketMetadataTableConfigurationCommand = async ( + input: DeleteBucketMetadataTableConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_mT]: [, ""], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketMetricsConfigurationCommand + */ +export const se_DeleteBucketMetricsConfigurationCommand = async ( + input: DeleteBucketMetricsConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_m]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketOwnershipControlsCommand + */ +export const se_DeleteBucketOwnershipControlsCommand = async ( + input: DeleteBucketOwnershipControlsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_oC]: [, ""], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketPolicyCommand + */ +export const se_DeleteBucketPolicyCommand = async ( + input: DeleteBucketPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_p]: [, ""], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketReplicationCommand + */ +export const se_DeleteBucketReplicationCommand = async ( + input: DeleteBucketReplicationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_r]: [, ""], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketTaggingCommand + */ +export const se_DeleteBucketTaggingCommand = async ( + input: DeleteBucketTaggingCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_t]: [, ""], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteBucketWebsiteCommand + */ +export const se_DeleteBucketWebsiteCommand = async ( + input: DeleteBucketWebsiteCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_w]: [, ""], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteObjectCommand + */ +export const se_DeleteObjectCommand = async ( + input: DeleteObjectCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xam]: input[_MFA]!, + [_xarp]: input[_RP]!, + [_xabgr]: [() => isSerializableHeaderValue(input[_BGR]), () => input[_BGR]!.toString()], + [_xaebo]: input[_EBO]!, + [_im]: input[_IM]!, + [_xaimlmt]: [() => isSerializableHeaderValue(input[_IMLMT]), () => __dateToUtcString(input[_IMLMT]!).toString()], + [_xaims]: [() => isSerializableHeaderValue(input[_IMS]), () => input[_IMS]!.toString()], + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_xi]: [, "DeleteObject"], + [_vI]: [, input[_VI]!], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteObjectsCommand + */ +export const se_DeleteObjectsCommand = async ( + input: DeleteObjectsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xam]: input[_MFA]!, + [_xarp]: input[_RP]!, + [_xabgr]: [() => isSerializableHeaderValue(input[_BGR]), () => input[_BGR]!.toString()], + [_xaebo]: input[_EBO]!, + [_xasca]: input[_CA]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_d]: [, ""], + }); + let body: any; + let contents: any; + if (input.Delete !== undefined) { + contents = se_Delete(input.Delete, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("POST").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeleteObjectTaggingCommand + */ +export const se_DeleteObjectTaggingCommand = async ( + input: DeleteObjectTaggingCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_t]: [, ""], + [_vI]: [, input[_VI]!], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlDeletePublicAccessBlockCommand + */ +export const se_DeletePublicAccessBlockCommand = async ( + input: DeletePublicAccessBlockCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_pAB]: [, ""], + }); + let body: any; + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketAccelerateConfigurationCommand + */ +export const se_GetBucketAccelerateConfigurationCommand = async ( + input: GetBucketAccelerateConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + [_xarp]: input[_RP]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_ac]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketAclCommand + */ +export const se_GetBucketAclCommand = async ( + input: GetBucketAclCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_acl]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketAnalyticsConfigurationCommand + */ +export const se_GetBucketAnalyticsConfigurationCommand = async ( + input: GetBucketAnalyticsConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_a]: [, ""], + [_xi]: [, "GetBucketAnalyticsConfiguration"], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketCorsCommand + */ +export const se_GetBucketCorsCommand = async ( + input: GetBucketCorsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_c]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketEncryptionCommand + */ +export const se_GetBucketEncryptionCommand = async ( + input: GetBucketEncryptionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_en]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketIntelligentTieringConfigurationCommand + */ +export const se_GetBucketIntelligentTieringConfigurationCommand = async ( + input: GetBucketIntelligentTieringConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_it]: [, ""], + [_xi]: [, "GetBucketIntelligentTieringConfiguration"], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketInventoryConfigurationCommand + */ +export const se_GetBucketInventoryConfigurationCommand = async ( + input: GetBucketInventoryConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_in]: [, ""], + [_xi]: [, "GetBucketInventoryConfiguration"], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketLifecycleConfigurationCommand + */ +export const se_GetBucketLifecycleConfigurationCommand = async ( + input: GetBucketLifecycleConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_l]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketLocationCommand + */ +export const se_GetBucketLocationCommand = async ( + input: GetBucketLocationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_lo]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketLoggingCommand + */ +export const se_GetBucketLoggingCommand = async ( + input: GetBucketLoggingCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_log]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketMetadataConfigurationCommand + */ +export const se_GetBucketMetadataConfigurationCommand = async ( + input: GetBucketMetadataConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_mC]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketMetadataTableConfigurationCommand + */ +export const se_GetBucketMetadataTableConfigurationCommand = async ( + input: GetBucketMetadataTableConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_mT]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketMetricsConfigurationCommand + */ +export const se_GetBucketMetricsConfigurationCommand = async ( + input: GetBucketMetricsConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_m]: [, ""], + [_xi]: [, "GetBucketMetricsConfiguration"], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketNotificationConfigurationCommand + */ +export const se_GetBucketNotificationConfigurationCommand = async ( + input: GetBucketNotificationConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_n]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketOwnershipControlsCommand + */ +export const se_GetBucketOwnershipControlsCommand = async ( + input: GetBucketOwnershipControlsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_oC]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketPolicyCommand + */ +export const se_GetBucketPolicyCommand = async ( + input: GetBucketPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_p]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketPolicyStatusCommand + */ +export const se_GetBucketPolicyStatusCommand = async ( + input: GetBucketPolicyStatusCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_pS]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketReplicationCommand + */ +export const se_GetBucketReplicationCommand = async ( + input: GetBucketReplicationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_r]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketRequestPaymentCommand + */ +export const se_GetBucketRequestPaymentCommand = async ( + input: GetBucketRequestPaymentCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_rP]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketTaggingCommand + */ +export const se_GetBucketTaggingCommand = async ( + input: GetBucketTaggingCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_t]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketVersioningCommand + */ +export const se_GetBucketVersioningCommand = async ( + input: GetBucketVersioningCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_v]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetBucketWebsiteCommand + */ +export const se_GetBucketWebsiteCommand = async ( + input: GetBucketWebsiteCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_w]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetObjectCommand + */ +export const se_GetObjectCommand = async ( + input: GetObjectCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_im]: input[_IM]!, + [_ims]: [() => isSerializableHeaderValue(input[_IMSf]), () => __dateToUtcString(input[_IMSf]!).toString()], + [_inm]: input[_INM]!, + [_ius]: [() => isSerializableHeaderValue(input[_IUS]), () => __dateToUtcString(input[_IUS]!).toString()], + [_ra]: input[_R]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xacm]: input[_CM]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_xi]: [, "GetObject"], + [_rcc]: [, input[_RCC]!], + [_rcd]: [, input[_RCD]!], + [_rce]: [, input[_RCE]!], + [_rcl]: [, input[_RCL]!], + [_rct]: [, input[_RCT]!], + [_re]: [() => input.ResponseExpires !== void 0, () => __dateToUtcString(input[_RE]!).toString()], + [_vI]: [, input[_VI]!], + [_pN]: [() => input.PartNumber !== void 0, () => input[_PN]!.toString()], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetObjectAclCommand + */ +export const se_GetObjectAclCommand = async ( + input: GetObjectAclCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_acl]: [, ""], + [_vI]: [, input[_VI]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetObjectAttributesCommand + */ +export const se_GetObjectAttributesCommand = async ( + input: GetObjectAttributesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xamp]: [() => isSerializableHeaderValue(input[_MP]), () => input[_MP]!.toString()], + [_xapnm]: input[_PNM]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xaoa]: [() => isSerializableHeaderValue(input[_OA]), () => (input[_OA]! || []).map(__quoteHeader).join(", ")], + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_at]: [, ""], + [_vI]: [, input[_VI]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetObjectLegalHoldCommand + */ +export const se_GetObjectLegalHoldCommand = async ( + input: GetObjectLegalHoldCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_lh]: [, ""], + [_vI]: [, input[_VI]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetObjectLockConfigurationCommand + */ +export const se_GetObjectLockConfigurationCommand = async ( + input: GetObjectLockConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_ol]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetObjectRetentionCommand + */ +export const se_GetObjectRetentionCommand = async ( + input: GetObjectRetentionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_ret]: [, ""], + [_vI]: [, input[_VI]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetObjectTaggingCommand + */ +export const se_GetObjectTaggingCommand = async ( + input: GetObjectTaggingCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + [_xarp]: input[_RP]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_t]: [, ""], + [_vI]: [, input[_VI]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetObjectTorrentCommand + */ +export const se_GetObjectTorrentCommand = async ( + input: GetObjectTorrentCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_to]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlGetPublicAccessBlockCommand + */ +export const se_GetPublicAccessBlockCommand = async ( + input: GetPublicAccessBlockCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_pAB]: [, ""], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlHeadBucketCommand + */ +export const se_HeadBucketCommand = async ( + input: HeadBucketCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + let body: any; + b.m("HEAD").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlHeadObjectCommand + */ +export const se_HeadObjectCommand = async ( + input: HeadObjectCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_im]: input[_IM]!, + [_ims]: [() => isSerializableHeaderValue(input[_IMSf]), () => __dateToUtcString(input[_IMSf]!).toString()], + [_inm]: input[_INM]!, + [_ius]: [() => isSerializableHeaderValue(input[_IUS]), () => __dateToUtcString(input[_IUS]!).toString()], + [_ra]: input[_R]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xacm]: input[_CM]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_rcc]: [, input[_RCC]!], + [_rcd]: [, input[_RCD]!], + [_rce]: [, input[_RCE]!], + [_rcl]: [, input[_RCL]!], + [_rct]: [, input[_RCT]!], + [_re]: [() => input.ResponseExpires !== void 0, () => __dateToUtcString(input[_RE]!).toString()], + [_vI]: [, input[_VI]!], + [_pN]: [() => input.PartNumber !== void 0, () => input[_PN]!.toString()], + }); + let body: any; + b.m("HEAD").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlListBucketAnalyticsConfigurationsCommand + */ +export const se_ListBucketAnalyticsConfigurationsCommand = async ( + input: ListBucketAnalyticsConfigurationsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_a]: [, ""], + [_xi]: [, "ListBucketAnalyticsConfigurations"], + [_ct_]: [, input[_CTon]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlListBucketIntelligentTieringConfigurationsCommand + */ +export const se_ListBucketIntelligentTieringConfigurationsCommand = async ( + input: ListBucketIntelligentTieringConfigurationsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_it]: [, ""], + [_xi]: [, "ListBucketIntelligentTieringConfigurations"], + [_ct_]: [, input[_CTon]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlListBucketInventoryConfigurationsCommand + */ +export const se_ListBucketInventoryConfigurationsCommand = async ( + input: ListBucketInventoryConfigurationsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_in]: [, ""], + [_xi]: [, "ListBucketInventoryConfigurations"], + [_ct_]: [, input[_CTon]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlListBucketMetricsConfigurationsCommand + */ +export const se_ListBucketMetricsConfigurationsCommand = async ( + input: ListBucketMetricsConfigurationsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_m]: [, ""], + [_xi]: [, "ListBucketMetricsConfigurations"], + [_ct_]: [, input[_CTon]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlListBucketsCommand + */ +export const se_ListBucketsCommand = async ( + input: ListBucketsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/"); + const query: any = map({ + [_xi]: [, "ListBuckets"], + [_mb]: [() => input.MaxBuckets !== void 0, () => input[_MB]!.toString()], + [_ct_]: [, input[_CTon]!], + [_pr]: [, input[_P]!], + [_br]: [, input[_BR]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlListDirectoryBucketsCommand + */ +export const se_ListDirectoryBucketsCommand = async ( + input: ListDirectoryBucketsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/"); + const query: any = map({ + [_xi]: [, "ListDirectoryBuckets"], + [_ct_]: [, input[_CTon]!], + [_mdb]: [() => input.MaxDirectoryBuckets !== void 0, () => input[_MDB]!.toString()], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlListMultipartUploadsCommand + */ +export const se_ListMultipartUploadsCommand = async ( + input: ListMultipartUploadsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + [_xarp]: input[_RP]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_u]: [, ""], + [_de]: [, input[_D]!], + [_et]: [, input[_ET]!], + [_km]: [, input[_KM]!], + [_mu]: [() => input.MaxUploads !== void 0, () => input[_MU]!.toString()], + [_pr]: [, input[_P]!], + [_uim]: [, input[_UIM]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlListObjectsCommand + */ +export const se_ListObjectsCommand = async ( + input: ListObjectsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xaooa]: [() => isSerializableHeaderValue(input[_OOA]), () => (input[_OOA]! || []).map(__quoteHeader).join(", ")], + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_de]: [, input[_D]!], + [_et]: [, input[_ET]!], + [_ma]: [, input[_M]!], + [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK]!.toString()], + [_pr]: [, input[_P]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlListObjectsV2Command + */ +export const se_ListObjectsV2Command = async ( + input: ListObjectsV2CommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xaooa]: [() => isSerializableHeaderValue(input[_OOA]), () => (input[_OOA]! || []).map(__quoteHeader).join(", ")], + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_lt]: [, "2"], + [_de]: [, input[_D]!], + [_et]: [, input[_ET]!], + [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK]!.toString()], + [_pr]: [, input[_P]!], + [_ct_]: [, input[_CTon]!], + [_fo]: [() => input.FetchOwner !== void 0, () => input[_FO]!.toString()], + [_sa]: [, input[_SA]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlListObjectVersionsCommand + */ +export const se_ListObjectVersionsCommand = async ( + input: ListObjectVersionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xaebo]: input[_EBO]!, + [_xarp]: input[_RP]!, + [_xaooa]: [() => isSerializableHeaderValue(input[_OOA]), () => (input[_OOA]! || []).map(__quoteHeader).join(", ")], + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_ver]: [, ""], + [_de]: [, input[_D]!], + [_et]: [, input[_ET]!], + [_km]: [, input[_KM]!], + [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK]!.toString()], + [_pr]: [, input[_P]!], + [_vim]: [, input[_VIM]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlListPartsCommand + */ +export const se_ListPartsCommand = async ( + input: ListPartsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_xi]: [, "ListParts"], + [_mp]: [() => input.MaxParts !== void 0, () => input[_MP]!.toString()], + [_pnm]: [, input[_PNM]!], + [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketAccelerateConfigurationCommand + */ +export const se_PutBucketAccelerateConfigurationCommand = async ( + input: PutBucketAccelerateConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xaebo]: input[_EBO]!, + [_xasca]: input[_CA]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_ac]: [, ""], + }); + let body: any; + let contents: any; + if (input.AccelerateConfiguration !== undefined) { + contents = se_AccelerateConfiguration(input.AccelerateConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketAclCommand + */ +export const se_PutBucketAclCommand = async ( + input: PutBucketAclCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xaa]: input[_ACL]!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xagfc]: input[_GFC]!, + [_xagr]: input[_GR]!, + [_xagra]: input[_GRACP]!, + [_xagw]: input[_GW]!, + [_xagwa]: input[_GWACP]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_acl]: [, ""], + }); + let body: any; + let contents: any; + if (input.AccessControlPolicy !== undefined) { + contents = se_AccessControlPolicy(input.AccessControlPolicy, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketAnalyticsConfigurationCommand + */ +export const se_PutBucketAnalyticsConfigurationCommand = async ( + input: PutBucketAnalyticsConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_a]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], + }); + let body: any; + let contents: any; + if (input.AnalyticsConfiguration !== undefined) { + contents = se_AnalyticsConfiguration(input.AnalyticsConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketCorsCommand + */ +export const se_PutBucketCorsCommand = async ( + input: PutBucketCorsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_c]: [, ""], + }); + let body: any; + let contents: any; + if (input.CORSConfiguration !== undefined) { + contents = se_CORSConfiguration(input.CORSConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketEncryptionCommand + */ +export const se_PutBucketEncryptionCommand = async ( + input: PutBucketEncryptionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_en]: [, ""], + }); + let body: any; + let contents: any; + if (input.ServerSideEncryptionConfiguration !== undefined) { + contents = se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketIntelligentTieringConfigurationCommand + */ +export const se_PutBucketIntelligentTieringConfigurationCommand = async ( + input: PutBucketIntelligentTieringConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_it]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], + }); + let body: any; + let contents: any; + if (input.IntelligentTieringConfiguration !== undefined) { + contents = se_IntelligentTieringConfiguration(input.IntelligentTieringConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketInventoryConfigurationCommand + */ +export const se_PutBucketInventoryConfigurationCommand = async ( + input: PutBucketInventoryConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_in]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], + }); + let body: any; + let contents: any; + if (input.InventoryConfiguration !== undefined) { + contents = se_InventoryConfiguration(input.InventoryConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketLifecycleConfigurationCommand + */ +export const se_PutBucketLifecycleConfigurationCommand = async ( + input: PutBucketLifecycleConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + [_xatdmos]: input[_TDMOS]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_l]: [, ""], + }); + let body: any; + let contents: any; + if (input.LifecycleConfiguration !== undefined) { + contents = se_BucketLifecycleConfiguration(input.LifecycleConfiguration, context); + contents = contents.n("LifecycleConfiguration"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketLoggingCommand + */ +export const se_PutBucketLoggingCommand = async ( + input: PutBucketLoggingCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_log]: [, ""], + }); + let body: any; + let contents: any; + if (input.BucketLoggingStatus !== undefined) { + contents = se_BucketLoggingStatus(input.BucketLoggingStatus, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketMetricsConfigurationCommand + */ +export const se_PutBucketMetricsConfigurationCommand = async ( + input: PutBucketMetricsConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_m]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], + }); + let body: any; + let contents: any; + if (input.MetricsConfiguration !== undefined) { + contents = se_MetricsConfiguration(input.MetricsConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketNotificationConfigurationCommand + */ +export const se_PutBucketNotificationConfigurationCommand = async ( + input: PutBucketNotificationConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xaebo]: input[_EBO]!, + [_xasdv]: [() => isSerializableHeaderValue(input[_SDV]), () => input[_SDV]!.toString()], + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_n]: [, ""], + }); + let body: any; + let contents: any; + if (input.NotificationConfiguration !== undefined) { + contents = se_NotificationConfiguration(input.NotificationConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketOwnershipControlsCommand + */ +export const se_PutBucketOwnershipControlsCommand = async ( + input: PutBucketOwnershipControlsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xaebo]: input[_EBO]!, + [_xasca]: input[_CA]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_oC]: [, ""], + }); + let body: any; + let contents: any; + if (input.OwnershipControls !== undefined) { + contents = se_OwnershipControls(input.OwnershipControls, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketPolicyCommand + */ +export const se_PutBucketPolicyCommand = async ( + input: PutBucketPolicyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "text/plain", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xacrsba]: [() => isSerializableHeaderValue(input[_CRSBA]), () => input[_CRSBA]!.toString()], + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_p]: [, ""], + }); + let body: any; + let contents: any; + if (input.Policy !== undefined) { + contents = input.Policy; + body = contents; + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketReplicationCommand + */ +export const se_PutBucketReplicationCommand = async ( + input: PutBucketReplicationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xabolt]: input[_To]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_r]: [, ""], + }); + let body: any; + let contents: any; + if (input.ReplicationConfiguration !== undefined) { + contents = se_ReplicationConfiguration(input.ReplicationConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketRequestPaymentCommand + */ +export const se_PutBucketRequestPaymentCommand = async ( + input: PutBucketRequestPaymentCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_rP]: [, ""], + }); + let body: any; + let contents: any; + if (input.RequestPaymentConfiguration !== undefined) { + contents = se_RequestPaymentConfiguration(input.RequestPaymentConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketTaggingCommand + */ +export const se_PutBucketTaggingCommand = async ( + input: PutBucketTaggingCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_t]: [, ""], + }); + let body: any; + let contents: any; + if (input.Tagging !== undefined) { + contents = se_Tagging(input.Tagging, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketVersioningCommand + */ +export const se_PutBucketVersioningCommand = async ( + input: PutBucketVersioningCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xam]: input[_MFA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_v]: [, ""], + }); + let body: any; + let contents: any; + if (input.VersioningConfiguration !== undefined) { + contents = se_VersioningConfiguration(input.VersioningConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutBucketWebsiteCommand + */ +export const se_PutBucketWebsiteCommand = async ( + input: PutBucketWebsiteCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_w]: [, ""], + }); + let body: any; + let contents: any; + if (input.WebsiteConfiguration !== undefined) { + contents = se_WebsiteConfiguration(input.WebsiteConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutObjectCommand + */ +export const se_PutObjectCommand = async ( + input: PutObjectCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + ...(input.Metadata !== undefined && + Object.keys(input.Metadata).reduce((acc: any, suffix: string) => { + acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix]; + return acc; + }, {})), + [_ct]: input[_CTo] || "application/octet-stream", + [_xaa]: input[_ACL]!, + [_cc]: input[_CC]!, + [_cd]: input[_CD]!, + [_ce]: input[_CE]!, + [_cl]: input[_CL]!, + [_cl_]: [() => isSerializableHeaderValue(input[_CLo]), () => input[_CLo]!.toString()], + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xacc]: input[_CCRC]!, + [_xacc_]: input[_CCRCC]!, + [_xacc__]: input[_CCRCNVME]!, + [_xacs]: input[_CSHA]!, + [_xacs_]: input[_CSHAh]!, + [_e]: [() => isSerializableHeaderValue(input[_E]), () => __dateToUtcString(input[_E]!).toString()], + [_im]: input[_IM]!, + [_inm]: input[_INM]!, + [_xagfc]: input[_GFC]!, + [_xagr]: input[_GR]!, + [_xagra]: input[_GRACP]!, + [_xagwa]: input[_GWACP]!, + [_xawob]: [() => isSerializableHeaderValue(input[_WOB]), () => input[_WOB]!.toString()], + [_xasse]: input[_SSE]!, + [_xasc]: input[_SC]!, + [_xawrl]: input[_WRL]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xasseakki]: input[_SSEKMSKI]!, + [_xassec]: input[_SSEKMSEC]!, + [_xassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()], + [_xarp]: input[_RP]!, + [_xat]: input[_T]!, + [_xaolm]: input[_OLM]!, + [_xaolrud]: [() => isSerializableHeaderValue(input[_OLRUD]), () => __serializeDateTime(input[_OLRUD]!).toString()], + [_xaollh]: input[_OLLHS]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_xi]: [, "PutObject"], + }); + let body: any; + let contents: any; + if (input.Body !== undefined) { + contents = input.Body; + body = contents; + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutObjectAclCommand + */ +export const se_PutObjectAclCommand = async ( + input: PutObjectAclCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xaa]: input[_ACL]!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xagfc]: input[_GFC]!, + [_xagr]: input[_GR]!, + [_xagra]: input[_GRACP]!, + [_xagw]: input[_GW]!, + [_xagwa]: input[_GWACP]!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_acl]: [, ""], + [_vI]: [, input[_VI]!], + }); + let body: any; + let contents: any; + if (input.AccessControlPolicy !== undefined) { + contents = se_AccessControlPolicy(input.AccessControlPolicy, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutObjectLegalHoldCommand + */ +export const se_PutObjectLegalHoldCommand = async ( + input: PutObjectLegalHoldCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xarp]: input[_RP]!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_lh]: [, ""], + [_vI]: [, input[_VI]!], + }); + let body: any; + let contents: any; + if (input.LegalHold !== undefined) { + contents = se_ObjectLockLegalHold(input.LegalHold, context); + contents = contents.n("LegalHold"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutObjectLockConfigurationCommand + */ +export const se_PutObjectLockConfigurationCommand = async ( + input: PutObjectLockConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xarp]: input[_RP]!, + [_xabolt]: input[_To]!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_ol]: [, ""], + }); + let body: any; + let contents: any; + if (input.ObjectLockConfiguration !== undefined) { + contents = se_ObjectLockConfiguration(input.ObjectLockConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutObjectRetentionCommand + */ +export const se_PutObjectRetentionCommand = async ( + input: PutObjectRetentionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xarp]: input[_RP]!, + [_xabgr]: [() => isSerializableHeaderValue(input[_BGR]), () => input[_BGR]!.toString()], + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_ret]: [, ""], + [_vI]: [, input[_VI]!], + }); + let body: any; + let contents: any; + if (input.Retention !== undefined) { + contents = se_ObjectLockRetention(input.Retention, context); + contents = contents.n("Retention"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutObjectTaggingCommand + */ +export const se_PutObjectTaggingCommand = async ( + input: PutObjectTaggingCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + [_xarp]: input[_RP]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_t]: [, ""], + [_vI]: [, input[_VI]!], + }); + let body: any; + let contents: any; + if (input.Tagging !== undefined) { + contents = se_Tagging(input.Tagging, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlPutPublicAccessBlockCommand + */ +export const se_PutPublicAccessBlockCommand = async ( + input: PutPublicAccessBlockCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_pAB]: [, ""], + }); + let body: any; + let contents: any; + if (input.PublicAccessBlockConfiguration !== undefined) { + contents = se_PublicAccessBlockConfiguration(input.PublicAccessBlockConfiguration, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlRenameObjectCommand + */ +export const se_RenameObjectCommand = async ( + input: RenameObjectCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xars]: input[_RS]!, + [_im]: input[_DIM]!, + [_inm]: input[_DINM]!, + [_ims]: [() => isSerializableHeaderValue(input[_DIMS]), () => __dateToUtcString(input[_DIMS]!).toString()], + [_ius]: [() => isSerializableHeaderValue(input[_DIUS]), () => __dateToUtcString(input[_DIUS]!).toString()], + [_xarsim]: input[_SIM]!, + [_xarsinm]: input[_SINM]!, + [_xarsims]: [() => isSerializableHeaderValue(input[_SIMS]), () => __dateToUtcString(input[_SIMS]!).toString()], + [_xarsius]: [() => isSerializableHeaderValue(input[_SIUS]), () => __dateToUtcString(input[_SIUS]!).toString()], + [_xact_]: input[_CTl] ?? generateIdempotencyToken(), + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_rO]: [, ""], + }); + let body: any; + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlRestoreObjectCommand + */ +export const se_RestoreObjectCommand = async ( + input: RestoreObjectCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xarp]: input[_RP]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_res]: [, ""], + [_vI]: [, input[_VI]!], + }); + let body: any; + let contents: any; + if (input.RestoreRequest !== undefined) { + contents = se_RestoreRequest(input.RestoreRequest, context); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("POST").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlSelectObjectContentCommand + */ +export const se_SelectObjectContentCommand = async ( + input: SelectObjectContentCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_se]: [, ""], + [_st]: [, "2"], + }); + let body: any; + body = _ve; + const bn = new __XmlNode(_SOCR); + bn.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + bn.cc(input, _Ex); + bn.cc(input, _ETx); + if (input[_IS] != null) { + bn.c(se_InputSerialization(input[_IS], context).n(_IS)); + } + if (input[_OS] != null) { + bn.c(se_OutputSerialization(input[_OS], context).n(_OS)); + } + if (input[_RPe] != null) { + bn.c(se_RequestProgress(input[_RPe], context).n(_RPe)); + } + if (input[_SR] != null) { + bn.c(se_ScanRange(input[_SR], context).n(_SR)); + } + body += bn.toString(); + b.m("POST").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlUpdateBucketMetadataInventoryTableConfigurationCommand + */ +export const se_UpdateBucketMetadataInventoryTableConfigurationCommand = async ( + input: UpdateBucketMetadataInventoryTableConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_mIT]: [, ""], + }); + let body: any; + let contents: any; + if (input.InventoryTableConfiguration !== undefined) { + contents = se_InventoryTableConfigurationUpdates(input.InventoryTableConfiguration, context); + contents = contents.n("InventoryTableConfiguration"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlUpdateBucketMetadataJournalTableConfigurationCommand + */ +export const se_UpdateBucketMetadataJournalTableConfigurationCommand = async ( + input: UpdateBucketMetadataJournalTableConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/xml", + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + const query: any = map({ + [_mJT]: [, ""], + }); + let body: any; + let contents: any; + if (input.JournalTableConfiguration !== undefined) { + contents = se_JournalTableConfigurationUpdates(input.JournalTableConfiguration, context); + contents = contents.n("JournalTableConfiguration"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body += contents.toString(); + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlUploadPartCommand + */ +export const se_UploadPartCommand = async ( + input: UploadPartCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/octet-stream", + [_cl_]: [() => isSerializableHeaderValue(input[_CLo]), () => input[_CLo]!.toString()], + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xacc]: input[_CCRC]!, + [_xacc_]: input[_CCRCC]!, + [_xacc__]: input[_CCRCNVME]!, + [_xacs]: input[_CSHA]!, + [_xacs_]: input[_CSHAh]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_xi]: [, "UploadPart"], + [_pN]: [__expectNonNull(input.PartNumber, `PartNumber`) != null, () => input[_PN]!.toString()], + [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], + }); + let body: any; + let contents: any; + if (input.Body !== undefined) { + contents = input.Body; + body = contents; + } + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlUploadPartCopyCommand + */ +export const se_UploadPartCopyCommand = async ( + input: UploadPartCopyCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xacs__]: input[_CS]!, + [_xacsim]: input[_CSIM]!, + [_xacsims]: [() => isSerializableHeaderValue(input[_CSIMS]), () => __dateToUtcString(input[_CSIMS]!).toString()], + [_xacsinm]: input[_CSINM]!, + [_xacsius]: [() => isSerializableHeaderValue(input[_CSIUS]), () => __dateToUtcString(input[_CSIUS]!).toString()], + [_xacsr]: input[_CSR]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xacssseca]: input[_CSSSECA]!, + [_xacssseck]: input[_CSSSECK]!, + [_xacssseckm]: input[_CSSSECKMD]!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xasebo]: input[_ESBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); + const query: any = map({ + [_xi]: [, "UploadPartCopy"], + [_pN]: [__expectNonNull(input.PartNumber, `PartNumber`) != null, () => input[_PN]!.toString()], + [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], + }); + let body: any; + b.m("PUT").h(headers).q(query).b(body); + return b.build(); +}; + +/** + * serializeAws_restXmlWriteGetObjectResponseCommand + */ +export const se_WriteGetObjectResponseCommand = async ( + input: WriteGetObjectResponseCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + "x-amz-content-sha256": "UNSIGNED-PAYLOAD", + ...(input.Metadata !== undefined && + Object.keys(input.Metadata).reduce((acc: any, suffix: string) => { + acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix]; + return acc; + }, {})), + "content-type": "application/octet-stream", + [_xarr]: input[_RR]!, + [_xart]: input[_RT]!, + [_xafs]: [() => isSerializableHeaderValue(input[_SCt]), () => input[_SCt]!.toString()], + [_xafec]: input[_EC]!, + [_xafem]: input[_EM]!, + [_xafhar]: input[_AR]!, + [_xafhcc]: input[_CC]!, + [_xafhcd]: input[_CD]!, + [_xafhce]: input[_CE]!, + [_xafhcl]: input[_CL]!, + [_cl_]: [() => isSerializableHeaderValue(input[_CLo]), () => input[_CLo]!.toString()], + [_xafhcr]: input[_CR]!, + [_xafhct]: input[_CTo]!, + [_xafhxacc]: input[_CCRC]!, + [_xafhxacc_]: input[_CCRCC]!, + [_xafhxacc__]: input[_CCRCNVME]!, + [_xafhxacs]: input[_CSHA]!, + [_xafhxacs_]: input[_CSHAh]!, + [_xafhxadm]: [() => isSerializableHeaderValue(input[_DM]), () => input[_DM]!.toString()], + [_xafhe]: input[_ETa]!, + [_xafhe_]: [() => isSerializableHeaderValue(input[_E]), () => __dateToUtcString(input[_E]!).toString()], + [_xafhxae]: input[_Exp]!, + [_xafhlm]: [() => isSerializableHeaderValue(input[_LM]), () => __dateToUtcString(input[_LM]!).toString()], + [_xafhxamm]: [() => isSerializableHeaderValue(input[_MM]), () => input[_MM]!.toString()], + [_xafhxaolm]: input[_OLM]!, + [_xafhxaollh]: input[_OLLHS]!, + [_xafhxaolrud]: [ + () => isSerializableHeaderValue(input[_OLRUD]), + () => __serializeDateTime(input[_OLRUD]!).toString(), + ], + [_xafhxampc]: [() => isSerializableHeaderValue(input[_PC]), () => input[_PC]!.toString()], + [_xafhxars]: input[_RSe]!, + [_xafhxarc]: input[_RC]!, + [_xafhxar]: input[_Re]!, + [_xafhxasse]: input[_SSE]!, + [_xafhxasseca]: input[_SSECA]!, + [_xafhxasseakki]: input[_SSEKMSKI]!, + [_xafhxasseckm]: input[_SSECKMD]!, + [_xafhxasc]: input[_SC]!, + [_xafhxatc]: [() => isSerializableHeaderValue(input[_TC]), () => input[_TC]!.toString()], + [_xafhxavi]: input[_VI]!, + [_xafhxassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()], + }); + b.bp("/WriteGetObjectResponse"); + let body: any; + let contents: any; + if (input.Body !== undefined) { + contents = input.Body; + body = contents; + } + let { hostname: resolvedHostname } = await context.endpoint(); + if (context.disableHostPrefix !== true) { + resolvedHostname = "{RequestRoute}." + resolvedHostname; + if (input.RequestRoute === undefined) { + throw new Error("Empty value provided for input host prefix: RequestRoute."); + } + resolvedHostname = resolvedHostname.replace("{RequestRoute}", input.RequestRoute!); + if (!__isValidHostname(resolvedHostname)) { + throw new Error("ValidationError: prefixed hostname must be hostname compatible."); + } + } + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); +}; + +/** + * deserializeAws_restXmlAbortMultipartUploadCommand + */ +export const de_AbortMultipartUploadCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_RC]: [, output.headers[_xarc]], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlCompleteMultipartUploadCommand + */ +export const de_CompleteMultipartUploadCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_Exp]: [, output.headers[_xae]], + [_SSE]: [, output.headers[_xasse]], + [_VI]: [, output.headers[_xavi]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_RC]: [, output.headers[_xarc]], + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_B] != null) { + contents[_B] = __expectString(data[_B]); + } + if (data[_CCRC] != null) { + contents[_CCRC] = __expectString(data[_CCRC]); + } + if (data[_CCRCC] != null) { + contents[_CCRCC] = __expectString(data[_CCRCC]); + } + if (data[_CCRCNVME] != null) { + contents[_CCRCNVME] = __expectString(data[_CCRCNVME]); + } + if (data[_CSHA] != null) { + contents[_CSHA] = __expectString(data[_CSHA]); + } + if (data[_CSHAh] != null) { + contents[_CSHAh] = __expectString(data[_CSHAh]); + } + if (data[_CT] != null) { + contents[_CT] = __expectString(data[_CT]); + } + if (data[_ETa] != null) { + contents[_ETa] = __expectString(data[_ETa]); + } + if (data[_K] != null) { + contents[_K] = __expectString(data[_K]); + } + if (data[_L] != null) { + contents[_L] = __expectString(data[_L]); + } + return contents; +}; + +/** + * deserializeAws_restXmlCopyObjectCommand + */ +export const de_CopyObjectCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_Exp]: [, output.headers[_xae]], + [_CSVI]: [, output.headers[_xacsvi]], + [_VI]: [, output.headers[_xavi]], + [_SSE]: [, output.headers[_xasse]], + [_SSECA]: [, output.headers[_xasseca]], + [_SSECKMD]: [, output.headers[_xasseckm]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_SSEKMSEC]: [, output.headers[_xassec]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_RC]: [, output.headers[_xarc]], + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.CopyObjectResult = de_CopyObjectResult(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlCreateBucketCommand + */ +export const de_CreateBucketCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_L]: [, output.headers[_lo]], + [_BA]: [, output.headers[_xaba]], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlCreateBucketMetadataConfigurationCommand + */ +export const de_CreateBucketMetadataConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlCreateBucketMetadataTableConfigurationCommand + */ +export const de_CreateBucketMetadataTableConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlCreateMultipartUploadCommand + */ +export const de_CreateMultipartUploadCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_AD]: [ + () => void 0 !== output.headers[_xaad], + () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xaad])), + ], + [_ARI]: [, output.headers[_xaari]], + [_SSE]: [, output.headers[_xasse]], + [_SSECA]: [, output.headers[_xasseca]], + [_SSECKMD]: [, output.headers[_xasseckm]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_SSEKMSEC]: [, output.headers[_xassec]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_RC]: [, output.headers[_xarc]], + [_CA]: [, output.headers[_xaca]], + [_CT]: [, output.headers[_xact]], + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_B] != null) { + contents[_B] = __expectString(data[_B]); + } + if (data[_K] != null) { + contents[_K] = __expectString(data[_K]); + } + if (data[_UI] != null) { + contents[_UI] = __expectString(data[_UI]); + } + return contents; +}; + +/** + * deserializeAws_restXmlCreateSessionCommand + */ +export const de_CreateSessionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_SSE]: [, output.headers[_xasse]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_SSEKMSEC]: [, output.headers[_xassec]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_C] != null) { + contents[_C] = de_SessionCredentials(data[_C], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketCommand + */ +export const de_DeleteBucketCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand + */ +export const de_DeleteBucketAnalyticsConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketCorsCommand + */ +export const de_DeleteBucketCorsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketEncryptionCommand + */ +export const de_DeleteBucketEncryptionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand + */ +export const de_DeleteBucketIntelligentTieringConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketInventoryConfigurationCommand + */ +export const de_DeleteBucketInventoryConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketLifecycleCommand + */ +export const de_DeleteBucketLifecycleCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketMetadataConfigurationCommand + */ +export const de_DeleteBucketMetadataConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketMetadataTableConfigurationCommand + */ +export const de_DeleteBucketMetadataTableConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketMetricsConfigurationCommand + */ +export const de_DeleteBucketMetricsConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketOwnershipControlsCommand + */ +export const de_DeleteBucketOwnershipControlsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketPolicyCommand + */ +export const de_DeleteBucketPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketReplicationCommand + */ +export const de_DeleteBucketReplicationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketTaggingCommand + */ +export const de_DeleteBucketTaggingCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteBucketWebsiteCommand + */ +export const de_DeleteBucketWebsiteCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteObjectCommand + */ +export const de_DeleteObjectCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_DM]: [() => void 0 !== output.headers[_xadm], () => __parseBoolean(output.headers[_xadm])], + [_VI]: [, output.headers[_xavi]], + [_RC]: [, output.headers[_xarc]], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeleteObjectsCommand + */ +export const de_DeleteObjectsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_RC]: [, output.headers[_xarc]], + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data.Deleted === "") { + contents[_De] = []; + } else if (data[_De] != null) { + contents[_De] = de_DeletedObjects(__getArrayIfSingleItem(data[_De]), context); + } + if (data.Error === "") { + contents[_Err] = []; + } else if (data[_Er] != null) { + contents[_Err] = de_Errors(__getArrayIfSingleItem(data[_Er]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlDeleteObjectTaggingCommand + */ +export const de_DeleteObjectTaggingCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_VI]: [, output.headers[_xavi]], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlDeletePublicAccessBlockCommand + */ +export const de_DeletePublicAccessBlockCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 204 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketAccelerateConfigurationCommand + */ +export const de_GetBucketAccelerateConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_RC]: [, output.headers[_xarc]], + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_S] != null) { + contents[_S] = __expectString(data[_S]); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketAclCommand + */ +export const de_GetBucketAclCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data.AccessControlList === "") { + contents[_Gr] = []; + } else if (data[_ACLc] != null && data[_ACLc][_G] != null) { + contents[_Gr] = de_Grants(__getArrayIfSingleItem(data[_ACLc][_G]), context); + } + if (data[_O] != null) { + contents[_O] = de_Owner(data[_O], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketAnalyticsConfigurationCommand + */ +export const de_GetBucketAnalyticsConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.AnalyticsConfiguration = de_AnalyticsConfiguration(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketCorsCommand + */ +export const de_GetBucketCorsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data.CORSRule === "") { + contents[_CORSRu] = []; + } else if (data[_CORSR] != null) { + contents[_CORSRu] = de_CORSRules(__getArrayIfSingleItem(data[_CORSR]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketEncryptionCommand + */ +export const de_GetBucketEncryptionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.ServerSideEncryptionConfiguration = de_ServerSideEncryptionConfiguration(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketIntelligentTieringConfigurationCommand + */ +export const de_GetBucketIntelligentTieringConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.IntelligentTieringConfiguration = de_IntelligentTieringConfiguration(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketInventoryConfigurationCommand + */ +export const de_GetBucketInventoryConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.InventoryConfiguration = de_InventoryConfiguration(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketLifecycleConfigurationCommand + */ +export const de_GetBucketLifecycleConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_TDMOS]: [, output.headers[_xatdmos]], + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data.Rule === "") { + contents[_Rul] = []; + } else if (data[_Ru] != null) { + contents[_Rul] = de_LifecycleRules(__getArrayIfSingleItem(data[_Ru]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketLocationCommand + */ +export const de_GetBucketLocationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_LC] != null) { + contents[_LC] = __expectString(data[_LC]); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketLoggingCommand + */ +export const de_GetBucketLoggingCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_LE] != null) { + contents[_LE] = de_LoggingEnabled(data[_LE], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketMetadataConfigurationCommand + */ +export const de_GetBucketMetadataConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.GetBucketMetadataConfigurationResult = de_GetBucketMetadataConfigurationResult(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketMetadataTableConfigurationCommand + */ +export const de_GetBucketMetadataTableConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.GetBucketMetadataTableConfigurationResult = de_GetBucketMetadataTableConfigurationResult(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketMetricsConfigurationCommand + */ +export const de_GetBucketMetricsConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.MetricsConfiguration = de_MetricsConfiguration(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketNotificationConfigurationCommand + */ +export const de_GetBucketNotificationConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_EBC] != null) { + contents[_EBC] = de_EventBridgeConfiguration(data[_EBC], context); + } + if (data.CloudFunctionConfiguration === "") { + contents[_LFC] = []; + } else if (data[_CFC] != null) { + contents[_LFC] = de_LambdaFunctionConfigurationList(__getArrayIfSingleItem(data[_CFC]), context); + } + if (data.QueueConfiguration === "") { + contents[_QCu] = []; + } else if (data[_QC] != null) { + contents[_QCu] = de_QueueConfigurationList(__getArrayIfSingleItem(data[_QC]), context); + } + if (data.TopicConfiguration === "") { + contents[_TCop] = []; + } else if (data[_TCo] != null) { + contents[_TCop] = de_TopicConfigurationList(__getArrayIfSingleItem(data[_TCo]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketOwnershipControlsCommand + */ +export const de_GetBucketOwnershipControlsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.OwnershipControls = de_OwnershipControls(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketPolicyCommand + */ +export const de_GetBucketPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: any = await collectBodyString(output.body, context); + contents.Policy = __expectString(data); + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketPolicyStatusCommand + */ +export const de_GetBucketPolicyStatusCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.PolicyStatus = de_PolicyStatus(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketReplicationCommand + */ +export const de_GetBucketReplicationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.ReplicationConfiguration = de_ReplicationConfiguration(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketRequestPaymentCommand + */ +export const de_GetBucketRequestPaymentCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_Pa] != null) { + contents[_Pa] = __expectString(data[_Pa]); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketTaggingCommand + */ +export const de_GetBucketTaggingCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data.TagSet === "") { + contents[_TS] = []; + } else if (data[_TS] != null && data[_TS][_Ta] != null) { + contents[_TS] = de_TagSet(__getArrayIfSingleItem(data[_TS][_Ta]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketVersioningCommand + */ +export const de_GetBucketVersioningCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_MDf] != null) { + contents[_MFAD] = __expectString(data[_MDf]); + } + if (data[_S] != null) { + contents[_S] = __expectString(data[_S]); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketWebsiteCommand + */ +export const de_GetBucketWebsiteCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_ED] != null) { + contents[_ED] = de_ErrorDocument(data[_ED], context); + } + if (data[_ID] != null) { + contents[_ID] = de_IndexDocument(data[_ID], context); + } + if (data[_RART] != null) { + contents[_RART] = de_RedirectAllRequestsTo(data[_RART], context); + } + if (data.RoutingRules === "") { + contents[_RRo] = []; + } else if (data[_RRo] != null && data[_RRo][_RRou] != null) { + contents[_RRo] = de_RoutingRules(__getArrayIfSingleItem(data[_RRo][_RRou]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetObjectCommand + */ +export const de_GetObjectCommand = async ( + output: __HttpResponse, + context: __SerdeContext & __SdkStreamSerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_DM]: [() => void 0 !== output.headers[_xadm], () => __parseBoolean(output.headers[_xadm])], + [_AR]: [, output.headers[_ar]], + [_Exp]: [, output.headers[_xae]], + [_Re]: [, output.headers[_xar]], + [_LM]: [() => void 0 !== output.headers[_lm], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_lm]))], + [_CLo]: [() => void 0 !== output.headers[_cl_], () => __strictParseLong(output.headers[_cl_])], + [_ETa]: [, output.headers[_eta]], + [_CCRC]: [, output.headers[_xacc]], + [_CCRCC]: [, output.headers[_xacc_]], + [_CCRCNVME]: [, output.headers[_xacc__]], + [_CSHA]: [, output.headers[_xacs]], + [_CSHAh]: [, output.headers[_xacs_]], + [_CT]: [, output.headers[_xact]], + [_MM]: [() => void 0 !== output.headers[_xamm], () => __strictParseInt32(output.headers[_xamm])], + [_VI]: [, output.headers[_xavi]], + [_CC]: [, output.headers[_cc]], + [_CD]: [, output.headers[_cd]], + [_CE]: [, output.headers[_ce]], + [_CL]: [, output.headers[_cl]], + [_CR]: [, output.headers[_cr]], + [_CTo]: [, output.headers[_ct]], + [_E]: [() => void 0 !== output.headers[_e], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_e]))], + [_ES]: [, output.headers[_ex]], + [_WRL]: [, output.headers[_xawrl]], + [_SSE]: [, output.headers[_xasse]], + [_SSECA]: [, output.headers[_xasseca]], + [_SSECKMD]: [, output.headers[_xasseckm]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_SC]: [, output.headers[_xasc]], + [_RC]: [, output.headers[_xarc]], + [_RSe]: [, output.headers[_xars_]], + [_PC]: [() => void 0 !== output.headers[_xampc], () => __strictParseInt32(output.headers[_xampc])], + [_TC]: [() => void 0 !== output.headers[_xatc], () => __strictParseInt32(output.headers[_xatc])], + [_OLM]: [, output.headers[_xaolm]], + [_OLRUD]: [ + () => void 0 !== output.headers[_xaolrud], + () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers[_xaolrud])), + ], + [_OLLHS]: [, output.headers[_xaollh]], + Metadata: [ + , + Object.keys(output.headers) + .filter((header) => header.startsWith("x-amz-meta-")) + .reduce((acc, header) => { + acc[header.substring(11)] = output.headers[header]; + return acc; + }, {} as any), + ], + }); + const data: any = output.body; + context.sdkStreamMixin(data); + contents.Body = data; + return contents; +}; + +/** + * deserializeAws_restXmlGetObjectAclCommand + */ +export const de_GetObjectAclCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_RC]: [, output.headers[_xarc]], + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data.AccessControlList === "") { + contents[_Gr] = []; + } else if (data[_ACLc] != null && data[_ACLc][_G] != null) { + contents[_Gr] = de_Grants(__getArrayIfSingleItem(data[_ACLc][_G]), context); + } + if (data[_O] != null) { + contents[_O] = de_Owner(data[_O], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetObjectAttributesCommand + */ +export const de_GetObjectAttributesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_DM]: [() => void 0 !== output.headers[_xadm], () => __parseBoolean(output.headers[_xadm])], + [_LM]: [() => void 0 !== output.headers[_lm], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_lm]))], + [_VI]: [, output.headers[_xavi]], + [_RC]: [, output.headers[_xarc]], + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_Ch] != null) { + contents[_Ch] = de_Checksum(data[_Ch], context); + } + if (data[_ETa] != null) { + contents[_ETa] = __expectString(data[_ETa]); + } + if (data[_OP] != null) { + contents[_OP] = de_GetObjectAttributesParts(data[_OP], context); + } + if (data[_OSb] != null) { + contents[_OSb] = __strictParseLong(data[_OSb]) as number; + } + if (data[_SC] != null) { + contents[_SC] = __expectString(data[_SC]); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetObjectLegalHoldCommand + */ +export const de_GetObjectLegalHoldCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.LegalHold = de_ObjectLockLegalHold(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlGetObjectLockConfigurationCommand + */ +export const de_GetObjectLockConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.ObjectLockConfiguration = de_ObjectLockConfiguration(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlGetObjectRetentionCommand + */ +export const de_GetObjectRetentionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.Retention = de_ObjectLockRetention(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlGetObjectTaggingCommand + */ +export const de_GetObjectTaggingCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_VI]: [, output.headers[_xavi]], + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data.TagSet === "") { + contents[_TS] = []; + } else if (data[_TS] != null && data[_TS][_Ta] != null) { + contents[_TS] = de_TagSet(__getArrayIfSingleItem(data[_TS][_Ta]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetObjectTorrentCommand + */ +export const de_GetObjectTorrentCommand = async ( + output: __HttpResponse, + context: __SerdeContext & __SdkStreamSerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_RC]: [, output.headers[_xarc]], + }); + const data: any = output.body; + context.sdkStreamMixin(data); + contents.Body = data; + return contents; +}; + +/** + * deserializeAws_restXmlGetPublicAccessBlockCommand + */ +export const de_GetPublicAccessBlockCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.PublicAccessBlockConfiguration = de_PublicAccessBlockConfiguration(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlHeadBucketCommand + */ +export const de_HeadBucketCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_BA]: [, output.headers[_xaba]], + [_BLT]: [, output.headers[_xablt]], + [_BLN]: [, output.headers[_xabln]], + [_BR]: [, output.headers[_xabr]], + [_APA]: [() => void 0 !== output.headers[_xaapa], () => __parseBoolean(output.headers[_xaapa])], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlHeadObjectCommand + */ +export const de_HeadObjectCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_DM]: [() => void 0 !== output.headers[_xadm], () => __parseBoolean(output.headers[_xadm])], + [_AR]: [, output.headers[_ar]], + [_Exp]: [, output.headers[_xae]], + [_Re]: [, output.headers[_xar]], + [_AS]: [, output.headers[_xaas]], + [_LM]: [() => void 0 !== output.headers[_lm], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_lm]))], + [_CLo]: [() => void 0 !== output.headers[_cl_], () => __strictParseLong(output.headers[_cl_])], + [_CCRC]: [, output.headers[_xacc]], + [_CCRCC]: [, output.headers[_xacc_]], + [_CCRCNVME]: [, output.headers[_xacc__]], + [_CSHA]: [, output.headers[_xacs]], + [_CSHAh]: [, output.headers[_xacs_]], + [_CT]: [, output.headers[_xact]], + [_ETa]: [, output.headers[_eta]], + [_MM]: [() => void 0 !== output.headers[_xamm], () => __strictParseInt32(output.headers[_xamm])], + [_VI]: [, output.headers[_xavi]], + [_CC]: [, output.headers[_cc]], + [_CD]: [, output.headers[_cd]], + [_CE]: [, output.headers[_ce]], + [_CL]: [, output.headers[_cl]], + [_CTo]: [, output.headers[_ct]], + [_CR]: [, output.headers[_cr]], + [_E]: [() => void 0 !== output.headers[_e], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_e]))], + [_ES]: [, output.headers[_ex]], + [_WRL]: [, output.headers[_xawrl]], + [_SSE]: [, output.headers[_xasse]], + [_SSECA]: [, output.headers[_xasseca]], + [_SSECKMD]: [, output.headers[_xasseckm]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_SC]: [, output.headers[_xasc]], + [_RC]: [, output.headers[_xarc]], + [_RSe]: [, output.headers[_xars_]], + [_PC]: [() => void 0 !== output.headers[_xampc], () => __strictParseInt32(output.headers[_xampc])], + [_TC]: [() => void 0 !== output.headers[_xatc], () => __strictParseInt32(output.headers[_xatc])], + [_OLM]: [, output.headers[_xaolm]], + [_OLRUD]: [ + () => void 0 !== output.headers[_xaolrud], + () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers[_xaolrud])), + ], + [_OLLHS]: [, output.headers[_xaollh]], + Metadata: [ + , + Object.keys(output.headers) + .filter((header) => header.startsWith("x-amz-meta-")) + .reduce((acc, header) => { + acc[header.substring(11)] = output.headers[header]; + return acc; + }, {} as any), + ], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlListBucketAnalyticsConfigurationsCommand + */ +export const de_ListBucketAnalyticsConfigurationsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data.AnalyticsConfiguration === "") { + contents[_ACLn] = []; + } else if (data[_AC] != null) { + contents[_ACLn] = de_AnalyticsConfigurationList(__getArrayIfSingleItem(data[_AC]), context); + } + if (data[_CTon] != null) { + contents[_CTon] = __expectString(data[_CTon]); + } + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); + } + if (data[_NCT] != null) { + contents[_NCT] = __expectString(data[_NCT]); + } + return contents; +}; + +/** + * deserializeAws_restXmlListBucketIntelligentTieringConfigurationsCommand + */ +export const de_ListBucketIntelligentTieringConfigurationsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_CTon] != null) { + contents[_CTon] = __expectString(data[_CTon]); + } + if (data.IntelligentTieringConfiguration === "") { + contents[_ITCL] = []; + } else if (data[_ITC] != null) { + contents[_ITCL] = de_IntelligentTieringConfigurationList(__getArrayIfSingleItem(data[_ITC]), context); + } + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); + } + if (data[_NCT] != null) { + contents[_NCT] = __expectString(data[_NCT]); + } + return contents; +}; + +/** + * deserializeAws_restXmlListBucketInventoryConfigurationsCommand + */ +export const de_ListBucketInventoryConfigurationsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_CTon] != null) { + contents[_CTon] = __expectString(data[_CTon]); + } + if (data.InventoryConfiguration === "") { + contents[_ICL] = []; + } else if (data[_IC] != null) { + contents[_ICL] = de_InventoryConfigurationList(__getArrayIfSingleItem(data[_IC]), context); + } + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); + } + if (data[_NCT] != null) { + contents[_NCT] = __expectString(data[_NCT]); + } + return contents; +}; + +/** + * deserializeAws_restXmlListBucketMetricsConfigurationsCommand + */ +export const de_ListBucketMetricsConfigurationsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_CTon] != null) { + contents[_CTon] = __expectString(data[_CTon]); + } + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); + } + if (data.MetricsConfiguration === "") { + contents[_MCL] = []; + } else if (data[_MC] != null) { + contents[_MCL] = de_MetricsConfigurationList(__getArrayIfSingleItem(data[_MC]), context); + } + if (data[_NCT] != null) { + contents[_NCT] = __expectString(data[_NCT]); + } + return contents; +}; + +/** + * deserializeAws_restXmlListBucketsCommand + */ +export const de_ListBucketsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data.Buckets === "") { + contents[_Bu] = []; + } else if (data[_Bu] != null && data[_Bu][_B] != null) { + contents[_Bu] = de_Buckets(__getArrayIfSingleItem(data[_Bu][_B]), context); + } + if (data[_CTon] != null) { + contents[_CTon] = __expectString(data[_CTon]); + } + if (data[_O] != null) { + contents[_O] = de_Owner(data[_O], context); + } + if (data[_P] != null) { + contents[_P] = __expectString(data[_P]); + } + return contents; +}; + +/** + * deserializeAws_restXmlListDirectoryBucketsCommand + */ +export const de_ListDirectoryBucketsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data.Buckets === "") { + contents[_Bu] = []; + } else if (data[_Bu] != null && data[_Bu][_B] != null) { + contents[_Bu] = de_Buckets(__getArrayIfSingleItem(data[_Bu][_B]), context); + } + if (data[_CTon] != null) { + contents[_CTon] = __expectString(data[_CTon]); + } + return contents; +}; + +/** + * deserializeAws_restXmlListMultipartUploadsCommand + */ +export const de_ListMultipartUploadsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_RC]: [, output.headers[_xarc]], + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_B] != null) { + contents[_B] = __expectString(data[_B]); + } + if (data.CommonPrefixes === "") { + contents[_CP] = []; + } else if (data[_CP] != null) { + contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); + } + if (data[_D] != null) { + contents[_D] = __expectString(data[_D]); + } + if (data[_ET] != null) { + contents[_ET] = __expectString(data[_ET]); + } + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); + } + if (data[_KM] != null) { + contents[_KM] = __expectString(data[_KM]); + } + if (data[_MU] != null) { + contents[_MU] = __strictParseInt32(data[_MU]) as number; + } + if (data[_NKM] != null) { + contents[_NKM] = __expectString(data[_NKM]); + } + if (data[_NUIM] != null) { + contents[_NUIM] = __expectString(data[_NUIM]); + } + if (data[_P] != null) { + contents[_P] = __expectString(data[_P]); + } + if (data[_UIM] != null) { + contents[_UIM] = __expectString(data[_UIM]); + } + if (data.Upload === "") { + contents[_Up] = []; + } else if (data[_U] != null) { + contents[_Up] = de_MultipartUploadList(__getArrayIfSingleItem(data[_U]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlListObjectsCommand + */ +export const de_ListObjectsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_RC]: [, output.headers[_xarc]], + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data.CommonPrefixes === "") { + contents[_CP] = []; + } else if (data[_CP] != null) { + contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); + } + if (data.Contents === "") { + contents[_Co] = []; + } else if (data[_Co] != null) { + contents[_Co] = de_ObjectList(__getArrayIfSingleItem(data[_Co]), context); + } + if (data[_D] != null) { + contents[_D] = __expectString(data[_D]); + } + if (data[_ET] != null) { + contents[_ET] = __expectString(data[_ET]); + } + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); + } + if (data[_M] != null) { + contents[_M] = __expectString(data[_M]); + } + if (data[_MK] != null) { + contents[_MK] = __strictParseInt32(data[_MK]) as number; + } + if (data[_N] != null) { + contents[_N] = __expectString(data[_N]); + } + if (data[_NM] != null) { + contents[_NM] = __expectString(data[_NM]); + } + if (data[_P] != null) { + contents[_P] = __expectString(data[_P]); + } + return contents; +}; + +/** + * deserializeAws_restXmlListObjectsV2Command + */ +export const de_ListObjectsV2Command = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_RC]: [, output.headers[_xarc]], + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data.CommonPrefixes === "") { + contents[_CP] = []; + } else if (data[_CP] != null) { + contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); + } + if (data.Contents === "") { + contents[_Co] = []; + } else if (data[_Co] != null) { + contents[_Co] = de_ObjectList(__getArrayIfSingleItem(data[_Co]), context); + } + if (data[_CTon] != null) { + contents[_CTon] = __expectString(data[_CTon]); + } + if (data[_D] != null) { + contents[_D] = __expectString(data[_D]); + } + if (data[_ET] != null) { + contents[_ET] = __expectString(data[_ET]); + } + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); + } + if (data[_KC] != null) { + contents[_KC] = __strictParseInt32(data[_KC]) as number; + } + if (data[_MK] != null) { + contents[_MK] = __strictParseInt32(data[_MK]) as number; + } + if (data[_N] != null) { + contents[_N] = __expectString(data[_N]); + } + if (data[_NCT] != null) { + contents[_NCT] = __expectString(data[_NCT]); + } + if (data[_P] != null) { + contents[_P] = __expectString(data[_P]); + } + if (data[_SA] != null) { + contents[_SA] = __expectString(data[_SA]); + } + return contents; +}; + +/** + * deserializeAws_restXmlListObjectVersionsCommand + */ +export const de_ListObjectVersionsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_RC]: [, output.headers[_xarc]], + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data.CommonPrefixes === "") { + contents[_CP] = []; + } else if (data[_CP] != null) { + contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); + } + if (data.DeleteMarker === "") { + contents[_DMe] = []; + } else if (data[_DM] != null) { + contents[_DMe] = de_DeleteMarkers(__getArrayIfSingleItem(data[_DM]), context); + } + if (data[_D] != null) { + contents[_D] = __expectString(data[_D]); + } + if (data[_ET] != null) { + contents[_ET] = __expectString(data[_ET]); + } + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); + } + if (data[_KM] != null) { + contents[_KM] = __expectString(data[_KM]); + } + if (data[_MK] != null) { + contents[_MK] = __strictParseInt32(data[_MK]) as number; + } + if (data[_N] != null) { + contents[_N] = __expectString(data[_N]); + } + if (data[_NKM] != null) { + contents[_NKM] = __expectString(data[_NKM]); + } + if (data[_NVIM] != null) { + contents[_NVIM] = __expectString(data[_NVIM]); + } + if (data[_P] != null) { + contents[_P] = __expectString(data[_P]); + } + if (data[_VIM] != null) { + contents[_VIM] = __expectString(data[_VIM]); + } + if (data.Version === "") { + contents[_Ve] = []; + } else if (data[_V] != null) { + contents[_Ve] = de_ObjectVersionList(__getArrayIfSingleItem(data[_V]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlListPartsCommand + */ +export const de_ListPartsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_AD]: [ + () => void 0 !== output.headers[_xaad], + () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xaad])), + ], + [_ARI]: [, output.headers[_xaari]], + [_RC]: [, output.headers[_xarc]], + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data[_B] != null) { + contents[_B] = __expectString(data[_B]); + } + if (data[_CA] != null) { + contents[_CA] = __expectString(data[_CA]); + } + if (data[_CT] != null) { + contents[_CT] = __expectString(data[_CT]); + } + if (data[_In] != null) { + contents[_In] = de_Initiator(data[_In], context); + } + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); + } + if (data[_K] != null) { + contents[_K] = __expectString(data[_K]); + } + if (data[_MP] != null) { + contents[_MP] = __strictParseInt32(data[_MP]) as number; + } + if (data[_NPNM] != null) { + contents[_NPNM] = __expectString(data[_NPNM]); + } + if (data[_O] != null) { + contents[_O] = de_Owner(data[_O], context); + } + if (data[_PNM] != null) { + contents[_PNM] = __expectString(data[_PNM]); + } + if (data.Part === "") { + contents[_Part] = []; + } else if (data[_Par] != null) { + contents[_Part] = de_Parts(__getArrayIfSingleItem(data[_Par]), context); + } + if (data[_SC] != null) { + contents[_SC] = __expectString(data[_SC]); + } + if (data[_UI] != null) { + contents[_UI] = __expectString(data[_UI]); + } + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketAccelerateConfigurationCommand + */ +export const de_PutBucketAccelerateConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketAclCommand + */ +export const de_PutBucketAclCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketAnalyticsConfigurationCommand + */ +export const de_PutBucketAnalyticsConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketCorsCommand + */ +export const de_PutBucketCorsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketEncryptionCommand + */ +export const de_PutBucketEncryptionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketIntelligentTieringConfigurationCommand + */ +export const de_PutBucketIntelligentTieringConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketInventoryConfigurationCommand + */ +export const de_PutBucketInventoryConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketLifecycleConfigurationCommand + */ +export const de_PutBucketLifecycleConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_TDMOS]: [, output.headers[_xatdmos]], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketLoggingCommand + */ +export const de_PutBucketLoggingCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketMetricsConfigurationCommand + */ +export const de_PutBucketMetricsConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketNotificationConfigurationCommand + */ +export const de_PutBucketNotificationConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketOwnershipControlsCommand + */ +export const de_PutBucketOwnershipControlsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketPolicyCommand + */ +export const de_PutBucketPolicyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketReplicationCommand + */ +export const de_PutBucketReplicationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketRequestPaymentCommand + */ +export const de_PutBucketRequestPaymentCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketTaggingCommand + */ +export const de_PutBucketTaggingCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketVersioningCommand + */ +export const de_PutBucketVersioningCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutBucketWebsiteCommand + */ +export const de_PutBucketWebsiteCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutObjectCommand + */ +export const de_PutObjectCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_Exp]: [, output.headers[_xae]], + [_ETa]: [, output.headers[_eta]], + [_CCRC]: [, output.headers[_xacc]], + [_CCRCC]: [, output.headers[_xacc_]], + [_CCRCNVME]: [, output.headers[_xacc__]], + [_CSHA]: [, output.headers[_xacs]], + [_CSHAh]: [, output.headers[_xacs_]], + [_CT]: [, output.headers[_xact]], + [_SSE]: [, output.headers[_xasse]], + [_VI]: [, output.headers[_xavi]], + [_SSECA]: [, output.headers[_xasseca]], + [_SSECKMD]: [, output.headers[_xasseckm]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_SSEKMSEC]: [, output.headers[_xassec]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_Si]: [() => void 0 !== output.headers[_xaos], () => __strictParseLong(output.headers[_xaos])], + [_RC]: [, output.headers[_xarc]], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutObjectAclCommand + */ +export const de_PutObjectAclCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_RC]: [, output.headers[_xarc]], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutObjectLegalHoldCommand + */ +export const de_PutObjectLegalHoldCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_RC]: [, output.headers[_xarc]], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutObjectLockConfigurationCommand + */ +export const de_PutObjectLockConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_RC]: [, output.headers[_xarc]], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutObjectRetentionCommand + */ +export const de_PutObjectRetentionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_RC]: [, output.headers[_xarc]], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutObjectTaggingCommand + */ +export const de_PutObjectTaggingCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_VI]: [, output.headers[_xavi]], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlPutPublicAccessBlockCommand + */ +export const de_PutPublicAccessBlockCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlRenameObjectCommand + */ +export const de_RenameObjectCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlRestoreObjectCommand + */ +export const de_RestoreObjectCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_RC]: [, output.headers[_xarc]], + [_ROP]: [, output.headers[_xarop]], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlSelectObjectContentCommand + */ +export const de_SelectObjectContentCommand = async ( + output: __HttpResponse, + context: __SerdeContext & __EventStreamSerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: any = output.body; + contents.Payload = de_SelectObjectContentEventStream(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlUpdateBucketMetadataInventoryTableConfigurationCommand + */ +export const de_UpdateBucketMetadataInventoryTableConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlUpdateBucketMetadataJournalTableConfigurationCommand + */ +export const de_UpdateBucketMetadataJournalTableConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlUploadPartCommand + */ +export const de_UploadPartCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_SSE]: [, output.headers[_xasse]], + [_ETa]: [, output.headers[_eta]], + [_CCRC]: [, output.headers[_xacc]], + [_CCRCC]: [, output.headers[_xacc_]], + [_CCRCNVME]: [, output.headers[_xacc__]], + [_CSHA]: [, output.headers[_xacs]], + [_CSHAh]: [, output.headers[_xacs_]], + [_SSECA]: [, output.headers[_xasseca]], + [_SSECKMD]: [, output.headers[_xasseckm]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_RC]: [, output.headers[_xarc]], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restXmlUploadPartCopyCommand + */ +export const de_UploadPartCopyCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_CSVI]: [, output.headers[_xacsvi]], + [_SSE]: [, output.headers[_xasse]], + [_SSECA]: [, output.headers[_xasseca]], + [_SSECKMD]: [, output.headers[_xasseckm]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_RC]: [, output.headers[_xarc]], + }); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); + contents.CopyPartResult = de_CopyPartResult(data, context); + return contents; +}; + +/** + * deserializeAws_restXmlWriteGetObjectResponseCommand + */ +export const de_WriteGetObjectResponseCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserialize_Aws_restXmlCommandError + */ +const de_CommandError = async (output: __HttpResponse, context: __SerdeContext): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestXmlErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "NoSuchUpload": + case "com.amazonaws.s3#NoSuchUpload": + throw await de_NoSuchUploadRes(parsedOutput, context); + case "ObjectNotInActiveTierError": + case "com.amazonaws.s3#ObjectNotInActiveTierError": + throw await de_ObjectNotInActiveTierErrorRes(parsedOutput, context); + case "BucketAlreadyExists": + case "com.amazonaws.s3#BucketAlreadyExists": + throw await de_BucketAlreadyExistsRes(parsedOutput, context); + case "BucketAlreadyOwnedByYou": + case "com.amazonaws.s3#BucketAlreadyOwnedByYou": + throw await de_BucketAlreadyOwnedByYouRes(parsedOutput, context); + case "NoSuchBucket": + case "com.amazonaws.s3#NoSuchBucket": + throw await de_NoSuchBucketRes(parsedOutput, context); + case "InvalidObjectState": + case "com.amazonaws.s3#InvalidObjectState": + throw await de_InvalidObjectStateRes(parsedOutput, context); + case "NoSuchKey": + case "com.amazonaws.s3#NoSuchKey": + throw await de_NoSuchKeyRes(parsedOutput, context); + case "NotFound": + case "com.amazonaws.s3#NotFound": + throw await de_NotFoundRes(parsedOutput, context); + case "EncryptionTypeMismatch": + case "com.amazonaws.s3#EncryptionTypeMismatch": + throw await de_EncryptionTypeMismatchRes(parsedOutput, context); + case "InvalidRequest": + case "com.amazonaws.s3#InvalidRequest": + throw await de_InvalidRequestRes(parsedOutput, context); + case "InvalidWriteOffset": + case "com.amazonaws.s3#InvalidWriteOffset": + throw await de_InvalidWriteOffsetRes(parsedOutput, context); + case "TooManyParts": + case "com.amazonaws.s3#TooManyParts": + throw await de_TooManyPartsRes(parsedOutput, context); + case "IdempotencyParameterMismatch": + case "com.amazonaws.s3#IdempotencyParameterMismatch": + throw await de_IdempotencyParameterMismatchRes(parsedOutput, context); + case "ObjectAlreadyInActiveTierError": + case "com.amazonaws.s3#ObjectAlreadyInActiveTierError": + throw await de_ObjectAlreadyInActiveTierErrorRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }) as never; + } +}; + +const throwDefaultError = withBaseException(__BaseException); +/** + * deserializeAws_restXmlBucketAlreadyExistsRes + */ +const de_BucketAlreadyExistsRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const exception = new BucketAlreadyExists({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restXmlBucketAlreadyOwnedByYouRes + */ +const de_BucketAlreadyOwnedByYouRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const exception = new BucketAlreadyOwnedByYou({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restXmlEncryptionTypeMismatchRes + */ +const de_EncryptionTypeMismatchRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const exception = new EncryptionTypeMismatch({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restXmlIdempotencyParameterMismatchRes + */ +const de_IdempotencyParameterMismatchRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const exception = new IdempotencyParameterMismatch({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restXmlInvalidObjectStateRes + */ +const de_InvalidObjectStateRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + if (data[_AT] != null) { + contents[_AT] = __expectString(data[_AT]); + } + if (data[_SC] != null) { + contents[_SC] = __expectString(data[_SC]); + } + const exception = new InvalidObjectState({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restXmlInvalidRequestRes + */ +const de_InvalidRequestRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const exception = new InvalidRequest({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restXmlInvalidWriteOffsetRes + */ +const de_InvalidWriteOffsetRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const exception = new InvalidWriteOffset({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restXmlNoSuchBucketRes + */ +const de_NoSuchBucketRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const exception = new NoSuchBucket({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restXmlNoSuchKeyRes + */ +const de_NoSuchKeyRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const exception = new NoSuchKey({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restXmlNoSuchUploadRes + */ +const de_NoSuchUploadRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const exception = new NoSuchUpload({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restXmlNotFoundRes + */ +const de_NotFoundRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const exception = new NotFound({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restXmlObjectAlreadyInActiveTierErrorRes + */ +const de_ObjectAlreadyInActiveTierErrorRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const exception = new ObjectAlreadyInActiveTierError({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restXmlObjectNotInActiveTierErrorRes + */ +const de_ObjectNotInActiveTierErrorRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const exception = new ObjectNotInActiveTierError({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restXmlTooManyPartsRes + */ +const de_TooManyPartsRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const exception = new TooManyParts({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restXmlSelectObjectContentEventStream + */ +const de_SelectObjectContentEventStream = ( + output: any, + context: __SerdeContext & __EventStreamSerdeContext +): AsyncIterable => { + return context.eventStreamMarshaller.deserialize(output, async (event) => { + if (event["Records"] != null) { + return { + Records: await de_RecordsEvent_event(event["Records"], context), + }; + } + if (event["Stats"] != null) { + return { + Stats: await de_StatsEvent_event(event["Stats"], context), + }; + } + if (event["Progress"] != null) { + return { + Progress: await de_ProgressEvent_event(event["Progress"], context), + }; + } + if (event["Cont"] != null) { + return { + Cont: await de_ContinuationEvent_event(event["Cont"], context), + }; + } + if (event["End"] != null) { + return { + End: await de_EndEvent_event(event["End"], context), + }; + } + return { $unknown: event as any }; + }); +}; +const de_ContinuationEvent_event = async (output: any, context: __SerdeContext): Promise => { + const contents: ContinuationEvent = {} as any; + const data: any = await parseBody(output.body, context); + Object.assign(contents, de_ContinuationEvent(data, context)); + return contents; +}; +const de_EndEvent_event = async (output: any, context: __SerdeContext): Promise => { + const contents: EndEvent = {} as any; + const data: any = await parseBody(output.body, context); + Object.assign(contents, de_EndEvent(data, context)); + return contents; +}; +const de_ProgressEvent_event = async (output: any, context: __SerdeContext): Promise => { + const contents: ProgressEvent = {} as any; + const data: any = await parseBody(output.body, context); + contents.Details = de_Progress(data, context); + return contents; +}; +const de_RecordsEvent_event = async (output: any, context: __SerdeContext): Promise => { + const contents: RecordsEvent = {} as any; + contents.Payload = output.body; + return contents; +}; +const de_StatsEvent_event = async (output: any, context: __SerdeContext): Promise => { + const contents: StatsEvent = {} as any; + const data: any = await parseBody(output.body, context); + contents.Details = de_Stats(data, context); + return contents; +}; +/** + * serializeAws_restXmlAbortIncompleteMultipartUpload + */ +const se_AbortIncompleteMultipartUpload = (input: AbortIncompleteMultipartUpload, context: __SerdeContext): any => { + const bn = new __XmlNode(_AIMU); + if (input[_DAI] != null) { + bn.c(__XmlNode.of(_DAI, String(input[_DAI])).n(_DAI)); + } + return bn; +}; + +/** + * serializeAws_restXmlAccelerateConfiguration + */ +const se_AccelerateConfiguration = (input: AccelerateConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_ACc); + if (input[_S] != null) { + bn.c(__XmlNode.of(_BAS, input[_S]).n(_S)); + } + return bn; +}; + +/** + * serializeAws_restXmlAccessControlPolicy + */ +const se_AccessControlPolicy = (input: AccessControlPolicy, context: __SerdeContext): any => { + const bn = new __XmlNode(_ACP); + bn.lc(input, "Grants", "AccessControlList", () => se_Grants(input[_Gr]!, context)); + if (input[_O] != null) { + bn.c(se_Owner(input[_O], context).n(_O)); + } + return bn; +}; + +/** + * serializeAws_restXmlAccessControlTranslation + */ +const se_AccessControlTranslation = (input: AccessControlTranslation, context: __SerdeContext): any => { + const bn = new __XmlNode(_ACT); + if (input[_O] != null) { + bn.c(__XmlNode.of(_OOw, input[_O]).n(_O)); + } + return bn; +}; + +/** + * serializeAws_restXmlAllowedHeaders + */ +const se_AllowedHeaders = (input: string[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = __XmlNode.of(_AH, entry); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlAllowedMethods + */ +const se_AllowedMethods = (input: string[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = __XmlNode.of(_AM, entry); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlAllowedOrigins + */ +const se_AllowedOrigins = (input: string[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = __XmlNode.of(_AO, entry); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlAnalyticsAndOperator + */ +const se_AnalyticsAndOperator = (input: AnalyticsAndOperator, context: __SerdeContext): any => { + const bn = new __XmlNode(_AAO); + bn.cc(input, _P); + bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); + return bn; +}; + +/** + * serializeAws_restXmlAnalyticsConfiguration + */ +const se_AnalyticsConfiguration = (input: AnalyticsConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_AC); + if (input[_I] != null) { + bn.c(__XmlNode.of(_AI, input[_I]).n(_I)); + } + if (input[_F] != null) { + bn.c(se_AnalyticsFilter(input[_F], context).n(_F)); + } + if (input[_SCA] != null) { + bn.c(se_StorageClassAnalysis(input[_SCA], context).n(_SCA)); + } + return bn; +}; + +/** + * serializeAws_restXmlAnalyticsExportDestination + */ +const se_AnalyticsExportDestination = (input: AnalyticsExportDestination, context: __SerdeContext): any => { + const bn = new __XmlNode(_AED); + if (input[_SBD] != null) { + bn.c(se_AnalyticsS3BucketDestination(input[_SBD], context).n(_SBD)); + } + return bn; +}; + +/** + * serializeAws_restXmlAnalyticsFilter + */ +const se_AnalyticsFilter = (input: AnalyticsFilter, context: __SerdeContext): any => { + const bn = new __XmlNode(_AF); + AnalyticsFilter.visit(input, { + Prefix: (value) => { + if (input[_P] != null) { + bn.c(__XmlNode.of(_P, value).n(_P)); + } + }, + Tag: (value) => { + if (input[_Ta] != null) { + bn.c(se_Tag(value, context).n(_Ta)); + } + }, + And: (value) => { + if (input[_A] != null) { + bn.c(se_AnalyticsAndOperator(value, context).n(_A)); + } + }, + _: (name: string, value: any) => { + if (!(value instanceof __XmlNode || value instanceof __XmlText)) { + throw new Error("Unable to serialize unknown union members in XML."); + } + bn.c(new __XmlNode(name).c(value)); + }, + }); + return bn; +}; + +/** + * serializeAws_restXmlAnalyticsS3BucketDestination + */ +const se_AnalyticsS3BucketDestination = (input: AnalyticsS3BucketDestination, context: __SerdeContext): any => { + const bn = new __XmlNode(_ASBD); + if (input[_Fo] != null) { + bn.c(__XmlNode.of(_ASEFF, input[_Fo]).n(_Fo)); + } + if (input[_BAI] != null) { + bn.c(__XmlNode.of(_AIc, input[_BAI]).n(_BAI)); + } + if (input[_B] != null) { + bn.c(__XmlNode.of(_BN, input[_B]).n(_B)); + } + bn.cc(input, _P); + return bn; +}; + +/** + * serializeAws_restXmlBucketInfo + */ +const se_BucketInfo = (input: BucketInfo, context: __SerdeContext): any => { + const bn = new __XmlNode(_BI); + bn.cc(input, _DR); + if (input[_Ty] != null) { + bn.c(__XmlNode.of(_BT, input[_Ty]).n(_Ty)); + } + return bn; +}; + +/** + * serializeAws_restXmlBucketLifecycleConfiguration + */ +const se_BucketLifecycleConfiguration = (input: BucketLifecycleConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_BLC); + bn.l(input, "Rules", "Rule", () => se_LifecycleRules(input[_Rul]!, context)); + return bn; +}; + +/** + * serializeAws_restXmlBucketLoggingStatus + */ +const se_BucketLoggingStatus = (input: BucketLoggingStatus, context: __SerdeContext): any => { + const bn = new __XmlNode(_BLS); + if (input[_LE] != null) { + bn.c(se_LoggingEnabled(input[_LE], context).n(_LE)); + } + return bn; +}; + +/** + * serializeAws_restXmlCompletedMultipartUpload + */ +const se_CompletedMultipartUpload = (input: CompletedMultipartUpload, context: __SerdeContext): any => { + const bn = new __XmlNode(_CMU); + bn.l(input, "Parts", "Part", () => se_CompletedPartList(input[_Part]!, context)); + return bn; +}; + +/** + * serializeAws_restXmlCompletedPart + */ +const se_CompletedPart = (input: CompletedPart, context: __SerdeContext): any => { + const bn = new __XmlNode(_CPo); + bn.cc(input, _ETa); + bn.cc(input, _CCRC); + bn.cc(input, _CCRCC); + bn.cc(input, _CCRCNVME); + bn.cc(input, _CSHA); + bn.cc(input, _CSHAh); + if (input[_PN] != null) { + bn.c(__XmlNode.of(_PN, String(input[_PN])).n(_PN)); + } + return bn; +}; + +/** + * serializeAws_restXmlCompletedPartList + */ +const se_CompletedPartList = (input: CompletedPart[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_CompletedPart(entry, context); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlCondition + */ +const se_Condition = (input: Condition, context: __SerdeContext): any => { + const bn = new __XmlNode(_Con); + bn.cc(input, _HECRE); + bn.cc(input, _KPE); + return bn; +}; + +/** + * serializeAws_restXmlCORSConfiguration + */ +const se_CORSConfiguration = (input: CORSConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_CORSC); + bn.l(input, "CORSRules", "CORSRule", () => se_CORSRules(input[_CORSRu]!, context)); + return bn; +}; + +/** + * serializeAws_restXmlCORSRule + */ +const se_CORSRule = (input: CORSRule, context: __SerdeContext): any => { + const bn = new __XmlNode(_CORSR); + bn.cc(input, _ID_); + bn.l(input, "AllowedHeaders", "AllowedHeader", () => se_AllowedHeaders(input[_AHl]!, context)); + bn.l(input, "AllowedMethods", "AllowedMethod", () => se_AllowedMethods(input[_AMl]!, context)); + bn.l(input, "AllowedOrigins", "AllowedOrigin", () => se_AllowedOrigins(input[_AOl]!, context)); + bn.l(input, "ExposeHeaders", "ExposeHeader", () => se_ExposeHeaders(input[_EH]!, context)); + if (input[_MAS] != null) { + bn.c(__XmlNode.of(_MAS, String(input[_MAS])).n(_MAS)); + } + return bn; +}; + +/** + * serializeAws_restXmlCORSRules + */ +const se_CORSRules = (input: CORSRule[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_CORSRule(entry, context); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlCreateBucketConfiguration + */ +const se_CreateBucketConfiguration = (input: CreateBucketConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_CBC); + if (input[_LC] != null) { + bn.c(__XmlNode.of(_BLCu, input[_LC]).n(_LC)); + } + if (input[_L] != null) { + bn.c(se_LocationInfo(input[_L], context).n(_L)); + } + if (input[_B] != null) { + bn.c(se_BucketInfo(input[_B], context).n(_B)); + } + bn.lc(input, "Tags", "Tags", () => se_TagSet(input[_Tag]!, context)); + return bn; +}; + +/** + * serializeAws_restXmlCSVInput + */ +const se_CSVInput = (input: CSVInput, context: __SerdeContext): any => { + const bn = new __XmlNode(_CSVIn); + bn.cc(input, _FHI); + bn.cc(input, _Com); + bn.cc(input, _QEC); + bn.cc(input, _RD); + bn.cc(input, _FD); + bn.cc(input, _QCuo); + if (input[_AQRD] != null) { + bn.c(__XmlNode.of(_AQRD, String(input[_AQRD])).n(_AQRD)); + } + return bn; +}; + +/** + * serializeAws_restXmlCSVOutput + */ +const se_CSVOutput = (input: CSVOutput, context: __SerdeContext): any => { + const bn = new __XmlNode(_CSVO); + bn.cc(input, _QF); + bn.cc(input, _QEC); + bn.cc(input, _RD); + bn.cc(input, _FD); + bn.cc(input, _QCuo); + return bn; +}; + +/** + * serializeAws_restXmlDefaultRetention + */ +const se_DefaultRetention = (input: DefaultRetention, context: __SerdeContext): any => { + const bn = new __XmlNode(_DRe); + if (input[_Mo] != null) { + bn.c(__XmlNode.of(_OLRM, input[_Mo]).n(_Mo)); + } + if (input[_Da] != null) { + bn.c(__XmlNode.of(_Da, String(input[_Da])).n(_Da)); + } + if (input[_Y] != null) { + bn.c(__XmlNode.of(_Y, String(input[_Y])).n(_Y)); + } + return bn; +}; + +/** + * serializeAws_restXmlDelete + */ +const se_Delete = (input: Delete, context: __SerdeContext): any => { + const bn = new __XmlNode(_Del); + bn.l(input, "Objects", "Object", () => se_ObjectIdentifierList(input[_Ob]!, context)); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_Q, String(input[_Q])).n(_Q)); + } + return bn; +}; + +/** + * serializeAws_restXmlDeleteMarkerReplication + */ +const se_DeleteMarkerReplication = (input: DeleteMarkerReplication, context: __SerdeContext): any => { + const bn = new __XmlNode(_DMR); + if (input[_S] != null) { + bn.c(__XmlNode.of(_DMRS, input[_S]).n(_S)); + } + return bn; +}; + +/** + * serializeAws_restXmlDestination + */ +const se_Destination = (input: Destination, context: __SerdeContext): any => { + const bn = new __XmlNode(_Des); + if (input[_B] != null) { + bn.c(__XmlNode.of(_BN, input[_B]).n(_B)); + } + if (input[_Ac] != null) { + bn.c(__XmlNode.of(_AIc, input[_Ac]).n(_Ac)); + } + bn.cc(input, _SC); + if (input[_ACT] != null) { + bn.c(se_AccessControlTranslation(input[_ACT], context).n(_ACT)); + } + if (input[_ECn] != null) { + bn.c(se_EncryptionConfiguration(input[_ECn], context).n(_ECn)); + } + if (input[_RTe] != null) { + bn.c(se_ReplicationTime(input[_RTe], context).n(_RTe)); + } + if (input[_Me] != null) { + bn.c(se_Metrics(input[_Me], context).n(_Me)); + } + return bn; +}; + +/** + * serializeAws_restXmlEncryption + */ +const se_Encryption = (input: Encryption, context: __SerdeContext): any => { + const bn = new __XmlNode(_En); + if (input[_ETn] != null) { + bn.c(__XmlNode.of(_SSE, input[_ETn]).n(_ETn)); + } + if (input[_KMSKI] != null) { + bn.c(__XmlNode.of(_SSEKMSKI, input[_KMSKI]).n(_KMSKI)); + } + bn.cc(input, _KMSC); + return bn; +}; + +/** + * serializeAws_restXmlEncryptionConfiguration + */ +const se_EncryptionConfiguration = (input: EncryptionConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_ECn); + bn.cc(input, _RKKID); + return bn; +}; + +/** + * serializeAws_restXmlErrorDocument + */ +const se_ErrorDocument = (input: ErrorDocument, context: __SerdeContext): any => { + const bn = new __XmlNode(_ED); + if (input[_K] != null) { + bn.c(__XmlNode.of(_OK, input[_K]).n(_K)); + } + return bn; +}; + +/** + * serializeAws_restXmlEventBridgeConfiguration + */ +const se_EventBridgeConfiguration = (input: EventBridgeConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_EBC); + return bn; +}; + +/** + * serializeAws_restXmlEventList + */ +const se_EventList = (input: Event[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = __XmlNode.of(_Ev, entry); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlExistingObjectReplication + */ +const se_ExistingObjectReplication = (input: ExistingObjectReplication, context: __SerdeContext): any => { + const bn = new __XmlNode(_EOR); + if (input[_S] != null) { + bn.c(__XmlNode.of(_EORS, input[_S]).n(_S)); + } + return bn; +}; + +/** + * serializeAws_restXmlExposeHeaders + */ +const se_ExposeHeaders = (input: string[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = __XmlNode.of(_EHx, entry); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlFilterRule + */ +const se_FilterRule = (input: FilterRule, context: __SerdeContext): any => { + const bn = new __XmlNode(_FR); + if (input[_N] != null) { + bn.c(__XmlNode.of(_FRN, input[_N]).n(_N)); + } + if (input[_Va] != null) { + bn.c(__XmlNode.of(_FRV, input[_Va]).n(_Va)); + } + return bn; +}; + +/** + * serializeAws_restXmlFilterRuleList + */ +const se_FilterRuleList = (input: FilterRule[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_FilterRule(entry, context); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlGlacierJobParameters + */ +const se_GlacierJobParameters = (input: GlacierJobParameters, context: __SerdeContext): any => { + const bn = new __XmlNode(_GJP); + bn.cc(input, _Ti); + return bn; +}; + +/** + * serializeAws_restXmlGrant + */ +const se_Grant = (input: Grant, context: __SerdeContext): any => { + const bn = new __XmlNode(_G); + if (input[_Gra] != null) { + const n = se_Grantee(input[_Gra], context).n(_Gra); + n.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); + bn.c(n); + } + bn.cc(input, _Pe); + return bn; +}; + +/** + * serializeAws_restXmlGrantee + */ +const se_Grantee = (input: Grantee, context: __SerdeContext): any => { + const bn = new __XmlNode(_Gra); + bn.cc(input, _DN); + bn.cc(input, _EA); + bn.cc(input, _ID_); + bn.cc(input, _URI); + bn.a("xsi:type", input[_Ty]); + return bn; +}; + +/** + * serializeAws_restXmlGrants + */ +const se_Grants = (input: Grant[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_Grant(entry, context); + return n.n(_G); + }); +}; + +/** + * serializeAws_restXmlIndexDocument + */ +const se_IndexDocument = (input: IndexDocument, context: __SerdeContext): any => { + const bn = new __XmlNode(_ID); + bn.cc(input, _Su); + return bn; +}; + +/** + * serializeAws_restXmlInputSerialization + */ +const se_InputSerialization = (input: InputSerialization, context: __SerdeContext): any => { + const bn = new __XmlNode(_IS); + if (input[_CSV] != null) { + bn.c(se_CSVInput(input[_CSV], context).n(_CSV)); + } + bn.cc(input, _CTom); + if (input[_JSON] != null) { + bn.c(se_JSONInput(input[_JSON], context).n(_JSON)); + } + if (input[_Parq] != null) { + bn.c(se_ParquetInput(input[_Parq], context).n(_Parq)); + } + return bn; +}; + +/** + * serializeAws_restXmlIntelligentTieringAndOperator + */ +const se_IntelligentTieringAndOperator = (input: IntelligentTieringAndOperator, context: __SerdeContext): any => { + const bn = new __XmlNode(_ITAO); + bn.cc(input, _P); + bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); + return bn; +}; + +/** + * serializeAws_restXmlIntelligentTieringConfiguration + */ +const se_IntelligentTieringConfiguration = (input: IntelligentTieringConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_ITC); + if (input[_I] != null) { + bn.c(__XmlNode.of(_ITI, input[_I]).n(_I)); + } + if (input[_F] != null) { + bn.c(se_IntelligentTieringFilter(input[_F], context).n(_F)); + } + if (input[_S] != null) { + bn.c(__XmlNode.of(_ITS, input[_S]).n(_S)); + } + bn.l(input, "Tierings", "Tiering", () => se_TieringList(input[_Tie]!, context)); + return bn; +}; + +/** + * serializeAws_restXmlIntelligentTieringFilter + */ +const se_IntelligentTieringFilter = (input: IntelligentTieringFilter, context: __SerdeContext): any => { + const bn = new __XmlNode(_ITF); + bn.cc(input, _P); + if (input[_Ta] != null) { + bn.c(se_Tag(input[_Ta], context).n(_Ta)); + } + if (input[_A] != null) { + bn.c(se_IntelligentTieringAndOperator(input[_A], context).n(_A)); + } + return bn; +}; + +/** + * serializeAws_restXmlInventoryConfiguration + */ +const se_InventoryConfiguration = (input: InventoryConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_IC); + if (input[_Des] != null) { + bn.c(se_InventoryDestination(input[_Des], context).n(_Des)); + } + if (input[_IE] != null) { + bn.c(__XmlNode.of(_IE, String(input[_IE])).n(_IE)); + } + if (input[_F] != null) { + bn.c(se_InventoryFilter(input[_F], context).n(_F)); + } + if (input[_I] != null) { + bn.c(__XmlNode.of(_II, input[_I]).n(_I)); + } + if (input[_IOV] != null) { + bn.c(__XmlNode.of(_IIOV, input[_IOV]).n(_IOV)); + } + bn.lc(input, "OptionalFields", "OptionalFields", () => se_InventoryOptionalFields(input[_OF]!, context)); + if (input[_Sc] != null) { + bn.c(se_InventorySchedule(input[_Sc], context).n(_Sc)); + } + return bn; +}; + +/** + * serializeAws_restXmlInventoryDestination + */ +const se_InventoryDestination = (input: InventoryDestination, context: __SerdeContext): any => { + const bn = new __XmlNode(_IDn); + if (input[_SBD] != null) { + bn.c(se_InventoryS3BucketDestination(input[_SBD], context).n(_SBD)); + } + return bn; +}; + +/** + * serializeAws_restXmlInventoryEncryption + */ +const se_InventoryEncryption = (input: InventoryEncryption, context: __SerdeContext): any => { + const bn = new __XmlNode(_IEn); + if (input[_SSES] != null) { + bn.c(se_SSES3(input[_SSES], context).n(_SS)); + } + if (input[_SSEKMS] != null) { + bn.c(se_SSEKMS(input[_SSEKMS], context).n(_SK)); + } + return bn; +}; + +/** + * serializeAws_restXmlInventoryFilter + */ +const se_InventoryFilter = (input: InventoryFilter, context: __SerdeContext): any => { + const bn = new __XmlNode(_IF); + bn.cc(input, _P); + return bn; +}; + +/** + * serializeAws_restXmlInventoryOptionalFields + */ +const se_InventoryOptionalFields = (input: InventoryOptionalField[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = __XmlNode.of(_IOF, entry); + return n.n(_Fi); + }); +}; + +/** + * serializeAws_restXmlInventoryS3BucketDestination + */ +const se_InventoryS3BucketDestination = (input: InventoryS3BucketDestination, context: __SerdeContext): any => { + const bn = new __XmlNode(_ISBD); + bn.cc(input, _AIc); + if (input[_B] != null) { + bn.c(__XmlNode.of(_BN, input[_B]).n(_B)); + } + if (input[_Fo] != null) { + bn.c(__XmlNode.of(_IFn, input[_Fo]).n(_Fo)); + } + bn.cc(input, _P); + if (input[_En] != null) { + bn.c(se_InventoryEncryption(input[_En], context).n(_En)); + } + return bn; +}; + +/** + * serializeAws_restXmlInventorySchedule + */ +const se_InventorySchedule = (input: InventorySchedule, context: __SerdeContext): any => { + const bn = new __XmlNode(_ISn); + if (input[_Fr] != null) { + bn.c(__XmlNode.of(_IFnv, input[_Fr]).n(_Fr)); + } + return bn; +}; + +/** + * serializeAws_restXmlInventoryTableConfiguration + */ +const se_InventoryTableConfiguration = (input: InventoryTableConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_ITCn); + if (input[_CSo] != null) { + bn.c(__XmlNode.of(_ICS, input[_CSo]).n(_CSo)); + } + if (input[_ECn] != null) { + bn.c(se_MetadataTableEncryptionConfiguration(input[_ECn], context).n(_ECn)); + } + return bn; +}; + +/** + * serializeAws_restXmlInventoryTableConfigurationUpdates + */ +const se_InventoryTableConfigurationUpdates = ( + input: InventoryTableConfigurationUpdates, + context: __SerdeContext +): any => { + const bn = new __XmlNode(_ITCU); + if (input[_CSo] != null) { + bn.c(__XmlNode.of(_ICS, input[_CSo]).n(_CSo)); + } + if (input[_ECn] != null) { + bn.c(se_MetadataTableEncryptionConfiguration(input[_ECn], context).n(_ECn)); + } + return bn; +}; + +/** + * serializeAws_restXmlJournalTableConfiguration + */ +const se_JournalTableConfiguration = (input: JournalTableConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_JTC); + if (input[_REe] != null) { + bn.c(se_RecordExpiration(input[_REe], context).n(_REe)); + } + if (input[_ECn] != null) { + bn.c(se_MetadataTableEncryptionConfiguration(input[_ECn], context).n(_ECn)); + } + return bn; +}; + +/** + * serializeAws_restXmlJournalTableConfigurationUpdates + */ +const se_JournalTableConfigurationUpdates = (input: JournalTableConfigurationUpdates, context: __SerdeContext): any => { + const bn = new __XmlNode(_JTCU); + if (input[_REe] != null) { + bn.c(se_RecordExpiration(input[_REe], context).n(_REe)); + } + return bn; +}; + +/** + * serializeAws_restXmlJSONInput + */ +const se_JSONInput = (input: JSONInput, context: __SerdeContext): any => { + const bn = new __XmlNode(_JSONI); + if (input[_Ty] != null) { + bn.c(__XmlNode.of(_JSONT, input[_Ty]).n(_Ty)); + } + return bn; +}; + +/** + * serializeAws_restXmlJSONOutput + */ +const se_JSONOutput = (input: JSONOutput, context: __SerdeContext): any => { + const bn = new __XmlNode(_JSONO); + bn.cc(input, _RD); + return bn; +}; + +/** + * serializeAws_restXmlLambdaFunctionConfiguration + */ +const se_LambdaFunctionConfiguration = (input: LambdaFunctionConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_LFCa); + if (input[_I] != null) { + bn.c(__XmlNode.of(_NI, input[_I]).n(_I)); + } + if (input[_LFA] != null) { + bn.c(__XmlNode.of(_LFA, input[_LFA]).n(_CF)); + } + bn.l(input, "Events", "Event", () => se_EventList(input[_Eve]!, context)); + if (input[_F] != null) { + bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F)); + } + return bn; +}; + +/** + * serializeAws_restXmlLambdaFunctionConfigurationList + */ +const se_LambdaFunctionConfigurationList = (input: LambdaFunctionConfiguration[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_LambdaFunctionConfiguration(entry, context); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlLifecycleExpiration + */ +const se_LifecycleExpiration = (input: LifecycleExpiration, context: __SerdeContext): any => { + const bn = new __XmlNode(_LEi); + if (input[_Dat] != null) { + bn.c(__XmlNode.of(_Dat, __serializeDateTime(input[_Dat]).toString()).n(_Dat)); + } + if (input[_Da] != null) { + bn.c(__XmlNode.of(_Da, String(input[_Da])).n(_Da)); + } + if (input[_EODM] != null) { + bn.c(__XmlNode.of(_EODM, String(input[_EODM])).n(_EODM)); + } + return bn; +}; + +/** + * serializeAws_restXmlLifecycleRule + */ +const se_LifecycleRule = (input: LifecycleRule, context: __SerdeContext): any => { + const bn = new __XmlNode(_LR); + if (input[_Exp] != null) { + bn.c(se_LifecycleExpiration(input[_Exp], context).n(_Exp)); + } + bn.cc(input, _ID_); + bn.cc(input, _P); + if (input[_F] != null) { + bn.c(se_LifecycleRuleFilter(input[_F], context).n(_F)); + } + if (input[_S] != null) { + bn.c(__XmlNode.of(_ESx, input[_S]).n(_S)); + } + bn.l(input, "Transitions", "Transition", () => se_TransitionList(input[_Tr]!, context)); + bn.l(input, "NoncurrentVersionTransitions", "NoncurrentVersionTransition", () => + se_NoncurrentVersionTransitionList(input[_NVT]!, context) + ); + if (input[_NVE] != null) { + bn.c(se_NoncurrentVersionExpiration(input[_NVE], context).n(_NVE)); + } + if (input[_AIMU] != null) { + bn.c(se_AbortIncompleteMultipartUpload(input[_AIMU], context).n(_AIMU)); + } + return bn; +}; + +/** + * serializeAws_restXmlLifecycleRuleAndOperator + */ +const se_LifecycleRuleAndOperator = (input: LifecycleRuleAndOperator, context: __SerdeContext): any => { + const bn = new __XmlNode(_LRAO); + bn.cc(input, _P); + bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); + if (input[_OSGT] != null) { + bn.c(__XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT)); + } + if (input[_OSLT] != null) { + bn.c(__XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT)); + } + return bn; +}; + +/** + * serializeAws_restXmlLifecycleRuleFilter + */ +const se_LifecycleRuleFilter = (input: LifecycleRuleFilter, context: __SerdeContext): any => { + const bn = new __XmlNode(_LRF); + bn.cc(input, _P); + if (input[_Ta] != null) { + bn.c(se_Tag(input[_Ta], context).n(_Ta)); + } + if (input[_OSGT] != null) { + bn.c(__XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT)); + } + if (input[_OSLT] != null) { + bn.c(__XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT)); + } + if (input[_A] != null) { + bn.c(se_LifecycleRuleAndOperator(input[_A], context).n(_A)); + } + return bn; +}; + +/** + * serializeAws_restXmlLifecycleRules + */ +const se_LifecycleRules = (input: LifecycleRule[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_LifecycleRule(entry, context); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlLocationInfo + */ +const se_LocationInfo = (input: LocationInfo, context: __SerdeContext): any => { + const bn = new __XmlNode(_LI); + if (input[_Ty] != null) { + bn.c(__XmlNode.of(_LT, input[_Ty]).n(_Ty)); + } + if (input[_N] != null) { + bn.c(__XmlNode.of(_LNAS, input[_N]).n(_N)); + } + return bn; +}; + +/** + * serializeAws_restXmlLoggingEnabled + */ +const se_LoggingEnabled = (input: LoggingEnabled, context: __SerdeContext): any => { + const bn = new __XmlNode(_LE); + bn.cc(input, _TB); + bn.lc(input, "TargetGrants", "TargetGrants", () => se_TargetGrants(input[_TG]!, context)); + bn.cc(input, _TP); + if (input[_TOKF] != null) { + bn.c(se_TargetObjectKeyFormat(input[_TOKF], context).n(_TOKF)); + } + return bn; +}; + +/** + * serializeAws_restXmlMetadataConfiguration + */ +const se_MetadataConfiguration = (input: MetadataConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_MCe); + if (input[_JTC] != null) { + bn.c(se_JournalTableConfiguration(input[_JTC], context).n(_JTC)); + } + if (input[_ITCn] != null) { + bn.c(se_InventoryTableConfiguration(input[_ITCn], context).n(_ITCn)); + } + return bn; +}; + +/** + * serializeAws_restXmlMetadataEntry + */ +const se_MetadataEntry = (input: MetadataEntry, context: __SerdeContext): any => { + const bn = new __XmlNode(_ME); + if (input[_N] != null) { + bn.c(__XmlNode.of(_MKe, input[_N]).n(_N)); + } + if (input[_Va] != null) { + bn.c(__XmlNode.of(_MV, input[_Va]).n(_Va)); + } + return bn; +}; + +/** + * serializeAws_restXmlMetadataTableConfiguration + */ +const se_MetadataTableConfiguration = (input: MetadataTableConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_MTC); + if (input[_STD] != null) { + bn.c(se_S3TablesDestination(input[_STD], context).n(_STD)); + } + return bn; +}; + +/** + * serializeAws_restXmlMetadataTableEncryptionConfiguration + */ +const se_MetadataTableEncryptionConfiguration = ( + input: MetadataTableEncryptionConfiguration, + context: __SerdeContext +): any => { + const bn = new __XmlNode(_MTEC); + if (input[_SAs] != null) { + bn.c(__XmlNode.of(_TSA, input[_SAs]).n(_SAs)); + } + bn.cc(input, _KKA); + return bn; +}; + +/** + * serializeAws_restXmlMetrics + */ +const se_Metrics = (input: Metrics, context: __SerdeContext): any => { + const bn = new __XmlNode(_Me); + if (input[_S] != null) { + bn.c(__XmlNode.of(_MS, input[_S]).n(_S)); + } + if (input[_ETv] != null) { + bn.c(se_ReplicationTimeValue(input[_ETv], context).n(_ETv)); + } + return bn; +}; + +/** + * serializeAws_restXmlMetricsAndOperator + */ +const se_MetricsAndOperator = (input: MetricsAndOperator, context: __SerdeContext): any => { + const bn = new __XmlNode(_MAO); + bn.cc(input, _P); + bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); + bn.cc(input, _APAc); + return bn; +}; + +/** + * serializeAws_restXmlMetricsConfiguration + */ +const se_MetricsConfiguration = (input: MetricsConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_MC); + if (input[_I] != null) { + bn.c(__XmlNode.of(_MI, input[_I]).n(_I)); + } + if (input[_F] != null) { + bn.c(se_MetricsFilter(input[_F], context).n(_F)); + } + return bn; +}; + +/** + * serializeAws_restXmlMetricsFilter + */ +const se_MetricsFilter = (input: MetricsFilter, context: __SerdeContext): any => { + const bn = new __XmlNode(_MF); + MetricsFilter.visit(input, { + Prefix: (value) => { + if (input[_P] != null) { + bn.c(__XmlNode.of(_P, value).n(_P)); + } + }, + Tag: (value) => { + if (input[_Ta] != null) { + bn.c(se_Tag(value, context).n(_Ta)); + } + }, + AccessPointArn: (value) => { + if (input[_APAc] != null) { + bn.c(__XmlNode.of(_APAc, value).n(_APAc)); + } + }, + And: (value) => { + if (input[_A] != null) { + bn.c(se_MetricsAndOperator(value, context).n(_A)); + } + }, + _: (name: string, value: any) => { + if (!(value instanceof __XmlNode || value instanceof __XmlText)) { + throw new Error("Unable to serialize unknown union members in XML."); + } + bn.c(new __XmlNode(name).c(value)); + }, + }); + return bn; +}; + +/** + * serializeAws_restXmlNoncurrentVersionExpiration + */ +const se_NoncurrentVersionExpiration = (input: NoncurrentVersionExpiration, context: __SerdeContext): any => { + const bn = new __XmlNode(_NVE); + if (input[_ND] != null) { + bn.c(__XmlNode.of(_Da, String(input[_ND])).n(_ND)); + } + if (input[_NNV] != null) { + bn.c(__XmlNode.of(_VC, String(input[_NNV])).n(_NNV)); + } + return bn; +}; + +/** + * serializeAws_restXmlNoncurrentVersionTransition + */ +const se_NoncurrentVersionTransition = (input: NoncurrentVersionTransition, context: __SerdeContext): any => { + const bn = new __XmlNode(_NVTo); + if (input[_ND] != null) { + bn.c(__XmlNode.of(_Da, String(input[_ND])).n(_ND)); + } + if (input[_SC] != null) { + bn.c(__XmlNode.of(_TSC, input[_SC]).n(_SC)); + } + if (input[_NNV] != null) { + bn.c(__XmlNode.of(_VC, String(input[_NNV])).n(_NNV)); + } + return bn; +}; + +/** + * serializeAws_restXmlNoncurrentVersionTransitionList + */ +const se_NoncurrentVersionTransitionList = (input: NoncurrentVersionTransition[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_NoncurrentVersionTransition(entry, context); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlNotificationConfiguration + */ +const se_NotificationConfiguration = (input: NotificationConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_NC); + bn.l(input, "TopicConfigurations", "TopicConfiguration", () => se_TopicConfigurationList(input[_TCop]!, context)); + bn.l(input, "QueueConfigurations", "QueueConfiguration", () => se_QueueConfigurationList(input[_QCu]!, context)); + bn.l(input, "LambdaFunctionConfigurations", "CloudFunctionConfiguration", () => + se_LambdaFunctionConfigurationList(input[_LFC]!, context) + ); + if (input[_EBC] != null) { + bn.c(se_EventBridgeConfiguration(input[_EBC], context).n(_EBC)); + } + return bn; +}; + +/** + * serializeAws_restXmlNotificationConfigurationFilter + */ +const se_NotificationConfigurationFilter = (input: NotificationConfigurationFilter, context: __SerdeContext): any => { + const bn = new __XmlNode(_NCF); + if (input[_K] != null) { + bn.c(se_S3KeyFilter(input[_K], context).n(_SKe)); + } + return bn; +}; + +/** + * serializeAws_restXmlObjectIdentifier + */ +const se_ObjectIdentifier = (input: ObjectIdentifier, context: __SerdeContext): any => { + const bn = new __XmlNode(_OI); + if (input[_K] != null) { + bn.c(__XmlNode.of(_OK, input[_K]).n(_K)); + } + if (input[_VI] != null) { + bn.c(__XmlNode.of(_OVI, input[_VI]).n(_VI)); + } + bn.cc(input, _ETa); + if (input[_LMT] != null) { + bn.c(__XmlNode.of(_LMT, __dateToUtcString(input[_LMT]).toString()).n(_LMT)); + } + if (input[_Si] != null) { + bn.c(__XmlNode.of(_Si, String(input[_Si])).n(_Si)); + } + return bn; +}; + +/** + * serializeAws_restXmlObjectIdentifierList + */ +const se_ObjectIdentifierList = (input: ObjectIdentifier[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_ObjectIdentifier(entry, context); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlObjectLockConfiguration + */ +const se_ObjectLockConfiguration = (input: ObjectLockConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_OLC); + bn.cc(input, _OLE); + if (input[_Ru] != null) { + bn.c(se_ObjectLockRule(input[_Ru], context).n(_Ru)); + } + return bn; +}; + +/** + * serializeAws_restXmlObjectLockLegalHold + */ +const se_ObjectLockLegalHold = (input: ObjectLockLegalHold, context: __SerdeContext): any => { + const bn = new __XmlNode(_OLLH); + if (input[_S] != null) { + bn.c(__XmlNode.of(_OLLHS, input[_S]).n(_S)); + } + return bn; +}; + +/** + * serializeAws_restXmlObjectLockRetention + */ +const se_ObjectLockRetention = (input: ObjectLockRetention, context: __SerdeContext): any => { + const bn = new __XmlNode(_OLR); + if (input[_Mo] != null) { + bn.c(__XmlNode.of(_OLRM, input[_Mo]).n(_Mo)); + } + if (input[_RUD] != null) { + bn.c(__XmlNode.of(_Dat, __serializeDateTime(input[_RUD]).toString()).n(_RUD)); + } + return bn; +}; + +/** + * serializeAws_restXmlObjectLockRule + */ +const se_ObjectLockRule = (input: ObjectLockRule, context: __SerdeContext): any => { + const bn = new __XmlNode(_OLRb); + if (input[_DRe] != null) { + bn.c(se_DefaultRetention(input[_DRe], context).n(_DRe)); + } + return bn; +}; + +/** + * serializeAws_restXmlOutputLocation + */ +const se_OutputLocation = (input: OutputLocation, context: __SerdeContext): any => { + const bn = new __XmlNode(_OL); + if (input[_S_] != null) { + bn.c(se_S3Location(input[_S_], context).n(_S_)); + } + return bn; +}; + +/** + * serializeAws_restXmlOutputSerialization + */ +const se_OutputSerialization = (input: OutputSerialization, context: __SerdeContext): any => { + const bn = new __XmlNode(_OS); + if (input[_CSV] != null) { + bn.c(se_CSVOutput(input[_CSV], context).n(_CSV)); + } + if (input[_JSON] != null) { + bn.c(se_JSONOutput(input[_JSON], context).n(_JSON)); + } + return bn; +}; + +/** + * serializeAws_restXmlOwner + */ +const se_Owner = (input: Owner, context: __SerdeContext): any => { + const bn = new __XmlNode(_O); + bn.cc(input, _DN); + bn.cc(input, _ID_); + return bn; +}; + +/** + * serializeAws_restXmlOwnershipControls + */ +const se_OwnershipControls = (input: OwnershipControls, context: __SerdeContext): any => { + const bn = new __XmlNode(_OC); + bn.l(input, "Rules", "Rule", () => se_OwnershipControlsRules(input[_Rul]!, context)); + return bn; +}; + +/** + * serializeAws_restXmlOwnershipControlsRule + */ +const se_OwnershipControlsRule = (input: OwnershipControlsRule, context: __SerdeContext): any => { + const bn = new __XmlNode(_OCR); + bn.cc(input, _OO); + return bn; +}; + +/** + * serializeAws_restXmlOwnershipControlsRules + */ +const se_OwnershipControlsRules = (input: OwnershipControlsRule[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_OwnershipControlsRule(entry, context); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlParquetInput + */ +const se_ParquetInput = (input: ParquetInput, context: __SerdeContext): any => { + const bn = new __XmlNode(_PI); + return bn; +}; + +/** + * serializeAws_restXmlPartitionedPrefix + */ +const se_PartitionedPrefix = (input: PartitionedPrefix, context: __SerdeContext): any => { + const bn = new __XmlNode(_PP); + bn.cc(input, _PDS); + return bn; +}; + +/** + * serializeAws_restXmlPublicAccessBlockConfiguration + */ +const se_PublicAccessBlockConfiguration = (input: PublicAccessBlockConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_PABC); + if (input[_BPA] != null) { + bn.c(__XmlNode.of(_Se, String(input[_BPA])).n(_BPA)); + } + if (input[_IPA] != null) { + bn.c(__XmlNode.of(_Se, String(input[_IPA])).n(_IPA)); + } + if (input[_BPP] != null) { + bn.c(__XmlNode.of(_Se, String(input[_BPP])).n(_BPP)); + } + if (input[_RPB] != null) { + bn.c(__XmlNode.of(_Se, String(input[_RPB])).n(_RPB)); + } + return bn; +}; + +/** + * serializeAws_restXmlQueueConfiguration + */ +const se_QueueConfiguration = (input: QueueConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_QC); + if (input[_I] != null) { + bn.c(__XmlNode.of(_NI, input[_I]).n(_I)); + } + if (input[_QA] != null) { + bn.c(__XmlNode.of(_QA, input[_QA]).n(_Qu)); + } + bn.l(input, "Events", "Event", () => se_EventList(input[_Eve]!, context)); + if (input[_F] != null) { + bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F)); + } + return bn; +}; + +/** + * serializeAws_restXmlQueueConfigurationList + */ +const se_QueueConfigurationList = (input: QueueConfiguration[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_QueueConfiguration(entry, context); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlRecordExpiration + */ +const se_RecordExpiration = (input: RecordExpiration, context: __SerdeContext): any => { + const bn = new __XmlNode(_REe); + if (input[_Exp] != null) { + bn.c(__XmlNode.of(_ESxp, input[_Exp]).n(_Exp)); + } + if (input[_Da] != null) { + bn.c(__XmlNode.of(_RED, String(input[_Da])).n(_Da)); + } + return bn; +}; + +/** + * serializeAws_restXmlRedirect + */ +const se_Redirect = (input: Redirect, context: __SerdeContext): any => { + const bn = new __XmlNode(_Red); + bn.cc(input, _HN); + bn.cc(input, _HRC); + bn.cc(input, _Pr); + bn.cc(input, _RKPW); + bn.cc(input, _RKW); + return bn; +}; + +/** + * serializeAws_restXmlRedirectAllRequestsTo + */ +const se_RedirectAllRequestsTo = (input: RedirectAllRequestsTo, context: __SerdeContext): any => { + const bn = new __XmlNode(_RART); + bn.cc(input, _HN); + bn.cc(input, _Pr); + return bn; +}; + +/** + * serializeAws_restXmlReplicaModifications + */ +const se_ReplicaModifications = (input: ReplicaModifications, context: __SerdeContext): any => { + const bn = new __XmlNode(_RM); + if (input[_S] != null) { + bn.c(__XmlNode.of(_RMS, input[_S]).n(_S)); + } + return bn; +}; + +/** + * serializeAws_restXmlReplicationConfiguration + */ +const se_ReplicationConfiguration = (input: ReplicationConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_RCe); + bn.cc(input, _Ro); + bn.l(input, "Rules", "Rule", () => se_ReplicationRules(input[_Rul]!, context)); + return bn; +}; + +/** + * serializeAws_restXmlReplicationRule + */ +const se_ReplicationRule = (input: ReplicationRule, context: __SerdeContext): any => { + const bn = new __XmlNode(_RRe); + bn.cc(input, _ID_); + if (input[_Pri] != null) { + bn.c(__XmlNode.of(_Pri, String(input[_Pri])).n(_Pri)); + } + bn.cc(input, _P); + if (input[_F] != null) { + bn.c(se_ReplicationRuleFilter(input[_F], context).n(_F)); + } + if (input[_S] != null) { + bn.c(__XmlNode.of(_RRS, input[_S]).n(_S)); + } + if (input[_SSC] != null) { + bn.c(se_SourceSelectionCriteria(input[_SSC], context).n(_SSC)); + } + if (input[_EOR] != null) { + bn.c(se_ExistingObjectReplication(input[_EOR], context).n(_EOR)); + } + if (input[_Des] != null) { + bn.c(se_Destination(input[_Des], context).n(_Des)); + } + if (input[_DMR] != null) { + bn.c(se_DeleteMarkerReplication(input[_DMR], context).n(_DMR)); + } + return bn; +}; + +/** + * serializeAws_restXmlReplicationRuleAndOperator + */ +const se_ReplicationRuleAndOperator = (input: ReplicationRuleAndOperator, context: __SerdeContext): any => { + const bn = new __XmlNode(_RRAO); + bn.cc(input, _P); + bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); + return bn; +}; + +/** + * serializeAws_restXmlReplicationRuleFilter + */ +const se_ReplicationRuleFilter = (input: ReplicationRuleFilter, context: __SerdeContext): any => { + const bn = new __XmlNode(_RRF); + bn.cc(input, _P); + if (input[_Ta] != null) { + bn.c(se_Tag(input[_Ta], context).n(_Ta)); + } + if (input[_A] != null) { + bn.c(se_ReplicationRuleAndOperator(input[_A], context).n(_A)); + } + return bn; +}; + +/** + * serializeAws_restXmlReplicationRules + */ +const se_ReplicationRules = (input: ReplicationRule[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_ReplicationRule(entry, context); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlReplicationTime + */ +const se_ReplicationTime = (input: ReplicationTime, context: __SerdeContext): any => { + const bn = new __XmlNode(_RTe); + if (input[_S] != null) { + bn.c(__XmlNode.of(_RTS, input[_S]).n(_S)); + } + if (input[_Tim] != null) { + bn.c(se_ReplicationTimeValue(input[_Tim], context).n(_Tim)); + } + return bn; +}; + +/** + * serializeAws_restXmlReplicationTimeValue + */ +const se_ReplicationTimeValue = (input: ReplicationTimeValue, context: __SerdeContext): any => { + const bn = new __XmlNode(_RTV); + if (input[_Mi] != null) { + bn.c(__XmlNode.of(_Mi, String(input[_Mi])).n(_Mi)); + } + return bn; +}; + +/** + * serializeAws_restXmlRequestPaymentConfiguration + */ +const se_RequestPaymentConfiguration = (input: RequestPaymentConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_RPC); + bn.cc(input, _Pa); + return bn; +}; + +/** + * serializeAws_restXmlRequestProgress + */ +const se_RequestProgress = (input: RequestProgress, context: __SerdeContext): any => { + const bn = new __XmlNode(_RPe); + if (input[_Ena] != null) { + bn.c(__XmlNode.of(_ERP, String(input[_Ena])).n(_Ena)); + } + return bn; +}; + +/** + * serializeAws_restXmlRestoreRequest + */ +const se_RestoreRequest = (input: RestoreRequest, context: __SerdeContext): any => { + const bn = new __XmlNode(_RRes); + if (input[_Da] != null) { + bn.c(__XmlNode.of(_Da, String(input[_Da])).n(_Da)); + } + if (input[_GJP] != null) { + bn.c(se_GlacierJobParameters(input[_GJP], context).n(_GJP)); + } + if (input[_Ty] != null) { + bn.c(__XmlNode.of(_RRT, input[_Ty]).n(_Ty)); + } + bn.cc(input, _Ti); + bn.cc(input, _Desc); + if (input[_SP] != null) { + bn.c(se_SelectParameters(input[_SP], context).n(_SP)); + } + if (input[_OL] != null) { + bn.c(se_OutputLocation(input[_OL], context).n(_OL)); + } + return bn; +}; + +/** + * serializeAws_restXmlRoutingRule + */ +const se_RoutingRule = (input: RoutingRule, context: __SerdeContext): any => { + const bn = new __XmlNode(_RRou); + if (input[_Con] != null) { + bn.c(se_Condition(input[_Con], context).n(_Con)); + } + if (input[_Red] != null) { + bn.c(se_Redirect(input[_Red], context).n(_Red)); + } + return bn; +}; + +/** + * serializeAws_restXmlRoutingRules + */ +const se_RoutingRules = (input: RoutingRule[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_RoutingRule(entry, context); + return n.n(_RRou); + }); +}; + +/** + * serializeAws_restXmlS3KeyFilter + */ +const se_S3KeyFilter = (input: S3KeyFilter, context: __SerdeContext): any => { + const bn = new __XmlNode(_SKF); + bn.l(input, "FilterRules", "FilterRule", () => se_FilterRuleList(input[_FRi]!, context)); + return bn; +}; + +/** + * serializeAws_restXmlS3Location + */ +const se_S3Location = (input: S3Location, context: __SerdeContext): any => { + const bn = new __XmlNode(_SL); + bn.cc(input, _BN); + if (input[_P] != null) { + bn.c(__XmlNode.of(_LP, input[_P]).n(_P)); + } + if (input[_En] != null) { + bn.c(se_Encryption(input[_En], context).n(_En)); + } + if (input[_CACL] != null) { + bn.c(__XmlNode.of(_OCACL, input[_CACL]).n(_CACL)); + } + bn.lc(input, "AccessControlList", "AccessControlList", () => se_Grants(input[_ACLc]!, context)); + if (input[_T] != null) { + bn.c(se_Tagging(input[_T], context).n(_T)); + } + bn.lc(input, "UserMetadata", "UserMetadata", () => se_UserMetadata(input[_UM]!, context)); + bn.cc(input, _SC); + return bn; +}; + +/** + * serializeAws_restXmlS3TablesDestination + */ +const se_S3TablesDestination = (input: S3TablesDestination, context: __SerdeContext): any => { + const bn = new __XmlNode(_STD); + if (input[_TBA] != null) { + bn.c(__XmlNode.of(_STBA, input[_TBA]).n(_TBA)); + } + if (input[_TN] != null) { + bn.c(__XmlNode.of(_STN, input[_TN]).n(_TN)); + } + return bn; +}; + +/** + * serializeAws_restXmlScanRange + */ +const se_ScanRange = (input: ScanRange, context: __SerdeContext): any => { + const bn = new __XmlNode(_SR); + if (input[_St] != null) { + bn.c(__XmlNode.of(_St, String(input[_St])).n(_St)); + } + if (input[_End] != null) { + bn.c(__XmlNode.of(_End, String(input[_End])).n(_End)); + } + return bn; +}; + +/** + * serializeAws_restXmlSelectParameters + */ +const se_SelectParameters = (input: SelectParameters, context: __SerdeContext): any => { + const bn = new __XmlNode(_SP); + if (input[_IS] != null) { + bn.c(se_InputSerialization(input[_IS], context).n(_IS)); + } + bn.cc(input, _ETx); + bn.cc(input, _Ex); + if (input[_OS] != null) { + bn.c(se_OutputSerialization(input[_OS], context).n(_OS)); + } + return bn; +}; + +/** + * serializeAws_restXmlServerSideEncryptionByDefault + */ +const se_ServerSideEncryptionByDefault = (input: ServerSideEncryptionByDefault, context: __SerdeContext): any => { + const bn = new __XmlNode(_SSEBD); + if (input[_SSEA] != null) { + bn.c(__XmlNode.of(_SSE, input[_SSEA]).n(_SSEA)); + } + if (input[_KMSMKID] != null) { + bn.c(__XmlNode.of(_SSEKMSKI, input[_KMSMKID]).n(_KMSMKID)); + } + return bn; +}; + +/** + * serializeAws_restXmlServerSideEncryptionConfiguration + */ +const se_ServerSideEncryptionConfiguration = ( + input: ServerSideEncryptionConfiguration, + context: __SerdeContext +): any => { + const bn = new __XmlNode(_SSEC); + bn.l(input, "Rules", "Rule", () => se_ServerSideEncryptionRules(input[_Rul]!, context)); + return bn; +}; + +/** + * serializeAws_restXmlServerSideEncryptionRule + */ +const se_ServerSideEncryptionRule = (input: ServerSideEncryptionRule, context: __SerdeContext): any => { + const bn = new __XmlNode(_SSER); + if (input[_ASSEBD] != null) { + bn.c(se_ServerSideEncryptionByDefault(input[_ASSEBD], context).n(_ASSEBD)); + } + if (input[_BKE] != null) { + bn.c(__XmlNode.of(_BKE, String(input[_BKE])).n(_BKE)); + } + return bn; +}; + +/** + * serializeAws_restXmlServerSideEncryptionRules + */ +const se_ServerSideEncryptionRules = (input: ServerSideEncryptionRule[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_ServerSideEncryptionRule(entry, context); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlSimplePrefix + */ +const se_SimplePrefix = (input: SimplePrefix, context: __SerdeContext): any => { + const bn = new __XmlNode(_SPi); + return bn; +}; + +/** + * serializeAws_restXmlSourceSelectionCriteria + */ +const se_SourceSelectionCriteria = (input: SourceSelectionCriteria, context: __SerdeContext): any => { + const bn = new __XmlNode(_SSC); + if (input[_SKEO] != null) { + bn.c(se_SseKmsEncryptedObjects(input[_SKEO], context).n(_SKEO)); + } + if (input[_RM] != null) { + bn.c(se_ReplicaModifications(input[_RM], context).n(_RM)); + } + return bn; +}; + +/** + * serializeAws_restXmlSSEKMS + */ +const se_SSEKMS = (input: SSEKMS, context: __SerdeContext): any => { + const bn = new __XmlNode(_SK); + if (input[_KI] != null) { + bn.c(__XmlNode.of(_SSEKMSKI, input[_KI]).n(_KI)); + } + return bn; +}; + +/** + * serializeAws_restXmlSseKmsEncryptedObjects + */ +const se_SseKmsEncryptedObjects = (input: SseKmsEncryptedObjects, context: __SerdeContext): any => { + const bn = new __XmlNode(_SKEO); + if (input[_S] != null) { + bn.c(__XmlNode.of(_SKEOS, input[_S]).n(_S)); + } + return bn; +}; + +/** + * serializeAws_restXmlSSES3 + */ +const se_SSES3 = (input: SSES3, context: __SerdeContext): any => { + const bn = new __XmlNode(_SS); + return bn; +}; + +/** + * serializeAws_restXmlStorageClassAnalysis + */ +const se_StorageClassAnalysis = (input: StorageClassAnalysis, context: __SerdeContext): any => { + const bn = new __XmlNode(_SCA); + if (input[_DE] != null) { + bn.c(se_StorageClassAnalysisDataExport(input[_DE], context).n(_DE)); + } + return bn; +}; + +/** + * serializeAws_restXmlStorageClassAnalysisDataExport + */ +const se_StorageClassAnalysisDataExport = (input: StorageClassAnalysisDataExport, context: __SerdeContext): any => { + const bn = new __XmlNode(_SCADE); + if (input[_OSV] != null) { + bn.c(__XmlNode.of(_SCASV, input[_OSV]).n(_OSV)); + } + if (input[_Des] != null) { + bn.c(se_AnalyticsExportDestination(input[_Des], context).n(_Des)); + } + return bn; +}; + +/** + * serializeAws_restXmlTag + */ +const se_Tag = (input: Tag, context: __SerdeContext): any => { + const bn = new __XmlNode(_Ta); + if (input[_K] != null) { + bn.c(__XmlNode.of(_OK, input[_K]).n(_K)); + } + bn.cc(input, _Va); + return bn; +}; + +/** + * serializeAws_restXmlTagging + */ +const se_Tagging = (input: Tagging, context: __SerdeContext): any => { + const bn = new __XmlNode(_T); + bn.lc(input, "TagSet", "TagSet", () => se_TagSet(input[_TS]!, context)); + return bn; +}; + +/** + * serializeAws_restXmlTagSet + */ +const se_TagSet = (input: Tag[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_Tag(entry, context); + return n.n(_Ta); + }); +}; + +/** + * serializeAws_restXmlTargetGrant + */ +const se_TargetGrant = (input: TargetGrant, context: __SerdeContext): any => { + const bn = new __XmlNode(_TGa); + if (input[_Gra] != null) { + const n = se_Grantee(input[_Gra], context).n(_Gra); + n.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); + bn.c(n); + } + if (input[_Pe] != null) { + bn.c(__XmlNode.of(_BLP, input[_Pe]).n(_Pe)); + } + return bn; +}; + +/** + * serializeAws_restXmlTargetGrants + */ +const se_TargetGrants = (input: TargetGrant[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_TargetGrant(entry, context); + return n.n(_G); + }); +}; + +/** + * serializeAws_restXmlTargetObjectKeyFormat + */ +const se_TargetObjectKeyFormat = (input: TargetObjectKeyFormat, context: __SerdeContext): any => { + const bn = new __XmlNode(_TOKF); + if (input[_SPi] != null) { + bn.c(se_SimplePrefix(input[_SPi], context).n(_SPi)); + } + if (input[_PP] != null) { + bn.c(se_PartitionedPrefix(input[_PP], context).n(_PP)); + } + return bn; +}; + +/** + * serializeAws_restXmlTiering + */ +const se_Tiering = (input: Tiering, context: __SerdeContext): any => { + const bn = new __XmlNode(_Tier); + if (input[_Da] != null) { + bn.c(__XmlNode.of(_ITD, String(input[_Da])).n(_Da)); + } + if (input[_AT] != null) { + bn.c(__XmlNode.of(_ITAT, input[_AT]).n(_AT)); + } + return bn; +}; + +/** + * serializeAws_restXmlTieringList + */ +const se_TieringList = (input: Tiering[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_Tiering(entry, context); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlTopicConfiguration + */ +const se_TopicConfiguration = (input: TopicConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_TCo); + if (input[_I] != null) { + bn.c(__XmlNode.of(_NI, input[_I]).n(_I)); + } + if (input[_TA] != null) { + bn.c(__XmlNode.of(_TA, input[_TA]).n(_Top)); + } + bn.l(input, "Events", "Event", () => se_EventList(input[_Eve]!, context)); + if (input[_F] != null) { + bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F)); + } + return bn; +}; + +/** + * serializeAws_restXmlTopicConfigurationList + */ +const se_TopicConfigurationList = (input: TopicConfiguration[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_TopicConfiguration(entry, context); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlTransition + */ +const se_Transition = (input: Transition, context: __SerdeContext): any => { + const bn = new __XmlNode(_Tra); + if (input[_Dat] != null) { + bn.c(__XmlNode.of(_Dat, __serializeDateTime(input[_Dat]).toString()).n(_Dat)); + } + if (input[_Da] != null) { + bn.c(__XmlNode.of(_Da, String(input[_Da])).n(_Da)); + } + if (input[_SC] != null) { + bn.c(__XmlNode.of(_TSC, input[_SC]).n(_SC)); + } + return bn; +}; + +/** + * serializeAws_restXmlTransitionList + */ +const se_TransitionList = (input: Transition[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_Transition(entry, context); + return n.n(_me); + }); +}; + +/** + * serializeAws_restXmlUserMetadata + */ +const se_UserMetadata = (input: MetadataEntry[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + const n = se_MetadataEntry(entry, context); + return n.n(_ME); + }); +}; + +/** + * serializeAws_restXmlVersioningConfiguration + */ +const se_VersioningConfiguration = (input: VersioningConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_VCe); + if (input[_MFAD] != null) { + bn.c(__XmlNode.of(_MFAD, input[_MFAD]).n(_MDf)); + } + if (input[_S] != null) { + bn.c(__XmlNode.of(_BVS, input[_S]).n(_S)); + } + return bn; +}; + +/** + * serializeAws_restXmlWebsiteConfiguration + */ +const se_WebsiteConfiguration = (input: WebsiteConfiguration, context: __SerdeContext): any => { + const bn = new __XmlNode(_WC); + if (input[_ED] != null) { + bn.c(se_ErrorDocument(input[_ED], context).n(_ED)); + } + if (input[_ID] != null) { + bn.c(se_IndexDocument(input[_ID], context).n(_ID)); + } + if (input[_RART] != null) { + bn.c(se_RedirectAllRequestsTo(input[_RART], context).n(_RART)); + } + bn.lc(input, "RoutingRules", "RoutingRules", () => se_RoutingRules(input[_RRo]!, context)); + return bn; +}; + +/** + * deserializeAws_restXmlAbortIncompleteMultipartUpload + */ +const de_AbortIncompleteMultipartUpload = (output: any, context: __SerdeContext): AbortIncompleteMultipartUpload => { + const contents: any = {}; + if (output[_DAI] != null) { + contents[_DAI] = __strictParseInt32(output[_DAI]) as number; + } + return contents; +}; + +/** + * deserializeAws_restXmlAccessControlTranslation + */ +const de_AccessControlTranslation = (output: any, context: __SerdeContext): AccessControlTranslation => { + const contents: any = {}; + if (output[_O] != null) { + contents[_O] = __expectString(output[_O]); + } + return contents; +}; + +/** + * deserializeAws_restXmlAllowedHeaders + */ +const de_AllowedHeaders = (output: any, context: __SerdeContext): string[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return __expectString(entry) as any; + }); +}; + +/** + * deserializeAws_restXmlAllowedMethods + */ +const de_AllowedMethods = (output: any, context: __SerdeContext): string[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return __expectString(entry) as any; + }); +}; + +/** + * deserializeAws_restXmlAllowedOrigins + */ +const de_AllowedOrigins = (output: any, context: __SerdeContext): string[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return __expectString(entry) as any; + }); +}; + +/** + * deserializeAws_restXmlAnalyticsAndOperator + */ +const de_AnalyticsAndOperator = (output: any, context: __SerdeContext): AnalyticsAndOperator => { + const contents: any = {}; + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); + } + if (output.Tag === "") { + contents[_Tag] = []; + } else if (output[_Ta] != null) { + contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlAnalyticsConfiguration + */ +const de_AnalyticsConfiguration = (output: any, context: __SerdeContext): AnalyticsConfiguration => { + const contents: any = {}; + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); + } + if (output.Filter === "") { + // Pass empty tags. + } else if (output[_F] != null) { + contents[_F] = de_AnalyticsFilter(__expectUnion(output[_F]), context); + } + if (output[_SCA] != null) { + contents[_SCA] = de_StorageClassAnalysis(output[_SCA], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlAnalyticsConfigurationList + */ +const de_AnalyticsConfigurationList = (output: any, context: __SerdeContext): AnalyticsConfiguration[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_AnalyticsConfiguration(entry, context); + }); +}; + +/** + * deserializeAws_restXmlAnalyticsExportDestination + */ +const de_AnalyticsExportDestination = (output: any, context: __SerdeContext): AnalyticsExportDestination => { + const contents: any = {}; + if (output[_SBD] != null) { + contents[_SBD] = de_AnalyticsS3BucketDestination(output[_SBD], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlAnalyticsFilter + */ +const de_AnalyticsFilter = (output: any, context: __SerdeContext): AnalyticsFilter => { + if (output[_P] != null) { + return { + Prefix: __expectString(output[_P]) as any, + }; + } + if (output[_Ta] != null) { + return { + Tag: de_Tag(output[_Ta], context), + }; + } + if (output[_A] != null) { + return { + And: de_AnalyticsAndOperator(output[_A], context), + }; + } + return { $unknown: Object.entries(output)[0] }; +}; + +/** + * deserializeAws_restXmlAnalyticsS3BucketDestination + */ +const de_AnalyticsS3BucketDestination = (output: any, context: __SerdeContext): AnalyticsS3BucketDestination => { + const contents: any = {}; + if (output[_Fo] != null) { + contents[_Fo] = __expectString(output[_Fo]); + } + if (output[_BAI] != null) { + contents[_BAI] = __expectString(output[_BAI]); + } + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); + } + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); + } + return contents; +}; + +/** + * deserializeAws_restXmlBucket + */ +const de_Bucket = (output: any, context: __SerdeContext): Bucket => { + const contents: any = {}; + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); + } + if (output[_CDr] != null) { + contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CDr])); + } + if (output[_BR] != null) { + contents[_BR] = __expectString(output[_BR]); + } + if (output[_BA] != null) { + contents[_BA] = __expectString(output[_BA]); + } + return contents; +}; + +/** + * deserializeAws_restXmlBuckets + */ +const de_Buckets = (output: any, context: __SerdeContext): Bucket[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_Bucket(entry, context); + }); +}; + +/** + * deserializeAws_restXmlChecksum + */ +const de_Checksum = (output: any, context: __SerdeContext): Checksum => { + const contents: any = {}; + if (output[_CCRC] != null) { + contents[_CCRC] = __expectString(output[_CCRC]); + } + if (output[_CCRCC] != null) { + contents[_CCRCC] = __expectString(output[_CCRCC]); + } + if (output[_CCRCNVME] != null) { + contents[_CCRCNVME] = __expectString(output[_CCRCNVME]); + } + if (output[_CSHA] != null) { + contents[_CSHA] = __expectString(output[_CSHA]); + } + if (output[_CSHAh] != null) { + contents[_CSHAh] = __expectString(output[_CSHAh]); + } + if (output[_CT] != null) { + contents[_CT] = __expectString(output[_CT]); + } + return contents; +}; + +/** + * deserializeAws_restXmlChecksumAlgorithmList + */ +const de_ChecksumAlgorithmList = (output: any, context: __SerdeContext): ChecksumAlgorithm[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return __expectString(entry) as any; + }); +}; + +/** + * deserializeAws_restXmlCommonPrefix + */ +const de_CommonPrefix = (output: any, context: __SerdeContext): CommonPrefix => { + const contents: any = {}; + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); + } + return contents; +}; + +/** + * deserializeAws_restXmlCommonPrefixList + */ +const de_CommonPrefixList = (output: any, context: __SerdeContext): CommonPrefix[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_CommonPrefix(entry, context); + }); +}; + +/** + * deserializeAws_restXmlCondition + */ +const de_Condition = (output: any, context: __SerdeContext): Condition => { + const contents: any = {}; + if (output[_HECRE] != null) { + contents[_HECRE] = __expectString(output[_HECRE]); + } + if (output[_KPE] != null) { + contents[_KPE] = __expectString(output[_KPE]); + } + return contents; +}; + +/** + * deserializeAws_restXmlContinuationEvent + */ +const de_ContinuationEvent = (output: any, context: __SerdeContext): ContinuationEvent => { + const contents: any = {}; + return contents; +}; + +/** + * deserializeAws_restXmlCopyObjectResult + */ +const de_CopyObjectResult = (output: any, context: __SerdeContext): CopyObjectResult => { + const contents: any = {}; + if (output[_ETa] != null) { + contents[_ETa] = __expectString(output[_ETa]); + } + if (output[_LM] != null) { + contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); + } + if (output[_CT] != null) { + contents[_CT] = __expectString(output[_CT]); + } + if (output[_CCRC] != null) { + contents[_CCRC] = __expectString(output[_CCRC]); + } + if (output[_CCRCC] != null) { + contents[_CCRCC] = __expectString(output[_CCRCC]); + } + if (output[_CCRCNVME] != null) { + contents[_CCRCNVME] = __expectString(output[_CCRCNVME]); + } + if (output[_CSHA] != null) { + contents[_CSHA] = __expectString(output[_CSHA]); + } + if (output[_CSHAh] != null) { + contents[_CSHAh] = __expectString(output[_CSHAh]); + } + return contents; +}; + +/** + * deserializeAws_restXmlCopyPartResult + */ +const de_CopyPartResult = (output: any, context: __SerdeContext): CopyPartResult => { + const contents: any = {}; + if (output[_ETa] != null) { + contents[_ETa] = __expectString(output[_ETa]); + } + if (output[_LM] != null) { + contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); + } + if (output[_CCRC] != null) { + contents[_CCRC] = __expectString(output[_CCRC]); + } + if (output[_CCRCC] != null) { + contents[_CCRCC] = __expectString(output[_CCRCC]); + } + if (output[_CCRCNVME] != null) { + contents[_CCRCNVME] = __expectString(output[_CCRCNVME]); + } + if (output[_CSHA] != null) { + contents[_CSHA] = __expectString(output[_CSHA]); + } + if (output[_CSHAh] != null) { + contents[_CSHAh] = __expectString(output[_CSHAh]); + } + return contents; +}; + +/** + * deserializeAws_restXmlCORSRule + */ +const de_CORSRule = (output: any, context: __SerdeContext): CORSRule => { + const contents: any = {}; + if (output[_ID_] != null) { + contents[_ID_] = __expectString(output[_ID_]); + } + if (output.AllowedHeader === "") { + contents[_AHl] = []; + } else if (output[_AH] != null) { + contents[_AHl] = de_AllowedHeaders(__getArrayIfSingleItem(output[_AH]), context); + } + if (output.AllowedMethod === "") { + contents[_AMl] = []; + } else if (output[_AM] != null) { + contents[_AMl] = de_AllowedMethods(__getArrayIfSingleItem(output[_AM]), context); + } + if (output.AllowedOrigin === "") { + contents[_AOl] = []; + } else if (output[_AO] != null) { + contents[_AOl] = de_AllowedOrigins(__getArrayIfSingleItem(output[_AO]), context); + } + if (output.ExposeHeader === "") { + contents[_EH] = []; + } else if (output[_EHx] != null) { + contents[_EH] = de_ExposeHeaders(__getArrayIfSingleItem(output[_EHx]), context); + } + if (output[_MAS] != null) { + contents[_MAS] = __strictParseInt32(output[_MAS]) as number; + } + return contents; +}; + +/** + * deserializeAws_restXmlCORSRules + */ +const de_CORSRules = (output: any, context: __SerdeContext): CORSRule[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_CORSRule(entry, context); + }); +}; + +/** + * deserializeAws_restXmlDefaultRetention + */ +const de_DefaultRetention = (output: any, context: __SerdeContext): DefaultRetention => { + const contents: any = {}; + if (output[_Mo] != null) { + contents[_Mo] = __expectString(output[_Mo]); + } + if (output[_Da] != null) { + contents[_Da] = __strictParseInt32(output[_Da]) as number; + } + if (output[_Y] != null) { + contents[_Y] = __strictParseInt32(output[_Y]) as number; + } + return contents; +}; + +/** + * deserializeAws_restXmlDeletedObject + */ +const de_DeletedObject = (output: any, context: __SerdeContext): DeletedObject => { + const contents: any = {}; + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); + } + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); + } + if (output[_DM] != null) { + contents[_DM] = __parseBoolean(output[_DM]); + } + if (output[_DMVI] != null) { + contents[_DMVI] = __expectString(output[_DMVI]); + } + return contents; +}; + +/** + * deserializeAws_restXmlDeletedObjects + */ +const de_DeletedObjects = (output: any, context: __SerdeContext): DeletedObject[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_DeletedObject(entry, context); + }); +}; + +/** + * deserializeAws_restXmlDeleteMarkerEntry + */ +const de_DeleteMarkerEntry = (output: any, context: __SerdeContext): DeleteMarkerEntry => { + const contents: any = {}; + if (output[_O] != null) { + contents[_O] = de_Owner(output[_O], context); + } + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); + } + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); + } + if (output[_IL] != null) { + contents[_IL] = __parseBoolean(output[_IL]); + } + if (output[_LM] != null) { + contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); + } + return contents; +}; + +/** + * deserializeAws_restXmlDeleteMarkerReplication + */ +const de_DeleteMarkerReplication = (output: any, context: __SerdeContext): DeleteMarkerReplication => { + const contents: any = {}; + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); + } + return contents; +}; + +/** + * deserializeAws_restXmlDeleteMarkers + */ +const de_DeleteMarkers = (output: any, context: __SerdeContext): DeleteMarkerEntry[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_DeleteMarkerEntry(entry, context); + }); +}; + +/** + * deserializeAws_restXmlDestination + */ +const de_Destination = (output: any, context: __SerdeContext): Destination => { + const contents: any = {}; + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); + } + if (output[_Ac] != null) { + contents[_Ac] = __expectString(output[_Ac]); + } + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); + } + if (output[_ACT] != null) { + contents[_ACT] = de_AccessControlTranslation(output[_ACT], context); + } + if (output[_ECn] != null) { + contents[_ECn] = de_EncryptionConfiguration(output[_ECn], context); + } + if (output[_RTe] != null) { + contents[_RTe] = de_ReplicationTime(output[_RTe], context); + } + if (output[_Me] != null) { + contents[_Me] = de_Metrics(output[_Me], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlDestinationResult + */ +const de_DestinationResult = (output: any, context: __SerdeContext): DestinationResult => { + const contents: any = {}; + if (output[_TBT] != null) { + contents[_TBT] = __expectString(output[_TBT]); + } + if (output[_TBA] != null) { + contents[_TBA] = __expectString(output[_TBA]); + } + if (output[_TNa] != null) { + contents[_TNa] = __expectString(output[_TNa]); + } + return contents; +}; + +/** + * deserializeAws_restXmlEncryptionConfiguration + */ +const de_EncryptionConfiguration = (output: any, context: __SerdeContext): EncryptionConfiguration => { + const contents: any = {}; + if (output[_RKKID] != null) { + contents[_RKKID] = __expectString(output[_RKKID]); + } + return contents; +}; + +/** + * deserializeAws_restXmlEndEvent + */ +const de_EndEvent = (output: any, context: __SerdeContext): EndEvent => { + const contents: any = {}; + return contents; +}; + +/** + * deserializeAws_restXml_Error + */ +const de__Error = (output: any, context: __SerdeContext): _Error => { + const contents: any = {}; + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); + } + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); + } + if (output[_Cod] != null) { + contents[_Cod] = __expectString(output[_Cod]); + } + if (output[_Mes] != null) { + contents[_Mes] = __expectString(output[_Mes]); + } + return contents; +}; + +/** + * deserializeAws_restXmlErrorDetails + */ +const de_ErrorDetails = (output: any, context: __SerdeContext): ErrorDetails => { + const contents: any = {}; + if (output[_EC] != null) { + contents[_EC] = __expectString(output[_EC]); + } + if (output[_EM] != null) { + contents[_EM] = __expectString(output[_EM]); + } + return contents; +}; + +/** + * deserializeAws_restXmlErrorDocument + */ +const de_ErrorDocument = (output: any, context: __SerdeContext): ErrorDocument => { + const contents: any = {}; + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); + } + return contents; +}; + +/** + * deserializeAws_restXmlErrors + */ +const de_Errors = (output: any, context: __SerdeContext): _Error[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de__Error(entry, context); + }); +}; + +/** + * deserializeAws_restXmlEventBridgeConfiguration + */ +const de_EventBridgeConfiguration = (output: any, context: __SerdeContext): EventBridgeConfiguration => { + const contents: any = {}; + return contents; +}; + +/** + * deserializeAws_restXmlEventList + */ +const de_EventList = (output: any, context: __SerdeContext): Event[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return __expectString(entry) as any; + }); +}; + +/** + * deserializeAws_restXmlExistingObjectReplication + */ +const de_ExistingObjectReplication = (output: any, context: __SerdeContext): ExistingObjectReplication => { + const contents: any = {}; + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); + } + return contents; +}; + +/** + * deserializeAws_restXmlExposeHeaders + */ +const de_ExposeHeaders = (output: any, context: __SerdeContext): string[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return __expectString(entry) as any; + }); +}; + +/** + * deserializeAws_restXmlFilterRule + */ +const de_FilterRule = (output: any, context: __SerdeContext): FilterRule => { + const contents: any = {}; + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); + } + if (output[_Va] != null) { + contents[_Va] = __expectString(output[_Va]); + } + return contents; +}; + +/** + * deserializeAws_restXmlFilterRuleList + */ +const de_FilterRuleList = (output: any, context: __SerdeContext): FilterRule[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_FilterRule(entry, context); + }); +}; + +/** + * deserializeAws_restXmlGetBucketMetadataConfigurationResult + */ +const de_GetBucketMetadataConfigurationResult = ( + output: any, + context: __SerdeContext +): GetBucketMetadataConfigurationResult => { + const contents: any = {}; + if (output[_MCR] != null) { + contents[_MCR] = de_MetadataConfigurationResult(output[_MCR], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetBucketMetadataTableConfigurationResult + */ +const de_GetBucketMetadataTableConfigurationResult = ( + output: any, + context: __SerdeContext +): GetBucketMetadataTableConfigurationResult => { + const contents: any = {}; + if (output[_MTCR] != null) { + contents[_MTCR] = de_MetadataTableConfigurationResult(output[_MTCR], context); + } + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); + } + if (output[_Er] != null) { + contents[_Er] = de_ErrorDetails(output[_Er], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlGetObjectAttributesParts + */ +const de_GetObjectAttributesParts = (output: any, context: __SerdeContext): GetObjectAttributesParts => { + const contents: any = {}; + if (output[_PC] != null) { + contents[_TPC] = __strictParseInt32(output[_PC]) as number; + } + if (output[_PNM] != null) { + contents[_PNM] = __expectString(output[_PNM]); + } + if (output[_NPNM] != null) { + contents[_NPNM] = __expectString(output[_NPNM]); + } + if (output[_MP] != null) { + contents[_MP] = __strictParseInt32(output[_MP]) as number; + } + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); + } + if (output.Part === "") { + contents[_Part] = []; + } else if (output[_Par] != null) { + contents[_Part] = de_PartsList(__getArrayIfSingleItem(output[_Par]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlGrant + */ +const de_Grant = (output: any, context: __SerdeContext): Grant => { + const contents: any = {}; + if (output[_Gra] != null) { + contents[_Gra] = de_Grantee(output[_Gra], context); + } + if (output[_Pe] != null) { + contents[_Pe] = __expectString(output[_Pe]); + } + return contents; +}; + +/** + * deserializeAws_restXmlGrantee + */ +const de_Grantee = (output: any, context: __SerdeContext): Grantee => { + const contents: any = {}; + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); + } + if (output[_EA] != null) { + contents[_EA] = __expectString(output[_EA]); + } + if (output[_ID_] != null) { + contents[_ID_] = __expectString(output[_ID_]); + } + if (output[_URI] != null) { + contents[_URI] = __expectString(output[_URI]); + } + if (output[_x] != null) { + contents[_Ty] = __expectString(output[_x]); + } + return contents; +}; + +/** + * deserializeAws_restXmlGrants + */ +const de_Grants = (output: any, context: __SerdeContext): Grant[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_Grant(entry, context); + }); +}; + +/** + * deserializeAws_restXmlIndexDocument + */ +const de_IndexDocument = (output: any, context: __SerdeContext): IndexDocument => { + const contents: any = {}; + if (output[_Su] != null) { + contents[_Su] = __expectString(output[_Su]); + } + return contents; +}; + +/** + * deserializeAws_restXmlInitiator + */ +const de_Initiator = (output: any, context: __SerdeContext): Initiator => { + const contents: any = {}; + if (output[_ID_] != null) { + contents[_ID_] = __expectString(output[_ID_]); + } + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); + } + return contents; +}; + +/** + * deserializeAws_restXmlIntelligentTieringAndOperator + */ +const de_IntelligentTieringAndOperator = (output: any, context: __SerdeContext): IntelligentTieringAndOperator => { + const contents: any = {}; + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); + } + if (output.Tag === "") { + contents[_Tag] = []; + } else if (output[_Ta] != null) { + contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlIntelligentTieringConfiguration + */ +const de_IntelligentTieringConfiguration = (output: any, context: __SerdeContext): IntelligentTieringConfiguration => { + const contents: any = {}; + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); + } + if (output[_F] != null) { + contents[_F] = de_IntelligentTieringFilter(output[_F], context); + } + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); + } + if (output.Tiering === "") { + contents[_Tie] = []; + } else if (output[_Tier] != null) { + contents[_Tie] = de_TieringList(__getArrayIfSingleItem(output[_Tier]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlIntelligentTieringConfigurationList + */ +const de_IntelligentTieringConfigurationList = ( + output: any, + context: __SerdeContext +): IntelligentTieringConfiguration[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_IntelligentTieringConfiguration(entry, context); + }); +}; + +/** + * deserializeAws_restXmlIntelligentTieringFilter + */ +const de_IntelligentTieringFilter = (output: any, context: __SerdeContext): IntelligentTieringFilter => { + const contents: any = {}; + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); + } + if (output[_Ta] != null) { + contents[_Ta] = de_Tag(output[_Ta], context); + } + if (output[_A] != null) { + contents[_A] = de_IntelligentTieringAndOperator(output[_A], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlInventoryConfiguration + */ +const de_InventoryConfiguration = (output: any, context: __SerdeContext): InventoryConfiguration => { + const contents: any = {}; + if (output[_Des] != null) { + contents[_Des] = de_InventoryDestination(output[_Des], context); + } + if (output[_IE] != null) { + contents[_IE] = __parseBoolean(output[_IE]); + } + if (output[_F] != null) { + contents[_F] = de_InventoryFilter(output[_F], context); + } + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); + } + if (output[_IOV] != null) { + contents[_IOV] = __expectString(output[_IOV]); + } + if (output.OptionalFields === "") { + contents[_OF] = []; + } else if (output[_OF] != null && output[_OF][_Fi] != null) { + contents[_OF] = de_InventoryOptionalFields(__getArrayIfSingleItem(output[_OF][_Fi]), context); + } + if (output[_Sc] != null) { + contents[_Sc] = de_InventorySchedule(output[_Sc], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlInventoryConfigurationList + */ +const de_InventoryConfigurationList = (output: any, context: __SerdeContext): InventoryConfiguration[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_InventoryConfiguration(entry, context); + }); +}; + +/** + * deserializeAws_restXmlInventoryDestination + */ +const de_InventoryDestination = (output: any, context: __SerdeContext): InventoryDestination => { + const contents: any = {}; + if (output[_SBD] != null) { + contents[_SBD] = de_InventoryS3BucketDestination(output[_SBD], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlInventoryEncryption + */ +const de_InventoryEncryption = (output: any, context: __SerdeContext): InventoryEncryption => { + const contents: any = {}; + if (output[_SS] != null) { + contents[_SSES] = de_SSES3(output[_SS], context); + } + if (output[_SK] != null) { + contents[_SSEKMS] = de_SSEKMS(output[_SK], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlInventoryFilter + */ +const de_InventoryFilter = (output: any, context: __SerdeContext): InventoryFilter => { + const contents: any = {}; + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); + } + return contents; +}; + +/** + * deserializeAws_restXmlInventoryOptionalFields + */ +const de_InventoryOptionalFields = (output: any, context: __SerdeContext): InventoryOptionalField[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return __expectString(entry) as any; + }); +}; + +/** + * deserializeAws_restXmlInventoryS3BucketDestination + */ +const de_InventoryS3BucketDestination = (output: any, context: __SerdeContext): InventoryS3BucketDestination => { + const contents: any = {}; + if (output[_AIc] != null) { + contents[_AIc] = __expectString(output[_AIc]); + } + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); + } + if (output[_Fo] != null) { + contents[_Fo] = __expectString(output[_Fo]); + } + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); + } + if (output[_En] != null) { + contents[_En] = de_InventoryEncryption(output[_En], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlInventorySchedule + */ +const de_InventorySchedule = (output: any, context: __SerdeContext): InventorySchedule => { + const contents: any = {}; + if (output[_Fr] != null) { + contents[_Fr] = __expectString(output[_Fr]); + } + return contents; +}; + +/** + * deserializeAws_restXmlInventoryTableConfigurationResult + */ +const de_InventoryTableConfigurationResult = ( + output: any, + context: __SerdeContext +): InventoryTableConfigurationResult => { + const contents: any = {}; + if (output[_CSo] != null) { + contents[_CSo] = __expectString(output[_CSo]); + } + if (output[_TSa] != null) { + contents[_TSa] = __expectString(output[_TSa]); + } + if (output[_Er] != null) { + contents[_Er] = de_ErrorDetails(output[_Er], context); + } + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); + } + if (output[_TAa] != null) { + contents[_TAa] = __expectString(output[_TAa]); + } + return contents; +}; + +/** + * deserializeAws_restXmlJournalTableConfigurationResult + */ +const de_JournalTableConfigurationResult = (output: any, context: __SerdeContext): JournalTableConfigurationResult => { + const contents: any = {}; + if (output[_TSa] != null) { + contents[_TSa] = __expectString(output[_TSa]); + } + if (output[_Er] != null) { + contents[_Er] = de_ErrorDetails(output[_Er], context); + } + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); + } + if (output[_TAa] != null) { + contents[_TAa] = __expectString(output[_TAa]); + } + if (output[_REe] != null) { + contents[_REe] = de_RecordExpiration(output[_REe], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlLambdaFunctionConfiguration + */ +const de_LambdaFunctionConfiguration = (output: any, context: __SerdeContext): LambdaFunctionConfiguration => { + const contents: any = {}; + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); + } + if (output[_CF] != null) { + contents[_LFA] = __expectString(output[_CF]); + } + if (output.Event === "") { + contents[_Eve] = []; + } else if (output[_Ev] != null) { + contents[_Eve] = de_EventList(__getArrayIfSingleItem(output[_Ev]), context); + } + if (output[_F] != null) { + contents[_F] = de_NotificationConfigurationFilter(output[_F], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlLambdaFunctionConfigurationList + */ +const de_LambdaFunctionConfigurationList = (output: any, context: __SerdeContext): LambdaFunctionConfiguration[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_LambdaFunctionConfiguration(entry, context); + }); +}; + +/** + * deserializeAws_restXmlLifecycleExpiration + */ +const de_LifecycleExpiration = (output: any, context: __SerdeContext): LifecycleExpiration => { + const contents: any = {}; + if (output[_Dat] != null) { + contents[_Dat] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Dat])); + } + if (output[_Da] != null) { + contents[_Da] = __strictParseInt32(output[_Da]) as number; + } + if (output[_EODM] != null) { + contents[_EODM] = __parseBoolean(output[_EODM]); + } + return contents; +}; + +/** + * deserializeAws_restXmlLifecycleRule + */ +const de_LifecycleRule = (output: any, context: __SerdeContext): LifecycleRule => { + const contents: any = {}; + if (output[_Exp] != null) { + contents[_Exp] = de_LifecycleExpiration(output[_Exp], context); + } + if (output[_ID_] != null) { + contents[_ID_] = __expectString(output[_ID_]); + } + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); + } + if (output[_F] != null) { + contents[_F] = de_LifecycleRuleFilter(output[_F], context); + } + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); + } + if (output.Transition === "") { + contents[_Tr] = []; + } else if (output[_Tra] != null) { + contents[_Tr] = de_TransitionList(__getArrayIfSingleItem(output[_Tra]), context); + } + if (output.NoncurrentVersionTransition === "") { + contents[_NVT] = []; + } else if (output[_NVTo] != null) { + contents[_NVT] = de_NoncurrentVersionTransitionList(__getArrayIfSingleItem(output[_NVTo]), context); + } + if (output[_NVE] != null) { + contents[_NVE] = de_NoncurrentVersionExpiration(output[_NVE], context); + } + if (output[_AIMU] != null) { + contents[_AIMU] = de_AbortIncompleteMultipartUpload(output[_AIMU], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlLifecycleRuleAndOperator + */ +const de_LifecycleRuleAndOperator = (output: any, context: __SerdeContext): LifecycleRuleAndOperator => { + const contents: any = {}; + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); + } + if (output.Tag === "") { + contents[_Tag] = []; + } else if (output[_Ta] != null) { + contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); + } + if (output[_OSGT] != null) { + contents[_OSGT] = __strictParseLong(output[_OSGT]) as number; + } + if (output[_OSLT] != null) { + contents[_OSLT] = __strictParseLong(output[_OSLT]) as number; + } + return contents; +}; + +/** + * deserializeAws_restXmlLifecycleRuleFilter + */ +const de_LifecycleRuleFilter = (output: any, context: __SerdeContext): LifecycleRuleFilter => { + const contents: any = {}; + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); + } + if (output[_Ta] != null) { + contents[_Ta] = de_Tag(output[_Ta], context); + } + if (output[_OSGT] != null) { + contents[_OSGT] = __strictParseLong(output[_OSGT]) as number; + } + if (output[_OSLT] != null) { + contents[_OSLT] = __strictParseLong(output[_OSLT]) as number; + } + if (output[_A] != null) { + contents[_A] = de_LifecycleRuleAndOperator(output[_A], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlLifecycleRules + */ +const de_LifecycleRules = (output: any, context: __SerdeContext): LifecycleRule[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_LifecycleRule(entry, context); + }); +}; + +/** + * deserializeAws_restXmlLoggingEnabled + */ +const de_LoggingEnabled = (output: any, context: __SerdeContext): LoggingEnabled => { + const contents: any = {}; + if (output[_TB] != null) { + contents[_TB] = __expectString(output[_TB]); + } + if (output.TargetGrants === "") { + contents[_TG] = []; + } else if (output[_TG] != null && output[_TG][_G] != null) { + contents[_TG] = de_TargetGrants(__getArrayIfSingleItem(output[_TG][_G]), context); + } + if (output[_TP] != null) { + contents[_TP] = __expectString(output[_TP]); + } + if (output[_TOKF] != null) { + contents[_TOKF] = de_TargetObjectKeyFormat(output[_TOKF], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlMetadataConfigurationResult + */ +const de_MetadataConfigurationResult = (output: any, context: __SerdeContext): MetadataConfigurationResult => { + const contents: any = {}; + if (output[_DRes] != null) { + contents[_DRes] = de_DestinationResult(output[_DRes], context); + } + if (output[_JTCR] != null) { + contents[_JTCR] = de_JournalTableConfigurationResult(output[_JTCR], context); + } + if (output[_ITCR] != null) { + contents[_ITCR] = de_InventoryTableConfigurationResult(output[_ITCR], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlMetadataTableConfigurationResult + */ +const de_MetadataTableConfigurationResult = ( + output: any, + context: __SerdeContext +): MetadataTableConfigurationResult => { + const contents: any = {}; + if (output[_STDR] != null) { + contents[_STDR] = de_S3TablesDestinationResult(output[_STDR], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlMetrics + */ +const de_Metrics = (output: any, context: __SerdeContext): Metrics => { + const contents: any = {}; + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); + } + if (output[_ETv] != null) { + contents[_ETv] = de_ReplicationTimeValue(output[_ETv], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlMetricsAndOperator + */ +const de_MetricsAndOperator = (output: any, context: __SerdeContext): MetricsAndOperator => { + const contents: any = {}; + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); + } + if (output.Tag === "") { + contents[_Tag] = []; + } else if (output[_Ta] != null) { + contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); + } + if (output[_APAc] != null) { + contents[_APAc] = __expectString(output[_APAc]); + } + return contents; +}; + +/** + * deserializeAws_restXmlMetricsConfiguration + */ +const de_MetricsConfiguration = (output: any, context: __SerdeContext): MetricsConfiguration => { + const contents: any = {}; + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); + } + if (output.Filter === "") { + // Pass empty tags. + } else if (output[_F] != null) { + contents[_F] = de_MetricsFilter(__expectUnion(output[_F]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlMetricsConfigurationList + */ +const de_MetricsConfigurationList = (output: any, context: __SerdeContext): MetricsConfiguration[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_MetricsConfiguration(entry, context); + }); +}; + +/** + * deserializeAws_restXmlMetricsFilter + */ +const de_MetricsFilter = (output: any, context: __SerdeContext): MetricsFilter => { + if (output[_P] != null) { + return { + Prefix: __expectString(output[_P]) as any, + }; + } + if (output[_Ta] != null) { + return { + Tag: de_Tag(output[_Ta], context), + }; + } + if (output[_APAc] != null) { + return { + AccessPointArn: __expectString(output[_APAc]) as any, + }; + } + if (output[_A] != null) { + return { + And: de_MetricsAndOperator(output[_A], context), + }; + } + return { $unknown: Object.entries(output)[0] }; +}; + +/** + * deserializeAws_restXmlMultipartUpload + */ +const de_MultipartUpload = (output: any, context: __SerdeContext): MultipartUpload => { + const contents: any = {}; + if (output[_UI] != null) { + contents[_UI] = __expectString(output[_UI]); + } + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); + } + if (output[_Ini] != null) { + contents[_Ini] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ini])); + } + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); + } + if (output[_O] != null) { + contents[_O] = de_Owner(output[_O], context); + } + if (output[_In] != null) { + contents[_In] = de_Initiator(output[_In], context); + } + if (output[_CA] != null) { + contents[_CA] = __expectString(output[_CA]); + } + if (output[_CT] != null) { + contents[_CT] = __expectString(output[_CT]); + } + return contents; +}; + +/** + * deserializeAws_restXmlMultipartUploadList + */ +const de_MultipartUploadList = (output: any, context: __SerdeContext): MultipartUpload[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_MultipartUpload(entry, context); + }); +}; + +/** + * deserializeAws_restXmlNoncurrentVersionExpiration + */ +const de_NoncurrentVersionExpiration = (output: any, context: __SerdeContext): NoncurrentVersionExpiration => { + const contents: any = {}; + if (output[_ND] != null) { + contents[_ND] = __strictParseInt32(output[_ND]) as number; + } + if (output[_NNV] != null) { + contents[_NNV] = __strictParseInt32(output[_NNV]) as number; + } + return contents; +}; + +/** + * deserializeAws_restXmlNoncurrentVersionTransition + */ +const de_NoncurrentVersionTransition = (output: any, context: __SerdeContext): NoncurrentVersionTransition => { + const contents: any = {}; + if (output[_ND] != null) { + contents[_ND] = __strictParseInt32(output[_ND]) as number; + } + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); + } + if (output[_NNV] != null) { + contents[_NNV] = __strictParseInt32(output[_NNV]) as number; + } + return contents; +}; + +/** + * deserializeAws_restXmlNoncurrentVersionTransitionList + */ +const de_NoncurrentVersionTransitionList = (output: any, context: __SerdeContext): NoncurrentVersionTransition[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_NoncurrentVersionTransition(entry, context); + }); +}; + +/** + * deserializeAws_restXmlNotificationConfigurationFilter + */ +const de_NotificationConfigurationFilter = (output: any, context: __SerdeContext): NotificationConfigurationFilter => { + const contents: any = {}; + if (output[_SKe] != null) { + contents[_K] = de_S3KeyFilter(output[_SKe], context); + } + return contents; +}; + +/** + * deserializeAws_restXml_Object + */ +const de__Object = (output: any, context: __SerdeContext): _Object => { + const contents: any = {}; + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); + } + if (output[_LM] != null) { + contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); + } + if (output[_ETa] != null) { + contents[_ETa] = __expectString(output[_ETa]); + } + if (output.ChecksumAlgorithm === "") { + contents[_CA] = []; + } else if (output[_CA] != null) { + contents[_CA] = de_ChecksumAlgorithmList(__getArrayIfSingleItem(output[_CA]), context); + } + if (output[_CT] != null) { + contents[_CT] = __expectString(output[_CT]); + } + if (output[_Si] != null) { + contents[_Si] = __strictParseLong(output[_Si]) as number; + } + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); + } + if (output[_O] != null) { + contents[_O] = de_Owner(output[_O], context); + } + if (output[_RSes] != null) { + contents[_RSes] = de_RestoreStatus(output[_RSes], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlObjectList + */ +const de_ObjectList = (output: any, context: __SerdeContext): _Object[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de__Object(entry, context); + }); +}; + +/** + * deserializeAws_restXmlObjectLockConfiguration + */ +const de_ObjectLockConfiguration = (output: any, context: __SerdeContext): ObjectLockConfiguration => { + const contents: any = {}; + if (output[_OLE] != null) { + contents[_OLE] = __expectString(output[_OLE]); + } + if (output[_Ru] != null) { + contents[_Ru] = de_ObjectLockRule(output[_Ru], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlObjectLockLegalHold + */ +const de_ObjectLockLegalHold = (output: any, context: __SerdeContext): ObjectLockLegalHold => { + const contents: any = {}; + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); + } + return contents; +}; + +/** + * deserializeAws_restXmlObjectLockRetention + */ +const de_ObjectLockRetention = (output: any, context: __SerdeContext): ObjectLockRetention => { + const contents: any = {}; + if (output[_Mo] != null) { + contents[_Mo] = __expectString(output[_Mo]); + } + if (output[_RUD] != null) { + contents[_RUD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_RUD])); + } + return contents; +}; + +/** + * deserializeAws_restXmlObjectLockRule + */ +const de_ObjectLockRule = (output: any, context: __SerdeContext): ObjectLockRule => { + const contents: any = {}; + if (output[_DRe] != null) { + contents[_DRe] = de_DefaultRetention(output[_DRe], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlObjectPart + */ +const de_ObjectPart = (output: any, context: __SerdeContext): ObjectPart => { + const contents: any = {}; + if (output[_PN] != null) { + contents[_PN] = __strictParseInt32(output[_PN]) as number; + } + if (output[_Si] != null) { + contents[_Si] = __strictParseLong(output[_Si]) as number; + } + if (output[_CCRC] != null) { + contents[_CCRC] = __expectString(output[_CCRC]); + } + if (output[_CCRCC] != null) { + contents[_CCRCC] = __expectString(output[_CCRCC]); + } + if (output[_CCRCNVME] != null) { + contents[_CCRCNVME] = __expectString(output[_CCRCNVME]); + } + if (output[_CSHA] != null) { + contents[_CSHA] = __expectString(output[_CSHA]); + } + if (output[_CSHAh] != null) { + contents[_CSHAh] = __expectString(output[_CSHAh]); + } + return contents; +}; + +/** + * deserializeAws_restXmlObjectVersion + */ +const de_ObjectVersion = (output: any, context: __SerdeContext): ObjectVersion => { + const contents: any = {}; + if (output[_ETa] != null) { + contents[_ETa] = __expectString(output[_ETa]); + } + if (output.ChecksumAlgorithm === "") { + contents[_CA] = []; + } else if (output[_CA] != null) { + contents[_CA] = de_ChecksumAlgorithmList(__getArrayIfSingleItem(output[_CA]), context); + } + if (output[_CT] != null) { + contents[_CT] = __expectString(output[_CT]); + } + if (output[_Si] != null) { + contents[_Si] = __strictParseLong(output[_Si]) as number; + } + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); + } + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); + } + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); + } + if (output[_IL] != null) { + contents[_IL] = __parseBoolean(output[_IL]); + } + if (output[_LM] != null) { + contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); + } + if (output[_O] != null) { + contents[_O] = de_Owner(output[_O], context); + } + if (output[_RSes] != null) { + contents[_RSes] = de_RestoreStatus(output[_RSes], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlObjectVersionList + */ +const de_ObjectVersionList = (output: any, context: __SerdeContext): ObjectVersion[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_ObjectVersion(entry, context); + }); +}; + +/** + * deserializeAws_restXmlOwner + */ +const de_Owner = (output: any, context: __SerdeContext): Owner => { + const contents: any = {}; + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); + } + if (output[_ID_] != null) { + contents[_ID_] = __expectString(output[_ID_]); + } + return contents; +}; + +/** + * deserializeAws_restXmlOwnershipControls + */ +const de_OwnershipControls = (output: any, context: __SerdeContext): OwnershipControls => { + const contents: any = {}; + if (output.Rule === "") { + contents[_Rul] = []; + } else if (output[_Ru] != null) { + contents[_Rul] = de_OwnershipControlsRules(__getArrayIfSingleItem(output[_Ru]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlOwnershipControlsRule + */ +const de_OwnershipControlsRule = (output: any, context: __SerdeContext): OwnershipControlsRule => { + const contents: any = {}; + if (output[_OO] != null) { + contents[_OO] = __expectString(output[_OO]); + } + return contents; +}; + +/** + * deserializeAws_restXmlOwnershipControlsRules + */ +const de_OwnershipControlsRules = (output: any, context: __SerdeContext): OwnershipControlsRule[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_OwnershipControlsRule(entry, context); + }); +}; + +/** + * deserializeAws_restXmlPart + */ +const de_Part = (output: any, context: __SerdeContext): Part => { + const contents: any = {}; + if (output[_PN] != null) { + contents[_PN] = __strictParseInt32(output[_PN]) as number; + } + if (output[_LM] != null) { + contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); + } + if (output[_ETa] != null) { + contents[_ETa] = __expectString(output[_ETa]); + } + if (output[_Si] != null) { + contents[_Si] = __strictParseLong(output[_Si]) as number; + } + if (output[_CCRC] != null) { + contents[_CCRC] = __expectString(output[_CCRC]); + } + if (output[_CCRCC] != null) { + contents[_CCRCC] = __expectString(output[_CCRCC]); + } + if (output[_CCRCNVME] != null) { + contents[_CCRCNVME] = __expectString(output[_CCRCNVME]); + } + if (output[_CSHA] != null) { + contents[_CSHA] = __expectString(output[_CSHA]); + } + if (output[_CSHAh] != null) { + contents[_CSHAh] = __expectString(output[_CSHAh]); + } + return contents; +}; + +/** + * deserializeAws_restXmlPartitionedPrefix + */ +const de_PartitionedPrefix = (output: any, context: __SerdeContext): PartitionedPrefix => { + const contents: any = {}; + if (output[_PDS] != null) { + contents[_PDS] = __expectString(output[_PDS]); + } + return contents; +}; + +/** + * deserializeAws_restXmlParts + */ +const de_Parts = (output: any, context: __SerdeContext): Part[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_Part(entry, context); + }); +}; + +/** + * deserializeAws_restXmlPartsList + */ +const de_PartsList = (output: any, context: __SerdeContext): ObjectPart[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_ObjectPart(entry, context); + }); +}; + +/** + * deserializeAws_restXmlPolicyStatus + */ +const de_PolicyStatus = (output: any, context: __SerdeContext): PolicyStatus => { + const contents: any = {}; + if (output[_IP] != null) { + contents[_IP] = __parseBoolean(output[_IP]); + } + return contents; +}; + +/** + * deserializeAws_restXmlProgress + */ +const de_Progress = (output: any, context: __SerdeContext): Progress => { + const contents: any = {}; + if (output[_BS] != null) { + contents[_BS] = __strictParseLong(output[_BS]) as number; + } + if (output[_BP] != null) { + contents[_BP] = __strictParseLong(output[_BP]) as number; + } + if (output[_BRy] != null) { + contents[_BRy] = __strictParseLong(output[_BRy]) as number; + } + return contents; +}; + +/** + * deserializeAws_restXmlPublicAccessBlockConfiguration + */ +const de_PublicAccessBlockConfiguration = (output: any, context: __SerdeContext): PublicAccessBlockConfiguration => { + const contents: any = {}; + if (output[_BPA] != null) { + contents[_BPA] = __parseBoolean(output[_BPA]); + } + if (output[_IPA] != null) { + contents[_IPA] = __parseBoolean(output[_IPA]); + } + if (output[_BPP] != null) { + contents[_BPP] = __parseBoolean(output[_BPP]); + } + if (output[_RPB] != null) { + contents[_RPB] = __parseBoolean(output[_RPB]); + } + return contents; +}; + +/** + * deserializeAws_restXmlQueueConfiguration + */ +const de_QueueConfiguration = (output: any, context: __SerdeContext): QueueConfiguration => { + const contents: any = {}; + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); + } + if (output[_Qu] != null) { + contents[_QA] = __expectString(output[_Qu]); + } + if (output.Event === "") { + contents[_Eve] = []; + } else if (output[_Ev] != null) { + contents[_Eve] = de_EventList(__getArrayIfSingleItem(output[_Ev]), context); + } + if (output[_F] != null) { + contents[_F] = de_NotificationConfigurationFilter(output[_F], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlQueueConfigurationList + */ +const de_QueueConfigurationList = (output: any, context: __SerdeContext): QueueConfiguration[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_QueueConfiguration(entry, context); + }); +}; + +/** + * deserializeAws_restXmlRecordExpiration + */ +const de_RecordExpiration = (output: any, context: __SerdeContext): RecordExpiration => { + const contents: any = {}; + if (output[_Exp] != null) { + contents[_Exp] = __expectString(output[_Exp]); + } + if (output[_Da] != null) { + contents[_Da] = __strictParseInt32(output[_Da]) as number; + } + return contents; +}; + +/** + * deserializeAws_restXmlRedirect + */ +const de_Redirect = (output: any, context: __SerdeContext): Redirect => { + const contents: any = {}; + if (output[_HN] != null) { + contents[_HN] = __expectString(output[_HN]); + } + if (output[_HRC] != null) { + contents[_HRC] = __expectString(output[_HRC]); + } + if (output[_Pr] != null) { + contents[_Pr] = __expectString(output[_Pr]); + } + if (output[_RKPW] != null) { + contents[_RKPW] = __expectString(output[_RKPW]); + } + if (output[_RKW] != null) { + contents[_RKW] = __expectString(output[_RKW]); + } + return contents; +}; + +/** + * deserializeAws_restXmlRedirectAllRequestsTo + */ +const de_RedirectAllRequestsTo = (output: any, context: __SerdeContext): RedirectAllRequestsTo => { + const contents: any = {}; + if (output[_HN] != null) { + contents[_HN] = __expectString(output[_HN]); + } + if (output[_Pr] != null) { + contents[_Pr] = __expectString(output[_Pr]); + } + return contents; +}; + +/** + * deserializeAws_restXmlReplicaModifications + */ +const de_ReplicaModifications = (output: any, context: __SerdeContext): ReplicaModifications => { + const contents: any = {}; + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); + } + return contents; +}; + +/** + * deserializeAws_restXmlReplicationConfiguration + */ +const de_ReplicationConfiguration = (output: any, context: __SerdeContext): ReplicationConfiguration => { + const contents: any = {}; + if (output[_Ro] != null) { + contents[_Ro] = __expectString(output[_Ro]); + } + if (output.Rule === "") { + contents[_Rul] = []; + } else if (output[_Ru] != null) { + contents[_Rul] = de_ReplicationRules(__getArrayIfSingleItem(output[_Ru]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlReplicationRule + */ +const de_ReplicationRule = (output: any, context: __SerdeContext): ReplicationRule => { + const contents: any = {}; + if (output[_ID_] != null) { + contents[_ID_] = __expectString(output[_ID_]); + } + if (output[_Pri] != null) { + contents[_Pri] = __strictParseInt32(output[_Pri]) as number; + } + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); + } + if (output[_F] != null) { + contents[_F] = de_ReplicationRuleFilter(output[_F], context); + } + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); + } + if (output[_SSC] != null) { + contents[_SSC] = de_SourceSelectionCriteria(output[_SSC], context); + } + if (output[_EOR] != null) { + contents[_EOR] = de_ExistingObjectReplication(output[_EOR], context); + } + if (output[_Des] != null) { + contents[_Des] = de_Destination(output[_Des], context); + } + if (output[_DMR] != null) { + contents[_DMR] = de_DeleteMarkerReplication(output[_DMR], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlReplicationRuleAndOperator + */ +const de_ReplicationRuleAndOperator = (output: any, context: __SerdeContext): ReplicationRuleAndOperator => { + const contents: any = {}; + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); + } + if (output.Tag === "") { + contents[_Tag] = []; + } else if (output[_Ta] != null) { + contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlReplicationRuleFilter + */ +const de_ReplicationRuleFilter = (output: any, context: __SerdeContext): ReplicationRuleFilter => { + const contents: any = {}; + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); + } + if (output[_Ta] != null) { + contents[_Ta] = de_Tag(output[_Ta], context); + } + if (output[_A] != null) { + contents[_A] = de_ReplicationRuleAndOperator(output[_A], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlReplicationRules + */ +const de_ReplicationRules = (output: any, context: __SerdeContext): ReplicationRule[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_ReplicationRule(entry, context); + }); +}; + +/** + * deserializeAws_restXmlReplicationTime + */ +const de_ReplicationTime = (output: any, context: __SerdeContext): ReplicationTime => { + const contents: any = {}; + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); + } + if (output[_Tim] != null) { + contents[_Tim] = de_ReplicationTimeValue(output[_Tim], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlReplicationTimeValue + */ +const de_ReplicationTimeValue = (output: any, context: __SerdeContext): ReplicationTimeValue => { + const contents: any = {}; + if (output[_Mi] != null) { + contents[_Mi] = __strictParseInt32(output[_Mi]) as number; + } + return contents; +}; + +/** + * deserializeAws_restXmlRestoreStatus + */ +const de_RestoreStatus = (output: any, context: __SerdeContext): RestoreStatus => { + const contents: any = {}; + if (output[_IRIP] != null) { + contents[_IRIP] = __parseBoolean(output[_IRIP]); + } + if (output[_REDe] != null) { + contents[_REDe] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_REDe])); + } + return contents; +}; + +/** + * deserializeAws_restXmlRoutingRule + */ +const de_RoutingRule = (output: any, context: __SerdeContext): RoutingRule => { + const contents: any = {}; + if (output[_Con] != null) { + contents[_Con] = de_Condition(output[_Con], context); + } + if (output[_Red] != null) { + contents[_Red] = de_Redirect(output[_Red], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlRoutingRules + */ +const de_RoutingRules = (output: any, context: __SerdeContext): RoutingRule[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_RoutingRule(entry, context); + }); +}; + +/** + * deserializeAws_restXmlS3KeyFilter + */ +const de_S3KeyFilter = (output: any, context: __SerdeContext): S3KeyFilter => { + const contents: any = {}; + if (output.FilterRule === "") { + contents[_FRi] = []; + } else if (output[_FR] != null) { + contents[_FRi] = de_FilterRuleList(__getArrayIfSingleItem(output[_FR]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlS3TablesDestinationResult + */ +const de_S3TablesDestinationResult = (output: any, context: __SerdeContext): S3TablesDestinationResult => { + const contents: any = {}; + if (output[_TBA] != null) { + contents[_TBA] = __expectString(output[_TBA]); + } + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); + } + if (output[_TAa] != null) { + contents[_TAa] = __expectString(output[_TAa]); + } + if (output[_TNa] != null) { + contents[_TNa] = __expectString(output[_TNa]); + } + return contents; +}; + +/** + * deserializeAws_restXmlServerSideEncryptionByDefault + */ +const de_ServerSideEncryptionByDefault = (output: any, context: __SerdeContext): ServerSideEncryptionByDefault => { + const contents: any = {}; + if (output[_SSEA] != null) { + contents[_SSEA] = __expectString(output[_SSEA]); + } + if (output[_KMSMKID] != null) { + contents[_KMSMKID] = __expectString(output[_KMSMKID]); + } + return contents; +}; + +/** + * deserializeAws_restXmlServerSideEncryptionConfiguration + */ +const de_ServerSideEncryptionConfiguration = ( + output: any, + context: __SerdeContext +): ServerSideEncryptionConfiguration => { + const contents: any = {}; + if (output.Rule === "") { + contents[_Rul] = []; + } else if (output[_Ru] != null) { + contents[_Rul] = de_ServerSideEncryptionRules(__getArrayIfSingleItem(output[_Ru]), context); + } + return contents; +}; + +/** + * deserializeAws_restXmlServerSideEncryptionRule + */ +const de_ServerSideEncryptionRule = (output: any, context: __SerdeContext): ServerSideEncryptionRule => { + const contents: any = {}; + if (output[_ASSEBD] != null) { + contents[_ASSEBD] = de_ServerSideEncryptionByDefault(output[_ASSEBD], context); + } + if (output[_BKE] != null) { + contents[_BKE] = __parseBoolean(output[_BKE]); + } + return contents; +}; + +/** + * deserializeAws_restXmlServerSideEncryptionRules + */ +const de_ServerSideEncryptionRules = (output: any, context: __SerdeContext): ServerSideEncryptionRule[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_ServerSideEncryptionRule(entry, context); + }); +}; + +/** + * deserializeAws_restXmlSessionCredentials + */ +const de_SessionCredentials = (output: any, context: __SerdeContext): SessionCredentials => { + const contents: any = {}; + if (output[_AKI] != null) { + contents[_AKI] = __expectString(output[_AKI]); + } + if (output[_SAK] != null) { + contents[_SAK] = __expectString(output[_SAK]); + } + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); + } + if (output[_Exp] != null) { + contents[_Exp] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Exp])); + } + return contents; +}; + +/** + * deserializeAws_restXmlSimplePrefix + */ +const de_SimplePrefix = (output: any, context: __SerdeContext): SimplePrefix => { + const contents: any = {}; + return contents; +}; + +/** + * deserializeAws_restXmlSourceSelectionCriteria + */ +const de_SourceSelectionCriteria = (output: any, context: __SerdeContext): SourceSelectionCriteria => { + const contents: any = {}; + if (output[_SKEO] != null) { + contents[_SKEO] = de_SseKmsEncryptedObjects(output[_SKEO], context); + } + if (output[_RM] != null) { + contents[_RM] = de_ReplicaModifications(output[_RM], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlSSEKMS + */ +const de_SSEKMS = (output: any, context: __SerdeContext): SSEKMS => { + const contents: any = {}; + if (output[_KI] != null) { + contents[_KI] = __expectString(output[_KI]); + } + return contents; +}; + +/** + * deserializeAws_restXmlSseKmsEncryptedObjects + */ +const de_SseKmsEncryptedObjects = (output: any, context: __SerdeContext): SseKmsEncryptedObjects => { + const contents: any = {}; + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); + } + return contents; +}; + +/** + * deserializeAws_restXmlSSES3 + */ +const de_SSES3 = (output: any, context: __SerdeContext): SSES3 => { + const contents: any = {}; + return contents; +}; + +/** + * deserializeAws_restXmlStats + */ +const de_Stats = (output: any, context: __SerdeContext): Stats => { + const contents: any = {}; + if (output[_BS] != null) { + contents[_BS] = __strictParseLong(output[_BS]) as number; + } + if (output[_BP] != null) { + contents[_BP] = __strictParseLong(output[_BP]) as number; + } + if (output[_BRy] != null) { + contents[_BRy] = __strictParseLong(output[_BRy]) as number; + } + return contents; +}; + +/** + * deserializeAws_restXmlStorageClassAnalysis + */ +const de_StorageClassAnalysis = (output: any, context: __SerdeContext): StorageClassAnalysis => { + const contents: any = {}; + if (output[_DE] != null) { + contents[_DE] = de_StorageClassAnalysisDataExport(output[_DE], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlStorageClassAnalysisDataExport + */ +const de_StorageClassAnalysisDataExport = (output: any, context: __SerdeContext): StorageClassAnalysisDataExport => { + const contents: any = {}; + if (output[_OSV] != null) { + contents[_OSV] = __expectString(output[_OSV]); + } + if (output[_Des] != null) { + contents[_Des] = de_AnalyticsExportDestination(output[_Des], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlTag + */ +const de_Tag = (output: any, context: __SerdeContext): Tag => { + const contents: any = {}; + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); + } + if (output[_Va] != null) { + contents[_Va] = __expectString(output[_Va]); + } + return contents; +}; + +/** + * deserializeAws_restXmlTagSet + */ +const de_TagSet = (output: any, context: __SerdeContext): Tag[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_Tag(entry, context); + }); +}; + +/** + * deserializeAws_restXmlTargetGrant + */ +const de_TargetGrant = (output: any, context: __SerdeContext): TargetGrant => { + const contents: any = {}; + if (output[_Gra] != null) { + contents[_Gra] = de_Grantee(output[_Gra], context); + } + if (output[_Pe] != null) { + contents[_Pe] = __expectString(output[_Pe]); + } + return contents; +}; + +/** + * deserializeAws_restXmlTargetGrants + */ +const de_TargetGrants = (output: any, context: __SerdeContext): TargetGrant[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_TargetGrant(entry, context); + }); +}; + +/** + * deserializeAws_restXmlTargetObjectKeyFormat + */ +const de_TargetObjectKeyFormat = (output: any, context: __SerdeContext): TargetObjectKeyFormat => { + const contents: any = {}; + if (output[_SPi] != null) { + contents[_SPi] = de_SimplePrefix(output[_SPi], context); + } + if (output[_PP] != null) { + contents[_PP] = de_PartitionedPrefix(output[_PP], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlTiering + */ +const de_Tiering = (output: any, context: __SerdeContext): Tiering => { + const contents: any = {}; + if (output[_Da] != null) { + contents[_Da] = __strictParseInt32(output[_Da]) as number; + } + if (output[_AT] != null) { + contents[_AT] = __expectString(output[_AT]); + } + return contents; +}; + +/** + * deserializeAws_restXmlTieringList + */ +const de_TieringList = (output: any, context: __SerdeContext): Tiering[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_Tiering(entry, context); + }); +}; + +/** + * deserializeAws_restXmlTopicConfiguration + */ +const de_TopicConfiguration = (output: any, context: __SerdeContext): TopicConfiguration => { + const contents: any = {}; + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); + } + if (output[_Top] != null) { + contents[_TA] = __expectString(output[_Top]); + } + if (output.Event === "") { + contents[_Eve] = []; + } else if (output[_Ev] != null) { + contents[_Eve] = de_EventList(__getArrayIfSingleItem(output[_Ev]), context); + } + if (output[_F] != null) { + contents[_F] = de_NotificationConfigurationFilter(output[_F], context); + } + return contents; +}; + +/** + * deserializeAws_restXmlTopicConfigurationList + */ +const de_TopicConfigurationList = (output: any, context: __SerdeContext): TopicConfiguration[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_TopicConfiguration(entry, context); + }); +}; + +/** + * deserializeAws_restXmlTransition + */ +const de_Transition = (output: any, context: __SerdeContext): Transition => { + const contents: any = {}; + if (output[_Dat] != null) { + contents[_Dat] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Dat])); + } + if (output[_Da] != null) { + contents[_Da] = __strictParseInt32(output[_Da]) as number; + } + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); + } + return contents; +}; + +/** + * deserializeAws_restXmlTransitionList + */ +const de_TransitionList = (output: any, context: __SerdeContext): Transition[] => { + return (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_Transition(entry, context); + }); +}; + +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 _A = "And"; +const _AAO = "AnalyticsAndOperator"; +const _AC = "AnalyticsConfiguration"; +const _ACL = "ACL"; +const _ACLc = "AccessControlList"; +const _ACLn = "AnalyticsConfigurationList"; +const _ACP = "AccessControlPolicy"; +const _ACT = "AccessControlTranslation"; +const _ACc = "AccelerateConfiguration"; +const _AD = "AbortDate"; +const _AED = "AnalyticsExportDestination"; +const _AF = "AnalyticsFilter"; +const _AH = "AllowedHeader"; +const _AHl = "AllowedHeaders"; +const _AI = "AnalyticsId"; +const _AIMU = "AbortIncompleteMultipartUpload"; +const _AIc = "AccountId"; +const _AKI = "AccessKeyId"; +const _AM = "AllowedMethod"; +const _AMl = "AllowedMethods"; +const _AO = "AllowedOrigin"; +const _AOl = "AllowedOrigins"; +const _APA = "AccessPointAlias"; +const _APAc = "AccessPointArn"; +const _AQRD = "AllowQuotedRecordDelimiter"; +const _AR = "AcceptRanges"; +const _ARI = "AbortRuleId"; +const _AS = "ArchiveStatus"; +const _ASBD = "AnalyticsS3BucketDestination"; +const _ASEFF = "AnalyticsS3ExportFileFormat"; +const _ASSEBD = "ApplyServerSideEncryptionByDefault"; +const _AT = "AccessTier"; +const _Ac = "Account"; +const _B = "Bucket"; +const _BA = "BucketArn"; +const _BAI = "BucketAccountId"; +const _BAS = "BucketAccelerateStatus"; +const _BGR = "BypassGovernanceRetention"; +const _BI = "BucketInfo"; +const _BKE = "BucketKeyEnabled"; +const _BLC = "BucketLifecycleConfiguration"; +const _BLCu = "BucketLocationConstraint"; +const _BLN = "BucketLocationName"; +const _BLP = "BucketLogsPermission"; +const _BLS = "BucketLoggingStatus"; +const _BLT = "BucketLocationType"; +const _BN = "BucketName"; +const _BP = "BytesProcessed"; +const _BPA = "BlockPublicAcls"; +const _BPP = "BlockPublicPolicy"; +const _BR = "BucketRegion"; +const _BRy = "BytesReturned"; +const _BS = "BytesScanned"; +const _BT = "BucketType"; +const _BVS = "BucketVersioningStatus"; +const _Bu = "Buckets"; +const _C = "Credentials"; +const _CA = "ChecksumAlgorithm"; +const _CACL = "CannedACL"; +const _CBC = "CreateBucketConfiguration"; +const _CC = "CacheControl"; +const _CCRC = "ChecksumCRC32"; +const _CCRCC = "ChecksumCRC32C"; +const _CCRCNVME = "ChecksumCRC64NVME"; +const _CD = "ContentDisposition"; +const _CDr = "CreationDate"; +const _CE = "ContentEncoding"; +const _CF = "CloudFunction"; +const _CFC = "CloudFunctionConfiguration"; +const _CL = "ContentLanguage"; +const _CLo = "ContentLength"; +const _CM = "ChecksumMode"; +const _CMD = "ContentMD5"; +const _CMU = "CompletedMultipartUpload"; +const _CORSC = "CORSConfiguration"; +const _CORSR = "CORSRule"; +const _CORSRu = "CORSRules"; +const _CP = "CommonPrefixes"; +const _CPo = "CompletedPart"; +const _CR = "ContentRange"; +const _CRSBA = "ConfirmRemoveSelfBucketAccess"; +const _CS = "CopySource"; +const _CSHA = "ChecksumSHA1"; +const _CSHAh = "ChecksumSHA256"; +const _CSIM = "CopySourceIfMatch"; +const _CSIMS = "CopySourceIfModifiedSince"; +const _CSINM = "CopySourceIfNoneMatch"; +const _CSIUS = "CopySourceIfUnmodifiedSince"; +const _CSR = "CopySourceRange"; +const _CSSSECA = "CopySourceSSECustomerAlgorithm"; +const _CSSSECK = "CopySourceSSECustomerKey"; +const _CSSSECKMD = "CopySourceSSECustomerKeyMD5"; +const _CSV = "CSV"; +const _CSVI = "CopySourceVersionId"; +const _CSVIn = "CSVInput"; +const _CSVO = "CSVOutput"; +const _CSo = "ConfigurationState"; +const _CT = "ChecksumType"; +const _CTl = "ClientToken"; +const _CTo = "ContentType"; +const _CTom = "CompressionType"; +const _CTon = "ContinuationToken"; +const _Ch = "Checksum"; +const _Co = "Contents"; +const _Cod = "Code"; +const _Com = "Comments"; +const _Con = "Condition"; +const _D = "Delimiter"; +const _DAI = "DaysAfterInitiation"; +const _DE = "DataExport"; +const _DIM = "DestinationIfMatch"; +const _DIMS = "DestinationIfModifiedSince"; +const _DINM = "DestinationIfNoneMatch"; +const _DIUS = "DestinationIfUnmodifiedSince"; +const _DM = "DeleteMarker"; +const _DMR = "DeleteMarkerReplication"; +const _DMRS = "DeleteMarkerReplicationStatus"; +const _DMVI = "DeleteMarkerVersionId"; +const _DMe = "DeleteMarkers"; +const _DN = "DisplayName"; +const _DR = "DataRedundancy"; +const _DRe = "DefaultRetention"; +const _DRes = "DestinationResult"; +const _Da = "Days"; +const _Dat = "Date"; +const _De = "Deleted"; +const _Del = "Delete"; +const _Des = "Destination"; +const _Desc = "Description"; +const _E = "Expires"; +const _EA = "EmailAddress"; +const _EBC = "EventBridgeConfiguration"; +const _EBO = "ExpectedBucketOwner"; +const _EC = "ErrorCode"; +const _ECn = "EncryptionConfiguration"; +const _ED = "ErrorDocument"; +const _EH = "ExposeHeaders"; +const _EHx = "ExposeHeader"; +const _EM = "ErrorMessage"; +const _EODM = "ExpiredObjectDeleteMarker"; +const _EOR = "ExistingObjectReplication"; +const _EORS = "ExistingObjectReplicationStatus"; +const _ERP = "EnableRequestProgress"; +const _ES = "ExpiresString"; +const _ESBO = "ExpectedSourceBucketOwner"; +const _ESx = "ExpirationStatus"; +const _ESxp = "ExpirationState"; +const _ET = "EncodingType"; +const _ETa = "ETag"; +const _ETn = "EncryptionType"; +const _ETv = "EventThreshold"; +const _ETx = "ExpressionType"; +const _En = "Encryption"; +const _Ena = "Enabled"; +const _End = "End"; +const _Er = "Error"; +const _Err = "Errors"; +const _Ev = "Event"; +const _Eve = "Events"; +const _Ex = "Expression"; +const _Exp = "Expiration"; +const _F = "Filter"; +const _FD = "FieldDelimiter"; +const _FHI = "FileHeaderInfo"; +const _FO = "FetchOwner"; +const _FR = "FilterRule"; +const _FRN = "FilterRuleName"; +const _FRV = "FilterRuleValue"; +const _FRi = "FilterRules"; +const _Fi = "Field"; +const _Fo = "Format"; +const _Fr = "Frequency"; +const _G = "Grant"; +const _GFC = "GrantFullControl"; +const _GJP = "GlacierJobParameters"; +const _GR = "GrantRead"; +const _GRACP = "GrantReadACP"; +const _GW = "GrantWrite"; +const _GWACP = "GrantWriteACP"; +const _Gr = "Grants"; +const _Gra = "Grantee"; +const _HECRE = "HttpErrorCodeReturnedEquals"; +const _HN = "HostName"; +const _HRC = "HttpRedirectCode"; +const _I = "Id"; +const _IC = "InventoryConfiguration"; +const _ICL = "InventoryConfigurationList"; +const _ICS = "InventoryConfigurationState"; +const _ID = "IndexDocument"; +const _ID_ = "ID"; +const _IDn = "InventoryDestination"; +const _IE = "IsEnabled"; +const _IEn = "InventoryEncryption"; +const _IF = "InventoryFilter"; +const _IFn = "InventoryFormat"; +const _IFnv = "InventoryFrequency"; +const _II = "InventoryId"; +const _IIOV = "InventoryIncludedObjectVersions"; +const _IL = "IsLatest"; +const _IM = "IfMatch"; +const _IMIT = "IfMatchInitiatedTime"; +const _IMLMT = "IfMatchLastModifiedTime"; +const _IMS = "IfMatchSize"; +const _IMSf = "IfModifiedSince"; +const _INM = "IfNoneMatch"; +const _IOF = "InventoryOptionalField"; +const _IOV = "IncludedObjectVersions"; +const _IP = "IsPublic"; +const _IPA = "IgnorePublicAcls"; +const _IRIP = "IsRestoreInProgress"; +const _IS = "InputSerialization"; +const _ISBD = "InventoryS3BucketDestination"; +const _ISn = "InventorySchedule"; +const _IT = "IsTruncated"; +const _ITAO = "IntelligentTieringAndOperator"; +const _ITAT = "IntelligentTieringAccessTier"; +const _ITC = "IntelligentTieringConfiguration"; +const _ITCL = "IntelligentTieringConfigurationList"; +const _ITCR = "InventoryTableConfigurationResult"; +const _ITCU = "InventoryTableConfigurationUpdates"; +const _ITCn = "InventoryTableConfiguration"; +const _ITD = "IntelligentTieringDays"; +const _ITF = "IntelligentTieringFilter"; +const _ITI = "IntelligentTieringId"; +const _ITS = "IntelligentTieringStatus"; +const _IUS = "IfUnmodifiedSince"; +const _In = "Initiator"; +const _Ini = "Initiated"; +const _JSON = "JSON"; +const _JSONI = "JSONInput"; +const _JSONO = "JSONOutput"; +const _JSONT = "JSONType"; +const _JTC = "JournalTableConfiguration"; +const _JTCR = "JournalTableConfigurationResult"; +const _JTCU = "JournalTableConfigurationUpdates"; +const _K = "Key"; +const _KC = "KeyCount"; +const _KI = "KeyId"; +const _KKA = "KmsKeyArn"; +const _KM = "KeyMarker"; +const _KMSC = "KMSContext"; +const _KMSKI = "KMSKeyId"; +const _KMSMKID = "KMSMasterKeyID"; +const _KPE = "KeyPrefixEquals"; +const _L = "Location"; +const _LC = "LocationConstraint"; +const _LE = "LoggingEnabled"; +const _LEi = "LifecycleExpiration"; +const _LFA = "LambdaFunctionArn"; +const _LFC = "LambdaFunctionConfigurations"; +const _LFCa = "LambdaFunctionConfiguration"; +const _LI = "LocationInfo"; +const _LM = "LastModified"; +const _LMT = "LastModifiedTime"; +const _LNAS = "LocationNameAsString"; +const _LP = "LocationPrefix"; +const _LR = "LifecycleRule"; +const _LRAO = "LifecycleRuleAndOperator"; +const _LRF = "LifecycleRuleFilter"; +const _LT = "LocationType"; +const _M = "Marker"; +const _MAO = "MetricsAndOperator"; +const _MAS = "MaxAgeSeconds"; +const _MB = "MaxBuckets"; +const _MC = "MetricsConfiguration"; +const _MCL = "MetricsConfigurationList"; +const _MCR = "MetadataConfigurationResult"; +const _MCe = "MetadataConfiguration"; +const _MD = "MetadataDirective"; +const _MDB = "MaxDirectoryBuckets"; +const _MDf = "MfaDelete"; +const _ME = "MetadataEntry"; +const _MF = "MetricsFilter"; +const _MFA = "MFA"; +const _MFAD = "MFADelete"; +const _MI = "MetricsId"; +const _MK = "MaxKeys"; +const _MKe = "MetadataKey"; +const _MM = "MissingMeta"; +const _MOS = "MpuObjectSize"; +const _MP = "MaxParts"; +const _MS = "MetricsStatus"; +const _MTC = "MetadataTableConfiguration"; +const _MTCR = "MetadataTableConfigurationResult"; +const _MTEC = "MetadataTableEncryptionConfiguration"; +const _MU = "MaxUploads"; +const _MV = "MetadataValue"; +const _Me = "Metrics"; +const _Mes = "Message"; +const _Mi = "Minutes"; +const _Mo = "Mode"; +const _N = "Name"; +const _NC = "NotificationConfiguration"; +const _NCF = "NotificationConfigurationFilter"; +const _NCT = "NextContinuationToken"; +const _ND = "NoncurrentDays"; +const _NI = "NotificationId"; +const _NKM = "NextKeyMarker"; +const _NM = "NextMarker"; +const _NNV = "NewerNoncurrentVersions"; +const _NPNM = "NextPartNumberMarker"; +const _NUIM = "NextUploadIdMarker"; +const _NVE = "NoncurrentVersionExpiration"; +const _NVIM = "NextVersionIdMarker"; +const _NVT = "NoncurrentVersionTransitions"; +const _NVTo = "NoncurrentVersionTransition"; +const _O = "Owner"; +const _OA = "ObjectAttributes"; +const _OC = "OwnershipControls"; +const _OCACL = "ObjectCannedACL"; +const _OCR = "OwnershipControlsRule"; +const _OF = "OptionalFields"; +const _OI = "ObjectIdentifier"; +const _OK = "ObjectKey"; +const _OL = "OutputLocation"; +const _OLC = "ObjectLockConfiguration"; +const _OLE = "ObjectLockEnabled"; +const _OLEFB = "ObjectLockEnabledForBucket"; +const _OLLH = "ObjectLockLegalHold"; +const _OLLHS = "ObjectLockLegalHoldStatus"; +const _OLM = "ObjectLockMode"; +const _OLR = "ObjectLockRetention"; +const _OLRM = "ObjectLockRetentionMode"; +const _OLRUD = "ObjectLockRetainUntilDate"; +const _OLRb = "ObjectLockRule"; +const _OO = "ObjectOwnership"; +const _OOA = "OptionalObjectAttributes"; +const _OOw = "OwnerOverride"; +const _OP = "ObjectParts"; +const _OS = "OutputSerialization"; +const _OSGT = "ObjectSizeGreaterThan"; +const _OSGTB = "ObjectSizeGreaterThanBytes"; +const _OSLT = "ObjectSizeLessThan"; +const _OSLTB = "ObjectSizeLessThanBytes"; +const _OSV = "OutputSchemaVersion"; +const _OSb = "ObjectSize"; +const _OVI = "ObjectVersionId"; +const _Ob = "Objects"; +const _P = "Prefix"; +const _PABC = "PublicAccessBlockConfiguration"; +const _PC = "PartsCount"; +const _PDS = "PartitionDateSource"; +const _PI = "ParquetInput"; +const _PN = "PartNumber"; +const _PNM = "PartNumberMarker"; +const _PP = "PartitionedPrefix"; +const _Pa = "Payer"; +const _Par = "Part"; +const _Parq = "Parquet"; +const _Part = "Parts"; +const _Pe = "Permission"; +const _Pr = "Protocol"; +const _Pri = "Priority"; +const _Q = "Quiet"; +const _QA = "QueueArn"; +const _QC = "QueueConfiguration"; +const _QCu = "QueueConfigurations"; +const _QCuo = "QuoteCharacter"; +const _QEC = "QuoteEscapeCharacter"; +const _QF = "QuoteFields"; +const _Qu = "Queue"; +const _R = "Range"; +const _RART = "RedirectAllRequestsTo"; +const _RC = "RequestCharged"; +const _RCC = "ResponseCacheControl"; +const _RCD = "ResponseContentDisposition"; +const _RCE = "ResponseContentEncoding"; +const _RCL = "ResponseContentLanguage"; +const _RCT = "ResponseContentType"; +const _RCe = "ReplicationConfiguration"; +const _RD = "RecordDelimiter"; +const _RE = "ResponseExpires"; +const _RED = "RecordExpirationDays"; +const _REDe = "RestoreExpiryDate"; +const _REe = "RecordExpiration"; +const _RKKID = "ReplicaKmsKeyID"; +const _RKPW = "ReplaceKeyPrefixWith"; +const _RKW = "ReplaceKeyWith"; +const _RM = "ReplicaModifications"; +const _RMS = "ReplicaModificationsStatus"; +const _ROP = "RestoreOutputPath"; +const _RP = "RequestPayer"; +const _RPB = "RestrictPublicBuckets"; +const _RPC = "RequestPaymentConfiguration"; +const _RPe = "RequestProgress"; +const _RR = "RequestRoute"; +const _RRAO = "ReplicationRuleAndOperator"; +const _RRF = "ReplicationRuleFilter"; +const _RRS = "ReplicationRuleStatus"; +const _RRT = "RestoreRequestType"; +const _RRe = "ReplicationRule"; +const _RRes = "RestoreRequest"; +const _RRo = "RoutingRules"; +const _RRou = "RoutingRule"; +const _RS = "RenameSource"; +const _RSe = "ReplicationStatus"; +const _RSes = "RestoreStatus"; +const _RT = "RequestToken"; +const _RTS = "ReplicationTimeStatus"; +const _RTV = "ReplicationTimeValue"; +const _RTe = "ReplicationTime"; +const _RUD = "RetainUntilDate"; +const _Re = "Restore"; +const _Red = "Redirect"; +const _Ro = "Role"; +const _Ru = "Rule"; +const _Rul = "Rules"; +const _S = "Status"; +const _SA = "StartAfter"; +const _SAK = "SecretAccessKey"; +const _SAs = "SseAlgorithm"; +const _SBD = "S3BucketDestination"; +const _SC = "StorageClass"; +const _SCA = "StorageClassAnalysis"; +const _SCADE = "StorageClassAnalysisDataExport"; +const _SCASV = "StorageClassAnalysisSchemaVersion"; +const _SCt = "StatusCode"; +const _SDV = "SkipDestinationValidation"; +const _SIM = "SourceIfMatch"; +const _SIMS = "SourceIfModifiedSince"; +const _SINM = "SourceIfNoneMatch"; +const _SIUS = "SourceIfUnmodifiedSince"; +const _SK = "SSE-KMS"; +const _SKEO = "SseKmsEncryptedObjects"; +const _SKEOS = "SseKmsEncryptedObjectsStatus"; +const _SKF = "S3KeyFilter"; +const _SKe = "S3Key"; +const _SL = "S3Location"; +const _SM = "SessionMode"; +const _SOCR = "SelectObjectContentRequest"; +const _SP = "SelectParameters"; +const _SPi = "SimplePrefix"; +const _SR = "ScanRange"; +const _SS = "SSE-S3"; +const _SSC = "SourceSelectionCriteria"; +const _SSE = "ServerSideEncryption"; +const _SSEA = "SSEAlgorithm"; +const _SSEBD = "ServerSideEncryptionByDefault"; +const _SSEC = "ServerSideEncryptionConfiguration"; +const _SSECA = "SSECustomerAlgorithm"; +const _SSECK = "SSECustomerKey"; +const _SSECKMD = "SSECustomerKeyMD5"; +const _SSEKMS = "SSEKMS"; +const _SSEKMSEC = "SSEKMSEncryptionContext"; +const _SSEKMSKI = "SSEKMSKeyId"; +const _SSER = "ServerSideEncryptionRule"; +const _SSES = "SSES3"; +const _ST = "SessionToken"; +const _STBA = "S3TablesBucketArn"; +const _STD = "S3TablesDestination"; +const _STDR = "S3TablesDestinationResult"; +const _STN = "S3TablesName"; +const _S_ = "S3"; +const _Sc = "Schedule"; +const _Se = "Setting"; +const _Si = "Size"; +const _St = "Start"; +const _Su = "Suffix"; +const _T = "Tagging"; +const _TA = "TopicArn"; +const _TAa = "TableArn"; +const _TB = "TargetBucket"; +const _TBA = "TableBucketArn"; +const _TBT = "TableBucketType"; +const _TC = "TagCount"; +const _TCo = "TopicConfiguration"; +const _TCop = "TopicConfigurations"; +const _TD = "TaggingDirective"; +const _TDMOS = "TransitionDefaultMinimumObjectSize"; +const _TG = "TargetGrants"; +const _TGa = "TargetGrant"; +const _TN = "TableName"; +const _TNa = "TableNamespace"; +const _TOKF = "TargetObjectKeyFormat"; +const _TP = "TargetPrefix"; +const _TPC = "TotalPartsCount"; +const _TS = "TagSet"; +const _TSA = "TableSseAlgorithm"; +const _TSC = "TransitionStorageClass"; +const _TSa = "TableStatus"; +const _Ta = "Tag"; +const _Tag = "Tags"; +const _Ti = "Tier"; +const _Tie = "Tierings"; +const _Tier = "Tiering"; +const _Tim = "Time"; +const _To = "Token"; +const _Top = "Topic"; +const _Tr = "Transitions"; +const _Tra = "Transition"; +const _Ty = "Type"; +const _U = "Upload"; +const _UI = "UploadId"; +const _UIM = "UploadIdMarker"; +const _UM = "UserMetadata"; +const _URI = "URI"; +const _Up = "Uploads"; +const _V = "Version"; +const _VC = "VersionCount"; +const _VCe = "VersioningConfiguration"; +const _VI = "VersionId"; +const _VIM = "VersionIdMarker"; +const _Va = "Value"; +const _Ve = "Versions"; +const _WC = "WebsiteConfiguration"; +const _WOB = "WriteOffsetBytes"; +const _WRL = "WebsiteRedirectLocation"; +const _Y = "Years"; +const _a = "analytics"; +const _ac = "accelerate"; +const _acl = "acl"; +const _ar = "accept-ranges"; +const _at = "attributes"; +const _br = "bucket-region"; +const _c = "cors"; +const _cc = "cache-control"; +const _cd = "content-disposition"; +const _ce = "content-encoding"; +const _cl = "content-language"; +const _cl_ = "content-length"; +const _cm = "content-md5"; +const _cr = "content-range"; +const _ct = "content-type"; +const _ct_ = "continuation-token"; +const _d = "delete"; +const _de = "delimiter"; +const _e = "expires"; +const _en = "encryption"; +const _et = "encoding-type"; +const _eta = "etag"; +const _ex = "expiresstring"; +const _fo = "fetch-owner"; +const _i = "id"; +const _im = "if-match"; +const _ims = "if-modified-since"; +const _in = "inventory"; +const _inm = "if-none-match"; +const _it = "intelligent-tiering"; +const _ius = "if-unmodified-since"; +const _km = "key-marker"; +const _l = "lifecycle"; +const _lh = "legal-hold"; +const _lm = "last-modified"; +const _lo = "location"; +const _log = "logging"; +const _lt = "list-type"; +const _m = "metrics"; +const _mC = "metadataConfiguration"; +const _mIT = "metadataInventoryTable"; +const _mJT = "metadataJournalTable"; +const _mT = "metadataTable"; +const _ma = "marker"; +const _mb = "max-buckets"; +const _mdb = "max-directory-buckets"; +const _me = "member"; +const _mk = "max-keys"; +const _mp = "max-parts"; +const _mu = "max-uploads"; +const _n = "notification"; +const _oC = "ownershipControls"; +const _ol = "object-lock"; +const _p = "policy"; +const _pAB = "publicAccessBlock"; +const _pN = "partNumber"; +const _pS = "policyStatus"; +const _pnm = "part-number-marker"; +const _pr = "prefix"; +const _r = "replication"; +const _rO = "renameObject"; +const _rP = "requestPayment"; +const _ra = "range"; +const _rcc = "response-cache-control"; +const _rcd = "response-content-disposition"; +const _rce = "response-content-encoding"; +const _rcl = "response-content-language"; +const _rct = "response-content-type"; +const _re = "response-expires"; +const _res = "restore"; +const _ret = "retention"; +const _s = "session"; +const _sa = "start-after"; +const _se = "select"; +const _st = "select-type"; +const _t = "tagging"; +const _to = "torrent"; +const _u = "uploads"; +const _uI = "uploadId"; +const _uim = "upload-id-marker"; +const _v = "versioning"; +const _vI = "versionId"; +const _ve = ''; +const _ver = "versions"; +const _vim = "version-id-marker"; +const _w = "website"; +const _x = "xsi:type"; +const _xaa = "x-amz-acl"; +const _xaad = "x-amz-abort-date"; +const _xaapa = "x-amz-access-point-alias"; +const _xaari = "x-amz-abort-rule-id"; +const _xaas = "x-amz-archive-status"; +const _xaba = "x-amz-bucket-arn"; +const _xabgr = "x-amz-bypass-governance-retention"; +const _xabln = "x-amz-bucket-location-name"; +const _xablt = "x-amz-bucket-location-type"; +const _xabole = "x-amz-bucket-object-lock-enabled"; +const _xabolt = "x-amz-bucket-object-lock-token"; +const _xabr = "x-amz-bucket-region"; +const _xaca = "x-amz-checksum-algorithm"; +const _xacc = "x-amz-checksum-crc32"; +const _xacc_ = "x-amz-checksum-crc32c"; +const _xacc__ = "x-amz-checksum-crc64nvme"; +const _xacm = "x-amz-checksum-mode"; +const _xacrsba = "x-amz-confirm-remove-self-bucket-access"; +const _xacs = "x-amz-checksum-sha1"; +const _xacs_ = "x-amz-checksum-sha256"; +const _xacs__ = "x-amz-copy-source"; +const _xacsim = "x-amz-copy-source-if-match"; +const _xacsims = "x-amz-copy-source-if-modified-since"; +const _xacsinm = "x-amz-copy-source-if-none-match"; +const _xacsius = "x-amz-copy-source-if-unmodified-since"; +const _xacsm = "x-amz-create-session-mode"; +const _xacsr = "x-amz-copy-source-range"; +const _xacssseca = "x-amz-copy-source-server-side-encryption-customer-algorithm"; +const _xacssseck = "x-amz-copy-source-server-side-encryption-customer-key"; +const _xacssseckm = "x-amz-copy-source-server-side-encryption-customer-key-md5"; +const _xacsvi = "x-amz-copy-source-version-id"; +const _xact = "x-amz-checksum-type"; +const _xact_ = "x-amz-client-token"; +const _xadm = "x-amz-delete-marker"; +const _xae = "x-amz-expiration"; +const _xaebo = "x-amz-expected-bucket-owner"; +const _xafec = "x-amz-fwd-error-code"; +const _xafem = "x-amz-fwd-error-message"; +const _xafhar = "x-amz-fwd-header-accept-ranges"; +const _xafhcc = "x-amz-fwd-header-cache-control"; +const _xafhcd = "x-amz-fwd-header-content-disposition"; +const _xafhce = "x-amz-fwd-header-content-encoding"; +const _xafhcl = "x-amz-fwd-header-content-language"; +const _xafhcr = "x-amz-fwd-header-content-range"; +const _xafhct = "x-amz-fwd-header-content-type"; +const _xafhe = "x-amz-fwd-header-etag"; +const _xafhe_ = "x-amz-fwd-header-expires"; +const _xafhlm = "x-amz-fwd-header-last-modified"; +const _xafhxacc = "x-amz-fwd-header-x-amz-checksum-crc32"; +const _xafhxacc_ = "x-amz-fwd-header-x-amz-checksum-crc32c"; +const _xafhxacc__ = "x-amz-fwd-header-x-amz-checksum-crc64nvme"; +const _xafhxacs = "x-amz-fwd-header-x-amz-checksum-sha1"; +const _xafhxacs_ = "x-amz-fwd-header-x-amz-checksum-sha256"; +const _xafhxadm = "x-amz-fwd-header-x-amz-delete-marker"; +const _xafhxae = "x-amz-fwd-header-x-amz-expiration"; +const _xafhxamm = "x-amz-fwd-header-x-amz-missing-meta"; +const _xafhxampc = "x-amz-fwd-header-x-amz-mp-parts-count"; +const _xafhxaollh = "x-amz-fwd-header-x-amz-object-lock-legal-hold"; +const _xafhxaolm = "x-amz-fwd-header-x-amz-object-lock-mode"; +const _xafhxaolrud = "x-amz-fwd-header-x-amz-object-lock-retain-until-date"; +const _xafhxar = "x-amz-fwd-header-x-amz-restore"; +const _xafhxarc = "x-amz-fwd-header-x-amz-request-charged"; +const _xafhxars = "x-amz-fwd-header-x-amz-replication-status"; +const _xafhxasc = "x-amz-fwd-header-x-amz-storage-class"; +const _xafhxasse = "x-amz-fwd-header-x-amz-server-side-encryption"; +const _xafhxasseakki = "x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id"; +const _xafhxassebke = "x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled"; +const _xafhxasseca = "x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm"; +const _xafhxasseckm = "x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5"; +const _xafhxatc = "x-amz-fwd-header-x-amz-tagging-count"; +const _xafhxavi = "x-amz-fwd-header-x-amz-version-id"; +const _xafs = "x-amz-fwd-status"; +const _xagfc = "x-amz-grant-full-control"; +const _xagr = "x-amz-grant-read"; +const _xagra = "x-amz-grant-read-acp"; +const _xagw = "x-amz-grant-write"; +const _xagwa = "x-amz-grant-write-acp"; +const _xaimit = "x-amz-if-match-initiated-time"; +const _xaimlmt = "x-amz-if-match-last-modified-time"; +const _xaims = "x-amz-if-match-size"; +const _xam = "x-amz-mfa"; +const _xamd = "x-amz-metadata-directive"; +const _xamm = "x-amz-missing-meta"; +const _xamos = "x-amz-mp-object-size"; +const _xamp = "x-amz-max-parts"; +const _xampc = "x-amz-mp-parts-count"; +const _xaoa = "x-amz-object-attributes"; +const _xaollh = "x-amz-object-lock-legal-hold"; +const _xaolm = "x-amz-object-lock-mode"; +const _xaolrud = "x-amz-object-lock-retain-until-date"; +const _xaoo = "x-amz-object-ownership"; +const _xaooa = "x-amz-optional-object-attributes"; +const _xaos = "x-amz-object-size"; +const _xapnm = "x-amz-part-number-marker"; +const _xar = "x-amz-restore"; +const _xarc = "x-amz-request-charged"; +const _xarop = "x-amz-restore-output-path"; +const _xarp = "x-amz-request-payer"; +const _xarr = "x-amz-request-route"; +const _xars = "x-amz-rename-source"; +const _xars_ = "x-amz-replication-status"; +const _xarsim = "x-amz-rename-source-if-match"; +const _xarsims = "x-amz-rename-source-if-modified-since"; +const _xarsinm = "x-amz-rename-source-if-none-match"; +const _xarsius = "x-amz-rename-source-if-unmodified-since"; +const _xart = "x-amz-request-token"; +const _xasc = "x-amz-storage-class"; +const _xasca = "x-amz-sdk-checksum-algorithm"; +const _xasdv = "x-amz-skip-destination-validation"; +const _xasebo = "x-amz-source-expected-bucket-owner"; +const _xasse = "x-amz-server-side-encryption"; +const _xasseakki = "x-amz-server-side-encryption-aws-kms-key-id"; +const _xassebke = "x-amz-server-side-encryption-bucket-key-enabled"; +const _xassec = "x-amz-server-side-encryption-context"; +const _xasseca = "x-amz-server-side-encryption-customer-algorithm"; +const _xasseck = "x-amz-server-side-encryption-customer-key"; +const _xasseckm = "x-amz-server-side-encryption-customer-key-md5"; +const _xat = "x-amz-tagging"; +const _xatc = "x-amz-tagging-count"; +const _xatd = "x-amz-tagging-directive"; +const _xatdmos = "x-amz-transition-default-minimum-object-size"; +const _xavi = "x-amz-version-id"; +const _xawob = "x-amz-write-offset-bytes"; +const _xawrl = "x-amz-website-redirect-location"; +const _xi = "x-id"; diff --git a/clients/client-s3/src/runtimeConfig.shared.ts b/clients/client-s3/src/runtimeConfig.shared.ts index 7cb09f0259cd..3ce74841d8b2 100644 --- a/clients/client-s3/src/runtimeConfig.shared.ts +++ b/clients/client-s3/src/runtimeConfig.shared.ts @@ -1,6 +1,5 @@ // smithy-typescript generated code import { AwsSdkSigV4ASigner, AwsSdkSigV4Signer } from "@aws-sdk/core"; -import { AwsRestXmlProtocol } from "@aws-sdk/core/protocols"; import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region"; import { NoOpLogger } from "@smithy/smithy-client"; import { IdentityProviderConfig } from "@smithy/types"; @@ -39,12 +38,6 @@ export const getRuntimeConfig = (config: S3ClientConfig) => { }, ], logger: config?.logger ?? new NoOpLogger(), - protocol: - config?.protocol ?? - new AwsRestXmlProtocol({ - defaultNamespace: "com.amazonaws.s3", - xmlNamespace: "http://s3.amazonaws.com/doc/2006-03-01/", - }), sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin, serviceId: config?.serviceId ?? "S3", signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion, diff --git a/clients/client-s3/src/schemas/schemas.ts b/clients/client-s3/src/schemas/schemas.ts deleted file mode 100644 index 7cfcbc455ac5..000000000000 --- a/clients/client-s3/src/schemas/schemas.ts +++ /dev/null @@ -1,9743 +0,0 @@ -const _A = "Account"; -const _AAO = "AnalyticsAndOperator"; -const _AC = "AccelerateConfiguration"; -const _ACL = "AccessControlList"; -const _ACL_ = "ACL"; -const _ACLn = "AnalyticsConfigurationList"; -const _ACP = "AccessControlPolicy"; -const _ACT = "AccessControlTranslation"; -const _ACn = "AnalyticsConfiguration"; -const _AD = "AbortDate"; -const _AED = "AnalyticsExportDestination"; -const _AF = "AnalyticsFilter"; -const _AH = "AllowedHeaders"; -const _AHl = "AllowedHeader"; -const _AI = "AccountId"; -const _AIMU = "AbortIncompleteMultipartUpload"; -const _AKI = "AccessKeyId"; -const _AM = "AllowedMethods"; -const _AMU = "AbortMultipartUpload"; -const _AMUO = "AbortMultipartUploadOutput"; -const _AMUR = "AbortMultipartUploadRequest"; -const _AMl = "AllowedMethod"; -const _AO = "AllowedOrigins"; -const _AOl = "AllowedOrigin"; -const _APA = "AccessPointAlias"; -const _APAc = "AccessPointArn"; -const _AQRD = "AllowQuotedRecordDelimiter"; -const _AR = "AcceptRanges"; -const _ARI = "AbortRuleId"; -const _AS = "ArchiveStatus"; -const _ASBD = "AnalyticsS3BucketDestination"; -const _ASSEBD = "ApplyServerSideEncryptionByDefault"; -const _AT = "AccessTier"; -const _An = "And"; -const _B = "Bucket"; -const _BA = "BucketArn"; -const _BAE = "BucketAlreadyExists"; -const _BAI = "BucketAccountId"; -const _BAOBY = "BucketAlreadyOwnedByYou"; -const _BGR = "BypassGovernanceRetention"; -const _BI = "BucketInfo"; -const _BKE = "BucketKeyEnabled"; -const _BLC = "BucketLifecycleConfiguration"; -const _BLN = "BucketLocationName"; -const _BLS = "BucketLoggingStatus"; -const _BLT = "BucketLocationType"; -const _BN = "BucketName"; -const _BP = "BytesProcessed"; -const _BPA = "BlockPublicAcls"; -const _BPP = "BlockPublicPolicy"; -const _BR = "BucketRegion"; -const _BRy = "BytesReturned"; -const _BS = "BytesScanned"; -const _Bo = "Body"; -const _Bu = "Buckets"; -const _C = "Checksum"; -const _CA = "ChecksumAlgorithm"; -const _CACL = "CannedACL"; -const _CB = "CreateBucket"; -const _CBC = "CreateBucketConfiguration"; -const _CBMC = "CreateBucketMetadataConfiguration"; -const _CBMCR = "CreateBucketMetadataConfigurationRequest"; -const _CBMTC = "CreateBucketMetadataTableConfiguration"; -const _CBMTCR = "CreateBucketMetadataTableConfigurationRequest"; -const _CBO = "CreateBucketOutput"; -const _CBR = "CreateBucketRequest"; -const _CC = "CacheControl"; -const _CCRC = "ChecksumCRC32"; -const _CCRCC = "ChecksumCRC32C"; -const _CCRCNVME = "ChecksumCRC64NVME"; -const _CC_ = "Cache-Control"; -const _CD = "CreationDate"; -const _CD_ = "Content-Disposition"; -const _CDo = "ContentDisposition"; -const _CE = "ContinuationEvent"; -const _CE_ = "Content-Encoding"; -const _CEo = "ContentEncoding"; -const _CF = "CloudFunction"; -const _CFC = "CloudFunctionConfiguration"; -const _CL = "ContentLanguage"; -const _CL_ = "Content-Language"; -const _CL__ = "Content-Length"; -const _CLo = "ContentLength"; -const _CM = "Content-MD5"; -const _CMD = "ContentMD5"; -const _CMU = "CompletedMultipartUpload"; -const _CMUO = "CompleteMultipartUploadOutput"; -const _CMUOr = "CreateMultipartUploadOutput"; -const _CMUR = "CompleteMultipartUploadResult"; -const _CMURo = "CompleteMultipartUploadRequest"; -const _CMURr = "CreateMultipartUploadRequest"; -const _CMUo = "CompleteMultipartUpload"; -const _CMUr = "CreateMultipartUpload"; -const _CMh = "ChecksumMode"; -const _CO = "CopyObject"; -const _COO = "CopyObjectOutput"; -const _COR = "CopyObjectResult"; -const _CORSC = "CORSConfiguration"; -const _CORSR = "CORSRules"; -const _CORSRu = "CORSRule"; -const _CORo = "CopyObjectRequest"; -const _CP = "CommonPrefix"; -const _CPL = "CommonPrefixList"; -const _CPLo = "CompletedPartList"; -const _CPR = "CopyPartResult"; -const _CPo = "CompletedPart"; -const _CPom = "CommonPrefixes"; -const _CR = "ContentRange"; -const _CRSBA = "ConfirmRemoveSelfBucketAccess"; -const _CR_ = "Content-Range"; -const _CS = "CopySource"; -const _CSHA = "ChecksumSHA1"; -const _CSHAh = "ChecksumSHA256"; -const _CSIM = "CopySourceIfMatch"; -const _CSIMS = "CopySourceIfModifiedSince"; -const _CSINM = "CopySourceIfNoneMatch"; -const _CSIUS = "CopySourceIfUnmodifiedSince"; -const _CSO = "CreateSessionOutput"; -const _CSR = "CreateSessionResult"; -const _CSRo = "CopySourceRange"; -const _CSRr = "CreateSessionRequest"; -const _CSSSECA = "CopySourceSSECustomerAlgorithm"; -const _CSSSECK = "CopySourceSSECustomerKey"; -const _CSSSECKMD = "CopySourceSSECustomerKeyMD5"; -const _CSV = "CSV"; -const _CSVI = "CopySourceVersionId"; -const _CSVIn = "CSVInput"; -const _CSVO = "CSVOutput"; -const _CSo = "ConfigurationState"; -const _CSr = "CreateSession"; -const _CT = "ChecksumType"; -const _CT_ = "Content-Type"; -const _CTl = "ClientToken"; -const _CTo = "ContentType"; -const _CTom = "CompressionType"; -const _CTon = "ContinuationToken"; -const _Co = "Condition"; -const _Cod = "Code"; -const _Com = "Comments"; -const _Con = "Contents"; -const _Cont = "Cont"; -const _Cr = "Credentials"; -const _D = "Days"; -const _DAI = "DaysAfterInitiation"; -const _DB = "DeleteBucket"; -const _DBAC = "DeleteBucketAnalyticsConfiguration"; -const _DBACR = "DeleteBucketAnalyticsConfigurationRequest"; -const _DBC = "DeleteBucketCors"; -const _DBCR = "DeleteBucketCorsRequest"; -const _DBE = "DeleteBucketEncryption"; -const _DBER = "DeleteBucketEncryptionRequest"; -const _DBIC = "DeleteBucketInventoryConfiguration"; -const _DBICR = "DeleteBucketInventoryConfigurationRequest"; -const _DBITC = "DeleteBucketIntelligentTieringConfiguration"; -const _DBITCR = "DeleteBucketIntelligentTieringConfigurationRequest"; -const _DBL = "DeleteBucketLifecycle"; -const _DBLR = "DeleteBucketLifecycleRequest"; -const _DBMC = "DeleteBucketMetadataConfiguration"; -const _DBMCR = "DeleteBucketMetadataConfigurationRequest"; -const _DBMCRe = "DeleteBucketMetricsConfigurationRequest"; -const _DBMCe = "DeleteBucketMetricsConfiguration"; -const _DBMTC = "DeleteBucketMetadataTableConfiguration"; -const _DBMTCR = "DeleteBucketMetadataTableConfigurationRequest"; -const _DBOC = "DeleteBucketOwnershipControls"; -const _DBOCR = "DeleteBucketOwnershipControlsRequest"; -const _DBP = "DeleteBucketPolicy"; -const _DBPR = "DeleteBucketPolicyRequest"; -const _DBR = "DeleteBucketRequest"; -const _DBRR = "DeleteBucketReplicationRequest"; -const _DBRe = "DeleteBucketReplication"; -const _DBT = "DeleteBucketTagging"; -const _DBTR = "DeleteBucketTaggingRequest"; -const _DBW = "DeleteBucketWebsite"; -const _DBWR = "DeleteBucketWebsiteRequest"; -const _DE = "DataExport"; -const _DIM = "DestinationIfMatch"; -const _DIMS = "DestinationIfModifiedSince"; -const _DINM = "DestinationIfNoneMatch"; -const _DIUS = "DestinationIfUnmodifiedSince"; -const _DM = "DeleteMarker"; -const _DME = "DeleteMarkerEntry"; -const _DMR = "DeleteMarkerReplication"; -const _DMVI = "DeleteMarkerVersionId"; -const _DMe = "DeleteMarkers"; -const _DN = "DisplayName"; -const _DO = "DeletedObject"; -const _DOO = "DeleteObjectOutput"; -const _DOOe = "DeleteObjectsOutput"; -const _DOR = "DeleteObjectRequest"; -const _DORe = "DeleteObjectsRequest"; -const _DOT = "DeleteObjectTagging"; -const _DOTO = "DeleteObjectTaggingOutput"; -const _DOTR = "DeleteObjectTaggingRequest"; -const _DOe = "DeletedObjects"; -const _DOel = "DeleteObject"; -const _DOele = "DeleteObjects"; -const _DPAB = "DeletePublicAccessBlock"; -const _DPABR = "DeletePublicAccessBlockRequest"; -const _DR = "DataRedundancy"; -const _DRe = "DefaultRetention"; -const _DRel = "DeleteResult"; -const _DRes = "DestinationResult"; -const _Da = "Date"; -const _De = "Delete"; -const _Del = "Deleted"; -const _Deli = "Delimiter"; -const _Des = "Destination"; -const _Desc = "Description"; -const _Det = "Details"; -const _E = "Expiration"; -const _EA = "EmailAddress"; -const _EBC = "EventBridgeConfiguration"; -const _EBO = "ExpectedBucketOwner"; -const _EC = "EncryptionConfiguration"; -const _ECr = "ErrorCode"; -const _ED = "ErrorDetails"; -const _EDr = "ErrorDocument"; -const _EE = "EndEvent"; -const _EH = "ExposeHeaders"; -const _EHx = "ExposeHeader"; -const _EM = "ErrorMessage"; -const _EODM = "ExpiredObjectDeleteMarker"; -const _EOR = "ExistingObjectReplication"; -const _ES = "ExpiresString"; -const _ESBO = "ExpectedSourceBucketOwner"; -const _ET = "ETag"; -const _ETM = "EncryptionTypeMismatch"; -const _ETn = "EncryptionType"; -const _ETnc = "EncodingType"; -const _ETv = "EventThreshold"; -const _ETx = "ExpressionType"; -const _En = "Encryption"; -const _Ena = "Enabled"; -const _End = "End"; -const _Er = "Errors"; -const _Err = "Error"; -const _Ev = "Events"; -const _Eve = "Event"; -const _Ex = "Expires"; -const _Exp = "Expression"; -const _F = "Filter"; -const _FD = "FieldDelimiter"; -const _FHI = "FileHeaderInfo"; -const _FO = "FetchOwner"; -const _FR = "FilterRule"; -const _FRL = "FilterRuleList"; -const _FRi = "FilterRules"; -const _Fi = "Field"; -const _Fo = "Format"; -const _Fr = "Frequency"; -const _G = "Grants"; -const _GBA = "GetBucketAcl"; -const _GBAC = "GetBucketAccelerateConfiguration"; -const _GBACO = "GetBucketAccelerateConfigurationOutput"; -const _GBACOe = "GetBucketAnalyticsConfigurationOutput"; -const _GBACR = "GetBucketAccelerateConfigurationRequest"; -const _GBACRe = "GetBucketAnalyticsConfigurationRequest"; -const _GBACe = "GetBucketAnalyticsConfiguration"; -const _GBAO = "GetBucketAclOutput"; -const _GBAR = "GetBucketAclRequest"; -const _GBC = "GetBucketCors"; -const _GBCO = "GetBucketCorsOutput"; -const _GBCR = "GetBucketCorsRequest"; -const _GBE = "GetBucketEncryption"; -const _GBEO = "GetBucketEncryptionOutput"; -const _GBER = "GetBucketEncryptionRequest"; -const _GBIC = "GetBucketInventoryConfiguration"; -const _GBICO = "GetBucketInventoryConfigurationOutput"; -const _GBICR = "GetBucketInventoryConfigurationRequest"; -const _GBITC = "GetBucketIntelligentTieringConfiguration"; -const _GBITCO = "GetBucketIntelligentTieringConfigurationOutput"; -const _GBITCR = "GetBucketIntelligentTieringConfigurationRequest"; -const _GBL = "GetBucketLocation"; -const _GBLC = "GetBucketLifecycleConfiguration"; -const _GBLCO = "GetBucketLifecycleConfigurationOutput"; -const _GBLCR = "GetBucketLifecycleConfigurationRequest"; -const _GBLO = "GetBucketLocationOutput"; -const _GBLOe = "GetBucketLoggingOutput"; -const _GBLR = "GetBucketLocationRequest"; -const _GBLRe = "GetBucketLoggingRequest"; -const _GBLe = "GetBucketLogging"; -const _GBMC = "GetBucketMetadataConfiguration"; -const _GBMCO = "GetBucketMetadataConfigurationOutput"; -const _GBMCOe = "GetBucketMetricsConfigurationOutput"; -const _GBMCR = "GetBucketMetadataConfigurationResult"; -const _GBMCRe = "GetBucketMetadataConfigurationRequest"; -const _GBMCRet = "GetBucketMetricsConfigurationRequest"; -const _GBMCe = "GetBucketMetricsConfiguration"; -const _GBMTC = "GetBucketMetadataTableConfiguration"; -const _GBMTCO = "GetBucketMetadataTableConfigurationOutput"; -const _GBMTCR = "GetBucketMetadataTableConfigurationResult"; -const _GBMTCRe = "GetBucketMetadataTableConfigurationRequest"; -const _GBNC = "GetBucketNotificationConfiguration"; -const _GBNCR = "GetBucketNotificationConfigurationRequest"; -const _GBOC = "GetBucketOwnershipControls"; -const _GBOCO = "GetBucketOwnershipControlsOutput"; -const _GBOCR = "GetBucketOwnershipControlsRequest"; -const _GBP = "GetBucketPolicy"; -const _GBPO = "GetBucketPolicyOutput"; -const _GBPR = "GetBucketPolicyRequest"; -const _GBPS = "GetBucketPolicyStatus"; -const _GBPSO = "GetBucketPolicyStatusOutput"; -const _GBPSR = "GetBucketPolicyStatusRequest"; -const _GBR = "GetBucketReplication"; -const _GBRO = "GetBucketReplicationOutput"; -const _GBRP = "GetBucketRequestPayment"; -const _GBRPO = "GetBucketRequestPaymentOutput"; -const _GBRPR = "GetBucketRequestPaymentRequest"; -const _GBRR = "GetBucketReplicationRequest"; -const _GBT = "GetBucketTagging"; -const _GBTO = "GetBucketTaggingOutput"; -const _GBTR = "GetBucketTaggingRequest"; -const _GBV = "GetBucketVersioning"; -const _GBVO = "GetBucketVersioningOutput"; -const _GBVR = "GetBucketVersioningRequest"; -const _GBW = "GetBucketWebsite"; -const _GBWO = "GetBucketWebsiteOutput"; -const _GBWR = "GetBucketWebsiteRequest"; -const _GFC = "GrantFullControl"; -const _GJP = "GlacierJobParameters"; -const _GO = "GetObject"; -const _GOA = "GetObjectAcl"; -const _GOAO = "GetObjectAclOutput"; -const _GOAOe = "GetObjectAttributesOutput"; -const _GOAP = "GetObjectAttributesParts"; -const _GOAR = "GetObjectAclRequest"; -const _GOARe = "GetObjectAttributesResponse"; -const _GOARet = "GetObjectAttributesRequest"; -const _GOAe = "GetObjectAttributes"; -const _GOLC = "GetObjectLockConfiguration"; -const _GOLCO = "GetObjectLockConfigurationOutput"; -const _GOLCR = "GetObjectLockConfigurationRequest"; -const _GOLH = "GetObjectLegalHold"; -const _GOLHO = "GetObjectLegalHoldOutput"; -const _GOLHR = "GetObjectLegalHoldRequest"; -const _GOO = "GetObjectOutput"; -const _GOR = "GetObjectRequest"; -const _GORO = "GetObjectRetentionOutput"; -const _GORR = "GetObjectRetentionRequest"; -const _GORe = "GetObjectRetention"; -const _GOT = "GetObjectTagging"; -const _GOTO = "GetObjectTaggingOutput"; -const _GOTOe = "GetObjectTorrentOutput"; -const _GOTR = "GetObjectTaggingRequest"; -const _GOTRe = "GetObjectTorrentRequest"; -const _GOTe = "GetObjectTorrent"; -const _GPAB = "GetPublicAccessBlock"; -const _GPABO = "GetPublicAccessBlockOutput"; -const _GPABR = "GetPublicAccessBlockRequest"; -const _GR = "GrantRead"; -const _GRACP = "GrantReadACP"; -const _GW = "GrantWrite"; -const _GWACP = "GrantWriteACP"; -const _Gr = "Grant"; -const _Gra = "Grantee"; -const _HB = "HeadBucket"; -const _HBO = "HeadBucketOutput"; -const _HBR = "HeadBucketRequest"; -const _HECRE = "HttpErrorCodeReturnedEquals"; -const _HN = "HostName"; -const _HO = "HeadObject"; -const _HOO = "HeadObjectOutput"; -const _HOR = "HeadObjectRequest"; -const _HRC = "HttpRedirectCode"; -const _I = "Id"; -const _IC = "InventoryConfiguration"; -const _ICL = "InventoryConfigurationList"; -const _ID = "ID"; -const _IDn = "IndexDocument"; -const _IDnv = "InventoryDestination"; -const _IE = "IsEnabled"; -const _IEn = "InventoryEncryption"; -const _IF = "InventoryFilter"; -const _IL = "IsLatest"; -const _IM = "IfMatch"; -const _IMIT = "IfMatchInitiatedTime"; -const _IMLMT = "IfMatchLastModifiedTime"; -const _IMS = "IfMatchSize"; -const _IMS_ = "If-Modified-Since"; -const _IMSf = "IfModifiedSince"; -const _IMUR = "InitiateMultipartUploadResult"; -const _IM_ = "If-Match"; -const _INM = "IfNoneMatch"; -const _INM_ = "If-None-Match"; -const _IOF = "InventoryOptionalFields"; -const _IOS = "InvalidObjectState"; -const _IOV = "IncludedObjectVersions"; -const _IP = "IsPublic"; -const _IPA = "IgnorePublicAcls"; -const _IPM = "IdempotencyParameterMismatch"; -const _IR = "InvalidRequest"; -const _IRIP = "IsRestoreInProgress"; -const _IS = "InputSerialization"; -const _ISBD = "InventoryS3BucketDestination"; -const _ISn = "InventorySchedule"; -const _IT = "IsTruncated"; -const _ITAO = "IntelligentTieringAndOperator"; -const _ITC = "IntelligentTieringConfiguration"; -const _ITCL = "IntelligentTieringConfigurationList"; -const _ITCR = "InventoryTableConfigurationResult"; -const _ITCU = "InventoryTableConfigurationUpdates"; -const _ITCn = "InventoryTableConfiguration"; -const _ITF = "IntelligentTieringFilter"; -const _IUS = "IfUnmodifiedSince"; -const _IUS_ = "If-Unmodified-Since"; -const _IWO = "InvalidWriteOffset"; -const _In = "Initiator"; -const _Ini = "Initiated"; -const _JSON = "JSON"; -const _JSONI = "JSONInput"; -const _JSONO = "JSONOutput"; -const _JTC = "JournalTableConfiguration"; -const _JTCR = "JournalTableConfigurationResult"; -const _JTCU = "JournalTableConfigurationUpdates"; -const _K = "Key"; -const _KC = "KeyCount"; -const _KI = "KeyId"; -const _KKA = "KmsKeyArn"; -const _KM = "KeyMarker"; -const _KMSC = "KMSContext"; -const _KMSKI = "KMSKeyId"; -const _KMSMKID = "KMSMasterKeyID"; -const _KPE = "KeyPrefixEquals"; -const _L = "Location"; -const _LAMBR = "ListAllMyBucketsResult"; -const _LAMDBR = "ListAllMyDirectoryBucketsResult"; -const _LB = "ListBuckets"; -const _LBAC = "ListBucketAnalyticsConfigurations"; -const _LBACO = "ListBucketAnalyticsConfigurationsOutput"; -const _LBACR = "ListBucketAnalyticsConfigurationResult"; -const _LBACRi = "ListBucketAnalyticsConfigurationsRequest"; -const _LBIC = "ListBucketInventoryConfigurations"; -const _LBICO = "ListBucketInventoryConfigurationsOutput"; -const _LBICR = "ListBucketInventoryConfigurationsRequest"; -const _LBITC = "ListBucketIntelligentTieringConfigurations"; -const _LBITCO = "ListBucketIntelligentTieringConfigurationsOutput"; -const _LBITCR = "ListBucketIntelligentTieringConfigurationsRequest"; -const _LBMC = "ListBucketMetricsConfigurations"; -const _LBMCO = "ListBucketMetricsConfigurationsOutput"; -const _LBMCR = "ListBucketMetricsConfigurationsRequest"; -const _LBO = "ListBucketsOutput"; -const _LBR = "ListBucketsRequest"; -const _LBRi = "ListBucketResult"; -const _LC = "LocationConstraint"; -const _LCi = "LifecycleConfiguration"; -const _LDB = "ListDirectoryBuckets"; -const _LDBO = "ListDirectoryBucketsOutput"; -const _LDBR = "ListDirectoryBucketsRequest"; -const _LE = "LoggingEnabled"; -const _LEi = "LifecycleExpiration"; -const _LFA = "LambdaFunctionArn"; -const _LFC = "LambdaFunctionConfiguration"; -const _LFCL = "LambdaFunctionConfigurationList"; -const _LFCa = "LambdaFunctionConfigurations"; -const _LH = "LegalHold"; -const _LI = "LocationInfo"; -const _LICR = "ListInventoryConfigurationsResult"; -const _LM = "LastModified"; -const _LMCR = "ListMetricsConfigurationsResult"; -const _LMT = "LastModifiedTime"; -const _LMU = "ListMultipartUploads"; -const _LMUO = "ListMultipartUploadsOutput"; -const _LMUR = "ListMultipartUploadsResult"; -const _LMURi = "ListMultipartUploadsRequest"; -const _LM_ = "Last-Modified"; -const _LO = "ListObjects"; -const _LOO = "ListObjectsOutput"; -const _LOR = "ListObjectsRequest"; -const _LOV = "ListObjectsV2"; -const _LOVO = "ListObjectsV2Output"; -const _LOVOi = "ListObjectVersionsOutput"; -const _LOVR = "ListObjectsV2Request"; -const _LOVRi = "ListObjectVersionsRequest"; -const _LOVi = "ListObjectVersions"; -const _LP = "ListParts"; -const _LPO = "ListPartsOutput"; -const _LPR = "ListPartsResult"; -const _LPRi = "ListPartsRequest"; -const _LR = "LifecycleRule"; -const _LRAO = "LifecycleRuleAndOperator"; -const _LRF = "LifecycleRuleFilter"; -const _LRi = "LifecycleRules"; -const _LVR = "ListVersionsResult"; -const _M = "Metadata"; -const _MAO = "MetricsAndOperator"; -const _MAS = "MaxAgeSeconds"; -const _MB = "MaxBuckets"; -const _MC = "MetadataConfiguration"; -const _MCL = "MetricsConfigurationList"; -const _MCR = "MetadataConfigurationResult"; -const _MCe = "MetricsConfiguration"; -const _MD = "MetadataDirective"; -const _MDB = "MaxDirectoryBuckets"; -const _MDf = "MfaDelete"; -const _ME = "MetadataEntry"; -const _MF = "MetricsFilter"; -const _MFA = "MFA"; -const _MFAD = "MFADelete"; -const _MK = "MaxKeys"; -const _MM = "MissingMeta"; -const _MOS = "MpuObjectSize"; -const _MP = "MaxParts"; -const _MTC = "MetadataTableConfiguration"; -const _MTCR = "MetadataTableConfigurationResult"; -const _MTEC = "MetadataTableEncryptionConfiguration"; -const _MU = "MultipartUpload"; -const _MUL = "MultipartUploadList"; -const _MUa = "MaxUploads"; -const _Ma = "Marker"; -const _Me = "Metrics"; -const _Mes = "Message"; -const _Mi = "Minutes"; -const _Mo = "Mode"; -const _N = "Name"; -const _NC = "NotificationConfiguration"; -const _NCF = "NotificationConfigurationFilter"; -const _NCT = "NextContinuationToken"; -const _ND = "NoncurrentDays"; -const _NF = "NotFound"; -const _NKM = "NextKeyMarker"; -const _NM = "NextMarker"; -const _NNV = "NewerNoncurrentVersions"; -const _NPNM = "NextPartNumberMarker"; -const _NSB = "NoSuchBucket"; -const _NSK = "NoSuchKey"; -const _NSU = "NoSuchUpload"; -const _NUIM = "NextUploadIdMarker"; -const _NVE = "NoncurrentVersionExpiration"; -const _NVIM = "NextVersionIdMarker"; -const _NVT = "NoncurrentVersionTransitions"; -const _NVTL = "NoncurrentVersionTransitionList"; -const _NVTo = "NoncurrentVersionTransition"; -const _O = "Owner"; -const _OA = "ObjectAttributes"; -const _OAIATE = "ObjectAlreadyInActiveTierError"; -const _OC = "OwnershipControls"; -const _OCR = "OwnershipControlsRule"; -const _OCRw = "OwnershipControlsRules"; -const _OF = "OptionalFields"; -const _OI = "ObjectIdentifier"; -const _OIL = "ObjectIdentifierList"; -const _OL = "OutputLocation"; -const _OLC = "ObjectLockConfiguration"; -const _OLE = "ObjectLockEnabled"; -const _OLEFB = "ObjectLockEnabledForBucket"; -const _OLLH = "ObjectLockLegalHold"; -const _OLLHS = "ObjectLockLegalHoldStatus"; -const _OLM = "ObjectLockMode"; -const _OLR = "ObjectLockRetention"; -const _OLRUD = "ObjectLockRetainUntilDate"; -const _OLRb = "ObjectLockRule"; -const _OLb = "ObjectList"; -const _ONIATE = "ObjectNotInActiveTierError"; -const _OO = "ObjectOwnership"; -const _OOA = "OptionalObjectAttributes"; -const _OP = "ObjectParts"; -const _OPb = "ObjectPart"; -const _OS = "ObjectSize"; -const _OSGT = "ObjectSizeGreaterThan"; -const _OSLT = "ObjectSizeLessThan"; -const _OSV = "OutputSchemaVersion"; -const _OSu = "OutputSerialization"; -const _OV = "ObjectVersion"; -const _OVL = "ObjectVersionList"; -const _Ob = "Objects"; -const _Obj = "Object"; -const _P = "Prefix"; -const _PABC = "PublicAccessBlockConfiguration"; -const _PBA = "PutBucketAcl"; -const _PBAC = "PutBucketAccelerateConfiguration"; -const _PBACR = "PutBucketAccelerateConfigurationRequest"; -const _PBACRu = "PutBucketAnalyticsConfigurationRequest"; -const _PBACu = "PutBucketAnalyticsConfiguration"; -const _PBAR = "PutBucketAclRequest"; -const _PBC = "PutBucketCors"; -const _PBCR = "PutBucketCorsRequest"; -const _PBE = "PutBucketEncryption"; -const _PBER = "PutBucketEncryptionRequest"; -const _PBIC = "PutBucketInventoryConfiguration"; -const _PBICR = "PutBucketInventoryConfigurationRequest"; -const _PBITC = "PutBucketIntelligentTieringConfiguration"; -const _PBITCR = "PutBucketIntelligentTieringConfigurationRequest"; -const _PBL = "PutBucketLogging"; -const _PBLC = "PutBucketLifecycleConfiguration"; -const _PBLCO = "PutBucketLifecycleConfigurationOutput"; -const _PBLCR = "PutBucketLifecycleConfigurationRequest"; -const _PBLR = "PutBucketLoggingRequest"; -const _PBMC = "PutBucketMetricsConfiguration"; -const _PBMCR = "PutBucketMetricsConfigurationRequest"; -const _PBNC = "PutBucketNotificationConfiguration"; -const _PBNCR = "PutBucketNotificationConfigurationRequest"; -const _PBOC = "PutBucketOwnershipControls"; -const _PBOCR = "PutBucketOwnershipControlsRequest"; -const _PBP = "PutBucketPolicy"; -const _PBPR = "PutBucketPolicyRequest"; -const _PBR = "PutBucketReplication"; -const _PBRP = "PutBucketRequestPayment"; -const _PBRPR = "PutBucketRequestPaymentRequest"; -const _PBRR = "PutBucketReplicationRequest"; -const _PBT = "PutBucketTagging"; -const _PBTR = "PutBucketTaggingRequest"; -const _PBV = "PutBucketVersioning"; -const _PBVR = "PutBucketVersioningRequest"; -const _PBW = "PutBucketWebsite"; -const _PBWR = "PutBucketWebsiteRequest"; -const _PC = "PartsCount"; -const _PDS = "PartitionDateSource"; -const _PE = "ProgressEvent"; -const _PI = "ParquetInput"; -const _PL = "PartsList"; -const _PN = "PartNumber"; -const _PNM = "PartNumberMarker"; -const _PO = "PutObject"; -const _POA = "PutObjectAcl"; -const _POAO = "PutObjectAclOutput"; -const _POAR = "PutObjectAclRequest"; -const _POLC = "PutObjectLockConfiguration"; -const _POLCO = "PutObjectLockConfigurationOutput"; -const _POLCR = "PutObjectLockConfigurationRequest"; -const _POLH = "PutObjectLegalHold"; -const _POLHO = "PutObjectLegalHoldOutput"; -const _POLHR = "PutObjectLegalHoldRequest"; -const _POO = "PutObjectOutput"; -const _POR = "PutObjectRequest"; -const _PORO = "PutObjectRetentionOutput"; -const _PORR = "PutObjectRetentionRequest"; -const _PORu = "PutObjectRetention"; -const _POT = "PutObjectTagging"; -const _POTO = "PutObjectTaggingOutput"; -const _POTR = "PutObjectTaggingRequest"; -const _PP = "PartitionedPrefix"; -const _PPAB = "PutPublicAccessBlock"; -const _PPABR = "PutPublicAccessBlockRequest"; -const _PS = "PolicyStatus"; -const _Pa = "Parts"; -const _Par = "Part"; -const _Parq = "Parquet"; -const _Pay = "Payer"; -const _Payl = "Payload"; -const _Pe = "Permission"; -const _Po = "Policy"; -const _Pr = "Progress"; -const _Pri = "Priority"; -const _Pro = "Protocol"; -const _Q = "Quiet"; -const _QA = "QueueArn"; -const _QC = "QuoteCharacter"; -const _QCL = "QueueConfigurationList"; -const _QCu = "QueueConfigurations"; -const _QCue = "QueueConfiguration"; -const _QEC = "QuoteEscapeCharacter"; -const _QF = "QuoteFields"; -const _Qu = "Queue"; -const _R = "Rules"; -const _RART = "RedirectAllRequestsTo"; -const _RC = "RequestCharged"; -const _RCC = "ResponseCacheControl"; -const _RCD = "ResponseContentDisposition"; -const _RCE = "ResponseContentEncoding"; -const _RCL = "ResponseContentLanguage"; -const _RCT = "ResponseContentType"; -const _RCe = "ReplicationConfiguration"; -const _RD = "RecordDelimiter"; -const _RE = "ResponseExpires"; -const _RED = "RestoreExpiryDate"; -const _REe = "RecordExpiration"; -const _REec = "RecordsEvent"; -const _RKKID = "ReplicaKmsKeyID"; -const _RKPW = "ReplaceKeyPrefixWith"; -const _RKW = "ReplaceKeyWith"; -const _RM = "ReplicaModifications"; -const _RO = "RenameObject"; -const _ROO = "RenameObjectOutput"; -const _ROOe = "RestoreObjectOutput"; -const _ROP = "RestoreOutputPath"; -const _ROR = "RenameObjectRequest"; -const _RORe = "RestoreObjectRequest"; -const _ROe = "RestoreObject"; -const _RP = "RequestPayer"; -const _RPB = "RestrictPublicBuckets"; -const _RPC = "RequestPaymentConfiguration"; -const _RPe = "RequestProgress"; -const _RR = "RoutingRules"; -const _RRAO = "ReplicationRuleAndOperator"; -const _RRF = "ReplicationRuleFilter"; -const _RRe = "ReplicationRule"; -const _RRep = "ReplicationRules"; -const _RReq = "RequestRoute"; -const _RRes = "RestoreRequest"; -const _RRo = "RoutingRule"; -const _RS = "ReplicationStatus"; -const _RSe = "RestoreStatus"; -const _RSen = "RenameSource"; -const _RT = "ReplicationTime"; -const _RTV = "ReplicationTimeValue"; -const _RTe = "RequestToken"; -const _RUD = "RetainUntilDate"; -const _Ra = "Range"; -const _Re = "Restore"; -const _Rec = "Records"; -const _Red = "Redirect"; -const _Ret = "Retention"; -const _Ro = "Role"; -const _Ru = "Rule"; -const _S = "Status"; -const _SA = "StartAfter"; -const _SAK = "SecretAccessKey"; -const _SAs = "SseAlgorithm"; -const _SB = "StreamingBlob"; -const _SBD = "S3BucketDestination"; -const _SC = "StorageClass"; -const _SCA = "StorageClassAnalysis"; -const _SCADE = "StorageClassAnalysisDataExport"; -const _SCV = "SessionCredentialValue"; -const _SCe = "SessionCredentials"; -const _SCt = "StatusCode"; -const _SDV = "SkipDestinationValidation"; -const _SE = "StatsEvent"; -const _SIM = "SourceIfMatch"; -const _SIMS = "SourceIfModifiedSince"; -const _SINM = "SourceIfNoneMatch"; -const _SIUS = "SourceIfUnmodifiedSince"; -const _SK = "SSE-KMS"; -const _SKEO = "SseKmsEncryptedObjects"; -const _SKF = "S3KeyFilter"; -const _SKe = "S3Key"; -const _SL = "S3Location"; -const _SM = "SessionMode"; -const _SOC = "SelectObjectContent"; -const _SOCES = "SelectObjectContentEventStream"; -const _SOCO = "SelectObjectContentOutput"; -const _SOCR = "SelectObjectContentRequest"; -const _SP = "SelectParameters"; -const _SPi = "SimplePrefix"; -const _SR = "ScanRange"; -const _SS = "SSE-S3"; -const _SSC = "SourceSelectionCriteria"; -const _SSE = "ServerSideEncryption"; -const _SSEA = "SSEAlgorithm"; -const _SSEBD = "ServerSideEncryptionByDefault"; -const _SSEC = "ServerSideEncryptionConfiguration"; -const _SSECA = "SSECustomerAlgorithm"; -const _SSECK = "SSECustomerKey"; -const _SSECKMD = "SSECustomerKeyMD5"; -const _SSEKMS = "SSEKMS"; -const _SSEKMSEC = "SSEKMSEncryptionContext"; -const _SSEKMSKI = "SSEKMSKeyId"; -const _SSER = "ServerSideEncryptionRule"; -const _SSERe = "ServerSideEncryptionRules"; -const _SSES = "SSES3"; -const _ST = "SessionToken"; -const _STD = "S3TablesDestination"; -const _STDR = "S3TablesDestinationResult"; -const _S_ = "S3"; -const _Sc = "Schedule"; -const _Si = "Size"; -const _St = "Start"; -const _Sta = "Stats"; -const _Su = "Suffix"; -const _T = "Tags"; -const _TA = "TableArn"; -const _TAo = "TopicArn"; -const _TB = "TargetBucket"; -const _TBA = "TableBucketArn"; -const _TBT = "TableBucketType"; -const _TC = "TagCount"; -const _TCL = "TopicConfigurationList"; -const _TCo = "TopicConfigurations"; -const _TCop = "TopicConfiguration"; -const _TD = "TaggingDirective"; -const _TDMOS = "TransitionDefaultMinimumObjectSize"; -const _TG = "TargetGrants"; -const _TGa = "TargetGrant"; -const _TL = "TieringList"; -const _TLr = "TransitionList"; -const _TMP = "TooManyParts"; -const _TN = "TableNamespace"; -const _TNa = "TableName"; -const _TOKF = "TargetObjectKeyFormat"; -const _TP = "TargetPrefix"; -const _TPC = "TotalPartsCount"; -const _TS = "TagSet"; -const _TSa = "TableStatus"; -const _Ta = "Tag"; -const _Tag = "Tagging"; -const _Ti = "Tier"; -const _Tie = "Tierings"; -const _Tier = "Tiering"; -const _Tim = "Time"; -const _To = "Token"; -const _Top = "Topic"; -const _Tr = "Transitions"; -const _Tra = "Transition"; -const _Ty = "Type"; -const _U = "Uploads"; -const _UBMITC = "UpdateBucketMetadataInventoryTableConfiguration"; -const _UBMITCR = "UpdateBucketMetadataInventoryTableConfigurationRequest"; -const _UBMJTC = "UpdateBucketMetadataJournalTableConfiguration"; -const _UBMJTCR = "UpdateBucketMetadataJournalTableConfigurationRequest"; -const _UI = "UploadId"; -const _UIM = "UploadIdMarker"; -const _UM = "UserMetadata"; -const _UP = "UploadPart"; -const _UPC = "UploadPartCopy"; -const _UPCO = "UploadPartCopyOutput"; -const _UPCR = "UploadPartCopyRequest"; -const _UPO = "UploadPartOutput"; -const _UPR = "UploadPartRequest"; -const _URI = "URI"; -const _Up = "Upload"; -const _V = "Value"; -const _VC = "VersioningConfiguration"; -const _VI = "VersionId"; -const _VIM = "VersionIdMarker"; -const _Ve = "Versions"; -const _Ver = "Version"; -const _WC = "WebsiteConfiguration"; -const _WGOR = "WriteGetObjectResponse"; -const _WGORR = "WriteGetObjectResponseRequest"; -const _WOB = "WriteOffsetBytes"; -const _WRL = "WebsiteRedirectLocation"; -const _Y = "Years"; -const _ar = "accept-ranges"; -const _br = "bucket-region"; -const _c = "client"; -const _ct = "continuation-token"; -const _d = "delimiter"; -const _e = "error"; -const _eP = "eventPayload"; -const _en = "endpoint"; -const _et = "encoding-type"; -const _fo = "fetch-owner"; -const _h = "http"; -const _hE = "httpError"; -const _hH = "httpHeader"; -const _hL = "hostLabel"; -const _hP = "httpPayload"; -const _hPH = "httpPrefixHeaders"; -const _hQ = "httpQuery"; -const _hi = "http://www.w3.org/2001/XMLSchema-instance"; -const _i = "id"; -const _iT = "idempotencyToken"; -const _km = "key-marker"; -const _m = "marker"; -const _mb = "max-buckets"; -const _mdb = "max-directory-buckets"; -const _mk = "max-keys"; -const _mp = "max-parts"; -const _mu = "max-uploads"; -const _p = "prefix"; -const _pN = "partNumber"; -const _pnm = "part-number-marker"; -const _rcc = "response-cache-control"; -const _rcd = "response-content-disposition"; -const _rce = "response-content-encoding"; -const _rcl = "response-content-language"; -const _rct = "response-content-type"; -const _re = "response-expires"; -const _s = "streaming"; -const _sa = "start-after"; -const _uI = "uploadId"; -const _uim = "upload-id-marker"; -const _vI = "versionId"; -const _vim = "version-id-marker"; -const _x = "xsi"; -const _xA = "xmlAttribute"; -const _xF = "xmlFlattened"; -const _xN = "xmlName"; -const _xNm = "xmlNamespace"; -const _xaa = "x-amz-acl"; -const _xaad = "x-amz-abort-date"; -const _xaapa = "x-amz-access-point-alias"; -const _xaari = "x-amz-abort-rule-id"; -const _xaas = "x-amz-archive-status"; -const _xaba = "x-amz-bucket-arn"; -const _xabgr = "x-amz-bypass-governance-retention"; -const _xabln = "x-amz-bucket-location-name"; -const _xablt = "x-amz-bucket-location-type"; -const _xabole = "x-amz-bucket-object-lock-enabled"; -const _xabolt = "x-amz-bucket-object-lock-token"; -const _xabr = "x-amz-bucket-region"; -const _xaca = "x-amz-checksum-algorithm"; -const _xacc = "x-amz-checksum-crc32"; -const _xacc_ = "x-amz-checksum-crc32c"; -const _xacc__ = "x-amz-checksum-crc64nvme"; -const _xacm = "x-amz-checksum-mode"; -const _xacrsba = "x-amz-confirm-remove-self-bucket-access"; -const _xacs = "x-amz-checksum-sha1"; -const _xacs_ = "x-amz-checksum-sha256"; -const _xacs__ = "x-amz-copy-source"; -const _xacsim = "x-amz-copy-source-if-match"; -const _xacsims = "x-amz-copy-source-if-modified-since"; -const _xacsinm = "x-amz-copy-source-if-none-match"; -const _xacsius = "x-amz-copy-source-if-unmodified-since"; -const _xacsm = "x-amz-create-session-mode"; -const _xacsr = "x-amz-copy-source-range"; -const _xacssseca = "x-amz-copy-source-server-side-encryption-customer-algorithm"; -const _xacssseck = "x-amz-copy-source-server-side-encryption-customer-key"; -const _xacssseckM = "x-amz-copy-source-server-side-encryption-customer-key-MD5"; -const _xacsvi = "x-amz-copy-source-version-id"; -const _xact = "x-amz-checksum-type"; -const _xact_ = "x-amz-client-token"; -const _xadm = "x-amz-delete-marker"; -const _xae = "x-amz-expiration"; -const _xaebo = "x-amz-expected-bucket-owner"; -const _xafec = "x-amz-fwd-error-code"; -const _xafem = "x-amz-fwd-error-message"; -const _xafhCC = "x-amz-fwd-header-Cache-Control"; -const _xafhCD = "x-amz-fwd-header-Content-Disposition"; -const _xafhCE = "x-amz-fwd-header-Content-Encoding"; -const _xafhCL = "x-amz-fwd-header-Content-Language"; -const _xafhCR = "x-amz-fwd-header-Content-Range"; -const _xafhCT = "x-amz-fwd-header-Content-Type"; -const _xafhE = "x-amz-fwd-header-ETag"; -const _xafhE_ = "x-amz-fwd-header-Expires"; -const _xafhLM = "x-amz-fwd-header-Last-Modified"; -const _xafhar = "x-amz-fwd-header-accept-ranges"; -const _xafhxacc = "x-amz-fwd-header-x-amz-checksum-crc32"; -const _xafhxacc_ = "x-amz-fwd-header-x-amz-checksum-crc32c"; -const _xafhxacc__ = "x-amz-fwd-header-x-amz-checksum-crc64nvme"; -const _xafhxacs = "x-amz-fwd-header-x-amz-checksum-sha1"; -const _xafhxacs_ = "x-amz-fwd-header-x-amz-checksum-sha256"; -const _xafhxadm = "x-amz-fwd-header-x-amz-delete-marker"; -const _xafhxae = "x-amz-fwd-header-x-amz-expiration"; -const _xafhxamm = "x-amz-fwd-header-x-amz-missing-meta"; -const _xafhxampc = "x-amz-fwd-header-x-amz-mp-parts-count"; -const _xafhxaollh = "x-amz-fwd-header-x-amz-object-lock-legal-hold"; -const _xafhxaolm = "x-amz-fwd-header-x-amz-object-lock-mode"; -const _xafhxaolrud = "x-amz-fwd-header-x-amz-object-lock-retain-until-date"; -const _xafhxar = "x-amz-fwd-header-x-amz-restore"; -const _xafhxarc = "x-amz-fwd-header-x-amz-request-charged"; -const _xafhxars = "x-amz-fwd-header-x-amz-replication-status"; -const _xafhxasc = "x-amz-fwd-header-x-amz-storage-class"; -const _xafhxasse = "x-amz-fwd-header-x-amz-server-side-encryption"; -const _xafhxasseakki = "x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id"; -const _xafhxassebke = "x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled"; -const _xafhxasseca = "x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm"; -const _xafhxasseckM = "x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5"; -const _xafhxatc = "x-amz-fwd-header-x-amz-tagging-count"; -const _xafhxavi = "x-amz-fwd-header-x-amz-version-id"; -const _xafs = "x-amz-fwd-status"; -const _xagfc = "x-amz-grant-full-control"; -const _xagr = "x-amz-grant-read"; -const _xagra = "x-amz-grant-read-acp"; -const _xagw = "x-amz-grant-write"; -const _xagwa = "x-amz-grant-write-acp"; -const _xaimit = "x-amz-if-match-initiated-time"; -const _xaimlmt = "x-amz-if-match-last-modified-time"; -const _xaims = "x-amz-if-match-size"; -const _xam = "x-amz-meta-"; -const _xam_ = "x-amz-mfa"; -const _xamd = "x-amz-metadata-directive"; -const _xamm = "x-amz-missing-meta"; -const _xamos = "x-amz-mp-object-size"; -const _xamp = "x-amz-max-parts"; -const _xampc = "x-amz-mp-parts-count"; -const _xaoa = "x-amz-object-attributes"; -const _xaollh = "x-amz-object-lock-legal-hold"; -const _xaolm = "x-amz-object-lock-mode"; -const _xaolrud = "x-amz-object-lock-retain-until-date"; -const _xaoo = "x-amz-object-ownership"; -const _xaooa = "x-amz-optional-object-attributes"; -const _xaos = "x-amz-object-size"; -const _xapnm = "x-amz-part-number-marker"; -const _xar = "x-amz-restore"; -const _xarc = "x-amz-request-charged"; -const _xarop = "x-amz-restore-output-path"; -const _xarp = "x-amz-request-payer"; -const _xarr = "x-amz-request-route"; -const _xars = "x-amz-replication-status"; -const _xars_ = "x-amz-rename-source"; -const _xarsim = "x-amz-rename-source-if-match"; -const _xarsims = "x-amz-rename-source-if-modified-since"; -const _xarsinm = "x-amz-rename-source-if-none-match"; -const _xarsius = "x-amz-rename-source-if-unmodified-since"; -const _xart = "x-amz-request-token"; -const _xasc = "x-amz-storage-class"; -const _xasca = "x-amz-sdk-checksum-algorithm"; -const _xasdv = "x-amz-skip-destination-validation"; -const _xasebo = "x-amz-source-expected-bucket-owner"; -const _xasse = "x-amz-server-side-encryption"; -const _xasseakki = "x-amz-server-side-encryption-aws-kms-key-id"; -const _xassebke = "x-amz-server-side-encryption-bucket-key-enabled"; -const _xassec = "x-amz-server-side-encryption-context"; -const _xasseca = "x-amz-server-side-encryption-customer-algorithm"; -const _xasseck = "x-amz-server-side-encryption-customer-key"; -const _xasseckM = "x-amz-server-side-encryption-customer-key-MD5"; -const _xat = "x-amz-tagging"; -const _xatc = "x-amz-tagging-count"; -const _xatd = "x-amz-tagging-directive"; -const _xatdmos = "x-amz-transition-default-minimum-object-size"; -const _xavi = "x-amz-version-id"; -const _xawob = "x-amz-write-offset-bytes"; -const _xawrl = "x-amz-website-redirect-location"; -const _xs = "xsi:type"; -const n0 = "com.amazonaws.s3"; - -// smithy-typescript generated code -import { error, list, op, sim, struct, struct as uni } from "@smithy/core/schema"; - -import { - BucketAlreadyExists as __BucketAlreadyExists, - BucketAlreadyOwnedByYou as __BucketAlreadyOwnedByYou, - EncryptionTypeMismatch as __EncryptionTypeMismatch, - IdempotencyParameterMismatch as __IdempotencyParameterMismatch, - InvalidObjectState as __InvalidObjectState, - InvalidRequest as __InvalidRequest, - InvalidWriteOffset as __InvalidWriteOffset, - NoSuchBucket as __NoSuchBucket, - NoSuchKey as __NoSuchKey, - NoSuchUpload as __NoSuchUpload, - NotFound as __NotFound, - ObjectAlreadyInActiveTierError as __ObjectAlreadyInActiveTierError, - ObjectNotInActiveTierError as __ObjectNotInActiveTierError, - TooManyParts as __TooManyParts, -} from "../models/index"; -import { S3ServiceException as __S3ServiceException } from "../models/S3ServiceException"; - -/* eslint no-var: 0 */ - -export var CopySourceSSECustomerKey = sim(n0, _CSSSECK, 0, 8); -export var SessionCredentialValue = sim(n0, _SCV, 0, 8); -export var SSECustomerKey = sim(n0, _SSECK, 0, 8); -export var SSEKMSEncryptionContext = sim(n0, _SSEKMSEC, 0, 8); -export var SSEKMSKeyId = sim(n0, _SSEKMSKI, 0, 8); -export var StreamingBlob = sim(n0, _SB, 42, { - [_s]: 1, -}); -export var AbortIncompleteMultipartUpload = struct(n0, _AIMU, 0, [_DAI], [1]); -export var AbortMultipartUploadOutput = struct( - n0, - _AMUO, - 0, - [_RC], - [ - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var AbortMultipartUploadRequest = struct( - n0, - _AMUR, - 0, - [_B, _K, _UI, _RP, _EBO, _IMIT], - [ - [0, 1], - [0, 1], - [ - 0, - { - [_hQ]: _uI, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 6, - { - [_hH]: _xaimit, - }, - ], - ] -); -export var AccelerateConfiguration = struct(n0, _AC, 0, [_S], [0]); -export var AccessControlPolicy = struct( - n0, - _ACP, - 0, - [_G, _O], - [ - [ - () => Grants, - { - [_xN]: _ACL, - }, - ], - () => Owner, - ] -); -export var AccessControlTranslation = struct(n0, _ACT, 0, [_O], [0]); -export var AnalyticsAndOperator = struct( - n0, - _AAO, - 0, - [_P, _T], - [ - 0, - [ - () => TagSet, - { - [_xN]: _Ta, - [_xF]: 1, - }, - ], - ] -); -export var AnalyticsConfiguration = struct( - n0, - _ACn, - 0, - [_I, _F, _SCA], - [0, [() => AnalyticsFilter, 0], () => StorageClassAnalysis] -); -export var AnalyticsExportDestination = struct(n0, _AED, 0, [_SBD], [() => AnalyticsS3BucketDestination]); -export var AnalyticsS3BucketDestination = struct(n0, _ASBD, 0, [_Fo, _BAI, _B, _P], [0, 0, 0, 0]); -export var Bucket = struct(n0, _B, 0, [_N, _CD, _BR, _BA], [0, 4, 0, 0]); -export var BucketAlreadyExists = error( - n0, - _BAE, - { - [_e]: _c, - [_hE]: 409, - }, - [], - [], - - __BucketAlreadyExists -); -export var BucketAlreadyOwnedByYou = error( - n0, - _BAOBY, - { - [_e]: _c, - [_hE]: 409, - }, - [], - [], - - __BucketAlreadyOwnedByYou -); -export var BucketInfo = struct(n0, _BI, 0, [_DR, _Ty], [0, 0]); -export var BucketLifecycleConfiguration = struct( - n0, - _BLC, - 0, - [_R], - [ - [ - () => LifecycleRules, - { - [_xN]: _Ru, - [_xF]: 1, - }, - ], - ] -); -export var BucketLoggingStatus = struct(n0, _BLS, 0, [_LE], [[() => LoggingEnabled, 0]]); -export var Checksum = struct(n0, _C, 0, [_CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CT], [0, 0, 0, 0, 0, 0]); -export var CommonPrefix = struct(n0, _CP, 0, [_P], [0]); -export var CompletedMultipartUpload = struct( - n0, - _CMU, - 0, - [_Pa], - [ - [ - () => CompletedPartList, - { - [_xN]: _Par, - [_xF]: 1, - }, - ], - ] -); -export var CompletedPart = struct( - n0, - _CPo, - 0, - [_ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _PN], - [0, 0, 0, 0, 0, 0, 1] -); -export var CompleteMultipartUploadOutput = struct( - n0, - _CMUO, - { - [_xN]: _CMUR, - }, - [_L, _B, _K, _E, _ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CT, _SSE, _VI, _SSEKMSKI, _BKE, _RC], - [ - 0, - 0, - 0, - [ - 0, - { - [_hH]: _xae, - }, - ], - 0, - 0, - 0, - 0, - 0, - 0, - 0, - [ - 0, - { - [_hH]: _xasse, - }, - ], - [ - 0, - { - [_hH]: _xavi, - }, - ], - [ - () => SSEKMSKeyId, - { - [_hH]: _xasseakki, - }, - ], - [ - 2, - { - [_hH]: _xassebke, - }, - ], - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var CompleteMultipartUploadRequest = struct( - n0, - _CMURo, - 0, - [ - _B, - _K, - _MU, - _UI, - _CCRC, - _CCRCC, - _CCRCNVME, - _CSHA, - _CSHAh, - _CT, - _MOS, - _RP, - _EBO, - _IM, - _INM, - _SSECA, - _SSECK, - _SSECKMD, - ], - [ - [0, 1], - [0, 1], - [ - () => CompletedMultipartUpload, - { - [_xN]: _CMUo, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hQ]: _uI, - }, - ], - [ - 0, - { - [_hH]: _xacc, - }, - ], - [ - 0, - { - [_hH]: _xacc_, - }, - ], - [ - 0, - { - [_hH]: _xacc__, - }, - ], - [ - 0, - { - [_hH]: _xacs, - }, - ], - [ - 0, - { - [_hH]: _xacs_, - }, - ], - [ - 0, - { - [_hH]: _xact, - }, - ], - [ - 1, - { - [_hH]: _xamos, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _IM_, - }, - ], - [ - 0, - { - [_hH]: _INM_, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - () => SSECustomerKey, - { - [_hH]: _xasseck, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - ] -); -export var Condition = struct(n0, _Co, 0, [_HECRE, _KPE], [0, 0]); -export var ContinuationEvent = struct(n0, _CE, 0, [], []); -export var CopyObjectOutput = struct( - n0, - _COO, - 0, - [_COR, _E, _CSVI, _VI, _SSE, _SSECA, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _RC], - [ - [() => CopyObjectResult, 16], - [ - 0, - { - [_hH]: _xae, - }, - ], - [ - 0, - { - [_hH]: _xacsvi, - }, - ], - [ - 0, - { - [_hH]: _xavi, - }, - ], - [ - 0, - { - [_hH]: _xasse, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - () => SSEKMSKeyId, - { - [_hH]: _xasseakki, - }, - ], - [ - () => SSEKMSEncryptionContext, - { - [_hH]: _xassec, - }, - ], - [ - 2, - { - [_hH]: _xassebke, - }, - ], - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var CopyObjectRequest = struct( - n0, - _CORo, - 0, - [ - _ACL_, - _B, - _CC, - _CA, - _CDo, - _CEo, - _CL, - _CTo, - _CS, - _CSIM, - _CSIMS, - _CSINM, - _CSIUS, - _Ex, - _GFC, - _GR, - _GRACP, - _GWACP, - _K, - _M, - _MD, - _TD, - _SSE, - _SC, - _WRL, - _SSECA, - _SSECK, - _SSECKMD, - _SSEKMSKI, - _SSEKMSEC, - _BKE, - _CSSSECA, - _CSSSECK, - _CSSSECKMD, - _RP, - _Tag, - _OLM, - _OLRUD, - _OLLHS, - _EBO, - _ESBO, - ], - [ - [ - 0, - { - [_hH]: _xaa, - }, - ], - [0, 1], - [ - 0, - { - [_hH]: _CC_, - }, - ], - [ - 0, - { - [_hH]: _xaca, - }, - ], - [ - 0, - { - [_hH]: _CD_, - }, - ], - [ - 0, - { - [_hH]: _CE_, - }, - ], - [ - 0, - { - [_hH]: _CL_, - }, - ], - [ - 0, - { - [_hH]: _CT_, - }, - ], - [ - 0, - { - [_hH]: _xacs__, - }, - ], - [ - 0, - { - [_hH]: _xacsim, - }, - ], - [ - 4, - { - [_hH]: _xacsims, - }, - ], - [ - 0, - { - [_hH]: _xacsinm, - }, - ], - [ - 4, - { - [_hH]: _xacsius, - }, - ], - [ - 4, - { - [_hH]: _Ex, - }, - ], - [ - 0, - { - [_hH]: _xagfc, - }, - ], - [ - 0, - { - [_hH]: _xagr, - }, - ], - [ - 0, - { - [_hH]: _xagra, - }, - ], - [ - 0, - { - [_hH]: _xagwa, - }, - ], - [0, 1], - [ - 128 | 0, - { - [_hPH]: _xam, - }, - ], - [ - 0, - { - [_hH]: _xamd, - }, - ], - [ - 0, - { - [_hH]: _xatd, - }, - ], - [ - 0, - { - [_hH]: _xasse, - }, - ], - [ - 0, - { - [_hH]: _xasc, - }, - ], - [ - 0, - { - [_hH]: _xawrl, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - () => SSECustomerKey, - { - [_hH]: _xasseck, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - () => SSEKMSKeyId, - { - [_hH]: _xasseakki, - }, - ], - [ - () => SSEKMSEncryptionContext, - { - [_hH]: _xassec, - }, - ], - [ - 2, - { - [_hH]: _xassebke, - }, - ], - [ - 0, - { - [_hH]: _xacssseca, - }, - ], - [ - () => CopySourceSSECustomerKey, - { - [_hH]: _xacssseck, - }, - ], - [ - 0, - { - [_hH]: _xacssseckM, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xat, - }, - ], - [ - 0, - { - [_hH]: _xaolm, - }, - ], - [ - 5, - { - [_hH]: _xaolrud, - }, - ], - [ - 0, - { - [_hH]: _xaollh, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _xasebo, - }, - ], - ] -); -export var CopyObjectResult = struct( - n0, - _COR, - 0, - [_ET, _LM, _CT, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh], - [0, 4, 0, 0, 0, 0, 0, 0] -); -export var CopyPartResult = struct( - n0, - _CPR, - 0, - [_ET, _LM, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh], - [0, 4, 0, 0, 0, 0, 0] -); -export var CORSConfiguration = struct( - n0, - _CORSC, - 0, - [_CORSR], - [ - [ - () => CORSRules, - { - [_xN]: _CORSRu, - [_xF]: 1, - }, - ], - ] -); -export var CORSRule = struct( - n0, - _CORSRu, - 0, - [_ID, _AH, _AM, _AO, _EH, _MAS], - [ - 0, - [ - 64 | 0, - { - [_xN]: _AHl, - [_xF]: 1, - }, - ], - [ - 64 | 0, - { - [_xN]: _AMl, - [_xF]: 1, - }, - ], - [ - 64 | 0, - { - [_xN]: _AOl, - [_xF]: 1, - }, - ], - [ - 64 | 0, - { - [_xN]: _EHx, - [_xF]: 1, - }, - ], - 1, - ] -); -export var CreateBucketConfiguration = struct( - n0, - _CBC, - 0, - [_LC, _L, _B, _T], - [0, () => LocationInfo, () => BucketInfo, [() => TagSet, 0]] -); -export var CreateBucketMetadataConfigurationRequest = struct( - n0, - _CBMCR, - 0, - [_B, _CMD, _CA, _MC, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - () => MetadataConfiguration, - { - [_xN]: _MC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var CreateBucketMetadataTableConfigurationRequest = struct( - n0, - _CBMTCR, - 0, - [_B, _CMD, _CA, _MTC, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - () => MetadataTableConfiguration, - { - [_xN]: _MTC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var CreateBucketOutput = struct( - n0, - _CBO, - 0, - [_L, _BA], - [ - [ - 0, - { - [_hH]: _L, - }, - ], - [ - 0, - { - [_hH]: _xaba, - }, - ], - ] -); -export var CreateBucketRequest = struct( - n0, - _CBR, - 0, - [_ACL_, _B, _CBC, _GFC, _GR, _GRACP, _GW, _GWACP, _OLEFB, _OO], - [ - [ - 0, - { - [_hH]: _xaa, - }, - ], - [0, 1], - [ - () => CreateBucketConfiguration, - { - [_xN]: _CBC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xagfc, - }, - ], - [ - 0, - { - [_hH]: _xagr, - }, - ], - [ - 0, - { - [_hH]: _xagra, - }, - ], - [ - 0, - { - [_hH]: _xagw, - }, - ], - [ - 0, - { - [_hH]: _xagwa, - }, - ], - [ - 2, - { - [_hH]: _xabole, - }, - ], - [ - 0, - { - [_hH]: _xaoo, - }, - ], - ] -); -export var CreateMultipartUploadOutput = struct( - n0, - _CMUOr, - { - [_xN]: _IMUR, - }, - [_AD, _ARI, _B, _K, _UI, _SSE, _SSECA, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _RC, _CA, _CT], - [ - [ - 4, - { - [_hH]: _xaad, - }, - ], - [ - 0, - { - [_hH]: _xaari, - }, - ], - [ - 0, - { - [_xN]: _B, - }, - ], - 0, - 0, - [ - 0, - { - [_hH]: _xasse, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - () => SSEKMSKeyId, - { - [_hH]: _xasseakki, - }, - ], - [ - () => SSEKMSEncryptionContext, - { - [_hH]: _xassec, - }, - ], - [ - 2, - { - [_hH]: _xassebke, - }, - ], - [ - 0, - { - [_hH]: _xarc, - }, - ], - [ - 0, - { - [_hH]: _xaca, - }, - ], - [ - 0, - { - [_hH]: _xact, - }, - ], - ] -); -export var CreateMultipartUploadRequest = struct( - n0, - _CMURr, - 0, - [ - _ACL_, - _B, - _CC, - _CDo, - _CEo, - _CL, - _CTo, - _Ex, - _GFC, - _GR, - _GRACP, - _GWACP, - _K, - _M, - _SSE, - _SC, - _WRL, - _SSECA, - _SSECK, - _SSECKMD, - _SSEKMSKI, - _SSEKMSEC, - _BKE, - _RP, - _Tag, - _OLM, - _OLRUD, - _OLLHS, - _EBO, - _CA, - _CT, - ], - [ - [ - 0, - { - [_hH]: _xaa, - }, - ], - [0, 1], - [ - 0, - { - [_hH]: _CC_, - }, - ], - [ - 0, - { - [_hH]: _CD_, - }, - ], - [ - 0, - { - [_hH]: _CE_, - }, - ], - [ - 0, - { - [_hH]: _CL_, - }, - ], - [ - 0, - { - [_hH]: _CT_, - }, - ], - [ - 4, - { - [_hH]: _Ex, - }, - ], - [ - 0, - { - [_hH]: _xagfc, - }, - ], - [ - 0, - { - [_hH]: _xagr, - }, - ], - [ - 0, - { - [_hH]: _xagra, - }, - ], - [ - 0, - { - [_hH]: _xagwa, - }, - ], - [0, 1], - [ - 128 | 0, - { - [_hPH]: _xam, - }, - ], - [ - 0, - { - [_hH]: _xasse, - }, - ], - [ - 0, - { - [_hH]: _xasc, - }, - ], - [ - 0, - { - [_hH]: _xawrl, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - () => SSECustomerKey, - { - [_hH]: _xasseck, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - () => SSEKMSKeyId, - { - [_hH]: _xasseakki, - }, - ], - [ - () => SSEKMSEncryptionContext, - { - [_hH]: _xassec, - }, - ], - [ - 2, - { - [_hH]: _xassebke, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xat, - }, - ], - [ - 0, - { - [_hH]: _xaolm, - }, - ], - [ - 5, - { - [_hH]: _xaolrud, - }, - ], - [ - 0, - { - [_hH]: _xaollh, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _xaca, - }, - ], - [ - 0, - { - [_hH]: _xact, - }, - ], - ] -); -export var CreateSessionOutput = struct( - n0, - _CSO, - { - [_xN]: _CSR, - }, - [_SSE, _SSEKMSKI, _SSEKMSEC, _BKE, _Cr], - [ - [ - 0, - { - [_hH]: _xasse, - }, - ], - [ - () => SSEKMSKeyId, - { - [_hH]: _xasseakki, - }, - ], - [ - () => SSEKMSEncryptionContext, - { - [_hH]: _xassec, - }, - ], - [ - 2, - { - [_hH]: _xassebke, - }, - ], - [ - () => SessionCredentials, - { - [_xN]: _Cr, - }, - ], - ] -); -export var CreateSessionRequest = struct( - n0, - _CSRr, - 0, - [_SM, _B, _SSE, _SSEKMSKI, _SSEKMSEC, _BKE], - [ - [ - 0, - { - [_hH]: _xacsm, - }, - ], - [0, 1], - [ - 0, - { - [_hH]: _xasse, - }, - ], - [ - () => SSEKMSKeyId, - { - [_hH]: _xasseakki, - }, - ], - [ - () => SSEKMSEncryptionContext, - { - [_hH]: _xassec, - }, - ], - [ - 2, - { - [_hH]: _xassebke, - }, - ], - ] -); -export var CSVInput = struct(n0, _CSVIn, 0, [_FHI, _Com, _QEC, _RD, _FD, _QC, _AQRD], [0, 0, 0, 0, 0, 0, 2]); -export var CSVOutput = struct(n0, _CSVO, 0, [_QF, _QEC, _RD, _FD, _QC], [0, 0, 0, 0, 0]); -export var DefaultRetention = struct(n0, _DRe, 0, [_Mo, _D, _Y], [0, 1, 1]); -export var Delete = struct( - n0, - _De, - 0, - [_Ob, _Q], - [ - [ - () => ObjectIdentifierList, - { - [_xN]: _Obj, - [_xF]: 1, - }, - ], - 2, - ] -); -export var DeleteBucketAnalyticsConfigurationRequest = struct( - n0, - _DBACR, - 0, - [_B, _I, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _i, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeleteBucketCorsRequest = struct( - n0, - _DBCR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeleteBucketEncryptionRequest = struct( - n0, - _DBER, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeleteBucketIntelligentTieringConfigurationRequest = struct( - n0, - _DBITCR, - 0, - [_B, _I, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _i, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeleteBucketInventoryConfigurationRequest = struct( - n0, - _DBICR, - 0, - [_B, _I, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _i, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeleteBucketLifecycleRequest = struct( - n0, - _DBLR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeleteBucketMetadataConfigurationRequest = struct( - n0, - _DBMCR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeleteBucketMetadataTableConfigurationRequest = struct( - n0, - _DBMTCR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeleteBucketMetricsConfigurationRequest = struct( - n0, - _DBMCRe, - 0, - [_B, _I, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _i, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeleteBucketOwnershipControlsRequest = struct( - n0, - _DBOCR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeleteBucketPolicyRequest = struct( - n0, - _DBPR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeleteBucketReplicationRequest = struct( - n0, - _DBRR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeleteBucketRequest = struct( - n0, - _DBR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeleteBucketTaggingRequest = struct( - n0, - _DBTR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeleteBucketWebsiteRequest = struct( - n0, - _DBWR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeletedObject = struct(n0, _DO, 0, [_K, _VI, _DM, _DMVI], [0, 0, 2, 0]); -export var DeleteMarkerEntry = struct(n0, _DME, 0, [_O, _K, _VI, _IL, _LM], [() => Owner, 0, 0, 2, 4]); -export var DeleteMarkerReplication = struct(n0, _DMR, 0, [_S], [0]); -export var DeleteObjectOutput = struct( - n0, - _DOO, - 0, - [_DM, _VI, _RC], - [ - [ - 2, - { - [_hH]: _xadm, - }, - ], - [ - 0, - { - [_hH]: _xavi, - }, - ], - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var DeleteObjectRequest = struct( - n0, - _DOR, - 0, - [_B, _K, _MFA, _VI, _RP, _BGR, _EBO, _IM, _IMLMT, _IMS], - [ - [0, 1], - [0, 1], - [ - 0, - { - [_hH]: _xam_, - }, - ], - [ - 0, - { - [_hQ]: _vI, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 2, - { - [_hH]: _xabgr, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _IM_, - }, - ], - [ - 6, - { - [_hH]: _xaimlmt, - }, - ], - [ - 1, - { - [_hH]: _xaims, - }, - ], - ] -); -export var DeleteObjectsOutput = struct( - n0, - _DOOe, - { - [_xN]: _DRel, - }, - [_Del, _RC, _Er], - [ - [ - () => DeletedObjects, - { - [_xF]: 1, - }, - ], - [ - 0, - { - [_hH]: _xarc, - }, - ], - [ - () => Errors, - { - [_xN]: _Err, - [_xF]: 1, - }, - ], - ] -); -export var DeleteObjectsRequest = struct( - n0, - _DORe, - 0, - [_B, _De, _MFA, _RP, _BGR, _EBO, _CA], - [ - [0, 1], - [ - () => Delete, - { - [_xN]: _De, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xam_, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 2, - { - [_hH]: _xabgr, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - ] -); -export var DeleteObjectTaggingOutput = struct( - n0, - _DOTO, - 0, - [_VI], - [ - [ - 0, - { - [_hH]: _xavi, - }, - ], - ] -); -export var DeleteObjectTaggingRequest = struct( - n0, - _DOTR, - 0, - [_B, _K, _VI, _EBO], - [ - [0, 1], - [0, 1], - [ - 0, - { - [_hQ]: _vI, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var DeletePublicAccessBlockRequest = struct( - n0, - _DPABR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var Destination = struct( - n0, - _Des, - 0, - [_B, _A, _SC, _ACT, _EC, _RT, _Me], - [0, 0, 0, () => AccessControlTranslation, () => EncryptionConfiguration, () => ReplicationTime, () => Metrics] -); -export var DestinationResult = struct(n0, _DRes, 0, [_TBT, _TBA, _TN], [0, 0, 0]); -export var Encryption = struct(n0, _En, 0, [_ETn, _KMSKI, _KMSC], [0, [() => SSEKMSKeyId, 0], 0]); -export var EncryptionConfiguration = struct(n0, _EC, 0, [_RKKID], [0]); -export var EncryptionTypeMismatch = error( - n0, - _ETM, - { - [_e]: _c, - [_hE]: 400, - }, - [], - [], - - __EncryptionTypeMismatch -); -export var EndEvent = struct(n0, _EE, 0, [], []); -export var _Error = struct(n0, _Err, 0, [_K, _VI, _Cod, _Mes], [0, 0, 0, 0]); -export var ErrorDetails = struct(n0, _ED, 0, [_ECr, _EM], [0, 0]); -export var ErrorDocument = struct(n0, _EDr, 0, [_K], [0]); -export var EventBridgeConfiguration = struct(n0, _EBC, 0, [], []); -export var ExistingObjectReplication = struct(n0, _EOR, 0, [_S], [0]); -export var FilterRule = struct(n0, _FR, 0, [_N, _V], [0, 0]); -export var GetBucketAccelerateConfigurationOutput = struct( - n0, - _GBACO, - { - [_xN]: _AC, - }, - [_S, _RC], - [ - 0, - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var GetBucketAccelerateConfigurationRequest = struct( - n0, - _GBACR, - 0, - [_B, _EBO, _RP], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - ] -); -export var GetBucketAclOutput = struct( - n0, - _GBAO, - { - [_xN]: _ACP, - }, - [_O, _G], - [ - () => Owner, - [ - () => Grants, - { - [_xN]: _ACL, - }, - ], - ] -); -export var GetBucketAclRequest = struct( - n0, - _GBAR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketAnalyticsConfigurationOutput = struct(n0, _GBACOe, 0, [_ACn], [[() => AnalyticsConfiguration, 16]]); -export var GetBucketAnalyticsConfigurationRequest = struct( - n0, - _GBACRe, - 0, - [_B, _I, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _i, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketCorsOutput = struct( - n0, - _GBCO, - { - [_xN]: _CORSC, - }, - [_CORSR], - [ - [ - () => CORSRules, - { - [_xN]: _CORSRu, - [_xF]: 1, - }, - ], - ] -); -export var GetBucketCorsRequest = struct( - n0, - _GBCR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketEncryptionOutput = struct(n0, _GBEO, 0, [_SSEC], [[() => ServerSideEncryptionConfiguration, 16]]); -export var GetBucketEncryptionRequest = struct( - n0, - _GBER, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketIntelligentTieringConfigurationOutput = struct( - n0, - _GBITCO, - 0, - [_ITC], - [[() => IntelligentTieringConfiguration, 16]] -); -export var GetBucketIntelligentTieringConfigurationRequest = struct( - n0, - _GBITCR, - 0, - [_B, _I, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _i, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketInventoryConfigurationOutput = struct(n0, _GBICO, 0, [_IC], [[() => InventoryConfiguration, 16]]); -export var GetBucketInventoryConfigurationRequest = struct( - n0, - _GBICR, - 0, - [_B, _I, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _i, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketLifecycleConfigurationOutput = struct( - n0, - _GBLCO, - { - [_xN]: _LCi, - }, - [_R, _TDMOS], - [ - [ - () => LifecycleRules, - { - [_xN]: _Ru, - [_xF]: 1, - }, - ], - [ - 0, - { - [_hH]: _xatdmos, - }, - ], - ] -); -export var GetBucketLifecycleConfigurationRequest = struct( - n0, - _GBLCR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketLocationOutput = struct( - n0, - _GBLO, - { - [_xN]: _LC, - }, - [_LC], - [0] -); -export var GetBucketLocationRequest = struct( - n0, - _GBLR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketLoggingOutput = struct( - n0, - _GBLOe, - { - [_xN]: _BLS, - }, - [_LE], - [[() => LoggingEnabled, 0]] -); -export var GetBucketLoggingRequest = struct( - n0, - _GBLRe, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketMetadataConfigurationOutput = struct( - n0, - _GBMCO, - 0, - [_GBMCR], - [[() => GetBucketMetadataConfigurationResult, 16]] -); -export var GetBucketMetadataConfigurationRequest = struct( - n0, - _GBMCRe, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketMetadataConfigurationResult = struct(n0, _GBMCR, 0, [_MCR], [() => MetadataConfigurationResult]); -export var GetBucketMetadataTableConfigurationOutput = struct( - n0, - _GBMTCO, - 0, - [_GBMTCR], - [[() => GetBucketMetadataTableConfigurationResult, 16]] -); -export var GetBucketMetadataTableConfigurationRequest = struct( - n0, - _GBMTCRe, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketMetadataTableConfigurationResult = struct( - n0, - _GBMTCR, - 0, - [_MTCR, _S, _Err], - [() => MetadataTableConfigurationResult, 0, () => ErrorDetails] -); -export var GetBucketMetricsConfigurationOutput = struct(n0, _GBMCOe, 0, [_MCe], [[() => MetricsConfiguration, 16]]); -export var GetBucketMetricsConfigurationRequest = struct( - n0, - _GBMCRet, - 0, - [_B, _I, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _i, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketNotificationConfigurationRequest = struct( - n0, - _GBNCR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketOwnershipControlsOutput = struct(n0, _GBOCO, 0, [_OC], [[() => OwnershipControls, 16]]); -export var GetBucketOwnershipControlsRequest = struct( - n0, - _GBOCR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketPolicyOutput = struct(n0, _GBPO, 0, [_Po], [[0, 16]]); -export var GetBucketPolicyRequest = struct( - n0, - _GBPR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketPolicyStatusOutput = struct(n0, _GBPSO, 0, [_PS], [[() => PolicyStatus, 16]]); -export var GetBucketPolicyStatusRequest = struct( - n0, - _GBPSR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketReplicationOutput = struct(n0, _GBRO, 0, [_RCe], [[() => ReplicationConfiguration, 16]]); -export var GetBucketReplicationRequest = struct( - n0, - _GBRR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketRequestPaymentOutput = struct( - n0, - _GBRPO, - { - [_xN]: _RPC, - }, - [_Pay], - [0] -); -export var GetBucketRequestPaymentRequest = struct( - n0, - _GBRPR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketTaggingOutput = struct( - n0, - _GBTO, - { - [_xN]: _Tag, - }, - [_TS], - [[() => TagSet, 0]] -); -export var GetBucketTaggingRequest = struct( - n0, - _GBTR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketVersioningOutput = struct( - n0, - _GBVO, - { - [_xN]: _VC, - }, - [_S, _MFAD], - [ - 0, - [ - 0, - { - [_xN]: _MDf, - }, - ], - ] -); -export var GetBucketVersioningRequest = struct( - n0, - _GBVR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetBucketWebsiteOutput = struct( - n0, - _GBWO, - { - [_xN]: _WC, - }, - [_RART, _IDn, _EDr, _RR], - [() => RedirectAllRequestsTo, () => IndexDocument, () => ErrorDocument, [() => RoutingRules, 0]] -); -export var GetBucketWebsiteRequest = struct( - n0, - _GBWR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetObjectAclOutput = struct( - n0, - _GOAO, - { - [_xN]: _ACP, - }, - [_O, _G, _RC], - [ - () => Owner, - [ - () => Grants, - { - [_xN]: _ACL, - }, - ], - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var GetObjectAclRequest = struct( - n0, - _GOAR, - 0, - [_B, _K, _VI, _RP, _EBO], - [ - [0, 1], - [0, 1], - [ - 0, - { - [_hQ]: _vI, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetObjectAttributesOutput = struct( - n0, - _GOAOe, - { - [_xN]: _GOARe, - }, - [_DM, _LM, _VI, _RC, _ET, _C, _OP, _SC, _OS], - [ - [ - 2, - { - [_hH]: _xadm, - }, - ], - [ - 4, - { - [_hH]: _LM_, - }, - ], - [ - 0, - { - [_hH]: _xavi, - }, - ], - [ - 0, - { - [_hH]: _xarc, - }, - ], - 0, - () => Checksum, - [() => GetObjectAttributesParts, 0], - 0, - 1, - ] -); -export var GetObjectAttributesParts = struct( - n0, - _GOAP, - 0, - [_TPC, _PNM, _NPNM, _MP, _IT, _Pa], - [ - [ - 1, - { - [_xN]: _PC, - }, - ], - 0, - 0, - 1, - 2, - [ - () => PartsList, - { - [_xN]: _Par, - [_xF]: 1, - }, - ], - ] -); -export var GetObjectAttributesRequest = struct( - n0, - _GOARet, - 0, - [_B, _K, _VI, _MP, _PNM, _SSECA, _SSECK, _SSECKMD, _RP, _EBO, _OA], - [ - [0, 1], - [0, 1], - [ - 0, - { - [_hQ]: _vI, - }, - ], - [ - 1, - { - [_hH]: _xamp, - }, - ], - [ - 0, - { - [_hH]: _xapnm, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - () => SSECustomerKey, - { - [_hH]: _xasseck, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 64 | 0, - { - [_hH]: _xaoa, - }, - ], - ] -); -export var GetObjectLegalHoldOutput = struct( - n0, - _GOLHO, - 0, - [_LH], - [ - [ - () => ObjectLockLegalHold, - { - [_xN]: _LH, - [_hP]: 1, - }, - ], - ] -); -export var GetObjectLegalHoldRequest = struct( - n0, - _GOLHR, - 0, - [_B, _K, _VI, _RP, _EBO], - [ - [0, 1], - [0, 1], - [ - 0, - { - [_hQ]: _vI, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetObjectLockConfigurationOutput = struct(n0, _GOLCO, 0, [_OLC], [[() => ObjectLockConfiguration, 16]]); -export var GetObjectLockConfigurationRequest = struct( - n0, - _GOLCR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetObjectOutput = struct( - n0, - _GOO, - 0, - [ - _Bo, - _DM, - _AR, - _E, - _Re, - _LM, - _CLo, - _ET, - _CCRC, - _CCRCC, - _CCRCNVME, - _CSHA, - _CSHAh, - _CT, - _MM, - _VI, - _CC, - _CDo, - _CEo, - _CL, - _CR, - _CTo, - _Ex, - _ES, - _WRL, - _SSE, - _M, - _SSECA, - _SSECKMD, - _SSEKMSKI, - _BKE, - _SC, - _RC, - _RS, - _PC, - _TC, - _OLM, - _OLRUD, - _OLLHS, - ], - [ - [() => StreamingBlob, 16], - [ - 2, - { - [_hH]: _xadm, - }, - ], - [ - 0, - { - [_hH]: _ar, - }, - ], - [ - 0, - { - [_hH]: _xae, - }, - ], - [ - 0, - { - [_hH]: _xar, - }, - ], - [ - 4, - { - [_hH]: _LM_, - }, - ], - [ - 1, - { - [_hH]: _CL__, - }, - ], - [ - 0, - { - [_hH]: _ET, - }, - ], - [ - 0, - { - [_hH]: _xacc, - }, - ], - [ - 0, - { - [_hH]: _xacc_, - }, - ], - [ - 0, - { - [_hH]: _xacc__, - }, - ], - [ - 0, - { - [_hH]: _xacs, - }, - ], - [ - 0, - { - [_hH]: _xacs_, - }, - ], - [ - 0, - { - [_hH]: _xact, - }, - ], - [ - 1, - { - [_hH]: _xamm, - }, - ], - [ - 0, - { - [_hH]: _xavi, - }, - ], - [ - 0, - { - [_hH]: _CC_, - }, - ], - [ - 0, - { - [_hH]: _CD_, - }, - ], - [ - 0, - { - [_hH]: _CE_, - }, - ], - [ - 0, - { - [_hH]: _CL_, - }, - ], - [ - 0, - { - [_hH]: _CR_, - }, - ], - [ - 0, - { - [_hH]: _CT_, - }, - ], - [ - 4, - { - [_hH]: _Ex, - }, - ], - [ - 0, - { - [_hH]: _ES, - }, - ], - [ - 0, - { - [_hH]: _xawrl, - }, - ], - [ - 0, - { - [_hH]: _xasse, - }, - ], - [ - 128 | 0, - { - [_hPH]: _xam, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - () => SSEKMSKeyId, - { - [_hH]: _xasseakki, - }, - ], - [ - 2, - { - [_hH]: _xassebke, - }, - ], - [ - 0, - { - [_hH]: _xasc, - }, - ], - [ - 0, - { - [_hH]: _xarc, - }, - ], - [ - 0, - { - [_hH]: _xars, - }, - ], - [ - 1, - { - [_hH]: _xampc, - }, - ], - [ - 1, - { - [_hH]: _xatc, - }, - ], - [ - 0, - { - [_hH]: _xaolm, - }, - ], - [ - 5, - { - [_hH]: _xaolrud, - }, - ], - [ - 0, - { - [_hH]: _xaollh, - }, - ], - ] -); -export var GetObjectRequest = struct( - n0, - _GOR, - 0, - [ - _B, - _IM, - _IMSf, - _INM, - _IUS, - _K, - _Ra, - _RCC, - _RCD, - _RCE, - _RCL, - _RCT, - _RE, - _VI, - _SSECA, - _SSECK, - _SSECKMD, - _RP, - _PN, - _EBO, - _CMh, - ], - [ - [0, 1], - [ - 0, - { - [_hH]: _IM_, - }, - ], - [ - 4, - { - [_hH]: _IMS_, - }, - ], - [ - 0, - { - [_hH]: _INM_, - }, - ], - [ - 4, - { - [_hH]: _IUS_, - }, - ], - [0, 1], - [ - 0, - { - [_hH]: _Ra, - }, - ], - [ - 0, - { - [_hQ]: _rcc, - }, - ], - [ - 0, - { - [_hQ]: _rcd, - }, - ], - [ - 0, - { - [_hQ]: _rce, - }, - ], - [ - 0, - { - [_hQ]: _rcl, - }, - ], - [ - 0, - { - [_hQ]: _rct, - }, - ], - [ - 6, - { - [_hQ]: _re, - }, - ], - [ - 0, - { - [_hQ]: _vI, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - () => SSECustomerKey, - { - [_hH]: _xasseck, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 1, - { - [_hQ]: _pN, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _xacm, - }, - ], - ] -); -export var GetObjectRetentionOutput = struct( - n0, - _GORO, - 0, - [_Ret], - [ - [ - () => ObjectLockRetention, - { - [_xN]: _Ret, - [_hP]: 1, - }, - ], - ] -); -export var GetObjectRetentionRequest = struct( - n0, - _GORR, - 0, - [_B, _K, _VI, _RP, _EBO], - [ - [0, 1], - [0, 1], - [ - 0, - { - [_hQ]: _vI, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetObjectTaggingOutput = struct( - n0, - _GOTO, - { - [_xN]: _Tag, - }, - [_VI, _TS], - [ - [ - 0, - { - [_hH]: _xavi, - }, - ], - [() => TagSet, 0], - ] -); -export var GetObjectTaggingRequest = struct( - n0, - _GOTR, - 0, - [_B, _K, _VI, _EBO, _RP], - [ - [0, 1], - [0, 1], - [ - 0, - { - [_hQ]: _vI, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - ] -); -export var GetObjectTorrentOutput = struct( - n0, - _GOTOe, - 0, - [_Bo, _RC], - [ - [() => StreamingBlob, 16], - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var GetObjectTorrentRequest = struct( - n0, - _GOTRe, - 0, - [_B, _K, _RP, _EBO], - [ - [0, 1], - [0, 1], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GetPublicAccessBlockOutput = struct(n0, _GPABO, 0, [_PABC], [[() => PublicAccessBlockConfiguration, 16]]); -export var GetPublicAccessBlockRequest = struct( - n0, - _GPABR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var GlacierJobParameters = struct(n0, _GJP, 0, [_Ti], [0]); -export var Grant = struct( - n0, - _Gr, - 0, - [_Gra, _Pe], - [ - [ - () => Grantee, - { - [_xNm]: [_x, _hi], - }, - ], - 0, - ] -); -export var Grantee = struct( - n0, - _Gra, - 0, - [_DN, _EA, _ID, _URI, _Ty], - [ - 0, - 0, - 0, - 0, - [ - 0, - { - [_xN]: _xs, - [_xA]: 1, - }, - ], - ] -); -export var HeadBucketOutput = struct( - n0, - _HBO, - 0, - [_BA, _BLT, _BLN, _BR, _APA], - [ - [ - 0, - { - [_hH]: _xaba, - }, - ], - [ - 0, - { - [_hH]: _xablt, - }, - ], - [ - 0, - { - [_hH]: _xabln, - }, - ], - [ - 0, - { - [_hH]: _xabr, - }, - ], - [ - 2, - { - [_hH]: _xaapa, - }, - ], - ] -); -export var HeadBucketRequest = struct( - n0, - _HBR, - 0, - [_B, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var HeadObjectOutput = struct( - n0, - _HOO, - 0, - [ - _DM, - _AR, - _E, - _Re, - _AS, - _LM, - _CLo, - _CCRC, - _CCRCC, - _CCRCNVME, - _CSHA, - _CSHAh, - _CT, - _ET, - _MM, - _VI, - _CC, - _CDo, - _CEo, - _CL, - _CTo, - _CR, - _Ex, - _ES, - _WRL, - _SSE, - _M, - _SSECA, - _SSECKMD, - _SSEKMSKI, - _BKE, - _SC, - _RC, - _RS, - _PC, - _TC, - _OLM, - _OLRUD, - _OLLHS, - ], - [ - [ - 2, - { - [_hH]: _xadm, - }, - ], - [ - 0, - { - [_hH]: _ar, - }, - ], - [ - 0, - { - [_hH]: _xae, - }, - ], - [ - 0, - { - [_hH]: _xar, - }, - ], - [ - 0, - { - [_hH]: _xaas, - }, - ], - [ - 4, - { - [_hH]: _LM_, - }, - ], - [ - 1, - { - [_hH]: _CL__, - }, - ], - [ - 0, - { - [_hH]: _xacc, - }, - ], - [ - 0, - { - [_hH]: _xacc_, - }, - ], - [ - 0, - { - [_hH]: _xacc__, - }, - ], - [ - 0, - { - [_hH]: _xacs, - }, - ], - [ - 0, - { - [_hH]: _xacs_, - }, - ], - [ - 0, - { - [_hH]: _xact, - }, - ], - [ - 0, - { - [_hH]: _ET, - }, - ], - [ - 1, - { - [_hH]: _xamm, - }, - ], - [ - 0, - { - [_hH]: _xavi, - }, - ], - [ - 0, - { - [_hH]: _CC_, - }, - ], - [ - 0, - { - [_hH]: _CD_, - }, - ], - [ - 0, - { - [_hH]: _CE_, - }, - ], - [ - 0, - { - [_hH]: _CL_, - }, - ], - [ - 0, - { - [_hH]: _CT_, - }, - ], - [ - 0, - { - [_hH]: _CR_, - }, - ], - [ - 4, - { - [_hH]: _Ex, - }, - ], - [ - 0, - { - [_hH]: _ES, - }, - ], - [ - 0, - { - [_hH]: _xawrl, - }, - ], - [ - 0, - { - [_hH]: _xasse, - }, - ], - [ - 128 | 0, - { - [_hPH]: _xam, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - () => SSEKMSKeyId, - { - [_hH]: _xasseakki, - }, - ], - [ - 2, - { - [_hH]: _xassebke, - }, - ], - [ - 0, - { - [_hH]: _xasc, - }, - ], - [ - 0, - { - [_hH]: _xarc, - }, - ], - [ - 0, - { - [_hH]: _xars, - }, - ], - [ - 1, - { - [_hH]: _xampc, - }, - ], - [ - 1, - { - [_hH]: _xatc, - }, - ], - [ - 0, - { - [_hH]: _xaolm, - }, - ], - [ - 5, - { - [_hH]: _xaolrud, - }, - ], - [ - 0, - { - [_hH]: _xaollh, - }, - ], - ] -); -export var HeadObjectRequest = struct( - n0, - _HOR, - 0, - [ - _B, - _IM, - _IMSf, - _INM, - _IUS, - _K, - _Ra, - _RCC, - _RCD, - _RCE, - _RCL, - _RCT, - _RE, - _VI, - _SSECA, - _SSECK, - _SSECKMD, - _RP, - _PN, - _EBO, - _CMh, - ], - [ - [0, 1], - [ - 0, - { - [_hH]: _IM_, - }, - ], - [ - 4, - { - [_hH]: _IMS_, - }, - ], - [ - 0, - { - [_hH]: _INM_, - }, - ], - [ - 4, - { - [_hH]: _IUS_, - }, - ], - [0, 1], - [ - 0, - { - [_hH]: _Ra, - }, - ], - [ - 0, - { - [_hQ]: _rcc, - }, - ], - [ - 0, - { - [_hQ]: _rcd, - }, - ], - [ - 0, - { - [_hQ]: _rce, - }, - ], - [ - 0, - { - [_hQ]: _rcl, - }, - ], - [ - 0, - { - [_hQ]: _rct, - }, - ], - [ - 6, - { - [_hQ]: _re, - }, - ], - [ - 0, - { - [_hQ]: _vI, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - () => SSECustomerKey, - { - [_hH]: _xasseck, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 1, - { - [_hQ]: _pN, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _xacm, - }, - ], - ] -); -export var IdempotencyParameterMismatch = error( - n0, - _IPM, - { - [_e]: _c, - [_hE]: 400, - }, - [], - [], - - __IdempotencyParameterMismatch -); -export var IndexDocument = struct(n0, _IDn, 0, [_Su], [0]); -export var Initiator = struct(n0, _In, 0, [_ID, _DN], [0, 0]); -export var InputSerialization = struct( - n0, - _IS, - 0, - [_CSV, _CTom, _JSON, _Parq], - [() => CSVInput, 0, () => JSONInput, () => ParquetInput] -); -export var IntelligentTieringAndOperator = struct( - n0, - _ITAO, - 0, - [_P, _T], - [ - 0, - [ - () => TagSet, - { - [_xN]: _Ta, - [_xF]: 1, - }, - ], - ] -); -export var IntelligentTieringConfiguration = struct( - n0, - _ITC, - 0, - [_I, _F, _S, _Tie], - [ - 0, - [() => IntelligentTieringFilter, 0], - 0, - [ - () => TieringList, - { - [_xN]: _Tier, - [_xF]: 1, - }, - ], - ] -); -export var IntelligentTieringFilter = struct( - n0, - _ITF, - 0, - [_P, _Ta, _An], - [0, () => Tag, [() => IntelligentTieringAndOperator, 0]] -); -export var InvalidObjectState = error( - n0, - _IOS, - { - [_e]: _c, - [_hE]: 403, - }, - [_SC, _AT], - [0, 0], - - __InvalidObjectState -); -export var InvalidRequest = error( - n0, - _IR, - { - [_e]: _c, - [_hE]: 400, - }, - [], - [], - - __InvalidRequest -); -export var InvalidWriteOffset = error( - n0, - _IWO, - { - [_e]: _c, - [_hE]: 400, - }, - [], - [], - - __InvalidWriteOffset -); -export var InventoryConfiguration = struct( - n0, - _IC, - 0, - [_Des, _IE, _F, _I, _IOV, _OF, _Sc], - [ - [() => InventoryDestination, 0], - 2, - () => InventoryFilter, - 0, - 0, - [() => InventoryOptionalFields, 0], - () => InventorySchedule, - ] -); -export var InventoryDestination = struct(n0, _IDnv, 0, [_SBD], [[() => InventoryS3BucketDestination, 0]]); -export var InventoryEncryption = struct( - n0, - _IEn, - 0, - [_SSES, _SSEKMS], - [ - [ - () => SSES3, - { - [_xN]: _SS, - }, - ], - [ - () => SSEKMS, - { - [_xN]: _SK, - }, - ], - ] -); -export var InventoryFilter = struct(n0, _IF, 0, [_P], [0]); -export var InventoryS3BucketDestination = struct( - n0, - _ISBD, - 0, - [_AI, _B, _Fo, _P, _En], - [0, 0, 0, 0, [() => InventoryEncryption, 0]] -); -export var InventorySchedule = struct(n0, _ISn, 0, [_Fr], [0]); -export var InventoryTableConfiguration = struct( - n0, - _ITCn, - 0, - [_CSo, _EC], - [0, () => MetadataTableEncryptionConfiguration] -); -export var InventoryTableConfigurationResult = struct( - n0, - _ITCR, - 0, - [_CSo, _TSa, _Err, _TNa, _TA], - [0, 0, () => ErrorDetails, 0, 0] -); -export var InventoryTableConfigurationUpdates = struct( - n0, - _ITCU, - 0, - [_CSo, _EC], - [0, () => MetadataTableEncryptionConfiguration] -); -export var JournalTableConfiguration = struct( - n0, - _JTC, - 0, - [_REe, _EC], - [() => RecordExpiration, () => MetadataTableEncryptionConfiguration] -); -export var JournalTableConfigurationResult = struct( - n0, - _JTCR, - 0, - [_TSa, _Err, _TNa, _TA, _REe], - [0, () => ErrorDetails, 0, 0, () => RecordExpiration] -); -export var JournalTableConfigurationUpdates = struct(n0, _JTCU, 0, [_REe], [() => RecordExpiration]); -export var JSONInput = struct(n0, _JSONI, 0, [_Ty], [0]); -export var JSONOutput = struct(n0, _JSONO, 0, [_RD], [0]); -export var LambdaFunctionConfiguration = struct( - n0, - _LFC, - 0, - [_I, _LFA, _Ev, _F], - [ - 0, - [ - 0, - { - [_xN]: _CF, - }, - ], - [ - 64 | 0, - { - [_xN]: _Eve, - [_xF]: 1, - }, - ], - [() => NotificationConfigurationFilter, 0], - ] -); -export var LifecycleExpiration = struct(n0, _LEi, 0, [_Da, _D, _EODM], [5, 1, 2]); -export var LifecycleRule = struct( - n0, - _LR, - 0, - [_E, _ID, _P, _F, _S, _Tr, _NVT, _NVE, _AIMU], - [ - () => LifecycleExpiration, - 0, - 0, - [() => LifecycleRuleFilter, 0], - 0, - [ - () => TransitionList, - { - [_xN]: _Tra, - [_xF]: 1, - }, - ], - [ - () => NoncurrentVersionTransitionList, - { - [_xN]: _NVTo, - [_xF]: 1, - }, - ], - () => NoncurrentVersionExpiration, - () => AbortIncompleteMultipartUpload, - ] -); -export var LifecycleRuleAndOperator = struct( - n0, - _LRAO, - 0, - [_P, _T, _OSGT, _OSLT], - [ - 0, - [ - () => TagSet, - { - [_xN]: _Ta, - [_xF]: 1, - }, - ], - 1, - 1, - ] -); -export var LifecycleRuleFilter = struct( - n0, - _LRF, - 0, - [_P, _Ta, _OSGT, _OSLT, _An], - [0, () => Tag, 1, 1, [() => LifecycleRuleAndOperator, 0]] -); -export var ListBucketAnalyticsConfigurationsOutput = struct( - n0, - _LBACO, - { - [_xN]: _LBACR, - }, - [_IT, _CTon, _NCT, _ACLn], - [ - 2, - 0, - 0, - [ - () => AnalyticsConfigurationList, - { - [_xN]: _ACn, - [_xF]: 1, - }, - ], - ] -); -export var ListBucketAnalyticsConfigurationsRequest = struct( - n0, - _LBACRi, - 0, - [_B, _CTon, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _ct, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var ListBucketIntelligentTieringConfigurationsOutput = struct( - n0, - _LBITCO, - 0, - [_IT, _CTon, _NCT, _ITCL], - [ - 2, - 0, - 0, - [ - () => IntelligentTieringConfigurationList, - { - [_xN]: _ITC, - [_xF]: 1, - }, - ], - ] -); -export var ListBucketIntelligentTieringConfigurationsRequest = struct( - n0, - _LBITCR, - 0, - [_B, _CTon, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _ct, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var ListBucketInventoryConfigurationsOutput = struct( - n0, - _LBICO, - { - [_xN]: _LICR, - }, - [_CTon, _ICL, _IT, _NCT], - [ - 0, - [ - () => InventoryConfigurationList, - { - [_xN]: _IC, - [_xF]: 1, - }, - ], - 2, - 0, - ] -); -export var ListBucketInventoryConfigurationsRequest = struct( - n0, - _LBICR, - 0, - [_B, _CTon, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _ct, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var ListBucketMetricsConfigurationsOutput = struct( - n0, - _LBMCO, - { - [_xN]: _LMCR, - }, - [_IT, _CTon, _NCT, _MCL], - [ - 2, - 0, - 0, - [ - () => MetricsConfigurationList, - { - [_xN]: _MCe, - [_xF]: 1, - }, - ], - ] -); -export var ListBucketMetricsConfigurationsRequest = struct( - n0, - _LBMCR, - 0, - [_B, _CTon, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _ct, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var ListBucketsOutput = struct( - n0, - _LBO, - { - [_xN]: _LAMBR, - }, - [_Bu, _O, _CTon, _P], - [[() => Buckets, 0], () => Owner, 0, 0] -); -export var ListBucketsRequest = struct( - n0, - _LBR, - 0, - [_MB, _CTon, _P, _BR], - [ - [ - 1, - { - [_hQ]: _mb, - }, - ], - [ - 0, - { - [_hQ]: _ct, - }, - ], - [ - 0, - { - [_hQ]: _p, - }, - ], - [ - 0, - { - [_hQ]: _br, - }, - ], - ] -); -export var ListDirectoryBucketsOutput = struct( - n0, - _LDBO, - { - [_xN]: _LAMDBR, - }, - [_Bu, _CTon], - [[() => Buckets, 0], 0] -); -export var ListDirectoryBucketsRequest = struct( - n0, - _LDBR, - 0, - [_CTon, _MDB], - [ - [ - 0, - { - [_hQ]: _ct, - }, - ], - [ - 1, - { - [_hQ]: _mdb, - }, - ], - ] -); -export var ListMultipartUploadsOutput = struct( - n0, - _LMUO, - { - [_xN]: _LMUR, - }, - [_B, _KM, _UIM, _NKM, _P, _Deli, _NUIM, _MUa, _IT, _U, _CPom, _ETnc, _RC], - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 2, - [ - () => MultipartUploadList, - { - [_xN]: _Up, - [_xF]: 1, - }, - ], - [ - () => CommonPrefixList, - { - [_xF]: 1, - }, - ], - 0, - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var ListMultipartUploadsRequest = struct( - n0, - _LMURi, - 0, - [_B, _Deli, _ETnc, _KM, _MUa, _P, _UIM, _EBO, _RP], - [ - [0, 1], - [ - 0, - { - [_hQ]: _d, - }, - ], - [ - 0, - { - [_hQ]: _et, - }, - ], - [ - 0, - { - [_hQ]: _km, - }, - ], - [ - 1, - { - [_hQ]: _mu, - }, - ], - [ - 0, - { - [_hQ]: _p, - }, - ], - [ - 0, - { - [_hQ]: _uim, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - ] -); -export var ListObjectsOutput = struct( - n0, - _LOO, - { - [_xN]: _LBRi, - }, - [_IT, _Ma, _NM, _Con, _N, _P, _Deli, _MK, _CPom, _ETnc, _RC], - [ - 2, - 0, - 0, - [ - () => ObjectList, - { - [_xF]: 1, - }, - ], - 0, - 0, - 0, - 1, - [ - () => CommonPrefixList, - { - [_xF]: 1, - }, - ], - 0, - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var ListObjectsRequest = struct( - n0, - _LOR, - 0, - [_B, _Deli, _ETnc, _Ma, _MK, _P, _RP, _EBO, _OOA], - [ - [0, 1], - [ - 0, - { - [_hQ]: _d, - }, - ], - [ - 0, - { - [_hQ]: _et, - }, - ], - [ - 0, - { - [_hQ]: _m, - }, - ], - [ - 1, - { - [_hQ]: _mk, - }, - ], - [ - 0, - { - [_hQ]: _p, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 64 | 0, - { - [_hH]: _xaooa, - }, - ], - ] -); -export var ListObjectsV2Output = struct( - n0, - _LOVO, - { - [_xN]: _LBRi, - }, - [_IT, _Con, _N, _P, _Deli, _MK, _CPom, _ETnc, _KC, _CTon, _NCT, _SA, _RC], - [ - 2, - [ - () => ObjectList, - { - [_xF]: 1, - }, - ], - 0, - 0, - 0, - 1, - [ - () => CommonPrefixList, - { - [_xF]: 1, - }, - ], - 0, - 1, - 0, - 0, - 0, - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var ListObjectsV2Request = struct( - n0, - _LOVR, - 0, - [_B, _Deli, _ETnc, _MK, _P, _CTon, _FO, _SA, _RP, _EBO, _OOA], - [ - [0, 1], - [ - 0, - { - [_hQ]: _d, - }, - ], - [ - 0, - { - [_hQ]: _et, - }, - ], - [ - 1, - { - [_hQ]: _mk, - }, - ], - [ - 0, - { - [_hQ]: _p, - }, - ], - [ - 0, - { - [_hQ]: _ct, - }, - ], - [ - 2, - { - [_hQ]: _fo, - }, - ], - [ - 0, - { - [_hQ]: _sa, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 64 | 0, - { - [_hH]: _xaooa, - }, - ], - ] -); -export var ListObjectVersionsOutput = struct( - n0, - _LOVOi, - { - [_xN]: _LVR, - }, - [_IT, _KM, _VIM, _NKM, _NVIM, _Ve, _DMe, _N, _P, _Deli, _MK, _CPom, _ETnc, _RC], - [ - 2, - 0, - 0, - 0, - 0, - [ - () => ObjectVersionList, - { - [_xN]: _Ver, - [_xF]: 1, - }, - ], - [ - () => DeleteMarkers, - { - [_xN]: _DM, - [_xF]: 1, - }, - ], - 0, - 0, - 0, - 1, - [ - () => CommonPrefixList, - { - [_xF]: 1, - }, - ], - 0, - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var ListObjectVersionsRequest = struct( - n0, - _LOVRi, - 0, - [_B, _Deli, _ETnc, _KM, _MK, _P, _VIM, _EBO, _RP, _OOA], - [ - [0, 1], - [ - 0, - { - [_hQ]: _d, - }, - ], - [ - 0, - { - [_hQ]: _et, - }, - ], - [ - 0, - { - [_hQ]: _km, - }, - ], - [ - 1, - { - [_hQ]: _mk, - }, - ], - [ - 0, - { - [_hQ]: _p, - }, - ], - [ - 0, - { - [_hQ]: _vim, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 64 | 0, - { - [_hH]: _xaooa, - }, - ], - ] -); -export var ListPartsOutput = struct( - n0, - _LPO, - { - [_xN]: _LPR, - }, - [_AD, _ARI, _B, _K, _UI, _PNM, _NPNM, _MP, _IT, _Pa, _In, _O, _SC, _RC, _CA, _CT], - [ - [ - 4, - { - [_hH]: _xaad, - }, - ], - [ - 0, - { - [_hH]: _xaari, - }, - ], - 0, - 0, - 0, - 0, - 0, - 1, - 2, - [ - () => Parts, - { - [_xN]: _Par, - [_xF]: 1, - }, - ], - () => Initiator, - () => Owner, - 0, - [ - 0, - { - [_hH]: _xarc, - }, - ], - 0, - 0, - ] -); -export var ListPartsRequest = struct( - n0, - _LPRi, - 0, - [_B, _K, _MP, _PNM, _UI, _RP, _EBO, _SSECA, _SSECK, _SSECKMD], - [ - [0, 1], - [0, 1], - [ - 1, - { - [_hQ]: _mp, - }, - ], - [ - 0, - { - [_hQ]: _pnm, - }, - ], - [ - 0, - { - [_hQ]: _uI, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - () => SSECustomerKey, - { - [_hH]: _xasseck, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - ] -); -export var LocationInfo = struct(n0, _LI, 0, [_Ty, _N], [0, 0]); -export var LoggingEnabled = struct( - n0, - _LE, - 0, - [_TB, _TG, _TP, _TOKF], - [0, [() => TargetGrants, 0], 0, [() => TargetObjectKeyFormat, 0]] -); -export var MetadataConfiguration = struct( - n0, - _MC, - 0, - [_JTC, _ITCn], - [() => JournalTableConfiguration, () => InventoryTableConfiguration] -); -export var MetadataConfigurationResult = struct( - n0, - _MCR, - 0, - [_DRes, _JTCR, _ITCR], - [() => DestinationResult, () => JournalTableConfigurationResult, () => InventoryTableConfigurationResult] -); -export var MetadataEntry = struct(n0, _ME, 0, [_N, _V], [0, 0]); -export var MetadataTableConfiguration = struct(n0, _MTC, 0, [_STD], [() => S3TablesDestination]); -export var MetadataTableConfigurationResult = struct(n0, _MTCR, 0, [_STDR], [() => S3TablesDestinationResult]); -export var MetadataTableEncryptionConfiguration = struct(n0, _MTEC, 0, [_SAs, _KKA], [0, 0]); -export var Metrics = struct(n0, _Me, 0, [_S, _ETv], [0, () => ReplicationTimeValue]); -export var MetricsAndOperator = struct( - n0, - _MAO, - 0, - [_P, _T, _APAc], - [ - 0, - [ - () => TagSet, - { - [_xN]: _Ta, - [_xF]: 1, - }, - ], - 0, - ] -); -export var MetricsConfiguration = struct(n0, _MCe, 0, [_I, _F], [0, [() => MetricsFilter, 0]]); -export var MultipartUpload = struct( - n0, - _MU, - 0, - [_UI, _K, _Ini, _SC, _O, _In, _CA, _CT], - [0, 0, 4, 0, () => Owner, () => Initiator, 0, 0] -); -export var NoncurrentVersionExpiration = struct(n0, _NVE, 0, [_ND, _NNV], [1, 1]); -export var NoncurrentVersionTransition = struct(n0, _NVTo, 0, [_ND, _SC, _NNV], [1, 0, 1]); -export var NoSuchBucket = error( - n0, - _NSB, - { - [_e]: _c, - [_hE]: 404, - }, - [], - [], - - __NoSuchBucket -); -export var NoSuchKey = error( - n0, - _NSK, - { - [_e]: _c, - [_hE]: 404, - }, - [], - [], - - __NoSuchKey -); -export var NoSuchUpload = error( - n0, - _NSU, - { - [_e]: _c, - [_hE]: 404, - }, - [], - [], - - __NoSuchUpload -); -export var NotFound = error( - n0, - _NF, - { - [_e]: _c, - }, - [], - [], - - __NotFound -); -export var NotificationConfiguration = struct( - n0, - _NC, - 0, - [_TCo, _QCu, _LFCa, _EBC], - [ - [ - () => TopicConfigurationList, - { - [_xN]: _TCop, - [_xF]: 1, - }, - ], - [ - () => QueueConfigurationList, - { - [_xN]: _QCue, - [_xF]: 1, - }, - ], - [ - () => LambdaFunctionConfigurationList, - { - [_xN]: _CFC, - [_xF]: 1, - }, - ], - () => EventBridgeConfiguration, - ] -); -export var NotificationConfigurationFilter = struct( - n0, - _NCF, - 0, - [_K], - [ - [ - () => S3KeyFilter, - { - [_xN]: _SKe, - }, - ], - ] -); -export var _Object = struct( - n0, - _Obj, - 0, - [_K, _LM, _ET, _CA, _CT, _Si, _SC, _O, _RSe], - [ - 0, - 4, - 0, - [ - 64 | 0, - { - [_xF]: 1, - }, - ], - 0, - 1, - 0, - () => Owner, - () => RestoreStatus, - ] -); -export var ObjectAlreadyInActiveTierError = error( - n0, - _OAIATE, - { - [_e]: _c, - [_hE]: 403, - }, - [], - [], - - __ObjectAlreadyInActiveTierError -); -export var ObjectIdentifier = struct(n0, _OI, 0, [_K, _VI, _ET, _LMT, _Si], [0, 0, 0, 6, 1]); -export var ObjectLockConfiguration = struct(n0, _OLC, 0, [_OLE, _Ru], [0, () => ObjectLockRule]); -export var ObjectLockLegalHold = struct(n0, _OLLH, 0, [_S], [0]); -export var ObjectLockRetention = struct(n0, _OLR, 0, [_Mo, _RUD], [0, 5]); -export var ObjectLockRule = struct(n0, _OLRb, 0, [_DRe], [() => DefaultRetention]); -export var ObjectNotInActiveTierError = error( - n0, - _ONIATE, - { - [_e]: _c, - [_hE]: 403, - }, - [], - [], - - __ObjectNotInActiveTierError -); -export var ObjectPart = struct(n0, _OPb, 0, [_PN, _Si, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh], [1, 1, 0, 0, 0, 0, 0]); -export var ObjectVersion = struct( - n0, - _OV, - 0, - [_ET, _CA, _CT, _Si, _SC, _K, _VI, _IL, _LM, _O, _RSe], - [ - 0, - [ - 64 | 0, - { - [_xF]: 1, - }, - ], - 0, - 1, - 0, - 0, - 0, - 2, - 4, - () => Owner, - () => RestoreStatus, - ] -); -export var OutputLocation = struct(n0, _OL, 0, [_S_], [[() => S3Location, 0]]); -export var OutputSerialization = struct(n0, _OSu, 0, [_CSV, _JSON], [() => CSVOutput, () => JSONOutput]); -export var Owner = struct(n0, _O, 0, [_DN, _ID], [0, 0]); -export var OwnershipControls = struct( - n0, - _OC, - 0, - [_R], - [ - [ - () => OwnershipControlsRules, - { - [_xN]: _Ru, - [_xF]: 1, - }, - ], - ] -); -export var OwnershipControlsRule = struct(n0, _OCR, 0, [_OO], [0]); -export var ParquetInput = struct(n0, _PI, 0, [], []); -export var Part = struct( - n0, - _Par, - 0, - [_PN, _LM, _ET, _Si, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh], - [1, 4, 0, 1, 0, 0, 0, 0, 0] -); -export var PartitionedPrefix = struct( - n0, - _PP, - { - [_xN]: _PP, - }, - [_PDS], - [0] -); -export var PolicyStatus = struct( - n0, - _PS, - 0, - [_IP], - [ - [ - 2, - { - [_xN]: _IP, - }, - ], - ] -); -export var Progress = struct(n0, _Pr, 0, [_BS, _BP, _BRy], [1, 1, 1]); -export var ProgressEvent = struct( - n0, - _PE, - 0, - [_Det], - [ - [ - () => Progress, - { - [_eP]: 1, - }, - ], - ] -); -export var PublicAccessBlockConfiguration = struct( - n0, - _PABC, - 0, - [_BPA, _IPA, _BPP, _RPB], - [ - [ - 2, - { - [_xN]: _BPA, - }, - ], - [ - 2, - { - [_xN]: _IPA, - }, - ], - [ - 2, - { - [_xN]: _BPP, - }, - ], - [ - 2, - { - [_xN]: _RPB, - }, - ], - ] -); -export var PutBucketAccelerateConfigurationRequest = struct( - n0, - _PBACR, - 0, - [_B, _AC, _EBO, _CA], - [ - [0, 1], - [ - () => AccelerateConfiguration, - { - [_xN]: _AC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - ] -); -export var PutBucketAclRequest = struct( - n0, - _PBAR, - 0, - [_ACL_, _ACP, _B, _CMD, _CA, _GFC, _GR, _GRACP, _GW, _GWACP, _EBO], - [ - [ - 0, - { - [_hH]: _xaa, - }, - ], - [ - () => AccessControlPolicy, - { - [_xN]: _ACP, - [_hP]: 1, - }, - ], - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - 0, - { - [_hH]: _xagfc, - }, - ], - [ - 0, - { - [_hH]: _xagr, - }, - ], - [ - 0, - { - [_hH]: _xagra, - }, - ], - [ - 0, - { - [_hH]: _xagw, - }, - ], - [ - 0, - { - [_hH]: _xagwa, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutBucketAnalyticsConfigurationRequest = struct( - n0, - _PBACRu, - 0, - [_B, _I, _ACn, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _i, - }, - ], - [ - () => AnalyticsConfiguration, - { - [_xN]: _ACn, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutBucketCorsRequest = struct( - n0, - _PBCR, - 0, - [_B, _CORSC, _CMD, _CA, _EBO], - [ - [0, 1], - [ - () => CORSConfiguration, - { - [_xN]: _CORSC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutBucketEncryptionRequest = struct( - n0, - _PBER, - 0, - [_B, _CMD, _CA, _SSEC, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - () => ServerSideEncryptionConfiguration, - { - [_xN]: _SSEC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutBucketIntelligentTieringConfigurationRequest = struct( - n0, - _PBITCR, - 0, - [_B, _I, _EBO, _ITC], - [ - [0, 1], - [ - 0, - { - [_hQ]: _i, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - () => IntelligentTieringConfiguration, - { - [_xN]: _ITC, - [_hP]: 1, - }, - ], - ] -); -export var PutBucketInventoryConfigurationRequest = struct( - n0, - _PBICR, - 0, - [_B, _I, _IC, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _i, - }, - ], - [ - () => InventoryConfiguration, - { - [_xN]: _IC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutBucketLifecycleConfigurationOutput = struct( - n0, - _PBLCO, - 0, - [_TDMOS], - [ - [ - 0, - { - [_hH]: _xatdmos, - }, - ], - ] -); -export var PutBucketLifecycleConfigurationRequest = struct( - n0, - _PBLCR, - 0, - [_B, _CA, _LCi, _EBO, _TDMOS], - [ - [0, 1], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - () => BucketLifecycleConfiguration, - { - [_xN]: _LCi, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _xatdmos, - }, - ], - ] -); -export var PutBucketLoggingRequest = struct( - n0, - _PBLR, - 0, - [_B, _BLS, _CMD, _CA, _EBO], - [ - [0, 1], - [ - () => BucketLoggingStatus, - { - [_xN]: _BLS, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutBucketMetricsConfigurationRequest = struct( - n0, - _PBMCR, - 0, - [_B, _I, _MCe, _EBO], - [ - [0, 1], - [ - 0, - { - [_hQ]: _i, - }, - ], - [ - () => MetricsConfiguration, - { - [_xN]: _MCe, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutBucketNotificationConfigurationRequest = struct( - n0, - _PBNCR, - 0, - [_B, _NC, _EBO, _SDV], - [ - [0, 1], - [ - () => NotificationConfiguration, - { - [_xN]: _NC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 2, - { - [_hH]: _xasdv, - }, - ], - ] -); -export var PutBucketOwnershipControlsRequest = struct( - n0, - _PBOCR, - 0, - [_B, _CMD, _EBO, _OC, _CA], - [ - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - () => OwnershipControls, - { - [_xN]: _OC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - ] -); -export var PutBucketPolicyRequest = struct( - n0, - _PBPR, - 0, - [_B, _CMD, _CA, _CRSBA, _Po, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - 2, - { - [_hH]: _xacrsba, - }, - ], - [0, 16], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutBucketReplicationRequest = struct( - n0, - _PBRR, - 0, - [_B, _CMD, _CA, _RCe, _To, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - () => ReplicationConfiguration, - { - [_xN]: _RCe, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xabolt, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutBucketRequestPaymentRequest = struct( - n0, - _PBRPR, - 0, - [_B, _CMD, _CA, _RPC, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - () => RequestPaymentConfiguration, - { - [_xN]: _RPC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutBucketTaggingRequest = struct( - n0, - _PBTR, - 0, - [_B, _CMD, _CA, _Tag, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - () => Tagging, - { - [_xN]: _Tag, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutBucketVersioningRequest = struct( - n0, - _PBVR, - 0, - [_B, _CMD, _CA, _MFA, _VC, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - 0, - { - [_hH]: _xam_, - }, - ], - [ - () => VersioningConfiguration, - { - [_xN]: _VC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutBucketWebsiteRequest = struct( - n0, - _PBWR, - 0, - [_B, _CMD, _CA, _WC, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - () => WebsiteConfiguration, - { - [_xN]: _WC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutObjectAclOutput = struct( - n0, - _POAO, - 0, - [_RC], - [ - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var PutObjectAclRequest = struct( - n0, - _POAR, - 0, - [_ACL_, _ACP, _B, _CMD, _CA, _GFC, _GR, _GRACP, _GW, _GWACP, _K, _RP, _VI, _EBO], - [ - [ - 0, - { - [_hH]: _xaa, - }, - ], - [ - () => AccessControlPolicy, - { - [_xN]: _ACP, - [_hP]: 1, - }, - ], - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - 0, - { - [_hH]: _xagfc, - }, - ], - [ - 0, - { - [_hH]: _xagr, - }, - ], - [ - 0, - { - [_hH]: _xagra, - }, - ], - [ - 0, - { - [_hH]: _xagw, - }, - ], - [ - 0, - { - [_hH]: _xagwa, - }, - ], - [0, 1], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hQ]: _vI, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutObjectLegalHoldOutput = struct( - n0, - _POLHO, - 0, - [_RC], - [ - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var PutObjectLegalHoldRequest = struct( - n0, - _POLHR, - 0, - [_B, _K, _LH, _RP, _VI, _CMD, _CA, _EBO], - [ - [0, 1], - [0, 1], - [ - () => ObjectLockLegalHold, - { - [_xN]: _LH, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hQ]: _vI, - }, - ], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutObjectLockConfigurationOutput = struct( - n0, - _POLCO, - 0, - [_RC], - [ - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var PutObjectLockConfigurationRequest = struct( - n0, - _POLCR, - 0, - [_B, _OLC, _RP, _To, _CMD, _CA, _EBO], - [ - [0, 1], - [ - () => ObjectLockConfiguration, - { - [_xN]: _OLC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xabolt, - }, - ], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutObjectOutput = struct( - n0, - _POO, - 0, - [ - _E, - _ET, - _CCRC, - _CCRCC, - _CCRCNVME, - _CSHA, - _CSHAh, - _CT, - _SSE, - _VI, - _SSECA, - _SSECKMD, - _SSEKMSKI, - _SSEKMSEC, - _BKE, - _Si, - _RC, - ], - [ - [ - 0, - { - [_hH]: _xae, - }, - ], - [ - 0, - { - [_hH]: _ET, - }, - ], - [ - 0, - { - [_hH]: _xacc, - }, - ], - [ - 0, - { - [_hH]: _xacc_, - }, - ], - [ - 0, - { - [_hH]: _xacc__, - }, - ], - [ - 0, - { - [_hH]: _xacs, - }, - ], - [ - 0, - { - [_hH]: _xacs_, - }, - ], - [ - 0, - { - [_hH]: _xact, - }, - ], - [ - 0, - { - [_hH]: _xasse, - }, - ], - [ - 0, - { - [_hH]: _xavi, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - () => SSEKMSKeyId, - { - [_hH]: _xasseakki, - }, - ], - [ - () => SSEKMSEncryptionContext, - { - [_hH]: _xassec, - }, - ], - [ - 2, - { - [_hH]: _xassebke, - }, - ], - [ - 1, - { - [_hH]: _xaos, - }, - ], - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var PutObjectRequest = struct( - n0, - _POR, - 0, - [ - _ACL_, - _Bo, - _B, - _CC, - _CDo, - _CEo, - _CL, - _CLo, - _CMD, - _CTo, - _CA, - _CCRC, - _CCRCC, - _CCRCNVME, - _CSHA, - _CSHAh, - _Ex, - _IM, - _INM, - _GFC, - _GR, - _GRACP, - _GWACP, - _K, - _WOB, - _M, - _SSE, - _SC, - _WRL, - _SSECA, - _SSECK, - _SSECKMD, - _SSEKMSKI, - _SSEKMSEC, - _BKE, - _RP, - _Tag, - _OLM, - _OLRUD, - _OLLHS, - _EBO, - ], - [ - [ - 0, - { - [_hH]: _xaa, - }, - ], - [() => StreamingBlob, 16], - [0, 1], - [ - 0, - { - [_hH]: _CC_, - }, - ], - [ - 0, - { - [_hH]: _CD_, - }, - ], - [ - 0, - { - [_hH]: _CE_, - }, - ], - [ - 0, - { - [_hH]: _CL_, - }, - ], - [ - 1, - { - [_hH]: _CL__, - }, - ], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _CT_, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - 0, - { - [_hH]: _xacc, - }, - ], - [ - 0, - { - [_hH]: _xacc_, - }, - ], - [ - 0, - { - [_hH]: _xacc__, - }, - ], - [ - 0, - { - [_hH]: _xacs, - }, - ], - [ - 0, - { - [_hH]: _xacs_, - }, - ], - [ - 4, - { - [_hH]: _Ex, - }, - ], - [ - 0, - { - [_hH]: _IM_, - }, - ], - [ - 0, - { - [_hH]: _INM_, - }, - ], - [ - 0, - { - [_hH]: _xagfc, - }, - ], - [ - 0, - { - [_hH]: _xagr, - }, - ], - [ - 0, - { - [_hH]: _xagra, - }, - ], - [ - 0, - { - [_hH]: _xagwa, - }, - ], - [0, 1], - [ - 1, - { - [_hH]: _xawob, - }, - ], - [ - 128 | 0, - { - [_hPH]: _xam, - }, - ], - [ - 0, - { - [_hH]: _xasse, - }, - ], - [ - 0, - { - [_hH]: _xasc, - }, - ], - [ - 0, - { - [_hH]: _xawrl, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - () => SSECustomerKey, - { - [_hH]: _xasseck, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - () => SSEKMSKeyId, - { - [_hH]: _xasseakki, - }, - ], - [ - () => SSEKMSEncryptionContext, - { - [_hH]: _xassec, - }, - ], - [ - 2, - { - [_hH]: _xassebke, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xat, - }, - ], - [ - 0, - { - [_hH]: _xaolm, - }, - ], - [ - 5, - { - [_hH]: _xaolrud, - }, - ], - [ - 0, - { - [_hH]: _xaollh, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutObjectRetentionOutput = struct( - n0, - _PORO, - 0, - [_RC], - [ - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var PutObjectRetentionRequest = struct( - n0, - _PORR, - 0, - [_B, _K, _Ret, _RP, _VI, _BGR, _CMD, _CA, _EBO], - [ - [0, 1], - [0, 1], - [ - () => ObjectLockRetention, - { - [_xN]: _Ret, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hQ]: _vI, - }, - ], - [ - 2, - { - [_hH]: _xabgr, - }, - ], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var PutObjectTaggingOutput = struct( - n0, - _POTO, - 0, - [_VI], - [ - [ - 0, - { - [_hH]: _xavi, - }, - ], - ] -); -export var PutObjectTaggingRequest = struct( - n0, - _POTR, - 0, - [_B, _K, _VI, _CMD, _CA, _Tag, _EBO, _RP], - [ - [0, 1], - [0, 1], - [ - 0, - { - [_hQ]: _vI, - }, - ], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - () => Tagging, - { - [_xN]: _Tag, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - ] -); -export var PutPublicAccessBlockRequest = struct( - n0, - _PPABR, - 0, - [_B, _CMD, _CA, _PABC, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - () => PublicAccessBlockConfiguration, - { - [_xN]: _PABC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var QueueConfiguration = struct( - n0, - _QCue, - 0, - [_I, _QA, _Ev, _F], - [ - 0, - [ - 0, - { - [_xN]: _Qu, - }, - ], - [ - 64 | 0, - { - [_xN]: _Eve, - [_xF]: 1, - }, - ], - [() => NotificationConfigurationFilter, 0], - ] -); -export var RecordExpiration = struct(n0, _REe, 0, [_E, _D], [0, 1]); -export var RecordsEvent = struct( - n0, - _REec, - 0, - [_Payl], - [ - [ - 21, - { - [_eP]: 1, - }, - ], - ] -); -export var Redirect = struct(n0, _Red, 0, [_HN, _HRC, _Pro, _RKPW, _RKW], [0, 0, 0, 0, 0]); -export var RedirectAllRequestsTo = struct(n0, _RART, 0, [_HN, _Pro], [0, 0]); -export var RenameObjectOutput = struct(n0, _ROO, 0, [], []); -export var RenameObjectRequest = struct( - n0, - _ROR, - 0, - [_B, _K, _RSen, _DIM, _DINM, _DIMS, _DIUS, _SIM, _SINM, _SIMS, _SIUS, _CTl], - [ - [0, 1], - [0, 1], - [ - 0, - { - [_hH]: _xars_, - }, - ], - [ - 0, - { - [_hH]: _IM_, - }, - ], - [ - 0, - { - [_hH]: _INM_, - }, - ], - [ - 4, - { - [_hH]: _IMS_, - }, - ], - [ - 4, - { - [_hH]: _IUS_, - }, - ], - [ - 0, - { - [_hH]: _xarsim, - }, - ], - [ - 0, - { - [_hH]: _xarsinm, - }, - ], - [ - 6, - { - [_hH]: _xarsims, - }, - ], - [ - 6, - { - [_hH]: _xarsius, - }, - ], - [ - 0, - { - [_hH]: _xact_, - [_iT]: 1, - }, - ], - ] -); -export var ReplicaModifications = struct(n0, _RM, 0, [_S], [0]); -export var ReplicationConfiguration = struct( - n0, - _RCe, - 0, - [_Ro, _R], - [ - 0, - [ - () => ReplicationRules, - { - [_xN]: _Ru, - [_xF]: 1, - }, - ], - ] -); -export var ReplicationRule = struct( - n0, - _RRe, - 0, - [_ID, _Pri, _P, _F, _S, _SSC, _EOR, _Des, _DMR], - [ - 0, - 1, - 0, - [() => ReplicationRuleFilter, 0], - 0, - () => SourceSelectionCriteria, - () => ExistingObjectReplication, - () => Destination, - () => DeleteMarkerReplication, - ] -); -export var ReplicationRuleAndOperator = struct( - n0, - _RRAO, - 0, - [_P, _T], - [ - 0, - [ - () => TagSet, - { - [_xN]: _Ta, - [_xF]: 1, - }, - ], - ] -); -export var ReplicationRuleFilter = struct( - n0, - _RRF, - 0, - [_P, _Ta, _An], - [0, () => Tag, [() => ReplicationRuleAndOperator, 0]] -); -export var ReplicationTime = struct(n0, _RT, 0, [_S, _Tim], [0, () => ReplicationTimeValue]); -export var ReplicationTimeValue = struct(n0, _RTV, 0, [_Mi], [1]); -export var RequestPaymentConfiguration = struct(n0, _RPC, 0, [_Pay], [0]); -export var RequestProgress = struct(n0, _RPe, 0, [_Ena], [2]); -export var RestoreObjectOutput = struct( - n0, - _ROOe, - 0, - [_RC, _ROP], - [ - [ - 0, - { - [_hH]: _xarc, - }, - ], - [ - 0, - { - [_hH]: _xarop, - }, - ], - ] -); -export var RestoreObjectRequest = struct( - n0, - _RORe, - 0, - [_B, _K, _VI, _RRes, _RP, _CA, _EBO], - [ - [0, 1], - [0, 1], - [ - 0, - { - [_hQ]: _vI, - }, - ], - [ - () => RestoreRequest, - { - [_hP]: 1, - [_xN]: _RRes, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var RestoreRequest = struct( - n0, - _RRes, - 0, - [_D, _GJP, _Ty, _Ti, _Desc, _SP, _OL], - [1, () => GlacierJobParameters, 0, 0, 0, () => SelectParameters, [() => OutputLocation, 0]] -); -export var RestoreStatus = struct(n0, _RSe, 0, [_IRIP, _RED], [2, 4]); -export var RoutingRule = struct(n0, _RRo, 0, [_Co, _Red], [() => Condition, () => Redirect]); -export var S3KeyFilter = struct( - n0, - _SKF, - 0, - [_FRi], - [ - [ - () => FilterRuleList, - { - [_xN]: _FR, - [_xF]: 1, - }, - ], - ] -); -export var S3Location = struct( - n0, - _SL, - 0, - [_BN, _P, _En, _CACL, _ACL, _Tag, _UM, _SC], - [0, 0, [() => Encryption, 0], 0, [() => Grants, 0], [() => Tagging, 0], [() => UserMetadata, 0], 0] -); -export var S3TablesDestination = struct(n0, _STD, 0, [_TBA, _TNa], [0, 0]); -export var S3TablesDestinationResult = struct(n0, _STDR, 0, [_TBA, _TNa, _TA, _TN], [0, 0, 0, 0]); -export var ScanRange = struct(n0, _SR, 0, [_St, _End], [1, 1]); -export var SelectObjectContentOutput = struct(n0, _SOCO, 0, [_Payl], [[() => SelectObjectContentEventStream, 16]]); -export var SelectObjectContentRequest = struct( - n0, - _SOCR, - 0, - [_B, _K, _SSECA, _SSECK, _SSECKMD, _Exp, _ETx, _RPe, _IS, _OSu, _SR, _EBO], - [ - [0, 1], - [0, 1], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - () => SSECustomerKey, - { - [_hH]: _xasseck, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - 0, - 0, - () => RequestProgress, - () => InputSerialization, - () => OutputSerialization, - () => ScanRange, - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var SelectParameters = struct( - n0, - _SP, - 0, - [_IS, _ETx, _Exp, _OSu], - [() => InputSerialization, 0, 0, () => OutputSerialization] -); -export var ServerSideEncryptionByDefault = struct(n0, _SSEBD, 0, [_SSEA, _KMSMKID], [0, [() => SSEKMSKeyId, 0]]); -export var ServerSideEncryptionConfiguration = struct( - n0, - _SSEC, - 0, - [_R], - [ - [ - () => ServerSideEncryptionRules, - { - [_xN]: _Ru, - [_xF]: 1, - }, - ], - ] -); -export var ServerSideEncryptionRule = struct( - n0, - _SSER, - 0, - [_ASSEBD, _BKE], - [[() => ServerSideEncryptionByDefault, 0], 2] -); -export var SessionCredentials = struct( - n0, - _SCe, - 0, - [_AKI, _SAK, _ST, _E], - [ - [ - 0, - { - [_xN]: _AKI, - }, - ], - [ - () => SessionCredentialValue, - { - [_xN]: _SAK, - }, - ], - [ - () => SessionCredentialValue, - { - [_xN]: _ST, - }, - ], - [ - 4, - { - [_xN]: _E, - }, - ], - ] -); -export var SimplePrefix = struct( - n0, - _SPi, - { - [_xN]: _SPi, - }, - [], - [] -); -export var SourceSelectionCriteria = struct( - n0, - _SSC, - 0, - [_SKEO, _RM], - [() => SseKmsEncryptedObjects, () => ReplicaModifications] -); -export var SSEKMS = struct( - n0, - _SSEKMS, - { - [_xN]: _SK, - }, - [_KI], - [[() => SSEKMSKeyId, 0]] -); -export var SseKmsEncryptedObjects = struct(n0, _SKEO, 0, [_S], [0]); -export var SSES3 = struct( - n0, - _SSES, - { - [_xN]: _SS, - }, - [], - [] -); -export var Stats = struct(n0, _Sta, 0, [_BS, _BP, _BRy], [1, 1, 1]); -export var StatsEvent = struct( - n0, - _SE, - 0, - [_Det], - [ - [ - () => Stats, - { - [_eP]: 1, - }, - ], - ] -); -export var StorageClassAnalysis = struct(n0, _SCA, 0, [_DE], [() => StorageClassAnalysisDataExport]); -export var StorageClassAnalysisDataExport = struct(n0, _SCADE, 0, [_OSV, _Des], [0, () => AnalyticsExportDestination]); -export var Tag = struct(n0, _Ta, 0, [_K, _V], [0, 0]); -export var Tagging = struct(n0, _Tag, 0, [_TS], [[() => TagSet, 0]]); -export var TargetGrant = struct( - n0, - _TGa, - 0, - [_Gra, _Pe], - [ - [ - () => Grantee, - { - [_xNm]: [_x, _hi], - }, - ], - 0, - ] -); -export var TargetObjectKeyFormat = struct( - n0, - _TOKF, - 0, - [_SPi, _PP], - [ - [ - () => SimplePrefix, - { - [_xN]: _SPi, - }, - ], - [ - () => PartitionedPrefix, - { - [_xN]: _PP, - }, - ], - ] -); -export var Tiering = struct(n0, _Tier, 0, [_D, _AT], [1, 0]); -export var TooManyParts = error( - n0, - _TMP, - { - [_e]: _c, - [_hE]: 400, - }, - [], - [], - - __TooManyParts -); -export var TopicConfiguration = struct( - n0, - _TCop, - 0, - [_I, _TAo, _Ev, _F], - [ - 0, - [ - 0, - { - [_xN]: _Top, - }, - ], - [ - 64 | 0, - { - [_xN]: _Eve, - [_xF]: 1, - }, - ], - [() => NotificationConfigurationFilter, 0], - ] -); -export var Transition = struct(n0, _Tra, 0, [_Da, _D, _SC], [5, 1, 0]); -export var UpdateBucketMetadataInventoryTableConfigurationRequest = struct( - n0, - _UBMITCR, - 0, - [_B, _CMD, _CA, _ITCn, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - () => InventoryTableConfigurationUpdates, - { - [_xN]: _ITCn, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var UpdateBucketMetadataJournalTableConfigurationRequest = struct( - n0, - _UBMJTCR, - 0, - [_B, _CMD, _CA, _JTC, _EBO], - [ - [0, 1], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - () => JournalTableConfigurationUpdates, - { - [_xN]: _JTC, - [_hP]: 1, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var UploadPartCopyOutput = struct( - n0, - _UPCO, - 0, - [_CSVI, _CPR, _SSE, _SSECA, _SSECKMD, _SSEKMSKI, _BKE, _RC], - [ - [ - 0, - { - [_hH]: _xacsvi, - }, - ], - [() => CopyPartResult, 16], - [ - 0, - { - [_hH]: _xasse, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - () => SSEKMSKeyId, - { - [_hH]: _xasseakki, - }, - ], - [ - 2, - { - [_hH]: _xassebke, - }, - ], - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var UploadPartCopyRequest = struct( - n0, - _UPCR, - 0, - [ - _B, - _CS, - _CSIM, - _CSIMS, - _CSINM, - _CSIUS, - _CSRo, - _K, - _PN, - _UI, - _SSECA, - _SSECK, - _SSECKMD, - _CSSSECA, - _CSSSECK, - _CSSSECKMD, - _RP, - _EBO, - _ESBO, - ], - [ - [0, 1], - [ - 0, - { - [_hH]: _xacs__, - }, - ], - [ - 0, - { - [_hH]: _xacsim, - }, - ], - [ - 4, - { - [_hH]: _xacsims, - }, - ], - [ - 0, - { - [_hH]: _xacsinm, - }, - ], - [ - 4, - { - [_hH]: _xacsius, - }, - ], - [ - 0, - { - [_hH]: _xacsr, - }, - ], - [0, 1], - [ - 1, - { - [_hQ]: _pN, - }, - ], - [ - 0, - { - [_hQ]: _uI, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - () => SSECustomerKey, - { - [_hH]: _xasseck, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - 0, - { - [_hH]: _xacssseca, - }, - ], - [ - () => CopySourceSSECustomerKey, - { - [_hH]: _xacssseck, - }, - ], - [ - 0, - { - [_hH]: _xacssseckM, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - [ - 0, - { - [_hH]: _xasebo, - }, - ], - ] -); -export var UploadPartOutput = struct( - n0, - _UPO, - 0, - [_SSE, _ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _SSECA, _SSECKMD, _SSEKMSKI, _BKE, _RC], - [ - [ - 0, - { - [_hH]: _xasse, - }, - ], - [ - 0, - { - [_hH]: _ET, - }, - ], - [ - 0, - { - [_hH]: _xacc, - }, - ], - [ - 0, - { - [_hH]: _xacc_, - }, - ], - [ - 0, - { - [_hH]: _xacc__, - }, - ], - [ - 0, - { - [_hH]: _xacs, - }, - ], - [ - 0, - { - [_hH]: _xacs_, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - () => SSEKMSKeyId, - { - [_hH]: _xasseakki, - }, - ], - [ - 2, - { - [_hH]: _xassebke, - }, - ], - [ - 0, - { - [_hH]: _xarc, - }, - ], - ] -); -export var UploadPartRequest = struct( - n0, - _UPR, - 0, - [ - _Bo, - _B, - _CLo, - _CMD, - _CA, - _CCRC, - _CCRCC, - _CCRCNVME, - _CSHA, - _CSHAh, - _K, - _PN, - _UI, - _SSECA, - _SSECK, - _SSECKMD, - _RP, - _EBO, - ], - [ - [() => StreamingBlob, 16], - [0, 1], - [ - 1, - { - [_hH]: _CL__, - }, - ], - [ - 0, - { - [_hH]: _CM, - }, - ], - [ - 0, - { - [_hH]: _xasca, - }, - ], - [ - 0, - { - [_hH]: _xacc, - }, - ], - [ - 0, - { - [_hH]: _xacc_, - }, - ], - [ - 0, - { - [_hH]: _xacc__, - }, - ], - [ - 0, - { - [_hH]: _xacs, - }, - ], - [ - 0, - { - [_hH]: _xacs_, - }, - ], - [0, 1], - [ - 1, - { - [_hQ]: _pN, - }, - ], - [ - 0, - { - [_hQ]: _uI, - }, - ], - [ - 0, - { - [_hH]: _xasseca, - }, - ], - [ - () => SSECustomerKey, - { - [_hH]: _xasseck, - }, - ], - [ - 0, - { - [_hH]: _xasseckM, - }, - ], - [ - 0, - { - [_hH]: _xarp, - }, - ], - [ - 0, - { - [_hH]: _xaebo, - }, - ], - ] -); -export var VersioningConfiguration = struct( - n0, - _VC, - 0, - [_MFAD, _S], - [ - [ - 0, - { - [_xN]: _MDf, - }, - ], - 0, - ] -); -export var WebsiteConfiguration = struct( - n0, - _WC, - 0, - [_EDr, _IDn, _RART, _RR], - [() => ErrorDocument, () => IndexDocument, () => RedirectAllRequestsTo, [() => RoutingRules, 0]] -); -export var WriteGetObjectResponseRequest = struct( - n0, - _WGORR, - 0, - [ - _RReq, - _RTe, - _Bo, - _SCt, - _ECr, - _EM, - _AR, - _CC, - _CDo, - _CEo, - _CL, - _CLo, - _CR, - _CTo, - _CCRC, - _CCRCC, - _CCRCNVME, - _CSHA, - _CSHAh, - _DM, - _ET, - _Ex, - _E, - _LM, - _MM, - _M, - _OLM, - _OLLHS, - _OLRUD, - _PC, - _RS, - _RC, - _Re, - _SSE, - _SSECA, - _SSEKMSKI, - _SSECKMD, - _SC, - _TC, - _VI, - _BKE, - ], - [ - [ - 0, - { - [_hL]: 1, - [_hH]: _xarr, - }, - ], - [ - 0, - { - [_hH]: _xart, - }, - ], - [() => StreamingBlob, 16], - [ - 1, - { - [_hH]: _xafs, - }, - ], - [ - 0, - { - [_hH]: _xafec, - }, - ], - [ - 0, - { - [_hH]: _xafem, - }, - ], - [ - 0, - { - [_hH]: _xafhar, - }, - ], - [ - 0, - { - [_hH]: _xafhCC, - }, - ], - [ - 0, - { - [_hH]: _xafhCD, - }, - ], - [ - 0, - { - [_hH]: _xafhCE, - }, - ], - [ - 0, - { - [_hH]: _xafhCL, - }, - ], - [ - 1, - { - [_hH]: _CL__, - }, - ], - [ - 0, - { - [_hH]: _xafhCR, - }, - ], - [ - 0, - { - [_hH]: _xafhCT, - }, - ], - [ - 0, - { - [_hH]: _xafhxacc, - }, - ], - [ - 0, - { - [_hH]: _xafhxacc_, - }, - ], - [ - 0, - { - [_hH]: _xafhxacc__, - }, - ], - [ - 0, - { - [_hH]: _xafhxacs, - }, - ], - [ - 0, - { - [_hH]: _xafhxacs_, - }, - ], - [ - 2, - { - [_hH]: _xafhxadm, - }, - ], - [ - 0, - { - [_hH]: _xafhE, - }, - ], - [ - 4, - { - [_hH]: _xafhE_, - }, - ], - [ - 0, - { - [_hH]: _xafhxae, - }, - ], - [ - 4, - { - [_hH]: _xafhLM, - }, - ], - [ - 1, - { - [_hH]: _xafhxamm, - }, - ], - [ - 128 | 0, - { - [_hPH]: _xam, - }, - ], - [ - 0, - { - [_hH]: _xafhxaolm, - }, - ], - [ - 0, - { - [_hH]: _xafhxaollh, - }, - ], - [ - 5, - { - [_hH]: _xafhxaolrud, - }, - ], - [ - 1, - { - [_hH]: _xafhxampc, - }, - ], - [ - 0, - { - [_hH]: _xafhxars, - }, - ], - [ - 0, - { - [_hH]: _xafhxarc, - }, - ], - [ - 0, - { - [_hH]: _xafhxar, - }, - ], - [ - 0, - { - [_hH]: _xafhxasse, - }, - ], - [ - 0, - { - [_hH]: _xafhxasseca, - }, - ], - [ - () => SSEKMSKeyId, - { - [_hH]: _xafhxasseakki, - }, - ], - [ - 0, - { - [_hH]: _xafhxasseckM, - }, - ], - [ - 0, - { - [_hH]: _xafhxasc, - }, - ], - [ - 1, - { - [_hH]: _xafhxatc, - }, - ], - [ - 0, - { - [_hH]: _xafhxavi, - }, - ], - [ - 2, - { - [_hH]: _xafhxassebke, - }, - ], - ] -); -export var Unit = "unit" as const; - -export var S3ServiceException = error( - "smithy.ts.sdk.synthetic.com.amazonaws.s3", - "S3ServiceException", - 0, - [], - [], - __S3ServiceException -); -export var AllowedHeaders = 64 | 0; - -export var AllowedMethods = 64 | 0; - -export var AllowedOrigins = 64 | 0; - -export var AnalyticsConfigurationList = list(n0, _ACLn, 0, [() => AnalyticsConfiguration, 0]); -export var Buckets = list(n0, _Bu, 0, [ - () => Bucket, - { - [_xN]: _B, - }, -]); -export var ChecksumAlgorithmList = 64 | 0; - -export var CommonPrefixList = list(n0, _CPL, 0, () => CommonPrefix); -export var CompletedPartList = list(n0, _CPLo, 0, () => CompletedPart); -export var CORSRules = list(n0, _CORSR, 0, [() => CORSRule, 0]); -export var DeletedObjects = list(n0, _DOe, 0, () => DeletedObject); -export var DeleteMarkers = list(n0, _DMe, 0, () => DeleteMarkerEntry); -export var Errors = list(n0, _Er, 0, () => _Error); -export var EventList = 64 | 0; - -export var ExposeHeaders = 64 | 0; - -export var FilterRuleList = list(n0, _FRL, 0, () => FilterRule); -export var Grants = list(n0, _G, 0, [ - () => Grant, - { - [_xN]: _Gr, - }, -]); -export var IntelligentTieringConfigurationList = list(n0, _ITCL, 0, [() => IntelligentTieringConfiguration, 0]); -export var InventoryConfigurationList = list(n0, _ICL, 0, [() => InventoryConfiguration, 0]); -export var InventoryOptionalFields = list(n0, _IOF, 0, [ - 0, - { - [_xN]: _Fi, - }, -]); -export var LambdaFunctionConfigurationList = list(n0, _LFCL, 0, [() => LambdaFunctionConfiguration, 0]); -export var LifecycleRules = list(n0, _LRi, 0, [() => LifecycleRule, 0]); -export var MetricsConfigurationList = list(n0, _MCL, 0, [() => MetricsConfiguration, 0]); -export var MultipartUploadList = list(n0, _MUL, 0, () => MultipartUpload); -export var NoncurrentVersionTransitionList = list(n0, _NVTL, 0, () => NoncurrentVersionTransition); -export var ObjectAttributesList = 64 | 0; - -export var ObjectIdentifierList = list(n0, _OIL, 0, () => ObjectIdentifier); -export var ObjectList = list(n0, _OLb, 0, [() => _Object, 0]); -export var ObjectVersionList = list(n0, _OVL, 0, [() => ObjectVersion, 0]); -export var OptionalObjectAttributesList = 64 | 0; - -export var OwnershipControlsRules = list(n0, _OCRw, 0, () => OwnershipControlsRule); -export var Parts = list(n0, _Pa, 0, () => Part); -export var PartsList = list(n0, _PL, 0, () => ObjectPart); -export var QueueConfigurationList = list(n0, _QCL, 0, [() => QueueConfiguration, 0]); -export var ReplicationRules = list(n0, _RRep, 0, [() => ReplicationRule, 0]); -export var RoutingRules = list(n0, _RR, 0, [ - () => RoutingRule, - { - [_xN]: _RRo, - }, -]); -export var ServerSideEncryptionRules = list(n0, _SSERe, 0, [() => ServerSideEncryptionRule, 0]); -export var TagSet = list(n0, _TS, 0, [ - () => Tag, - { - [_xN]: _Ta, - }, -]); -export var TargetGrants = list(n0, _TG, 0, [ - () => TargetGrant, - { - [_xN]: _Gr, - }, -]); -export var TieringList = list(n0, _TL, 0, () => Tiering); -export var TopicConfigurationList = list(n0, _TCL, 0, [() => TopicConfiguration, 0]); -export var TransitionList = list(n0, _TLr, 0, () => Transition); -export var UserMetadata = list(n0, _UM, 0, [ - () => MetadataEntry, - { - [_xN]: _ME, - }, -]); -export var Metadata = 128 | 0; - -export var AnalyticsFilter = uni(n0, _AF, 0, [_P, _Ta, _An], [0, () => Tag, [() => AnalyticsAndOperator, 0]]); -export var MetricsFilter = uni(n0, _MF, 0, [_P, _Ta, _APAc, _An], [0, () => Tag, 0, [() => MetricsAndOperator, 0]]); -export var SelectObjectContentEventStream = uni( - n0, - _SOCES, - { - [_s]: 1, - }, - [_Rec, _Sta, _Pr, _Cont, _End], - [[() => RecordsEvent, 0], [() => StatsEvent, 0], [() => ProgressEvent, 0], () => ContinuationEvent, () => EndEvent] -); -export var AbortMultipartUpload = op( - n0, - _AMU, - { - [_h]: ["DELETE", "/{Bucket}/{Key+}?x-id=AbortMultipartUpload", 204], - }, - () => AbortMultipartUploadRequest, - () => AbortMultipartUploadOutput -); -export var CompleteMultipartUpload = op( - n0, - _CMUo, - { - [_h]: ["POST", "/{Bucket}/{Key+}", 200], - }, - () => CompleteMultipartUploadRequest, - () => CompleteMultipartUploadOutput -); -export var CopyObject = op( - n0, - _CO, - { - [_h]: ["PUT", "/{Bucket}/{Key+}?x-id=CopyObject", 200], - }, - () => CopyObjectRequest, - () => CopyObjectOutput -); -export var CreateBucket = op( - n0, - _CB, - { - [_h]: ["PUT", "/{Bucket}", 200], - }, - () => CreateBucketRequest, - () => CreateBucketOutput -); -export var CreateBucketMetadataConfiguration = op( - n0, - _CBMC, - { - [_h]: ["POST", "/{Bucket}?metadataConfiguration", 200], - }, - () => CreateBucketMetadataConfigurationRequest, - () => Unit -); -export var CreateBucketMetadataTableConfiguration = op( - n0, - _CBMTC, - { - [_h]: ["POST", "/{Bucket}?metadataTable", 200], - }, - () => CreateBucketMetadataTableConfigurationRequest, - () => Unit -); -export var CreateMultipartUpload = op( - n0, - _CMUr, - { - [_h]: ["POST", "/{Bucket}/{Key+}?uploads", 200], - }, - () => CreateMultipartUploadRequest, - () => CreateMultipartUploadOutput -); -export var CreateSession = op( - n0, - _CSr, - { - [_h]: ["GET", "/{Bucket}?session", 200], - }, - () => CreateSessionRequest, - () => CreateSessionOutput -); -export var DeleteBucket = op( - n0, - _DB, - { - [_h]: ["DELETE", "/{Bucket}", 204], - }, - () => DeleteBucketRequest, - () => Unit -); -export var DeleteBucketAnalyticsConfiguration = op( - n0, - _DBAC, - { - [_h]: ["DELETE", "/{Bucket}?analytics", 204], - }, - () => DeleteBucketAnalyticsConfigurationRequest, - () => Unit -); -export var DeleteBucketCors = op( - n0, - _DBC, - { - [_h]: ["DELETE", "/{Bucket}?cors", 204], - }, - () => DeleteBucketCorsRequest, - () => Unit -); -export var DeleteBucketEncryption = op( - n0, - _DBE, - { - [_h]: ["DELETE", "/{Bucket}?encryption", 204], - }, - () => DeleteBucketEncryptionRequest, - () => Unit -); -export var DeleteBucketIntelligentTieringConfiguration = op( - n0, - _DBITC, - { - [_h]: ["DELETE", "/{Bucket}?intelligent-tiering", 204], - }, - () => DeleteBucketIntelligentTieringConfigurationRequest, - () => Unit -); -export var DeleteBucketInventoryConfiguration = op( - n0, - _DBIC, - { - [_h]: ["DELETE", "/{Bucket}?inventory", 204], - }, - () => DeleteBucketInventoryConfigurationRequest, - () => Unit -); -export var DeleteBucketLifecycle = op( - n0, - _DBL, - { - [_h]: ["DELETE", "/{Bucket}?lifecycle", 204], - }, - () => DeleteBucketLifecycleRequest, - () => Unit -); -export var DeleteBucketMetadataConfiguration = op( - n0, - _DBMC, - { - [_h]: ["DELETE", "/{Bucket}?metadataConfiguration", 204], - }, - () => DeleteBucketMetadataConfigurationRequest, - () => Unit -); -export var DeleteBucketMetadataTableConfiguration = op( - n0, - _DBMTC, - { - [_h]: ["DELETE", "/{Bucket}?metadataTable", 204], - }, - () => DeleteBucketMetadataTableConfigurationRequest, - () => Unit -); -export var DeleteBucketMetricsConfiguration = op( - n0, - _DBMCe, - { - [_h]: ["DELETE", "/{Bucket}?metrics", 204], - }, - () => DeleteBucketMetricsConfigurationRequest, - () => Unit -); -export var DeleteBucketOwnershipControls = op( - n0, - _DBOC, - { - [_h]: ["DELETE", "/{Bucket}?ownershipControls", 204], - }, - () => DeleteBucketOwnershipControlsRequest, - () => Unit -); -export var DeleteBucketPolicy = op( - n0, - _DBP, - { - [_h]: ["DELETE", "/{Bucket}?policy", 204], - }, - () => DeleteBucketPolicyRequest, - () => Unit -); -export var DeleteBucketReplication = op( - n0, - _DBRe, - { - [_h]: ["DELETE", "/{Bucket}?replication", 204], - }, - () => DeleteBucketReplicationRequest, - () => Unit -); -export var DeleteBucketTagging = op( - n0, - _DBT, - { - [_h]: ["DELETE", "/{Bucket}?tagging", 204], - }, - () => DeleteBucketTaggingRequest, - () => Unit -); -export var DeleteBucketWebsite = op( - n0, - _DBW, - { - [_h]: ["DELETE", "/{Bucket}?website", 204], - }, - () => DeleteBucketWebsiteRequest, - () => Unit -); -export var DeleteObject = op( - n0, - _DOel, - { - [_h]: ["DELETE", "/{Bucket}/{Key+}?x-id=DeleteObject", 204], - }, - () => DeleteObjectRequest, - () => DeleteObjectOutput -); -export var DeleteObjects = op( - n0, - _DOele, - { - [_h]: ["POST", "/{Bucket}?delete", 200], - }, - () => DeleteObjectsRequest, - () => DeleteObjectsOutput -); -export var DeleteObjectTagging = op( - n0, - _DOT, - { - [_h]: ["DELETE", "/{Bucket}/{Key+}?tagging", 204], - }, - () => DeleteObjectTaggingRequest, - () => DeleteObjectTaggingOutput -); -export var DeletePublicAccessBlock = op( - n0, - _DPAB, - { - [_h]: ["DELETE", "/{Bucket}?publicAccessBlock", 204], - }, - () => DeletePublicAccessBlockRequest, - () => Unit -); -export var GetBucketAccelerateConfiguration = op( - n0, - _GBAC, - { - [_h]: ["GET", "/{Bucket}?accelerate", 200], - }, - () => GetBucketAccelerateConfigurationRequest, - () => GetBucketAccelerateConfigurationOutput -); -export var GetBucketAcl = op( - n0, - _GBA, - { - [_h]: ["GET", "/{Bucket}?acl", 200], - }, - () => GetBucketAclRequest, - () => GetBucketAclOutput -); -export var GetBucketAnalyticsConfiguration = op( - n0, - _GBACe, - { - [_h]: ["GET", "/{Bucket}?analytics&x-id=GetBucketAnalyticsConfiguration", 200], - }, - () => GetBucketAnalyticsConfigurationRequest, - () => GetBucketAnalyticsConfigurationOutput -); -export var GetBucketCors = op( - n0, - _GBC, - { - [_h]: ["GET", "/{Bucket}?cors", 200], - }, - () => GetBucketCorsRequest, - () => GetBucketCorsOutput -); -export var GetBucketEncryption = op( - n0, - _GBE, - { - [_h]: ["GET", "/{Bucket}?encryption", 200], - }, - () => GetBucketEncryptionRequest, - () => GetBucketEncryptionOutput -); -export var GetBucketIntelligentTieringConfiguration = op( - n0, - _GBITC, - { - [_h]: ["GET", "/{Bucket}?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration", 200], - }, - () => GetBucketIntelligentTieringConfigurationRequest, - () => GetBucketIntelligentTieringConfigurationOutput -); -export var GetBucketInventoryConfiguration = op( - n0, - _GBIC, - { - [_h]: ["GET", "/{Bucket}?inventory&x-id=GetBucketInventoryConfiguration", 200], - }, - () => GetBucketInventoryConfigurationRequest, - () => GetBucketInventoryConfigurationOutput -); -export var GetBucketLifecycleConfiguration = op( - n0, - _GBLC, - { - [_h]: ["GET", "/{Bucket}?lifecycle", 200], - }, - () => GetBucketLifecycleConfigurationRequest, - () => GetBucketLifecycleConfigurationOutput -); -export var GetBucketLocation = op( - n0, - _GBL, - { - [_h]: ["GET", "/{Bucket}?location", 200], - }, - () => GetBucketLocationRequest, - () => GetBucketLocationOutput -); -export var GetBucketLogging = op( - n0, - _GBLe, - { - [_h]: ["GET", "/{Bucket}?logging", 200], - }, - () => GetBucketLoggingRequest, - () => GetBucketLoggingOutput -); -export var GetBucketMetadataConfiguration = op( - n0, - _GBMC, - { - [_h]: ["GET", "/{Bucket}?metadataConfiguration", 200], - }, - () => GetBucketMetadataConfigurationRequest, - () => GetBucketMetadataConfigurationOutput -); -export var GetBucketMetadataTableConfiguration = op( - n0, - _GBMTC, - { - [_h]: ["GET", "/{Bucket}?metadataTable", 200], - }, - () => GetBucketMetadataTableConfigurationRequest, - () => GetBucketMetadataTableConfigurationOutput -); -export var GetBucketMetricsConfiguration = op( - n0, - _GBMCe, - { - [_h]: ["GET", "/{Bucket}?metrics&x-id=GetBucketMetricsConfiguration", 200], - }, - () => GetBucketMetricsConfigurationRequest, - () => GetBucketMetricsConfigurationOutput -); -export var GetBucketNotificationConfiguration = op( - n0, - _GBNC, - { - [_h]: ["GET", "/{Bucket}?notification", 200], - }, - () => GetBucketNotificationConfigurationRequest, - () => NotificationConfiguration -); -export var GetBucketOwnershipControls = op( - n0, - _GBOC, - { - [_h]: ["GET", "/{Bucket}?ownershipControls", 200], - }, - () => GetBucketOwnershipControlsRequest, - () => GetBucketOwnershipControlsOutput -); -export var GetBucketPolicy = op( - n0, - _GBP, - { - [_h]: ["GET", "/{Bucket}?policy", 200], - }, - () => GetBucketPolicyRequest, - () => GetBucketPolicyOutput -); -export var GetBucketPolicyStatus = op( - n0, - _GBPS, - { - [_h]: ["GET", "/{Bucket}?policyStatus", 200], - }, - () => GetBucketPolicyStatusRequest, - () => GetBucketPolicyStatusOutput -); -export var GetBucketReplication = op( - n0, - _GBR, - { - [_h]: ["GET", "/{Bucket}?replication", 200], - }, - () => GetBucketReplicationRequest, - () => GetBucketReplicationOutput -); -export var GetBucketRequestPayment = op( - n0, - _GBRP, - { - [_h]: ["GET", "/{Bucket}?requestPayment", 200], - }, - () => GetBucketRequestPaymentRequest, - () => GetBucketRequestPaymentOutput -); -export var GetBucketTagging = op( - n0, - _GBT, - { - [_h]: ["GET", "/{Bucket}?tagging", 200], - }, - () => GetBucketTaggingRequest, - () => GetBucketTaggingOutput -); -export var GetBucketVersioning = op( - n0, - _GBV, - { - [_h]: ["GET", "/{Bucket}?versioning", 200], - }, - () => GetBucketVersioningRequest, - () => GetBucketVersioningOutput -); -export var GetBucketWebsite = op( - n0, - _GBW, - { - [_h]: ["GET", "/{Bucket}?website", 200], - }, - () => GetBucketWebsiteRequest, - () => GetBucketWebsiteOutput -); -export var GetObject = op( - n0, - _GO, - { - [_h]: ["GET", "/{Bucket}/{Key+}?x-id=GetObject", 200], - }, - () => GetObjectRequest, - () => GetObjectOutput -); -export var GetObjectAcl = op( - n0, - _GOA, - { - [_h]: ["GET", "/{Bucket}/{Key+}?acl", 200], - }, - () => GetObjectAclRequest, - () => GetObjectAclOutput -); -export var GetObjectAttributes = op( - n0, - _GOAe, - { - [_h]: ["GET", "/{Bucket}/{Key+}?attributes", 200], - }, - () => GetObjectAttributesRequest, - () => GetObjectAttributesOutput -); -export var GetObjectLegalHold = op( - n0, - _GOLH, - { - [_h]: ["GET", "/{Bucket}/{Key+}?legal-hold", 200], - }, - () => GetObjectLegalHoldRequest, - () => GetObjectLegalHoldOutput -); -export var GetObjectLockConfiguration = op( - n0, - _GOLC, - { - [_h]: ["GET", "/{Bucket}?object-lock", 200], - }, - () => GetObjectLockConfigurationRequest, - () => GetObjectLockConfigurationOutput -); -export var GetObjectRetention = op( - n0, - _GORe, - { - [_h]: ["GET", "/{Bucket}/{Key+}?retention", 200], - }, - () => GetObjectRetentionRequest, - () => GetObjectRetentionOutput -); -export var GetObjectTagging = op( - n0, - _GOT, - { - [_h]: ["GET", "/{Bucket}/{Key+}?tagging", 200], - }, - () => GetObjectTaggingRequest, - () => GetObjectTaggingOutput -); -export var GetObjectTorrent = op( - n0, - _GOTe, - { - [_h]: ["GET", "/{Bucket}/{Key+}?torrent", 200], - }, - () => GetObjectTorrentRequest, - () => GetObjectTorrentOutput -); -export var GetPublicAccessBlock = op( - n0, - _GPAB, - { - [_h]: ["GET", "/{Bucket}?publicAccessBlock", 200], - }, - () => GetPublicAccessBlockRequest, - () => GetPublicAccessBlockOutput -); -export var HeadBucket = op( - n0, - _HB, - { - [_h]: ["HEAD", "/{Bucket}", 200], - }, - () => HeadBucketRequest, - () => HeadBucketOutput -); -export var HeadObject = op( - n0, - _HO, - { - [_h]: ["HEAD", "/{Bucket}/{Key+}", 200], - }, - () => HeadObjectRequest, - () => HeadObjectOutput -); -export var ListBucketAnalyticsConfigurations = op( - n0, - _LBAC, - { - [_h]: ["GET", "/{Bucket}?analytics&x-id=ListBucketAnalyticsConfigurations", 200], - }, - () => ListBucketAnalyticsConfigurationsRequest, - () => ListBucketAnalyticsConfigurationsOutput -); -export var ListBucketIntelligentTieringConfigurations = op( - n0, - _LBITC, - { - [_h]: ["GET", "/{Bucket}?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations", 200], - }, - () => ListBucketIntelligentTieringConfigurationsRequest, - () => ListBucketIntelligentTieringConfigurationsOutput -); -export var ListBucketInventoryConfigurations = op( - n0, - _LBIC, - { - [_h]: ["GET", "/{Bucket}?inventory&x-id=ListBucketInventoryConfigurations", 200], - }, - () => ListBucketInventoryConfigurationsRequest, - () => ListBucketInventoryConfigurationsOutput -); -export var ListBucketMetricsConfigurations = op( - n0, - _LBMC, - { - [_h]: ["GET", "/{Bucket}?metrics&x-id=ListBucketMetricsConfigurations", 200], - }, - () => ListBucketMetricsConfigurationsRequest, - () => ListBucketMetricsConfigurationsOutput -); -export var ListBuckets = op( - n0, - _LB, - { - [_h]: ["GET", "/?x-id=ListBuckets", 200], - }, - () => ListBucketsRequest, - () => ListBucketsOutput -); -export var ListDirectoryBuckets = op( - n0, - _LDB, - { - [_h]: ["GET", "/?x-id=ListDirectoryBuckets", 200], - }, - () => ListDirectoryBucketsRequest, - () => ListDirectoryBucketsOutput -); -export var ListMultipartUploads = op( - n0, - _LMU, - { - [_h]: ["GET", "/{Bucket}?uploads", 200], - }, - () => ListMultipartUploadsRequest, - () => ListMultipartUploadsOutput -); -export var ListObjects = op( - n0, - _LO, - { - [_h]: ["GET", "/{Bucket}", 200], - }, - () => ListObjectsRequest, - () => ListObjectsOutput -); -export var ListObjectsV2 = op( - n0, - _LOV, - { - [_h]: ["GET", "/{Bucket}?list-type=2", 200], - }, - () => ListObjectsV2Request, - () => ListObjectsV2Output -); -export var ListObjectVersions = op( - n0, - _LOVi, - { - [_h]: ["GET", "/{Bucket}?versions", 200], - }, - () => ListObjectVersionsRequest, - () => ListObjectVersionsOutput -); -export var ListParts = op( - n0, - _LP, - { - [_h]: ["GET", "/{Bucket}/{Key+}?x-id=ListParts", 200], - }, - () => ListPartsRequest, - () => ListPartsOutput -); -export var PutBucketAccelerateConfiguration = op( - n0, - _PBAC, - { - [_h]: ["PUT", "/{Bucket}?accelerate", 200], - }, - () => PutBucketAccelerateConfigurationRequest, - () => Unit -); -export var PutBucketAcl = op( - n0, - _PBA, - { - [_h]: ["PUT", "/{Bucket}?acl", 200], - }, - () => PutBucketAclRequest, - () => Unit -); -export var PutBucketAnalyticsConfiguration = op( - n0, - _PBACu, - { - [_h]: ["PUT", "/{Bucket}?analytics", 200], - }, - () => PutBucketAnalyticsConfigurationRequest, - () => Unit -); -export var PutBucketCors = op( - n0, - _PBC, - { - [_h]: ["PUT", "/{Bucket}?cors", 200], - }, - () => PutBucketCorsRequest, - () => Unit -); -export var PutBucketEncryption = op( - n0, - _PBE, - { - [_h]: ["PUT", "/{Bucket}?encryption", 200], - }, - () => PutBucketEncryptionRequest, - () => Unit -); -export var PutBucketIntelligentTieringConfiguration = op( - n0, - _PBITC, - { - [_h]: ["PUT", "/{Bucket}?intelligent-tiering", 200], - }, - () => PutBucketIntelligentTieringConfigurationRequest, - () => Unit -); -export var PutBucketInventoryConfiguration = op( - n0, - _PBIC, - { - [_h]: ["PUT", "/{Bucket}?inventory", 200], - }, - () => PutBucketInventoryConfigurationRequest, - () => Unit -); -export var PutBucketLifecycleConfiguration = op( - n0, - _PBLC, - { - [_h]: ["PUT", "/{Bucket}?lifecycle", 200], - }, - () => PutBucketLifecycleConfigurationRequest, - () => PutBucketLifecycleConfigurationOutput -); -export var PutBucketLogging = op( - n0, - _PBL, - { - [_h]: ["PUT", "/{Bucket}?logging", 200], - }, - () => PutBucketLoggingRequest, - () => Unit -); -export var PutBucketMetricsConfiguration = op( - n0, - _PBMC, - { - [_h]: ["PUT", "/{Bucket}?metrics", 200], - }, - () => PutBucketMetricsConfigurationRequest, - () => Unit -); -export var PutBucketNotificationConfiguration = op( - n0, - _PBNC, - { - [_h]: ["PUT", "/{Bucket}?notification", 200], - }, - () => PutBucketNotificationConfigurationRequest, - () => Unit -); -export var PutBucketOwnershipControls = op( - n0, - _PBOC, - { - [_h]: ["PUT", "/{Bucket}?ownershipControls", 200], - }, - () => PutBucketOwnershipControlsRequest, - () => Unit -); -export var PutBucketPolicy = op( - n0, - _PBP, - { - [_h]: ["PUT", "/{Bucket}?policy", 200], - }, - () => PutBucketPolicyRequest, - () => Unit -); -export var PutBucketReplication = op( - n0, - _PBR, - { - [_h]: ["PUT", "/{Bucket}?replication", 200], - }, - () => PutBucketReplicationRequest, - () => Unit -); -export var PutBucketRequestPayment = op( - n0, - _PBRP, - { - [_h]: ["PUT", "/{Bucket}?requestPayment", 200], - }, - () => PutBucketRequestPaymentRequest, - () => Unit -); -export var PutBucketTagging = op( - n0, - _PBT, - { - [_h]: ["PUT", "/{Bucket}?tagging", 200], - }, - () => PutBucketTaggingRequest, - () => Unit -); -export var PutBucketVersioning = op( - n0, - _PBV, - { - [_h]: ["PUT", "/{Bucket}?versioning", 200], - }, - () => PutBucketVersioningRequest, - () => Unit -); -export var PutBucketWebsite = op( - n0, - _PBW, - { - [_h]: ["PUT", "/{Bucket}?website", 200], - }, - () => PutBucketWebsiteRequest, - () => Unit -); -export var PutObject = op( - n0, - _PO, - { - [_h]: ["PUT", "/{Bucket}/{Key+}?x-id=PutObject", 200], - }, - () => PutObjectRequest, - () => PutObjectOutput -); -export var PutObjectAcl = op( - n0, - _POA, - { - [_h]: ["PUT", "/{Bucket}/{Key+}?acl", 200], - }, - () => PutObjectAclRequest, - () => PutObjectAclOutput -); -export var PutObjectLegalHold = op( - n0, - _POLH, - { - [_h]: ["PUT", "/{Bucket}/{Key+}?legal-hold", 200], - }, - () => PutObjectLegalHoldRequest, - () => PutObjectLegalHoldOutput -); -export var PutObjectLockConfiguration = op( - n0, - _POLC, - { - [_h]: ["PUT", "/{Bucket}?object-lock", 200], - }, - () => PutObjectLockConfigurationRequest, - () => PutObjectLockConfigurationOutput -); -export var PutObjectRetention = op( - n0, - _PORu, - { - [_h]: ["PUT", "/{Bucket}/{Key+}?retention", 200], - }, - () => PutObjectRetentionRequest, - () => PutObjectRetentionOutput -); -export var PutObjectTagging = op( - n0, - _POT, - { - [_h]: ["PUT", "/{Bucket}/{Key+}?tagging", 200], - }, - () => PutObjectTaggingRequest, - () => PutObjectTaggingOutput -); -export var PutPublicAccessBlock = op( - n0, - _PPAB, - { - [_h]: ["PUT", "/{Bucket}?publicAccessBlock", 200], - }, - () => PutPublicAccessBlockRequest, - () => Unit -); -export var RenameObject = op( - n0, - _RO, - { - [_h]: ["PUT", "/{Bucket}/{Key+}?renameObject", 200], - }, - () => RenameObjectRequest, - () => RenameObjectOutput -); -export var RestoreObject = op( - n0, - _ROe, - { - [_h]: ["POST", "/{Bucket}/{Key+}?restore", 200], - }, - () => RestoreObjectRequest, - () => RestoreObjectOutput -); -export var SelectObjectContent = op( - n0, - _SOC, - { - [_h]: ["POST", "/{Bucket}/{Key+}?select&select-type=2", 200], - }, - () => SelectObjectContentRequest, - () => SelectObjectContentOutput -); -export var UpdateBucketMetadataInventoryTableConfiguration = op( - n0, - _UBMITC, - { - [_h]: ["PUT", "/{Bucket}?metadataInventoryTable", 200], - }, - () => UpdateBucketMetadataInventoryTableConfigurationRequest, - () => Unit -); -export var UpdateBucketMetadataJournalTableConfiguration = op( - n0, - _UBMJTC, - { - [_h]: ["PUT", "/{Bucket}?metadataJournalTable", 200], - }, - () => UpdateBucketMetadataJournalTableConfigurationRequest, - () => Unit -); -export var UploadPart = op( - n0, - _UP, - { - [_h]: ["PUT", "/{Bucket}/{Key+}?x-id=UploadPart", 200], - }, - () => UploadPartRequest, - () => UploadPartOutput -); -export var UploadPartCopy = op( - n0, - _UPC, - { - [_h]: ["PUT", "/{Bucket}/{Key+}?x-id=UploadPartCopy", 200], - }, - () => UploadPartCopyRequest, - () => UploadPartCopyOutput -); -export var WriteGetObjectResponse = op( - n0, - _WGOR, - { - [_en]: ["{RequestRoute}."], - [_h]: ["POST", "/WriteGetObjectResponse", 200], - }, - () => WriteGetObjectResponseRequest, - () => Unit -); diff --git a/codegen/sdk-codegen/build.gradle.kts b/codegen/sdk-codegen/build.gradle.kts index f1c3b96e4b05..8ca85d879070 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( - "S3" + // "S3" ) 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/AddS3Config.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java index cd7e9363f8d2..2fdfb3c76937 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddS3Config.java @@ -61,6 +61,7 @@ import software.amazon.smithy.typescript.codegen.auth.http.integration.AddHttpSigningPlugin; import software.amazon.smithy.typescript.codegen.integration.RuntimeClientPlugin; import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration; +import software.amazon.smithy.typescript.codegen.schema.SchemaGenerationAllowlist; import software.amazon.smithy.utils.ListUtils; import software.amazon.smithy.utils.MapUtils; import software.amazon.smithy.utils.SetUtils; @@ -137,7 +138,7 @@ public static Shape removeUriBucketPrefix(Shape shape, Model model) { () -> new RuntimeException("operation must have input structure") ); - boolean hasBucketPrefix = uri.startsWith("/{Bucket}") ; + boolean hasBucketPrefix = uri.startsWith("/{Bucket}"); Optional bucket = input.getMember("Bucket"); boolean inputHasBucketMember = bucket.isPresent(); boolean bucketIsContextParam = bucket @@ -293,7 +294,12 @@ public Model preprocessModel(Model model, TypeScriptSettings settings) { Model builtModel = modelBuilder.addShapes(inputShapes).build(); if (hasRuleset) { return ModelTransformer.create().mapShapes( - builtModel, (shape) -> removeUriBucketPrefix(shape, model) + builtModel, (shape) -> { + if (SchemaGenerationAllowlist.allows(serviceShape.getId(), settings)) { + return removeUriBucketPrefix(shape, model); + } + return shape; + } ); } return builtModel; diff --git a/packages/core/src/submodules/protocols/json/AwsJsonRpcProtocol.ts b/packages/core/src/submodules/protocols/json/AwsJsonRpcProtocol.ts index ff561878cbf1..e309c1a5043b 100644 --- a/packages/core/src/submodules/protocols/json/AwsJsonRpcProtocol.ts +++ b/packages/core/src/submodules/protocols/json/AwsJsonRpcProtocol.ts @@ -85,17 +85,26 @@ export abstract class AwsJsonRpcProtocol extends RpcProtocol { [namespace, errorName] = errorIdentifier.split("#"); } + const errorMetadata = { + $metadata: metadata, + $response: response, + $fault: response.statusCode <= 500 ? ("client" as const) : ("server" as const), + }; + const registry = TypeRegistry.for(namespace); let errorSchema: ErrorSchema; try { errorSchema = registry.getSchema(errorIdentifier) as ErrorSchema; } catch (e) { + if (dataObject.Message) { + dataObject.message = dataObject.Message; + } const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException(); if (baseExceptionSchema) { const ErrorCtor = baseExceptionSchema.ctor; - throw Object.assign(new ErrorCtor(errorName), dataObject); + throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject); } - throw new Error(errorName); + throw Object.assign(new Error(errorName), errorMetadata, dataObject); } const ns = NormalizedSchema.of(errorSchema); @@ -109,14 +118,14 @@ export abstract class AwsJsonRpcProtocol extends RpcProtocol { output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]); } - Object.assign(exception, { - $metadata: metadata, - $response: response, - $fault: ns.getMergedTraits().error, - message, - ...output, - }); - - throw exception; + throw Object.assign( + exception, + errorMetadata, + { + $fault: ns.getMergedTraits().error, + message, + }, + output + ); } } diff --git a/packages/core/src/submodules/protocols/json/AwsRestJsonProtocol.ts b/packages/core/src/submodules/protocols/json/AwsRestJsonProtocol.ts index 0b89f40148f4..03b36be59a73 100644 --- a/packages/core/src/submodules/protocols/json/AwsRestJsonProtocol.ts +++ b/packages/core/src/submodules/protocols/json/AwsRestJsonProtocol.ts @@ -123,17 +123,26 @@ export class AwsRestJsonProtocol extends HttpBindingProtocol { [namespace, errorName] = errorIdentifier.split("#"); } + const errorMetadata = { + $metadata: metadata, + $response: response, + $fault: response.statusCode <= 500 ? ("client" as const) : ("server" as const), + }; + const registry = TypeRegistry.for(namespace); let errorSchema: ErrorSchema; try { errorSchema = registry.getSchema(errorIdentifier) as ErrorSchema; } catch (e) { + if (dataObject.Message) { + dataObject.message = dataObject.Message; + } const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException(); if (baseExceptionSchema) { const ErrorCtor = baseExceptionSchema.ctor; - throw Object.assign(new ErrorCtor(errorName), dataObject); + throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject); } - throw new Error(errorName); + throw Object.assign(new Error(errorName), errorMetadata, dataObject); } const ns = NormalizedSchema.of(errorSchema); @@ -147,15 +156,15 @@ export class AwsRestJsonProtocol extends HttpBindingProtocol { output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]); } - Object.assign(exception, { - $metadata: metadata, - $response: response, - $fault: ns.getMergedTraits().error, - message, - ...output, - }); - - throw exception; + throw Object.assign( + exception, + errorMetadata, + { + $fault: ns.getMergedTraits().error, + message, + }, + output + ); } /** diff --git a/packages/core/src/submodules/protocols/query/AwsQueryProtocol.ts b/packages/core/src/submodules/protocols/query/AwsQueryProtocol.ts index 9c66bfb0d4a5..f695500dde55 100644 --- a/packages/core/src/submodules/protocols/query/AwsQueryProtocol.ts +++ b/packages/core/src/submodules/protocols/query/AwsQueryProtocol.ts @@ -146,7 +146,12 @@ export class AwsQueryProtocol extends RpcProtocol { [namespace, errorName] = errorIdentifier.split("#"); } - const errorDataSource = this.loadQueryError(dataObject); + const errorData = this.loadQueryError(dataObject); + const errorMetadata = { + $metadata: metadata, + $response: response, + $fault: response.statusCode <= 500 ? ("client" as const) : ("server" as const), + }; const registry = TypeRegistry.for(namespace); let errorSchema: ErrorSchema; @@ -159,12 +164,15 @@ export class AwsQueryProtocol extends RpcProtocol { errorSchema = registry.getSchema(errorIdentifier) as ErrorSchema; } } catch (e) { + if (errorData.Message) { + errorData.message = errorData.Message; + } const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException(); if (baseExceptionSchema) { const ErrorCtor = baseExceptionSchema.ctor; - throw Object.assign(new ErrorCtor(errorName), errorDataSource); + throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject); } - throw new Error(errorName); + throw Object.assign(new Error(errorName), errorMetadata, errorData); } const ns = NormalizedSchema.of(errorSchema); @@ -175,19 +183,19 @@ export class AwsQueryProtocol extends RpcProtocol { for (const [name, member] of ns.structIterator()) { const target = member.getMergedTraits().xmlName ?? name; - const value = errorDataSource[target] ?? dataObject[target]; + const value = errorData[target] ?? dataObject[target]; output[name] = this.deserializer.readSchema(member, value); } - Object.assign(exception, { - $metadata: metadata, - $response: response, - $fault: ns.getMergedTraits().error, - message, - ...output, - }); - - throw exception; + throw Object.assign( + exception, + errorMetadata, + { + $fault: ns.getMergedTraits().error, + message, + }, + output + ); } /** diff --git a/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.spec.ts b/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.spec.ts index 0d27f8e109d4..5fdbd8863c38 100644 --- a/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.spec.ts +++ b/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.spec.ts @@ -30,7 +30,10 @@ describe(AwsRestXmlProtocol.name, () => { }, expected: { request: { - path: "/", + // S3 customization not active here since this is a mock. + // customization does model preprocessing to remove /{Bucket} prefix + // when it is a contextParam. + path: "/{Bucket}", method: "POST", headers: { "content-type": "application/xml", diff --git a/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts b/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts index 873ed90a84da..2d26a0c15ef8 100644 --- a/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts +++ b/packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts @@ -126,17 +126,27 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol { [namespace, errorName] = errorIdentifier.split("#"); } + const errorMetadata = { + $metadata: metadata, + $response: response, + $fault: response.statusCode <= 500 ? ("client" as const) : ("server" as const), + }; + const registry = TypeRegistry.for(namespace); + let errorSchema: ErrorSchema; try { errorSchema = registry.getSchema(errorIdentifier) as ErrorSchema; } catch (e) { + if (dataObject.Message) { + dataObject.message = dataObject.Message; + } const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException(); if (baseExceptionSchema) { const ErrorCtor = baseExceptionSchema.ctor; - throw Object.assign(new ErrorCtor(errorName), dataObject); + throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject); } - throw new Error(errorName); + throw Object.assign(new Error(errorName), errorMetadata, dataObject); } const ns = NormalizedSchema.of(errorSchema); @@ -152,15 +162,15 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol { output[name] = this.codec.createDeserializer().readSchema(member, value); } - Object.assign(exception, { - $metadata: metadata, - $response: response, - $fault: ns.getMergedTraits().error, - message, - ...output, - }); - - throw exception; + throw Object.assign( + exception, + errorMetadata, + { + $fault: ns.getMergedTraits().error, + message, + }, + output + ); } /** diff --git a/packages/core/src/submodules/protocols/xml/XmlShapeSerializer.ts b/packages/core/src/submodules/protocols/xml/XmlShapeSerializer.ts index ef66c11dd711..ab06ba1bb7e1 100644 --- a/packages/core/src/submodules/protocols/xml/XmlShapeSerializer.ts +++ b/packages/core/src/submodules/protocols/xml/XmlShapeSerializer.ts @@ -79,10 +79,6 @@ export class XmlShapeSerializer extends SerdeContextConfig implements ShapeSeria const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns); - if (xmlns) { - structXmlNode.addAttribute(xmlnsAttr as string, xmlns); - } - for (const [memberName, memberSchema] of ns.structIterator()) { const val = (value as any)[memberName]; @@ -108,6 +104,10 @@ export class XmlShapeSerializer extends SerdeContextConfig implements ShapeSeria } } + if (xmlns) { + structXmlNode.addAttribute(xmlnsAttr as string, xmlns); + } + return structXmlNode; } diff --git a/private/aws-client-retry-test/src/ClientRetryTest.spec.ts b/private/aws-client-retry-test/src/ClientRetryTest.spec.ts index e633f9cf7fb7..c9c38a872606 100644 --- a/private/aws-client-retry-test/src/ClientRetryTest.spec.ts +++ b/private/aws-client-retry-test/src/ClientRetryTest.spec.ts @@ -116,6 +116,12 @@ describe("util-retry integration tests", () => { expect(error.$metadata.httpStatusCode).toBe(expectedException.$metadata.httpStatusCode); expect(error.$metadata.attempts).toBe(expectedException.$metadata.attempts); expect(error.$metadata.totalRetryDelay).toBeGreaterThan(0); + expect(error).toMatchObject({ + $metadata: { + httpStatusCode: 429, + }, + $fault: "client", + }); } }); diff --git a/private/aws-middleware-test/src/middleware-serde.spec.ts b/private/aws-middleware-test/src/middleware-serde.spec.ts index 9049f5bb0591..ebe2cc3fe851 100644 --- a/private/aws-middleware-test/src/middleware-serde.spec.ts +++ b/private/aws-middleware-test/src/middleware-serde.spec.ts @@ -4,7 +4,7 @@ import { SageMaker } from "@aws-sdk/client-sagemaker"; import { SageMakerRuntime } from "@aws-sdk/client-sagemaker-runtime"; import { describe, test as it } from "vitest"; -import { requireRequestsFrom } from "../../aws-util-test/src"; +import { requireRequestsFrom } from "@aws-sdk/aws-util-test/src"; describe("middleware-serde", () => { describe(S3.name, () => {