@aws-sdk/client-s3 3.975.0 → 3.980.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/README.md +7 -0
- package/dist-cjs/index.js +203 -110
- package/dist-es/S3.js +23 -1
- package/dist-es/commands/UpdateObjectEncryptionCommand.js +28 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/errors.js +12 -0
- package/dist-es/schemas/schemas_0.js +42 -4
- package/dist-types/S3.d.ts +61 -1
- package/dist-types/S3Client.d.ts +3 -2
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/PutObjectCommand.d.ts +25 -15
- package/dist-types/commands/UpdateObjectEncryptionCommand.d.ts +259 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/errors.d.ts +16 -15
- package/dist-types/models/models_0.d.ts +23 -23
- package/dist-types/models/models_1.d.ts +186 -3
- package/dist-types/schemas/schemas_0.d.ts +6 -0
- package/dist-types/ts3.4/S3.d.ts +88 -1
- package/dist-types/ts3.4/S3Client.d.ts +6 -0
- package/dist-types/ts3.4/commands/UpdateObjectEncryptionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/errors.d.ts +5 -0
- package/dist-types/ts3.4/models/models_1.d.ts +34 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
- package/package.json +26 -26
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
UpdateObjectEncryptionRequest,
|
|
5
|
+
UpdateObjectEncryptionResponse,
|
|
6
|
+
} from "../models/models_1";
|
|
7
|
+
import {
|
|
8
|
+
S3ClientResolvedConfig,
|
|
9
|
+
ServiceInputTypes,
|
|
10
|
+
ServiceOutputTypes,
|
|
11
|
+
} from "../S3Client";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface UpdateObjectEncryptionCommandInput
|
|
15
|
+
extends UpdateObjectEncryptionRequest {}
|
|
16
|
+
export interface UpdateObjectEncryptionCommandOutput
|
|
17
|
+
extends UpdateObjectEncryptionResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const UpdateObjectEncryptionCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: UpdateObjectEncryptionCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
UpdateObjectEncryptionCommandInput,
|
|
24
|
+
UpdateObjectEncryptionCommandOutput,
|
|
25
|
+
S3ClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
input: UpdateObjectEncryptionCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
UpdateObjectEncryptionCommandInput,
|
|
33
|
+
UpdateObjectEncryptionCommandOutput,
|
|
34
|
+
S3ClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class UpdateObjectEncryptionCommand extends UpdateObjectEncryptionCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: UpdateObjectEncryptionRequest;
|
|
44
|
+
output: UpdateObjectEncryptionResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: UpdateObjectEncryptionCommandInput;
|
|
48
|
+
output: UpdateObjectEncryptionCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -101,6 +101,7 @@ export * from "./RestoreObjectCommand";
|
|
|
101
101
|
export * from "./SelectObjectContentCommand";
|
|
102
102
|
export * from "./UpdateBucketMetadataInventoryTableConfigurationCommand";
|
|
103
103
|
export * from "./UpdateBucketMetadataJournalTableConfigurationCommand";
|
|
104
|
+
export * from "./UpdateObjectEncryptionCommand";
|
|
104
105
|
export * from "./UploadPartCommand";
|
|
105
106
|
export * from "./UploadPartCopyCommand";
|
|
106
107
|
export * from "./WriteGetObjectResponseCommand";
|
|
@@ -6,6 +6,11 @@ export declare class NoSuchUpload extends __BaseException {
|
|
|
6
6
|
readonly $fault: "client";
|
|
7
7
|
constructor(opts: __ExceptionOptionType<NoSuchUpload, __BaseException>);
|
|
8
8
|
}
|
|
9
|
+
export declare class AccessDenied extends __BaseException {
|
|
10
|
+
readonly name: "AccessDenied";
|
|
11
|
+
readonly $fault: "client";
|
|
12
|
+
constructor(opts: __ExceptionOptionType<AccessDenied, __BaseException>);
|
|
13
|
+
}
|
|
9
14
|
export declare class ObjectNotInActiveTierError extends __BaseException {
|
|
10
15
|
readonly name: "ObjectNotInActiveTierError";
|
|
11
16
|
readonly $fault: "client";
|
|
@@ -199,6 +199,40 @@ export interface UpdateBucketMetadataJournalTableConfigurationRequest {
|
|
|
199
199
|
JournalTableConfiguration: JournalTableConfigurationUpdates | undefined;
|
|
200
200
|
ExpectedBucketOwner?: string | undefined;
|
|
201
201
|
}
|
|
202
|
+
export interface SSEKMSEncryption {
|
|
203
|
+
KMSKeyArn: string | undefined;
|
|
204
|
+
BucketKeyEnabled?: boolean | undefined;
|
|
205
|
+
}
|
|
206
|
+
export type ObjectEncryption =
|
|
207
|
+
| ObjectEncryption.SSEKMSMember
|
|
208
|
+
| ObjectEncryption.$UnknownMember;
|
|
209
|
+
export declare namespace ObjectEncryption {
|
|
210
|
+
interface SSEKMSMember {
|
|
211
|
+
SSEKMS: SSEKMSEncryption;
|
|
212
|
+
$unknown?: never;
|
|
213
|
+
}
|
|
214
|
+
interface $UnknownMember {
|
|
215
|
+
SSEKMS?: never;
|
|
216
|
+
$unknown: [string, any];
|
|
217
|
+
}
|
|
218
|
+
interface Visitor<T> {
|
|
219
|
+
SSEKMS: (value: SSEKMSEncryption) => T;
|
|
220
|
+
_: (name: string, value: any) => T;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
export interface UpdateObjectEncryptionRequest {
|
|
224
|
+
Bucket: string | undefined;
|
|
225
|
+
Key: string | undefined;
|
|
226
|
+
VersionId?: string | undefined;
|
|
227
|
+
ObjectEncryption: ObjectEncryption | undefined;
|
|
228
|
+
RequestPayer?: RequestPayer | undefined;
|
|
229
|
+
ExpectedBucketOwner?: string | undefined;
|
|
230
|
+
ContentMD5?: string | undefined;
|
|
231
|
+
ChecksumAlgorithm?: ChecksumAlgorithm | undefined;
|
|
232
|
+
}
|
|
233
|
+
export interface UpdateObjectEncryptionResponse {
|
|
234
|
+
RequestCharged?: RequestCharged | undefined;
|
|
235
|
+
}
|
|
202
236
|
export interface UploadPartOutput {
|
|
203
237
|
ServerSideEncryption?: ServerSideEncryption | undefined;
|
|
204
238
|
ETag?: string | undefined;
|
|
@@ -11,6 +11,7 @@ export declare var AbortMultipartUploadRequest$: StaticStructureSchema;
|
|
|
11
11
|
export declare var AccelerateConfiguration$: StaticStructureSchema;
|
|
12
12
|
export declare var AccessControlPolicy$: StaticStructureSchema;
|
|
13
13
|
export declare var AccessControlTranslation$: StaticStructureSchema;
|
|
14
|
+
export declare var AccessDenied$: StaticErrorSchema;
|
|
14
15
|
export declare var AnalyticsAndOperator$: StaticStructureSchema;
|
|
15
16
|
export declare var AnalyticsConfiguration$: StaticStructureSchema;
|
|
16
17
|
export declare var AnalyticsExportDestination$: StaticStructureSchema;
|
|
@@ -322,6 +323,7 @@ export declare var SimplePrefix$: StaticStructureSchema;
|
|
|
322
323
|
export declare var SourceSelectionCriteria$: StaticStructureSchema;
|
|
323
324
|
export declare var SSEKMS$: StaticStructureSchema;
|
|
324
325
|
export declare var SseKmsEncryptedObjects$: StaticStructureSchema;
|
|
326
|
+
export declare var SSEKMSEncryption$: StaticStructureSchema;
|
|
325
327
|
export declare var SSES3$: StaticStructureSchema;
|
|
326
328
|
export declare var Stats$: StaticStructureSchema;
|
|
327
329
|
export declare var StatsEvent$: StaticStructureSchema;
|
|
@@ -337,6 +339,8 @@ export declare var TopicConfiguration$: StaticStructureSchema;
|
|
|
337
339
|
export declare var Transition$: StaticStructureSchema;
|
|
338
340
|
export declare var UpdateBucketMetadataInventoryTableConfigurationRequest$: StaticStructureSchema;
|
|
339
341
|
export declare var UpdateBucketMetadataJournalTableConfigurationRequest$: StaticStructureSchema;
|
|
342
|
+
export declare var UpdateObjectEncryptionRequest$: StaticStructureSchema;
|
|
343
|
+
export declare var UpdateObjectEncryptionResponse$: StaticStructureSchema;
|
|
340
344
|
export declare var UploadPartCopyOutput$: StaticStructureSchema;
|
|
341
345
|
export declare var UploadPartCopyRequest$: StaticStructureSchema;
|
|
342
346
|
export declare var UploadPartOutput$: StaticStructureSchema;
|
|
@@ -347,6 +351,7 @@ export declare var WriteGetObjectResponseRequest$: StaticStructureSchema;
|
|
|
347
351
|
export declare var S3ServiceException$: StaticErrorSchema;
|
|
348
352
|
export declare var AnalyticsFilter$: StaticUnionSchema;
|
|
349
353
|
export declare var MetricsFilter$: StaticUnionSchema;
|
|
354
|
+
export declare var ObjectEncryption$: StaticUnionSchema;
|
|
350
355
|
export declare var SelectObjectContentEventStream$: StaticUnionSchema;
|
|
351
356
|
export declare var AbortMultipartUpload$: StaticOperationSchema;
|
|
352
357
|
export declare var CompleteMultipartUpload$: StaticOperationSchema;
|
|
@@ -451,6 +456,7 @@ export declare var RestoreObject$: StaticOperationSchema;
|
|
|
451
456
|
export declare var SelectObjectContent$: StaticOperationSchema;
|
|
452
457
|
export declare var UpdateBucketMetadataInventoryTableConfiguration$: StaticOperationSchema;
|
|
453
458
|
export declare var UpdateBucketMetadataJournalTableConfiguration$: StaticOperationSchema;
|
|
459
|
+
export declare var UpdateObjectEncryption$: StaticOperationSchema;
|
|
454
460
|
export declare var UploadPart$: StaticOperationSchema;
|
|
455
461
|
export declare var UploadPartCopy$: StaticOperationSchema;
|
|
456
462
|
export declare var WriteGetObjectResponse$: StaticOperationSchema;
|
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.
|
|
4
|
+
"version": "3.980.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-s3",
|
|
@@ -30,26 +30,26 @@
|
|
|
30
30
|
"@aws-crypto/sha1-browser": "5.2.0",
|
|
31
31
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
32
32
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
33
|
-
"@aws-sdk/core": "^3.973.
|
|
34
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
35
|
-
"@aws-sdk/middleware-bucket-endpoint": "^3.972.
|
|
36
|
-
"@aws-sdk/middleware-expect-continue": "^3.972.
|
|
37
|
-
"@aws-sdk/middleware-flexible-checksums": "^3.972.
|
|
38
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
39
|
-
"@aws-sdk/middleware-location-constraint": "^3.972.
|
|
40
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
41
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
42
|
-
"@aws-sdk/middleware-sdk-s3": "^3.972.
|
|
43
|
-
"@aws-sdk/middleware-ssec": "^3.972.
|
|
44
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
45
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
46
|
-
"@aws-sdk/signature-v4-multi-region": "3.
|
|
47
|
-
"@aws-sdk/types": "^3.973.
|
|
48
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
50
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
33
|
+
"@aws-sdk/core": "^3.973.5",
|
|
34
|
+
"@aws-sdk/credential-provider-node": "^3.972.4",
|
|
35
|
+
"@aws-sdk/middleware-bucket-endpoint": "^3.972.3",
|
|
36
|
+
"@aws-sdk/middleware-expect-continue": "^3.972.3",
|
|
37
|
+
"@aws-sdk/middleware-flexible-checksums": "^3.972.3",
|
|
38
|
+
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
39
|
+
"@aws-sdk/middleware-location-constraint": "^3.972.3",
|
|
40
|
+
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
41
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
42
|
+
"@aws-sdk/middleware-sdk-s3": "^3.972.5",
|
|
43
|
+
"@aws-sdk/middleware-ssec": "^3.972.3",
|
|
44
|
+
"@aws-sdk/middleware-user-agent": "^3.972.5",
|
|
45
|
+
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
46
|
+
"@aws-sdk/signature-v4-multi-region": "3.980.0",
|
|
47
|
+
"@aws-sdk/types": "^3.973.1",
|
|
48
|
+
"@aws-sdk/util-endpoints": "3.980.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
50
|
+
"@aws-sdk/util-user-agent-node": "^3.972.3",
|
|
51
51
|
"@smithy/config-resolver": "^4.4.6",
|
|
52
|
-
"@smithy/core": "^3.
|
|
52
|
+
"@smithy/core": "^3.22.0",
|
|
53
53
|
"@smithy/eventstream-serde-browser": "^4.2.8",
|
|
54
54
|
"@smithy/eventstream-serde-config-resolver": "^4.3.8",
|
|
55
55
|
"@smithy/eventstream-serde-node": "^4.2.8",
|
|
@@ -60,21 +60,21 @@
|
|
|
60
60
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
61
61
|
"@smithy/md5-js": "^4.2.8",
|
|
62
62
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
63
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
64
|
-
"@smithy/middleware-retry": "^4.4.
|
|
63
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
64
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
65
65
|
"@smithy/middleware-serde": "^4.2.9",
|
|
66
66
|
"@smithy/middleware-stack": "^4.2.8",
|
|
67
67
|
"@smithy/node-config-provider": "^4.3.8",
|
|
68
68
|
"@smithy/node-http-handler": "^4.4.8",
|
|
69
69
|
"@smithy/protocol-http": "^5.3.8",
|
|
70
|
-
"@smithy/smithy-client": "^4.
|
|
70
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
71
71
|
"@smithy/types": "^4.12.0",
|
|
72
72
|
"@smithy/url-parser": "^4.2.8",
|
|
73
73
|
"@smithy/util-base64": "^4.3.0",
|
|
74
74
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
75
75
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
76
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
77
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
76
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
77
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
78
78
|
"@smithy/util-endpoints": "^3.2.8",
|
|
79
79
|
"@smithy/util-middleware": "^4.2.8",
|
|
80
80
|
"@smithy/util-retry": "^4.2.8",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"tslib": "^2.6.2"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
87
|
+
"@aws-sdk/signature-v4-crt": "3.980.0",
|
|
88
88
|
"@tsconfig/node20": "20.1.8",
|
|
89
89
|
"@types/node": "^20.14.8",
|
|
90
90
|
"concurrently": "7.0.0",
|