@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.737Z") @Stability(value=Stable) public class LogDrivers extends software.amazon.jsii.JsiiObject
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.awsLogs(AwsLogDriverProps.builder().streamPrefix("EventDemo").build()))
.build());
| Modifier | Constructor and Description |
|---|---|
|
LogDrivers() |
protected |
LogDrivers(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LogDrivers(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static LogDriver |
awsLogs(AwsLogDriverProps props)
Creates a log driver configuration that sends log information to CloudWatch Logs.
|
static LogDriver |
firelens(FireLensLogDriverProps props)
Creates a log driver configuration that sends log information to firelens log router.
|
static LogDriver |
fluentd()
Creates a log driver configuration that sends log information to fluentd Logs.
|
static LogDriver |
fluentd(FluentdLogDriverProps props)
Creates a log driver configuration that sends log information to fluentd Logs.
|
static LogDriver |
gelf(GelfLogDriverProps props)
Creates a log driver configuration that sends log information to gelf Logs.
|
static LogDriver |
journald()
Creates a log driver configuration that sends log information to journald Logs.
|
static LogDriver |
journald(JournaldLogDriverProps props)
Creates a log driver configuration that sends log information to journald Logs.
|
static LogDriver |
jsonFile()
Creates a log driver configuration that sends log information to json-file Logs.
|
static LogDriver |
jsonFile(JsonFileLogDriverProps props)
Creates a log driver configuration that sends log information to json-file Logs.
|
static LogDriver |
splunk(SplunkLogDriverProps props)
Creates a log driver configuration that sends log information to splunk Logs.
|
static LogDriver |
syslog()
Creates a log driver configuration that sends log information to syslog Logs.
|
static LogDriver |
syslog(SyslogLogDriverProps props)
Creates a log driver configuration that sends log information to syslog Logs.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected LogDrivers(software.amazon.jsii.JsiiObjectRef objRef)
protected LogDrivers(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public LogDrivers()
@Stability(value=Stable) @NotNull public static LogDriver awsLogs(@NotNull AwsLogDriverProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public static LogDriver firelens(@NotNull FireLensLogDriverProps props)
For detail configurations, please refer to Amazon ECS FireLens Examples: https://github.com/aws-samples/amazon-ecs-firelens-examples
props - This parameter is required.@Stability(value=Stable) @NotNull public static LogDriver fluentd(@Nullable FluentdLogDriverProps props)
props - @Stability(value=Stable) @NotNull public static LogDriver fluentd()
@Stability(value=Stable) @NotNull public static LogDriver gelf(@NotNull GelfLogDriverProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public static LogDriver journald(@Nullable JournaldLogDriverProps props)
props - @Stability(value=Stable) @NotNull public static LogDriver journald()
@Stability(value=Stable) @NotNull public static LogDriver jsonFile(@Nullable JsonFileLogDriverProps props)
props - @Stability(value=Stable) @NotNull public static LogDriver jsonFile()
@Stability(value=Stable) @NotNull public static LogDriver splunk(@NotNull SplunkLogDriverProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public static LogDriver syslog(@Nullable SyslogLogDriverProps props)
props - @Stability(value=Stable) @NotNull public static LogDriver syslog()
Copyright © 2022. All rights reserved.