Skip to content

get_firewall_rule_group_association async

get_firewall_rule_group_association(
    firewall_rule_group_association_id: ResourceId,
    *,
    config_overrides: Optional[AsyncRoute53ResolverClientConfig] = None,
) -> GetFirewallRuleGroupAssociationResponse

Retrieves a firewall rule group association, which enables DNS filtering for a VPC with one rule group. A VPC can have more than one firewall rule group association, and a rule group can be associated with more than one VPC.

Parameters:

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.

  • 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/async_route53_resolver.py
async def get_firewall_rule_group_association(
    self,
    firewall_rule_group_association_id: "capo_route53resolver.types.resource_id.ResourceId",
    *,
    config_overrides: Optional[AsyncRoute53ResolverClientConfig] = None,
) -> "capo_route53resolver.types.get_firewall_rule_group_association_response.GetFirewallRuleGroupAssociationResponse":
    """<p>Retrieves a firewall rule group association, which enables DNS filtering for a VPC with one rule group. A VPC can have more than one firewall rule group association, and a rule group can be associated with more than one VPC.</p>

    Args:
        firewall_rule_group_association_id: <p>The identifier of the <a>FirewallRuleGroupAssociation</a>. </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.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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_route53resolver.types.get_firewall_rule_group_association_request.GetFirewallRuleGroupAssociationRequest]",
    ) -> AsyncOperationResponse[
        "capo_route53resolver.types.get_firewall_rule_group_association_response.GetFirewallRuleGroupAssociationResponse"
    ]:
        import capo_route53resolver._operations.route53_resolver.get_firewall_rule_group_association

        (
            output,
            http_response,
        ) = await capo_route53resolver._operations.route53_resolver.get_firewall_rule_group_association.async_get_firewall_rule_group_association(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetFirewallRuleGroupAssociation")
    )
    input_: capo_route53resolver.types.get_firewall_rule_group_association_request.GetFirewallRuleGroupAssociationRequest = {
        "firewall_rule_group_association_id": firewall_rule_group_association_id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output