Project
Learn how to create, update, and manage AWS LookoutVision Projects using Alchemy Cloud Control.
The Project resource allows you to manage AWS LookoutVision Projects for analyzing and detecting anomalies in images using machine learning.
Minimal Example
Section titled “Minimal Example”Create a basic LookoutVision project with required properties.
import AWS from "alchemy/aws/control";
const lookoutVisionProject = await AWS.LookoutVision.Project("myLookoutProject", { ProjectName: "MyProductInspectionProject", adopt: false // Default is false: Fail if the resource already exists});
Advanced Configuration
Section titled “Advanced Configuration”Create a project and specify properties such as adopting an existing resource if it already exists.
const advancedLookoutVisionProject = await AWS.LookoutVision.Project("advancedLookoutProject", { ProjectName: "AdvancedProductInspectionProject", adopt: true // Set to true to adopt existing resource});
Updating a Project
Section titled “Updating a Project”Update an existing LookoutVision project by modifying its properties.
const updatedLookoutVisionProject = await AWS.LookoutVision.Project("updateLookoutProject", { ProjectName: "UpdatedProductInspectionProject", adopt: false // Ensure the resource does not exist before creating});
Retrieving Project Details
Section titled “Retrieving Project Details”Use the project ARN to retrieve specific details about the project after creation.
const projectDetails = await AWS.LookoutVision.Project("retrieveLookoutProject", { ProjectName: "MyProductInspectionProject"});
// Log the project's ARNconsole.log(`Project ARN: ${projectDetails.Arn}`);