DataZone / Client / create_user_profile

create_user_profile#

DataZone.Client.create_user_profile(**kwargs)#

Creates a user profile in Amazon DataZone.

See also: AWS API Documentation

Request Syntax

response = client.create_user_profile(
    clientToken='string',
    domainIdentifier='string',
    userIdentifier='string',
    userType='IAM_USER'|'IAM_ROLE'|'SSO_USER'
)
Parameters:
  • clientToken (string) –

    A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.

    This field is autopopulated if not provided.

  • domainIdentifier (string) –

    [REQUIRED]

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

  • userIdentifier (string) –

    [REQUIRED]

    The identifier of the user for which the user profile is created.

  • userType (string) – The user type of the user for which the user profile is created.

Return type:

dict

Returns:

Response Syntax

{
    'details': {
        'iam': {
            'arn': '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.

      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 included in the user profile details.

        • arn (string) –

          The ARN of an IAM user profile in Amazon DataZone.

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

Exceptions