ec2

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

README

Amazon Elastic Compute Cloud Service

Provides ability to call operations on EC2 client

Service Id Action Description Request Response
aws/ec2 call run ec2 operation CallRequest CallResponse

'call' action's method and input are proxied to EC2 client

Documentation

Index

Constants

View Source
const (
	//ServiceID represents nop service id.
	ServiceID = "aws/ec2"
)

Variables

This section is empty.

Functions

func GetAWSCredentialConfig

func GetAWSCredentialConfig(credentialsLocation string) (*aws.Config, error)

GetAWSCredentialConfig returns *aws.Config for provided credential

func GetEc2Client

func GetEc2Client(credential string) (*ec2.EC2, error)

GetEc2Client creates ec2 client for passed in credential file

func New

func New() endly.Service

New creates a new AWS Ec2 service.

Types

type Call

type Call struct {
	Method     string        `required:"true" description:"ec2 client method name"`
	Parameters []interface{} `required:"true" description:"ec2 client method parameters"`
}

Call represents ec2 call.

type CallRequest

type CallRequest struct {
	Credentials string      `required:"true" description:"ec2 credentials file see more at: github.com/viant/toolbox/cred/config.go"`
	Method      string      `required:"true" description:"ec2 client method name"`
	Input       interface{} `required:"true" description:"ec2 client method input/request"`
}

CallRequest represents a aws EC2 run request to execute method on ec2 client with provided input.

func (*CallRequest) AsCall

func (r *CallRequest) AsCall() *Call

AsCall converts request as Ec2 call

type CallResponse

type CallResponse interface{}

CallResponse represents EC2 run response

Jump to

Keyboard shortcuts

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