Class CfnCanary.ScheduleProperty.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class CfnCanary.ScheduleProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnCanary.ScheduleProperty
An implementation for CfnCanary.ScheduleProperty
  • 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(CfnCanary.ScheduleProperty.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CfnCanary.ScheduleProperty.Builder.
  • Method Details

    • getExpression

      public final String getExpression()
      Description copied from interface: CfnCanary.ScheduleProperty
      A rate expression or a cron expression that defines how often the canary is to run.

      For a rate expression, The syntax is rate( *number unit* ) . unit can be minute , minutes , or hour .

      For example, rate(1 minute) runs the canary once a minute, rate(10 minutes) runs it once every 10 minutes, and rate(1 hour) runs it once every hour. You can specify a frequency between rate(1 minute) and rate(1 hour) .

      Specifying rate(0 minute) or rate(0 hour) is a special value that causes the canary to run only once when it is started.

      Use cron( *expression* ) to specify a cron expression. You can't schedule a canary to wait for more than a year before running. For information about the syntax for cron expressions, see Scheduling canary runs using cron .

      Specified by:
      getExpression in interface CfnCanary.ScheduleProperty
    • getDurationInSeconds

      public final String getDurationInSeconds()
      Description copied from interface: CfnCanary.ScheduleProperty
      How long, in seconds, for the canary to continue making regular runs according to the schedule in the Expression value.

      If you specify 0, the canary continues making runs until you stop it. If you omit this field, the default of 0 is used.

      Specified by:
      getDurationInSeconds in interface CfnCanary.ScheduleProperty
    • $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