AWS::ElasticLoadBalancing::LoadBalancer AccessLoggingPolicy
Specifies where and how access logs are stored for your Classic Load Balancer.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "EmitInterval" :
Integer
, "Enabled" :Boolean
, "S3BucketName" :String
, "S3BucketPrefix" :String
}
YAML
EmitInterval:
Integer
Enabled:Boolean
S3BucketName:String
S3BucketPrefix:String
Properties
EmitInterval
-
The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.
Default: 60 minutes
Required: No
Type: Integer
Update requires: No interruption
Enabled
-
Specifies whether access logs are enabled for the load balancer.
Required: Yes
Type: Boolean
Update requires: No interruption
S3BucketName
-
The name of the Amazon S3 bucket where the access logs are stored.
Required: Yes
Type: String
Update requires: No interruption
S3BucketPrefix
-
The logical hierarchy you created for your Amazon S3 bucket, for example
my-bucket-prefix/prod
. If the prefix is not provided, the log is placed at the root level of the bucket.Required: No
Type: String
Update requires: No interruption
See also
-
ModifyLoadBalancerAttributes in the Elastic Load Balancing API Reference (version 2012-06-01)
-
Access Logs in the User Guide for Classic Load Balancers