Skip to content

StartTagSyncTask

Source: src/AWS/ResourceGroups/StartTagSyncTask.ts

Runtime binding for resource-groups:StartTagSyncTask.

Starts a tag-sync task on the bound application Group: Resource Groups continuously adds resources carrying the tag (or matching the resource query) to the group and removes ones that stop matching, acting as the bound IAM role. The binding grants the action on the group plus iam:PassRole on the role (condition-scoped to resource-groups.amazonaws.com); the role itself needs the tagging permissions tag-sync uses and a trust policy for resource-groups.amazonaws.com. Provide the implementation with Effect.provide(AWS.ResourceGroups.StartTagSyncTaskHttp).

// init — bind the operation to the group and the sync role
const startTagSyncTask = yield* AWS.ResourceGroups.StartTagSyncTask(group, syncRole);
// runtime
const { TaskArn } = yield* startTagSyncTask({
TagKey: "team",
TagValue: "platform",
});