The list of S3 buckets in your account.
Parameters:
Raises:
Source code in docs_src/capo_amplifybackend/_services/amplify_backend.py
| def list_s3_buckets(
self,
*,
config_overrides: Optional[AmplifyBackendClientConfig] = None,
next_token: Optional["capo_amplifybackend.types.__string.__string"] = None,
) -> "capo_amplifybackend.types.list_s3_buckets_response.ListS3BucketsResponse":
"""<p>The list of S3 buckets in your account.</p>
Args:
next_token: <p>Reserved for future use.</p>
Raises:
capo_amplifybackend.errors.bad_request_exception.BadRequestException: <p>An error returned if a request is not formed properly.</p>
capo_amplifybackend.errors.gateway_timeout_exception.GatewayTimeoutException: <p>An error returned if there's a temporary issue with the service.</p>
capo_amplifybackend.errors.not_found_exception.NotFoundException: <p>An error returned when a specific resource type is not found.</p>
capo_amplifybackend.errors.too_many_requests_exception.TooManyRequestsException: <p>An error that is returned when a limit of a specific type has been exceeded.</p>
capo_amplifybackend.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_amplifybackend.types.list_s3_buckets_request.ListS3BucketsRequest]",
) -> OperationResponse[
"capo_amplifybackend.types.list_s3_buckets_response.ListS3BucketsResponse"
]:
import capo_amplifybackend._operations.amplify_backend.list_s3_buckets
output, http_response = (
capo_amplifybackend._operations.amplify_backend.list_s3_buckets.list_s3_buckets(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListS3Buckets")
)
input_: capo_amplifybackend.types.list_s3_buckets_request.ListS3BucketsRequest = {}
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|