CfnRealtimeLogConfigProps Struct
Properties for defining a CfnRealtimeLogConfig.
Example
ts
// 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
endPointsIResolvable | IResolvable | CfnRealtimeLogConfig.EndPointProperty[]end_pointstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EndPointProperty]]]endPointsIResolvableEndPointsIResolvableEndPointsinterface{}required#Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
A list of fields that are included in each real-time log record.
notes
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 .
The unique name of this real-time log configuration.
samplingRatenumbersampling_rateint | floatsamplingRateNumberSamplingRatedoubleSamplingRate*float64required#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.