list_resolver_query_log_config_associations
¶
list_resolver_query_log_config_associations(
*,
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,
) -> ListResolverQueryLogConfigAssociationsResponse
Lists information about associations between Amazon VPCs and query logging configurations.
Parameters:
-
max_results(Optional[MaxResults], default:None) –The maximum number of query logging associations that you want to return in the response to a
ListResolverQueryLogConfigAssociationsrequest. If you don't specify a value forMaxResults, Resolver returns up to 100 query logging associations. -
next_token(Optional[NextToken], default:None) –For the first
ListResolverQueryLogConfigAssociationsrequest, omit this value.If there are more than
MaxResultsquery logging associations that match the values that you specify forFilters, you can submit anotherListResolverQueryLogConfigAssociationsrequest to get the next group of associations. 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 associations.
If you submit a second or subsequent
ListResolverQueryLogConfigAssociationsrequest 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 associations by.
If you submit a second or subsequent
ListResolverQueryLogConfigAssociationsrequest and specify theNextTokenparameter, you must use the same value forSortBy, if any, as in the previous request.Valid values include the following elements:
-
CreationTime: The ID of the query logging association. -
Error: If the value ofStatusisFAILED, the value ofErrorindicates the cause:-
DESTINATION_NOT_FOUND: The specified destination (for example, an Amazon S3 bucket) was deleted. -
ACCESS_DENIED: Permissions don't allow sending logs to the destination.
If
Statusis a value other thanFAILED,ERRORis null. -
-
Id: The ID of the query logging association -
ResolverQueryLogConfigId: The ID of the query logging configuration -
ResourceId: The ID of the VPC that is associated with the query logging configuration -
Status: The current status of the configuration. Valid values include the following:-
CREATING: Resolver is creating an association between an Amazon VPC and a query logging configuration. -
CREATED: The association between an Amazon VPC and a query logging configuration was successfully created. Resolver is logging queries that originate in the specified VPC. -
DELETING: Resolver is deleting this query logging association. -
FAILED: Resolver either couldn't create or couldn't delete the query logging association. 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 associations to be listed in,ASCENDINGorDESCENDING.If you submit a second or subsequent
ListResolverQueryLogConfigAssociationsrequest 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.
-
InvalidParameterException–One or more parameters in this request are not valid.
-
InvalidRequestException–The request is invalid.
-
LimitExceededException–The request caused one or more limits to be exceeded.
-
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
3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 | |