Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data StopReplicationToReplica = StopReplicationToReplica' {}
- newStopReplicationToReplica :: Text -> StopReplicationToReplica
- stopReplicationToReplica_secretId :: Lens' StopReplicationToReplica Text
- data StopReplicationToReplicaResponse = StopReplicationToReplicaResponse' {
- arn :: Maybe Text
- httpStatus :: Int
- newStopReplicationToReplicaResponse :: Int -> StopReplicationToReplicaResponse
- stopReplicationToReplicaResponse_arn :: Lens' StopReplicationToReplicaResponse (Maybe Text)
- stopReplicationToReplicaResponse_httpStatus :: Lens' StopReplicationToReplicaResponse Int
Creating a Request
data StopReplicationToReplica Source #
See: newStopReplicationToReplica
smart constructor.
Instances
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
stopReplicationToReplica_secretId :: Lens' StopReplicationToReplica Text Source #
The ARN of the primary secret.
Destructuring the Response
data StopReplicationToReplicaResponse Source #
See: newStopReplicationToReplicaResponse
smart constructor.
StopReplicationToReplicaResponse' | |
|
Instances
Generic StopReplicationToReplicaResponse Source # | |
Read StopReplicationToReplicaResponse Source # | |
Show StopReplicationToReplicaResponse Source # | |
NFData StopReplicationToReplicaResponse Source # | |
Defined in Amazonka.SecretsManager.StopReplicationToReplica rnf :: StopReplicationToReplicaResponse -> () # | |
Eq StopReplicationToReplicaResponse Source # | |
type Rep StopReplicationToReplicaResponse Source # | |
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.
stopReplicationToReplicaResponse_httpStatus :: Lens' StopReplicationToReplicaResponse Int Source #
The response's http status code.