@aws-sdk/client-s3 3.943.0 → 3.946.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 (141) hide show
  1. package/dist-cjs/index.js +991 -5963
  2. package/dist-cjs/runtimeConfig.browser.js +2 -2
  3. package/dist-cjs/runtimeConfig.js +3 -4
  4. package/dist-es/S3Client.js +2 -2
  5. package/dist-es/runtimeConfig.browser.js +2 -2
  6. package/dist-es/runtimeConfig.js +2 -3
  7. package/dist-es/schemas/schemas_0.js +991 -5963
  8. package/dist-types/S3.d.ts +1 -1
  9. package/dist-types/S3Client.d.ts +12 -12
  10. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  11. package/dist-types/auth/httpAuthSchemeProvider.d.ts +1 -1
  12. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +3 -3
  13. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +3 -3
  14. package/dist-types/commands/CopyObjectCommand.d.ts +3 -3
  15. package/dist-types/commands/CreateBucketCommand.d.ts +3 -3
  16. package/dist-types/commands/CreateBucketMetadataConfigurationCommand.d.ts +3 -3
  17. package/dist-types/commands/CreateBucketMetadataTableConfigurationCommand.d.ts +3 -3
  18. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +3 -3
  19. package/dist-types/commands/CreateSessionCommand.d.ts +3 -3
  20. package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +3 -3
  21. package/dist-types/commands/DeleteBucketCommand.d.ts +3 -3
  22. package/dist-types/commands/DeleteBucketCorsCommand.d.ts +3 -3
  23. package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +3 -3
  24. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +3 -3
  25. package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +3 -3
  26. package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +3 -3
  27. package/dist-types/commands/DeleteBucketMetadataConfigurationCommand.d.ts +3 -3
  28. package/dist-types/commands/DeleteBucketMetadataTableConfigurationCommand.d.ts +3 -3
  29. package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +3 -3
  30. package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +3 -3
  31. package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +3 -3
  32. package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +3 -3
  33. package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +3 -3
  34. package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +3 -3
  35. package/dist-types/commands/DeleteObjectCommand.d.ts +3 -3
  36. package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +3 -3
  37. package/dist-types/commands/DeleteObjectsCommand.d.ts +3 -3
  38. package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +3 -3
  39. package/dist-types/commands/GetBucketAbacCommand.d.ts +3 -3
  40. package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +3 -3
  41. package/dist-types/commands/GetBucketAclCommand.d.ts +3 -3
  42. package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +3 -3
  43. package/dist-types/commands/GetBucketCorsCommand.d.ts +3 -3
  44. package/dist-types/commands/GetBucketEncryptionCommand.d.ts +3 -3
  45. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +3 -3
  46. package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +3 -3
  47. package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +3 -3
  48. package/dist-types/commands/GetBucketLocationCommand.d.ts +3 -3
  49. package/dist-types/commands/GetBucketLoggingCommand.d.ts +3 -3
  50. package/dist-types/commands/GetBucketMetadataConfigurationCommand.d.ts +3 -3
  51. package/dist-types/commands/GetBucketMetadataTableConfigurationCommand.d.ts +3 -3
  52. package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +3 -3
  53. package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +3 -3
  54. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +3 -3
  55. package/dist-types/commands/GetBucketPolicyCommand.d.ts +3 -3
  56. package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +3 -3
  57. package/dist-types/commands/GetBucketReplicationCommand.d.ts +3 -3
  58. package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +3 -3
  59. package/dist-types/commands/GetBucketTaggingCommand.d.ts +3 -3
  60. package/dist-types/commands/GetBucketVersioningCommand.d.ts +3 -3
  61. package/dist-types/commands/GetBucketWebsiteCommand.d.ts +3 -3
  62. package/dist-types/commands/GetObjectAclCommand.d.ts +3 -3
  63. package/dist-types/commands/GetObjectAttributesCommand.d.ts +3 -3
  64. package/dist-types/commands/GetObjectCommand.d.ts +3 -3
  65. package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +3 -3
  66. package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +3 -3
  67. package/dist-types/commands/GetObjectRetentionCommand.d.ts +3 -3
  68. package/dist-types/commands/GetObjectTaggingCommand.d.ts +3 -3
  69. package/dist-types/commands/GetObjectTorrentCommand.d.ts +3 -3
  70. package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +3 -3
  71. package/dist-types/commands/HeadBucketCommand.d.ts +3 -3
  72. package/dist-types/commands/HeadObjectCommand.d.ts +3 -3
  73. package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +3 -3
  74. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +3 -3
  75. package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +3 -3
  76. package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +3 -3
  77. package/dist-types/commands/ListBucketsCommand.d.ts +3 -3
  78. package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +3 -3
  79. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +3 -3
  80. package/dist-types/commands/ListObjectVersionsCommand.d.ts +3 -3
  81. package/dist-types/commands/ListObjectsCommand.d.ts +3 -3
  82. package/dist-types/commands/ListObjectsV2Command.d.ts +3 -3
  83. package/dist-types/commands/ListPartsCommand.d.ts +3 -3
  84. package/dist-types/commands/PutBucketAbacCommand.d.ts +3 -3
  85. package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +3 -3
  86. package/dist-types/commands/PutBucketAclCommand.d.ts +3 -3
  87. package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +3 -3
  88. package/dist-types/commands/PutBucketCorsCommand.d.ts +3 -3
  89. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +3 -3
  90. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +3 -3
  91. package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +3 -3
  92. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +3 -3
  93. package/dist-types/commands/PutBucketLoggingCommand.d.ts +3 -3
  94. package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +3 -3
  95. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +3 -3
  96. package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +3 -3
  97. package/dist-types/commands/PutBucketPolicyCommand.d.ts +3 -3
  98. package/dist-types/commands/PutBucketReplicationCommand.d.ts +3 -3
  99. package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +3 -3
  100. package/dist-types/commands/PutBucketTaggingCommand.d.ts +3 -3
  101. package/dist-types/commands/PutBucketVersioningCommand.d.ts +3 -3
  102. package/dist-types/commands/PutBucketWebsiteCommand.d.ts +3 -3
  103. package/dist-types/commands/PutObjectAclCommand.d.ts +3 -3
  104. package/dist-types/commands/PutObjectCommand.d.ts +3 -3
  105. package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +3 -3
  106. package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +3 -3
  107. package/dist-types/commands/PutObjectRetentionCommand.d.ts +3 -3
  108. package/dist-types/commands/PutObjectTaggingCommand.d.ts +3 -3
  109. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +3 -3
  110. package/dist-types/commands/RenameObjectCommand.d.ts +3 -3
  111. package/dist-types/commands/RestoreObjectCommand.d.ts +4 -4
  112. package/dist-types/commands/SelectObjectContentCommand.d.ts +3 -3
  113. package/dist-types/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.d.ts +3 -3
  114. package/dist-types/commands/UpdateBucketMetadataJournalTableConfigurationCommand.d.ts +3 -3
  115. package/dist-types/commands/UploadPartCommand.d.ts +3 -3
  116. package/dist-types/commands/UploadPartCopyCommand.d.ts +3 -3
  117. package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +2 -2
  118. package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
  119. package/dist-types/endpoint/endpointResolver.d.ts +5 -2
  120. package/dist-types/extensionConfiguration.d.ts +4 -4
  121. package/dist-types/models/S3ServiceException.d.ts +1 -1
  122. package/dist-types/models/errors.d.ts +1 -1
  123. package/dist-types/models/models_1.d.ts +1 -1
  124. package/dist-types/pagination/Interfaces.d.ts +1 -1
  125. package/dist-types/pagination/ListBucketsPaginator.d.ts +1 -1
  126. package/dist-types/pagination/ListDirectoryBucketsPaginator.d.ts +1 -1
  127. package/dist-types/pagination/ListObjectsV2Paginator.d.ts +1 -1
  128. package/dist-types/pagination/ListPartsPaginator.d.ts +1 -1
  129. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  130. package/dist-types/runtimeConfig.d.ts +1 -1
  131. package/dist-types/runtimeConfig.native.d.ts +1 -1
  132. package/dist-types/runtimeConfig.shared.d.ts +1 -1
  133. package/dist-types/runtimeExtensions.d.ts +1 -1
  134. package/dist-types/schemas/schemas_0.d.ts +1 -1
  135. package/dist-types/ts3.4/S3Client.d.ts +6 -6
  136. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  137. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +3 -3
  138. package/dist-types/ts3.4/commands/GetObjectCommand.d.ts +1 -1
  139. package/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +1 -1
  140. package/dist-types/ts3.4/models/S3ServiceException.d.ts +1 -1
  141. package/package.json +16 -15
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer, StreamingBlobPayloadInputTypes } from "@smithy/types";
3
- import { PutObjectOutput, PutObjectRequest } from "../models/models_0";
4
- import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
2
+ import type { MetadataBearer as __MetadataBearer, StreamingBlobPayloadInputTypes } from "@smithy/types";
3
+ import { type PutObjectOutput, PutObjectRequest } from "../models/models_0";
4
+ import type { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { PutObjectLegalHoldOutput, PutObjectLegalHoldRequest } from "../models/models_0";
4
- import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { PutObjectLegalHoldOutput, PutObjectLegalHoldRequest } from "../models/models_0";
4
+ import type { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { PutObjectLockConfigurationOutput, PutObjectLockConfigurationRequest } from "../models/models_0";
4
- import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { PutObjectLockConfigurationOutput, PutObjectLockConfigurationRequest } from "../models/models_0";
4
+ import type { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { PutObjectRetentionOutput, PutObjectRetentionRequest } from "../models/models_0";
4
- import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { PutObjectRetentionOutput, PutObjectRetentionRequest } from "../models/models_0";
4
+ import type { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { PutObjectTaggingOutput, PutObjectTaggingRequest } from "../models/models_0";
4
- import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { PutObjectTaggingOutput, PutObjectTaggingRequest } from "../models/models_0";
4
+ import type { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { PutPublicAccessBlockRequest } from "../models/models_0";
4
- import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { PutPublicAccessBlockRequest } from "../models/models_0";
4
+ import type { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { RenameObjectOutput, RenameObjectRequest } from "../models/models_0";
4
- import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { RenameObjectOutput, RenameObjectRequest } from "../models/models_0";
4
+ import type { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,8 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { RestoreObjectOutput } from "../models/models_0";
4
- import { RestoreObjectRequest } from "../models/models_1";
5
- import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { RestoreObjectOutput } from "../models/models_0";
4
+ import type { RestoreObjectRequest } from "../models/models_1";
5
+ import type { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { SelectObjectContentOutput, SelectObjectContentRequest } from "../models/models_1";
4
- import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { SelectObjectContentOutput, SelectObjectContentRequest } from "../models/models_1";
4
+ import type { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { UpdateBucketMetadataInventoryTableConfigurationRequest } from "../models/models_1";
4
- import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { UpdateBucketMetadataInventoryTableConfigurationRequest } from "../models/models_1";
4
+ import type { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { UpdateBucketMetadataJournalTableConfigurationRequest } from "../models/models_1";
4
- import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { UpdateBucketMetadataJournalTableConfigurationRequest } from "../models/models_1";
4
+ import type { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer, StreamingBlobPayloadInputTypes } from "@smithy/types";
3
- import { UploadPartOutput, UploadPartRequest } from "../models/models_1";
4
- import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
2
+ import type { MetadataBearer as __MetadataBearer, StreamingBlobPayloadInputTypes } from "@smithy/types";
3
+ import { type UploadPartOutput, UploadPartRequest } from "../models/models_1";
4
+ import type { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { UploadPartCopyOutput, UploadPartCopyRequest } from "../models/models_1";
4
- import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { UploadPartCopyOutput, UploadPartCopyRequest } from "../models/models_1";
4
+ import type { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer, StreamingBlobPayloadInputTypes } from "@smithy/types";
2
+ import type { MetadataBearer as __MetadataBearer, StreamingBlobPayloadInputTypes } from "@smithy/types";
3
3
  import { WriteGetObjectResponseRequest } from "../models/models_1";
4
- import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
4
+ import type { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,4 +1,4 @@
1
- import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
1
+ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -14,10 +14,19 @@ export interface ClientInputEndpointParameters {
14
14
  useArnRegion?: boolean | undefined | Provider<boolean | undefined>;
15
15
  disableS3ExpressSessionAuth?: boolean | undefined | Provider<boolean | undefined>;
16
16
  }
17
+ /**
18
+ * @public
19
+ */
17
20
  export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
18
21
  defaultSigningName: string;
19
22
  };
23
+ /**
24
+ * @internal
25
+ */
20
26
  export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
27
+ /**
28
+ * @internal
29
+ */
21
30
  export declare const commonParams: {
22
31
  readonly ForcePathStyle: {
23
32
  readonly type: "clientContextParams";
@@ -60,6 +69,9 @@ export declare const commonParams: {
60
69
  readonly name: "useDualstackEndpoint";
61
70
  };
62
71
  };
72
+ /**
73
+ * @internal
74
+ */
63
75
  export interface EndpointParameters extends __EndpointParameters {
64
76
  Bucket?: string | undefined;
65
77
  Region?: string | undefined;
@@ -1,5 +1,8 @@
1
- import { EndpointV2, Logger } from "@smithy/types";
2
- import { EndpointParameters } from "./EndpointParameters";
1
+ import type { EndpointV2, Logger } from "@smithy/types";
2
+ import type { EndpointParameters } from "./EndpointParameters";
3
+ /**
4
+ * @internal
5
+ */
3
6
  export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
4
7
  logger?: Logger;
5
8
  }) => EndpointV2;
@@ -1,7 +1,7 @@
1
- import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
- import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
- import { DefaultExtensionConfiguration } from "@smithy/types";
4
- import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
1
+ import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
5
  /**
6
6
  * @internal
7
7
  */
@@ -1,4 +1,4 @@
1
- import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
1
+ import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/smithy-client";
2
2
  export type { __ServiceExceptionOptions };
3
3
  export { __ServiceException };
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
1
+ import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { IntelligentTieringAccessTier, StorageClass } from "./enums";
3
3
  import { S3ServiceException as __BaseException } from "./S3ServiceException";
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  import { StreamingBlobTypes } from "@smithy/types";
2
2
  import { ChecksumAlgorithm, CompressionType, ExpressionType, InventoryConfigurationState, ObjectLockLegalHoldStatus, ObjectLockMode, QuoteFields, ReplicationStatus, RequestCharged, RequestPayer, RestoreRequestType, ServerSideEncryption, StorageClass, Tier } from "./enums";
3
- import { CSVInput, GlacierJobParameters, JSONInput, MetadataTableEncryptionConfiguration, OutputLocation, ParquetInput, RecordExpiration } from "./models_0";
3
+ import type { CSVInput, GlacierJobParameters, JSONInput, MetadataTableEncryptionConfiguration, OutputLocation, ParquetInput, RecordExpiration } from "./models_0";
4
4
  /**
5
5
  * <p>Describes the serialization format of the object.</p>
6
6
  * @public
@@ -1,4 +1,4 @@
1
- import { PaginationConfiguration } from "@smithy/types";
1
+ import type { PaginationConfiguration } from "@smithy/types";
2
2
  import { S3Client } from "../S3Client";
3
3
  /**
4
4
  * @public
@@ -1,4 +1,4 @@
1
- import { Paginator } from "@smithy/types";
1
+ import type { Paginator } from "@smithy/types";
2
2
  import { ListBucketsCommandInput, ListBucketsCommandOutput } from "../commands/ListBucketsCommand";
3
3
  import { S3PaginationConfiguration } from "./Interfaces";
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Paginator } from "@smithy/types";
1
+ import type { Paginator } from "@smithy/types";
2
2
  import { ListDirectoryBucketsCommandInput, ListDirectoryBucketsCommandOutput } from "../commands/ListDirectoryBucketsCommand";
3
3
  import { S3PaginationConfiguration } from "./Interfaces";
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Paginator } from "@smithy/types";
1
+ import type { Paginator } from "@smithy/types";
2
2
  import { ListObjectsV2CommandInput, ListObjectsV2CommandOutput } from "../commands/ListObjectsV2Command";
3
3
  import { S3PaginationConfiguration } from "./Interfaces";
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Paginator } from "@smithy/types";
1
+ import type { Paginator } from "@smithy/types";
2
2
  import { ListPartsCommandInput, ListPartsCommandOutput } from "../commands/ListPartsCommand";
3
3
  import { S3PaginationConfiguration } from "./Interfaces";
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
- import { S3ClientConfig } from "./S3Client";
2
+ import type { S3ClientConfig } from "./S3Client";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { HashConstructor as __HashConstructor } from "@aws-sdk/types";
2
2
  import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
3
- import { S3ClientConfig } from "./S3Client";
3
+ import type { S3ClientConfig } from "./S3Client";
4
4
  /**
5
5
  * @internal
6
6
  */
@@ -1,4 +1,4 @@
1
- import { S3ClientConfig } from "./S3Client";
1
+ import type { S3ClientConfig } from "./S3Client";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,6 +1,6 @@
1
1
  import { AwsRestXmlProtocol } from "@aws-sdk/core/protocols";
2
2
  import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
3
- import { S3ClientConfig } from "./S3Client";
3
+ import type { S3ClientConfig } from "./S3Client";
4
4
  /**
5
5
  * @internal
6
6
  */
@@ -1,4 +1,4 @@
1
- import { S3ExtensionConfiguration } from "./extensionConfiguration";
1
+ import type { S3ExtensionConfiguration } from "./extensionConfiguration";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -1,4 +1,4 @@
1
- import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
1
+ import type { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
2
2
  export declare var CopySourceSSECustomerKey: StaticSimpleSchema;
3
3
  export declare var SessionCredentialValue: StaticSimpleSchema;
4
4
  export declare var SSECustomerKey: StaticSimpleSchema;
@@ -30,31 +30,31 @@ import {
30
30
  } from "@smithy/middleware-retry";
31
31
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
32
32
  import {
33
- Client as __Client,
34
33
  DefaultsMode as __DefaultsMode,
35
34
  SmithyConfiguration as __SmithyConfiguration,
36
35
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
36
+ Client as __Client,
37
37
  } from "@smithy/smithy-client";
38
38
  import {
39
- AwsCredentialIdentityProvider,
40
39
  BodyLengthCalculator as __BodyLengthCalculator,
41
40
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
42
- ChecksumConstructor as __ChecksumConstructor,
43
41
  ClientProtocol,
44
42
  Decoder as __Decoder,
45
43
  Encoder as __Encoder,
46
44
  EventStreamSerdeProvider as __EventStreamSerdeProvider,
47
- HashConstructor as __HashConstructor,
48
45
  HttpHandlerOptions as __HttpHandlerOptions,
49
46
  HttpRequest,
50
47
  HttpResponse,
51
48
  Logger as __Logger,
52
49
  Provider as __Provider,
53
- Provider,
54
50
  SdkStreamMixinInjector as __SdkStreamMixinInjector,
55
51
  StreamCollector as __StreamCollector,
56
- StreamHasher as __StreamHasher,
57
52
  UrlParser as __UrlParser,
53
+ AwsCredentialIdentityProvider,
54
+ ChecksumConstructor as __ChecksumConstructor,
55
+ HashConstructor as __HashConstructor,
56
+ Provider,
57
+ StreamHasher as __StreamHasher,
58
58
  UserAgent as __UserAgent,
59
59
  } from "@smithy/types";
60
60
  import { Readable } from "stream";
@@ -1,7 +1,7 @@
1
1
  import {
2
+ HttpAuthScheme,
2
3
  AwsCredentialIdentity,
3
4
  AwsCredentialIdentityProvider,
4
- HttpAuthScheme,
5
5
  } from "@smithy/types";
6
6
  import { S3HttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
7
  export interface HttpAuthExtensionConfiguration {
@@ -7,12 +7,12 @@ import {
7
7
  AwsSdkSigV4PreviouslyResolved,
8
8
  } from "@aws-sdk/core";
9
9
  import {
10
- HandlerExecutionContext,
11
10
  HttpAuthScheme,
12
- HttpAuthSchemeParameters,
13
11
  HttpAuthSchemeParametersProvider,
14
- HttpAuthSchemeProvider,
15
12
  Provider,
13
+ HandlerExecutionContext,
14
+ HttpAuthSchemeParameters,
15
+ HttpAuthSchemeProvider,
16
16
  } from "@smithy/types";
17
17
  import { EndpointParameters } from "../endpoint/EndpointParameters";
18
18
  import { S3ClientResolvedConfig } from "../S3Client";
@@ -3,7 +3,7 @@ import {
3
3
  MetadataBearer as __MetadataBearer,
4
4
  StreamingBlobPayloadOutputTypes,
5
5
  } from "@smithy/types";
6
- import { GetObjectOutput, GetObjectRequest } from "../models/models_0";
6
+ import { GetObjectRequest, GetObjectOutput } from "../models/models_0";
7
7
  import {
8
8
  S3ClientResolvedConfig,
9
9
  ServiceInputTypes,
@@ -4,8 +4,8 @@ import {
4
4
  StreamingBlobPayloadOutputTypes,
5
5
  } from "@smithy/types";
6
6
  import {
7
- GetObjectTorrentOutput,
8
7
  GetObjectTorrentRequest,
8
+ GetObjectTorrentOutput,
9
9
  } from "../models/models_0";
10
10
  import {
11
11
  S3ClientResolvedConfig,
@@ -1,6 +1,6 @@
1
1
  import {
2
- ServiceException as __ServiceException,
3
2
  ServiceExceptionOptions as __ServiceExceptionOptions,
3
+ ServiceException as __ServiceException,
4
4
  } from "@smithy/smithy-client";
5
5
  export { __ServiceExceptionOptions };
6
6
  export { __ServiceException };
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.943.0",
4
+ "version": "3.946.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",
@@ -17,6 +17,7 @@
17
17
  "test:browser:watch": "node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts",
18
18
  "test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser",
19
19
  "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts",
20
+ "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs",
20
21
  "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
21
22
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts",
22
23
  "test:watch": "yarn g:vitest watch"
@@ -29,26 +30,26 @@
29
30
  "@aws-crypto/sha1-browser": "5.2.0",
30
31
  "@aws-crypto/sha256-browser": "5.2.0",
31
32
  "@aws-crypto/sha256-js": "5.2.0",
32
- "@aws-sdk/core": "3.943.0",
33
- "@aws-sdk/credential-provider-node": "3.943.0",
33
+ "@aws-sdk/core": "3.946.0",
34
+ "@aws-sdk/credential-provider-node": "3.946.0",
34
35
  "@aws-sdk/middleware-bucket-endpoint": "3.936.0",
35
36
  "@aws-sdk/middleware-expect-continue": "3.936.0",
36
- "@aws-sdk/middleware-flexible-checksums": "3.943.0",
37
+ "@aws-sdk/middleware-flexible-checksums": "3.946.0",
37
38
  "@aws-sdk/middleware-host-header": "3.936.0",
38
39
  "@aws-sdk/middleware-location-constraint": "3.936.0",
39
40
  "@aws-sdk/middleware-logger": "3.936.0",
40
41
  "@aws-sdk/middleware-recursion-detection": "3.936.0",
41
- "@aws-sdk/middleware-sdk-s3": "3.943.0",
42
+ "@aws-sdk/middleware-sdk-s3": "3.946.0",
42
43
  "@aws-sdk/middleware-ssec": "3.936.0",
43
- "@aws-sdk/middleware-user-agent": "3.943.0",
44
+ "@aws-sdk/middleware-user-agent": "3.946.0",
44
45
  "@aws-sdk/region-config-resolver": "3.936.0",
45
- "@aws-sdk/signature-v4-multi-region": "3.943.0",
46
+ "@aws-sdk/signature-v4-multi-region": "3.946.0",
46
47
  "@aws-sdk/types": "3.936.0",
47
48
  "@aws-sdk/util-endpoints": "3.936.0",
48
49
  "@aws-sdk/util-user-agent-browser": "3.936.0",
49
- "@aws-sdk/util-user-agent-node": "3.943.0",
50
+ "@aws-sdk/util-user-agent-node": "3.946.0",
50
51
  "@smithy/config-resolver": "^4.4.3",
51
- "@smithy/core": "^3.18.5",
52
+ "@smithy/core": "^3.18.7",
52
53
  "@smithy/eventstream-serde-browser": "^4.2.5",
53
54
  "@smithy/eventstream-serde-config-resolver": "^4.3.5",
54
55
  "@smithy/eventstream-serde-node": "^4.2.5",
@@ -59,21 +60,21 @@
59
60
  "@smithy/invalid-dependency": "^4.2.5",
60
61
  "@smithy/md5-js": "^4.2.5",
61
62
  "@smithy/middleware-content-length": "^4.2.5",
62
- "@smithy/middleware-endpoint": "^4.3.12",
63
- "@smithy/middleware-retry": "^4.4.12",
63
+ "@smithy/middleware-endpoint": "^4.3.14",
64
+ "@smithy/middleware-retry": "^4.4.14",
64
65
  "@smithy/middleware-serde": "^4.2.6",
65
66
  "@smithy/middleware-stack": "^4.2.5",
66
67
  "@smithy/node-config-provider": "^4.3.5",
67
68
  "@smithy/node-http-handler": "^4.4.5",
68
69
  "@smithy/protocol-http": "^5.3.5",
69
- "@smithy/smithy-client": "^4.9.8",
70
+ "@smithy/smithy-client": "^4.9.10",
70
71
  "@smithy/types": "^4.9.0",
71
72
  "@smithy/url-parser": "^4.2.5",
72
73
  "@smithy/util-base64": "^4.3.0",
73
74
  "@smithy/util-body-length-browser": "^4.2.0",
74
75
  "@smithy/util-body-length-node": "^4.2.1",
75
- "@smithy/util-defaults-mode-browser": "^4.3.11",
76
- "@smithy/util-defaults-mode-node": "^4.2.14",
76
+ "@smithy/util-defaults-mode-browser": "^4.3.13",
77
+ "@smithy/util-defaults-mode-node": "^4.2.16",
77
78
  "@smithy/util-endpoints": "^3.2.5",
78
79
  "@smithy/util-middleware": "^4.2.5",
79
80
  "@smithy/util-retry": "^4.2.5",
@@ -83,7 +84,7 @@
83
84
  "tslib": "^2.6.2"
84
85
  },
85
86
  "devDependencies": {
86
- "@aws-sdk/signature-v4-crt": "3.943.0",
87
+ "@aws-sdk/signature-v4-crt": "3.946.0",
87
88
  "@tsconfig/node18": "18.2.4",
88
89
  "@types/node": "^18.19.69",
89
90
  "concurrently": "7.0.0",