query_definition
Gets an individual query_definition
resource
Overview
Name | query_definition |
Type | Resource |
Description | query_definition |
Id | awscc.logs.query_definition |
Fields
Name | Datatype | Description |
---|---|---|
name | string | A name for the saved query definition |
query_string | string | The query string to use for this definition |
log_group_names | array | Optionally define specific log groups as part of your query definition |
query_definition_id | string | Unique identifier of a query definition |
region | string | AWS region. |
Methods
Currently only SELECT
is supported for this resource resource.
Example
SELECT
region,
name,
query_string,
log_group_names,
query_definition_id
FROM awscc.logs.query_definition
WHERE data__Identifier = '<QueryDefinitionId>';
Permissions
To operate on the query_definition
resource, the following permissions are required:
Read
logs:DescribeQueryDefinitions
Update
logs:PutQueryDefinition
Delete
logs:DeleteQueryDefinition