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 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
- data DescribeProtectedResource = DescribeProtectedResource' {
- resourceArn :: Text
- newDescribeProtectedResource :: Text -> DescribeProtectedResource
- describeProtectedResource_resourceArn :: Lens' DescribeProtectedResource Text
- data DescribeProtectedResourceResponse = DescribeProtectedResourceResponse' {}
- newDescribeProtectedResourceResponse :: Int -> DescribeProtectedResourceResponse
- describeProtectedResourceResponse_resourceType :: Lens' DescribeProtectedResourceResponse (Maybe Text)
- describeProtectedResourceResponse_lastBackupTime :: Lens' DescribeProtectedResourceResponse (Maybe UTCTime)
- describeProtectedResourceResponse_resourceArn :: Lens' DescribeProtectedResourceResponse (Maybe Text)
- describeProtectedResourceResponse_httpStatus :: Lens' DescribeProtectedResourceResponse Int
Creating a Request
data DescribeProtectedResource Source #
See: newDescribeProtectedResource
smart constructor.
DescribeProtectedResource' | |
|
Instances
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.
DescribeProtectedResourceResponse' | |
|
Instances
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.
describeProtectedResourceResponse_httpStatus :: Lens' DescribeProtectedResourceResponse Int Source #
The response's http status code.