Class CfnDaemonTaskDefinitionPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnDaemonTaskDefinitionPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)",
date="2026-05-21T17:27:52.283Z")
@Stability(Stable)
public class CfnDaemonTaskDefinitionPropsMixin
extends Mixin
implements software.constructs.IMixin
The details of a daemon task definition.
A daemon task definition is a template that describes the containers that form a daemon. Daemons deploy cross-cutting software agents independently across your Amazon ECS infrastructure.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.ecs.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnDaemonTaskDefinitionPropsMixin cfnDaemonTaskDefinitionPropsMixin = CfnDaemonTaskDefinitionPropsMixin.Builder.create(CfnDaemonTaskDefinitionMixinProps.builder()
.containerDefinitions(List.of(DaemonContainerDefinitionProperty.builder()
.command(List.of("command"))
.cpu(123)
.dependsOn(List.of(ContainerDependencyProperty.builder()
.condition("condition")
.containerName("containerName")
.build()))
.entryPoint(List.of("entryPoint"))
.environment(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.environmentFiles(List.of(EnvironmentFileProperty.builder()
.type("type")
.value("value")
.build()))
.essential(false)
.firelensConfiguration(FirelensConfigurationProperty.builder()
.options(Map.of(
"optionsKey", "options"))
.type("type")
.build())
.healthCheck(HealthCheckProperty.builder()
.command(List.of("command"))
.interval(123)
.retries(123)
.startPeriod(123)
.timeout(123)
.build())
.image("image")
.interactive(false)
.linuxParameters(LinuxParametersProperty.builder()
.capabilities(KernelCapabilitiesProperty.builder()
.add(List.of("add"))
.drop(List.of("drop"))
.build())
.devices(List.of(DeviceProperty.builder()
.containerPath("containerPath")
.hostPath("hostPath")
.permissions(List.of("permissions"))
.build()))
.initProcessEnabled(false)
.tmpfs(List.of(TmpfsProperty.builder()
.containerPath("containerPath")
.mountOptions(List.of("mountOptions"))
.size(123)
.build()))
.build())
.logConfiguration(LogConfigurationProperty.builder()
.logDriver("logDriver")
.options(Map.of(
"optionsKey", "options"))
.secretOptions(List.of(SecretProperty.builder()
.name("name")
.valueFrom("valueFrom")
.build()))
.build())
.memory(123)
.memoryReservation(123)
.mountPoints(List.of(MountPointProperty.builder()
.containerPath("containerPath")
.readOnly(false)
.sourceVolume("sourceVolume")
.build()))
.name("name")
.privileged(false)
.pseudoTerminal(false)
.readonlyRootFilesystem(false)
.repositoryCredentials(RepositoryCredentialsProperty.builder()
.credentialsParameter("credentialsParameter")
.build())
.restartPolicy(RestartPolicyProperty.builder()
.enabled(false)
.ignoredExitCodes(List.of(123))
.restartAttemptPeriod(123)
.build())
.secrets(List.of(SecretProperty.builder()
.name("name")
.valueFrom("valueFrom")
.build()))
.startTimeout(123)
.stopTimeout(123)
.systemControls(List.of(SystemControlProperty.builder()
.namespace("namespace")
.value("value")
.build()))
.ulimits(List.of(UlimitProperty.builder()
.hardLimit(123)
.name("name")
.softLimit(123)
.build()))
.user("user")
.workingDirectory("workingDirectory")
.build()))
.cpu("cpu")
.executionRoleArn("executionRoleArn")
.family("family")
.memory("memory")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.taskRoleArn("taskRoleArn")
.volumes(List.of(VolumeProperty.builder()
.host(HostVolumePropertiesProperty.builder()
.sourcePath("sourcePath")
.build())
.name("name")
.build()))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDaemonTaskDefinitionPropsMixin.static interfaceThe dependencies defined for container startup and shutdown.static interfaceA container definition for a daemon task.static interfaceAn object representing a container instance host device.static interfaceA list of files containing the environment variables to pass to a container.static interfaceThe FireLens configuration for the container.static interfaceAn object representing a container health check.static interfaceDetails on a container instance bind mount host volume.static interfaceThe Linux capabilities to add or remove from the default Docker configuration for a container defined in the task definition.static interfaceA key-value pair object.static interfaceThe Linux-specific options that are applied to the container, such as Linux KernelCapabilities.static interfaceThe log configuration for the container.static interfaceThe details for a volume mount point that's used in a container definition.static interfaceThe repository credentials for private registry authentication.static interfaceExample:static interfaceAn object representing the secret to expose to your container.static interfaceA list of namespaced kernel parameters to set in the container.static interfaceThe container path, mount options, and size of the tmpfs mount.static interfaceTheulimitsettings to pass to the container.static interfaceThe data volume configuration for tasks launched using this task definition.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::ECS::DaemonTaskDefinition.CfnDaemonTaskDefinitionPropsMixin(CfnDaemonTaskDefinitionMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::ECS::DaemonTaskDefinition.protectedCfnDaemonTaskDefinitionPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDaemonTaskDefinitionPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnDaemonTaskDefinitionMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnDaemonTaskDefinitionPropsMixin
protected CfnDaemonTaskDefinitionPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDaemonTaskDefinitionPropsMixin
protected CfnDaemonTaskDefinitionPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDaemonTaskDefinitionPropsMixin
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin(@NotNull CfnDaemonTaskDefinitionMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::ECS::DaemonTaskDefinition.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnDaemonTaskDefinitionPropsMixin
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin(@NotNull CfnDaemonTaskDefinitionMixinProps props) Create a mixin to apply properties toAWS::ECS::DaemonTaskDefinition.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-