libZSservicesZSamazonka-backupZSamazonka-backup
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Backup.DescribeProtectedResource

Description

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.

Synopsis

Creating a Request

data DescribeProtectedResource Source #

See: newDescribeProtectedResource smart constructor.

Constructors

DescribeProtectedResource' 

Fields

  • resourceArn :: Text

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

Instances

Instances details
Eq DescribeProtectedResource Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

Read DescribeProtectedResource Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

Show DescribeProtectedResource Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

Generic DescribeProtectedResource Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

Associated Types

type Rep DescribeProtectedResource :: Type -> Type #

NFData DescribeProtectedResource Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

Hashable DescribeProtectedResource Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

AWSRequest DescribeProtectedResource Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

ToHeaders DescribeProtectedResource Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

ToPath DescribeProtectedResource Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

ToQuery DescribeProtectedResource Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

type Rep DescribeProtectedResource Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

type Rep DescribeProtectedResource = D1 ('MetaData "DescribeProtectedResource" "Amazonka.Backup.DescribeProtectedResource" "libZSservicesZSamazonka-backupZSamazonka-backup" 'False) (C1 ('MetaCons "DescribeProtectedResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DescribeProtectedResource Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

newDescribeProtectedResource Source #

Create a value of DescribeProtectedResource 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:resourceArn:DescribeProtectedResource', describeProtectedResource_resourceArn - An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.

Request Lenses

describeProtectedResource_resourceArn :: Lens' DescribeProtectedResource Text Source #

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

Destructuring the Response

data DescribeProtectedResourceResponse Source #

See: newDescribeProtectedResourceResponse smart constructor.

Constructors

DescribeProtectedResourceResponse' 

Fields

  • resourceType :: Maybe Text

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

  • lastBackupTime :: Maybe POSIX

    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.

  • resourceArn :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeProtectedResourceResponse Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

Read DescribeProtectedResourceResponse Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

Show DescribeProtectedResourceResponse Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

Generic DescribeProtectedResourceResponse Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

Associated Types

type Rep DescribeProtectedResourceResponse :: Type -> Type #

NFData DescribeProtectedResourceResponse Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

type Rep DescribeProtectedResourceResponse Source # 
Instance details

Defined in Amazonka.Backup.DescribeProtectedResource

type Rep DescribeProtectedResourceResponse = D1 ('MetaData "DescribeProtectedResourceResponse" "Amazonka.Backup.DescribeProtectedResource" "libZSservicesZSamazonka-backupZSamazonka-backup" 'False) (C1 ('MetaCons "DescribeProtectedResourceResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastBackupTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeProtectedResourceResponse Source #

Create a value of DescribeProtectedResourceResponse 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:resourceType:DescribeProtectedResourceResponse', describeProtectedResourceResponse_resourceType - The type of Amazon Web Services resource saved as a recovery point; for example, an Amazon EBS volume or an Amazon RDS database.

$sel:lastBackupTime:DescribeProtectedResourceResponse', describeProtectedResourceResponse_lastBackupTime - 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.

$sel:resourceArn:DescribeProtectedResource', describeProtectedResourceResponse_resourceArn - An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.

$sel:httpStatus:DescribeProtectedResourceResponse', describeProtectedResourceResponse_httpStatus - The response's http status code.

Response Lenses

describeProtectedResourceResponse_resourceType :: Lens' DescribeProtectedResourceResponse (Maybe Text) Source #

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

describeProtectedResourceResponse_lastBackupTime :: Lens' DescribeProtectedResourceResponse (Maybe UTCTime) Source #

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.

describeProtectedResourceResponse_resourceArn :: Lens' DescribeProtectedResourceResponse (Maybe Text) Source #

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