amazonka-secretsmanager-2.0: Amazon Secrets Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SecretsManager.StopReplicationToReplica

Description

Removes the link between the replica secret and the primary secret and promotes the replica to a primary secret in the replica Region.

You must call this operation from the Region in which you want to promote the replica to a 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:StopReplicationToReplica. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.

Synopsis

Creating a Request

data StopReplicationToReplica Source #

See: newStopReplicationToReplica smart constructor.

Constructors

StopReplicationToReplica' 

Fields

Instances

Instances details
ToJSON StopReplicationToReplica Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

ToHeaders StopReplicationToReplica Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

ToPath StopReplicationToReplica Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

ToQuery StopReplicationToReplica Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

AWSRequest StopReplicationToReplica Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

Generic StopReplicationToReplica Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

Associated Types

type Rep StopReplicationToReplica :: Type -> Type #

Read StopReplicationToReplica Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

Show StopReplicationToReplica Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

NFData StopReplicationToReplica Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

Eq StopReplicationToReplica Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

Hashable StopReplicationToReplica Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

type AWSResponse StopReplicationToReplica Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

type Rep StopReplicationToReplica Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

type Rep StopReplicationToReplica = D1 ('MetaData "StopReplicationToReplica" "Amazonka.SecretsManager.StopReplicationToReplica" "amazonka-secretsmanager-2.0-8tljeZ4CwL92E7JavkDb0o" 'False) (C1 ('MetaCons "StopReplicationToReplica'" 'PrefixI 'True) (S1 ('MetaSel ('Just "secretId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newStopReplicationToReplica Source #

Create a value of StopReplicationToReplica with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:secretId:StopReplicationToReplica', stopReplicationToReplica_secretId - The ARN of the primary secret.

Request Lenses

Destructuring the Response

data StopReplicationToReplicaResponse Source #

See: newStopReplicationToReplicaResponse smart constructor.

Constructors

StopReplicationToReplicaResponse' 

Fields

  • arn :: Maybe Text

    The ARN of the promoted secret. The ARN is the same as the original primary secret except the Region is changed.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic StopReplicationToReplicaResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

Associated Types

type Rep StopReplicationToReplicaResponse :: Type -> Type #

Read StopReplicationToReplicaResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

Show StopReplicationToReplicaResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

NFData StopReplicationToReplicaResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

Eq StopReplicationToReplicaResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

type Rep StopReplicationToReplicaResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.StopReplicationToReplica

type Rep StopReplicationToReplicaResponse = D1 ('MetaData "StopReplicationToReplicaResponse" "Amazonka.SecretsManager.StopReplicationToReplica" "amazonka-secretsmanager-2.0-8tljeZ4CwL92E7JavkDb0o" 'False) (C1 ('MetaCons "StopReplicationToReplicaResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newStopReplicationToReplicaResponse Source #

Create a value of StopReplicationToReplicaResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

StopReplicationToReplicaResponse, stopReplicationToReplicaResponse_arn - The ARN of the promoted secret. The ARN is the same as the original primary secret except the Region is changed.

$sel:httpStatus:StopReplicationToReplicaResponse', stopReplicationToReplicaResponse_httpStatus - The response's http status code.

Response Lenses

stopReplicationToReplicaResponse_arn :: Lens' StopReplicationToReplicaResponse (Maybe Text) Source #

The ARN of the promoted secret. The ARN is the same as the original primary secret except the Region is changed.