Skip to main content

user_profiles

Creates, updates, deletes or gets an user_profile resource or lists user_profiles in a region

Overview

Nameuser_profiles
TypeResource
DescriptionResource Type definition for AWS::SageMaker::UserProfile
Idawscc.sagemaker.user_profiles

Fields

NameDatatypeDescription
user_profile_arnstringThe user profile Amazon Resource Name (ARN).
domain_idstringThe ID of the associated Domain.
single_sign_on_user_identifierstringA specifier for the type of value specified in SingleSignOnUserValue. Currently, the only supported value is "UserName". If the Domain's AuthMode is SSO, this field is required. If the Domain's AuthMode is not SSO, this field cannot be specified.
single_sign_on_user_valuestringThe username of the associated AWS Single Sign-On User for this UserProfile. If the Domain's AuthMode is SSO, this field is required, and must match a valid username of a user in your directory. If the Domain's AuthMode is not SSO, this field cannot be specified.
user_profile_namestringA name for the UserProfile.
user_settingsobjectA collection of settings.
tagsarrayA list of tags to apply to the user profile.
regionstringAWS region.

For more information, see AWS::SageMaker::UserProfile.

Methods

NameResourceAccessible byRequired Params
create_resourceuser_profilesINSERTDomainId, UserProfileName, region
delete_resourceuser_profilesDELETEIdentifier, region
update_resourceuser_profilesUPDATEIdentifier, PatchDocument, region
list_resourcesuser_profiles_list_onlySELECTregion
get_resourceuser_profilesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual user_profile.

SELECT
region,
user_profile_arn,
domain_id,
single_sign_on_user_identifier,
single_sign_on_user_value,
user_profile_name,
user_settings,
tags
FROM awscc.sagemaker.user_profiles
WHERE
region = 'us-east-1' AND
Identifier = '{{ user_profile_name }}|{{ domain_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new user_profile resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.sagemaker.user_profiles (
DomainId,
UserProfileName,
region
)
SELECT
'{{ domain_id }}',
'{{ user_profile_name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.user_profiles
WHERE
Identifier = '{{ user_profile_name }}|{{ domain_id }}' AND
region = 'us-east-1';

Permissions

To operate on the user_profiles resource, the following permissions are required:

sagemaker:CreateUserProfile,
sagemaker:DescribeUserProfile,
sagemaker:DescribeImage,
sagemaker:DescribeImageVersion,
iam:PassRole