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
8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 | |