Interface CfnBucket.IWebsiteConfigurationProperty
Specifies website configuration parameters for an Amazon S3 bucket.
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public interface IWebsiteConfigurationProperty
Syntax (vb)
Public Interface IWebsiteConfigurationProperty
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.AWS.S3;
var websiteConfigurationProperty = new WebsiteConfigurationProperty {
ErrorDocument = "errorDocument",
IndexDocument = "indexDocument",
RedirectAllRequestsTo = new RedirectAllRequestsToProperty {
HostName = "hostName",
// the properties below are optional
Protocol = "protocol"
},
RoutingRules = new [] { new RoutingRuleProperty {
RedirectRule = new RedirectRuleProperty {
HostName = "hostName",
HttpRedirectCode = "httpRedirectCode",
Protocol = "protocol",
ReplaceKeyPrefixWith = "replaceKeyPrefixWith",
ReplaceKeyWith = "replaceKeyWith"
},
// the properties below are optional
RoutingRuleCondition = new RoutingRuleConditionProperty {
HttpErrorCodeReturnedEquals = "httpErrorCodeReturnedEquals",
KeyPrefixEquals = "keyPrefixEquals"
}
} }
};
Synopsis
Properties
ErrorDocument | The name of the error document for the website. |
IndexDocument | The name of the index document for the website. |
RedirectAllRequestsTo | The redirect behavior for every request to this bucket's website endpoint. |
RoutingRules | Rules that define when a redirect is applied and the redirect behavior. |
Properties
ErrorDocument
The name of the error document for the website.
virtual string ErrorDocument { get; }
Property Value
System.String
Remarks
IndexDocument
The name of the index document for the website.
virtual string IndexDocument { get; }
Property Value
System.String
Remarks
RedirectAllRequestsTo
The redirect behavior for every request to this bucket's website endpoint.
virtual object RedirectAllRequestsTo { get; }
Property Value
System.Object
Remarks
If you specify this property, you can't specify any other property.
RoutingRules
Rules that define when a redirect is applied and the redirect behavior.
virtual object RoutingRules { get; }
Property Value
System.Object