update_campaign
¶
update_campaign(
name: campaignName,
action: UpdateCampaignAction,
*,
config_overrides: Optional[IoTFleetWiseClientConfig] = None,
description: Optional[description] = None,
data_extra_dimensions: Optional[DataExtraDimensionNodePathList] = None,
) -> UpdateCampaignResponse
Updates a campaign.
Parameters:
-
name(campaignName) –The name of the campaign to update.
-
description(Optional[description], default:None) –The description of the campaign.
-
data_extra_dimensions(Optional[DataExtraDimensionNodePathList], default:None) –A list of vehicle attributes to associate with a signal.
Default: An empty array
-
action(UpdateCampaignAction) –Specifies how to update a campaign. The action can be one of the following:
-
APPROVE- To approve delivering a data collection scheme to vehicles. -
SUSPEND- To suspend collecting signal data. The campaign is deleted from vehicles and all vehicles in the suspended campaign will stop sending data. -
RESUME- To reactivate theSUSPENDcampaign. The campaign is redeployed to all vehicles and the vehicles will resume sending data. -
UPDATE- To update a campaign.
-
Raises:
-
InternalServerException–The request couldn't be completed because the server temporarily failed.
-
AccessDeniedException–You don't have sufficient permission to perform this action.
-
ConflictException–The request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.
-
ResourceNotFoundException–The resource wasn't found.
-
ThrottlingException–The request couldn't be completed due to throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iotfleetwise/_services/io_t_fleet_wise.py
1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 | |