@aws-sdk/client-s3 3.697.0 → 3.699.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.
Files changed (103) hide show
  1. package/dist-cjs/index.js +152 -5
  2. package/dist-es/models/models_1.js +48 -0
  3. package/dist-es/protocols/Aws_restXml.js +75 -4
  4. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +16 -13
  5. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +47 -42
  6. package/dist-types/commands/CopyObjectCommand.d.ts +77 -57
  7. package/dist-types/commands/CreateBucketCommand.d.ts +60 -45
  8. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +92 -66
  9. package/dist-types/commands/CreateSessionCommand.d.ts +30 -16
  10. package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +1 -1
  11. package/dist-types/commands/DeleteBucketCommand.d.ts +10 -3
  12. package/dist-types/commands/DeleteBucketCorsCommand.d.ts +1 -1
  13. package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +18 -10
  14. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  15. package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +1 -1
  16. package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +52 -9
  17. package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +1 -1
  18. package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +1 -1
  19. package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +25 -21
  20. package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteObjectCommand.d.ts +3 -0
  24. package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +1 -1
  25. package/dist-types/commands/DeleteObjectsCommand.d.ts +41 -27
  26. package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +1 -1
  27. package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +1 -1
  28. package/dist-types/commands/GetBucketAclCommand.d.ts +1 -1
  29. package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +1 -1
  30. package/dist-types/commands/GetBucketCorsCommand.d.ts +1 -1
  31. package/dist-types/commands/GetBucketEncryptionCommand.d.ts +18 -10
  32. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  33. package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -1
  34. package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +61 -17
  35. package/dist-types/commands/GetBucketLocationCommand.d.ts +1 -1
  36. package/dist-types/commands/GetBucketLoggingCommand.d.ts +1 -1
  37. package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +1 -1
  38. package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +1 -1
  39. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +1 -1
  40. package/dist-types/commands/GetBucketPolicyCommand.d.ts +30 -21
  41. package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +1 -1
  42. package/dist-types/commands/GetBucketReplicationCommand.d.ts +1 -1
  43. package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +1 -1
  44. package/dist-types/commands/GetBucketTaggingCommand.d.ts +1 -1
  45. package/dist-types/commands/GetBucketVersioningCommand.d.ts +1 -1
  46. package/dist-types/commands/GetBucketWebsiteCommand.d.ts +1 -1
  47. package/dist-types/commands/GetObjectAclCommand.d.ts +1 -1
  48. package/dist-types/commands/GetObjectAttributesCommand.d.ts +62 -44
  49. package/dist-types/commands/GetObjectCommand.d.ts +79 -60
  50. package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +1 -1
  51. package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +1 -1
  52. package/dist-types/commands/GetObjectRetentionCommand.d.ts +1 -1
  53. package/dist-types/commands/GetObjectTaggingCommand.d.ts +1 -1
  54. package/dist-types/commands/GetObjectTorrentCommand.d.ts +1 -1
  55. package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +1 -1
  56. package/dist-types/commands/HeadBucketCommand.d.ts +32 -16
  57. package/dist-types/commands/HeadObjectCommand.d.ts +60 -38
  58. package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +1 -1
  59. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -1
  60. package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -1
  61. package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +1 -1
  62. package/dist-types/commands/ListBucketsCommand.d.ts +6 -6
  63. package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +10 -4
  64. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +50 -33
  65. package/dist-types/commands/ListObjectVersionsCommand.d.ts +1 -1
  66. package/dist-types/commands/ListObjectsCommand.d.ts +1 -1
  67. package/dist-types/commands/ListObjectsV2Command.d.ts +23 -14
  68. package/dist-types/commands/ListPartsCommand.d.ts +22 -17
  69. package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +1 -1
  70. package/dist-types/commands/PutBucketAclCommand.d.ts +1 -1
  71. package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +1 -1
  72. package/dist-types/commands/PutBucketCorsCommand.d.ts +1 -1
  73. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +47 -32
  74. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  75. package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
  76. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +84 -45
  77. package/dist-types/commands/PutBucketLoggingCommand.d.ts +1 -1
  78. package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -1
  79. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +1 -1
  80. package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +1 -1
  81. package/dist-types/commands/PutBucketPolicyCommand.d.ts +30 -21
  82. package/dist-types/commands/PutBucketReplicationCommand.d.ts +3 -4
  83. package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +1 -1
  84. package/dist-types/commands/PutBucketTaggingCommand.d.ts +1 -1
  85. package/dist-types/commands/PutBucketVersioningCommand.d.ts +3 -6
  86. package/dist-types/commands/PutBucketWebsiteCommand.d.ts +1 -1
  87. package/dist-types/commands/PutObjectAclCommand.d.ts +1 -1
  88. package/dist-types/commands/PutObjectCommand.d.ts +83 -35
  89. package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +1 -1
  90. package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +3 -3
  91. package/dist-types/commands/PutObjectRetentionCommand.d.ts +2 -2
  92. package/dist-types/commands/PutObjectTaggingCommand.d.ts +1 -1
  93. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  94. package/dist-types/commands/RestoreObjectCommand.d.ts +1 -1
  95. package/dist-types/commands/SelectObjectContentCommand.d.ts +1 -1
  96. package/dist-types/commands/UploadPartCommand.d.ts +52 -41
  97. package/dist-types/commands/UploadPartCopyCommand.d.ts +53 -39
  98. package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +1 -1
  99. package/dist-types/models/models_0.d.ts +938 -632
  100. package/dist-types/models/models_1.d.ts +230 -135
  101. package/dist-types/ts3.4/models/models_0.d.ts +7 -0
  102. package/dist-types/ts3.4/models/models_1.d.ts +24 -0
  103. package/package.json +4 -4
@@ -22,6 +22,7 @@ export interface AbortMultipartUploadRequest {
22
22
  UploadId: string | undefined;
23
23
  RequestPayer?: RequestPayer | undefined;
24
24
  ExpectedBucketOwner?: string | undefined;
25
+ IfMatchInitiatedTime?: Date | undefined;
25
26
  }
26
27
  export declare class NoSuchUpload extends __BaseException {
27
28
  readonly name: "NoSuchUpload";
@@ -503,6 +504,9 @@ export interface DeleteObjectRequest {
503
504
  RequestPayer?: RequestPayer | undefined;
504
505
  BypassGovernanceRetention?: boolean | undefined;
505
506
  ExpectedBucketOwner?: string | undefined;
507
+ IfMatch?: string | undefined;
508
+ IfMatchLastModifiedTime?: Date | undefined;
509
+ IfMatchSize?: number | undefined;
506
510
  }
507
511
  export interface DeletedObject {
508
512
  Key?: string | undefined;
@@ -524,6 +528,9 @@ export interface DeleteObjectsOutput {
524
528
  export interface ObjectIdentifier {
525
529
  Key: string | undefined;
526
530
  VersionId?: string | undefined;
531
+ ETag?: string | undefined;
532
+ LastModifiedTime?: Date | undefined;
533
+ Size?: number | undefined;
527
534
  }
528
535
  export interface Delete {
529
536
  Objects: ObjectIdentifier[] | undefined;
@@ -106,6 +106,23 @@ export interface PutBucketWebsiteRequest {
106
106
  WebsiteConfiguration: WebsiteConfiguration | undefined;
107
107
  ExpectedBucketOwner?: string | undefined;
108
108
  }
109
+ export declare class EncryptionTypeMismatch extends __BaseException {
110
+ readonly name: "EncryptionTypeMismatch";
111
+ readonly $fault: "client";
112
+ constructor(
113
+ opts: __ExceptionOptionType<EncryptionTypeMismatch, __BaseException>
114
+ );
115
+ }
116
+ export declare class InvalidRequest extends __BaseException {
117
+ readonly name: "InvalidRequest";
118
+ readonly $fault: "client";
119
+ constructor(opts: __ExceptionOptionType<InvalidRequest, __BaseException>);
120
+ }
121
+ export declare class InvalidWriteOffset extends __BaseException {
122
+ readonly name: "InvalidWriteOffset";
123
+ readonly $fault: "client";
124
+ constructor(opts: __ExceptionOptionType<InvalidWriteOffset, __BaseException>);
125
+ }
109
126
  export interface PutObjectOutput {
110
127
  Expiration?: string | undefined;
111
128
  ETag?: string | undefined;
@@ -120,6 +137,7 @@ export interface PutObjectOutput {
120
137
  SSEKMSKeyId?: string | undefined;
121
138
  SSEKMSEncryptionContext?: string | undefined;
122
139
  BucketKeyEnabled?: boolean | undefined;
140
+ Size?: number | undefined;
123
141
  RequestCharged?: RequestCharged | undefined;
124
142
  }
125
143
  export interface PutObjectRequest {
@@ -145,6 +163,7 @@ export interface PutObjectRequest {
145
163
  GrantReadACP?: string | undefined;
146
164
  GrantWriteACP?: string | undefined;
147
165
  Key: string | undefined;
166
+ WriteOffsetBytes?: number | undefined;
148
167
  Metadata?: Record<string, string> | undefined;
149
168
  ServerSideEncryption?: ServerSideEncryption | undefined;
150
169
  StorageClass?: StorageClass | undefined;
@@ -162,6 +181,11 @@ export interface PutObjectRequest {
162
181
  ObjectLockLegalHoldStatus?: ObjectLockLegalHoldStatus | undefined;
163
182
  ExpectedBucketOwner?: string | undefined;
164
183
  }
184
+ export declare class TooManyParts extends __BaseException {
185
+ readonly name: "TooManyParts";
186
+ readonly $fault: "client";
187
+ constructor(opts: __ExceptionOptionType<TooManyParts, __BaseException>);
188
+ }
165
189
  export interface PutObjectAclOutput {
166
190
  RequestCharged?: RequestCharged | undefined;
167
191
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3",
3
3
  "description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
4
- "version": "3.697.0",
4
+ "version": "3.699.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-s3",
@@ -27,10 +27,10 @@
27
27
  "@aws-crypto/sha1-browser": "5.2.0",
28
28
  "@aws-crypto/sha256-browser": "5.2.0",
29
29
  "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/client-sso-oidc": "3.696.0",
31
- "@aws-sdk/client-sts": "3.696.0",
30
+ "@aws-sdk/client-sso-oidc": "3.699.0",
31
+ "@aws-sdk/client-sts": "3.699.0",
32
32
  "@aws-sdk/core": "3.696.0",
33
- "@aws-sdk/credential-provider-node": "3.696.0",
33
+ "@aws-sdk/credential-provider-node": "3.699.0",
34
34
  "@aws-sdk/middleware-bucket-endpoint": "3.696.0",
35
35
  "@aws-sdk/middleware-expect-continue": "3.696.0",
36
36
  "@aws-sdk/middleware-flexible-checksums": "3.697.0",