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 |
Authorizes the specified Amazon Web Services 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
- data AuthorizeSnapshotAccess = AuthorizeSnapshotAccess' {}
- newAuthorizeSnapshotAccess :: Text -> Text -> AuthorizeSnapshotAccess
- authorizeSnapshotAccess_snapshotClusterIdentifier :: Lens' AuthorizeSnapshotAccess (Maybe Text)
- authorizeSnapshotAccess_snapshotIdentifier :: Lens' AuthorizeSnapshotAccess Text
- authorizeSnapshotAccess_accountWithRestoreAccess :: Lens' AuthorizeSnapshotAccess Text
- data AuthorizeSnapshotAccessResponse = AuthorizeSnapshotAccessResponse' {
- snapshot :: Maybe Snapshot
- httpStatus :: Int
- newAuthorizeSnapshotAccessResponse :: Int -> AuthorizeSnapshotAccessResponse
- authorizeSnapshotAccessResponse_snapshot :: Lens' AuthorizeSnapshotAccessResponse (Maybe Snapshot)
- authorizeSnapshotAccessResponse_httpStatus :: Lens' AuthorizeSnapshotAccessResponse Int
Creating a Request
data AuthorizeSnapshotAccess Source #
See: newAuthorizeSnapshotAccess
smart constructor.
AuthorizeSnapshotAccess' | |
|
Instances
newAuthorizeSnapshotAccess Source #
:: Text | |
-> Text | |
-> AuthorizeSnapshotAccess |
Create a value of AuthorizeSnapshotAccess
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:snapshotClusterIdentifier:AuthorizeSnapshotAccess'
, authorizeSnapshotAccess_snapshotClusterIdentifier
- 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.
$sel:snapshotIdentifier:AuthorizeSnapshotAccess'
, authorizeSnapshotAccess_snapshotIdentifier
- The identifier of the snapshot the account is authorized to restore.
$sel:accountWithRestoreAccess:AuthorizeSnapshotAccess'
, authorizeSnapshotAccess_accountWithRestoreAccess
- The identifier of the Amazon Web Services account authorized to restore
the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
Request Lenses
authorizeSnapshotAccess_snapshotClusterIdentifier :: 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.
authorizeSnapshotAccess_snapshotIdentifier :: Lens' AuthorizeSnapshotAccess Text Source #
The identifier of the snapshot the account is authorized to restore.
authorizeSnapshotAccess_accountWithRestoreAccess :: Lens' AuthorizeSnapshotAccess Text Source #
The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
Destructuring the Response
data AuthorizeSnapshotAccessResponse Source #
See: newAuthorizeSnapshotAccessResponse
smart constructor.
AuthorizeSnapshotAccessResponse' | |
|
Instances
Eq AuthorizeSnapshotAccessResponse Source # | |
Read AuthorizeSnapshotAccessResponse Source # | |
Show AuthorizeSnapshotAccessResponse Source # | |
Defined in Amazonka.Redshift.AuthorizeSnapshotAccess | |
Generic AuthorizeSnapshotAccessResponse Source # | |
NFData AuthorizeSnapshotAccessResponse Source # | |
Defined in Amazonka.Redshift.AuthorizeSnapshotAccess rnf :: AuthorizeSnapshotAccessResponse -> () # | |
type Rep AuthorizeSnapshotAccessResponse Source # | |
Defined in Amazonka.Redshift.AuthorizeSnapshotAccess type Rep AuthorizeSnapshotAccessResponse = D1 ('MetaData "AuthorizeSnapshotAccessResponse" "Amazonka.Redshift.AuthorizeSnapshotAccess" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "AuthorizeSnapshotAccessResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "snapshot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Snapshot)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAuthorizeSnapshotAccessResponse Source #
Create a value of AuthorizeSnapshotAccessResponse
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:snapshot:AuthorizeSnapshotAccessResponse'
, authorizeSnapshotAccessResponse_snapshot
- Undocumented member.
$sel:httpStatus:AuthorizeSnapshotAccessResponse'
, authorizeSnapshotAccessResponse_httpStatus
- The response's http status code.
Response Lenses
authorizeSnapshotAccessResponse_snapshot :: Lens' AuthorizeSnapshotAccessResponse (Maybe Snapshot) Source #
Undocumented member.
authorizeSnapshotAccessResponse_httpStatus :: Lens' AuthorizeSnapshotAccessResponse Int Source #
The response's http status code.