DeleteEventSubscription
Deletes an RDS event notification subscription.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- SubscriptionName
-
The name of the RDS event notification subscription you want to delete.
Type: String
Required: Yes
Response Elements
The following element is returned by the service.
- EventSubscription
-
Contains the results of a successful invocation of the
DescribeEventSubscriptions
action.Type: EventSubscription object
Errors
For information about the errors that are common to all actions, see Common Errors.
- InvalidEventSubscriptionState
-
This error can occur if someone else is modifying a subscription. You should retry the action.
HTTP Status Code: 400
- SubscriptionNotFound
-
The subscription name does not exist.
HTTP Status Code: 404
Examples
Example
This example illustrates one usage of DeleteEventSubscription.
Sample Request
https://rds.us-east-1.amazonaws.com/
?Action=DeleteEventSubscription
&SignatureMethod=HmacSHA256
&SignatureVersion=4
&SubscriptionName=EventSubscription04
&Version=2014-10-31
&X-Amz-Algorithm=AWS4-HMAC-SHA256
&X-Amz-Credential=AKIADQKE4SARGYLE/20140423/us-east-1/rds/aws4_request
&X-Amz-Date=20140423T203337Z
&X-Amz-SignedHeaders=content-type;host;user-agent;x-amz-content-sha256;x-amz-date
&X-Amz-Signature=05aa834e364a9e1a279d44cc955694518fc96fff638c74faa2be45783102e785
Sample Response
<DeleteEventSubscriptionResponse xmlns="http://rds.amazonaws.com/doc/2014-10-31/">
<DeleteEventSubscriptionResult>
<EventSubscription>
<Enabled>true</Enabled>
<CustomerAwsId>803#########</CustomerAwsId>
<SourceType>db-instance</SourceType>
<Status>deleting</Status>
<SourceIdsList>
<SourceId>mysqldb</SourceId>
</SourceIdsList>
<SubscriptionCreationTime>2014-04-22 23:03:19.776</SubscriptionCreationTime>
<CustSubscriptionId>EventSubscription04</CustSubscriptionId>
<SnsTopicArn>arn:aws:sns:us-east-1:803#########:myawsuser-RDS</SnsTopicArn>
</EventSubscription>
</DeleteEventSubscriptionResult>
<ResponseMetadata>
<RequestId>7b4cf02a-ba25-11d3-a691-857dc0addcc9</RequestId>
</ResponseMetadata>
</DeleteEventSubscriptionResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: