ec2

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SecurityGroupIDTemplateString string = types.AxolVarTemplateStringFieldWithKeyValue.New("SecurityGroups", "GroupId", "GroupName")
View Source
var TagsTemplateString string = types.AxolVarTemplateStringFieldWithKeyValue.New("Tags", "Key", "Value")

Functions

func DescribeInstances

DescribeInstances retrieves information about EC2 instance. Inputs:

c is the context of the method call, which includes the AWS Region.
api is the interface that defines the method call.
input defines the input arguments to the service call.

Output:

If success, a DescribeInstancesOutput object containing the result of the service call and nil.
Otherwise, nil and an error from the call to DescribeInstances.

func RunDescribeInstances

func RunDescribeInstances(input *ec2.DescribeInstancesInput, optFns ...func(*util.AWSConfigOptions) error) (aws.Config, *ec2.DescribeInstancesOutput, error)

Describe EC2 instances

Types

type EC2DescribeInstancesAPI

type EC2DescribeInstancesAPI interface {
	DescribeInstances(
		ctx context.Context,
		params *ec2.DescribeInstancesInput,
		optFns ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error)
}

EC2DescribeInstancesAPI defines the interface for the DescribeInstances function. We use this interface to test the function using a mocked service.

Jump to

Keyboard shortcuts

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