update_timeline_event
async
¶
update_timeline_event(
incident_record_arn: Arn,
event_id: UUID,
*,
config_overrides: Optional[AsyncSSMIncidentsClientConfig] = None,
client_token: Optional[ClientToken] = None,
event_time: Optional[datetime] = None,
event_type: Optional[TimelineEventType] = None,
event_data: Optional[EventData] = None,
event_references: Optional[EventReferenceList] = None,
) -> UpdateTimelineEventOutput
Updates a timeline event. You can update events of type Custom Event.
Parameters:
-
client_token(Optional[ClientToken], default:None) –A token that ensures that a client calls the operation only once with the specified details.
-
incident_record_arn(Arn) –The Amazon Resource Name (ARN) of the incident that includes the timeline event.
-
event_id(UUID) –The ID of the event to update. You can use
ListTimelineEventsto find an event's ID. -
event_time(Optional[datetime], default:None) –The timestamp for when the event occurred.
-
event_type(Optional[TimelineEventType], default:None) –The type of event. You can update events of type
Custom EventandNote. -
event_data(Optional[EventData], default:None) –A short description of the event.
-
event_references(Optional[EventReferenceList], default:None) –Updates all existing references in a
TimelineEvent. A reference is an Amazon Web Services resource involved or associated with the incident. To specify a reference, enter its Amazon Resource Name (ARN). You can also specify a related item associated with that resource. For example, to specify an Amazon DynamoDB (DynamoDB) table as a resource, use its ARN. You can also specify an Amazon CloudWatch metric associated with the DynamoDB table as a related item.This update action overrides all existing references. If you want to keep existing references, you must specify them in the call. If you don't, this action removes any existing references and enters only new references.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this operation.
-
ConflictException–Updating or deleting a resource causes an inconsistent state.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–Request references a resource which doesn't exist.
-
ThrottlingException–The request was denied due to request 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_ssm_incidents/_services/async_ssm_incidents.py
2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 | |