Skip to main content

spaces

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

Overview

Namespaces
TypeResource
Idaws.repostspace.spaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the private re:Post.
application_arnstring
arnstringThe ARN of the private re:Post.
client_idstringThe Identity Center identifier for the Application Instance.
configuration_statusstringThe configuration status of the private re:Post. (CONFIGURED, UNCONFIGURED)
content_sizeinteger (int64)The content size of the private re:Post.
create_date_timestring (date-time)The date when the private re:Post was created.
customer_role_arnstringThe IAM role that grants permissions to the private re:Post to convert unanswered questions into AWS support tickets.
delete_date_timestring (date-time)The date when the private re:Post was deleted.
descriptionstringThe description of the private re:Post.
group_adminsarrayThe list of groups that are administrators of the private re:Post.
identity_store_idstring
random_domainstringThe AWS generated subdomain of the private re:Post
rolesobjectA map of accessor identifiers and their roles.
space_idstringThe unique ID of the private re:Post.
statusstringThe creation or deletion status of the private re:Post.
storage_limitinteger (int64)The storage limit of the private re:Post.
supported_email_domainsobject
tierstringThe pricing tier of the private re:Post. (BASIC, STANDARD)
user_adminsarrayThe list of users that are administrators of the private re:Post.
user_countintegerThe number of users that have onboarded to the private re:Post.
user_kms_keystringThe custom AWS KMS key ARN that’s used for the AWS KMS encryption.
vanity_domainstringThe custom subdomain that you use to access your private re:Post. All custom subdomains must be approved by AWS before use.
vanity_domain_statusstringThe approval status of the custom subdomain. (PENDING, APPROVED, UNAPPROVED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_spaceselectspace_id, regionDisplays information about the AWS re:Post Private private re:Post.
list_spacesselectregionnextToken, maxResultsReturns a list of AWS re:Post Private private re:Posts in the account with some information about each private re:Post.
create_spaceinsertregion, name, subdomain, tierCreates an AWS re:Post Private private re:Post.
register_admininsertspace_id, admin_id, regionAdds a user or group to the list of administrators of the private re:Post.
update_spaceupdatespace_id, regionModifies an existing AWS re:Post Private private re:Post.
deregister_admindeletespace_id, admin_id, regionRemoves the user or group from the list of administrators of the private re:Post.
delete_spacedeletespace_id, regionDeletes an AWS re:Post Private private re:Post.
batch_add_roleexecspace_id, region, accessorIds, roleAdd a role to multiple users or groups in a private re:Post.
batch_remove_roleexecspace_id, region, accessorIds, roleRemove a role from multiple users or groups in a private re:Post.
send_invitesexecspace_id, region, accessorIds, title, bodySends an invitation email to selected users and groups.

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
admin_idstringThe ID of the admin to remove.
regionstringAWS region (default: us-east-1)
space_idstringThe ID of the private re:Post.
maxResultsintegerThe maximum number of private re:Posts to include in the results.
nextTokenstringThe token for the next set of private re:Posts to return. You receive this token from a previous ListSpaces operation.

SELECT examples

Displays information about the AWS re:Post Private private re:Post.

SELECT
name,
application_arn,
arn,
client_id,
configuration_status,
content_size,
create_date_time,
customer_role_arn,
delete_date_time,
description,
group_admins,
identity_store_id,
random_domain,
roles,
space_id,
status,
storage_limit,
supported_email_domains,
tier,
user_admins,
user_count,
user_kms_key,
vanity_domain,
vanity_domain_status
FROM aws.repostspace.spaces
WHERE space_id = '{{ space_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an AWS re:Post Private private re:Post.

INSERT INTO aws.repostspace.spaces (
name,
subdomain,
tier,
description,
userKMSKey,
tags,
roleArn,
supportedEmailDomains,
region
)
SELECT
'{{ name }}' /* required */,
'{{ subdomain }}' /* required */,
'{{ tier }}' /* required */,
'{{ description }}',
'{{ userKMSKey }}',
'{{ tags }}',
'{{ roleArn }}',
'{{ supportedEmailDomains }}',
'{{ region }}'
RETURNING
space_id
;

UPDATE examples

Modifies an existing AWS re:Post Private private re:Post.

UPDATE aws.repostspace.spaces
SET
description = '{{ description }}',
tier = '{{ tier }}',
roleArn = '{{ roleArn }}',
supportedEmailDomains = '{{ supportedEmailDomains }}'
WHERE
space_id = '{{ space_id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Removes the user or group from the list of administrators of the private re:Post.

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

Lifecycle Methods

Add a role to multiple users or groups in a private re:Post.

EXEC aws.repostspace.spaces.batch_add_role
@space_id='{{ space_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"accessorIds": "{{ accessorIds }}",
"role": "{{ role }}"
}'
;