Class Endpoint
Represents the endpoints available for targetting within a realtime log config resource.
Inheritance
System.Object
Endpoint
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class Endpoint : DeputyBase
Syntax (vb)
Public MustInherit Class Endpoint
Inherits DeputyBase
Remarks
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
Endpoint(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Endpoint(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
FromKinesisStream(IStream, IRole) | Configure a Kinesis Stream Endpoint for Realtime Log Config. |
Constructors
Endpoint(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Endpoint(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Endpoint(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Endpoint(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props