Skip to content

describe_account_settings

describe_account_settings(
    *, config_overrides: Optional[TimestreamQueryClientConfig] = None
) -> DescribeAccountSettingsResponse

Describes the settings for your account that include the query pricing model and the configured maximum TCUs the service can use for your query workload.

You're charged only for the duration of compute units used for your workloads.

Raises:

Source code in docs_src/capo_timestream_query/_services/timestream_query.py
def describe_account_settings(
    self, *, config_overrides: Optional[TimestreamQueryClientConfig] = None
) -> "capo_timestream_query.types.describe_account_settings_response.DescribeAccountSettingsResponse":
    """<p>Describes the settings for your account that include the query pricing model and the configured maximum TCUs the service can use for your query workload.</p> <p>You're charged only for the duration of compute units used for your workloads.</p>

    Raises:
        capo_timestream_query.errors.access_denied_exception.AccessDeniedException: <p>You do not have the necessary permissions to access the account settings.</p>
        capo_timestream_query.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred while processing the request.</p>
        capo_timestream_query.errors.invalid_endpoint_exception.InvalidEndpointException: <p>The requested endpoint is invalid.</p>
        capo_timestream_query.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to excessive requests.</p>
        capo_timestream_query.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_timestream_query.types.describe_account_settings_request.DescribeAccountSettingsRequest]",
    ) -> OperationResponse[
        "capo_timestream_query.types.describe_account_settings_response.DescribeAccountSettingsResponse"
    ]:
        import capo_timestream_query._operations.timestream_20181101.describe_account_settings

        output, http_response = (
            capo_timestream_query._operations.timestream_20181101.describe_account_settings.describe_account_settings(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeAccountSettings")
    )
    input_: capo_timestream_query.types.describe_account_settings_request.DescribeAccountSettingsRequest = {}

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output