Skip to main content

query_definition

Gets an individual query_definition resource

Overview

Namequery_definition
TypeResource
Descriptionquery_definition
Idawscc.logs.query_definition

Fields

NameDatatypeDescription
namestringA name for the saved query definition
query_stringstringThe query string to use for this definition
log_group_namesarrayOptionally define specific log groups as part of your query definition
query_definition_idstringUnique identifier of a query definition
regionstringAWS 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