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 |
Enables the automatic copy of snapshots from one region to another region for a specified cluster.
Synopsis
- data EnableSnapshotCopy = EnableSnapshotCopy' {}
- newEnableSnapshotCopy :: Text -> Text -> EnableSnapshotCopy
- enableSnapshotCopy_manualSnapshotRetentionPeriod :: Lens' EnableSnapshotCopy (Maybe Int)
- enableSnapshotCopy_retentionPeriod :: Lens' EnableSnapshotCopy (Maybe Int)
- enableSnapshotCopy_snapshotCopyGrantName :: Lens' EnableSnapshotCopy (Maybe Text)
- enableSnapshotCopy_clusterIdentifier :: Lens' EnableSnapshotCopy Text
- enableSnapshotCopy_destinationRegion :: Lens' EnableSnapshotCopy Text
- data EnableSnapshotCopyResponse = EnableSnapshotCopyResponse' {
- cluster :: Maybe Cluster
- httpStatus :: Int
- newEnableSnapshotCopyResponse :: Int -> EnableSnapshotCopyResponse
- enableSnapshotCopyResponse_cluster :: Lens' EnableSnapshotCopyResponse (Maybe Cluster)
- enableSnapshotCopyResponse_httpStatus :: Lens' EnableSnapshotCopyResponse Int
Creating a Request
data EnableSnapshotCopy Source #
See: newEnableSnapshotCopy
smart constructor.
EnableSnapshotCopy' | |
|
Instances
newEnableSnapshotCopy Source #
:: Text | |
-> Text | |
-> EnableSnapshotCopy |
Create a value of EnableSnapshotCopy
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:manualSnapshotRetentionPeriod:EnableSnapshotCopy'
, enableSnapshotCopy_manualSnapshotRetentionPeriod
- The number of days to retain newly copied snapshots in the destination
Amazon Web Services Region after they are copied from the source Amazon
Web Services Region. If the value is -1, the manual snapshot is retained
indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
$sel:retentionPeriod:EnableSnapshotCopy'
, enableSnapshotCopy_retentionPeriod
- The number of days to retain automated snapshots in the destination
region after they are copied from the source region.
Default: 7.
Constraints: Must be at least 1 and no more than 35.
$sel:snapshotCopyGrantName:EnableSnapshotCopy'
, enableSnapshotCopy_snapshotCopyGrantName
- The name of the snapshot copy grant to use when snapshots of an Amazon
Web Services KMS-encrypted cluster are copied to the destination region.
$sel:clusterIdentifier:EnableSnapshotCopy'
, enableSnapshotCopy_clusterIdentifier
- The unique identifier of the source cluster to copy snapshots from.
Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.
$sel:destinationRegion:EnableSnapshotCopy'
, enableSnapshotCopy_destinationRegion
- The destination Amazon Web Services Region that you want to copy
snapshots to.
Constraints: Must be the name of a valid Amazon Web Services Region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
Request Lenses
enableSnapshotCopy_manualSnapshotRetentionPeriod :: Lens' EnableSnapshotCopy (Maybe Int) Source #
The number of days to retain newly copied snapshots in the destination Amazon Web Services Region after they are copied from the source Amazon Web Services Region. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
enableSnapshotCopy_retentionPeriod :: Lens' EnableSnapshotCopy (Maybe Int) Source #
The number of days to retain automated snapshots in the destination region after they are copied from the source region.
Default: 7.
Constraints: Must be at least 1 and no more than 35.
enableSnapshotCopy_snapshotCopyGrantName :: Lens' EnableSnapshotCopy (Maybe Text) Source #
The name of the snapshot copy grant to use when snapshots of an Amazon Web Services KMS-encrypted cluster are copied to the destination region.
enableSnapshotCopy_clusterIdentifier :: Lens' EnableSnapshotCopy Text Source #
The unique identifier of the source cluster to copy snapshots from.
Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.
enableSnapshotCopy_destinationRegion :: Lens' EnableSnapshotCopy Text Source #
The destination Amazon Web Services Region that you want to copy snapshots to.
Constraints: Must be the name of a valid Amazon Web Services Region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
Destructuring the Response
data EnableSnapshotCopyResponse Source #
See: newEnableSnapshotCopyResponse
smart constructor.
EnableSnapshotCopyResponse' | |
|
Instances
newEnableSnapshotCopyResponse Source #
Create a value of EnableSnapshotCopyResponse
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:cluster:EnableSnapshotCopyResponse'
, enableSnapshotCopyResponse_cluster
- Undocumented member.
$sel:httpStatus:EnableSnapshotCopyResponse'
, enableSnapshotCopyResponse_httpStatus
- The response's http status code.
Response Lenses
enableSnapshotCopyResponse_cluster :: Lens' EnableSnapshotCopyResponse (Maybe Cluster) Source #
Undocumented member.
enableSnapshotCopyResponse_httpStatus :: Lens' EnableSnapshotCopyResponse Int Source #
The response's http status code.