Versions in this module Expand all Collapse all v0 v0.4.2 Oct 29, 2014 v0.4.1 Oct 17, 2014 Changes in this version + type Address struct + AllocationId string + AssociationId string + Domain string + InstanceId string + NetworkInterfaceId string + NetworkInterfaceOwnerId string + PrivateIpAddress string + PublicIp string + type AllocateAddress struct + Domain string + type AllocateAddressResp struct + AllocationId string + Domain string + PublicIp string + RequestId string + type AssociateAddress struct + AllocationId string + AllowReassociation bool + InstanceId string + PublicIp string + type AssociateAddressResp struct + AssociationId string + RequestId string + Return bool + type AssociateRouteTableResp struct + AssociationId string + RequestId string + type AttachVolumeResp struct + AttachTime string + Device string + InstanceId string + RequestId string + Status string + VolumeId string + type BlockDeviceMapping struct + DeleteOnTermination bool + DeviceName string + Encrypted bool + IOPS int64 + NoDevice bool + SnapshotId string + VirtualName string + VolumeSize int64 + VolumeType string + type CancelSpotRequestResult struct + SpotRequestId string + State string + type CancelSpotRequestsResp struct + CancelSpotRequestResults []CancelSpotRequestResult + RequestId string + type CopyImage struct + ClientToken string + Description string + Name string + SourceImageId string + SourceRegion string + type CopyImageResp struct + ImageId string + RequestId string + type CreateImage struct + BlockDevices []BlockDeviceMapping + Description string + InstanceId string + Name string + NoReboot bool + type CreateImageResp struct + ImageId string + RequestId string + type CreateInternetGateway struct + type CreateInternetGatewayResp struct + InternetGateway InternetGateway + RequestId string + type CreateKeyPairResp struct + KeyFingerprint string + KeyMaterial string + KeyName string + RequestId string + type CreateRoute struct + DestinationCidrBlock string + GatewayId string + InstanceId string + NetworkInterfaceId string + RouteTableId string + VpcPeeringConnectionId string + type CreateRouteTable struct + VpcId string + type CreateRouteTableResp struct + RequestId string + RouteTable RouteTable + type CreateSecurityGroupResp struct + RequestId string + type CreateSnapshotResp struct + RequestId string + type CreateSubnet struct + AvailabilityZone string + CidrBlock string + VpcId string + type CreateSubnetResp struct + RequestId string + Subnet Subnet + type CreateVolume struct + AvailZone string + Encrypted bool + IOPS int64 + Size int64 + SnapshotId string + VolumeType string + type CreateVolumeResp struct + AvailZone string + CreateTime string + Encrypted bool + IOPS int64 + RequestId string + Size int64 + SnapshotId string + Status string + VolumeId string + VolumeType string + type CreateVpc struct + CidrBlock string + InstanceTenancy string + type CreateVpcResp struct + RequestId string + VPC VPC + type DeregisterImageResp struct + RequestId string + Return bool + type DescribeAddressesResp struct + Addresses []Address + RequestId string + type EC2 struct + func New(auth aws.Auth, region aws.Region) *EC2 + func NewWithClient(auth aws.Auth, region aws.Region, client *http.Client) *EC2 + func (ec2 *EC2) Addresses(publicIps []string, allocationIds []string, filter *Filter) (resp *DescribeAddressesResp, err error) + func (ec2 *EC2) AllocateAddress(options *AllocateAddress) (resp *AllocateAddressResp, err error) + func (ec2 *EC2) AssociateAddress(options *AssociateAddress) (resp *AssociateAddressResp, err error) + func (ec2 *EC2) AssociateRouteTable(id, subnetId string) (*AssociateRouteTableResp, error) + func (ec2 *EC2) AttachInternetGateway(id, vpcId string) (resp *SimpleResp, err error) + func (ec2 *EC2) AttachVolume(volumeId string, instanceId string, device string) (resp *AttachVolumeResp, err error) + func (ec2 *EC2) AuthorizeSecurityGroup(group SecurityGroup, perms []IPPerm) (resp *SimpleResp, err error) + func (ec2 *EC2) AuthorizeSecurityGroupEgress(group SecurityGroup, perms []IPPerm) (resp *SimpleResp, err error) + func (ec2 *EC2) CancelSpotRequests(spotrequestIds []string) (resp *CancelSpotRequestsResp, err error) + func (ec2 *EC2) CopyImage(options *CopyImage) (resp *CopyImageResp, err error) + func (ec2 *EC2) CreateImage(options *CreateImage) (resp *CreateImageResp, err error) + func (ec2 *EC2) CreateInternetGateway(options *CreateInternetGateway) (resp *CreateInternetGatewayResp, err error) + func (ec2 *EC2) CreateKeyPair(keyName string) (resp *CreateKeyPairResp, err error) + func (ec2 *EC2) CreateRoute(options *CreateRoute) (resp *SimpleResp, err error) + func (ec2 *EC2) CreateRouteTable(options *CreateRouteTable) (resp *CreateRouteTableResp, err error) + func (ec2 *EC2) CreateSecurityGroup(group SecurityGroup) (resp *CreateSecurityGroupResp, err error) + func (ec2 *EC2) CreateSnapshot(volumeId, description string) (resp *CreateSnapshotResp, err error) + func (ec2 *EC2) CreateSubnet(options *CreateSubnet) (resp *CreateSubnetResp, err error) + func (ec2 *EC2) CreateTags(resourceIds []string, tags []Tag) (resp *SimpleResp, err error) + func (ec2 *EC2) CreateVolume(options *CreateVolume) (resp *CreateVolumeResp, err error) + func (ec2 *EC2) CreateVpc(options *CreateVpc) (resp *CreateVpcResp, err error) + func (ec2 *EC2) DeleteInternetGateway(id string) (resp *SimpleResp, err error) + func (ec2 *EC2) DeleteKeyPair(name string) (resp *SimpleResp, err error) + func (ec2 *EC2) DeleteRoute(routeTableId, cidr string) (resp *SimpleResp, err error) + func (ec2 *EC2) DeleteRouteTable(id string) (resp *SimpleResp, err error) + func (ec2 *EC2) DeleteSecurityGroup(group SecurityGroup) (resp *SimpleResp, err error) + func (ec2 *EC2) DeleteSnapshots(ids []string) (resp *SimpleResp, err error) + func (ec2 *EC2) DeleteSubnet(id string) (resp *SimpleResp, err error) + func (ec2 *EC2) DeleteVolume(id string) (resp *SimpleResp, err error) + func (ec2 *EC2) DeleteVpc(id string) (resp *SimpleResp, err error) + func (ec2 *EC2) DeregisterImage(imageId string) (resp *DeregisterImageResp, err error) + func (ec2 *EC2) DescribeInternetGateways(ids []string, filter *Filter) (resp *InternetGatewaysResp, err error) + func (ec2 *EC2) DescribeRouteTables(ids []string, filter *Filter) (resp *RouteTablesResp, err error) + func (ec2 *EC2) DescribeSpotRequests(spotrequestIds []string, filter *Filter) (resp *SpotRequestsResp, err error) + func (ec2 *EC2) DescribeSubnets(ids []string, filter *Filter) (resp *SubnetsResp, err error) + func (ec2 *EC2) DescribeVpcs(ids []string, filter *Filter) (resp *VpcsResp, err error) + func (ec2 *EC2) DetachInternetGateway(id, vpcId string) (resp *SimpleResp, err error) + func (ec2 *EC2) DetachVolume(id string) (resp *SimpleResp, err error) + func (ec2 *EC2) DisassociateAddress(id string) (resp *SimpleResp, err error) + func (ec2 *EC2) DisassociateRouteTable(id string) (*SimpleResp, error) + func (ec2 *EC2) ImageAttribute(imageId, attribute string) (resp *ImageAttributeResp, err error) + func (ec2 *EC2) Images(ids []string, filter *Filter) (resp *ImagesResp, err error) + func (ec2 *EC2) ImagesByOwners(ids []string, owners []string, filter *Filter) (resp *ImagesResp, err error) + func (ec2 *EC2) ImportKeyPair(keyname string, key string) (resp *ImportKeyPairResponse, err error) + func (ec2 *EC2) Instances(instIds []string, filter *Filter) (resp *InstancesResp, err error) + func (ec2 *EC2) KeyPairs(keynames []string, filter *Filter) (resp *KeyPairsResp, err error) + func (ec2 *EC2) ModifyImageAttribute(imageId string, options *ModifyImageAttribute) (resp *SimpleResp, err error) + func (ec2 *EC2) ModifyInstance(instId string, options *ModifyInstance) (resp *ModifyInstanceResp, err error) + func (ec2 *EC2) ModifyVpcAttribute(vpcId string, options *ModifyVpcAttribute) (*SimpleResp, error) + func (ec2 *EC2) ReassociateRouteTable(id, routeTableId string) (*ReassociateRouteTableResp, error) + func (ec2 *EC2) RebootInstances(ids ...string) (resp *SimpleResp, err error) + func (ec2 *EC2) RegisterImage(options *RegisterImage) (resp *RegisterImageResp, err error) + func (ec2 *EC2) ReleaseAddress(id string) (resp *SimpleResp, err error) + func (ec2 *EC2) ReleasePublicAddress(publicIp string) (resp *SimpleResp, err error) + func (ec2 *EC2) ReplaceRoute(options *ReplaceRoute) (resp *SimpleResp, err error) + func (ec2 *EC2) RequestSpotInstances(options *RequestSpotInstances) (resp *RequestSpotInstancesResp, err error) + func (ec2 *EC2) ResetImageAttribute(imageId string, options *ResetImageAttribute) (resp *SimpleResp, err error) + func (ec2 *EC2) RevokeSecurityGroup(group SecurityGroup, perms []IPPerm) (resp *SimpleResp, err error) + func (ec2 *EC2) RunInstances(options *RunInstances) (resp *RunInstancesResp, err error) + func (ec2 *EC2) SecurityGroups(groups []SecurityGroup, filter *Filter) (resp *SecurityGroupsResp, err error) + func (ec2 *EC2) Snapshots(ids []string, filter *Filter) (resp *SnapshotsResp, err error) + func (ec2 *EC2) StartInstances(ids ...string) (resp *StartInstanceResp, err error) + func (ec2 *EC2) StopInstances(ids ...string) (resp *StopInstanceResp, err error) + func (ec2 *EC2) Tags(filter *Filter) (*TagsResp, error) + func (ec2 *EC2) TerminateInstances(instIds []string) (resp *TerminateInstancesResp, err error) + func (ec2 *EC2) Volumes(volIds []string, filter *Filter) (resp *VolumesResp, err error) + func (ec2 *EC2) VpcAttribute(vpcId, attribute string) (resp *VpcAttributeResp, err error) + type Error struct + Code string + Message string + RequestId string + StatusCode int + func (err *Error) Error() string + type Filter struct + func NewFilter() *Filter + func (f *Filter) Add(name string, value ...string) + type IPPerm struct + FromPort int + Protocol string + SourceGroups []UserSecurityGroup + SourceIPs []string + ToPort int + type Image struct + Architecture string + BlockDevices []BlockDeviceMapping + Description string + Hypervisor string + Id string + KernelId string + Location string + Name string + OwnerAlias string + OwnerId string + Platform string + ProductCodes []string + Public bool + RamdiskId string + RootDeviceName string + RootDeviceType string + State string + StateReason string + Tags []Tag + Type string + VirtualizationType string + type ImageAttributeResp struct + BlockDevices []BlockDeviceMapping + Description string + Group string + ImageId string + Kernel string + ProductCodes []string + RamDisk string + RequestId string + UserIds []string + type ImagesResp struct + Images []Image + RequestId string + type ImportKeyPairResponse struct + KeyFingerprint string + KeyName string + RequestId string + type Instance struct + AMILaunchIndex int + Architecture string + AvailZone string + DNSName string + Hypervisor string + IamInstanceProfile string + ImageId string + InstanceId string + InstanceType string + KeyName string + LaunchTime time.Time + Monitoring string + PlacementGroupName string + PrivateDNSName string + PrivateIpAddress string + PublicIpAddress string + SecurityGroups []SecurityGroup + SourceDestCheck bool + State InstanceState + SubnetId string + Tags []Tag + VirtType string + VpcId string + type InstanceState struct + Code int + Name string + type InstanceStateChange struct + CurrentState InstanceState + InstanceId string + PreviousState InstanceState + type InstancesResp struct + RequestId string + Reservations []Reservation + type InternetGateway struct + Attachments []InternetGatewayAttachment + InternetGatewayId string + Tags []Tag + type InternetGatewayAttachment struct + State string + VpcId string + type InternetGatewaysResp struct + InternetGateways []InternetGateway + RequestId string + type KeyPair struct + Fingerprint string + Name string + type KeyPairsResp struct + Keys []KeyPair + RequestId string + type ModifyImageAttribute struct + AddGroups []string + AddUsers []string + Description string + ProductCodes []string + RemoveGroups []string + RemoveUsers []string + type ModifyInstance struct + BlockDevices []BlockDeviceMapping + DisableAPITermination bool + EbsOptimized bool + InstanceType string + KernelId string + RamdiskId string + SecurityGroups []SecurityGroup + SetSourceDestCheck bool + ShutdownBehavior string + SourceDestCheck bool + SriovNetSupport bool + UserData []byte + type ModifyInstanceResp struct + RequestId string + Return bool + type ModifyVpcAttribute struct + EnableDnsHostnames bool + EnableDnsSupport bool + SetEnableDnsHostnames bool + SetEnableDnsSupport bool + type ReassociateRouteTableResp struct + AssociationId string + RequestId string + type RegisterImage struct + Architecture string + BlockDevices []BlockDeviceMapping + Description string + ImageLocation string + KernelId string + Name string + RamdiskId string + RootDeviceName string + SriovNetSupport string + VirtType string + type RegisterImageResp struct + ImageId string + RequestId string + type ReplaceRoute struct + DestinationCidrBlock string + GatewayId string + InstanceId string + NetworkInterfaceId string + RouteTableId string + VpcPeeringConnectionId string + type RequestSpotInstances struct + AssociatePublicIpAddress bool + AvailZone string + BlockDevices []BlockDeviceMapping + IamInstanceProfile string + ImageId string + InstanceCount int + InstanceType string + KernelId string + KeyName string + Monitoring bool + PlacementGroupName string + PrivateIPAddress string + RamdiskId string + SecurityGroups []SecurityGroup + SpotPrice string + SubnetId string + Type string + UserData []byte + type RequestSpotInstancesResp struct + RequestId string + SpotRequestResults []SpotRequestResult + type Reservation struct + Instances []Instance + OwnerId string + RequesterId string + ReservationId string + SecurityGroups []SecurityGroup + type ResetImageAttribute struct + Attribute string + type ResourceTag struct + ResourceId string + ResourceType string + type Route struct + DestinationCidrBlock string + GatewayId string + InstanceId string + InstanceOwnerId string + NetworkInterfaceId string + Origin string + State string + VpcPeeringConnectionId string + type RouteTable struct + Associations []RouteTableAssociation + RouteTableId string + Routes []Route + Tags []Tag + VpcId string + type RouteTableAssociation struct + AssociationId string + Main bool + RouteTableId string + SubnetId string + type RouteTablesResp struct + RequestId string + RouteTables []RouteTable + type RunInstances struct + AssociatePublicIpAddress bool + AvailZone string + BlockDevices []BlockDeviceMapping + DisableAPITermination bool + IamInstanceProfile string + ImageId string + InstanceType string + KernelId string + KeyName string + MaxCount int + MinCount int + Monitoring bool + PlacementGroupName string + PrivateIPAddress string + RamdiskId string + SecurityGroups []SecurityGroup + ShutdownBehavior string + SubnetId string + UserData []byte + type RunInstancesResp struct + Instances []Instance + OwnerId string + RequestId string + ReservationId string + SecurityGroups []SecurityGroup + type SecurityGroup struct + Description string + Id string + Name string + VpcId string + func SecurityGroupIds(ids ...string) []SecurityGroup + func SecurityGroupNames(names ...string) []SecurityGroup + type SecurityGroupInfo struct + Description string + IPPerms []IPPerm + OwnerId string + type SecurityGroupsResp struct + Groups []SecurityGroupInfo + RequestId string + type SimpleResp struct + RequestId string + XMLName xml.Name + type Snapshot struct + Description string + Encrypted bool + Id string + OwnerAlias string + OwnerId string + Progress string + StartTime string + Status string + Tags []Tag + VolumeId string + VolumeSize string + type SnapshotsResp struct + RequestId string + Snapshots []Snapshot + type SpotInstanceSpec struct + AssociatePublicIpAddress bool + AvailZone string + BlockDevices []BlockDeviceMapping + IamInstanceProfile string + ImageId string + InstanceType string + KernelId string + KeyName string + Monitoring bool + PlacementGroupName string + PrivateIPAddress string + RamdiskId string + SecurityGroups []SecurityGroup + SubnetId string + UserData []byte + type SpotLaunchSpec struct + BlockDevices []BlockDeviceMapping + IamInstanceProfile string + ImageId string + InstanceType string + KernelId string + KeyName string + Monitoring bool + PlacementGroupName string + RamdiskId string + SecurityGroups []SecurityGroup + SubnetId string + type SpotRequestResult struct + AvailZone string + CreateTime string + InstanceId string + SpotLaunchSpec SpotLaunchSpec + SpotPrice string + SpotRequestId string + State string + Status SpotStatus + Tags []Tag + Type string + type SpotRequestsResp struct + RequestId string + SpotRequestResults []SpotRequestResult + type SpotStatus struct + Code string + Message string + UpdateTime string + type StartInstanceResp struct + RequestId string + StateChanges []InstanceStateChange + type StopInstanceResp struct + RequestId string + StateChanges []InstanceStateChange + type Subnet struct + AvailabilityZone string + AvailableIpAddressCount int + CidrBlock string + DefaultForAZ bool + MapPublicIpOnLaunch bool + State string + SubnetId string + Tags []Tag + VpcId string + type SubnetsResp struct + RequestId string + Subnets []Subnet + type Tag struct + Key string + Value string + type TagsResp struct + RequestId string + Tags []ResourceTag + type TerminateInstancesResp struct + RequestId string + StateChanges []InstanceStateChange + type UserSecurityGroup struct + Id string + Name string + OwnerId string + type VPC struct + CidrBlock string + DHCPOptionsID string + InstanceTenancy string + IsDefault bool + State string + Tags []Tag + VpcId string + type Volume struct + Attachments []VolumeAttachment + AvailZone string + Encrypted bool + IOPS int64 + Size string + SnapshotId string + Status string + Tags []Tag + VolumeId string + VolumeType string + type VolumeAttachment struct + Device string + InstanceId string + Status string + VolumeId string + type VolumesResp struct + RequestId string + Volumes []Volume + type VpcAttributeResp struct + EnableDnsHostnames bool + EnableDnsSupport bool + RequestId string + VpcId string + type VpcsResp struct + RequestId string + VPCs []VPC