Update a campaign (AWS CLI) - AWS IoT FleetWise

Update a campaign (AWS CLI)

AWS IoT FleetWise is in preview release and is subject to change. We recommend that you use the service only with test data, and not in production environments.

While AWS IoT FleetWise is in preview, you must download the preview AWS SDK and AWS CLI to use the API operations for this service. These API operations aren't available in the public AWS SDK or AWS CLI. For more information, see Preview AWS CLI and AWS SDKs.

You can use the UpdateCampaign API operation to update an existing campaign. The following command uses AWS CLI.

  • Replace campaign-name with the name of the campaign that you're updating.

  • Replace action with one of the following.

    • APPROVE – Approves the campaign to allow AWS IoT SiteWise to deploy it to a vehicle or fleet.

    • SUSPEND – Suspends the campaign.

    • RESUME – Reactivates the SUSPEND campaign.

    • UPDATE – Updates the campaign by defining attributes and associating them with a signal.

aws iotfleetwise update-campaign \ --campaign-name campaign-name \ --action action