Skip to main content

projects

Creates, updates, deletes or gets a project resource or lists projects in a region

Overview

Nameprojects
TypeResource
DescriptionResource Type definition for AWS::SageMaker::Project
Idaws.sagemaker.projects

Fields

NameDatatypeDescription
tagsarrayAn array of key-value pairs to apply to this resource.
project_arnstringThe Amazon Resource Name (ARN) of the Project.
project_idstringProject Id.
project_namestringThe name of the project.
project_descriptionstringThe description of the project.
creation_timestringThe time at which the project was created.
service_catalog_provisioning_detailsobjectInput ServiceCatalog Provisioning Details
service_catalog_provisioned_product_detailsobjectProvisioned ServiceCatalog Details
project_statusstringThe status of a project.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTProjectName, ServiceCatalogProvisioningDetails, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all projects in a region.

SELECT
region,
tags,
project_arn,
project_id,
project_name,
project_description,
creation_time,
service_catalog_provisioning_details,
service_catalog_provisioned_product_details,
project_status
FROM aws.sagemaker.projects
WHERE region = 'us-east-1';

Gets all properties from an individual project.

SELECT
region,
tags,
project_arn,
project_id,
project_name,
project_description,
creation_time,
service_catalog_provisioning_details,
service_catalog_provisioned_product_details,
project_status
FROM aws.sagemaker.projects
WHERE region = 'us-east-1' AND data__Identifier = '<ProjectArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.sagemaker.projects (
ProjectName,
ServiceCatalogProvisioningDetails,
region
)
SELECT
'{{ ProjectName }}',
'{{ ServiceCatalogProvisioningDetails }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.sagemaker.projects
WHERE data__Identifier = '<ProjectArn>'
AND region = 'us-east-1';

Permissions

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

Create

sagemaker:AddTags,
sagemaker:CreateProject,
sagemaker:DescribeProject,
sagemaker:ListTags,
servicecatalog:DescribeProduct,
servicecatalog:DescribeProvisioningArtifact,
servicecatalog:ProvisionProduct,
servicecatalog:DescribeProvisionedProduct,
servicecatalog:TerminateProvisionedProduct

Read

sagemaker:DescribeProject,
sagemaker:ListTags

Update

sagemaker:DescribeProject,
sagemaker:ListTags,
sagemaker:AddTags,
sagemaker:DeleteTags

Delete

sagemaker:DeleteProject,
sagemaker:DescribeProject,
servicecatalog:TerminateProvisionedProduct,
servicecatalog:DescribeRecord

List

sagemaker:ListProjects