Skip to content

remove_profile_permission

remove_profile_permission(
    profile_name: ProfileName,
    revision_id: String,
    statement_id: String,
    *,
    config_overrides: Optional[signerClientConfig] = None,
) -> RemoveProfilePermissionResponse

Removes cross-account permissions from a signing profile.

Parameters:

  • profile_name (ProfileName) –

    A human-readable name for the signing profile with permissions to be removed.

  • revision_id (String) –

    An identifier for the current revision of the signing profile permissions.

  • statement_id (String) –

    A unique identifier for the cross-account permissions statement.

Raises:

Source code in docs_src/capo_signer/_services/signer.py
def remove_profile_permission(
    self,
    profile_name: "capo_signer.types.profile_name.ProfileName",
    revision_id: "capo_signer.types.string.String",
    statement_id: "capo_signer.types.string.String",
    *,
    config_overrides: Optional[signerClientConfig] = None,
) -> "capo_signer.types.remove_profile_permission_response.RemoveProfilePermissionResponse":
    """<p>Removes cross-account permissions from a signing profile.</p>

    Args:
        profile_name: <p>A human-readable name for the signing profile with permissions to be removed.</p>
        revision_id: <p>An identifier for the current revision of the signing profile permissions.</p>
        statement_id: <p>A unique identifier for the cross-account permissions statement.</p>

    Raises:
        capo_signer.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_signer.errors.conflict_exception.ConflictException: <p>The resource encountered a conflicting state.</p>
        capo_signer.errors.internal_service_error_exception.InternalServiceErrorException: <p>An internal error occurred.</p>
        capo_signer.errors.resource_not_found_exception.ResourceNotFoundException: <p>A specified resource could not be found.</p>
        capo_signer.errors.too_many_requests_exception.TooManyRequestsException: <p>The allowed number of job-signing requests has been exceeded.</p> <p>This error supersedes the error <code>ThrottlingException</code>.</p>
        capo_signer.errors.validation_exception.ValidationException: <p>You signing certificate could not be validated.</p>
        capo_signer.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_signer.types.remove_profile_permission_request.RemoveProfilePermissionRequest]",
    ) -> OperationResponse[
        "capo_signer.types.remove_profile_permission_response.RemoveProfilePermissionResponse"
    ]:
        import capo_signer._operations.wallaby_service.remove_profile_permission

        output, http_response = (
            capo_signer._operations.wallaby_service.remove_profile_permission.remove_profile_permission(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("RemoveProfilePermission")
    )
    input_: capo_signer.types.remove_profile_permission_request.RemoveProfilePermissionRequest = {
        "profile_name": profile_name,
        "revision_id": revision_id,
        "statement_id": statement_id,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output