@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.736Z") @Stability(value=Stable) public abstract class LogDriver extends software.amazon.jsii.JsiiObject
Example:
// Example automatically generated from non-compiling source. May contain errors.
Secret secret;
// 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()
.secretToken(secret)
.url("my-splunk-url")
.build()))
.build());
| Modifier | Constructor and Description |
|---|---|
protected |
LogDriver() |
protected |
LogDriver(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LogDriver(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.
|
abstract LogDriverConfig |
bind(software.constructs.Construct scope,
ContainerDefinition containerDefinition)
Called when the log driver is configured on a container.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected LogDriver(software.amazon.jsii.JsiiObjectRef objRef)
protected LogDriver(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) protected LogDriver()
@Stability(value=Stable) @NotNull public static LogDriver awsLogs(@NotNull AwsLogDriverProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public abstract LogDriverConfig bind(@NotNull software.constructs.Construct scope, @NotNull ContainerDefinition containerDefinition)
scope - This parameter is required.containerDefinition - This parameter is required.Copyright © 2022. All rights reserved.