class SyslogLogDriver
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.SyslogLogDriver |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#SyslogLogDriver |
Java | software.amazon.awscdk.services.ecs.SyslogLogDriver |
Python | aws_cdk.aws_ecs.SyslogLogDriver |
TypeScript (source) | aws-cdk-lib » aws_ecs » SyslogLogDriver |
Extends
Log
A log driver that sends log information to syslog Logs.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const syslogLogDriver = new ecs.SyslogLogDriver(/* all optional props */ {
address: 'address',
env: ['env'],
envRegex: 'envRegex',
facility: 'facility',
format: 'format',
labels: ['labels'],
tag: 'tag',
tlsCaCert: 'tlsCaCert',
tlsCert: 'tlsCert',
tlsKey: 'tlsKey',
tlsSkipVerify: false,
});
Initializer
new SyslogLogDriver(props?: SyslogLogDriverProps)
Parameters
- props
Syslog
— the syslog log driver configuration options.Log Driver Props
Constructs a new instance of the SyslogLogDriver class.
Methods
Name | Description |
---|---|
bind(_scope, _containerDefinition) | Called when the log driver is configured on a container. |
bind(_scope, _containerDefinition)
public bind(_scope: Construct, _containerDefinition: ContainerDefinition): LogDriverConfig
Parameters
- _scope
Construct
- _containerDefinition
Container
Definition
Returns
Called when the log driver is configured on a container.