batchAssociateUserStack method
Future<BatchAssociateUserStackResult>
batchAssociateUserStack({
- required List<
UserStackAssociation> userStackAssociations,
Associates the specified users with the specified stacks. Users in a user pool cannot be assigned to stacks with fleets that are joined to an Active Directory domain.
May throw OperationNotPermittedException. May throw InvalidParameterCombinationException.
Parameter userStackAssociations
:
The list of UserStackAssociation objects.
Implementation
Future<BatchAssociateUserStackResult> batchAssociateUserStack({
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.BatchAssociateUserStack'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'UserStackAssociations': userStackAssociations,
},
);
return BatchAssociateUserStackResult.fromJson(jsonResponse.body);
}