-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnBucket_WebsiteConfigurationProperty.go
61 lines (58 loc) · 2.85 KB
/
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
51
52
53
54
55
56
57
58
59
60
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"),
// },
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-websiteconfiguration.html
//
type CfnBucket_WebsiteConfigurationProperty struct {
// The name of the error document for the website.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-websiteconfiguration.html#cfn-s3-bucket-websiteconfiguration-errordocument
//
ErrorDocument *string `field:"optional" json:"errorDocument" yaml:"errorDocument"`
// The name of the index document for the website.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-websiteconfiguration.html#cfn-s3-bucket-websiteconfiguration-indexdocument
//
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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-websiteconfiguration.html#cfn-s3-bucket-websiteconfiguration-redirectallrequeststo
//
RedirectAllRequestsTo interface{} `field:"optional" json:"redirectAllRequestsTo" yaml:"redirectAllRequestsTo"`
// Rules that define when a redirect is applied and the redirect behavior.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-websiteconfiguration.html#cfn-s3-bucket-websiteconfiguration-routingrules
//
RoutingRules interface{} `field:"optional" json:"routingRules" yaml:"routingRules"`
}