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 |
Restores a namespace from a snapshot.
Synopsis
- data RestoreFromSnapshot = RestoreFromSnapshot' {}
- newRestoreFromSnapshot :: Text -> Text -> RestoreFromSnapshot
- restoreFromSnapshot_ownerAccount :: Lens' RestoreFromSnapshot (Maybe Text)
- restoreFromSnapshot_snapshotArn :: Lens' RestoreFromSnapshot (Maybe Text)
- restoreFromSnapshot_snapshotName :: Lens' RestoreFromSnapshot (Maybe Text)
- restoreFromSnapshot_namespaceName :: Lens' RestoreFromSnapshot Text
- restoreFromSnapshot_workgroupName :: Lens' RestoreFromSnapshot Text
- data RestoreFromSnapshotResponse = RestoreFromSnapshotResponse' {}
- newRestoreFromSnapshotResponse :: Int -> RestoreFromSnapshotResponse
- restoreFromSnapshotResponse_namespace :: Lens' RestoreFromSnapshotResponse (Maybe Namespace)
- restoreFromSnapshotResponse_ownerAccount :: Lens' RestoreFromSnapshotResponse (Maybe Text)
- restoreFromSnapshotResponse_snapshotName :: Lens' RestoreFromSnapshotResponse (Maybe Text)
- restoreFromSnapshotResponse_httpStatus :: Lens' RestoreFromSnapshotResponse Int
Creating a Request
data RestoreFromSnapshot Source #
See: newRestoreFromSnapshot
smart constructor.
RestoreFromSnapshot' | |
|
Instances
newRestoreFromSnapshot Source #
Create a value of RestoreFromSnapshot
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:
RestoreFromSnapshot
, restoreFromSnapshot_ownerAccount
- The Amazon Web Services account that owns the snapshot.
RestoreFromSnapshot
, restoreFromSnapshot_snapshotArn
- The Amazon Resource Name (ARN) of the snapshot to restore from. Required
if restoring from Amazon Redshift Serverless to a provisioned cluster.
Must not be specified at the same time as snapshotName
.
The format of the ARN is arn:aws:redshift:<region>:<account_id>:snapshot:<cluster_identifier>/<snapshot_identifier>.
RestoreFromSnapshot
, restoreFromSnapshot_snapshotName
- The name of the snapshot to restore from. Must not be specified at the
same time as snapshotArn
.
RestoreFromSnapshot
, restoreFromSnapshot_namespaceName
- The name of the namespace to restore the snapshot to.
RestoreFromSnapshot
, restoreFromSnapshot_workgroupName
- The name of the workgroup used to restore the snapshot.
Request Lenses
restoreFromSnapshot_ownerAccount :: Lens' RestoreFromSnapshot (Maybe Text) Source #
The Amazon Web Services account that owns the snapshot.
restoreFromSnapshot_snapshotArn :: Lens' RestoreFromSnapshot (Maybe Text) Source #
The Amazon Resource Name (ARN) of the snapshot to restore from. Required
if restoring from Amazon Redshift Serverless to a provisioned cluster.
Must not be specified at the same time as snapshotName
.
The format of the ARN is arn:aws:redshift:<region>:<account_id>:snapshot:<cluster_identifier>/<snapshot_identifier>.
restoreFromSnapshot_snapshotName :: Lens' RestoreFromSnapshot (Maybe Text) Source #
The name of the snapshot to restore from. Must not be specified at the
same time as snapshotArn
.
restoreFromSnapshot_namespaceName :: Lens' RestoreFromSnapshot Text Source #
The name of the namespace to restore the snapshot to.
restoreFromSnapshot_workgroupName :: Lens' RestoreFromSnapshot Text Source #
The name of the workgroup used to restore the snapshot.
Destructuring the Response
data RestoreFromSnapshotResponse Source #
See: newRestoreFromSnapshotResponse
smart constructor.
RestoreFromSnapshotResponse' | |
|
Instances
newRestoreFromSnapshotResponse Source #
Create a value of RestoreFromSnapshotResponse
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:namespace:RestoreFromSnapshotResponse'
, restoreFromSnapshotResponse_namespace
- Undocumented member.
RestoreFromSnapshot
, restoreFromSnapshotResponse_ownerAccount
- The owner Amazon Web Services; account of the snapshot that was
restored.
RestoreFromSnapshot
, restoreFromSnapshotResponse_snapshotName
- The name of the snapshot used to restore the namespace.
$sel:httpStatus:RestoreFromSnapshotResponse'
, restoreFromSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
restoreFromSnapshotResponse_namespace :: Lens' RestoreFromSnapshotResponse (Maybe Namespace) Source #
Undocumented member.
restoreFromSnapshotResponse_ownerAccount :: Lens' RestoreFromSnapshotResponse (Maybe Text) Source #
The owner Amazon Web Services; account of the snapshot that was restored.
restoreFromSnapshotResponse_snapshotName :: Lens' RestoreFromSnapshotResponse (Maybe Text) Source #
The name of the snapshot used to restore the namespace.
restoreFromSnapshotResponse_httpStatus :: Lens' RestoreFromSnapshotResponse Int Source #
The response's http status code.