class NoneLogDriver
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.NoneLogDriver |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#NoneLogDriver |
Java | software.amazon.awscdk.services.ecs.NoneLogDriver |
Python | aws_cdk.aws_ecs.NoneLogDriver |
TypeScript (source) | aws-cdk-lib » aws_ecs » NoneLogDriver |
Extends
Log
A log driver that sets the log driver to none (no logs collected).
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 noneLogDriver = new ecs.NoneLogDriver();
Initializer
new NoneLogDriver()
Constructs a new instance of the NoneLogDriver 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
ContainerDefinition
Returns
Called when the log driver is configured on a container.

.NET
Go
Java
Python
TypeScript (