RedirectStatus
- class aws_cdk.aws_amplify_alpha.RedirectStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
(experimental) The status code for a URL rewrite or redirect rule.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# amplify_app: amplify.App amplify_app.add_custom_rule({ "source": "/docs/specific-filename.html", "target": "/documents/different-filename.html", "status": amplify.RedirectStatus.TEMPORARY_REDIRECT })
Attributes
- NOT_FOUND
(experimental) Not found (404).
- Stability:
experimental
- NOT_FOUND_REWRITE
(experimental) Not found rewrite (404).
- Stability:
experimental
- PERMANENT_REDIRECT
(experimental) Permanent redirect (301).
- Stability:
experimental
- REWRITE
(experimental) Rewrite (200).
- Stability:
experimental
- TEMPORARY_REDIRECT
(experimental) Temporary redirect (302).
- Stability:
experimental