// Create new AmazonDynamoDB struct func newClient(conf auth.Config) *AmazonDynamoDB { d := &AmazonDynamoDB{} d.tables = make(map[string]*DynamoTable) d.writeTables = make(map[string]bool) d.TablePrefix = config.GetConfigValue(dynamodbConfigSectionName, "prefix", defaultTablePrefix) conf.SetDefault(defaultRegion, defaultEndpoint) awsConf := conf.Config d.client = SDK.New(awsConf) return d }
// Create new AmazonS3 struct func newClient(conf auth.Config) *AmazonS3 { s := &AmazonS3{} s.buckets = make(map[string]*Bucket) conf.SetDefault(defaultRegion, defaultEndpoint) awsConf := conf.Config if *awsConf.Endpoint != "" { awsConf.S3ForcePathStyle = Bool(true) } s.client = SDK.New(awsConf) return s }