Skip to content

get_trust_store_revocation_content async

get_trust_store_revocation_content(
    *,
    config_overrides: Optional[AsyncElasticLoadBalancingv2ClientConfig] = None,
    trust_store_arn: Optional[TrustStoreArn] = None,
    revocation_id: Optional[RevocationId] = None,
) -> GetTrustStoreRevocationContentOutput

Retrieves the specified revocation file.

This action returns a pre-signed S3 URI which is active for ten minutes.

Parameters:

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

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

  • revocation_id (Optional[RevocationId], default: None ) –

    The revocation ID of the revocation file.

Raises:

Source code in docs_src/capo_elastic_load_balancing_v2/_services/async_elastic_load_balancingv2.py
async def get_trust_store_revocation_content(
    self,
    *,
    config_overrides: Optional[AsyncElasticLoadBalancingv2ClientConfig] = None,
    trust_store_arn: Optional[
        "capo_elastic_load_balancing_v2.types.trust_store_arn.TrustStoreArn"
    ] = None,
    revocation_id: Optional[
        "capo_elastic_load_balancing_v2.types.revocation_id.RevocationId"
    ] = None,
) -> "capo_elastic_load_balancing_v2.types.get_trust_store_revocation_content_output.GetTrustStoreRevocationContentOutput":
    """<p>Retrieves the specified revocation file.</p> <p>This action returns a pre-signed S3 URI which is active for ten minutes.</p>

    Args:
        trust_store_arn: <p>The Amazon Resource Name (ARN) of the trust store.</p>
        revocation_id: <p>The revocation ID of the revocation file.</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.get_trust_store_revocation_content_input.GetTrustStoreRevocationContentInput]",
    ) -> AsyncOperationResponse[
        "capo_elastic_load_balancing_v2.types.get_trust_store_revocation_content_output.GetTrustStoreRevocationContentOutput"
    ]:
        import capo_elastic_load_balancing_v2._operations.elastic_load_balancing_v10.get_trust_store_revocation_content

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetTrustStoreRevocationContent")
    )
    input_: capo_elastic_load_balancing_v2.types.get_trust_store_revocation_content_input.GetTrustStoreRevocationContentInput = {}
    if trust_store_arn is not None:
        input_["trust_store_arn"] = trust_store_arn
    if revocation_id is not None:
        input_["revocation_id"] = revocation_id

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