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 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:StringSamplingRate:IntegerStatus: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.comservice 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:
1Maximum:
2048Update 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:
0Maximum:
100Update requires: No interruption
Status-
Specifies whether database logs are delivered to Amazon S3.
Required: Yes
Type: String
Allowed values:
ENABLED | DISABLEDUpdate requires: No interruption