awsapi

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package awsapi implements wrappers for AWS API calls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

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

Types

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

	// ResolverURL is a custom resolver URL.
	ResolverURL string
	// SigningName is the API signing name.
	SigningName string
}

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

Directories

Path Synopsis
ec2
Package ec2 implements various AWS EC2 operations.
Package ec2 implements various AWS EC2 operations.
instance-types
instance-types auto-generates EC2 instance types from AWS API.
instance-types auto-generates EC2 instance types from AWS API.
metadata
Package metadata queries the EC2 metadata.
Package metadata queries the EC2 metadata.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL