QuickSight / Client / create_namespace

create_namespace#

QuickSight.Client.create_namespace(**kwargs)#

(Enterprise edition only) Creates a new namespace for you to use with Amazon QuickSight.

A namespace allows you to isolate the Amazon QuickSight users and groups that are registered for that namespace. Users that access the namespace can share assets only with other users or groups in the same namespace. They can’t see users and groups in other namespaces. You can create a namespace after your Amazon Web Services account is subscribed to Amazon QuickSight. The namespace must be unique within the Amazon Web Services account. By default, there is a limit of 100 namespaces per Amazon Web Services account. To increase your limit, create a ticket with Amazon Web Services Support.

See also: AWS API Documentation

Request Syntax

response = client.create_namespace(
    AwsAccountId='string',
    Namespace='string',
    IdentityStore='QUICKSIGHT',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • AwsAccountId (string) –

    [REQUIRED]

    The ID for the Amazon Web Services account that you want to create the Amazon QuickSight namespace in.

  • Namespace (string) –

    [REQUIRED]

    The name that you want to use to describe the new namespace.

  • IdentityStore (string) –

    [REQUIRED]

    Specifies the type of your user identity directory. Currently, this supports users with an identity type of QUICKSIGHT.

  • Tags (list) –

    The tags that you want to associate with the namespace that you’re creating.

    • (dict) –

      The key or keys of the key-value pairs for the resource tag or tags assigned to the resource.

      • Key (string) – [REQUIRED]

        Tag key.

      • Value (string) – [REQUIRED]

        Tag value.

Return type:

dict

Returns:

Response Syntax

{
    'Arn': 'string',
    'Name': 'string',
    'CapacityRegion': 'string',
    'CreationStatus': 'CREATED'|'CREATING'|'DELETING'|'RETRYABLE_FAILURE'|'NON_RETRYABLE_FAILURE',
    'IdentityStore': 'QUICKSIGHT',
    'RequestId': 'string',
    'Status': 123
}

Response Structure

  • (dict) –

    • Arn (string) –

      The ARN of the Amazon QuickSight namespace you created.

    • Name (string) –

      The name of the new namespace that you created.

    • CapacityRegion (string) –

      The Amazon Web Services Region; that you want to use for the free SPICE capacity for the new namespace. This is set to the region that you run CreateNamespace in.

    • CreationStatus (string) –

      The status of the creation of the namespace. This is an asynchronous process. A status of CREATED means that your namespace is ready to use. If an error occurs, it indicates if the process is retryable or non-retryable. In the case of a non-retryable error, refer to the error message for follow-up tasks.

    • IdentityStore (string) –

      Specifies the type of your user identity directory. Currently, this supports users with an identity type of QUICKSIGHT.

    • RequestId (string) –

      The Amazon Web Services request ID for this operation.

    • Status (integer) –

      The HTTP status of the request.

Exceptions