View a markdown version of this page

AWS::AmplifyGen3::App DatabaseS3Config - 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::App DatabaseS3Config

The Amazon S3 delivery settings for database logs. Amplify delivers the logs to an S3 bucket in your account.

Syntax

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

JSON

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

YAML

BucketArn: String SamplingRate: Integer Status: String

Properties

BucketArn

The Amazon Resource Name (ARN) of the S3 bucket that receives the database logs. The bucket is kept while delivery is DISABLED.

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 database log lines that are delivered to Amazon S3, from 0 to 100. Absent when no rate is stored, in which case 100% of the lines are delivered.

Required: No

Type: Integer

Minimum: 0

Maximum: 100

Update requires: No interruption

Status

Specifies whether database logs are delivered to Amazon S3.

Required: Yes

Type: String

Allowed values: ENABLED | DISABLED

Update requires: No interruption