2025/09/11 - Amazon DataZone - 4 updated api methods
Changes adding IAM principal id to IAM user profile details
{'details': {'iam': {'principalId': 'string'}}}
Creates a user profile in Amazon DataZone.
See also: AWS API Documentation
Request Syntax
client.create_user_profile( clientToken='string', domainIdentifier='string', userIdentifier='string', userType='IAM_USER'|'IAM_ROLE'|'SSO_USER' )
string
A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
This field is autopopulated if not provided.
string
[REQUIRED]
The identifier of the Amazon DataZone domain in which a user profile is created.
string
[REQUIRED]
The identifier of the user for which the user profile is created.
string
The user type of the user for which the user profile is created.
dict
Response Syntax
{ 'details': { 'iam': { 'arn': 'string', 'principalId': 'string' }, 'sso': { 'firstName': 'string', 'lastName': 'string', 'username': 'string' } }, 'domainId': 'string', 'id': 'string', 'status': 'ASSIGNED'|'NOT_ASSIGNED'|'ACTIVATED'|'DEACTIVATED', 'type': 'IAM'|'SSO' }
Response Structure
(dict) --
details (dict) --
The details of the user profile in Amazon DataZone.
iam (dict) --
The IAM details included in the user profile details.
arn (string) --
The ARN of an IAM user profile in Amazon DataZone.
principalId (string) --
Principal ID of the IAM user.
sso (dict) --
The single sign-on details included in the user profile details.
firstName (string) --
The first name included in the single sign-on details of the user profile.
lastName (string) --
The last name included in the single sign-on details of the user profile.
username (string) --
The username included in the single sign-on details of the user profile.
domainId (string) --
The identifier of the Amazon DataZone domain in which a user profile is created.
id (string) --
The identifier of the user profile.
status (string) --
The status of the user profile.
type (string) --
The type of the user profile.
{'details': {'iam': {'principalId': 'string'}}}
Gets a user profile in Amazon DataZone.
See also: AWS API Documentation
Request Syntax
client.get_user_profile( domainIdentifier='string', type='IAM'|'SSO', userIdentifier='string' )
string
[REQUIRED]
the ID of the Amazon DataZone domain the data portal of which you want to get.
string
The type of the user profile.
string
[REQUIRED]
The identifier of the user for which you want to get the user profile.
dict
Response Syntax
{ 'details': { 'iam': { 'arn': 'string', 'principalId': 'string' }, 'sso': { 'firstName': 'string', 'lastName': 'string', 'username': 'string' } }, 'domainId': 'string', 'id': 'string', 'status': 'ASSIGNED'|'NOT_ASSIGNED'|'ACTIVATED'|'DEACTIVATED', 'type': 'IAM'|'SSO' }
Response Structure
(dict) --
details (dict) --
The details of the user profile in Amazon DataZone.
iam (dict) --
The IAM details included in the user profile details.
arn (string) --
The ARN of an IAM user profile in Amazon DataZone.
principalId (string) --
Principal ID of the IAM user.
sso (dict) --
The single sign-on details included in the user profile details.
firstName (string) --
The first name included in the single sign-on details of the user profile.
lastName (string) --
The last name included in the single sign-on details of the user profile.
username (string) --
The username included in the single sign-on details of the user profile.
domainId (string) --
the identifier of the Amazon DataZone domain of which you want to get the user profile.
id (string) --
The identifier of the user profile.
status (string) --
The status of the user profile.
type (string) --
The type of the user profile.
{'items': {'details': {'iam': {'principalId': 'string'}}}}
Searches user profiles in Amazon DataZone.
See also: AWS API Documentation
Request Syntax
client.search_user_profiles( domainIdentifier='string', maxResults=123, nextToken='string', searchText='string', userType='SSO_USER'|'DATAZONE_USER'|'DATAZONE_SSO_USER'|'DATAZONE_IAM_USER' )
string
[REQUIRED]
The identifier of the Amazon DataZone domain in which you want to search user profiles.
integer
The maximum number of results to return in a single call to SearchUserProfiles. When the number of results to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to SearchUserProfiles to list the next set of results.
string
When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to SearchUserProfiles to list the next set of results.
string
Specifies the text for which to search.
string
[REQUIRED]
Specifies the user type for the SearchUserProfiles action.
dict
Response Syntax
{ 'items': [ { 'details': { 'iam': { 'arn': 'string', 'principalId': 'string' }, 'sso': { 'firstName': 'string', 'lastName': 'string', 'username': 'string' } }, 'domainId': 'string', 'id': 'string', 'status': 'ASSIGNED'|'NOT_ASSIGNED'|'ACTIVATED'|'DEACTIVATED', 'type': 'IAM'|'SSO' }, ], 'nextToken': 'string' }
Response Structure
(dict) --
items (list) --
The results of the SearchUserProfiles action.
(dict) --
The details of the user profile.
details (dict) --
The details of the user profile.
iam (dict) --
The IAM details included in the user profile details.
arn (string) --
The ARN of an IAM user profile in Amazon DataZone.
principalId (string) --
Principal ID of the IAM user.
sso (dict) --
The single sign-on details included in the user profile details.
firstName (string) --
The first name included in the single sign-on details of the user profile.
lastName (string) --
The last name included in the single sign-on details of the user profile.
username (string) --
The username included in the single sign-on details of the user profile.
domainId (string) --
The ID of the Amazon DataZone domain of the user profile.
id (string) --
The ID of the user profile.
status (string) --
The status of the user profile.
type (string) --
The type of the user profile.
nextToken (string) --
When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to SearchUserProfiles to list the next set of results.
{'details': {'iam': {'principalId': 'string'}}}
Updates the specified user profile in Amazon DataZone.
See also: AWS API Documentation
Request Syntax
client.update_user_profile( domainIdentifier='string', status='ASSIGNED'|'NOT_ASSIGNED'|'ACTIVATED'|'DEACTIVATED', type='IAM'|'SSO', userIdentifier='string' )
string
[REQUIRED]
The identifier of the Amazon DataZone domain in which a user profile is updated.
string
[REQUIRED]
The status of the user profile that are to be updated.
string
The type of the user profile that are to be updated.
string
[REQUIRED]
The identifier of the user whose user profile is to be updated.
dict
Response Syntax
{ 'details': { 'iam': { 'arn': 'string', 'principalId': 'string' }, 'sso': { 'firstName': 'string', 'lastName': 'string', 'username': 'string' } }, 'domainId': 'string', 'id': 'string', 'status': 'ASSIGNED'|'NOT_ASSIGNED'|'ACTIVATED'|'DEACTIVATED', 'type': 'IAM'|'SSO' }
Response Structure
(dict) --
details (dict) --
The details of the user profile in Amazon DataZone.
iam (dict) --
The IAM details included in the user profile details.
arn (string) --
The ARN of an IAM user profile in Amazon DataZone.
principalId (string) --
Principal ID of the IAM user.
sso (dict) --
The single sign-on details included in the user profile details.
firstName (string) --
The first name included in the single sign-on details of the user profile.
lastName (string) --
The last name included in the single sign-on details of the user profile.
username (string) --
The username included in the single sign-on details of the user profile.
domainId (string) --
The identifier of the Amazon DataZone domain in which a user profile is updated.
id (string) --
The identifier of the user profile.
status (string) --
The status of the user profile.
type (string) --
The type of the user profile.