Skip to main content

spaces

Creates, updates, deletes or gets a space resource or lists spaces in a region

Overview

Namespaces
TypeResource
DescriptionResource Type definition for AWS::SageMaker::Space
Idawscc.sagemaker.spaces

Fields

NameDatatypeDescription
space_arnstringThe space Amazon Resource Name (ARN).
domain_idstringThe ID of the associated Domain.
space_namestringA name for the Space.
space_settingsobjectA collection of settings.
tagsarrayA list of tags to apply to the space.
ownership_settingsobject
space_sharing_settingsobject
space_display_namestring
urlstring
regionstringAWS region.

For more information, see AWS::SageMaker::Space.

Methods

NameResourceAccessible byRequired Params
create_resourcespacesINSERTDomainId, SpaceName, region
delete_resourcespacesDELETEIdentifier, region
update_resourcespacesUPDATEIdentifier, PatchDocument, region
list_resourcesspaces_list_onlySELECTregion
get_resourcespacesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual space.

SELECT
region,
space_arn,
domain_id,
space_name,
space_settings,
tags,
ownership_settings,
space_sharing_settings,
space_display_name,
url
FROM awscc.sagemaker.spaces
WHERE
region = 'us-east-1' AND
Identifier = '{{ domain_id }}|{{ space_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new space resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.sagemaker.spaces (
DomainId,
SpaceName,
region
)
SELECT
'{{ domain_id }}',
'{{ space_name }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a space resource, using stack-deploy.

/*+ update */
UPDATE awscc.sagemaker.spaces
SET PatchDocument = string('{{ {
"SpaceSettings": space_settings,
"Tags": tags,
"SpaceDisplayName": space_display_name
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_id }}|{{ space_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.spaces
WHERE
Identifier = '{{ domain_id }}|{{ space_name }}' AND
region = 'us-east-1';

Permissions

To operate on the spaces resource, the following permissions are required:

sagemaker:CreateSpace,
sagemaker:DescribeSpace,
sagemaker:ListTags,
sagemaker:AddTags