class FireLensLogDriver
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECS.FireLensLogDriver |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#FireLensLogDriver |
![]() | software.amazon.awscdk.services.ecs.FireLensLogDriver |
![]() | aws_cdk.aws_ecs.FireLensLogDriver |
![]() | aws-cdk-lib » aws_ecs » FireLensLogDriver |
Extends
Log
FireLens enables you to use task definition parameters to route logs to an AWS service or AWS Partner Network (APN) destination for log storage and analytics.
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';
declare const secret: ecs.Secret;
const fireLensLogDriver = new ecs.FireLensLogDriver({
env: ['env'],
envRegex: 'envRegex',
labels: ['labels'],
options: {
optionsKey: 'options',
},
secretOptions: {
secretOptionsKey: secret,
},
tag: 'tag',
});
Initializer
new FireLensLogDriver(props: FireLensLogDriverProps)
Parameters
- props
Fire
— the awsfirelens log driver configuration options.Lens Log Driver Props
Constructs a new instance of the FireLensLogDriver 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.