published on Thursday, Jul 23, 2026 by Aten Security
published on Thursday, Jul 23, 2026 by Aten Security
Create Sync Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Sync(name: string, args: SyncArgs, opts?: CustomResourceOptions);@overload
def Sync(resource_name: str,
args: SyncArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Sync(resource_name: str,
opts: Optional[ResourceOptions] = None,
provider_name: Optional[str] = None,
poll_interval_seconds: Optional[int] = None,
timeout_seconds: Optional[int] = None,
trigger: Optional[str] = None,
wait_for_completion: Optional[bool] = None)func NewSync(ctx *Context, name string, args SyncArgs, opts ...ResourceOption) (*Sync, error)public Sync(string name, SyncArgs args, CustomResourceOptions? opts = null)type: thoth:mdm:Sync
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "thoth_mdm_sync" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SyncArgs
- 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 SyncArgs
- 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 SyncArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SyncArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SyncArgs
- 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 syncResource = new Thoth.Mdm.Sync("syncResource", new()
{
ProviderName = "string",
PollIntervalSeconds = 0,
TimeoutSeconds = 0,
Trigger = "string",
WaitForCompletion = false,
});
example, err := mdm.NewSync(ctx, "syncResource", &mdm.SyncArgs{
ProviderName: pulumi.String("string"),
PollIntervalSeconds: pulumi.Int(0),
TimeoutSeconds: pulumi.Int(0),
Trigger: pulumi.String("string"),
WaitForCompletion: pulumi.Bool(false),
})
resource "thoth_mdm_sync" "syncResource" {
lifecycle {
create_before_destroy = true
}
provider_name = "string"
poll_interval_seconds = 0
timeout_seconds = 0
trigger = "string"
wait_for_completion = false
}
var syncResource = new Sync("syncResource", SyncArgs.builder()
.providerName("string")
.pollIntervalSeconds(0)
.timeoutSeconds(0)
.trigger("string")
.waitForCompletion(false)
.build());
sync_resource = thoth.mdm.Sync("syncResource",
provider_name="string",
poll_interval_seconds=0,
timeout_seconds=0,
trigger="string",
wait_for_completion=False)
const syncResource = new thoth.mdm.Sync("syncResource", {
providerName: "string",
pollIntervalSeconds: 0,
timeoutSeconds: 0,
trigger: "string",
waitForCompletion: false,
});
type: thoth:mdm:Sync
properties:
pollIntervalSeconds: 0
providerName: string
timeoutSeconds: 0
trigger: string
waitForCompletion: false
Sync 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 Sync resource accepts the following input properties:
- Provider
Name string - MDM provider slug.
- Poll
Interval intSeconds - Polling interval when wait_for_completion=true.
- Timeout
Seconds int - Polling timeout when wait_for_completion=true.
- Trigger string
- Arbitrary replacement trigger value.
- Wait
For boolCompletion - Wait for sync job completion before returning state.
- Provider
Name string - MDM provider slug.
- Poll
Interval intSeconds - Polling interval when wait_for_completion=true.
- Timeout
Seconds int - Polling timeout when wait_for_completion=true.
- Trigger string
- Arbitrary replacement trigger value.
- Wait
For boolCompletion - Wait for sync job completion before returning state.
- provider_
name string - MDM provider slug.
- poll_
interval_ numberseconds - Polling interval when wait_for_completion=true.
- timeout_
seconds number - Polling timeout when wait_for_completion=true.
- trigger string
- Arbitrary replacement trigger value.
- wait_
for_ boolcompletion - Wait for sync job completion before returning state.
- provider
Name String - MDM provider slug.
- poll
Interval IntegerSeconds - Polling interval when wait_for_completion=true.
- timeout
Seconds Integer - Polling timeout when wait_for_completion=true.
- trigger String
- Arbitrary replacement trigger value.
- wait
For BooleanCompletion - Wait for sync job completion before returning state.
- provider
Name string - MDM provider slug.
- poll
Interval numberSeconds - Polling interval when wait_for_completion=true.
- timeout
Seconds number - Polling timeout when wait_for_completion=true.
- trigger string
- Arbitrary replacement trigger value.
- wait
For booleanCompletion - Wait for sync job completion before returning state.
- provider_
name str - MDM provider slug.
- poll_
interval_ intseconds - Polling interval when wait_for_completion=true.
- timeout_
seconds int - Polling timeout when wait_for_completion=true.
- trigger str
- Arbitrary replacement trigger value.
- wait_
for_ boolcompletion - Wait for sync job completion before returning state.
- provider
Name String - MDM provider slug.
- poll
Interval NumberSeconds - Polling interval when wait_for_completion=true.
- timeout
Seconds Number - Polling timeout when wait_for_completion=true.
- trigger String
- Arbitrary replacement trigger value.
- wait
For BooleanCompletion - Wait for sync job completion before returning state.
Outputs
All input properties are implicitly available as output properties. Additionally, the Sync resource produces the following output properties:
- Completed
At string - Job completion timestamp.
- Created
At string - Job creation timestamp.
- Error string
- Job error string when status=failed.
- Id string
- The provider-assigned unique ID for this managed resource.
- Started
At string - Job start timestamp.
- Status string
- Job status: queued, running, succeeded, failed.
- Synced
Endpoints int - Number of endpoints synchronized by the job.
- Tenant
Id string - Tenant ID from provider configuration.
- Unassigned
Count int - Count of devices that could not be mapped.
- Updated
At string - Job update timestamp.
- Completed
At string - Job completion timestamp.
- Created
At string - Job creation timestamp.
- Error string
- Job error string when status=failed.
- Id string
- The provider-assigned unique ID for this managed resource.
- Started
At string - Job start timestamp.
- Status string
- Job status: queued, running, succeeded, failed.
- Synced
Endpoints int - Number of endpoints synchronized by the job.
- Tenant
Id string - Tenant ID from provider configuration.
- Unassigned
Count int - Count of devices that could not be mapped.
- Updated
At string - Job update timestamp.
- completed_
at string - Job completion timestamp.
- created_
at string - Job creation timestamp.
- error string
- Job error string when status=failed.
- id string
- The provider-assigned unique ID for this managed resource.
- started_
at string - Job start timestamp.
- status string
- Job status: queued, running, succeeded, failed.
- synced_
endpoints number - Number of endpoints synchronized by the job.
- tenant_
id string - Tenant ID from provider configuration.
- unassigned_
count number - Count of devices that could not be mapped.
- updated_
at string - Job update timestamp.
- completed
At String - Job completion timestamp.
- created
At String - Job creation timestamp.
- error String
- Job error string when status=failed.
- id String
- The provider-assigned unique ID for this managed resource.
- started
At String - Job start timestamp.
- status String
- Job status: queued, running, succeeded, failed.
- synced
Endpoints Integer - Number of endpoints synchronized by the job.
- tenant
Id String - Tenant ID from provider configuration.
- unassigned
Count Integer - Count of devices that could not be mapped.
- updated
At String - Job update timestamp.
- completed
At string - Job completion timestamp.
- created
At string - Job creation timestamp.
- error string
- Job error string when status=failed.
- id string
- The provider-assigned unique ID for this managed resource.
- started
At string - Job start timestamp.
- status string
- Job status: queued, running, succeeded, failed.
- synced
Endpoints number - Number of endpoints synchronized by the job.
- tenant
Id string - Tenant ID from provider configuration.
- unassigned
Count number - Count of devices that could not be mapped.
- updated
At string - Job update timestamp.
- completed_
at str - Job completion timestamp.
- created_
at str - Job creation timestamp.
- error str
- Job error string when status=failed.
- id str
- The provider-assigned unique ID for this managed resource.
- started_
at str - Job start timestamp.
- status str
- Job status: queued, running, succeeded, failed.
- synced_
endpoints int - Number of endpoints synchronized by the job.
- tenant_
id str - Tenant ID from provider configuration.
- unassigned_
count int - Count of devices that could not be mapped.
- updated_
at str - Job update timestamp.
- completed
At String - Job completion timestamp.
- created
At String - Job creation timestamp.
- error String
- Job error string when status=failed.
- id String
- The provider-assigned unique ID for this managed resource.
- started
At String - Job start timestamp.
- status String
- Job status: queued, running, succeeded, failed.
- synced
Endpoints Number - Number of endpoints synchronized by the job.
- tenant
Id String - Tenant ID from provider configuration.
- unassigned
Count Number - Count of devices that could not be mapped.
- updated
At String - Job update timestamp.
Look up Existing Sync Resource
Get an existing Sync 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?: SyncState, opts?: CustomResourceOptions): Sync@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
completed_at: Optional[str] = None,
created_at: Optional[str] = None,
error: Optional[str] = None,
poll_interval_seconds: Optional[int] = None,
provider_name: Optional[str] = None,
started_at: Optional[str] = None,
status: Optional[str] = None,
synced_endpoints: Optional[int] = None,
tenant_id: Optional[str] = None,
timeout_seconds: Optional[int] = None,
trigger: Optional[str] = None,
unassigned_count: Optional[int] = None,
updated_at: Optional[str] = None,
wait_for_completion: Optional[bool] = None) -> Syncfunc GetSync(ctx *Context, name string, id IDInput, state *SyncState, opts ...ResourceOption) (*Sync, error)public static Sync Get(string name, Input<string> id, SyncState? state, CustomResourceOptions? opts = null)public static Sync get(String name, Output<String> id, SyncState state, CustomResourceOptions options)resources: _: type: thoth:mdm:Sync get: id: ${id}import {
to = thoth_mdm_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.
- Completed
At string - Job completion timestamp.
- Created
At string - Job creation timestamp.
- Error string
- Job error string when status=failed.
- Poll
Interval intSeconds - Polling interval when wait_for_completion=true.
- Provider
Name string - MDM provider slug.
- Started
At string - Job start timestamp.
- Status string
- Job status: queued, running, succeeded, failed.
- Synced
Endpoints int - Number of endpoints synchronized by the job.
- Tenant
Id string - Tenant ID from provider configuration.
- Timeout
Seconds int - Polling timeout when wait_for_completion=true.
- Trigger string
- Arbitrary replacement trigger value.
- Unassigned
Count int - Count of devices that could not be mapped.
- Updated
At string - Job update timestamp.
- Wait
For boolCompletion - Wait for sync job completion before returning state.
- Completed
At string - Job completion timestamp.
- Created
At string - Job creation timestamp.
- Error string
- Job error string when status=failed.
- Poll
Interval intSeconds - Polling interval when wait_for_completion=true.
- Provider
Name string - MDM provider slug.
- Started
At string - Job start timestamp.
- Status string
- Job status: queued, running, succeeded, failed.
- Synced
Endpoints int - Number of endpoints synchronized by the job.
- Tenant
Id string - Tenant ID from provider configuration.
- Timeout
Seconds int - Polling timeout when wait_for_completion=true.
- Trigger string
- Arbitrary replacement trigger value.
- Unassigned
Count int - Count of devices that could not be mapped.
- Updated
At string - Job update timestamp.
- Wait
For boolCompletion - Wait for sync job completion before returning state.
- completed_
at string - Job completion timestamp.
- created_
at string - Job creation timestamp.
- error string
- Job error string when status=failed.
- poll_
interval_ numberseconds - Polling interval when wait_for_completion=true.
- provider_
name string - MDM provider slug.
- started_
at string - Job start timestamp.
- status string
- Job status: queued, running, succeeded, failed.
- synced_
endpoints number - Number of endpoints synchronized by the job.
- tenant_
id string - Tenant ID from provider configuration.
- timeout_
seconds number - Polling timeout when wait_for_completion=true.
- trigger string
- Arbitrary replacement trigger value.
- unassigned_
count number - Count of devices that could not be mapped.
- updated_
at string - Job update timestamp.
- wait_
for_ boolcompletion - Wait for sync job completion before returning state.
- completed
At String - Job completion timestamp.
- created
At String - Job creation timestamp.
- error String
- Job error string when status=failed.
- poll
Interval IntegerSeconds - Polling interval when wait_for_completion=true.
- provider
Name String - MDM provider slug.
- started
At String - Job start timestamp.
- status String
- Job status: queued, running, succeeded, failed.
- synced
Endpoints Integer - Number of endpoints synchronized by the job.
- tenant
Id String - Tenant ID from provider configuration.
- timeout
Seconds Integer - Polling timeout when wait_for_completion=true.
- trigger String
- Arbitrary replacement trigger value.
- unassigned
Count Integer - Count of devices that could not be mapped.
- updated
At String - Job update timestamp.
- wait
For BooleanCompletion - Wait for sync job completion before returning state.
- completed
At string - Job completion timestamp.
- created
At string - Job creation timestamp.
- error string
- Job error string when status=failed.
- poll
Interval numberSeconds - Polling interval when wait_for_completion=true.
- provider
Name string - MDM provider slug.
- started
At string - Job start timestamp.
- status string
- Job status: queued, running, succeeded, failed.
- synced
Endpoints number - Number of endpoints synchronized by the job.
- tenant
Id string - Tenant ID from provider configuration.
- timeout
Seconds number - Polling timeout when wait_for_completion=true.
- trigger string
- Arbitrary replacement trigger value.
- unassigned
Count number - Count of devices that could not be mapped.
- updated
At string - Job update timestamp.
- wait
For booleanCompletion - Wait for sync job completion before returning state.
- completed_
at str - Job completion timestamp.
- created_
at str - Job creation timestamp.
- error str
- Job error string when status=failed.
- poll_
interval_ intseconds - Polling interval when wait_for_completion=true.
- provider_
name str - MDM provider slug.
- started_
at str - Job start timestamp.
- status str
- Job status: queued, running, succeeded, failed.
- synced_
endpoints int - Number of endpoints synchronized by the job.
- tenant_
id str - Tenant ID from provider configuration.
- timeout_
seconds int - Polling timeout when wait_for_completion=true.
- trigger str
- Arbitrary replacement trigger value.
- unassigned_
count int - Count of devices that could not be mapped.
- updated_
at str - Job update timestamp.
- wait_
for_ boolcompletion - Wait for sync job completion before returning state.
- completed
At String - Job completion timestamp.
- created
At String - Job creation timestamp.
- error String
- Job error string when status=failed.
- poll
Interval NumberSeconds - Polling interval when wait_for_completion=true.
- provider
Name String - MDM provider slug.
- started
At String - Job start timestamp.
- status String
- Job status: queued, running, succeeded, failed.
- synced
Endpoints Number - Number of endpoints synchronized by the job.
- tenant
Id String - Tenant ID from provider configuration.
- timeout
Seconds Number - Polling timeout when wait_for_completion=true.
- trigger String
- Arbitrary replacement trigger value.
- unassigned
Count Number - Count of devices that could not be mapped.
- updated
At String - Job update timestamp.
- wait
For BooleanCompletion - Wait for sync job completion before returning 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