associateIpGroups method
Associates the specified IP access control group with the specified directory.
May throw AccessDeniedException.
May throw InvalidParameterValuesException.
May throw InvalidResourceStateException.
May throw OperationNotSupportedException.
May throw ResourceLimitExceededException.
May throw ResourceNotFoundException.
Parameter directoryId :
The identifier of the directory.
Parameter groupIds :
The identifiers of one or more IP access control groups.
Implementation
Future<void> associateIpGroups({
required String directoryId,
required List<String> groupIds,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkspacesService.AssociateIpGroups'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DirectoryId': directoryId,
'GroupIds': groupIds,
},
);
}