AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::CloudFront::RealtimeLogConfig

CfnRealtimeLogConfig

A real-time log configuration.

Import

import { CfnRealtimeLogConfig } from 'aws-cdk-lib/aws-cloudfront';

Or use the module namespace:

import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
// cloudfront.CfnRealtimeLogConfig

Properties

Configuration passed to the constructor as CfnRealtimeLogConfigProps.

endPointsRequired
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.

fieldsRequired
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](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields) in the *Amazon CloudFront Developer Guide* .

nameRequired
string

The unique name of this real-time log configuration.

samplingRateRequired
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.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon CloudFront Cheat Sheet

Everything you need to know about Amazon CloudFront on one page. HD quality, print-friendly.

Download Free Infographic