import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types"; import { type BatchGetSecretValueCommandInput, type BatchGetSecretValueCommandOutput } from "./commands/BatchGetSecretValueCommand"; import { type CancelRotateSecretCommandInput, type CancelRotateSecretCommandOutput } from "./commands/CancelRotateSecretCommand"; import { type CreateSecretCommandInput, type CreateSecretCommandOutput } from "./commands/CreateSecretCommand"; import { type DeleteResourcePolicyCommandInput, type DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand"; import { type DeleteSecretCommandInput, type DeleteSecretCommandOutput } from "./commands/DeleteSecretCommand"; import { type DescribeSecretCommandInput, type DescribeSecretCommandOutput } from "./commands/DescribeSecretCommand"; import { type GetRandomPasswordCommandInput, type GetRandomPasswordCommandOutput } from "./commands/GetRandomPasswordCommand"; import { type GetResourcePolicyCommandInput, type GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand"; import { type GetSecretValueCommandInput, type GetSecretValueCommandOutput } from "./commands/GetSecretValueCommand"; import { type ListSecretsCommandInput, type ListSecretsCommandOutput } from "./commands/ListSecretsCommand"; import { type ListSecretVersionIdsCommandInput, type ListSecretVersionIdsCommandOutput } from "./commands/ListSecretVersionIdsCommand"; import { type PutResourcePolicyCommandInput, type PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand"; import { type PutSecretValueCommandInput, type PutSecretValueCommandOutput } from "./commands/PutSecretValueCommand"; import { type RemoveRegionsFromReplicationCommandInput, type RemoveRegionsFromReplicationCommandOutput } from "./commands/RemoveRegionsFromReplicationCommand"; import { type ReplicateSecretToRegionsCommandInput, type ReplicateSecretToRegionsCommandOutput } from "./commands/ReplicateSecretToRegionsCommand"; import { type RestoreSecretCommandInput, type RestoreSecretCommandOutput } from "./commands/RestoreSecretCommand"; import { type RotateSecretCommandInput, type RotateSecretCommandOutput } from "./commands/RotateSecretCommand"; import { type StopReplicationToReplicaCommandInput, type StopReplicationToReplicaCommandOutput } from "./commands/StopReplicationToReplicaCommand"; import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand"; import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand"; import { type UpdateSecretCommandInput, type UpdateSecretCommandOutput } from "./commands/UpdateSecretCommand"; import { type UpdateSecretVersionStageCommandInput, type UpdateSecretVersionStageCommandOutput } from "./commands/UpdateSecretVersionStageCommand"; import { type ValidateResourcePolicyCommandInput, type ValidateResourcePolicyCommandOutput } from "./commands/ValidateResourcePolicyCommand"; import { SecretsManagerClient } from "./SecretsManagerClient"; export interface SecretsManager { /** * @see {@link BatchGetSecretValueCommand} */ batchGetSecretValue(): Promise; batchGetSecretValue(args: BatchGetSecretValueCommandInput, options?: __HttpHandlerOptions): Promise; batchGetSecretValue(args: BatchGetSecretValueCommandInput, cb: (err: any, data?: BatchGetSecretValueCommandOutput) => void): void; batchGetSecretValue(args: BatchGetSecretValueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetSecretValueCommandOutput) => void): void; /** * @see {@link CancelRotateSecretCommand} */ cancelRotateSecret(args: CancelRotateSecretCommandInput, options?: __HttpHandlerOptions): Promise; cancelRotateSecret(args: CancelRotateSecretCommandInput, cb: (err: any, data?: CancelRotateSecretCommandOutput) => void): void; cancelRotateSecret(args: CancelRotateSecretCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelRotateSecretCommandOutput) => void): void; /** * @see {@link CreateSecretCommand} */ createSecret(args: CreateSecretCommandInput, options?: __HttpHandlerOptions): Promise; createSecret(args: CreateSecretCommandInput, cb: (err: any, data?: CreateSecretCommandOutput) => void): void; createSecret(args: CreateSecretCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSecretCommandOutput) => void): void; /** * @see {@link DeleteResourcePolicyCommand} */ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise; deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void; deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void; /** * @see {@link DeleteSecretCommand} */ deleteSecret(args: DeleteSecretCommandInput, options?: __HttpHandlerOptions): Promise; deleteSecret(args: DeleteSecretCommandInput, cb: (err: any, data?: DeleteSecretCommandOutput) => void): void; deleteSecret(args: DeleteSecretCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSecretCommandOutput) => void): void; /** * @see {@link DescribeSecretCommand} */ describeSecret(args: DescribeSecretCommandInput, options?: __HttpHandlerOptions): Promise; describeSecret(args: DescribeSecretCommandInput, cb: (err: any, data?: DescribeSecretCommandOutput) => void): void; describeSecret(args: DescribeSecretCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSecretCommandOutput) => void): void; /** * @see {@link GetRandomPasswordCommand} */ getRandomPassword(): Promise; getRandomPassword(args: GetRandomPasswordCommandInput, options?: __HttpHandlerOptions): Promise; getRandomPassword(args: GetRandomPasswordCommandInput, cb: (err: any, data?: GetRandomPasswordCommandOutput) => void): void; getRandomPassword(args: GetRandomPasswordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRandomPasswordCommandOutput) => void): void; /** * @see {@link GetResourcePolicyCommand} */ getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise; getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void; getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void; /** * @see {@link GetSecretValueCommand} */ getSecretValue(args: GetSecretValueCommandInput, options?: __HttpHandlerOptions): Promise; getSecretValue(args: GetSecretValueCommandInput, cb: (err: any, data?: GetSecretValueCommandOutput) => void): void; getSecretValue(args: GetSecretValueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSecretValueCommandOutput) => void): void; /** * @see {@link ListSecretsCommand} */ listSecrets(): Promise; listSecrets(args: ListSecretsCommandInput, options?: __HttpHandlerOptions): Promise; listSecrets(args: ListSecretsCommandInput, cb: (err: any, data?: ListSecretsCommandOutput) => void): void; listSecrets(args: ListSecretsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSecretsCommandOutput) => void): void; /** * @see {@link ListSecretVersionIdsCommand} */ listSecretVersionIds(args: ListSecretVersionIdsCommandInput, options?: __HttpHandlerOptions): Promise; listSecretVersionIds(args: ListSecretVersionIdsCommandInput, cb: (err: any, data?: ListSecretVersionIdsCommandOutput) => void): void; listSecretVersionIds(args: ListSecretVersionIdsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSecretVersionIdsCommandOutput) => void): void; /** * @see {@link PutResourcePolicyCommand} */ putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise; putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void; putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void; /** * @see {@link PutSecretValueCommand} */ putSecretValue(args: PutSecretValueCommandInput, options?: __HttpHandlerOptions): Promise; putSecretValue(args: PutSecretValueCommandInput, cb: (err: any, data?: PutSecretValueCommandOutput) => void): void; putSecretValue(args: PutSecretValueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutSecretValueCommandOutput) => void): void; /** * @see {@link RemoveRegionsFromReplicationCommand} */ removeRegionsFromReplication(args: RemoveRegionsFromReplicationCommandInput, options?: __HttpHandlerOptions): Promise; removeRegionsFromReplication(args: RemoveRegionsFromReplicationCommandInput, cb: (err: any, data?: RemoveRegionsFromReplicationCommandOutput) => void): void; removeRegionsFromReplication(args: RemoveRegionsFromReplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveRegionsFromReplicationCommandOutput) => void): void; /** * @see {@link ReplicateSecretToRegionsCommand} */ replicateSecretToRegions(args: ReplicateSecretToRegionsCommandInput, options?: __HttpHandlerOptions): Promise; replicateSecretToRegions(args: ReplicateSecretToRegionsCommandInput, cb: (err: any, data?: ReplicateSecretToRegionsCommandOutput) => void): void; replicateSecretToRegions(args: ReplicateSecretToRegionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ReplicateSecretToRegionsCommandOutput) => void): void; /** * @see {@link RestoreSecretCommand} */ restoreSecret(args: RestoreSecretCommandInput, options?: __HttpHandlerOptions): Promise; restoreSecret(args: RestoreSecretCommandInput, cb: (err: any, data?: RestoreSecretCommandOutput) => void): void; restoreSecret(args: RestoreSecretCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreSecretCommandOutput) => void): void; /** * @see {@link RotateSecretCommand} */ rotateSecret(args: RotateSecretCommandInput, options?: __HttpHandlerOptions): Promise; rotateSecret(args: RotateSecretCommandInput, cb: (err: any, data?: RotateSecretCommandOutput) => void): void; rotateSecret(args: RotateSecretCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RotateSecretCommandOutput) => void): void; /** * @see {@link StopReplicationToReplicaCommand} */ stopReplicationToReplica(args: StopReplicationToReplicaCommandInput, options?: __HttpHandlerOptions): Promise; stopReplicationToReplica(args: StopReplicationToReplicaCommandInput, cb: (err: any, data?: StopReplicationToReplicaCommandOutput) => void): void; stopReplicationToReplica(args: StopReplicationToReplicaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopReplicationToReplicaCommandOutput) => void): void; /** * @see {@link TagResourceCommand} */ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise; tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void; tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void; /** * @see {@link UntagResourceCommand} */ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise; untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void; untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void; /** * @see {@link UpdateSecretCommand} */ updateSecret(args: UpdateSecretCommandInput, options?: __HttpHandlerOptions): Promise; updateSecret(args: UpdateSecretCommandInput, cb: (err: any, data?: UpdateSecretCommandOutput) => void): void; updateSecret(args: UpdateSecretCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSecretCommandOutput) => void): void; /** * @see {@link UpdateSecretVersionStageCommand} */ updateSecretVersionStage(args: UpdateSecretVersionStageCommandInput, options?: __HttpHandlerOptions): Promise; updateSecretVersionStage(args: UpdateSecretVersionStageCommandInput, cb: (err: any, data?: UpdateSecretVersionStageCommandOutput) => void): void; updateSecretVersionStage(args: UpdateSecretVersionStageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSecretVersionStageCommandOutput) => void): void; /** * @see {@link ValidateResourcePolicyCommand} */ validateResourcePolicy(args: ValidateResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise; validateResourcePolicy(args: ValidateResourcePolicyCommandInput, cb: (err: any, data?: ValidateResourcePolicyCommandOutput) => void): void; validateResourcePolicy(args: ValidateResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ValidateResourcePolicyCommandOutput) => void): void; /** * @see {@link BatchGetSecretValueCommand} * @param args - command input. * @param paginationConfig - optional pagination config. * @returns AsyncIterable of {@link BatchGetSecretValueCommandOutput}. */ paginateBatchGetSecretValue(args?: BatchGetSecretValueCommandInput, paginationConfig?: Omit): Paginator; /** * @see {@link ListSecretsCommand} * @param args - command input. * @param paginationConfig - optional pagination config. * @returns AsyncIterable of {@link ListSecretsCommandOutput}. */ paginateListSecrets(args?: ListSecretsCommandInput, paginationConfig?: Omit): Paginator; /** * @see {@link ListSecretVersionIdsCommand} * @param args - command input. * @param paginationConfig - optional pagination config. * @returns AsyncIterable of {@link ListSecretVersionIdsCommandOutput}. */ paginateListSecretVersionIds(args: ListSecretVersionIdsCommandInput, paginationConfig?: Omit): Paginator; } /** * Amazon Web Services Secrets Manager *

Amazon Web Services Secrets Manager provides a service to enable you to store, manage, and retrieve, secrets.

*

This guide provides descriptions of the Secrets Manager API. For more information about using this * service, see the Amazon Web Services Secrets Manager User Guide.

*

* API Version *

*

This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.

*

For a list of endpoints, see Amazon Web Services Secrets Manager * endpoints.

*

* Support and Feedback for Amazon Web Services Secrets Manager *

*

We welcome your feedback. Send your comments to awssecretsmanager-feedback@amazon.com, or post your feedback and questions in the Amazon Web Services Secrets Manager Discussion Forum. For more * information about the Amazon Web Services Discussion Forums, see Forums * Help.

*

* Logging API Requests *

*

Amazon Web Services Secrets Manager supports Amazon Web Services CloudTrail, a service that records Amazon Web Services API calls for your Amazon Web Services * account and delivers log files to an Amazon S3 bucket. By using information that's collected * by Amazon Web Services CloudTrail, you can determine the requests successfully made to Secrets Manager, who made the * request, when it was made, and so on. For more about Amazon Web Services Secrets Manager and support for Amazon Web Services * CloudTrail, see Logging * Amazon Web Services Secrets Manager Events with Amazon Web Services CloudTrail in the Amazon Web Services Secrets Manager User Guide. * To learn more about CloudTrail, including enabling it and find your log files, see the Amazon Web Services CloudTrail User Guide.

* @public */ export declare class SecretsManager extends SecretsManagerClient implements SecretsManager { }