Skip to content

update_crl async

update_crl(
    crl_id: Uuid,
    *,
    config_overrides: Optional[AsyncRolesAnywhereClientConfig] = None,
    name: Optional[ResourceName] = None,
    crl_data: Optional[bytes] = None,
) -> CrlDetailResponse

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 ) –

    The name of the Crl.

  • crl_data (Optional[bytes], default: None ) –

    The x509 v3 specified certificate revocation list (CRL).

Raises:

Source code in docs_src/capo_rolesanywhere/_services/async_roles_anywhere.py
async def update_crl(
    self,
    crl_id: "capo_rolesanywhere.types.uuid.Uuid",
    *,
    config_overrides: Optional[AsyncRolesAnywhereClientConfig] = 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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_rolesanywhere.types.update_crl_request.UpdateCrlRequest]",
    ) -> AsyncOperationResponse[
        "capo_rolesanywhere.types.crl_detail_response.CrlDetailResponse"
    ]:
        import capo_rolesanywhere._operations.roles_anywhere.update_crl

        (
            output,
            http_response,
        ) = await capo_rolesanywhere._operations.roles_anywhere.update_crl.async_update_crl(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output