authorizeDBSecurityGroupIngress method
May throw DBSecurityGroupNotFoundFault. May throw InvalidDBSecurityGroupStateFault. May throw AuthorizationAlreadyExistsFault. May throw AuthorizationQuotaExceededFault.
Implementation
Future<AuthorizeDBSecurityGroupIngressResult>
authorizeDBSecurityGroupIngress({
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: 'AuthorizeDBSecurityGroupIngress',
version: '2013-01-10',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['AuthorizeDBSecurityGroupIngressMessage'],
shapes: shapes,
resultWrapper: 'AuthorizeDBSecurityGroupIngressResult',
);
return AuthorizeDBSecurityGroupIngressResult.fromXml($result);
}