Skip to content
GitHubXDiscordRSS

SyncJob

Learn how to create, update, and manage AWS IoTTwinMaker SyncJobs using Alchemy Cloud Control.

The SyncJob resource allows you to manage synchronization jobs within AWS IoTTwinMaker, enabling the integration of real-time data with your digital twin applications. For more detailed information, refer to the AWS IoTTwinMaker SyncJobs documentation.

Create a basic SyncJob with required properties and one optional tag.

import AWS from "alchemy/aws/control";
const basicSyncJob = await AWS.IoTTwinMaker.SyncJob("basicSyncJob", {
SyncSource: "https://mydata.source.com",
SyncRole: "arn:aws:iam::123456789012:role/MySyncRole",
WorkspaceId: "myWorkspaceId",
Tags: {
Project: "SyncProject",
Environment: "Production"
}
});

Configure a SyncJob with additional properties and a custom role.

const advancedSyncJob = await AWS.IoTTwinMaker.SyncJob("advancedSyncJob", {
SyncSource: "https://mydata.source.com",
SyncRole: "arn:aws:iam::123456789012:role/MyAdvancedSyncRole",
WorkspaceId: "myWorkspaceId",
Tags: {
Project: "AdvancedSyncProject",
Environment: "Staging"
},
adopt: true // Allows the job to adopt existing resources
});

Create a SyncJob designed specifically for ingesting data from an external source into your digital twin model.

const dataIntegrationSyncJob = await AWS.IoTTwinMaker.SyncJob("dataIntegrationSyncJob", {
SyncSource: "https://externaldata.source.com/api/data",
SyncRole: "arn:aws:iam::123456789012:role/DataIntegrationRole",
WorkspaceId: "dataWorkspaceId",
Tags: {
Project: "DataIntegration",
Type: "RealTime"
}
});

This example demonstrates how to set up a SyncJob with tags for monitoring purposes.

const monitoringSyncJob = await AWS.IoTTwinMaker.SyncJob("monitoringSyncJob", {
SyncSource: "https://monitoring.source.com",
SyncRole: "arn:aws:iam::123456789012:role/MonitoringRole",
WorkspaceId: "monitoringWorkspaceId",
Tags: {
Project: "MonitoringProject",
AlertLevel: "High"
}
});