import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { StopReplicationToReplicaRequest, StopReplicationToReplicaResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link StopReplicationToReplicaCommand}. */ export interface StopReplicationToReplicaCommandInput extends StopReplicationToReplicaRequest { } /** * @public * * The output of {@link StopReplicationToReplicaCommand}. */ export interface StopReplicationToReplicaCommandOutput extends StopReplicationToReplicaResponse, __MetadataBearer { } declare const StopReplicationToReplicaCommand_base: { new (input: StopReplicationToReplicaCommandInput): import("@smithy/core/client").CommandImpl; new (input: StopReplicationToReplicaCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Removes the link between a replica secret and its primary secret, and stops * replication to the replica. You call this operation from the replica account or Region. * Depending on the type of replica, the behavior is:

* *

To stop cross-account replication from the primary account instead, use DisassociateCrossAccountReplica.

*

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:StopReplicationToReplica. For cross-account * replica secrets, you must also have secretsmanager:DeleteResourcePolicy * permissions. 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, StopReplicationToReplicaCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import * // const { SecretsManagerClient, StopReplicationToReplicaCommand } = 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 = { // StopReplicationToReplicaRequest * SecretId: "STRING_VALUE", // required * }; * const command = new StopReplicationToReplicaCommand(input); * const response = await client.send(command); * // { // StopReplicationToReplicaResponse * // ARN: "STRING_VALUE", * // }; * * ``` * * @param StopReplicationToReplicaCommandInput - {@link StopReplicationToReplicaCommandInput} * @returns {@link StopReplicationToReplicaCommandOutput} * @see {@link StopReplicationToReplicaCommandInput} for command's `input` shape. * @see {@link StopReplicationToReplicaCommandOutput} 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 cross-account replication from the replica account * ```javascript * // The following example, called from the replica account, unlinks a cross-account replica secret from its primary secret in another account and stops replication. The secret remains in the replica account as a standalone secret. * const input = { * SecretId: "arn:aws:secretsmanager:us-west-2:222222222222:secret:MyReplicaSecret-a1b2c3" * }; * const command = new StopReplicationToReplicaCommand(input); * const response = await client.send(command); * /* response is * { * ARN: "arn:aws:secretsmanager:us-west-2:222222222222:secret:MyReplicaSecret-a1b2c3" * } * *\/ * ``` * * @public */ export declare class StopReplicationToReplicaCommand extends StopReplicationToReplicaCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StopReplicationToReplicaRequest; output: StopReplicationToReplicaResponse; }; sdk: { input: StopReplicationToReplicaCommandInput; output: StopReplicationToReplicaCommandOutput; }; }; }