Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idaws.sagemaker.projects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_byobjectInformation about the user who created or modified a SageMaker resource.
creation_timestring (date-time)The time when the project was created.
last_modified_byobjectInformation about the user who created or modified a SageMaker resource.
last_modified_timestring (date-time)The timestamp when project was last modified.
project_arnstringThe Amazon Resource Name (ARN) of the project. (pattern: <code>arn:aws[a-z-]*:sagemaker:[a-z0-9-]{9,16}:[0-9]{12}:project/[\S]{1,2048}</code>)
project_descriptionstringThe description of the project. (pattern: <code>[\p{L}\p{M}\p{Z}\p{S}\p{N}\p{P}]*</code>)
project_idstringThe ID of the project. (pattern: <code>[a-zA-Z0-9](-[a-zA-Z0-9])</code>)
project_namestringThe name of the project. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,31}</code>)
project_statusstringThe status of the project. (Pending, CreateInProgress, CreateCompleted, CreateFailed, DeleteInProgress, DeleteFailed, DeleteCompleted, UpdateInProgress, UpdateCompleted, UpdateFailed)
service_catalog_provisioned_product_detailsobjectInformation about a provisioned service catalog product.
service_catalog_provisioning_detailsobjectInformation used to provision a service catalog product. For information, see What is Amazon Web Services Service Catalog.
template_provider_detailsarrayAn array of template providers associated with the project.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_projectselectregionDescribes the details of a project.
list_projectsselectregionGets a list of the projects in an Amazon Web Services account.
create_projectinsertregion, ProjectNameCreates a machine learning (ML) project that can contain one or more templates that set up an ML pipeline from training to deploying an approved model.
update_projectupdateregion, ProjectNameUpdates a machine learning (ML) project that is created from a template that sets up an ML pipeline from training to deploying an approved model. You must not update a project that is in use. If you update the ServiceCatalogProvisioningUpdateDetails of a project that is active or being created, or updated, you may lose resources already created by the project.
delete_projectdeleteregionDelete the specified project.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Describes the details of a project.

SELECT
created_by,
creation_time,
last_modified_by,
last_modified_time,
project_arn,
project_description,
project_id,
project_name,
project_status,
service_catalog_provisioned_product_details,
service_catalog_provisioning_details,
template_provider_details
FROM aws.sagemaker.projects
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a machine learning (ML) project that can contain one or more templates that set up an ML pipeline from training to deploying an approved model.

INSERT INTO aws.sagemaker.projects (
ProjectName,
ProjectDescription,
ServiceCatalogProvisioningDetails,
Tags,
TemplateProviders,
region
)
SELECT
'{{ ProjectName }}' /* required */,
'{{ ProjectDescription }}',
'{{ ServiceCatalogProvisioningDetails }}',
'{{ Tags }}',
'{{ TemplateProviders }}',
'{{ region }}'
RETURNING
project_arn,
project_id
;

UPDATE examples

Updates a machine learning (ML) project that is created from a template that sets up an ML pipeline from training to deploying an approved model. You must not update a project that is in use. If you update the ServiceCatalogProvisioningUpdateDetails of a project that is active or being created, or updated, you may lose resources already created by the project.

UPDATE aws.sagemaker.projects
SET
ProjectName = '{{ ProjectName }}',
ProjectDescription = '{{ ProjectDescription }}',
ServiceCatalogProvisioningUpdateDetails = '{{ ServiceCatalogProvisioningUpdateDetails }}',
Tags = '{{ Tags }}',
TemplateProvidersToUpdate = '{{ TemplateProvidersToUpdate }}'
WHERE
region = '{{ region }}' --required
AND ProjectName = '{{ ProjectName }}' --required
RETURNING
project_arn;

DELETE examples

Delete the specified project.

DELETE FROM aws.sagemaker.projects
WHERE region = '{{ region }}' --required
;