v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-142717496.7 KB

Adds an log pattern to a <code>LogPatternSet</code>.

post/#X-Amz-Target=EC2WindowsBarleyService.CreateLogPattern

Headers

X-Amz-Target'EC2WindowsBarleyService.CreateLogPattern' required

Request body

ResourceGroupNamestring required

The name of the resource group.

PatternSetNamestring required

The name of the log pattern set.

PatternNamestring required

The name of the log pattern.

Patternstring required

The log pattern. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference constructions are not supported.

Rankinteger required

Rank of the log pattern. Must be a value between <code>1</code> and <code>1,000,000</code>. The patterns are sorted by rank, so we recommend that you set your highest priority patterns with the lowest rank. A pattern of rank <code>1</code> will be the first to get matched to a log line. A pattern of rank <code>1,000,000</code> will be last to get matched. When you configure custom log patterns from the console, a <code>Low</code> severity pattern translates to a <code>750,000</code> rank. A <code>Medium</code> severity pattern translates to a <code>500,000</code> rank. And a <code>High</code> severity pattern translates to a <code>250,000</code> rank. Rank values less than <code>1</code> or greater than <code>1,000,000</code> are reserved for AWS-provided patterns.

Response

Success

ResourceGroupNamestring

The name of the resource group.