v1

package
v0.0.0-...-6d46272 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 15 Imported by: 7

README

Using v1 AWS SDK Go.

Documentation

Overview

Package v1 implements wrappers for AWS API v1 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.

func Regions

func Regions(partition string) (regions map[string]endpoints.Region, err error)

Regions returns the set of regions for the given partition. It maps from region ID (e.g. us-west-2) to its region object.

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

	// Partition is an AWS partition (default "aws").
	Partition string
	// 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
Package ecr implements ECR utilities.
Package ecr implements ECR utilities.
Package elb implements ELB utilities.
Package elb implements ELB utilities.

Jump to

Keyboard shortcuts

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