listProvisionedProductPlans method
Future<ListProvisionedProductPlansOutput>
listProvisionedProductPlans({
- String? acceptLanguage,
- AccessLevelFilter? accessLevelFilter,
- int? pageSize,
- String? pageToken,
- String? provisionProductId,
Lists the plans for the specified provisioned product or all plans to which the user has access.
May throw ResourceNotFoundException. May throw InvalidParametersException.
Parameter acceptLanguage
:
The language code.
-
en
- English (default) -
jp
- Japanese -
zh
- Chinese
Parameter accessLevelFilter
:
The access level to use to obtain results. The default is
User
.
Parameter pageSize
:
The maximum number of items to return with this call.
Parameter pageToken
:
The page token for the next set of results. To retrieve the first set of
results, use null.
Parameter provisionProductId
:
The product identifier.
Implementation
Future<ListProvisionedProductPlansOutput> listProvisionedProductPlans({
String? acceptLanguage,
AccessLevelFilter? accessLevelFilter,
int? pageSize,
String? pageToken,
String? provisionProductId,
}) async {
_s.validateStringLength(
'acceptLanguage',
acceptLanguage,
0,
100,
);
_s.validateNumRange(
'pageSize',
pageSize,
0,
20,
);
_s.validateStringLength(
'pageToken',
pageToken,
0,
2024,
);
_s.validateStringLength(
'provisionProductId',
provisionProductId,
1,
100,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWS242ServiceCatalogService.ListProvisionedProductPlans'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (acceptLanguage != null) 'AcceptLanguage': acceptLanguage,
if (accessLevelFilter != null) 'AccessLevelFilter': accessLevelFilter,
if (pageSize != null) 'PageSize': pageSize,
if (pageToken != null) 'PageToken': pageToken,
if (provisionProductId != null)
'ProvisionProductId': provisionProductId,
},
);
return ListProvisionedProductPlansOutput.fromJson(jsonResponse.body);
}