Show / Hide Table of Contents

Class Endpoint

Represents the endpoints available for targetting within a realtime log config resource.

Inheritance
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

Methods

FromKinesisStream(IStream, IRole?)

Configure a Kinesis Stream Endpoint for Realtime Log Config.

Methods

FromKinesisStream(IStream, IRole?)

Configure a Kinesis Stream Endpoint for Realtime Log Config.

public static Endpoint FromKinesisStream(IStream stream, IRole? role = null)
Parameters
stream IStream
role IRole
Returns

Endpoint

Remarks

Default: - a role will be created and used across your endpoints

Back to top Generated by DocFX