Class RealtimeLogConfig
A Realtime Log Config configuration.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RealtimeLogConfig : Resource, IRealtimeLogConfig, IResource
Syntax (vb)
Public Class RealtimeLogConfig
Inherits Resource
Implements IRealtimeLogConfig, IResource
Remarks
Resource: AWS::CloudFront::RealtimeLogConfig
ExampleMetadata: infused
Examples
// Adding realtime logs config to a Cloudfront Distribution on default behavior.
using Amazon.CDK.AWS.Kinesis;
Stream stream;
var realTimeConfig = new RealtimeLogConfig(this, "realtimeLog", new RealtimeLogConfigProps {
EndPoints = new [] { Endpoint.FromKinesisStream(stream) },
Fields = new [] { "timestamp", "c-ip", "time-to-first-byte", "sc-status" },
RealtimeLogConfigName = "my-delivery-stream",
SamplingRate = 100
});
new Distribution(this, "myCdn", new DistributionProps {
DefaultBehavior = new BehaviorOptions {
Origin = new HttpOrigin("www.example.com"),
RealtimeLogConfig = realTimeConfig
}
});
Synopsis
Constructors
RealtimeLogConfig(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
RealtimeLogConfig(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
RealtimeLogConfig(Construct, String, IRealtimeLogConfigProps) |
Properties
RealtimeLogConfigArn | The arn of the realtime log config. |
RealtimeLogConfigName | The name of the realtime log config. |
Constructors
RealtimeLogConfig(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected RealtimeLogConfig(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
RealtimeLogConfig(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected RealtimeLogConfig(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
RealtimeLogConfig(Construct, String, IRealtimeLogConfigProps)
public RealtimeLogConfig(Construct scope, string id, IRealtimeLogConfigProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IRealtimeLogConfigProps
Properties
RealtimeLogConfigArn
The arn of the realtime log config.
public virtual string RealtimeLogConfigArn { get; }
Property Value
System.String
RealtimeLogConfigName
The name of the realtime log config.
public virtual string RealtimeLogConfigName { get; }
Property Value
System.String
Implements
Constructs.IConstruct
Constructs.IDependable