backend v4 half

This commit is contained in:
2025-07-18 09:20:40 +02:00
parent aba7a506ad
commit 725516ad6c
4183 changed files with 217684 additions and 75056 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*)
if command -v cygpath > /dev/null 2>&1; then
basedir=`cygpath -w "$basedir"`
fi
;;
esac
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../node-gyp-build/bin.js" "$@"
else
exec node "$basedir/../node-gyp-build/bin.js" "$@"
fi
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*)
if command -v cygpath > /dev/null 2>&1; then
basedir=`cygpath -w "$basedir"`
fi
;;
esac
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../node-gyp-build/optional.js" "$@"
else
exec node "$basedir/../node-gyp-build/optional.js" "$@"
fi
+17
View File
@@ -0,0 +1,17 @@
@ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\node-gyp-build\optional.js" %*
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../node-gyp-build/optional.js" $args
} else {
& "$basedir/node$exe" "$basedir/../node-gyp-build/optional.js" $args
}
$ret=$LASTEXITCODE
} else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../node-gyp-build/optional.js" $args
} else {
& "node$exe" "$basedir/../node-gyp-build/optional.js" $args
}
$ret=$LASTEXITCODE
}
exit $ret
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*)
if command -v cygpath > /dev/null 2>&1; then
basedir=`cygpath -w "$basedir"`
fi
;;
esac
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../node-gyp-build/build-test.js" "$@"
else
exec node "$basedir/../node-gyp-build/build-test.js" "$@"
fi
+17
View File
@@ -0,0 +1,17 @@
@ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\node-gyp-build\build-test.js" %*
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../node-gyp-build/build-test.js" $args
} else {
& "$basedir/node$exe" "$basedir/../node-gyp-build/build-test.js" $args
}
$ret=$LASTEXITCODE
} else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../node-gyp-build/build-test.js" $args
} else {
& "node$exe" "$basedir/../node-gyp-build/build-test.js" $args
}
$ret=$LASTEXITCODE
}
exit $ret
+17
View File
@@ -0,0 +1,17 @@
@ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\node-gyp-build\bin.js" %*
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../node-gyp-build/bin.js" $args
} else {
& "$basedir/node$exe" "$basedir/../node-gyp-build/bin.js" $args
}
$ret=$LASTEXITCODE
} else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../node-gyp-build/bin.js" $args
} else {
& "node$exe" "$basedir/../node-gyp-build/bin.js" $args
}
$ret=$LASTEXITCODE
}
exit $ret
+2 -2
View File
@@ -10,7 +10,7 @@ case `uname` in
esac
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../uuid/dist/esm/bin/uuid" "$@"
exec "$basedir/node" "$basedir/../uuid/dist/bin/uuid" "$@"
else
exec node "$basedir/../uuid/dist/esm/bin/uuid" "$@"
exec node "$basedir/../uuid/dist/bin/uuid" "$@"
fi
+1 -1
View File
@@ -14,4 +14,4 @@ IF EXIST "%dp0%\node.exe" (
SET PATHEXT=%PATHEXT:;.JS;=;%
)
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\uuid\dist\esm\bin\uuid" %*
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\uuid\dist\bin\uuid" %*
+4 -4
View File
@@ -11,17 +11,17 @@ $ret=0
if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../uuid/dist/esm/bin/uuid" $args
$input | & "$basedir/node$exe" "$basedir/../uuid/dist/bin/uuid" $args
} else {
& "$basedir/node$exe" "$basedir/../uuid/dist/esm/bin/uuid" $args
& "$basedir/node$exe" "$basedir/../uuid/dist/bin/uuid" $args
}
$ret=$LASTEXITCODE
} else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../uuid/dist/esm/bin/uuid" $args
$input | & "node$exe" "$basedir/../uuid/dist/bin/uuid" $args
} else {
& "node$exe" "$basedir/../uuid/dist/esm/bin/uuid" $args
& "node$exe" "$basedir/../uuid/dist/bin/uuid" $args
}
$ret=$LASTEXITCODE
}
+634 -584
View File
File diff suppressed because it is too large Load Diff
+40
View File
@@ -234,6 +234,14 @@ CreateBucket
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3/command/CreateBucketCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/CreateBucketCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/CreateBucketCommandOutput/)
</details>
<details>
<summary>
CreateBucketMetadataConfiguration
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3/command/CreateBucketMetadataConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/CreateBucketMetadataConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/CreateBucketMetadataConfigurationCommandOutput/)
</details>
<details>
<summary>
@@ -314,6 +322,14 @@ DeleteBucketLifecycle
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3/command/DeleteBucketLifecycleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/DeleteBucketLifecycleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/DeleteBucketLifecycleCommandOutput/)
</details>
<details>
<summary>
DeleteBucketMetadataConfiguration
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3/command/DeleteBucketMetadataConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/DeleteBucketMetadataConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/DeleteBucketMetadataConfigurationCommandOutput/)
</details>
<details>
<summary>
@@ -482,6 +498,14 @@ GetBucketLogging
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3/command/GetBucketLoggingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/GetBucketLoggingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/GetBucketLoggingCommandOutput/)
</details>
<details>
<summary>
GetBucketMetadataConfiguration
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3/command/GetBucketMetadataConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/GetBucketMetadataConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/GetBucketMetadataConfigurationCommandOutput/)
</details>
<details>
<summary>
@@ -970,6 +994,22 @@ SelectObjectContent
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3/command/SelectObjectContentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/SelectObjectContentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/SelectObjectContentCommandOutput/)
</details>
<details>
<summary>
UpdateBucketMetadataInventoryTableConfiguration
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3/command/UpdateBucketMetadataInventoryTableConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/UpdateBucketMetadataInventoryTableConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/UpdateBucketMetadataInventoryTableConfigurationCommandOutput/)
</details>
<details>
<summary>
UpdateBucketMetadataJournalTableConfiguration
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3/command/UpdateBucketMetadataJournalTableConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/UpdateBucketMetadataJournalTableConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/Interface/UpdateBucketMetadataJournalTableConfigurationCommandOutput/)
</details>
<details>
<summary>
File diff suppressed because it is too large Load Diff
+10
View File
@@ -3,6 +3,7 @@ import { AbortMultipartUploadCommand, } from "./commands/AbortMultipartUploadCom
import { CompleteMultipartUploadCommand, } from "./commands/CompleteMultipartUploadCommand";
import { CopyObjectCommand } from "./commands/CopyObjectCommand";
import { CreateBucketCommand, } from "./commands/CreateBucketCommand";
import { CreateBucketMetadataConfigurationCommand, } from "./commands/CreateBucketMetadataConfigurationCommand";
import { CreateBucketMetadataTableConfigurationCommand, } from "./commands/CreateBucketMetadataTableConfigurationCommand";
import { CreateMultipartUploadCommand, } from "./commands/CreateMultipartUploadCommand";
import { CreateSessionCommand, } from "./commands/CreateSessionCommand";
@@ -13,6 +14,7 @@ import { DeleteBucketEncryptionCommand, } from "./commands/DeleteBucketEncryptio
import { DeleteBucketIntelligentTieringConfigurationCommand, } from "./commands/DeleteBucketIntelligentTieringConfigurationCommand";
import { DeleteBucketInventoryConfigurationCommand, } from "./commands/DeleteBucketInventoryConfigurationCommand";
import { DeleteBucketLifecycleCommand, } from "./commands/DeleteBucketLifecycleCommand";
import { DeleteBucketMetadataConfigurationCommand, } from "./commands/DeleteBucketMetadataConfigurationCommand";
import { DeleteBucketMetadataTableConfigurationCommand, } from "./commands/DeleteBucketMetadataTableConfigurationCommand";
import { DeleteBucketMetricsConfigurationCommand, } from "./commands/DeleteBucketMetricsConfigurationCommand";
import { DeleteBucketOwnershipControlsCommand, } from "./commands/DeleteBucketOwnershipControlsCommand";
@@ -34,6 +36,7 @@ import { GetBucketInventoryConfigurationCommand, } from "./commands/GetBucketInv
import { GetBucketLifecycleConfigurationCommand, } from "./commands/GetBucketLifecycleConfigurationCommand";
import { GetBucketLocationCommand, } from "./commands/GetBucketLocationCommand";
import { GetBucketLoggingCommand, } from "./commands/GetBucketLoggingCommand";
import { GetBucketMetadataConfigurationCommand, } from "./commands/GetBucketMetadataConfigurationCommand";
import { GetBucketMetadataTableConfigurationCommand, } from "./commands/GetBucketMetadataTableConfigurationCommand";
import { GetBucketMetricsConfigurationCommand, } from "./commands/GetBucketMetricsConfigurationCommand";
import { GetBucketNotificationConfigurationCommand, } from "./commands/GetBucketNotificationConfigurationCommand";
@@ -95,6 +98,8 @@ import { PutPublicAccessBlockCommand, } from "./commands/PutPublicAccessBlockCom
import { RenameObjectCommand, } from "./commands/RenameObjectCommand";
import { RestoreObjectCommand, } from "./commands/RestoreObjectCommand";
import { SelectObjectContentCommand, } from "./commands/SelectObjectContentCommand";
import { UpdateBucketMetadataInventoryTableConfigurationCommand, } from "./commands/UpdateBucketMetadataInventoryTableConfigurationCommand";
import { UpdateBucketMetadataJournalTableConfigurationCommand, } from "./commands/UpdateBucketMetadataJournalTableConfigurationCommand";
import { UploadPartCommand } from "./commands/UploadPartCommand";
import { UploadPartCopyCommand, } from "./commands/UploadPartCopyCommand";
import { WriteGetObjectResponseCommand, } from "./commands/WriteGetObjectResponseCommand";
@@ -104,6 +109,7 @@ const commands = {
CompleteMultipartUploadCommand,
CopyObjectCommand,
CreateBucketCommand,
CreateBucketMetadataConfigurationCommand,
CreateBucketMetadataTableConfigurationCommand,
CreateMultipartUploadCommand,
CreateSessionCommand,
@@ -114,6 +120,7 @@ const commands = {
DeleteBucketIntelligentTieringConfigurationCommand,
DeleteBucketInventoryConfigurationCommand,
DeleteBucketLifecycleCommand,
DeleteBucketMetadataConfigurationCommand,
DeleteBucketMetadataTableConfigurationCommand,
DeleteBucketMetricsConfigurationCommand,
DeleteBucketOwnershipControlsCommand,
@@ -135,6 +142,7 @@ const commands = {
GetBucketLifecycleConfigurationCommand,
GetBucketLocationCommand,
GetBucketLoggingCommand,
GetBucketMetadataConfigurationCommand,
GetBucketMetadataTableConfigurationCommand,
GetBucketMetricsConfigurationCommand,
GetBucketNotificationConfigurationCommand,
@@ -196,6 +204,8 @@ const commands = {
RenameObjectCommand,
RestoreObjectCommand,
SelectObjectContentCommand,
UpdateBucketMetadataInventoryTableConfigurationCommand,
UpdateBucketMetadataJournalTableConfigurationCommand,
UploadPartCommand,
UploadPartCopyCommand,
WriteGetObjectResponseCommand,
@@ -0,0 +1,31 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { de_CreateBucketMetadataConfigurationCommand, se_CreateBucketMetadataConfigurationCommand, } from "../protocols/Aws_restXml";
export { $Command };
export class CreateBucketMetadataConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "CreateBucketMetadataConfiguration", {})
.n("S3Client", "CreateBucketMetadataConfigurationCommand")
.f(void 0, void 0)
.ser(se_CreateBucketMetadataConfigurationCommand)
.de(de_CreateBucketMetadataConfigurationCommand)
.build() {
}
@@ -0,0 +1,26 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { de_DeleteBucketMetadataConfigurationCommand, se_DeleteBucketMetadataConfigurationCommand, } from "../protocols/Aws_restXml";
export { $Command };
export class DeleteBucketMetadataConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
})
.s("AmazonS3", "DeleteBucketMetadataConfiguration", {})
.n("S3Client", "DeleteBucketMetadataConfigurationCommand")
.f(void 0, void 0)
.ser(se_DeleteBucketMetadataConfigurationCommand)
.de(de_DeleteBucketMetadataConfigurationCommand)
.build() {
}
@@ -0,0 +1,28 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { de_GetBucketMetadataConfigurationCommand, se_GetBucketMetadataConfigurationCommand, } from "../protocols/Aws_restXml";
export { $Command };
export class GetBucketMetadataConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketMetadataConfiguration", {})
.n("S3Client", "GetBucketMetadataConfigurationCommand")
.f(void 0, void 0)
.ser(se_GetBucketMetadataConfigurationCommand)
.de(de_GetBucketMetadataConfigurationCommand)
.build() {
}
@@ -4,7 +4,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListPartsRequestFilterSensitiveLog } from "../models/models_0";
import { ListPartsRequestFilterSensitiveLog } from "../models/models_1";
import { de_ListPartsCommand, se_ListPartsCommand } from "../protocols/Aws_restXml";
export { $Command };
export class ListPartsCommand extends $Command
@@ -0,0 +1,31 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { de_UpdateBucketMetadataInventoryTableConfigurationCommand, se_UpdateBucketMetadataInventoryTableConfigurationCommand, } from "../protocols/Aws_restXml";
export { $Command };
export class UpdateBucketMetadataInventoryTableConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "UpdateBucketMetadataInventoryTableConfiguration", {})
.n("S3Client", "UpdateBucketMetadataInventoryTableConfigurationCommand")
.f(void 0, void 0)
.ser(se_UpdateBucketMetadataInventoryTableConfigurationCommand)
.de(de_UpdateBucketMetadataInventoryTableConfigurationCommand)
.build() {
}
@@ -0,0 +1,31 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { de_UpdateBucketMetadataJournalTableConfigurationCommand, se_UpdateBucketMetadataJournalTableConfigurationCommand, } from "../protocols/Aws_restXml";
export { $Command };
export class UpdateBucketMetadataJournalTableConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "UpdateBucketMetadataJournalTableConfiguration", {})
.n("S3Client", "UpdateBucketMetadataJournalTableConfigurationCommand")
.f(void 0, void 0)
.ser(se_UpdateBucketMetadataJournalTableConfigurationCommand)
.de(de_UpdateBucketMetadataJournalTableConfigurationCommand)
.build() {
}
@@ -2,6 +2,7 @@ export * from "./AbortMultipartUploadCommand";
export * from "./CompleteMultipartUploadCommand";
export * from "./CopyObjectCommand";
export * from "./CreateBucketCommand";
export * from "./CreateBucketMetadataConfigurationCommand";
export * from "./CreateBucketMetadataTableConfigurationCommand";
export * from "./CreateMultipartUploadCommand";
export * from "./CreateSessionCommand";
@@ -12,6 +13,7 @@ export * from "./DeleteBucketEncryptionCommand";
export * from "./DeleteBucketIntelligentTieringConfigurationCommand";
export * from "./DeleteBucketInventoryConfigurationCommand";
export * from "./DeleteBucketLifecycleCommand";
export * from "./DeleteBucketMetadataConfigurationCommand";
export * from "./DeleteBucketMetadataTableConfigurationCommand";
export * from "./DeleteBucketMetricsConfigurationCommand";
export * from "./DeleteBucketOwnershipControlsCommand";
@@ -33,6 +35,7 @@ export * from "./GetBucketInventoryConfigurationCommand";
export * from "./GetBucketLifecycleConfigurationCommand";
export * from "./GetBucketLocationCommand";
export * from "./GetBucketLoggingCommand";
export * from "./GetBucketMetadataConfigurationCommand";
export * from "./GetBucketMetadataTableConfigurationCommand";
export * from "./GetBucketMetricsConfigurationCommand";
export * from "./GetBucketNotificationConfigurationCommand";
@@ -94,6 +97,8 @@ export * from "./PutPublicAccessBlockCommand";
export * from "./RenameObjectCommand";
export * from "./RestoreObjectCommand";
export * from "./SelectObjectContentCommand";
export * from "./UpdateBucketMetadataInventoryTableConfigurationCommand";
export * from "./UpdateBucketMetadataJournalTableConfigurationCommand";
export * from "./UploadPartCommand";
export * from "./UploadPartCopyCommand";
export * from "./WriteGetObjectResponseCommand";
@@ -186,6 +186,18 @@ export const ObjectOwnership = {
BucketOwnerPreferred: "BucketOwnerPreferred",
ObjectWriter: "ObjectWriter",
};
export const InventoryConfigurationState = {
DISABLED: "DISABLED",
ENABLED: "ENABLED",
};
export const TableSseAlgorithm = {
AES256: "AES256",
aws_kms: "aws:kms",
};
export const ExpirationState = {
DISABLED: "DISABLED",
ENABLED: "ENABLED",
};
export const SessionMode = {
ReadOnly: "ReadOnly",
ReadWrite: "ReadWrite",
@@ -283,6 +295,10 @@ export const PartitionDateSource = {
DeliveryTime: "DeliveryTime",
EventTime: "EventTime",
};
export const S3TablesBucketType = {
aws: "aws",
customer: "customer",
};
export var MetricsFilter;
(function (MetricsFilter) {
MetricsFilter.visit = (value, visitor) => {
@@ -445,26 +461,6 @@ export const ArchiveStatus = {
export const EncodingType = {
url: "url",
};
export const ObjectStorageClass = {
DEEP_ARCHIVE: "DEEP_ARCHIVE",
EXPRESS_ONEZONE: "EXPRESS_ONEZONE",
FSX_OPENZFS: "FSX_OPENZFS",
GLACIER: "GLACIER",
GLACIER_IR: "GLACIER_IR",
INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
ONEZONE_IA: "ONEZONE_IA",
OUTPOSTS: "OUTPOSTS",
REDUCED_REDUNDANCY: "REDUCED_REDUNDANCY",
SNOW: "SNOW",
STANDARD: "STANDARD",
STANDARD_IA: "STANDARD_IA",
};
export const OptionalObjectAttributes = {
RESTORE_STATUS: "RestoreStatus",
};
export const ObjectVersionStorageClass = {
STANDARD: "STANDARD",
};
export const CompleteMultipartUploadOutputFilterSensitiveLog = (obj) => ({
...obj,
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
@@ -589,7 +585,3 @@ export const ListBucketInventoryConfigurationsOutputFilterSensitiveLog = (obj) =
InventoryConfigurationList: obj.InventoryConfigurationList.map((item) => InventoryConfigurationFilterSensitiveLog(item)),
}),
});
export const ListPartsRequestFilterSensitiveLog = (obj) => ({
...obj,
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
});
@@ -1,6 +1,26 @@
import { SENSITIVE_STRING } from "@smithy/smithy-client";
import { InventoryConfigurationFilterSensitiveLog, ServerSideEncryptionConfigurationFilterSensitiveLog, } from "./models_0";
import { S3ServiceException as __BaseException } from "./S3ServiceException";
export const ObjectStorageClass = {
DEEP_ARCHIVE: "DEEP_ARCHIVE",
EXPRESS_ONEZONE: "EXPRESS_ONEZONE",
FSX_OPENZFS: "FSX_OPENZFS",
GLACIER: "GLACIER",
GLACIER_IR: "GLACIER_IR",
INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
ONEZONE_IA: "ONEZONE_IA",
OUTPOSTS: "OUTPOSTS",
REDUCED_REDUNDANCY: "REDUCED_REDUNDANCY",
SNOW: "SNOW",
STANDARD: "STANDARD",
STANDARD_IA: "STANDARD_IA",
};
export const OptionalObjectAttributes = {
RESTORE_STATUS: "RestoreStatus",
};
export const ObjectVersionStorageClass = {
STANDARD: "STANDARD",
};
export const MFADelete = {
Disabled: "Disabled",
Enabled: "Enabled",
@@ -122,6 +142,10 @@ export var SelectObjectContentEventStream;
return visitor._(value.$unknown[0], value.$unknown[1]);
};
})(SelectObjectContentEventStream || (SelectObjectContentEventStream = {}));
export const ListPartsRequestFilterSensitiveLog = (obj) => ({
...obj,
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
});
export const PutBucketEncryptionRequestFilterSensitiveLog = (obj) => ({
...obj,
...(obj.ServerSideEncryptionConfiguration && {
@@ -145,6 +145,30 @@ export const se_CreateBucketCommand = async (input, context) => {
b.m("PUT").h(headers).b(body);
return b.build();
};
export const se_CreateBucketMetadataConfigurationCommand = async (input, context) => {
const b = rb(input, context);
const headers = map({}, isSerializableHeaderValue, {
"content-type": "application/xml",
[_cm]: input[_CMD],
[_xasca]: input[_CA],
[_xaebo]: input[_EBO],
});
b.bp("/");
b.p("Bucket", () => input.Bucket, "{Bucket}", false);
const query = map({
[_mC]: [, ""],
});
let body;
let contents;
if (input.MetadataConfiguration !== undefined) {
contents = se_MetadataConfiguration(input.MetadataConfiguration, context);
body = _ve;
contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
b.m("POST").h(headers).q(query).b(body);
return b.build();
};
export const se_CreateBucketMetadataTableConfigurationCommand = async (input, context) => {
const b = rb(input, context);
const headers = map({}, isSerializableHeaderValue, {
@@ -332,6 +356,20 @@ export const se_DeleteBucketLifecycleCommand = async (input, context) => {
b.m("DELETE").h(headers).q(query).b(body);
return b.build();
};
export const se_DeleteBucketMetadataConfigurationCommand = async (input, context) => {
const b = rb(input, context);
const headers = map({}, isSerializableHeaderValue, {
[_xaebo]: input[_EBO],
});
b.bp("/");
b.p("Bucket", () => input.Bucket, "{Bucket}", false);
const query = map({
[_mC]: [, ""],
});
let body;
b.m("DELETE").h(headers).q(query).b(body);
return b.build();
};
export const se_DeleteBucketMetadataTableConfigurationCommand = async (input, context) => {
const b = rb(input, context);
const headers = map({}, isSerializableHeaderValue, {
@@ -656,6 +694,20 @@ export const se_GetBucketLoggingCommand = async (input, context) => {
b.m("GET").h(headers).q(query).b(body);
return b.build();
};
export const se_GetBucketMetadataConfigurationCommand = async (input, context) => {
const b = rb(input, context);
const headers = map({}, isSerializableHeaderValue, {
[_xaebo]: input[_EBO],
});
b.bp("/");
b.p("Bucket", () => input.Bucket, "{Bucket}", false);
const query = map({
[_mC]: [, ""],
});
let body;
b.m("GET").h(headers).q(query).b(body);
return b.build();
};
export const se_GetBucketMetadataTableConfigurationCommand = async (input, context) => {
const b = rb(input, context);
const headers = map({}, isSerializableHeaderValue, {
@@ -1973,6 +2025,56 @@ export const se_SelectObjectContentCommand = async (input, context) => {
b.m("POST").h(headers).q(query).b(body);
return b.build();
};
export const se_UpdateBucketMetadataInventoryTableConfigurationCommand = async (input, context) => {
const b = rb(input, context);
const headers = map({}, isSerializableHeaderValue, {
"content-type": "application/xml",
[_cm]: input[_CMD],
[_xasca]: input[_CA],
[_xaebo]: input[_EBO],
});
b.bp("/");
b.p("Bucket", () => input.Bucket, "{Bucket}", false);
const query = map({
[_mIT]: [, ""],
});
let body;
let contents;
if (input.InventoryTableConfiguration !== undefined) {
contents = se_InventoryTableConfigurationUpdates(input.InventoryTableConfiguration, context);
contents = contents.n("InventoryTableConfiguration");
body = _ve;
contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
b.m("PUT").h(headers).q(query).b(body);
return b.build();
};
export const se_UpdateBucketMetadataJournalTableConfigurationCommand = async (input, context) => {
const b = rb(input, context);
const headers = map({}, isSerializableHeaderValue, {
"content-type": "application/xml",
[_cm]: input[_CMD],
[_xasca]: input[_CA],
[_xaebo]: input[_EBO],
});
b.bp("/");
b.p("Bucket", () => input.Bucket, "{Bucket}", false);
const query = map({
[_mJT]: [, ""],
});
let body;
let contents;
if (input.JournalTableConfiguration !== undefined) {
contents = se_JournalTableConfigurationUpdates(input.JournalTableConfiguration, context);
contents = contents.n("JournalTableConfiguration");
body = _ve;
contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
body += contents.toString();
}
b.m("PUT").h(headers).q(query).b(body);
return b.build();
};
export const se_UploadPartCommand = async (input, context) => {
const b = rb(input, context);
const headers = map({}, isSerializableHeaderValue, {
@@ -2204,6 +2306,16 @@ export const de_CreateBucketCommand = async (output, context) => {
await collectBody(output.body, context);
return contents;
};
export const de_CreateBucketMetadataConfigurationCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
await collectBody(output.body, context);
return contents;
};
export const de_CreateBucketMetadataTableConfigurationCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
@@ -2334,6 +2446,16 @@ export const de_DeleteBucketLifecycleCommand = async (output, context) => {
await collectBody(output.body, context);
return contents;
};
export const de_DeleteBucketMetadataConfigurationCommand = async (output, context) => {
if (output.statusCode !== 204 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
await collectBody(output.body, context);
return contents;
};
export const de_DeleteBucketMetadataTableConfigurationCommand = async (output, context) => {
if (output.statusCode !== 204 && output.statusCode >= 300) {
return de_CommandError(output, context);
@@ -2597,6 +2719,17 @@ export const de_GetBucketLoggingCommand = async (output, context) => {
}
return contents;
};
export const de_GetBucketMetadataConfigurationCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
const data = __expectObject(await parseBody(output.body, context));
contents.GetBucketMetadataConfigurationResult = de_GetBucketMetadataConfigurationResult(data, context);
return contents;
};
export const de_GetBucketMetadataTableConfigurationCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
@@ -3743,6 +3876,26 @@ export const de_SelectObjectContentCommand = async (output, context) => {
contents.Payload = de_SelectObjectContentEventStream(data, context);
return contents;
};
export const de_UpdateBucketMetadataInventoryTableConfigurationCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
await collectBody(output.body, context);
return contents;
};
export const de_UpdateBucketMetadataJournalTableConfigurationCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
}
const contents = map({
$metadata: deserializeMetadata(output),
});
await collectBody(output.body, context);
return contents;
};
export const de_UploadPartCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_CommandError(output, context);
@@ -4552,6 +4705,43 @@ const se_InventorySchedule = (input, context) => {
}
return bn;
};
const se_InventoryTableConfiguration = (input, context) => {
const bn = new __XmlNode(_ITCn);
if (input[_CSo] != null) {
bn.c(__XmlNode.of(_ICS, input[_CSo]).n(_CSo));
}
if (input[_ECn] != null) {
bn.c(se_MetadataTableEncryptionConfiguration(input[_ECn], context).n(_ECn));
}
return bn;
};
const se_InventoryTableConfigurationUpdates = (input, context) => {
const bn = new __XmlNode(_ITCU);
if (input[_CSo] != null) {
bn.c(__XmlNode.of(_ICS, input[_CSo]).n(_CSo));
}
if (input[_ECn] != null) {
bn.c(se_MetadataTableEncryptionConfiguration(input[_ECn], context).n(_ECn));
}
return bn;
};
const se_JournalTableConfiguration = (input, context) => {
const bn = new __XmlNode(_JTC);
if (input[_REe] != null) {
bn.c(se_RecordExpiration(input[_REe], context).n(_REe));
}
if (input[_ECn] != null) {
bn.c(se_MetadataTableEncryptionConfiguration(input[_ECn], context).n(_ECn));
}
return bn;
};
const se_JournalTableConfigurationUpdates = (input, context) => {
const bn = new __XmlNode(_JTCU);
if (input[_REe] != null) {
bn.c(se_RecordExpiration(input[_REe], context).n(_REe));
}
return bn;
};
const se_JSONInput = (input, context) => {
const bn = new __XmlNode(_JSONI);
if (input[_Ty] != null) {
@@ -4679,6 +4869,16 @@ const se_LoggingEnabled = (input, context) => {
}
return bn;
};
const se_MetadataConfiguration = (input, context) => {
const bn = new __XmlNode(_MCe);
if (input[_JTC] != null) {
bn.c(se_JournalTableConfiguration(input[_JTC], context).n(_JTC));
}
if (input[_ITCn] != null) {
bn.c(se_InventoryTableConfiguration(input[_ITCn], context).n(_ITCn));
}
return bn;
};
const se_MetadataEntry = (input, context) => {
const bn = new __XmlNode(_ME);
if (input[_N] != null) {
@@ -4696,6 +4896,14 @@ const se_MetadataTableConfiguration = (input, context) => {
}
return bn;
};
const se_MetadataTableEncryptionConfiguration = (input, context) => {
const bn = new __XmlNode(_MTEC);
if (input[_SAs] != null) {
bn.c(__XmlNode.of(_TSA, input[_SAs]).n(_SAs));
}
bn.cc(input, _KKA);
return bn;
};
const se_Metrics = (input, context) => {
const bn = new __XmlNode(_Me);
if (input[_S] != null) {
@@ -4948,6 +5156,16 @@ const se_QueueConfigurationList = (input, context) => {
return n.n(_me);
});
};
const se_RecordExpiration = (input, context) => {
const bn = new __XmlNode(_REe);
if (input[_Exp] != null) {
bn.c(__XmlNode.of(_ESxp, input[_Exp]).n(_Exp));
}
if (input[_Da] != null) {
bn.c(__XmlNode.of(_RED, String(input[_Da])).n(_Da));
}
return bn;
};
const se_Redirect = (input, context) => {
const bn = new __XmlNode(_Red);
bn.cc(input, _HN);
@@ -5758,6 +5976,19 @@ const de_Destination = (output, context) => {
}
return contents;
};
const de_DestinationResult = (output, context) => {
const contents = {};
if (output[_TBT] != null) {
contents[_TBT] = __expectString(output[_TBT]);
}
if (output[_TBA] != null) {
contents[_TBA] = __expectString(output[_TBA]);
}
if (output[_TNa] != null) {
contents[_TNa] = __expectString(output[_TNa]);
}
return contents;
};
const de_EncryptionConfiguration = (output, context) => {
const contents = {};
if (output[_RKKID] != null) {
@@ -5851,6 +6082,13 @@ const de_FilterRuleList = (output, context) => {
return de_FilterRule(entry, context);
});
};
const de_GetBucketMetadataConfigurationResult = (output, context) => {
const contents = {};
if (output[_MCR] != null) {
contents[_MCR] = de_MetadataConfigurationResult(output[_MCR], context);
}
return contents;
};
const de_GetBucketMetadataTableConfigurationResult = (output, context) => {
const contents = {};
if (output[_MTCR] != null) {
@@ -6086,6 +6324,44 @@ const de_InventorySchedule = (output, context) => {
}
return contents;
};
const de_InventoryTableConfigurationResult = (output, context) => {
const contents = {};
if (output[_CSo] != null) {
contents[_CSo] = __expectString(output[_CSo]);
}
if (output[_TSa] != null) {
contents[_TSa] = __expectString(output[_TSa]);
}
if (output[_Er] != null) {
contents[_Er] = de_ErrorDetails(output[_Er], context);
}
if (output[_TN] != null) {
contents[_TN] = __expectString(output[_TN]);
}
if (output[_TAa] != null) {
contents[_TAa] = __expectString(output[_TAa]);
}
return contents;
};
const de_JournalTableConfigurationResult = (output, context) => {
const contents = {};
if (output[_TSa] != null) {
contents[_TSa] = __expectString(output[_TSa]);
}
if (output[_Er] != null) {
contents[_Er] = de_ErrorDetails(output[_Er], context);
}
if (output[_TN] != null) {
contents[_TN] = __expectString(output[_TN]);
}
if (output[_TAa] != null) {
contents[_TAa] = __expectString(output[_TAa]);
}
if (output[_REe] != null) {
contents[_REe] = de_RecordExpiration(output[_REe], context);
}
return contents;
};
const de_LambdaFunctionConfiguration = (output, context) => {
const contents = {};
if (output[_I] != null) {
@@ -6226,6 +6502,19 @@ const de_LoggingEnabled = (output, context) => {
}
return contents;
};
const de_MetadataConfigurationResult = (output, context) => {
const contents = {};
if (output[_DRes] != null) {
contents[_DRes] = de_DestinationResult(output[_DRes], context);
}
if (output[_JTCR] != null) {
contents[_JTCR] = de_JournalTableConfigurationResult(output[_JTCR], context);
}
if (output[_ITCR] != null) {
contents[_ITCR] = de_InventoryTableConfigurationResult(output[_ITCR], context);
}
return contents;
};
const de_MetadataTableConfigurationResult = (output, context) => {
const contents = {};
if (output[_STDR] != null) {
@@ -6668,6 +6957,16 @@ const de_QueueConfigurationList = (output, context) => {
return de_QueueConfiguration(entry, context);
});
};
const de_RecordExpiration = (output, context) => {
const contents = {};
if (output[_Exp] != null) {
contents[_Exp] = __expectString(output[_Exp]);
}
if (output[_Da] != null) {
contents[_Da] = __strictParseInt32(output[_Da]);
}
return contents;
};
const de_Redirect = (output, context) => {
const contents = {};
if (output[_HN] != null) {
@@ -6803,8 +7102,8 @@ const de_RestoreStatus = (output, context) => {
if (output[_IRIP] != null) {
contents[_IRIP] = __parseBoolean(output[_IRIP]);
}
if (output[_RED] != null) {
contents[_RED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_RED]));
if (output[_REDe] != null) {
contents[_REDe] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_REDe]));
}
return contents;
};
@@ -7176,6 +7475,7 @@ const _CSV = "CSV";
const _CSVI = "CopySourceVersionId";
const _CSVIn = "CSVInput";
const _CSVO = "CSVOutput";
const _CSo = "ConfigurationState";
const _CT = "ChecksumType";
const _CTl = "ClientToken";
const _CTo = "ContentType";
@@ -7201,6 +7501,7 @@ const _DMe = "DeleteMarkers";
const _DN = "DisplayName";
const _DR = "DataRedundancy";
const _DRe = "DefaultRetention";
const _DRes = "DestinationResult";
const _Da = "Days";
const _Dat = "Date";
const _De = "Deleted";
@@ -7224,6 +7525,7 @@ const _ERP = "EnableRequestProgress";
const _ES = "ExpiresString";
const _ESBO = "ExpectedSourceBucketOwner";
const _ESx = "ExpirationStatus";
const _ESxp = "ExpirationState";
const _ET = "EncodingType";
const _ETa = "ETag";
const _ETn = "EncryptionType";
@@ -7264,6 +7566,7 @@ const _HRC = "HttpRedirectCode";
const _I = "Id";
const _IC = "InventoryConfiguration";
const _ICL = "InventoryConfigurationList";
const _ICS = "InventoryConfigurationState";
const _ID = "IndexDocument";
const _ID_ = "ID";
const _IDn = "InventoryDestination";
@@ -7294,6 +7597,9 @@ const _ITAO = "IntelligentTieringAndOperator";
const _ITAT = "IntelligentTieringAccessTier";
const _ITC = "IntelligentTieringConfiguration";
const _ITCL = "IntelligentTieringConfigurationList";
const _ITCR = "InventoryTableConfigurationResult";
const _ITCU = "InventoryTableConfigurationUpdates";
const _ITCn = "InventoryTableConfiguration";
const _ITD = "IntelligentTieringDays";
const _ITF = "IntelligentTieringFilter";
const _ITI = "IntelligentTieringId";
@@ -7305,9 +7611,13 @@ const _JSON = "JSON";
const _JSONI = "JSONInput";
const _JSONO = "JSONOutput";
const _JSONT = "JSONType";
const _JTC = "JournalTableConfiguration";
const _JTCR = "JournalTableConfigurationResult";
const _JTCU = "JournalTableConfigurationUpdates";
const _K = "Key";
const _KC = "KeyCount";
const _KI = "KeyId";
const _KKA = "KmsKeyArn";
const _KM = "KeyMarker";
const _KMSC = "KMSContext";
const _KMSKI = "KMSKeyId";
@@ -7335,6 +7645,8 @@ const _MAS = "MaxAgeSeconds";
const _MB = "MaxBuckets";
const _MC = "MetricsConfiguration";
const _MCL = "MetricsConfigurationList";
const _MCR = "MetadataConfigurationResult";
const _MCe = "MetadataConfiguration";
const _MD = "MetadataDirective";
const _MDB = "MaxDirectoryBuckets";
const _MDf = "MfaDelete";
@@ -7351,6 +7663,7 @@ const _MP = "MaxParts";
const _MS = "MetricsStatus";
const _MTC = "MetadataTableConfiguration";
const _MTCR = "MetadataTableConfigurationResult";
const _MTEC = "MetadataTableEncryptionConfiguration";
const _MU = "MaxUploads";
const _MV = "MetadataValue";
const _Me = "Metrics";
@@ -7438,7 +7751,9 @@ const _RCT = "ResponseContentType";
const _RCe = "ReplicationConfiguration";
const _RD = "RecordDelimiter";
const _RE = "ResponseExpires";
const _RED = "RestoreExpiryDate";
const _RED = "RecordExpirationDays";
const _REDe = "RestoreExpiryDate";
const _REe = "RecordExpiration";
const _RKKID = "ReplicaKmsKeyID";
const _RKPW = "ReplaceKeyPrefixWith";
const _RKW = "ReplaceKeyWith";
@@ -7474,6 +7789,7 @@ const _Rul = "Rules";
const _S = "Status";
const _SA = "StartAfter";
const _SAK = "SecretAccessKey";
const _SAs = "SseAlgorithm";
const _SBD = "S3BucketDestination";
const _SC = "StorageClass";
const _SCA = "StorageClassAnalysis";
@@ -7526,6 +7842,7 @@ const _TA = "TopicArn";
const _TAa = "TableArn";
const _TB = "TargetBucket";
const _TBA = "TableBucketArn";
const _TBT = "TableBucketType";
const _TC = "TagCount";
const _TCo = "TopicConfiguration";
const _TCop = "TopicConfigurations";
@@ -7539,7 +7856,9 @@ const _TOKF = "TargetObjectKeyFormat";
const _TP = "TargetPrefix";
const _TPC = "TotalPartsCount";
const _TS = "TagSet";
const _TSA = "TableSseAlgorithm";
const _TSC = "TransitionStorageClass";
const _TSa = "TableStatus";
const _Ta = "Tag";
const _Tag = "Tags";
const _Ti = "Tier";
@@ -7607,6 +7926,9 @@ const _lo = "location";
const _log = "logging";
const _lt = "list-type";
const _m = "metrics";
const _mC = "metadataConfiguration";
const _mIT = "metadataInventoryTable";
const _mJT = "metadataJournalTable";
const _mT = "metadataTable";
const _ma = "marker";
const _mb = "max-buckets";
+35
View File
@@ -3,6 +3,7 @@ import { AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput } f
import { CompleteMultipartUploadCommandInput, CompleteMultipartUploadCommandOutput } from "./commands/CompleteMultipartUploadCommand";
import { CopyObjectCommandInput, CopyObjectCommandOutput } from "./commands/CopyObjectCommand";
import { CreateBucketCommandInput, CreateBucketCommandOutput } from "./commands/CreateBucketCommand";
import { CreateBucketMetadataConfigurationCommandInput, CreateBucketMetadataConfigurationCommandOutput } from "./commands/CreateBucketMetadataConfigurationCommand";
import { CreateBucketMetadataTableConfigurationCommandInput, CreateBucketMetadataTableConfigurationCommandOutput } from "./commands/CreateBucketMetadataTableConfigurationCommand";
import { CreateMultipartUploadCommandInput, CreateMultipartUploadCommandOutput } from "./commands/CreateMultipartUploadCommand";
import { CreateSessionCommandInput, CreateSessionCommandOutput } from "./commands/CreateSessionCommand";
@@ -13,6 +14,7 @@ import { DeleteBucketEncryptionCommandInput, DeleteBucketEncryptionCommandOutput
import { DeleteBucketIntelligentTieringConfigurationCommandInput, DeleteBucketIntelligentTieringConfigurationCommandOutput } from "./commands/DeleteBucketIntelligentTieringConfigurationCommand";
import { DeleteBucketInventoryConfigurationCommandInput, DeleteBucketInventoryConfigurationCommandOutput } from "./commands/DeleteBucketInventoryConfigurationCommand";
import { DeleteBucketLifecycleCommandInput, DeleteBucketLifecycleCommandOutput } from "./commands/DeleteBucketLifecycleCommand";
import { DeleteBucketMetadataConfigurationCommandInput, DeleteBucketMetadataConfigurationCommandOutput } from "./commands/DeleteBucketMetadataConfigurationCommand";
import { DeleteBucketMetadataTableConfigurationCommandInput, DeleteBucketMetadataTableConfigurationCommandOutput } from "./commands/DeleteBucketMetadataTableConfigurationCommand";
import { DeleteBucketMetricsConfigurationCommandInput, DeleteBucketMetricsConfigurationCommandOutput } from "./commands/DeleteBucketMetricsConfigurationCommand";
import { DeleteBucketOwnershipControlsCommandInput, DeleteBucketOwnershipControlsCommandOutput } from "./commands/DeleteBucketOwnershipControlsCommand";
@@ -34,6 +36,7 @@ import { GetBucketInventoryConfigurationCommandInput, GetBucketInventoryConfigur
import { GetBucketLifecycleConfigurationCommandInput, GetBucketLifecycleConfigurationCommandOutput } from "./commands/GetBucketLifecycleConfigurationCommand";
import { GetBucketLocationCommandInput, GetBucketLocationCommandOutput } from "./commands/GetBucketLocationCommand";
import { GetBucketLoggingCommandInput, GetBucketLoggingCommandOutput } from "./commands/GetBucketLoggingCommand";
import { GetBucketMetadataConfigurationCommandInput, GetBucketMetadataConfigurationCommandOutput } from "./commands/GetBucketMetadataConfigurationCommand";
import { GetBucketMetadataTableConfigurationCommandInput, GetBucketMetadataTableConfigurationCommandOutput } from "./commands/GetBucketMetadataTableConfigurationCommand";
import { GetBucketMetricsConfigurationCommandInput, GetBucketMetricsConfigurationCommandOutput } from "./commands/GetBucketMetricsConfigurationCommand";
import { GetBucketNotificationConfigurationCommandInput, GetBucketNotificationConfigurationCommandOutput } from "./commands/GetBucketNotificationConfigurationCommand";
@@ -95,6 +98,8 @@ import { PutPublicAccessBlockCommandInput, PutPublicAccessBlockCommandOutput } f
import { RenameObjectCommandInput, RenameObjectCommandOutput } from "./commands/RenameObjectCommand";
import { RestoreObjectCommandInput, RestoreObjectCommandOutput } from "./commands/RestoreObjectCommand";
import { SelectObjectContentCommandInput, SelectObjectContentCommandOutput } from "./commands/SelectObjectContentCommand";
import { UpdateBucketMetadataInventoryTableConfigurationCommandInput, UpdateBucketMetadataInventoryTableConfigurationCommandOutput } from "./commands/UpdateBucketMetadataInventoryTableConfigurationCommand";
import { UpdateBucketMetadataJournalTableConfigurationCommandInput, UpdateBucketMetadataJournalTableConfigurationCommandOutput } from "./commands/UpdateBucketMetadataJournalTableConfigurationCommand";
import { UploadPartCommandInput, UploadPartCommandOutput } from "./commands/UploadPartCommand";
import { UploadPartCopyCommandInput, UploadPartCopyCommandOutput } from "./commands/UploadPartCopyCommand";
import { WriteGetObjectResponseCommandInput, WriteGetObjectResponseCommandOutput } from "./commands/WriteGetObjectResponseCommand";
@@ -124,6 +129,12 @@ export interface S3 {
createBucket(args: CreateBucketCommandInput, options?: __HttpHandlerOptions): Promise<CreateBucketCommandOutput>;
createBucket(args: CreateBucketCommandInput, cb: (err: any, data?: CreateBucketCommandOutput) => void): void;
createBucket(args: CreateBucketCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBucketCommandOutput) => void): void;
/**
* @see {@link CreateBucketMetadataConfigurationCommand}
*/
createBucketMetadataConfiguration(args: CreateBucketMetadataConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateBucketMetadataConfigurationCommandOutput>;
createBucketMetadataConfiguration(args: CreateBucketMetadataConfigurationCommandInput, cb: (err: any, data?: CreateBucketMetadataConfigurationCommandOutput) => void): void;
createBucketMetadataConfiguration(args: CreateBucketMetadataConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBucketMetadataConfigurationCommandOutput) => void): void;
/**
* @see {@link CreateBucketMetadataTableConfigurationCommand}
*/
@@ -184,6 +195,12 @@ export interface S3 {
deleteBucketLifecycle(args: DeleteBucketLifecycleCommandInput, options?: __HttpHandlerOptions): Promise<DeleteBucketLifecycleCommandOutput>;
deleteBucketLifecycle(args: DeleteBucketLifecycleCommandInput, cb: (err: any, data?: DeleteBucketLifecycleCommandOutput) => void): void;
deleteBucketLifecycle(args: DeleteBucketLifecycleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBucketLifecycleCommandOutput) => void): void;
/**
* @see {@link DeleteBucketMetadataConfigurationCommand}
*/
deleteBucketMetadataConfiguration(args: DeleteBucketMetadataConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteBucketMetadataConfigurationCommandOutput>;
deleteBucketMetadataConfiguration(args: DeleteBucketMetadataConfigurationCommandInput, cb: (err: any, data?: DeleteBucketMetadataConfigurationCommandOutput) => void): void;
deleteBucketMetadataConfiguration(args: DeleteBucketMetadataConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBucketMetadataConfigurationCommandOutput) => void): void;
/**
* @see {@link DeleteBucketMetadataTableConfigurationCommand}
*/
@@ -310,6 +327,12 @@ export interface S3 {
getBucketLogging(args: GetBucketLoggingCommandInput, options?: __HttpHandlerOptions): Promise<GetBucketLoggingCommandOutput>;
getBucketLogging(args: GetBucketLoggingCommandInput, cb: (err: any, data?: GetBucketLoggingCommandOutput) => void): void;
getBucketLogging(args: GetBucketLoggingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBucketLoggingCommandOutput) => void): void;
/**
* @see {@link GetBucketMetadataConfigurationCommand}
*/
getBucketMetadataConfiguration(args: GetBucketMetadataConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetBucketMetadataConfigurationCommandOutput>;
getBucketMetadataConfiguration(args: GetBucketMetadataConfigurationCommandInput, cb: (err: any, data?: GetBucketMetadataConfigurationCommandOutput) => void): void;
getBucketMetadataConfiguration(args: GetBucketMetadataConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBucketMetadataConfigurationCommandOutput) => void): void;
/**
* @see {@link GetBucketMetadataTableConfigurationCommand}
*/
@@ -678,6 +701,18 @@ export interface S3 {
selectObjectContent(args: SelectObjectContentCommandInput, options?: __HttpHandlerOptions): Promise<SelectObjectContentCommandOutput>;
selectObjectContent(args: SelectObjectContentCommandInput, cb: (err: any, data?: SelectObjectContentCommandOutput) => void): void;
selectObjectContent(args: SelectObjectContentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SelectObjectContentCommandOutput) => void): void;
/**
* @see {@link UpdateBucketMetadataInventoryTableConfigurationCommand}
*/
updateBucketMetadataInventoryTableConfiguration(args: UpdateBucketMetadataInventoryTableConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBucketMetadataInventoryTableConfigurationCommandOutput>;
updateBucketMetadataInventoryTableConfiguration(args: UpdateBucketMetadataInventoryTableConfigurationCommandInput, cb: (err: any, data?: UpdateBucketMetadataInventoryTableConfigurationCommandOutput) => void): void;
updateBucketMetadataInventoryTableConfiguration(args: UpdateBucketMetadataInventoryTableConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBucketMetadataInventoryTableConfigurationCommandOutput) => void): void;
/**
* @see {@link UpdateBucketMetadataJournalTableConfigurationCommand}
*/
updateBucketMetadataJournalTableConfiguration(args: UpdateBucketMetadataJournalTableConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBucketMetadataJournalTableConfigurationCommandOutput>;
updateBucketMetadataJournalTableConfiguration(args: UpdateBucketMetadataJournalTableConfigurationCommandInput, cb: (err: any, data?: UpdateBucketMetadataJournalTableConfigurationCommandOutput) => void): void;
updateBucketMetadataJournalTableConfiguration(args: UpdateBucketMetadataJournalTableConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBucketMetadataJournalTableConfigurationCommandOutput) => void): void;
/**
* @see {@link UploadPartCommand}
*/
@@ -16,6 +16,7 @@ import { AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput } f
import { CompleteMultipartUploadCommandInput, CompleteMultipartUploadCommandOutput } from "./commands/CompleteMultipartUploadCommand";
import { CopyObjectCommandInput, CopyObjectCommandOutput } from "./commands/CopyObjectCommand";
import { CreateBucketCommandInput, CreateBucketCommandOutput } from "./commands/CreateBucketCommand";
import { CreateBucketMetadataConfigurationCommandInput, CreateBucketMetadataConfigurationCommandOutput } from "./commands/CreateBucketMetadataConfigurationCommand";
import { CreateBucketMetadataTableConfigurationCommandInput, CreateBucketMetadataTableConfigurationCommandOutput } from "./commands/CreateBucketMetadataTableConfigurationCommand";
import { CreateMultipartUploadCommandInput, CreateMultipartUploadCommandOutput } from "./commands/CreateMultipartUploadCommand";
import { CreateSessionCommandInput, CreateSessionCommandOutput } from "./commands/CreateSessionCommand";
@@ -26,6 +27,7 @@ import { DeleteBucketEncryptionCommandInput, DeleteBucketEncryptionCommandOutput
import { DeleteBucketIntelligentTieringConfigurationCommandInput, DeleteBucketIntelligentTieringConfigurationCommandOutput } from "./commands/DeleteBucketIntelligentTieringConfigurationCommand";
import { DeleteBucketInventoryConfigurationCommandInput, DeleteBucketInventoryConfigurationCommandOutput } from "./commands/DeleteBucketInventoryConfigurationCommand";
import { DeleteBucketLifecycleCommandInput, DeleteBucketLifecycleCommandOutput } from "./commands/DeleteBucketLifecycleCommand";
import { DeleteBucketMetadataConfigurationCommandInput, DeleteBucketMetadataConfigurationCommandOutput } from "./commands/DeleteBucketMetadataConfigurationCommand";
import { DeleteBucketMetadataTableConfigurationCommandInput, DeleteBucketMetadataTableConfigurationCommandOutput } from "./commands/DeleteBucketMetadataTableConfigurationCommand";
import { DeleteBucketMetricsConfigurationCommandInput, DeleteBucketMetricsConfigurationCommandOutput } from "./commands/DeleteBucketMetricsConfigurationCommand";
import { DeleteBucketOwnershipControlsCommandInput, DeleteBucketOwnershipControlsCommandOutput } from "./commands/DeleteBucketOwnershipControlsCommand";
@@ -47,6 +49,7 @@ import { GetBucketInventoryConfigurationCommandInput, GetBucketInventoryConfigur
import { GetBucketLifecycleConfigurationCommandInput, GetBucketLifecycleConfigurationCommandOutput } from "./commands/GetBucketLifecycleConfigurationCommand";
import { GetBucketLocationCommandInput, GetBucketLocationCommandOutput } from "./commands/GetBucketLocationCommand";
import { GetBucketLoggingCommandInput, GetBucketLoggingCommandOutput } from "./commands/GetBucketLoggingCommand";
import { GetBucketMetadataConfigurationCommandInput, GetBucketMetadataConfigurationCommandOutput } from "./commands/GetBucketMetadataConfigurationCommand";
import { GetBucketMetadataTableConfigurationCommandInput, GetBucketMetadataTableConfigurationCommandOutput } from "./commands/GetBucketMetadataTableConfigurationCommand";
import { GetBucketMetricsConfigurationCommandInput, GetBucketMetricsConfigurationCommandOutput } from "./commands/GetBucketMetricsConfigurationCommand";
import { GetBucketNotificationConfigurationCommandInput, GetBucketNotificationConfigurationCommandOutput } from "./commands/GetBucketNotificationConfigurationCommand";
@@ -108,6 +111,8 @@ import { PutPublicAccessBlockCommandInput, PutPublicAccessBlockCommandOutput } f
import { RenameObjectCommandInput, RenameObjectCommandOutput } from "./commands/RenameObjectCommand";
import { RestoreObjectCommandInput, RestoreObjectCommandOutput } from "./commands/RestoreObjectCommand";
import { SelectObjectContentCommandInput, SelectObjectContentCommandOutput } from "./commands/SelectObjectContentCommand";
import { UpdateBucketMetadataInventoryTableConfigurationCommandInput, UpdateBucketMetadataInventoryTableConfigurationCommandOutput } from "./commands/UpdateBucketMetadataInventoryTableConfigurationCommand";
import { UpdateBucketMetadataJournalTableConfigurationCommandInput, UpdateBucketMetadataJournalTableConfigurationCommandOutput } from "./commands/UpdateBucketMetadataJournalTableConfigurationCommand";
import { UploadPartCommandInput, UploadPartCommandOutput } from "./commands/UploadPartCommand";
import { UploadPartCopyCommandInput, UploadPartCopyCommandOutput } from "./commands/UploadPartCopyCommand";
import { WriteGetObjectResponseCommandInput, WriteGetObjectResponseCommandOutput } from "./commands/WriteGetObjectResponseCommand";
@@ -117,11 +122,11 @@ export { __Client };
/**
* @public
*/
export type ServiceInputTypes = AbortMultipartUploadCommandInput | CompleteMultipartUploadCommandInput | CopyObjectCommandInput | CreateBucketCommandInput | CreateBucketMetadataTableConfigurationCommandInput | CreateMultipartUploadCommandInput | CreateSessionCommandInput | DeleteBucketAnalyticsConfigurationCommandInput | DeleteBucketCommandInput | DeleteBucketCorsCommandInput | DeleteBucketEncryptionCommandInput | DeleteBucketIntelligentTieringConfigurationCommandInput | DeleteBucketInventoryConfigurationCommandInput | DeleteBucketLifecycleCommandInput | DeleteBucketMetadataTableConfigurationCommandInput | DeleteBucketMetricsConfigurationCommandInput | DeleteBucketOwnershipControlsCommandInput | DeleteBucketPolicyCommandInput | DeleteBucketReplicationCommandInput | DeleteBucketTaggingCommandInput | DeleteBucketWebsiteCommandInput | DeleteObjectCommandInput | DeleteObjectTaggingCommandInput | DeleteObjectsCommandInput | DeletePublicAccessBlockCommandInput | GetBucketAccelerateConfigurationCommandInput | GetBucketAclCommandInput | GetBucketAnalyticsConfigurationCommandInput | GetBucketCorsCommandInput | GetBucketEncryptionCommandInput | GetBucketIntelligentTieringConfigurationCommandInput | GetBucketInventoryConfigurationCommandInput | GetBucketLifecycleConfigurationCommandInput | GetBucketLocationCommandInput | GetBucketLoggingCommandInput | GetBucketMetadataTableConfigurationCommandInput | GetBucketMetricsConfigurationCommandInput | GetBucketNotificationConfigurationCommandInput | GetBucketOwnershipControlsCommandInput | GetBucketPolicyCommandInput | GetBucketPolicyStatusCommandInput | GetBucketReplicationCommandInput | GetBucketRequestPaymentCommandInput | GetBucketTaggingCommandInput | GetBucketVersioningCommandInput | GetBucketWebsiteCommandInput | GetObjectAclCommandInput | GetObjectAttributesCommandInput | GetObjectCommandInput | GetObjectLegalHoldCommandInput | GetObjectLockConfigurationCommandInput | GetObjectRetentionCommandInput | GetObjectTaggingCommandInput | GetObjectTorrentCommandInput | GetPublicAccessBlockCommandInput | HeadBucketCommandInput | HeadObjectCommandInput | ListBucketAnalyticsConfigurationsCommandInput | ListBucketIntelligentTieringConfigurationsCommandInput | ListBucketInventoryConfigurationsCommandInput | ListBucketMetricsConfigurationsCommandInput | ListBucketsCommandInput | ListDirectoryBucketsCommandInput | ListMultipartUploadsCommandInput | ListObjectVersionsCommandInput | ListObjectsCommandInput | ListObjectsV2CommandInput | ListPartsCommandInput | PutBucketAccelerateConfigurationCommandInput | PutBucketAclCommandInput | PutBucketAnalyticsConfigurationCommandInput | PutBucketCorsCommandInput | PutBucketEncryptionCommandInput | PutBucketIntelligentTieringConfigurationCommandInput | PutBucketInventoryConfigurationCommandInput | PutBucketLifecycleConfigurationCommandInput | PutBucketLoggingCommandInput | PutBucketMetricsConfigurationCommandInput | PutBucketNotificationConfigurationCommandInput | PutBucketOwnershipControlsCommandInput | PutBucketPolicyCommandInput | PutBucketReplicationCommandInput | PutBucketRequestPaymentCommandInput | PutBucketTaggingCommandInput | PutBucketVersioningCommandInput | PutBucketWebsiteCommandInput | PutObjectAclCommandInput | PutObjectCommandInput | PutObjectLegalHoldCommandInput | PutObjectLockConfigurationCommandInput | PutObjectRetentionCommandInput | PutObjectTaggingCommandInput | PutPublicAccessBlockCommandInput | RenameObjectCommandInput | RestoreObjectCommandInput | SelectObjectContentCommandInput | UploadPartCommandInput | UploadPartCopyCommandInput | WriteGetObjectResponseCommandInput;
export type ServiceInputTypes = AbortMultipartUploadCommandInput | CompleteMultipartUploadCommandInput | CopyObjectCommandInput | CreateBucketCommandInput | CreateBucketMetadataConfigurationCommandInput | CreateBucketMetadataTableConfigurationCommandInput | CreateMultipartUploadCommandInput | CreateSessionCommandInput | DeleteBucketAnalyticsConfigurationCommandInput | DeleteBucketCommandInput | DeleteBucketCorsCommandInput | DeleteBucketEncryptionCommandInput | DeleteBucketIntelligentTieringConfigurationCommandInput | DeleteBucketInventoryConfigurationCommandInput | DeleteBucketLifecycleCommandInput | DeleteBucketMetadataConfigurationCommandInput | DeleteBucketMetadataTableConfigurationCommandInput | DeleteBucketMetricsConfigurationCommandInput | DeleteBucketOwnershipControlsCommandInput | DeleteBucketPolicyCommandInput | DeleteBucketReplicationCommandInput | DeleteBucketTaggingCommandInput | DeleteBucketWebsiteCommandInput | DeleteObjectCommandInput | DeleteObjectTaggingCommandInput | DeleteObjectsCommandInput | DeletePublicAccessBlockCommandInput | GetBucketAccelerateConfigurationCommandInput | GetBucketAclCommandInput | GetBucketAnalyticsConfigurationCommandInput | GetBucketCorsCommandInput | GetBucketEncryptionCommandInput | GetBucketIntelligentTieringConfigurationCommandInput | GetBucketInventoryConfigurationCommandInput | GetBucketLifecycleConfigurationCommandInput | GetBucketLocationCommandInput | GetBucketLoggingCommandInput | GetBucketMetadataConfigurationCommandInput | GetBucketMetadataTableConfigurationCommandInput | GetBucketMetricsConfigurationCommandInput | GetBucketNotificationConfigurationCommandInput | GetBucketOwnershipControlsCommandInput | GetBucketPolicyCommandInput | GetBucketPolicyStatusCommandInput | GetBucketReplicationCommandInput | GetBucketRequestPaymentCommandInput | GetBucketTaggingCommandInput | GetBucketVersioningCommandInput | GetBucketWebsiteCommandInput | GetObjectAclCommandInput | GetObjectAttributesCommandInput | GetObjectCommandInput | GetObjectLegalHoldCommandInput | GetObjectLockConfigurationCommandInput | GetObjectRetentionCommandInput | GetObjectTaggingCommandInput | GetObjectTorrentCommandInput | GetPublicAccessBlockCommandInput | HeadBucketCommandInput | HeadObjectCommandInput | ListBucketAnalyticsConfigurationsCommandInput | ListBucketIntelligentTieringConfigurationsCommandInput | ListBucketInventoryConfigurationsCommandInput | ListBucketMetricsConfigurationsCommandInput | ListBucketsCommandInput | ListDirectoryBucketsCommandInput | ListMultipartUploadsCommandInput | ListObjectVersionsCommandInput | ListObjectsCommandInput | ListObjectsV2CommandInput | ListPartsCommandInput | PutBucketAccelerateConfigurationCommandInput | PutBucketAclCommandInput | PutBucketAnalyticsConfigurationCommandInput | PutBucketCorsCommandInput | PutBucketEncryptionCommandInput | PutBucketIntelligentTieringConfigurationCommandInput | PutBucketInventoryConfigurationCommandInput | PutBucketLifecycleConfigurationCommandInput | PutBucketLoggingCommandInput | PutBucketMetricsConfigurationCommandInput | PutBucketNotificationConfigurationCommandInput | PutBucketOwnershipControlsCommandInput | PutBucketPolicyCommandInput | PutBucketReplicationCommandInput | PutBucketRequestPaymentCommandInput | PutBucketTaggingCommandInput | PutBucketVersioningCommandInput | PutBucketWebsiteCommandInput | PutObjectAclCommandInput | PutObjectCommandInput | PutObjectLegalHoldCommandInput | PutObjectLockConfigurationCommandInput | PutObjectRetentionCommandInput | PutObjectTaggingCommandInput | PutPublicAccessBlockCommandInput | RenameObjectCommandInput | RestoreObjectCommandInput | SelectObjectContentCommandInput | UpdateBucketMetadataInventoryTableConfigurationCommandInput | UpdateBucketMetadataJournalTableConfigurationCommandInput | UploadPartCommandInput | UploadPartCopyCommandInput | WriteGetObjectResponseCommandInput;
/**
* @public
*/
export type ServiceOutputTypes = AbortMultipartUploadCommandOutput | CompleteMultipartUploadCommandOutput | CopyObjectCommandOutput | CreateBucketCommandOutput | CreateBucketMetadataTableConfigurationCommandOutput | CreateMultipartUploadCommandOutput | CreateSessionCommandOutput | DeleteBucketAnalyticsConfigurationCommandOutput | DeleteBucketCommandOutput | DeleteBucketCorsCommandOutput | DeleteBucketEncryptionCommandOutput | DeleteBucketIntelligentTieringConfigurationCommandOutput | DeleteBucketInventoryConfigurationCommandOutput | DeleteBucketLifecycleCommandOutput | DeleteBucketMetadataTableConfigurationCommandOutput | DeleteBucketMetricsConfigurationCommandOutput | DeleteBucketOwnershipControlsCommandOutput | DeleteBucketPolicyCommandOutput | DeleteBucketReplicationCommandOutput | DeleteBucketTaggingCommandOutput | DeleteBucketWebsiteCommandOutput | DeleteObjectCommandOutput | DeleteObjectTaggingCommandOutput | DeleteObjectsCommandOutput | DeletePublicAccessBlockCommandOutput | GetBucketAccelerateConfigurationCommandOutput | GetBucketAclCommandOutput | GetBucketAnalyticsConfigurationCommandOutput | GetBucketCorsCommandOutput | GetBucketEncryptionCommandOutput | GetBucketIntelligentTieringConfigurationCommandOutput | GetBucketInventoryConfigurationCommandOutput | GetBucketLifecycleConfigurationCommandOutput | GetBucketLocationCommandOutput | GetBucketLoggingCommandOutput | GetBucketMetadataTableConfigurationCommandOutput | GetBucketMetricsConfigurationCommandOutput | GetBucketNotificationConfigurationCommandOutput | GetBucketOwnershipControlsCommandOutput | GetBucketPolicyCommandOutput | GetBucketPolicyStatusCommandOutput | GetBucketReplicationCommandOutput | GetBucketRequestPaymentCommandOutput | GetBucketTaggingCommandOutput | GetBucketVersioningCommandOutput | GetBucketWebsiteCommandOutput | GetObjectAclCommandOutput | GetObjectAttributesCommandOutput | GetObjectCommandOutput | GetObjectLegalHoldCommandOutput | GetObjectLockConfigurationCommandOutput | GetObjectRetentionCommandOutput | GetObjectTaggingCommandOutput | GetObjectTorrentCommandOutput | GetPublicAccessBlockCommandOutput | HeadBucketCommandOutput | HeadObjectCommandOutput | ListBucketAnalyticsConfigurationsCommandOutput | ListBucketIntelligentTieringConfigurationsCommandOutput | ListBucketInventoryConfigurationsCommandOutput | ListBucketMetricsConfigurationsCommandOutput | ListBucketsCommandOutput | ListDirectoryBucketsCommandOutput | ListMultipartUploadsCommandOutput | ListObjectVersionsCommandOutput | ListObjectsCommandOutput | ListObjectsV2CommandOutput | ListPartsCommandOutput | PutBucketAccelerateConfigurationCommandOutput | PutBucketAclCommandOutput | PutBucketAnalyticsConfigurationCommandOutput | PutBucketCorsCommandOutput | PutBucketEncryptionCommandOutput | PutBucketIntelligentTieringConfigurationCommandOutput | PutBucketInventoryConfigurationCommandOutput | PutBucketLifecycleConfigurationCommandOutput | PutBucketLoggingCommandOutput | PutBucketMetricsConfigurationCommandOutput | PutBucketNotificationConfigurationCommandOutput | PutBucketOwnershipControlsCommandOutput | PutBucketPolicyCommandOutput | PutBucketReplicationCommandOutput | PutBucketRequestPaymentCommandOutput | PutBucketTaggingCommandOutput | PutBucketVersioningCommandOutput | PutBucketWebsiteCommandOutput | PutObjectAclCommandOutput | PutObjectCommandOutput | PutObjectLegalHoldCommandOutput | PutObjectLockConfigurationCommandOutput | PutObjectRetentionCommandOutput | PutObjectTaggingCommandOutput | PutPublicAccessBlockCommandOutput | RenameObjectCommandOutput | RestoreObjectCommandOutput | SelectObjectContentCommandOutput | UploadPartCommandOutput | UploadPartCopyCommandOutput | WriteGetObjectResponseCommandOutput;
export type ServiceOutputTypes = AbortMultipartUploadCommandOutput | CompleteMultipartUploadCommandOutput | CopyObjectCommandOutput | CreateBucketCommandOutput | CreateBucketMetadataConfigurationCommandOutput | CreateBucketMetadataTableConfigurationCommandOutput | CreateMultipartUploadCommandOutput | CreateSessionCommandOutput | DeleteBucketAnalyticsConfigurationCommandOutput | DeleteBucketCommandOutput | DeleteBucketCorsCommandOutput | DeleteBucketEncryptionCommandOutput | DeleteBucketIntelligentTieringConfigurationCommandOutput | DeleteBucketInventoryConfigurationCommandOutput | DeleteBucketLifecycleCommandOutput | DeleteBucketMetadataConfigurationCommandOutput | DeleteBucketMetadataTableConfigurationCommandOutput | DeleteBucketMetricsConfigurationCommandOutput | DeleteBucketOwnershipControlsCommandOutput | DeleteBucketPolicyCommandOutput | DeleteBucketReplicationCommandOutput | DeleteBucketTaggingCommandOutput | DeleteBucketWebsiteCommandOutput | DeleteObjectCommandOutput | DeleteObjectTaggingCommandOutput | DeleteObjectsCommandOutput | DeletePublicAccessBlockCommandOutput | GetBucketAccelerateConfigurationCommandOutput | GetBucketAclCommandOutput | GetBucketAnalyticsConfigurationCommandOutput | GetBucketCorsCommandOutput | GetBucketEncryptionCommandOutput | GetBucketIntelligentTieringConfigurationCommandOutput | GetBucketInventoryConfigurationCommandOutput | GetBucketLifecycleConfigurationCommandOutput | GetBucketLocationCommandOutput | GetBucketLoggingCommandOutput | GetBucketMetadataConfigurationCommandOutput | GetBucketMetadataTableConfigurationCommandOutput | GetBucketMetricsConfigurationCommandOutput | GetBucketNotificationConfigurationCommandOutput | GetBucketOwnershipControlsCommandOutput | GetBucketPolicyCommandOutput | GetBucketPolicyStatusCommandOutput | GetBucketReplicationCommandOutput | GetBucketRequestPaymentCommandOutput | GetBucketTaggingCommandOutput | GetBucketVersioningCommandOutput | GetBucketWebsiteCommandOutput | GetObjectAclCommandOutput | GetObjectAttributesCommandOutput | GetObjectCommandOutput | GetObjectLegalHoldCommandOutput | GetObjectLockConfigurationCommandOutput | GetObjectRetentionCommandOutput | GetObjectTaggingCommandOutput | GetObjectTorrentCommandOutput | GetPublicAccessBlockCommandOutput | HeadBucketCommandOutput | HeadObjectCommandOutput | ListBucketAnalyticsConfigurationsCommandOutput | ListBucketIntelligentTieringConfigurationsCommandOutput | ListBucketInventoryConfigurationsCommandOutput | ListBucketMetricsConfigurationsCommandOutput | ListBucketsCommandOutput | ListDirectoryBucketsCommandOutput | ListMultipartUploadsCommandOutput | ListObjectVersionsCommandOutput | ListObjectsCommandOutput | ListObjectsV2CommandOutput | ListPartsCommandOutput | PutBucketAccelerateConfigurationCommandOutput | PutBucketAclCommandOutput | PutBucketAnalyticsConfigurationCommandOutput | PutBucketCorsCommandOutput | PutBucketEncryptionCommandOutput | PutBucketIntelligentTieringConfigurationCommandOutput | PutBucketInventoryConfigurationCommandOutput | PutBucketLifecycleConfigurationCommandOutput | PutBucketLoggingCommandOutput | PutBucketMetricsConfigurationCommandOutput | PutBucketNotificationConfigurationCommandOutput | PutBucketOwnershipControlsCommandOutput | PutBucketPolicyCommandOutput | PutBucketReplicationCommandOutput | PutBucketRequestPaymentCommandOutput | PutBucketTaggingCommandOutput | PutBucketVersioningCommandOutput | PutBucketWebsiteCommandOutput | PutObjectAclCommandOutput | PutObjectCommandOutput | PutObjectLegalHoldCommandOutput | PutObjectLockConfigurationCommandOutput | PutObjectRetentionCommandOutput | PutObjectTaggingCommandOutput | PutPublicAccessBlockCommandOutput | RenameObjectCommandOutput | RestoreObjectCommandOutput | SelectObjectContentCommandOutput | UpdateBucketMetadataInventoryTableConfigurationCommandOutput | UpdateBucketMetadataJournalTableConfigurationCommandOutput | UploadPartCommandOutput | UploadPartCopyCommandOutput | WriteGetObjectResponseCommandOutput;
/**
* @public
*/
@@ -27,31 +27,27 @@ declare const AbortMultipartUploadCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>This operation aborts a multipart upload. After a multipart upload is aborted, no
* additional parts can be uploaded using that upload ID. The storage consumed by any
* previously uploaded parts will be freed. However, if any part uploads are currently in
* progress, those part uploads might or might not succeed. As a result, it might be necessary
* to abort a given multipart upload multiple times in order to completely free all storage
* consumed by all parts. </p>
* <p>To verify that all parts have been removed and prevent getting charged for the part
* storage, you should call the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a> API operation and ensure
* that the parts list is empty.</p>
* <p>This operation aborts a multipart upload. After a multipart upload is aborted, no additional parts
* can be uploaded using that upload ID. The storage consumed by any previously uploaded parts will be
* freed. However, if any part uploads are currently in progress, those part uploads might or might not
* succeed. As a result, it might be necessary to abort a given multipart upload multiple times in order to
* completely free all storage consumed by all parts. </p>
* <p>To verify that all parts have been removed and prevent getting charged for the part storage, you
* should call the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a> API operation and ensure that the parts list is empty.</p>
* <note>
* <ul>
* <li>
* <p>
* <b>Directory buckets</b> - If multipart
* uploads in a directory bucket are in progress, you can't delete the bucket until
* all the in-progress multipart uploads are aborted or completed. To delete these
* in-progress multipart uploads, use the <code>ListMultipartUploads</code> operation
* to list the in-progress multipart uploads in the bucket and use the
* <code>AbortMultipartUpload</code> operation to abort all the in-progress
* multipart uploads. </p>
* <b>Directory buckets</b> - If multipart uploads in a
* directory bucket are in progress, you can't delete the bucket until all the in-progress multipart
* uploads are aborted or completed. To delete these in-progress multipart uploads, use the
* <code>ListMultipartUploads</code> operation to list the in-progress multipart uploads in the
* bucket and use the <code>AbortMultipartUpload</code> operation to abort all the in-progress
* multipart uploads. </p>
* </li>
* <li>
* <p>
* <b>Directory buckets</b> -
* For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* <b>Directory buckets</b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
* <i>Amazon S3 User Guide</i>.</p>
@@ -64,10 +60,9 @@ declare const AbortMultipartUploadCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - For
* information about permissions required to use the multipart upload, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
* Permissions</a> in the <i>Amazon S3 User Guide</i>.</p>
* <b>General purpose bucket permissions</b> - For information
* about permissions required to use the multipart upload, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and Permissions</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* </li>
* <li>
* <p>
@@ -28,45 +28,39 @@ declare const CompleteMultipartUploadCommand_base: {
};
/**
* <p>Completes a multipart upload by assembling previously uploaded parts.</p>
* <p>You first initiate the multipart upload and then upload all parts using the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
* operation or the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a> operation.
* After successfully uploading all relevant parts of an upload, you call this
* <code>CompleteMultipartUpload</code> operation to complete the upload. Upon receiving
* this request, Amazon S3 concatenates all the parts in ascending order by part number to create a
* new object. In the CompleteMultipartUpload request, you must provide the parts list and
* ensure that the parts list is complete. The CompleteMultipartUpload API operation
* concatenates the parts that you provide in the list. For each part in the list, you must
* provide the <code>PartNumber</code> value and the <code>ETag</code> value that are returned
* after that part was uploaded.</p>
* <p>The processing of a CompleteMultipartUpload request could take several minutes to
* finalize. After Amazon S3 begins processing the request, it sends an HTTP response header that
* specifies a <code>200 OK</code> response. While processing is in progress, Amazon S3
* periodically sends white space characters to keep the connection from timing out. A request
* could fail after the initial <code>200 OK</code> response has been sent. This means that a
* <code>200 OK</code> response can contain either a success or an error. The error
* response might be embedded in the <code>200 OK</code> response. If you call this API
* operation directly, make sure to design your application to parse the contents of the
* response and handle it appropriately. If you use Amazon Web Services SDKs, SDKs handle this condition.
* The SDKs detect the embedded error and apply error handling per your configuration settings
* (including automatically retrying the request as appropriate). If the condition persists,
* the SDKs throw an exception (or, for the SDKs that don't use exceptions, they return an
* error). </p>
* <p>Note that if <code>CompleteMultipartUpload</code> fails, applications should be prepared
* to retry any failed requests (including 500 error responses). For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ErrorBestPractices.html">Amazon S3 Error
* Best Practices</a>.</p>
* <p>You first initiate the multipart upload and then upload all parts using the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a> operation or the
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>
* operation. After successfully uploading all relevant parts of an upload, you call this
* <code>CompleteMultipartUpload</code> operation to complete the upload. Upon receiving this request,
* Amazon S3 concatenates all the parts in ascending order by part number to create a new object. In the
* CompleteMultipartUpload request, you must provide the parts list and ensure that the parts list is
* complete. The CompleteMultipartUpload API operation concatenates the parts that you provide in the list.
* For each part in the list, you must provide the <code>PartNumber</code> value and the <code>ETag</code>
* value that are returned after that part was uploaded.</p>
* <p>The processing of a CompleteMultipartUpload request could take several minutes to finalize. After
* Amazon S3 begins processing the request, it sends an HTTP response header that specifies a <code>200
* OK</code> response. While processing is in progress, Amazon S3 periodically sends white space characters to
* keep the connection from timing out. A request could fail after the initial <code>200 OK</code> response
* has been sent. This means that a <code>200 OK</code> response can contain either a success or an error.
* The error response might be embedded in the <code>200 OK</code> response. If you call this API operation
* directly, make sure to design your application to parse the contents of the response and handle it
* appropriately. If you use Amazon Web Services SDKs, SDKs handle this condition. The SDKs detect the embedded error and
* apply error handling per your configuration settings (including automatically retrying the request as
* appropriate). If the condition persists, the SDKs throw an exception (or, for the SDKs that don't use
* exceptions, they return an error). </p>
* <p>Note that if <code>CompleteMultipartUpload</code> fails, applications should be prepared to retry
* any failed requests (including 500 error responses). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ErrorBestPractices.html">Amazon S3 Error Best
* Practices</a>.</p>
* <important>
* <p>You can't use <code>Content-Type: application/x-www-form-urlencoded</code> for the
* CompleteMultipartUpload requests. Also, if you don't provide a <code>Content-Type</code>
* header, <code>CompleteMultipartUpload</code> can still return a <code>200 OK</code>
* response.</p>
* CompleteMultipartUpload requests. Also, if you don't provide a <code>Content-Type</code> header,
* <code>CompleteMultipartUpload</code> can still return a <code>200 OK</code> response.</p>
* </important>
* <p>For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading Objects Using Multipart
* Upload</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading Objects Using Multipart Upload</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>
* <b>Directory buckets</b> -
* For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* <b>Directory buckets</b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
* <i>Amazon S3 User Guide</i>.</p>
@@ -77,15 +71,13 @@ declare const CompleteMultipartUploadCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - For
* information about permissions required to use the multipart upload API, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
* Permissions</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>If you provide an <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html">additional checksum
* value</a> in your <code>MultipartUpload</code> requests and the
* object is encrypted with Key Management Service, you must have permission to use the
* <code>kms:Decrypt</code> action for the
* <code>CompleteMultipartUpload</code> request to succeed.</p>
* <b>General purpose bucket permissions</b> - For information
* about permissions required to use the multipart upload API, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and Permissions</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* <p>If you provide an <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html">additional checksum value</a> in your <code>MultipartUpload</code> requests and the
* object is encrypted with Key Management Service, you must have permission to use the
* <code>kms:Decrypt</code> action for the <code>CompleteMultipartUpload</code> request to
* succeed.</p>
* </li>
* <li>
* <p>
@@ -96,9 +88,8 @@ declare const CompleteMultipartUploadCommand_base: {
* <code>CreateSession</code>
* </a>.</p>
* <p>If the object is encrypted with SSE-KMS, you must also have the
* <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions
* in IAM identity-based policies and KMS key policies for the KMS
* key.</p>
* <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions in IAM
* identity-based policies and KMS key policies for the KMS key.</p>
* </li>
* </ul>
* </dd>
@@ -110,9 +101,8 @@ declare const CompleteMultipartUploadCommand_base: {
* </p>
* <ul>
* <li>
* <p>Description: Your proposed upload is smaller than the minimum
* allowed object size. Each part must be at least 5 MB in size, except
* the last part.</p>
* <p>Description: Your proposed upload is smaller than the minimum allowed object size.
* Each part must be at least 5 MB in size, except the last part.</p>
* </li>
* <li>
* <p>HTTP Status Code: 400 Bad Request</p>
@@ -124,9 +114,9 @@ declare const CompleteMultipartUploadCommand_base: {
* </p>
* <ul>
* <li>
* <p>Description: One or more of the specified parts could not be found.
* The part might not have been uploaded, or the specified ETag might not
* have matched the uploaded part's ETag.</p>
* <p>Description: One or more of the specified parts could not be found. The part might not
* have been uploaded, or the specified ETag might not have matched the uploaded part's
* ETag.</p>
* </li>
* <li>
* <p>HTTP Status Code: 400 Bad Request</p>
@@ -138,8 +128,8 @@ declare const CompleteMultipartUploadCommand_base: {
* </p>
* <ul>
* <li>
* <p>Description: The list of parts was not in ascending order. The
* parts list must be specified in order by part number.</p>
* <p>Description: The list of parts was not in ascending order. The parts list must be
* specified in order by part number.</p>
* </li>
* <li>
* <p>HTTP Status Code: 400 Bad Request</p>
@@ -151,9 +141,8 @@ declare const CompleteMultipartUploadCommand_base: {
* </p>
* <ul>
* <li>
* <p>Description: The specified multipart upload does not exist. The
* upload ID might be invalid, or the multipart upload might have been
* aborted or completed.</p>
* <p>Description: The specified multipart upload does not exist. The upload ID might be
* invalid, or the multipart upload might have been aborted or completed.</p>
* </li>
* <li>
* <p>HTTP Status Code: 404 Not Found</p>
@@ -37,165 +37,152 @@ declare const CopyObjectCommand_base: {
* </important>
* <p>Creates a copy of an object that is already stored in Amazon S3.</p>
* <note>
* <p>You can store individual objects of up to 5 TB in Amazon S3. You create a copy of your
* object up to 5 GB in size in a single atomic action using this API. However, to copy an
* object greater than 5 GB, you must use the multipart upload Upload Part - Copy
* (UploadPartCopy) API. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjctsUsingRESTMPUapi.html">Copy Object Using the
* REST Multipart Upload API</a>.</p>
* <p>You can store individual objects of up to 5 TB in Amazon S3. You create a copy of your object up to 5
* GB in size in a single atomic action using this API. However, to copy an object greater than 5 GB, you
* must use the multipart upload Upload Part - Copy (UploadPartCopy) API. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjctsUsingRESTMPUapi.html">Copy Object
* Using the REST Multipart Upload API</a>.</p>
* </note>
* <p>You can copy individual objects between general purpose buckets, between directory buckets,
* and between general purpose buckets and directory buckets.</p>
* <p>You can copy individual objects between general purpose buckets, between directory buckets, and between
* general purpose buckets and directory buckets.</p>
* <note>
* <ul>
* <li>
* <p>Amazon S3 supports copy operations using Multi-Region Access Points only as a
* destination when using the Multi-Region Access Point ARN. </p>
* <p>Amazon S3 supports copy operations using Multi-Region Access Points only as a destination when
* using the Multi-Region Access Point ARN. </p>
* </li>
* <li>
* <p>
* <b>Directory buckets </b> -
* For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* <b>Directory buckets </b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* </li>
* <li>
* <p>VPC endpoints don't support cross-Region requests (including copies). If you're
* using VPC endpoints, your source and destination buckets should be in the same
* Amazon Web Services Region as your VPC endpoint.</p>
* <p>VPC endpoints don't support cross-Region requests (including copies). If you're using VPC
* endpoints, your source and destination buckets should be in the same Amazon Web Services Region as your VPC
* endpoint.</p>
* </li>
* </ul>
* </note>
* <p>Both the Region that you want to copy the object from and the Region that you want to
* copy the object to must be enabled for your account. For more information about how to
* enable a Region for your account, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-regions.html#manage-acct-regions-enable-standalone">Enable or disable a Region for standalone accounts</a> in the <i>Amazon Web Services
* Account Management Guide</i>.</p>
* <p>Both the Region that you want to copy the object from and the Region that you want to copy the
* object to must be enabled for your account. For more information about how to enable a Region for your
* account, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-regions.html#manage-acct-regions-enable-standalone">Enable
* or disable a Region for standalone accounts</a> in the <i>Amazon Web Services Account Management
* Guide</i>.</p>
* <important>
* <p>Amazon S3 transfer acceleration does not support cross-Region copies. If you request a
* cross-Region copy using a transfer acceleration endpoint, you get a <code>400 Bad
* Request</code> error. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html">Transfer
* Acceleration</a>.</p>
* <p>Amazon S3 transfer acceleration does not support cross-Region copies. If you request a cross-Region
* copy using a transfer acceleration endpoint, you get a <code>400 Bad Request</code> error. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html">Transfer Acceleration</a>.</p>
* </important>
* <dl>
* <dt>Authentication and authorization</dt>
* <dd>
* <p>All <code>CopyObject</code> requests must be authenticated and signed by using
* IAM credentials (access key ID and secret access key for the IAM identities).
* All headers with the <code>x-amz-</code> prefix, including
* <code>x-amz-copy-source</code>, must be signed. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a>.</p>
* <p>All <code>CopyObject</code> requests must be authenticated and signed by using IAM
* credentials (access key ID and secret access key for the IAM identities). All headers with the
* <code>x-amz-</code> prefix, including <code>x-amz-copy-source</code>, must be signed. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a>.</p>
* <p>
* <b>Directory buckets</b> - You must use the
* IAM credentials to authenticate and authorize your access to the
* <code>CopyObject</code> API operation, instead of using the temporary security
* credentials through the <code>CreateSession</code> API operation.</p>
* <p>Amazon Web Services CLI or SDKs handles authentication and authorization on your
* behalf.</p>
* <b>Directory buckets</b> - You must use the IAM
* credentials to authenticate and authorize your access to the <code>CopyObject</code> API
* operation, instead of using the temporary security credentials through the
* <code>CreateSession</code> API operation.</p>
* <p>Amazon Web Services CLI or SDKs handles authentication and authorization on your behalf.</p>
* </dd>
* <dt>Permissions</dt>
* <dd>
* <p>You must have <i>read</i> access to the source object and
* <i>write</i> access to the destination bucket.</p>
* <i>write</i> access to the destination bucket.</p>
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - You
* must have permissions in an IAM policy based on the source and destination
* bucket types in a <code>CopyObject</code> operation.</p>
* <b>General purpose bucket permissions</b> - You must have
* permissions in an IAM policy based on the source and destination bucket types in a
* <code>CopyObject</code> operation.</p>
* <ul>
* <li>
* <p>If the source object is in a general purpose bucket, you must have
* <b>
* <p>If the source object is in a general purpose bucket, you must have <b>
* <code>s3:GetObject</code>
* </b>
* permission to read the source object that is being copied. </p>
* </b> permission to read the source object that is
* being copied. </p>
* </li>
* <li>
* <p>If the destination bucket is a general purpose bucket, you must have
* <b>
* <p>If the destination bucket is a general purpose bucket, you must have <b>
* <code>s3:PutObject</code>
* </b>
* permission to write the object copy to the destination bucket. </p>
* </b> permission to write the object copy to the
* destination bucket. </p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <b>Directory bucket permissions</b> -
* You must have permissions in a bucket policy or an IAM identity-based policy based on the
* source and destination bucket types in a <code>CopyObject</code>
* operation.</p>
* <b>Directory bucket permissions</b> - You must have
* permissions in a bucket policy or an IAM identity-based policy based on the source and destination bucket types
* in a <code>CopyObject</code> operation.</p>
* <ul>
* <li>
* <p>If the source object that you want to copy is in a
* directory bucket, you must have the <b>
* <p>If the source object that you want to copy is in a directory bucket, you must have
* the <b>
* <code>s3express:CreateSession</code>
* </b> permission in
* the <code>Action</code> element of a policy to read the object. By
* default, the session is in the <code>ReadWrite</code> mode. If you
* want to restrict the access, you can explicitly set the
* <code>s3express:SessionMode</code> condition key to
* <code>ReadOnly</code> on the copy source bucket.</p>
* the <code>Action</code> element of a policy to read the object. By default, the session is
* in the <code>ReadWrite</code> mode. If you want to restrict the access, you can explicitly
* set the <code>s3express:SessionMode</code> condition key to <code>ReadOnly</code> on the
* copy source bucket.</p>
* </li>
* <li>
* <p>If the copy destination is a directory bucket, you must have the
* <b>
* <p>If the copy destination is a directory bucket, you must have the <b>
* <code>s3express:CreateSession</code>
* </b> permission in the
* <code>Action</code> element of a policy to write the object to the
* destination. The <code>s3express:SessionMode</code> condition key
* can't be set to <code>ReadOnly</code> on the copy destination bucket.
* </p>
* <code>Action</code> element of a policy to write the object to the destination. The
* <code>s3express:SessionMode</code> condition key can't be set to <code>ReadOnly</code>
* on the copy destination bucket. </p>
* </li>
* </ul>
* <p>If the object is encrypted with SSE-KMS, you must also have the
* <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions
* in IAM identity-based policies and KMS key policies for the KMS
* key.</p>
* <p>For example policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example 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 Identity and Access Management (IAM) identity-based policies for
* S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions in IAM
* identity-based policies and KMS key policies for the KMS key.</p>
* <p>For example policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example
* 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
* Identity and Access Management (IAM) identity-based policies for S3 Express One Zone</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* </li>
* </ul>
* </dd>
* <dt>Response and special errors</dt>
* <dd>
* <p>When the request is an HTTP 1.1 request, the response is chunk encoded. When
* the request is not an HTTP 1.1 request, the response would not contain the
* <code>Content-Length</code>. You always need to read the entire response body
* to check if the copy succeeds. </p>
* <p>When the request is an HTTP 1.1 request, the response is chunk encoded. When the request is
* not an HTTP 1.1 request, the response would not contain the <code>Content-Length</code>. You
* always need to read the entire response body to check if the copy succeeds. </p>
* <ul>
* <li>
* <p>If the copy is successful, you receive a response with information about
* the copied object.</p>
* <p>If the copy is successful, you receive a response with information about the copied
* object.</p>
* </li>
* <li>
* <p>A copy request might return an error when Amazon S3 receives the copy request
* or while Amazon S3 is copying the files. A <code>200 OK</code> response can
* contain either a success or an error.</p>
* <p>A copy request might return an error when Amazon S3 receives the copy request or while Amazon S3 is
* copying the files. A <code>200 OK</code> response can contain either a success or an
* error.</p>
* <ul>
* <li>
* <p>If the error occurs before the copy action starts, you receive a
* standard Amazon S3 error.</p>
* <p>If the error occurs before the copy action starts, you receive a standard Amazon S3
* error.</p>
* </li>
* <li>
* <p>If the error occurs during the copy operation, the error response
* is embedded in the <code>200 OK</code> response. For example, in a
* cross-region copy, you may encounter throttling and receive a
* <code>200 OK</code> response. For more information, see <a href="https://repost.aws/knowledge-center/s3-resolve-200-internalerror">Resolve the Error 200 response when copying objects to
* Amazon S3</a>. The <code>200 OK</code> status code means the copy
* was accepted, but it doesn't mean the copy is complete. Another
* example is when you disconnect from Amazon S3 before the copy is complete,
* Amazon S3 might cancel the copy and you may receive a <code>200 OK</code>
* response. You must stay connected to Amazon S3 until the entire response is
* successfully received and processed.</p>
* <p>If you call this API operation directly, make sure to design your
* application to parse the content of the response and handle it
* appropriately. If you use Amazon Web Services SDKs, SDKs handle this condition. The
* SDKs detect the embedded error and apply error handling per your
* configuration settings (including automatically retrying the request
* as appropriate). If the condition persists, the SDKs throw an
* exception (or, for the SDKs that don't use exceptions, they return an
* error).</p>
* <p>If the error occurs during the copy operation, the error response is embedded in the
* <code>200 OK</code> response. For example, in a cross-region copy, you may encounter
* throttling and receive a <code>200 OK</code> response. For more information, see <a href="https://repost.aws/knowledge-center/s3-resolve-200-internalerror">Resolve the Error
* 200 response when copying objects to Amazon S3</a>. The <code>200 OK</code> status code
* means the copy was accepted, but it doesn't mean the copy is complete. Another example is
* when you disconnect from Amazon S3 before the copy is complete, Amazon S3 might cancel the copy and
* you may receive a <code>200 OK</code> response. You must stay connected to Amazon S3 until the
* entire response is successfully received and processed.</p>
* <p>If you call this API operation directly, make sure to design your application to parse
* the content of the response and handle it appropriately. If you use Amazon Web Services SDKs, SDKs
* handle this condition. The SDKs detect the embedded error and apply error handling per
* your configuration settings (including automatically retrying the request as appropriate).
* If the condition persists, the SDKs throw an exception (or, for the SDKs that don't use
* exceptions, they return an error).</p>
* </li>
* </ul>
* </li>
@@ -203,11 +190,10 @@ declare const CopyObjectCommand_base: {
* </dd>
* <dt>Charge</dt>
* <dd>
* <p>The copy request charge is based on the storage class and Region that you
* specify for the destination object. The request can also result in a data
* retrieval charge for the source if the source storage class bills for data
* retrieval. If the copy source is in a different region, the data transfer is
* billed to the copy source account. For pricing information, see <a href="http://aws.amazon.com/s3/pricing/">Amazon S3 pricing</a>.</p>
* <p>The copy request charge is based on the storage class and Region that you specify for the
* destination object. The request can also result in a data retrieval charge for the source if the
* source storage class bills for data retrieval. If the copy source is in a different region, the
* data transfer is billed to the copy source account. For pricing information, see <a href="http://aws.amazon.com/s3/pricing/">Amazon S3 pricing</a>.</p>
* </dd>
* <dt>HTTP Host header syntax</dt>
* <dd>
@@ -219,9 +205,12 @@ declare const CopyObjectCommand_base: {
* </li>
* <li>
* <p>
* <b>Amazon S3 on Outposts</b> - When you use this action with S3 on Outposts through the REST API, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the
* form <code>
* <i>AccessPointName</i>-<i>AccountId</i>.<i>outpostID</i>.s3-outposts.<i>Region</i>.amazonaws.com</code>. The hostname isn't required when you use the Amazon Web Services CLI or SDKs.</p>
* <b>Amazon S3 on Outposts</b> - When you use this action with
* S3 on Outposts through the REST API, you must direct requests to the S3 on Outposts hostname. The
* S3 on Outposts hostname takes the form
* <code>
* <i>AccessPointName</i>-<i>AccountId</i>.<i>outpostID</i>.s3-outposts.<i>Region</i>.amazonaws.com</code>.
* The hostname isn't required when you use the Amazon Web Services CLI or SDKs.</p>
* </li>
* </ul>
* </dd>
@@ -324,8 +313,8 @@ declare const CopyObjectCommand_base: {
* @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
*
* @throws {@link ObjectNotInActiveTierError} (client fault)
* <p>The source object of the COPY action is not in the active tier and is only stored in
* Amazon S3 Glacier.</p>
* <p>The source object of the COPY action is not in the active tier and is only stored in Amazon S3
* Glacier.</p>
*
* @throws {@link S3ServiceException}
* <p>Base exception class for all service exceptions from S3 service.</p>
@@ -47,25 +47,23 @@ declare const CreateBucketCommand_base: {
* <code>CreateBucket</code>
* </a>.</p>
* </note>
* <p>Creates a new S3 bucket. To create a bucket, you must set up Amazon S3 and have a valid Amazon Web Services
* Access Key ID to authenticate requests. Anonymous requests are never allowed to create
* buckets. By creating the bucket, you become the bucket owner.</p>
* <p>There are two types of buckets: general purpose buckets and directory buckets. For more
* information about 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 buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>Creates a new S3 bucket. To create a bucket, you must set up Amazon S3 and have a valid Amazon Web Services Access Key
* ID to authenticate requests. Anonymous requests are never allowed to create buckets. By creating the
* bucket, you become the bucket owner.</p>
* <p>There are two types of buckets: general purpose buckets and directory buckets. For more information about
* 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
* buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <ul>
* <li>
* <p>
* <b>General purpose buckets</b> - If you send your
* <code>CreateBucket</code> request to the <code>s3.amazonaws.com</code> global
* endpoint, the request goes to the <code>us-east-1</code> Region. So the signature
* calculations in Signature Version 4 must use <code>us-east-1</code> as the Region,
* even if the location constraint in the request specifies another Region where the
* bucket is to be created. If you create a bucket in a Region other than US East (N.
* Virginia), your application must be able to handle 307 redirect. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html">Virtual hosting of
* buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
* <code>CreateBucket</code> request to the <code>s3.amazonaws.com</code> global endpoint, the
* request goes to the <code>us-east-1</code> Region. So the signature calculations in Signature
* Version 4 must use <code>us-east-1</code> as the Region, even if the location constraint in the
* request specifies another Region where the bucket is to be created. If you create a bucket in a
* Region other than US East (N. Virginia), your application must be able to handle 307 redirect. For
* more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html">Virtual hosting of buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
* </li>
* <li>
* <p>
@@ -83,91 +81,81 @@ declare const CreateBucketCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - In
* addition to the <code>s3:CreateBucket</code> permission, the following
* permissions are required in a policy when your <code>CreateBucket</code>
* request includes specific headers: </p>
* <b>General purpose bucket permissions</b> - In addition to the
* <code>s3:CreateBucket</code> permission, the following permissions are required in a policy
* when your <code>CreateBucket</code> request includes specific headers: </p>
* <ul>
* <li>
* <p>
* <b>Access control lists (ACLs)</b>
* - In your <code>CreateBucket</code> request, if you specify an
* access control list (ACL) and set it to <code>public-read</code>,
* <code>public-read-write</code>, <code>authenticated-read</code>, or
* if you explicitly specify any other custom ACLs, both
* <code>s3:CreateBucket</code> and <code>s3:PutBucketAcl</code>
* permissions are required. In your <code>CreateBucket</code> request,
* if you set the ACL to <code>private</code>, or if you don't specify
* any ACLs, only the <code>s3:CreateBucket</code> permission is
* required. </p>
* <b>Access control lists (ACLs)</b> - In your
* <code>CreateBucket</code> request, if you specify an access control list (ACL) and set
* it to <code>public-read</code>, <code>public-read-write</code>,
* <code>authenticated-read</code>, or if you explicitly specify any other custom ACLs,
* both <code>s3:CreateBucket</code> and <code>s3:PutBucketAcl</code> permissions are
* required. In your <code>CreateBucket</code> request, if you set the ACL to
* <code>private</code>, or if you don't specify any ACLs, only the
* <code>s3:CreateBucket</code> permission is required. </p>
* </li>
* <li>
* <p>
* <b>Object Lock</b> - In your
* <code>CreateBucket</code> request, if you set
* <code>x-amz-bucket-object-lock-enabled</code> to true, the
* <code>s3:PutBucketObjectLockConfiguration</code> and
* <code>s3:PutBucketVersioning</code> permissions are
* required.</p>
* <code>CreateBucket</code> request, if you set
* <code>x-amz-bucket-object-lock-enabled</code> to true, the
* <code>s3:PutBucketObjectLockConfiguration</code> and <code>s3:PutBucketVersioning</code>
* permissions are required.</p>
* </li>
* <li>
* <p>
* <b>S3 Object Ownership</b> - If
* your <code>CreateBucket</code> request includes the
* <code>x-amz-object-ownership</code> header, then the
* <code>s3:PutBucketOwnershipControls</code> permission is
* required.</p>
* <b>S3 Object Ownership</b> - If your
* <code>CreateBucket</code> request includes the <code>x-amz-object-ownership</code>
* header, then the <code>s3:PutBucketOwnershipControls</code> permission is required.</p>
* <important>
* <p> To set an ACL on a bucket as part of a
* <code>CreateBucket</code> request, you must explicitly set S3
* Object Ownership for the bucket to a different value than the
* default, <code>BucketOwnerEnforced</code>. Additionally, if your
* desired bucket ACL grants public access, you must first create the
* bucket (without the bucket ACL) and then explicitly disable Block
* Public Access on the bucket before using <code>PutBucketAcl</code>
* to set the ACL. If you try to create a bucket with a public ACL,
* the request will fail. </p>
* <p> For the majority of modern use cases in S3, we recommend that
* you keep all Block Public Access settings enabled and keep ACLs
* disabled. If you would like to share data with users outside of
* your account, you can use bucket policies as needed. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling ownership of objects and disabling ACLs for your
* bucket </a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html">Blocking public access to your Amazon S3 storage </a> in
* the <i>Amazon S3 User Guide</i>. </p>
* <p> To set an ACL on a bucket as part of a <code>CreateBucket</code> request, you must
* explicitly set S3 Object Ownership for the bucket to a different value than the default,
* <code>BucketOwnerEnforced</code>. Additionally, if your desired bucket ACL grants
* public access, you must first create the bucket (without the bucket ACL) and then
* explicitly disable Block Public Access on the bucket before using
* <code>PutBucketAcl</code> to set the ACL. If you try to create a bucket with a public
* ACL, the request will fail. </p>
* <p> For the majority of modern use cases in S3, we recommend that you keep all Block
* Public Access settings enabled and keep ACLs disabled. If you would like to share data
* with users outside of your account, you can use bucket policies as needed. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling ownership of
* objects and disabling ACLs for your bucket </a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html">Blocking
* public access to your Amazon S3 storage </a> in the
* <i>Amazon S3 User Guide</i>. </p>
* </important>
* </li>
* <li>
* <p>
* <b>S3 Block Public Access</b> - If
* your specific use case requires granting public access to your S3
* resources, you can disable Block Public Access. Specifically, you can
* create a new bucket with Block Public Access enabled, then separately
* call the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeletePublicAccessBlock.html">
* <b>S3 Block Public Access</b> - If your specific use
* case requires granting public access to your S3 resources, you can disable Block Public
* Access. Specifically, you can create a new bucket with Block Public Access enabled, then
* separately call the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeletePublicAccessBlock.html">
* <code>DeletePublicAccessBlock</code>
* </a> API. To use this operation, you must have the
* <code>s3:PutBucketPublicAccessBlock</code> permission. For more
* information about S3 Block Public Access, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html">Blocking public access to your Amazon S3 storage </a> in the
* <i>Amazon S3 User Guide</i>. </p>
* <code>s3:PutBucketPublicAccessBlock</code> permission. For more information about S3
* Block Public Access, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html">Blocking public
* access to your Amazon S3 storage </a> in the <i>Amazon S3 User Guide</i>.
* </p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <b>Directory bucket permissions</b> -
* You must have the <code>s3express:CreateBucket</code> permission in
* an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.
* For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* <b>Directory bucket permissions</b> - You must have the
* <code>s3express:CreateBucket</code> permission in an IAM identity-based policy instead of a bucket policy.
* Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource. For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* <important>
* <p>The permissions for ACLs, Object Lock, S3 Object Ownership, and S3
* Block Public Access are not supported for directory buckets. For
* directory buckets, all Block Public Access settings are enabled at the
* bucket level and S3 Object Ownership is set to Bucket owner enforced
* (ACLs disabled). These settings can't be modified. </p>
* <p>For more information about permissions for creating and working with
* directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html">Directory buckets</a> in the
* <i>Amazon S3 User Guide</i>. For more information about
* supported S3 features for directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-one-zone.html#s3-express-features">Features of S3 Express One Zone</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>The permissions for ACLs, Object Lock, S3 Object Ownership, and S3 Block Public Access
* are not supported for directory buckets. For directory buckets, all Block Public Access
* settings are enabled at the bucket level and S3 Object Ownership is set to Bucket owner
* enforced (ACLs disabled). These settings can't be modified. </p>
* <p>For more information about permissions for creating and working with directory buckets,
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html">Directory buckets</a>
* in the <i>Amazon S3 User Guide</i>. For more information about supported S3
* features for directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-one-zone.html#s3-express-features">Features of
* S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* </important>
* </li>
* </ul>
@@ -241,14 +229,14 @@ declare const CreateBucketCommand_base: {
* @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
*
* @throws {@link BucketAlreadyExists} (client fault)
* <p>The requested bucket name is not available. The bucket namespace is shared by all users
* of the system. Select a different name and try again.</p>
* <p>The requested bucket name is not available. The bucket namespace is shared by all users of the
* system. Select a different name and try again.</p>
*
* @throws {@link BucketAlreadyOwnedByYou} (client fault)
* <p>The bucket you tried to create already exists, and you own it. Amazon S3 returns this error
* in all Amazon Web Services Regions except in the North Virginia Region. For legacy compatibility, if you
* re-create an existing bucket that you already own in the North Virginia Region, Amazon S3
* returns 200 OK and resets the bucket access control lists (ACLs).</p>
* <p>The bucket you tried to create already exists, and you own it. Amazon S3 returns this error in all Amazon Web Services
* Regions except in the North Virginia Region. For legacy compatibility, if you re-create an existing
* bucket that you already own in the North Virginia Region, Amazon S3 returns 200 OK and resets the bucket
* access control lists (ACLs).</p>
*
* @throws {@link S3ServiceException}
* <p>Base exception class for all service exceptions from S3 service.</p>
@@ -0,0 +1,182 @@
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { CreateBucketMetadataConfigurationRequest } from "../models/models_0";
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link CreateBucketMetadataConfigurationCommand}.
*/
export interface CreateBucketMetadataConfigurationCommandInput extends CreateBucketMetadataConfigurationRequest {
}
/**
* @public
*
* The output of {@link CreateBucketMetadataConfigurationCommand}.
*/
export interface CreateBucketMetadataConfigurationCommandOutput extends __MetadataBearer {
}
declare const CreateBucketMetadataConfigurationCommand_base: {
new (input: CreateBucketMetadataConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateBucketMetadataConfigurationCommandInput, CreateBucketMetadataConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: CreateBucketMetadataConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateBucketMetadataConfigurationCommandInput, CreateBucketMetadataConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Creates an S3 Metadata V2 metadata configuration for a general purpose bucket. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html">Accelerating
* data discovery with S3 Metadata</a> in the <i>Amazon S3 User Guide</i>.</p>
* <dl>
* <dt>Permissions</dt>
* <dd>
* <p>To use this operation, you must have the following permissions. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html">Setting up permissions for configuring metadata tables</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>If you want to encrypt your metadata tables with server-side encryption with Key Management Service
* (KMS) keys (SSE-KMS), you need additional permissions in your KMS key policy. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html">
* Setting up permissions for configuring metadata tables</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>If you also want to integrate your table bucket with Amazon Web Services analytics services so that you can
* query your metadata table, you need additional permissions. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-integrating-aws.html"> Integrating
* Amazon S3 Tables with Amazon Web Services analytics services</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>To query your metadata tables, you need additional permissions. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-bucket-query-permissions.html">
* Permissions for querying metadata tables</a> in the <i>Amazon S3 User Guide</i>.</p>
* <ul>
* <li>
* <p>
* <code>s3:CreateBucketMetadataTableConfiguration</code>
* </p>
* <note>
* <p>The IAM policy action name is the same for the V1 and V2 API operations.</p>
* </note>
* </li>
* <li>
* <p>
* <code>s3tables:CreateTableBucket</code>
* </p>
* </li>
* <li>
* <p>
* <code>s3tables:CreateNamespace</code>
* </p>
* </li>
* <li>
* <p>
* <code>s3tables:GetTable</code>
* </p>
* </li>
* <li>
* <p>
* <code>s3tables:CreateTable</code>
* </p>
* </li>
* <li>
* <p>
* <code>s3tables:PutTablePolicy</code>
* </p>
* </li>
* <li>
* <p>
* <code>s3tables:PutTableEncryption</code>
* </p>
* </li>
* <li>
* <p>
* <code>kms:DescribeKey</code>
* </p>
* </li>
* </ul>
* </dd>
* </dl>
* <p>The following operations are related to <code>CreateBucketMetadataConfiguration</code>:</p>
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketMetadataConfiguration.html">DeleteBucketMetadataConfiguration</a>
* </p>
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketMetadataConfiguration.html">GetBucketMetadataConfiguration</a>
* </p>
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UpdateBucketMetadataInventoryTableConfiguration.html">UpdateBucketMetadataInventoryTableConfiguration</a>
* </p>
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UpdateBucketMetadataJournalTableConfiguration.html">UpdateBucketMetadataJournalTableConfiguration</a>
* </p>
* </li>
* </ul>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { S3Client, CreateBucketMetadataConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
* // const { S3Client, CreateBucketMetadataConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
* const client = new S3Client(config);
* const input = { // CreateBucketMetadataConfigurationRequest
* Bucket: "STRING_VALUE", // required
* ContentMD5: "STRING_VALUE",
* ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256" || "CRC64NVME",
* MetadataConfiguration: { // MetadataConfiguration
* JournalTableConfiguration: { // JournalTableConfiguration
* RecordExpiration: { // RecordExpiration
* Expiration: "ENABLED" || "DISABLED", // required
* Days: Number("int"),
* },
* EncryptionConfiguration: { // MetadataTableEncryptionConfiguration
* SseAlgorithm: "aws:kms" || "AES256", // required
* KmsKeyArn: "STRING_VALUE",
* },
* },
* InventoryTableConfiguration: { // InventoryTableConfiguration
* ConfigurationState: "ENABLED" || "DISABLED", // required
* EncryptionConfiguration: {
* SseAlgorithm: "aws:kms" || "AES256", // required
* KmsKeyArn: "STRING_VALUE",
* },
* },
* },
* ExpectedBucketOwner: "STRING_VALUE",
* };
* const command = new CreateBucketMetadataConfigurationCommand(input);
* const response = await client.send(command);
* // {};
*
* ```
*
* @param CreateBucketMetadataConfigurationCommandInput - {@link CreateBucketMetadataConfigurationCommandInput}
* @returns {@link CreateBucketMetadataConfigurationCommandOutput}
* @see {@link CreateBucketMetadataConfigurationCommandInput} for command's `input` shape.
* @see {@link CreateBucketMetadataConfigurationCommandOutput} for command's `response` shape.
* @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
*
* @throws {@link S3ServiceException}
* <p>Base exception class for all service exceptions from S3 service.</p>
*
*
* @public
*/
export declare class CreateBucketMetadataConfigurationCommand extends CreateBucketMetadataConfigurationCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: CreateBucketMetadataConfigurationRequest;
output: {};
};
sdk: {
input: CreateBucketMetadataConfigurationCommandInput;
output: CreateBucketMetadataConfigurationCommandOutput;
};
};
}
@@ -27,21 +27,34 @@ declare const CreateBucketMetadataTableConfigurationCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Creates a metadata table configuration for a general purpose bucket. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html">Accelerating data
* discovery with S3 Metadata</a> in the <i>Amazon S3 User Guide</i>. </p>
* <important>
* <p>
* We recommend that you create your S3 Metadata configurations by using the V2
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a> API operation. We no longer recommend using the V1
* <code>CreateBucketMetadataTableConfiguration</code> API operation.
* </p>
* <p>If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete
* and re-create your configuration by using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a> so that you can expire journal table records and create
* a live inventory table.</p>
* </important>
* <p>Creates a V1 S3 Metadata configuration for a general purpose bucket. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html">Accelerating
* data discovery with S3 Metadata</a> in the <i>Amazon S3 User Guide</i>.</p>
* <dl>
* <dt>Permissions</dt>
* <dd>
* <p>To use this operation, you must have the following permissions. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html">Setting up
* permissions for configuring metadata tables</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>If you also want to integrate your table bucket with Amazon Web Services analytics services so that you
* can query your metadata table, you need additional permissions. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-integrating-aws.html">
* Integrating Amazon S3 Tables with Amazon Web Services analytics services</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>To use this operation, you must have the following permissions. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html">Setting up permissions for configuring metadata tables</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>If you want to encrypt your metadata tables with server-side encryption with Key Management Service
* (KMS) keys (SSE-KMS), you need additional permissions. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html">
* Setting up permissions for configuring metadata tables</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>If you also want to integrate your table bucket with Amazon Web Services analytics services so that you can
* query your metadata table, you need additional permissions. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-integrating-aws.html"> Integrating
* Amazon S3 Tables with Amazon Web Services analytics services</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <ul>
* <li>
* <p>
@@ -35,34 +35,33 @@ declare const CreateMultipartUploadCommand_base: {
* <p>This change affects the following Amazon Web Services Regions: US East (N. Virginia) Region, US West (N. California) Region, US West (Oregon) Region, Asia Pacific (Singapore) Region, Asia Pacific (Sydney) Region,
* Asia Pacific (Tokyo) Region, Europe (Ireland) Region, and South America (São Paulo) Region.</p>
* </important>
* <p>This action initiates a multipart upload and returns an upload ID. This upload ID is
* used to associate all of the parts in the specific multipart upload. You specify this
* upload ID in each of your subsequent upload part requests (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>). You also include this
* upload ID in the final request to either complete or abort the multipart upload request.
* For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html">Multipart Upload Overview</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>This action initiates a multipart upload and returns an upload ID. This upload ID is used to
* associate all of the parts in the specific multipart upload. You specify this upload ID in each of your
* subsequent upload part requests (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>). You also include this upload ID in
* the final request to either complete or abort the multipart upload request. For more information about
* multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html">Multipart
* Upload Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>After you initiate a multipart upload and upload one or more parts, to stop being
* charged for storing the uploaded parts, you must either complete or abort the multipart
* upload. Amazon S3 frees up the space used to store the parts and stops charging you for
* storing them only after you either complete or abort a multipart upload. </p>
* <p>After you initiate a multipart upload and upload one or more parts, to stop being charged for
* storing the uploaded parts, you must either complete or abort the multipart upload. Amazon S3 frees up the
* space used to store the parts and stops charging you for storing them only after you either complete
* or abort a multipart upload. </p>
* </note>
* <p>If you have configured a lifecycle rule to abort incomplete multipart uploads, the
* created multipart upload must be completed within the number of days specified in the
* bucket lifecycle configuration. Otherwise, the incomplete multipart upload becomes eligible
* for an abort action and Amazon S3 aborts the multipart upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config">Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle
* Configuration</a>.</p>
* <p>If you have configured a lifecycle rule to abort incomplete multipart uploads, the created multipart
* upload must be completed within the number of days specified in the bucket lifecycle configuration.
* Otherwise, the incomplete multipart upload becomes eligible for an abort action and Amazon S3 aborts the
* multipart upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config">Aborting
* Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration</a>.</p>
* <note>
* <ul>
* <li>
* <p>
* <b>Directory buckets </b> -
* S3 Lifecycle is not supported by directory buckets.</p>
* S3 Lifecycle is not supported by directory buckets.</p>
* </li>
* <li>
* <p>
* <b>Directory buckets </b> -
* For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* <b>Directory buckets </b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
* <i>Amazon S3 User Guide</i>.</p>
@@ -72,33 +71,28 @@ declare const CreateMultipartUploadCommand_base: {
* <dl>
* <dt>Request signing</dt>
* <dd>
* <p>For request signing, multipart upload is just a series of regular requests. You
* initiate a multipart upload, send one or more requests to upload parts, and then
* complete the multipart upload process. You sign each request individually. There
* is nothing special about signing multipart upload requests. For more information
* about signing, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
* Requests (Amazon Web Services Signature Version 4)</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>For request signing, multipart upload is just a series of regular requests. You initiate a
* multipart upload, send one or more requests to upload parts, and then complete the multipart
* upload process. You sign each request individually. There is nothing special about signing
* multipart upload requests. For more information about signing, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services
* Signature Version 4)</a> in the <i>Amazon S3 User Guide</i>.</p>
* </dd>
* <dt>Permissions</dt>
* <dd>
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - To
* perform a multipart upload with encryption using an Key Management Service (KMS)
* KMS key, the requester must have permission to the
* <code>kms:Decrypt</code> and <code>kms:GenerateDataKey</code> actions on
* the key. The requester must also have permissions for the
* <code>kms:GenerateDataKey</code> action for the
* <code>CreateMultipartUpload</code> API. Then, the requester needs
* permissions for the <code>kms:Decrypt</code> action on the
* <code>UploadPart</code> and <code>UploadPartCopy</code> APIs. These
* permissions are required because Amazon S3 must decrypt and read data from the
* encrypted file parts before it completes the multipart upload. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions">Multipart upload API and permissions</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting data
* using server-side encryption with Amazon Web Services KMS</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <b>General purpose bucket permissions</b> - To perform a
* multipart upload with encryption using an Key Management Service (KMS) KMS key, the requester must have
* permission to the <code>kms:Decrypt</code> and <code>kms:GenerateDataKey</code> actions on the
* key. The requester must also have permissions for the <code>kms:GenerateDataKey</code> action
* for the <code>CreateMultipartUpload</code> API. Then, the requester needs permissions for the
* <code>kms:Decrypt</code> action on the <code>UploadPart</code> and
* <code>UploadPartCopy</code> APIs. These permissions are required because Amazon S3 must decrypt
* and read data from the encrypted file parts before it completes the multipart upload. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions">Multipart upload API and
* permissions</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting data using server-side
* encryption with Amazon Web Services KMS</a> in the <i>Amazon S3 User Guide</i>.</p>
* </li>
* <li>
* <p>
@@ -116,36 +110,29 @@ declare const CreateMultipartUploadCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose buckets</b> - Server-side
* encryption is for data encryption at rest. Amazon S3 encrypts your data as it
* writes it to disks in its data centers and decrypts it when you access it.
* Amazon S3 automatically encrypts all new objects that are uploaded to an S3
* bucket. When doing a multipart upload, if you don't specify encryption
* information in your request, the encryption setting of the uploaded parts is
* set to the default encryption configuration of the destination bucket. By
* default, all buckets have a base level of encryption configuration that uses
* server-side encryption with Amazon S3 managed keys (SSE-S3). If the destination
* bucket has a default encryption configuration that uses server-side
* encryption with an Key Management Service (KMS) key (SSE-KMS), or a customer-provided
* encryption key (SSE-C), Amazon S3 uses the corresponding KMS key, or a
* customer-provided key to encrypt the uploaded parts. When you perform a
* CreateMultipartUpload operation, if you want to use a different type of
* encryption setting for the uploaded parts, you can request that Amazon S3
* encrypts the object with a different encryption key (such as an Amazon S3 managed
* key, a KMS key, or a customer-provided key). When the encryption setting
* in your request is different from the default encryption configuration of
* the destination bucket, the encryption setting in your request takes
* precedence. If you choose to provide your own encryption key, the request
* headers you provide in <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a> and
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>
* requests must match the headers you used in the
* <code>CreateMultipartUpload</code> request.</p>
* <b>General purpose buckets</b> - Server-side encryption is for
* data encryption at rest. Amazon S3 encrypts your data as it writes it to disks in its data centers
* and decrypts it when you access it. Amazon S3 automatically encrypts all new objects that are
* uploaded to an S3 bucket. When doing a multipart upload, if you don't specify encryption
* information in your request, the encryption setting of the uploaded parts is set to the
* default encryption configuration of the destination bucket. By default, all buckets have a
* base level of encryption configuration that uses server-side encryption with Amazon S3 managed keys
* (SSE-S3). If the destination bucket has a default encryption configuration that uses
* server-side encryption with an Key Management Service (KMS) key (SSE-KMS), or a customer-provided
* encryption key (SSE-C), Amazon S3 uses the corresponding KMS key, or a customer-provided key to
* encrypt the uploaded parts. When you perform a CreateMultipartUpload operation, if you want to
* use a different type of encryption setting for the uploaded parts, you can request that Amazon S3
* encrypts the object with a different encryption key (such as an Amazon S3 managed key, a KMS key,
* or a customer-provided key). When the encryption setting in your request is different from the
* default encryption configuration of the destination bucket, the encryption setting in your
* request takes precedence. If you choose to provide your own encryption key, the request
* headers you provide in <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a> requests must match the headers you used in the
* <code>CreateMultipartUpload</code> request.</p>
* <ul>
* <li>
* <p>Use KMS keys (SSE-KMS) that include the Amazon Web Services managed key
* (<code>aws/s3</code>) and KMS customer managed keys stored in Key Management Service
* (KMS) If you want Amazon Web Services to manage the keys used to encrypt data,
* specify the following headers in the request.</p>
* <p>Use KMS keys (SSE-KMS) that include the Amazon Web Services managed key (<code>aws/s3</code>) and
* KMS customer managed keys stored in Key Management Service (KMS) If you want Amazon Web Services to manage the keys used
* to encrypt data, specify the following headers in the request.</p>
* <ul>
* <li>
* <p>
@@ -166,53 +153,42 @@ declare const CreateMultipartUploadCommand_base: {
* <note>
* <ul>
* <li>
* <p>If you specify
* <code>x-amz-server-side-encryption:aws:kms</code>, but
* don't provide
* <code>x-amz-server-side-encryption-aws-kms-key-id</code>,
* Amazon S3 uses the Amazon Web Services managed key (<code>aws/s3</code> key) in
* KMS to protect the data.</p>
* <p>If you specify <code>x-amz-server-side-encryption:aws:kms</code>, but don't
* provide <code>x-amz-server-side-encryption-aws-kms-key-id</code>, Amazon S3 uses the
* Amazon Web Services managed key (<code>aws/s3</code> key) in KMS to protect the data.</p>
* </li>
* <li>
* <p>To perform a multipart upload with encryption by using an
* Amazon Web Services KMS key, the requester must have permission to the
* <code>kms:Decrypt</code> and
* <code>kms:GenerateDataKey*</code> actions on the key.
* These permissions are required because Amazon S3 must decrypt and
* read data from the encrypted file parts before it completes
* the multipart upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions">Multipart upload API and permissions</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting data using server-side encryption with Amazon Web Services
* KMS</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>To perform a multipart upload with encryption by using an Amazon Web Services KMS key, the
* requester must have permission to the <code>kms:Decrypt</code> and
* <code>kms:GenerateDataKey*</code> actions on the key. These permissions are
* required because Amazon S3 must decrypt and read data from the encrypted file parts
* before it completes the multipart upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions">Multipart
* upload API and permissions</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting data using
* server-side encryption with Amazon Web Services KMS</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* </li>
* <li>
* <p>If your Identity and Access Management (IAM) user or role is in the same
* Amazon Web Services account as the KMS key, then you must have these
* permissions on the key policy. If your IAM user or role is
* in a different account from the key, then you must have the
* permissions on both the key policy and your IAM user or
* role.</p>
* <p>If your Identity and Access Management (IAM) user or role is in the same Amazon Web Services account as the
* KMS key, then you must have these permissions on the key policy. If your IAM
* user or role is in a different account from the key, then you must have the
* permissions on both the key policy and your IAM user or role.</p>
* </li>
* <li>
* <p>All <code>GET</code> and <code>PUT</code> requests for an
* object protected by KMS fail if you don't make them by
* using Secure Sockets Layer (SSL), Transport Layer Security
* (TLS), or Signature Version 4. For information about
* configuring any of the officially supported Amazon Web Services SDKs and
* Amazon Web Services CLI, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version">Specifying the Signature Version in
* Request Authentication</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>All <code>GET</code> and <code>PUT</code> requests for an object protected by
* KMS fail if you don't make them by using Secure Sockets Layer (SSL), Transport
* Layer Security (TLS), or Signature Version 4. For information about configuring any
* of the officially supported Amazon Web Services SDKs and Amazon Web Services CLI, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version">Specifying the Signature Version in Request
* Authentication</a> in the <i>Amazon S3 User Guide</i>.</p>
* </li>
* </ul>
* </note>
* <p>For more information about server-side encryption with KMS keys
* (SSE-KMS), see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting
* Data Using Server-Side Encryption with KMS keys</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>For more information about server-side encryption with KMS keys (SSE-KMS), see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting Data Using Server-Side Encryption with KMS keys</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* </li>
* <li>
* <p>Use customer-provided encryption keys (SSE-C) If you want to
* manage your own encryption keys, provide all the following headers in
* the request.</p>
* <p>Use customer-provided encryption keys (SSE-C) If you want to manage your own
* encryption keys, provide all the following headers in the request.</p>
* <ul>
* <li>
* <p>
@@ -230,17 +206,17 @@ declare const CreateMultipartUploadCommand_base: {
* </p>
* </li>
* </ul>
* <p>For more information about server-side encryption with
* customer-provided encryption keys (SSE-C), see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html"> Protecting data using server-side encryption with
* customer-provided encryption keys (SSE-C)</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>For more information about server-side encryption with customer-provided encryption
* keys (SSE-C), see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html"> Protecting data
* using server-side encryption with customer-provided encryption keys (SSE-C)</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <b>Directory buckets</b> -
* For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) and server-side encryption with KMS keys (SSE-KMS) (<code>aws:kms</code>). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your
* For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) and server-side encryption with KMS keys (SSE-KMS) (<code>aws:kms</code>). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your
* <code>CreateSession</code> requests or <code>PUT</code> object requests. Then, new objects
* are automatically encrypted with the desired encryption settings. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html">Protecting data with server-side encryption</a> in the <i>Amazon S3 User Guide</i>. For more information about the encryption overriding behaviors in directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html">Specifying server-side encryption with KMS for new object uploads</a>.</p>
@@ -258,11 +234,10 @@ declare const CreateMultipartUploadCommand_base: {
* </p>
* </note>
* <note>
* <p>For directory buckets, when you perform a
* <code>CreateMultipartUpload</code> operation and an
* <code>UploadPartCopy</code> operation, the request headers you provide
* in the <code>CreateMultipartUpload</code> request must match the default
* encryption configuration of the destination bucket. </p>
* <p>For directory buckets, when you perform a <code>CreateMultipartUpload</code> operation
* and an <code>UploadPartCopy</code> operation, the request headers you provide in the
* <code>CreateMultipartUpload</code> request must match the default encryption configuration
* of the destination bucket. </p>
* </note>
* </li>
* </ul>
@@ -27,30 +27,28 @@ declare const CreateSessionCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Creates a session that establishes temporary security credentials to support fast
* authentication and authorization for the Zonal endpoint API operations on directory buckets. For more
* information about Zonal endpoint API operations that include the Availability Zone in the request endpoint, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-APIs.html">S3 Express One Zone
* APIs</a> in the <i>Amazon S3 User Guide</i>. </p>
* <p>To make Zonal endpoint API requests on a directory bucket, use the <code>CreateSession</code>
* API operation. Specifically, you grant <code>s3express:CreateSession</code> permission to a
* bucket in a bucket policy or an IAM identity-based policy. Then, you use IAM credentials to make the
* <code>CreateSession</code> API request on the bucket, which returns temporary security
* credentials that include the access key ID, secret access key, session token, and
* expiration. These credentials have associated permissions to access the Zonal endpoint API operations. After
* the session is created, you dont need to use other policies to grant permissions to each
* Zonal endpoint API individually. Instead, in your Zonal endpoint API requests, you sign your requests by
* applying the temporary security credentials of the session to the request headers and
* following the SigV4 protocol for authentication. You also apply the session token to the
* <code>x-amz-s3session-token</code> request header for authorization. Temporary security
* credentials are scoped to the bucket and expire after 5 minutes. After the expiration time,
* any calls that you make with those credentials will fail. You must use IAM credentials
* again to make a <code>CreateSession</code> API request that generates a new set of
* temporary credentials for use. Temporary credentials cannot be extended or refreshed beyond
* the original specified interval.</p>
* <p>If you use Amazon Web Services SDKs, SDKs handle the session token refreshes automatically to avoid
* service interruptions when a session expires. We recommend that you use the Amazon Web Services SDKs to
* initiate and manage requests to the CreateSession API. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-optimizing-performance-guidelines-design-patterns.html#s3-express-optimizing-performance-session-authentication">Performance guidelines and design patterns</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>Creates a session that establishes temporary security credentials to support fast authentication and
* authorization for the Zonal endpoint API operations on directory buckets. For more information about Zonal endpoint API operations that
* include the Availability Zone in the request endpoint, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-APIs.html">S3 Express One Zone APIs</a> in the
* <i>Amazon S3 User Guide</i>. </p>
* <p>To make Zonal endpoint API requests on a directory bucket, use the <code>CreateSession</code> API
* operation. Specifically, you grant <code>s3express:CreateSession</code> permission to a bucket in
* a bucket policy or an IAM identity-based policy. Then, you use IAM credentials to make the <code>CreateSession</code>
* API request on the bucket, which returns temporary security credentials that include the access key ID,
* secret access key, session token, and expiration. These credentials have associated permissions to
* access the Zonal endpoint API operations. After the session is created, you dont need to use other policies to grant
* permissions to each Zonal endpoint API individually. Instead, in your Zonal endpoint API requests, you sign your
* requests by applying the temporary security credentials of the session to the request headers and
* following the SigV4 protocol for authentication. You also apply the session token to the
* <code>x-amz-s3session-token</code> request header for authorization. Temporary security credentials
* are scoped to the bucket and expire after 5 minutes. After the expiration time, any calls that you make
* with those credentials will fail. You must use IAM credentials again to make a
* <code>CreateSession</code> API request that generates a new set of temporary credentials for use.
* Temporary credentials cannot be extended or refreshed beyond the original specified interval.</p>
* <p>If you use Amazon Web Services SDKs, SDKs handle the session token refreshes automatically to avoid service
* interruptions when a session expires. We recommend that you use the Amazon Web Services SDKs to initiate and manage
* requests to the CreateSession API. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-optimizing-performance-guidelines-design-patterns.html#s3-express-optimizing-performance-session-authentication">Performance guidelines and design patterns</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <note>
* <ul>
* <li>
@@ -61,44 +59,41 @@ declare const CreateSessionCommand_base: {
* <li>
* <p>
* <b>
* <code>CopyObject</code> API operation</b> -
* Unlike other Zonal endpoint API operations, the <code>CopyObject</code> API operation doesn't use
* the temporary security credentials returned from the <code>CreateSession</code>
* API operation for authentication and authorization. For information about
* authentication and authorization of the <code>CopyObject</code> API operation on
* directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a>.</p>
* <code>CopyObject</code> API operation</b> - Unlike other
* Zonal endpoint API operations, the <code>CopyObject</code> API operation doesn't use the temporary security
* credentials returned from the <code>CreateSession</code> API operation for authentication and
* authorization. For information about authentication and authorization of the
* <code>CopyObject</code> API operation on directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a>.</p>
* </li>
* <li>
* <p>
* <b>
* <code>HeadBucket</code> API operation</b> -
* Unlike other Zonal endpoint API operations, the <code>HeadBucket</code> API operation doesn't use
* the temporary security credentials returned from the <code>CreateSession</code>
* API operation for authentication and authorization. For information about
* authentication and authorization of the <code>HeadBucket</code> API operation on
* directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html">HeadBucket</a>.</p>
* <code>HeadBucket</code> API operation</b> - Unlike other
* Zonal endpoint API operations, the <code>HeadBucket</code> API operation doesn't use the temporary security
* credentials returned from the <code>CreateSession</code> API operation for authentication and
* authorization. For information about authentication and authorization of the
* <code>HeadBucket</code> API operation on directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html">HeadBucket</a>.</p>
* </li>
* </ul>
* </note>
* <dl>
* <dt>Permissions</dt>
* <dd>
* <p>To obtain temporary security credentials, you must create
* a bucket policy or an IAM identity-based policy that grants <code>s3express:CreateSession</code>
* permission to the bucket. In a policy, you can have the
* <code>s3express:SessionMode</code> condition key to control who can create a
* <code>ReadWrite</code> or <code>ReadOnly</code> session. For more information
* about <code>ReadWrite</code> or <code>ReadOnly</code> sessions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html#API_CreateSession_RequestParameters">
* <p>To obtain temporary security credentials, you must create a bucket policy or an IAM identity-based policy that
* grants <code>s3express:CreateSession</code> permission to the bucket. In a policy, you can have
* the <code>s3express:SessionMode</code> condition key to control who can create a
* <code>ReadWrite</code> or <code>ReadOnly</code> session. For more information about
* <code>ReadWrite</code> or <code>ReadOnly</code> sessions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html#API_CreateSession_RequestParameters">
* <code>x-amz-create-session-mode</code>
* </a>. For example policies, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example 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 Identity and Access Management (IAM) identity-based policies for
* S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>. </p>
* <p>To grant cross-account access to Zonal endpoint API operations, the bucket policy should also
* grant both accounts the <code>s3express:CreateSession</code> permission.</p>
* </a>. For example policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example
* 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 Identity
* and Access Management (IAM) identity-based policies for S3 Express One Zone</a> in the
* <i>Amazon S3 User Guide</i>. </p>
* <p>To grant cross-account access to Zonal endpoint API operations, the bucket policy should also grant both
* accounts the <code>s3express:CreateSession</code> permission.</p>
* <p>If you want to encrypt objects with SSE-KMS, you must also have the
* <code>kms:GenerateDataKey</code> and the <code>kms:Decrypt</code> permissions
* in IAM identity-based policies and KMS key policies for the target KMS
* key.</p>
* <code>kms:GenerateDataKey</code> and the <code>kms:Decrypt</code> permissions in IAM
* identity-based policies and KMS key policies for the target KMS key.</p>
* </dd>
* <dt>Encryption</dt>
* <dd>
@@ -30,17 +30,15 @@ declare const DeleteBucketAnalyticsConfigurationCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Deletes an analytics configuration for the bucket (specified by the analytics
* configuration ID).</p>
* <p>Deletes an analytics configuration for the bucket (specified by the analytics configuration
* ID).</p>
* <p>To use this operation, you must have permissions to perform the
* <code>s3:PutAnalyticsConfiguration</code> action. The bucket owner has this permission
* by default. The bucket owner can grant this permission to others. For more information
* about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing
* Access Permissions to Your Amazon S3 Resources</a>.</p>
* <code>s3:PutAnalyticsConfiguration</code> action. The bucket owner has this permission by default. The
* bucket owner can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
* Resources</a>.</p>
* <p>For information about the Amazon S3 analytics feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html">Amazon S3 Analytics Storage Class
* Analysis</a>. </p>
* <p>The following operations are related to
* <code>DeleteBucketAnalyticsConfiguration</code>:</p>
* Analysis</a>. </p>
* <p>The following operations are related to <code>DeleteBucketAnalyticsConfiguration</code>:</p>
* <ul>
* <li>
* <p>
@@ -27,15 +27,15 @@ declare const DeleteBucketCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Deletes the S3 bucket. All objects (including all object versions and delete markers) in
* the bucket must be deleted before the bucket itself can be deleted.</p>
* <p>Deletes the S3 bucket. All objects (including all object versions and delete markers) in the bucket
* must be deleted before the bucket itself can be deleted.</p>
* <note>
* <ul>
* <li>
* <p>
* <b>Directory buckets</b> - If multipart
* uploads in a directory bucket are in progress, you can't delete the bucket until
* all the in-progress multipart uploads are aborted or completed.</p>
* <b>Directory buckets</b> - If multipart uploads in a
* directory bucket are in progress, you can't delete the bucket until all the in-progress multipart
* uploads are aborted or completed.</p>
* </li>
* <li>
* <p>
@@ -53,16 +53,14 @@ declare const DeleteBucketCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - You
* must have the <code>s3:DeleteBucket</code> permission on the specified
* bucket in a policy.</p>
* <b>General purpose bucket permissions</b> - You must have the
* <code>s3:DeleteBucket</code> permission on the specified bucket in a policy.</p>
* </li>
* <li>
* <p>
* <b>Directory bucket permissions</b> -
* You must have the <code>s3express:DeleteBucket</code> permission in
* an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.
* For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* <b>Directory bucket permissions</b> - You must have the
* <code>s3express:DeleteBucket</code> permission in an IAM identity-based policy instead of a bucket policy.
* Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource. For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* </li>
* </ul>
* </dd>
@@ -31,11 +31,10 @@ declare const DeleteBucketCorsCommand_base: {
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Deletes the <code>cors</code> configuration information set for the bucket.</p>
* <p>To use this operation, you must have permission to perform the
* <code>s3:PutBucketCORS</code> action. The bucket owner has this permission by default
* and can grant this permission to others. </p>
* <p>For information about <code>cors</code>, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html">Enabling Cross-Origin Resource Sharing</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* <p>To use this operation, you must have permission to perform the <code>s3:PutBucketCORS</code> action.
* The bucket owner has this permission by default and can grant this permission to others. </p>
* <p>For information about <code>cors</code>, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html">Enabling Cross-Origin Resource Sharing</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p class="title">
* <b>Related Resources</b>
* </p>
@@ -27,22 +27,22 @@ declare const DeleteBucketEncryptionCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>This implementation of the DELETE action resets the default encryption for the bucket as
* server-side encryption with Amazon S3 managed keys (SSE-S3).</p>
* <p>This implementation of the DELETE action resets the default encryption for the bucket as server-side
* encryption with Amazon S3 managed keys (SSE-S3).</p>
* <note>
* <ul>
* <li>
* <p>
* <b>General purpose buckets</b> - For information
* about the bucket default encryption feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html">Amazon S3 Bucket Default
* Encryption</a> in the <i>Amazon S3 User Guide</i>.</p>
* <b>General purpose buckets</b> - For information about the bucket
* default encryption feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html">Amazon S3 Bucket Default Encryption</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* </li>
* <li>
* <p>
* <b>Directory buckets</b> -
* For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. For information about the default encryption
* configuration in directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-bucket-encryption.html">Setting
* default server-side encryption behavior for directory buckets</a>.</p>
* For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. For information about the default encryption configuration in
* directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-bucket-encryption.html">Setting default server-side
* encryption behavior for directory buckets</a>.</p>
* </li>
* </ul>
* </note>
@@ -53,19 +53,17 @@ declare const DeleteBucketEncryptionCommand_base: {
* <li>
* <p>
* <b>General purpose bucket permissions</b> - The
* <code>s3:PutEncryptionConfiguration</code> permission is required in a
* policy. The bucket owner has this permission by default. The bucket owner
* can grant this permission to others. For more information about permissions,
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access
* Permissions to Your Amazon S3 Resources</a>.</p>
* <code>s3:PutEncryptionConfiguration</code> permission is required in a policy. The bucket
* owner has this permission by default. The bucket owner can grant this permission to others.
* For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your
* Amazon S3 Resources</a>.</p>
* </li>
* <li>
* <p>
* <b>Directory bucket permissions</b> -
* To grant access to this API operation, you must have the
* <code>s3express:PutEncryptionConfiguration</code> permission in
* an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.
* For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* <b>Directory bucket permissions</b> - To grant access to
* this API operation, you must have the <code>s3express:PutEncryptionConfiguration</code>
* permission in an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.
* For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* </li>
* </ul>
* </dd>
@@ -30,13 +30,11 @@ declare const DeleteBucketInventoryConfigurationCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Deletes an inventory configuration (identified by the inventory ID) from the
* bucket.</p>
* <p>Deletes an S3 Inventory configuration (identified by the inventory ID) from the bucket.</p>
* <p>To use this operation, you must have permissions to perform the
* <code>s3:PutInventoryConfiguration</code> action. The bucket owner has this permission
* by default. The bucket owner can grant this permission to others. For more information
* about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing
* Access Permissions to Your Amazon S3 Resources</a>.</p>
* <code>s3:PutInventoryConfiguration</code> action. The bucket owner has this permission by default. The
* bucket owner can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
* Resources</a>.</p>
* <p>For information about the Amazon S3 inventory feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html">Amazon S3 Inventory</a>.</p>
* <p>Operations related to <code>DeleteBucketInventoryConfiguration</code> include: </p>
* <ul>
@@ -27,41 +27,36 @@ declare const DeleteBucketLifecycleCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Deletes the lifecycle configuration from the specified bucket. Amazon S3 removes all the
* lifecycle configuration rules in the lifecycle subresource associated with the bucket. Your
* objects never expire, and Amazon S3 no longer automatically deletes any objects on the basis of
* rules contained in the deleted lifecycle configuration.</p>
* <p>Deletes the lifecycle configuration from the specified bucket. Amazon S3 removes all the lifecycle
* configuration rules in the lifecycle subresource associated with the bucket. Your objects never expire,
* and Amazon S3 no longer automatically deletes any objects on the basis of rules contained in the deleted
* lifecycle configuration.</p>
* <dl>
* <dt>Permissions</dt>
* <dd>
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - By
* default, all Amazon S3 resources are private, including buckets, objects, and
* related subresources (for example, lifecycle configuration and website
* configuration). Only the resource owner (that is, the Amazon Web Services account that
* created it) can access the resource. The resource owner can optionally grant
* access permissions to others by writing an access policy. For this
* operation, a user must have the <code>s3:PutLifecycleConfiguration</code>
* permission.</p>
* <p>For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access
* Permissions to Your Amazon S3 Resources</a>.</p>
* <b>General purpose bucket permissions</b> - By default, all Amazon S3
* resources are private, including buckets, objects, and related subresources (for example,
* lifecycle configuration and website configuration). Only the resource owner (that is, the
* Amazon Web Services account that created it) can access the resource. The resource owner can optionally
* grant access permissions to others by writing an access policy. For this operation, a user
* must have the <code>s3:PutLifecycleConfiguration</code> permission.</p>
* <p>For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your
* Amazon S3 Resources</a>.</p>
* </li>
* </ul>
* <ul>
* <li>
* <p>
* <b>Directory bucket permissions</b> -
* You must have the <code>s3express:PutLifecycleConfiguration</code>
* permission in an IAM identity-based policy to use this operation.
* Cross-account access to this API operation isn't supported. The resource
* owner can optionally grant access permissions to others by creating a role
* or user for them as long as they are within the same account as the owner
* and resource.</p>
* <p>For more information about directory bucket policies and permissions, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Authorizing Regional endpoint APIs with IAM</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <b>Directory bucket permissions</b> - You must have the
* <code>s3express:PutLifecycleConfiguration</code> permission in an IAM identity-based policy
* to use this operation. Cross-account access to this API operation isn't supported. The
* resource owner can optionally grant access permissions to others by creating a role or user
* for them as long as they are within the same account as the owner and resource.</p>
* <p>For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Authorizing Regional endpoint APIs with IAM</a> in the <i>Amazon S3 User
* Guide</i>.</p>
* <note>
* <p>
* <b>Directory buckets </b> - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format <code>https://s3express-control.<i>region-code</i>.amazonaws.com/<i>bucket-name</i>
@@ -78,12 +73,12 @@ declare const DeleteBucketLifecycleCommand_base: {
* <dt>HTTP Host header syntax</dt>
* <dd>
* <p>
* <b>Directory buckets </b> - The HTTP Host
* header syntax is
* <code>s3express-control.<i>region</i>.amazonaws.com</code>.</p>
* <b>Directory buckets </b> - The HTTP Host header syntax is
* <code>s3express-control.<i>region</i>.amazonaws.com</code>.</p>
* </dd>
* </dl>
* <p>For more information about the object expiration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#intro-lifecycle-rules-actions">Elements to Describe Lifecycle Actions</a>.</p>
* <p>For more information about the object expiration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#intro-lifecycle-rules-actions">Elements to
* Describe Lifecycle Actions</a>.</p>
* <p>Related actions include:</p>
* <ul>
* <li>
@@ -0,0 +1,114 @@
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { DeleteBucketMetadataConfigurationRequest } from "../models/models_0";
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link DeleteBucketMetadataConfigurationCommand}.
*/
export interface DeleteBucketMetadataConfigurationCommandInput extends DeleteBucketMetadataConfigurationRequest {
}
/**
* @public
*
* The output of {@link DeleteBucketMetadataConfigurationCommand}.
*/
export interface DeleteBucketMetadataConfigurationCommandOutput extends __MetadataBearer {
}
declare const DeleteBucketMetadataConfigurationCommand_base: {
new (input: DeleteBucketMetadataConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteBucketMetadataConfigurationCommandInput, DeleteBucketMetadataConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: DeleteBucketMetadataConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteBucketMetadataConfigurationCommandInput, DeleteBucketMetadataConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p> Deletes an S3 Metadata configuration from a general purpose bucket. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html">Accelerating
* data discovery with S3 Metadata</a> in the <i>Amazon S3 User Guide</i>. </p>
* <note>
* <p>You can use the V2 <code>DeleteBucketMetadataConfiguration</code> API operation with V1 or V2
* metadata configurations. However, if you try to use the V1
* <code>DeleteBucketMetadataTableConfiguration</code> API operation with V2 configurations, you
* will receive an HTTP <code>405 Method Not Allowed</code> error.</p>
* </note>
* <dl>
* <dt>Permissions</dt>
* <dd>
* <p>To use this operation, you must have the
* <code>s3:DeleteBucketMetadataTableConfiguration</code> permission. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html">Setting up permissions for configuring metadata tables</a> in the
* <i>Amazon S3 User Guide</i>. </p>
* <note>
* <p>The IAM policy action name is the same for the V1 and V2 API operations.</p>
* </note>
* </dd>
* </dl>
* <p>The following operations are related to <code>DeleteBucketMetadataConfiguration</code>:</p>
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a>
* </p>
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketMetadataConfiguration.html">GetBucketMetadataConfiguration</a>
* </p>
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UpdateBucketMetadataInventoryTableConfiguration.html">UpdateBucketMetadataInventoryTableConfiguration</a>
* </p>
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UpdateBucketMetadataJournalTableConfiguration.html">UpdateBucketMetadataJournalTableConfiguration</a>
* </p>
* </li>
* </ul>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { S3Client, DeleteBucketMetadataConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
* // const { S3Client, DeleteBucketMetadataConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
* const client = new S3Client(config);
* const input = { // DeleteBucketMetadataConfigurationRequest
* Bucket: "STRING_VALUE", // required
* ExpectedBucketOwner: "STRING_VALUE",
* };
* const command = new DeleteBucketMetadataConfigurationCommand(input);
* const response = await client.send(command);
* // {};
*
* ```
*
* @param DeleteBucketMetadataConfigurationCommandInput - {@link DeleteBucketMetadataConfigurationCommandInput}
* @returns {@link DeleteBucketMetadataConfigurationCommandOutput}
* @see {@link DeleteBucketMetadataConfigurationCommandInput} for command's `input` shape.
* @see {@link DeleteBucketMetadataConfigurationCommandOutput} for command's `response` shape.
* @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
*
* @throws {@link S3ServiceException}
* <p>Base exception class for all service exceptions from S3 service.</p>
*
*
* @public
*/
export declare class DeleteBucketMetadataConfigurationCommand extends DeleteBucketMetadataConfigurationCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: DeleteBucketMetadataConfigurationRequest;
output: {};
};
sdk: {
input: DeleteBucketMetadataConfigurationCommandInput;
output: DeleteBucketMetadataConfigurationCommandOutput;
};
};
}
@@ -27,17 +27,35 @@ declare const DeleteBucketMetadataTableConfigurationCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>
* Deletes a metadata table configuration from a general purpose bucket. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html">Accelerating data
* discovery with S3 Metadata</a> in the <i>Amazon S3 User Guide</i>. </p>
* <important>
* <p>
* We recommend that you delete your S3 Metadata configurations by using the V2
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketMetadataTableConfiguration.html">DeleteBucketMetadataTableConfiguration</a> API operation. We no longer recommend using
* the V1 <code>DeleteBucketMetadataTableConfiguration</code> API operation.
* </p>
* <p>If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete
* and re-create your configuration by using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a> so that you can expire journal table records and create
* a live inventory table.</p>
* </important>
* <p> Deletes a V1 S3 Metadata configuration from a general purpose bucket. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html">Accelerating
* data discovery with S3 Metadata</a> in the <i>Amazon S3 User Guide</i>. </p>
* <note>
* <p>You can use the V2 <code>DeleteBucketMetadataConfiguration</code> API operation with V1 or V2
* metadata table configurations. However, if you try to use the V1
* <code>DeleteBucketMetadataTableConfiguration</code> API operation with V2 configurations, you
* will receive an HTTP <code>405 Method Not Allowed</code> error.</p>
* <p>Make sure that you update your processes to use the new V2 API operations
* (<code>CreateBucketMetadataConfiguration</code>, <code>GetBucketMetadataConfiguration</code>, and
* <code>DeleteBucketMetadataConfiguration</code>) instead of the V1 API operations. </p>
* </note>
* <dl>
* <dt>Permissions</dt>
* <dd>
* <p>To use this operation, you must have the <code>s3:DeleteBucketMetadataTableConfiguration</code> permission. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html">Setting up
* permissions for configuring metadata tables</a> in the
* <i>Amazon S3 User Guide</i>. </p>
* <p>To use this operation, you must have the
* <code>s3:DeleteBucketMetadataTableConfiguration</code> permission. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html">Setting up permissions for configuring metadata tables</a> in the
* <i>Amazon S3 User Guide</i>. </p>
* </dd>
* </dl>
* <p>The following operations are related to <code>DeleteBucketMetadataTableConfiguration</code>:</p>
@@ -30,18 +30,14 @@ declare const DeleteBucketMetricsConfigurationCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Deletes a metrics configuration for the Amazon CloudWatch request metrics (specified by the
* metrics configuration ID) from the bucket. Note that this doesn't include the daily storage
* metrics.</p>
* <p>Deletes a metrics configuration for the Amazon CloudWatch request metrics (specified by the metrics
* configuration ID) from the bucket. Note that this doesn't include the daily storage metrics.</p>
* <p> To use this operation, you must have permissions to perform the
* <code>s3:PutMetricsConfiguration</code> action. The bucket owner has this permission by
* default. The bucket owner can grant this permission to others. For more information about
* permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing
* Access Permissions to Your Amazon S3 Resources</a>.</p>
* <p>For information about CloudWatch request metrics for Amazon S3, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html">Monitoring Metrics with
* Amazon CloudWatch</a>. </p>
* <p>The following operations are related to
* <code>DeleteBucketMetricsConfiguration</code>:</p>
* <code>s3:PutMetricsConfiguration</code> action. The bucket owner has this permission by default. The
* bucket owner can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
* Resources</a>.</p>
* <p>For information about CloudWatch request metrics for Amazon S3, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html">Monitoring Metrics with Amazon CloudWatch</a>. </p>
* <p>The following operations are related to <code>DeleteBucketMetricsConfiguration</code>:</p>
* <ul>
* <li>
* <p>
@@ -60,7 +56,8 @@ declare const DeleteBucketMetricsConfigurationCommand_base: {
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html">Monitoring Metrics with Amazon CloudWatch</a>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html">Monitoring
* Metrics with Amazon CloudWatch</a>
* </p>
* </li>
* </ul>
@@ -30,13 +30,12 @@ declare const DeleteBucketOwnershipControlsCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Removes <code>OwnershipControls</code> for an Amazon S3 bucket. To use this operation, you
* must have the <code>s3:PutBucketOwnershipControls</code> permission. For more information
* about Amazon S3 permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a
* Policy</a>.</p>
* <p>Removes <code>OwnershipControls</code> for an Amazon S3 bucket. To use this operation, you must have the
* <code>s3:PutBucketOwnershipControls</code> permission. For more information about Amazon S3 permissions,
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying
* Permissions in a Policy</a>.</p>
* <p>For information about Amazon S3 Object Ownership, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html">Using Object Ownership</a>. </p>
* <p>The following operations are related to
* <code>DeleteBucketOwnershipControls</code>:</p>
* <p>The following operations are related to <code>DeleteBucketOwnershipControls</code>:</p>
* <ul>
* <li>
* <p>
@@ -39,38 +39,35 @@ declare const DeleteBucketPolicyCommand_base: {
* <dl>
* <dt>Permissions</dt>
* <dd>
* <p>If you are using an identity other than the root user of the Amazon Web Services account that
* owns the bucket, the calling identity must both have the
* <code>DeleteBucketPolicy</code> permissions on the specified bucket and belong
* to the bucket owner's account in order to use this operation.</p>
* <p>If you don't have <code>DeleteBucketPolicy</code> permissions, Amazon S3 returns a
* <code>403 Access Denied</code> error. If you have the correct permissions, but
* you're not using an identity that belongs to the bucket owner's account, Amazon S3
* returns a <code>405 Method Not Allowed</code> error.</p>
* <p>If you are using an identity other than the root user of the Amazon Web Services account that owns the
* bucket, the calling identity must both have the <code>DeleteBucketPolicy</code> permissions on the
* specified bucket and belong to the bucket owner's account in order to use this operation.</p>
* <p>If you don't have <code>DeleteBucketPolicy</code> permissions, Amazon S3 returns a <code>403 Access
* Denied</code> error. If you have the correct permissions, but you're not using an identity that
* belongs to the bucket owner's account, Amazon S3 returns a <code>405 Method Not Allowed</code>
* error.</p>
* <important>
* <p>To ensure that bucket owners don't inadvertently lock themselves out of
* their own buckets, the root principal in a bucket owner's Amazon Web Services account can
* perform the <code>GetBucketPolicy</code>, <code>PutBucketPolicy</code>, and
* <code>DeleteBucketPolicy</code> API actions, even if their bucket policy
* explicitly denies the root principal's access. Bucket owner root principals can
* only be blocked from performing these API actions by VPC endpoint policies and
* Amazon Web Services Organizations policies.</p>
* <p>To ensure that bucket owners don't inadvertently lock themselves out of their own buckets,
* the root principal in a bucket owner's Amazon Web Services account can perform the
* <code>GetBucketPolicy</code>, <code>PutBucketPolicy</code>, and
* <code>DeleteBucketPolicy</code> API actions, even if their bucket policy explicitly denies the
* root principal's access. Bucket owner root principals can only be blocked from performing these
* API actions by VPC endpoint policies and Amazon Web Services Organizations policies.</p>
* </important>
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - The
* <code>s3:DeleteBucketPolicy</code> permission is required in a policy.
* For more information about general purpose buckets bucket policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html">Using Bucket Policies and User Policies</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <code>s3:DeleteBucketPolicy</code> permission is required in a policy. For more information
* about general purpose buckets bucket policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html">Using Bucket Policies and User
* Policies</a> in the <i>Amazon S3 User Guide</i>.</p>
* </li>
* <li>
* <p>
* <b>Directory bucket permissions</b> -
* To grant access to this API operation, you must have the
* <code>s3express:DeleteBucketPolicy</code> permission in
* an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.
* For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* <b>Directory bucket permissions</b> - To grant access to
* this API operation, you must have the <code>s3express:DeleteBucketPolicy</code> permission in
* an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.
* For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* </li>
* </ul>
* </dd>
@@ -32,16 +32,14 @@ declare const DeleteBucketReplicationCommand_base: {
* </note>
* <p> Deletes the replication configuration from the bucket.</p>
* <p>To use this operation, you must have permissions to perform the
* <code>s3:PutReplicationConfiguration</code> action. The bucket owner has these
* permissions by default and can grant it to others. For more information about permissions,
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing
* Access Permissions to Your Amazon S3 Resources</a>. </p>
* <code>s3:PutReplicationConfiguration</code> action. The bucket owner has these permissions by default
* and can grant it to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
* Resources</a>. </p>
* <note>
* <p>It can take a while for the deletion of a replication configuration to fully
* propagate.</p>
* <p>It can take a while for the deletion of a replication configuration to fully propagate.</p>
* </note>
* <p> For information about replication configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html">Replication</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <i>Amazon S3 User Guide</i>.</p>
* <p>The following operations are related to <code>DeleteBucketReplication</code>:</p>
* <ul>
* <li>
@@ -31,9 +31,8 @@ declare const DeleteBucketTaggingCommand_base: {
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Deletes the tags from the bucket.</p>
* <p>To use this operation, you must have permission to perform the
* <code>s3:PutBucketTagging</code> action. By default, the bucket owner has this
* permission and can grant this permission to others. </p>
* <p>To use this operation, you must have permission to perform the <code>s3:PutBucketTagging</code>
* action. By default, the bucket owner has this permission and can grant this permission to others. </p>
* <p>The following operations are related to <code>DeleteBucketTagging</code>:</p>
* <ul>
* <li>
@@ -30,16 +30,15 @@ declare const DeleteBucketWebsiteCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>This action removes the website configuration for a bucket. Amazon S3 returns a <code>200
* OK</code> response upon successfully deleting a website configuration on the specified
* bucket. You will get a <code>200 OK</code> response if the website configuration you are
* trying to delete does not exist on the bucket. Amazon S3 returns a <code>404</code> response if
* the bucket specified in the request does not exist.</p>
* <p>This DELETE action requires the <code>S3:DeleteBucketWebsite</code> permission. By
* default, only the bucket owner can delete the website configuration attached to a bucket.
* However, bucket owners can grant other users permission to delete the website configuration
* by writing a bucket policy granting them the <code>S3:DeleteBucketWebsite</code>
* permission. </p>
* <p>This action removes the website configuration for a bucket. Amazon S3 returns a <code>200 OK</code>
* response upon successfully deleting a website configuration on the specified bucket. You will get a
* <code>200 OK</code> response if the website configuration you are trying to delete does not exist on
* the bucket. Amazon S3 returns a <code>404</code> response if the bucket specified in the request does not
* exist.</p>
* <p>This DELETE action requires the <code>S3:DeleteBucketWebsite</code> permission. By default, only the
* bucket owner can delete the website configuration attached to a bucket. However, bucket owners can grant
* other users permission to delete the website configuration by writing a bucket policy granting them the
* <code>S3:DeleteBucketWebsite</code> permission. </p>
* <p>For more information about hosting websites, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html">Hosting Websites on Amazon S3</a>. </p>
* <p>The following operations are related to <code>DeleteBucketWebsite</code>:</p>
* <ul>
@@ -33,18 +33,30 @@ declare const DeleteObjectCommand_base: {
* <p>If bucket versioning is not enabled, the operation permanently deletes the object.</p>
* </li>
* <li>
* <p>If bucket versioning is enabled, the operation inserts a delete marker, which becomes the current version of the object. To permanently delete an object in a versioned bucket, you must include the objects <code>versionId</code> in the request. For more information about versioning-enabled buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeletingObjectVersions.html">Deleting object versions from a versioning-enabled bucket</a>.</p>
* <p>If bucket versioning is enabled, the operation inserts a delete marker, which becomes the
* current version of the object. To permanently delete an object in a versioned bucket, you must
* include the objects <code>versionId</code> in the request. For more information about
* versioning-enabled buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeletingObjectVersions.html">Deleting object versions from a
* versioning-enabled bucket</a>.</p>
* </li>
* <li>
* <p>If bucket versioning is suspended, the operation removes the object that has a null <code>versionId</code>, if there is one, and inserts a delete marker that becomes the current version of the object. If there isn't an object with a null <code>versionId</code>, and all versions of the object have a <code>versionId</code>, Amazon S3 does not remove the object and only inserts a delete marker. To permanently delete an object that has a <code>versionId</code>, you must include the objects <code>versionId</code> in the request. For more information about versioning-suspended buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeletingObjectsfromVersioningSuspendedBuckets.html">Deleting objects from versioning-suspended buckets</a>.</p>
* <p>If bucket versioning is suspended, the operation removes the object that has a null
* <code>versionId</code>, if there is one, and inserts a delete marker that becomes the current
* version of the object. If there isn't an object with a null <code>versionId</code>, and all versions
* of the object have a <code>versionId</code>, Amazon S3 does not remove the object and only inserts a
* delete marker. To permanently delete an object that has a <code>versionId</code>, you must include
* the objects <code>versionId</code> in the request. For more information about versioning-suspended
* buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeletingObjectsfromVersioningSuspendedBuckets.html">Deleting
* objects from versioning-suspended buckets</a>.</p>
* </li>
* </ul>
* <note>
* <ul>
* <li>
* <p>
* <b>Directory buckets</b> - S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets. You can only specify <code>null</code>
* to the <code>versionId</code> query parameter in the request.</p>
* <b>Directory buckets</b> - S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets.
* You can only specify <code>null</code> to the <code>versionId</code> query parameter in the
* request.</p>
* </li>
* <li>
* <p>
@@ -56,27 +68,25 @@ declare const DeleteObjectCommand_base: {
* </ul>
* </note>
* <p>To remove a specific version, you must use the <code>versionId</code> query parameter. Using this
* query parameter permanently deletes the version. If the object deleted is a delete marker, Amazon S3
* sets the response header <code>x-amz-delete-marker</code> to true. </p>
* <p>If the object you want to delete is in a bucket where the bucket versioning
* configuration is MFA Delete enabled, you must include the <code>x-amz-mfa</code> request
* header in the DELETE <code>versionId</code> request. Requests that include
* <code>x-amz-mfa</code> must use HTTPS. For more information about MFA Delete, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMFADelete.html">Using MFA Delete</a> in the <i>Amazon S3
* User Guide</i>. To see sample
* requests that use versioning, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectDELETE.html#ExampleVersionObjectDelete">Sample
* Request</a>. </p>
* query parameter permanently deletes the version. If the object deleted is a delete marker, Amazon S3 sets the
* response header <code>x-amz-delete-marker</code> to true. </p>
* <p>If the object you want to delete is in a bucket where the bucket versioning configuration is MFA
* Delete enabled, you must include the <code>x-amz-mfa</code> request header in the DELETE
* <code>versionId</code> request. Requests that include <code>x-amz-mfa</code> must use HTTPS. For more
* information about MFA Delete, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMFADelete.html">Using MFA Delete</a> in the <i>Amazon S3 User
* Guide</i>. To see sample requests that use versioning, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectDELETE.html#ExampleVersionObjectDelete">Sample Request</a>. </p>
* <note>
* <p>
* <b>Directory buckets</b> - MFA delete is not supported by directory buckets.</p>
* </note>
* <p>You can delete objects by explicitly calling DELETE Object or calling
* (<a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html">PutBucketLifecycle</a>) to enable Amazon S3 to remove them for you. If you want to block
* users or accounts from removing or deleting objects from your bucket, you must deny them
* the <code>s3:DeleteObject</code>, <code>s3:DeleteObjectVersion</code>, and
* <code>s3:PutLifeCycleConfiguration</code> actions. </p>
* <p>You can delete objects by explicitly calling DELETE Object or calling (<a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html">PutBucketLifecycle</a>) to enable Amazon S3 to
* remove them for you. If you want to block users or accounts from removing or deleting objects from your
* bucket, you must deny them the <code>s3:DeleteObject</code>, <code>s3:DeleteObjectVersion</code>, and
* <code>s3:PutLifeCycleConfiguration</code> actions. </p>
* <note>
* <p>
* <b>Directory buckets</b> - S3 Lifecycle is not supported by directory buckets.</p>
* <b>Directory buckets</b> -
* S3 Lifecycle is not supported by directory buckets.</p>
* </note>
* <dl>
* <dt>Permissions</dt>
@@ -84,20 +94,24 @@ declare const DeleteObjectCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - The following permissions are required in your policies when your
* <code>DeleteObjects</code> request includes specific headers.</p>
* <b>General purpose bucket permissions</b> - The following
* permissions are required in your policies when your <code>DeleteObjects</code> request
* includes specific headers.</p>
* <ul>
* <li>
* <p>
* <b>
* <code>s3:DeleteObject</code>
* </b> - To delete an object from a bucket, you must always have the <code>s3:DeleteObject</code> permission.</p>
* </b> - To delete an
* object from a bucket, you must always have the <code>s3:DeleteObject</code>
* permission.</p>
* </li>
* <li>
* <p>
* <b>
* <code>s3:DeleteObjectVersion</code>
* </b> - To delete a specific version of an object from a versioning-enabled bucket, you must have the <code>s3:DeleteObjectVersion</code> permission.</p>
* </b> - To delete a specific version of an object from a versioning-enabled
* bucket, you must have the <code>s3:DeleteObjectVersion</code> permission.</p>
* </li>
* </ul>
* </li>
@@ -30,13 +30,13 @@ declare const DeleteObjectTaggingCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Removes the entire tag set from the specified object. For more information about
* managing object tags, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-tagging.html"> Object Tagging</a>.</p>
* <p>To use this operation, you must have permission to perform the
* <code>s3:DeleteObjectTagging</code> action.</p>
* <p>To delete tags of a specific object version, add the <code>versionId</code> query
* parameter in the request. You will need permission for the
* <code>s3:DeleteObjectVersionTagging</code> action.</p>
* <p>Removes the entire tag set from the specified object. For more information about managing object
* tags, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-tagging.html"> Object
* Tagging</a>.</p>
* <p>To use this operation, you must have permission to perform the <code>s3:DeleteObjectTagging</code>
* action.</p>
* <p>To delete tags of a specific object version, add the <code>versionId</code> query parameter in the
* request. You will need permission for the <code>s3:DeleteObjectVersionTagging</code> action.</p>
* <p>The following operations are related to <code>DeleteObjectTagging</code>:</p>
* <ul>
* <li>
@@ -27,47 +27,44 @@ declare const DeleteObjectsCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>This operation enables you to delete multiple objects from a bucket using a single HTTP
* request. If you know the object keys that you want to delete, then this operation provides
* a suitable alternative to sending individual delete requests, reducing per-request
* overhead.</p>
* <p>The request can contain a list of up to 1,000 keys that you want to delete. In the XML, you
* provide the object key names, and optionally, version IDs if you want to delete a specific
* version of the object from a versioning-enabled bucket. For each key, Amazon S3 performs a
* delete operation and returns the result of that delete, success or failure, in the response.
* If the object specified in the request isn't found, Amazon S3 confirms the deletion by returning the result as deleted.</p>
* <p>This operation enables you to delete multiple objects from a bucket using a single HTTP request. If
* you know the object keys that you want to delete, then this operation provides a suitable alternative to
* sending individual delete requests, reducing per-request overhead.</p>
* <p>The request can contain a list of up to 1,000 keys that you want to delete. In the XML, you provide
* the object key names, and optionally, version IDs if you want to delete a specific version of the object
* from a versioning-enabled bucket. For each key, Amazon S3 performs a delete operation and returns the result
* of that delete, success or failure, in the response. If the object specified in the request isn't found,
* Amazon S3 confirms the deletion by returning the result as deleted.</p>
* <note>
* <ul>
* <li>
* <p>
* <b>Directory buckets</b> -
* S3 Versioning isn't enabled and supported for directory buckets.</p>
* S3 Versioning isn't enabled and supported for directory buckets.</p>
* </li>
* <li>
* <p>
* <b>Directory buckets</b> -
* For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* <b>Directory buckets</b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* </li>
* </ul>
* </note>
* <p>The operation supports two modes for the response: verbose and quiet. By default, the
* operation uses verbose mode in which the response includes the result of deletion of each
* key in your request. In quiet mode the response includes only keys where the delete
* operation encountered an error. For a successful deletion in a quiet mode, the operation
* does not return any information about the delete in the response body.</p>
* <p>When performing this action on an MFA Delete enabled bucket, that attempts to delete any
* versioned objects, you must include an MFA token. If you do not provide one, the entire
* request will fail, even if there are non-versioned objects you are trying to delete. If you
* provide an invalid token, whether there are versioned keys in the request or not, the
* entire Multi-Object Delete request will fail. For information about MFA Delete, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html#MultiFactorAuthenticationDelete">MFA
* Delete</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>The operation supports two modes for the response: verbose and quiet. By default, the operation uses
* verbose mode in which the response includes the result of deletion of each key in your request. In quiet
* mode the response includes only keys where the delete operation encountered an error. For a successful
* deletion in a quiet mode, the operation does not return any information about the delete in the response
* body.</p>
* <p>When performing this action on an MFA Delete enabled bucket, that attempts to delete any versioned
* objects, you must include an MFA token. If you do not provide one, the entire request will fail, even if
* there are non-versioned objects you are trying to delete. If you provide an invalid token, whether there
* are versioned keys in the request or not, the entire Multi-Object Delete request will fail. For
* information about MFA Delete, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html#MultiFactorAuthenticationDelete">MFA Delete</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>
* <b>Directory buckets</b> -
* MFA delete is not supported by directory buckets.</p>
* <b>Directory buckets</b> - MFA delete is not supported by directory buckets.</p>
* </note>
* <dl>
* <dt>Permissions</dt>
@@ -75,25 +72,24 @@ declare const DeleteObjectsCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - The
* following permissions are required in your policies when your
* <code>DeleteObjects</code> request includes specific headers.</p>
* <b>General purpose bucket permissions</b> - The following
* permissions are required in your policies when your <code>DeleteObjects</code> request
* includes specific headers.</p>
* <ul>
* <li>
* <p>
* <b>
* <code>s3:DeleteObject</code>
* </b>
* - To delete an object from a bucket, you must always specify
* the <code>s3:DeleteObject</code> permission.</p>
* </b> - To delete an
* object from a bucket, you must always specify the <code>s3:DeleteObject</code>
* permission.</p>
* </li>
* <li>
* <p>
* <b>
* <code>s3:DeleteObjectVersion</code>
* </b> - To delete a specific version of an object from a
* versioning-enabled bucket, you must specify the
* <code>s3:DeleteObjectVersion</code> permission.</p>
* </b> - To delete a specific version of an object from a versioning-enabled
* bucket, you must specify the <code>s3:DeleteObjectVersion</code> permission.</p>
* </li>
* </ul>
* </li>
@@ -113,19 +109,16 @@ declare const DeleteObjectsCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket</b> - The Content-MD5
* request header is required for all Multi-Object Delete requests. Amazon S3 uses
* the header value to ensure that your request body has not been altered in
* transit.</p>
* <b>General purpose bucket</b> - The Content-MD5 request header
* is required for all Multi-Object Delete requests. Amazon S3 uses the header value to ensure that
* your request body has not been altered in transit.</p>
* </li>
* <li>
* <p>
* <b>Directory bucket</b> - The
* Content-MD5 request header or a additional checksum request header
* (including <code>x-amz-checksum-crc32</code>,
* <code>x-amz-checksum-crc32c</code>, <code>x-amz-checksum-sha1</code>, or
* <code>x-amz-checksum-sha256</code>) is required for all Multi-Object
* Delete requests.</p>
* <b>Directory bucket</b> - The Content-MD5 request header
* or a additional checksum request header (including <code>x-amz-checksum-crc32</code>,
* <code>x-amz-checksum-crc32c</code>, <code>x-amz-checksum-sha1</code>, or
* <code>x-amz-checksum-sha256</code>) is required for all Multi-Object Delete requests.</p>
* </li>
* </ul>
* </dd>
@@ -30,16 +30,16 @@ declare const DeletePublicAccessBlockCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Removes the <code>PublicAccessBlock</code> configuration for an Amazon S3 bucket. To use this
* operation, you must have the <code>s3:PutBucketPublicAccessBlock</code> permission. For
* more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing
* Access Permissions to Your Amazon S3 Resources</a>.</p>
* <p>Removes the <code>PublicAccessBlock</code> configuration for an Amazon S3 bucket. To use this operation,
* you must have the <code>s3:PutBucketPublicAccessBlock</code> permission. For more information about
* permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
* Resources</a>.</p>
* <p>The following operations are related to <code>DeletePublicAccessBlock</code>:</p>
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html">Using Amazon S3 Block
* Public Access</a>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html">Using
* Amazon S3 Block Public Access</a>
* </p>
* </li>
* <li>
@@ -30,25 +30,22 @@ declare const GetBucketAccelerateConfigurationCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>This implementation of the GET action uses the <code>accelerate</code> subresource to
* return the Transfer Acceleration state of a bucket, which is either <code>Enabled</code> or
* <code>Suspended</code>. Amazon S3 Transfer Acceleration is a bucket-level feature that
* enables you to perform faster data transfers to and from Amazon S3.</p>
* <p>This implementation of the GET action uses the <code>accelerate</code> subresource to return the
* Transfer Acceleration state of a bucket, which is either <code>Enabled</code> or <code>Suspended</code>.
* Amazon S3 Transfer Acceleration is a bucket-level feature that enables you to perform faster data transfers
* to and from Amazon S3.</p>
* <p>To use this operation, you must have permission to perform the
* <code>s3:GetAccelerateConfiguration</code> action. The bucket owner has this permission
* by default. The bucket owner can grant this permission to others. For more information
* about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing
* Access Permissions to your Amazon S3 Resources</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <code>s3:GetAccelerateConfiguration</code> action. The bucket owner has this permission by default.
* The bucket owner can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to your Amazon S3
* Resources</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>You set the Transfer Acceleration state of an existing bucket to <code>Enabled</code> or
* <code>Suspended</code> by using the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAccelerateConfiguration.html">PutBucketAccelerateConfiguration</a> operation. </p>
* <p>A GET <code>accelerate</code> request does not return a state value for a bucket that
* has no transfer acceleration state. A bucket has no Transfer Acceleration state if a state
* has never been set on the bucket. </p>
* <p>For more information about transfer acceleration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html">Transfer Acceleration</a> in
* the Amazon S3 User Guide.</p>
* <p>The following operations are related to
* <code>GetBucketAccelerateConfiguration</code>:</p>
* <code>Suspended</code> by using the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAccelerateConfiguration.html">PutBucketAccelerateConfiguration</a> operation. </p>
* <p>A GET <code>accelerate</code> request does not return a state value for a bucket that has no
* transfer acceleration state. A bucket has no Transfer Acceleration state if a state has never been set
* on the bucket. </p>
* <p>For more information about transfer acceleration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html">Transfer Acceleration</a> in the
* Amazon S3 User Guide.</p>
* <p>The following operations are related to <code>GetBucketAccelerateConfiguration</code>:</p>
* <ul>
* <li>
* <p>
@@ -37,23 +37,21 @@ declare const GetBucketAclCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>This implementation of the <code>GET</code> action uses the <code>acl</code> subresource
* to return the access control list (ACL) of a bucket. To use <code>GET</code> to return the
* ACL of the bucket, you must have the <code>READ_ACP</code> access to the bucket. If
* <code>READ_ACP</code> permission is granted to the anonymous user, you can return the
* ACL of the bucket without using an authorization header.</p>
* <p>This implementation of the <code>GET</code> action uses the <code>acl</code> subresource to return
* the access control list (ACL) of a bucket. To use <code>GET</code> to return the ACL of the bucket, you
* must have the <code>READ_ACP</code> access to the bucket. If <code>READ_ACP</code> permission is granted
* to the anonymous user, you can return the ACL of the bucket without using an authorization
* header.</p>
* <p>When you use this API operation with an access point, provide the alias of the access point in place of the bucket name.</p>
* <p>When you use this API operation with an Object Lambda access point, provide the alias of the Object Lambda access point in place of the bucket name.
* If the Object Lambda access point alias in a request is not valid, the error code <code>InvalidAccessPointAliasError</code> is returned.
* For more information about <code>InvalidAccessPointAliasError</code>, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList">List of
* Error Codes</a>.</p>
* <note>
* <p>If your bucket uses the bucket owner enforced setting for S3 Object Ownership,
* requests to read ACLs are still supported and return the
* <code>bucket-owner-full-control</code> ACL with the owner being the account that
* created the bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html"> Controlling object
* ownership and disabling ACLs</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>If your bucket uses the bucket owner enforced setting for S3 Object Ownership, requests to read
* ACLs are still supported and return the <code>bucket-owner-full-control</code> ACL with the owner
* being the account that created the bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html"> Controlling object ownership and
* disabling ACLs</a> in the <i>Amazon S3 User Guide</i>.</p>
* </note>
* <p>The following operations are related to <code>GetBucketAcl</code>:</p>
* <ul>
@@ -30,18 +30,15 @@ declare const GetBucketAnalyticsConfigurationCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>This implementation of the GET action returns an analytics configuration (identified by
* the analytics configuration ID) from the bucket.</p>
* <p>This implementation of the GET action returns an analytics configuration (identified by the
* analytics configuration ID) from the bucket.</p>
* <p>To use this operation, you must have permissions to perform the
* <code>s3:GetAnalyticsConfiguration</code> action. The bucket owner has this permission
* by default. The bucket owner can grant this permission to others. For more information
* about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources"> Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing
* Access Permissions to Your Amazon S3 Resources</a> in the
* <i>Amazon S3 User Guide</i>. </p>
* <p>For information about Amazon S3 analytics feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html">Amazon S3 Analytics Storage Class
* Analysis</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>The following operations are related to
* <code>GetBucketAnalyticsConfiguration</code>:</p>
* <code>s3:GetAnalyticsConfiguration</code> action. The bucket owner has this permission by default. The
* bucket owner can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources"> Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
* Resources</a> in the <i>Amazon S3 User Guide</i>. </p>
* <p>For information about Amazon S3 analytics feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html">Amazon S3 Analytics Storage Class Analysis</a>
* in the <i>Amazon S3 User Guide</i>.</p>
* <p>The following operations are related to <code>GetBucketAnalyticsConfiguration</code>:</p>
* <ul>
* <li>
* <p>
@@ -31,17 +31,15 @@ declare const GetBucketCorsCommand_base: {
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Returns the Cross-Origin Resource Sharing (CORS) configuration information set for the
* bucket.</p>
* <p> To use this operation, you must have permission to perform the
* <code>s3:GetBucketCORS</code> action. By default, the bucket owner has this permission
* and can grant it to others.</p>
* bucket.</p>
* <p> To use this operation, you must have permission to perform the <code>s3:GetBucketCORS</code>
* action. By default, the bucket owner has this permission and can grant it to others.</p>
* <p>When you use this API operation with an access point, provide the alias of the access point in place of the bucket name.</p>
* <p>When you use this API operation with an Object Lambda access point, provide the alias of the Object Lambda access point in place of the bucket name.
* If the Object Lambda access point alias in a request is not valid, the error code <code>InvalidAccessPointAliasError</code> is returned.
* For more information about <code>InvalidAccessPointAliasError</code>, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList">List of
* Error Codes</a>.</p>
* <p> For more information about CORS, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html"> Enabling Cross-Origin Resource
* Sharing</a>.</p>
* <p> For more information about CORS, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html"> Enabling Cross-Origin Resource Sharing</a>.</p>
* <p>The following operations are related to <code>GetBucketCors</code>:</p>
* <ul>
* <li>
@@ -27,23 +27,22 @@ declare const GetBucketEncryptionCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Returns the default encryption configuration for an Amazon S3 bucket. By default, all buckets
* have a default encryption configuration that uses server-side encryption with Amazon S3 managed
* keys (SSE-S3). </p>
* <p>Returns the default encryption configuration for an Amazon S3 bucket. By default, all buckets have a
* default encryption configuration that uses server-side encryption with Amazon S3 managed keys (SSE-S3). </p>
* <note>
* <ul>
* <li>
* <p>
* <b>General purpose buckets</b> - For information
* about the bucket default encryption feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html">Amazon S3 Bucket Default
* Encryption</a> in the <i>Amazon S3 User Guide</i>.</p>
* <b>General purpose buckets</b> - For information about the bucket
* default encryption feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html">Amazon S3 Bucket Default Encryption</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* </li>
* <li>
* <p>
* <b>Directory buckets</b> -
* For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. For information about the default encryption
* configuration in directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-bucket-encryption.html">Setting
* default server-side encryption behavior for directory buckets</a>.</p>
* For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. For information about the default encryption configuration in
* directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-bucket-encryption.html">Setting default server-side
* encryption behavior for directory buckets</a>.</p>
* </li>
* </ul>
* </note>
@@ -54,19 +53,17 @@ declare const GetBucketEncryptionCommand_base: {
* <li>
* <p>
* <b>General purpose bucket permissions</b> - The
* <code>s3:GetEncryptionConfiguration</code> permission is required in a
* policy. The bucket owner has this permission by default. The bucket owner
* can grant this permission to others. For more information about permissions,
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access
* Permissions to Your Amazon S3 Resources</a>.</p>
* <code>s3:GetEncryptionConfiguration</code> permission is required in a policy. The bucket
* owner has this permission by default. The bucket owner can grant this permission to others.
* For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your
* Amazon S3 Resources</a>.</p>
* </li>
* <li>
* <p>
* <b>Directory bucket permissions</b> -
* To grant access to this API operation, you must have the
* <code>s3express:GetEncryptionConfiguration</code> permission in
* an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.
* For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* <b>Directory bucket permissions</b> - To grant access to
* this API operation, you must have the <code>s3express:GetEncryptionConfiguration</code>
* permission in an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.
* For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* </li>
* </ul>
* </dd>
@@ -30,16 +30,14 @@ declare const GetBucketInventoryConfigurationCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Returns an inventory configuration (identified by the inventory configuration ID) from
* the bucket.</p>
* <p>Returns an S3 Inventory configuration (identified by the inventory configuration ID) from the
* bucket.</p>
* <p>To use this operation, you must have permissions to perform the
* <code>s3:GetInventoryConfiguration</code> action. The bucket owner has this permission
* by default and can grant this permission to others. For more information about permissions,
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing
* Access Permissions to Your Amazon S3 Resources</a>.</p>
* <code>s3:GetInventoryConfiguration</code> action. The bucket owner has this permission by default and
* can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
* Resources</a>.</p>
* <p>For information about the Amazon S3 inventory feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html">Amazon S3 Inventory</a>.</p>
* <p>The following operations are related to
* <code>GetBucketInventoryConfiguration</code>:</p>
* <p>The following operations are related to <code>GetBucketInventoryConfiguration</code>:</p>
* <ul>
* <li>
* <p>
@@ -27,19 +27,17 @@ declare const GetBucketLifecycleConfigurationCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Returns the lifecycle configuration information set on the bucket. For information about
* lifecycle configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html">Object Lifecycle
* Management</a>.</p>
* <p>Bucket lifecycle configuration now supports specifying a lifecycle rule using an object
* key name prefix, one or more object tags, object size, or any combination of these.
* Accordingly, this section describes the latest API, which is compatible with the new
* functionality. The previous version of the API supported filtering based only on an object
* key name prefix, which is supported for general purpose buckets for backward compatibility.
* For the related API description, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycle.html">GetBucketLifecycle</a>.</p>
* <p>Returns the lifecycle configuration information set on the bucket. For information about lifecycle
* configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html">Object Lifecycle Management</a>.</p>
* <p>Bucket lifecycle configuration now supports specifying a lifecycle rule using an object key name
* prefix, one or more object tags, object size, or any combination of these. Accordingly, this section
* describes the latest API, which is compatible with the new functionality. The previous version of the
* API supported filtering based only on an object key name prefix, which is supported for general purpose
* buckets for backward compatibility. For the related API description, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycle.html">GetBucketLifecycle</a>.</p>
* <note>
* <p>Lifecyle configurations for directory buckets only support expiring objects and
* cancelling multipart uploads. Expiring of versioned objects, transitions and tag filters
* are not supported.</p>
* <p>Lifecyle configurations for directory buckets only support expiring objects and cancelling
* multipart uploads. Expiring of versioned objects, transitions and tag filters are not
* supported.</p>
* </note>
* <dl>
* <dt>Permissions</dt>
@@ -47,31 +45,26 @@ declare const GetBucketLifecycleConfigurationCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - By
* default, all Amazon S3 resources are private, including buckets, objects, and
* related subresources (for example, lifecycle configuration and website
* configuration). Only the resource owner (that is, the Amazon Web Services account that
* created it) can access the resource. The resource owner can optionally grant
* access permissions to others by writing an access policy. For this
* operation, a user must have the <code>s3:GetLifecycleConfiguration</code>
* permission.</p>
* <p>For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access
* Permissions to Your Amazon S3 Resources</a>.</p>
* <b>General purpose bucket permissions</b> - By default, all Amazon S3
* resources are private, including buckets, objects, and related subresources (for example,
* lifecycle configuration and website configuration). Only the resource owner (that is, the
* Amazon Web Services account that created it) can access the resource. The resource owner can optionally
* grant access permissions to others by writing an access policy. For this operation, a user
* must have the <code>s3:GetLifecycleConfiguration</code> permission.</p>
* <p>For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your
* Amazon S3 Resources</a>.</p>
* </li>
* </ul>
* <ul>
* <li>
* <p>
* <b>Directory bucket permissions</b> -
* You must have the <code>s3express:GetLifecycleConfiguration</code>
* permission in an IAM identity-based policy to use this operation.
* Cross-account access to this API operation isn't supported. The resource
* owner can optionally grant access permissions to others by creating a role
* or user for them as long as they are within the same account as the owner
* and resource.</p>
* <p>For more information about directory bucket policies and permissions, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Authorizing Regional endpoint APIs with IAM</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <b>Directory bucket permissions</b> - You must have the
* <code>s3express:GetLifecycleConfiguration</code> permission in an IAM identity-based policy
* to use this operation. Cross-account access to this API operation isn't supported. The
* resource owner can optionally grant access permissions to others by creating a role or user
* for them as long as they are within the same account as the owner and resource.</p>
* <p>For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Authorizing Regional endpoint APIs with IAM</a> in the <i>Amazon S3 User
* Guide</i>.</p>
* <note>
* <p>
* <b>Directory buckets </b> - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format <code>https://s3express-control.<i>region-code</i>.amazonaws.com/<i>bucket-name</i>
@@ -86,9 +79,8 @@ declare const GetBucketLifecycleConfigurationCommand_base: {
* <dt>HTTP Host header syntax</dt>
* <dd>
* <p>
* <b>Directory buckets </b> - The HTTP Host
* header syntax is
* <code>s3express-control.<i>region</i>.amazonaws.com</code>.</p>
* <b>Directory buckets </b> - The HTTP Host header syntax is
* <code>s3express-control.<i>region</i>.amazonaws.com</code>.</p>
* </dd>
* </dl>
* <p>
@@ -110,8 +102,7 @@ declare const GetBucketLifecycleConfigurationCommand_base: {
* </ul>
* </li>
* </ul>
* <p>The following operations are related to
* <code>GetBucketLifecycleConfiguration</code>:</p>
* <p>The following operations are related to <code>GetBucketLifecycleConfiguration</code>:</p>
* <ul>
* <li>
* <p>
@@ -31,17 +31,16 @@ declare const GetBucketLocationCommand_base: {
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Returns the Region the bucket resides in. You set the bucket's Region using the
* <code>LocationConstraint</code> request parameter in a <code>CreateBucket</code>
* request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html">CreateBucket</a>.</p>
* <code>LocationConstraint</code> request parameter in a <code>CreateBucket</code> request. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html">CreateBucket</a>.</p>
* <p>When you use this API operation with an access point, provide the alias of the access point in place of the bucket name.</p>
* <p>When you use this API operation with an Object Lambda access point, provide the alias of the Object Lambda access point in place of the bucket name.
* If the Object Lambda access point alias in a request is not valid, the error code <code>InvalidAccessPointAliasError</code> is returned.
* For more information about <code>InvalidAccessPointAliasError</code>, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList">List of
* Error Codes</a>.</p>
* <note>
* <p>We recommend that you use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html">HeadBucket</a> to return the Region
* that a bucket resides in. For backward compatibility, Amazon S3 continues to support
* GetBucketLocation.</p>
* <p>We recommend that you use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html">HeadBucket</a> to return the Region that a bucket
* resides in. For backward compatibility, Amazon S3 continues to support GetBucketLocation.</p>
* </note>
* <p>The following operations are related to <code>GetBucketLocation</code>:</p>
* <ul>
@@ -37,8 +37,8 @@ declare const GetBucketLoggingCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Returns the logging status of a bucket and the permissions users have to view and modify
* that status.</p>
* <p>Returns the logging status of a bucket and the permissions users have to view and modify that
* status.</p>
* <p>The following operations are related to <code>GetBucketLogging</code>:</p>
* <ul>
* <li>
@@ -0,0 +1,146 @@
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { GetBucketMetadataConfigurationOutput, GetBucketMetadataConfigurationRequest } from "../models/models_0";
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link GetBucketMetadataConfigurationCommand}.
*/
export interface GetBucketMetadataConfigurationCommandInput extends GetBucketMetadataConfigurationRequest {
}
/**
* @public
*
* The output of {@link GetBucketMetadataConfigurationCommand}.
*/
export interface GetBucketMetadataConfigurationCommandOutput extends GetBucketMetadataConfigurationOutput, __MetadataBearer {
}
declare const GetBucketMetadataConfigurationCommand_base: {
new (input: GetBucketMetadataConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<GetBucketMetadataConfigurationCommandInput, GetBucketMetadataConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: GetBucketMetadataConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<GetBucketMetadataConfigurationCommandInput, GetBucketMetadataConfigurationCommandOutput, S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Retrieves the S3 Metadata configuration for a general purpose bucket. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html">Accelerating
* data discovery with S3 Metadata</a> in the <i>Amazon S3 User Guide</i>. </p>
* <note>
* <p>You can use the V2 <code>GetBucketMetadataConfiguration</code> API operation with V1 or V2
* metadata configurations. However, if you try to use the V1
* <code>GetBucketMetadataTableConfiguration</code> API operation with V2 configurations, you
* will receive an HTTP <code>405 Method Not Allowed</code> error.</p>
* </note>
* <dl>
* <dt>Permissions</dt>
* <dd>
* <p>To use this operation, you must have the <code>s3:GetBucketMetadataTableConfiguration</code>
* permission. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html">Setting up permissions for
* configuring metadata tables</a> in the <i>Amazon S3 User Guide</i>. </p>
* <note>
* <p>The IAM policy action name is the same for the V1 and V2 API operations.</p>
* </note>
* </dd>
* </dl>
* <p>The following operations are related to <code>GetBucketMetadataConfiguration</code>:</p>
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a>
* </p>
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketMetadataConfiguration.html">DeleteBucketMetadataConfiguration</a>
* </p>
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UpdateBucketMetadataInventoryTableConfiguration.html">UpdateBucketMetadataInventoryTableConfiguration</a>
* </p>
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UpdateBucketMetadataJournalTableConfiguration.html">UpdateBucketMetadataJournalTableConfiguration</a>
* </p>
* </li>
* </ul>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { S3Client, GetBucketMetadataConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
* // const { S3Client, GetBucketMetadataConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
* const client = new S3Client(config);
* const input = { // GetBucketMetadataConfigurationRequest
* Bucket: "STRING_VALUE", // required
* ExpectedBucketOwner: "STRING_VALUE",
* };
* const command = new GetBucketMetadataConfigurationCommand(input);
* const response = await client.send(command);
* // { // GetBucketMetadataConfigurationOutput
* // GetBucketMetadataConfigurationResult: { // GetBucketMetadataConfigurationResult
* // MetadataConfigurationResult: { // MetadataConfigurationResult
* // DestinationResult: { // DestinationResult
* // TableBucketType: "aws" || "customer",
* // TableBucketArn: "STRING_VALUE",
* // TableNamespace: "STRING_VALUE",
* // },
* // JournalTableConfigurationResult: { // JournalTableConfigurationResult
* // TableStatus: "STRING_VALUE", // required
* // Error: { // ErrorDetails
* // ErrorCode: "STRING_VALUE",
* // ErrorMessage: "STRING_VALUE",
* // },
* // TableName: "STRING_VALUE", // required
* // TableArn: "STRING_VALUE",
* // RecordExpiration: { // RecordExpiration
* // Expiration: "ENABLED" || "DISABLED", // required
* // Days: Number("int"),
* // },
* // },
* // InventoryTableConfigurationResult: { // InventoryTableConfigurationResult
* // ConfigurationState: "ENABLED" || "DISABLED", // required
* // TableStatus: "STRING_VALUE",
* // Error: {
* // ErrorCode: "STRING_VALUE",
* // ErrorMessage: "STRING_VALUE",
* // },
* // TableName: "STRING_VALUE",
* // TableArn: "STRING_VALUE",
* // },
* // },
* // },
* // };
*
* ```
*
* @param GetBucketMetadataConfigurationCommandInput - {@link GetBucketMetadataConfigurationCommandInput}
* @returns {@link GetBucketMetadataConfigurationCommandOutput}
* @see {@link GetBucketMetadataConfigurationCommandInput} for command's `input` shape.
* @see {@link GetBucketMetadataConfigurationCommandOutput} for command's `response` shape.
* @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
*
* @throws {@link S3ServiceException}
* <p>Base exception class for all service exceptions from S3 service.</p>
*
*
* @public
*/
export declare class GetBucketMetadataConfigurationCommand extends GetBucketMetadataConfigurationCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: GetBucketMetadataConfigurationRequest;
output: GetBucketMetadataConfigurationOutput;
};
sdk: {
input: GetBucketMetadataConfigurationCommandInput;
output: GetBucketMetadataConfigurationCommandOutput;
};
};
}
@@ -27,17 +27,34 @@ declare const GetBucketMetadataTableConfigurationCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>
* Retrieves the metadata table configuration for a general purpose bucket. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html">Accelerating data
* discovery with S3 Metadata</a> in the <i>Amazon S3 User Guide</i>. </p>
* <important>
* <p>
* We recommend that you retrieve your S3 Metadata configurations by using the V2
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketMetadataTableConfiguration.html">GetBucketMetadataTableConfiguration</a> API operation. We no longer recommend using the V1
* <code>GetBucketMetadataTableConfiguration</code> API operation.
* </p>
* <p>If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete
* and re-create your configuration by using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a> so that you can expire journal table records and create
* a live inventory table.</p>
* </important>
* <p> Retrieves the V1 S3 Metadata configuration for a general purpose bucket. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html">Accelerating
* data discovery with S3 Metadata</a> in the <i>Amazon S3 User Guide</i>. </p>
* <note>
* <p>You can use the V2 <code>GetBucketMetadataConfiguration</code> API operation with V1 or V2
* metadata table configurations. However, if you try to use the V1
* <code>GetBucketMetadataTableConfiguration</code> API operation with V2 configurations, you
* will receive an HTTP <code>405 Method Not Allowed</code> error.</p>
* <p>Make sure that you update your processes to use the new V2 API operations
* (<code>CreateBucketMetadataConfiguration</code>, <code>GetBucketMetadataConfiguration</code>, and
* <code>DeleteBucketMetadataConfiguration</code>) instead of the V1 API operations. </p>
* </note>
* <dl>
* <dt>Permissions</dt>
* <dd>
* <p>To use this operation, you must have the <code>s3:GetBucketMetadataTableConfiguration</code> permission. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html">Setting up
* permissions for configuring metadata tables</a> in the
* <i>Amazon S3 User Guide</i>. </p>
* <p>To use this operation, you must have the <code>s3:GetBucketMetadataTableConfiguration</code>
* permission. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html">Setting up permissions for
* configuring metadata tables</a> in the <i>Amazon S3 User Guide</i>. </p>
* </dd>
* </dl>
* <p>The following operations are related to <code>GetBucketMetadataTableConfiguration</code>:</p>
@@ -30,17 +30,15 @@ declare const GetBucketMetricsConfigurationCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Gets a metrics configuration (specified by the metrics configuration ID) from the
* bucket. Note that this doesn't include the daily storage metrics.</p>
* <p>Gets a metrics configuration (specified by the metrics configuration ID) from the bucket. Note that
* this doesn't include the daily storage metrics.</p>
* <p> To use this operation, you must have permissions to perform the
* <code>s3:GetMetricsConfiguration</code> action. The bucket owner has this permission by
* default. The bucket owner can grant this permission to others. For more information about
* permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing
* Access Permissions to Your Amazon S3 Resources</a>.</p>
* <p> For information about CloudWatch request metrics for Amazon S3, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html">Monitoring
* Metrics with Amazon CloudWatch</a>.</p>
* <p>The following operations are related to
* <code>GetBucketMetricsConfiguration</code>:</p>
* <code>s3:GetMetricsConfiguration</code> action. The bucket owner has this permission by default. The
* bucket owner can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
* Resources</a>.</p>
* <p> For information about CloudWatch request metrics for Amazon S3, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html">Monitoring Metrics with Amazon
* CloudWatch</a>.</p>
* <p>The following operations are related to <code>GetBucketMetricsConfiguration</code>:</p>
* <ul>
* <li>
* <p>
@@ -59,7 +57,8 @@ declare const GetBucketMetricsConfigurationCommand_base: {
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html">Monitoring Metrics with Amazon CloudWatch</a>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html">Monitoring
* Metrics with Amazon CloudWatch</a>
* </p>
* </li>
* </ul>
@@ -32,19 +32,18 @@ declare const GetBucketNotificationConfigurationCommand_base: {
* </note>
* <p>Returns the notification configuration of a bucket.</p>
* <p>If notifications are not enabled on the bucket, the action returns an empty
* <code>NotificationConfiguration</code> element.</p>
* <p>By default, you must be the bucket owner to read the notification configuration of a
* bucket. However, the bucket owner can use a bucket policy to grant permission to other
* users to read this configuration with the <code>s3:GetBucketNotification</code>
* permission.</p>
* <code>NotificationConfiguration</code> element.</p>
* <p>By default, you must be the bucket owner to read the notification configuration of a bucket.
* However, the bucket owner can use a bucket policy to grant permission to other users to read this
* configuration with the <code>s3:GetBucketNotification</code> permission.</p>
* <p>When you use this API operation with an access point, provide the alias of the access point in place of the bucket name.</p>
* <p>When you use this API operation with an Object Lambda access point, provide the alias of the Object Lambda access point in place of the bucket name.
* If the Object Lambda access point alias in a request is not valid, the error code <code>InvalidAccessPointAliasError</code> is returned.
* For more information about <code>InvalidAccessPointAliasError</code>, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList">List of
* Error Codes</a>.</p>
* <p>For more information about setting and reading the notification configuration on a
* bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html">Setting Up Notification of Bucket Events</a>. For more information about bucket
* policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html">Using Bucket Policies</a>.</p>
* <p>For more information about setting and reading the notification configuration on a bucket, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html">Setting Up Notification
* of Bucket Events</a>. For more information about bucket policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html">Using Bucket Policies</a>.</p>
* <p>The following action is related to <code>GetBucketNotification</code>:</p>
* <ul>
* <li>
@@ -30,24 +30,25 @@ declare const GetBucketOwnershipControlsCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Retrieves <code>OwnershipControls</code> for an Amazon S3 bucket. To use this operation, you
* must have the <code>s3:GetBucketOwnershipControls</code> permission. For more information
* about Amazon S3 permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html">Specifying permissions in a
* policy</a>. </p>
* <p>Retrieves <code>OwnershipControls</code> for an Amazon S3 bucket. To use this operation, you must have
* the <code>s3:GetBucketOwnershipControls</code> permission. For more information about Amazon S3 permissions,
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html">Specifying
* permissions in a policy</a>. </p>
* <note>
* <p>A bucket doesn't have <code>OwnershipControls</code> settings in the following cases:</p>
* <ul>
* <li>
* <p>The bucket was created before the <code>BucketOwnerEnforced</code> ownership setting was introduced and you've never explicitly applied this value</p>
* <p>The bucket was created before the <code>BucketOwnerEnforced</code> ownership setting was
* introduced and you've never explicitly applied this value</p>
* </li>
* <li>
* <p>You've manually deleted the bucket ownership control value using the <code>DeleteBucketOwnershipControls</code> API operation.</p>
* <p>You've manually deleted the bucket ownership control value using the
* <code>DeleteBucketOwnershipControls</code> API operation.</p>
* </li>
* </ul>
* <p>By default, Amazon S3 sets <code>OwnershipControls</code> for all newly created buckets.</p>
* </note>
* <p>For information about Amazon S3 Object Ownership, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Using Object
* Ownership</a>. </p>
* <p>For information about Amazon S3 Object Ownership, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Using Object Ownership</a>. </p>
* <p>The following operations are related to <code>GetBucketOwnershipControls</code>:</p>
* <ul>
* <li>
@@ -39,51 +39,46 @@ declare const GetBucketPolicyCommand_base: {
* <dl>
* <dt>Permissions</dt>
* <dd>
* <p>If you are using an identity other than the root user of the Amazon Web Services account that
* owns the bucket, the calling identity must both have the
* <code>GetBucketPolicy</code> permissions on the specified bucket and belong to
* the bucket owner's account in order to use this operation.</p>
* <p>If you don't have <code>GetBucketPolicy</code> permissions, Amazon S3 returns a
* <code>403 Access Denied</code> error. If you have the correct permissions, but
* you're not using an identity that belongs to the bucket owner's account, Amazon S3
* returns a <code>405 Method Not Allowed</code> error.</p>
* <p>If you are using an identity other than the root user of the Amazon Web Services account that owns the
* bucket, the calling identity must both have the <code>GetBucketPolicy</code> permissions on the
* specified bucket and belong to the bucket owner's account in order to use this operation.</p>
* <p>If you don't have <code>GetBucketPolicy</code> permissions, Amazon S3 returns a <code>403 Access
* Denied</code> error. If you have the correct permissions, but you're not using an identity that
* belongs to the bucket owner's account, Amazon S3 returns a <code>405 Method Not Allowed</code>
* error.</p>
* <important>
* <p>To ensure that bucket owners don't inadvertently lock themselves out of
* their own buckets, the root principal in a bucket owner's Amazon Web Services account can
* perform the <code>GetBucketPolicy</code>, <code>PutBucketPolicy</code>, and
* <code>DeleteBucketPolicy</code> API actions, even if their bucket policy
* explicitly denies the root principal's access. Bucket owner root principals can
* only be blocked from performing these API actions by VPC endpoint policies and
* Amazon Web Services Organizations policies.</p>
* <p>To ensure that bucket owners don't inadvertently lock themselves out of their own buckets,
* the root principal in a bucket owner's Amazon Web Services account can perform the
* <code>GetBucketPolicy</code>, <code>PutBucketPolicy</code>, and
* <code>DeleteBucketPolicy</code> API actions, even if their bucket policy explicitly denies the
* root principal's access. Bucket owner root principals can only be blocked from performing these
* API actions by VPC endpoint policies and Amazon Web Services Organizations policies.</p>
* </important>
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - The
* <code>s3:GetBucketPolicy</code> permission is required in a policy. For
* more information about general purpose buckets bucket policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html">Using Bucket Policies and User Policies</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <code>s3:GetBucketPolicy</code> permission is required in a policy. For more information
* about general purpose buckets bucket policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html">Using Bucket Policies and User
* Policies</a> in the <i>Amazon S3 User Guide</i>.</p>
* </li>
* <li>
* <p>
* <b>Directory bucket permissions</b> -
* To grant access to this API operation, you must have the
* <code>s3express:GetBucketPolicy</code> permission in
* an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.
* For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* <b>Directory bucket permissions</b> - To grant access to
* this API operation, you must have the <code>s3express:GetBucketPolicy</code> permission in
* an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.
* For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* </li>
* </ul>
* </dd>
* <dt>Example bucket policies</dt>
* <dd>
* <p>
* <b>General purpose buckets example bucket policies</b>
* - See <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html">Bucket policy
* examples</a> in the <i>Amazon S3 User Guide</i>.</p>
* <b>General purpose buckets example bucket policies</b> - See <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html">Bucket policy
* examples</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>
* <b>Directory bucket example bucket policies</b>
* - See <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example bucket policies for S3 Express One Zone</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <b>Directory bucket example bucket policies</b> - See <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example
* bucket policies for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* </dd>
* <dt>HTTP Host header syntax</dt>
* <dd>
@@ -30,17 +30,16 @@ declare const GetBucketPolicyStatusCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Retrieves the policy status for an Amazon S3 bucket, indicating whether the bucket is public.
* In order to use this operation, you must have the <code>s3:GetBucketPolicyStatus</code>
* permission. For more information about Amazon S3 permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a
* Policy</a>.</p>
* <p>Retrieves the policy status for an Amazon S3 bucket, indicating whether the bucket is public. In order to
* use this operation, you must have the <code>s3:GetBucketPolicyStatus</code> permission. For more
* information about Amazon S3 permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a
* Policy</a>.</p>
* <p> For more information about when Amazon S3 considers a bucket public, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status">The Meaning of "Public"</a>. </p>
* <p>The following operations are related to <code>GetBucketPolicyStatus</code>:</p>
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html">Using Amazon S3 Block
* Public Access</a>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html">Using Amazon S3 Block Public Access</a>
* </p>
* </li>
* <li>
@@ -32,20 +32,19 @@ declare const GetBucketReplicationCommand_base: {
* </note>
* <p>Returns the replication configuration of a bucket.</p>
* <note>
* <p> It can take a while to propagate the put or delete a replication configuration to
* all Amazon S3 systems. Therefore, a get request soon after put or delete can return a wrong
* result. </p>
* <p> It can take a while to propagate the put or delete a replication configuration to all Amazon S3
* systems. Therefore, a get request soon after put or delete can return a wrong result. </p>
* </note>
* <p> For information about replication configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html">Replication</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>This action requires permissions for the <code>s3:GetReplicationConfiguration</code>
* action. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html">Using Bucket Policies and User
* Policies</a>.</p>
* <p>If you include the <code>Filter</code> element in a replication configuration, you must
* also include the <code>DeleteMarkerReplication</code> and <code>Priority</code> elements.
* The response also returns those elements.</p>
* <p>For information about <code>GetBucketReplication</code> errors, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ReplicationErrorCodeList">List of
* replication-related error codes</a>
* <i>Amazon S3 User Guide</i>.</p>
* <p>This action requires permissions for the <code>s3:GetReplicationConfiguration</code> action. For
* more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html">Using Bucket Policies and User
* Policies</a>.</p>
* <p>If you include the <code>Filter</code> element in a replication configuration, you must also include
* the <code>DeleteMarkerReplication</code> and <code>Priority</code> elements. The response also returns
* those elements.</p>
* <p>For information about <code>GetBucketReplication</code> errors, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ReplicationErrorCodeList">List of replication-related
* error codes</a>
* </p>
* <p>The following operations are related to <code>GetBucketReplication</code>:</p>
* <ul>
@@ -30,9 +30,8 @@ declare const GetBucketRequestPaymentCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Returns the request payment configuration of a bucket. To use this version of the
* operation, you must be the bucket owner. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html">Requester Pays
* Buckets</a>.</p>
* <p>Returns the request payment configuration of a bucket. To use this version of the operation, you
* must be the bucket owner. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html">Requester Pays Buckets</a>.</p>
* <p>The following operations are related to <code>GetBucketRequestPayment</code>:</p>
* <ul>
* <li>
@@ -31,9 +31,8 @@ declare const GetBucketTaggingCommand_base: {
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Returns the tag set associated with the bucket.</p>
* <p>To use this operation, you must have permission to perform the
* <code>s3:GetBucketTagging</code> action. By default, the bucket owner has this
* permission and can grant this permission to others.</p>
* <p>To use this operation, you must have permission to perform the <code>s3:GetBucketTagging</code>
* action. By default, the bucket owner has this permission and can grant this permission to others.</p>
* <p>
* <code>GetBucketTagging</code> has the following special error:</p>
* <ul>
@@ -32,9 +32,9 @@ declare const GetBucketVersioningCommand_base: {
* </note>
* <p>Returns the versioning state of a bucket.</p>
* <p>To retrieve the versioning state of a bucket, you must be the bucket owner.</p>
* <p>This implementation also returns the MFA Delete status of the versioning state. If the
* MFA Delete status is <code>enabled</code>, the bucket owner must use an authentication
* device to change the versioning state of the bucket.</p>
* <p>This implementation also returns the MFA Delete status of the versioning state. If the MFA Delete
* status is <code>enabled</code>, the bucket owner must use an authentication device to change the
* versioning state of the bucket.</p>
* <p>The following operations are related to <code>GetBucketVersioning</code>:</p>
* <ul>
* <li>
@@ -30,13 +30,12 @@ declare const GetBucketWebsiteCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Returns the website configuration for a bucket. To host website on Amazon S3, you can
* configure a bucket as website by adding a website configuration. For more information about
* hosting websites, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html">Hosting Websites on Amazon S3</a>. </p>
* <p>This GET action requires the <code>S3:GetBucketWebsite</code> permission. By default,
* only the bucket owner can read the bucket website configuration. However, bucket owners can
* allow other users to read the website configuration by writing a bucket policy granting
* them the <code>S3:GetBucketWebsite</code> permission.</p>
* <p>Returns the website configuration for a bucket. To host website on Amazon S3, you can configure a bucket
* as website by adding a website configuration. For more information about hosting websites, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html">Hosting Websites on Amazon S3</a>. </p>
* <p>This GET action requires the <code>S3:GetBucketWebsite</code> permission. By default, only the
* bucket owner can read the bucket website configuration. However, bucket owners can allow other users to
* read the website configuration by writing a bucket policy granting them the
* <code>S3:GetBucketWebsite</code> permission.</p>
* <p>The following operations are related to <code>GetBucketWebsite</code>:</p>
* <ul>
* <li>
@@ -31,20 +31,18 @@ declare const GetObjectAclCommand_base: {
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Returns the access control list (ACL) of an object. To use this operation, you must have
* <code>s3:GetObjectAcl</code> permissions or <code>READ_ACP</code> access to the object.
* For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#acl-access-policy-permission-mapping">Mapping of ACL permissions and access policy permissions</a> in the <i>Amazon S3
* User Guide</i>
* <code>s3:GetObjectAcl</code> permissions or <code>READ_ACP</code> access to the object. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#acl-access-policy-permission-mapping">Mapping of ACL
* permissions and access policy permissions</a> in the <i>Amazon S3 User Guide</i>
* </p>
* <p>This functionality is not supported for Amazon S3 on Outposts.</p>
* <p>By default, GET returns ACL information about the current version of an object. To
* return ACL information about a different version, use the versionId subresource.</p>
* <p>By default, GET returns ACL information about the current version of an object. To return ACL
* information about a different version, use the versionId subresource.</p>
* <note>
* <p>If your bucket uses the bucket owner enforced setting for S3 Object Ownership,
* requests to read ACLs are still supported and return the
* <code>bucket-owner-full-control</code> ACL with the owner being the account that
* created the bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html"> Controlling object
* ownership and disabling ACLs</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>If your bucket uses the bucket owner enforced setting for S3 Object Ownership, requests to read
* ACLs are still supported and return the <code>bucket-owner-full-control</code> ACL with the owner
* being the account that created the bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html"> Controlling object ownership and
* disabling ACLs</a> in the <i>Amazon S3 User Guide</i>.</p>
* </note>
* <p>The following operations are related to <code>GetObjectAcl</code>:</p>
* <ul>
@@ -27,16 +27,15 @@ declare const GetObjectAttributesCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Retrieves all of the metadata from an object without returning the object itself. This
* operation is useful if you're interested only in an object's metadata. </p>
* <p>Retrieves all of the metadata from an object without returning the object itself. This operation is
* useful if you're interested only in an object's metadata. </p>
* <p>
* <code>GetObjectAttributes</code> combines the functionality of <code>HeadObject</code>
* and <code>ListParts</code>. All of the data returned with both of those individual calls
* can be returned with a single call to <code>GetObjectAttributes</code>.</p>
* <code>GetObjectAttributes</code> combines the functionality of <code>HeadObject</code> and
* <code>ListParts</code>. All of the data returned with both of those individual calls can be returned
* with a single call to <code>GetObjectAttributes</code>.</p>
* <note>
* <p>
* <b>Directory buckets</b> -
* For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* <b>Directory buckets</b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
* <i>Amazon S3 User Guide</i>.</p>
@@ -47,37 +46,33 @@ declare const GetObjectAttributesCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - To
* use <code>GetObjectAttributes</code>, you must have READ access to the object.</p>
* <p>The other permissions that you need to use this operation depend on
* whether the bucket is versioned and if a version ID is passed in the <code>GetObjectAttributes</code> request. </p>
* <b>General purpose bucket permissions</b> - To use
* <code>GetObjectAttributes</code>, you must have READ access to the object.</p>
* <p>The other permissions that you need to use this operation depend on whether the bucket is
* versioned and if a version ID is passed in the <code>GetObjectAttributes</code> request. </p>
* <ul>
* <li>
* <p>If you pass a version ID in your request, you need both the <code>s3:GetObjectVersion</code> and
* <code>s3:GetObjectVersionAttributes</code> permissions.</p>
* <p>If you pass a version ID in your request, you need both the
* <code>s3:GetObjectVersion</code> and <code>s3:GetObjectVersionAttributes</code>
* permissions.</p>
* </li>
* <li>
* <p>If you do not pass a version ID in your request, you need the
* <code>s3:GetObject</code> and <code>s3:GetObjectAttributes</code>
* permissions. </p>
* <code>s3:GetObject</code> and <code>s3:GetObjectAttributes</code> permissions. </p>
* </li>
* </ul>
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying
* Permissions in a Policy</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>If the object that you request does
* not exist, the error Amazon S3 returns depends on whether you also have the
* <code>s3:ListBucket</code> permission.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a
* Policy</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>If the object that you request does not exist, the error Amazon S3 returns depends on whether
* you also have the <code>s3:ListBucket</code> permission.</p>
* <ul>
* <li>
* <p>If you have the <code>s3:ListBucket</code> permission on the
* bucket, Amazon S3 returns an HTTP status code <code>404 Not Found</code>
* ("no such key") error.</p>
* <p>If you have the <code>s3:ListBucket</code> permission on the bucket, Amazon S3 returns an
* HTTP status code <code>404 Not Found</code> ("no such key") error.</p>
* </li>
* <li>
* <p>If you don't have the <code>s3:ListBucket</code> permission, Amazon S3
* returns an HTTP status code <code>403 Forbidden</code> ("access
* denied") error.</p>
* <p>If you don't have the <code>s3:ListBucket</code> permission, Amazon S3 returns an HTTP
* status code <code>403 Forbidden</code> ("access denied") error.</p>
* </li>
* </ul>
* </li>
@@ -90,34 +85,30 @@ declare const GetObjectAttributesCommand_base: {
* <code>CreateSession</code>
* </a>.</p>
* <p>If
* the
* object is encrypted with SSE-KMS, you must also have the
* <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions
* in IAM identity-based policies and KMS key policies for the KMS
* key.</p>
* the
* object is encrypted with SSE-KMS, you must also have the <code>kms:GenerateDataKey</code> and
* <code>kms:Decrypt</code> permissions in IAM identity-based policies and KMS key policies
* for the KMS key.</p>
* </li>
* </ul>
* </dd>
* <dt>Encryption</dt>
* <dd>
* <note>
* <p>Encryption request headers, like <code>x-amz-server-side-encryption</code>,
* should not be sent for <code>HEAD</code> requests if your object uses
* server-side encryption with Key Management Service (KMS) keys (SSE-KMS), dual-layer
* server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or server-side
* encryption with Amazon S3 managed encryption keys (SSE-S3). The
* <code>x-amz-server-side-encryption</code> header is used when you
* <code>PUT</code> an object to S3 and want to specify the encryption method.
* If you include this header in a <code>GET</code> request for an object that
* uses these types of keys, youll get an HTTP <code>400 Bad Request</code>
* error. It's because the encryption method can't be changed when you retrieve
* the object.</p>
* <p>Encryption request headers, like <code>x-amz-server-side-encryption</code>, should not be
* sent for <code>HEAD</code> requests if your object uses server-side encryption with Key Management Service
* (KMS) keys (SSE-KMS), dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or
* server-side encryption with Amazon S3 managed encryption keys (SSE-S3). The
* <code>x-amz-server-side-encryption</code> header is used when you <code>PUT</code> an object
* to S3 and want to specify the encryption method. If you include this header in a
* <code>GET</code> request for an object that uses these types of keys, youll get an HTTP
* <code>400 Bad Request</code> error. It's because the encryption method can't be changed when
* you retrieve the object.</p>
* </note>
* <p>If you encrypted an object when you stored the object in Amazon S3 by using server-side encryption with customer-provided
* encryption keys (SSE-C), then when you retrieve
* the metadata from the object, you must use the following headers. These headers provide the
* server with the encryption key required to retrieve the object's metadata. The
* headers are: </p>
* <p>If you encrypted an object when you stored the object in Amazon S3 by using server-side encryption
* with customer-provided encryption keys (SSE-C), then when you retrieve the metadata from the
* object, you must use the following headers. These headers provide the server with the encryption
* key required to retrieve the object's metadata. The headers are: </p>
* <ul>
* <li>
* <p>
@@ -135,13 +126,12 @@ declare const GetObjectAttributesCommand_base: {
* </p>
* </li>
* </ul>
* <p>For more information about SSE-C, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Server-Side
* Encryption (Using Customer-Provided Encryption Keys)</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>For more information about SSE-C, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Server-Side Encryption (Using
* Customer-Provided Encryption Keys)</a> in the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>
* <b>Directory bucket permissions</b> -
* For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) and server-side encryption with KMS keys (SSE-KMS) (<code>aws:kms</code>). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your
* For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) and server-side encryption with KMS keys (SSE-KMS) (<code>aws:kms</code>). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your
* <code>CreateSession</code> requests or <code>PUT</code> object requests. Then, new objects
* are automatically encrypted with the desired encryption settings. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html">Protecting data with server-side encryption</a> in the <i>Amazon S3 User Guide</i>. For more information about the encryption overriding behaviors in directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html">Specifying server-side encryption with KMS for new object uploads</a>.</p>
@@ -150,47 +140,42 @@ declare const GetObjectAttributesCommand_base: {
* <dt>Versioning</dt>
* <dd>
* <p>
* <b>Directory buckets</b> -
* S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets. You can only specify <code>null</code> to the
* <code>versionId</code> query parameter in the request.</p>
* <b>Directory buckets</b> - S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets.
* You can only specify <code>null</code> to the <code>versionId</code> query parameter in the
* request.</p>
* </dd>
* <dt>Conditional request headers</dt>
* <dd>
* <p>Consider the following when using request headers:</p>
* <ul>
* <li>
* <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code>
* headers are present in the request as follows, then Amazon S3 returns the HTTP
* status code <code>200 OK</code> and the data requested:</p>
* <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are
* present in the request as follows, then Amazon S3 returns the HTTP status code <code>200 OK</code>
* and the data requested:</p>
* <ul>
* <li>
* <p>
* <code>If-Match</code> condition evaluates to
* <code>true</code>.</p>
* <code>If-Match</code> condition evaluates to <code>true</code>.</p>
* </li>
* <li>
* <p>
* <code>If-Unmodified-Since</code> condition evaluates to
* <code>false</code>.</p>
* <code>If-Unmodified-Since</code> condition evaluates to <code>false</code>.</p>
* </li>
* </ul>
* <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
* </li>
* <li>
* <p>If both of the <code>If-None-Match</code> and
* <code>If-Modified-Since</code> headers are present in the request as
* follows, then Amazon S3 returns the HTTP status code <code>304 Not
* Modified</code>:</p>
* <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are
* present in the request as follows, then Amazon S3 returns the HTTP status code <code>304 Not
* Modified</code>:</p>
* <ul>
* <li>
* <p>
* <code>If-None-Match</code> condition evaluates to
* <code>false</code>.</p>
* <code>If-None-Match</code> condition evaluates to <code>false</code>.</p>
* </li>
* <li>
* <p>
* <code>If-Modified-Since</code> condition evaluates to
* <code>true</code>.</p>
* <code>If-Modified-Since</code> condition evaluates to <code>true</code>.</p>
* </li>
* </ul>
* <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
@@ -31,18 +31,17 @@ declare const GetObjectCommand_base: {
* <p>Retrieves an object from Amazon S3.</p>
* <p>In the <code>GetObject</code> request, specify the full key name for the object.</p>
* <p>
* <b>General purpose buckets</b> - Both the virtual-hosted-style
* requests and the path-style requests are supported. For a virtual hosted-style request
* example, if you have the object <code>photos/2006/February/sample.jpg</code>, specify the
* object key name as <code>/photos/2006/February/sample.jpg</code>. For a path-style request
* example, if you have the object <code>photos/2006/February/sample.jpg</code> in the bucket
* named <code>examplebucket</code>, specify the object key name as
* <code>/examplebucket/photos/2006/February/sample.jpg</code>. For more information about
* request types, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingSpecifyBucket">HTTP Host
* Header Bucket Specification</a> in the <i>Amazon S3 User Guide</i>.</p>
* <b>General purpose buckets</b> - Both the virtual-hosted-style requests
* and the path-style requests are supported. For a virtual hosted-style request example, if you have the
* object <code>photos/2006/February/sample.jpg</code>, specify the object key name as
* <code>/photos/2006/February/sample.jpg</code>. For a path-style request example, if you have the
* object <code>photos/2006/February/sample.jpg</code> in the bucket named <code>examplebucket</code>,
* specify the object key name as <code>/examplebucket/photos/2006/February/sample.jpg</code>. For more
* information about request types, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingSpecifyBucket">HTTP Host Header Bucket
* Specification</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>
* <b>Directory buckets</b> -
* Only virtual-hosted-style requests are supported. For a virtual hosted-style request example, if you have the object <code>photos/2006/February/sample.jpg</code> in the bucket named <code>amzn-s3-demo-bucket--usw2-az1--x-s3</code>, specify the object key name as <code>/photos/2006/February/sample.jpg</code>. Also, when you make requests to this API operation, your requests are sent to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* Only virtual-hosted-style requests are supported. For a virtual hosted-style request example, if you have the object <code>photos/2006/February/sample.jpg</code> in the bucket named <code>amzn-s3-demo-bucket--usw2-az1--x-s3</code>, specify the object key name as <code>/photos/2006/February/sample.jpg</code>. Also, when you make requests to this API operation, your requests are sent to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
* <i>Amazon S3 User Guide</i>.</p>
@@ -52,35 +51,28 @@ declare const GetObjectCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - You
* must have the required permissions in a policy. To use
* <code>GetObject</code>, you must have the <code>READ</code> access to the
* object (or version). If you grant <code>READ</code> access to the anonymous
* user, the <code>GetObject</code> operation returns the object without using
* an authorization header. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying permissions in a policy</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>If you include a <code>versionId</code> in your request header, you must
* have the <code>s3:GetObjectVersion</code> permission to access a specific
* version of an object. The <code>s3:GetObject</code> permission is not
* required in this scenario.</p>
* <p>If you request the current version of an object without a specific
* <code>versionId</code> in the request header, only the
* <code>s3:GetObject</code> permission is required. The
* <code>s3:GetObjectVersion</code> permission is not required in this
* scenario. </p>
* <p>If the object that you request doesnt exist, the error that Amazon S3 returns
* depends on whether you also have the <code>s3:ListBucket</code>
* permission.</p>
* <b>General purpose bucket permissions</b> - You must have the
* required permissions in a policy. To use <code>GetObject</code>, you must have the
* <code>READ</code> access to the object (or version). If you grant <code>READ</code> access
* to the anonymous user, the <code>GetObject</code> operation returns the object without using
* an authorization header. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying permissions in a
* policy</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>If you include a <code>versionId</code> in your request header, you must have the
* <code>s3:GetObjectVersion</code> permission to access a specific version of an object. The
* <code>s3:GetObject</code> permission is not required in this scenario.</p>
* <p>If you request the current version of an object without a specific <code>versionId</code>
* in the request header, only the <code>s3:GetObject</code> permission is required. The
* <code>s3:GetObjectVersion</code> permission is not required in this scenario. </p>
* <p>If the object that you request doesnt exist, the error that Amazon S3 returns depends on
* whether you also have the <code>s3:ListBucket</code> permission.</p>
* <ul>
* <li>
* <p>If you have the <code>s3:ListBucket</code> permission on the
* bucket, Amazon S3 returns an HTTP status code <code>404 Not Found</code>
* error.</p>
* <p>If you have the <code>s3:ListBucket</code> permission on the bucket, Amazon S3 returns an
* HTTP status code <code>404 Not Found</code> error.</p>
* </li>
* <li>
* <p>If you dont have the <code>s3:ListBucket</code> permission, Amazon S3
* returns an HTTP status code <code>403 Access Denied</code>
* error.</p>
* <p>If you dont have the <code>s3:ListBucket</code> permission, Amazon S3 returns an HTTP
* status code <code>403 Access Denied</code> error.</p>
* </li>
* </ul>
* </li>
@@ -92,60 +84,54 @@ declare const GetObjectCommand_base: {
* Amazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html">
* <code>CreateSession</code>
* </a>.</p>
* <p>If
* the
* object is encrypted using SSE-KMS, you must also have the
* <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions
* in IAM identity-based policies and KMS key policies for the KMS
* key.</p>
* <p>If the object is
* encrypted using SSE-KMS, you must also have the <code>kms:GenerateDataKey</code> and
* <code>kms:Decrypt</code> permissions in IAM identity-based policies and KMS key policies
* for the KMS key.</p>
* </li>
* </ul>
* </dd>
* <dt>Storage classes</dt>
* <dd>
* <p>If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval
* storage class, the S3 Glacier Deep Archive storage class, the
* S3 Intelligent-Tiering Archive Access tier, or the S3 Intelligent-Tiering Deep Archive Access tier,
* before you can retrieve the object you must first restore a copy using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html">RestoreObject</a>. Otherwise, this operation returns an
* <code>InvalidObjectState</code> error. For information about restoring archived
* objects, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html">Restoring Archived
* Objects</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval storage class,
* the S3 Glacier Deep Archive storage class, the S3 Intelligent-Tiering Archive Access tier, or the
* S3 Intelligent-Tiering Deep Archive Access tier, before you can retrieve the object you must first restore a
* copy using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html">RestoreObject</a>. Otherwise, this operation returns an <code>InvalidObjectState</code>
* error. For information about restoring archived objects, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html">Restoring Archived Objects</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>
* <b>Directory buckets </b> -
* Directory buckets only support <code>EXPRESS_ONEZONE</code> (the S3 Express One Zone storage class) in Availability Zones and <code>ONEZONE_IA</code> (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.
* Directory buckets only support <code>EXPRESS_ONEZONE</code> (the S3 Express One Zone storage class) in Availability Zones and <code>ONEZONE_IA</code> (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.
* Unsupported storage class values won't write a destination object and will respond with the HTTP status code <code>400 Bad Request</code>.</p>
* </dd>
* <dt>Encryption</dt>
* <dd>
* <p>Encryption request headers, like <code>x-amz-server-side-encryption</code>,
* should not be sent for the <code>GetObject</code> requests, if your object uses
* server-side encryption with Amazon S3 managed encryption keys (SSE-S3), server-side
* encryption with Key Management Service (KMS) keys (SSE-KMS), or dual-layer server-side
* encryption with Amazon Web Services KMS keys (DSSE-KMS). If you include the header in your
* <code>GetObject</code> requests for the object that uses these types of keys,
* youll get an HTTP <code>400 Bad Request</code> error.</p>
* <p>Encryption request headers, like <code>x-amz-server-side-encryption</code>, should not be sent
* for the <code>GetObject</code> requests, if your object uses server-side encryption with Amazon S3
* managed encryption keys (SSE-S3), server-side encryption with Key Management Service (KMS) keys (SSE-KMS), or
* dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS). If you include the header in
* your <code>GetObject</code> requests for the object that uses these types of keys, youll get an
* HTTP <code>400 Bad Request</code> error.</p>
* <p>
* <b>Directory buckets</b> -
* For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. SSE-C isn't supported. For more
* For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. SSE-C isn't supported. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html">Protecting data with server-side encryption</a> in the <i>Amazon S3 User Guide</i>.</p>
* </dd>
* <dt>Overriding response header values through the request</dt>
* <dd>
* <p>There are times when you want to override certain response header values of a
* <code>GetObject</code> response. For example, you might override the
* <code>Content-Disposition</code> response header value through your
* <code>GetObject</code> request.</p>
* <p>You can override values for a set of response headers. These modified response
* header values are included only in a successful response, that is, when the HTTP
* status code <code>200 OK</code> is returned. The headers you can override using
* the following query parameters in the request are a subset of the headers that
* Amazon S3 accepts when you create an object. </p>
* <p>The response headers that you can override for the <code>GetObject</code>
* response are <code>Cache-Control</code>, <code>Content-Disposition</code>,
* <code>Content-Encoding</code>, <code>Content-Language</code>,
* <code>Content-Type</code>, and <code>Expires</code>.</p>
* <p>To override values for a set of response headers in the <code>GetObject</code>
* response, you can use the following query parameters in the request.</p>
* <code>GetObject</code> response. For example, you might override the
* <code>Content-Disposition</code> response header value through your <code>GetObject</code>
* request.</p>
* <p>You can override values for a set of response headers. These modified response header values
* are included only in a successful response, that is, when the HTTP status code <code>200 OK</code>
* is returned. The headers you can override using the following query parameters in the request are
* a subset of the headers that Amazon S3 accepts when you create an object. </p>
* <p>The response headers that you can override for the <code>GetObject</code> response are
* <code>Cache-Control</code>, <code>Content-Disposition</code>, <code>Content-Encoding</code>,
* <code>Content-Language</code>, <code>Content-Type</code>, and <code>Expires</code>.</p>
* <p>To override values for a set of response headers in the <code>GetObject</code> response, you
* can use the following query parameters in the request.</p>
* <ul>
* <li>
* <p>
@@ -179,9 +165,9 @@ declare const GetObjectCommand_base: {
* </li>
* </ul>
* <note>
* <p>When you use these parameters, you must sign the request by using either an
* Authorization header or a presigned URL. These parameters cannot be used with
* an unsigned (anonymous) request.</p>
* <p>When you use these parameters, you must sign the request by using either an Authorization
* header or a presigned URL. These parameters cannot be used with an unsigned (anonymous)
* request.</p>
* </note>
* </dd>
* <dt>HTTP Host header syntax</dt>
@@ -294,13 +280,12 @@ declare const GetObjectCommand_base: {
*
* @throws {@link InvalidObjectState} (client fault)
* <p>Object is archived and inaccessible until restored.</p>
* <p>If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval storage
* class, the S3 Glacier Deep Archive storage class, the S3 Intelligent-Tiering Archive Access
* tier, or the S3 Intelligent-Tiering Deep Archive Access tier, before you can retrieve the object you
* must first restore a copy using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html">RestoreObject</a>. Otherwise, this
* operation returns an <code>InvalidObjectState</code> error. For information about restoring
* archived objects, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html">Restoring Archived Objects</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* <p>If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval storage class, the
* S3 Glacier Deep Archive storage class, the S3 Intelligent-Tiering Archive Access tier, or the
* S3 Intelligent-Tiering Deep Archive Access tier, before you can retrieve the object you must first restore a copy
* using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html">RestoreObject</a>. Otherwise, this operation returns an <code>InvalidObjectState</code> error. For
* information about restoring archived objects, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html">Restoring Archived Objects</a> in the
* <i>Amazon S3 User Guide</i>.</p>
*
* @throws {@link NoSuchKey} (client fault)
* <p>The specified key does not exist.</p>
@@ -30,8 +30,7 @@ declare const GetObjectLegalHoldCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Gets an object's current legal hold status. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking
* Objects</a>.</p>
* <p>Gets an object's current legal hold status. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>.</p>
* <p>This functionality is not supported for Amazon S3 on Outposts.</p>
* <p>The following action is related to <code>GetObjectLegalHold</code>:</p>
* <ul>
@@ -30,9 +30,9 @@ declare const GetObjectLockConfigurationCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Gets the Object Lock configuration for a bucket. The rule specified in the Object Lock
* configuration will be applied by default to every new object placed in the specified
* bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>.</p>
* <p>Gets the Object Lock configuration for a bucket. The rule specified in the Object Lock configuration
* will be applied by default to every new object placed in the specified bucket. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>.</p>
* <p>The following action is related to <code>GetObjectLockConfiguration</code>:</p>
* <ul>
* <li>
@@ -30,8 +30,7 @@ declare const GetObjectRetentionCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Retrieves an object's retention settings. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking
* Objects</a>.</p>
* <p>Retrieves an object's retention settings. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>.</p>
* <p>This functionality is not supported for Amazon S3 on Outposts.</p>
* <p>The following action is related to <code>GetObjectRetention</code>:</p>
* <ul>
@@ -30,16 +30,14 @@ declare const GetObjectTaggingCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Returns the tag-set of an object. You send the GET request against the tagging
* subresource associated with the object.</p>
* <p>To use this operation, you must have permission to perform the
* <code>s3:GetObjectTagging</code> action. By default, the GET action returns information
* about current version of an object. For a versioned bucket, you can have multiple versions
* of an object in your bucket. To retrieve tags of any other version, use the versionId query
* parameter. You also need permission for the <code>s3:GetObjectVersionTagging</code>
* action.</p>
* <p> By default, the bucket owner has this permission and can grant this permission to
* others.</p>
* <p>Returns the tag-set of an object. You send the GET request against the tagging subresource
* associated with the object.</p>
* <p>To use this operation, you must have permission to perform the <code>s3:GetObjectTagging</code>
* action. By default, the GET action returns information about current version of an object. For a
* versioned bucket, you can have multiple versions of an object in your bucket. To retrieve tags of any
* other version, use the versionId query parameter. You also need permission for the
* <code>s3:GetObjectVersionTagging</code> action.</p>
* <p> By default, the bucket owner has this permission and can grant this permission to others.</p>
* <p> For information about the Amazon S3 object tagging feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-tagging.html">Object Tagging</a>.</p>
* <p>The following actions are related to <code>GetObjectTagging</code>:</p>
* <ul>
@@ -31,12 +31,11 @@ declare const GetObjectTorrentCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Returns torrent files from a bucket. BitTorrent can save you bandwidth when you're
* distributing large files.</p>
* <p>Returns torrent files from a bucket. BitTorrent can save you bandwidth when you're distributing
* large files.</p>
* <note>
* <p>You can get torrent only for objects that are less than 5 GB in size, and that are
* not encrypted using server-side encryption with a customer-provided encryption
* key.</p>
* <p>You can get torrent only for objects that are less than 5 GB in size, and that are not encrypted
* using server-side encryption with a customer-provided encryption key.</p>
* </note>
* <p>To use GET, you must have READ access to the object.</p>
* <p>This functionality is not supported for Amazon S3 on Outposts.</p>
@@ -30,25 +30,23 @@ declare const GetPublicAccessBlockCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Retrieves the <code>PublicAccessBlock</code> configuration for an Amazon S3 bucket. To use
* this operation, you must have the <code>s3:GetBucketPublicAccessBlock</code> permission.
* For more information about Amazon S3 permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a
* Policy</a>.</p>
* <p>Retrieves the <code>PublicAccessBlock</code> configuration for an Amazon S3 bucket. To use this
* operation, you must have the <code>s3:GetBucketPublicAccessBlock</code> permission. For more information
* about Amazon S3 permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a
* Policy</a>.</p>
* <important>
* <p>When Amazon S3 evaluates the <code>PublicAccessBlock</code> configuration for a bucket or
* an object, it checks the <code>PublicAccessBlock</code> configuration for both the
* bucket (or the bucket that contains the object) and the bucket owner's account. If the
* <code>PublicAccessBlock</code> settings are different between the bucket and the
* account, Amazon S3 uses the most restrictive combination of the bucket-level and
* account-level settings.</p>
* <p>When Amazon S3 evaluates the <code>PublicAccessBlock</code> configuration for a bucket or an object, it
* checks the <code>PublicAccessBlock</code> configuration for both the bucket (or the bucket that
* contains the object) and the bucket owner's account. If the <code>PublicAccessBlock</code> settings
* are different between the bucket and the account, Amazon S3 uses the most restrictive combination of the
* bucket-level and account-level settings.</p>
* </important>
* <p>For more information about when Amazon S3 considers a bucket or an object public, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status">The Meaning of "Public"</a>.</p>
* <p>The following operations are related to <code>GetPublicAccessBlock</code>:</p>
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html">Using Amazon S3 Block
* Public Access</a>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html">Using Amazon S3 Block Public Access</a>
* </p>
* </li>
* <li>
@@ -27,33 +27,31 @@ declare const HeadBucketCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>You can use this operation to determine if a bucket exists and if you have permission to
* access it. The action returns a <code>200 OK</code> if the bucket exists and you have
* permission to access it.</p>
* <p>You can use this operation to determine if a bucket exists and if you have permission to access it.
* The action returns a <code>200 OK</code> if the bucket exists and you have permission to access
* it.</p>
* <note>
* <p>If the bucket does not exist or you do not have permission to access it, the
* <code>HEAD</code> request returns a generic <code>400 Bad Request</code>, <code>403
* Forbidden</code> or <code>404 Not Found</code> code. A message body is not included,
* so you cannot determine the exception beyond these HTTP response codes.</p>
* <p>If the bucket does not exist or you do not have permission to access it, the <code>HEAD</code>
* request returns a generic <code>400 Bad Request</code>, <code>403 Forbidden</code> or <code>404 Not
* Found</code> code. A message body is not included, so you cannot determine the exception beyond
* these HTTP response codes.</p>
* </note>
* <dl>
* <dt>Authentication and authorization</dt>
* <dd>
* <p>
* <b>General purpose buckets</b> - Request to public
* buckets that grant the s3:ListBucket permission publicly do not need to be signed.
* All other <code>HeadBucket</code> requests must be authenticated and signed by
* using IAM credentials (access key ID and secret access key for the IAM
* identities). All headers with the <code>x-amz-</code> prefix, including
* <code>x-amz-copy-source</code>, must be signed. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a>.</p>
* <b>General purpose buckets</b> - Request to public buckets that
* grant the s3:ListBucket permission publicly do not need to be signed. All other
* <code>HeadBucket</code> requests must be authenticated and signed by using IAM credentials
* (access key ID and secret access key for the IAM identities). All headers with the
* <code>x-amz-</code> prefix, including <code>x-amz-copy-source</code>, must be signed. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a>.</p>
* <p>
* <b>Directory buckets</b> - You must use IAM
* credentials to authenticate and authorize your access to the
* <code>HeadBucket</code> API operation, instead of using the temporary security
* credentials through the <code>CreateSession</code> API operation.</p>
* <p>Amazon Web Services CLI or SDKs handles authentication and authorization on your
* behalf.</p>
* <b>Directory buckets</b> - You must use IAM credentials to
* authenticate and authorize your access to the <code>HeadBucket</code> API operation, instead of
* using the temporary security credentials through the <code>CreateSession</code> API
* operation.</p>
* <p>Amazon Web Services CLI or SDKs handles authentication and authorization on your behalf.</p>
* </dd>
* <dt>Permissions</dt>
* <dd>
@@ -61,26 +59,26 @@ declare const HeadBucketCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - To
* use this operation, you must have permissions to perform the
* <code>s3:ListBucket</code> action. The bucket owner has this permission
* by default and can grant this permission to others. For more information
* about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing access
* permissions to your Amazon S3 resources</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <b>General purpose bucket permissions</b> - To use this
* operation, you must have permissions to perform the <code>s3:ListBucket</code> action. The
* bucket owner has this permission by default and can grant this permission to others. For more
* information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing access permissions to your
* Amazon S3 resources</a> in the <i>Amazon S3 User Guide</i>.</p>
* </li>
* <li>
* <p>
* <b>Directory bucket permissions</b> -
* You must have the <b>
* <b>Directory bucket permissions</b> - You must have the
* <b>
* <code>s3express:CreateSession</code>
* </b> permission in the
* <code>Action</code> element of a policy. By default, the session is in
* the <code>ReadWrite</code> mode. If you want to restrict the access, you can
* explicitly set the <code>s3express:SessionMode</code> condition key to
* <code>ReadOnly</code> on the bucket.</p>
* <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 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 Identity and Access Management (IAM) identity-based policies for
* S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* <code>Action</code> element of a policy. By default, the session is in the
* <code>ReadWrite</code> mode. If you want to restrict the access, you can explicitly set the
* <code>s3express:SessionMode</code> condition key to <code>ReadOnly</code> on the
* bucket.</p>
* <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
* 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
* Identity and Access Management (IAM) identity-based policies for S3 Express One Zone</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* </li>
* </ul>
* </dd>
@@ -27,20 +27,17 @@ declare const HeadObjectCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>The <code>HEAD</code> operation retrieves metadata from an object without returning the
* object itself. This operation is useful if you're interested only in an object's
* metadata.</p>
* <p>The <code>HEAD</code> operation retrieves metadata from an object without returning the object
* itself. This operation is useful if you're interested only in an object's metadata.</p>
* <note>
* <p>A <code>HEAD</code> request has the same options as a <code>GET</code> operation on
* an object. The response is identical to the <code>GET</code> response except that there
* is no response body. Because of this, if the <code>HEAD</code> request generates an
* error, it returns a generic code, such as <code>400 Bad Request</code>, <code>403
* Forbidden</code>, <code>404 Not Found</code>, <code>405 Method Not Allowed</code>,
* <code>412 Precondition Failed</code>, or <code>304 Not Modified</code>. It's not
* possible to retrieve the exact exception of these error codes.</p>
* <p>A <code>HEAD</code> request has the same options as a <code>GET</code> operation on an object. The
* response is identical to the <code>GET</code> response except that there is no response body. Because
* of this, if the <code>HEAD</code> request generates an error, it returns a generic code, such as
* <code>400 Bad Request</code>, <code>403 Forbidden</code>, <code>404 Not Found</code>, <code>405
* Method Not Allowed</code>, <code>412 Precondition Failed</code>, or <code>304 Not Modified</code>.
* It's not possible to retrieve the exact exception of these error codes.</p>
* </note>
* <p>Request headers are limited to 8 KB in size. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTCommonRequestHeaders.html">Common
* Request Headers</a>.</p>
* <p>Request headers are limited to 8 KB in size. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTCommonRequestHeaders.html">Common Request Headers</a>.</p>
* <dl>
* <dt>Permissions</dt>
* <dd>
@@ -48,26 +45,23 @@ declare const HeadObjectCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - To
* use <code>HEAD</code>, you must have the <code>s3:GetObject</code>
* permission. You need the relevant read object (or version) permission for
* this operation. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html">Actions, resources, and
* condition keys for Amazon S3</a> in the <i>Amazon S3 User
* Guide</i>. For more information about the permissions to S3 API
* operations by S3 resource types, see <a href="/AmazonS3/latest/userguide/using-with-s3-policy-actions.html">Required permissions for Amazon S3 API operations</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>If the object you request doesn't exist, the error that Amazon S3 returns
* depends on whether you also have the <code>s3:ListBucket</code>
* permission.</p>
* <b>General purpose bucket permissions</b> - To use
* <code>HEAD</code>, you must have the <code>s3:GetObject</code> permission. You need the
* relevant read object (or version) permission for this operation. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html">Actions, resources,
* and condition keys for Amazon S3</a> in the <i>Amazon S3 User Guide</i>. For more
* information about the permissions to S3 API operations by S3 resource types, see <a href="/AmazonS3/latest/userguide/using-with-s3-policy-actions.html">Required permissions for
* Amazon S3 API operations</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>If the object you request doesn't exist, the error that Amazon S3 returns depends on whether
* you also have the <code>s3:ListBucket</code> permission.</p>
* <ul>
* <li>
* <p>If you have the <code>s3:ListBucket</code> permission on the
* bucket, Amazon S3 returns an HTTP status code <code>404 Not Found</code>
* error.</p>
* <p>If you have the <code>s3:ListBucket</code> permission on the bucket, Amazon S3 returns an
* HTTP status code <code>404 Not Found</code> error.</p>
* </li>
* <li>
* <p>If you dont have the <code>s3:ListBucket</code> permission, Amazon S3
* returns an HTTP status code <code>403 Forbidden</code> error.</p>
* <p>If you dont have the <code>s3:ListBucket</code> permission, Amazon S3 returns an HTTP
* status code <code>403 Forbidden</code> error.</p>
* </li>
* </ul>
* </li>
@@ -79,34 +73,31 @@ declare const HeadObjectCommand_base: {
* Amazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html">
* <code>CreateSession</code>
* </a>.</p>
* <p>If you enable <code>x-amz-checksum-mode</code> in the request and the
* object is encrypted with Amazon Web Services Key Management Service (Amazon Web Services KMS), you must
* also have the <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code>
* permissions in IAM identity-based policies and KMS key policies for the
* KMS key to retrieve the checksum of the object.</p>
* <p>If you enable <code>x-amz-checksum-mode</code> in the request and the object is encrypted
* with Amazon Web Services Key Management Service (Amazon Web Services KMS), you must also have the
* <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions in IAM
* identity-based policies and KMS key policies for the KMS key to retrieve the checksum of
* the object.</p>
* </li>
* </ul>
* </dd>
* <dt>Encryption</dt>
* <dd>
* <note>
* <p>Encryption request headers, like <code>x-amz-server-side-encryption</code>,
* should not be sent for <code>HEAD</code> requests if your object uses
* server-side encryption with Key Management Service (KMS) keys (SSE-KMS), dual-layer
* server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or server-side
* encryption with Amazon S3 managed encryption keys (SSE-S3). The
* <code>x-amz-server-side-encryption</code> header is used when you
* <code>PUT</code> an object to S3 and want to specify the encryption method.
* If you include this header in a <code>HEAD</code> request for an object that
* uses these types of keys, youll get an HTTP <code>400 Bad Request</code>
* error. It's because the encryption method can't be changed when you retrieve
* the object.</p>
* <p>Encryption request headers, like <code>x-amz-server-side-encryption</code>, should not be
* sent for <code>HEAD</code> requests if your object uses server-side encryption with Key Management Service
* (KMS) keys (SSE-KMS), dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or
* server-side encryption with Amazon S3 managed encryption keys (SSE-S3). The
* <code>x-amz-server-side-encryption</code> header is used when you <code>PUT</code> an object
* to S3 and want to specify the encryption method. If you include this header in a
* <code>HEAD</code> request for an object that uses these types of keys, youll get an HTTP
* <code>400 Bad Request</code> error. It's because the encryption method can't be changed when
* you retrieve the object.</p>
* </note>
* <p>If you encrypt an object by using server-side encryption with customer-provided
* encryption keys (SSE-C) when you store the object in Amazon S3, then when you retrieve
* the metadata from the object, you must use the following headers to provide the
* encryption key for the server to be able to retrieve the object's metadata. The
* headers are: </p>
* <p>If you encrypt an object by using server-side encryption with customer-provided encryption
* keys (SSE-C) when you store the object in Amazon S3, then when you retrieve the metadata from the
* object, you must use the following headers to provide the encryption key for the server to be able
* to retrieve the object's metadata. The headers are: </p>
* <ul>
* <li>
* <p>
@@ -124,13 +115,12 @@ declare const HeadObjectCommand_base: {
* </p>
* </li>
* </ul>
* <p>For more information about SSE-C, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Server-Side
* Encryption (Using Customer-Provided Encryption Keys)</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>For more information about SSE-C, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Server-Side Encryption (Using
* Customer-Provided Encryption Keys)</a> in the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>
* <b>Directory bucket </b> -
* For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. SSE-C isn't supported. For more
* For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. SSE-C isn't supported. For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html">Protecting data with server-side encryption</a> in the <i>Amazon S3 User Guide</i>. </p>
* </note>
* </dd>
@@ -138,14 +128,12 @@ declare const HeadObjectCommand_base: {
* <dd>
* <ul>
* <li>
* <p>If the current version of the object is a delete marker, Amazon S3 behaves as
* if the object was deleted and includes <code>x-amz-delete-marker:
* true</code> in the response.</p>
* <p>If the current version of the object is a delete marker, Amazon S3 behaves as if the object was
* deleted and includes <code>x-amz-delete-marker: true</code> in the response.</p>
* </li>
* <li>
* <p>If the specified version is a delete marker, the response returns a
* <code>405 Method Not Allowed</code> error and the <code>Last-Modified:
* timestamp</code> response header.</p>
* <p>If the specified version is a delete marker, the response returns a <code>405 Method Not
* Allowed</code> error and the <code>Last-Modified: timestamp</code> response header.</p>
* </li>
* </ul>
* <note>
@@ -153,13 +141,13 @@ declare const HeadObjectCommand_base: {
* <li>
* <p>
* <b>Directory buckets</b> -
* Delete marker is not supported for directory buckets.</p>
* Delete marker is not supported for directory buckets.</p>
* </li>
* <li>
* <p>
* <b>Directory buckets</b> -
* S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets. You can only specify <code>null</code>
* to the <code>versionId</code> query parameter in the request.</p>
* S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets. You can only specify <code>null</code> to the
* <code>versionId</code> query parameter in the request.</p>
* </li>
* </ul>
* </note>
@@ -30,25 +30,22 @@ declare const ListBucketAnalyticsConfigurationsCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Lists the analytics configurations for the bucket. You can have up to 1,000 analytics
* configurations per bucket.</p>
* <p>This action supports list pagination and does not return more than 100 configurations at
* a time. You should always check the <code>IsTruncated</code> element in the response. If
* there are no more configurations to list, <code>IsTruncated</code> is set to false. If
* there are more configurations to list, <code>IsTruncated</code> is set to true, and there
* will be a value in <code>NextContinuationToken</code>. You use the
* <code>NextContinuationToken</code> value to continue the pagination of the list by
* passing the value in continuation-token in the request to <code>GET</code> the next
* page.</p>
* <p>Lists the analytics configurations for the bucket. You can have up to 1,000 analytics configurations
* per bucket.</p>
* <p>This action supports list pagination and does not return more than 100 configurations at a time. You
* should always check the <code>IsTruncated</code> element in the response. If there are no more
* configurations to list, <code>IsTruncated</code> is set to false. If there are more configurations to
* list, <code>IsTruncated</code> is set to true, and there will be a value in
* <code>NextContinuationToken</code>. You use the <code>NextContinuationToken</code> value to continue
* the pagination of the list by passing the value in continuation-token in the request to <code>GET</code>
* the next page.</p>
* <p>To use this operation, you must have permissions to perform the
* <code>s3:GetAnalyticsConfiguration</code> action. The bucket owner has this permission
* by default. The bucket owner can grant this permission to others. For more information
* about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing
* Access Permissions to Your Amazon S3 Resources</a>.</p>
* <code>s3:GetAnalyticsConfiguration</code> action. The bucket owner has this permission by default. The
* bucket owner can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
* Resources</a>.</p>
* <p>For information about Amazon S3 analytics feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html">Amazon S3 Analytics Storage Class
* Analysis</a>. </p>
* <p>The following operations are related to
* <code>ListBucketAnalyticsConfigurations</code>:</p>
* Analysis</a>. </p>
* <p>The following operations are related to <code>ListBucketAnalyticsConfigurations</code>:</p>
* <ul>
* <li>
* <p>
@@ -30,24 +30,21 @@ declare const ListBucketInventoryConfigurationsCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Returns a list of inventory configurations for the bucket. You can have up to 1,000
* analytics configurations per bucket.</p>
* <p>This action supports list pagination and does not return more than 100 configurations at
* a time. Always check the <code>IsTruncated</code> element in the response. If there are no
* more configurations to list, <code>IsTruncated</code> is set to false. If there are more
* configurations to list, <code>IsTruncated</code> is set to true, and there is a value in
* <code>NextContinuationToken</code>. You use the <code>NextContinuationToken</code> value
* to continue the pagination of the list by passing the value in continuation-token in the
* request to <code>GET</code> the next page.</p>
* <p>Returns a list of S3 Inventory configurations for the bucket. You can have up to 1,000 analytics
* configurations per bucket.</p>
* <p>This action supports list pagination and does not return more than 100 configurations at a time.
* Always check the <code>IsTruncated</code> element in the response. If there are no more configurations
* to list, <code>IsTruncated</code> is set to false. If there are more configurations to list,
* <code>IsTruncated</code> is set to true, and there is a value in <code>NextContinuationToken</code>.
* You use the <code>NextContinuationToken</code> value to continue the pagination of the list by passing
* the value in continuation-token in the request to <code>GET</code> the next page.</p>
* <p> To use this operation, you must have permissions to perform the
* <code>s3:GetInventoryConfiguration</code> action. The bucket owner has this permission
* by default. The bucket owner can grant this permission to others. For more information
* about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing
* Access Permissions to Your Amazon S3 Resources</a>.</p>
* <code>s3:GetInventoryConfiguration</code> action. The bucket owner has this permission by default. The
* bucket owner can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
* Resources</a>.</p>
* <p>For information about the Amazon S3 inventory feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html">Amazon S3 Inventory</a>
* </p>
* <p>The following operations are related to
* <code>ListBucketInventoryConfigurations</code>:</p>
* <p>The following operations are related to <code>ListBucketInventoryConfigurations</code>:</p>
* <ul>
* <li>
* <p>
@@ -30,25 +30,22 @@ declare const ListBucketMetricsConfigurationsCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Lists the metrics configurations for the bucket. The metrics configurations are only for
* the request metrics of the bucket and do not provide information on daily storage metrics.
* You can have up to 1,000 configurations per bucket.</p>
* <p>This action supports list pagination and does not return more than 100 configurations at
* a time. Always check the <code>IsTruncated</code> element in the response. If there are no
* more configurations to list, <code>IsTruncated</code> is set to false. If there are more
* configurations to list, <code>IsTruncated</code> is set to true, and there is a value in
* <code>NextContinuationToken</code>. You use the <code>NextContinuationToken</code> value
* to continue the pagination of the list by passing the value in
* <code>continuation-token</code> in the request to <code>GET</code> the next page.</p>
* <p>Lists the metrics configurations for the bucket. The metrics configurations are only for the request
* metrics of the bucket and do not provide information on daily storage metrics. You can have up to 1,000
* configurations per bucket.</p>
* <p>This action supports list pagination and does not return more than 100 configurations at a time.
* Always check the <code>IsTruncated</code> element in the response. If there are no more configurations
* to list, <code>IsTruncated</code> is set to false. If there are more configurations to list,
* <code>IsTruncated</code> is set to true, and there is a value in <code>NextContinuationToken</code>.
* You use the <code>NextContinuationToken</code> value to continue the pagination of the list by passing
* the value in <code>continuation-token</code> in the request to <code>GET</code> the next page.</p>
* <p>To use this operation, you must have permissions to perform the
* <code>s3:GetMetricsConfiguration</code> action. The bucket owner has this permission by
* default. The bucket owner can grant this permission to others. For more information about
* permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing
* Access Permissions to Your Amazon S3 Resources</a>.</p>
* <p>For more information about metrics configurations and CloudWatch request metrics, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html">Monitoring Metrics with Amazon CloudWatch</a>.</p>
* <p>The following operations are related to
* <code>ListBucketMetricsConfigurations</code>:</p>
* <code>s3:GetMetricsConfiguration</code> action. The bucket owner has this permission by default. The
* bucket owner can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
* Resources</a>.</p>
* <p>For more information about metrics configurations and CloudWatch request metrics, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html">Monitoring Metrics with
* Amazon CloudWatch</a>.</p>
* <p>The following operations are related to <code>ListBucketMetricsConfigurations</code>:</p>
* <ul>
* <li>
* <p>
@@ -37,16 +37,17 @@ declare const ListBucketsCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Returns a list of all buckets owned by the authenticated sender of the request. To grant IAM permission to use
* this operation, you must add the <code>s3:ListAllMyBuckets</code> policy action. </p>
* <p>For information about Amazon S3 buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-buckets-s3.html">Creating, configuring, and
* working with Amazon S3 buckets</a>.</p>
* <p>Returns a list of all buckets owned by the authenticated sender of the request. To grant IAM
* permission to use this operation, you must add the <code>s3:ListAllMyBuckets</code> policy action. </p>
* <p>For information about Amazon S3 buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-buckets-s3.html">Creating, configuring, and working with Amazon S3
* buckets</a>.</p>
* <important>
* <p>We strongly recommend using only paginated <code>ListBuckets</code> requests. Unpaginated <code>ListBuckets</code> requests are only supported for
* Amazon Web Services accounts set to the default general purpose bucket quota of 10,000. If you have an approved
* general purpose bucket quota above 10,000, you must send paginated <code>ListBuckets</code> requests to list your accounts buckets.
* All unpaginated <code>ListBuckets</code> requests will be rejected for Amazon Web Services accounts with a general purpose bucket quota
* greater than 10,000. </p>
* <p>We strongly recommend using only paginated <code>ListBuckets</code> requests. Unpaginated
* <code>ListBuckets</code> requests are only supported for Amazon Web Services accounts set to the default general
* purpose bucket quota of 10,000. If you have an approved general purpose bucket quota above 10,000, you
* must send paginated <code>ListBuckets</code> requests to list your accounts buckets. All unpaginated
* <code>ListBuckets</code> requests will be rejected for Amazon Web Services accounts with a general purpose bucket
* quota greater than 10,000. </p>
* </important>
* @example
* Use a bare-bones client and the command you need to make an API call.
@@ -27,8 +27,9 @@ declare const ListDirectoryBucketsCommand_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Returns a list of all Amazon S3 directory buckets owned by the authenticated sender of the
* request. For more information about directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html">Directory buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>Returns a list of all Amazon S3 directory buckets owned by the authenticated sender of the request. For
* more information about directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html">Directory buckets</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>
* <b>Directory buckets </b> - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format <code>https://s3express-control.<i>region-code</i>.amazonaws.com/<i>bucket-name</i>
@@ -40,21 +41,20 @@ declare const ListDirectoryBucketsCommand_base: {
* <dl>
* <dt>Permissions</dt>
* <dd>
* <p>You must have the <code>s3express:ListAllMyDirectoryBuckets</code> permission
* in an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.
* For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>You must have the <code>s3express:ListAllMyDirectoryBuckets</code> permission in
* an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.
* For more information about directory bucket policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html">Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
* </dd>
* <dt>HTTP Host header syntax</dt>
* <dd>
* <p>
* <b>Directory buckets </b> - The HTTP Host
* header syntax is
* <code>s3express-control.<i>region</i>.amazonaws.com</code>.</p>
* <b>Directory buckets </b> - The HTTP Host header syntax is
* <code>s3express-control.<i>region</i>.amazonaws.com</code>.</p>
* </dd>
* </dl>
* <note>
* <p> The <code>BucketRegion</code> response element is not part of the
* <code>ListDirectoryBuckets</code> Response Syntax.</p>
* <code>ListDirectoryBuckets</code> Response Syntax.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
@@ -34,47 +34,41 @@ declare const ListMultipartUploadsCommand_base: {
* <p>This change affects the following Amazon Web Services Regions: US East (N. Virginia) Region, US West (N. California) Region, US West (Oregon) Region, Asia Pacific (Singapore) Region, Asia Pacific (Sydney) Region,
* Asia Pacific (Tokyo) Region, Europe (Ireland) Region, and South America (São Paulo) Region.</p>
* </important>
* <p>This operation lists in-progress multipart uploads in a bucket. An in-progress multipart
* upload is a multipart upload that has been initiated by the
* <code>CreateMultipartUpload</code> request, but has not yet been completed or
* aborted.</p>
* <p>This operation lists in-progress multipart uploads in a bucket. An in-progress multipart upload is a
* multipart upload that has been initiated by the <code>CreateMultipartUpload</code> request, but has not
* yet been completed or aborted.</p>
* <note>
* <p>
* <b>Directory buckets</b> - If multipart uploads in
* a directory bucket are in progress, you can't delete the bucket until all the
* in-progress multipart uploads are aborted or completed. To delete these in-progress
* multipart uploads, use the <code>ListMultipartUploads</code> operation to list the
* in-progress multipart uploads in the bucket and use the
* <code>AbortMultipartUpload</code> operation to abort all the in-progress multipart
* uploads. </p>
* <b>Directory buckets</b> - If multipart uploads in a
* directory bucket are in progress, you can't delete the bucket until all the in-progress multipart
* uploads are aborted or completed. To delete these in-progress multipart uploads, use the
* <code>ListMultipartUploads</code> operation to list the in-progress multipart uploads in the bucket
* and use the <code>AbortMultipartUpload</code> operation to abort all the in-progress multipart
* uploads. </p>
* </note>
* <p>The <code>ListMultipartUploads</code> operation returns a maximum of 1,000 multipart
* uploads in the response. The limit of 1,000 multipart uploads is also the default value.
* You can further limit the number of uploads in a response by specifying the
* <code>max-uploads</code> request parameter. If there are more than 1,000 multipart
* uploads that satisfy your <code>ListMultipartUploads</code> request, the response returns
* an <code>IsTruncated</code> element with the value of <code>true</code>, a
* <code>NextKeyMarker</code> element, and a <code>NextUploadIdMarker</code> element. To
* list the remaining multipart uploads, you need to make subsequent
* <code>ListMultipartUploads</code> requests. In these requests, include two query
* parameters: <code>key-marker</code> and <code>upload-id-marker</code>. Set the value of
* <code>key-marker</code> to the <code>NextKeyMarker</code> value from the previous
* response. Similarly, set the value of <code>upload-id-marker</code> to the
* <code>NextUploadIdMarker</code> value from the previous response.</p>
* <p>The <code>ListMultipartUploads</code> operation returns a maximum of 1,000 multipart uploads in the
* response. The limit of 1,000 multipart uploads is also the default value. You can further limit the
* number of uploads in a response by specifying the <code>max-uploads</code> request parameter. If there
* are more than 1,000 multipart uploads that satisfy your <code>ListMultipartUploads</code> request, the
* response returns an <code>IsTruncated</code> element with the value of <code>true</code>, a
* <code>NextKeyMarker</code> element, and a <code>NextUploadIdMarker</code> element. To list the
* remaining multipart uploads, you need to make subsequent <code>ListMultipartUploads</code> requests. In
* these requests, include two query parameters: <code>key-marker</code> and <code>upload-id-marker</code>.
* Set the value of <code>key-marker</code> to the <code>NextKeyMarker</code> value from the previous
* response. Similarly, set the value of <code>upload-id-marker</code> to the
* <code>NextUploadIdMarker</code> value from the previous response.</p>
* <note>
* <p>
* <b>Directory buckets</b> - The
* <code>upload-id-marker</code> element and the <code>NextUploadIdMarker</code> element
* aren't supported by directory buckets. To list the additional multipart uploads, you
* only need to set the value of <code>key-marker</code> to the <code>NextKeyMarker</code>
* value from the previous response. </p>
* <b>Directory buckets</b> - The <code>upload-id-marker</code>
* element and the <code>NextUploadIdMarker</code> element aren't supported by directory buckets. To
* list the additional multipart uploads, you only need to set the value of <code>key-marker</code> to
* the <code>NextKeyMarker</code> value from the previous response. </p>
* </note>
* <p>For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading Objects Using Multipart
* Upload</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading Objects Using Multipart Upload</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>
* <b>Directory buckets</b> -
* For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* <b>Directory buckets</b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
* <i>Amazon S3 User Guide</i>.</p>
@@ -85,10 +79,9 @@ declare const ListMultipartUploadsCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - For
* information about permissions required to use the multipart upload API, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
* Permissions</a> in the <i>Amazon S3 User Guide</i>.</p>
* <b>General purpose bucket permissions</b> - For information
* about permissions required to use the multipart upload API, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and Permissions</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* </li>
* <li>
* <p>
@@ -107,29 +100,28 @@ declare const ListMultipartUploadsCommand_base: {
* <li>
* <p>
* <b>General purpose bucket</b> - In the
* <code>ListMultipartUploads</code> response, the multipart uploads are
* sorted based on two criteria:</p>
* <code>ListMultipartUploads</code> response, the multipart uploads are sorted based on two
* criteria:</p>
* <ul>
* <li>
* <p>Key-based sorting - Multipart uploads are initially sorted
* in ascending order based on their object keys.</p>
* <p>Key-based sorting - Multipart uploads are initially sorted in ascending order
* based on their object keys.</p>
* </li>
* <li>
* <p>Time-based sorting - For uploads that share the same object
* key, they are further sorted in ascending order based on the upload
* initiation time. Among uploads with the same key, the one that was
* initiated first will appear before the ones that were initiated
* later.</p>
* <p>Time-based sorting - For uploads that share the same object key, they are
* further sorted in ascending order based on the upload initiation time. Among uploads with
* the same key, the one that was initiated first will appear before the ones that were
* initiated later.</p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <b>Directory bucket</b> - In the
* <code>ListMultipartUploads</code> response, the multipart uploads aren't
* sorted lexicographically based on the object keys.
* <code>ListMultipartUploads</code> response, the multipart uploads aren't sorted
* lexicographically based on the object keys.
*
* </p>
* </p>
* </li>
* </ul>
* </dd>
@@ -1,6 +1,6 @@
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { ListObjectVersionsOutput, ListObjectVersionsRequest } from "../models/models_0";
import { ListObjectVersionsOutput, ListObjectVersionsRequest } from "../models/models_1";
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
/**
* @public
@@ -37,17 +37,15 @@ declare const ListObjectVersionsCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Returns metadata about all versions of the objects in a bucket. You can also use request
* parameters as selection criteria to return metadata about a subset of all the object
* versions.</p>
* <p>Returns metadata about all versions of the objects in a bucket. You can also use request parameters
* as selection criteria to return metadata about a subset of all the object versions.</p>
* <important>
* <p> To use this operation, you must have permission to perform the
* <code>s3:ListBucketVersions</code> action. Be aware of the name difference. </p>
* <p> To use this operation, you must have permission to perform the <code>s3:ListBucketVersions</code>
* action. Be aware of the name difference. </p>
* </important>
* <note>
* <p> A <code>200 OK</code> response can contain valid or invalid XML. Make sure to design
* your application to parse the contents of the response and handle it
* appropriately.</p>
* <p> A <code>200 OK</code> response can contain valid or invalid XML. Make sure to design your
* application to parse the contents of the response and handle it appropriately.</p>
* </note>
* <p>To use this operation, you must have READ access to the bucket.</p>
* <p>The following operations are related to <code>ListObjectVersions</code>:</p>
@@ -1,6 +1,6 @@
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { ListObjectsOutput, ListObjectsRequest } from "../models/models_0";
import { ListObjectsOutput, ListObjectsRequest } from "../models/models_1";
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
/**
* @public
@@ -37,13 +37,14 @@ declare const ListObjectsCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Returns some or all (up to 1,000) of the objects in a bucket. You can use the request
* parameters as selection criteria to return a subset of the objects in a bucket. A 200 OK
* response can contain valid or invalid XML. Be sure to design your application to parse the
* contents of the response and handle it appropriately.</p>
* <p>Returns some or all (up to 1,000) of the objects in a bucket. You can use the request parameters as
* selection criteria to return a subset of the objects in a bucket. A 200 OK response can contain valid or
* invalid XML. Be sure to design your application to parse the contents of the response and handle it
* appropriately.</p>
* <important>
* <p>This action has been revised. We recommend that you use the newer version, <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html">ListObjectsV2</a>, when developing applications. For backward compatibility,
* Amazon S3 continues to support <code>ListObjects</code>.</p>
* <p>This action has been revised. We recommend that you use the newer version, <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html">ListObjectsV2</a>, when
* developing applications. For backward compatibility, Amazon S3 continues to support
* <code>ListObjects</code>.</p>
* </important>
* <p>The following operations are related to <code>ListObjects</code>:</p>
* <ul>
@@ -1,6 +1,6 @@
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { ListObjectsV2Output, ListObjectsV2Request } from "../models/models_0";
import { ListObjectsV2Output, ListObjectsV2Request } from "../models/models_1";
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
/**
* @public
@@ -27,31 +27,30 @@ declare const ListObjectsV2Command_base: {
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Returns some or all (up to 1,000) of the objects in a bucket with each request. You can
* use the request parameters as selection criteria to return a subset of the objects in a
* bucket. A <code>200 OK</code> response can contain valid or invalid XML. Make sure to
* design your application to parse the contents of the response and handle it appropriately.
* For more information about listing objects, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">Listing object keys
* programmatically</a> in the <i>Amazon S3 User Guide</i>. To get a list of
* your buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html">ListBuckets</a>.</p>
* <p>Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the
* request parameters as selection criteria to return a subset of the objects in a bucket. A <code>200
* OK</code> response can contain valid or invalid XML. Make sure to design your application to parse the
* contents of the response and handle it appropriately. For more information about listing objects, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">Listing object
* keys programmatically</a> in the <i>Amazon S3 User Guide</i>. To get a list of your
* buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html">ListBuckets</a>.</p>
* <note>
* <ul>
* <li>
* <p>
* <b>General purpose bucket</b> - For general purpose buckets,
* <code>ListObjectsV2</code> doesn't return prefixes that are related only to
* in-progress multipart uploads.</p>
* <code>ListObjectsV2</code> doesn't return prefixes that are related only to in-progress
* multipart uploads.</p>
* </li>
* <li>
* <p>
* <b>Directory buckets</b> - For
* directory buckets, <code>ListObjectsV2</code> response includes the prefixes that
* are related only to in-progress multipart uploads. </p>
* <b>Directory buckets</b> - For directory buckets,
* <code>ListObjectsV2</code> response includes the prefixes that are related only to in-progress
* multipart uploads. </p>
* </li>
* <li>
* <p>
* <b>Directory buckets</b> -
* For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* <b>Directory buckets</b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
* <i>Amazon S3 User Guide</i>.</p>
@@ -64,13 +63,12 @@ declare const ListObjectsV2Command_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - To
* use this operation, you must have READ access to the bucket. You must have
* permission to perform the <code>s3:ListBucket</code> action. The bucket
* owner has this permission by default and can grant this permission to
* others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access
* Permissions to Your Amazon S3 Resources</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <b>General purpose bucket permissions</b> - To use this
* operation, you must have READ access to the bucket. You must have permission to perform the
* <code>s3:ListBucket</code> action. The bucket owner has this permission by default and can
* grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access
* Permissions to Your Amazon S3 Resources</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* </li>
* <li>
* <p>
@@ -88,15 +86,14 @@ declare const ListObjectsV2Command_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket</b> - For
* general purpose buckets, <code>ListObjectsV2</code> returns objects in
* lexicographical order based on their key names.</p>
* <b>General purpose bucket</b> - For general purpose buckets,
* <code>ListObjectsV2</code> returns objects in lexicographical order based on their key
* names.</p>
* </li>
* <li>
* <p>
* <b>Directory bucket</b> - For
* directory buckets, <code>ListObjectsV2</code> does not return objects in
* lexicographical order.</p>
* <b>Directory bucket</b> - For directory buckets,
* <code>ListObjectsV2</code> does not return objects in lexicographical order.</p>
* </li>
* </ul>
* </dd>
@@ -108,9 +105,9 @@ declare const ListObjectsV2Command_base: {
* </dd>
* </dl>
* <important>
* <p>This section describes the latest revision of this action. We recommend that you use
* this revised API operation for application development. For backward compatibility, Amazon S3
* continues to support the prior version of this API operation, <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html">ListObjects</a>.</p>
* <p>This section describes the latest revision of this action. We recommend that you use this revised
* API operation for application development. For backward compatibility, Amazon S3 continues to support the
* prior version of this API operation, <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html">ListObjects</a>.</p>
* </important>
* <p>The following operations are related to <code>ListObjectsV2</code>:</p>
* <ul>
@@ -1,6 +1,6 @@
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { ListPartsOutput, ListPartsRequest } from "../models/models_0";
import { ListPartsOutput, ListPartsRequest } from "../models/models_1";
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
/**
* @public
@@ -35,22 +35,21 @@ declare const ListPartsCommand_base: {
* Asia Pacific (Tokyo) Region, Europe (Ireland) Region, and South America (São Paulo) Region.</p>
* </important>
* <p>Lists the parts that have been uploaded for a specific multipart upload.</p>
* <p>To use this operation, you must provide the <code>upload ID</code> in the request. You
* obtain this uploadID by sending the initiate multipart upload request through <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>.</p>
* <p>The <code>ListParts</code> request returns a maximum of 1,000 uploaded parts. The limit
* of 1,000 parts is also the default value. You can restrict the number of parts in a
* response by specifying the <code>max-parts</code> request parameter. If your multipart
* upload consists of more than 1,000 parts, the response returns an <code>IsTruncated</code>
* field with the value of <code>true</code>, and a <code>NextPartNumberMarker</code> element.
* To list remaining uploaded parts, in subsequent <code>ListParts</code> requests, include
* the <code>part-number-marker</code> query string parameter and set its value to the
* <code>NextPartNumberMarker</code> field value from the previous response.</p>
* <p>For more information on multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading Objects Using Multipart
* Upload</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>To use this operation, you must provide the <code>upload ID</code> in the request. You obtain this
* uploadID by sending the initiate multipart upload request through <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>.</p>
* <p>The <code>ListParts</code> request returns a maximum of 1,000 uploaded parts. The limit of 1,000
* parts is also the default value. You can restrict the number of parts in a response by specifying the
* <code>max-parts</code> request parameter. If your multipart upload consists of more than 1,000 parts,
* the response returns an <code>IsTruncated</code> field with the value of <code>true</code>, and a
* <code>NextPartNumberMarker</code> element. To list remaining uploaded parts, in subsequent
* <code>ListParts</code> requests, include the <code>part-number-marker</code> query string parameter
* and set its value to the <code>NextPartNumberMarker</code> field value from the previous
* response.</p>
* <p>For more information on multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading Objects Using Multipart Upload</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* <note>
* <p>
* <b>Directory buckets</b> -
* For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* <b>Directory buckets</b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i>
* </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the
* <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the
* <i>Amazon S3 User Guide</i>.</p>
@@ -61,15 +60,13 @@ declare const ListPartsCommand_base: {
* <ul>
* <li>
* <p>
* <b>General purpose bucket permissions</b> - For
* information about permissions required to use the multipart upload API, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
* Permissions</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>If the upload was created using server-side encryption with Key Management Service
* (KMS) keys (SSE-KMS) or dual-layer server-side encryption with
* Amazon Web Services KMS keys (DSSE-KMS), you must have permission to the
* <code>kms:Decrypt</code> action for the <code>ListParts</code> request to
* succeed.</p>
* <b>General purpose bucket permissions</b> - For information
* about permissions required to use the multipart upload API, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and Permissions</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* <p>If the upload was created using server-side encryption with Key Management Service (KMS) keys
* (SSE-KMS) or dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), you must have
* permission to the <code>kms:Decrypt</code> action for the <code>ListParts</code> request to
* succeed.</p>
* </li>
* <li>
* <p>
@@ -1,6 +1,6 @@
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { PutBucketAccelerateConfigurationRequest } from "../models/models_0";
import { PutBucketAccelerateConfigurationRequest } from "../models/models_1";
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
/**
* @public
@@ -31,14 +31,12 @@ declare const PutBucketAccelerateConfigurationCommand_base: {
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Sets the accelerate configuration of an existing bucket. Amazon S3 Transfer Acceleration is a
* bucket-level feature that enables you to perform faster data transfers to Amazon S3.</p>
* bucket-level feature that enables you to perform faster data transfers to Amazon S3.</p>
* <p> To use this operation, you must have permission to perform the
* <code>s3:PutAccelerateConfiguration</code> action. The bucket owner has this permission
* by default. The bucket owner can grant this permission to others. For more information
* about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing
* Access Permissions to Your Amazon S3 Resources</a>.</p>
* <p> The Transfer Acceleration state of a bucket can be set to one of the following two
* values:</p>
* <code>s3:PutAccelerateConfiguration</code> action. The bucket owner has this permission by default.
* The bucket owner can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
* Resources</a>.</p>
* <p> The Transfer Acceleration state of a bucket can be set to one of the following two values:</p>
* <ul>
* <li>
* <p> Enabled Enables accelerated data transfers to the bucket.</p>
@@ -47,16 +45,14 @@ declare const PutBucketAccelerateConfigurationCommand_base: {
* <p> Suspended Disables accelerated data transfers to the bucket.</p>
* </li>
* </ul>
* <p>The <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAccelerateConfiguration.html">GetBucketAccelerateConfiguration</a> action returns the transfer acceleration state
* of a bucket.</p>
* <p>After setting the Transfer Acceleration state of a bucket to Enabled, it might take up
* to thirty minutes before the data transfer rates to the bucket increase.</p>
* <p> The name of the bucket used for Transfer Acceleration must be DNS-compliant and must
* not contain periods (".").</p>
* <p> For more information about transfer acceleration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html">Transfer
* Acceleration</a>.</p>
* <p>The following operations are related to
* <code>PutBucketAccelerateConfiguration</code>:</p>
* <p>The <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAccelerateConfiguration.html">GetBucketAccelerateConfiguration</a> action returns the transfer acceleration state of a
* bucket.</p>
* <p>After setting the Transfer Acceleration state of a bucket to Enabled, it might take up to thirty
* minutes before the data transfer rates to the bucket increase.</p>
* <p> The name of the bucket used for Transfer Acceleration must be DNS-compliant and must not contain
* periods (".").</p>
* <p> For more information about transfer acceleration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html">Transfer Acceleration</a>.</p>
* <p>The following operations are related to <code>PutBucketAccelerateConfiguration</code>:</p>
* <ul>
* <li>
* <p>
@@ -1,6 +1,6 @@
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { PutBucketAclRequest } from "../models/models_0";
import { PutBucketAclRequest } from "../models/models_1";
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
/**
* @public
@@ -38,9 +38,9 @@ declare const PutBucketAclCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Sets the permissions on an existing bucket using access control lists (ACL). For more
* information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Using ACLs</a>. To set the ACL of a
* bucket, you must have the <code>WRITE_ACP</code> permission.</p>
* <p>Sets the permissions on an existing bucket using access control lists (ACL). For more information,
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Using ACLs</a>. To
* set the ACL of a bucket, you must have the <code>WRITE_ACP</code> permission.</p>
* <p>You can use one of the following two ways to set a bucket's permissions:</p>
* <ul>
* <li>
@@ -51,20 +51,18 @@ declare const PutBucketAclCommand_base: {
* </li>
* </ul>
* <note>
* <p>You cannot specify access permission using both the body and the request
* headers.</p>
* <p>You cannot specify access permission using both the body and the request headers.</p>
* </note>
* <p>Depending on your application needs, you may choose to set the ACL on a bucket using
* either the request body or the headers. For example, if you have an existing application
* that updates a bucket ACL using the request body, then you can continue to use that
* approach.</p>
* <p>Depending on your application needs, you may choose to set the ACL on a bucket using either the
* request body or the headers. For example, if you have an existing application that updates a bucket ACL
* using the request body, then you can continue to use that approach.</p>
* <important>
* <p>If your bucket uses the bucket owner enforced setting for S3 Object Ownership, ACLs
* are disabled and no longer affect permissions. You must use policies to grant access to
* your bucket and the objects in it. Requests to set ACLs or update ACLs fail and return
* the <code>AccessControlListNotSupported</code> error code. Requests to read ACLs are
* still supported. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling object
* ownership</a> in the <i>Amazon S3 User Guide</i>.</p>
* <p>If your bucket uses the bucket owner enforced setting for S3 Object Ownership, ACLs are disabled
* and no longer affect permissions. You must use policies to grant access to your bucket and the objects
* in it. Requests to set ACLs or update ACLs fail and return the
* <code>AccessControlListNotSupported</code> error code. Requests to read ACLs are still supported.
* For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling object ownership</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* </important>
* <dl>
* <dt>Permissions</dt>
@@ -72,43 +70,37 @@ declare const PutBucketAclCommand_base: {
* <p>You can set access permissions by using one of the following methods:</p>
* <ul>
* <li>
* <p>Specify a canned ACL with the <code>x-amz-acl</code> request header. Amazon S3
* supports a set of predefined ACLs, known as <i>canned
* ACLs</i>. Each canned ACL has a predefined set of grantees and
* permissions. Specify the canned ACL name as the value of
* <code>x-amz-acl</code>. If you use this header, you cannot use other
* access control-specific headers in your request. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL">Canned
* ACL</a>.</p>
* <p>Specify a canned ACL with the <code>x-amz-acl</code> request header. Amazon S3 supports a set
* of predefined ACLs, known as <i>canned ACLs</i>. Each canned ACL has a
* predefined set of grantees and permissions. Specify the canned ACL name as the value of
* <code>x-amz-acl</code>. If you use this header, you cannot use other access control-specific
* headers in your request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL">Canned ACL</a>.</p>
* </li>
* <li>
* <p>Specify access permissions explicitly with the
* <code>x-amz-grant-read</code>, <code>x-amz-grant-read-acp</code>,
* <code>x-amz-grant-write-acp</code>, and
* <code>x-amz-grant-full-control</code> headers. When using these headers,
* you specify explicit access permissions and grantees (Amazon Web Services accounts or Amazon S3
* groups) who will receive the permission. If you use these ACL-specific
* headers, you cannot use the <code>x-amz-acl</code> header to set a canned
* ACL. These parameters map to the set of permissions that Amazon S3 supports in an
* ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL)
* Overview</a>.</p>
* <p>You specify each grantee as a type=value pair, where the type is one of
* the following:</p>
* <p>Specify access permissions explicitly with the <code>x-amz-grant-read</code>,
* <code>x-amz-grant-read-acp</code>, <code>x-amz-grant-write-acp</code>, and
* <code>x-amz-grant-full-control</code> headers. When using these headers, you specify
* explicit access permissions and grantees (Amazon Web Services accounts or Amazon S3 groups) who will receive the
* permission. If you use these ACL-specific headers, you cannot use the <code>x-amz-acl</code>
* header to set a canned ACL. These parameters map to the set of permissions that Amazon S3 supports
* in an ACL. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL)
* Overview</a>.</p>
* <p>You specify each grantee as a type=value pair, where the type is one of the
* following:</p>
* <ul>
* <li>
* <p>
* <code>id</code> if the value specified is the canonical user ID
* of an Amazon Web Services account</p>
* <code>id</code> if the value specified is the canonical user ID of an
* Amazon Web Services account</p>
* </li>
* <li>
* <p>
* <code>uri</code> if you are granting permissions to a predefined
* group</p>
* <code>uri</code> if you are granting permissions to a predefined group</p>
* </li>
* <li>
* <p>
* <code>emailAddress</code> if the value specified is the email
* address of an Amazon Web Services account</p>
* <code>emailAddress</code> if the value specified is the email address of an
* Amazon Web Services account</p>
* <note>
* <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions: </p>
* <ul>
@@ -141,34 +133,31 @@ declare const PutBucketAclCommand_base: {
* </note>
* </li>
* </ul>
* <p>For example, the following <code>x-amz-grant-write</code> header grants
* create, overwrite, and delete objects permission to LogDelivery group
* predefined by Amazon S3 and two Amazon Web Services accounts identified by their email
* addresses.</p>
* <p>For example, the following <code>x-amz-grant-write</code> header grants create, overwrite,
* and delete objects permission to LogDelivery group predefined by Amazon S3 and two Amazon Web Services accounts
* identified by their email addresses.</p>
* <p>
* <code>x-amz-grant-write:
* uri="http://acs.amazonaws.com/groups/s3/LogDelivery", id="111122223333",
* id="555566667777" </code>
* <code>x-amz-grant-write: uri="http://acs.amazonaws.com/groups/s3/LogDelivery",
* id="111122223333", id="555566667777" </code>
* </p>
* </li>
* </ul>
* <p>You can use either a canned ACL or specify access permissions explicitly. You
* cannot do both.</p>
* <p>You can use either a canned ACL or specify access permissions explicitly. You cannot do
* both.</p>
* </dd>
* <dt>Grantee Values</dt>
* <dd>
* <p>You can specify the person (grantee) to whom you're assigning access rights
* (using request elements) in the following ways. For examples of how to specify these
* grantee values in JSON format, see the Amazon Web Services CLI example in <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html">
* Enabling Amazon S3 server access logging</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>You can specify the person (grantee) to whom you're assigning access rights (using request
* elements) in the following ways. For examples of how to specify these grantee values in JSON
* format, see the Amazon Web Services CLI example in <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html"> Enabling Amazon S3 server
* access logging</a> in the <i>Amazon S3 User Guide</i>.</p>
* <ul>
* <li>
* <p>By the person's ID:</p>
* <p>
* <code><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
* xsi:type="CanonicalUser"><ID><>ID<></ID><DisplayName><>GranteesEmail<></DisplayName>
* </Grantee></code>
* xsi:type="CanonicalUser"><ID><>ID<></ID><DisplayName><>GranteesEmail<></DisplayName>
* </Grantee></code>
* </p>
* <p>DisplayName is optional and ignored in the request</p>
* </li>
@@ -176,17 +165,17 @@ declare const PutBucketAclCommand_base: {
* <p>By URI:</p>
* <p>
* <code><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
* xsi:type="Group"><URI><>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<></URI></Grantee></code>
* xsi:type="Group"><URI><>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<></URI></Grantee></code>
* </p>
* </li>
* <li>
* <p>By Email address:</p>
* <p>
* <code><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
* xsi:type="AmazonCustomerByEmail"><EmailAddress><>Grantees@email.com<></EmailAddress>&</Grantee></code>
* xsi:type="AmazonCustomerByEmail"><EmailAddress><>Grantees@email.com<></EmailAddress>&</Grantee></code>
* </p>
* <p>The grantee is resolved to the CanonicalUser and, in a response to a GET
* Object acl request, appears as the CanonicalUser. </p>
* <p>The grantee is resolved to the CanonicalUser and, in a response to a GET Object acl
* request, appears as the CanonicalUser. </p>
* <note>
* <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions: </p>
* <ul>
@@ -1,6 +1,6 @@
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { PutBucketAnalyticsConfigurationRequest } from "../models/models_0";
import { PutBucketAnalyticsConfigurationRequest } from "../models/models_1";
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
/**
* @public
@@ -30,26 +30,25 @@ declare const PutBucketAnalyticsConfigurationCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Sets an analytics configuration for the bucket (specified by the analytics configuration
* ID). You can have up to 1,000 analytics configurations per bucket.</p>
* <p>You can choose to have storage class analysis export analysis reports sent to a
* comma-separated values (CSV) flat file. See the <code>DataExport</code> request element.
* Reports are updated daily and are based on the object filters that you configure. When
* selecting data export, you specify a destination bucket and an optional destination prefix
* where the file is written. You can export the data to a destination bucket in a different
* account. However, the destination bucket must be in the same Region as the bucket that you
* are making the PUT analytics configuration to. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html">Amazon S3
* Analytics Storage Class Analysis</a>. </p>
* <p>Sets an analytics configuration for the bucket (specified by the analytics configuration ID). You
* can have up to 1,000 analytics configurations per bucket.</p>
* <p>You can choose to have storage class analysis export analysis reports sent to a comma-separated
* values (CSV) flat file. See the <code>DataExport</code> request element. Reports are updated daily and
* are based on the object filters that you configure. When selecting data export, you specify a
* destination bucket and an optional destination prefix where the file is written. You can export the data
* to a destination bucket in a different account. However, the destination bucket must be in the same
* Region as the bucket that you are making the PUT analytics configuration to. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html">Amazon S3 Analytics
* Storage Class Analysis</a>. </p>
* <important>
* <p>You must create a bucket policy on the destination bucket where the exported file is
* written to grant permissions to Amazon S3 to write objects to the bucket. For an example
* policy, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-9">Granting Permissions for Amazon S3 Inventory and Storage Class Analysis</a>.</p>
* <p>You must create a bucket policy on the destination bucket where the exported file is written to
* grant permissions to Amazon S3 to write objects to the bucket. For an example policy, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-9">Granting
* Permissions for Amazon S3 Inventory and Storage Class Analysis</a>.</p>
* </important>
* <p>To use this operation, you must have permissions to perform the
* <code>s3:PutAnalyticsConfiguration</code> action. The bucket owner has this permission
* by default. The bucket owner can grant this permission to others. For more information
* about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing
* Access Permissions to Your Amazon S3 Resources</a>.</p>
* <code>s3:PutAnalyticsConfiguration</code> action. The bucket owner has this permission by default. The
* bucket owner can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
* Resources</a>.</p>
* <p>
* <code>PutBucketAnalyticsConfiguration</code> has the following special errors:</p>
* <ul>
@@ -86,8 +85,8 @@ declare const PutBucketAnalyticsConfigurationCommand_base: {
* </li>
* <li>
* <p>
* <i>Cause: You are attempting to create a new configuration but have
* already reached the 1,000-configuration limit.</i>
* <i>Cause: You are attempting to create a new configuration but have already reached
* the 1,000-configuration limit.</i>
* </p>
* </li>
* </ul>
@@ -106,16 +105,15 @@ declare const PutBucketAnalyticsConfigurationCommand_base: {
* </li>
* <li>
* <p>
* <i>Cause: You are not the owner of the specified bucket, or you do
* not have the s3:PutAnalyticsConfiguration bucket permission to set the
* configuration on the bucket.</i>
* <i>Cause: You are not the owner of the specified bucket, or you do not have the
* s3:PutAnalyticsConfiguration bucket permission to set the configuration on the
* bucket.</i>
* </p>
* </li>
* </ul>
* </li>
* </ul>
* <p>The following operations are related to
* <code>PutBucketAnalyticsConfiguration</code>:</p>
* <p>The following operations are related to <code>PutBucketAnalyticsConfiguration</code>:</p>
* <ul>
* <li>
* <p>
@@ -30,42 +30,38 @@ declare const PutBucketCorsCommand_base: {
* <note>
* <p>This operation is not supported for directory buckets.</p>
* </note>
* <p>Sets the <code>cors</code> configuration for your bucket. If the configuration exists,
* Amazon S3 replaces it.</p>
* <p>To use this operation, you must be allowed to perform the <code>s3:PutBucketCORS</code>
* action. By default, the bucket owner has this permission and can grant it to others.</p>
* <p>You set this configuration on a bucket so that the bucket can service cross-origin
* requests. For example, you might want to enable a request whose origin is
* <code>http://www.example.com</code> to access your Amazon S3 bucket at
* <code>my.example.bucket.com</code> by using the browser's <code>XMLHttpRequest</code>
* capability.</p>
* <p>To enable cross-origin resource sharing (CORS) on a bucket, you add the
* <code>cors</code> subresource to the bucket. The <code>cors</code> subresource is an XML
* document in which you configure rules that identify origins and the HTTP methods that can
* be executed on your bucket. The document is limited to 64 KB in size. </p>
* <p>When Amazon S3 receives a cross-origin request (or a pre-flight OPTIONS request) against a
* bucket, it evaluates the <code>cors</code> configuration on the bucket and uses the first
* <code>CORSRule</code> rule that matches the incoming browser request to enable a
* cross-origin request. For a rule to match, the following conditions must be met:</p>
* <p>Sets the <code>cors</code> configuration for your bucket. If the configuration exists, Amazon S3 replaces
* it.</p>
* <p>To use this operation, you must be allowed to perform the <code>s3:PutBucketCORS</code> action. By
* default, the bucket owner has this permission and can grant it to others.</p>
* <p>You set this configuration on a bucket so that the bucket can service cross-origin requests. For
* example, you might want to enable a request whose origin is <code>http://www.example.com</code> to
* access your Amazon S3 bucket at <code>my.example.bucket.com</code> by using the browser's
* <code>XMLHttpRequest</code> capability.</p>
* <p>To enable cross-origin resource sharing (CORS) on a bucket, you add the <code>cors</code>
* subresource to the bucket. The <code>cors</code> subresource is an XML document in which you configure
* rules that identify origins and the HTTP methods that can be executed on your bucket. The document is
* limited to 64 KB in size. </p>
* <p>When Amazon S3 receives a cross-origin request (or a pre-flight OPTIONS request) against a bucket, it
* evaluates the <code>cors</code> configuration on the bucket and uses the first <code>CORSRule</code>
* rule that matches the incoming browser request to enable a cross-origin request. For a rule to match,
* the following conditions must be met:</p>
* <ul>
* <li>
* <p>The request's <code>Origin</code> header must match <code>AllowedOrigin</code>
* elements.</p>
* <p>The request's <code>Origin</code> header must match <code>AllowedOrigin</code> elements.</p>
* </li>
* <li>
* <p>The request method (for example, GET, PUT, HEAD, and so on) or the
* <code>Access-Control-Request-Method</code> header in case of a pre-flight
* <code>OPTIONS</code> request must be one of the <code>AllowedMethod</code>
* elements. </p>
* <code>Access-Control-Request-Method</code> header in case of a pre-flight <code>OPTIONS</code>
* request must be one of the <code>AllowedMethod</code> elements. </p>
* </li>
* <li>
* <p>Every header specified in the <code>Access-Control-Request-Headers</code> request
* header of a pre-flight request must match an <code>AllowedHeader</code> element.
* </p>
* <p>Every header specified in the <code>Access-Control-Request-Headers</code> request header of a
* pre-flight request must match an <code>AllowedHeader</code> element. </p>
* </li>
* </ul>
* <p> For more information about CORS, go to <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html">Enabling Cross-Origin Resource Sharing</a> in
* the <i>Amazon S3 User Guide</i>.</p>
* <p> For more information about CORS, go to <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html">Enabling Cross-Origin Resource Sharing</a> in the
* <i>Amazon S3 User Guide</i>.</p>
* <p>The following operations are related to <code>PutBucketCors</code>:</p>
* <ul>
* <li>

Some files were not shown because too many files have changed in this diff Show More