View a markdown version of this page

AWS::AmplifyGen3::Environment WafCloudWatchLogsConfig - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::AmplifyGen3::Environment WafCloudWatchLogsConfig

The Amazon CloudWatch Logs delivery settings for Amazon WAF logs.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "LogGroupArn" : String, "SamplingRate" : Integer, "Scope" : String, "Status" : String }

YAML

LogGroupArn: String SamplingRate: Integer Scope: String Status: String

Properties

LogGroupArn

The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log group.

Required: No

Type: String

Pattern: ^arn:(aws|aws-cn|aws-us-gov):logs:[a-z0-9-]+:[0-9]{12}:log-group:.+$

Minimum: 1

Maximum: 2048

Update requires: No interruption

SamplingRate

The percentage of requests to log.

Required: No

Type: Integer

Minimum: 0

Maximum: 100

Update requires: No interruption

Scope

The requests to log. Valid values:

  • ALL_REQUESTS: Logs every request that Amazon WAF evaluates.

  • BLOCKED_ONLY: Logs only the requests that Amazon WAF blocks.

Required: No

Type: String

Allowed values: ALL_REQUESTS | BLOCKED_ONLY

Update requires: No interruption

Status

Specifies whether Amazon WAF logs are delivered to CloudWatch Logs.

Required: Yes

Type: String

Allowed values: ENABLED | DISABLED

Update requires: No interruption