Skip to content

delete_user_permissions_boundary

delete_user_permissions_boundary(
    user_name: userNameType, *, config_overrides: Optional[IAMClientConfig] = None
) -> None

Deletes the permissions boundary for the specified IAM user.

Deleting the permissions boundary for a user might increase its permissions by allowing the user to perform all the actions granted in its permissions policies.

Parameters:

  • user_name (userNameType) –

    The name (friendly name, not ARN) of the IAM user from which you want to remove the permissions boundary.

Raises:

  • NoSuchEntityException –

    The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.

  • ServiceFailureException –

    The request processing has failed because of an unknown error, exception or failure.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_iam/_services/iam.py
def delete_user_permissions_boundary(
    self,
    user_name: "capo_iam.types.user_name_type.userNameType",
    *,
    config_overrides: Optional[IAMClientConfig] = None,
) -> None:
    """<p>Deletes the permissions boundary for the specified IAM user.</p> <important> <p>Deleting the permissions boundary for a user might increase its permissions by allowing the user to perform all the actions granted in its permissions policies. </p> </important>

    Args:
        user_name: <p>The name (friendly name, not ARN) of the IAM user from which you want to remove the permissions boundary.</p>

    Raises:
        capo_iam.errors.no_such_entity_exception.NoSuchEntityException: <p>The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.</p>
        capo_iam.errors.service_failure_exception.ServiceFailureException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_iam.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_iam.types.delete_user_permissions_boundary_request.DeleteUserPermissionsBoundaryRequest]",
    ) -> OperationResponse[None]:
        import capo_iam._operations.aws_identity_management_v20100508.delete_user_permissions_boundary

        output, http_response = (
            capo_iam._operations.aws_identity_management_v20100508.delete_user_permissions_boundary.delete_user_permissions_boundary(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteUserPermissionsBoundary")
    )
    input_: capo_iam.types.delete_user_permissions_boundary_request.DeleteUserPermissionsBoundaryRequest = {
        "user_name": user_name
    }

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