QueryDefinition - Amazon CloudWatch Logs

QueryDefinition

This structure contains details about a saved CloudWatch Logs Insights query definition.

Contents

lastModified

The date that the query definition was most recently modified.

Type: Long

Valid Range: Minimum value of 0.

Required: No

logGroupNames

If this query definition contains a list of log groups that it is limited to, that list appears here.

Type: Array of strings

Length Constraints: Minimum length of 1. Maximum length of 512.

Pattern: [\.\-_/#A-Za-z0-9]+

Required: No

name

The name of the query definition.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Required: No

queryDefinitionId

The unique ID of the query definition.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 256.

Required: No

queryString

The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 10000.

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: