@aws-sdk/client-s3 3.952.0 → 3.954.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 (129) hide show
  1. package/dist-cjs/index.js +1410 -952
  2. package/dist-cjs/runtimeConfig.shared.js +7 -5
  3. package/dist-es/commands/AbortMultipartUploadCommand.js +2 -2
  4. package/dist-es/commands/CompleteMultipartUploadCommand.js +2 -2
  5. package/dist-es/commands/CopyObjectCommand.js +2 -2
  6. package/dist-es/commands/CreateBucketCommand.js +2 -2
  7. package/dist-es/commands/CreateBucketMetadataConfigurationCommand.js +2 -2
  8. package/dist-es/commands/CreateBucketMetadataTableConfigurationCommand.js +2 -2
  9. package/dist-es/commands/CreateMultipartUploadCommand.js +2 -2
  10. package/dist-es/commands/CreateSessionCommand.js +2 -2
  11. package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +2 -2
  12. package/dist-es/commands/DeleteBucketCommand.js +2 -2
  13. package/dist-es/commands/DeleteBucketCorsCommand.js +2 -2
  14. package/dist-es/commands/DeleteBucketEncryptionCommand.js +2 -2
  15. package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +2 -2
  16. package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +2 -2
  17. package/dist-es/commands/DeleteBucketLifecycleCommand.js +2 -2
  18. package/dist-es/commands/DeleteBucketMetadataConfigurationCommand.js +2 -2
  19. package/dist-es/commands/DeleteBucketMetadataTableConfigurationCommand.js +2 -2
  20. package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +2 -2
  21. package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +2 -2
  22. package/dist-es/commands/DeleteBucketPolicyCommand.js +2 -2
  23. package/dist-es/commands/DeleteBucketReplicationCommand.js +2 -2
  24. package/dist-es/commands/DeleteBucketTaggingCommand.js +2 -2
  25. package/dist-es/commands/DeleteBucketWebsiteCommand.js +2 -2
  26. package/dist-es/commands/DeleteObjectCommand.js +2 -2
  27. package/dist-es/commands/DeleteObjectTaggingCommand.js +2 -2
  28. package/dist-es/commands/DeleteObjectsCommand.js +2 -2
  29. package/dist-es/commands/DeletePublicAccessBlockCommand.js +2 -2
  30. package/dist-es/commands/GetBucketAbacCommand.js +2 -2
  31. package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +2 -2
  32. package/dist-es/commands/GetBucketAclCommand.js +2 -2
  33. package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +2 -2
  34. package/dist-es/commands/GetBucketCorsCommand.js +2 -2
  35. package/dist-es/commands/GetBucketEncryptionCommand.js +2 -2
  36. package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +2 -2
  37. package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +2 -2
  38. package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +2 -2
  39. package/dist-es/commands/GetBucketLocationCommand.js +2 -2
  40. package/dist-es/commands/GetBucketLoggingCommand.js +2 -2
  41. package/dist-es/commands/GetBucketMetadataConfigurationCommand.js +2 -2
  42. package/dist-es/commands/GetBucketMetadataTableConfigurationCommand.js +2 -2
  43. package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +2 -2
  44. package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +2 -2
  45. package/dist-es/commands/GetBucketOwnershipControlsCommand.js +2 -2
  46. package/dist-es/commands/GetBucketPolicyCommand.js +2 -2
  47. package/dist-es/commands/GetBucketPolicyStatusCommand.js +2 -2
  48. package/dist-es/commands/GetBucketReplicationCommand.js +2 -2
  49. package/dist-es/commands/GetBucketRequestPaymentCommand.js +2 -2
  50. package/dist-es/commands/GetBucketTaggingCommand.js +2 -2
  51. package/dist-es/commands/GetBucketVersioningCommand.js +2 -2
  52. package/dist-es/commands/GetBucketWebsiteCommand.js +2 -2
  53. package/dist-es/commands/GetObjectAclCommand.js +2 -2
  54. package/dist-es/commands/GetObjectAttributesCommand.js +2 -2
  55. package/dist-es/commands/GetObjectCommand.js +2 -2
  56. package/dist-es/commands/GetObjectLegalHoldCommand.js +2 -2
  57. package/dist-es/commands/GetObjectLockConfigurationCommand.js +2 -2
  58. package/dist-es/commands/GetObjectRetentionCommand.js +2 -2
  59. package/dist-es/commands/GetObjectTaggingCommand.js +2 -2
  60. package/dist-es/commands/GetObjectTorrentCommand.js +2 -2
  61. package/dist-es/commands/GetPublicAccessBlockCommand.js +2 -2
  62. package/dist-es/commands/HeadBucketCommand.js +2 -2
  63. package/dist-es/commands/HeadObjectCommand.js +2 -2
  64. package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +2 -2
  65. package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +2 -2
  66. package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +2 -2
  67. package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +2 -2
  68. package/dist-es/commands/ListBucketsCommand.js +2 -2
  69. package/dist-es/commands/ListDirectoryBucketsCommand.js +2 -2
  70. package/dist-es/commands/ListMultipartUploadsCommand.js +2 -2
  71. package/dist-es/commands/ListObjectVersionsCommand.js +2 -2
  72. package/dist-es/commands/ListObjectsCommand.js +2 -2
  73. package/dist-es/commands/ListObjectsV2Command.js +2 -2
  74. package/dist-es/commands/ListPartsCommand.js +2 -2
  75. package/dist-es/commands/PutBucketAbacCommand.js +2 -2
  76. package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +2 -2
  77. package/dist-es/commands/PutBucketAclCommand.js +2 -2
  78. package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +2 -2
  79. package/dist-es/commands/PutBucketCorsCommand.js +2 -2
  80. package/dist-es/commands/PutBucketEncryptionCommand.js +2 -2
  81. package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +2 -2
  82. package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +2 -2
  83. package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +2 -2
  84. package/dist-es/commands/PutBucketLoggingCommand.js +2 -2
  85. package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +2 -2
  86. package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +2 -2
  87. package/dist-es/commands/PutBucketOwnershipControlsCommand.js +2 -2
  88. package/dist-es/commands/PutBucketPolicyCommand.js +2 -2
  89. package/dist-es/commands/PutBucketReplicationCommand.js +2 -2
  90. package/dist-es/commands/PutBucketRequestPaymentCommand.js +2 -2
  91. package/dist-es/commands/PutBucketTaggingCommand.js +2 -2
  92. package/dist-es/commands/PutBucketVersioningCommand.js +2 -2
  93. package/dist-es/commands/PutBucketWebsiteCommand.js +2 -2
  94. package/dist-es/commands/PutObjectAclCommand.js +2 -2
  95. package/dist-es/commands/PutObjectCommand.js +2 -2
  96. package/dist-es/commands/PutObjectLegalHoldCommand.js +2 -2
  97. package/dist-es/commands/PutObjectLockConfigurationCommand.js +2 -2
  98. package/dist-es/commands/PutObjectRetentionCommand.js +2 -2
  99. package/dist-es/commands/PutObjectTaggingCommand.js +2 -2
  100. package/dist-es/commands/PutPublicAccessBlockCommand.js +2 -2
  101. package/dist-es/commands/RenameObjectCommand.js +2 -2
  102. package/dist-es/commands/RestoreObjectCommand.js +2 -2
  103. package/dist-es/commands/SelectObjectContentCommand.js +2 -2
  104. package/dist-es/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.js +2 -2
  105. package/dist-es/commands/UpdateBucketMetadataJournalTableConfigurationCommand.js +2 -2
  106. package/dist-es/commands/UploadPartCommand.js +2 -2
  107. package/dist-es/commands/UploadPartCopyCommand.js +2 -2
  108. package/dist-es/commands/WriteGetObjectResponseCommand.js +2 -2
  109. package/dist-es/endpoint/EndpointParameters.js +2 -0
  110. package/dist-es/index.js +1 -0
  111. package/dist-es/runtimeConfig.shared.js +7 -5
  112. package/dist-es/schemas/schemas_0.js +830 -823
  113. package/dist-types/S3Client.d.ts +1 -10
  114. package/dist-types/endpoint/EndpointParameters.d.ts +3 -0
  115. package/dist-types/index.d.ts +1 -0
  116. package/dist-types/runtimeConfig.browser.d.ts +9 -2
  117. package/dist-types/runtimeConfig.d.ts +9 -2
  118. package/dist-types/runtimeConfig.native.d.ts +9 -2
  119. package/dist-types/runtimeConfig.shared.d.ts +5 -1
  120. package/dist-types/schemas/schemas_0.d.ts +451 -502
  121. package/dist-types/ts3.4/S3Client.d.ts +0 -4
  122. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +6 -0
  123. package/dist-types/ts3.4/index.d.ts +1 -0
  124. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +15 -7
  125. package/dist-types/ts3.4/runtimeConfig.d.ts +15 -7
  126. package/dist-types/ts3.4/runtimeConfig.native.d.ts +15 -7
  127. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +7 -5
  128. package/dist-types/ts3.4/schemas/schemas_0.d.ts +450 -503
  129. package/package.json +50 -50
@@ -9,7 +9,7 @@ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/m
9
9
  import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
10
10
  import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
11
11
  import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
12
- import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ClientProtocol, type Decoder as __Decoder, type Encoder as __Encoder, type EventStreamSerdeProvider as __EventStreamSerdeProvider, type HttpHandlerOptions as __HttpHandlerOptions, type HttpRequest, type HttpResponse, type Logger as __Logger, type Provider as __Provider, type SdkStreamMixinInjector as __SdkStreamMixinInjector, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, ChecksumConstructor as __ChecksumConstructor, HashConstructor as __HashConstructor, Provider, StreamHasher as __StreamHasher, UserAgent as __UserAgent } from "@smithy/types";
12
+ import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type Decoder as __Decoder, type Encoder as __Encoder, type EventStreamSerdeProvider as __EventStreamSerdeProvider, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type Provider as __Provider, type SdkStreamMixinInjector as __SdkStreamMixinInjector, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, ChecksumConstructor as __ChecksumConstructor, HashConstructor as __HashConstructor, Provider, StreamHasher as __StreamHasher, UserAgent as __UserAgent } from "@smithy/types";
13
13
  import { Readable } from "stream";
14
14
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
15
15
  import { AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput } from "./commands/AbortMultipartUploadCommand";
@@ -275,15 +275,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
275
275
  * Optional extensions
276
276
  */
277
277
  extensions?: RuntimeExtension[];
278
- /**
279
- * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
280
- * may be overridden. A default will always be set by the client.
281
- * Available options depend on the service's supported protocols and will not be validated by
282
- * the client.
283
- * @alpha
284
- *
285
- */
286
- protocol?: ClientProtocol<HttpRequest, HttpResponse>;
287
278
  /**
288
279
  * The function that provides necessary utilities for generating and parsing event stream
289
280
  */
@@ -3,6 +3,9 @@ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2,
3
3
  * @public
4
4
  */
5
5
  export interface ClientInputEndpointParameters {
6
+ clientContextParams?: {
7
+ disableS3ExpressSessionAuth?: boolean | undefined | Provider<boolean | undefined>;
8
+ };
6
9
  region?: string | undefined | Provider<string | undefined>;
7
10
  useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
8
11
  useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
@@ -9,6 +9,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
9
  export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { S3ExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
+ export * from "./schemas/schemas_0";
12
13
  export * from "./pagination";
13
14
  export * from "./waiters";
14
15
  export * from "./models/enums";
@@ -21,8 +21,13 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
21
21
  streamHasher: import("@smithy/types").StreamHasher<import("stream").Readable> | import("@smithy/types").StreamHasher<Blob>;
22
22
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
23
23
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
24
- apiVersion: string;
25
24
  cacheMiddleware?: boolean | undefined;
25
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestXmlProtocol;
26
+ protocolSettings: {
27
+ defaultNamespace?: string;
28
+ [setting: string]: unknown;
29
+ };
30
+ apiVersion: string;
26
31
  urlParser: import("@smithy/types").UrlParser;
27
32
  base64Decoder: import("@smithy/types").Decoder;
28
33
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -34,7 +39,6 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
34
39
  getAwsChunkedEncodingStream: import("@smithy/types").GetAwsChunkedEncodingStream<any> | import("@smithy/types").GetAwsChunkedEncodingStream<import("stream").Readable>;
35
40
  logger: import("@smithy/types").Logger;
36
41
  extensions: import("./runtimeExtensions").RuntimeExtension[];
37
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse> | import("@aws-sdk/core").AwsRestXmlProtocol;
38
42
  signingEscapePath: boolean;
39
43
  useArnRegion: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
40
44
  sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
@@ -66,6 +70,9 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
66
70
  s3ExpressIdentityProvider?: import("@aws-sdk/middleware-sdk-s3").S3ExpressIdentityProvider;
67
71
  bucketEndpoint?: boolean;
68
72
  expectContinueHeader?: boolean | number;
73
+ clientContextParams?: {
74
+ disableS3ExpressSessionAuth?: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
75
+ };
69
76
  useGlobalEndpoint?: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
70
77
  disableS3ExpressSessionAuth?: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
71
78
  };
@@ -29,8 +29,13 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
29
29
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
30
30
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
31
31
  userAgentAppId: string | import("@aws-sdk/types").Provider<string | undefined>;
32
- apiVersion: string;
33
32
  cacheMiddleware?: boolean | undefined;
33
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestXmlProtocol;
34
+ protocolSettings: {
35
+ defaultNamespace?: string;
36
+ [setting: string]: unknown;
37
+ };
38
+ apiVersion: string;
34
39
  urlParser: import("@aws-sdk/types").UrlParser;
35
40
  base64Decoder: import("@aws-sdk/types").Decoder;
36
41
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -42,7 +47,6 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
42
47
  getAwsChunkedEncodingStream: import("@aws-sdk/types").GetAwsChunkedEncodingStream<any> | import("@aws-sdk/types").GetAwsChunkedEncodingStream<import("stream").Readable>;
43
48
  logger: import("@aws-sdk/types").Logger;
44
49
  extensions: import("./runtimeExtensions").RuntimeExtension[];
45
- protocol: import("@smithy/types").ClientProtocol<import("@aws-sdk/types").HttpRequest, import("@aws-sdk/types").HttpResponse> | import("@aws-sdk/core").AwsRestXmlProtocol;
46
50
  signingEscapePath: boolean;
47
51
  sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
48
52
  customUserAgent?: string | import("@aws-sdk/types").UserAgent;
@@ -68,5 +72,8 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
68
72
  s3ExpressIdentityProvider?: import("@aws-sdk/middleware-sdk-s3").S3ExpressIdentityProvider;
69
73
  bucketEndpoint?: boolean;
70
74
  expectContinueHeader?: boolean | number;
75
+ clientContextParams?: {
76
+ disableS3ExpressSessionAuth?: boolean | undefined | import("@aws-sdk/types").Provider<boolean | undefined>;
77
+ };
71
78
  useGlobalEndpoint?: boolean | undefined | import("@aws-sdk/types").Provider<boolean | undefined>;
72
79
  };
@@ -6,8 +6,13 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
- apiVersion: string;
10
9
  cacheMiddleware?: boolean;
10
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestXmlProtocol;
11
+ protocolSettings: {
12
+ defaultNamespace?: string;
13
+ [setting: string]: unknown;
14
+ };
15
+ apiVersion: string;
11
16
  urlParser: import("@smithy/types").UrlParser;
12
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
13
18
  streamCollector: import("@smithy/types").StreamCollector;
@@ -31,7 +36,6 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
31
36
  retryMode: string | import("@smithy/types").Provider<string>;
32
37
  logger: import("@smithy/types").Logger;
33
38
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse> | import("@aws-sdk/core").AwsRestXmlProtocol;
35
39
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
36
40
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
37
41
  signingEscapePath: boolean;
@@ -65,6 +69,9 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
65
69
  s3ExpressIdentityProvider?: import("@aws-sdk/middleware-sdk-s3").S3ExpressIdentityProvider;
66
70
  bucketEndpoint?: boolean;
67
71
  expectContinueHeader?: boolean | number;
72
+ clientContextParams?: {
73
+ disableS3ExpressSessionAuth?: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
74
+ };
68
75
  useGlobalEndpoint?: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
69
76
  disableS3ExpressSessionAuth?: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
70
77
  };
@@ -17,7 +17,11 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
17
17
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3HttpAuthSchemeProvider;
18
18
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
19
19
  logger: import("@smithy/types").Logger;
20
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse> | AwsRestXmlProtocol;
20
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof AwsRestXmlProtocol;
21
+ protocolSettings: {
22
+ [setting: string]: unknown;
23
+ defaultNamespace?: string;
24
+ };
21
25
  sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
22
26
  serviceId: string;
23
27
  signerConstructor: typeof SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner);