Class RedirectTarget
Specifies a redirect behavior of all requests to a website endpoint of a bucket.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RedirectTarget : IRedirectTarget
Syntax (vb)
Public Class RedirectTarget Implements IRedirectTarget
Remarks
ExampleMetadata: infused
Examples
var bucket = new Bucket(this, "MyRedirectedBucket", new BucketProps {
WebsiteRedirect = new RedirectTarget { HostName = "www.example.com" }
});
Synopsis
Constructors
RedirectTarget() | Specifies a redirect behavior of all requests to a website endpoint of a bucket. |
Properties
HostName | Name of the host where requests are redirected. |
Protocol | Protocol to use when redirecting requests. |
Constructors
RedirectTarget()
Specifies a redirect behavior of all requests to a website endpoint of a bucket.
public RedirectTarget()
Remarks
ExampleMetadata: infused
Examples
var bucket = new Bucket(this, "MyRedirectedBucket", new BucketProps {
WebsiteRedirect = new RedirectTarget { HostName = "www.example.com" }
});
Properties
HostName
Name of the host where requests are redirected.
public string HostName { get; set; }
Property Value
Remarks
ExampleMetadata: infused
Protocol
Protocol to use when redirecting requests.
public RedirectProtocol? Protocol { get; set; }
Property Value
Remarks
Default: - The protocol used in the original request.