Overview ▹

Overview ▾

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 about Amazon EC2, Amazon EBS, and Amazon VPC, see the following
resources:

Using the Client

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.

Internal call graph ▹

Internal call graph ▾

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 func
token.

Functions may be omitted if they were
determined to be unreachable in the
particular programs or tests that were
analyzed.

const (
// StatePendingAcceptance is a State enum valueStatePendingAcceptance = "PendingAcceptance"
// StatePending is a State enum valueStatePending = "Pending"
// StateAvailable is a State enum valueStateAvailable = "Available"
// StateDeleting is a State enum valueStateDeleting = "Deleting"
// StateDeleted is a State enum valueStateDeleted = "Deleted"
// StateRejected is a State enum valueStateRejected = "Rejected"
// StateFailed is a State enum valueStateFailed = "Failed"
// StateExpired is a State enum valueStateExpired = "Expired"
)

type AcceptReservedInstancesExchangeQuoteInput struct {
// Checks whether you have the required permissions for the action, without// actually making the request, and provides an error response. If you have// the required permissions, the error response is DryRunOperation. Otherwise,// it is UnauthorizedOperation.
DryRun *bool `type:"boolean"`
// The IDs of the Convertible Reserved Instances to exchange for another Convertible// Reserved Instance of the same or higher value.//// ReservedInstanceIds is a required field
ReservedInstanceIds []*string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"`
// The configuration of the target Convertible Reserved Instance to exchange// for your current Convertible Reserved Instances.
TargetConfigurations []*TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"`
// contains filtered or unexported fields
}

type AcceptTransitGatewayVpcAttachmentInput struct {
// Checks whether you have the required permissions for the action, without// actually making the request, and provides an error response. If you have// the required permissions, the error response is DryRunOperation. Otherwise,// it is UnauthorizedOperation.
DryRun *bool `type:"boolean"`
// The ID of the attachment.//// TransitGatewayAttachmentId is a required field
TransitGatewayAttachmentId *string `type:"string" required:"true"`
// contains filtered or unexported fields
}

type AcceptVpcEndpointConnectionsInput struct {
// Checks whether you have the required permissions for the action, without// actually making the request, and provides an error response. If you have// the required permissions, the error response is DryRunOperation. Otherwise,// it is UnauthorizedOperation.
DryRun *bool `type:"boolean"`
// The ID of the endpoint service.//// ServiceId is a required field
ServiceId *string `type:"string" required:"true"`
// The IDs of one or more interface VPC endpoints.//// VpcEndpointIds is a required field
VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
// contains filtered or unexported fields
}

type AcceptVpcPeeringConnectionInput struct {
// Checks whether you have the required permissions for the action, without// actually making the request, and provides an error response. If you have// the required permissions, the error response is DryRunOperation. Otherwise,// it is UnauthorizedOperation.
DryRun *bool `locationName:"dryRun" type:"boolean"`
// The ID of the VPC peering connection. You must specify this parameter in// the request.
VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
// contains filtered or unexported fields
}

type AdvertiseByoipCidrInput struct {
// The IPv4 address range, in CIDR notation. This must be the exact range that// you provisioned. You can't advertise only a portion of the provisioned range.//// Cidr is a required field
Cidr *string `type:"string" required:"true"`
// Checks whether you have the required permissions for the action, without// actually making the request, and provides an error response. If you have// the required permissions, the error response is DryRunOperation. Otherwise,// it is UnauthorizedOperation.
DryRun *bool `type:"boolean"`
// contains filtered or unexported fields
}

type AllocateAddressInput struct {
// [EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address// pool.
Address *string `type:"string"`
// Set to vpc to allocate the address for use with instances in a VPC.//// Default: The address is for use with instances in EC2-Classic.
Domain *string `type:"string" enum:"DomainType"`
// Checks whether you have the required permissions for the action, without// actually making the request, and provides an error response. If you have// the required permissions, the error response is DryRunOperation. Otherwise,// it is UnauthorizedOperation.
DryRun *bool `locationName:"dryRun" type:"boolean"`
// The ID of an address pool that you own. Use this parameter to let Amazon// EC2 select an address from the address pool. To specify a specific address// from the address pool, use the Address parameter instead.
PublicIpv4Pool *string `type:"string"`
// contains filtered or unexported fields
}