DataZone / Client / update_user_profile

update_user_profile

DataZone.Client.update_user_profile(**kwargs)

Updates the specified user profile in Amazon DataZone.

See also: AWS API Documentation

Request Syntax

response = client.update_user_profile(
    domainIdentifier='string',
    status='ASSIGNED'|'NOT_ASSIGNED'|'ACTIVATED'|'DEACTIVATED',
    type='IAM'|'SSO',
    userIdentifier='string'
)
Parameters:
  • domainIdentifier (string) –

    [REQUIRED]

    The identifier of the Amazon DataZone domain in which a user profile is updated.

  • status (string) –

    [REQUIRED]

    The status of the user profile that are to be updated.

  • type (string) – The type of the user profile that are to be updated.

  • userIdentifier (string) –

    [REQUIRED]

    The identifier of the user whose user profile is to be updated.

Return type:

dict

Returns:

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 results of the UpdateUserProfile action.

      Note

      This is a Tagged Union structure. Only one of the following top level keys will be set: iam, sso. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

      'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
      
      • iam (dict) –

        The IAM details of the user profile.

        • arn (string) –

          The ARN of the IAM user.

        • principalId (string) –

          The principal ID as part of the IAM user profile details.

      • sso (dict) –

        The SSO details of the user profile.

        • firstName (string) –

          The first name as part of the SSO user profile detail.

        • lastName (string) –

          The last name as part of the SSO user profile detail.

        • username (string) –

          The username as part of the SSO user profile detail.

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

Exceptions

  • DataZone.Client.exceptions.InternalServerException

  • DataZone.Client.exceptions.ResourceNotFoundException

  • DataZone.Client.exceptions.AccessDeniedException

  • DataZone.Client.exceptions.ThrottlingException

  • DataZone.Client.exceptions.ValidationException

  • DataZone.Client.exceptions.UnauthorizedException