Class RealtimeLogConfig
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.cloudfront.RealtimeLogConfig
- All Implemented Interfaces:
IResource
,IRealtimeLogConfig
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:58.324Z")
@Stability(Stable)
public class RealtimeLogConfig
extends Resource
implements IRealtimeLogConfig
A Realtime Log Config configuration.
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
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudfront.IRealtimeLogConfig
IRealtimeLogConfig.Jsii$Default, IRealtimeLogConfig.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
RealtimeLogConfig
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
RealtimeLogConfig
(software.amazon.jsii.JsiiObjectRef objRef) RealtimeLogConfig
(software.constructs.Construct scope, String id, RealtimeLogConfigProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe arn of the realtime log config.The name of the realtime log config.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
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, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
RealtimeLogConfig
protected RealtimeLogConfig(software.amazon.jsii.JsiiObjectRef objRef) -
RealtimeLogConfig
protected RealtimeLogConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
RealtimeLogConfig
@Stability(Stable) public RealtimeLogConfig(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull RealtimeLogConfigProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
getRealtimeLogConfigArn
The arn of the realtime log config.- Specified by:
getRealtimeLogConfigArn
in interfaceIRealtimeLogConfig
-
getRealtimeLogConfigName
The name of the realtime log config.- Specified by:
getRealtimeLogConfigName
in interfaceIRealtimeLogConfig
-