Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UpdateDatabaseCommand

Modifies the KMS key for an existing database. While updating the database, you must specify the database name and the identifier of the new KMS key to be used (KmsKeyId). If there are any concurrent UpdateDatabase requests, first writer wins.

See code sample for details.

example

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

import { TimestreamWriteClient, UpdateDatabaseCommand } from "@aws-sdk/client-timestream-write"; // ES Modules import
// const { TimestreamWriteClient, UpdateDatabaseCommand } = require("@aws-sdk/client-timestream-write"); // CommonJS import
const client = new TimestreamWriteClient(config);
const command = new UpdateDatabaseCommand(input);
const response = await client.send(command);
see

UpdateDatabaseCommandInput for command's input shape.

see

UpdateDatabaseCommandOutput for command's response shape.

see

config for TimestreamWriteClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: UpdateDatabaseCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<UpdateDatabaseCommandInput, UpdateDatabaseCommandOutput>