list_resolver_query_log_configs
¶
list_resolver_query_log_configs(
*,
config_overrides: Optional[Route53ResolverClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
filters: Optional[Filters] = None,
sort_by: Optional[SortByKey] = None,
sort_order: Optional[SortOrder] = None,
) -> ListResolverQueryLogConfigsResponse
Lists information about the specified query logging configurations. Each configuration defines where you want Resolver to save DNS query logs and specifies the VPCs that you want to log queries for.
Parameters:
-
max_results(Optional[MaxResults], default:None) –The maximum number of query logging configurations that you want to return in the response to a
ListResolverQueryLogConfigsrequest. If you don't specify a value forMaxResults, Resolver returns up to 100 query logging configurations. -
next_token(Optional[NextToken], default:None) –For the first
ListResolverQueryLogConfigsrequest, omit this value.If there are more than
MaxResultsquery logging configurations that match the values that you specify forFilters, you can submit anotherListResolverQueryLogConfigsrequest to get the next group of configurations. In the next request, specify the value ofNextTokenfrom the previous response. -
filters(Optional[Filters], default:None) –An optional specification to return a subset of query logging configurations.
If you submit a second or subsequent
ListResolverQueryLogConfigsrequest and specify theNextTokenparameter, you must use the same values forFilters, if any, as in the previous request. -
sort_by(Optional[SortByKey], default:None) –The element that you want Resolver to sort query logging configurations by.
If you submit a second or subsequent
ListResolverQueryLogConfigsrequest and specify theNextTokenparameter, you must use the same value forSortBy, if any, as in the previous request.Valid values include the following elements:
-
Arn: The ARN of the query logging configuration -
AssociationCount: The number of VPCs that are associated with the specified configuration -
CreationTime: The date and time that Resolver returned when the configuration was created -
CreatorRequestId: The value that was specified forCreatorRequestIdwhen the configuration was created -
DestinationArn: The location that logs are sent to -
Id: The ID of the configuration -
Name: The name of the configuration -
OwnerId: The Amazon Web Services account number of the account that created the configuration -
ShareStatus: Whether the configuration is shared with other Amazon Web Services accounts or shared with the current account by another Amazon Web Services account. Sharing is configured through Resource Access Manager (RAM). -
Status: The current status of the configuration. Valid values include the following:-
CREATING: Resolver is creating the query logging configuration. -
CREATED: The query logging configuration was successfully created. Resolver is logging queries that originate in the specified VPC. -
DELETING: Resolver is deleting this query logging configuration. -
FAILED: Resolver either couldn't create or couldn't delete the query logging configuration. Here are two common causes:-
The specified destination (for example, an Amazon S3 bucket) was deleted.
-
Permissions don't allow sending logs to the destination.
-
-
-
-
sort_order(Optional[SortOrder], default:None) –If you specified a value for
SortBy, the order that you want query logging configurations to be listed in,ASCENDINGorDESCENDING.If you submit a second or subsequent
ListResolverQueryLogConfigsrequest and specify theNextTokenparameter, you must use the same value forSortOrder, if any, as in the previous request.
Raises:
-
AccessDeniedException–The current account doesn't have the IAM permissions required to perform the specified Resolver operation.
This error can also be thrown when a customer has reached the 5120 character limit for a resource policy for CloudWatch Logs.
-
InternalServiceErrorException–We encountered an unknown error. Try again in a few minutes.
-
InvalidNextTokenException–The value that you specified for
NextTokenin aListrequest isn't valid. -
InvalidParameterException–One or more parameters in this request are not valid.
-
InvalidRequestException–The request is invalid.
-
ThrottlingException–The request was throttled. Try again in a few minutes.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_route53resolver/_services/route53_resolver.py
3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 | |