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
9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 | |