revokeIpRules method
Removes one or more rules from the specified IP access control group.
May throw InvalidParameterValuesException. May throw ResourceNotFoundException. May throw InvalidResourceStateException. May throw AccessDeniedException.
Parameter groupId
:
The identifier of the group.
Parameter userRules
:
The rules to remove from the group.
Implementation
Future<void> revokeIpRules({
required String groupId,
required List<String> userRules,
}) async {
ArgumentError.checkNotNull(groupId, 'groupId');
ArgumentError.checkNotNull(userRules, 'userRules');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkspacesService.RevokeIpRules'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'GroupId': groupId,
'UserRules': userRules,
},
);
}