View a markdown version of this page

AWS::AmplifyGen3::Environment WafS3Config - 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 WafS3Config

The Amazon S3 delivery settings for Amazon WAF logs.

Syntax

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

JSON

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

YAML

BucketArn: String SamplingRate: Integer Scope: String Status: String

Properties

BucketArn

The Amazon Resource Name (ARN) of the Amazon S3 bucket.

The bucket must have a bucket policy that allows the delivery.logs.amazonaws.com service principal to write to it. Amplify Gen 3 doesn't add this policy. For more information about the policy, see Logs sent to Amazon S3 in the Amazon CloudWatch Logs User Guide.

Required: No

Type: String

Pattern: ^arn:(aws|aws-cn|aws-us-gov):s3:::[a-z0-9][a-z0-9.-]*$

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 Amazon S3.

Required: Yes

Type: String

Allowed values: ENABLED | DISABLED

Update requires: No interruption