Class CfnDaemonTaskDefinition
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ecs.CfnDaemonTaskDefinition
- All Implemented Interfaces:
IInspectable,IDaemonTaskDefinitionRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-14T18:31:54.285Z")
@Stability(Stable)
public class CfnDaemonTaskDefinition
extends CfnResource
implements IInspectable, IDaemonTaskDefinitionRef, ITaggableV2
Resource Schema describing various properties for ECS DaemonTaskDefinition.
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.*;
CfnDaemonTaskDefinition cfnDaemonTaskDefinition = CfnDaemonTaskDefinition.Builder.create(this, "MyCfnDaemonTaskDefinition")
.containerDefinitions(List.of(DaemonContainerDefinitionProperty.builder()
.image("image")
.name("name")
// the properties below are optional
.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())
.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()
.size(123)
// the properties below are optional
.containerPath("containerPath")
.mountOptions(List.of("mountOptions"))
.build()))
.build())
.logConfiguration(LogConfigurationProperty.builder()
.logDriver("logDriver")
// the properties below are optional
.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()))
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDaemonTaskDefinition.static interfaceExample:static interfaceContainer definition for daemon task definition.static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ecs.IDaemonTaskDefinitionRef
IDaemonTaskDefinitionRef.Jsii$Default, IDaemonTaskDefinitionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDaemonTaskDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDaemonTaskDefinition(software.amazon.jsii.JsiiObjectRef objRef) CfnDaemonTaskDefinition(software.constructs.Construct scope, String id) Create a newAWS::ECS::DaemonTaskDefinition.CfnDaemonTaskDefinition(software.constructs.Construct scope, String id, CfnDaemonTaskDefinitionProps props) Create a newAWS::ECS::DaemonTaskDefinition. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe Amazon Resource Name (ARN) of the Amazon ECS daemon task definition.Tag Manager which manages the tags for this resource.Returns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnDaemonTaskDefinition.DaemonContainerDefinitionProperty>getCpu()A reference to a DaemonTaskDefinition resource.getTags()Returns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnDaemonTaskDefinition.VolumeProperty>voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnDaemonTaskDefinition.renderProperties(Map<String, Object> props) voidsetContainerDefinitions(List<Object> value) voidvoidvoidsetExecutionRoleArn(String value) voidvoidvoidvoidsetTaskRoleArn(String value) voidsetVolumes(List<Object> value) voidsetVolumes(IResolvable value) Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDaemonTaskDefinition
protected CfnDaemonTaskDefinition(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDaemonTaskDefinition
protected CfnDaemonTaskDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDaemonTaskDefinition
@Stability(Stable) public CfnDaemonTaskDefinition(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnDaemonTaskDefinitionProps props) Create a newAWS::ECS::DaemonTaskDefinition.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnDaemonTaskDefinition
@Stability(Stable) public CfnDaemonTaskDefinition(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::ECS::DaemonTaskDefinition.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
arnForDaemonTaskDefinition
@Stability(Stable) @NotNull public static String arnForDaemonTaskDefinition(@NotNull IDaemonTaskDefinitionRef resource) - Parameters:
resource- This parameter is required.
-
isCfnDaemonTaskDefinition
Checks whether the given object is a CfnDaemonTaskDefinition.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrDaemonTaskDefinitionArn
The Amazon Resource Name (ARN) of the Amazon ECS daemon task definition. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDaemonTaskDefinitionRef
A reference to a DaemonTaskDefinition resource.- Specified by:
getDaemonTaskDefinitionRefin interfaceIDaemonTaskDefinitionRef
-
getContainerDefinitions
Returns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnDaemonTaskDefinition.DaemonContainerDefinitionProperty> -
setContainerDefinitions
-
setContainerDefinitions
-
getCpu
-
setCpu
-
getExecutionRoleArn
-
setExecutionRoleArn
-
getFamily
-
setFamily
-
getMemory
-
setMemory
-
getTags
-
setTags
-
getTaskRoleArn
-
setTaskRoleArn
-
getVolumes
Returns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnDaemonTaskDefinition.VolumeProperty> -
setVolumes
-
setVolumes
-