Class CfnApp.CustomRuleProperty.Jsii$Proxy

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

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

    • getSource

      public final String getSource()
      Description copied from interface: CfnApp.CustomRuleProperty
      The source pattern for a URL rewrite or redirect rule.

      Length Constraints: Minimum length of 1. Maximum length of 2048.

      Pattern: (?s).+

      Specified by:
      getSource in interface CfnApp.CustomRuleProperty
    • getTarget

      public final String getTarget()
      Description copied from interface: CfnApp.CustomRuleProperty
      The target pattern for a URL rewrite or redirect rule.

      Length Constraints: Minimum length of 1. Maximum length of 2048.

      Pattern: (?s).+

      Specified by:
      getTarget in interface CfnApp.CustomRuleProperty
    • getCondition

      public final String getCondition()
      Description copied from interface: CfnApp.CustomRuleProperty
      The condition for a URL rewrite or redirect rule, such as a country code.

      Length Constraints: Minimum length of 0. Maximum length of 2048.

      Pattern: (?s).*

      Specified by:
      getCondition in interface CfnApp.CustomRuleProperty
    • getStatus

      public final String getStatus()
      Description copied from interface: CfnApp.CustomRuleProperty
      The status code for a URL rewrite or redirect rule.

      • 200 - Represents a 200 rewrite rule.
      • 301 - Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
      • 302 - Represents a 302 temporary redirect rule.
      • 404 - Represents a 404 redirect rule.
      • 404-200 - Represents a 404 rewrite rule.

      Length Constraints: Minimum length of 3. Maximum length of 7.

      Pattern: .{3,7}

      Specified by:
      getStatus in interface CfnApp.CustomRuleProperty
    • $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