Interface CfnBucket.WebsiteConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnBucket.WebsiteConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnBucket

@Stability(Stable) public static interface CfnBucket.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.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();
 

See Also: