Class FirelensLogRouter

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IConstruct, IDependable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:47.357Z") @Stability(Stable) public class FirelensLogRouter extends ContainerDefinition
Firelens log router.

Example:

 // 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.*;
 import software.amazon.awscdk.core.*;
 ContainerImage containerImage;
 EnvironmentFile environmentFile;
 LinuxParameters linuxParameters;
 LogDriver logDriver;
 Secret secret;
 TaskDefinition taskDefinition;
 FirelensLogRouter firelensLogRouter = FirelensLogRouter.Builder.create(this, "MyFirelensLogRouter")
         .firelensConfig(FirelensConfig.builder()
                 .type(FirelensLogRouterType.FLUENTBIT)
                 // the properties below are optional
                 .options(FirelensOptions.builder()
                         .configFileType(FirelensConfigFileType.S3)
                         .configFileValue("configFileValue")
                         .enableECSLogMetadata(false)
                         .build())
                 .build())
         .image(containerImage)
         .taskDefinition(taskDefinition)
         // the properties below are optional
         .command(List.of("command"))
         .containerName("containerName")
         .cpu(123)
         .disableNetworking(false)
         .dnsSearchDomains(List.of("dnsSearchDomains"))
         .dnsServers(List.of("dnsServers"))
         .dockerLabels(Map.of(
                 "dockerLabelsKey", "dockerLabels"))
         .dockerSecurityOptions(List.of("dockerSecurityOptions"))
         .entryPoint(List.of("entryPoint"))
         .environment(Map.of(
                 "environmentKey", "environment"))
         .environmentFiles(List.of(environmentFile))
         .essential(false)
         .extraHosts(Map.of(
                 "extraHostsKey", "extraHosts"))
         .gpuCount(123)
         .healthCheck(HealthCheck.builder()
                 .command(List.of("command"))
                 // the properties below are optional
                 .interval(Duration.minutes(30))
                 .retries(123)
                 .startPeriod(Duration.minutes(30))
                 .timeout(Duration.minutes(30))
                 .build())
         .hostname("hostname")
         .inferenceAcceleratorResources(List.of("inferenceAcceleratorResources"))
         .linuxParameters(linuxParameters)
         .logging(logDriver)
         .memoryLimitMiB(123)
         .memoryReservationMiB(123)
         .portMappings(List.of(PortMapping.builder()
                 .containerPort(123)
                 // the properties below are optional
                 .hostPort(123)
                 .protocol(Protocol.TCP)
                 .build()))
         .privileged(false)
         .readonlyRootFilesystem(false)
         .secrets(Map.of(
                 "secretsKey", secret))
         .startTimeout(Duration.minutes(30))
         .stopTimeout(Duration.minutes(30))
         .systemControls(List.of(SystemControl.builder()
                 .namespace("namespace")
                 .value("value")
                 .build()))
         .user("user")
         .workingDirectory("workingDirectory")
         .build();
 
  • Constructor Details

    • FirelensLogRouter

      protected FirelensLogRouter(software.amazon.jsii.JsiiObjectRef objRef)
    • FirelensLogRouter

      protected FirelensLogRouter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • FirelensLogRouter

      @Stability(Stable) public FirelensLogRouter(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FirelensLogRouterProps props)
      Constructs a new instance of the FirelensLogRouter class.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details