Back to

Package awsapi

Latest Go to latest

The highest tagged major version is .

Published: Jan 31, 2020 | License: Apache-2.0 | Module:


Package awsapi implements wrappers for AWS API calls.


func New

func New(cfg *Config) (ss *session.Session, awsCredsPath string, err error)

New creates a new AWS session. Specify a custom endpoint for tests.

type Config

type Config struct {
	// Logger is the log object.
	Logger *zap.Logger

	// DebugAPICalls is true to log all AWS API call debugging messages.
	DebugAPICalls bool

	// Region is a separate AWS geographic area for EKS service.
	// Each AWS Region has multiple, isolated locations known as Availability Zones.
	Region string

	// CustomEndpoint is a custom endpoint for pre-release versions of the service.
	// TODO: support EKS testing endpoint
	CustomEndpoint string

Config defines a top-level AWS API configuration to create a session.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier