sessionaws

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package sessionaws is helpful in establishing connection with aws. One will be able to use all other api's of aws from this SDK only after this package is initialized.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateSessionInput

type CreateSessionInput struct {
	// Region is required to establish session with aws. Without default value session cannot be established.
	Region string

	// KeyId is one of the component of AWS credentials and is necessary and not optional.
	KeyId string

	// AcessKey is one more component of AWS credentials and is necessary and not optional.
	AcessKey string
}

CreateSessionInput will implement CreateAwsSession and hold values which will be used in establishing connection.

func (*CreateSessionInput) CreateAwsSession

func (con *CreateSessionInput) CreateAwsSession() *session.Session

CreateAwsSession will actually establish connection to aws with the credentials passed to it. Make sure you pass the correct/working credentials.

Jump to

Keyboard shortcuts

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