@aws-sdk/client-s3 3.830.0 → 3.835.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 (44) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +141 -25
  3. package/dist-es/S3.js +2 -0
  4. package/dist-es/commands/RenameObjectCommand.js +28 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_1.js +12 -0
  7. package/dist-es/protocols/Aws_restXml.js +89 -17
  8. package/dist-types/S3.d.ts +7 -0
  9. package/dist-types/S3Client.d.ts +3 -2
  10. package/dist-types/commands/CopyObjectCommand.d.ts +9 -1
  11. package/dist-types/commands/CreateBucketCommand.d.ts +16 -1
  12. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +9 -1
  13. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
  14. package/dist-types/commands/GetBucketAclCommand.d.ts +8 -1
  15. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
  16. package/dist-types/commands/GetBucketLoggingCommand.d.ts +8 -1
  17. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +12 -0
  18. package/dist-types/commands/HeadObjectCommand.d.ts +1 -0
  19. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -0
  20. package/dist-types/commands/ListBucketsCommand.d.ts +8 -1
  21. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +8 -1
  22. package/dist-types/commands/ListObjectVersionsCommand.d.ts +8 -1
  23. package/dist-types/commands/ListObjectsCommand.d.ts +8 -1
  24. package/dist-types/commands/ListPartsCommand.d.ts +8 -1
  25. package/dist-types/commands/PutBucketAclCommand.d.ts +13 -2
  26. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
  27. package/dist-types/commands/PutBucketLoggingCommand.d.ts +13 -2
  28. package/dist-types/commands/PutObjectAclCommand.d.ts +4 -1
  29. package/dist-types/commands/PutObjectCommand.d.ts +9 -1
  30. package/dist-types/commands/RenameObjectCommand.d.ts +142 -0
  31. package/dist-types/commands/index.d.ts +1 -0
  32. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  33. package/dist-types/models/models_0.d.ts +41 -9
  34. package/dist-types/models/models_1.d.ts +123 -0
  35. package/dist-types/protocols/Aws_restXml.d.ts +9 -0
  36. package/dist-types/ts3.4/S3.d.ts +17 -0
  37. package/dist-types/ts3.4/S3Client.d.ts +6 -0
  38. package/dist-types/ts3.4/commands/RenameObjectCommand.d.ts +47 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  40. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
  41. package/dist-types/ts3.4/models/models_0.d.ts +4 -0
  42. package/dist-types/ts3.4/models/models_1.d.ts +23 -0
  43. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +12 -0
  44. package/package.json +18 -16
@@ -59,6 +59,7 @@ export interface PutBucketEncryptionRequest {
59
59
  export interface PutBucketIntelligentTieringConfigurationRequest {
60
60
  Bucket: string | undefined;
61
61
  Id: string | undefined;
62
+ ExpectedBucketOwner?: string | undefined;
62
63
  IntelligentTieringConfiguration: IntelligentTieringConfiguration | undefined;
63
64
  }
64
65
  export interface PutBucketInventoryConfigurationRequest {
@@ -341,6 +342,28 @@ export interface PutPublicAccessBlockRequest {
341
342
  PublicAccessBlockConfiguration: PublicAccessBlockConfiguration | undefined;
342
343
  ExpectedBucketOwner?: string | undefined;
343
344
  }
345
+ export declare class IdempotencyParameterMismatch extends __BaseException {
346
+ readonly name: "IdempotencyParameterMismatch";
347
+ readonly $fault: "client";
348
+ constructor(
349
+ opts: __ExceptionOptionType<IdempotencyParameterMismatch, __BaseException>
350
+ );
351
+ }
352
+ export interface RenameObjectOutput {}
353
+ export interface RenameObjectRequest {
354
+ Bucket: string | undefined;
355
+ Key: string | undefined;
356
+ RenameSource: string | undefined;
357
+ DestinationIfMatch?: string | undefined;
358
+ DestinationIfNoneMatch?: string | undefined;
359
+ DestinationIfModifiedSince?: Date | undefined;
360
+ DestinationIfUnmodifiedSince?: Date | undefined;
361
+ SourceIfMatch?: string | undefined;
362
+ SourceIfNoneMatch?: string | undefined;
363
+ SourceIfModifiedSince?: Date | undefined;
364
+ SourceIfUnmodifiedSince?: Date | undefined;
365
+ ClientToken?: string | undefined;
366
+ }
344
367
  export declare class ObjectAlreadyInActiveTierError extends __BaseException {
345
368
  readonly name: "ObjectAlreadyInActiveTierError";
346
369
  readonly $fault: "client";
@@ -379,6 +379,10 @@ import {
379
379
  PutPublicAccessBlockCommandInput,
380
380
  PutPublicAccessBlockCommandOutput,
381
381
  } from "../commands/PutPublicAccessBlockCommand";
382
+ import {
383
+ RenameObjectCommandInput,
384
+ RenameObjectCommandOutput,
385
+ } from "../commands/RenameObjectCommand";
382
386
  import {
383
387
  RestoreObjectCommandInput,
384
388
  RestoreObjectCommandOutput,
@@ -771,6 +775,10 @@ export declare const se_PutPublicAccessBlockCommand: (
771
775
  input: PutPublicAccessBlockCommandInput,
772
776
  context: __SerdeContext
773
777
  ) => Promise<__HttpRequest>;
778
+ export declare const se_RenameObjectCommand: (
779
+ input: RenameObjectCommandInput,
780
+ context: __SerdeContext
781
+ ) => Promise<__HttpRequest>;
774
782
  export declare const se_RestoreObjectCommand: (
775
783
  input: RestoreObjectCommandInput,
776
784
  context: __SerdeContext
@@ -1163,6 +1171,10 @@ export declare const de_PutPublicAccessBlockCommand: (
1163
1171
  output: __HttpResponse,
1164
1172
  context: __SerdeContext
1165
1173
  ) => Promise<PutPublicAccessBlockCommandOutput>;
1174
+ export declare const de_RenameObjectCommand: (
1175
+ output: __HttpResponse,
1176
+ context: __SerdeContext
1177
+ ) => Promise<RenameObjectCommandOutput>;
1166
1178
  export declare const de_RestoreObjectCommand: (
1167
1179
  output: __HttpResponse,
1168
1180
  context: __SerdeContext
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.830.0",
4
+ "version": "3.835.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",
@@ -29,24 +29,24 @@
29
29
  "@aws-crypto/sha1-browser": "5.2.0",
30
30
  "@aws-crypto/sha256-browser": "5.2.0",
31
31
  "@aws-crypto/sha256-js": "5.2.0",
32
- "@aws-sdk/core": "3.826.0",
33
- "@aws-sdk/credential-provider-node": "3.830.0",
32
+ "@aws-sdk/core": "3.835.0",
33
+ "@aws-sdk/credential-provider-node": "3.835.0",
34
34
  "@aws-sdk/middleware-bucket-endpoint": "3.830.0",
35
35
  "@aws-sdk/middleware-expect-continue": "3.821.0",
36
- "@aws-sdk/middleware-flexible-checksums": "3.826.0",
36
+ "@aws-sdk/middleware-flexible-checksums": "3.835.0",
37
37
  "@aws-sdk/middleware-host-header": "3.821.0",
38
38
  "@aws-sdk/middleware-location-constraint": "3.821.0",
39
39
  "@aws-sdk/middleware-logger": "3.821.0",
40
40
  "@aws-sdk/middleware-recursion-detection": "3.821.0",
41
- "@aws-sdk/middleware-sdk-s3": "3.826.0",
41
+ "@aws-sdk/middleware-sdk-s3": "3.835.0",
42
42
  "@aws-sdk/middleware-ssec": "3.821.0",
43
- "@aws-sdk/middleware-user-agent": "3.828.0",
43
+ "@aws-sdk/middleware-user-agent": "3.835.0",
44
44
  "@aws-sdk/region-config-resolver": "3.821.0",
45
- "@aws-sdk/signature-v4-multi-region": "3.826.0",
45
+ "@aws-sdk/signature-v4-multi-region": "3.835.0",
46
46
  "@aws-sdk/types": "3.821.0",
47
47
  "@aws-sdk/util-endpoints": "3.828.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.821.0",
49
- "@aws-sdk/util-user-agent-node": "3.828.0",
49
+ "@aws-sdk/util-user-agent-node": "3.835.0",
50
50
  "@aws-sdk/xml-builder": "3.821.0",
51
51
  "@smithy/config-resolver": "^4.1.4",
52
52
  "@smithy/core": "^3.5.3",
@@ -60,31 +60,33 @@
60
60
  "@smithy/invalid-dependency": "^4.0.4",
61
61
  "@smithy/md5-js": "^4.0.4",
62
62
  "@smithy/middleware-content-length": "^4.0.4",
63
- "@smithy/middleware-endpoint": "^4.1.11",
64
- "@smithy/middleware-retry": "^4.1.12",
63
+ "@smithy/middleware-endpoint": "^4.1.12",
64
+ "@smithy/middleware-retry": "^4.1.13",
65
65
  "@smithy/middleware-serde": "^4.0.8",
66
66
  "@smithy/middleware-stack": "^4.0.4",
67
67
  "@smithy/node-config-provider": "^4.1.3",
68
68
  "@smithy/node-http-handler": "^4.0.6",
69
69
  "@smithy/protocol-http": "^5.1.2",
70
- "@smithy/smithy-client": "^4.4.3",
70
+ "@smithy/smithy-client": "^4.4.4",
71
71
  "@smithy/types": "^4.3.1",
72
72
  "@smithy/url-parser": "^4.0.4",
73
73
  "@smithy/util-base64": "^4.0.0",
74
74
  "@smithy/util-body-length-browser": "^4.0.0",
75
75
  "@smithy/util-body-length-node": "^4.0.0",
76
- "@smithy/util-defaults-mode-browser": "^4.0.19",
77
- "@smithy/util-defaults-mode-node": "^4.0.19",
76
+ "@smithy/util-defaults-mode-browser": "^4.0.20",
77
+ "@smithy/util-defaults-mode-node": "^4.0.20",
78
78
  "@smithy/util-endpoints": "^3.0.6",
79
79
  "@smithy/util-middleware": "^4.0.4",
80
- "@smithy/util-retry": "^4.0.5",
80
+ "@smithy/util-retry": "^4.0.6",
81
81
  "@smithy/util-stream": "^4.2.2",
82
82
  "@smithy/util-utf8": "^4.0.0",
83
83
  "@smithy/util-waiter": "^4.0.5",
84
- "tslib": "^2.6.2"
84
+ "@types/uuid": "^9.0.1",
85
+ "tslib": "^2.6.2",
86
+ "uuid": "^9.0.1"
85
87
  },
86
88
  "devDependencies": {
87
- "@aws-sdk/signature-v4-crt": "3.828.0",
89
+ "@aws-sdk/signature-v4-crt": "3.835.0",
88
90
  "@tsconfig/node18": "18.2.4",
89
91
  "@types/node": "^18.19.69",
90
92
  "concurrently": "7.0.0",