describeDbSnapshotAttributes
inline suspend fun RdsClient.describeDbSnapshotAttributes(crossinline block: DescribeDbSnapshotAttributesRequest.Builder.() -> Unit): DescribeDbSnapshotAttributesResponse
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.
Samples
fun main() {
//sampleStart
// The following example describes the attribute names and values for a DB snapshot.
val resp = rdsClient.describeDbSnapshotAttributes {
dbSnapshotIdentifier = "mydbsnapshot"
}
//sampleEnd
}