Copyright | (c) 2013-2018 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 |
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 .
Synopsis
- 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:
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. To share a snapshot with AWS support, specify amazon-redshift-support.
data AuthorizeSnapshotAccess Source #
See: authorizeSnapshotAccess
smart constructor.
Instances
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. To share a snapshot with AWS support, specify amazon-redshift-support.
Destructuring the Response
authorizeSnapshotAccessResponse Source #
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 Source #
See: authorizeSnapshotAccessResponse
smart constructor.
Instances
Response Lenses
asarsSnapshot :: Lens' AuthorizeSnapshotAccessResponse (Maybe Snapshot) Source #
Undocumented member.
asarsResponseStatus :: Lens' AuthorizeSnapshotAccessResponse Int Source #
- - | The response status code.