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 |
Returns a list of DB snapshot attribute names and values for a manual DB snapshot.
When sharing snapshots with other Amazon Web Services accounts,
DescribeDBSnapshotAttributes
returns the restore
attribute and a
list of IDs for the Amazon Web Services accounts that are authorized to
copy or restore the manual DB snapshot. If all
is included in the list
of values for the restore
attribute, then the manual DB snapshot is
public and can be copied or restored by all Amazon Web Services
accounts.
To add or remove access for an Amazon Web Services account to copy or
restore a manual DB snapshot, or to make the manual DB snapshot public
or private, use the ModifyDBSnapshotAttribute
API action.
Synopsis
- data DescribeDBSnapshotAttributes = DescribeDBSnapshotAttributes' {}
- newDescribeDBSnapshotAttributes :: Text -> DescribeDBSnapshotAttributes
- describeDBSnapshotAttributes_dbSnapshotIdentifier :: Lens' DescribeDBSnapshotAttributes Text
- data DescribeDBSnapshotAttributesResponse = DescribeDBSnapshotAttributesResponse' {}
- newDescribeDBSnapshotAttributesResponse :: Int -> DescribeDBSnapshotAttributesResponse
- describeDBSnapshotAttributesResponse_dbSnapshotAttributesResult :: Lens' DescribeDBSnapshotAttributesResponse (Maybe DBSnapshotAttributesResult)
- describeDBSnapshotAttributesResponse_httpStatus :: Lens' DescribeDBSnapshotAttributesResponse Int
Creating a Request
data DescribeDBSnapshotAttributes Source #
See: newDescribeDBSnapshotAttributes
smart constructor.
DescribeDBSnapshotAttributes' | |
|
Instances
newDescribeDBSnapshotAttributes Source #
Create a value of DescribeDBSnapshotAttributes
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:dbSnapshotIdentifier:DescribeDBSnapshotAttributes'
, describeDBSnapshotAttributes_dbSnapshotIdentifier
- The identifier for the DB snapshot to describe the attributes for.
Request Lenses
describeDBSnapshotAttributes_dbSnapshotIdentifier :: Lens' DescribeDBSnapshotAttributes Text Source #
The identifier for the DB snapshot to describe the attributes for.
Destructuring the Response
data DescribeDBSnapshotAttributesResponse Source #
See: newDescribeDBSnapshotAttributesResponse
smart constructor.
DescribeDBSnapshotAttributesResponse' | |
|
Instances
Eq DescribeDBSnapshotAttributesResponse Source # | |
Read DescribeDBSnapshotAttributesResponse Source # | |
Show DescribeDBSnapshotAttributesResponse Source # | |
Generic DescribeDBSnapshotAttributesResponse Source # | |
NFData DescribeDBSnapshotAttributesResponse Source # | |
Defined in Amazonka.RDS.DescribeDBSnapshotAttributes rnf :: DescribeDBSnapshotAttributesResponse -> () # | |
type Rep DescribeDBSnapshotAttributesResponse Source # | |
Defined in Amazonka.RDS.DescribeDBSnapshotAttributes type Rep DescribeDBSnapshotAttributesResponse = D1 ('MetaData "DescribeDBSnapshotAttributesResponse" "Amazonka.RDS.DescribeDBSnapshotAttributes" "libZSservicesZSamazonka-rdsZSamazonka-rds" 'False) (C1 ('MetaCons "DescribeDBSnapshotAttributesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dbSnapshotAttributesResult") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DBSnapshotAttributesResult)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDescribeDBSnapshotAttributesResponse Source #
Create a value of DescribeDBSnapshotAttributesResponse
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:dbSnapshotAttributesResult:DescribeDBSnapshotAttributesResponse'
, describeDBSnapshotAttributesResponse_dbSnapshotAttributesResult
- Undocumented member.
$sel:httpStatus:DescribeDBSnapshotAttributesResponse'
, describeDBSnapshotAttributesResponse_httpStatus
- The response's http status code.
Response Lenses
describeDBSnapshotAttributesResponse_dbSnapshotAttributesResult :: Lens' DescribeDBSnapshotAttributesResponse (Maybe DBSnapshotAttributesResult) Source #
Undocumented member.
describeDBSnapshotAttributesResponse_httpStatus :: Lens' DescribeDBSnapshotAttributesResponse Int Source #
The response's http status code.