modify_event_subscription
async
¶
modify_event_subscription(
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = 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/async_redshift.py
9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 | |