Class CfnDaemon

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IDaemonRef, 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.282Z") @Stability(Stable) public class CfnDaemon extends CfnResource implements IInspectable, IDaemonRef, ITaggableV2
Resource schema for AWS ECS Daemon.

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.*;
 CfnDaemon cfnDaemon = CfnDaemon.Builder.create(this, "MyCfnDaemon")
         .capacityProviderArns(List.of("capacityProviderArns"))
         .clusterArn("clusterArn")
         .daemonName("daemonName")
         .daemonTaskDefinitionArn("daemonTaskDefinitionArn")
         .deploymentConfiguration(DaemonDeploymentConfigurationProperty.builder()
                 .alarms(DaemonAlarmConfigurationProperty.builder()
                         .alarmNames(List.of("alarmNames"))
                         .enable(false)
                         .build())
                 .bakeTimeInMinutes(123)
                 .drainPercent(123)
                 .build())
         .enableEcsManagedTags(false)
         .enableExecuteCommand(false)
         .propagateTags("propagateTags")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnDaemon

      protected CfnDaemon(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnDaemon

      protected CfnDaemon(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnDaemon

      @Stability(Stable) public CfnDaemon(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnDaemonProps props)
      Create a new AWS::ECS::Daemon.

      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.
    • CfnDaemon

      @Stability(Stable) public CfnDaemon(@NotNull software.constructs.Construct scope, @NotNull String id)
      Create a new AWS::ECS::Daemon.

      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

    • arnForDaemon

      @Stability(Stable) @NotNull public static String arnForDaemon(@NotNull IDaemonRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnDaemon

      @Stability(Stable) @NotNull public static Boolean isCfnDaemon(@NotNull Object x)
      Checks whether the given object is a CfnDaemon.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
    • getAttrDaemonArn

      @Stability(Stable) @NotNull public String getAttrDaemonArn()
    • getAttrDaemonStatus

      @Stability(Stable) @NotNull public String getAttrDaemonStatus()
    • getAttrDeploymentArn

      @Stability(Stable) @NotNull public String getAttrDeploymentArn()
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getDaemonRef

      @Stability(Stable) @NotNull public DaemonReference getDaemonRef()
      A reference to a Daemon resource.
      Specified by:
      getDaemonRef in interface IDaemonRef
    • getCapacityProviderArns

      @Stability(Stable) @Nullable public List<String> getCapacityProviderArns()
    • setCapacityProviderArns

      @Stability(Stable) public void setCapacityProviderArns(@Nullable List<String> value)
    • getClusterArn

      @Stability(Stable) @Nullable public String getClusterArn()
    • setClusterArn

      @Stability(Stable) public void setClusterArn(@Nullable String value)
    • getDaemonName

      @Stability(Stable) @Nullable public String getDaemonName()
    • setDaemonName

      @Stability(Stable) public void setDaemonName(@Nullable String value)
    • getDaemonTaskDefinitionArn

      @Stability(Stable) @Nullable public String getDaemonTaskDefinitionArn()
    • setDaemonTaskDefinitionArn

      @Stability(Stable) public void setDaemonTaskDefinitionArn(@Nullable String value)
    • getDeploymentConfiguration

      @Stability(Stable) @Nullable public Object getDeploymentConfiguration()
    • setDeploymentConfiguration

      @Stability(Stable) public void setDeploymentConfiguration(@Nullable IResolvable value)
    • setDeploymentConfiguration

      @Stability(Stable) public void setDeploymentConfiguration(@Nullable CfnDaemon.DaemonDeploymentConfigurationProperty value)
    • getEnableEcsManagedTags

      @Stability(Stable) @Nullable public Object getEnableEcsManagedTags()
      Returns union: either Boolean or IResolvable
    • setEnableEcsManagedTags

      @Stability(Stable) public void setEnableEcsManagedTags(@Nullable Boolean value)
    • setEnableEcsManagedTags

      @Stability(Stable) public void setEnableEcsManagedTags(@Nullable IResolvable value)
    • getEnableExecuteCommand

      @Stability(Stable) @Nullable public Object getEnableExecuteCommand()
      Returns union: either Boolean or IResolvable
    • setEnableExecuteCommand

      @Stability(Stable) public void setEnableExecuteCommand(@Nullable Boolean value)
    • setEnableExecuteCommand

      @Stability(Stable) public void setEnableExecuteCommand(@Nullable IResolvable value)
    • getPropagateTags

      @Stability(Stable) @Nullable public String getPropagateTags()
    • setPropagateTags

      @Stability(Stable) public void setPropagateTags(@Nullable String value)
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)