Class ForceNewDeployment.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.ForceNewDeployment.Jsii$Proxy
All Implemented Interfaces:
ForceNewDeployment, software.amazon.jsii.JsiiSerializable
Enclosing interface:
ForceNewDeployment

@Stability(Stable) @Internal public static final class ForceNewDeployment.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ForceNewDeployment
An implementation for ForceNewDeployment
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ecs.ForceNewDeployment

    ForceNewDeployment.Builder, ForceNewDeployment.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor that initializes the object based on literal property values passed by the ForceNewDeployment.Builder.
    protected
    Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
    Constructor that initializes the object based on values retrieved from the JsiiObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
     
    final boolean
     
    final Boolean
    Whether to enable the force-new-deployment mechanism for the service.
    final String
    A unique nonce value that signals Amazon ECS to start a new deployment.
    final int
     

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(ForceNewDeployment.Builder builder)
      Constructor that initializes the object based on literal property values passed by the ForceNewDeployment.Builder.
  • Method Details

    • getEnabled

      public final Boolean getEnabled()
      Description copied from interface: ForceNewDeployment
      Whether to enable the force-new-deployment mechanism for the service.

      Setting this to true enables the mechanism, but on its own it does not force a new deployment on every cdk deploy: CloudFormation only starts a new deployment when it detects a change in the template, and the signal for that is the nonce value changing between deployments. If nonce is not provided or its value stays the same across deployments, no new deployment is forced. When set to false, the ForceNewDeployment property is rendered with EnableForceNewDeployment: false.

      To force a new deployment on every cdk deploy, provide a nonce with a unique, time-varying value such as a timestamp, random string, or sequence number (e.g. Date.now().toString()).

      Specified by:
      getEnabled in interface ForceNewDeployment
      See Also:
    • getNonce

      public final String getNonce()
      Description copied from interface: ForceNewDeployment
      A unique nonce value that signals Amazon ECS to start a new deployment.

      When you change this value, it triggers a new deployment even though no other service parameters have changed. Use a stable, time-varying value like a commit hash, image digest, or version string.

      If not provided and enabled is true, only EnableForceNewDeployment is set without a nonce.

      Must be between 1 and 255 characters.

      Default: - no nonce

      Specified by:
      getNonce in interface ForceNewDeployment
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object