Copyright | (c) 2013-2016 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 |
Network.AWS.Redshift.AuthorizeSnapshotAccess
Description
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 .
- 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
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:
asaSnapshotClusterIdentifier
- 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
- The identifier of the snapshot the account is authorized to restore.asaAccountWithRestoreAccess
- The identifier of the AWS customer account authorized to restore the specified snapshot.
data AuthorizeSnapshotAccess #
See: authorizeSnapshotAccess
smart constructor.
Instances
Request Lenses
asaSnapshotClusterIdentifier :: Lens' AuthorizeSnapshotAccess (Maybe Text) #
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 #
The identifier of the snapshot the account is authorized to restore.
asaAccountWithRestoreAccess :: Lens' AuthorizeSnapshotAccess Text #
The identifier of the AWS customer account authorized to restore the specified snapshot.
Destructuring the Response
authorizeSnapshotAccessResponse #
Arguments
:: Int | |
-> AuthorizeSnapshotAccessResponse |
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:
asarsSnapshot
- Undocumented member.asarsResponseStatus
- -- | The response status code.
data AuthorizeSnapshotAccessResponse #
See: authorizeSnapshotAccessResponse
smart constructor.
Response Lenses
asarsSnapshot :: Lens' AuthorizeSnapshotAccessResponse (Maybe Snapshot) #
Undocumented member.
asarsResponseStatus :: Lens' AuthorizeSnapshotAccessResponse Int #
- - | The response status code.