interface AccessLoggingPolicyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.ElasticLoadBalancing.CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awselasticloadbalancing#CfnLoadBalancerPropsMixin_AccessLoggingPolicyProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.elasticloadbalancing.CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty |
Python | aws_cdk.cfn_property_mixins.aws_elasticloadbalancing.CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_elasticloadbalancing » CfnLoadBalancerPropsMixin » 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 elasticloadbalancing } from '@aws-cdk/cfn-property-mixins';
const accessLoggingPolicyProperty: elasticloadbalancing.CfnLoadBalancerPropsMixin.AccessLoggingPolicyProperty = {
emitInterval: 123,
enabled: false,
s3BucketName: 's3BucketName',
s3BucketPrefix: 's3BucketPrefix',
};
Properties
| Name | Type | Description |
|---|---|---|
| emit | number | The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes. |
| enabled? | boolean | IResolvable | Specifies whether access logs are enabled for the load balancer. |
| s3 | string | IBucket | The name of the Amazon S3 bucket where the access logs are stored. |
| s3 | string | The logical hierarchy you created for your Amazon S3 bucket, for example my-bucket-prefix/prod . |
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
enabled?
Type:
boolean | IResolvable
(optional)
Specifies whether access logs are enabled for the load balancer.
s3BucketName?
Type:
string | IBucket
(optional)
The name of the Amazon S3 bucket where the access logs are stored.
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.

.NET
Go
Java
Python
TypeScript