Provides a CloudFront real-time log configuration resource.
data "aws_cloudfront_realtime_log_config" "example" {
name = "example"
}
This data source supports the following arguments:
name
- (Required) Unique name to identify this real-time log configuration.This data source exports the following attributes in addition to the arguments above:
arn
- ARN (Amazon Resource Name) of the CloudFront real-time log configuration.endpoint
- (Required) Amazon Kinesis data streams where real-time log data is sent.fields
- (Required) Fields that are included in each real-time log record. See the AWS documentation for supported values.sampling_rate
- (Required) 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. An integer between 1
and 100
, inclusive.The endpoint
object supports the following:
kinesis_stream_config
- (Required) Amazon Kinesis data stream configuration.stream_type
- (Required) Type of data stream where real-time log data is sent. The only valid value is Kinesis
.The kinesis_stream_config
object supports the following:
role_arn
- (Required) ARN of an IAM role that CloudFront can use to send real-time log data to the Kinesis data stream.
See the AWS documentation for more information.stream_arn
- (Required) ARN of the Kinesis data stream.