aws_sdk_iotfleetwise/client/
get_campaign.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 [`GetCampaign`](crate::operation::get_campaign::builders::GetCampaignFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::get_campaign::builders::GetCampaignFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_campaign::builders::GetCampaignFluentBuilder::set_name):<br>required: **true**<br><p>The name of the campaign to retrieve information about.</p><br>
7    /// - On success, responds with [`GetCampaignOutput`](crate::operation::get_campaign::GetCampaignOutput) with field(s):
8    ///   - [`name(Option<String>)`](crate::operation::get_campaign::GetCampaignOutput::name): <p>The name of the campaign.</p>
9    ///   - [`arn(Option<String>)`](crate::operation::get_campaign::GetCampaignOutput::arn): <p>The Amazon Resource Name (ARN) of the campaign.</p>
10    ///   - [`description(Option<String>)`](crate::operation::get_campaign::GetCampaignOutput::description): <p>The description of the campaign.</p>
11    ///   - [`signal_catalog_arn(Option<String>)`](crate::operation::get_campaign::GetCampaignOutput::signal_catalog_arn): <p>The ARN of a signal catalog.</p>
12    ///   - [`target_arn(Option<String>)`](crate::operation::get_campaign::GetCampaignOutput::target_arn): <p>The ARN of the vehicle or the fleet targeted by the campaign.</p>
13    ///   - [`status(Option<CampaignStatus>)`](crate::operation::get_campaign::GetCampaignOutput::status): <p>The state of the campaign. The status can be one of: <code>CREATING</code>, <code>WAITING_FOR_APPROVAL</code>, <code>RUNNING</code>, and <code>SUSPENDED</code>.</p>
14    ///   - [`start_time(Option<DateTime>)`](crate::operation::get_campaign::GetCampaignOutput::start_time): <p>The time, in milliseconds, to deliver a campaign after it was approved.</p>
15    ///   - [`expiry_time(Option<DateTime>)`](crate::operation::get_campaign::GetCampaignOutput::expiry_time): <p>The time the campaign expires, in seconds since epoch (January 1, 1970 at midnight UTC time). Vehicle data won't be collected after the campaign expires.</p>
16    ///   - [`post_trigger_collection_duration(Option<i64>)`](crate::operation::get_campaign::GetCampaignOutput::post_trigger_collection_duration): <p>How long (in seconds) to collect raw data after a triggering event initiates the collection.</p>
17    ///   - [`diagnostics_mode(Option<DiagnosticsMode>)`](crate::operation::get_campaign::GetCampaignOutput::diagnostics_mode): <p>Option for a vehicle to send diagnostic trouble codes to Amazon Web Services IoT FleetWise.</p>
18    ///   - [`spooling_mode(Option<SpoolingMode>)`](crate::operation::get_campaign::GetCampaignOutput::spooling_mode): <p>Whether to store collected data after a vehicle lost a connection with the cloud. After a connection is re-established, the data is automatically forwarded to Amazon Web Services IoT FleetWise.</p>
19    ///   - [`compression(Option<Compression>)`](crate::operation::get_campaign::GetCampaignOutput::compression): <p>Whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise. If <code>OFF</code> is specified, the signals aren't compressed. If it's not specified, <code>SNAPPY</code> is used.</p>
20    ///   - [`priority(Option<i32>)`](crate::operation::get_campaign::GetCampaignOutput::priority): <p>A number indicating the priority of one campaign over another campaign for a certain vehicle or fleet. A campaign with the lowest value is deployed to vehicles before any other campaigns.</p>
21    ///   - [`signals_to_collect(Option<Vec::<SignalInformation>>)`](crate::operation::get_campaign::GetCampaignOutput::signals_to_collect): <p>Information about a list of signals to collect data on.</p>
22    ///   - [`collection_scheme(Option<CollectionScheme>)`](crate::operation::get_campaign::GetCampaignOutput::collection_scheme): <p>Information about the data collection scheme associated with the campaign.</p>
23    ///   - [`data_extra_dimensions(Option<Vec::<String>>)`](crate::operation::get_campaign::GetCampaignOutput::data_extra_dimensions): <p>A list of vehicle attributes associated with the campaign.</p>
24    ///   - [`creation_time(Option<DateTime>)`](crate::operation::get_campaign::GetCampaignOutput::creation_time): <p>The time the campaign was created in seconds since epoch (January 1, 1970 at midnight UTC time).</p>
25    ///   - [`last_modification_time(Option<DateTime>)`](crate::operation::get_campaign::GetCampaignOutput::last_modification_time): <p>The last time the campaign was modified.</p>
26    ///   - [`data_destination_configs(Option<Vec::<DataDestinationConfig>>)`](crate::operation::get_campaign::GetCampaignOutput::data_destination_configs): <p>The destination where the campaign sends data. You can send data to an MQTT topic, or store it in Amazon S3 or Amazon Timestream.</p> <p>MQTT is the publish/subscribe messaging protocol used by Amazon Web Services IoT to communicate with your devices.</p> <p>Amazon S3 optimizes the cost of data storage and provides additional mechanisms to use vehicle data, such as data lakes, centralized data storage, data processing pipelines, and analytics.</p> <p>You can use Amazon Timestream to access and analyze time series data, and Timestream to query vehicle data so that you can identify trends and patterns.</p>
27    ///   - [`data_partitions(Option<Vec::<DataPartition>>)`](crate::operation::get_campaign::GetCampaignOutput::data_partitions): <p>The data partitions associated with the signals collected from the vehicle.</p>
28    ///   - [`signals_to_fetch(Option<Vec::<SignalFetchInformation>>)`](crate::operation::get_campaign::GetCampaignOutput::signals_to_fetch): <p>Information about a list of signals to fetch data from.</p>
29    /// - On failure, responds with [`SdkError<GetCampaignError>`](crate::operation::get_campaign::GetCampaignError)
30    pub fn get_campaign(&self) -> crate::operation::get_campaign::builders::GetCampaignFluentBuilder {
31        crate::operation::get_campaign::builders::GetCampaignFluentBuilder::new(self.handle.clone())
32    }
33}