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 |
Lists the details of a Protection object.
Synopsis
- data DescribeProtection = DescribeProtection' {}
- newDescribeProtection :: DescribeProtection
- describeProtection_protectionId :: Lens' DescribeProtection (Maybe Text)
- describeProtection_resourceArn :: Lens' DescribeProtection (Maybe Text)
- data DescribeProtectionResponse = DescribeProtectionResponse' {}
- newDescribeProtectionResponse :: Int -> DescribeProtectionResponse
- describeProtectionResponse_protection :: Lens' DescribeProtectionResponse (Maybe Protection)
- describeProtectionResponse_httpStatus :: Lens' DescribeProtectionResponse Int
Creating a Request
data DescribeProtection Source #
See: newDescribeProtection
smart constructor.
DescribeProtection' | |
|
Instances
newDescribeProtection :: DescribeProtection Source #
Create a value of DescribeProtection
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:protectionId:DescribeProtection'
, describeProtection_protectionId
- The unique identifier (ID) for the Protection object that is described.
When submitting the DescribeProtection
request you must provide either
the ResourceArn
or the ProtectionID
, but not both.
$sel:resourceArn:DescribeProtection'
, describeProtection_resourceArn
- The ARN (Amazon Resource Name) of the Amazon Web Services resource for
the Protection object that is described. When submitting the
DescribeProtection
request you must provide either the ResourceArn
or the ProtectionID
, but not both.
Request Lenses
describeProtection_protectionId :: Lens' DescribeProtection (Maybe Text) Source #
The unique identifier (ID) for the Protection object that is described.
When submitting the DescribeProtection
request you must provide either
the ResourceArn
or the ProtectionID
, but not both.
describeProtection_resourceArn :: Lens' DescribeProtection (Maybe Text) Source #
The ARN (Amazon Resource Name) of the Amazon Web Services resource for
the Protection object that is described. When submitting the
DescribeProtection
request you must provide either the ResourceArn
or the ProtectionID
, but not both.
Destructuring the Response
data DescribeProtectionResponse Source #
See: newDescribeProtectionResponse
smart constructor.
DescribeProtectionResponse' | |
|
Instances
newDescribeProtectionResponse Source #
Create a value of DescribeProtectionResponse
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:protection:DescribeProtectionResponse'
, describeProtectionResponse_protection
- The Protection object that is described.
$sel:httpStatus:DescribeProtectionResponse'
, describeProtectionResponse_httpStatus
- The response's http status code.
Response Lenses
describeProtectionResponse_protection :: Lens' DescribeProtectionResponse (Maybe Protection) Source #
The Protection object that is described.
describeProtectionResponse_httpStatus :: Lens' DescribeProtectionResponse Int Source #
The response's http status code.