Data Source: awsCloudfrontRealtimeLogConfig
Provides a CloudFront real-time log configuration resource.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsCloudfrontRealtimeLogConfig.DataAwsCloudfrontRealtimeLogConfig(
this,
"example",
{
name: "example",
}
);
Argument Reference
The following arguments are supported:
name
- (Required) Unique name to identify this real-time log configuration.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
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.samplingRate
- (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 between1
and100
, inclusive.
The endpoint
object supports the following:
kinesisStreamConfig
- (Required) Amazon Kinesis data stream configuration.streamType
- (Required) Type of data stream where real-time log data is sent. The only valid value iskinesis
.
The kinesisStreamConfig
object supports the following:
roleArn
- (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.streamArn
- (Required) ARN of the Kinesis data stream.