describeWorkspaceBundles method
Retrieves a list that describes the available WorkSpace bundles.
You can filter the results using either bundle ID or owner, but not both.
May throw InvalidParameterValuesException.
Parameter bundleIds
:
The identifiers of the bundles. You cannot combine this parameter with any
other filter.
Parameter nextToken
:
The token for the next set of results. (You received this token from a
previous call.)
Parameter owner
:
The owner of the bundles. You cannot combine this parameter with any other
filter.
Specify AMAZON
to describe the bundles provided by AWS or
null to describe the bundles that belong to your account.
Implementation
Future<DescribeWorkspaceBundlesResult> describeWorkspaceBundles({
List<String>? bundleIds,
String? nextToken,
String? owner,
}) async {
_s.validateStringLength(
'nextToken',
nextToken,
1,
2048,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkspacesService.DescribeWorkspaceBundles'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (bundleIds != null) 'BundleIds': bundleIds,
if (nextToken != null) 'NextToken': nextToken,
if (owner != null) 'Owner': owner,
},
);
return DescribeWorkspaceBundlesResult.fromJson(jsonResponse.body);
}