Package software.amazon.awssdk.services.ec2
This is the Amazon EC2 API Reference. It provides descriptions, API request parameters, and the XML response for each of the Amazon EC2 Query API actions. Note that the Amazon EC2 API includes actions for Amazon EC2 plus additional services, such as Amazon EBS and Amazon VPC.
Learn more
-
To learn about using the Query API, see Using the API for Amazon EC2.
-
To learn about the permissions required to call an Amazon EC2 API action, see Actions, resources, and condition keys for Amazon EC2.
-
To get the list of API actions by service and resource, see Actions by service.
-
To get the alphabetical list of API actions, see .
-
To get descriptions of the API error codes, see Error codes for the Amazon EC2 API.
Alternatively, use one of the following methods to access the Amazon EC2 API, instead of using the Query API directly:
Code Examples
For code examples demonstrating how to use this service with the AWS SDK for Java v2, see:
Getting Started
Basics
API Actions
- Use GetPasswordData
- Use CreateKeyPair
- Use DescribeKeyPairs
- Use CreateSecurityGroup
- Use RunInstances
- Use StartInstances
- Use StopInstances
- Use AllocateAddress
- Use AssociateAddress
- Use DisassociateAddress
- Use ReleaseAddress
- Use AuthorizeSecurityGroupIngress
- Use DeleteKeyPair
- Use DescribeSecurityGroups
- Use DeleteSecurityGroup
- Use TerminateInstances
- Use DescribeInstances
- Use DescribeInstanceTypes
Scenarios
-
ClassDescriptionService client for accessing Amazon EC2 asynchronously.A builder for creating an instance of
Ec2AsyncClient.This includes configuration specific to Amazon EC2 that is supported by bothEc2ClientBuilderandEc2AsyncClientBuilder.Service client for accessing Amazon EC2.A builder for creating an instance ofEc2Client.Class to expose the service client settings to the user.A builder for creating aEc2ServiceClientConfiguration