# AccessLoggingPolicyProperty

Specifies where and how access logs are stored for your Classic Load Balancer.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancing as elb } from 'aws-cdk-lib';
const accessLoggingPolicyProperty: elb.CfnLoadBalancer.AccessLoggingPolicyProperty = {
  enabled: false,
  s3BucketName: 's3BucketName',

  // the properties below are optional
  emitInterval: 123,
  s3BucketPrefix: 's3BucketPrefix',
};
```

## Properties

- `emitInterval`: number — The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.

  Default: 60 minutes

- `enabled`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Specifies whether access logs are enabled for the load balancer.

- `s3BucketName`: string (required) — The name of the Amazon S3 bucket where the access logs are stored.

- `s3BucketPrefix`: string — 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.
