update_subscriber
¶
update_subscriber(
subscriber_arn: SubscriberArn,
*,
config_overrides: Optional[EventBridgeV2ClientConfig] = None,
description: Optional[Description] = None,
state: Optional[SubscriberState] = None,
resume_position: Optional[ResumePosition] = None,
invoke_configuration: Optional[UpdateInvokeConfiguration] = None,
filter_configuration: Optional[FilterConfiguration] = None,
batch_configuration: Optional[BatchConfiguration] = None,
transformer: Optional[Transformer] = None,
retry_policy: Optional[RetryPolicy] = None,
on_failure_configuration: Optional[OnFailureConfiguration] = None,
log_configuration: Optional[LogConfiguration] = None,
) -> UpdateSubscriberResponse
Updates a subscriber. Fields omitted from the request are left unchanged. Changing an Amazon MSK subscriber's connectivity can re-provision it; when it does, the subscriber resumes delivering once its ConnectivityState returns to ACTIVE (see the MskSubscriberActive waiter).
Parameters:
-
subscriber_arn(SubscriberArn) –The Amazon Resource Name (ARN) that uniquely identifies a subscriber.
-
description(Optional[Description], default:None) –Free-text description. Used by every resource type that has one: event buses, subscribers, and event sources.
-
state(Optional[SubscriberState], default:None) –Customer-controlled run state of a subscriber, set on create or update. Distinct from the bus lifecycle vocabulary, where ACTIVE means "provisioned and healthy". Delivery requires State RUNNING on a subscriber that is not revoked.
-
resume_position(Optional[ResumePosition], default:None) –Position from which delivery resumes when a subscriber is unpaused. Honored only on an UpdateSubscriber call that transitions State from STOPPED to RUNNING (unpause); ignored on any other call and not accepted on Create. Defaults to LAST_PROCESSED when omitted.
-
invoke_configuration(Optional[UpdateInvokeConfiguration], default:None) –Update-able configuration for how the subscriber invokes its target.
-
filter_configuration(Optional[FilterConfiguration], default:None) –Configuration for filtering events delivered to a subscriber. On CreateSubscriber, Filters is required and must contain at least one Filter with a non-empty Pattern. On UpdateSubscriber, an empty
FilterConfiguration:{}clears the existing filter. Any non-empty shape (including{Language:X}without Filters) must contain a valid Filters list — same contract as CreateSubscriber. A non-empty Filters list overwrites; an omitted FilterConfiguration preserves existing state. All Filters are implicitly ANDed — an event must match every Filter to be delivered. -
batch_configuration(Optional[BatchConfiguration], default:None) –Batching configuration for a subscriber.
-
transformer(Optional[Transformer], default:None) –Transformer configuration for a subscriber.
-
retry_policy(Optional[RetryPolicy], default:None) –Retry policy for a subscriber.
-
on_failure_configuration(Optional[OnFailureConfiguration], default:None) –On-failure configuration: where a failed delivery is sent. Shared by the subscriber and the EventSource.
-
log_configuration(Optional[LogConfiguration], default:None) –Log configuration for a subscriber.
Raises:
-
AccessDeniedException–The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
-
InternalException–The request failed because of an internal service error. Retry the request.
-
InvalidInputException–A request parameter is missing or not valid.
-
ThrottlingException–The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
-
ConcurrentModificationException–Another change to the resource is already in progress. Retry the request.
-
InvalidStateException–The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
-
LimitExceededException–The request would exceed a service quota for the account.
-
ResourceNotFoundException–The resource does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_eventbridgev2/_services/event_bridge_v2.py
2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 | |