serverless-spy
Version:
CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.
1,221 lines (1,205 loc) • 470 kB
JavaScript
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
AbortMultipartUploadCommand: () => AbortMultipartUploadCommand,
AnalyticsFilter: () => AnalyticsFilter,
AnalyticsS3ExportFileFormat: () => AnalyticsS3ExportFileFormat,
ArchiveStatus: () => ArchiveStatus,
BucketAccelerateStatus: () => BucketAccelerateStatus,
BucketAlreadyExists: () => BucketAlreadyExists,
BucketAlreadyOwnedByYou: () => BucketAlreadyOwnedByYou,
BucketCannedACL: () => BucketCannedACL,
BucketLocationConstraint: () => BucketLocationConstraint,
BucketLogsPermission: () => BucketLogsPermission,
BucketType: () => BucketType,
BucketVersioningStatus: () => BucketVersioningStatus,
ChecksumAlgorithm: () => ChecksumAlgorithm,
ChecksumMode: () => ChecksumMode,
CompleteMultipartUploadCommand: () => CompleteMultipartUploadCommand,
CompleteMultipartUploadOutputFilterSensitiveLog: () => CompleteMultipartUploadOutputFilterSensitiveLog,
CompleteMultipartUploadRequestFilterSensitiveLog: () => CompleteMultipartUploadRequestFilterSensitiveLog,
CompressionType: () => CompressionType,
CopyObjectCommand: () => CopyObjectCommand,
CopyObjectOutputFilterSensitiveLog: () => CopyObjectOutputFilterSensitiveLog,
CopyObjectRequestFilterSensitiveLog: () => CopyObjectRequestFilterSensitiveLog,
CreateBucketCommand: () => CreateBucketCommand,
CreateBucketMetadataTableConfigurationCommand: () => CreateBucketMetadataTableConfigurationCommand,
CreateMultipartUploadCommand: () => CreateMultipartUploadCommand,
CreateMultipartUploadOutputFilterSensitiveLog: () => CreateMultipartUploadOutputFilterSensitiveLog,
CreateMultipartUploadRequestFilterSensitiveLog: () => CreateMultipartUploadRequestFilterSensitiveLog,
CreateSessionCommand: () => CreateSessionCommand,
CreateSessionOutputFilterSensitiveLog: () => CreateSessionOutputFilterSensitiveLog,
CreateSessionRequestFilterSensitiveLog: () => CreateSessionRequestFilterSensitiveLog,
DataRedundancy: () => DataRedundancy,
DeleteBucketAnalyticsConfigurationCommand: () => DeleteBucketAnalyticsConfigurationCommand,
DeleteBucketCommand: () => DeleteBucketCommand,
DeleteBucketCorsCommand: () => DeleteBucketCorsCommand,
DeleteBucketEncryptionCommand: () => DeleteBucketEncryptionCommand,
DeleteBucketIntelligentTieringConfigurationCommand: () => DeleteBucketIntelligentTieringConfigurationCommand,
DeleteBucketInventoryConfigurationCommand: () => DeleteBucketInventoryConfigurationCommand,
DeleteBucketLifecycleCommand: () => DeleteBucketLifecycleCommand,
DeleteBucketMetadataTableConfigurationCommand: () => DeleteBucketMetadataTableConfigurationCommand,
DeleteBucketMetricsConfigurationCommand: () => DeleteBucketMetricsConfigurationCommand,
DeleteBucketOwnershipControlsCommand: () => DeleteBucketOwnershipControlsCommand,
DeleteBucketPolicyCommand: () => DeleteBucketPolicyCommand,
DeleteBucketReplicationCommand: () => DeleteBucketReplicationCommand,
DeleteBucketTaggingCommand: () => DeleteBucketTaggingCommand,
DeleteBucketWebsiteCommand: () => DeleteBucketWebsiteCommand,
DeleteMarkerReplicationStatus: () => DeleteMarkerReplicationStatus,
DeleteObjectCommand: () => DeleteObjectCommand,
DeleteObjectTaggingCommand: () => DeleteObjectTaggingCommand,
DeleteObjectsCommand: () => DeleteObjectsCommand,
DeletePublicAccessBlockCommand: () => DeletePublicAccessBlockCommand,
EncodingType: () => EncodingType,
EncryptionFilterSensitiveLog: () => EncryptionFilterSensitiveLog,
EncryptionTypeMismatch: () => EncryptionTypeMismatch,
Event: () => Event,
ExistingObjectReplicationStatus: () => ExistingObjectReplicationStatus,
ExpirationStatus: () => ExpirationStatus,
ExpressionType: () => ExpressionType,
FileHeaderInfo: () => FileHeaderInfo,
FilterRuleName: () => FilterRuleName,
GetBucketAccelerateConfigurationCommand: () => GetBucketAccelerateConfigurationCommand,
GetBucketAclCommand: () => GetBucketAclCommand,
GetBucketAnalyticsConfigurationCommand: () => GetBucketAnalyticsConfigurationCommand,
GetBucketCorsCommand: () => GetBucketCorsCommand,
GetBucketEncryptionCommand: () => GetBucketEncryptionCommand,
GetBucketEncryptionOutputFilterSensitiveLog: () => GetBucketEncryptionOutputFilterSensitiveLog,
GetBucketIntelligentTieringConfigurationCommand: () => GetBucketIntelligentTieringConfigurationCommand,
GetBucketInventoryConfigurationCommand: () => GetBucketInventoryConfigurationCommand,
GetBucketInventoryConfigurationOutputFilterSensitiveLog: () => GetBucketInventoryConfigurationOutputFilterSensitiveLog,
GetBucketLifecycleConfigurationCommand: () => GetBucketLifecycleConfigurationCommand,
GetBucketLocationCommand: () => GetBucketLocationCommand,
GetBucketLoggingCommand: () => GetBucketLoggingCommand,
GetBucketMetadataTableConfigurationCommand: () => GetBucketMetadataTableConfigurationCommand,
GetBucketMetricsConfigurationCommand: () => GetBucketMetricsConfigurationCommand,
GetBucketNotificationConfigurationCommand: () => GetBucketNotificationConfigurationCommand,
GetBucketOwnershipControlsCommand: () => GetBucketOwnershipControlsCommand,
GetBucketPolicyCommand: () => GetBucketPolicyCommand,
GetBucketPolicyStatusCommand: () => GetBucketPolicyStatusCommand,
GetBucketReplicationCommand: () => GetBucketReplicationCommand,
GetBucketRequestPaymentCommand: () => GetBucketRequestPaymentCommand,
GetBucketTaggingCommand: () => GetBucketTaggingCommand,
GetBucketVersioningCommand: () => GetBucketVersioningCommand,
GetBucketWebsiteCommand: () => GetBucketWebsiteCommand,
GetObjectAclCommand: () => GetObjectAclCommand,
GetObjectAttributesCommand: () => GetObjectAttributesCommand,
GetObjectAttributesRequestFilterSensitiveLog: () => GetObjectAttributesRequestFilterSensitiveLog,
GetObjectCommand: () => GetObjectCommand,
GetObjectLegalHoldCommand: () => GetObjectLegalHoldCommand,
GetObjectLockConfigurationCommand: () => GetObjectLockConfigurationCommand,
GetObjectOutputFilterSensitiveLog: () => GetObjectOutputFilterSensitiveLog,
GetObjectRequestFilterSensitiveLog: () => GetObjectRequestFilterSensitiveLog,
GetObjectRetentionCommand: () => GetObjectRetentionCommand,
GetObjectTaggingCommand: () => GetObjectTaggingCommand,
GetObjectTorrentCommand: () => GetObjectTorrentCommand,
GetObjectTorrentOutputFilterSensitiveLog: () => GetObjectTorrentOutputFilterSensitiveLog,
GetPublicAccessBlockCommand: () => GetPublicAccessBlockCommand,
HeadBucketCommand: () => HeadBucketCommand,
HeadObjectCommand: () => HeadObjectCommand,
HeadObjectOutputFilterSensitiveLog: () => HeadObjectOutputFilterSensitiveLog,
HeadObjectRequestFilterSensitiveLog: () => HeadObjectRequestFilterSensitiveLog,
IntelligentTieringAccessTier: () => IntelligentTieringAccessTier,
IntelligentTieringStatus: () => IntelligentTieringStatus,
InvalidObjectState: () => InvalidObjectState,
InvalidRequest: () => InvalidRequest,
InvalidWriteOffset: () => InvalidWriteOffset,
InventoryConfigurationFilterSensitiveLog: () => InventoryConfigurationFilterSensitiveLog,
InventoryDestinationFilterSensitiveLog: () => InventoryDestinationFilterSensitiveLog,
InventoryEncryptionFilterSensitiveLog: () => InventoryEncryptionFilterSensitiveLog,
InventoryFormat: () => InventoryFormat,
InventoryFrequency: () => InventoryFrequency,
InventoryIncludedObjectVersions: () => InventoryIncludedObjectVersions,
InventoryOptionalField: () => InventoryOptionalField,
InventoryS3BucketDestinationFilterSensitiveLog: () => InventoryS3BucketDestinationFilterSensitiveLog,
JSONType: () => JSONType,
ListBucketAnalyticsConfigurationsCommand: () => ListBucketAnalyticsConfigurationsCommand,
ListBucketIntelligentTieringConfigurationsCommand: () => ListBucketIntelligentTieringConfigurationsCommand,
ListBucketInventoryConfigurationsCommand: () => ListBucketInventoryConfigurationsCommand,
ListBucketInventoryConfigurationsOutputFilterSensitiveLog: () => ListBucketInventoryConfigurationsOutputFilterSensitiveLog,
ListBucketMetricsConfigurationsCommand: () => ListBucketMetricsConfigurationsCommand,
ListBucketsCommand: () => ListBucketsCommand,
ListDirectoryBucketsCommand: () => ListDirectoryBucketsCommand,
ListMultipartUploadsCommand: () => ListMultipartUploadsCommand,
ListObjectVersionsCommand: () => ListObjectVersionsCommand,
ListObjectsCommand: () => ListObjectsCommand,
ListObjectsV2Command: () => ListObjectsV2Command,
ListPartsCommand: () => ListPartsCommand,
ListPartsRequestFilterSensitiveLog: () => ListPartsRequestFilterSensitiveLog,
LocationType: () => LocationType,
MFADelete: () => MFADelete,
MFADeleteStatus: () => MFADeleteStatus,
MetadataDirective: () => MetadataDirective,
MetricsFilter: () => MetricsFilter,
MetricsStatus: () => MetricsStatus,
NoSuchBucket: () => NoSuchBucket,
NoSuchKey: () => NoSuchKey,
NoSuchUpload: () => NoSuchUpload,
NotFound: () => NotFound,
ObjectAlreadyInActiveTierError: () => ObjectAlreadyInActiveTierError,
ObjectAttributes: () => ObjectAttributes,
ObjectCannedACL: () => ObjectCannedACL,
ObjectLockEnabled: () => ObjectLockEnabled,
ObjectLockLegalHoldStatus: () => ObjectLockLegalHoldStatus,
ObjectLockMode: () => ObjectLockMode,
ObjectLockRetentionMode: () => ObjectLockRetentionMode,
ObjectNotInActiveTierError: () => ObjectNotInActiveTierError,
ObjectOwnership: () => ObjectOwnership,
ObjectStorageClass: () => ObjectStorageClass,
ObjectVersionStorageClass: () => ObjectVersionStorageClass,
OptionalObjectAttributes: () => OptionalObjectAttributes,
OutputLocationFilterSensitiveLog: () => OutputLocationFilterSensitiveLog,
OwnerOverride: () => OwnerOverride,
PartitionDateSource: () => PartitionDateSource,
Payer: () => Payer,
Permission: () => Permission,
Protocol: () => Protocol,
PutBucketAccelerateConfigurationCommand: () => PutBucketAccelerateConfigurationCommand,
PutBucketAclCommand: () => PutBucketAclCommand,
PutBucketAnalyticsConfigurationCommand: () => PutBucketAnalyticsConfigurationCommand,
PutBucketCorsCommand: () => PutBucketCorsCommand,
PutBucketEncryptionCommand: () => PutBucketEncryptionCommand,
PutBucketEncryptionRequestFilterSensitiveLog: () => PutBucketEncryptionRequestFilterSensitiveLog,
PutBucketIntelligentTieringConfigurationCommand: () => PutBucketIntelligentTieringConfigurationCommand,
PutBucketInventoryConfigurationCommand: () => PutBucketInventoryConfigurationCommand,
PutBucketInventoryConfigurationRequestFilterSensitiveLog: () => PutBucketInventoryConfigurationRequestFilterSensitiveLog,
PutBucketLifecycleConfigurationCommand: () => PutBucketLifecycleConfigurationCommand,
PutBucketLoggingCommand: () => PutBucketLoggingCommand,
PutBucketMetricsConfigurationCommand: () => PutBucketMetricsConfigurationCommand,
PutBucketNotificationConfigurationCommand: () => PutBucketNotificationConfigurationCommand,
PutBucketOwnershipControlsCommand: () => PutBucketOwnershipControlsCommand,
PutBucketPolicyCommand: () => PutBucketPolicyCommand,
PutBucketReplicationCommand: () => PutBucketReplicationCommand,
PutBucketRequestPaymentCommand: () => PutBucketRequestPaymentCommand,
PutBucketTaggingCommand: () => PutBucketTaggingCommand,
PutBucketVersioningCommand: () => PutBucketVersioningCommand,
PutBucketWebsiteCommand: () => PutBucketWebsiteCommand,
PutObjectAclCommand: () => PutObjectAclCommand,
PutObjectCommand: () => PutObjectCommand,
PutObjectLegalHoldCommand: () => PutObjectLegalHoldCommand,
PutObjectLockConfigurationCommand: () => PutObjectLockConfigurationCommand,
PutObjectOutputFilterSensitiveLog: () => PutObjectOutputFilterSensitiveLog,
PutObjectRequestFilterSensitiveLog: () => PutObjectRequestFilterSensitiveLog,
PutObjectRetentionCommand: () => PutObjectRetentionCommand,
PutObjectTaggingCommand: () => PutObjectTaggingCommand,
PutPublicAccessBlockCommand: () => PutPublicAccessBlockCommand,
QuoteFields: () => QuoteFields,
ReplicaModificationsStatus: () => ReplicaModificationsStatus,
ReplicationRuleStatus: () => ReplicationRuleStatus,
ReplicationStatus: () => ReplicationStatus,
ReplicationTimeStatus: () => ReplicationTimeStatus,
RequestCharged: () => RequestCharged,
RequestPayer: () => RequestPayer,
RestoreObjectCommand: () => RestoreObjectCommand,
RestoreObjectRequestFilterSensitiveLog: () => RestoreObjectRequestFilterSensitiveLog,
RestoreRequestFilterSensitiveLog: () => RestoreRequestFilterSensitiveLog,
RestoreRequestType: () => RestoreRequestType,
S3: () => S3,
S3Client: () => S3Client,
S3LocationFilterSensitiveLog: () => S3LocationFilterSensitiveLog,
S3ServiceException: () => S3ServiceException,
SSEKMSFilterSensitiveLog: () => SSEKMSFilterSensitiveLog,
SelectObjectContentCommand: () => SelectObjectContentCommand,
SelectObjectContentEventStream: () => SelectObjectContentEventStream,
SelectObjectContentEventStreamFilterSensitiveLog: () => SelectObjectContentEventStreamFilterSensitiveLog,
SelectObjectContentOutputFilterSensitiveLog: () => SelectObjectContentOutputFilterSensitiveLog,
SelectObjectContentRequestFilterSensitiveLog: () => SelectObjectContentRequestFilterSensitiveLog,
ServerSideEncryption: () => ServerSideEncryption,
ServerSideEncryptionByDefaultFilterSensitiveLog: () => ServerSideEncryptionByDefaultFilterSensitiveLog,
ServerSideEncryptionConfigurationFilterSensitiveLog: () => ServerSideEncryptionConfigurationFilterSensitiveLog,
ServerSideEncryptionRuleFilterSensitiveLog: () => ServerSideEncryptionRuleFilterSensitiveLog,
SessionCredentialsFilterSensitiveLog: () => SessionCredentialsFilterSensitiveLog,
SessionMode: () => SessionMode,
SseKmsEncryptedObjectsStatus: () => SseKmsEncryptedObjectsStatus,
StorageClass: () => StorageClass,
StorageClassAnalysisSchemaVersion: () => StorageClassAnalysisSchemaVersion,
TaggingDirective: () => TaggingDirective,
Tier: () => Tier,
TooManyParts: () => TooManyParts,
TransitionDefaultMinimumObjectSize: () => TransitionDefaultMinimumObjectSize,
TransitionStorageClass: () => TransitionStorageClass,
Type: () => Type,
UploadPartCommand: () => UploadPartCommand,
UploadPartCopyCommand: () => UploadPartCopyCommand,
UploadPartCopyOutputFilterSensitiveLog: () => UploadPartCopyOutputFilterSensitiveLog,
UploadPartCopyRequestFilterSensitiveLog: () => UploadPartCopyRequestFilterSensitiveLog,
UploadPartOutputFilterSensitiveLog: () => UploadPartOutputFilterSensitiveLog,
UploadPartRequestFilterSensitiveLog: () => UploadPartRequestFilterSensitiveLog,
WriteGetObjectResponseCommand: () => WriteGetObjectResponseCommand,
WriteGetObjectResponseRequestFilterSensitiveLog: () => WriteGetObjectResponseRequestFilterSensitiveLog,
__Client: () => import_smithy_client.Client,
paginateListBuckets: () => paginateListBuckets,
paginateListDirectoryBuckets: () => paginateListDirectoryBuckets,
paginateListObjectsV2: () => paginateListObjectsV2,
paginateListParts: () => paginateListParts,
waitForBucketExists: () => waitForBucketExists,
waitForBucketNotExists: () => waitForBucketNotExists,
waitForObjectExists: () => waitForObjectExists,
waitForObjectNotExists: () => waitForObjectNotExists,
waitUntilBucketExists: () => waitUntilBucketExists,
waitUntilBucketNotExists: () => waitUntilBucketNotExists,
waitUntilObjectExists: () => waitUntilObjectExists,
waitUntilObjectNotExists: () => waitUntilObjectNotExists
});
module.exports = __toCommonJS(src_exports);
// src/S3Client.ts
var import_middleware_expect_continue = require("@aws-sdk/middleware-expect-continue");
var import_middleware_flexible_checksums = require("@aws-sdk/middleware-flexible-checksums");
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
var import_middleware_logger = require("@aws-sdk/middleware-logger");
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
var import_middleware_sdk_s32 = require("@aws-sdk/middleware-sdk-s3");
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
var import_config_resolver = require("@smithy/config-resolver");
var import_core3 = require("@smithy/core");
var import_eventstream_serde_config_resolver = require("@smithy/eventstream-serde-config-resolver");
var import_middleware_content_length = require("@smithy/middleware-content-length");
var import_middleware_retry = require("@smithy/middleware-retry");
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
// src/commands/CreateSessionCommand.ts
var import_middleware_sdk_s3 = require("@aws-sdk/middleware-sdk-s3");
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
var import_middleware_serde = require("@smithy/middleware-serde");
// src/endpoint/EndpointParameters.ts
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
return {
...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"
};
}, "resolveClientEndpointParameters");
var 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" }
};
// src/models/models_0.ts
// src/models/S3ServiceException.ts
var import_smithy_client = require("@smithy/smithy-client");
var _S3ServiceException = class _S3ServiceException extends import_smithy_client.ServiceException {
/**
* @internal
*/
constructor(options) {
super(options);
Object.setPrototypeOf(this, _S3ServiceException.prototype);
}
};
__name(_S3ServiceException, "S3ServiceException");
var S3ServiceException = _S3ServiceException;
// src/models/models_0.ts
var RequestCharged = {
requester: "requester"
};
var RequestPayer = {
requester: "requester"
};
var _NoSuchUpload = class _NoSuchUpload extends S3ServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "NoSuchUpload",
$fault: "client",
...opts
});
this.name = "NoSuchUpload";
this.$fault = "client";
Object.setPrototypeOf(this, _NoSuchUpload.prototype);
}
};
__name(_NoSuchUpload, "NoSuchUpload");
var NoSuchUpload = _NoSuchUpload;
var BucketAccelerateStatus = {
Enabled: "Enabled",
Suspended: "Suspended"
};
var Type = {
AmazonCustomerByEmail: "AmazonCustomerByEmail",
CanonicalUser: "CanonicalUser",
Group: "Group"
};
var Permission = {
FULL_CONTROL: "FULL_CONTROL",
READ: "READ",
READ_ACP: "READ_ACP",
WRITE: "WRITE",
WRITE_ACP: "WRITE_ACP"
};
var OwnerOverride = {
Destination: "Destination"
};
var ServerSideEncryption = {
AES256: "AES256",
aws_kms: "aws:kms",
aws_kms_dsse: "aws:kms:dsse"
};
var ObjectCannedACL = {
authenticated_read: "authenticated-read",
aws_exec_read: "aws-exec-read",
bucket_owner_full_control: "bucket-owner-full-control",
bucket_owner_read: "bucket-owner-read",
private: "private",
public_read: "public-read",
public_read_write: "public-read-write"
};
var ChecksumAlgorithm = {
CRC32: "CRC32",
CRC32C: "CRC32C",
SHA1: "SHA1",
SHA256: "SHA256"
};
var MetadataDirective = {
COPY: "COPY",
REPLACE: "REPLACE"
};
var ObjectLockLegalHoldStatus = {
OFF: "OFF",
ON: "ON"
};
var ObjectLockMode = {
COMPLIANCE: "COMPLIANCE",
GOVERNANCE: "GOVERNANCE"
};
var StorageClass = {
DEEP_ARCHIVE: "DEEP_ARCHIVE",
EXPRESS_ONEZONE: "EXPRESS_ONEZONE",
GLACIER: "GLACIER",
GLACIER_IR: "GLACIER_IR",
INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
ONEZONE_IA: "ONEZONE_IA",
OUTPOSTS: "OUTPOSTS",
REDUCED_REDUNDANCY: "REDUCED_REDUNDANCY",
SNOW: "SNOW",
STANDARD: "STANDARD",
STANDARD_IA: "STANDARD_IA"
};
var TaggingDirective = {
COPY: "COPY",
REPLACE: "REPLACE"
};
var _ObjectNotInActiveTierError = class _ObjectNotInActiveTierError extends S3ServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ObjectNotInActiveTierError",
$fault: "client",
...opts
});
this.name = "ObjectNotInActiveTierError";
this.$fault = "client";
Object.setPrototypeOf(this, _ObjectNotInActiveTierError.prototype);
}
};
__name(_ObjectNotInActiveTierError, "ObjectNotInActiveTierError");
var ObjectNotInActiveTierError = _ObjectNotInActiveTierError;
var _BucketAlreadyExists = class _BucketAlreadyExists extends S3ServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "BucketAlreadyExists",
$fault: "client",
...opts
});
this.name = "BucketAlreadyExists";
this.$fault = "client";
Object.setPrototypeOf(this, _BucketAlreadyExists.prototype);
}
};
__name(_BucketAlreadyExists, "BucketAlreadyExists");
var BucketAlreadyExists = _BucketAlreadyExists;
var _BucketAlreadyOwnedByYou = class _BucketAlreadyOwnedByYou extends S3ServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "BucketAlreadyOwnedByYou",
$fault: "client",
...opts
});
this.name = "BucketAlreadyOwnedByYou";
this.$fault = "client";
Object.setPrototypeOf(this, _BucketAlreadyOwnedByYou.prototype);
}
};
__name(_BucketAlreadyOwnedByYou, "BucketAlreadyOwnedByYou");
var BucketAlreadyOwnedByYou = _BucketAlreadyOwnedByYou;
var BucketCannedACL = {
authenticated_read: "authenticated-read",
private: "private",
public_read: "public-read",
public_read_write: "public-read-write"
};
var DataRedundancy = {
SingleAvailabilityZone: "SingleAvailabilityZone",
SingleLocalZone: "SingleLocalZone"
};
var BucketType = {
Directory: "Directory"
};
var LocationType = {
AvailabilityZone: "AvailabilityZone",
LocalZone: "LocalZone"
};
var BucketLocationConstraint = {
EU: "EU",
af_south_1: "af-south-1",
ap_east_1: "ap-east-1",
ap_northeast_1: "ap-northeast-1",
ap_northeast_2: "ap-northeast-2",
ap_northeast_3: "ap-northeast-3",
ap_south_1: "ap-south-1",
ap_south_2: "ap-south-2",
ap_southeast_1: "ap-southeast-1",
ap_southeast_2: "ap-southeast-2",
ap_southeast_3: "ap-southeast-3",
ca_central_1: "ca-central-1",
cn_north_1: "cn-north-1",
cn_northwest_1: "cn-northwest-1",
eu_central_1: "eu-central-1",
eu_north_1: "eu-north-1",
eu_south_1: "eu-south-1",
eu_south_2: "eu-south-2",
eu_west_1: "eu-west-1",
eu_west_2: "eu-west-2",
eu_west_3: "eu-west-3",
me_south_1: "me-south-1",
sa_east_1: "sa-east-1",
us_east_2: "us-east-2",
us_gov_east_1: "us-gov-east-1",
us_gov_west_1: "us-gov-west-1",
us_west_1: "us-west-1",
us_west_2: "us-west-2"
};
var ObjectOwnership = {
BucketOwnerEnforced: "BucketOwnerEnforced",
BucketOwnerPreferred: "BucketOwnerPreferred",
ObjectWriter: "ObjectWriter"
};
var SessionMode = {
ReadOnly: "ReadOnly",
ReadWrite: "ReadWrite"
};
var _NoSuchBucket = class _NoSuchBucket extends S3ServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "NoSuchBucket",
$fault: "client",
...opts
});
this.name = "NoSuchBucket";
this.$fault = "client";
Object.setPrototypeOf(this, _NoSuchBucket.prototype);
}
};
__name(_NoSuchBucket, "NoSuchBucket");
var NoSuchBucket = _NoSuchBucket;
var AnalyticsFilter;
((AnalyticsFilter2) => {
AnalyticsFilter2.visit = /* @__PURE__ */ __name((value, visitor) => {
if (value.Prefix !== void 0)
return visitor.Prefix(value.Prefix);
if (value.Tag !== void 0)
return visitor.Tag(value.Tag);
if (value.And !== void 0)
return visitor.And(value.And);
return visitor._(value.$unknown[0], value.$unknown[1]);
}, "visit");
})(AnalyticsFilter || (AnalyticsFilter = {}));
var AnalyticsS3ExportFileFormat = {
CSV: "CSV"
};
var StorageClassAnalysisSchemaVersion = {
V_1: "V_1"
};
var IntelligentTieringStatus = {
Disabled: "Disabled",
Enabled: "Enabled"
};
var IntelligentTieringAccessTier = {
ARCHIVE_ACCESS: "ARCHIVE_ACCESS",
DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS"
};
var InventoryFormat = {
CSV: "CSV",
ORC: "ORC",
Parquet: "Parquet"
};
var InventoryIncludedObjectVersions = {
All: "All",
Current: "Current"
};
var InventoryOptionalField = {
BucketKeyStatus: "BucketKeyStatus",
ChecksumAlgorithm: "ChecksumAlgorithm",
ETag: "ETag",
EncryptionStatus: "EncryptionStatus",
IntelligentTieringAccessTier: "IntelligentTieringAccessTier",
IsMultipartUploaded: "IsMultipartUploaded",
LastModifiedDate: "LastModifiedDate",
ObjectAccessControlList: "ObjectAccessControlList",
ObjectLockLegalHoldStatus: "ObjectLockLegalHoldStatus",
ObjectLockMode: "ObjectLockMode",
ObjectLockRetainUntilDate: "ObjectLockRetainUntilDate",
ObjectOwner: "ObjectOwner",
ReplicationStatus: "ReplicationStatus",
Size: "Size",
StorageClass: "StorageClass"
};
var InventoryFrequency = {
Daily: "Daily",
Weekly: "Weekly"
};
var TransitionStorageClass = {
DEEP_ARCHIVE: "DEEP_ARCHIVE",
GLACIER: "GLACIER",
GLACIER_IR: "GLACIER_IR",
INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
ONEZONE_IA: "ONEZONE_IA",
STANDARD_IA: "STANDARD_IA"
};
var ExpirationStatus = {
Disabled: "Disabled",
Enabled: "Enabled"
};
var TransitionDefaultMinimumObjectSize = {
all_storage_classes_128K: "all_storage_classes_128K",
varies_by_storage_class: "varies_by_storage_class"
};
var BucketLogsPermission = {
FULL_CONTROL: "FULL_CONTROL",
READ: "READ",
WRITE: "WRITE"
};
var PartitionDateSource = {
DeliveryTime: "DeliveryTime",
EventTime: "EventTime"
};
var MetricsFilter;
((MetricsFilter2) => {
MetricsFilter2.visit = /* @__PURE__ */ __name((value, visitor) => {
if (value.Prefix !== void 0)
return visitor.Prefix(value.Prefix);
if (value.Tag !== void 0)
return visitor.Tag(value.Tag);
if (value.AccessPointArn !== void 0)
return visitor.AccessPointArn(value.AccessPointArn);
if (value.And !== void 0)
return visitor.And(value.And);
return visitor._(value.$unknown[0], value.$unknown[1]);
}, "visit");
})(MetricsFilter || (MetricsFilter = {}));
var Event = {
s3_IntelligentTiering: "s3:IntelligentTiering",
s3_LifecycleExpiration_: "s3:LifecycleExpiration:*",
s3_LifecycleExpiration_Delete: "s3:LifecycleExpiration:Delete",
s3_LifecycleExpiration_DeleteMarkerCreated: "s3:LifecycleExpiration:DeleteMarkerCreated",
s3_LifecycleTransition: "s3:LifecycleTransition",
s3_ObjectAcl_Put: "s3:ObjectAcl:Put",
s3_ObjectCreated_: "s3:ObjectCreated:*",
s3_ObjectCreated_CompleteMultipartUpload: "s3:ObjectCreated:CompleteMultipartUpload",
s3_ObjectCreated_Copy: "s3:ObjectCreated:Copy",
s3_ObjectCreated_Post: "s3:ObjectCreated:Post",
s3_ObjectCreated_Put: "s3:ObjectCreated:Put",
s3_ObjectRemoved_: "s3:ObjectRemoved:*",
s3_ObjectRemoved_Delete: "s3:ObjectRemoved:Delete",
s3_ObjectRemoved_DeleteMarkerCreated: "s3:ObjectRemoved:DeleteMarkerCreated",
s3_ObjectRestore_: "s3:ObjectRestore:*",
s3_ObjectRestore_Completed: "s3:ObjectRestore:Completed",
s3_ObjectRestore_Delete: "s3:ObjectRestore:Delete",
s3_ObjectRestore_Post: "s3:ObjectRestore:Post",
s3_ObjectTagging_: "s3:ObjectTagging:*",
s3_ObjectTagging_Delete: "s3:ObjectTagging:Delete",
s3_ObjectTagging_Put: "s3:ObjectTagging:Put",
s3_ReducedRedundancyLostObject: "s3:ReducedRedundancyLostObject",
s3_Replication_: "s3:Replication:*",
s3_Replication_OperationFailedReplication: "s3:Replication:OperationFailedReplication",
s3_Replication_OperationMissedThreshold: "s3:Replication:OperationMissedThreshold",
s3_Replication_OperationNotTracked: "s3:Replication:OperationNotTracked",
s3_Replication_OperationReplicatedAfterThreshold: "s3:Replication:OperationReplicatedAfterThreshold"
};
var FilterRuleName = {
prefix: "prefix",
suffix: "suffix"
};
var DeleteMarkerReplicationStatus = {
Disabled: "Disabled",
Enabled: "Enabled"
};
var MetricsStatus = {
Disabled: "Disabled",
Enabled: "Enabled"
};
var ReplicationTimeStatus = {
Disabled: "Disabled",
Enabled: "Enabled"
};
var ExistingObjectReplicationStatus = {
Disabled: "Disabled",
Enabled: "Enabled"
};
var ReplicaModificationsStatus = {
Disabled: "Disabled",
Enabled: "Enabled"
};
var SseKmsEncryptedObjectsStatus = {
Disabled: "Disabled",
Enabled: "Enabled"
};
var ReplicationRuleStatus = {
Disabled: "Disabled",
Enabled: "Enabled"
};
var Payer = {
BucketOwner: "BucketOwner",
Requester: "Requester"
};
var MFADeleteStatus = {
Disabled: "Disabled",
Enabled: "Enabled"
};
var BucketVersioningStatus = {
Enabled: "Enabled",
Suspended: "Suspended"
};
var Protocol = {
http: "http",
https: "https"
};
var ReplicationStatus = {
COMPLETE: "COMPLETE",
COMPLETED: "COMPLETED",
FAILED: "FAILED",
PENDING: "PENDING",
REPLICA: "REPLICA"
};
var ChecksumMode = {
ENABLED: "ENABLED"
};
var _InvalidObjectState = class _InvalidObjectState extends S3ServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "InvalidObjectState",
$fault: "client",
...opts
});
this.name = "InvalidObjectState";
this.$fault = "client";
Object.setPrototypeOf(this, _InvalidObjectState.prototype);
this.StorageClass = opts.StorageClass;
this.AccessTier = opts.AccessTier;
}
};
__name(_InvalidObjectState, "InvalidObjectState");
var InvalidObjectState = _InvalidObjectState;
var _NoSuchKey = class _NoSuchKey extends S3ServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "NoSuchKey",
$fault: "client",
...opts
});
this.name = "NoSuchKey";
this.$fault = "client";
Object.setPrototypeOf(this, _NoSuchKey.prototype);
}
};
__name(_NoSuchKey, "NoSuchKey");
var NoSuchKey = _NoSuchKey;
var ObjectAttributes = {
CHECKSUM: "Checksum",
ETAG: "ETag",
OBJECT_PARTS: "ObjectParts",
OBJECT_SIZE: "ObjectSize",
STORAGE_CLASS: "StorageClass"
};
var ObjectLockEnabled = {
Enabled: "Enabled"
};
var ObjectLockRetentionMode = {
COMPLIANCE: "COMPLIANCE",
GOVERNANCE: "GOVERNANCE"
};
var _NotFound = class _NotFound extends S3ServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "NotFound",
$fault: "client",
...opts
});
this.name = "NotFound";
this.$fault = "client";
Object.setPrototypeOf(this, _NotFound.prototype);
}
};
__name(_NotFound, "NotFound");
var NotFound = _NotFound;
var ArchiveStatus = {
ARCHIVE_ACCESS: "ARCHIVE_ACCESS",
DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS"
};
var EncodingType = {
url: "url"
};
var ObjectStorageClass = {
DEEP_ARCHIVE: "DEEP_ARCHIVE",
EXPRESS_ONEZONE: "EXPRESS_ONEZONE",
GLACIER: "GLACIER",
GLACIER_IR: "GLACIER_IR",
INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
ONEZONE_IA: "ONEZONE_IA",
OUTPOSTS: "OUTPOSTS",
REDUCED_REDUNDANCY: "REDUCED_REDUNDANCY",
SNOW: "SNOW",
STANDARD: "STANDARD",
STANDARD_IA: "STANDARD_IA"
};
var OptionalObjectAttributes = {
RESTORE_STATUS: "RestoreStatus"
};
var ObjectVersionStorageClass = {
STANDARD: "STANDARD"
};
var CompleteMultipartUploadOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING }
}), "CompleteMultipartUploadOutputFilterSensitiveLog");
var CompleteMultipartUploadRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING }
}), "CompleteMultipartUploadRequestFilterSensitiveLog");
var CopyObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING }
}), "CopyObjectOutputFilterSensitiveLog");
var CopyObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING },
...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING },
...obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: import_smithy_client.SENSITIVE_STRING }
}), "CopyObjectRequestFilterSensitiveLog");
var CreateMultipartUploadOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING }
}), "CreateMultipartUploadOutputFilterSensitiveLog");
var CreateMultipartUploadRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING },
...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING }
}), "CreateMultipartUploadRequestFilterSensitiveLog");
var SessionCredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client.SENSITIVE_STRING },
...obj.SessionToken && { SessionToken: import_smithy_client.SENSITIVE_STRING }
}), "SessionCredentialsFilterSensitiveLog");
var CreateSessionOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING },
...obj.Credentials && { Credentials: SessionCredentialsFilterSensitiveLog(obj.Credentials) }
}), "CreateSessionOutputFilterSensitiveLog");
var CreateSessionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING }
}), "CreateSessionRequestFilterSensitiveLog");
var ServerSideEncryptionByDefaultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.KMSMasterKeyID && { KMSMasterKeyID: import_smithy_client.SENSITIVE_STRING }
}), "ServerSideEncryptionByDefaultFilterSensitiveLog");
var ServerSideEncryptionRuleFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.ApplyServerSideEncryptionByDefault && {
ApplyServerSideEncryptionByDefault: ServerSideEncryptionByDefaultFilterSensitiveLog(
obj.ApplyServerSideEncryptionByDefault
)
}
}), "ServerSideEncryptionRuleFilterSensitiveLog");
var ServerSideEncryptionConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Rules && { Rules: obj.Rules.map((item) => ServerSideEncryptionRuleFilterSensitiveLog(item)) }
}), "ServerSideEncryptionConfigurationFilterSensitiveLog");
var GetBucketEncryptionOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.ServerSideEncryptionConfiguration && {
ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationFilterSensitiveLog(
obj.ServerSideEncryptionConfiguration
)
}
}), "GetBucketEncryptionOutputFilterSensitiveLog");
var SSEKMSFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.KeyId && { KeyId: import_smithy_client.SENSITIVE_STRING }
}), "SSEKMSFilterSensitiveLog");
var InventoryEncryptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSEKMS && { SSEKMS: SSEKMSFilterSensitiveLog(obj.SSEKMS) }
}), "InventoryEncryptionFilterSensitiveLog");
var InventoryS3BucketDestinationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Encryption && { Encryption: InventoryEncryptionFilterSensitiveLog(obj.Encryption) }
}), "InventoryS3BucketDestinationFilterSensitiveLog");
var InventoryDestinationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.S3BucketDestination && {
S3BucketDestination: InventoryS3BucketDestinationFilterSensitiveLog(obj.S3BucketDestination)
}
}), "InventoryDestinationFilterSensitiveLog");
var InventoryConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Destination && { Destination: InventoryDestinationFilterSensitiveLog(obj.Destination) }
}), "InventoryConfigurationFilterSensitiveLog");
var GetBucketInventoryConfigurationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.InventoryConfiguration && {
InventoryConfiguration: InventoryConfigurationFilterSensitiveLog(obj.InventoryConfiguration)
}
}), "GetBucketInventoryConfigurationOutputFilterSensitiveLog");
var GetObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING }
}), "GetObjectOutputFilterSensitiveLog");
var GetObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING }
}), "GetObjectRequestFilterSensitiveLog");
var GetObjectAttributesRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING }
}), "GetObjectAttributesRequestFilterSensitiveLog");
var GetObjectTorrentOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj
}), "GetObjectTorrentOutputFilterSensitiveLog");
var HeadObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING }
}), "HeadObjectOutputFilterSensitiveLog");
var HeadObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING }
}), "HeadObjectRequestFilterSensitiveLog");
var ListBucketInventoryConfigurationsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.InventoryConfigurationList && {
InventoryConfigurationList: obj.InventoryConfigurationList.map(
(item) => InventoryConfigurationFilterSensitiveLog(item)
)
}
}), "ListBucketInventoryConfigurationsOutputFilterSensitiveLog");
var ListPartsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING }
}), "ListPartsRequestFilterSensitiveLog");
// src/protocols/Aws_restXml.ts
var import_core = require("@aws-sdk/core");
var import_xml_builder = require("@aws-sdk/xml-builder");
var import_core2 = require("@smithy/core");
var import_protocol_http = require("@smithy/protocol-http");
// src/models/models_1.ts
var MFADelete = {
Disabled: "Disabled",
Enabled: "Enabled"
};
var _EncryptionTypeMismatch = class _EncryptionTypeMismatch extends S3ServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "EncryptionTypeMismatch",
$fault: "client",
...opts
});
this.name = "EncryptionTypeMismatch";
this.$fault = "client";
Object.setPrototypeOf(this, _EncryptionTypeMismatch.prototype);
}
};
__name(_EncryptionTypeMismatch, "EncryptionTypeMismatch");
var EncryptionTypeMismatch = _EncryptionTypeMismatch;
var _InvalidRequest = class _InvalidRequest extends S3ServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "InvalidRequest",
$fault: "client",
...opts
});
this.name = "InvalidRequest";
this.$fault = "client";
Object.setPrototypeOf(this, _InvalidRequest.prototype);
}
};
__name(_InvalidRequest, "InvalidRequest");
var InvalidRequest = _InvalidRequest;
var _InvalidWriteOffset = class _InvalidWriteOffset extends S3ServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "InvalidWriteOffset",
$fault: "client",
...opts
});
this.name = "InvalidWriteOffset";
this.$fault = "client";
Object.setPrototypeOf(this, _InvalidWriteOffset.prototype);
}
};
__name(_InvalidWriteOffset, "InvalidWriteOffset");
var InvalidWriteOffset = _InvalidWriteOffset;
var _TooManyParts = class _TooManyParts extends S3ServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "TooManyParts",
$fault: "client",
...opts
});
this.name = "TooManyParts";
this.$fault = "client";
Object.setPrototypeOf(this, _TooManyParts.prototype);
}
};
__name(_TooManyParts, "TooManyParts");
var TooManyParts = _TooManyParts;
var _ObjectAlreadyInActiveTierError = class _ObjectAlreadyInActiveTierError extends S3ServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ObjectAlreadyInActiveTierError",
$fault: "client",
...opts
});
this.name = "ObjectAlreadyInActiveTierError";
this.$fault = "client";
Object.setPrototypeOf(this, _ObjectAlreadyInActiveTierError.prototype);
}
};
__name(_ObjectAlreadyInActiveTierError, "ObjectAlreadyInActiveTierError");
var ObjectAlreadyInActiveTierError = _ObjectAlreadyInActiveTierError;
var Tier = {
Bulk: "Bulk",
Expedited: "Expedited",
Standard: "Standard"
};
var ExpressionType = {
SQL: "SQL"
};
var CompressionType = {
BZIP2: "BZIP2",
GZIP: "GZIP",
NONE: "NONE"
};
var FileHeaderInfo = {
IGNORE: "IGNORE",
NONE: "NONE",
USE: "USE"
};
var JSONType = {
DOCUMENT: "DOCUMENT",
LINES: "LINES"
};
var QuoteFields = {
ALWAYS: "ALWAYS",
ASNEEDED: "ASNEEDED"
};
var RestoreRequestType = {
SELECT: "SELECT"
};
var SelectObjectContentEventStream;
((SelectObjectContentEventStream3) => {
SelectObjectContentEventStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
if (value.Records !== void 0)
return visitor.Records(value.Records);
if (value.Stats !== void 0)
return visitor.Stats(value.Stats);
if (value.Progress !== void 0)
return visitor.Progress(value.Progress);
if (value.Cont !== void 0)
return visitor.Cont(value.Cont);
if (value.End !== void 0)
return visitor.End(value.End);
return visitor._(value.$unknown[0], value.$unknown[1]);
}, "visit");
})(SelectObjectContentEventStream || (SelectObjectContentEventStream = {}));
var PutBucketEncryptionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.ServerSideEncryptionConfiguration && {
ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationFilterSensitiveLog(
obj.ServerSideEncryptionConfiguration
)
}
}), "PutBucketEncryptionRequestFilterSensitiveLog");
var PutBucketInventoryConfigurationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.InventoryConfiguration && {
InventoryConfiguration: InventoryConfigurationFilterSensitiveLog(obj.InventoryConfiguration)
}
}), "PutBucketInventoryConfigurationRequestFilterSensitiveLog");
var PutObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING }
}), "PutObjectOutputFilterSensitiveLog");
var PutObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING },
...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING }
}), "PutObjectRequestFilterSensitiveLog");
var EncryptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.KMSKeyId && { KMSKeyId: import_smithy_client.SENSITIVE_STRING }
}), "EncryptionFilterSensitiveLog");
var S3LocationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Encryption && { Encryption: EncryptionFilterSensitiveLog(obj.Encryption) }
}), "S3LocationFilterSensitiveLog");
var OutputLocationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.S3 && { S3: S3LocationFilterSensitiveLog(obj.S3) }
}), "OutputLocationFilterSensitiveLog");
var RestoreRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.OutputLocation && { OutputLocation: OutputLocationFilterSensitiveLog(obj.OutputLocation) }
}), "RestoreRequestFilterSensitiveLog");
var RestoreObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.RestoreRequest && { RestoreRequest: RestoreRequestFilterSensitiveLog(obj.RestoreRequest) }
}), "RestoreObjectRequestFilterSensitiveLog");
var SelectObjectContentEventStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
if (obj.Records !== void 0)
return { Records: obj.Records };
if (obj.Stats !== void 0)
return { Stats: obj.Stats };
if (obj.Progress !== void 0)
return { Progress: obj.Progress };
if (obj.Cont !== void 0)
return { Cont: obj.Cont };
if (obj.End !== void 0)
return { End: obj.End };
if (obj.$unknown !== void 0)
return { [obj.$unknown[0]]: "UNKNOWN" };
}, "SelectObjectContentEventStreamFilterSensitiveLog");
var SelectObjectContentOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Payload && { Payload: "STREAMING_CONTENT" }
}), "SelectObjectContentOutputFilterSensitiveLog");
var SelectObjectContentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING }
}), "SelectObjectContentRequestFilterSensitiveLog");
var UploadPartOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING }
}), "UploadPartOutputFilterSensitiveLog");
var UploadPartRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING }
}), "UploadPartRequestFilterSensitiveLog");
var UploadPartCopyOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING }
}), "UploadPartCopyOutputFilterSensitiveLog");
var UploadPartCopyRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING },
...obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: import_smithy_client.SENSITIVE_STRING }
}), "UploadPartCopyRequestFilterSensitiveLog");
var WriteGetObjectResponseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING }
}), "WriteGetObjectResponseRequestFilterSensitiveLog");
// src/protocols/Aws_restXml.ts
var se_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core2.requestBuilder)(input, context);
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
[_xarp]: input[_RP],
[_xaebo]: input[_EBO],
[_xaimit]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IMIT]), () => (0, import_smithy_client.dateToUtcString)(input[_IMIT]).toString()]
});
b.bp("/{Key+}");
b.p("Bucket", () => input.Bucket, "{Bucket}", false);
b.p("Key", () => input.Key, "{Key+}", true);
const query = (0, import_smithy_client.map)({
[_xi]: [, "AbortMultipartUpload"],
[_uI]: [, (0, import_smithy_client.expectNonNull)(input[_UI], `UploadId`)]
});
let body;
b.m("DELETE").h(headers).q(query).b(body);
return b.build();
}, "se_AbortMultipartUploadCommand");
var se_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
const b = (0, import_core2.requestBuilder)(input, context);
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
"content-type": "application/xml",
[_xacc]: input[_CCRC],
[_xacc_]: input[_CCRCC],
[_xacs]: input[_CSHA],
[_xacs_]: input[_CSHAh],
[_xarp]: input[_RP],
[_xaebo]: input[_EBO],
[_im]: input[_IM],
[_inm]: input[_INM],
[_xa