Exemple #1
0
func getBucketLocation(c *s3.S3) {
	out, err := c.GetBucketLocation(
		&s3.GetBucketLocationInput{
			Bucket: &bucket,
		},
	)
	if err != nil {
		panic(err)
	}
	if *out.LocationConstraint != "HANGZHOU" {
		panic("location expected HANGZHOU but not")
	}
}