This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.
AWS::AmplifyGen3::DomainAssociation RedirectRouting
The redirect settings for a domain.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "StatusCode" :String, "TargetUrl" :String}
YAML
StatusCode:StringTargetUrl:String
Properties
StatusCode-
The HTTP status code to return for the redirect.
Required: Yes
Type: String
Allowed values:
HTTP_301 | HTTP_302 | HTTP_307 | HTTP_308Update requires: No interruption
TargetUrl-
The URL to redirect requests to.
Required: Yes
Type: String
Pattern:
^https://.*$Minimum:
8Maximum:
2048Update requires: No interruption