UNPKG

open-next-cdk

Version:

Deploy a NextJS app using OpenNext packaging to serverless AWS using CDK

635 lines (634 loc) 26.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ReplicationStatus = exports.Protocol = exports.BucketVersioningStatus = exports.MFADeleteStatus = exports.Payer = exports.ReplicationRuleStatus = exports.SseKmsEncryptedObjectsStatus = exports.ReplicaModificationsStatus = exports.ReplicationRuleFilter = exports.ExistingObjectReplicationStatus = exports.ReplicationTimeStatus = exports.MetricsStatus = exports.DeleteMarkerReplicationStatus = exports.FilterRuleName = exports.Event = exports.MetricsFilter = exports.BucketLogsPermission = exports.ExpirationStatus = exports.TransitionStorageClass = exports.LifecycleRuleFilter = exports.InventoryFrequency = exports.InventoryOptionalField = exports.InventoryIncludedObjectVersions = exports.InventoryFormat = exports.IntelligentTieringAccessTier = exports.IntelligentTieringStatus = exports.StorageClassAnalysisSchemaVersion = exports.AnalyticsS3ExportFileFormat = exports.AnalyticsFilter = exports.ObjectOwnership = exports.BucketLocationConstraint = exports.BucketCannedACL = exports.BucketAlreadyOwnedByYou = exports.BucketAlreadyExists = exports.ObjectNotInActiveTierError = exports.TaggingDirective = exports.StorageClass = exports.ObjectLockMode = exports.ObjectLockLegalHoldStatus = exports.MetadataDirective = exports.ChecksumAlgorithm = exports.ObjectCannedACL = exports.ServerSideEncryption = exports.OwnerOverride = exports.Permission = exports.Type = exports.BucketAccelerateStatus = exports.NoSuchUpload = exports.RequestPayer = exports.RequestCharged = void 0; exports.PutObjectRequestFilterSensitiveLog = exports.PutObjectOutputFilterSensitiveLog = exports.PutBucketInventoryConfigurationRequestFilterSensitiveLog = exports.PutBucketEncryptionRequestFilterSensitiveLog = exports.ListPartsRequestFilterSensitiveLog = exports.ListBucketInventoryConfigurationsOutputFilterSensitiveLog = exports.HeadObjectRequestFilterSensitiveLog = exports.HeadObjectOutputFilterSensitiveLog = exports.GetObjectTorrentOutputFilterSensitiveLog = exports.GetObjectAttributesRequestFilterSensitiveLog = exports.GetObjectRequestFilterSensitiveLog = exports.GetObjectOutputFilterSensitiveLog = exports.GetBucketInventoryConfigurationOutputFilterSensitiveLog = exports.InventoryConfigurationFilterSensitiveLog = exports.InventoryDestinationFilterSensitiveLog = exports.InventoryS3BucketDestinationFilterSensitiveLog = exports.InventoryEncryptionFilterSensitiveLog = exports.SSEKMSFilterSensitiveLog = exports.GetBucketEncryptionOutputFilterSensitiveLog = exports.ServerSideEncryptionConfigurationFilterSensitiveLog = exports.ServerSideEncryptionRuleFilterSensitiveLog = exports.ServerSideEncryptionByDefaultFilterSensitiveLog = exports.CreateMultipartUploadRequestFilterSensitiveLog = exports.CreateMultipartUploadOutputFilterSensitiveLog = exports.CopyObjectRequestFilterSensitiveLog = exports.CopyObjectOutputFilterSensitiveLog = exports.CompleteMultipartUploadRequestFilterSensitiveLog = exports.CompleteMultipartUploadOutputFilterSensitiveLog = exports.MFADelete = exports.ObjectVersionStorageClass = exports.NoSuchBucket = exports.OptionalObjectAttributes = exports.ObjectStorageClass = exports.EncodingType = exports.ArchiveStatus = exports.NotFound = exports.ObjectLockRetentionMode = exports.ObjectLockEnabled = exports.ObjectAttributes = exports.NoSuchKey = exports.InvalidObjectState = exports.ChecksumMode = void 0; const smithy_client_1 = require("@smithy/smithy-client"); const S3ServiceException_1 = require("./S3ServiceException"); exports.RequestCharged = { requester: "requester", }; exports.RequestPayer = { requester: "requester", }; class NoSuchUpload extends S3ServiceException_1.S3ServiceException { constructor(opts) { super({ name: "NoSuchUpload", $fault: "client", ...opts, }); this.name = "NoSuchUpload"; this.$fault = "client"; Object.setPrototypeOf(this, NoSuchUpload.prototype); } } exports.NoSuchUpload = NoSuchUpload; exports.BucketAccelerateStatus = { Enabled: "Enabled", Suspended: "Suspended", }; exports.Type = { AmazonCustomerByEmail: "AmazonCustomerByEmail", CanonicalUser: "CanonicalUser", Group: "Group", }; exports.Permission = { FULL_CONTROL: "FULL_CONTROL", READ: "READ", READ_ACP: "READ_ACP", WRITE: "WRITE", WRITE_ACP: "WRITE_ACP", }; exports.OwnerOverride = { Destination: "Destination", }; exports.ServerSideEncryption = { AES256: "AES256", aws_kms: "aws:kms", aws_kms_dsse: "aws:kms:dsse", }; exports.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", }; exports.ChecksumAlgorithm = { CRC32: "CRC32", CRC32C: "CRC32C", SHA1: "SHA1", SHA256: "SHA256", }; exports.MetadataDirective = { COPY: "COPY", REPLACE: "REPLACE", }; exports.ObjectLockLegalHoldStatus = { OFF: "OFF", ON: "ON", }; exports.ObjectLockMode = { COMPLIANCE: "COMPLIANCE", GOVERNANCE: "GOVERNANCE", }; exports.StorageClass = { DEEP_ARCHIVE: "DEEP_ARCHIVE", 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", }; exports.TaggingDirective = { COPY: "COPY", REPLACE: "REPLACE", }; class ObjectNotInActiveTierError extends S3ServiceException_1.S3ServiceException { constructor(opts) { super({ name: "ObjectNotInActiveTierError", $fault: "client", ...opts, }); this.name = "ObjectNotInActiveTierError"; this.$fault = "client"; Object.setPrototypeOf(this, ObjectNotInActiveTierError.prototype); } } exports.ObjectNotInActiveTierError = ObjectNotInActiveTierError; class BucketAlreadyExists extends S3ServiceException_1.S3ServiceException { constructor(opts) { super({ name: "BucketAlreadyExists", $fault: "client", ...opts, }); this.name = "BucketAlreadyExists"; this.$fault = "client"; Object.setPrototypeOf(this, BucketAlreadyExists.prototype); } } exports.BucketAlreadyExists = BucketAlreadyExists; class BucketAlreadyOwnedByYou extends S3ServiceException_1.S3ServiceException { constructor(opts) { super({ name: "BucketAlreadyOwnedByYou", $fault: "client", ...opts, }); this.name = "BucketAlreadyOwnedByYou"; this.$fault = "client"; Object.setPrototypeOf(this, BucketAlreadyOwnedByYou.prototype); } } exports.BucketAlreadyOwnedByYou = BucketAlreadyOwnedByYou; exports.BucketCannedACL = { authenticated_read: "authenticated-read", private: "private", public_read: "public-read", public_read_write: "public-read-write", }; exports.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", }; exports.ObjectOwnership = { BucketOwnerEnforced: "BucketOwnerEnforced", BucketOwnerPreferred: "BucketOwnerPreferred", ObjectWriter: "ObjectWriter", }; var AnalyticsFilter; (function (AnalyticsFilter) { AnalyticsFilter.visit = (value, visitor) => { if (value.Prefix !== undefined) return visitor.Prefix(value.Prefix); if (value.Tag !== undefined) return visitor.Tag(value.Tag); if (value.And !== undefined) return visitor.And(value.And); return visitor._(value.$unknown[0], value.$unknown[1]); }; })(AnalyticsFilter = exports.AnalyticsFilter || (exports.AnalyticsFilter = {})); exports.AnalyticsS3ExportFileFormat = { CSV: "CSV", }; exports.StorageClassAnalysisSchemaVersion = { V_1: "V_1", }; exports.IntelligentTieringStatus = { Disabled: "Disabled", Enabled: "Enabled", }; exports.IntelligentTieringAccessTier = { ARCHIVE_ACCESS: "ARCHIVE_ACCESS", DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS", }; exports.InventoryFormat = { CSV: "CSV", ORC: "ORC", Parquet: "Parquet", }; exports.InventoryIncludedObjectVersions = { All: "All", Current: "Current", }; exports.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", }; exports.InventoryFrequency = { Daily: "Daily", Weekly: "Weekly", }; var LifecycleRuleFilter; (function (LifecycleRuleFilter) { LifecycleRuleFilter.visit = (value, visitor) => { if (value.Prefix !== undefined) return visitor.Prefix(value.Prefix); if (value.Tag !== undefined) return visitor.Tag(value.Tag); if (value.ObjectSizeGreaterThan !== undefined) return visitor.ObjectSizeGreaterThan(value.ObjectSizeGreaterThan); if (value.ObjectSizeLessThan !== undefined) return visitor.ObjectSizeLessThan(value.ObjectSizeLessThan); if (value.And !== undefined) return visitor.And(value.And); return visitor._(value.$unknown[0], value.$unknown[1]); }; })(LifecycleRuleFilter = exports.LifecycleRuleFilter || (exports.LifecycleRuleFilter = {})); exports.TransitionStorageClass = { DEEP_ARCHIVE: "DEEP_ARCHIVE", GLACIER: "GLACIER", GLACIER_IR: "GLACIER_IR", INTELLIGENT_TIERING: "INTELLIGENT_TIERING", ONEZONE_IA: "ONEZONE_IA", STANDARD_IA: "STANDARD_IA", }; exports.ExpirationStatus = { Disabled: "Disabled", Enabled: "Enabled", }; exports.BucketLogsPermission = { FULL_CONTROL: "FULL_CONTROL", READ: "READ", WRITE: "WRITE", }; var MetricsFilter; (function (MetricsFilter) { MetricsFilter.visit = (value, visitor) => { if (value.Prefix !== undefined) return visitor.Prefix(value.Prefix); if (value.Tag !== undefined) return visitor.Tag(value.Tag); if (value.AccessPointArn !== undefined) return visitor.AccessPointArn(value.AccessPointArn); if (value.And !== undefined) return visitor.And(value.And); return visitor._(value.$unknown[0], value.$unknown[1]); }; })(MetricsFilter = exports.MetricsFilter || (exports.MetricsFilter = {})); exports.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", }; exports.FilterRuleName = { prefix: "prefix", suffix: "suffix", }; exports.DeleteMarkerReplicationStatus = { Disabled: "Disabled", Enabled: "Enabled", }; exports.MetricsStatus = { Disabled: "Disabled", Enabled: "Enabled", }; exports.ReplicationTimeStatus = { Disabled: "Disabled", Enabled: "Enabled", }; exports.ExistingObjectReplicationStatus = { Disabled: "Disabled", Enabled: "Enabled", }; var ReplicationRuleFilter; (function (ReplicationRuleFilter) { ReplicationRuleFilter.visit = (value, visitor) => { if (value.Prefix !== undefined) return visitor.Prefix(value.Prefix); if (value.Tag !== undefined) return visitor.Tag(value.Tag); if (value.And !== undefined) return visitor.And(value.And); return visitor._(value.$unknown[0], value.$unknown[1]); }; })(ReplicationRuleFilter = exports.ReplicationRuleFilter || (exports.ReplicationRuleFilter = {})); exports.ReplicaModificationsStatus = { Disabled: "Disabled", Enabled: "Enabled", }; exports.SseKmsEncryptedObjectsStatus = { Disabled: "Disabled", Enabled: "Enabled", }; exports.ReplicationRuleStatus = { Disabled: "Disabled", Enabled: "Enabled", }; exports.Payer = { BucketOwner: "BucketOwner", Requester: "Requester", }; exports.MFADeleteStatus = { Disabled: "Disabled", Enabled: "Enabled", }; exports.BucketVersioningStatus = { Enabled: "Enabled", Suspended: "Suspended", }; exports.Protocol = { http: "http", https: "https", }; exports.ReplicationStatus = { COMPLETE: "COMPLETE", COMPLETED: "COMPLETED", FAILED: "FAILED", PENDING: "PENDING", REPLICA: "REPLICA", }; exports.ChecksumMode = { ENABLED: "ENABLED", }; class InvalidObjectState extends S3ServiceException_1.S3ServiceException { 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; } } exports.InvalidObjectState = InvalidObjectState; class NoSuchKey extends S3ServiceException_1.S3ServiceException { constructor(opts) { super({ name: "NoSuchKey", $fault: "client", ...opts, }); this.name = "NoSuchKey"; this.$fault = "client"; Object.setPrototypeOf(this, NoSuchKey.prototype); } } exports.NoSuchKey = NoSuchKey; exports.ObjectAttributes = { CHECKSUM: "Checksum", ETAG: "ETag", OBJECT_PARTS: "ObjectParts", OBJECT_SIZE: "ObjectSize", STORAGE_CLASS: "StorageClass", }; exports.ObjectLockEnabled = { Enabled: "Enabled", }; exports.ObjectLockRetentionMode = { COMPLIANCE: "COMPLIANCE", GOVERNANCE: "GOVERNANCE", }; class NotFound extends S3ServiceException_1.S3ServiceException { constructor(opts) { super({ name: "NotFound", $fault: "client", ...opts, }); this.name = "NotFound"; this.$fault = "client"; Object.setPrototypeOf(this, NotFound.prototype); } } exports.NotFound = NotFound; exports.ArchiveStatus = { ARCHIVE_ACCESS: "ARCHIVE_ACCESS", DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS", }; exports.EncodingType = { url: "url", }; exports.ObjectStorageClass = { DEEP_ARCHIVE: "DEEP_ARCHIVE", 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", }; exports.OptionalObjectAttributes = { RESTORE_STATUS: "RestoreStatus", }; class NoSuchBucket extends S3ServiceException_1.S3ServiceException { constructor(opts) { super({ name: "NoSuchBucket", $fault: "client", ...opts, }); this.name = "NoSuchBucket"; this.$fault = "client"; Object.setPrototypeOf(this, NoSuchBucket.prototype); } } exports.NoSuchBucket = NoSuchBucket; exports.ObjectVersionStorageClass = { STANDARD: "STANDARD", }; exports.MFADelete = { Disabled: "Disabled", Enabled: "Enabled", }; const CompleteMultipartUploadOutputFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }), }); exports.CompleteMultipartUploadOutputFilterSensitiveLog = CompleteMultipartUploadOutputFilterSensitiveLog; const CompleteMultipartUploadRequestFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }), }); exports.CompleteMultipartUploadRequestFilterSensitiveLog = CompleteMultipartUploadRequestFilterSensitiveLog; const CopyObjectOutputFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }), ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: smithy_client_1.SENSITIVE_STRING }), }); exports.CopyObjectOutputFilterSensitiveLog = CopyObjectOutputFilterSensitiveLog; const CopyObjectRequestFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }), ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }), ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: smithy_client_1.SENSITIVE_STRING }), ...(obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: smithy_client_1.SENSITIVE_STRING }), }); exports.CopyObjectRequestFilterSensitiveLog = CopyObjectRequestFilterSensitiveLog; const CreateMultipartUploadOutputFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }), ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: smithy_client_1.SENSITIVE_STRING }), }); exports.CreateMultipartUploadOutputFilterSensitiveLog = CreateMultipartUploadOutputFilterSensitiveLog; const CreateMultipartUploadRequestFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }), ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }), ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: smithy_client_1.SENSITIVE_STRING }), }); exports.CreateMultipartUploadRequestFilterSensitiveLog = CreateMultipartUploadRequestFilterSensitiveLog; const ServerSideEncryptionByDefaultFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.KMSMasterKeyID && { KMSMasterKeyID: smithy_client_1.SENSITIVE_STRING }), }); exports.ServerSideEncryptionByDefaultFilterSensitiveLog = ServerSideEncryptionByDefaultFilterSensitiveLog; const ServerSideEncryptionRuleFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.ApplyServerSideEncryptionByDefault && { ApplyServerSideEncryptionByDefault: (0, exports.ServerSideEncryptionByDefaultFilterSensitiveLog)(obj.ApplyServerSideEncryptionByDefault), }), }); exports.ServerSideEncryptionRuleFilterSensitiveLog = ServerSideEncryptionRuleFilterSensitiveLog; const ServerSideEncryptionConfigurationFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.Rules && { Rules: obj.Rules.map((item) => (0, exports.ServerSideEncryptionRuleFilterSensitiveLog)(item)) }), }); exports.ServerSideEncryptionConfigurationFilterSensitiveLog = ServerSideEncryptionConfigurationFilterSensitiveLog; const GetBucketEncryptionOutputFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.ServerSideEncryptionConfiguration && { ServerSideEncryptionConfiguration: (0, exports.ServerSideEncryptionConfigurationFilterSensitiveLog)(obj.ServerSideEncryptionConfiguration), }), }); exports.GetBucketEncryptionOutputFilterSensitiveLog = GetBucketEncryptionOutputFilterSensitiveLog; const SSEKMSFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.KeyId && { KeyId: smithy_client_1.SENSITIVE_STRING }), }); exports.SSEKMSFilterSensitiveLog = SSEKMSFilterSensitiveLog; const InventoryEncryptionFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSEKMS && { SSEKMS: (0, exports.SSEKMSFilterSensitiveLog)(obj.SSEKMS) }), }); exports.InventoryEncryptionFilterSensitiveLog = InventoryEncryptionFilterSensitiveLog; const InventoryS3BucketDestinationFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.Encryption && { Encryption: (0, exports.InventoryEncryptionFilterSensitiveLog)(obj.Encryption) }), }); exports.InventoryS3BucketDestinationFilterSensitiveLog = InventoryS3BucketDestinationFilterSensitiveLog; const InventoryDestinationFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.S3BucketDestination && { S3BucketDestination: (0, exports.InventoryS3BucketDestinationFilterSensitiveLog)(obj.S3BucketDestination), }), }); exports.InventoryDestinationFilterSensitiveLog = InventoryDestinationFilterSensitiveLog; const InventoryConfigurationFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.Destination && { Destination: (0, exports.InventoryDestinationFilterSensitiveLog)(obj.Destination) }), }); exports.InventoryConfigurationFilterSensitiveLog = InventoryConfigurationFilterSensitiveLog; const GetBucketInventoryConfigurationOutputFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.InventoryConfiguration && { InventoryConfiguration: (0, exports.InventoryConfigurationFilterSensitiveLog)(obj.InventoryConfiguration), }), }); exports.GetBucketInventoryConfigurationOutputFilterSensitiveLog = GetBucketInventoryConfigurationOutputFilterSensitiveLog; const GetObjectOutputFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }), }); exports.GetObjectOutputFilterSensitiveLog = GetObjectOutputFilterSensitiveLog; const GetObjectRequestFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }), }); exports.GetObjectRequestFilterSensitiveLog = GetObjectRequestFilterSensitiveLog; const GetObjectAttributesRequestFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }), }); exports.GetObjectAttributesRequestFilterSensitiveLog = GetObjectAttributesRequestFilterSensitiveLog; const GetObjectTorrentOutputFilterSensitiveLog = (obj) => ({ ...obj, }); exports.GetObjectTorrentOutputFilterSensitiveLog = GetObjectTorrentOutputFilterSensitiveLog; const HeadObjectOutputFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }), }); exports.HeadObjectOutputFilterSensitiveLog = HeadObjectOutputFilterSensitiveLog; const HeadObjectRequestFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }), }); exports.HeadObjectRequestFilterSensitiveLog = HeadObjectRequestFilterSensitiveLog; const ListBucketInventoryConfigurationsOutputFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.InventoryConfigurationList && { InventoryConfigurationList: obj.InventoryConfigurationList.map((item) => (0, exports.InventoryConfigurationFilterSensitiveLog)(item)), }), }); exports.ListBucketInventoryConfigurationsOutputFilterSensitiveLog = ListBucketInventoryConfigurationsOutputFilterSensitiveLog; const ListPartsRequestFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }), }); exports.ListPartsRequestFilterSensitiveLog = ListPartsRequestFilterSensitiveLog; const PutBucketEncryptionRequestFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.ServerSideEncryptionConfiguration && { ServerSideEncryptionConfiguration: (0, exports.ServerSideEncryptionConfigurationFilterSensitiveLog)(obj.ServerSideEncryptionConfiguration), }), }); exports.PutBucketEncryptionRequestFilterSensitiveLog = PutBucketEncryptionRequestFilterSensitiveLog; const PutBucketInventoryConfigurationRequestFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.InventoryConfiguration && { InventoryConfiguration: (0, exports.InventoryConfigurationFilterSensitiveLog)(obj.InventoryConfiguration), }), }); exports.PutBucketInventoryConfigurationRequestFilterSensitiveLog = PutBucketInventoryConfigurationRequestFilterSensitiveLog; const PutObjectOutputFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }), ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: smithy_client_1.SENSITIVE_STRING }), }); exports.PutObjectOutputFilterSensitiveLog = PutObjectOutputFilterSensitiveLog; const PutObjectRequestFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }), ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }), ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: smithy_client_1.SENSITIVE_STRING }), }); exports.PutObjectRequestFilterSensitiveLog = PutObjectRequestFilterSensitiveLog;