update_archive
async
¶
update_archive(
archive_name: ArchiveName,
*,
config_overrides: Optional[AsyncCloudWatchEventsClientConfig] = None,
description: Optional[ArchiveDescription] = None,
event_pattern: Optional[EventPattern] = None,
retention_days: Optional[RetentionDays] = 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.
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_cloudwatch_events/_services/async_cloud_watch_events.py
3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 | |