GetTableBucketEncryptionCommand

Gets the encryption configuration for a table bucket.

Permissions

You must have the s3tables:GetTableBucketEncryption permission to use this operation.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { S3TablesClient, GetTableBucketEncryptionCommand } from "@aws-sdk/client-s3tables"; // ES Modules import
// const { S3TablesClient, GetTableBucketEncryptionCommand } = require("@aws-sdk/client-s3tables"); // CommonJS import
const client = new S3TablesClient(config);
const input = { // GetTableBucketEncryptionRequest
  tableBucketARN: "STRING_VALUE", // required
};
const command = new GetTableBucketEncryptionCommand(input);
const response = await client.send(command);
// { // GetTableBucketEncryptionResponse
//   encryptionConfiguration: { // EncryptionConfiguration
//     sseAlgorithm: "AES256" || "aws:kms", // required
//     kmsKeyArn: "STRING_VALUE",
//   },
// };

GetTableBucketEncryptionCommand Input

Parameter
Type
Description
tableBucketARN
Required
string | undefined

The Amazon Resource Name (ARN) of the table bucket.

GetTableBucketEncryptionCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
encryptionConfiguration
Required
EncryptionConfiguration | undefined

The encryption configuration for the table bucket.

Throws

Name
Fault
Details
AccessDeniedException
client

The action cannot be performed because you do not have the required permission.

BadRequestException
client

The request is invalid or malformed.

ForbiddenException
client

The caller isn't authorized to make the request.

InternalServerErrorException
server

The request failed due to an internal server error.

NotFoundException
client

The request was rejected because the specified resource could not be found.

TooManyRequestsException
client

The limit on the number of requests per second was exceeded.

S3TablesServiceException
Base exception class for all service exceptions from S3Tables service.