batchDisassociateUserStack method
Future<BatchDisassociateUserStackResult>
batchDisassociateUserStack({
- required List<
UserStackAssociation> userStackAssociations,
Disassociates the specified users from the specified stacks.
May throw OperationNotPermittedException. May throw InvalidParameterCombinationException.
Parameter userStackAssociations
:
The list of UserStackAssociation objects.
Implementation
Future<BatchDisassociateUserStackResult> batchDisassociateUserStack({
required List<UserStackAssociation> userStackAssociations,
}) async {
ArgumentError.checkNotNull(userStackAssociations, 'userStackAssociations');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'PhotonAdminProxyService.BatchDisassociateUserStack'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'UserStackAssociations': userStackAssociations,
},
);
return BatchDisassociateUserStackResult.fromJson(jsonResponse.body);
}