prepare_query
async
¶
prepare_query(
query_string: QueryString,
*,
config_overrides: Optional[AsyncTimestreamQueryClientConfig] = None,
validate_only: Optional[NullableBoolean] = None,
) -> PrepareQueryResponse
A synchronous operation that allows you to submit a query with parameters to be stored by Timestream for later running. Timestream only supports using this operation with ValidateOnly set to true.
Parameters:
-
query_string(QueryString) –The Timestream query string that you want to use as a prepared statement. Parameter names can be specified in the query string
@character followed by an identifier. -
validate_only(Optional[NullableBoolean], default:None) –By setting this value to
true, Timestream will only validate that the query string is a valid Timestream query, and not store the prepared query for later use.
Raises:
-
AccessDeniedException–You do not have the necessary permissions to access the account settings.
-
InternalServerException–An internal server error occurred while processing the request.
-
InvalidEndpointException–The requested endpoint is invalid.
-
ThrottlingException–The request was throttled due to excessive requests.
-
ValidationException–Invalid or malformed request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_timestream_query/_services/async_timestream_query.py
790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 | |