Interface CustomRuleOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CustomRuleOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:25.400Z")
@Stability(Experimental)
public interface CustomRuleOptions
extends software.amazon.jsii.JsiiSerializable
(experimental) Options for a custom rewrite/redirect rule for an Amplify App.
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.amplify.alpha.*; CustomRuleOptions customRuleOptions = CustomRuleOptions.builder() .source("source") .target("target") // the properties below are optional .condition("condition") .status(RedirectStatus.REWRITE) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCustomRuleOptions
static final class
An implementation forCustomRuleOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomRuleOptions.Builder
builder()
default String
(experimental) The condition for a URL rewrite or redirect rule, e.g.(experimental) The source pattern for a URL rewrite or redirect rule.default RedirectStatus
(experimental) The status code for a URL rewrite or redirect rule.(experimental) The target pattern for a URL rewrite or redirect rule.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSource
(experimental) The source pattern for a URL rewrite or redirect rule.- See Also:
-
getTarget
(experimental) The target pattern for a URL rewrite or redirect rule.- See Also:
-
getCondition
(experimental) The condition for a URL rewrite or redirect rule, e.g. country code.Default: - no condition
- See Also:
-
getStatus
(experimental) The status code for a URL rewrite or redirect rule.Default: PERMANENT_REDIRECT
- See Also:
-
builder
- Returns:
- a
CustomRuleOptions.Builder
ofCustomRuleOptions
-