Interface LogConfiguration
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LogConfiguration.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.670Z")
@Stability(Experimental)
public interface LogConfiguration
extends software.amazon.jsii.JsiiSerializable
(experimental) Log configuration options to send to a custom log driver for the container.
Example:
import software.amazon.awscdk.services.ssm.*;
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLogConfigurationstatic final classAn implementation forLogConfiguration -
Method Summary
Modifier and TypeMethodDescriptionstatic LogConfiguration.Builderbuilder()(experimental) The log driver to use for the container.default Object(experimental) The configuration options to send to the log driver.default List<ExposedSecret>(experimental) The secrets to pass to the log configuration as options.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLogDriver
(experimental) The log driver to use for the container. -
getOptions
(experimental) The configuration options to send to the log driver.Default: - No configuration options are sent
-
getSecretOptions
(experimental) The secrets to pass to the log configuration as options.For more information, see https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data-secrets.html#secrets-logconfig
Default: - No secrets are passed
-
builder
- Returns:
- a
LogConfiguration.BuilderofLogConfiguration
-