Class RedirectStatus
(experimental) The status code for a URL rewrite or redirect rule.
Inheritance
System.Object
RedirectStatus
Namespace: Amazon.CDK.AWS.Amplify.Alpha
Assembly: Amazon.CDK.AWS.Amplify.Alpha.dll
Syntax (csharp)
public sealed class RedirectStatus : Enum
Syntax (vb)
Public NotInheritable Class RedirectStatus
Inherits
Enum
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
App amplifyApp;
amplifyApp.AddCustomRule(new Dictionary<string, object> {
{ "source", "/docs/specific-filename.html" },
{ "target", "/documents/different-filename.html" },
{ "status", RedirectStatus.TEMPORARY_REDIRECT }
});
Synopsis
Fields
NOT_FOUND | (experimental) Not found (404). |
NOT_FOUND_REWRITE | (experimental) Not found rewrite (404). |
PERMANENT_REDIRECT | (experimental) Permanent redirect (301). |
REWRITE | (experimental) Rewrite (200). |
TEMPORARY_REDIRECT | (experimental) Temporary redirect (302). |
value__ |
Fields
NOT_FOUND
(experimental) Not found (404).
public const RedirectStatus NOT_FOUND
Field Value
Type | Description |
---|---|
RedirectStatus |
Remarks
Stability: Experimental
NOT_FOUND_REWRITE
(experimental) Not found rewrite (404).
public const RedirectStatus NOT_FOUND_REWRITE
Field Value
Type | Description |
---|---|
RedirectStatus |
Remarks
Stability: Experimental
PERMANENT_REDIRECT
(experimental) Permanent redirect (301).
public const RedirectStatus PERMANENT_REDIRECT
Field Value
Type | Description |
---|---|
RedirectStatus |
Remarks
Stability: Experimental
REWRITE
(experimental) Rewrite (200).
public const RedirectStatus REWRITE
Field Value
Type | Description |
---|---|
RedirectStatus |
Remarks
Stability: Experimental
TEMPORARY_REDIRECT
(experimental) Temporary redirect (302).
public const RedirectStatus TEMPORARY_REDIRECT
Field Value
Type | Description |
---|---|
RedirectStatus |
Remarks
Stability: Experimental
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |