import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DisassociateCrossAccountReplicaRequest, DisassociateCrossAccountReplicaResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DisassociateCrossAccountReplicaCommand}. */ export interface DisassociateCrossAccountReplicaCommandInput extends DisassociateCrossAccountReplicaRequest { } /** * @public * * The output of {@link DisassociateCrossAccountReplicaCommand}. */ export interface DisassociateCrossAccountReplicaCommandOutput extends DisassociateCrossAccountReplicaResponse, __MetadataBearer { } declare const DisassociateCrossAccountReplicaCommand_base: { new (input: DisassociateCrossAccountReplicaCommandInput): import("@smithy/core/client").CommandImpl; new (input: DisassociateCrossAccountReplicaCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Removes the link between a primary secret in your account and a cross-account replica * secret, and stops replication to the replica secret. Call this operation on the primary secret. * This action removes the replica association created by AssociateCrossAccountReplica.

*

Disassociating the replica from the primary does not delete the replica secret or * convert the replica secret to a standalone secret. The replica secret remains in the other * account and its replication status changes to Detached. Secrets Manager no longer sends updates * from the primary secret to the replica secret after disassociation. To convert a detached * replica into a standalone secret, call * StopReplicationToReplica on the replica secret.

*

You must disassociate a cross-account replica before you call DeleteSecret for the primary secret. The DeleteSecret * call fails if any replicas are still associated with the primary secret.

*

Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see Logging Secrets Manager events with CloudTrail.

*

* Required permissions: * * secretsmanager:DisassociateCrossAccountReplica. * For more information, see * IAM policy actions for Secrets Manager and Authentication * and access control in Secrets Manager.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SecretsManagerClient, DisassociateCrossAccountReplicaCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import * // const { SecretsManagerClient, DisassociateCrossAccountReplicaCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import * // import type { SecretsManagerClientConfig } from "@aws-sdk/client-secrets-manager"; * const config = {}; // type is SecretsManagerClientConfig * const client = new SecretsManagerClient(config); * const input = { // DisassociateCrossAccountReplicaRequest * SecretId: "STRING_VALUE", // required * CrossAccountReplicaARN: "STRING_VALUE", // required * }; * const command = new DisassociateCrossAccountReplicaCommand(input); * const response = await client.send(command); * // { // DisassociateCrossAccountReplicaResponse * // ARN: "STRING_VALUE", * // CrossAccountReplicaARN: "STRING_VALUE", * // }; * * ``` * * @param DisassociateCrossAccountReplicaCommandInput - {@link DisassociateCrossAccountReplicaCommandInput} * @returns {@link DisassociateCrossAccountReplicaCommandOutput} * @see {@link DisassociateCrossAccountReplicaCommandInput} for command's `input` shape. * @see {@link DisassociateCrossAccountReplicaCommandOutput} for command's `response` shape. * @see {@link SecretsManagerClientResolvedConfig | config} for SecretsManagerClient's `config` shape. * * @throws {@link InternalServiceError} (server fault) *

An error occurred on the server side.

* * @throws {@link InvalidParameterException} (client fault) *

The parameter name or value is invalid.

* * @throws {@link InvalidRequestException} (client fault) *

A parameter value is not valid for the current state of the * resource.

*

Possible causes:

* * * @throws {@link ResourceNotFoundException} (client fault) *

Secrets Manager can't find the resource that you asked for.

* * @throws {@link SecretsManagerServiceException} *

Base exception class for all service exceptions from SecretsManager service.

* * * @example To stop replicating a secret to another account from the primary account * ```javascript * // The following example, called from the primary account, removes the link between a primary secret and its cross-account replica and stops replication. The replica secret remains in the other account, now with a replication status of Detached. * const input = { * CrossAccountReplicaARN: "arn:aws:secretsmanager:us-west-2:222222222222:secret:MyReplicaSecret-a1b2c3", * SecretId: "MyTestDatabaseSecret" * }; * const command = new DisassociateCrossAccountReplicaCommand(input); * const response = await client.send(command); * /* response is * { * ARN: "arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3", * CrossAccountReplicaARN: "arn:aws:secretsmanager:us-west-2:222222222222:secret:MyReplicaSecret-a1b2c3" * } * *\/ * ``` * * @public */ export declare class DisassociateCrossAccountReplicaCommand extends DisassociateCrossAccountReplicaCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DisassociateCrossAccountReplicaRequest; output: DisassociateCrossAccountReplicaResponse; }; sdk: { input: DisassociateCrossAccountReplicaCommandInput; output: DisassociateCrossAccountReplicaCommandOutput; }; }; }