revokeDBSecurityGroupIngress method
May throw DBSecurityGroupNotFoundFault. May throw AuthorizationNotFoundFault. May throw InvalidDBSecurityGroupStateFault.
Implementation
Future<RevokeDBSecurityGroupIngressResult> revokeDBSecurityGroupIngress({
required String dBSecurityGroupName,
String? cidrip,
String? eC2SecurityGroupId,
String? eC2SecurityGroupName,
String? eC2SecurityGroupOwnerId,
}) async {
ArgumentError.checkNotNull(dBSecurityGroupName, 'dBSecurityGroupName');
final $request = <String, dynamic>{};
$request['DBSecurityGroupName'] = dBSecurityGroupName;
cidrip?.also((arg) => $request['CIDRIP'] = arg);
eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg);
eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg);
eC2SecurityGroupOwnerId
?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg);
final $result = await _protocol.send(
$request,
action: 'RevokeDBSecurityGroupIngress',
version: '2013-02-12',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['RevokeDBSecurityGroupIngressMessage'],
shapes: shapes,
resultWrapper: 'RevokeDBSecurityGroupIngressResult',
);
return RevokeDBSecurityGroupIngressResult.fromXml($result);
}