modify_event_subscription
¶
modify_event_subscription(
*,
config_overrides: Optional[RedshiftClientConfig] = None,
subscription_name: Optional[String] = None,
sns_topic_arn: Optional[String] = None,
source_type: Optional[String] = None,
source_ids: Optional[SourceIdsList] = None,
event_categories: Optional[EventCategoriesList] = None,
severity: Optional[String] = None,
enabled: Optional[BooleanOptional] = None,
) -> ModifyEventSubscriptionResult
Modifies an existing Amazon Redshift event notification subscription.
Parameters:
-
subscription_name(Optional[String], default:None) –The name of the modified Amazon Redshift event notification subscription.
-
sns_topic_arn(Optional[String], default:None) –The Amazon Resource Name (ARN) of the SNS topic to be used by the event notification subscription.
-
source_type(Optional[String], default:None) –The type of source that will be generating the events. For example, if you want to be notified of events generated by a cluster, you would set this parameter to cluster. If this value is not specified, events are returned for all Amazon Redshift objects in your Amazon Web Services account. You must specify a source type in order to specify source IDs.
Valid values: cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, and scheduled-action.
-
source_ids(Optional[SourceIdsList], default:None) –A list of one or more identifiers of Amazon Redshift source objects. All of the objects must be of the same type as was specified in the source type parameter. The event subscription will return only events generated by the specified objects. If not specified, then events are returned for all objects within the source type specified.
Example: my-cluster-1, my-cluster-2
Example: my-snapshot-20131010
-
event_categories(Optional[EventCategoriesList], default:None) –Specifies the Amazon Redshift event categories to be published by the event notification subscription.
Values: configuration, management, monitoring, security, pending
-
severity(Optional[String], default:None) –Specifies the Amazon Redshift event severity to be published by the event notification subscription.
Values: ERROR, INFO
-
enabled(Optional[BooleanOptional], default:None) –A Boolean value indicating if the subscription is enabled.
trueindicates the subscription is enabled
Raises:
-
InvalidSubscriptionStateFault–The subscription request is invalid because it is a duplicate request. This subscription request is already in progress.
-
SNSInvalidTopicFault–Amazon SNS has responded that there is a problem with the specified Amazon SNS topic.
-
SNSNoAuthorizationFault–You do not have permission to publish to the specified Amazon SNS topic.
-
SNSTopicArnNotFoundFault–An Amazon SNS topic with the specified Amazon Resource Name (ARN) does not exist.
-
SourceNotFoundFault–The specified Amazon Redshift event source could not be found.
-
SubscriptionCategoryNotFoundFault–The value specified for the event category was not one of the allowed values, or it specified a category that does not apply to the specified source type. The allowed values are Configuration, Management, Monitoring, and Security.
-
SubscriptionEventIdNotFoundFault–An Amazon Redshift event with the specified event ID does not exist.
-
SubscriptionNotFoundFault–An Amazon Redshift event notification subscription with the specified name does not exist.
-
SubscriptionSeverityNotFoundFault–The value specified for the event severity was not one of the allowed values, or it specified a severity that does not apply to the specified source type. The allowed values are ERROR and INFO.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift/_services/redshift.py
9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 | |