CmdID / aws / aws redshift
aws redshift modify-event-subscription
Modifies an existing Amazon Redshift event notification subscription. AWS CLI reference
1 example 7 options Its page in the AWS CLI reference
Examples
To modify event subscription
The following modify-event-subscription example disables the specified event notification subscription.
aws redshift modify-event-subscription --subscription-name mysubscription --no-enabledIdentify--subscription-nameThe name of the modified Amazon Redshift event notification subscription.--no-enabledA Boolean value indicating if the subscription is enabled.Its output
{
"EventSubscription": {
"CustomerAwsId": "123456789012",
"CustSubscriptionId": "mysubscription",
"SnsTopicArn": "arn:aws:sns:us-west-2:123456789012:MySNStopic",
"Status": "active",
"SubscriptionCreationTime": "2019-12-09T21:50:21.332Z",
"SourceIdsList": [],
"EventCategoriesList": [
"management"
],
"Severity": "ERROR",
"Enabled": false,
"Tags": []
}
}For more information, see Subscribing to Amazon Redshift Event Notifications in the Amazon Redshift Cluster Management Guide.
Options
--enabledA Boolean value indicating if the subscription is enabled.--event-categoriesSpecifies the Amazon Redshift event categories to be published by the event notification subscription.--severitySpecifies the Amazon Redshift event severity to be published by the event notification subscription.--sns-topic-arnThe Amazon Resource Name (ARN) of the SNS topic to be used by the event notification subscription.--source-idsA list of one or more identifiers of Amazon Redshift source objects.--source-typeThe type of source that will be generating the events.--subscription-nameThe name of the modified Amazon Redshift event notification subscription.