Skip to content

delete_firewall_domain_list

delete_firewall_domain_list(
    firewall_domain_list_id: ResourceId,
    *,
    config_overrides: Optional[Route53ResolverClientConfig] = None,
) -> DeleteFirewallDomainListResponse

Deletes the specified domain list.

Parameters:

  • firewall_domain_list_id (ResourceId) –

    The ID of the domain list that you want to delete.

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.

  • ConflictException –

    The requested state transition isn't valid. For example, you can't delete a firewall domain list if it is in the process of being deleted, or you can't import domains into a domain list that is in the process of being deleted.

  • InternalServiceErrorException –

    We encountered an unknown error. Try again in a few minutes.

  • ResourceNotFoundException –

    The specified resource doesn't exist.

  • 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
def delete_firewall_domain_list(
    self,
    firewall_domain_list_id: "capo_route53resolver.types.resource_id.ResourceId",
    *,
    config_overrides: Optional[Route53ResolverClientConfig] = None,
) -> "capo_route53resolver.types.delete_firewall_domain_list_response.DeleteFirewallDomainListResponse":
    """<p>Deletes the specified domain list. </p>

    Args:
        firewall_domain_list_id: <p>The ID of the domain list 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.conflict_exception.ConflictException: <p>The requested state transition isn't valid. For example, you can't delete a firewall domain list if it is in the process of being deleted, or you can't import domains into a domain list that is in the process of being deleted.</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.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_firewall_domain_list_request.DeleteFirewallDomainListRequest]",
    ) -> OperationResponse[
        "capo_route53resolver.types.delete_firewall_domain_list_response.DeleteFirewallDomainListResponse"
    ]:
        import capo_route53resolver._operations.route53_resolver.delete_firewall_domain_list

        output, http_response = (
            capo_route53resolver._operations.route53_resolver.delete_firewall_domain_list.delete_firewall_domain_list(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteFirewallDomainList")
    )
    input_: capo_route53resolver.types.delete_firewall_domain_list_request.DeleteFirewallDomainListRequest = {
        "firewall_domain_list_id": firewall_domain_list_id
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output