Show / Hide Table of Contents

Interface IRedirectTarget

Specifies a redirect behavior of all requests to a website endpoint of a bucket.

Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public interface IRedirectTarget
Syntax (vb)
Public Interface IRedirectTarget
Remarks

ExampleMetadata: infused

Examples
Bucket bucket = new Bucket(this, "MyRedirectedBucket", new BucketProps {
    WebsiteRedirect = new RedirectTarget { HostName = "www.example.com" }
});

Synopsis

Properties

HostName

Name of the host where requests are redirected.

Protocol

Protocol to use when redirecting requests.

Properties

HostName

Name of the host where requests are redirected.

string HostName { get; }
Property Value

System.String

Protocol

Protocol to use when redirecting requests.

virtual Nullable<RedirectProtocol> Protocol { get; }
Property Value

System.Nullable<RedirectProtocol>

Remarks

Default: - The protocol used in the original request.

Back to top Generated by DocFX