Skip to content

remove_trust_store_revocations async

remove_trust_store_revocations(
    *,
    config_overrides: Optional[AsyncElasticLoadBalancingv2ClientConfig] = None,
    trust_store_arn: Optional[TrustStoreArn] = None,
    revocation_ids: Optional[RevocationIds] = None,
) -> RemoveTrustStoreRevocationsOutput

Removes the specified revocation file from the specified trust store.

Parameters:

  • trust_store_arn (Optional[TrustStoreArn], default: None ) –

    The Amazon Resource Name (ARN) of the trust store.

  • revocation_ids (Optional[RevocationIds], default: None ) –

    The revocation IDs of the revocation files you want to remove.

Raises:

Source code in docs_src/capo_elastic_load_balancing_v2/_services/async_elastic_load_balancingv2.py
async def remove_trust_store_revocations(
    self,
    *,
    config_overrides: Optional[AsyncElasticLoadBalancingv2ClientConfig] = None,
    trust_store_arn: Optional[
        "capo_elastic_load_balancing_v2.types.trust_store_arn.TrustStoreArn"
    ] = None,
    revocation_ids: Optional[
        "capo_elastic_load_balancing_v2.types.revocation_ids.RevocationIds"
    ] = None,
) -> "capo_elastic_load_balancing_v2.types.remove_trust_store_revocations_output.RemoveTrustStoreRevocationsOutput":
    """<p>Removes the specified revocation file from the specified trust store.</p>

    Args:
        trust_store_arn: <p>The Amazon Resource Name (ARN) of the trust store.</p>
        revocation_ids: <p>The revocation IDs of the revocation files you want to remove.</p>

    Raises:
        capo_elastic_load_balancing_v2.errors.revocation_id_not_found_exception.RevocationIdNotFoundException: <p>The specified revocation ID does not exist.</p>
        capo_elastic_load_balancing_v2.errors.trust_store_not_found_exception.TrustStoreNotFoundException: <p>The specified trust store does not exist.</p>
        capo_elastic_load_balancing_v2.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_elastic_load_balancing_v2.types.remove_trust_store_revocations_input.RemoveTrustStoreRevocationsInput]",
    ) -> AsyncOperationResponse[
        "capo_elastic_load_balancing_v2.types.remove_trust_store_revocations_output.RemoveTrustStoreRevocationsOutput"
    ]:
        import capo_elastic_load_balancing_v2._operations.elastic_load_balancing_v10.remove_trust_store_revocations

        (
            output,
            http_response,
        ) = await capo_elastic_load_balancing_v2._operations.elastic_load_balancing_v10.remove_trust_store_revocations.async_remove_trust_store_revocations(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("RemoveTrustStoreRevocations")
    )
    input_: capo_elastic_load_balancing_v2.types.remove_trust_store_revocations_input.RemoveTrustStoreRevocationsInput = {}
    if trust_store_arn is not None:
        input_["trust_store_arn"] = trust_store_arn
    if revocation_ids is not None:
        input_["revocation_ids"] = revocation_ids

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