published on Thursday, Jul 23, 2026 by Aten Security
published on Thursday, Jul 23, 2026 by Aten Security
Create PolicySync Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicySync(name: string, args?: PolicySyncArgs, opts?: CustomResourceOptions);@overload
def PolicySync(resource_name: str,
args: Optional[PolicySyncArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def PolicySync(resource_name: str,
opts: Optional[ResourceOptions] = None,
poll_interval_seconds: Optional[int] = None,
timeout_seconds: Optional[int] = None,
trigger: Optional[str] = None,
wait_for_completion: Optional[bool] = None)func NewPolicySync(ctx *Context, name string, args *PolicySyncArgs, opts ...ResourceOption) (*PolicySync, error)public PolicySync(string name, PolicySyncArgs? args = null, CustomResourceOptions? opts = null)
public PolicySync(String name, PolicySyncArgs args)
public PolicySync(String name, PolicySyncArgs args, CustomResourceOptions options)
type: thoth:governance:PolicySync
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "thoth_governance_policy_sync" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PolicySyncArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PolicySyncArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PolicySyncArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicySyncArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicySyncArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var policySyncResource = new Thoth.Governance.PolicySync("policySyncResource", new()
{
PollIntervalSeconds = 0,
TimeoutSeconds = 0,
Trigger = "string",
WaitForCompletion = false,
});
example, err := governance.NewPolicySync(ctx, "policySyncResource", &governance.PolicySyncArgs{
PollIntervalSeconds: pulumi.Int(0),
TimeoutSeconds: pulumi.Int(0),
Trigger: pulumi.String("string"),
WaitForCompletion: pulumi.Bool(false),
})
resource "thoth_governance_policy_sync" "policySyncResource" {
lifecycle {
create_before_destroy = true
}
poll_interval_seconds = 0
timeout_seconds = 0
trigger = "string"
wait_for_completion = false
}
var policySyncResource = new PolicySync("policySyncResource", PolicySyncArgs.builder()
.pollIntervalSeconds(0)
.timeoutSeconds(0)
.trigger("string")
.waitForCompletion(false)
.build());
policy_sync_resource = thoth.governance.PolicySync("policySyncResource",
poll_interval_seconds=0,
timeout_seconds=0,
trigger="string",
wait_for_completion=False)
const policySyncResource = new thoth.governance.PolicySync("policySyncResource", {
pollIntervalSeconds: 0,
timeoutSeconds: 0,
trigger: "string",
waitForCompletion: false,
});
type: thoth:governance:PolicySync
properties:
pollIntervalSeconds: 0
timeoutSeconds: 0
trigger: string
waitForCompletion: false
PolicySync Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PolicySync resource accepts the following input properties:
- Poll
Interval intSeconds - Polling interval when wait_for_completion=true.
- Timeout
Seconds int - Polling timeout when wait_for_completion=true.
- Trigger string
- Change this value to force a sync run.
- Wait
For boolCompletion - Poll status until terminal state.
- Poll
Interval intSeconds - Polling interval when wait_for_completion=true.
- Timeout
Seconds int - Polling timeout when wait_for_completion=true.
- Trigger string
- Change this value to force a sync run.
- Wait
For boolCompletion - Poll status until terminal state.
- poll_
interval_ numberseconds - Polling interval when wait_for_completion=true.
- timeout_
seconds number - Polling timeout when wait_for_completion=true.
- trigger string
- Change this value to force a sync run.
- wait_
for_ boolcompletion - Poll status until terminal state.
- poll
Interval IntegerSeconds - Polling interval when wait_for_completion=true.
- timeout
Seconds Integer - Polling timeout when wait_for_completion=true.
- trigger String
- Change this value to force a sync run.
- wait
For BooleanCompletion - Poll status until terminal state.
- poll
Interval numberSeconds - Polling interval when wait_for_completion=true.
- timeout
Seconds number - Polling timeout when wait_for_completion=true.
- trigger string
- Change this value to force a sync run.
- wait
For booleanCompletion - Poll status until terminal state.
- poll_
interval_ intseconds - Polling interval when wait_for_completion=true.
- timeout_
seconds int - Polling timeout when wait_for_completion=true.
- trigger str
- Change this value to force a sync run.
- wait_
for_ boolcompletion - Poll status until terminal state.
- poll
Interval NumberSeconds - Polling interval when wait_for_completion=true.
- timeout
Seconds Number - Polling timeout when wait_for_completion=true.
- trigger String
- Change this value to force a sync run.
- wait
For BooleanCompletion - Poll status until terminal state.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicySync resource produces the following output properties:
- Applied
Agents stringJson - Applied agent IDs as JSON array.
- Applied
Count int - Policies applied during sync.
- Changed bool
- Whether sync applied changes.
- Configured bool
- Whether policy sync is configured.
- Error
Count int - Sync error count.
- Errors
Json string - Sync errors as JSON array.
- Id string
- The provider-assigned unique ID for this managed resource.
- Interval
Seconds int - Configured enforcer sync interval seconds.
- Skipped
Count int - Skipped policy entries count.
- Status string
- Current policy sync status.
- Synced
At string - Last sync timestamp.
- Tenant
Id string - Tenant ID from provider configuration.
- Applied
Agents stringJson - Applied agent IDs as JSON array.
- Applied
Count int - Policies applied during sync.
- Changed bool
- Whether sync applied changes.
- Configured bool
- Whether policy sync is configured.
- Error
Count int - Sync error count.
- Errors
Json string - Sync errors as JSON array.
- Id string
- The provider-assigned unique ID for this managed resource.
- Interval
Seconds int - Configured enforcer sync interval seconds.
- Skipped
Count int - Skipped policy entries count.
- Status string
- Current policy sync status.
- Synced
At string - Last sync timestamp.
- Tenant
Id string - Tenant ID from provider configuration.
- applied_
agents_ stringjson - Applied agent IDs as JSON array.
- applied_
count number - Policies applied during sync.
- changed bool
- Whether sync applied changes.
- configured bool
- Whether policy sync is configured.
- error_
count number - Sync error count.
- errors_
json string - Sync errors as JSON array.
- id string
- The provider-assigned unique ID for this managed resource.
- interval_
seconds number - Configured enforcer sync interval seconds.
- skipped_
count number - Skipped policy entries count.
- status string
- Current policy sync status.
- synced_
at string - Last sync timestamp.
- tenant_
id string - Tenant ID from provider configuration.
- applied
Agents StringJson - Applied agent IDs as JSON array.
- applied
Count Integer - Policies applied during sync.
- changed Boolean
- Whether sync applied changes.
- configured Boolean
- Whether policy sync is configured.
- error
Count Integer - Sync error count.
- errors
Json String - Sync errors as JSON array.
- id String
- The provider-assigned unique ID for this managed resource.
- interval
Seconds Integer - Configured enforcer sync interval seconds.
- skipped
Count Integer - Skipped policy entries count.
- status String
- Current policy sync status.
- synced
At String - Last sync timestamp.
- tenant
Id String - Tenant ID from provider configuration.
- applied
Agents stringJson - Applied agent IDs as JSON array.
- applied
Count number - Policies applied during sync.
- changed boolean
- Whether sync applied changes.
- configured boolean
- Whether policy sync is configured.
- error
Count number - Sync error count.
- errors
Json string - Sync errors as JSON array.
- id string
- The provider-assigned unique ID for this managed resource.
- interval
Seconds number - Configured enforcer sync interval seconds.
- skipped
Count number - Skipped policy entries count.
- status string
- Current policy sync status.
- synced
At string - Last sync timestamp.
- tenant
Id string - Tenant ID from provider configuration.
- applied_
agents_ strjson - Applied agent IDs as JSON array.
- applied_
count int - Policies applied during sync.
- changed bool
- Whether sync applied changes.
- configured bool
- Whether policy sync is configured.
- error_
count int - Sync error count.
- errors_
json str - Sync errors as JSON array.
- id str
- The provider-assigned unique ID for this managed resource.
- interval_
seconds int - Configured enforcer sync interval seconds.
- skipped_
count int - Skipped policy entries count.
- status str
- Current policy sync status.
- synced_
at str - Last sync timestamp.
- tenant_
id str - Tenant ID from provider configuration.
- applied
Agents StringJson - Applied agent IDs as JSON array.
- applied
Count Number - Policies applied during sync.
- changed Boolean
- Whether sync applied changes.
- configured Boolean
- Whether policy sync is configured.
- error
Count Number - Sync error count.
- errors
Json String - Sync errors as JSON array.
- id String
- The provider-assigned unique ID for this managed resource.
- interval
Seconds Number - Configured enforcer sync interval seconds.
- skipped
Count Number - Skipped policy entries count.
- status String
- Current policy sync status.
- synced
At String - Last sync timestamp.
- tenant
Id String - Tenant ID from provider configuration.
Look up Existing PolicySync Resource
Get an existing PolicySync resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PolicySyncState, opts?: CustomResourceOptions): PolicySync@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
applied_agents_json: Optional[str] = None,
applied_count: Optional[int] = None,
changed: Optional[bool] = None,
configured: Optional[bool] = None,
error_count: Optional[int] = None,
errors_json: Optional[str] = None,
interval_seconds: Optional[int] = None,
poll_interval_seconds: Optional[int] = None,
skipped_count: Optional[int] = None,
status: Optional[str] = None,
synced_at: Optional[str] = None,
tenant_id: Optional[str] = None,
timeout_seconds: Optional[int] = None,
trigger: Optional[str] = None,
wait_for_completion: Optional[bool] = None) -> PolicySyncfunc GetPolicySync(ctx *Context, name string, id IDInput, state *PolicySyncState, opts ...ResourceOption) (*PolicySync, error)public static PolicySync Get(string name, Input<string> id, PolicySyncState? state, CustomResourceOptions? opts = null)public static PolicySync get(String name, Output<String> id, PolicySyncState state, CustomResourceOptions options)resources: _: type: thoth:governance:PolicySync get: id: ${id}import {
to = thoth_governance_policy_sync.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Applied
Agents stringJson - Applied agent IDs as JSON array.
- Applied
Count int - Policies applied during sync.
- Changed bool
- Whether sync applied changes.
- Configured bool
- Whether policy sync is configured.
- Error
Count int - Sync error count.
- Errors
Json string - Sync errors as JSON array.
- Interval
Seconds int - Configured enforcer sync interval seconds.
- Poll
Interval intSeconds - Polling interval when wait_for_completion=true.
- Skipped
Count int - Skipped policy entries count.
- Status string
- Current policy sync status.
- Synced
At string - Last sync timestamp.
- Tenant
Id string - Tenant ID from provider configuration.
- Timeout
Seconds int - Polling timeout when wait_for_completion=true.
- Trigger string
- Change this value to force a sync run.
- Wait
For boolCompletion - Poll status until terminal state.
- Applied
Agents stringJson - Applied agent IDs as JSON array.
- Applied
Count int - Policies applied during sync.
- Changed bool
- Whether sync applied changes.
- Configured bool
- Whether policy sync is configured.
- Error
Count int - Sync error count.
- Errors
Json string - Sync errors as JSON array.
- Interval
Seconds int - Configured enforcer sync interval seconds.
- Poll
Interval intSeconds - Polling interval when wait_for_completion=true.
- Skipped
Count int - Skipped policy entries count.
- Status string
- Current policy sync status.
- Synced
At string - Last sync timestamp.
- Tenant
Id string - Tenant ID from provider configuration.
- Timeout
Seconds int - Polling timeout when wait_for_completion=true.
- Trigger string
- Change this value to force a sync run.
- Wait
For boolCompletion - Poll status until terminal state.
- applied_
agents_ stringjson - Applied agent IDs as JSON array.
- applied_
count number - Policies applied during sync.
- changed bool
- Whether sync applied changes.
- configured bool
- Whether policy sync is configured.
- error_
count number - Sync error count.
- errors_
json string - Sync errors as JSON array.
- interval_
seconds number - Configured enforcer sync interval seconds.
- poll_
interval_ numberseconds - Polling interval when wait_for_completion=true.
- skipped_
count number - Skipped policy entries count.
- status string
- Current policy sync status.
- synced_
at string - Last sync timestamp.
- tenant_
id string - Tenant ID from provider configuration.
- timeout_
seconds number - Polling timeout when wait_for_completion=true.
- trigger string
- Change this value to force a sync run.
- wait_
for_ boolcompletion - Poll status until terminal state.
- applied
Agents StringJson - Applied agent IDs as JSON array.
- applied
Count Integer - Policies applied during sync.
- changed Boolean
- Whether sync applied changes.
- configured Boolean
- Whether policy sync is configured.
- error
Count Integer - Sync error count.
- errors
Json String - Sync errors as JSON array.
- interval
Seconds Integer - Configured enforcer sync interval seconds.
- poll
Interval IntegerSeconds - Polling interval when wait_for_completion=true.
- skipped
Count Integer - Skipped policy entries count.
- status String
- Current policy sync status.
- synced
At String - Last sync timestamp.
- tenant
Id String - Tenant ID from provider configuration.
- timeout
Seconds Integer - Polling timeout when wait_for_completion=true.
- trigger String
- Change this value to force a sync run.
- wait
For BooleanCompletion - Poll status until terminal state.
- applied
Agents stringJson - Applied agent IDs as JSON array.
- applied
Count number - Policies applied during sync.
- changed boolean
- Whether sync applied changes.
- configured boolean
- Whether policy sync is configured.
- error
Count number - Sync error count.
- errors
Json string - Sync errors as JSON array.
- interval
Seconds number - Configured enforcer sync interval seconds.
- poll
Interval numberSeconds - Polling interval when wait_for_completion=true.
- skipped
Count number - Skipped policy entries count.
- status string
- Current policy sync status.
- synced
At string - Last sync timestamp.
- tenant
Id string - Tenant ID from provider configuration.
- timeout
Seconds number - Polling timeout when wait_for_completion=true.
- trigger string
- Change this value to force a sync run.
- wait
For booleanCompletion - Poll status until terminal state.
- applied_
agents_ strjson - Applied agent IDs as JSON array.
- applied_
count int - Policies applied during sync.
- changed bool
- Whether sync applied changes.
- configured bool
- Whether policy sync is configured.
- error_
count int - Sync error count.
- errors_
json str - Sync errors as JSON array.
- interval_
seconds int - Configured enforcer sync interval seconds.
- poll_
interval_ intseconds - Polling interval when wait_for_completion=true.
- skipped_
count int - Skipped policy entries count.
- status str
- Current policy sync status.
- synced_
at str - Last sync timestamp.
- tenant_
id str - Tenant ID from provider configuration.
- timeout_
seconds int - Polling timeout when wait_for_completion=true.
- trigger str
- Change this value to force a sync run.
- wait_
for_ boolcompletion - Poll status until terminal state.
- applied
Agents StringJson - Applied agent IDs as JSON array.
- applied
Count Number - Policies applied during sync.
- changed Boolean
- Whether sync applied changes.
- configured Boolean
- Whether policy sync is configured.
- error
Count Number - Sync error count.
- errors
Json String - Sync errors as JSON array.
- interval
Seconds Number - Configured enforcer sync interval seconds.
- poll
Interval NumberSeconds - Polling interval when wait_for_completion=true.
- skipped
Count Number - Skipped policy entries count.
- status String
- Current policy sync status.
- synced
At String - Last sync timestamp.
- tenant
Id String - Tenant ID from provider configuration.
- timeout
Seconds Number - Polling timeout when wait_for_completion=true.
- trigger String
- Change this value to force a sync run.
- wait
For BooleanCompletion - Poll status until terminal state.
Package Details
- Repository
- thoth atensecurity/pulumi-thoth
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
thothTerraform Provider.
published on Thursday, Jul 23, 2026 by Aten Security