Class FirelensLogRouter
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.services.ecs.ContainerDefinition
software.amazon.awscdk.services.ecs.FirelensLogRouter
- 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();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFirelensLogRouter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedFirelensLogRouter(software.amazon.jsii.JsiiObjectRef objRef) FirelensLogRouter(software.constructs.Construct scope, String id, FirelensLogRouterProps props) Constructs a new instance of the FirelensLogRouter class. -
Method Summary
Modifier and TypeMethodDescriptionFirelens configuration.Render this container definition to a CloudFormation object.renderContainerDefinition(TaskDefinition _taskDefinition) Render this container definition to a CloudFormation object.Methods inherited from class software.amazon.awscdk.services.ecs.ContainerDefinition
addContainerDependencies, addEnvironment, addInferenceAcceleratorResource, addLink, addLink, addMountPoints, addPortMappings, addScratch, addToExecutionPolicy, addUlimits, addVolumesFrom, findPortMapping, getContainerDependencies, getContainerName, getContainerPort, getEnvironmentFiles, getEssential, getImageName, getIngressPort, getLinuxParameters, getLogDriverConfig, getMemoryLimitSpecified, getMountPoints, getPortMappings, getReferencesSecretJsonField, getTaskDefinition, getUlimits, getVolumesFromMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
-
renderContainerDefinition
@Stability(Stable) @NotNull public CfnTaskDefinition.ContainerDefinitionProperty renderContainerDefinition(@Nullable TaskDefinition _taskDefinition) Render this container definition to a CloudFormation object.- Overrides:
renderContainerDefinitionin classContainerDefinition- Parameters:
_taskDefinition-
-
renderContainerDefinition
@Stability(Stable) @NotNull public CfnTaskDefinition.ContainerDefinitionProperty renderContainerDefinition()Render this container definition to a CloudFormation object.- Overrides:
renderContainerDefinitionin classContainerDefinition
-
getFirelensConfig
Firelens configuration.
-