updateInputSecurityGroup method

Future<UpdateInputSecurityGroupResponse> updateInputSecurityGroup({
  1. required String inputSecurityGroupId,
  2. Map<String, String>? tags,
  3. List<InputWhitelistRuleCidr>? whitelistRules,
})

Update an Input Security Group's Whilelists.

May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw BadGatewayException. May throw NotFoundException. May throw GatewayTimeoutException. May throw ConflictException.

Parameter inputSecurityGroupId : The id of the Input Security Group to update.

Parameter tags : A collection of key-value pairs.

Parameter whitelistRules : List of IPv4 CIDR addresses to whitelist

Implementation

Future<UpdateInputSecurityGroupResponse> updateInputSecurityGroup({
  required String inputSecurityGroupId,
  Map<String, String>? tags,
  List<InputWhitelistRuleCidr>? whitelistRules,
}) async {
  ArgumentError.checkNotNull(inputSecurityGroupId, 'inputSecurityGroupId');
  final $payload = <String, dynamic>{
    if (tags != null) 'tags': tags,
    if (whitelistRules != null) 'whitelistRules': whitelistRules,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/prod/inputSecurityGroups/${Uri.encodeComponent(inputSecurityGroupId)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateInputSecurityGroupResponse.fromJson(response);
}