Struct aws_sdk_iotfleetwise::types::CampaignSummary
source · #[non_exhaustive]pub struct CampaignSummary {
pub arn: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub signal_catalog_arn: Option<String>,
pub target_arn: Option<String>,
pub status: Option<CampaignStatus>,
pub creation_time: DateTime,
pub last_modification_time: DateTime,
}
Expand description
Information about a campaign.
You can use the API operation to return this information about multiple created campaigns.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.arn: Option<String>
The Amazon Resource Name (ARN) of a campaign.
name: Option<String>
The name of a campaign.
description: Option<String>
The description of the campaign.
signal_catalog_arn: Option<String>
The ARN of the signal catalog associated with the campaign.
target_arn: Option<String>
The ARN of a vehicle or fleet to which the campaign is deployed.
status: Option<CampaignStatus>
The state of a campaign. The status can be one of the following:
-
CREATING
- Amazon Web Services IoT FleetWise is processing your request to create the campaign. -
WAITING_FOR_APPROVAL
- After a campaign is created, it enters theWAITING_FOR_APPROVAL
state. To allow Amazon Web Services IoT FleetWise to deploy the campaign to the target vehicle or fleet, use the API operation to approve the campaign. -
RUNNING
- The campaign is active. -
SUSPENDED
- The campaign is suspended. To resume the campaign, use the API operation.
creation_time: DateTime
The time the campaign was created.
last_modification_time: DateTime
The last time the campaign was modified.
Implementations§
source§impl CampaignSummary
impl CampaignSummary
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the campaign.
sourcepub fn signal_catalog_arn(&self) -> Option<&str>
pub fn signal_catalog_arn(&self) -> Option<&str>
The ARN of the signal catalog associated with the campaign.
sourcepub fn target_arn(&self) -> Option<&str>
pub fn target_arn(&self) -> Option<&str>
The ARN of a vehicle or fleet to which the campaign is deployed.
sourcepub fn status(&self) -> Option<&CampaignStatus>
pub fn status(&self) -> Option<&CampaignStatus>
The state of a campaign. The status can be one of the following:
-
CREATING
- Amazon Web Services IoT FleetWise is processing your request to create the campaign. -
WAITING_FOR_APPROVAL
- After a campaign is created, it enters theWAITING_FOR_APPROVAL
state. To allow Amazon Web Services IoT FleetWise to deploy the campaign to the target vehicle or fleet, use the API operation to approve the campaign. -
RUNNING
- The campaign is active. -
SUSPENDED
- The campaign is suspended. To resume the campaign, use the API operation.
sourcepub fn creation_time(&self) -> &DateTime
pub fn creation_time(&self) -> &DateTime
The time the campaign was created.
sourcepub fn last_modification_time(&self) -> &DateTime
pub fn last_modification_time(&self) -> &DateTime
The last time the campaign was modified.
source§impl CampaignSummary
impl CampaignSummary
sourcepub fn builder() -> CampaignSummaryBuilder
pub fn builder() -> CampaignSummaryBuilder
Creates a new builder-style object to manufacture CampaignSummary
.
Trait Implementations§
source§impl Clone for CampaignSummary
impl Clone for CampaignSummary
source§fn clone(&self) -> CampaignSummary
fn clone(&self) -> CampaignSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CampaignSummary
impl Debug for CampaignSummary
source§impl PartialEq for CampaignSummary
impl PartialEq for CampaignSummary
source§fn eq(&self, other: &CampaignSummary) -> bool
fn eq(&self, other: &CampaignSummary) -> bool
self
and other
values to be equal, and is used
by ==
.