Interface CfnBucketPropsMixin.WebsiteConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBucketPropsMixin.WebsiteConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnBucketPropsMixin
@Stability(Stable)
public static interface CfnBucketPropsMixin.WebsiteConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Specifies website configuration parameters for an Amazon S3 bucket.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.s3.*;
WebsiteConfigurationProperty websiteConfigurationProperty = WebsiteConfigurationProperty.builder()
.errorDocument("errorDocument")
.indexDocument("indexDocument")
.redirectAllRequestsTo(RedirectAllRequestsToProperty.builder()
.hostName("hostName")
.protocol("protocol")
.build())
.routingRules(List.of(RoutingRuleProperty.builder()
.redirectRule(RedirectRuleProperty.builder()
.hostName("hostName")
.httpRedirectCode("httpRedirectCode")
.protocol("protocol")
.replaceKeyPrefixWith("replaceKeyPrefixWith")
.replaceKeyWith("replaceKeyWith")
.build())
.routingRuleCondition(RoutingRuleConditionProperty.builder()
.httpErrorCodeReturnedEquals("httpErrorCodeReturnedEquals")
.keyPrefixEquals("keyPrefixEquals")
.build())
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBucketPropsMixin.WebsiteConfigurationPropertystatic final classAn implementation forCfnBucketPropsMixin.WebsiteConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe name of the error document for the website.default StringThe name of the index document for the website.default ObjectThe redirect behavior for every request to this bucket's website endpoint.default ObjectRules that define when a redirect is applied and the redirect behavior.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getErrorDocument
The name of the error document for the website.- See Also:
-
getIndexDocument
The name of the index document for the website.- See Also:
-
getRedirectAllRequestsTo
The redirect behavior for every request to this bucket's website endpoint.If you specify this property, you can't specify any other property.
Returns union: either
IResolvableorCfnBucketPropsMixin.RedirectAllRequestsToProperty- See Also:
-
getRoutingRules
Rules that define when a redirect is applied and the redirect behavior.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBucketPropsMixin.RoutingRuleProperty>- See Also:
-
builder
-