Interface ILogConfiguration
(experimental) Log configuration options to send to a custom log driver for the container.
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.AWS.Batch.dll
Syntax (csharp)
public interface ILogConfiguration
Syntax (vb)
Public Interface ILogConfiguration
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.SSM;
new JobDefinition(this, "job-def", new JobDefinitionProps {
Container = new JobDefinitionContainer {
Image = EcrImage.FromRegistry("docker/whalesay"),
LogConfiguration = new LogConfiguration {
LogDriver = LogDriver.AWSLOGS,
Options = new Dictionary<string, string> { { "awslogs-region", "us-east-1" } },
SecretOptions = new [] { ExposedSecret.FromParametersStore("xyz", StringParameter.FromStringParameterName(this, "parameter", "xyz")) }
}
}
});
Synopsis
Properties
LogDriver | (experimental) The log driver to use for the container. |
Options | (experimental) The configuration options to send to the log driver. |
SecretOptions | (experimental) The secrets to pass to the log configuration as options. |
Properties
LogDriver
(experimental) The log driver to use for the container.
LogDriver LogDriver { get; }
Property Value
Remarks
Stability: Experimental
Options
(experimental) The configuration options to send to the log driver.
virtual object Options { get; }
Property Value
System.Object
Remarks
Default: - No configuration options are sent
Stability: Experimental
SecretOptions
(experimental) The secrets to pass to the log configuration as options.
virtual ExposedSecret[] SecretOptions { get; }
Property Value
Remarks
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: Experimental