Documentation ¶
Index ¶
Constants ¶
View Source
const (
//ServiceID represents nop service id.
ServiceID = "aws/ec2"
)
Variables ¶
This section is empty.
Functions ¶
func GetAWSCredentialConfig ¶
GetAWSCredentialConfig returns *aws.Config for provided credential
func GetEc2Client ¶
GetEc2Client creates ec2 client for passed in credential file
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
func (*CallRequest) Init ¶ added in v0.7.8
func (r *CallRequest) Init() error
Init initialise request
func (*CallRequest) Validate ¶ added in v0.7.8
func (r *CallRequest) Validate() error
Init initialise request
Click to show internal directories.
Click to hide internal directories.