ec2

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2017 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

View Source
const (
	SecurityGroupProtocolTCP  = "tcp"
	SecurityGroupProtocolUDP  = "udp"
	SecurityGroupProtocolICMP = "icmp"
	SecurityGroupProtocolAll  = "all"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(session *session.Session, config *_aws.Config) *Client

func (*Client) AddInboundToSecurityGroup

func (c *Client) AddInboundToSecurityGroup(securityGroupID, protocol string, portRangeFrom, portRangeTo uint16, source string) error

func (*Client) CreateInstances

func (c *Client) CreateInstances(instanceType, imageID string, instanceCount uint16, securityGroupIDs []string, keyPairName, subnetID, iamInstanceProfileName, userData string) ([]*_ec2.Instance, error)

func (*Client) CreateSecurityGroup

func (c *Client) CreateSecurityGroup(name, description, vpcID string) (string, error)

func (*Client) CreateTags

func (c *Client) CreateTags(resourceID string, tags map[string]string) error

func (*Client) DeleteSecurityGroup

func (c *Client) DeleteSecurityGroup(securityGroupID string) error

func (*Client) FindImage added in v1.2.0

func (c *Client) FindImage(ownerID, tagName string) ([]*_ec2.Image, error)

func (*Client) ListKeyPairs

func (c *Client) ListKeyPairs() ([]*_ec2.KeyPairInfo, error)

func (*Client) ListVPCSubnets

func (c *Client) ListVPCSubnets(vpcID string) ([]string, error)

func (*Client) ListVPCs

func (c *Client) ListVPCs() ([]string, error)

func (*Client) RemoveInboundToSecurityGroup

func (c *Client) RemoveInboundToSecurityGroup(securityGroupID, protocol string, portRangeFrom, portRangeTo uint16, source string) error

func (*Client) RetrieveDefaultVPC

func (c *Client) RetrieveDefaultVPC() (*_ec2.Vpc, error)

func (*Client) RetrieveInstances

func (c *Client) RetrieveInstances(instanceIDs []string) ([]*_ec2.Instance, error)

func (*Client) RetrieveKeyPair

func (c *Client) RetrieveKeyPair(keyPairName string) (*_ec2.KeyPairInfo, error)

func (*Client) RetrieveSecurityGroup

func (c *Client) RetrieveSecurityGroup(id string) (*_ec2.SecurityGroup, error)

func (*Client) RetrieveSecurityGroupByName

func (c *Client) RetrieveSecurityGroupByName(name string) (*_ec2.SecurityGroup, error)

func (*Client) RetrieveSecurityGroupByNameOrID

func (c *Client) RetrieveSecurityGroupByNameOrID(nameOrID string) (*_ec2.SecurityGroup, error)

func (*Client) RetrieveSecurityGroups

func (c *Client) RetrieveSecurityGroups(securityGroupIDs []string) ([]*_ec2.SecurityGroup, error)

func (*Client) RetrieveTags

func (c *Client) RetrieveTags(resourceID string) (map[string]string, error)

func (*Client) RetrieveVPC

func (c *Client) RetrieveVPC(vpcID string) (*_ec2.Vpc, error)

Jump to

Keyboard shortcuts

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