Show / Hide Table of Contents

Class RedirectTarget

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

Inheritance
System.Object
RedirectTarget
Implements
IRedirectTarget
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public class RedirectTarget : Object, IRedirectTarget
Syntax (vb)
Public Class RedirectTarget
    Inherits Object
    Implements IRedirectTarget
Remarks

ExampleMetadata: infused

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

Synopsis

Constructors

RedirectTarget()

Properties

HostName

Name of the host where requests are redirected.

Protocol

Protocol to use when redirecting requests.

Constructors

RedirectTarget()

public RedirectTarget()

Properties

HostName

Name of the host where requests are redirected.

public string HostName { get; set; }
Property Value

System.String

Protocol

Protocol to use when redirecting requests.

public Nullable<RedirectProtocol> Protocol { get; set; }
Property Value

System.Nullable<RedirectProtocol>

Remarks

Default: - The protocol used in the original request.

Implements

IRedirectTarget
Back to top Generated by DocFX