Interface FirelensLogRouterProps
- All Superinterfaces:
ContainerDefinitionOptions,ContainerDefinitionProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FirelensLogRouterProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:03.979Z")
@Stability(Stable)
public interface FirelensLogRouterProps
extends software.amazon.jsii.JsiiSerializable, ContainerDefinitionProps
The properties in a 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.*;
import software.amazon.awscdk.services.ecs.*;
AppProtocol appProtocol;
ContainerImage containerImage;
CredentialSpec credentialSpec;
EnvironmentFile environmentFile;
LinuxParameters linuxParameters;
LogDriver logDriver;
Secret secret;
TaskDefinition taskDefinition;
FirelensLogRouterProps firelensLogRouterProps = FirelensLogRouterProps.builder()
.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)
.credentialSpecs(List.of(credentialSpec))
.disableNetworking(false)
.dnsSearchDomains(List.of("dnsSearchDomains"))
.dnsServers(List.of("dnsServers"))
.dockerLabels(Map.of(
"dockerLabelsKey", "dockerLabels"))
.dockerSecurityOptions(List.of("dockerSecurityOptions"))
.enableRestartPolicy(false)
.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"))
.interactive(false)
.linuxParameters(linuxParameters)
.logging(logDriver)
.memoryLimitMiB(123)
.memoryReservationMiB(123)
.portMappings(List.of(PortMapping.builder()
.containerPort(123)
// the properties below are optional
.appProtocol(appProtocol)
.containerPortRange("containerPortRange")
.hostPort(123)
.name("name")
.protocol(Protocol.TCP)
.build()))
.privileged(false)
.pseudoTerminal(false)
.readonlyRootFilesystem(false)
.restartAttemptPeriod(Duration.minutes(30))
.restartIgnoredExitCodes(List.of(123))
.secrets(Map.of(
"secretsKey", secret))
.startTimeout(Duration.minutes(30))
.stopTimeout(Duration.minutes(30))
.systemControls(List.of(SystemControl.builder()
.namespace("namespace")
.value("value")
.build()))
.ulimits(List.of(Ulimit.builder()
.hardLimit(123)
.name(UlimitName.CORE)
.softLimit(123)
.build()))
.user("user")
.versionConsistency(VersionConsistency.ENABLED)
.workingDirectory("workingDirectory")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forFirelensLogRouterPropsstatic final classAn implementation forFirelensLogRouterProps -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.ecs.ContainerDefinitionOptions
getCommand, getContainerName, getCpu, getCredentialSpecs, getDisableNetworking, getDnsSearchDomains, getDnsServers, getDockerLabels, getDockerSecurityOptions, getEnableRestartPolicy, getEntryPoint, getEnvironment, getEnvironmentFiles, getEssential, getExtraHosts, getGpuCount, getHealthCheck, getHostname, getImage, getInferenceAcceleratorResources, getInteractive, getLinuxParameters, getLogging, getMemoryLimitMiB, getMemoryReservationMiB, getPortMappings, getPrivileged, getPseudoTerminal, getReadonlyRootFilesystem, getRestartAttemptPeriod, getRestartIgnoredExitCodes, getSecrets, getStartTimeout, getStopTimeout, getSystemControls, getUlimits, getUser, getVersionConsistency, getWorkingDirectoryMethods inherited from interface software.amazon.awscdk.services.ecs.ContainerDefinitionProps
getTaskDefinitionMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFirelensConfig
Firelens configuration. -
builder
- Returns:
- a
FirelensLogRouterProps.BuilderofFirelensLogRouterProps
-