Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Lists the configurations for DNS query logging that are associated with the current AWS account or the configuration that is associated with a specified hosted zone.
For more information about DNS query logs, see CreateQueryLoggingConfig
. Additional information, including the format of DNS query logs, appears in Logging DNS Queries in the Amazon Route 53 Developer Guide .
- listQueryLoggingConfigs :: ListQueryLoggingConfigs
- data ListQueryLoggingConfigs
- lqlcHostedZoneId :: Lens' ListQueryLoggingConfigs (Maybe ResourceId)
- lqlcNextToken :: Lens' ListQueryLoggingConfigs (Maybe Text)
- lqlcMaxResults :: Lens' ListQueryLoggingConfigs (Maybe Text)
- listQueryLoggingConfigsResponse :: Int -> ListQueryLoggingConfigsResponse
- data ListQueryLoggingConfigsResponse
- lqlcrsNextToken :: Lens' ListQueryLoggingConfigsResponse (Maybe Text)
- lqlcrsResponseStatus :: Lens' ListQueryLoggingConfigsResponse Int
- lqlcrsQueryLoggingConfigs :: Lens' ListQueryLoggingConfigsResponse [QueryLoggingConfig]
Creating a Request
listQueryLoggingConfigs :: ListQueryLoggingConfigs Source #
Creates a value of ListQueryLoggingConfigs
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lqlcHostedZoneId
- (Optional) If you want to list the query logging configuration that is associated with a hosted zone, specify the ID inHostedZoneId
. If you don't specify a hosted zone ID,ListQueryLoggingConfigs
returns all of the configurations that are associated with the current AWS account.lqlcNextToken
- (Optional) If the current AWS account has more thanMaxResults
query logging configurations, useNextToken
to get the second and subsequent pages of results. For the firstListQueryLoggingConfigs
request, omit this value. For the second and subsequent requests, get the value ofNextToken
from the previous response and specify that value forNextToken
in the request.lqlcMaxResults
- (Optional) The maximum number of query logging configurations that you want Amazon Route 53 to return in response to the current request. If the current AWS account has more thanMaxResults
configurations, use the value of 'ListQueryLoggingConfigsResponse$NextToken' in the response to get the next page of results. If you don't specify a value forMaxResults
, Amazon Route 53 returns up to 100 configurations.
data ListQueryLoggingConfigs Source #
See: listQueryLoggingConfigs
smart constructor.
Request Lenses
lqlcHostedZoneId :: Lens' ListQueryLoggingConfigs (Maybe ResourceId) Source #
(Optional) If you want to list the query logging configuration that is associated with a hosted zone, specify the ID in HostedZoneId
. If you don't specify a hosted zone ID, ListQueryLoggingConfigs
returns all of the configurations that are associated with the current AWS account.
lqlcNextToken :: Lens' ListQueryLoggingConfigs (Maybe Text) Source #
(Optional) If the current AWS account has more than MaxResults
query logging configurations, use NextToken
to get the second and subsequent pages of results. For the first ListQueryLoggingConfigs
request, omit this value. For the second and subsequent requests, get the value of NextToken
from the previous response and specify that value for NextToken
in the request.
lqlcMaxResults :: Lens' ListQueryLoggingConfigs (Maybe Text) Source #
(Optional) The maximum number of query logging configurations that you want Amazon Route 53 to return in response to the current request. If the current AWS account has more than MaxResults
configurations, use the value of 'ListQueryLoggingConfigsResponse$NextToken' in the response to get the next page of results. If you don't specify a value for MaxResults
, Amazon Route 53 returns up to 100 configurations.
Destructuring the Response
listQueryLoggingConfigsResponse Source #
Creates a value of ListQueryLoggingConfigsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lqlcrsNextToken
- If a response includes the last of the query logging configurations that are associated with the current AWS account,NextToken
doesn't appear in the response. If a response doesn't include the last of the configurations, you can get more configurations by submitting anotherListQueryLoggingConfigs
request. Get the value ofNextToken
that Amazon Route 53 returned in the previous response and include it inNextToken
in the next request.lqlcrsResponseStatus
- -- | The response status code.lqlcrsQueryLoggingConfigs
- An array that contains oneQueryLoggingConfig
element for each configuration for DNS query logging that is associated with the current AWS account.
data ListQueryLoggingConfigsResponse Source #
See: listQueryLoggingConfigsResponse
smart constructor.
Response Lenses
lqlcrsNextToken :: Lens' ListQueryLoggingConfigsResponse (Maybe Text) Source #
If a response includes the last of the query logging configurations that are associated with the current AWS account, NextToken
doesn't appear in the response. If a response doesn't include the last of the configurations, you can get more configurations by submitting another ListQueryLoggingConfigs
request. Get the value of NextToken
that Amazon Route 53 returned in the previous response and include it in NextToken
in the next request.
lqlcrsResponseStatus :: Lens' ListQueryLoggingConfigsResponse Int Source #
- - | The response status code.
lqlcrsQueryLoggingConfigs :: Lens' ListQueryLoggingConfigsResponse [QueryLoggingConfig] Source #
An array that contains one QueryLoggingConfig
element for each configuration for DNS query logging that is associated with the current AWS account.