interface CfnRealtimeLogConfigProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudFront.CfnRealtimeLogConfigProps |
Java | software.amazon.awscdk.services.cloudfront.CfnRealtimeLogConfigProps |
Python | aws_cdk.aws_cloudfront.CfnRealtimeLogConfigProps |
TypeScript | @aws-cdk/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 * as cloudfront from '@aws-cdk/aws-cloudfront';
const cfnRealtimeLogConfigProps: cloudfront.CfnRealtimeLogConfigProps = {
endPoints: [{
kinesisStreamConfig: {
roleArn: 'roleArn',
streamArn: 'streamArn',
},
streamType: 'streamType',
}],
fields: ['fields'],
name: 'name',
samplingRate: 123,
};
Properties
Name | Type | Description |
---|---|---|
end | IResolvable | IResolvable | End [] | Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration. |
fields | string[] | A list of fields that are included in each real-time log record. |
name | string | The unique name of this real-time log configuration. |
sampling | number | The sampling rate for this real-time log configuration. |
endPoints
Type:
IResolvable
|
IResolvable
|
End
[]
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.