@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:43.434Z") @Stability(value=Experimental) public interface LogConfiguration extends software.amazon.jsii.JsiiSerializable
Example:
import software.amazon.awscdk.core.*;
JobDefinition.Builder.create(this, "job-def")
.container(JobDefinitionContainer.builder()
.image(EcrImage.fromRegistry("docker/whalesay"))
.logConfiguration(LogConfiguration.builder()
.logDriver(LogDriver.AWSLOGS)
.options(Map.of("awslogs-region", "us-east-1"))
.secretOptions(List.of(ExposedSecret.fromParametersStore("xyz", StringParameter.fromStringParameterName(this, "parameter", "xyz"))))
.build())
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
LogConfiguration.Builder
A builder for
LogConfiguration |
static class |
LogConfiguration.Jsii$Proxy
An implementation for
LogConfiguration |
| Modifier and Type | Method and Description |
|---|---|
static LogConfiguration.Builder |
builder() |
LogDriver |
getLogDriver()
(experimental) The log driver to use for the container.
|
default Object |
getOptions()
(experimental) The configuration options to send to the log driver.
|
default List<ExposedSecret> |
getSecretOptions()
(experimental) The secrets to pass to the log configuration as options.
|
@Stability(value=Experimental) @NotNull LogDriver getLogDriver()
@Stability(value=Experimental) @Nullable default Object getOptions()
Default: - No configuration options are sent
@Stability(value=Experimental) @Nullable default List<ExposedSecret> getSecretOptions()
For more information, see https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data-secrets.html#secrets-logconfig
Default: - No secrets are passed
@Stability(value=Experimental) static LogConfiguration.Builder builder()
LogConfiguration.Builder of LogConfigurationCopyright © 2022. All rights reserved.