Class CustomRule.Builder
java.lang.Object
software.amazon.awscdk.services.amplify.alpha.CustomRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomRule>
- Enclosing class:
CustomRule
@Stability(Experimental)
public static final class CustomRule.Builder
extends Object
implements software.amazon.jsii.Builder<CustomRule>
(experimental) A fluent builder for
CustomRule
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
(experimental) The condition for a URL rewrite or redirect rule, e.g.static CustomRule.Builder
create()
(experimental) The source pattern for a URL rewrite or redirect rule.status
(RedirectStatus status) (experimental) The status code for a URL rewrite or redirect rule.(experimental) The target pattern for a URL rewrite or redirect rule.
-
Method Details
-
create
- Returns:
- a new instance of
CustomRule.Builder
.
-
source
(experimental) The source pattern for a URL rewrite or redirect rule.- Parameters:
source
- The source pattern for a URL rewrite or redirect rule. This parameter is required.- Returns:
this
- See Also:
-
target
(experimental) The target pattern for a URL rewrite or redirect rule.- Parameters:
target
- The target pattern for a URL rewrite or redirect rule. This parameter is required.- Returns:
this
- See Also:
-
condition
(experimental) The condition for a URL rewrite or redirect rule, e.g. country code.Default: - no condition
- Parameters:
condition
- The condition for a URL rewrite or redirect rule, e.g. country code. This parameter is required.- Returns:
this
- See Also:
-
status
(experimental) The status code for a URL rewrite or redirect rule.Default: PERMANENT_REDIRECT
- Parameters:
status
- The status code for a URL rewrite or redirect rule. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CustomRule>
- Returns:
- a newly built instance of
CustomRule
.
-