Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Converts an existing secret to a multi-Region secret and begins replication the secret to a list of new regions.
Synopsis
- data ReplicateSecretToRegions = ReplicateSecretToRegions' {}
- newReplicateSecretToRegions :: Text -> NonEmpty ReplicaRegionType -> ReplicateSecretToRegions
- replicateSecretToRegions_forceOverwriteReplicaSecret :: Lens' ReplicateSecretToRegions (Maybe Bool)
- replicateSecretToRegions_secretId :: Lens' ReplicateSecretToRegions Text
- replicateSecretToRegions_addReplicaRegions :: Lens' ReplicateSecretToRegions (NonEmpty ReplicaRegionType)
- data ReplicateSecretToRegionsResponse = ReplicateSecretToRegionsResponse' {}
- newReplicateSecretToRegionsResponse :: Int -> ReplicateSecretToRegionsResponse
- replicateSecretToRegionsResponse_arn :: Lens' ReplicateSecretToRegionsResponse (Maybe Text)
- replicateSecretToRegionsResponse_replicationStatus :: Lens' ReplicateSecretToRegionsResponse (Maybe [ReplicationStatusType])
- replicateSecretToRegionsResponse_httpStatus :: Lens' ReplicateSecretToRegionsResponse Int
Creating a Request
data ReplicateSecretToRegions Source #
See: newReplicateSecretToRegions
smart constructor.
ReplicateSecretToRegions' | |
|
Instances
newReplicateSecretToRegions Source #
Create a value of ReplicateSecretToRegions
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:forceOverwriteReplicaSecret:ReplicateSecretToRegions'
, replicateSecretToRegions_forceOverwriteReplicaSecret
- (Optional) If set, Secrets Manager replication overwrites a secret with
the same name in the destination region.
$sel:secretId:ReplicateSecretToRegions'
, replicateSecretToRegions_secretId
- Use the Secret Id
to replicate a secret to regions.
$sel:addReplicaRegions:ReplicateSecretToRegions'
, replicateSecretToRegions_addReplicaRegions
- Add Regions to replicate the secret.
Request Lenses
replicateSecretToRegions_forceOverwriteReplicaSecret :: Lens' ReplicateSecretToRegions (Maybe Bool) Source #
(Optional) If set, Secrets Manager replication overwrites a secret with the same name in the destination region.
replicateSecretToRegions_secretId :: Lens' ReplicateSecretToRegions Text Source #
Use the Secret Id
to replicate a secret to regions.
replicateSecretToRegions_addReplicaRegions :: Lens' ReplicateSecretToRegions (NonEmpty ReplicaRegionType) Source #
Add Regions to replicate the secret.
Destructuring the Response
data ReplicateSecretToRegionsResponse Source #
See: newReplicateSecretToRegionsResponse
smart constructor.
ReplicateSecretToRegionsResponse' | |
|
Instances
newReplicateSecretToRegionsResponse Source #
Create a value of ReplicateSecretToRegionsResponse
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:arn:ReplicateSecretToRegionsResponse'
, replicateSecretToRegionsResponse_arn
- Replicate a secret based on the ReplicaRegionType
> consisting of a
Region(required) and a KMSKeyId (optional) which can be the ARN, KeyID,
or Alias.
$sel:replicationStatus:ReplicateSecretToRegionsResponse'
, replicateSecretToRegionsResponse_replicationStatus
- Describes the secret replication status as PENDING
, SUCCESS
or
FAIL
.
$sel:httpStatus:ReplicateSecretToRegionsResponse'
, replicateSecretToRegionsResponse_httpStatus
- The response's http status code.
Response Lenses
replicateSecretToRegionsResponse_arn :: Lens' ReplicateSecretToRegionsResponse (Maybe Text) Source #
Replicate a secret based on the ReplicaRegionType
> consisting of a
Region(required) and a KMSKeyId (optional) which can be the ARN, KeyID,
or Alias.
replicateSecretToRegionsResponse_replicationStatus :: Lens' ReplicateSecretToRegionsResponse (Maybe [ReplicationStatusType]) Source #
Describes the secret replication status as PENDING
, SUCCESS
or
FAIL
.
replicateSecretToRegionsResponse_httpStatus :: Lens' ReplicateSecretToRegionsResponse Int Source #
The response's http status code.