Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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 to describe. You
must provide either the ResourceArn
of the protected resource or the
ProtectionID
of the protection, but not both.
DescribeProtection
, describeProtection_resourceArn
- The ARN (Amazon Resource Name) of the protected Amazon Web Services
resource. You must provide either the ResourceArn
of the protected
resource or the ProtectionID
of the protection, but not both.
Request Lenses
describeProtection_protectionId :: Lens' DescribeProtection (Maybe Text) Source #
The unique identifier (ID) for the Protection object to describe. You
must provide either the ResourceArn
of the protected resource or the
ProtectionID
of the protection, but not both.
describeProtection_resourceArn :: Lens' DescribeProtection (Maybe Text) Source #
The ARN (Amazon Resource Name) of the protected Amazon Web Services
resource. You must provide either the ResourceArn
of the protected
resource or the ProtectionID
of the protection, 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 that you requested.
$sel:httpStatus:DescribeProtectionResponse'
, describeProtectionResponse_httpStatus
- The response's http status code.
Response Lenses
describeProtectionResponse_protection :: Lens' DescribeProtectionResponse (Maybe Protection) Source #
The Protection that you requested.
describeProtectionResponse_httpStatus :: Lens' DescribeProtectionResponse Int Source #
The response's http status code.