Struct aws_sdk_ssm::client::fluent_builders::CreateResourceDataSync
source · [−]pub struct CreateResourceDataSync { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateResourceDataSync
.
A resource data sync helps you view data from multiple sources in a single location. Amazon Web Services Systems Manager offers two types of resource data sync: SyncToDestination
and SyncFromSource
.
You can configure Systems Manager Inventory to use the SyncToDestination
type to synchronize Inventory data from multiple Amazon Web Services Regions to a single Amazon Simple Storage Service (Amazon S3) bucket. For more information, see Configuring resource data sync for Inventory in the Amazon Web Services Systems Manager User Guide.
You can configure Systems Manager Explorer to use the SyncFromSource
type to synchronize operational work items (OpsItems) and operational data (OpsData) from multiple Amazon Web Services Regions to a single Amazon S3 bucket. This type can synchronize OpsItems and OpsData from multiple Amazon Web Services accounts and Amazon Web Services Regions or EntireOrganization
by using Organizations. For more information, see Setting up Systems Manager Explorer to display data from multiple accounts and Regions in the Amazon Web Services Systems Manager User Guide.
A resource data sync is an asynchronous operation that returns immediately. After a successful initial sync is completed, the system continuously syncs data. To check the status of a sync, use the ListResourceDataSync
.
By default, data isn't encrypted in Amazon S3. We strongly recommend that you enable encryption in Amazon S3 to ensure secure data storage. We also recommend that you secure access to the Amazon S3 bucket by creating a restrictive bucket policy.
Implementations
sourceimpl CreateResourceDataSync
impl CreateResourceDataSync
sourcepub async fn send(
self
) -> Result<CreateResourceDataSyncOutput, SdkError<CreateResourceDataSyncError>>
pub async fn send(
self
) -> Result<CreateResourceDataSyncOutput, SdkError<CreateResourceDataSyncError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn set_sync_name(self, input: Option<String>) -> Self
pub fn set_sync_name(self, input: Option<String>) -> Self
A name for the configuration.
sourcepub fn s3_destination(self, input: ResourceDataSyncS3Destination) -> Self
pub fn s3_destination(self, input: ResourceDataSyncS3Destination) -> Self
Amazon S3 configuration details for the sync. This parameter is required if the SyncType
value is SyncToDestination.
sourcepub fn set_s3_destination(
self,
input: Option<ResourceDataSyncS3Destination>
) -> Self
pub fn set_s3_destination(
self,
input: Option<ResourceDataSyncS3Destination>
) -> Self
Amazon S3 configuration details for the sync. This parameter is required if the SyncType
value is SyncToDestination.
sourcepub fn sync_type(self, input: impl Into<String>) -> Self
pub fn sync_type(self, input: impl Into<String>) -> Self
Specify SyncToDestination
to create a resource data sync that synchronizes data to an S3 bucket for Inventory. If you specify SyncToDestination
, you must provide a value for S3Destination
. Specify SyncFromSource
to synchronize data from a single account and multiple Regions, or multiple Amazon Web Services accounts and Amazon Web Services Regions, as listed in Organizations for Explorer. If you specify SyncFromSource
, you must provide a value for SyncSource
. The default value is SyncToDestination
.
sourcepub fn set_sync_type(self, input: Option<String>) -> Self
pub fn set_sync_type(self, input: Option<String>) -> Self
Specify SyncToDestination
to create a resource data sync that synchronizes data to an S3 bucket for Inventory. If you specify SyncToDestination
, you must provide a value for S3Destination
. Specify SyncFromSource
to synchronize data from a single account and multiple Regions, or multiple Amazon Web Services accounts and Amazon Web Services Regions, as listed in Organizations for Explorer. If you specify SyncFromSource
, you must provide a value for SyncSource
. The default value is SyncToDestination
.
sourcepub fn sync_source(self, input: ResourceDataSyncSource) -> Self
pub fn sync_source(self, input: ResourceDataSyncSource) -> Self
Specify information about the data sources to synchronize. This parameter is required if the SyncType
value is SyncFromSource.
sourcepub fn set_sync_source(self, input: Option<ResourceDataSyncSource>) -> Self
pub fn set_sync_source(self, input: Option<ResourceDataSyncSource>) -> Self
Specify information about the data sources to synchronize. This parameter is required if the SyncType
value is SyncFromSource.
Trait Implementations
sourceimpl Clone for CreateResourceDataSync
impl Clone for CreateResourceDataSync
sourcefn clone(&self) -> CreateResourceDataSync
fn clone(&self) -> CreateResourceDataSync
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CreateResourceDataSync
impl Send for CreateResourceDataSync
impl Sync for CreateResourceDataSync
impl Unpin for CreateResourceDataSync
impl !UnwindSafe for CreateResourceDataSync
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more