Debian Codegraph @

aws/awscloud/awscloud.go

raw
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/v2"
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.NewDefaultV2Config,
37 wire.Value(http.DefaultClient),
38 )
39
40 // Services is a Wire provider set that includes the default wiring for all
41 // Amazon Web Services interface implementations in the Go CDK but unlike the
42 // AWS set, does not include credentials. Individual services may require
43 // additional configuration.
44 var Services = wire.NewSet(
45 s3blob.Set,
46 awssnssqs.Set,
47 awsparamstore.Set,
48 awskms.Set,
49 rds.CertFetcherSet,
50 awsdynamodb.Set,
51 xrayserver.Set,
52 )