1. Packages
  2. Packages
  3. Thoth
  4. API Docs
  5. governance
  6. PolicySync
Viewing docs for Thoth v0.1.15
published on Thursday, Jul 23, 2026 by Aten Security
thoth logo
Viewing docs for Thoth v0.1.15
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:

    PollIntervalSeconds int
    Polling interval when wait_for_completion=true.
    TimeoutSeconds int
    Polling timeout when wait_for_completion=true.
    Trigger string
    Change this value to force a sync run.
    WaitForCompletion bool
    Poll status until terminal state.
    PollIntervalSeconds int
    Polling interval when wait_for_completion=true.
    TimeoutSeconds int
    Polling timeout when wait_for_completion=true.
    Trigger string
    Change this value to force a sync run.
    WaitForCompletion bool
    Poll status until terminal state.
    poll_interval_seconds number
    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_completion bool
    Poll status until terminal state.
    pollIntervalSeconds Integer
    Polling interval when wait_for_completion=true.
    timeoutSeconds Integer
    Polling timeout when wait_for_completion=true.
    trigger String
    Change this value to force a sync run.
    waitForCompletion Boolean
    Poll status until terminal state.
    pollIntervalSeconds number
    Polling interval when wait_for_completion=true.
    timeoutSeconds number
    Polling timeout when wait_for_completion=true.
    trigger string
    Change this value to force a sync run.
    waitForCompletion boolean
    Poll status until terminal state.
    poll_interval_seconds int
    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_completion bool
    Poll status until terminal state.
    pollIntervalSeconds Number
    Polling interval when wait_for_completion=true.
    timeoutSeconds Number
    Polling timeout when wait_for_completion=true.
    trigger String
    Change this value to force a sync run.
    waitForCompletion Boolean
    Poll status until terminal state.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PolicySync resource produces the following output properties:

    AppliedAgentsJson string
    Applied agent IDs as JSON array.
    AppliedCount int
    Policies applied during sync.
    Changed bool
    Whether sync applied changes.
    Configured bool
    Whether policy sync is configured.
    ErrorCount int
    Sync error count.
    ErrorsJson string
    Sync errors as JSON array.
    Id string
    The provider-assigned unique ID for this managed resource.
    IntervalSeconds int
    Configured enforcer sync interval seconds.
    SkippedCount int
    Skipped policy entries count.
    Status string
    Current policy sync status.
    SyncedAt string
    Last sync timestamp.
    TenantId string
    Tenant ID from provider configuration.
    AppliedAgentsJson string
    Applied agent IDs as JSON array.
    AppliedCount int
    Policies applied during sync.
    Changed bool
    Whether sync applied changes.
    Configured bool
    Whether policy sync is configured.
    ErrorCount int
    Sync error count.
    ErrorsJson string
    Sync errors as JSON array.
    Id string
    The provider-assigned unique ID for this managed resource.
    IntervalSeconds int
    Configured enforcer sync interval seconds.
    SkippedCount int
    Skipped policy entries count.
    Status string
    Current policy sync status.
    SyncedAt string
    Last sync timestamp.
    TenantId string
    Tenant ID from provider configuration.
    applied_agents_json string
    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.
    appliedAgentsJson String
    Applied agent IDs as JSON array.
    appliedCount Integer
    Policies applied during sync.
    changed Boolean
    Whether sync applied changes.
    configured Boolean
    Whether policy sync is configured.
    errorCount Integer
    Sync error count.
    errorsJson String
    Sync errors as JSON array.
    id String
    The provider-assigned unique ID for this managed resource.
    intervalSeconds Integer
    Configured enforcer sync interval seconds.
    skippedCount Integer
    Skipped policy entries count.
    status String
    Current policy sync status.
    syncedAt String
    Last sync timestamp.
    tenantId String
    Tenant ID from provider configuration.
    appliedAgentsJson string
    Applied agent IDs as JSON array.
    appliedCount number
    Policies applied during sync.
    changed boolean
    Whether sync applied changes.
    configured boolean
    Whether policy sync is configured.
    errorCount number
    Sync error count.
    errorsJson string
    Sync errors as JSON array.
    id string
    The provider-assigned unique ID for this managed resource.
    intervalSeconds number
    Configured enforcer sync interval seconds.
    skippedCount number
    Skipped policy entries count.
    status string
    Current policy sync status.
    syncedAt string
    Last sync timestamp.
    tenantId string
    Tenant ID from provider configuration.
    applied_agents_json str
    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.
    appliedAgentsJson String
    Applied agent IDs as JSON array.
    appliedCount Number
    Policies applied during sync.
    changed Boolean
    Whether sync applied changes.
    configured Boolean
    Whether policy sync is configured.
    errorCount Number
    Sync error count.
    errorsJson String
    Sync errors as JSON array.
    id String
    The provider-assigned unique ID for this managed resource.
    intervalSeconds Number
    Configured enforcer sync interval seconds.
    skippedCount Number
    Skipped policy entries count.
    status String
    Current policy sync status.
    syncedAt String
    Last sync timestamp.
    tenantId 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) -> PolicySync
    func 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.
    The following state arguments are supported:
    AppliedAgentsJson string
    Applied agent IDs as JSON array.
    AppliedCount int
    Policies applied during sync.
    Changed bool
    Whether sync applied changes.
    Configured bool
    Whether policy sync is configured.
    ErrorCount int
    Sync error count.
    ErrorsJson string
    Sync errors as JSON array.
    IntervalSeconds int
    Configured enforcer sync interval seconds.
    PollIntervalSeconds int
    Polling interval when wait_for_completion=true.
    SkippedCount int
    Skipped policy entries count.
    Status string
    Current policy sync status.
    SyncedAt string
    Last sync timestamp.
    TenantId string
    Tenant ID from provider configuration.
    TimeoutSeconds int
    Polling timeout when wait_for_completion=true.
    Trigger string
    Change this value to force a sync run.
    WaitForCompletion bool
    Poll status until terminal state.
    AppliedAgentsJson string
    Applied agent IDs as JSON array.
    AppliedCount int
    Policies applied during sync.
    Changed bool
    Whether sync applied changes.
    Configured bool
    Whether policy sync is configured.
    ErrorCount int
    Sync error count.
    ErrorsJson string
    Sync errors as JSON array.
    IntervalSeconds int
    Configured enforcer sync interval seconds.
    PollIntervalSeconds int
    Polling interval when wait_for_completion=true.
    SkippedCount int
    Skipped policy entries count.
    Status string
    Current policy sync status.
    SyncedAt string
    Last sync timestamp.
    TenantId string
    Tenant ID from provider configuration.
    TimeoutSeconds int
    Polling timeout when wait_for_completion=true.
    Trigger string
    Change this value to force a sync run.
    WaitForCompletion bool
    Poll status until terminal state.
    applied_agents_json string
    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_seconds number
    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_completion bool
    Poll status until terminal state.
    appliedAgentsJson String
    Applied agent IDs as JSON array.
    appliedCount Integer
    Policies applied during sync.
    changed Boolean
    Whether sync applied changes.
    configured Boolean
    Whether policy sync is configured.
    errorCount Integer
    Sync error count.
    errorsJson String
    Sync errors as JSON array.
    intervalSeconds Integer
    Configured enforcer sync interval seconds.
    pollIntervalSeconds Integer
    Polling interval when wait_for_completion=true.
    skippedCount Integer
    Skipped policy entries count.
    status String
    Current policy sync status.
    syncedAt String
    Last sync timestamp.
    tenantId String
    Tenant ID from provider configuration.
    timeoutSeconds Integer
    Polling timeout when wait_for_completion=true.
    trigger String
    Change this value to force a sync run.
    waitForCompletion Boolean
    Poll status until terminal state.
    appliedAgentsJson string
    Applied agent IDs as JSON array.
    appliedCount number
    Policies applied during sync.
    changed boolean
    Whether sync applied changes.
    configured boolean
    Whether policy sync is configured.
    errorCount number
    Sync error count.
    errorsJson string
    Sync errors as JSON array.
    intervalSeconds number
    Configured enforcer sync interval seconds.
    pollIntervalSeconds number
    Polling interval when wait_for_completion=true.
    skippedCount number
    Skipped policy entries count.
    status string
    Current policy sync status.
    syncedAt string
    Last sync timestamp.
    tenantId string
    Tenant ID from provider configuration.
    timeoutSeconds number
    Polling timeout when wait_for_completion=true.
    trigger string
    Change this value to force a sync run.
    waitForCompletion boolean
    Poll status until terminal state.
    applied_agents_json str
    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_seconds int
    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_completion bool
    Poll status until terminal state.
    appliedAgentsJson String
    Applied agent IDs as JSON array.
    appliedCount Number
    Policies applied during sync.
    changed Boolean
    Whether sync applied changes.
    configured Boolean
    Whether policy sync is configured.
    errorCount Number
    Sync error count.
    errorsJson String
    Sync errors as JSON array.
    intervalSeconds Number
    Configured enforcer sync interval seconds.
    pollIntervalSeconds Number
    Polling interval when wait_for_completion=true.
    skippedCount Number
    Skipped policy entries count.
    status String
    Current policy sync status.
    syncedAt String
    Last sync timestamp.
    tenantId String
    Tenant ID from provider configuration.
    timeoutSeconds Number
    Polling timeout when wait_for_completion=true.
    trigger String
    Change this value to force a sync run.
    waitForCompletion Boolean
    Poll status until terminal state.

    Package Details

    Repository
    thoth atensecurity/pulumi-thoth
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the thoth Terraform Provider.
    thoth logo
    Viewing docs for Thoth v0.1.15
    published on Thursday, Jul 23, 2026 by Aten Security

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial