@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:05.661Z") @Stability(value=Experimental) public class FirelensLogRouter extends ContainerDefinition
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.services.ecs.*;
ContainerImage containerImage;
Duration duration;
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)
.retries(123)
.startPeriod(duration)
.timeout(duration)
.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)
.stopTimeout(duration)
.systemControls(List.of(SystemControl.builder()
.namespace("namespace")
.value("value")
.build()))
.user("user")
.workingDirectory("workingDirectory")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
FirelensLogRouter.Builder
(experimental) A fluent builder for
FirelensLogRouter. |
software.amazon.jsii.JsiiObject.InitializationModeIConstruct.Jsii$Default, IConstruct.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
FirelensLogRouter(software.constructs.Construct scope,
String id,
FirelensLogRouterProps props)
(experimental) Constructs a new instance of the FirelensLogRouter class.
|
protected |
FirelensLogRouter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FirelensLogRouter(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
FirelensConfig |
getFirelensConfig()
(experimental) Firelens configuration.
|
CfnTaskDefinition.ContainerDefinitionProperty |
renderContainerDefinition()
(experimental) Render this container definition to a CloudFormation object.
|
CfnTaskDefinition.ContainerDefinitionProperty |
renderContainerDefinition(TaskDefinition _taskDefinition)
(experimental) Render this container definition to a CloudFormation object.
|
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, getVolumesFromgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected FirelensLogRouter(software.amazon.jsii.JsiiObjectRef objRef)
protected FirelensLogRouter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public FirelensLogRouter(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
FirelensLogRouterProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public CfnTaskDefinition.ContainerDefinitionProperty renderContainerDefinition(@Nullable TaskDefinition _taskDefinition)
renderContainerDefinition in class ContainerDefinition_taskDefinition - @Stability(value=Experimental) @NotNull public CfnTaskDefinition.ContainerDefinitionProperty renderContainerDefinition()
renderContainerDefinition in class ContainerDefinition@Stability(value=Experimental) @NotNull public FirelensConfig getFirelensConfig()
Copyright © 2022. All rights reserved.