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
9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 | |