@jjrawlins/cdk-ami-builder 0.0.173 → 0.0.175
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/.jsii +11 -11
- package/cdkamibuilder/jsii/jsii.go +2 -2
- package/cdkamibuilder/version +1 -1
- package/lib/ImagePipeline/ImagePipeline.js +1 -1
- package/lib/Lambdas/CheckStateMachineStatus/CheckStateMachineStatus-function.js +1 -1
- package/lib/Lambdas/StartStateMachine/StartStateMachine-function.js +1 -1
- package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +2 -2
- package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +2 -2
- package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +1 -1
- package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
- package/node_modules/@aws-sdk/client-ec2/README.md +26 -46
- package/node_modules/@aws-sdk/client-ec2/package.json +36 -36
- package/node_modules/@aws-sdk/client-ecs/README.md +26 -46
- package/node_modules/@aws-sdk/client-ecs/package.json +34 -34
- package/node_modules/@aws-sdk/client-kms/README.md +26 -46
- package/node_modules/@aws-sdk/client-kms/package.json +33 -33
- package/node_modules/@aws-sdk/client-s3/README.md +26 -46
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-cjs/schemas/schemas_0.js +6 -4
- package/node_modules/@aws-sdk/client-s3/dist-es/models/enums.js +4 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js +6 -4
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CopyObjectCommand.d.ts +5 -4
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketTaggingCommand.d.ts +0 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketTaggingCommand.d.ts +0 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadBucketCommand.d.ts +5 -4
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/UploadPartCopyCommand.d.ts +5 -4
- package/node_modules/@aws-sdk/client-s3/dist-types/models/enums.d.ts +12 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +24 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/node_modules/@aws-sdk/client-s3/package.json +50 -50
- package/node_modules/@aws-sdk/client-secrets-manager/README.md +26 -46
- package/node_modules/@aws-sdk/client-secrets-manager/package.json +34 -34
- package/node_modules/@aws-sdk/client-sfn/README.md +26 -46
- package/node_modules/@aws-sdk/client-sfn/package.json +33 -33
- package/node_modules/@aws-sdk/client-sns/README.md +26 -46
- package/node_modules/@aws-sdk/client-sns/package.json +33 -33
- package/node_modules/@aws-sdk/client-sqs/README.md +65 -46
- package/node_modules/@aws-sdk/client-sqs/package.json +36 -36
- package/node_modules/@aws-sdk/client-ssm/README.md +26 -46
- package/node_modules/@aws-sdk/client-ssm/package.json +34 -34
- package/node_modules/@aws-sdk/core/package.json +11 -11
- package/node_modules/@aws-sdk/crc64-nvme/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +10 -10
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +8 -8
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +11 -11
- package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -8
- package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -6
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-format-url/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +75 -19
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getNodeModulesParentDirs.js +15 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedDevTypeScriptVersion.js +14 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +53 -7
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/{getTypeScriptPackageJsonPaths.d.ts → getNodeModulesParentDirs.d.ts} +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedDevTypeScriptVersion.d.ts +8 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getNodeModulesParentDirs.d.ts +1 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedDevTypeScriptVersion.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +6 -5
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +5 -5
- package/node_modules/@smithy/core/dist-cjs/index.js +1 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +7 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +22 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +11 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +41 -4
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +17 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +10 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +30 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +5 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/toEndpointV1.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/toEndpointV1.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +6 -0
- package/node_modules/@smithy/core/endpoints.d.ts +7 -0
- package/node_modules/@smithy/core/endpoints.js +6 -0
- package/node_modules/@smithy/core/package.json +16 -7
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/eventstream-codec/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-universal/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +4 -1
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +4 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-blob-browser/package.json +2 -2
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/hash-stream-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/md5-js/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +17 -1
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +9 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js +8 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/toEndpointV1.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +9 -12
- package/node_modules/@smithy/middleware-retry/dist-es/configurations.js +9 -12
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +3 -2
- package/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js +3 -2
- package/node_modules/@smithy/middleware-serde/package.json +4 -3
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +4 -1
- package/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +4 -1
- package/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +4 -3
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +4 -3
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-types/http.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/node_modules/fast-xml-builder/CHANGELOG.md +2 -1
- package/node_modules/fast-xml-builder/lib/fxb.d.cts +3 -1
- package/node_modules/fast-xml-builder/package.json +1 -1
- package/node_modules/fast-xml-builder/src/fxb.d.ts +4 -1
- package/package.json +12 -12
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPaths.js +0 -17
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPaths.d.ts +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ecs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1009.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-ecs",
|
|
@@ -23,43 +23,43 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/core": "^3.973.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
33
|
-
"@aws-sdk/types": "^3.973.
|
|
34
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
37
|
-
"@smithy/config-resolver": "^4.4.
|
|
38
|
-
"@smithy/core": "^3.23.
|
|
39
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
40
|
-
"@smithy/hash-node": "^4.2.
|
|
41
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
42
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
44
|
-
"@smithy/middleware-retry": "^4.4.
|
|
45
|
-
"@smithy/middleware-serde": "^4.2.
|
|
46
|
-
"@smithy/middleware-stack": "^4.2.
|
|
47
|
-
"@smithy/node-config-provider": "^4.3.
|
|
48
|
-
"@smithy/node-http-handler": "^4.4.
|
|
49
|
-
"@smithy/protocol-http": "^5.3.
|
|
50
|
-
"@smithy/smithy-client": "^4.12.
|
|
51
|
-
"@smithy/types": "^4.13.
|
|
52
|
-
"@smithy/url-parser": "^4.2.
|
|
26
|
+
"@aws-sdk/core": "^3.973.20",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.21",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
29
|
+
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.8",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.21",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "^3.972.8",
|
|
33
|
+
"@aws-sdk/types": "^3.973.6",
|
|
34
|
+
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
35
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "^3.973.7",
|
|
37
|
+
"@smithy/config-resolver": "^4.4.11",
|
|
38
|
+
"@smithy/core": "^3.23.11",
|
|
39
|
+
"@smithy/fetch-http-handler": "^5.3.15",
|
|
40
|
+
"@smithy/hash-node": "^4.2.12",
|
|
41
|
+
"@smithy/invalid-dependency": "^4.2.12",
|
|
42
|
+
"@smithy/middleware-content-length": "^4.2.12",
|
|
43
|
+
"@smithy/middleware-endpoint": "^4.4.25",
|
|
44
|
+
"@smithy/middleware-retry": "^4.4.42",
|
|
45
|
+
"@smithy/middleware-serde": "^4.2.14",
|
|
46
|
+
"@smithy/middleware-stack": "^4.2.12",
|
|
47
|
+
"@smithy/node-config-provider": "^4.3.12",
|
|
48
|
+
"@smithy/node-http-handler": "^4.4.16",
|
|
49
|
+
"@smithy/protocol-http": "^5.3.12",
|
|
50
|
+
"@smithy/smithy-client": "^4.12.5",
|
|
51
|
+
"@smithy/types": "^4.13.1",
|
|
52
|
+
"@smithy/url-parser": "^4.2.12",
|
|
53
53
|
"@smithy/util-base64": "^4.3.2",
|
|
54
54
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
55
55
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
58
|
-
"@smithy/util-endpoints": "^3.3.
|
|
59
|
-
"@smithy/util-middleware": "^4.2.
|
|
60
|
-
"@smithy/util-retry": "^4.2.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^4.3.41",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^4.2.44",
|
|
58
|
+
"@smithy/util-endpoints": "^3.3.3",
|
|
59
|
+
"@smithy/util-middleware": "^4.2.12",
|
|
60
|
+
"@smithy/util-retry": "^4.2.12",
|
|
61
61
|
"@smithy/util-utf8": "^4.2.2",
|
|
62
|
-
"@smithy/util-waiter": "^4.2.
|
|
62
|
+
"@smithy/util-waiter": "^4.2.13",
|
|
63
63
|
"tslib": "^2.6.2"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
@@ -106,8 +106,9 @@ keys and assigning policies, by using the console.</p>
|
|
|
106
106
|
</ul>
|
|
107
107
|
|
|
108
108
|
## Installing
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
|
|
110
|
+
To install this package, use the CLI of your favorite package manager:
|
|
111
|
+
|
|
111
112
|
- `npm install @aws-sdk/client-kms`
|
|
112
113
|
- `yarn add @aws-sdk/client-kms`
|
|
113
114
|
- `pnpm add @aws-sdk/client-kms`
|
|
@@ -132,15 +133,15 @@ import { KMSClient, ListAliasesCommand } from "@aws-sdk/client-kms";
|
|
|
132
133
|
|
|
133
134
|
### Usage
|
|
134
135
|
|
|
135
|
-
To send a request
|
|
136
|
+
To send a request:
|
|
136
137
|
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
140
|
-
-
|
|
138
|
+
- Instantiate a client with configuration (e.g. credentials, region).
|
|
139
|
+
- See [docs/CLIENTS](https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md) for configuration details.
|
|
140
|
+
- See [@aws-sdk/config](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/config/README.md) for additional options.
|
|
141
|
+
- Instantiate a command with input parameters.
|
|
142
|
+
- Call the `send` operation on the client, providing the command object as input.
|
|
141
143
|
|
|
142
144
|
```js
|
|
143
|
-
// a client can be shared by different commands.
|
|
144
145
|
const client = new KMSClient({ region: "REGION" });
|
|
145
146
|
|
|
146
147
|
const params = { /** input parameters */ };
|
|
@@ -149,7 +150,7 @@ const command = new ListAliasesCommand(params);
|
|
|
149
150
|
|
|
150
151
|
#### Async/await
|
|
151
152
|
|
|
152
|
-
We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
|
|
153
|
+
We recommend using the [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
|
|
153
154
|
operator to wait for the promise returned by send operation as follows:
|
|
154
155
|
|
|
155
156
|
```js
|
|
@@ -164,26 +165,9 @@ try {
|
|
|
164
165
|
}
|
|
165
166
|
```
|
|
166
167
|
|
|
167
|
-
Async-await is clean, concise, intuitive, easy to debug and has better error handling
|
|
168
|
-
as compared to using Promise chains or callbacks.
|
|
169
|
-
|
|
170
168
|
#### Promises
|
|
171
169
|
|
|
172
|
-
You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining)
|
|
173
|
-
to execute send operation.
|
|
174
|
-
|
|
175
|
-
```js
|
|
176
|
-
client.send(command).then(
|
|
177
|
-
(data) => {
|
|
178
|
-
// process data.
|
|
179
|
-
},
|
|
180
|
-
(error) => {
|
|
181
|
-
// error handling.
|
|
182
|
-
}
|
|
183
|
-
);
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
Promises can also be called using `.catch()` and `.finally()` as follows:
|
|
170
|
+
You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining).
|
|
187
171
|
|
|
188
172
|
```js
|
|
189
173
|
client
|
|
@@ -199,27 +183,21 @@ client
|
|
|
199
183
|
});
|
|
200
184
|
```
|
|
201
185
|
|
|
202
|
-
####
|
|
203
|
-
|
|
204
|
-
We do not recommend using callbacks because of [callback hell](http://callbackhell.com/),
|
|
205
|
-
but they are supported by the send operation.
|
|
186
|
+
#### Aggregated client
|
|
206
187
|
|
|
207
|
-
|
|
208
|
-
// callbacks.
|
|
209
|
-
client.send(command, (err, data) => {
|
|
210
|
-
// process err and data.
|
|
211
|
-
});
|
|
212
|
-
```
|
|
188
|
+
The aggregated client class is exported from the same package, but without the "Client" suffix.
|
|
213
189
|
|
|
214
|
-
|
|
190
|
+
`KMS` extends `KMSClient` and additionally supports all operations, waiters, and paginators as methods.
|
|
191
|
+
This style may be familiar to you from the AWS SDK for JavaScript v2.
|
|
215
192
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
193
|
+
If you are bundling the AWS SDK, we recommend using only the bare-bones client (`KMSClient`).
|
|
194
|
+
More details are in the blog post on
|
|
195
|
+
[modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/).
|
|
219
196
|
|
|
220
197
|
```ts
|
|
221
|
-
import
|
|
222
|
-
|
|
198
|
+
import { KMS } from "@aws-sdk/client-kms";
|
|
199
|
+
|
|
200
|
+
const client = new KMS({ region: "REGION" });
|
|
223
201
|
|
|
224
202
|
// async/await.
|
|
225
203
|
try {
|
|
@@ -239,7 +217,7 @@ client
|
|
|
239
217
|
// error handling.
|
|
240
218
|
});
|
|
241
219
|
|
|
242
|
-
// callbacks.
|
|
220
|
+
// callbacks (not recommended).
|
|
243
221
|
client.listAliases(params, (err, data) => {
|
|
244
222
|
// process err and data.
|
|
245
223
|
});
|
|
@@ -267,12 +245,14 @@ try {
|
|
|
267
245
|
}
|
|
268
246
|
```
|
|
269
247
|
|
|
248
|
+
See also [docs/ERROR_HANDLING](https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/ERROR_HANDLING.md).
|
|
249
|
+
|
|
270
250
|
## Getting Help
|
|
271
251
|
|
|
272
252
|
Please use these community resources for getting help.
|
|
273
|
-
We use
|
|
253
|
+
We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
|
|
274
254
|
|
|
275
|
-
- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
|
|
255
|
+
- Visit the [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
|
|
276
256
|
or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
|
|
277
257
|
- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
|
|
278
258
|
on AWS Developer Blog.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kms",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1009.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-kms",
|
|
@@ -23,41 +23,41 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/core": "^3.973.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
33
|
-
"@aws-sdk/types": "^3.973.
|
|
34
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
37
|
-
"@smithy/config-resolver": "^4.4.
|
|
38
|
-
"@smithy/core": "^3.23.
|
|
39
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
40
|
-
"@smithy/hash-node": "^4.2.
|
|
41
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
42
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
44
|
-
"@smithy/middleware-retry": "^4.4.
|
|
45
|
-
"@smithy/middleware-serde": "^4.2.
|
|
46
|
-
"@smithy/middleware-stack": "^4.2.
|
|
47
|
-
"@smithy/node-config-provider": "^4.3.
|
|
48
|
-
"@smithy/node-http-handler": "^4.4.
|
|
49
|
-
"@smithy/protocol-http": "^5.3.
|
|
50
|
-
"@smithy/smithy-client": "^4.12.
|
|
51
|
-
"@smithy/types": "^4.13.
|
|
52
|
-
"@smithy/url-parser": "^4.2.
|
|
26
|
+
"@aws-sdk/core": "^3.973.20",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.21",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
29
|
+
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.8",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.21",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "^3.972.8",
|
|
33
|
+
"@aws-sdk/types": "^3.973.6",
|
|
34
|
+
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
35
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "^3.973.7",
|
|
37
|
+
"@smithy/config-resolver": "^4.4.11",
|
|
38
|
+
"@smithy/core": "^3.23.11",
|
|
39
|
+
"@smithy/fetch-http-handler": "^5.3.15",
|
|
40
|
+
"@smithy/hash-node": "^4.2.12",
|
|
41
|
+
"@smithy/invalid-dependency": "^4.2.12",
|
|
42
|
+
"@smithy/middleware-content-length": "^4.2.12",
|
|
43
|
+
"@smithy/middleware-endpoint": "^4.4.25",
|
|
44
|
+
"@smithy/middleware-retry": "^4.4.42",
|
|
45
|
+
"@smithy/middleware-serde": "^4.2.14",
|
|
46
|
+
"@smithy/middleware-stack": "^4.2.12",
|
|
47
|
+
"@smithy/node-config-provider": "^4.3.12",
|
|
48
|
+
"@smithy/node-http-handler": "^4.4.16",
|
|
49
|
+
"@smithy/protocol-http": "^5.3.12",
|
|
50
|
+
"@smithy/smithy-client": "^4.12.5",
|
|
51
|
+
"@smithy/types": "^4.13.1",
|
|
52
|
+
"@smithy/url-parser": "^4.2.12",
|
|
53
53
|
"@smithy/util-base64": "^4.3.2",
|
|
54
54
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
55
55
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
58
|
-
"@smithy/util-endpoints": "^3.3.
|
|
59
|
-
"@smithy/util-middleware": "^4.2.
|
|
60
|
-
"@smithy/util-retry": "^4.2.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^4.3.41",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^4.2.44",
|
|
58
|
+
"@smithy/util-endpoints": "^3.3.3",
|
|
59
|
+
"@smithy/util-middleware": "^4.2.12",
|
|
60
|
+
"@smithy/util-retry": "^4.2.12",
|
|
61
61
|
"@smithy/util-utf8": "^4.2.2",
|
|
62
62
|
"tslib": "^2.6.2"
|
|
63
63
|
},
|
|
@@ -9,8 +9,9 @@ AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native.
|
|
|
9
9
|
<p></p>
|
|
10
10
|
|
|
11
11
|
## Installing
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
|
|
13
|
+
To install this package, use the CLI of your favorite package manager:
|
|
14
|
+
|
|
14
15
|
- `npm install @aws-sdk/client-s3`
|
|
15
16
|
- `yarn add @aws-sdk/client-s3`
|
|
16
17
|
- `pnpm add @aws-sdk/client-s3`
|
|
@@ -35,15 +36,15 @@ import { S3Client, ListBucketsCommand } from "@aws-sdk/client-s3";
|
|
|
35
36
|
|
|
36
37
|
### Usage
|
|
37
38
|
|
|
38
|
-
To send a request
|
|
39
|
+
To send a request:
|
|
39
40
|
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
41
|
+
- Instantiate a client with configuration (e.g. credentials, region).
|
|
42
|
+
- See [docs/CLIENTS](https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md) for configuration details.
|
|
43
|
+
- See [@aws-sdk/config](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/config/README.md) for additional options.
|
|
44
|
+
- Instantiate a command with input parameters.
|
|
45
|
+
- Call the `send` operation on the client, providing the command object as input.
|
|
44
46
|
|
|
45
47
|
```js
|
|
46
|
-
// a client can be shared by different commands.
|
|
47
48
|
const client = new S3Client({ region: "REGION" });
|
|
48
49
|
|
|
49
50
|
const params = { /** input parameters */ };
|
|
@@ -52,7 +53,7 @@ const command = new ListBucketsCommand(params);
|
|
|
52
53
|
|
|
53
54
|
#### Async/await
|
|
54
55
|
|
|
55
|
-
We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
|
|
56
|
+
We recommend using the [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
|
|
56
57
|
operator to wait for the promise returned by send operation as follows:
|
|
57
58
|
|
|
58
59
|
```js
|
|
@@ -67,26 +68,9 @@ try {
|
|
|
67
68
|
}
|
|
68
69
|
```
|
|
69
70
|
|
|
70
|
-
Async-await is clean, concise, intuitive, easy to debug and has better error handling
|
|
71
|
-
as compared to using Promise chains or callbacks.
|
|
72
|
-
|
|
73
71
|
#### Promises
|
|
74
72
|
|
|
75
|
-
You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining)
|
|
76
|
-
to execute send operation.
|
|
77
|
-
|
|
78
|
-
```js
|
|
79
|
-
client.send(command).then(
|
|
80
|
-
(data) => {
|
|
81
|
-
// process data.
|
|
82
|
-
},
|
|
83
|
-
(error) => {
|
|
84
|
-
// error handling.
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
Promises can also be called using `.catch()` and `.finally()` as follows:
|
|
73
|
+
You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining).
|
|
90
74
|
|
|
91
75
|
```js
|
|
92
76
|
client
|
|
@@ -102,27 +86,21 @@ client
|
|
|
102
86
|
});
|
|
103
87
|
```
|
|
104
88
|
|
|
105
|
-
####
|
|
106
|
-
|
|
107
|
-
We do not recommend using callbacks because of [callback hell](http://callbackhell.com/),
|
|
108
|
-
but they are supported by the send operation.
|
|
89
|
+
#### Aggregated client
|
|
109
90
|
|
|
110
|
-
|
|
111
|
-
// callbacks.
|
|
112
|
-
client.send(command, (err, data) => {
|
|
113
|
-
// process err and data.
|
|
114
|
-
});
|
|
115
|
-
```
|
|
91
|
+
The aggregated client class is exported from the same package, but without the "Client" suffix.
|
|
116
92
|
|
|
117
|
-
|
|
93
|
+
`S3` extends `S3Client` and additionally supports all operations, waiters, and paginators as methods.
|
|
94
|
+
This style may be familiar to you from the AWS SDK for JavaScript v2.
|
|
118
95
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
96
|
+
If you are bundling the AWS SDK, we recommend using only the bare-bones client (`S3Client`).
|
|
97
|
+
More details are in the blog post on
|
|
98
|
+
[modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/).
|
|
122
99
|
|
|
123
100
|
```ts
|
|
124
|
-
import
|
|
125
|
-
|
|
101
|
+
import { S3 } from "@aws-sdk/client-s3";
|
|
102
|
+
|
|
103
|
+
const client = new S3({ region: "REGION" });
|
|
126
104
|
|
|
127
105
|
// async/await.
|
|
128
106
|
try {
|
|
@@ -142,7 +120,7 @@ client
|
|
|
142
120
|
// error handling.
|
|
143
121
|
});
|
|
144
122
|
|
|
145
|
-
// callbacks.
|
|
123
|
+
// callbacks (not recommended).
|
|
146
124
|
client.listBuckets(params, (err, data) => {
|
|
147
125
|
// process err and data.
|
|
148
126
|
});
|
|
@@ -170,12 +148,14 @@ try {
|
|
|
170
148
|
}
|
|
171
149
|
```
|
|
172
150
|
|
|
151
|
+
See also [docs/ERROR_HANDLING](https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/ERROR_HANDLING.md).
|
|
152
|
+
|
|
173
153
|
## Getting Help
|
|
174
154
|
|
|
175
155
|
Please use these community resources for getting help.
|
|
176
|
-
We use
|
|
156
|
+
We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
|
|
177
157
|
|
|
178
|
-
- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
|
|
158
|
+
- Visit the [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
|
|
179
159
|
or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
|
|
180
160
|
- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
|
|
181
161
|
on AWS Developer Blog.
|
|
@@ -2526,6 +2526,10 @@ const BucketCannedACL = {
|
|
|
2526
2526
|
public_read: "public-read",
|
|
2527
2527
|
public_read_write: "public-read-write",
|
|
2528
2528
|
};
|
|
2529
|
+
const BucketNamespace = {
|
|
2530
|
+
ACCOUNT_REGIONAL: "account-regional",
|
|
2531
|
+
GLOBAL: "global",
|
|
2532
|
+
};
|
|
2529
2533
|
const DataRedundancy = {
|
|
2530
2534
|
SingleAvailabilityZone: "SingleAvailabilityZone",
|
|
2531
2535
|
SingleLocalZone: "SingleLocalZone",
|
|
@@ -2845,6 +2849,7 @@ exports.BucketAccelerateStatus = BucketAccelerateStatus;
|
|
|
2845
2849
|
exports.BucketCannedACL = BucketCannedACL;
|
|
2846
2850
|
exports.BucketLocationConstraint = BucketLocationConstraint;
|
|
2847
2851
|
exports.BucketLogsPermission = BucketLogsPermission;
|
|
2852
|
+
exports.BucketNamespace = BucketNamespace;
|
|
2848
2853
|
exports.BucketType = BucketType;
|
|
2849
2854
|
exports.BucketVersioningStatus = BucketVersioningStatus;
|
|
2850
2855
|
exports.ChecksumAlgorithm = ChecksumAlgorithm;
|
|
@@ -59,7 +59,8 @@ const _BLC = "BucketLifecycleConfiguration";
|
|
|
59
59
|
const _BLN = "BucketLocationName";
|
|
60
60
|
const _BLS = "BucketLoggingStatus";
|
|
61
61
|
const _BLT = "BucketLocationType";
|
|
62
|
-
const _BN = "
|
|
62
|
+
const _BN = "BucketNamespace";
|
|
63
|
+
const _BNu = "BucketName";
|
|
63
64
|
const _BP = "BytesProcessed";
|
|
64
65
|
const _BPA = "BlockPublicAcls";
|
|
65
66
|
const _BPP = "BlockPublicPolicy";
|
|
@@ -906,6 +907,7 @@ const _xaba = "x-amz-bucket-arn";
|
|
|
906
907
|
const _xabgr = "x-amz-bypass-governance-retention";
|
|
907
908
|
const _xabln = "x-amz-bucket-location-name";
|
|
908
909
|
const _xablt = "x-amz-bucket-location-type";
|
|
910
|
+
const _xabn = "x-amz-bucket-namespace";
|
|
909
911
|
const _xabole = "x-amz-bucket-object-lock-enabled";
|
|
910
912
|
const _xabolt = "x-amz-bucket-object-lock-token";
|
|
911
913
|
const _xabr = "x-amz-bucket-region";
|
|
@@ -1304,8 +1306,8 @@ exports.CreateBucketOutput$ = [3, n0, _CBO,
|
|
|
1304
1306
|
];
|
|
1305
1307
|
exports.CreateBucketRequest$ = [3, n0, _CBR,
|
|
1306
1308
|
0,
|
|
1307
|
-
[_B, _ACL_, _CBC, _GFC, _GR, _GRACP, _GW, _GWACP, _OLEFB, _OO],
|
|
1308
|
-
[[0, 1], [0, { [_hH]: _xaa }], [() => exports.CreateBucketConfiguration$, { [_hP]: 1, [_xN]: _CBC }], [0, { [_hH]: _xagfc }], [0, { [_hH]: _xagr }], [0, { [_hH]: _xagra }], [0, { [_hH]: _xagw }], [0, { [_hH]: _xagwa }], [2, { [_hH]: _xabole }], [0, { [_hH]: _xaoo }]], 1
|
|
1309
|
+
[_B, _ACL_, _CBC, _GFC, _GR, _GRACP, _GW, _GWACP, _OLEFB, _OO, _BN],
|
|
1310
|
+
[[0, 1], [0, { [_hH]: _xaa }], [() => exports.CreateBucketConfiguration$, { [_hP]: 1, [_xN]: _CBC }], [0, { [_hH]: _xagfc }], [0, { [_hH]: _xagr }], [0, { [_hH]: _xagra }], [0, { [_hH]: _xagw }], [0, { [_hH]: _xagwa }], [2, { [_hH]: _xabole }], [0, { [_hH]: _xaoo }], [0, { [_hH]: _xabn }]], 1
|
|
1309
1311
|
];
|
|
1310
1312
|
exports.CreateMultipartUploadOutput$ = [3, n0, _CMUOr,
|
|
1311
1313
|
{ [_xN]: _IMUR },
|
|
@@ -2584,7 +2586,7 @@ exports.S3KeyFilter$ = [3, n0, _SKF,
|
|
|
2584
2586
|
];
|
|
2585
2587
|
exports.S3Location$ = [3, n0, _SL,
|
|
2586
2588
|
0,
|
|
2587
|
-
[
|
|
2589
|
+
[_BNu, _P, _En, _CACL, _ACL, _Tag, _UM, _SC],
|
|
2588
2590
|
[0, 0, [() => exports.Encryption$, 0], 0, [() => Grants, 0], [() => exports.Tagging$, 0], [() => UserMetadata, 0], 0], 2
|
|
2589
2591
|
];
|
|
2590
2592
|
exports.S3TablesDestination$ = [3, n0, _STD,
|
|
@@ -90,6 +90,10 @@ export const BucketCannedACL = {
|
|
|
90
90
|
public_read: "public-read",
|
|
91
91
|
public_read_write: "public-read-write",
|
|
92
92
|
};
|
|
93
|
+
export const BucketNamespace = {
|
|
94
|
+
ACCOUNT_REGIONAL: "account-regional",
|
|
95
|
+
GLOBAL: "global",
|
|
96
|
+
};
|
|
93
97
|
export const DataRedundancy = {
|
|
94
98
|
SingleAvailabilityZone: "SingleAvailabilityZone",
|
|
95
99
|
SingleLocalZone: "SingleLocalZone",
|
|
@@ -47,7 +47,8 @@ const _BLC = "BucketLifecycleConfiguration";
|
|
|
47
47
|
const _BLN = "BucketLocationName";
|
|
48
48
|
const _BLS = "BucketLoggingStatus";
|
|
49
49
|
const _BLT = "BucketLocationType";
|
|
50
|
-
const _BN = "
|
|
50
|
+
const _BN = "BucketNamespace";
|
|
51
|
+
const _BNu = "BucketName";
|
|
51
52
|
const _BP = "BytesProcessed";
|
|
52
53
|
const _BPA = "BlockPublicAcls";
|
|
53
54
|
const _BPP = "BlockPublicPolicy";
|
|
@@ -894,6 +895,7 @@ const _xaba = "x-amz-bucket-arn";
|
|
|
894
895
|
const _xabgr = "x-amz-bypass-governance-retention";
|
|
895
896
|
const _xabln = "x-amz-bucket-location-name";
|
|
896
897
|
const _xablt = "x-amz-bucket-location-type";
|
|
898
|
+
const _xabn = "x-amz-bucket-namespace";
|
|
897
899
|
const _xabole = "x-amz-bucket-object-lock-enabled";
|
|
898
900
|
const _xabolt = "x-amz-bucket-object-lock-token";
|
|
899
901
|
const _xabr = "x-amz-bucket-region";
|
|
@@ -1292,8 +1294,8 @@ export var CreateBucketOutput$ = [3, n0, _CBO,
|
|
|
1292
1294
|
];
|
|
1293
1295
|
export var CreateBucketRequest$ = [3, n0, _CBR,
|
|
1294
1296
|
0,
|
|
1295
|
-
[_B, _ACL_, _CBC, _GFC, _GR, _GRACP, _GW, _GWACP, _OLEFB, _OO],
|
|
1296
|
-
[[0, 1], [0, { [_hH]: _xaa }], [() => CreateBucketConfiguration$, { [_hP]: 1, [_xN]: _CBC }], [0, { [_hH]: _xagfc }], [0, { [_hH]: _xagr }], [0, { [_hH]: _xagra }], [0, { [_hH]: _xagw }], [0, { [_hH]: _xagwa }], [2, { [_hH]: _xabole }], [0, { [_hH]: _xaoo }]], 1
|
|
1297
|
+
[_B, _ACL_, _CBC, _GFC, _GR, _GRACP, _GW, _GWACP, _OLEFB, _OO, _BN],
|
|
1298
|
+
[[0, 1], [0, { [_hH]: _xaa }], [() => CreateBucketConfiguration$, { [_hP]: 1, [_xN]: _CBC }], [0, { [_hH]: _xagfc }], [0, { [_hH]: _xagr }], [0, { [_hH]: _xagra }], [0, { [_hH]: _xagw }], [0, { [_hH]: _xagwa }], [2, { [_hH]: _xabole }], [0, { [_hH]: _xaoo }], [0, { [_hH]: _xabn }]], 1
|
|
1297
1299
|
];
|
|
1298
1300
|
export var CreateMultipartUploadOutput$ = [3, n0, _CMUOr,
|
|
1299
1301
|
{ [_xN]: _IMUR },
|
|
@@ -2572,7 +2574,7 @@ export var S3KeyFilter$ = [3, n0, _SKF,
|
|
|
2572
2574
|
];
|
|
2573
2575
|
export var S3Location$ = [3, n0, _SL,
|
|
2574
2576
|
0,
|
|
2575
|
-
[
|
|
2577
|
+
[_BNu, _P, _En, _CACL, _ACL, _Tag, _UM, _SC],
|
|
2576
2578
|
[0, 0, [() => Encryption$, 0], 0, [() => Grants, 0], [() => Tagging$, 0], [() => UserMetadata, 0], 0], 2
|
|
2577
2579
|
];
|
|
2578
2580
|
export var S3TablesDestination$ = [3, n0, _STD,
|
|
@@ -122,10 +122,11 @@ declare const CopyObjectCommand_base: {
|
|
|
122
122
|
* the <b>
|
|
123
123
|
* <code>s3express:CreateSession</code>
|
|
124
124
|
* </b> permission in
|
|
125
|
-
* the <code>Action</code> element of a policy to read the object.
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
125
|
+
* the <code>Action</code> element of a policy to read the object. If no session mode is specified,
|
|
126
|
+
* the session will be created with the maximum allowable privilege, attempting <code>ReadWrite</code>
|
|
127
|
+
* first, then <code>ReadOnly</code> if <code>ReadWrite</code> is not permitted. If you want to explicitly
|
|
128
|
+
* restrict the access to be read-only, you can set the <code>s3express:SessionMode</code> condition key to
|
|
129
|
+
* <code>ReadOnly</code> on the copy source bucket.</p>
|
|
129
130
|
* </li>
|
|
130
131
|
* <li>
|
|
131
132
|
* <p>If the copy destination is a directory bucket, you must have the <b>
|
|
@@ -38,6 +38,14 @@ declare const CreateBucketCommand_base: {
|
|
|
38
38
|
* <p>There are two types of buckets: general purpose buckets and directory buckets. For more information about
|
|
39
39
|
* these bucket types, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-buckets-s3.html">Creating, configuring, and working with Amazon S3
|
|
40
40
|
* buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
41
|
+
* <p>General purpose buckets exist in a global namespace, which means that each bucket name must be unique
|
|
42
|
+
* across all Amazon Web Services accounts in all the Amazon Web Services Regions within a partition. A partition is a grouping of
|
|
43
|
+
* Regions. Amazon Web Services currently has four partitions: <code>aws</code> (Standard Regions), <code>aws-cn</code>
|
|
44
|
+
* (China Regions), <code>aws-us-gov</code> (Amazon Web Services GovCloud (US)), and <code>aws-eusc</code>
|
|
45
|
+
* (European Sovereign Cloud). When you create a general purpose bucket, you can choose to create a bucket in
|
|
46
|
+
* the shared global namespace or you can choose to create a bucket in your account regional namespace.
|
|
47
|
+
* Your account regional namespace is a subdivision of the global namespace that only your account can
|
|
48
|
+
* create buckets in. For more information on account regional namespaces, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/gpbucketnamespaces.html">Namespaces for general purpose buckets</a>.</p>
|
|
41
49
|
* <note>
|
|
42
50
|
* <ul>
|
|
43
51
|
* <li>
|
|
@@ -202,6 +210,7 @@ declare const CreateBucketCommand_base: {
|
|
|
202
210
|
* GrantWriteACP: "STRING_VALUE",
|
|
203
211
|
* ObjectLockEnabledForBucket: true || false,
|
|
204
212
|
* ObjectOwnership: "BucketOwnerPreferred" || "ObjectWriter" || "BucketOwnerEnforced",
|
|
213
|
+
* BucketNamespace: "account-regional" || "global",
|
|
205
214
|
* };
|
|
206
215
|
* const command = new CreateBucketCommand(input);
|
|
207
216
|
* const response = await client.send(command);
|
|
@@ -31,7 +31,6 @@ declare const DeleteBucketTaggingCommand_base: {
|
|
|
31
31
|
* <p>This operation is not supported for directory buckets.</p>
|
|
32
32
|
* </note>
|
|
33
33
|
* <p>Deletes tags from the general purpose bucket if attribute based access control (ABAC) is not enabled for the bucket. When you <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging-enable-abac.html">enable ABAC for a general purpose bucket</a>, you can no longer use this operation for that bucket and must use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UntagResource.html">UntagResource</a> instead.</p>
|
|
34
|
-
* <p>if ABAC is not enabled for the bucket. When you <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging-enable-abac.html">enable ABAC for a general purpose bucket</a>, you can no longer use this operation for that bucket and must use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UntagResource.html">UntagResource</a> instead.</p>
|
|
35
34
|
* <p>To use this operation, you must have permission to perform the <code>s3:PutBucketTagging</code>
|
|
36
35
|
* action. By default, the bucket owner has this permission and can grant this permission to others. </p>
|
|
37
36
|
* <p>The following operations are related to <code>DeleteBucketTagging</code>:</p>
|
|
@@ -31,7 +31,6 @@ declare const GetBucketTaggingCommand_base: {
|
|
|
31
31
|
* <p>This operation is not supported for directory buckets.</p>
|
|
32
32
|
* </note>
|
|
33
33
|
* <p>Returns the tag set associated with the general purpose bucket.</p>
|
|
34
|
-
* <p>if ABAC is not enabled for the bucket. When you <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging-enable-abac.html">enable ABAC for a general purpose bucket</a>, you can no longer use this operation for that bucket and must use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListTagsForResource.html">ListTagsForResource</a> instead.</p>
|
|
35
34
|
* <p>To use this operation, you must have permission to perform the <code>s3:GetBucketTagging</code>
|
|
36
35
|
* action. By default, the bucket owner has this permission and can grant this permission to others.</p>
|
|
37
36
|
* <p>
|
|
@@ -74,10 +74,11 @@ declare const HeadBucketCommand_base: {
|
|
|
74
74
|
* <b>
|
|
75
75
|
* <code>s3express:CreateSession</code>
|
|
76
76
|
* </b> permission in the
|
|
77
|
-
* <code>Action</code> element of a policy.
|
|
78
|
-
* <code>ReadWrite</code>
|
|
79
|
-
* <code>
|
|
80
|
-
*
|
|
77
|
+
* <code>Action</code> element of a policy. If no session mode is specified, the session will be
|
|
78
|
+
* created with the maximum allowable privilege, attempting <code>ReadWrite</code> first,
|
|
79
|
+
* then <code>ReadOnly</code> if <code>ReadWrite</code> is not permitted. If you want to explicitly
|
|
80
|
+
* restrict the access to be read-only, you can set the <code>s3express:SessionMode</code> condition key to
|
|
81
|
+
* <code>ReadOnly</code> on the bucket.</p>
|
|
81
82
|
* <p>For more information about example bucket policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example
|
|
82
83
|
* bucket policies for S3 Express One Zone</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html">Amazon Web Services
|
|
83
84
|
* Identity and Access Management (IAM) identity-based policies for S3 Express One Zone</a> in the
|