Class Endpoint
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.Endpoint
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:12.606Z")
@Stability(Stable)
public abstract class Endpoint
extends software.amazon.jsii.JsiiObject
Represents the endpoints available for targetting within a realtime log config resource.
Example:
// Adding realtime logs config to a Cloudfront Distribution on default behavior. import software.amazon.awscdk.services.kinesis.*; Stream stream; RealtimeLogConfig realTimeConfig = RealtimeLogConfig.Builder.create(this, "realtimeLog") .endPoints(List.of(Endpoint.fromKinesisStream(stream))) .fields(List.of("timestamp", "c-ip", "time-to-first-byte", "sc-status")) .realtimeLogConfigName("my-delivery-stream") .samplingRate(100) .build(); Distribution.Builder.create(this, "myCdn") .defaultBehavior(BehaviorOptions.builder() .origin(new HttpOrigin("www.example.com")) .realtimeLogConfig(realTimeConfig) .build()) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Endpoint
fromKinesisStream
(IStream stream) Configure a Kinesis Stream Endpoint for Realtime Log Config.static Endpoint
fromKinesisStream
(IStream stream, IRole role) Configure a Kinesis Stream Endpoint for Realtime Log Config.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Endpoint
protected Endpoint(software.amazon.jsii.JsiiObjectRef objRef) -
Endpoint
protected Endpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
fromKinesisStream
@Stability(Stable) @NotNull public static Endpoint fromKinesisStream(@NotNull IStream stream, @Nullable IRole role) Configure a Kinesis Stream Endpoint for Realtime Log Config.Default: - a role will be created and used across your endpoints
- Parameters:
stream
- This parameter is required.role
-
-
fromKinesisStream
Configure a Kinesis Stream Endpoint for Realtime Log Config.Default: - a role will be created and used across your endpoints
- Parameters:
stream
- This parameter is required.
-