Deletes a query logging configuration. When you delete a configuration, Resolver stops logging DNS queries for all of the Amazon VPCs that are associated with the configuration. This also applies if the query logging configuration is shared with other Amazon Web Services accounts, and the other accounts have associated VPCs with the shared configuration.
Before you can delete a query logging configuration, you must first disassociate all VPCs from the configuration. See DisassociateResolverQueryLogConfig.
If you used Resource Access Manager (RAM) to share a query logging configuration with other accounts, you must stop sharing the configuration before you can delete a configuration. The accounts that you shared the configuration with can first disassociate VPCs that they associated with the configuration, but that's not necessary. If you stop sharing the configuration, those VPCs are automatically disassociated from the configuration.
Parameters:
-
resolver_query_log_config_id
(ResourceId)
–
The ID of the query logging configuration that you want to delete.
Raises:
Source code in docs_src/capo_route53resolver/_services/route53_resolver.py
| def delete_resolver_query_log_config(
self,
resolver_query_log_config_id: "capo_route53resolver.types.resource_id.ResourceId",
*,
config_overrides: Optional[Route53ResolverClientConfig] = None,
) -> "capo_route53resolver.types.delete_resolver_query_log_config_response.DeleteResolverQueryLogConfigResponse":
"""<p>Deletes a query logging configuration. When you delete a configuration, Resolver stops logging DNS queries for all of the Amazon VPCs that are associated with the configuration. This also applies if the query logging configuration is shared with other Amazon Web Services accounts, and the other accounts have associated VPCs with the shared configuration.</p> <p>Before you can delete a query logging configuration, you must first disassociate all VPCs from the configuration. See <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_DisassociateResolverQueryLogConfig.html">DisassociateResolverQueryLogConfig</a>.</p> <p>If you used Resource Access Manager (RAM) to share a query logging configuration with other accounts, you must stop sharing the configuration before you can delete a configuration. The accounts that you shared the configuration with can first disassociate VPCs that they associated with the configuration, but that's not necessary. If you stop sharing the configuration, those VPCs are automatically disassociated from the configuration.</p>
Args:
resolver_query_log_config_id: <p>The ID of the query logging configuration that you want to delete.</p>
Raises:
capo_route53resolver.errors.access_denied_exception.AccessDeniedException: <p>The current account doesn't have the IAM permissions required to perform the specified Resolver operation.</p> <p>This error can also be thrown when a customer has reached the 5120 character limit for a resource policy for CloudWatch Logs.</p>
capo_route53resolver.errors.internal_service_error_exception.InternalServiceErrorException: <p>We encountered an unknown error. Try again in a few minutes.</p>
capo_route53resolver.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters in this request are not valid.</p>
capo_route53resolver.errors.invalid_request_exception.InvalidRequestException: <p>The request is invalid.</p>
capo_route53resolver.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource doesn't exist.</p>
capo_route53resolver.errors.throttling_exception.ThrottlingException: <p>The request was throttled. Try again in a few minutes.</p>
capo_route53resolver.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_route53resolver.types.delete_resolver_query_log_config_request.DeleteResolverQueryLogConfigRequest]",
) -> OperationResponse[
"capo_route53resolver.types.delete_resolver_query_log_config_response.DeleteResolverQueryLogConfigResponse"
]:
import capo_route53resolver._operations.route53_resolver.delete_resolver_query_log_config
output, http_response = (
capo_route53resolver._operations.route53_resolver.delete_resolver_query_log_config.delete_resolver_query_log_config(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteResolverQueryLogConfig")
)
input_: capo_route53resolver.types.delete_resolver_query_log_config_request.DeleteResolverQueryLogConfigRequest = {
"resolver_query_log_config_id": resolver_query_log_config_id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|