-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnBucket_RedirectAllRequestsToProperty.go
32 lines (29 loc) · 1.32 KB
/
CfnBucket_RedirectAllRequestsToProperty.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
package awss3
// Specifies the redirect behavior of all requests to a website endpoint of 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"
//
// redirectAllRequestsToProperty := &RedirectAllRequestsToProperty{
// HostName: jsii.String("hostName"),
//
// // the properties below are optional
// Protocol: jsii.String("protocol"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-redirectallrequeststo.html
//
type CfnBucket_RedirectAllRequestsToProperty struct {
// Name of the host where requests are redirected.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-redirectallrequeststo.html#cfn-s3-bucket-redirectallrequeststo-hostname
//
HostName *string `field:"required" json:"hostName" yaml:"hostName"`
// Protocol to use when redirecting requests.
//
// The default is the protocol that is used in the original request.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-redirectallrequeststo.html#cfn-s3-bucket-redirectallrequeststo-protocol
//
Protocol *string `field:"optional" json:"protocol" yaml:"protocol"`
}