update_archive
async
¶
update_archive(
archive_name: ArchiveName,
*,
config_overrides: Optional[AsyncEventBridgeClientConfig] = 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/async_event_bridge.py
3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 | |