GetStoredQuery
Returns the details of a specific stored query.
Request Syntax
{
"QueryName": "string
"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- QueryName
-
The name of the query.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
^[a-zA-Z0-9-_]+$
Required: Yes
Response Syntax
{
"StoredQuery": {
"Description": "string",
"Expression": "string",
"QueryArn": "string",
"QueryId": "string",
"QueryName": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- StoredQuery
-
Returns a
StoredQuery
object.Type: StoredQuery object
Errors
For information about the errors that are common to all actions, see Common Errors.
- ResourceNotFoundException
-
You have specified a resource that does not exist.
HTTP Status Code: 400
- ValidationException
-
The requested action is not valid.
For PutStoredQuery, you will see this exception if there are missing required fields or if the input value fails the validation, or if you are trying to create more than 300 queries.
For GetStoredQuery, ListStoredQuery, and DeleteStoredQuery you will see this exception if there are missing required fields or if the input value fails the validation.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: