Skip to content

delete_user_permissions_boundary async

delete_user_permissions_boundary(
    user_name: userNameType, *, config_overrides: Optional[AsyncIAMClientConfig] = 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/async_iam.py
async def delete_user_permissions_boundary(
    self,
    user_name: "capo_iam.types.user_name_type.userNameType",
    *,
    config_overrides: Optional[AsyncIAMClientConfig] = 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.
    """

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

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