update_archive
¶
update_archive(
archive_name: ArchiveName,
*,
config_overrides: Optional[EventBridgeClientConfig] = None,
description: Optional[ArchiveDescription] = None,
event_pattern: Optional[EventPattern] = None,
retention_days: Optional[RetentionDays] = None,
kms_key_identifier: Optional[KmsKeyIdentifier] = None,
) -> UpdateArchiveResponse
Updates the specified archive.
Parameters:
-
archive_name(ArchiveName) –The name of the archive to update.
-
description(Optional[ArchiveDescription], default:None) –The description for the archive.
-
event_pattern(Optional[EventPattern], default:None) –The event pattern to use to filter events sent to the archive.
-
retention_days(Optional[RetentionDays], default:None) –The number of days to retain events in the archive.
-
kms_key_identifier(Optional[KmsKeyIdentifier], default:None) –The identifier of the KMS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt this archive. The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN.
If you do not specify a customer managed key identifier, EventBridge uses an Amazon Web Services owned key to encrypt the archive.
For more information, see Identify and view keys in the Key Management Service Developer Guide.
If you have specified that EventBridge use a customer managed key for encrypting the source event bus, we strongly recommend you also specify a customer managed key for any archives for the event bus as well.
For more information, see Encrypting archives in the Amazon EventBridge User Guide.
Raises:
-
ConcurrentModificationException–There is concurrent modification on a rule, target, archive, or replay.
-
InternalException–This exception occurs due to unexpected causes.
-
InvalidEventPatternException–The event pattern is not valid.
-
LimitExceededException–The request failed because it attempted to create resource beyond the allowed service quota.
-
ResourceNotFoundException–An entity that you specified does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_eventbridge/_services/event_bridge.py
3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 | |