import * as core from "@terrascript/core"; export interface KinesisStreamConfigArgs extends core.SchemaArgs { roleArn: string | core.StringOut; streamArn: string | core.StringOut; } export class KinesisStreamConfig extends core.Schema { @core.attr(String, { computed: true }) public roleArn!: string | core.StringOut; @core.attr(String, { computed: true }) public streamArn!: string | core.StringOut; } export interface EndpointArgs extends core.SchemaArgs { kinesisStreamConfig: | core.Array | core.ArrayOut; streamType: string | core.StringOut; } export class Endpoint extends core.Schema { @core.attr(KinesisStreamConfig, { computed: true, kind: "array" }) public kinesisStreamConfig!: | core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public streamType!: string | core.StringOut; } export interface DsRealtimeLogConfigArgs { /** * (Required) The unique name to identify this real-time log configuration. */ name: string | core.StringOut; } export class DsRealtimeLogConfig extends core.Data { /** * The ARN (Amazon Resource Name) of the CloudFront real-time log configuration. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) The Amazon Kinesis data streams where real-time log data is sent. */ @core.attr(Endpoint, { computed: true, kind: "array" }) public endpoint!: core.Array | core.ArrayOut; /** * (Required) The fields that are included in each real-time log record. See the [AWS documentation](ht * tps://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real * time-log-config-fields) for supported values. */ @core.attr(String, { computed: true, kind: "array" }) public fields!: core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The unique name to identify this real-time log configuration. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) 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. An integer between `1` * and `100`, inclusive. */ @core.attr(Number, { computed: true }) public samplingRate!: number | core.NumberOut; constructor(name: string, args?: DsRealtimeLogConfigArgs) { super(name, "aws_cloudfront_realtime_log_config", args); } public override getNamespace(): string { return "aws_cloudfront"; } }