authorizeDBSecurityGroupIngress method

Future<AuthorizeDBSecurityGroupIngressResult> authorizeDBSecurityGroupIngress({
  1. required String dBSecurityGroupName,
  2. String? cidrip,
  3. String? eC2SecurityGroupId,
  4. String? eC2SecurityGroupName,
  5. String? eC2SecurityGroupOwnerId,
})

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-02-12',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['AuthorizeDBSecurityGroupIngressMessage'],
    shapes: shapes,
    resultWrapper: 'AuthorizeDBSecurityGroupIngressResult',
  );
  return AuthorizeDBSecurityGroupIngressResult.fromXml($result);
}