github.com/SaurabhDubey-Groww/go-cloud@v0.0.0-20221124105541-b26c29285fd8/aws/awscloud/awscloud.go (about) 1 // Copyright 2018 The Go Cloud Development Kit Authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // https://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Package awscloud contains Wire providers for AWS services. 16 package awscloud // import "gocloud.dev/aws/awscloud" 17 18 import ( 19 "net/http" 20 21 "github.com/google/wire" 22 "gocloud.dev/aws" 23 "gocloud.dev/aws/rds" 24 "gocloud.dev/blob/s3blob" 25 "gocloud.dev/docstore/awsdynamodb" 26 "gocloud.dev/pubsub/awssnssqs" 27 "gocloud.dev/runtimevar/awsparamstore" 28 "gocloud.dev/secrets/awskms" 29 "gocloud.dev/server/xrayserver" 30 ) 31 32 // AWS is a Wire provider set that includes all Amazon Web Services interface 33 // implementations in the Go CDK and authenticates using the default session. 34 var AWS = wire.NewSet( 35 Services, 36 aws.DefaultSession, 37 aws.NewDefaultV2Config, 38 wire.Value(http.DefaultClient), 39 ) 40 41 // Services is a Wire provider set that includes the default wiring for all 42 // Amazon Web Services interface implementations in the Go CDK but unlike the 43 // AWS set, does not include credentials. Individual services may require 44 // additional configuration. 45 var Services = wire.NewSet( 46 s3blob.Set, 47 awssnssqs.Set, 48 awsparamstore.Set, 49 awskms.Set, 50 rds.CertFetcherSet, 51 awsdynamodb.Set, 52 xrayserver.Set, 53 )