File: express_properties.go

package info (click to toggle)
golang-github-aws-aws-sdk-go-v2 1.24.1-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 554,032 kB
  • sloc: java: 15,941; makefile: 419; sh: 175
file content (21 lines) | stat: -rw-r--r-- 636 bytes parent folder | download | duplicates (6)
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)
}