1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
package customizations
import "github.com/aws/smithy-go"
// GetPropertiesBackend returns a resolved endpoint backend from the property
// set.
func GetPropertiesBackend(p *smithy.Properties) string {
v, _ := p.Get("backend").(string)
return v
}
// GetIdentityPropertiesBucket returns the S3 bucket from identity properties.
func GetIdentityPropertiesBucket(ip *smithy.Properties) (string, bool) {
v, ok := ip.Get(bucketKey{}).(string)
return v, ok
}
// SetIdentityPropertiesBucket sets the S3 bucket to identity properties.
func SetIdentityPropertiesBucket(ip *smithy.Properties, bucket string) {
ip.Set(bucketKey{}, bucket)
}
|