Struct aws_sdk_ssm::operation::create_resource_data_sync::builders::CreateResourceDataSyncFluentBuilder
source · pub struct CreateResourceDataSyncFluentBuilder { /* 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§
source§impl CreateResourceDataSyncFluentBuilder
impl CreateResourceDataSyncFluentBuilder
sourcepub fn as_input(&self) -> &CreateResourceDataSyncInputBuilder
pub fn as_input(&self) -> &CreateResourceDataSyncInputBuilder
Access the CreateResourceDataSync as a reference.
sourcepub async fn send(
self
) -> Result<CreateResourceDataSyncOutput, SdkError<CreateResourceDataSyncError, HttpResponse>>
pub async fn send( self ) -> Result<CreateResourceDataSyncOutput, SdkError<CreateResourceDataSyncError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<CreateResourceDataSyncOutput, CreateResourceDataSyncError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateResourceDataSyncOutput, CreateResourceDataSyncError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_sync_name(&self) -> &Option<String>
pub fn get_sync_name(&self) -> &Option<String>
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 get_s3_destination(&self) -> &Option<ResourceDataSyncS3Destination>
pub fn get_s3_destination(&self) -> &Option<ResourceDataSyncS3Destination>
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 get_sync_type(&self) -> &Option<String>
pub fn get_sync_type(&self) -> &Option<String>
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.
sourcepub fn get_sync_source(&self) -> &Option<ResourceDataSyncSource>
pub fn get_sync_source(&self) -> &Option<ResourceDataSyncSource>
Specify information about the data sources to synchronize. This parameter is required if the SyncType
value is SyncFromSource.
Trait Implementations§
source§impl Clone for CreateResourceDataSyncFluentBuilder
impl Clone for CreateResourceDataSyncFluentBuilder
source§fn clone(&self) -> CreateResourceDataSyncFluentBuilder
fn clone(&self) -> CreateResourceDataSyncFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more