import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeDBSnapshotAttributesMessage, DescribeDBSnapshotAttributesResult } from "../models/models_0"; import type { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeDBSnapshotAttributesCommand}. */ export interface DescribeDBSnapshotAttributesCommandInput extends DescribeDBSnapshotAttributesMessage { } /** * @public * * The output of {@link DescribeDBSnapshotAttributesCommand}. */ export interface DescribeDBSnapshotAttributesCommandOutput extends DescribeDBSnapshotAttributesResult, __MetadataBearer { } declare const DescribeDBSnapshotAttributesCommand_base: { new (input: DescribeDBSnapshotAttributesCommandInput): import("@smithy/core/client").CommandImpl; new (input: DescribeDBSnapshotAttributesCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Returns a list of DB snapshot attribute names and values for a manual DB snapshot.

When sharing snapshots with other Amazon Web Services accounts, DescribeDBSnapshotAttributes returns the restore attribute and a list of IDs for the Amazon Web Services accounts that are authorized to copy or restore the manual DB snapshot. If all is included in the list of values for the restore attribute, then the manual DB snapshot is public and can be copied or restored by all Amazon Web Services accounts.

To add or remove access for an Amazon Web Services account to copy or restore a manual DB snapshot, or to make the manual DB snapshot public or private, use the ModifyDBSnapshotAttribute API action.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RDSClient, DescribeDBSnapshotAttributesCommand } from "@aws-sdk/client-rds"; // ES Modules import * // const { RDSClient, DescribeDBSnapshotAttributesCommand } = require("@aws-sdk/client-rds"); // CommonJS import * // import type { RDSClientConfig } from "@aws-sdk/client-rds"; * const config = {}; // type is RDSClientConfig * const client = new RDSClient(config); * const input = { // DescribeDBSnapshotAttributesMessage * DBSnapshotIdentifier: "STRING_VALUE", // required * }; * const command = new DescribeDBSnapshotAttributesCommand(input); * const response = await client.send(command); * // { // DescribeDBSnapshotAttributesResult * // DBSnapshotAttributesResult: { // DBSnapshotAttributesResult * // DBSnapshotIdentifier: "STRING_VALUE", * // DBSnapshotAttributes: [ // DBSnapshotAttributeList * // { // DBSnapshotAttribute * // AttributeName: "STRING_VALUE", * // AttributeValues: [ // AttributeValueList * // "STRING_VALUE", * // ], * // }, * // ], * // }, * // }; * * ``` * * @param DescribeDBSnapshotAttributesCommandInput - {@link DescribeDBSnapshotAttributesCommandInput} * @returns {@link DescribeDBSnapshotAttributesCommandOutput} * @see {@link DescribeDBSnapshotAttributesCommandInput} for command's `input` shape. * @see {@link DescribeDBSnapshotAttributesCommandOutput} for command's `response` shape. * @see {@link RDSClientResolvedConfig | config} for RDSClient's `config` shape. * * @throws {@link DBSnapshotNotFoundFault} (client fault) *

DBSnapshotIdentifier doesn't refer to an existing DB snapshot.

* * @throws {@link RDSServiceException} *

Base exception class for all service exceptions from RDS service.

* * * @example To describe the attribute names and values for a DB snapshot * ```javascript * // The following example describes the attribute names and values for a DB snapshot. * const input = { * DBSnapshotIdentifier: "mydbsnapshot" * }; * const command = new DescribeDBSnapshotAttributesCommand(input); * const response = await client.send(command); * /* response is * { * DBSnapshotAttributesResult: { * DBSnapshotAttributes: [ * { * AttributeName: "restore", * AttributeValues: [ * "123456789012", * "210987654321" * ] * } * ], * DBSnapshotIdentifier: "mydbsnapshot" * } * } * *\/ * ``` * * @public */ export declare class DescribeDBSnapshotAttributesCommand extends DescribeDBSnapshotAttributesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeDBSnapshotAttributesMessage; output: DescribeDBSnapshotAttributesResult; }; sdk: { input: DescribeDBSnapshotAttributesCommandInput; output: DescribeDBSnapshotAttributesCommandOutput; }; }; }