get_stored_query
(**kwargs)¶Returns the details of a specific stored query.
See also: AWS API Documentation
Request Syntax
response = client.get_stored_query(
QueryName='string'
)
[REQUIRED]
The name of the query.
{
'StoredQuery': {
'QueryId': 'string',
'QueryArn': 'string',
'QueryName': 'string',
'Description': 'string',
'Expression': 'string'
}
}
Response Structure
Returns a StoredQuery
object.
The ID of the query.
Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
The name of the query.
A unique description for the query.
The expression of the query. For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
Exceptions
ConfigService.Client.exceptions.ValidationException
ConfigService.Client.exceptions.ResourceNotFoundException