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 |
For a secret that is replicated to other Regions, deletes the secret replicas from the Regions you specify.
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:RemoveRegionsFromReplication
.
For more information, see
IAM policy actions for Secrets Manager
and
Authentication and access control in Secrets Manager.
Synopsis
- data RemoveRegionsFromReplication = RemoveRegionsFromReplication' {}
- newRemoveRegionsFromReplication :: Text -> NonEmpty Text -> RemoveRegionsFromReplication
- removeRegionsFromReplication_secretId :: Lens' RemoveRegionsFromReplication Text
- removeRegionsFromReplication_removeReplicaRegions :: Lens' RemoveRegionsFromReplication (NonEmpty Text)
- data RemoveRegionsFromReplicationResponse = RemoveRegionsFromReplicationResponse' {}
- newRemoveRegionsFromReplicationResponse :: Int -> RemoveRegionsFromReplicationResponse
- removeRegionsFromReplicationResponse_arn :: Lens' RemoveRegionsFromReplicationResponse (Maybe Text)
- removeRegionsFromReplicationResponse_replicationStatus :: Lens' RemoveRegionsFromReplicationResponse (Maybe [ReplicationStatusType])
- removeRegionsFromReplicationResponse_httpStatus :: Lens' RemoveRegionsFromReplicationResponse Int
Creating a Request
data RemoveRegionsFromReplication Source #
See: newRemoveRegionsFromReplication
smart constructor.
RemoveRegionsFromReplication' | |
|
Instances
newRemoveRegionsFromReplication Source #
Create a value of RemoveRegionsFromReplication
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:RemoveRegionsFromReplication'
, removeRegionsFromReplication_secretId
- The ARN or name of the secret.
$sel:removeReplicaRegions:RemoveRegionsFromReplication'
, removeRegionsFromReplication_removeReplicaRegions
- The Regions of the replicas to remove.
Request Lenses
removeRegionsFromReplication_secretId :: Lens' RemoveRegionsFromReplication Text Source #
The ARN or name of the secret.
removeRegionsFromReplication_removeReplicaRegions :: Lens' RemoveRegionsFromReplication (NonEmpty Text) Source #
The Regions of the replicas to remove.
Destructuring the Response
data RemoveRegionsFromReplicationResponse Source #
See: newRemoveRegionsFromReplicationResponse
smart constructor.
RemoveRegionsFromReplicationResponse' | |
|
Instances
newRemoveRegionsFromReplicationResponse Source #
Create a value of RemoveRegionsFromReplicationResponse
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:
RemoveRegionsFromReplicationResponse
, removeRegionsFromReplicationResponse_arn
- The ARN of the primary secret.
$sel:replicationStatus:RemoveRegionsFromReplicationResponse'
, removeRegionsFromReplicationResponse_replicationStatus
- The status of replicas for this secret after you remove Regions.
$sel:httpStatus:RemoveRegionsFromReplicationResponse'
, removeRegionsFromReplicationResponse_httpStatus
- The response's http status code.
Response Lenses
removeRegionsFromReplicationResponse_arn :: Lens' RemoveRegionsFromReplicationResponse (Maybe Text) Source #
The ARN of the primary secret.
removeRegionsFromReplicationResponse_replicationStatus :: Lens' RemoveRegionsFromReplicationResponse (Maybe [ReplicationStatusType]) Source #
The status of replicas for this secret after you remove Regions.
removeRegionsFromReplicationResponse_httpStatus :: Lens' RemoveRegionsFromReplicationResponse Int Source #
The response's http status code.