Class FirelensLogRouter
Firelens log router.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class FirelensLogRouter : ContainerDefinition, IConstruct, IDependable
Syntax (vb)
Public Class FirelensLogRouter
Inherits ContainerDefinition
Implements IConstruct, IDependable
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
using Amazon.CDK;
ContainerImage containerImage;
EnvironmentFile environmentFile;
LinuxParameters linuxParameters;
LogDriver logDriver;
Secret secret;
TaskDefinition taskDefinition;
var firelensLogRouter = new FirelensLogRouter(this, "MyFirelensLogRouter", new FirelensLogRouterProps {
FirelensConfig = new FirelensConfig {
Type = FirelensLogRouterType.FLUENTBIT,
// the properties below are optional
Options = new FirelensOptions {
ConfigFileType = FirelensConfigFileType.S3,
ConfigFileValue = "configFileValue",
EnableECSLogMetadata = false
}
},
Image = containerImage,
TaskDefinition = taskDefinition,
// the properties below are optional
Command = new [] { "command" },
ContainerName = "containerName",
Cpu = 123,
DisableNetworking = false,
DnsSearchDomains = new [] { "dnsSearchDomains" },
DnsServers = new [] { "dnsServers" },
DockerLabels = new Dictionary<string, string> {
{ "dockerLabelsKey", "dockerLabels" }
},
DockerSecurityOptions = new [] { "dockerSecurityOptions" },
EntryPoint = new [] { "entryPoint" },
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
EnvironmentFiles = new [] { environmentFile },
Essential = false,
ExtraHosts = new Dictionary<string, string> {
{ "extraHostsKey", "extraHosts" }
},
GpuCount = 123,
HealthCheck = new HealthCheck {
Command = new [] { "command" },
// the properties below are optional
Interval = Duration.Minutes(30),
Retries = 123,
StartPeriod = Duration.Minutes(30),
Timeout = Duration.Minutes(30)
},
Hostname = "hostname",
InferenceAcceleratorResources = new [] { "inferenceAcceleratorResources" },
LinuxParameters = linuxParameters,
Logging = logDriver,
MemoryLimitMiB = 123,
MemoryReservationMiB = 123,
PortMappings = new [] { new PortMapping {
ContainerPort = 123,
// the properties below are optional
HostPort = 123,
Protocol = Protocol.TCP
} },
Privileged = false,
ReadonlyRootFilesystem = false,
Secrets = new Dictionary<string, Secret> {
{ "secretsKey", secret }
},
StartTimeout = Duration.Minutes(30),
StopTimeout = Duration.Minutes(30),
SystemControls = new [] { new SystemControl {
Namespace = "namespace",
Value = "value"
} },
User = "user",
WorkingDirectory = "workingDirectory"
});
Synopsis
Constructors
FirelensLogRouter(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
FirelensLogRouter(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
FirelensLogRouter(Construct, String, IFirelensLogRouterProps) | Constructs a new instance of the FirelensLogRouter class. |
Properties
FirelensConfig | Firelens configuration. |
Methods
RenderContainerDefinition(TaskDefinition) | Render this container definition to a CloudFormation object. |
Constructors
FirelensLogRouter(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected FirelensLogRouter(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
FirelensLogRouter(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected FirelensLogRouter(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
FirelensLogRouter(Construct, String, IFirelensLogRouterProps)
Constructs a new instance of the FirelensLogRouter class.
public FirelensLogRouter(Construct scope, string id, IFirelensLogRouterProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IFirelensLogRouterProps
Properties
FirelensConfig
Firelens configuration.
public virtual IFirelensConfig FirelensConfig { get; }
Property Value
Methods
RenderContainerDefinition(TaskDefinition)
Render this container definition to a CloudFormation object.
public override CfnTaskDefinition.IContainerDefinitionProperty RenderContainerDefinition(TaskDefinition taskDefinition = null)
Parameters
- taskDefinition TaskDefinition
Returns
CfnTaskDefinition.IContainerDefinitionProperty