aws

package
v0.0.0-...-bc49051 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultAWSRegion is a default.
	DefaultAWSRegion = "us-east-1"
)

Variables

This section is empty.

Functions

func DerefStr

func DerefStr(str *string) string

DerefStr safely dereferences a string.

func DerefTime

func DerefTime(t *time.Time) time.Time

DerefTime deferences a time.Time.

func NewSession

func NewSession(cfg Config) *session.Session

NewSession creates a new aws session from a config.

func RefStr

func RefStr(str string) *string

RefStr returns a string reference.

func RefStrs

func RefStrs(inputs ...string) []*string

RefStrs returns a list of string references.

func RefTime

func RefTime(t time.Time) *time.Time

RefTime returns a time.Time reference.

func StripQuotes

func StripQuotes(v string) string

StripQuotes strips leading or trailing quotes.

Types

type Config

type Config struct {
	Region          string `json:"region,omitempty" yaml:"region,omitempty"`
	AccessKeyID     string `json:"accessKeyID,omitempty" yaml:"accessKeyID,omitempty"`
	SecretAccessKey string `json:"secretAccessKey,omitempty" yaml:"secretAccessKey,omitempty"`
	SecurityToken   string `json:"securityToken,omitempty" yaml:"securityToken,omitempty"`
}

Config is a config object.

func (Config) IsZero

func (c Config) IsZero() bool

IsZero returns if the config is unset or not.

func (*Config) Resolve

func (c *Config) Resolve(ctx context.Context) error

Resolve resolves the config.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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