@aws-sdk/client-s3 3.930.0 → 3.932.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +9984 -8599
- package/dist-cjs/runtimeConfig.shared.js +6 -0
- package/dist-es/S3Client.js +2 -0
- package/dist-es/commands/AbortMultipartUploadCommand.js +3 -10
- package/dist-es/commands/CompleteMultipartUploadCommand.js +2 -7
- package/dist-es/commands/CopyObjectCommand.js +2 -7
- package/dist-es/commands/CreateBucketCommand.js +2 -6
- package/dist-es/commands/CreateBucketMetadataConfigurationCommand.js +2 -6
- package/dist-es/commands/CreateBucketMetadataTableConfigurationCommand.js +2 -6
- package/dist-es/commands/CreateMultipartUploadCommand.js +2 -7
- package/dist-es/commands/CreateSessionCommand.js +3 -11
- package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteBucketCommand.js +3 -9
- package/dist-es/commands/DeleteBucketCorsCommand.js +3 -9
- package/dist-es/commands/DeleteBucketEncryptionCommand.js +3 -9
- package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteBucketLifecycleCommand.js +3 -9
- package/dist-es/commands/DeleteBucketMetadataConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteBucketMetadataTableConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +3 -9
- package/dist-es/commands/DeleteBucketPolicyCommand.js +3 -9
- package/dist-es/commands/DeleteBucketReplicationCommand.js +3 -9
- package/dist-es/commands/DeleteBucketTaggingCommand.js +3 -9
- package/dist-es/commands/DeleteBucketWebsiteCommand.js +3 -9
- package/dist-es/commands/DeleteObjectCommand.js +3 -10
- package/dist-es/commands/DeleteObjectTaggingCommand.js +3 -10
- package/dist-es/commands/DeleteObjectsCommand.js +2 -6
- package/dist-es/commands/DeletePublicAccessBlockCommand.js +3 -9
- package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +3 -10
- package/dist-es/commands/GetBucketAclCommand.js +3 -10
- package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +3 -10
- package/dist-es/commands/GetBucketCorsCommand.js +3 -10
- package/dist-es/commands/GetBucketEncryptionCommand.js +3 -11
- package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +3 -10
- package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +3 -11
- package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +3 -10
- package/dist-es/commands/GetBucketLocationCommand.js +3 -10
- package/dist-es/commands/GetBucketLoggingCommand.js +3 -10
- package/dist-es/commands/GetBucketMetadataConfigurationCommand.js +3 -10
- package/dist-es/commands/GetBucketMetadataTableConfigurationCommand.js +3 -10
- package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +3 -10
- package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +3 -10
- package/dist-es/commands/GetBucketOwnershipControlsCommand.js +3 -10
- package/dist-es/commands/GetBucketPolicyCommand.js +3 -10
- package/dist-es/commands/GetBucketPolicyStatusCommand.js +3 -10
- package/dist-es/commands/GetBucketReplicationCommand.js +3 -10
- package/dist-es/commands/GetBucketRequestPaymentCommand.js +3 -10
- package/dist-es/commands/GetBucketTaggingCommand.js +3 -10
- package/dist-es/commands/GetBucketVersioningCommand.js +3 -10
- package/dist-es/commands/GetBucketWebsiteCommand.js +3 -10
- package/dist-es/commands/GetObjectAclCommand.js +3 -10
- package/dist-es/commands/GetObjectAttributesCommand.js +2 -7
- package/dist-es/commands/GetObjectCommand.js +2 -7
- package/dist-es/commands/GetObjectLegalHoldCommand.js +3 -10
- package/dist-es/commands/GetObjectLockConfigurationCommand.js +3 -10
- package/dist-es/commands/GetObjectRetentionCommand.js +3 -10
- package/dist-es/commands/GetObjectTaggingCommand.js +3 -10
- package/dist-es/commands/GetObjectTorrentCommand.js +3 -10
- package/dist-es/commands/GetPublicAccessBlockCommand.js +3 -10
- package/dist-es/commands/HeadBucketCommand.js +3 -10
- package/dist-es/commands/HeadObjectCommand.js +2 -7
- package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +3 -10
- package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +3 -10
- package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +3 -11
- package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +3 -10
- package/dist-es/commands/ListBucketsCommand.js +3 -10
- package/dist-es/commands/ListDirectoryBucketsCommand.js +3 -10
- package/dist-es/commands/ListMultipartUploadsCommand.js +3 -10
- package/dist-es/commands/ListObjectVersionsCommand.js +3 -10
- package/dist-es/commands/ListObjectsCommand.js +3 -10
- package/dist-es/commands/ListObjectsV2Command.js +3 -10
- package/dist-es/commands/ListPartsCommand.js +2 -7
- package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +2 -6
- package/dist-es/commands/PutBucketAclCommand.js +2 -6
- package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +3 -9
- package/dist-es/commands/PutBucketCorsCommand.js +2 -6
- package/dist-es/commands/PutBucketEncryptionCommand.js +2 -7
- package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +3 -9
- package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +3 -10
- package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +2 -6
- package/dist-es/commands/PutBucketLoggingCommand.js +2 -6
- package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +3 -9
- package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +3 -9
- package/dist-es/commands/PutBucketOwnershipControlsCommand.js +2 -6
- package/dist-es/commands/PutBucketPolicyCommand.js +2 -6
- package/dist-es/commands/PutBucketReplicationCommand.js +2 -6
- package/dist-es/commands/PutBucketRequestPaymentCommand.js +2 -6
- package/dist-es/commands/PutBucketTaggingCommand.js +2 -6
- package/dist-es/commands/PutBucketVersioningCommand.js +2 -6
- package/dist-es/commands/PutBucketWebsiteCommand.js +2 -6
- package/dist-es/commands/PutObjectAclCommand.js +2 -6
- package/dist-es/commands/PutObjectCommand.js +2 -7
- package/dist-es/commands/PutObjectLegalHoldCommand.js +2 -6
- package/dist-es/commands/PutObjectLockConfigurationCommand.js +2 -6
- package/dist-es/commands/PutObjectRetentionCommand.js +2 -6
- package/dist-es/commands/PutObjectTaggingCommand.js +2 -6
- package/dist-es/commands/PutPublicAccessBlockCommand.js +2 -6
- package/dist-es/commands/RenameObjectCommand.js +3 -10
- package/dist-es/commands/RestoreObjectCommand.js +2 -7
- package/dist-es/commands/SelectObjectContentCommand.js +2 -7
- package/dist-es/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.js +2 -6
- package/dist-es/commands/UpdateBucketMetadataJournalTableConfigurationCommand.js +2 -6
- package/dist-es/commands/UploadPartCommand.js +2 -7
- package/dist-es/commands/UploadPartCopyCommand.js +2 -7
- package/dist-es/commands/WriteGetObjectResponseCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -151
- package/dist-es/models/models_1.js +0 -108
- package/dist-es/runtimeConfig.shared.js +6 -0
- package/dist-es/schemas/schemas_0.js +10281 -0
- package/dist-types/S3Client.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +8 -106
- package/dist-types/models/models_1.d.ts +4 -73
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +494 -0
- package/dist-types/ts3.4/S3Client.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -78
- package/dist-types/ts3.4/models/models_1.d.ts +0 -54
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +7 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +500 -0
- package/package.json +9 -11
- package/dist-es/protocols/Aws_restXml.js +0 -8103
- package/dist-types/protocols/Aws_restXml.d.ts +0 -938
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +0 -1257
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { S3ServiceException as __BaseException } from "./S3ServiceException";
|
|
3
2
|
export const RequestCharged = {
|
|
4
3
|
requester: "requester",
|
|
@@ -214,18 +213,6 @@ export class NoSuchBucket extends __BaseException {
|
|
|
214
213
|
Object.setPrototypeOf(this, NoSuchBucket.prototype);
|
|
215
214
|
}
|
|
216
215
|
}
|
|
217
|
-
export var AnalyticsFilter;
|
|
218
|
-
(function (AnalyticsFilter) {
|
|
219
|
-
AnalyticsFilter.visit = (value, visitor) => {
|
|
220
|
-
if (value.Prefix !== undefined)
|
|
221
|
-
return visitor.Prefix(value.Prefix);
|
|
222
|
-
if (value.Tag !== undefined)
|
|
223
|
-
return visitor.Tag(value.Tag);
|
|
224
|
-
if (value.And !== undefined)
|
|
225
|
-
return visitor.And(value.And);
|
|
226
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
227
|
-
};
|
|
228
|
-
})(AnalyticsFilter || (AnalyticsFilter = {}));
|
|
229
216
|
export const AnalyticsS3ExportFileFormat = {
|
|
230
217
|
CSV: "CSV",
|
|
231
218
|
};
|
|
@@ -299,20 +286,6 @@ export const S3TablesBucketType = {
|
|
|
299
286
|
aws: "aws",
|
|
300
287
|
customer: "customer",
|
|
301
288
|
};
|
|
302
|
-
export var MetricsFilter;
|
|
303
|
-
(function (MetricsFilter) {
|
|
304
|
-
MetricsFilter.visit = (value, visitor) => {
|
|
305
|
-
if (value.Prefix !== undefined)
|
|
306
|
-
return visitor.Prefix(value.Prefix);
|
|
307
|
-
if (value.Tag !== undefined)
|
|
308
|
-
return visitor.Tag(value.Tag);
|
|
309
|
-
if (value.AccessPointArn !== undefined)
|
|
310
|
-
return visitor.AccessPointArn(value.AccessPointArn);
|
|
311
|
-
if (value.And !== undefined)
|
|
312
|
-
return visitor.And(value.And);
|
|
313
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
314
|
-
};
|
|
315
|
-
})(MetricsFilter || (MetricsFilter = {}));
|
|
316
289
|
export const Event = {
|
|
317
290
|
s3_IntelligentTiering: "s3:IntelligentTiering",
|
|
318
291
|
s3_LifecycleExpiration_: "s3:LifecycleExpiration:*",
|
|
@@ -461,127 +434,3 @@ export const ArchiveStatus = {
|
|
|
461
434
|
export const EncodingType = {
|
|
462
435
|
url: "url",
|
|
463
436
|
};
|
|
464
|
-
export const CompleteMultipartUploadOutputFilterSensitiveLog = (obj) => ({
|
|
465
|
-
...obj,
|
|
466
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
467
|
-
});
|
|
468
|
-
export const CompleteMultipartUploadRequestFilterSensitiveLog = (obj) => ({
|
|
469
|
-
...obj,
|
|
470
|
-
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
|
|
471
|
-
});
|
|
472
|
-
export const CopyObjectOutputFilterSensitiveLog = (obj) => ({
|
|
473
|
-
...obj,
|
|
474
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
475
|
-
...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }),
|
|
476
|
-
});
|
|
477
|
-
export const CopyObjectRequestFilterSensitiveLog = (obj) => ({
|
|
478
|
-
...obj,
|
|
479
|
-
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
|
|
480
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
481
|
-
...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }),
|
|
482
|
-
...(obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: SENSITIVE_STRING }),
|
|
483
|
-
});
|
|
484
|
-
export const CreateMultipartUploadOutputFilterSensitiveLog = (obj) => ({
|
|
485
|
-
...obj,
|
|
486
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
487
|
-
...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }),
|
|
488
|
-
});
|
|
489
|
-
export const CreateMultipartUploadRequestFilterSensitiveLog = (obj) => ({
|
|
490
|
-
...obj,
|
|
491
|
-
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
|
|
492
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
493
|
-
...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }),
|
|
494
|
-
});
|
|
495
|
-
export const SessionCredentialsFilterSensitiveLog = (obj) => ({
|
|
496
|
-
...obj,
|
|
497
|
-
...(obj.SecretAccessKey && { SecretAccessKey: SENSITIVE_STRING }),
|
|
498
|
-
...(obj.SessionToken && { SessionToken: SENSITIVE_STRING }),
|
|
499
|
-
});
|
|
500
|
-
export const CreateSessionOutputFilterSensitiveLog = (obj) => ({
|
|
501
|
-
...obj,
|
|
502
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
503
|
-
...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }),
|
|
504
|
-
...(obj.Credentials && { Credentials: SessionCredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
505
|
-
});
|
|
506
|
-
export const CreateSessionRequestFilterSensitiveLog = (obj) => ({
|
|
507
|
-
...obj,
|
|
508
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
509
|
-
...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }),
|
|
510
|
-
});
|
|
511
|
-
export const ServerSideEncryptionByDefaultFilterSensitiveLog = (obj) => ({
|
|
512
|
-
...obj,
|
|
513
|
-
...(obj.KMSMasterKeyID && { KMSMasterKeyID: SENSITIVE_STRING }),
|
|
514
|
-
});
|
|
515
|
-
export const ServerSideEncryptionRuleFilterSensitiveLog = (obj) => ({
|
|
516
|
-
...obj,
|
|
517
|
-
...(obj.ApplyServerSideEncryptionByDefault && {
|
|
518
|
-
ApplyServerSideEncryptionByDefault: ServerSideEncryptionByDefaultFilterSensitiveLog(obj.ApplyServerSideEncryptionByDefault),
|
|
519
|
-
}),
|
|
520
|
-
});
|
|
521
|
-
export const ServerSideEncryptionConfigurationFilterSensitiveLog = (obj) => ({
|
|
522
|
-
...obj,
|
|
523
|
-
...(obj.Rules && { Rules: obj.Rules.map((item) => ServerSideEncryptionRuleFilterSensitiveLog(item)) }),
|
|
524
|
-
});
|
|
525
|
-
export const GetBucketEncryptionOutputFilterSensitiveLog = (obj) => ({
|
|
526
|
-
...obj,
|
|
527
|
-
...(obj.ServerSideEncryptionConfiguration && {
|
|
528
|
-
ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationFilterSensitiveLog(obj.ServerSideEncryptionConfiguration),
|
|
529
|
-
}),
|
|
530
|
-
});
|
|
531
|
-
export const SSEKMSFilterSensitiveLog = (obj) => ({
|
|
532
|
-
...obj,
|
|
533
|
-
...(obj.KeyId && { KeyId: SENSITIVE_STRING }),
|
|
534
|
-
});
|
|
535
|
-
export const InventoryEncryptionFilterSensitiveLog = (obj) => ({
|
|
536
|
-
...obj,
|
|
537
|
-
...(obj.SSEKMS && { SSEKMS: SSEKMSFilterSensitiveLog(obj.SSEKMS) }),
|
|
538
|
-
});
|
|
539
|
-
export const InventoryS3BucketDestinationFilterSensitiveLog = (obj) => ({
|
|
540
|
-
...obj,
|
|
541
|
-
...(obj.Encryption && { Encryption: InventoryEncryptionFilterSensitiveLog(obj.Encryption) }),
|
|
542
|
-
});
|
|
543
|
-
export const InventoryDestinationFilterSensitiveLog = (obj) => ({
|
|
544
|
-
...obj,
|
|
545
|
-
...(obj.S3BucketDestination && {
|
|
546
|
-
S3BucketDestination: InventoryS3BucketDestinationFilterSensitiveLog(obj.S3BucketDestination),
|
|
547
|
-
}),
|
|
548
|
-
});
|
|
549
|
-
export const InventoryConfigurationFilterSensitiveLog = (obj) => ({
|
|
550
|
-
...obj,
|
|
551
|
-
...(obj.Destination && { Destination: InventoryDestinationFilterSensitiveLog(obj.Destination) }),
|
|
552
|
-
});
|
|
553
|
-
export const GetBucketInventoryConfigurationOutputFilterSensitiveLog = (obj) => ({
|
|
554
|
-
...obj,
|
|
555
|
-
...(obj.InventoryConfiguration && {
|
|
556
|
-
InventoryConfiguration: InventoryConfigurationFilterSensitiveLog(obj.InventoryConfiguration),
|
|
557
|
-
}),
|
|
558
|
-
});
|
|
559
|
-
export const GetObjectOutputFilterSensitiveLog = (obj) => ({
|
|
560
|
-
...obj,
|
|
561
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
562
|
-
});
|
|
563
|
-
export const GetObjectRequestFilterSensitiveLog = (obj) => ({
|
|
564
|
-
...obj,
|
|
565
|
-
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
|
|
566
|
-
});
|
|
567
|
-
export const GetObjectAttributesRequestFilterSensitiveLog = (obj) => ({
|
|
568
|
-
...obj,
|
|
569
|
-
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
|
|
570
|
-
});
|
|
571
|
-
export const GetObjectTorrentOutputFilterSensitiveLog = (obj) => ({
|
|
572
|
-
...obj,
|
|
573
|
-
});
|
|
574
|
-
export const HeadObjectOutputFilterSensitiveLog = (obj) => ({
|
|
575
|
-
...obj,
|
|
576
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
577
|
-
});
|
|
578
|
-
export const HeadObjectRequestFilterSensitiveLog = (obj) => ({
|
|
579
|
-
...obj,
|
|
580
|
-
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
|
|
581
|
-
});
|
|
582
|
-
export const ListBucketInventoryConfigurationsOutputFilterSensitiveLog = (obj) => ({
|
|
583
|
-
...obj,
|
|
584
|
-
...(obj.InventoryConfigurationList && {
|
|
585
|
-
InventoryConfigurationList: obj.InventoryConfigurationList.map((item) => InventoryConfigurationFilterSensitiveLog(item)),
|
|
586
|
-
}),
|
|
587
|
-
});
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
-
import { InventoryConfigurationFilterSensitiveLog, ServerSideEncryptionConfigurationFilterSensitiveLog, } from "./models_0";
|
|
3
1
|
import { S3ServiceException as __BaseException } from "./S3ServiceException";
|
|
4
2
|
export const ObjectStorageClass = {
|
|
5
3
|
DEEP_ARCHIVE: "DEEP_ARCHIVE",
|
|
@@ -126,109 +124,3 @@ export const QuoteFields = {
|
|
|
126
124
|
export const RestoreRequestType = {
|
|
127
125
|
SELECT: "SELECT",
|
|
128
126
|
};
|
|
129
|
-
export var SelectObjectContentEventStream;
|
|
130
|
-
(function (SelectObjectContentEventStream) {
|
|
131
|
-
SelectObjectContentEventStream.visit = (value, visitor) => {
|
|
132
|
-
if (value.Records !== undefined)
|
|
133
|
-
return visitor.Records(value.Records);
|
|
134
|
-
if (value.Stats !== undefined)
|
|
135
|
-
return visitor.Stats(value.Stats);
|
|
136
|
-
if (value.Progress !== undefined)
|
|
137
|
-
return visitor.Progress(value.Progress);
|
|
138
|
-
if (value.Cont !== undefined)
|
|
139
|
-
return visitor.Cont(value.Cont);
|
|
140
|
-
if (value.End !== undefined)
|
|
141
|
-
return visitor.End(value.End);
|
|
142
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
143
|
-
};
|
|
144
|
-
})(SelectObjectContentEventStream || (SelectObjectContentEventStream = {}));
|
|
145
|
-
export const ListPartsRequestFilterSensitiveLog = (obj) => ({
|
|
146
|
-
...obj,
|
|
147
|
-
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
|
|
148
|
-
});
|
|
149
|
-
export const PutBucketEncryptionRequestFilterSensitiveLog = (obj) => ({
|
|
150
|
-
...obj,
|
|
151
|
-
...(obj.ServerSideEncryptionConfiguration && {
|
|
152
|
-
ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationFilterSensitiveLog(obj.ServerSideEncryptionConfiguration),
|
|
153
|
-
}),
|
|
154
|
-
});
|
|
155
|
-
export const PutBucketInventoryConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
156
|
-
...obj,
|
|
157
|
-
...(obj.InventoryConfiguration && {
|
|
158
|
-
InventoryConfiguration: InventoryConfigurationFilterSensitiveLog(obj.InventoryConfiguration),
|
|
159
|
-
}),
|
|
160
|
-
});
|
|
161
|
-
export const PutObjectOutputFilterSensitiveLog = (obj) => ({
|
|
162
|
-
...obj,
|
|
163
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
164
|
-
...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }),
|
|
165
|
-
});
|
|
166
|
-
export const PutObjectRequestFilterSensitiveLog = (obj) => ({
|
|
167
|
-
...obj,
|
|
168
|
-
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
|
|
169
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
170
|
-
...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }),
|
|
171
|
-
});
|
|
172
|
-
export const EncryptionFilterSensitiveLog = (obj) => ({
|
|
173
|
-
...obj,
|
|
174
|
-
...(obj.KMSKeyId && { KMSKeyId: SENSITIVE_STRING }),
|
|
175
|
-
});
|
|
176
|
-
export const S3LocationFilterSensitiveLog = (obj) => ({
|
|
177
|
-
...obj,
|
|
178
|
-
...(obj.Encryption && { Encryption: EncryptionFilterSensitiveLog(obj.Encryption) }),
|
|
179
|
-
});
|
|
180
|
-
export const OutputLocationFilterSensitiveLog = (obj) => ({
|
|
181
|
-
...obj,
|
|
182
|
-
...(obj.S3 && { S3: S3LocationFilterSensitiveLog(obj.S3) }),
|
|
183
|
-
});
|
|
184
|
-
export const RestoreRequestFilterSensitiveLog = (obj) => ({
|
|
185
|
-
...obj,
|
|
186
|
-
...(obj.OutputLocation && { OutputLocation: OutputLocationFilterSensitiveLog(obj.OutputLocation) }),
|
|
187
|
-
});
|
|
188
|
-
export const RestoreObjectRequestFilterSensitiveLog = (obj) => ({
|
|
189
|
-
...obj,
|
|
190
|
-
...(obj.RestoreRequest && { RestoreRequest: RestoreRequestFilterSensitiveLog(obj.RestoreRequest) }),
|
|
191
|
-
});
|
|
192
|
-
export const SelectObjectContentEventStreamFilterSensitiveLog = (obj) => {
|
|
193
|
-
if (obj.Records !== undefined)
|
|
194
|
-
return { Records: obj.Records };
|
|
195
|
-
if (obj.Stats !== undefined)
|
|
196
|
-
return { Stats: obj.Stats };
|
|
197
|
-
if (obj.Progress !== undefined)
|
|
198
|
-
return { Progress: obj.Progress };
|
|
199
|
-
if (obj.Cont !== undefined)
|
|
200
|
-
return { Cont: obj.Cont };
|
|
201
|
-
if (obj.End !== undefined)
|
|
202
|
-
return { End: obj.End };
|
|
203
|
-
if (obj.$unknown !== undefined)
|
|
204
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
205
|
-
};
|
|
206
|
-
export const SelectObjectContentOutputFilterSensitiveLog = (obj) => ({
|
|
207
|
-
...obj,
|
|
208
|
-
...(obj.Payload && { Payload: "STREAMING_CONTENT" }),
|
|
209
|
-
});
|
|
210
|
-
export const SelectObjectContentRequestFilterSensitiveLog = (obj) => ({
|
|
211
|
-
...obj,
|
|
212
|
-
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
|
|
213
|
-
});
|
|
214
|
-
export const UploadPartOutputFilterSensitiveLog = (obj) => ({
|
|
215
|
-
...obj,
|
|
216
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
217
|
-
});
|
|
218
|
-
export const UploadPartRequestFilterSensitiveLog = (obj) => ({
|
|
219
|
-
...obj,
|
|
220
|
-
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
|
|
221
|
-
});
|
|
222
|
-
export const UploadPartCopyOutputFilterSensitiveLog = (obj) => ({
|
|
223
|
-
...obj,
|
|
224
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
225
|
-
});
|
|
226
|
-
export const UploadPartCopyRequestFilterSensitiveLog = (obj) => ({
|
|
227
|
-
...obj,
|
|
228
|
-
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
|
|
229
|
-
...(obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: SENSITIVE_STRING }),
|
|
230
|
-
});
|
|
231
|
-
export const WriteGetObjectResponseRequestFilterSensitiveLog = (obj) => ({
|
|
232
|
-
...obj,
|
|
233
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
234
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4ASigner, AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestXmlProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
|
|
3
4
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
4
5
|
import { parseUrl } from "@smithy/url-parser";
|
|
@@ -30,6 +31,11 @@ export const getRuntimeConfig = (config) => {
|
|
|
30
31
|
},
|
|
31
32
|
],
|
|
32
33
|
logger: config?.logger ?? new NoOpLogger(),
|
|
34
|
+
protocol: config?.protocol ??
|
|
35
|
+
new AwsRestXmlProtocol({
|
|
36
|
+
defaultNamespace: "com.amazonaws.s3",
|
|
37
|
+
xmlNamespace: "http://s3.amazonaws.com/doc/2006-03-01/",
|
|
38
|
+
}),
|
|
33
39
|
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
34
40
|
serviceId: config?.serviceId ?? "S3",
|
|
35
41
|
signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
|