ec2

package
v0.0.0-...-1a19813 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2015 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILTER_architecture                                        = "architecture"
	FILTER_availability_zone                                   = "availability-zone"
	FILTER_block_device_mapping_attach_time                    = "block-device-mapping.attach-time"
	FILTER_block_device_mapping_delete_on_termination          = "block-device-mapping.delete-on-termination"
	FILTER_block_device_mapping_device_name                    = "block-device-mapping.device-name"
	FILTER_block_device_mapping_status                         = "block-device-mapping.status"
	FILTER_block_device_mapping_volume_id                      = "block-device-mapping.volume-id"
	FILTER_client_token                                        = "client-token"
	FILTER_dns_name                                            = "dns-name"
	FILTER_group_id                                            = "group-id"
	FILTER_group_name                                          = "group-name"
	FILTER_image_id                                            = "image-id"
	FILTER_instance_id                                         = "instance-id"
	FILTER_instance_lifecycle                                  = "instance-lifecycle"
	FILTER_instance_state_code                                 = "instance-state-code"
	FILTER_instance_state_name                                 = "instance-state-name"
	FILTER_instance_type                                       = "instance-type"
	FILTER_instance_group_id                                   = "instance.group-id"
	FILTER_instance_group_name                                 = "instance.group-name"
	FILTER_ip_address                                          = "ip-address"
	FILTER_kernel_id                                           = "kernel-id"
	FILTER_key_name                                            = "key-name"
	FILTER_launch_index                                        = "launch-index"
	FILTER_launch_time                                         = "launch-time"
	FILTER_monitoring_state                                    = "monitoring-state"
	FILTER_owner_id                                            = "owner-id"
	FILTER_placement_group_name                                = "placement-group-name"
	FILTER_platform                                            = "platform"
	FILTER_private_dns_name                                    = "private-dns-name"
	FILTER_private_ip_address                                  = "private-ip-address"
	FILTER_product_code                                        = "product-code"
	FILTER_product_code_type                                   = "product-code.type"
	FILTER_ramdisk_id                                          = "ramdisk-id"
	FILTER_reason                                              = "reason"
	FILTER_requester_id                                        = "requester-id"
	FILTER_reservation_id                                      = "reservation-id"
	FILTER_root_device_name                                    = "root-device-name"
	FILTER_root_device_type                                    = "root-device-type"
	FILTER_source_dest_check                                   = "source-dest-check"
	FILTER_spot_instance_request_id                            = "spot-instance-request-id"
	FILTER_state_reason_code                                   = "state-reason-code"
	FILTER_state_reason_message                                = "state-reason-message"
	FILTER_subnet_id                                           = "subnet-id"
	FILTER_tag_key                                             = "tag-key"
	FILTER_tag_value                                           = "tag-value"
	FILTER_virtualization_type                                 = "virtualization-type"
	FILTER_vpc_id                                              = "vpc-id"
	FILTER_hypervisor                                          = "hypervisor"
	FILTER_network_interface_description                       = "network-interface.description"
	FILTER_network_interface_subnet_id                         = "network-interface.subnet-id"
	FILTER_network_interface_vpc_id                            = "network-interface.vpc-id"
	FILTER_network_interface_network_interface_id              = "network-interface.network-interface.id"
	FILTER_network_interface_owner_id                          = "network-interface.owner-id"
	FILTER_network_interface_availability_zone                 = "network-interface.availability-zone"
	FILTER_network_interface_requester_id                      = "network-interface.requester-id"
	FILTER_network_interface_requester_managed                 = "network-interface.requester-managed"
	FILTER_network_interface_status                            = "network-interface.status"
	FILTER_network_interface_mac_address                       = "network-interface.mac-address"
	FILTER_network_interface_private_dns_name                  = "network-interface-private-dns-name"
	FILTER_network_interface_source_destination_check          = "network-interface.source-destination-check"
	FILTER_network_interface_group_id                          = "network-interface.group-id"
	FILTER_network_interface_group_name                        = "network-interface.group-name"
	FILTER_network_interface_attachment_attachment_id          = "network-interface.attachment.attachment-id"
	FILTER_network_interface_attachment_instance_id            = "network-interface.attachment.instance-id"
	FILTER_network_interface_attachment_instance_owner_id      = "network-interface.attachment.instance-owner-id"
	FILTER_network_interface_addresses_private_ip_address      = "network-interface.addresses.private-ip-address"
	FILTER_network_interface_attachment_device_index           = "network-interface.attachment.device-index"
	FILTER_network_interface_attachment_status                 = "network-interface.attachment.status"
	FILTER_network_interface_attachment_attach_time            = "network-interface.attachment.attach-time"
	FILTER_network_interface_attachment_delete_on_termination  = "network-interface.attachment.delete-on-termination"
	FILTER_network_interface_addresses_primary                 = "network-interface.addresses.primary"
	FILTER_network_interface_addresses_association_public_ip   = "network-interface.addresses.association.public-ip"
	FILTER_network_interface_addresses_association_ip_owner_id = "network-interface.addresses.association.ip-owner-id"
	FILTER_association_public_ip                               = "association.public-ip"
	FILTER_association_ip_owner_id                             = "association.ip-owner-id"
	FILTER_association_allocation_id                           = "association.allocation-id"
	FILTER_association_association_id                          = "association.association-id"
)
View Source
const (
	// tag key
	FILTER_key = "key"
	// the resource id
	FILTER_resource_id = "resource-id"
	// the resource type
	FILTER_resource_type = "resource-type"
	// the tag value
	FILTER_value = "value"
)

Variables

This section is empty.

Functions

func AmiId

func AmiId() (string, error)

Get the AMI id

func AvailabilityZone

func AvailabilityZone() (string, error)

Get the AvailabilityZone

func HostName

func HostName() (string, error)

Get the HostName

func IamSecurityCredentials

func IamSecurityCredentials() (string, error)

make the request to "http://169.254.169.254/latest/meta-data/iam/security-credentials"

func InstanceId

func InstanceId() (string, error)

Get the InstanceId

func MakeSimpleRequest

func MakeSimpleRequest(urlString string) (string, error)

func PublicHostName

func PublicHostName() (string, error)

Get the PublicHostName

Types

type DescribeFilter

type DescribeFilter struct {
	Name  string
	Value []string
}

type DescribeInstancesRequest

type DescribeInstancesRequest struct {
	awsgo.RequestBuilder

	InstanceIds []string
	MaxResults  int
	NextToken   string
	Filters     []DescribeFilter
}

func NewDescribeInstancesRequest

func NewDescribeInstancesRequest() *DescribeInstancesRequest

func (DescribeInstancesRequest) DeMarshalResponse

func (gir DescribeInstancesRequest) DeMarshalResponse(response []byte, headers map[string]string, statusCode int) interface{}

func (DescribeInstancesRequest) Request

func (*DescribeInstancesRequest) VerifyInput

func (gir *DescribeInstancesRequest) VerifyInput() error

type DescribeInstancesResult

type DescribeInstancesResult struct {
	RequestId      string            `xml:"requestId"`
	ReservationSet []ReservationItem `xml:"reservationSet>item"`
}

type DescribeTagsRequest

type DescribeTagsRequest struct {
	awsgo.RequestBuilder

	MaxResults int
	NextToken  string
	Filters    []DescribeFilter
}

func NewDescribeTagsRequest

func NewDescribeTagsRequest() *DescribeTagsRequest

func (DescribeTagsRequest) DeMarshalResponse

func (req DescribeTagsRequest) DeMarshalResponse(response []byte, headers map[string]string, statusCode int) interface{}

func (DescribeTagsRequest) Request

func (*DescribeTagsRequest) VerifyInput

func (req *DescribeTagsRequest) VerifyInput() error

type DescribeTagsResponse

type DescribeTagsResponse struct {
	RequestId  string       `xml:"requestId"`
	TagSet     []TagSetItem `xml:"tagSet>item"`
	NextToken  string       `xml:"nextToken"`
	StatusCode int
}

type GroupSet

type GroupSet struct {
	GroupId   string `xml:"groupId"`
	GroupName string `xml:"groupName"`
}

type InstanceIdentityT

type InstanceIdentityT struct {
	Version            string   `json:"version"`
	InstanceId         string   `json:"instanceId"`
	BillingProducts    []string `json:"billingProducts"`
	Architecture       string   `json:"architecture"`
	ImageId            string   `json:"imageId"`
	PendingTime        string   `json:"pendingTime"`
	InstanceType       string   `json:"instanceType"`
	KernelId           string   `json:"kernelId"`
	AccountId          string   `json:"accountId"`
	RamDiskId          string   `json:"ramdiskId"`
	Region             string   `json:"region"`
	AvailabilityZone   string   `json:"availabilityZone"`
	DevPayProductCodes []string `json:"devpayProductCodes"`
	PrivateIp          string   `json:"privateIp"`
}

func InstanceIdentity

func InstanceIdentity() (InstanceIdentityT, error)

Get the instance identity

type InstanceSet

type InstanceSet struct {
	InstanceId       string    `xml:"instanceId"`
	ImageId          string    `xml:"imageId"`
	PrivateDnsName   string    `xml:"privateDnsName"`
	DnsName          string    `xml:"dnsName"`
	Reason           string    `xml:"reason"`
	KeyName          string    `xml:"keyName"`
	AmiLaunchIndex   int       `xml:"amiLaunchIndex"`
	ProductCodes     []string  `xml:"productCodes"`
	InstanceType     string    `xml:"instanceType"`
	LaunchTime       string    `xml:"launchTime"`
	Placement        placement `xml:"placement"`
	Platform         string    `xml:"platform"`
	SubnetId         string    `xml:"subnetId"`
	VpcId            string    `xml:"vpcId"`
	PrivateIpAddress string    `xml:"privateIpAddress"`
}

type ReservationItem

type ReservationItem struct {
	ReservationId string        `xml:"reservationId"`
	OwnerId       string        `xml:"ownerId"`
	GroupSet      []GroupSet    `xml:"groupSet>item"`
	InstancesSet  []InstanceSet `xml:"instancesSet>item"`
}

type TagSetItem

type TagSetItem struct {
	ResourceId   string `xml:"resourceId"`
	ResourceType string `xml:"resourceType"`
	Key          string `xml:"key"`
	Value        string `xml:"value"`
}

Jump to

Keyboard shortcuts

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