Package ec2 provides the client and types for making API requests to Amazon Elastic Compute Cloud.
Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the AWS cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications faster.
To learn more, see the following resources:
* Amazon EC2: AmazonEC2 product page (http://aws.amazon.com/ec2), Amazon EC2 documentation (http://aws.amazon.com/documentation/ec2) * Amazon EBS: Amazon EBS product page (http://aws.amazon.com/ebs), Amazon EBS documentation (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html) * Amazon VPC: Amazon VPC product page (http://aws.amazon.com/vpc), Amazon VPC documentation (http://aws.amazon.com/documentation/vpc) * AWS VPN: AWS VPN product page (http://aws.amazon.com/vpn), AWS VPN documentation (http://aws.amazon.com/documentation/vpn)
See https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15 for more information on this service.
See ec2 package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/
To contact Amazon Elastic Compute Cloud with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the Amazon Elastic Compute Cloud client EC2 for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/#New
The stub package, ec2iface, can be used to provide alternative implementations of service clients, such as mocking the client for testing.
In the call graph viewer below, each node is a function belonging to this package and its children are the functions it calls—perhaps dynamically.
The root nodes are the entry points of the package: functions that may be called from outside the package. There may be non-exported or anonymous functions among them if they are called dynamically from another package.
Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring
Functions may be omitted if they were determined to be unreachable in the particular programs or tests that were analyzed.
const ( // AccountAttributeNameSupportedPlatforms is a AccountAttributeName enum value AccountAttributeNameSupportedPlatforms = "supported-platforms" // AccountAttributeNameDefaultVpc is a AccountAttributeName enum value AccountAttributeNameDefaultVpc = "default-vpc" )
const ( // ActivityStatusError is a ActivityStatus enum value ActivityStatusError = "error" // ActivityStatusPendingFulfillment is a ActivityStatus enum value ActivityStatusPendingFulfillment = "pending_fulfillment" // ActivityStatusPendingTermination is a ActivityStatus enum value ActivityStatusPendingTermination = "pending_termination" // ActivityStatusFulfilled is a ActivityStatus enum value ActivityStatusFulfilled = "fulfilled" )
const ( // AffinityDefault is a Affinity enum value AffinityDefault = "default" // AffinityHost is a Affinity enum value AffinityHost = "host" )
const ( // AllocationStateAvailable is a AllocationState enum value AllocationStateAvailable = "available" // AllocationStateUnderAssessment is a AllocationState enum value AllocationStateUnderAssessment = "under-assessment" // AllocationStatePermanentFailure is a AllocationState enum value AllocationStatePermanentFailure = "permanent-failure" // AllocationStateReleased is a AllocationState enum value AllocationStateReleased = "released" // AllocationStateReleasedPermanentFailure is a AllocationState enum value AllocationStateReleasedPermanentFailure = "released-permanent-failure" // AllocationStatePending is a AllocationState enum value AllocationStatePending = "pending" )
const ( // AllocationStrategyLowestPrice is a AllocationStrategy enum value AllocationStrategyLowestPrice = "lowestPrice" // AllocationStrategyDiversified is a AllocationStrategy enum value AllocationStrategyDiversified = "diversified" // AllocationStrategyCapacityOptimized is a AllocationStrategy enum value AllocationStrategyCapacityOptimized = "capacityOptimized" )
const ( // AllowsMultipleInstanceTypesOn is a AllowsMultipleInstanceTypes enum value AllowsMultipleInstanceTypesOn = "on" // AllowsMultipleInstanceTypesOff is a AllowsMultipleInstanceTypes enum value AllowsMultipleInstanceTypesOff = "off" )
const ( // ArchitectureTypeI386 is a ArchitectureType enum value ArchitectureTypeI386 = "i386" // ArchitectureTypeX8664 is a ArchitectureType enum value ArchitectureTypeX8664 = "x86_64" // ArchitectureTypeArm64 is a ArchitectureType enum value ArchitectureTypeArm64 = "arm64" )
const ( // ArchitectureValuesI386 is a ArchitectureValues enum value ArchitectureValuesI386 = "i386" // ArchitectureValuesX8664 is a ArchitectureValues enum value ArchitectureValuesX8664 = "x86_64" // ArchitectureValuesArm64 is a A