describe_protected_resource

describe_protected_resource(**kwargs)

Returns information about a saved resource, including the last time it was backed up, its Amazon Resource Name (ARN), and the Amazon Web Services service type of the saved resource.

See also: AWS API Documentation

Request Syntax

response = client.describe_protected_resource(
    ResourceArn='string'
)
Parameters
ResourceArn (string) --

[REQUIRED]

An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.

Return type
dict
Returns
Response Syntax
{
    'ResourceArn': 'string',
    'ResourceType': 'string',
    'LastBackupTime': datetime(2015, 1, 1),
    'ResourceName': 'string'
}

Response Structure

  • (dict) --
    • ResourceArn (string) --

      An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.

    • ResourceType (string) --

      The type of Amazon Web Services resource saved as a recovery point; for example, an Amazon EBS volume or an Amazon RDS database.

    • LastBackupTime (datetime) --

      The date and time that a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of LastBackupTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

    • ResourceName (string) --

      This is the non-unique name of the resource that belongs to the specified backup.

Exceptions

  • Backup.Client.exceptions.MissingParameterValueException
  • Backup.Client.exceptions.InvalidParameterValueException
  • Backup.Client.exceptions.ServiceUnavailableException
  • Backup.Client.exceptions.ResourceNotFoundException