aws-cdk-lib.aws_cloudfront.CfnRealtimeLogConfigProps

interface CfnRealtimeLogConfigProps

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.CfnRealtimeLogConfigProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnRealtimeLogConfigProps
Javasoftware.amazon.awscdk.services.cloudfront.CfnRealtimeLogConfigProps
Pythonaws_cdk.aws_cloudfront.CfnRealtimeLogConfigProps
TypeScript aws-cdk-lib » aws_cloudfront » CfnRealtimeLogConfigProps

Properties for defining a CfnRealtimeLogConfig.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const cfnRealtimeLogConfigProps: cloudfront.CfnRealtimeLogConfigProps = {
  endPoints: [{
    kinesisStreamConfig: {
      roleArn: 'roleArn',
      streamArn: 'streamArn',
    },
    streamType: 'streamType',
  }],
  fields: ['fields'],
  name: 'name',
  samplingRate: 123,
};

Properties

NameTypeDescription
endPointsIResolvable | IResolvable | EndPointProperty[]Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
fieldsstring[]A list of fields that are included in each real-time log record.
namestringThe unique name of this real-time log configuration.
samplingRatenumberThe sampling rate for this real-time log configuration.

endPoints

Type: IResolvable | IResolvable | EndPointProperty[]

Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.


fields

Type: string[]

A list of fields that are included in each real-time log record.

In an API response, the fields are provided in the same order in which they are sent to the Amazon Kinesis data stream.

For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide .


name

Type: string

The unique name of this real-time log configuration.


samplingRate

Type: number

The sampling rate for this real-time log configuration.

The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, inclusive.