Class LogDriver
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.LogDriver
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
- Direct Known Subclasses:
AwsLogDriver
,FireLensLogDriver
,FluentdLogDriver
,GelfLogDriver
,GenericLogDriver
,JournaldLogDriver
,JsonFileLogDriver
,SplunkLogDriver
,SyslogLogDriver
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.415Z")
@Stability(Stable)
public abstract class LogDriver
extends software.amazon.jsii.JsiiObject
The base class for log drivers.
Example:
// Create a Task Definition for the container to start Ec2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, "TaskDef"); taskDefinition.addContainer("TheContainer", ContainerDefinitionOptions.builder() .image(ContainerImage.fromRegistry("example-image")) .memoryLimitMiB(256) .logging(LogDrivers.splunk(SplunkLogDriverProps.builder() .token(SecretValue.secretsManager("my-splunk-token")) .url("my-splunk-url") .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 LogDriver
awsLogs
(AwsLogDriverProps props) Creates a log driver configuration that sends log information to CloudWatch Logs.abstract LogDriverConfig
bind
(Construct scope, ContainerDefinition containerDefinition) Called when the log driver is configured on a container.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
-
LogDriver
protected LogDriver(software.amazon.jsii.JsiiObjectRef objRef) -
LogDriver
protected LogDriver(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
LogDriver
@Stability(Stable) protected LogDriver()
-
-
Method Details
-
awsLogs
Creates a log driver configuration that sends log information to CloudWatch Logs.- Parameters:
props
- This parameter is required.
-
bind
@Stability(Stable) @NotNull public abstract LogDriverConfig bind(@NotNull Construct scope, @NotNull ContainerDefinition containerDefinition) Called when the log driver is configured on a container.- Parameters:
scope
- This parameter is required.containerDefinition
- This parameter is required.
-