QuickSight / Client / create_role_membership

create_role_membership#

QuickSight.Client.create_role_membership(**kwargs)#

Use CreateRoleMembership to add an existing Amazon QuickSight group to an existing role.

See also: AWS API Documentation

Request Syntax

response = client.create_role_membership(
    MemberName='string',
    AwsAccountId='string',
    Namespace='string',
    Role='ADMIN'|'AUTHOR'|'READER'|'ADMIN_PRO'|'AUTHOR_PRO'|'READER_PRO'
)
Parameters:
  • MemberName (string) –

    [REQUIRED]

    The name of the group that you want to add to the role.

  • AwsAccountId (string) –

    [REQUIRED]

    The ID for the Amazon Web Services account that you want to create a group in. The Amazon Web Services account ID that you provide must be the same Amazon Web Services account that contains your Amazon QuickSight account.

  • Namespace (string) –

    [REQUIRED]

    The namespace that the role belongs to.

  • Role (string) –

    [REQUIRED]

    The role that you want to add a group to.

Return type:

dict

Returns:

Response Syntax

{
    'RequestId': 'string',
    'Status': 123
}

Response Structure

  • (dict) –

    • RequestId (string) –

      The Amazon Web Services request ID for this operation.

    • Status (integer) –

      The HTTP status of the request.

Exceptions