Create Realtime Log Config
cloudfront_create_realtime_log_config | R Documentation |
Creates a real-time log configuration¶
Description¶
Creates a real-time log configuration.
After you create a real-time log configuration, you can attach it to one or more cache behaviors to send real-time log data to the specified Amazon Kinesis data stream.
For more information about real-time log configurations, see Real-time logs in the Amazon CloudFront Developer Guide.
Usage¶
Arguments¶
EndPoints
[required] Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
Fields
[required] A list of fields to include in each real-time log record.
For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
Name
[required] A unique name to identify this real-time log configuration.
SamplingRate
[required] The sampling rate for this real-time log configuration. You can specify a whole number between 1 and 100 (inclusive) to determine the percentage of viewer requests that are represented in the real-time log data.
Value¶
A list with the following syntax:
list(
RealtimeLogConfig = list(
ARN = "string",
Name = "string",
SamplingRate = 123,
EndPoints = list(
list(
StreamType = "string",
KinesisStreamConfig = list(
RoleARN = "string",
StreamARN = "string"
)
)
),
Fields = list(
"string"
)
)
)