Skip to main content

spaces

Creates, updates, deletes, gets or lists a spaces resource.

Overview

Namespaces
TypeResource
Idaws.quicksight.spaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
contributorsarrayA list of contributors to the space.
request_idstringThe Amazon Web Services request ID for this operation.
spaceobjectThe details of the space.
space_arnstringThe ARN of the space. (pattern: <code>arn:[a-z0-9-.]{1,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[^/].{0,1023}</code>)
space_idstringThe ID of the space. (pattern: <code>[0-9a-zA-Z-_=.+]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_spaceselectaws_account_id, space_id, regionmaxContributorsDescribes an Amazon QuickSight space.
search_spacesselectaws_account_id, regionSearches for Amazon QuickSight spaces that match the specified filters.
list_spacesselectaws_account_id, regionnext-token, max-resultsLists all Amazon QuickSight spaces in an Amazon Web Services account.
create_spaceinsertaws_account_id, region, SpaceId, NameCreates a new Amazon QuickSight space. A space is a collection of resources that can be used to organize and manage QuickSight assets.
update_spaceupdateaws_account_id, space_id, regionUpdates the metadata of an Amazon QuickSight space.
delete_spacedeleteaws_account_id, space_id, regionDeletes an Amazon QuickSight space.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
aws_account_idstringThe ID of the Amazon Web Services account that contains the space.
regionstringAWS region (default: us-east-1)
space_idstringThe ID of the space that you want to delete.
max-resultsintegerThe maximum number of results to return.
maxContributorsintegerThe maximum number of contributors to include in the response.
next-tokenstringThe token for the next set of results, or null if there are no more results.

SELECT examples

Describes an Amazon QuickSight space.

SELECT
contributors,
request_id,
space,
space_arn,
space_id
FROM aws.quicksight.spaces
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND space_id = '{{ space_id }}' -- required
AND region = '{{ region }}' -- required
AND maxContributors = '{{ maxContributors }}'
;

INSERT examples

Creates a new Amazon QuickSight space. A space is a collection of resources that can be used to organize and manage QuickSight assets.

INSERT INTO aws.quicksight.spaces (
SpaceId,
Name,
Description,
aws_account_id,
region
)
SELECT
'{{ SpaceId }}' /* required */,
'{{ Name }}' /* required */,
'{{ Description }}',
'{{ aws_account_id }}',
'{{ region }}'
RETURNING
request_id,
space_arn,
space_id
;

UPDATE examples

Updates the metadata of an Amazon QuickSight space.

UPDATE aws.quicksight.spaces
SET
Name = '{{ Name }}',
Description = '{{ Description }}'
WHERE
aws_account_id = '{{ aws_account_id }}' --required
AND space_id = '{{ space_id }}' --required
AND region = '{{ region }}' --required
RETURNING
request_id,
space_arn,
space_id;

DELETE examples

Deletes an Amazon QuickSight space.

DELETE FROM aws.quicksight.spaces
WHERE aws_account_id = '{{ aws_account_id }}' --required
AND space_id = '{{ space_id }}' --required
AND region = '{{ region }}' --required
;