@Stability(value=Stable)
public static interface CfnBucket.WebsiteConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3.*;
WebsiteConfigurationProperty websiteConfigurationProperty = WebsiteConfigurationProperty.builder()
.errorDocument("errorDocument")
.indexDocument("indexDocument")
.redirectAllRequestsTo(RedirectAllRequestsToProperty.builder()
.hostName("hostName")
// the properties below are optional
.protocol("protocol")
.build())
.routingRules(List.of(RoutingRuleProperty.builder()
.redirectRule(RedirectRuleProperty.builder()
.hostName("hostName")
.httpRedirectCode("httpRedirectCode")
.protocol("protocol")
.replaceKeyPrefixWith("replaceKeyPrefixWith")
.replaceKeyWith("replaceKeyWith")
.build())
// the properties below are optional
.routingRuleCondition(RoutingRuleConditionProperty.builder()
.httpErrorCodeReturnedEquals("httpErrorCodeReturnedEquals")
.keyPrefixEquals("keyPrefixEquals")
.build())
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBucket.WebsiteConfigurationProperty.Builder
A builder for
CfnBucket.WebsiteConfigurationProperty |
static class |
CfnBucket.WebsiteConfigurationProperty.Jsii$Proxy
An implementation for
CfnBucket.WebsiteConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBucket.WebsiteConfigurationProperty.Builder |
builder() |
default String |
getErrorDocument()
The name of the error document for the website.
|
default String |
getIndexDocument()
The name of the index document for the website.
|
default Object |
getRedirectAllRequestsTo()
The redirect behavior for every request to this bucket's website endpoint.
|
default Object |
getRoutingRules()
Rules that define when a redirect is applied and the redirect behavior.
|
@Stability(value=Stable) @Nullable default String getErrorDocument()
@Stability(value=Stable) @Nullable default String getIndexDocument()
@Stability(value=Stable) @Nullable default Object getRedirectAllRequestsTo()
If you specify this property, you can't specify any other property.
@Stability(value=Stable) @Nullable default Object getRoutingRules()
@Stability(value=Stable) static CfnBucket.WebsiteConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.