deleteTopic method
Deletes a topic and all its subscriptions. Deleting a topic might prevent some messages previously sent to the topic from being delivered to subscribers. This action is idempotent, so deleting a topic that does not exist does not result in an error.
May throw InvalidParameterException. May throw InternalErrorException. May throw AuthorizationErrorException. May throw NotFoundException. May throw StaleTagException. May throw TagPolicyException. May throw ConcurrentAccessException.
Parameter topicArn
:
The ARN of the topic you want to delete.
Implementation
Future<void> deleteTopic({
required String topicArn,
}) async {
ArgumentError.checkNotNull(topicArn, 'topicArn');
final $request = <String, dynamic>{};
$request['TopicArn'] = topicArn;
await _protocol.send(
$request,
action: 'DeleteTopic',
version: '2010-03-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteTopicInput'],
shapes: shapes,
);
}