-
Notifications
You must be signed in to change notification settings - Fork 17
/
awss3_CfnBucket_WebsiteConfigurationProperty.go
51 lines (48 loc) · 2.04 KB
/
awss3_CfnBucket_WebsiteConfigurationProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package awss3
// 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 "github.com/aws/aws-cdk-go/awscdk"
//
// websiteConfigurationProperty := &websiteConfigurationProperty{
// errorDocument: jsii.String("errorDocument"),
// indexDocument: jsii.String("indexDocument"),
// redirectAllRequestsTo: &redirectAllRequestsToProperty{
// hostName: jsii.String("hostName"),
//
// // the properties below are optional
// protocol: jsii.String("protocol"),
// },
// routingRules: []interface{}{
// &routingRuleProperty{
// redirectRule: &redirectRuleProperty{
// hostName: jsii.String("hostName"),
// httpRedirectCode: jsii.String("httpRedirectCode"),
// protocol: jsii.String("protocol"),
// replaceKeyPrefixWith: jsii.String("replaceKeyPrefixWith"),
// replaceKeyWith: jsii.String("replaceKeyWith"),
// },
//
// // the properties below are optional
// routingRuleCondition: &routingRuleConditionProperty{
// httpErrorCodeReturnedEquals: jsii.String("httpErrorCodeReturnedEquals"),
// keyPrefixEquals: jsii.String("keyPrefixEquals"),
// },
// },
// },
// }
//
type CfnBucket_WebsiteConfigurationProperty struct {
// The name of the error document for the website.
ErrorDocument *string `field:"optional" json:"errorDocument" yaml:"errorDocument"`
// The name of the index document for the website.
IndexDocument *string `field:"optional" json:"indexDocument" yaml:"indexDocument"`
// The redirect behavior for every request to this bucket's website endpoint.
//
// > If you specify this property, you can't specify any other property.
RedirectAllRequestsTo interface{} `field:"optional" json:"redirectAllRequestsTo" yaml:"redirectAllRequestsTo"`
// Rules that define when a redirect is applied and the redirect behavior.
RoutingRules interface{} `field:"optional" json:"routingRules" yaml:"routingRules"`
}