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/elastic_load_balancingv2.py
| def get_trust_store_revocation_content(
self,
*,
config_overrides: Optional[ElasticLoadBalancingv2ClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_elastic_load_balancing_v2.types.get_trust_store_revocation_content_input.GetTrustStoreRevocationContentInput]",
) -> OperationResponse[
"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 = (
capo_elastic_load_balancing_v2._operations.elastic_load_balancing_v10.get_trust_store_revocation_content.get_trust_store_revocation_content(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|