Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Authorizes the specified AWS customer account to restore the specified snapshot.
For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide.
See: AWS API Reference for AuthorizeSnapshotAccess.
- authorizeSnapshotAccess :: Text -> Text -> AuthorizeSnapshotAccess
- data AuthorizeSnapshotAccess
- asaSnapshotClusterIdentifier :: Lens' AuthorizeSnapshotAccess (Maybe Text)
- asaSnapshotIdentifier :: Lens' AuthorizeSnapshotAccess Text
- asaAccountWithRestoreAccess :: Lens' AuthorizeSnapshotAccess Text
- authorizeSnapshotAccessResponse :: Int -> AuthorizeSnapshotAccessResponse
- data AuthorizeSnapshotAccessResponse
- asarsSnapshot :: Lens' AuthorizeSnapshotAccessResponse (Maybe Snapshot)
- asarsResponseStatus :: Lens' AuthorizeSnapshotAccessResponse Int
Creating a Request
authorizeSnapshotAccess Source
Creates a value of AuthorizeSnapshotAccess
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AuthorizeSnapshotAccess Source
See: authorizeSnapshotAccess
smart constructor.
Request Lenses
asaSnapshotClusterIdentifier :: Lens' AuthorizeSnapshotAccess (Maybe Text) Source
The identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.
asaSnapshotIdentifier :: Lens' AuthorizeSnapshotAccess Text Source
The identifier of the snapshot the account is authorized to restore.
asaAccountWithRestoreAccess :: Lens' AuthorizeSnapshotAccess Text Source
The identifier of the AWS customer account authorized to restore the specified snapshot.
Destructuring the Response
authorizeSnapshotAccessResponse Source
Creates a value of AuthorizeSnapshotAccessResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AuthorizeSnapshotAccessResponse Source
See: authorizeSnapshotAccessResponse
smart constructor.
Response Lenses
asarsSnapshot :: Lens' AuthorizeSnapshotAccessResponse (Maybe Snapshot) Source
Undocumented member.
asarsResponseStatus :: Lens' AuthorizeSnapshotAccessResponse Int Source
The response status code.