ec2

package
Version: v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2016 License: Apache-2.0, MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package ec2 provides a client for Amazon Elastic Compute Cloud.

Index

Constants

View Source
const (
	// @enum AccountAttributeName
	AccountAttributeNameSupportedPlatforms = "supported-platforms"
	// @enum AccountAttributeName
	AccountAttributeNameDefaultVpc = "default-vpc"
)
View Source
const (
	// @enum Affinity
	AffinityDefault = "default"
	// @enum Affinity
	AffinityHost = "host"
)
View Source
const (
	// @enum AllocationState
	AllocationStateAvailable = "available"
	// @enum AllocationState
	AllocationStateUnderAssessment = "under-assessment"
	// @enum AllocationState
	AllocationStatePermanentFailure = "permanent-failure"
	// @enum AllocationState
	AllocationStateReleased = "released"
	// @enum AllocationState
	AllocationStateReleasedPermanentFailure = "released-permanent-failure"
)
View Source
const (
	// @enum AllocationStrategy
	AllocationStrategyLowestPrice = "lowestPrice"
	// @enum AllocationStrategy
	AllocationStrategyDiversified = "diversified"
)
View Source
const (
	// @enum ArchitectureValues
	ArchitectureValuesI386 = "i386"
	// @enum ArchitectureValues
	ArchitectureValuesX8664 = "x86_64"
)
View Source
const (
	// @enum AttachmentStatus
	AttachmentStatusAttaching = "attaching"
	// @enum AttachmentStatus
	AttachmentStatusAttached = "attached"
	// @enum AttachmentStatus
	AttachmentStatusDetaching = "detaching"
	// @enum AttachmentStatus
	AttachmentStatusDetached = "detached"
)
View Source
const (
	// @enum AutoPlacement
	AutoPlacementOn = "on"
	// @enum AutoPlacement
	AutoPlacementOff = "off"
)
View Source
const (
	// @enum AvailabilityZoneState
	AvailabilityZoneStateAvailable = "available"
	// @enum AvailabilityZoneState
	AvailabilityZoneStateInformation = "information"
	// @enum AvailabilityZoneState
	AvailabilityZoneStateImpaired = "impaired"
	// @enum AvailabilityZoneState
	AvailabilityZoneStateUnavailable = "unavailable"
)
View Source
const (
	// @enum BatchState
	BatchStateSubmitted = "submitted"
	// @enum BatchState
	BatchStateActive = "active"
	// @enum BatchState
	BatchStateCancelled = "cancelled"
	// @enum BatchState
	BatchStateFailed = "failed"
	// @enum BatchState
	BatchStateCancelledRunning = "cancelled_running"
	// @enum BatchState
	BatchStateCancelledTerminating = "cancelled_terminating"
	// @enum BatchState
	BatchStateModifying = "modifying"
)
View Source
const (
	// @enum BundleTaskState
	BundleTaskStatePending = "pending"
	// @enum BundleTaskState
	BundleTaskStateWaitingForShutdown = "waiting-for-shutdown"
	// @enum BundleTaskState
	BundleTaskStateBundling = "bundling"
	// @enum BundleTaskState
	BundleTaskStateStoring = "storing"
	// @enum BundleTaskState
	BundleTaskStateCancelling = "cancelling"
	// @enum BundleTaskState
	BundleTaskStateComplete = "complete"
	// @enum BundleTaskState
	BundleTaskStateFailed = "failed"
)
View Source
const (
	// @enum CancelBatchErrorCode
	CancelBatchErrorCodeFleetRequestIdDoesNotExist = "fleetRequestIdDoesNotExist"
	// @enum CancelBatchErrorCode
	CancelBatchErrorCodeFleetRequestIdMalformed = "fleetRequestIdMalformed"
	// @enum CancelBatchErrorCode
	CancelBatchErrorCodeFleetRequestNotInCancellableState = "fleetRequestNotInCancellableState"
	// @enum CancelBatchErrorCode
	CancelBatchErrorCodeUnexpectedError = "unexpectedError"
)
View Source
const (
	// @enum CancelSpotInstanceRequestState
	CancelSpotInstanceRequestStateActive = "active"
	// @enum CancelSpotInstanceRequestState
	CancelSpotInstanceRequestStateOpen = "open"
	// @enum CancelSpotInstanceRequestState
	CancelSpotInstanceRequestStateClosed = "closed"
	// @enum CancelSpotInstanceRequestState
	CancelSpotInstanceRequestStateCancelled = "cancelled"
	// @enum CancelSpotInstanceRequestState
	CancelSpotInstanceRequestStateCompleted = "completed"
)
View Source
const (
	// @enum ConversionTaskState
	ConversionTaskStateActive = "active"
	// @enum ConversionTaskState
	ConversionTaskStateCancelling = "cancelling"
	// @enum ConversionTaskState
	ConversionTaskStateCancelled = "cancelled"
	// @enum ConversionTaskState
	ConversionTaskStateCompleted = "completed"
)
View Source
const (
	// @enum DatafeedSubscriptionState
	DatafeedSubscriptionStateActive = "Active"
	// @enum DatafeedSubscriptionState
	DatafeedSubscriptionStateInactive = "Inactive"
)
View Source
const (
	// @enum DeviceType
	DeviceTypeEbs = "ebs"
	// @enum DeviceType
	DeviceTypeInstanceStore = "instance-store"
)
View Source
const (
	// @enum DiskImageFormat
	DiskImageFormatVmdk = "VMDK"
	// @enum DiskImageFormat
	DiskImageFormatRaw = "RAW"
	// @enum DiskImageFormat
	DiskImageFormatVhd = "VHD"
)
View Source
const (
	// @enum DomainType
	DomainTypeVpc = "vpc"
	// @enum DomainType
	DomainTypeStandard = "standard"
)
View Source
const (
	// @enum EventCode
	EventCodeInstanceReboot = "instance-reboot"
	// @enum EventCode
	EventCodeSystemReboot = "system-reboot"
	// @enum EventCode
	EventCodeSystemMaintenance = "system-maintenance"
	// @enum EventCode
	EventCodeInstanceRetirement = "instance-retirement"
	// @enum EventCode
	EventCodeInstanceStop = "instance-stop"
)
View Source
const (
	// @enum EventType
	EventTypeInstanceChange = "instanceChange"
	// @enum EventType
	EventTypeFleetRequestChange = "fleetRequestChange"
	// @enum EventType
	EventTypeError = "error"
)
View Source
const (
	// @enum ExcessCapacityTerminationPolicy
	ExcessCapacityTerminationPolicyNoTermination = "noTermination"
	// @enum ExcessCapacityTerminationPolicy
	ExcessCapacityTerminationPolicyDefault = "default"
)
View Source
const (
	// @enum ExportEnvironment
	ExportEnvironmentCitrix = "citrix"
	// @enum ExportEnvironment
	ExportEnvironmentVmware = "vmware"
	// @enum ExportEnvironment
	ExportEnvironmentMicrosoft = "microsoft"
)
View Source
const (
	// @enum ExportTaskState
	ExportTaskStateActive = "active"
	// @enum ExportTaskState
	ExportTaskStateCancelling = "cancelling"
	// @enum ExportTaskState
	ExportTaskStateCancelled = "cancelled"
	// @enum ExportTaskState
	ExportTaskStateCompleted = "completed"
)
View Source
const (
	// @enum FlowLogsResourceType
	FlowLogsResourceTypeVpc = "VPC"
	// @enum FlowLogsResourceType
	FlowLogsResourceTypeSubnet = "Subnet"
	// @enum FlowLogsResourceType
	FlowLogsResourceTypeNetworkInterface = "NetworkInterface"
)
View Source
const (
	// @enum HostTenancy
	HostTenancyDedicated = "dedicated"
	// @enum HostTenancy
	HostTenancyHost = "host"
)
View Source
const (
	// @enum HypervisorType
	HypervisorTypeOvm = "ovm"
	// @enum HypervisorType
	HypervisorTypeXen = "xen"
)
View Source
const (
	// @enum ImageAttributeName
	ImageAttributeNameDescription = "description"
	// @enum ImageAttributeName
	ImageAttributeNameKernel = "kernel"
	// @enum ImageAttributeName
	ImageAttributeNameRamdisk = "ramdisk"
	// @enum ImageAttributeName
	ImageAttributeNameLaunchPermission = "launchPermission"
	// @enum ImageAttributeName
	ImageAttributeNameProductCodes = "productCodes"
	// @enum ImageAttributeName
	ImageAttributeNameBlockDeviceMapping = "blockDeviceMapping"
	// @enum ImageAttributeName
	ImageAttributeNameSriovNetSupport = "sriovNetSupport"
)
View Source
const (
	// @enum ImageState
	ImageStatePending = "pending"
	// @enum ImageState
	ImageStateAvailable = "available"
	// @enum ImageState
	ImageStateInvalid = "invalid"
	// @enum ImageState
	ImageStateDeregistered = "deregistered"
	// @enum ImageState
	ImageStateTransient = "transient"
	// @enum ImageState
	ImageStateFailed = "failed"
	// @enum ImageState
	ImageStateError = "error"
)
View Source
const (
	// @enum ImageTypeValues
	ImageTypeValuesMachine = "machine"
	// @enum ImageTypeValues
	ImageTypeValuesKernel = "kernel"
	// @enum ImageTypeValues
	ImageTypeValuesRamdisk = "ramdisk"
)
View Source
const (
	// @enum InstanceAttributeName
	InstanceAttributeNameInstanceType = "instanceType"
	// @enum InstanceAttributeName
	InstanceAttributeNameKernel = "kernel"
	// @enum InstanceAttributeName
	InstanceAttributeNameRamdisk = "ramdisk"
	// @enum InstanceAttributeName
	InstanceAttributeNameUserData = "userData"
	// @enum InstanceAttributeName
	InstanceAttributeNameDisableApiTermination = "disableApiTermination"
	// @enum InstanceAttributeName
	InstanceAttributeNameInstanceInitiatedShutdownBehavior = "instanceInitiatedShutdownBehavior"
	// @enum InstanceAttributeName
	InstanceAttributeNameRootDeviceName = "rootDeviceName"
	// @enum InstanceAttributeName
	InstanceAttributeNameBlockDeviceMapping = "blockDeviceMapping"
	// @enum InstanceAttributeName
	InstanceAttributeNameProductCodes = "productCodes"
	// @enum InstanceAttributeName
	InstanceAttributeNameSourceDestCheck = "sourceDestCheck"
	// @enum InstanceAttributeName
	InstanceAttributeNameGroupSet = "groupSet"
	// @enum InstanceAttributeName
	InstanceAttributeNameEbsOptimized = "ebsOptimized"
	// @enum InstanceAttributeName
	InstanceAttributeNameSriovNetSupport = "sriovNetSupport"
)
View Source
const (
	// @enum InstanceStateName
	InstanceStateNamePending = "pending"
	// @enum InstanceStateName
	InstanceStateNameRunning = "running"
	// @enum InstanceStateName
	InstanceStateNameShuttingDown = "shutting-down"
	// @enum InstanceStateName
	InstanceStateNameTerminated = "terminated"
	// @enum InstanceStateName
	InstanceStateNameStopping = "stopping"
	// @enum InstanceStateName
	InstanceStateNameStopped = "stopped"
)
View Source
const (
	// @enum InstanceType
	InstanceTypeT1Micro = "t1.micro"
	// @enum InstanceType
	InstanceTypeM1Small = "m1.small"
	// @enum InstanceType
	InstanceTypeM1Medium = "m1.medium"
	// @enum InstanceType
	InstanceTypeM1Large = "m1.large"
	// @enum InstanceType
	InstanceTypeM1Xlarge = "m1.xlarge"
	// @enum InstanceType
	InstanceTypeM3Medium = "m3.medium"
	// @enum InstanceType
	InstanceTypeM3Large = "m3.large"
	// @enum InstanceType
	InstanceTypeM3Xlarge = "m3.xlarge"
	// @enum InstanceType
	InstanceTypeM32xlarge = "m3.2xlarge"
	// @enum InstanceType
	InstanceTypeM4Large = "m4.large"
	// @enum InstanceType
	InstanceTypeM4Xlarge = "m4.xlarge"
	// @enum InstanceType
	InstanceTypeM42xlarge = "m4.2xlarge"
	// @enum InstanceType
	InstanceTypeM44xlarge = "m4.4xlarge"
	// @enum InstanceType
	InstanceTypeM410xlarge = "m4.10xlarge"
	// @enum InstanceType
	InstanceTypeT2Nano = "t2.nano"
	// @enum InstanceType
	InstanceTypeT2Micro = "t2.micro"
	// @enum InstanceType
	InstanceTypeT2Small = "t2.small"
	// @enum InstanceType
	InstanceTypeT2Medium = "t2.medium"
	// @enum InstanceType
	InstanceTypeT2Large = "t2.large"
	// @enum InstanceType
	InstanceTypeM2Xlarge = "m2.xlarge"
	// @enum InstanceType
	InstanceTypeM22xlarge = "m2.2xlarge"
	// @enum InstanceType
	InstanceTypeM24xlarge = "m2.4xlarge"
	// @enum InstanceType
	InstanceTypeCr18xlarge = "cr1.8xlarge"
	// @enum InstanceType
	InstanceTypeI2Xlarge = "i2.xlarge"
	// @enum InstanceType
	InstanceTypeI22xlarge = "i2.2xlarge"
	// @enum InstanceType
	InstanceTypeI24xlarge = "i2.4xlarge"
	// @enum InstanceType
	InstanceTypeI28xlarge = "i2.8xlarge"
	// @enum InstanceType
	InstanceTypeHi14xlarge = "hi1.4xlarge"
	// @enum InstanceType
	InstanceTypeHs18xlarge = "hs1.8xlarge"
	// @enum InstanceType
	InstanceTypeC1Medium = "c1.medium"
	// @enum InstanceType
	InstanceTypeC1Xlarge = "c1.xlarge"
	// @enum InstanceType
	InstanceTypeC3Large = "c3.large"
	// @enum InstanceType
	InstanceTypeC3Xlarge = "c3.xlarge"
	// @enum InstanceType
	InstanceTypeC32xlarge = "c3.2xlarge"
	// @enum InstanceType
	InstanceTypeC34xlarge = "c3.4xlarge"
	// @enum InstanceType
	InstanceTypeC38xlarge = "c3.8xlarge"
	// @enum InstanceType
	InstanceTypeC4Large = "c4.large"
	// @enum InstanceType
	InstanceTypeC4Xlarge = "c4.xlarge"
	// @enum InstanceType
	InstanceTypeC42xlarge = "c4.2xlarge"
	// @enum InstanceType
	InstanceTypeC44xlarge = "c4.4xlarge"
	// @enum InstanceType
	InstanceTypeC48xlarge = "c4.8xlarge"
	// @enum InstanceType
	InstanceTypeCc14xlarge = "cc1.4xlarge"
	// @enum InstanceType
	InstanceTypeCc28xlarge = "cc2.8xlarge"
	// @enum InstanceType
	InstanceTypeG22xlarge = "g2.2xlarge"
	// @enum InstanceType
	InstanceTypeCg14xlarge = "cg1.4xlarge"
	// @enum InstanceType
	InstanceTypeR3Large = "r3.large"
	// @enum InstanceType
	InstanceTypeR3Xlarge = "r3.xlarge"
	// @enum InstanceType
	InstanceTypeR32xlarge = "r3.2xlarge"
	// @enum InstanceType
	InstanceTypeR34xlarge = "r3.4xlarge"
	// @enum InstanceType
	InstanceTypeR38xlarge = "r3.8xlarge"
	// @enum InstanceType
	InstanceTypeD2Xlarge = "d2.xlarge"
	// @enum InstanceType
	InstanceTypeD22xlarge = "d2.2xlarge"
	// @enum InstanceType
	InstanceTypeD24xlarge = "d2.4xlarge"
	// @enum InstanceType
	InstanceTypeD28xlarge = "d2.8xlarge"
)
View Source
const (
	// @enum ListingState
	ListingStateAvailable = "available"
	// @enum ListingState
	ListingStateSold = "sold"
	// @enum ListingState
	ListingStateCancelled = "cancelled"
	// @enum ListingState
	ListingStatePending = "pending"
)
View Source
const (
	// @enum ListingStatus
	ListingStatusActive = "active"
	// @enum ListingStatus
	ListingStatusPending = "pending"
	// @enum ListingStatus
	ListingStatusCancelled = "cancelled"
	// @enum ListingStatus
	ListingStatusClosed = "closed"
)
View Source
const (
	// @enum MonitoringState
	MonitoringStateDisabled = "disabled"
	// @enum MonitoringState
	MonitoringStateDisabling = "disabling"
	// @enum MonitoringState
	MonitoringStateEnabled = "enabled"
	// @enum MonitoringState
	MonitoringStatePending = "pending"
)
View Source
const (
	// @enum MoveStatus
	MoveStatusMovingToVpc = "movingToVpc"
	// @enum MoveStatus
	MoveStatusRestoringToClassic = "restoringToClassic"
)
View Source
const (
	// @enum NatGatewayState
	NatGatewayStatePending = "pending"
	// @enum NatGatewayState
	NatGatewayStateFailed = "failed"
	// @enum NatGatewayState
	NatGatewayStateAvailable = "available"
	// @enum NatGatewayState
	NatGatewayStateDeleting = "deleting"
	// @enum NatGatewayState
	NatGatewayStateDeleted = "deleted"
)
View Source
const (
	// @enum NetworkInterfaceAttribute
	NetworkInterfaceAttributeDescription = "description"
	// @enum NetworkInterfaceAttribute
	NetworkInterfaceAttributeGroupSet = "groupSet"
	// @enum NetworkInterfaceAttribute
	NetworkInterfaceAttributeSourceDestCheck = "sourceDestCheck"
	// @enum NetworkInterfaceAttribute
	NetworkInterfaceAttributeAttachment = "attachment"
)
View Source
const (
	// @enum NetworkInterfaceStatus
	NetworkInterfaceStatusAvailable = "available"
	// @enum NetworkInterfaceStatus
	NetworkInterfaceStatusAttaching = "attaching"
	// @enum NetworkInterfaceStatus
	NetworkInterfaceStatusInUse = "in-use"
	// @enum NetworkInterfaceStatus
	NetworkInterfaceStatusDetaching = "detaching"
)
View Source
const (
	// @enum NetworkInterfaceType
	NetworkInterfaceTypeInterface = "interface"
	// @enum NetworkInterfaceType
	NetworkInterfaceTypeNatGateway = "natGateway"
)
View Source
const (
	// @enum OfferingTypeValues
	OfferingTypeValuesHeavyUtilization = "Heavy Utilization"
	// @enum OfferingTypeValues
	OfferingTypeValuesMediumUtilization = "Medium Utilization"
	// @enum OfferingTypeValues
	OfferingTypeValuesLightUtilization = "Light Utilization"
	// @enum OfferingTypeValues
	OfferingTypeValuesNoUpfront = "No Upfront"
	// @enum OfferingTypeValues
	OfferingTypeValuesPartialUpfront = "Partial Upfront"
	// @enum OfferingTypeValues
	OfferingTypeValuesAllUpfront = "All Upfront"
)
View Source
const (
	// @enum OperationType
	OperationTypeAdd = "add"
	// @enum OperationType
	OperationTypeRemove = "remove"
)
View Source
const (
	// @enum PlacementGroupState
	PlacementGroupStatePending = "pending"
	// @enum PlacementGroupState
	PlacementGroupStateAvailable = "available"
	// @enum PlacementGroupState
	PlacementGroupStateDeleting = "deleting"
	// @enum PlacementGroupState
	PlacementGroupStateDeleted = "deleted"
)
View Source
const (
	// @enum ProductCodeValues
	ProductCodeValuesDevpay = "devpay"
	// @enum ProductCodeValues
	ProductCodeValuesMarketplace = "marketplace"
)
View Source
const (
	// @enum RIProductDescription
	RIProductDescriptionLinuxUnix = "Linux/UNIX"
	// @enum RIProductDescription
	RIProductDescriptionLinuxUnixamazonVpc = "Linux/UNIX (Amazon VPC)"
	// @enum RIProductDescription
	RIProductDescriptionWindows = "Windows"
	// @enum RIProductDescription
	RIProductDescriptionWindowsAmazonVpc = "Windows (Amazon VPC)"
)
View Source
const (
	// @enum ReportInstanceReasonCodes
	ReportInstanceReasonCodesInstanceStuckInState = "instance-stuck-in-state"
	// @enum ReportInstanceReasonCodes
	ReportInstanceReasonCodesUnresponsive = "unresponsive"
	// @enum ReportInstanceReasonCodes
	ReportInstanceReasonCodesNotAcceptingCredentials = "not-accepting-credentials"
	// @enum ReportInstanceReasonCodes
	ReportInstanceReasonCodesPasswordNotAvailable = "password-not-available"
	// @enum ReportInstanceReasonCodes
	ReportInstanceReasonCodesPerformanceNetwork = "performance-network"
	// @enum ReportInstanceReasonCodes
	ReportInstanceReasonCodesPerformanceInstanceStore = "performance-instance-store"
	// @enum ReportInstanceReasonCodes
	ReportInstanceReasonCodesPerformanceEbsVolume = "performance-ebs-volume"
	// @enum ReportInstanceReasonCodes
	ReportInstanceReasonCodesPerformanceOther = "performance-other"
	// @enum ReportInstanceReasonCodes
	ReportInstanceReasonCodesOther = "other"
)
View Source
const (
	// @enum ReportStatusType
	ReportStatusTypeOk = "ok"
	// @enum ReportStatusType
	ReportStatusTypeImpaired = "impaired"
)
View Source
const (
	// @enum ReservedInstanceState
	ReservedInstanceStatePaymentPending = "payment-pending"
	// @enum ReservedInstanceState
	ReservedInstanceStateActive = "active"
	// @enum ReservedInstanceState
	ReservedInstanceStatePaymentFailed = "payment-failed"
	// @enum ReservedInstanceState
	ReservedInstanceStateRetired = "retired"
)
View Source
const (
	// @enum ResourceType
	ResourceTypeCustomerGateway = "customer-gateway"
	// @enum ResourceType
	ResourceTypeDhcpOptions = "dhcp-options"
	// @enum ResourceType
	ResourceTypeImage = "image"
	// @enum ResourceType
	ResourceTypeInstance = "instance"
	// @enum ResourceType
	ResourceTypeInternetGateway = "internet-gateway"
	// @enum ResourceType
	ResourceTypeNetworkAcl = "network-acl"
	// @enum ResourceType
	ResourceTypeNetworkInterface = "network-interface"
	// @enum ResourceType
	ResourceTypeReservedInstances = "reserved-instances"
	// @enum ResourceType
	ResourceTypeRouteTable = "route-table"
	// @enum ResourceType
	ResourceTypeSnapshot = "snapshot"
	// @enum ResourceType
	ResourceTypeSpotInstancesRequest = "spot-instances-request"
	// @enum ResourceType
	ResourceTypeSubnet = "subnet"
	// @enum ResourceType
	ResourceTypeSecurityGroup = "security-group"
	// @enum ResourceType
	ResourceTypeVolume = "volume"
	// @enum ResourceType
	ResourceTypeVpc = "vpc"
	// @enum ResourceType
	ResourceTypeVpnConnection = "vpn-connection"
	// @enum ResourceType
	ResourceTypeVpnGateway = "vpn-gateway"
)
View Source
const (
	// @enum RouteOrigin
	RouteOriginCreateRouteTable = "CreateRouteTable"
	// @enum RouteOrigin
	RouteOriginCreateRoute = "CreateRoute"
	// @enum RouteOrigin
	RouteOriginEnableVgwRoutePropagation = "EnableVgwRoutePropagation"
)
View Source
const (
	// @enum RouteState
	RouteStateActive = "active"
	// @enum RouteState
	RouteStateBlackhole = "blackhole"
)
View Source
const (
	// @enum RuleAction
	RuleActionAllow = "allow"
	// @enum RuleAction
	RuleActionDeny = "deny"
)
View Source
const (
	// @enum ShutdownBehavior
	ShutdownBehaviorStop = "stop"
	// @enum ShutdownBehavior
	ShutdownBehaviorTerminate = "terminate"
)
View Source
const (
	// @enum SnapshotAttributeName
	SnapshotAttributeNameProductCodes = "productCodes"
	// @enum SnapshotAttributeName
	SnapshotAttributeNameCreateVolumePermission = "createVolumePermission"
)
View Source
const (
	// @enum SnapshotState
	SnapshotStatePending = "pending"