Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Lists all Protection
objects for the account.
- listProtections :: ListProtections
- data ListProtections
- lpNextToken :: Lens' ListProtections (Maybe Text)
- lpMaxResults :: Lens' ListProtections (Maybe Natural)
- listProtectionsResponse :: Int -> ListProtectionsResponse
- data ListProtectionsResponse
- lprsProtections :: Lens' ListProtectionsResponse [Protection]
- lprsNextToken :: Lens' ListProtectionsResponse (Maybe Text)
- lprsResponseStatus :: Lens' ListProtectionsResponse Int
Creating a Request
listProtections :: ListProtections Source #
Creates a value of ListProtections
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lpNextToken
- TheListProtectionsRequest.NextToken
value from a previous call toListProtections
. Pass null if this is the first call.lpMaxResults
- The maximum number ofProtection
objects to be returned. If this is left blank the first 20 results will be returned.
data ListProtections Source #
See: listProtections
smart constructor.
Request Lenses
lpNextToken :: Lens' ListProtections (Maybe Text) Source #
The ListProtectionsRequest.NextToken
value from a previous call to ListProtections
. Pass null if this is the first call.
lpMaxResults :: Lens' ListProtections (Maybe Natural) Source #
The maximum number of Protection
objects to be returned. If this is left blank the first 20 results will be returned.
Destructuring the Response
listProtectionsResponse Source #
Creates a value of ListProtectionsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lprsProtections
- The array of enabledProtection
objects.lprsNextToken
- If you specify a value forMaxResults
and you have more Protections than the value of MaxResults, AWS Shield Advanced returns a NextToken value in the response that allows you to list another group of Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the previous response to get information about another batch of Protections.lprsResponseStatus
- -- | The response status code.
data ListProtectionsResponse Source #
See: listProtectionsResponse
smart constructor.
Response Lenses
lprsProtections :: Lens' ListProtectionsResponse [Protection] Source #
The array of enabled Protection
objects.
lprsNextToken :: Lens' ListProtectionsResponse (Maybe Text) Source #
If you specify a value for MaxResults
and you have more Protections than the value of MaxResults, AWS Shield Advanced returns a NextToken value in the response that allows you to list another group of Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the previous response to get information about another batch of Protections.
lprsResponseStatus :: Lens' ListProtectionsResponse Int Source #
- - | The response status code.