Get AWS IoT FleetWise campaign information
You can use the GetCampaign API operation to retrieve vehicle information. The following example uses the AWS CLI.
To retrieve the metadata of a campaign, run the following command.
Replace campaign-name
with the name of the campaign to you
want to retrieve.
aws iotfleetwise get-campaign --name
campaign-name
Note
This operation is eventually consistent
If you enabled encryption using a customer managed AWS KMS key, include the following policy statement so that your role can invoke the GetCampaign
API operation.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "kms:Decrypt" ], "Resource": [ "arn:aws:kms:
KMS_KEY_REGION
:KMS_KEY_ACCOUNT_ID
:key/KMS_KEY_ID
" ] }, ] }