SyslogLogDriver Class
A log driver that sends log information to syslog Logs.
Example
ts
// 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,
});
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs
syslog_log_driver = ecs.SyslogLogDriver(
address="address",
env=["env"],
env_regex="envRegex",
facility="facility",
format="format",
labels=["labels"],
tag="tag",
tls_ca_cert="tlsCaCert",
tls_cert="tlsCert",
tls_key="tlsKey",
tls_skip_verify=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
SyslogLogDriver syslogLogDriver = SyslogLogDriver.Builder.create()
.address("address")
.env(List.of("env"))
.envRegex("envRegex")
.facility("facility")
.format("format")
.labels(List.of("labels"))
.tag("tag")
.tlsCaCert("tlsCaCert")
.tlsCert("tlsCert")
.tlsKey("tlsKey")
.tlsSkipVerify(false)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var syslogLogDriver = new SyslogLogDriver(new SyslogLogDriverProps {
Address = "address",
Env = new [] { "env" },
EnvRegex = "envRegex",
Facility = "facility",
Format = "format",
Labels = new [] { "labels" },
Tag = "tag",
TlsCaCert = "tlsCaCert",
TlsCert = "tlsCert",
TlsKey = "tlsKey",
TlsSkipVerify = false
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
syslogLogDriver := awscdk.Aws_ecs.NewSyslogLogDriver(&SyslogLogDriverProps{
Address: jsii.String("address"),
Env: []*string{
jsii.String("env"),
},
EnvRegex: jsii.String("envRegex"),
Facility: jsii.String("facility"),
Format: jsii.String("format"),
Labels: []*string{
jsii.String("labels"),
},
Tag: jsii.String("tag"),
TlsCaCert: jsii.String("tlsCaCert"),
TlsCert: jsii.String("tlsCert"),
TlsKey: jsii.String("tlsKey"),
TlsSkipVerify: jsii.Boolean(false),
})
Initializer
ts
new SyslogLogDriver(props?: SyslogLogDriverProps)
python
SyslogLogDriver(props: typing.Optional[SyslogLogDriverProps] = None)
java
new SyslogLogDriver(SyslogLogDriverProps props)
csharp
new SyslogLogDriver(SyslogLogDriverProps? props = null)
go
NewSyslogLogDriver(Props SyslogLogDriverProps)
Methods
awsLogs(props: AwsLogDriverProps): LogDriver@staticmethod def aws_logs(props: AwsLogDriverProps) -> LogDriverpublic static LogDriver awsLogs(AwsLogDriverProps props)public static LogDriver AwsLogs(AwsLogDriverProps props)func AwsLogs(Props AwsLogDriverProps) LogDriverstatic#Creates a log driver configuration that sends log information to CloudWatch Logs.
bind(_scope: Construct, _containerDefinition: ContainerDefinition): LogDriverConfigdef bind(self, _scope: Construct, _container_definition: ContainerDefinition) -> LogDriverConfigpublic LogDriverConfig bind(Construct _scope, ContainerDefinition _containerDefinition)public LogDriverConfig Bind(Construct _scope, ContainerDefinition _containerDefinition)func Bind(_scope Construct, _containerDefinition ContainerDefinition) LogDriverConfig#Called when the log driver is configured on a container.