UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

1,376 lines (1,303 loc) 112 kB
'use strict'; var middlewareExpectContinue = require('@aws-sdk/middleware-expect-continue'); var middlewareFlexibleChecksums = require('@aws-sdk/middleware-flexible-checksums'); var middlewareHostHeader = require('@aws-sdk/middleware-host-header'); var middlewareLogger = require('@aws-sdk/middleware-logger'); var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection'); var middlewareSdkS3 = require('@aws-sdk/middleware-sdk-s3'); var middlewareUserAgent = require('@aws-sdk/middleware-user-agent'); var configResolver = require('@smithy/config-resolver'); var core = require('@smithy/core'); var schema = require('@smithy/core/schema'); var eventstreamSerdeConfigResolver = require('@smithy/eventstream-serde-config-resolver'); var middlewareContentLength = require('@smithy/middleware-content-length'); var middlewareEndpoint = require('@smithy/middleware-endpoint'); var middlewareRetry = require('@smithy/middleware-retry'); var smithyClient = require('@smithy/smithy-client'); var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider'); var schemas_0 = require('./schemas/schemas_0'); var runtimeConfig = require('./runtimeConfig'); var regionConfigResolver = require('@aws-sdk/region-config-resolver'); var protocolHttp = require('@smithy/protocol-http'); var middlewareSsec = require('@aws-sdk/middleware-ssec'); var middlewareLocationConstraint = require('@aws-sdk/middleware-location-constraint'); var utilWaiter = require('@smithy/util-waiter'); var errors = require('./models/errors'); var S3ServiceException = require('./models/S3ServiceException'); const resolveClientEndpointParameters = (options) => { return Object.assign(options, { useFipsEndpoint: options.useFipsEndpoint ?? false, useDualstackEndpoint: options.useDualstackEndpoint ?? false, forcePathStyle: options.forcePathStyle ?? false, useAccelerateEndpoint: options.useAccelerateEndpoint ?? false, useGlobalEndpoint: options.useGlobalEndpoint ?? false, disableMultiregionAccessPoints: options.disableMultiregionAccessPoints ?? false, defaultSigningName: "s3", clientContextParams: options.clientContextParams ?? {}, }); }; const commonParams = { ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" }, UseArnRegion: { type: "clientContextParams", name: "useArnRegion" }, DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" }, Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" }, DisableS3ExpressSessionAuth: { type: "clientContextParams", name: "disableS3ExpressSessionAuth" }, UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, }; class CreateSessionCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "CreateSession", {}) .n("S3Client", "CreateSessionCommand") .sc(schemas_0.CreateSession$) .build() { } const getHttpAuthExtensionConfiguration = (runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; return { setHttpAuthScheme(httpAuthScheme) { const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); if (index === -1) { _httpAuthSchemes.push(httpAuthScheme); } else { _httpAuthSchemes.splice(index, 1, httpAuthScheme); } }, httpAuthSchemes() { return _httpAuthSchemes; }, setHttpAuthSchemeProvider(httpAuthSchemeProvider) { _httpAuthSchemeProvider = httpAuthSchemeProvider; }, httpAuthSchemeProvider() { return _httpAuthSchemeProvider; }, setCredentials(credentials) { _credentials = credentials; }, credentials() { return _credentials; }, }; }; const resolveHttpAuthRuntimeConfig = (config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials(), }; }; const resolveRuntimeExtensions = (runtimeConfig, extensions) => { const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); }; class S3Client extends smithyClient.Client { config; constructor(...[configuration]) { const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1); const _config_3 = middlewareFlexibleChecksums.resolveFlexibleChecksumsConfig(_config_2); const _config_4 = middlewareRetry.resolveRetryConfig(_config_3); const _config_5 = configResolver.resolveRegionConfig(_config_4); const _config_6 = middlewareHostHeader.resolveHostHeaderConfig(_config_5); const _config_7 = middlewareEndpoint.resolveEndpointConfig(_config_6); const _config_8 = eventstreamSerdeConfigResolver.resolveEventStreamSerdeConfig(_config_7); const _config_9 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_8); const _config_10 = middlewareSdkS3.resolveS3Config(_config_9, { session: [() => this, CreateSessionCommand] }); const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []); this.config = _config_11; this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config)); this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config)); this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config)); this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config)); this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config)); this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config)); this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config)); this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultS3HttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials, "aws.auth#sigv4a": config.credentials, }), })); this.middlewareStack.use(core.getHttpSigningPlugin(this.config)); this.middlewareStack.use(middlewareSdkS3.getValidateBucketNamePlugin(this.config)); this.middlewareStack.use(middlewareExpectContinue.getAddExpectContinuePlugin(this.config)); this.middlewareStack.use(middlewareSdkS3.getRegionRedirectMiddlewarePlugin(this.config)); this.middlewareStack.use(middlewareSdkS3.getS3ExpressPlugin(this.config)); this.middlewareStack.use(middlewareSdkS3.getS3ExpressHttpSigningPlugin(this.config)); } destroy() { super.destroy(); } } class AbortMultipartUploadCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "AbortMultipartUpload", {}) .n("S3Client", "AbortMultipartUploadCommand") .sc(schemas_0.AbortMultipartUpload$) .build() { } class CompleteMultipartUploadCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), middlewareSsec.getSsecPlugin(config), ]; }) .s("AmazonS3", "CompleteMultipartUpload", {}) .n("S3Client", "CompleteMultipartUploadCommand") .sc(schemas_0.CompleteMultipartUpload$) .build() { } class CopyObjectCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" }, CopySource: { type: "contextParams", name: "CopySource" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), middlewareSsec.getSsecPlugin(config), ]; }) .s("AmazonS3", "CopyObject", {}) .n("S3Client", "CopyObjectCommand") .sc(schemas_0.CopyObject$) .build() { } class CreateBucketCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, DisableAccessPoints: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), middlewareLocationConstraint.getLocationConstraintPlugin(config), ]; }) .s("AmazonS3", "CreateBucket", {}) .n("S3Client", "CreateBucketCommand") .sc(schemas_0.CreateBucket$) .build() { } class CreateBucketMetadataConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareFlexibleChecksums.getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' }, requestChecksumRequired: true, }), ]; }) .s("AmazonS3", "CreateBucketMetadataConfiguration", {}) .n("S3Client", "CreateBucketMetadataConfigurationCommand") .sc(schemas_0.CreateBucketMetadataConfiguration$) .build() { } class CreateBucketMetadataTableConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareFlexibleChecksums.getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' }, requestChecksumRequired: true, }), ]; }) .s("AmazonS3", "CreateBucketMetadataTableConfiguration", {}) .n("S3Client", "CreateBucketMetadataTableConfigurationCommand") .sc(schemas_0.CreateBucketMetadataTableConfiguration$) .build() { } class CreateMultipartUploadCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), middlewareSsec.getSsecPlugin(config), ]; }) .s("AmazonS3", "CreateMultipartUpload", {}) .n("S3Client", "CreateMultipartUploadCommand") .sc(schemas_0.CreateMultipartUpload$) .build() { } class DeleteBucketAnalyticsConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketAnalyticsConfiguration", {}) .n("S3Client", "DeleteBucketAnalyticsConfigurationCommand") .sc(schemas_0.DeleteBucketAnalyticsConfiguration$) .build() { } class DeleteBucketCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucket", {}) .n("S3Client", "DeleteBucketCommand") .sc(schemas_0.DeleteBucket$) .build() { } class DeleteBucketCorsCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketCors", {}) .n("S3Client", "DeleteBucketCorsCommand") .sc(schemas_0.DeleteBucketCors$) .build() { } class DeleteBucketEncryptionCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketEncryption", {}) .n("S3Client", "DeleteBucketEncryptionCommand") .sc(schemas_0.DeleteBucketEncryption$) .build() { } class DeleteBucketIntelligentTieringConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketIntelligentTieringConfiguration", {}) .n("S3Client", "DeleteBucketIntelligentTieringConfigurationCommand") .sc(schemas_0.DeleteBucketIntelligentTieringConfiguration$) .build() { } class DeleteBucketInventoryConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketInventoryConfiguration", {}) .n("S3Client", "DeleteBucketInventoryConfigurationCommand") .sc(schemas_0.DeleteBucketInventoryConfiguration$) .build() { } class DeleteBucketLifecycleCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketLifecycle", {}) .n("S3Client", "DeleteBucketLifecycleCommand") .sc(schemas_0.DeleteBucketLifecycle$) .build() { } class DeleteBucketMetadataConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketMetadataConfiguration", {}) .n("S3Client", "DeleteBucketMetadataConfigurationCommand") .sc(schemas_0.DeleteBucketMetadataConfiguration$) .build() { } class DeleteBucketMetadataTableConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketMetadataTableConfiguration", {}) .n("S3Client", "DeleteBucketMetadataTableConfigurationCommand") .sc(schemas_0.DeleteBucketMetadataTableConfiguration$) .build() { } class DeleteBucketMetricsConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketMetricsConfiguration", {}) .n("S3Client", "DeleteBucketMetricsConfigurationCommand") .sc(schemas_0.DeleteBucketMetricsConfiguration$) .build() { } class DeleteBucketOwnershipControlsCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketOwnershipControls", {}) .n("S3Client", "DeleteBucketOwnershipControlsCommand") .sc(schemas_0.DeleteBucketOwnershipControls$) .build() { } class DeleteBucketPolicyCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketPolicy", {}) .n("S3Client", "DeleteBucketPolicyCommand") .sc(schemas_0.DeleteBucketPolicy$) .build() { } class DeleteBucketReplicationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketReplication", {}) .n("S3Client", "DeleteBucketReplicationCommand") .sc(schemas_0.DeleteBucketReplication$) .build() { } class DeleteBucketTaggingCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketTagging", {}) .n("S3Client", "DeleteBucketTaggingCommand") .sc(schemas_0.DeleteBucketTagging$) .build() { } class DeleteBucketWebsiteCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeleteBucketWebsite", {}) .n("S3Client", "DeleteBucketWebsiteCommand") .sc(schemas_0.DeleteBucketWebsite$) .build() { } class DeleteObjectCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "DeleteObject", {}) .n("S3Client", "DeleteObjectCommand") .sc(schemas_0.DeleteObject$) .build() { } class DeleteObjectsCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareFlexibleChecksums.getFlexibleChecksumsPlugin(config, { requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' }, requestChecksumRequired: true, }), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "DeleteObjects", {}) .n("S3Client", "DeleteObjectsCommand") .sc(schemas_0.DeleteObjects$) .build() { } class DeleteObjectTaggingCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "DeleteObjectTagging", {}) .n("S3Client", "DeleteObjectTaggingCommand") .sc(schemas_0.DeleteObjectTagging$) .build() { } class DeletePublicAccessBlockCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "DeletePublicAccessBlock", {}) .n("S3Client", "DeletePublicAccessBlockCommand") .sc(schemas_0.DeletePublicAccessBlock$) .build() { } class GetBucketAbacCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketAbac", {}) .n("S3Client", "GetBucketAbacCommand") .sc(schemas_0.GetBucketAbac$) .build() { } class GetBucketAccelerateConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketAccelerateConfiguration", {}) .n("S3Client", "GetBucketAccelerateConfigurationCommand") .sc(schemas_0.GetBucketAccelerateConfiguration$) .build() { } class GetBucketAclCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketAcl", {}) .n("S3Client", "GetBucketAclCommand") .sc(schemas_0.GetBucketAcl$) .build() { } class GetBucketAnalyticsConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketAnalyticsConfiguration", {}) .n("S3Client", "GetBucketAnalyticsConfigurationCommand") .sc(schemas_0.GetBucketAnalyticsConfiguration$) .build() { } class GetBucketCorsCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketCors", {}) .n("S3Client", "GetBucketCorsCommand") .sc(schemas_0.GetBucketCors$) .build() { } class GetBucketEncryptionCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketEncryption", {}) .n("S3Client", "GetBucketEncryptionCommand") .sc(schemas_0.GetBucketEncryption$) .build() { } class GetBucketIntelligentTieringConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketIntelligentTieringConfiguration", {}) .n("S3Client", "GetBucketIntelligentTieringConfigurationCommand") .sc(schemas_0.GetBucketIntelligentTieringConfiguration$) .build() { } class GetBucketInventoryConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketInventoryConfiguration", {}) .n("S3Client", "GetBucketInventoryConfigurationCommand") .sc(schemas_0.GetBucketInventoryConfiguration$) .build() { } class GetBucketLifecycleConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketLifecycleConfiguration", {}) .n("S3Client", "GetBucketLifecycleConfigurationCommand") .sc(schemas_0.GetBucketLifecycleConfiguration$) .build() { } class GetBucketLocationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketLocation", {}) .n("S3Client", "GetBucketLocationCommand") .sc(schemas_0.GetBucketLocation$) .build() { } class GetBucketLoggingCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketLogging", {}) .n("S3Client", "GetBucketLoggingCommand") .sc(schemas_0.GetBucketLogging$) .build() { } class GetBucketMetadataConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketMetadataConfiguration", {}) .n("S3Client", "GetBucketMetadataConfigurationCommand") .sc(schemas_0.GetBucketMetadataConfiguration$) .build() { } class GetBucketMetadataTableConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketMetadataTableConfiguration", {}) .n("S3Client", "GetBucketMetadataTableConfigurationCommand") .sc(schemas_0.GetBucketMetadataTableConfiguration$) .build() { } class GetBucketMetricsConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketMetricsConfiguration", {}) .n("S3Client", "GetBucketMetricsConfigurationCommand") .sc(schemas_0.GetBucketMetricsConfiguration$) .build() { } class GetBucketNotificationConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketNotificationConfiguration", {}) .n("S3Client", "GetBucketNotificationConfigurationCommand") .sc(schemas_0.GetBucketNotificationConfiguration$) .build() { } class GetBucketOwnershipControlsCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketOwnershipControls", {}) .n("S3Client", "GetBucketOwnershipControlsCommand") .sc(schemas_0.GetBucketOwnershipControls$) .build() { } class GetBucketPolicyCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketPolicy", {}) .n("S3Client", "GetBucketPolicyCommand") .sc(schemas_0.GetBucketPolicy$) .build() { } class GetBucketPolicyStatusCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketPolicyStatus", {}) .n("S3Client", "GetBucketPolicyStatusCommand") .sc(schemas_0.GetBucketPolicyStatus$) .build() { } class GetBucketReplicationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketReplication", {}) .n("S3Client", "GetBucketReplicationCommand") .sc(schemas_0.GetBucketReplication$) .build() { } class GetBucketRequestPaymentCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketRequestPayment", {}) .n("S3Client", "GetBucketRequestPaymentCommand") .sc(schemas_0.GetBucketRequestPayment$) .build() { } class GetBucketTaggingCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketTagging", {}) .n("S3Client", "GetBucketTaggingCommand") .sc(schemas_0.GetBucketTagging$) .build() { } class GetBucketVersioningCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketVersioning", {}) .n("S3Client", "GetBucketVersioningCommand") .sc(schemas_0.GetBucketVersioning$) .build() { } class GetBucketWebsiteCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetBucketWebsite", {}) .n("S3Client", "GetBucketWebsiteCommand") .sc(schemas_0.GetBucketWebsite$) .build() { } class GetObjectAclCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetObjectAcl", {}) .n("S3Client", "GetObjectAclCommand") .sc(schemas_0.GetObjectAcl$) .build() { } class GetObjectAttributesCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), middlewareSsec.getSsecPlugin(config), ]; }) .s("AmazonS3", "GetObjectAttributes", {}) .n("S3Client", "GetObjectAttributesCommand") .sc(schemas_0.GetObjectAttributes$) .build() { } class GetObjectCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareFlexibleChecksums.getFlexibleChecksumsPlugin(config, { requestChecksumRequired: false, requestValidationModeMember: 'ChecksumMode', 'responseAlgorithms': ['CRC64NVME', 'CRC32', 'CRC32C', 'SHA256', 'SHA1'], }), middlewareSsec.getSsecPlugin(config), middlewareSdkS3.getS3ExpiresMiddlewarePlugin(config), ]; }) .s("AmazonS3", "GetObject", {}) .n("S3Client", "GetObjectCommand") .sc(schemas_0.GetObject$) .build() { } class GetObjectLegalHoldCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetObjectLegalHold", {}) .n("S3Client", "GetObjectLegalHoldCommand") .sc(schemas_0.GetObjectLegalHold$) .build() { } class GetObjectLockConfigurationCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetObjectLockConfiguration", {}) .n("S3Client", "GetObjectLockConfigurationCommand") .sc(schemas_0.GetObjectLockConfiguration$) .build() { } class GetObjectRetentionCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetObjectRetention", {}) .n("S3Client", "GetObjectRetentionCommand") .sc(schemas_0.GetObjectRetention$) .build() { } class GetObjectTaggingCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetObjectTagging", {}) .n("S3Client", "GetObjectTaggingCommand") .sc(schemas_0.GetObjectTagging$) .build() { } class GetObjectTorrentCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; }) .s("AmazonS3", "GetObjectTorrent", {}) .n("S3Client", "GetObjectTorrentCommand") .sc(schemas_0.GetObjectTorrent$) .build() { } class GetPublicAccessBlockCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "GetPublicAccessBlock", {}) .n("S3Client", "GetPublicAccessBlockCommand") .sc(schemas_0.GetPublicAccessBlock$) .build() { } class HeadBucketCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "HeadBucket", {}) .n("S3Client", "HeadBucketCommand") .sc(schemas_0.HeadBucket$) .build() { } class HeadObjectCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), middlewareSsec.getSsecPlugin(config), middlewareSdkS3.getS3ExpiresMiddlewarePlugin(config), ]; }) .s("AmazonS3", "HeadObject", {}) .n("S3Client", "HeadObjectCommand") .sc(schemas_0.HeadObject$) .build() { } class ListBucketAnalyticsConfigurationsCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "ListBucketAnalyticsConfigurations", {}) .n("S3Client", "ListBucketAnalyticsConfigurationsCommand") .sc(schemas_0.ListBucketAnalyticsConfigurations$) .build() { } class ListBucketIntelligentTieringConfigurationsCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "ListBucketIntelligentTieringConfigurations", {}) .n("S3Client", "ListBucketIntelligentTieringConfigurationsCommand") .sc(schemas_0.ListBucketIntelligentTieringConfigurations$) .build() { } class ListBucketInventoryConfigurationsCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "ListBucketInventoryConfigurations", {}) .n("S3Client", "ListBucketInventoryConfigurationsCommand") .sc(schemas_0.ListBucketInventoryConfigurations$) .build() { } class ListBucketMetricsConfigurationsCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "ListBucketMetricsConfigurations", {}) .n("S3Client", "ListBucketMetricsConfigurationsCommand") .sc(schemas_0.ListBucketMetricsConfigurations$) .build() { } class ListBucketsCommand extends smithyClient.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "ListBuckets", {}) .n("S3Client", "ListBucketsCommand") .sc(schemas_0.ListBuckets$) .build() { } class ListDirectoryBucketsCommand extends smithyClient.Command .classBuilder() .ep({ ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, }) .m(function (Command, cs, config, o) { return [ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareSdkS3.getThrow200ExceptionsPlugin(config), ]; }) .s("AmazonS3", "ListDirectoryBuckets", {}) .n("S3Client", "ListDirectoryBucketsCommand") .sc(schemas_0.ListDirectoryBuckets$) .build() { } class ListMultipartUploadsCommand extends smithyClient.Command .