Class CfnBucketPropsMixin.RedirectAllRequestsToProperty
Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.S3.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnBucketPropsMixin.RedirectAllRequestsToProperty : CfnBucketPropsMixin.IRedirectAllRequestsToProperty
Syntax (vb)
Public Class CfnBucketPropsMixin.RedirectAllRequestsToProperty Implements CfnBucketPropsMixin.IRedirectAllRequestsToProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.S3.Mixins;
var redirectAllRequestsToProperty = new RedirectAllRequestsToProperty {
HostName = "hostName",
Protocol = "protocol"
};
Synopsis
Constructors
| RedirectAllRequestsToProperty() | Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket. |
Properties
| HostName | Name of the host where requests are redirected. |
| Protocol | Protocol to use when redirecting requests. |
Constructors
RedirectAllRequestsToProperty()
Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.
public RedirectAllRequestsToProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.S3.Mixins;
var redirectAllRequestsToProperty = new RedirectAllRequestsToProperty {
HostName = "hostName",
Protocol = "protocol"
};
Properties
HostName
Name of the host where requests are redirected.
public string? HostName { get; set; }
Property Value
Remarks
Protocol
Protocol to use when redirecting requests.
public string? Protocol { get; set; }
Property Value
Remarks
The default is the protocol that is used in the original request.