projects
Creates, updates, deletes or gets a project resource or lists projects in a region
Overview
| Name | projects |
| Type | Resource |
| Description | The AWS::Rekognition::Project type creates an Amazon Rekognition CustomLabels Project. A project is a grouping of the resources needed to create and manage Dataset and ProjectVersions. |
| Id | aws.rekognition.projects |
Fields
| Name | Datatype | Description |
|---|---|---|
arn | string | The ARN of the stream processor |
project_name | string | The name of the project |
region | string | AWS region. |
For more information, see AWS::Rekognition::Project.
Methods
| Name | Accessible by | Required Params |
|---|---|---|
create_resource | INSERT | ProjectName, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT examples
Gets all projects in a region.
SELECT
region,
arn,
project_name
FROM aws.rekognition.projects
WHERE region = 'us-east-1';
Gets all properties from an individual project.
SELECT
region,
arn,
project_name
FROM aws.rekognition.projects
WHERE region = 'us-east-1' AND data__Identifier = '<ProjectName>';
INSERT example
Use the following StackQL query and manifest file to create a new project resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.rekognition.projects (
ProjectName,
region
)
SELECT
'{{ ProjectName }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.rekognition.projects (
ProjectName,
region
)
SELECT
'{{ ProjectName }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: project
props:
- name: ProjectName
value: '{{ ProjectName }}'
DELETE example
/*+ delete */
DELETE FROM aws.rekognition.projects
WHERE data__Identifier = '<ProjectName>'
AND region = 'us-east-1';
Permissions
To operate on the projects resource, the following permissions are required:
Create
rekognition:CreateProject
Read
rekognition:DescribeProjects
Delete
rekognition:DescribeProjects,
rekognition:DeleteProject
List
rekognition:DescribeProjects