Show / Hide Table of Contents

Class RedirectTarget

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

Inheritance
object
RedirectTarget
Implements
IRedirectTarget
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

string

Remarks

ExampleMetadata: infused

Protocol

Protocol to use when redirecting requests.

public RedirectProtocol? Protocol { get; set; }
Property Value

RedirectProtocol?

Remarks

Default: - The protocol used in the original request.

Implements

IRedirectTarget
Back to top Generated by DocFX