aws-cdk-lib.aws_elasticloadbalancing.CfnLoadBalancer.AccessLoggingPolicyProperty

interface AccessLoggingPolicyProperty

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancing.CfnLoadBalancer.AccessLoggingPolicyProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancing#CfnLoadBalancer_AccessLoggingPolicyProperty
Javasoftware.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.AccessLoggingPolicyProperty
Pythonaws_cdk.aws_elasticloadbalancing.CfnLoadBalancer.AccessLoggingPolicyProperty
TypeScript aws-cdk-lib » aws_elasticloadbalancing » CfnLoadBalancer » AccessLoggingPolicyProperty

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

Example

// 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

NameTypeDescription
enabledboolean | IResolvableSpecifies whether access logs are enabled for the load balancer.
s3BucketNamestringThe name of the Amazon S3 bucket where the access logs are stored.
emitInterval?numberThe interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.
s3BucketPrefix?stringThe logical hierarchy you created for your Amazon S3 bucket, for example my-bucket-prefix/prod .

enabled

Type: boolean | IResolvable

Specifies whether access logs are enabled for the load balancer.


s3BucketName

Type: string

The name of the Amazon S3 bucket where the access logs are stored.


emitInterval?

Type: number (optional)

The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.

Default: 60 minutes


s3BucketPrefix?

Type: string (optional)

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.