Skip to content

GetTagSyncTask

Source: src/AWS/ResourceGroups/GetTagSyncTask.ts

Runtime binding for resource-groups:GetTagSyncTask.

Reads one tag-sync task’s detail — the synced tag key/value, the role it runs as, and its ACTIVE/ERROR status with the error message. The task ARN is chosen per request (typically the TaskArn returned by StartTagSyncTask or found via ListTagSyncTasks), so the grant is on *. Provide the implementation with Effect.provide(AWS.ResourceGroups.GetTagSyncTaskHttp).

// init
const getTagSyncTask = yield* AWS.ResourceGroups.GetTagSyncTask();
// runtime
const task = yield* getTagSyncTask({ TaskArn: taskArn });
if (task.Status === "ERROR") {
yield* Effect.logError(`tag sync failed: ${task.ErrorMessage}`);
}