interface LogConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Batch.LogConfiguration |
Java | software.amazon.awscdk.services.batch.LogConfiguration |
Python | aws_cdk.aws_batch.LogConfiguration |
TypeScript (source) | @aws-cdk/aws-batch » LogConfiguration |
Log configuration options to send to a custom log driver for the container.
Example
import * as ssm from '@aws-cdk/aws-ssm';
new batch.JobDefinition(this, 'job-def', {
container: {
image: ecs.EcrImage.fromRegistry('docker/whalesay'),
logConfiguration: {
logDriver: batch.LogDriver.AWSLOGS,
options: { 'awslogs-region': 'us-east-1' },
secretOptions: [
batch.ExposedSecret.fromParametersStore('xyz', ssm.StringParameter.fromStringParameterName(this, 'parameter', 'xyz')),
],
},
},
});
Properties
| Name | Type | Description |
|---|---|---|
| log | Log | The log driver to use for the container. |
| options? | any | The configuration options to send to the log driver. |
| secret | Exposed[] | The secrets to pass to the log configuration as options. |
logDriver
Type:
Log
The log driver to use for the container.
options?
Type:
any
(optional, default: No configuration options are sent)
The configuration options to send to the log driver.
secretOptions?
Type:
Exposed[]
(optional, default: No secrets are passed)
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

.NET
Java
Python
TypeScript (