createInputSecurityGroup method

Future<CreateInputSecurityGroupResponse> createInputSecurityGroup({
  1. Map<String, String>? tags,
  2. List<InputWhitelistRuleCidr>? whitelistRules,
})

Creates a Input Security Group

May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw BadGatewayException. May throw GatewayTimeoutException. May throw TooManyRequestsException.

Parameter tags : A collection of key-value pairs.

Parameter whitelistRules : List of IPv4 CIDR addresses to whitelist

Implementation

Future<CreateInputSecurityGroupResponse> createInputSecurityGroup({
  Map<String, String>? tags,
  List<InputWhitelistRuleCidr>? whitelistRules,
}) async {
  final $payload = <String, dynamic>{
    if (tags != null) 'tags': tags,
    if (whitelistRules != null) 'whitelistRules': whitelistRules,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/prod/inputSecurityGroups',
    exceptionFnMap: _exceptionFns,
  );
  return CreateInputSecurityGroupResponse.fromJson(response);
}