Skip to content

get_snowball_usage async

get_snowball_usage(
    *, config_overrides: Optional[AsyncSnowballClientConfig] = None
) -> GetSnowballUsageResult

Returns information about the Snow Family service limit for your account, and also the number of Snow devices your account has in use.

The default service limit for the number of Snow devices that you can have at one time is 1. If you want to increase your service limit, contact Amazon Web Services Support.

    Raises:
        capo_snowball.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        To see your Snowball service limit and the number of Snowballs you have in use
        Returns information about the Snowball service limit for your account, and also the number of Snowballs your account has in use.

The default service limit for the number of Snowballs that you can have at one time is 1. If you want to increase your service limit, contact AWS Support.

        >>> await client.get_snowball_usage()
Source code in docs_src/capo_snowball/_services/async_snowball.py
async def get_snowball_usage(
    self, *, config_overrides: Optional[AsyncSnowballClientConfig] = None
) -> "capo_snowball.types.get_snowball_usage_result.GetSnowballUsageResult":
    """<p>Returns information about the Snow Family service limit for your account, and also the number of Snow devices your account has in use.</p> <p>The default service limit for the number of Snow devices that you can have at one time is 1. If you want to increase your service limit, contact Amazon Web Services Support.</p>

            Raises:
                capo_snowball.errors.UnknownServiceError: The service returned an error code this client does not model.

            Examples:
                To see your Snowball service limit and the number of Snowballs you have in use
                Returns information about the Snowball service limit for your account, and also the number of Snowballs your account has in use.

    The default service limit for the number of Snowballs that you can have at one time is 1. If you want to increase your service limit, contact AWS Support.

                >>> await client.get_snowball_usage()
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_snowball.types.get_snowball_usage_request.GetSnowballUsageRequest]",
    ) -> AsyncOperationResponse[
        "capo_snowball.types.get_snowball_usage_result.GetSnowballUsageResult"
    ]:
        import capo_snowball._operations.awsie_snowball_job_management_service.get_snowball_usage

        (
            output,
            http_response,
        ) = await capo_snowball._operations.awsie_snowball_job_management_service.get_snowball_usage.async_get_snowball_usage(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetSnowballUsage")
    )
    input_: capo_snowball.types.get_snowball_usage_request.GetSnowballUsageRequest = {}

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output