Class: AWS.EC2
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.EC2
- Identifier:
- ec2
- API Version:
- 2016-11-15
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
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:
Sending a Request Using EC2
var ec2 = new AWS.EC2();
ec2.applySecurityGroupsToClientVpnTargetNetwork(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the EC2 object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var ec2 = new AWS.EC2({apiVersion: '2016-11-15'});
You can also set the API version globally in AWS.config.apiVersions
using
the ec2 service identifier:
AWS.config.apiVersions = {
ec2: '2016-11-15',
// other service API versions
};
var ec2 = new AWS.EC2();
Waiter Resource States
This service supports a list of resource states that can be polled using the waitFor() method. The resource states are:
instanceExists, bundleTaskComplete, conversionTaskCancelled, conversionTaskCompleted, conversionTaskDeleted, customerGatewayAvailable, exportTaskCancelled, exportTaskCompleted, imageExists, imageAvailable, instanceRunning, instanceStatusOk, instanceStopped, instanceTerminated, keyPairExists, natGatewayAvailable, networkInterfaceAvailable, passwordDataAvailable, snapshotCompleted, spotInstanceRequestFulfilled, subnetAvailable, systemStatusOk, volumeAvailable, volumeDeleted, volumeInUse, vpcAvailable, vpcExists, vpnConnectionAvailable, vpnConnectionDeleted, vpcPeeringConnectionExists, vpcPeeringConnectionDeleted
Constructor Summary
-
new AWS.EC2(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary
-
acceptReservedInstancesExchangeQuote(params = {}, callback) ⇒ AWS.Request
Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.
-
acceptTransitGatewayVpcAttachment(params = {}, callback) ⇒ AWS.Request
Accepts a request to attach a VPC to a transit gateway.
-
acceptVpcEndpointConnections(params = {}, callback) ⇒ AWS.Request
Accepts one or more interface VPC endpoint connection requests to your VPC endpoint service.
-
acceptVpcPeeringConnection(params = {}, callback) ⇒ AWS.Request
Accept a VPC peering connection request.
-
advertiseByoipCidr(params = {}, callback) ⇒ AWS.Request
Advertises an IPv4 address range that is provisioned for use with your AWS resources through bring your own IP addresses (BYOIP).
-
allocateAddress(params = {}, callback) ⇒ AWS.Request
Allocates an Elastic IP address to your AWS account.
-
allocateHosts(params = {}, callback) ⇒ AWS.Request
Allocates a Dedicated Host to your account.
-
applySecurityGroupsToClientVpnTargetNetwork(params = {}, callback) ⇒ AWS.Request
Applies a security group to the association between the target network and the Client VPN endpoint.
-
assignIpv6Addresses(params = {}, callback) ⇒ AWS.Request
Assigns one or more IPv6 addresses to the specified network interface.
-
assignPrivateIpAddresses(params = {}, callback) ⇒ AWS.Request
Assigns one or more secondary private IP addresses to the specified network interface.
-
associateAddress(params = {}, callback) ⇒ AWS.Request
Associates an Elastic IP address with an instance or a network interface.
-
associateClientVpnTargetNetwork(params = {}, callback) ⇒ AWS.Request
Associates a target network with a Client VPN endpoint.
-
associateDhcpOptions(params = {}, callback) ⇒ AWS.Request
Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC.
-
associateIamInstanceProfile(params = {}, callback) ⇒ AWS.Request
Associates an IAM instance profile with a running or stopped instance.
-
associateRouteTable(params = {}, callback) ⇒ AWS.Request
Associates a subnet with a route table.
-
associateSubnetCidrBlock(params = {}, callback) ⇒ AWS.Request
Associates a CIDR block with your subnet.
-
associateTransitGatewayRouteTable(params = {}, callback) ⇒ AWS.Request
Associates the specified attachment with the specified transit gateway route table.
-
associateVpcCidrBlock(params = {}, callback) ⇒ AWS.Request
Associates a CIDR block with your VPC.
-
attachClassicLinkVpc(params = {}, callback) ⇒ AWS.Request
Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more of the VPC's security groups.
-
attachInternetGateway(params = {}, callback) ⇒ AWS.Request
Attaches an internet gateway to a VPC, enabling connectivity between the internet and the VPC.
-
attachNetworkInterface(params = {}, callback) ⇒ AWS.Request
Attaches a network interface to an instance.
-
attachVolume(params = {}, callback) ⇒ AWS.Request
Attaches an EBS volume to a running or stopped instance and exposes it to the instance with the specified device name.
-
attachVpnGateway(params = {}, callback) ⇒ AWS.Request
Attaches a virtual private gateway to a VPC.
-
authorizeClientVpnIngress(params = {}, callback) ⇒ AWS.Request
Adds an ingress authorization rule to a Client VPN endpoint.
-
authorizeSecurityGroupEgress(params = {}, callback) ⇒ AWS.Request
[VPC only] Adds the specified egress rules to a security group for use with a VPC.
-
authorizeSecurityGroupIngress(params = {}, callback) ⇒ AWS.Request
Adds the specified ingress rules to a security group.
-
bundleInstance(params = {}, callback) ⇒ AWS.Request
Bundles an Amazon instance store-backed Windows instance.
-
cancelBundleTask(params = {}, callback) ⇒ AWS.Request
Cancels a bundling operation for an instance store-backed Windows instance.
-
cancelCapacityReservation(params = {}, callback) ⇒ AWS.Request
Cancels the specified Capacity Reservation, releases the reserved capacity, and changes the Capacity Reservation's state to cancelled.
-
cancelConversionTask(params = {}, callback) ⇒ AWS.Request
Cancels an active conversion task.
-
cancelExportTask(params = {}, callback) ⇒ AWS.Request
Cancels an active export task.
-
cancelImportTask(params = {}, callback) ⇒ AWS.Request
Cancels an in-process import virtual machine or import snapshot task.
-
cancelReservedInstancesListing(params = {}, callback) ⇒ AWS.Request
Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.
-
cancelSpotFleetRequests(params = {}, callback) ⇒ AWS.Request
Cancels the specified Spot Fleet requests.
-
cancelSpotInstanceRequests(params = {}, callback) ⇒ AWS.Request
Cancels one or more Spot Instance requests.
-
confirmProductInstance(params = {}, callback) ⇒ AWS.Request
Determines whether a product code is associated with an instance.
-
copyFpgaImage(params = {}, callback) ⇒ AWS.Request
Copies the specified Amazon FPGA Image (AFI) to the current region.
-
copyImage(params = {}, callback) ⇒ AWS.Request
Initiates the copy of an AMI from the specified source region to the current region.
-
copySnapshot(params = {}, callback) ⇒ AWS.Request
Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3.
-
createCapacityReservation(params = {}, callback) ⇒ AWS.Request
Creates a new Capacity Reservation with the specified attributes.
-
createClientVpnEndpoint(params = {}, callback) ⇒ AWS.Request
Creates a Client VPN endpoint.
-
createClientVpnRoute(params = {}, callback) ⇒ AWS.Request
Adds a route to a network to a Client VPN endpoint.
-
createCustomerGateway(params = {}, callback) ⇒ AWS.Request
Provides information to AWS about your VPN customer gateway device.
-
createDefaultSubnet(params = {}, callback) ⇒ AWS.Request
Creates a default subnet with a size /20 IPv4 CIDR block in the specified Availability Zone in your default VPC.
-
createDefaultVpc(params = {}, callback) ⇒ AWS.Request
Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone.
-
createDhcpOptions(params = {}, callback) ⇒ AWS.Request
Creates a set of DHCP options for your VPC.
-
createEgressOnlyInternetGateway(params = {}, callback) ⇒ AWS.Request
[IPv6 only] Creates an egress-only internet gateway for your VPC.
-
createFleet(params = {}, callback) ⇒ AWS.Request
Launches an EC2 Fleet.
-
createFlowLogs(params = {}, callback) ⇒ AWS.Request
Creates one or more flow logs to capture information about IP traffic for a specific network interface, subnet, or VPC.
-
createFpgaImage(params = {}, callback) ⇒ AWS.Request
Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).
-
createImage(params = {}, callback) ⇒ AWS.Request
Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.
-
createInstanceExportTask(params = {}, callback) ⇒ AWS.Request
Exports a running or stopped instance to an S3 bucket.
-
createInternetGateway(params = {}, callback) ⇒ AWS.Request
Creates an internet gateway for use with a VPC.
-
createKeyPair(params = {}, callback) ⇒ AWS.Request
Creates a 2048-bit RSA key pair with the specified name.
-
createLaunchTemplate(params = {}, callback) ⇒ AWS.Request
Creates a launch template.
-
createLaunchTemplateVersion(params = {}, callback) ⇒ AWS.Request
Creates a new version for a launch template.
-
createNatGateway(params = {}, callback) ⇒ AWS.Request
Creates a NAT gateway in the specified public subnet.
-
createNetworkAcl(params = {}, callback) ⇒ AWS.Request
Creates a network ACL in a VPC.
-
createNetworkAclEntry(params = {}, callback) ⇒ AWS.Request
Creates an entry (a rule) in a network ACL with the specified rule number.
-
createNetworkInterface(params = {}, callback) ⇒ AWS.Request
Creates a network interface in the specified subnet.
-
createNetworkInterfacePermission(params = {}, callback) ⇒ AWS.Request
Grants an AWS-authorized account permission to attach the specified network interface to an instance in their account.
-
createPlacementGroup(params = {}, callback) ⇒ AWS.Request
Creates a placement group in which to launch instances.
-
createReservedInstancesListing(params = {}, callback) ⇒ AWS.Request
Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace.
-
createRoute(params = {}, callback) ⇒ AWS.Request
Creates a route in a route table within a VPC.
-
createRouteTable(params = {}, callback) ⇒ AWS.Request
Creates a route table for the specified VPC.
-
createSecurityGroup(params = {}, callback) ⇒ AWS.Request
Creates a security group.
-
createSnapshot(params = {}, callback) ⇒ AWS.Request
Creates a snapshot of an EBS volume and stores it in Amazon S3.
-
createSpotDatafeedSubscription(params = {}, callback) ⇒ AWS.Request
Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs.
-
createSubnet(params = {}, callback) ⇒ AWS.Request
Creates a subnet in an existing VPC.
-
createTags(params = {}, callback) ⇒ AWS.Request
Adds or overwrites the specified tags for the specified Amazon EC2 resource or resources.
-
createTransitGateway(params = {}, callback) ⇒ AWS.Request
Creates a transit gateway.
-
createTransitGatewayRoute(params = {}, callback) ⇒ AWS.Request
Creates a static route for the specified transit gateway route table.
-
createTransitGatewayRouteTable(params = {}, callback) ⇒ AWS.Request
Creates a route table for the specified transit gateway.
-
createTransitGatewayVpcAttachment(params = {}, callback) ⇒ AWS.Request
Attaches the specified VPC to the specified transit gateway.
-
createVolume(params = {}, callback) ⇒ AWS.Request
Creates an EBS volume that can be attached to an instance in the same Availability Zone.
-
createVpc(params = {}, callback) ⇒ AWS.Request
Creates a VPC with the specified IPv4 CIDR block.
-
createVpcEndpoint(params = {}, callback) ⇒ AWS.Request
Creates a VPC endpoint for a specified service.
-
createVpcEndpointConnectionNotification(params = {}, callback) ⇒ AWS.Request
Creates a connection notification for a specified VPC endpoint or VPC endpoint service.
-
createVpcEndpointServiceConfiguration(params = {}, callback) ⇒ AWS.Request
Creates a VPC endpoint service configuration to which service consumers (AWS accounts, IAM users, and IAM roles) can connect.
-
createVpcPeeringConnection(params = {}, callback) ⇒ AWS.Request
Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection.
-
createVpnConnection(params = {}, callback) ⇒ AWS.Request
Creates a VPN connection between an existing virtual private gateway and a VPN customer gateway.
-
createVpnConnectionRoute(params = {}, callback) ⇒ AWS.Request
Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway.
-
createVpnGateway(params = {}, callback) ⇒ AWS.Request
Creates a virtual private gateway.
-
deleteClientVpnEndpoint(params = {}, callback) ⇒ AWS.Request
Deletes the specified Client VPN endpoint.
-
deleteClientVpnRoute(params = {}, callback) ⇒ AWS.Request
Deletes a route from a Client VPN endpoint.
-
deleteCustomerGateway(params = {}, callback) ⇒ AWS.Request
Deletes the specified customer gateway.
-
deleteDhcpOptions(params = {}, callback) ⇒ AWS.Request
Deletes the specified set of DHCP options.
-
deleteEgressOnlyInternetGateway(params = {}, callback) ⇒ AWS.Request
Deletes an egress-only internet gateway.
-
deleteFleets(params = {}, callback) ⇒ AWS.Request
Deletes the specified EC2 Fleet.
-
deleteFlowLogs(params = {}, callback) ⇒ AWS.Request
Deletes one or more flow logs.
-
deleteFpgaImage(params = {}, callback) ⇒ AWS.Request
Deletes the specified Amazon FPGA Image (AFI).
-
deleteInternetGateway(params = {}, callback) ⇒ AWS.Request
Deletes the specified internet gateway.
-
deleteKeyPair(params = {}, callback) ⇒ AWS.Request
Deletes the specified key pair, by removing the public key from Amazon EC2.
-
deleteLaunchTemplate(params = {}, callback) ⇒ AWS.Request
Deletes a launch template.
-
deleteLaunchTemplateVersions(params = {}, callback) ⇒ AWS.Request
Deletes one or more versions of a launch template.
-
deleteNatGateway(params = {}, callback) ⇒ AWS.Request
Deletes the specified NAT gateway.
-
deleteNetworkAcl(params = {}, callback) ⇒ AWS.Request
Deletes the specified network ACL.
-
deleteNetworkAclEntry(params = {}, callback) ⇒ AWS.Request
Deletes the specified ingress or egress entry (rule) from the specified network ACL.
-
deleteNetworkInterface(params = {}, callback) ⇒ AWS.Request
Deletes the specified network interface.
-
deleteNetworkInterfacePermission(params = {}, callback) ⇒ AWS.Request
Deletes a permission for a network interface.
-
deletePlacementGroup(params = {}, callback) ⇒ AWS.Request
Deletes the specified placement group.
-
deleteRoute(params = {}, callback) ⇒ AWS.Request
Deletes the specified route from the specified route table.
-
deleteRouteTable(params = {}, callback) ⇒ AWS.Request
Deletes the specified route table.
-
deleteSecurityGroup(params = {}, callback) ⇒ AWS.Request
Deletes a security group.
-
deleteSnapshot(params = {}, callback) ⇒ AWS.Request
Deletes the specified snapshot.
-
deleteSpotDatafeedSubscription(params = {}, callback) ⇒ AWS.Request
Deletes the data feed for Spot Instances.
-
deleteSubnet(params = {}, callback) ⇒ AWS.Request
Deletes the specified subnet.
-
deleteTags(params = {}, callback) ⇒ AWS.Request
Deletes the specified set of tags from the specified set of resources.
-
deleteTransitGateway(params = {}, callback) ⇒ AWS.Request
Deletes the specified transit gateway.
-
deleteTransitGatewayRoute(params = {}, callback) ⇒ AWS.Request
Deletes the specified route from the specified transit gateway route table.
-
deleteTransitGatewayRouteTable(params = {}, callback) ⇒ AWS.Request
Deletes the specified transit gateway route table.
-
deleteTransitGatewayVpcAttachment(params = {}, callback) ⇒ AWS.Request
Deletes the specified VPC attachment.
-
deleteVolume(params = {}, callback) ⇒ AWS.Request
Deletes the specified EBS volume.
-
deleteVpc(params = {}, callback) ⇒ AWS.Request
Deletes the specified VPC.
-
deleteVpcEndpointConnectionNotifications(params = {}, callback) ⇒ AWS.Request
Deletes one or more VPC endpoint connection notifications.
-
deleteVpcEndpoints(params = {}, callback) ⇒ AWS.Request
Deletes one or more specified VPC endpoints.
-
deleteVpcEndpointServiceConfigurations(params = {}, callback) ⇒ AWS.Request
Deletes one or more VPC endpoint service configurations in your account.
-
deleteVpcPeeringConnection(params = {}, callback) ⇒ AWS.Request
Deletes a VPC peering connection.
-
deleteVpnConnection(params = {}, callback) ⇒ AWS.Request
Deletes the specified VPN connection.
-
deleteVpnConnectionRoute(params = {}, callback) ⇒ AWS.Request
Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway.
-
deleteVpnGateway(params = {}, callback) ⇒ AWS.Request
Deletes the specified virtual private gateway.
-
deprovisionByoipCidr(params = {}, callback) ⇒ AWS.Request
Releases the specified address range that you provisioned for use with your AWS resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.
-
deregisterImage(params = {}, callback) ⇒ AWS.Request
Deregisters the specified AMI.
-
describeAccountAttributes(params = {}, callback) ⇒ AWS.Request
Describes attributes of your AWS account.
-
describeAddresses(params = {}, callback) ⇒ AWS.Request
Describes the specified Elastic IP addresses or all of your Elastic IP addresses.
-
describeAggregateIdFormat(params = {}, callback) ⇒ AWS.Request
Describes the longer ID format settings for all resource types in a specific region.
-
describeAvailabilityZones(params = {}, callback) ⇒ AWS.Request
Describes the Availability Zones that are available to you.
-
describeBundleTasks(params = {}, callback) ⇒ AWS.Request
Describes the specified bundle tasks or all of your bundle tasks.
-
describeByoipCidrs(params = {}, callback) ⇒ AWS.Request
Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.
-
describeCapacityReservations(params = {}, callback) ⇒ AWS.Request
Describes one or more of your Capacity Reservations.
-
describeClassicLinkInstances(params = {}, callback) ⇒ AWS.Request
Describes one or more of your linked EC2-Classic instances.
-
describeClientVpnAuthorizationRules(params = {}, callback) ⇒ AWS.Request
Describes the authorization rules for a specified Client VPN endpoint.
-
describeClientVpnConnections(params = {}, callback) ⇒ AWS.Request
Describes active client connections and connections that have been terminated within the last 60 minutes for the specified Client VPN endpoint.
-
describeClientVpnEndpoints(params = {}, callback) ⇒ AWS.Request
Describes one or more Client VPN endpoints in the account.
-
describeClientVpnRoutes(params = {}, callback) ⇒ AWS.Request
Describes the routes for the specified Client VPN endpoint.
-
describeClientVpnTargetNetworks(params = {}, callback) ⇒ AWS.Request
Describes the target networks associated with the specified Client VPN endpoint.
-
describeConversionTasks(params = {}, callback) ⇒ AWS.Request
Describes the specified conversion tasks or all your conversion tasks.
-
describeCustomerGateways(params = {}, callback) ⇒ AWS.Request
Describes one or more of your VPN customer gateways.
-
describeDhcpOptions(params = {}, callback) ⇒ AWS.Request
Describes one or more of your DHCP options sets.
-
describeEgressOnlyInternetGateways(params = {}, callback) ⇒ AWS.Request
Describes one or more of your egress-only internet gateways.
-
describeElasticGpus(params = {}, callback) ⇒ AWS.Request
Describes the Elastic Graphics accelerator associated with your instances.
-
describeExportTasks(params = {}, callback) ⇒ AWS.Request
Describes the specified export tasks or all your export tasks.
-
describeFleetHistory(params = {}, callback) ⇒ AWS.Request
Describes the events for the specified EC2 Fleet during the specified time.
-
describeFleetInstances(params = {}, callback) ⇒ AWS.Request
Describes the running instances for the specified EC2 Fleet.
-
describeFleets(params = {}, callback) ⇒ AWS.Request
Describes the specified EC2 Fleets or all your EC2 Fleets.
-
describeFlowLogs(params = {}, callback) ⇒ AWS.Request
Describes one or more flow logs.
-
describeFpgaImageAttribute(params = {}, callback) ⇒ AWS.Request
Describes the specified attribute of the specified Amazon FPGA Image (AFI).
-
describeFpgaImages(params = {}, callback) ⇒ AWS.Request
Describes the Amazon FPGA Images (AFIs) available to you.
-
describeHostReservationOfferings(params = {}, callback) ⇒ AWS.Request
Describes the Dedicated Host reservations that are available to purchase.
-
describeHostReservations(params = {}, callback) ⇒ AWS.Request
Describes reservations that are associated with Dedicated Hosts in your account.
-
describeHosts(params = {}, callback) ⇒ AWS.Request
Describes the specified Dedicated Hosts or all your Dedicated Hosts.
-
describeIamInstanceProfileAssociations(params = {}, callback) ⇒ AWS.Request
Describes your IAM instance profile associations.
-
describeIdentityIdFormat(params = {}, callback) ⇒ AWS.Request
Describes the ID format settings for resources for the specified IAM user, IAM role, or root user.
-
describeIdFormat(params = {}, callback) ⇒ AWS.Request
Describes the ID format settings for your resources on a per-region basis, for example, to view which resource types are enabled for longer IDs.
-
describeImageAttribute(params = {}, callback) ⇒ AWS.Request
Describes the specified attribute of the specified AMI.
-
describeImages(params = {}, callback) ⇒ AWS.Request
Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.
-
describeImportImageTasks(params = {}, callback) ⇒ AWS.Request
Displays details about an import virtual machine or import snapshot tasks that are already created.
-
describeImportSnapshotTasks(params = {}, callback) ⇒ AWS.Request
Describes your import snapshot tasks.
-
describeInstanceAttribute(params = {}, callback) ⇒ AWS.Request
Describes the specified attribute of the specified instance.
-
describeInstanceCreditSpecifications(params = {}, callback) ⇒ AWS.Request
Describes the credit option for CPU usage of the specified T2 or T3 instances.
-
describeInstances(params = {}, callback) ⇒ AWS.Request
Describes the specified instances or all of your instances.
-
describeInstanceStatus(params = {}, callback) ⇒ AWS.Request
Describes the status of the specified instances or all of your instances.
-
describeInternetGateways(params = {}, callback) ⇒ AWS.Request
Describes one or more of your internet gateways.
-
describeKeyPairs(params = {}, callback) ⇒ AWS.Request
Describes the specified key pairs or all of your key pairs.
-
describeLaunchTemplates(params = {}, callback) ⇒ AWS.Request
Describes one or more launch templates.
-
describeLaunchTemplateVersions(params = {}, callback) ⇒ AWS.Request
Describes one or more versions of a specified launch template.
-
describeMovingAddresses(params = {}, callback) ⇒ AWS.Request
Describes your Elastic IP addresses that are being moved to the EC2-VPC platform, or that are being restored to the EC2-Classic platform.
-
describeNatGateways(params = {}, callback) ⇒ AWS.Request
Describes one or more of your NAT gateways.
-
describeNetworkAcls(params = {}, callback) ⇒ AWS.Request
Describes one or more of your network ACLs.
-
describeNetworkInterfaceAttribute(params = {}, callback) ⇒ AWS.Request
Describes a network interface attribute.
-
describeNetworkInterfacePermissions(params = {}, callback) ⇒ AWS.Request
Describes the permissions for your network interfaces.
-
describeNetworkInterfaces(params = {}, callback) ⇒ AWS.Request
Describes one or more of your network interfaces.
-
describePlacementGroups(params = {}, callback) ⇒ AWS.Request
Describes the specified placement groups or all of your placement groups.
-
describePrefixLists(params = {}, callback) ⇒ AWS.Request
Describes available AWS services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service.
-
describePrincipalIdFormat(params = {}, callback) ⇒ AWS.Request
Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference.
-
describePublicIpv4Pools(params = {}, callback) ⇒ AWS.Request
Describes the specified IPv4 address pools.
-
describeRegions(params = {}, callback) ⇒ AWS.Request
Describes the regions that are currently available to you.
-
describeReservedInstances(params = {}, callback) ⇒ AWS.Request
Describes one or more of the Reserved Instances that you purchased.
-
describeReservedInstancesListings(params = {}, callback) ⇒ AWS.Request
Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.
-
describeReservedInstancesModifications(params = {}, callback) ⇒ AWS.Request
Describes the modifications made to your Reserved Instances.
-
describeReservedInstancesOfferings(params = {}, callback) ⇒ AWS.Request
Describes Reserved Instance offerings that are available for purchase.
-
describeRouteTables(params = {}, callback) ⇒ AWS.Request
Describes one or more of your route tables.
-
describeScheduledInstanceAvailability(params = {}, callback) ⇒ AWS.Request
Finds available schedules that meet the specified criteria.
-
describeScheduledInstances(params = {}, callback) ⇒ AWS.Request
Describes the specified Scheduled Instances or all your Scheduled Instances.
-
describeSecurityGroupReferences(params = {}, callback) ⇒ AWS.Request
[VPC only] Describes the VPCs on the other side of a VPC peering connection that are referencing the security groups you've specified in this request.
-
describeSecurityGroups(params = {}, callback) ⇒ AWS.Request
Describes the specified security groups or all of your security groups.
-
describeSnapshotAttribute(params = {}, callback) ⇒ AWS.Request
Describes the specified attribute of the specified snapshot.
-
describeSnapshots(params = {}, callback) ⇒ AWS.Request
Describes the specified EBS snapshots available to you or all of the EBS snapshots available to you.
-
describeSpotDatafeedSubscription(params = {}, callback) ⇒ AWS.Request
Describes the data feed for Spot Instances.
-
describeSpotFleetInstances(params = {}, callback) ⇒ AWS.Request
Describes the running instances for the specified Spot Fleet.
-
describeSpotFleetRequestHistory(params = {}, callback) ⇒ AWS.Request
Describes the events for the specified Spot Fleet request during the specified time.
-
describeSpotFleetRequests(params = {}, callback) ⇒ AWS.Request
Describes your Spot Fleet requests.
-
describeSpotInstanceRequests(params = {}, callback) ⇒ AWS.Request
Describes the specified Spot Instance requests.
-
describeSpotPriceHistory(params = {}, callback) ⇒ AWS.Request
Describes the Spot price history.
-
describeStaleSecurityGroups(params = {}, callback) ⇒ AWS.Request
[VPC only] Describes the stale security group rules for security groups in a specified VPC.
-
describeSubnets(params = {}, callback) ⇒ AWS.Request
Describes one or more of your subnets.
-
describeTags(params = {}, callback) ⇒ AWS.Request
Describes the specified tags for your EC2 resources.
-
describeTransitGatewayAttachments(params = {}, callback) ⇒ AWS.Request
Describes one or more attachments between resources and transit gateways.
-
describeTransitGatewayRouteTables(params = {}, callback) ⇒ AWS.Request
Describes one or more transit gateway route tables.
-
describeTransitGateways(params = {}, callback) ⇒ AWS.Request
Describes one or more transit gateways.
-
describeTransitGatewayVpcAttachments(params = {}, callback) ⇒ AWS.Request
Describes one or more VPC attachments.
-
describeVolumeAttribute(params = {}, callback) ⇒ AWS.Request
Describes the specified attribute of the specified volume.
-
describeVolumes(params = {}, callback) ⇒ AWS.Request
Describes the specified EBS volumes or all of your EBS volumes.
-
describeVolumesModifications(params = {}, callback) ⇒ AWS.Request
Reports the current modification status of EBS volumes.
-
describeVolumeStatus(params = {}, callback) ⇒ AWS.Request
Describes the status of the specified volumes.
-
describeVpcAttribute(params = {}, callback) ⇒ AWS.Request
Describes the specified attribute of the specified VPC.
-
describeVpcClassicLink(params = {}, callback) ⇒ AWS.Request
Describes the ClassicLink status of one or more VPCs.
-
describeVpcClassicLinkDnsSupport(params = {}, callback) ⇒ AWS.Request
Describes the ClassicLink DNS support status of one or more VPCs.
-
describeVpcEndpointConnectionNotifications(params = {}, callback) ⇒ AWS.Request
Describes the connection notifications for VPC endpoints and VPC endpoint services.
-
describeVpcEndpointConnections(params = {}, callback) ⇒ AWS.Request
Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance.
-
describeVpcEndpoints(params = {}, callback) ⇒ AWS.Request
Describes one or more of your VPC endpoints.
-
describeVpcEndpointServiceConfigurations(params = {}, callback) ⇒ AWS.Request
Describes the VPC endpoint service configurations in your account (your services).
-
describeVpcEndpointServicePermissions(params = {}, callback) ⇒ AWS.Request
Describes the principals (service consumers) that are permitted to discover your VPC endpoint service.
-
describeVpcEndpointServices(params = {}, callback) ⇒ AWS.Request
Describes available services to which you can create a VPC endpoint.
-
describeVpcPeeringConnections(params = {}, callback) ⇒ AWS.Request
Describes one or more of your VPC peering connections.
-
describeVpcs(params = {}, callback) ⇒ AWS.Request
Describes one or more of your VPCs.
-
describeVpnConnections(params = {}, callback) ⇒ AWS.Request
Describes one or more of your VPN connections.
-
describeVpnGateways(params = {}, callback) ⇒ AWS.Request
Describes one or more of your virtual private gateways.
-
detachClassicLinkVpc(params = {}, callback) ⇒ AWS.Request
Unlinks (detaches) a linked EC2-Classic instance from a VPC.
-
detachInternetGateway(params = {}, callback) ⇒ AWS.Request
Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC.
-
detachNetworkInterface(params = {}, callback) ⇒ AWS.Request
Detaches a network interface from an instance.
-
detachVolume(params = {}, callback) ⇒ AWS.Request
Detaches an EBS volume from an instance.
-
detachVpnGateway(params = {}, callback) ⇒ AWS.Request
Detaches a virtual private gateway from a VPC.
-
disableTransitGatewayRouteTablePropagation(params = {}, callback) ⇒ AWS.Request
Disables the specified resource attachment from propagating routes to the specified propagation route table.
-
disableVgwRoutePropagation(params = {}, callback) ⇒ AWS.Request
Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC.
-
disableVpcClassicLink(params = {}, callback) ⇒ AWS.Request
Disables ClassicLink for a VPC.
-
disableVpcClassicLinkDnsSupport(params = {}, callback) ⇒ AWS.Request
Disables ClassicLink DNS support for a VPC.
-
disassociateAddress(params = {}, callback) ⇒ AWS.Request
Disassociates an Elastic IP address from the instance or network interface it's associated with.
-
disassociateClientVpnTargetNetwork(params = {}, callback) ⇒ AWS.Request
Disassociates a target network from the specified Client VPN endpoint.
-
disassociateIamInstanceProfile(params = {}, callback) ⇒ AWS.Request
Disassociates an IAM instance profile from a running or stopped instance.
-
disassociateRouteTable(params = {}, callback) ⇒ AWS.Request
Disassociates a subnet from a route table.
-
disassociateSubnetCidrBlock(params = {}, callback) ⇒ AWS.Request
Disassociates a CIDR block from a subnet.
-
disassociateTransitGatewayRouteTable(params = {}, callback) ⇒ AWS.Request
Disassociates a resource attachment from a transit gateway route table.
-
disassociateVpcCidrBlock(params = {}, callback) ⇒ AWS.Request
Disassociates a CIDR block from a VPC.
-
enableTransitGatewayRouteTablePropagation(params = {}, callback) ⇒ AWS.Request
Enables the specified attachment to propagate routes to the specified propagation route table.
-
enableVgwRoutePropagation(params = {}, callback) ⇒ AWS.Request
Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.
-
enableVolumeIO(params = {}, callback) ⇒ AWS.Request
Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent.
-
enableVpcClassicLink(params = {}, callback) ⇒ AWS.Request
Enables a VPC for ClassicLink.
-
enableVpcClassicLinkDnsSupport(params = {}, callback) ⇒ AWS.Request
Enables a VPC to support DNS hostname resolution for ClassicLink.
-
exportClientVpnClientCertificateRevocationList(params = {}, callback) ⇒ AWS.Request
Downloads the client certificate revocation list for the specified Client VPN endpoint.
-
exportClientVpnClientConfiguration(params = {}, callback) ⇒ AWS.Request
Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint.
-
exportTransitGatewayRoutes(params = {}, callback) ⇒ AWS.Request
Exports routes from the specified transit gateway route table to the specified S3 bucket.
-
getConsoleOutput(params = {}, callback) ⇒ AWS.Request
Gets the console output for the specified instance.
-
getConsoleScreenshot(params = {}, callback) ⇒ AWS.Request
Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.
-
getHostReservationPurchasePreview(params = {}, callback) ⇒ AWS.Request
Preview a reservation purchase with configurations that match those of your Dedicated Host.
-
getLaunchTemplateData(params = {}, callback) ⇒ AWS.Request
Retrieves the configuration data of the specified instance.
-
getPasswordData(params = {}, callback) ⇒ AWS.Request
Retrieves the encrypted administrator password for a running Windows instance.
-
getReservedInstancesExchangeQuote(params = {}, callback) ⇒ AWS.Request
Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance.
-
getTransitGatewayAttachmentPropagations(params = {}, callback) ⇒ AWS.Request
Lists the route tables to which the specified resource attachment propagates routes.
-
getTransitGatewayRouteTableAssociations(params = {}, callback) ⇒ AWS.Request
Gets information about the associations for the specified transit gateway route table.
-
getTransitGatewayRouteTablePropagations(params = {}, callback) ⇒ AWS.Request
Gets information about the route table propagations for the specified transit gateway route table.
-
importClientVpnClientCertificateRevocationList(params = {}, callback) ⇒ AWS.Request
Uploads a client certificate revocation list to the specified Client VPN endpoint.
-
importImage(params = {}, callback) ⇒ AWS.Request
Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI).
-
importInstance(params = {}, callback) ⇒ AWS.Request
Creates an import instance task using metadata from the specified disk image.
-
importKeyPair(params = {}, callback) ⇒ AWS.Request
Imports the public key from an RSA key pair that you created with a third-party tool.
-
importSnapshot(params = {}, callback) ⇒ AWS.Request
Imports a disk into an EBS snapshot.
-
importVolume(params = {}, callback) ⇒ AWS.Request
Creates an import volume task using metadata from the specified disk image.For more information, see Importing Disks to Amazon EBS.
-
modifyCapacityReservation(params = {}, callback) ⇒ AWS.Request
Modifies a Capacity Reservation's capacity and the conditions under which it is to be released.
-
modifyClientVpnEndpoint(params = {}, callback) ⇒ AWS.Request
Modifies the specified Client VPN endpoint.
-
modifyFleet(params = {}, callback) ⇒ AWS.Request
Modifies the specified EC2 Fleet.
-
modifyFpgaImageAttribute(params = {}, callback) ⇒ AWS.Request
Modifies the specified attribute of the specified Amazon FPGA Image (AFI).
-
modifyHosts(params = {}, callback) ⇒ AWS.Request
Modify the auto-placement setting of a Dedicated Host.
-
modifyIdentityIdFormat(params = {}, callback) ⇒ AWS.Request
Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account.
-
modifyIdFormat(params = {}, callback) ⇒ AWS.Request
Modifies the ID format for the specified resource on a per-region basis.
-
modifyImageAttribute(params = {}, callback) ⇒ AWS.Request
Modifies the specified attribute of the specified AMI.
-
modifyInstanceAttribute(params = {}, callback) ⇒ AWS.Request
Modifies the specified attribute of the specified instance.
-
modifyInstanceCapacityReservationAttributes(params = {}, callback) ⇒ AWS.Request
Modifies the Capacity Reservation settings for a stopped instance.
-
modifyInstanceCreditSpecification(params = {}, callback) ⇒ AWS.Request
Modifies the credit option for CPU usage on a running or stopped T2 or T3 instance.
-
modifyInstanceEventStartTime(params = {}, callback) ⇒ AWS.Request
Modifies the start time for a scheduled Amazon EC2 instance event.
-
modifyInstancePlacement(params = {}, callback) ⇒ AWS.Request
Modifies the placement attributes for a specified instance.
-
modifyLaunchTemplate(params = {}, callback) ⇒ AWS.Request
Modifies a launch template.
-
modifyNetworkInterfaceAttribute(params = {}, callback) ⇒ AWS.Request
Modifies the specified network interface attribute.
-
modifyReservedInstances(params = {}, callback) ⇒ AWS.Request
Modifies the Availability Zone, instance count, instance type, or network platform (EC2-Classic or EC2-VPC) of your Reserved Instances.
-
modifySnapshotAttribute(params = {}, callback) ⇒ AWS.Request
Adds or removes permission settings for the specified snapshot.
-
modifySpotFleetRequest(params = {}, callback) ⇒ AWS.Request
Modifies the specified Spot Fleet request.
-
modifySubnetAttribute(params = {}, callback) ⇒ AWS.Request
Modifies a subnet attribute.
-
modifyTransitGatewayVpcAttachment(params = {}, callback) ⇒ AWS.Request
Modifies the specified VPC attachment.
-
modifyVolume(params = {}, callback) ⇒ AWS.Request
You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity.
-
modifyVolumeAttribute(params = {}, callback) ⇒ AWS.Request
Modifies a volume attribute.
-
modifyVpcAttribute(params = {}, callback) ⇒ AWS.Request
Modifies the specified attribute of the specified VPC.
-
modifyVpcEndpoint(params = {}, callback) ⇒ AWS.Request
Modifies attributes of a specified VPC endpoint.
-
modifyVpcEndpointConnectionNotification(params = {}, callback) ⇒ AWS.Request
Modifies a connection notification for VPC endpoint or VPC endpoint service.
-
modifyVpcEndpointServiceConfiguration(params = {}, callback) ⇒ AWS.Request
Modifies the attributes of your VPC endpoint service configuration.
-
modifyVpcEndpointServicePermissions(params = {}, callback) ⇒ AWS.Request
Modifies the permissions for your VPC endpoint service.
-
modifyVpcPeeringConnectionOptions(params = {}, callback) ⇒ AWS.Request
Modifies the VPC peering connection options on one side of a VPC peering connection.
-
modifyVpcTenancy(params = {}, callback) ⇒ AWS.Request
Modifies the instance tenancy attribute of the specified VPC.
-
monitorInstances(params = {}, callback) ⇒ AWS.Request
Enables detailed monitoring for a running instance.
-
moveAddressToVpc(params = {}, callback) ⇒ AWS.Request
Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform.
-
provisionByoipCidr(params = {}, callback) ⇒ AWS.Request
Provisions an address range for use with your AWS resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool.
-
purchaseHostReservation(params = {}, callback) ⇒ AWS.Request
Purchase a reservation with configurations that match those of your Dedicated Host.
-
purchaseReservedInstancesOffering(params = {}, callback) ⇒ AWS.Request
Purchases a Reserved Instance for use with your account.
-
purchaseScheduledInstances(params = {}, callback) ⇒ AWS.Request
Purchases the Scheduled Instances with the specified schedule.
-
rebootInstances(params = {}, callback) ⇒ AWS.Request
Requests a reboot of the specified instances.
-
registerImage(params = {}, callback) ⇒ AWS.Request
Registers an AMI.
-
rejectTransitGatewayVpcAttachment(params = {}, callback) ⇒ AWS.Request
Rejects a request to attach a VPC to a transit gateway.
-
rejectVpcEndpointConnections(params = {}, callback) ⇒ AWS.Request
Rejects one or more VPC endpoint connection requests to your VPC endpoint service.
-
rejectVpcPeeringConnection(params = {}, callback) ⇒ AWS.Request
Rejects a VPC peering connection request.
-
releaseAddress(params = {}, callback) ⇒ AWS.Request
Releases the specified Elastic IP address.
-
releaseHosts(params = {}, callback) ⇒ AWS.Request
When you no longer want to use an On-Demand Dedicated Host it can be released.
-
replaceIamInstanceProfileAssociation(params = {}, callback) ⇒ AWS.Request
Replaces an IAM instance profile for the specified running instance.
-
replaceNetworkAclAssociation(params = {}, callback) ⇒ AWS.Request
Changes which network ACL a subnet is associated with.
-
replaceNetworkAclEntry(params = {}, callback) ⇒ AWS.Request
Replaces an entry (rule) in a network ACL.
-
replaceRoute(params = {}, callback) ⇒ AWS.Request
Replaces an existing route within a route table in a VPC.
-
replaceRouteTableAssociation(params = {}, callback) ⇒ AWS.Request
Changes the route table associated with a given subnet in a VPC.
-
replaceTransitGatewayRoute(params = {}, callback) ⇒ AWS.Request
Replaces the specified route in the specified transit gateway route table.
-
reportInstanceStatus(params = {}, callback) ⇒ AWS.Request
Submits feedback about the status of an instance.
-
requestSpotFleet(params = {}, callback) ⇒ AWS.Request
Creates a Spot Fleet request.
-
requestSpotInstances(params = {}, callback) ⇒ AWS.Request
Creates a Spot Instance request.
-
resetFpgaImageAttribute(params = {}, callback) ⇒ AWS.Request
Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value.
-
resetImageAttribute(params = {}, callback) ⇒ AWS.Request
Resets an attribute of an AMI to its default value.
-
resetInstanceAttribute(params = {}, callback) ⇒ AWS.Request
Resets an attribute of an instance to its default value.
-
resetNetworkInterfaceAttribute(params = {}, callback) ⇒ AWS.Request
Resets a network interface attribute.
-
resetSnapshotAttribute(params = {}, callback) ⇒ AWS.Request
Resets permission settings for the specified snapshot.
-
restoreAddressToClassic(params = {}, callback) ⇒ AWS.Request
Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform.
-
revokeClientVpnIngress(params = {}, callback) ⇒ AWS.Request
Removes an ingress authorization rule from a Client VPN endpoint.
-
revokeSecurityGroupEgress(params = {}, callback) ⇒ AWS.Request
[VPC only] Removes the specified egress rules from a security group for EC2-VPC.
-
revokeSecurityGroupIngress(params = {}, callback) ⇒ AWS.Request
Removes the specified ingress rules from a security group.
-
runInstances(params = {}, callback) ⇒ AWS.Request
Launches the specified number of instances using an AMI for which you have permissions.
-
runScheduledInstances(params = {}, callback) ⇒ AWS.Request
Launches the specified Scheduled Instances.
-
searchTransitGatewayRoutes(params = {}, callback) ⇒ AWS.Request
Searches for routes in the specified transit gateway route table.
-
startInstances(params = {}, callback) ⇒ AWS.Request
Starts an Amazon EBS-backed instance that you've previously stopped.
-
stopInstances(params = {}, callback) ⇒ AWS.Request
Stops an Amazon EBS-backed instance.
-
terminateClientVpnConnections(params = {}, callback) ⇒ AWS.Request
Terminates active Client VPN endpoint connections.
-
terminateInstances(params = {}, callback) ⇒ AWS.Request
Shuts down the specified instances.
-
unassignIpv6Addresses(params = {}, callback) ⇒ AWS.Request
Unassigns one or more IPv6 addresses from a network interface.
-
unassignPrivateIpAddresses(params = {}, callback) ⇒ AWS.Request
Unassigns one or more secondary private IP addresses from a network interface.
-
unmonitorInstances(params = {}, callback) ⇒ AWS.Request
Disables detailed monitoring for a running instance.
-
updateSecurityGroupRuleDescriptionsEgress(params = {}, callback) ⇒ AWS.Request
[VPC only] Updates the description of an egress (outbound) security group rule.
-
updateSecurityGroupRuleDescriptionsIngress(params = {}, callback) ⇒ AWS.Request
Updates the description of an ingress (inbound) security group rule.
-
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given EC2 resource.
-
withdrawByoipCidr(params = {}, callback) ⇒ AWS.Request
Stops advertising an IPv4 address range that is provisioned as an address pool.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, defineService
Constructor Details
Property Details
Method Details
acceptReservedInstancesExchangeQuote(params = {}, callback) ⇒ AWS.Request
Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.
acceptTransitGatewayVpcAttachment(params = {}, callback) ⇒ AWS.Request
Accepts a request to attach a VPC to a transit gateway.
The VPC attachment must be in the pendingAcceptance
state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use RejectTransitGatewayVpcAttachment to reject a VPC attachment request.
acceptVpcEndpointConnections(params = {}, callback) ⇒ AWS.Request
Accepts one or more interface VPC endpoint connection requests to your VPC endpoint service.
acceptVpcPeeringConnection(params = {}, callback) ⇒ AWS.Request
Accept a VPC peering connection request. To accept a request, the VPC peering connection must be in the pending-acceptance
state, and you must be the owner of the peer VPC. Use DescribeVpcPeeringConnections to view your outstanding VPC peering connection requests.
For an inter-region VPC peering connection request, you must accept the VPC peering connection in the region of the accepter VPC.
advertiseByoipCidr(params = {}, callback) ⇒ AWS.Request
Advertises an IPv4 address range that is provisioned for use with your AWS resources through bring your own IP addresses (BYOIP).
You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.
We recommend that you stop advertising the BYOIP CIDR from other locations when you advertise it from AWS. To minimize down time, you can configure your AWS resources to use an address from a BYOIP CIDR before it is advertised, and then simultaneously stop advertising it from the current location and start advertising it through AWS.
It can take a few minutes before traffic to the specified addresses starts routing to AWS because of BGP propagation delays.
To stop advertising the BYOIP CIDR, use WithdrawByoipCidr.
allocateAddress(params = {}, callback) ⇒ AWS.Request
Allocates an Elastic IP address to your AWS account. After you allocate the Elastic IP address you can associate it with an instance or network interface. After you release an Elastic IP address, it is released to the IP address pool and can be allocated to a different AWS account.
You can allocate an Elastic IP address from an address pool owned by AWS or from an address pool created from a public IPv4 address range that you have brought to AWS for use with your AWS resources using bring your own IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.
[EC2-VPC] If you release an Elastic IP address, you might be able to recover it. You cannot recover an Elastic IP address that you released after it is allocated to another AWS account. You cannot recover an Elastic IP address for EC2-Classic. To attempt to recover an Elastic IP address that you released, specify it in this operation.
An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. By default, you can allocate 5 Elastic IP addresses for EC2-Classic per region and 5 Elastic IP addresses for EC2-VPC per region.
For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
allocateHosts(params = {}, callback) ⇒ AWS.Request
Allocates a Dedicated Host to your account. At a minimum, specify the instance size type, Availability Zone, and quantity of hosts to allocate.
applySecurityGroupsToClientVpnTargetNetwork(params = {}, callback) ⇒ AWS.Request
Applies a security group to the association between the target network and the Client VPN endpoint. This action replaces the existing security groups with the specified security groups.
assignIpv6Addresses(params = {}, callback) ⇒ AWS.Request
Assigns one or more IPv6 addresses to the specified network interface. You can specify one or more specific IPv6 addresses, or you can specify the number of IPv6 addresses to be automatically assigned from within the subnet's IPv6 CIDR block range. You can assign as many IPv6 addresses to a network interface as you can assign private IPv4 addresses, and the limit varies per instance type. For information, see IP Addresses Per Network Interface Per Instance Type in the Amazon Elastic Compute Cloud User Guide.
assignPrivateIpAddresses(params = {}, callback) ⇒ AWS.Request
Assigns one or more secondary private IP addresses to the specified network interface.
You can specify one or more specific secondary IP addresses, or you can specify the number of secondary IP addresses to be automatically assigned within the subnet's CIDR block range. The number of secondary IP addresses that you can assign to an instance varies by instance type. For information about instance types, see Instance Types in the Amazon Elastic Compute Cloud User Guide. For more information about Elastic IP addresses, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
When you move a secondary private IP address to another network interface, any Elastic IP address that is associated with the IP address is also moved.
Remapping an IP address is an asynchronous operation. When you move an IP address from one network interface to another, check network/interfaces/macs/mac/local-ipv4s
in the instance metadata to confirm that the remapping is complete.
associateAddress(params = {}, callback) ⇒ AWS.Request
Associates an Elastic IP address with an instance or a network interface. Before you can use an Elastic IP address, you must allocate it to your account.
An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
[EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address is already associated with a different instance, it is disassociated from that instance and associated with the specified instance. If you associate an Elastic IP address with an instance that has an existing Elastic IP address, the existing address is disassociated from the instance, but remains allocated to your account.
[VPC in an EC2-Classic account] If you don't specify a private IP address, the Elastic IP address is associated with the primary IP address. If the Elastic IP address is already associated with a different instance or a network interface, you get an error unless you allow reassociation. You cannot associate an Elastic IP address with an instance or network interface that has an existing Elastic IP address.
This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error, and you may be charged for each time the Elastic IP address is remapped to the same instance. For more information, see the Elastic IP Addresses section of Amazon EC2 Pricing.
associateClientVpnTargetNetwork(params = {}, callback) ⇒ AWS.Request
Associates a target network with a Client VPN endpoint. A target network is a subnet in a VPC. You can associate multiple subnets from the same VPC with a Client VPN endpoint. You can associate only one subnet in each Availability Zone. We recommend that you associate at least two subnets to provide Availability Zone redundancy.
associateDhcpOptions(params = {}, callback) ⇒ AWS.Request
Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC.
After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don't need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.
For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.
associateIamInstanceProfile(params = {}, callback) ⇒ AWS.Request
Associates an IAM instance profile with a running or stopped instance. You cannot associate more than one IAM instance profile with an instance.
associateRouteTable(params = {}, callback) ⇒ AWS.Request
Associates a subnet with a route table. The subnet and route table must be in the same VPC. This association causes traffic originating from the subnet to be routed according to the routes in the route table. The action returns an association ID, which you need in order to disassociate the route table from the subnet later. A route table can be associated with multiple subnets.
For more information, see Route Tables in the Amazon Virtual Private Cloud User Guide.
associateSubnetCidrBlock(params = {}, callback) ⇒ AWS.Request
Associates a CIDR block with your subnet. You can only associate a single IPv6 CIDR block with your subnet. An IPv6 CIDR block must have a prefix length of /64.
associateTransitGatewayRouteTable(params = {}, callback) ⇒ AWS.Request
Associates the specified attachment with the specified transit gateway route table. You can associate only one route table with an attachment.
associateVpcCidrBlock(params = {}, callback) ⇒ AWS.Request
Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block, or you can associate an Amazon-provided IPv6 CIDR block. The IPv6 CIDR block size is fixed at /56.
For more information about associating CIDR blocks with your VPC and applicable restrictions, see VPC and Subnet Sizing in the Amazon Virtual Private Cloud User Guide.
attachClassicLinkVpc(params = {}, callback) ⇒ AWS.Request
Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more of the VPC's security groups. You cannot link an EC2-Classic instance to more than one VPC at a time. You can only link an instance that's in the running
state. An instance is automatically unlinked from a VPC when it's stopped - you can link it to the VPC again when you restart it.
After you've linked an instance, you cannot change the VPC security groups that are associated with it. To change the security groups, you must first unlink the instance, and then link it again.
Linking your instance to a VPC is sometimes referred to as attaching your instance.
attachInternetGateway(params = {}, callback) ⇒ AWS.Request
Attaches an internet gateway to a VPC, enabling connectivity between the internet and the VPC. For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide.
attachNetworkInterface(params = {}, callback) ⇒ AWS.Request
Attaches a network interface to an instance.
attachVolume(params = {}, callback) ⇒ AWS.Request
Attaches an EBS volume to a running or stopped instance and exposes it to the instance with the specified device name.
Encrypted EBS volumes may only be attached to instances that support Amazon EBS encryption. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.
For a list of supported device names, see Attaching an EBS Volume to an Instance. Any device names that aren't reserved for instance store volumes can be used for EBS volumes. For more information, see Amazon EC2 Instance Store in the Amazon Elastic Compute Cloud User Guide.
If a volume has an AWS Marketplace product code:
-
The volume can be attached only to a stopped instance.
-
AWS Marketplace product codes are copied from the volume to the instance.
-
You must be subscribed to the product.
-
The instance type and operating system of the instance must support the product. For example, you can't detach a volume from a Windows instance and attach it to a Linux instance.
For more information about EBS volumes, see Attaching Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.
attachVpnGateway(params = {}, callback) ⇒ AWS.Request
Attaches a virtual private gateway to a VPC. You can attach one virtual private gateway to one VPC at a time.
For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.
authorizeClientVpnIngress(params = {}, callback) ⇒ AWS.Request
Adds an ingress authorization rule to a Client VPN endpoint. Ingress authorization rules act as firewall rules that grant access to networks. You must configure ingress authorization rules to enable clients to access resources in AWS or on-premises networks.
authorizeSecurityGroupEgress(params = {}, callback) ⇒ AWS.Request
[VPC only] Adds the specified egress rules to a security group for use with a VPC.
An outbound rule permits instances to send traffic to the specified destination IPv4 or IPv6 CIDR address ranges, or to the specified destination security groups for the same VPC.
You specify a protocol for each rule (for example, TCP). For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code. You can use -1 for the type or code to mean all types or all codes.
Rule changes are propagated to affected instances as quickly as possible. However, a small delay might occur.
For more information about VPC security group limits, see Amazon VPC Limits.
authorizeSecurityGroupIngress(params = {}, callback) ⇒ AWS.Request
Adds the specified ingress rules to a security group.
An inbound rule permits instances to receive traffic from the specified destination IPv4 or IPv6 CIDR address ranges, or from the specified destination security groups.
You specify a protocol for each rule (for example, TCP). For TCP and UDP, you must also specify the destination port or port range. For ICMP/ICMPv6, you must also specify the ICMP/ICMPv6 type and code. You can use -1 to mean all types or all codes.
Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.
For more information about VPC security group limits, see Amazon VPC Limits.
bundleInstance(params = {}, callback) ⇒ AWS.Request
Bundles an Amazon instance store-backed Windows instance.
During bundling, only the root device volume (C:) is bundled. Data on other instance store volumes is not preserved.
cancelBundleTask(params = {}, callback) ⇒ AWS.Request
Cancels a bundling operation for an instance store-backed Windows instance.
cancelCapacityReservation(params = {}, callback) ⇒ AWS.Request
Cancels the specified Capacity Reservation, releases the reserved capacity, and changes the Capacity Reservation's state to cancelled
.
Instances running in the reserved capacity continue running until you stop them. Stopped instances that target the Capacity Reservation can no longer launch. Modify these instances to either target a different Capacity Reservation, launch On-Demand Instance capacity, or run in any open Capacity Reservation that has matching attributes and sufficient capacity.
cancelConversionTask(params = {}, callback) ⇒ AWS.Request
Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is in the process of transferring the final disk image, the command fails and returns an exception.
For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI.
cancelExportTask(params = {}, callback) ⇒ AWS.Request
Cancels an active export task. The request removes all artifacts of the export, including any partially-created Amazon S3 objects. If the export task is complete or is in the process of transferring the final disk image, the command fails and returns an error.
cancelImportTask(params = {}, callback) ⇒ AWS.Request
Cancels an in-process import virtual machine or import snapshot task.
cancelReservedInstancesListing(params = {}, callback) ⇒ AWS.Request
Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.
For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.
cancelSpotFleetRequests(params = {}, callback) ⇒ AWS.Request
Cancels the specified Spot Fleet requests.
After you cancel a Spot Fleet request, the Spot Fleet launches no new Spot Instances. You must specify whether the Spot Fleet should also terminate its Spot Instances. If you terminate the instances, the Spot Fleet request enters the cancelled_terminating
state. Otherwise, the Spot Fleet request enters the cancelled_running
state and the instances continue to run until they are interrupted or you terminate them manually.
cancelSpotInstanceRequests(params = {}, callback) ⇒ AWS.Request
Cancels one or more Spot Instance requests.
Canceling a Spot Instance request does not terminate running Spot Instances associated with the request.
confirmProductInstance(params = {}, callback) ⇒ AWS.Request
Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner must verify whether another user's instance is eligible for support.
copyFpgaImage(params = {}, callback) ⇒ AWS.Request
Copies the specified Amazon FPGA Image (AFI) to the current region.
copyImage(params = {}, callback) ⇒ AWS.Request
Initiates the copy of an AMI from the specified source region to the current region. You specify the destination region by using its endpoint when making the request.
Copies of encrypted backing snapshots for the AMI are encrypted. Copies of unencrypted backing snapshots remain unencrypted, unless you set Encrypted
during the copy operation. You cannot create an unencrypted copy of an encrypted backing snapshot.
For more information about the prerequisites and limits when copying an AMI, see Copying an AMI in the Amazon Elastic Compute Cloud User Guide.
copySnapshot(params = {}, callback) ⇒ AWS.Request
Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy the snapshot within the same Region or from one Region to another. You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs). The snapshot is copied to the regional endpoint that you send the HTTP request to.
Copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted snapshots remain unencrypted, unless the Encrypted
flag is specified during the snapshot copy operation. By default, encrypted snapshot copies use the default AWS Key Management Service (AWS KMS) customer master key (CMK); however, you can specify a non-default CMK with the KmsKeyId
parameter.
To copy an encrypted snapshot that has been shared from another account, you must have permissions for the CMK used to encrypt the snapshot.
Snapshots created by copying another snapshot have an arbitrary volume ID that should not be used for any purpose.
For more information, see Copying an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide.
createCapacityReservation(params = {}, callback) ⇒ AWS.Request
Creates a new Capacity Reservation with the specified attributes.
Capacity Reservations enable you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any duration. This gives you the flexibility to selectively add capacity reservations and still get the Regional RI discounts for that usage. By creating Capacity Reservations, you ensure that you always have access to Amazon EC2 capacity when you need it, for as long as you need it. For more information, see Capacity Reservations in the Amazon Elastic Compute Cloud User Guide.
Your request to create a Capacity Reservation could fail if Amazon EC2 does not have sufficient capacity to fulfill the request. If your request fails due to Amazon EC2 capacity constraints, either try again at a later time, try in a different Availability Zone, or request a smaller capacity reservation. If your application is flexible across instance types and sizes, try to create a Capacity Reservation with different instance attributes.
Your request could also fail if the requested quantity exceeds your On-Demand Instance limit for the selected instance type. If your request fails due to limit constraints, increase your On-Demand Instance limit for the required instance type and try again. For more information about increasing your instance limits, see Amazon EC2 Service Limits in the Amazon Elastic Compute Cloud User Guide.
createClientVpnEndpoint(params = {}, callback) ⇒ AWS.Request
Creates a Client VPN endpoint. A Client VPN endpoint is the resource you create and configure to enable and manage client VPN sessions. It is the destination endpoint at which all client VPN sessions are terminated.
createClientVpnRoute(params = {}, callback) ⇒ AWS.Request
Adds a route to a network to a Client VPN endpoint. Each Client VPN endpoint has a route table that describes the available destination network routes. Each route in the route table specifies the path for traffic to specific resources or networks.
createCustomerGateway(params = {}, callback) ⇒ AWS.Request
Provides information to AWS about your VPN customer gateway device. The customer gateway is the appliance at your end of the VPN connection. (The device on the AWS side of the VPN connection is the virtual private gateway.) You must provide the Internet-routable IP address of the customer gateway's external interface. The IP address must be static and may be behind a device performing network address translation (NAT).
For devices that use Border Gateway Protocol (BGP), you can also provide the device's BGP Autonomous System Number (ASN). You can use an existing ASN assigned to your network. If you don't have an ASN already, you can use a private ASN (in the 64512 - 65534 range).
us-east-1
region, and 9059, which is reserved in the eu-west-1
region. For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.
You cannot create more than one customer gateway with the same VPN type, IP address, and BGP ASN parameter values. If you run an identical request more than one time, the first request creates the customer gateway, and subsequent requests return information about the existing customer gateway. The subsequent requests do not create new customer gateway resources.
createDefaultSubnet(params = {}, callback) ⇒ AWS.Request
Creates a default subnet with a size /20
IPv4 CIDR block in the specified Availability Zone in your default VPC. You can have only one default subnet per Availability Zone. For more information, see Creating a Default Subnet in the Amazon Virtual Private Cloud User Guide.
createDefaultVpc(params = {}, callback) ⇒ AWS.Request
Creates a default VPC with a size /16
IPv4 CIDR block and a default subnet in each Availability Zone. For more information about the components of a default VPC, see Default VPC and Default Subnets in the Amazon Virtual Private Cloud User Guide. You cannot specify the components of the default VPC yourself.
If you deleted your previous default VPC, you can create a default VPC. You cannot have more than one default VPC per Region.
If your account supports EC2-Classic, you cannot use this action to create a default VPC in a Region that supports EC2-Classic. If you want a default VPC in a Region that supports EC2-Classic, see "I really want a default VPC for my existing EC2 account. Is that possible?" in the Default VPCs FAQ.
createDhcpOptions(params = {}, callback) ⇒ AWS.Request
Creates a set of DHCP options for your VPC. After creating the set, you must associate it with the VPC, causing all existing and new instances that you launch in the VPC to use this set of DHCP options. The following are the individual DHCP options you can specify. For more information about the options, see RFC 2132.
-
domain-name-servers
- The IP addresses of up to four domain name servers, or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS. If specifying more than one domain name server, specify the IP addresses in a single parameter, separated by commas. ITo have your instance to receive a custom DNS hostname as specified indomain-name
, you must setdomain-name-servers
to a custom DNS server. -
domain-name
- If you're using AmazonProvidedDNS inus-east-1
, specifyec2.internal
. If you're using AmazonProvidedDNS in another region, specifyregion.compute.internal
(for example,ap-northeast-1.compute.internal
). Otherwise, specify a domain name (for example,MyCompany.com
). This value is used to complete unqualified DNS hostnames. Important: Some Linux operating systems accept multiple domain names separated by spaces. However, Windows and other Linux operating systems treat the value as a single domain, which results in unexpected behavior. If your DHCP options set is associated with a VPC that has instances with multiple operating systems, specify only one domain name. -
ntp-servers
- The IP addresses of up to four Network Time Protocol (NTP) servers. -
netbios-name-servers
- The IP addresses of up to four NetBIOS name servers. -
netbios-node-type
- The NetBIOS node type (1, 2, 4, or 8). We recommend that you specify 2 (broadcast and multicast are not currently supported). For more information about these node types, see RFC 2132.
Your VPC automatically starts out with a set of DHCP options that includes only a DNS server that we provide (AmazonProvidedDNS). If you create a set of options, and if your VPC has an internet gateway, make sure to set the domain-name-servers
option either to AmazonProvidedDNS
or to a domain name server of your choice. For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.
createEgressOnlyInternetGateway(params = {}, callback) ⇒ AWS.Request
[IPv6 only] Creates an egress-only internet gateway for your VPC. An egress-only internet gateway is used to enable outbound communication over IPv6 from instances in your VPC to the internet, and prevents hosts outside of your VPC from initiating an IPv6 connection with your instance.
createFleet(params = {}, callback) ⇒ AWS.Request
Launches an EC2 Fleet.
You can create a single EC2 Fleet that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.
For more information, see Launching an EC2 Fleet in the Amazon Elastic Compute Cloud User Guide.
createFlowLogs(params = {}, callback) ⇒ AWS.Request
Creates one or more flow logs to capture information about IP traffic for a specific network interface, subnet, or VPC.
Flow log data for a monitored network interface is recorded as flow log records, which are log events consisting of fields that describe the traffic flow. For more information, see Flow Log Records in the Amazon Virtual Private Cloud User Guide.
When publishing to CloudWatch Logs, flow log records are published to a log group, and each network interface has a unique log stream in the log group. When publishing to Amazon S3, flow log records for all of the monitored network interfaces are published to a single log file object that is stored in the specified bucket.
For more information, see VPC Flow Logs in the Amazon Virtual Private Cloud User Guide.
createFpgaImage(params = {}, callback) ⇒ AWS.Request
Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).
The create operation is asynchronous. To verify that the AFI is ready for use, check the output logs.
An AFI contains the FPGA bitstream that is ready to download to an FPGA. You can securely deploy an AFI on multiple FPGA-accelerated instances. For more information, see the AWS FPGA Hardware Development Kit.
createImage(params = {}, callback) ⇒ AWS.Request
Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.
If you customized your instance with instance store volumes or EBS volumes in addition to the root device volume, the new AMI contains block device mapping information for those volumes. When you launch an instance from this new AMI, the instance automatically launches with those additional volumes.
For more information, see Creating Amazon EBS-Backed Linux AMIs in the Amazon Elastic Compute Cloud User Guide.
createInstanceExportTask(params = {}, callback) ⇒ AWS.Request
Exports a running or stopped instance to an S3 bucket.
For information about the supported operating systems, image formats, and known limitations for the types of instances you can export, see Exporting an Instance as a VM Using VM Import/Export in the VM Import/Export User Guide.
createInternetGateway(params = {}, callback) ⇒ AWS.Request
Creates an internet gateway for use with a VPC. After creating the internet gateway, you attach it to a VPC using AttachInternetGateway.
For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide.
createKeyPair(params = {}, callback) ⇒ AWS.Request
Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores the public key and displays the private key for you to save to a file. The private key is returned as an unencrypted PEM encoded PKCS#1 private key. If a key with the specified name already exists, Amazon EC2 returns an error.
You can have up to five thousand key pairs per region.
The key pair returned to you is available only in the region in which you create it. If you prefer, you can create your own key pair using a third-party tool and upload it to any region using ImportKeyPair.
For more information, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.
createLaunchTemplate(params = {}, callback) ⇒ AWS.Request
Creates a launch template. A launch template contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify a launch template instead of providing the launch parameters in the request.
createLaunchTemplateVersion(params = {}, callback) ⇒ AWS.Request
Creates a new version for a launch template. You can specify an existing version of launch template from which to base the new version.
Launch template versions are numbered in the order in which they are created. You cannot specify, change, or replace the numbering of launch template versions.
createNatGateway(params = {}, callback) ⇒ AWS.Request
Creates a NAT gateway in the specified public subnet. This action creates a network interface in the specified subnet with a private IP address from the IP address range of the subnet. Internet-bound traffic from a private subnet can be routed to the NAT gateway, therefore enabling instances in the private subnet to connect to the internet. For more information, see NAT Gateways in the Amazon Virtual Private Cloud User Guide.
createNetworkAcl(params = {}, callback) ⇒ AWS.Request
Creates a network ACL in a VPC. Network ACLs provide an optional layer of security (in addition to security groups) for the instances in your VPC.
For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
createNetworkAclEntry(params = {}, callback) ⇒ AWS.Request
Creates an entry (a rule) in a network ACL with the specified rule number. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the ACL, we process the entries in the ACL according to the rule numbers, in ascending order. Each network ACL has a set of ingress rules and a separate set of egress rules.
We recommend that you leave room between the rule numbers (for example, 100, 110, 120, ...), and not number them one right after the other (for example, 101, 102, 103, ...). This makes it easier to add a rule between existing ones without having to renumber the rules.
After you add an entry, you can't modify it; you must either replace it, or create an entry and delete the old one.
For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
createNetworkInterface(params = {}, callback) ⇒ AWS.Request
Creates a network interface in the specified subnet.
For more information about network interfaces, see Elastic Network Interfaces in the Amazon Virtual Private Cloud User Guide.
createNetworkInterfacePermission(params = {}, callback) ⇒ AWS.Request
Grants an AWS-authorized account permission to attach the specified network interface to an instance in their account.
You can grant permission to a single AWS account only, and only one account at a time.
createPlacementGroup(params = {}, callback) ⇒ AWS.Request
Creates a placement group in which to launch instances. The strategy of the placement group determines how the instances are organized within the group.
A cluster
placement group is a logical grouping of instances within a single Availability Zone that benefit from low network latency, high network throughput. A spread
placement group places instances on distinct hardware. A partition
placement group places groups of instances in different partitions, where instances in one partition do not share the same hardware with instances in another partition.
For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.
createReservedInstancesListing(params = {}, callback) ⇒ AWS.Request
Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace. You can submit one Standard Reserved Instance listing at a time. To get a list of your Standard Reserved Instances, you can use the DescribeReservedInstances operation.
The Reserved Instance Marketplace matches sellers who want to resell Standard Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.
To sell your Standard Reserved Instances, you must first register as a seller in the Reserved Instance Marketplace. After completing the registration process, you can create a Reserved Instance Marketplace listing of some or all of your Standard Reserved Instances, and specify the upfront price to receive for them. Your Standard Reserved Instance listings then become available for purchase. To view the details of your Standard Reserved Instance listing, you can use the DescribeReservedInstancesListings operation.
For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.
createRoute(params = {}, callback) ⇒ AWS.Request
Creates a route in a route table within a VPC.
You must specify one of the following targets: internet gateway or virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, or egress-only internet gateway.
When determining how to route traffic, we use the route with the most specific match. For example, traffic is destined for the IPv4 address 192.0.2.3
, and the route table includes the following two IPv4 routes:
-
192.0.2.0/24
(goes to some target A) -
192.0.2.0/28
(goes to some target B)
Both routes apply to the traffic destined for 192.0.2.3
. However, the second route in the list covers a smaller number of IP addresses and is therefore more specific, so we use that route to determine where to target the traffic.
For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.
createRouteTable(params = {}, callback) ⇒ AWS.Request
Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.
For more information, see Route Tables in the Amazon Virtual Private Cloud User Guide.
createSecurityGroup(params = {}, callback) ⇒ AWS.Request
Creates a security group.
A security group acts as a virtual firewall for your instance to control inbound and outbound traffic. For more information, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
When you create a security group, you specify a friendly name of your choice. You can have a security group for use in EC2-Classic with the same name as a security group for use in a VPC. However, you can't have two security groups for use in EC2-Classic with the same name or two security groups for use in a VPC with the same name.
You have a default security group for use in EC2-Classic and a default security group for use in your VPC. If you don't specify a security group when you launch an instance, the instance is launched into the appropriate default security group. A default security group includes a default rule that grants instances unrestricted network access to each other.
You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress, AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.
For more information about VPC security group limits, see Amazon VPC Limits.
createSnapshot(params = {}, callback) ⇒ AWS.Request
Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make copies of EBS volumes, and to save data before shutting down an instance.
When a snapshot is created, any AWS Marketplace product codes that are associated with the source volume are propagated to the snapshot.
You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your EBS volume at the time the snapshot command is issued; this may exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the volume long enough to take a snapshot, your snapshot should be complete. However, if you cannot pause all file writes to the volume, you should unmount the volume from within the instance, issue the snapshot command, and then remount the volume to ensure a consistent and complete snapshot. You may remount and use your volume while the snapshot status is pending
.
To create a snapshot for EBS volumes that serve as root devices, you should stop the instance before taking the snapshot.
Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes and any associated snapshots always remain protected.
You can tag your snapshots during creation. For more information, see Tagging Your Amazon EC2 Resources in the Amazon Elastic Compute Cloud User Guide.
For more information, see Amazon Elastic Block Store and Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.
createSpotDatafeedSubscription(params = {}, callback) ⇒ AWS.Request
Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per AWS account. For more information, see Spot Instance Data Feed in the Amazon EC2 User Guide for Linux Instances.
createSubnet(params = {}, callback) ⇒ AWS.Request
Creates a subnet in an existing VPC.
When you create each subnet, you provide the VPC ID and IPv4 CIDR block for the subnet. After you create a subnet, you can't change its CIDR block. The size of the subnet's IPv4 CIDR block can be the same as a VPC's IPv4 CIDR block, or a subset of a VPC's IPv4 CIDR block. If you create more than one subnet in a VPC, the subnets' CIDR blocks must not overlap. The smallest IPv4 subnet (and VPC) you can create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4 addresses).
If you've associated an IPv6 CIDR block with your VPC, you can create a subnet with an IPv6 CIDR block that uses a /64 prefix length.
AWS reserves both the first four and the last IPv4 address in each subnet's CIDR block. They're not available for use.
If you add more than one subnet to a VPC, they're set up in a star topology with a logical router in the middle.
If you launch an instance in a VPC using an Amazon EBS-backed AMI, the IP address doesn't change if you stop and restart the instance (unlike a similar instance launched outside a VPC, which gets a new IP address when restarted). It's therefore possible to have a subnet with no running instances (they're all stopped), but no remaining IP addresses available.
For more information about subnets, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.
createTags(params = {}, callback) ⇒ AWS.Request
Adds or overwrites the specified tags for the specified Amazon EC2 resource or resources. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique per resource.
For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide. For more information about creating IAM policies that control users' access to resources based on tags, see Supported Resource-Level Permissions for Amazon EC2 API Actions in the Amazon Elastic Compute Cloud User Guide.
createTransitGateway(params = {}, callback) ⇒ AWS.Request
Creates a transit gateway.
You can use a transit gateway to interconnect your virtual private clouds (VPC) and on-premises networks. After the transit gateway enters the available
state, you can attach your VPCs and VPN connections to the transit gateway.
To attach your VPCs, use CreateTransitGatewayVpcAttachment.
To attach a VPN connection, use CreateCustomerGateway to create a customer gateway and specify the ID of the customer gateway and the ID of the transit gateway in a call to CreateVpnConnection.
When you create a transit gateway, we create a default transit gateway route table and use it as the default association route table and the default propagation route table. You can use CreateTransitGatewayRouteTable to create additional transit gateway route tables. If you disable automatic route propagation, we do not create a default transit gateway route table. You can use EnableTransitGatewayRouteTablePropagation to propagate routes from a resource attachment to a transit gateway route table. If you disable automatic associations, you can use AssociateTransitGatewayRouteTable to associate a resource attachment with a transit gateway route table.
createTransitGatewayRoute(params = {}, callback) ⇒ AWS.Request
Creates a static route for the specified transit gateway route table.
createTransitGatewayRouteTable(params = {}, callback) ⇒ AWS.Request
Creates a route table for the specified transit gateway.
createTransitGatewayVpcAttachment(params = {}, callback) ⇒ AWS.Request
Attaches the specified VPC to the specified transit gateway.
If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC that is already attached, the new VPC CIDR range is not propagated to the default propagation route table.
To send VPC traffic to an attached transit gateway, add a route to the VPC route table using CreateRoute.
createVolume(params = {}, callback) ⇒ AWS.Request
Creates an EBS volume that can be attached to an instance in the same Availability Zone. The volume is created in the regional endpoint that you send the HTTP request to. For more information see Regions and Endpoints.
You can create a new empty volume or restore a volume from an EBS snapshot. Any AWS Marketplace product codes from the snapshot are propagated to the volume.
You can create encrypted volumes with the Encrypted
parameter. Encrypted volumes may only be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.
You can tag your volumes during creation. For more information, see Tagging Your Amazon EC2 Resources in the Amazon Elastic Compute Cloud User Guide.
For more information, see Creating an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.
createVpc(params = {}, callback) ⇒ AWS.Request
Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4 addresses). For more information about how large to make your VPC, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.
You can optionally request an Amazon-provided IPv6 CIDR block for the VPC. The IPv6 CIDR block uses a /56 prefix length, and is allocated from Amazon's pool of IPv6 addresses. You cannot choose the IPv6 range for your VPC.
By default, each instance you launch in the VPC has the default DHCP options, which include only a default DNS server that we provide (AmazonProvidedDNS). For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.
You can specify the instance tenancy value for the VPC when you create it. You can't change this value for the VPC after you create it. For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.
createVpcEndpoint(params = {}, callback) ⇒ AWS.Request
Creates a VPC endpoint for a specified service. An endpoint enables you to create a private connection between your VPC and the service. The service may be provided by AWS, an AWS Marketplace partner, or another AWS account. For more information, see VPC Endpoints in the Amazon Virtual Private Cloud User Guide.
A gateway
endpoint serves as a target for a route in your route table for traffic destined for the AWS service. You can specify an endpoint policy to attach to the endpoint that will control access to the service from your VPC. You can also specify the VPC route tables that use the endpoint.
An interface
endpoint is a network interface in your subnet that serves as an endpoint for communicating with the specified service. You can specify the subnets in which to create an endpoint, and the security groups to associate with the endpoint network interface.
Use DescribeVpcEndpointServices to get a list of supported services.
createVpcEndpointConnectionNotification(params = {}, callback) ⇒ AWS.Request
Creates a connection notification for a specified VPC endpoint or VPC endpoint service. A connection notification notifies you of specific endpoint events. You must create an SNS topic to receive notifications. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide.
You can create a connection notification for interface endpoints only.
createVpcEndpointServiceConfiguration(params = {}, callback) ⇒ AWS.Request
Creates a VPC endpoint service configuration to which service consumers (AWS accounts, IAM users, and IAM roles) can connect. Service consumers can create an interface VPC endpoint to connect to your service.
To create an endpoint service configuration, you must first create a Network Load Balancer for your service. For more information, see VPC Endpoint Services in the Amazon Virtual Private Cloud User Guide.
createVpcPeeringConnection(params = {}, callback) ⇒ AWS.Request
Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection. The accepter VPC can belong to another AWS account and can be in a different Region to the requester VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks.
The owner of the accepter VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.
If you create a VPC peering connection request between VPCs with overlapping CIDR blocks, the VPC peering connection has a status of failed
.
createVpnConnection(params = {}, callback) ⇒ AWS.Request
Creates a VPN connection between an existing virtual private gateway and a VPN customer gateway. The only supported connection type is ipsec.1
.
The response includes information that you need to give to your network administrator to configure your customer gateway.
We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway.
If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.
This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.
For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.
createVpnConnectionRoute(params = {}, callback) ⇒ AWS.Request
Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.
For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.