Skip to content

add_trust_store_revocations async

add_trust_store_revocations(
    *,
    config_overrides: Optional[AsyncElasticLoadBalancingv2ClientConfig] = None,
    trust_store_arn: Optional[TrustStoreArn] = None,
    revocation_contents: Optional[RevocationContents] = None,
) -> AddTrustStoreRevocationsOutput

Adds the specified revocation file to the specified trust store.

Parameters:

Raises:

Source code in docs_src/capo_elastic_load_balancing_v2/_services/async_elastic_load_balancingv2.py
async def add_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_contents: Optional[
        "capo_elastic_load_balancing_v2.types.revocation_contents.RevocationContents"
    ] = None,
) -> "capo_elastic_load_balancing_v2.types.add_trust_store_revocations_output.AddTrustStoreRevocationsOutput":
    """<p>Adds the specified revocation file to the specified trust store.</p>

    Args:
        trust_store_arn: <p>The Amazon Resource Name (ARN) of the trust store.</p>
        revocation_contents: <p>The revocation file to add.</p>

    Raises:
        capo_elastic_load_balancing_v2.errors.invalid_revocation_content_exception.InvalidRevocationContentException: <p>The provided revocation file is an invalid format, or uses an incorrect algorithm.</p>
        capo_elastic_load_balancing_v2.errors.revocation_content_not_found_exception.RevocationContentNotFoundException: <p>The specified revocation file does not exist.</p>
        capo_elastic_load_balancing_v2.errors.too_many_trust_store_revocation_entries_exception.TooManyTrustStoreRevocationEntriesException: <p>The specified trust store has too many revocation entries.</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.add_trust_store_revocations_input.AddTrustStoreRevocationsInput]",
    ) -> AsyncOperationResponse[
        "capo_elastic_load_balancing_v2.types.add_trust_store_revocations_output.AddTrustStoreRevocationsOutput"
    ]:
        import capo_elastic_load_balancing_v2._operations.elastic_load_balancing_v10.add_trust_store_revocations

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("AddTrustStoreRevocations")
    )
    input_: capo_elastic_load_balancing_v2.types.add_trust_store_revocations_input.AddTrustStoreRevocationsInput = {}
    if trust_store_arn is not None:
        input_["trust_store_arn"] = trust_store_arn
    if revocation_contents is not None:
        input_["revocation_contents"] = revocation_contents

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