listStorageConfigurations method
Gets summary information about all storage configurations in your account, in the AWS region where the API request is processed.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ServiceQuotaExceededException.
May throw ValidationException.
Parameter maxResults :
Maximum number of storage configurations to return. Default: your service
quota or 100, whichever is smaller.
Parameter nextToken :
The first storage configuration to retrieve. This is used for pagination;
see the nextToken response field.
Implementation
Future<ListStorageConfigurationsResponse> listStorageConfigurations({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $payload = <String, dynamic>{
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/ListStorageConfigurations',
exceptionFnMap: _exceptionFns,
);
return ListStorageConfigurationsResponse.fromJson(response);
}