listAssociatedStacks method
Retrieves the name of the stack with which the specified fleet is associated.
Parameter fleetName
:
The name of the fleet.
Parameter nextToken
:
The pagination token to use to retrieve the next page of results for this
operation. If this value is null, it retrieves the first page.
Implementation
Future<ListAssociatedStacksResult> listAssociatedStacks({
required String fleetName,
String? nextToken,
}) async {
ArgumentError.checkNotNull(fleetName, 'fleetName');
_s.validateStringLength(
'fleetName',
fleetName,
1,
1152921504606846976,
isRequired: true,
);
_s.validateStringLength(
'nextToken',
nextToken,
1,
1152921504606846976,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'PhotonAdminProxyService.ListAssociatedStacks'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'FleetName': fleetName,
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListAssociatedStacksResult.fromJson(jsonResponse.body);
}