aws_sdk_codestarconnections/client/
get_resource_sync_status.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 [`GetResourceSyncStatus`](crate::operation::get_resource_sync_status::builders::GetResourceSyncStatusFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`resource_name(impl Into<String>)`](crate::operation::get_resource_sync_status::builders::GetResourceSyncStatusFluentBuilder::resource_name) / [`set_resource_name(Option<String>)`](crate::operation::get_resource_sync_status::builders::GetResourceSyncStatusFluentBuilder::set_resource_name):<br>required: **true**<br><p>The name of the Amazon Web Services resource for the sync status with the Git repository.</p><br>
7    ///   - [`sync_type(SyncConfigurationType)`](crate::operation::get_resource_sync_status::builders::GetResourceSyncStatusFluentBuilder::sync_type) / [`set_sync_type(Option<SyncConfigurationType>)`](crate::operation::get_resource_sync_status::builders::GetResourceSyncStatusFluentBuilder::set_sync_type):<br>required: **true**<br><p>The sync type for the sync status with the Git repository.</p><br>
8    /// - On success, responds with [`GetResourceSyncStatusOutput`](crate::operation::get_resource_sync_status::GetResourceSyncStatusOutput) with field(s):
9    ///   - [`desired_state(Option<Revision>)`](crate::operation::get_resource_sync_status::GetResourceSyncStatusOutput::desired_state): <p>The desired state of the Amazon Web Services resource for the sync status with the Git repository.</p>
10    ///   - [`latest_successful_sync(Option<ResourceSyncAttempt>)`](crate::operation::get_resource_sync_status::GetResourceSyncStatusOutput::latest_successful_sync): <p>The latest successful sync for the sync status with the Git repository.</p>
11    ///   - [`latest_sync(Option<ResourceSyncAttempt>)`](crate::operation::get_resource_sync_status::GetResourceSyncStatusOutput::latest_sync): <p>The latest sync for the sync status with the Git repository, whether successful or not.</p>
12    /// - On failure, responds with [`SdkError<GetResourceSyncStatusError>`](crate::operation::get_resource_sync_status::GetResourceSyncStatusError)
13    pub fn get_resource_sync_status(&self) -> crate::operation::get_resource_sync_status::builders::GetResourceSyncStatusFluentBuilder {
14        crate::operation::get_resource_sync_status::builders::GetResourceSyncStatusFluentBuilder::new(self.handle.clone())
15    }
16}