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
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTDomainId, UserProfileName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourceSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

List all user_profiles in a region.

SELECT
region,
user_profile_name,
domain_id
FROM aws.sagemaker.user_profiles
WHERE region = 'us-east-1';

Gets all properties from an 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 aws.sagemaker.user_profiles
WHERE region = 'us-east-1' AND data__Identifier = '<UserProfileName>|<DomainId>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.sagemaker.user_profiles
WHERE data__Identifier = '<UserProfileName|DomainId>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

sagemaker:DescribeUserProfile

Update

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

Delete

sagemaker:DeleteUserProfile,
sagemaker:DescribeUserProfile

List

sagemaker:ListUserProfiles