aws_sdk_iottwinmaker/client/
create_sync_job.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateSyncJob`](crate::operation::create_sync_job::builders::CreateSyncJobFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`workspace_id(impl Into<String>)`](crate::operation::create_sync_job::builders::CreateSyncJobFluentBuilder::workspace_id) / [`set_workspace_id(Option<String>)`](crate::operation::create_sync_job::builders::CreateSyncJobFluentBuilder::set_workspace_id):<br>required: **true**<br><p>The workspace ID.</p><br>
7    ///   - [`sync_source(impl Into<String>)`](crate::operation::create_sync_job::builders::CreateSyncJobFluentBuilder::sync_source) / [`set_sync_source(Option<String>)`](crate::operation::create_sync_job::builders::CreateSyncJobFluentBuilder::set_sync_source):<br>required: **true**<br><p>The sync source.</p><note>  <p>Currently the only supported syncSoource is <code>SITEWISE </code>.</p> </note><br>
8    ///   - [`sync_role(impl Into<String>)`](crate::operation::create_sync_job::builders::CreateSyncJobFluentBuilder::sync_role) / [`set_sync_role(Option<String>)`](crate::operation::create_sync_job::builders::CreateSyncJobFluentBuilder::set_sync_role):<br>required: **true**<br><p>The SyncJob IAM role. This IAM role is used by the SyncJob to read from the syncSource, and create, update, or delete the corresponding resources.</p><br>
9    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_sync_job::builders::CreateSyncJobFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_sync_job::builders::CreateSyncJobFluentBuilder::set_tags):<br>required: **false**<br><p>The SyncJob tags.</p><br>
10    /// - On success, responds with [`CreateSyncJobOutput`](crate::operation::create_sync_job::CreateSyncJobOutput) with field(s):
11    ///   - [`arn(String)`](crate::operation::create_sync_job::CreateSyncJobOutput::arn): <p>The SyncJob ARN.</p>
12    ///   - [`creation_date_time(DateTime)`](crate::operation::create_sync_job::CreateSyncJobOutput::creation_date_time): <p>The date and time for the SyncJob creation.</p>
13    ///   - [`state(SyncJobState)`](crate::operation::create_sync_job::CreateSyncJobOutput::state): <p>The SyncJob response state.</p>
14    /// - On failure, responds with [`SdkError<CreateSyncJobError>`](crate::operation::create_sync_job::CreateSyncJobError)
15    pub fn create_sync_job(&self) -> crate::operation::create_sync_job::builders::CreateSyncJobFluentBuilder {
16        crate::operation::create_sync_job::builders::CreateSyncJobFluentBuilder::new(self.handle.clone())
17    }
18}