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 | awscc.rekognition.projects |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
arn | string | The ARN of the stream processor |
project_name | string | The name of the project |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
project_name | string | The name of the project |
region | string | AWS region. |
For more information, see AWS::Rekognition::Project.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | projects | INSERT | ProjectName, region |
delete_resource | projects | DELETE | Identifier, region |
list_resources | projects_list_only | SELECT | region |
get_resource | projects | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual project.
SELECT
region,
arn,
project_name
FROM awscc.rekognition.projects
WHERE
region = 'us-east-1' AND
Identifier = '{{ project_name }}';
Lists all projects in a region.
SELECT
region,
project_name
FROM awscc.rekognition.projects_list_only
WHERE
region = 'us-east-1';
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 awscc.rekognition.projects (
ProjectName,
region
)
SELECT
'{{ project_name }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.rekognition.projects (
ProjectName,
region
)
SELECT
'{{ project_name }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: project
props:
- name: project_name
value: '{{ project_name }}'
DELETE example
/*+ delete */
DELETE FROM awscc.rekognition.projects
WHERE
Identifier = '{{ project_name }}' AND
region = 'us-east-1';
Permissions
To operate on the projects resource, the following permissions are required:
- Create
- Read
- Delete
- List
rekognition:CreateProject
rekognition:DescribeProjects
rekognition:DescribeProjects,
rekognition:DeleteProject
rekognition:DescribeProjects