deleteNotificationConfiguration method
Deletes the specified notification.
May throw ResourceContentionFault.
Parameter autoScalingGroupName
:
The name of the Auto Scaling group.
Parameter topicARN
:
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service
(Amazon SNS) topic.
Implementation
Future<void> deleteNotificationConfiguration({
required String autoScalingGroupName,
required String topicARN,
}) async {
ArgumentError.checkNotNull(autoScalingGroupName, 'autoScalingGroupName');
_s.validateStringLength(
'autoScalingGroupName',
autoScalingGroupName,
1,
255,
isRequired: true,
);
ArgumentError.checkNotNull(topicARN, 'topicARN');
_s.validateStringLength(
'topicARN',
topicARN,
1,
255,
isRequired: true,
);
final $request = <String, dynamic>{};
$request['AutoScalingGroupName'] = autoScalingGroupName;
$request['TopicARN'] = topicARN;
await _protocol.send(
$request,
action: 'DeleteNotificationConfiguration',
version: '2011-01-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteNotificationConfigurationType'],
shapes: shapes,
);
}