Interface IFireLensLogDriverProps
Specifies the firelens log driver configuration options.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface IFireLensLogDriverProps : IBaseLogDriverProps
Syntax (vb)
Public Interface IFireLensLogDriverProps
Inherits IBaseLogDriverProps
Remarks
ExampleMetadata: infused
Examples
// Create a Task Definition for the container to start
var taskDefinition = new Ec2TaskDefinition(this, "TaskDef");
taskDefinition.AddContainer("TheContainer", new ContainerDefinitionOptions {
Image = ContainerImage.FromRegistry("example-image"),
MemoryLimitMiB = 256,
Logging = LogDrivers.Firelens(new FireLensLogDriverProps {
Options = new Dictionary<string, string> {
{ "Name", "firehose" },
{ "region", "us-west-2" },
{ "delivery_stream", "my-stream" }
}
})
});
Synopsis
Properties
Options | The configuration options to send to the log driver. |
SecretOptions | The secrets to pass to the log configuration. |
Properties
Options
The configuration options to send to the log driver.
virtual IDictionary<string, string> Options { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Default: - the log driver options
SecretOptions
The secrets to pass to the log configuration.
virtual IDictionary<string, Secret> SecretOptions { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, Secret>
Remarks
Default: - No secret options provided.