Updates the certificate revocation list (CRL). A CRL is a list of certificates that have been revoked by the issuing certificate authority (CA). IAM Roles Anywhere validates against the CRL before issuing credentials.
Required permissions: rolesanywhere:UpdateCrl.
Parameters:
-
crl_id
(Uuid)
–
The unique identifier of the certificate revocation list (CRL).
-
name
(Optional[ResourceName], default:
None
)
–
-
crl_data
(Optional[bytes], default:
None
)
–
The x509 v3 specified certificate revocation list (CRL).
Raises:
Source code in docs_src/capo_rolesanywhere/_services/roles_anywhere.py
| def update_crl(
self,
crl_id: "capo_rolesanywhere.types.uuid.Uuid",
*,
config_overrides: Optional[RolesAnywhereClientConfig] = None,
name: Optional["capo_rolesanywhere.types.resource_name.ResourceName"] = None,
crl_data: Optional[bytes] = None,
) -> "capo_rolesanywhere.types.crl_detail_response.CrlDetailResponse":
"""<p>Updates the certificate revocation list (CRL). A CRL is a list of certificates that have been revoked by the issuing certificate authority (CA). IAM Roles Anywhere validates against the CRL before issuing credentials.</p> <p> <b>Required permissions: </b> <code>rolesanywhere:UpdateCrl</code>. </p>
Args:
crl_id: <p>The unique identifier of the certificate revocation list (CRL).</p>
name: <p>The name of the Crl.</p>
crl_data: <p>The x509 v3 specified certificate revocation list (CRL).</p>
Raises:
capo_rolesanywhere.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_rolesanywhere.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
capo_rolesanywhere.errors.validation_exception.ValidationException: <p>Validation exception error.</p>
capo_rolesanywhere.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_rolesanywhere.types.update_crl_request.UpdateCrlRequest]",
) -> OperationResponse[
"capo_rolesanywhere.types.crl_detail_response.CrlDetailResponse"
]:
import capo_rolesanywhere._operations.roles_anywhere.update_crl
output, http_response = (
capo_rolesanywhere._operations.roles_anywhere.update_crl.update_crl(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateCrl")
)
input_: capo_rolesanywhere.types.update_crl_request.UpdateCrlRequest = {
"crl_id": crl_id
}
if name is not None:
input_["name"] = name
if crl_data is not None:
input_["crl_data"] = crl_data
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|