listS3Buckets method

Future<ListS3BucketsResponse> listS3Buckets({
  1. String? nextToken,
})

The list of S3 buckets in your account.

May throw BadRequestException. May throw GatewayTimeoutException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter nextToken : Reserved for future use.

Implementation

Future<ListS3BucketsResponse> listS3Buckets({
  String? nextToken,
}) async {
  final $payload = <String, dynamic>{
    if (nextToken != null) 'nextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/s3Buckets',
    exceptionFnMap: _exceptionFns,
  );
  return ListS3BucketsResponse.fromJson(response);
}