Returns information about all Amazon Virtual Private Cloud (VPC) endpoint configurations in the AWS account.
Parameters:
-
max_results
(Optional[Integer], default:
None
)
–
An integer that specifies the maximum number of items you want to return in the API response.
-
next_token
(Optional[PaginationToken], default:
None
)
–
An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
Raises:
Source code in docs_src/capo_device_farm/_services/async_device_farm.py
| async def list_vpce_configurations(
self,
*,
config_overrides: Optional[AsyncDeviceFarmClientConfig] = None,
max_results: Optional["capo_device_farm.types.integer.Integer"] = None,
next_token: Optional[
"capo_device_farm.types.pagination_token.PaginationToken"
] = None,
) -> "capo_device_farm.types.list_vpce_configurations_result.ListVPCEConfigurationsResult":
"""<p>Returns information about all Amazon Virtual Private Cloud (VPC) endpoint configurations in the AWS account.</p>
Args:
max_results: <p>An integer that specifies the maximum number of items you want to return in the API response.</p>
next_token: <p>An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.</p>
Raises:
capo_device_farm.errors.argument_exception.ArgumentException: <p>An invalid argument was specified.</p>
capo_device_farm.errors.service_account_exception.ServiceAccountException: <p>There was a problem with the service account.</p>
capo_device_farm.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_device_farm.types.list_vpce_configurations_request.ListVPCEConfigurationsRequest]",
) -> AsyncOperationResponse[
"capo_device_farm.types.list_vpce_configurations_result.ListVPCEConfigurationsResult"
]:
import capo_device_farm._operations.device_farm_20150623.list_vpce_configurations
(
output,
http_response,
) = await capo_device_farm._operations.device_farm_20150623.list_vpce_configurations.async_list_vpce_configurations(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListVPCEConfigurations")
)
input_: capo_device_farm.types.list_vpce_configurations_request.ListVPCEConfigurationsRequest = {}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|