create_user_profile
¶
create_user_profile(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
domain_id: Optional[DomainId] = None,
user_profile_name: Optional[UserProfileName] = None,
single_sign_on_user_identifier: Optional[SingleSignOnUserIdentifier] = None,
single_sign_on_user_value: Optional[String256] = None,
tags: Optional[TagList] = None,
user_settings: Optional[UserSettings] = None,
) -> CreateUserProfileResponse
Creates a user profile. A user profile represents a single user within a domain, and is the main way to reference a "person" for the purposes of sharing, reporting, and other user-oriented features. This entity is created when a user onboards to a domain. If an administrator invites a person by email or imports them from IAM Identity Center, a user profile is automatically created. A user profile is the primary holder of settings for an individual user and has a reference to the user's private Amazon Elastic File System home directory.
Parameters:
-
domain_id(Optional[DomainId], default:None) –The ID of the associated Domain.
-
user_profile_name(Optional[UserProfileName], default:None) –A name for the UserProfile. This value is not case sensitive.
-
single_sign_on_user_identifier(Optional[SingleSignOnUserIdentifier], default:None) –A specifier for the type of value specified in SingleSignOnUserValue. Currently, the only supported value is "UserName". If the Domain's AuthMode is IAM Identity Center, this field is required. If the Domain's AuthMode is not IAM Identity Center, this field cannot be specified.
-
single_sign_on_user_value(Optional[String256], default:None) –The username of the associated Amazon Web Services Single Sign-On User for this UserProfile. If the Domain's AuthMode is IAM Identity Center, this field is required, and must match a valid username of a user in your directory. If the Domain's AuthMode is not IAM Identity Center, this field cannot be specified.
-
tags(Optional[TagList], default:None) –Each tag consists of a key and an optional value. Tag keys must be unique per resource.
Tags that you specify for the User Profile are also added to all Apps that the User Profile launches.
-
user_settings(Optional[UserSettings], default:None) –A collection of settings.
Raises:
-
ResourceInUse–Resource being accessed is in use.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 | |