Class Ec2Client
Client to interact with Amazon Elastic Compute Cloud
- Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
- Guzzle\Http\Client implements Guzzle\Http\ClientInterface
- Guzzle\Service\Client implements Guzzle\Service\ClientInterface
- Aws\Common\Client\AbstractClient implements Aws\Common\Client\AwsClientInterface
- Aws\Ec2\Ec2Client
Methods summary
-
public static
factory ( array|Collection $config = array() )
Factory method to create a new AWS Elastic Compute Cloud client using an array of configuration options.
-
public
acceptVpcPeeringConnection ( array $args = array() )
Executes the AcceptVpcPeeringConnection operation.
-
public
allocateAddress ( array $args = array() )
Executes the AllocateAddress operation.
-
public
assignPrivateIpAddresses ( array $args = array() )
Executes the AssignPrivateIpAddresses operation.
-
public
associateAddress ( array $args = array() )
Executes the AssociateAddress operation.
-
public
associateDhcpOptions ( array $args = array() )
Executes the AssociateDhcpOptions operation.
-
public
associateRouteTable ( array $args = array() )
Executes the AssociateRouteTable operation.
-
public
attachClassicLinkVpc ( array $args = array() )
Executes the AttachClassicLinkVpc operation.
-
public
attachInternetGateway ( array $args = array() )
Executes the AttachInternetGateway operation.
-
public
attachNetworkInterface ( array $args = array() )
Executes the AttachNetworkInterface operation.
-
public
attachVolume ( array $args = array() )
Executes the AttachVolume operation.
-
public
attachVpnGateway ( array $args = array() )
Executes the AttachVpnGateway operation.
-
public
authorizeSecurityGroupEgress ( array $args = array() )
Executes the AuthorizeSecurityGroupEgress operation.
-
public
authorizeSecurityGroupIngress ( array $args = array() )
Executes the AuthorizeSecurityGroupIngress operation.
-
public
bundleInstance ( array $args = array() )
Executes the BundleInstance operation.
-
public
cancelBundleTask ( array $args = array() )
Executes the CancelBundleTask operation.
-
public
cancelConversionTask ( array $args = array() )
Executes the CancelConversionTask operation.
-
public
cancelExportTask ( array $args = array() )
Executes the CancelExportTask operation.
-
public
cancelImportTask ( array $args = array() )
Executes the CancelImportTask operation.
-
public
cancelReservedInstancesListing ( array $args = array() )
Executes the CancelReservedInstancesListing operation.
-
public
cancelSpotFleetRequests ( array $args = array() )
Executes the CancelSpotFleetRequests operation.
-
public
cancelSpotInstanceRequests ( array $args = array() )
Executes the CancelSpotInstanceRequests operation.
-
public
confirmProductInstance ( array $args = array() )
Executes the ConfirmProductInstance operation.
-
public
copyImage ( array $args = array() )
Executes the CopyImage operation.
-
public
copySnapshot ( array $args = array() )
Executes the CopySnapshot operation.
-
public
createCustomerGateway ( array $args = array() )
Executes the CreateCustomerGateway operation.
-
public
createDhcpOptions ( array $args = array() )
Executes the CreateDhcpOptions operation.
-
public
createFlowLogs ( array $args = array() )
Executes the CreateFlowLogs operation.
-
public
createImage ( array $args = array() )
Executes the CreateImage operation.
-
public
createInstanceExportTask ( array $args = array() )
Executes the CreateInstanceExportTask operation.
-
public
createInternetGateway ( array $args = array() )
Executes the CreateInternetGateway operation.
-
public
createKeyPair ( array $args = array() )
Executes the CreateKeyPair operation.
-
public
createNetworkAcl ( array $args = array() )
Executes the CreateNetworkAcl operation.
-
public
createNetworkAclEntry ( array $args = array() )
Executes the CreateNetworkAclEntry operation.
-
public
createNetworkInterface ( array $args = array() )
Executes the CreateNetworkInterface operation.
-
public
createPlacementGroup ( array $args = array() )
Executes the CreatePlacementGroup operation.
-
public
createReservedInstancesListing ( array $args = array() )
Executes the CreateReservedInstancesListing operation.
-
public
createRoute ( array $args = array() )
Executes the CreateRoute operation.
-
public
createRouteTable ( array $args = array() )
Executes the CreateRouteTable operation.
-
public
createSecurityGroup ( array $args = array() )
Executes the CreateSecurityGroup operation.
-
public
createSnapshot ( array $args = array() )
Executes the CreateSnapshot operation.
-
public
createSpotDatafeedSubscription ( array $args = array() )
Executes the CreateSpotDatafeedSubscription operation.
-
public
createSubnet ( array $args = array() )
Executes the CreateSubnet operation.
-
public
createTags ( array $args = array() )
Executes the CreateTags operation.
-
public
createVolume ( array $args = array() )
Executes the CreateVolume operation.
-
public
createVpc ( array $args = array() )
Executes the CreateVpc operation.
-
public
createVpcEndpoint ( array $args = array() )
Executes the CreateVpcEndpoint operation.
-
public
createVpcPeeringConnection ( array $args = array() )
Executes the CreateVpcPeeringConnection operation.
-
public
createVpnConnection ( array $args = array() )
Executes the CreateVpnConnection operation.
-
public
createVpnConnectionRoute ( array $args = array() )
Executes the CreateVpnConnectionRoute operation.
-
public
createVpnGateway ( array $args = array() )
Executes the CreateVpnGateway operation.
-
public
deleteCustomerGateway ( array $args = array() )
Executes the DeleteCustomerGateway operation.
-
public
deleteDhcpOptions ( array $args = array() )
Executes the DeleteDhcpOptions operation.
-
public
deleteFlowLogs ( array $args = array() )
Executes the DeleteFlowLogs operation.
-
public
deleteInternetGateway ( array $args = array() )
Executes the DeleteInternetGateway operation.
-
public
deleteKeyPair ( array $args = array() )
Executes the DeleteKeyPair operation.
-
public
deleteNetworkAcl ( array $args = array() )
Executes the DeleteNetworkAcl operation.
-
public
deleteNetworkAclEntry ( array $args = array() )
Executes the DeleteNetworkAclEntry operation.
-
public
deleteNetworkInterface ( array $args = array() )
Executes the DeleteNetworkInterface operation.
-
public
deletePlacementGroup ( array $args = array() )
Executes the DeletePlacementGroup operation.
-
public
deleteRoute ( array $args = array() )
Executes the DeleteRoute operation.
-
public
deleteRouteTable ( array $args = array() )
Executes the DeleteRouteTable operation.
-
public
deleteSecurityGroup ( array $args = array() )
Executes the DeleteSecurityGroup operation.
-
public
deleteSnapshot ( array $args = array() )
Executes the DeleteSnapshot operation.
-
public
deleteSpotDatafeedSubscription ( array $args = array() )
Executes the DeleteSpotDatafeedSubscription operation.
-
public
deleteSubnet ( array $args = array() )
Executes the DeleteSubnet operation.
-
public
deleteTags ( array $args = array() )
Executes the DeleteTags operation.
-
public
deleteVolume ( array $args = array() )
Executes the DeleteVolume operation.
-
public
deleteVpc ( array $args = array() )
Executes the DeleteVpc operation.
-
public
deleteVpcEndpoints ( array $args = array() )
Executes the DeleteVpcEndpoints operation.
-
public
deleteVpcPeeringConnection ( array $args = array() )
Executes the DeleteVpcPeeringConnection operation.
-
public
deleteVpnConnection ( array $args = array() )
Executes the DeleteVpnConnection operation.
-
public
deleteVpnConnectionRoute ( array $args = array() )
Executes the DeleteVpnConnectionRoute operation.
-
public
deleteVpnGateway ( array $args = array() )
Executes the DeleteVpnGateway operation.
-
public
deregisterImage ( array $args = array() )
Executes the DeregisterImage operation.
-
public
describeAccountAttributes ( array $args = array() )
Executes the DescribeAccountAttributes operation.
-
public
describeAddresses ( array $args = array() )
Executes the DescribeAddresses operation.
-
public
describeAvailabilityZones ( array $args = array() )
Executes the DescribeAvailabilityZones operation.
-
public
describeBundleTasks ( array $args = array() )
Executes the DescribeBundleTasks operation.
-
public
describeClassicLinkInstances ( array $args = array() )
Executes the DescribeClassicLinkInstances operation.
-
public
describeConversionTasks ( array $args = array() )
Executes the DescribeConversionTasks operation.
-
public
describeCustomerGateways ( array $args = array() )
Executes the DescribeCustomerGateways operation.
-
public
describeDhcpOptions ( array $args = array() )
Executes the DescribeDhcpOptions operation.
-
public
describeExportTasks ( array $args = array() )
Executes the DescribeExportTasks operation.
-
public
describeFlowLogs ( array $args = array() )
Executes the DescribeFlowLogs operation.
-
public
describeImageAttribute ( array $args = array() )
Executes the DescribeImageAttribute operation.
-
public
describeImages ( array $args = array() )
Executes the DescribeImages operation.
-
public
describeImportImageTasks ( array $args = array() )
Executes the DescribeImportImageTasks operation.
-
public
describeImportSnapshotTasks ( array $args = array() )
Executes the DescribeImportSnapshotTasks operation.
-
public
describeInstanceAttribute ( array $args = array() )
Executes the DescribeInstanceAttribute operation.
-
public
describeInstanceStatus ( array $args = array() )
Executes the DescribeInstanceStatus operation.
-
public
describeInstances ( array $args = array() )
Executes the DescribeInstances operation.
-
public
describeInternetGateways ( array $args = array() )
Executes the DescribeInternetGateways operation.
-
public
describeKeyPairs ( array $args = array() )
Executes the DescribeKeyPairs operation.
-
public
describeMovingAddresses ( array $args = array() )
Executes the DescribeMovingAddresses operation.
-
public
describeNetworkAcls ( array $args = array() )
Executes the DescribeNetworkAcls operation.
-
public
describeNetworkInterfaceAttribute ( array $args = array() )
Executes the DescribeNetworkInterfaceAttribute operation.
-
public
describeNetworkInterfaces ( array $args = array() )
Executes the DescribeNetworkInterfaces operation.
-
public
describePlacementGroups ( array $args = array() )
Executes the DescribePlacementGroups operation.
-
public
describePrefixLists ( array $args = array() )
Executes the DescribePrefixLists operation.
-
public
describeRegions ( array $args = array() )
Executes the DescribeRegions operation.
-
public
describeReservedInstances ( array $args = array() )
Executes the DescribeReservedInstances operation.
-
public
describeReservedInstancesListings ( array $args = array() )
Executes the DescribeReservedInstancesListings operation.
-
public
describeReservedInstancesModifications ( array $args = array() )
Executes the DescribeReservedInstancesModifications operation.
-
public
describeReservedInstancesOfferings ( array $args = array() )
Executes the DescribeReservedInstancesOfferings operation.
-
public
describeRouteTables ( array $args = array() )
Executes the DescribeRouteTables operation.
-
public
describeSecurityGroups ( array $args = array() )
Executes the DescribeSecurityGroups operation.
-
public
describeSnapshotAttribute ( array $args = array() )
Executes the DescribeSnapshotAttribute operation.
-
public
describeSnapshots ( array $args = array() )
Executes the DescribeSnapshots operation.
-
public
describeSpotDatafeedSubscription ( array $args = array() )
Executes the DescribeSpotDatafeedSubscription operation.
-
public
describeSpotFleetInstances ( array $args = array() )
Executes the DescribeSpotFleetInstances operation.
-
public
describeSpotFleetRequestHistory ( array $args = array() )
Executes the DescribeSpotFleetRequestHistory operation.
-
public
describeSpotFleetRequests ( array $args = array() )
Executes the DescribeSpotFleetRequests operation.
-
public
describeSpotInstanceRequests ( array $args = array() )
Executes the DescribeSpotInstanceRequests operation.
-
public
describeSpotPriceHistory ( array $args = array() )
Executes the DescribeSpotPriceHistory operation.
-
public
describeSubnets ( array $args = array() )
Executes the DescribeSubnets operation.
-
public
describeTags ( array $args = array() )
Executes the DescribeTags operation.
-
public
describeVolumeAttribute ( array $args = array() )
Executes the DescribeVolumeAttribute operation.
-
public
describeVolumeStatus ( array $args = array() )
Executes the DescribeVolumeStatus operation.
-
public
describeVolumes ( array $args = array() )
Executes the DescribeVolumes operation.
-
public
describeVpcAttribute ( array $args = array() )
Executes the DescribeVpcAttribute operation.
-
public
describeVpcClassicLink ( array $args = array() )
Executes the DescribeVpcClassicLink operation.
-
public
describeVpcEndpointServices ( array $args = array() )
Executes the DescribeVpcEndpointServices operation.
-
public
describeVpcEndpoints ( array $args = array() )
Executes the DescribeVpcEndpoints operation.
-
public
describeVpcPeeringConnections ( array $args = array() )
Executes the DescribeVpcPeeringConnections operation.
-
public
describeVpcs ( array $args = array() )
Executes the DescribeVpcs operation.
-
public
describeVpnConnections ( array $args = array() )
Executes the DescribeVpnConnections operation.
-
public
describeVpnGateways ( array $args = array() )
Executes the DescribeVpnGateways operation.
-
public
detachClassicLinkVpc ( array $args = array() )
Executes the DetachClassicLinkVpc operation.
-
public
detachInternetGateway ( array $args = array() )
Executes the DetachInternetGateway operation.
-
public
detachNetworkInterface ( array $args = array() )
Executes the DetachNetworkInterface operation.
-
public
detachVolume ( array $args = array() )
Executes the DetachVolume operation.
-
public
detachVpnGateway ( array $args = array() )
Executes the DetachVpnGateway operation.
-
public
disableVgwRoutePropagation ( array $args = array() )
Executes the DisableVgwRoutePropagation operation.
-
public
disableVpcClassicLink ( array $args = array() )
Executes the DisableVpcClassicLink operation.
-
public
disassociateAddress ( array $args = array() )
Executes the DisassociateAddress operation.
-
public
disassociateRouteTable ( array $args = array() )
Executes the DisassociateRouteTable operation.
-
public
enableVgwRoutePropagation ( array $args = array() )
Executes the EnableVgwRoutePropagation operation.
-
public
enableVolumeIO ( array $args = array() )
Executes the EnableVolumeIO operation.
-
public
enableVpcClassicLink ( array $args = array() )
Executes the EnableVpcClassicLink operation.
-
public
getConsoleOutput ( array $args = array() )
Executes the GetConsoleOutput operation.
-
public
getPasswordData ( array $args = array() )
Executes the GetPasswordData operation.
-
public
importImage ( array $args = array() )
Executes the ImportImage operation.
-
public
importInstance ( array $args = array() )
Executes the ImportInstance operation.
-
public
importKeyPair ( array $args = array() )
Executes the ImportKeyPair operation.
-
public
importSnapshot ( array $args = array() )
Executes the ImportSnapshot operation.
-
public
importVolume ( array $args = array() )
Executes the ImportVolume operation.
-
public
modifyImageAttribute ( array $args = array() )
Executes the ModifyImageAttribute operation.
-
public
modifyInstanceAttribute ( array $args = array() )
Executes the ModifyInstanceAttribute operation.
-
public
modifyNetworkInterfaceAttribute ( array $args = array() )
Executes the ModifyNetworkInterfaceAttribute operation.
-
public
modifyReservedInstances ( array $args = array() )
Executes the ModifyReservedInstances operation.
-
public
modifySnapshotAttribute ( array $args = array() )
Executes the ModifySnapshotAttribute operation.
-
public
modifySpotFleetRequest ( array $args = array() )
Executes the ModifySpotFleetRequest operation.
-
public
modifySubnetAttribute ( array $args = array() )
Executes the ModifySubnetAttribute operation.
-
public
modifyVolumeAttribute ( array $args = array() )
Executes the ModifyVolumeAttribute operation.
-
public
modifyVpcAttribute ( array $args = array() )
Executes the ModifyVpcAttribute operation.
-
public
modifyVpcEndpoint ( array $args = array() )
Executes the ModifyVpcEndpoint operation.
-
public
monitorInstances ( array $args = array() )
Executes the MonitorInstances operation.
-
public
moveAddressToVpc ( array $args = array() )
Executes the MoveAddressToVpc operation.
-
public
purchaseReservedInstancesOffering ( array $args = array() )
Executes the PurchaseReservedInstancesOffering operation.
-
public
rebootInstances ( array $args = array() )
Executes the RebootInstances operation.
-
public
registerImage ( array $args = array() )
Executes the RegisterImage operation.
-
public
rejectVpcPeeringConnection ( array $args = array() )
Executes the RejectVpcPeeringConnection operation.
-
public
releaseAddress ( array $args = array() )
Executes the ReleaseAddress operation.
-
public
replaceNetworkAclAssociation ( array $args = array() )
Executes the ReplaceNetworkAclAssociation operation.
-
public
replaceNetworkAclEntry ( array $args = array() )
Executes the ReplaceNetworkAclEntry operation.
-
public
replaceRoute ( array $args = array() )
Executes the ReplaceRoute operation.
-
public
replaceRouteTableAssociation ( array $args = array() )
Executes the ReplaceRouteTableAssociation operation.
-
public
reportInstanceStatus ( array $args = array() )
Executes the ReportInstanceStatus operation.
-
public
requestSpotFleet ( array $args = array() )
Executes the RequestSpotFleet operation.
-
public
requestSpotInstances ( array $args = array() )
Executes the RequestSpotInstances operation.
-
public
resetImageAttribute ( array $args = array() )
Executes the ResetImageAttribute operation.
-
public
resetInstanceAttribute ( array $args = array() )
Executes the ResetInstanceAttribute operation.
-
public
resetNetworkInterfaceAttribute ( array $args = array() )
Executes the ResetNetworkInterfaceAttribute operation.
-
public
resetSnapshotAttribute ( array $args = array() )
Executes the ResetSnapshotAttribute operation.
-
public
restoreAddressToClassic ( array $args = array() )
Executes the RestoreAddressToClassic operation.
-
public
revokeSecurityGroupEgress ( array $args = array() )
Executes the RevokeSecurityGroupEgress operation.
-
public
revokeSecurityGroupIngress ( array $args = array() )
Executes the RevokeSecurityGroupIngress operation.
-
public
runInstances ( array $args = array() )
Executes the RunInstances operation.
-
public
startInstances ( array $args = array() )
Executes the StartInstances operation.
-
public
stopInstances ( array $args = array() )
Executes the StopInstances operation.
-
public
terminateInstances ( array $args = array() )
Executes the TerminateInstances operation.
-
public
unassignPrivateIpAddresses ( array $args = array() )
Executes the UnassignPrivateIpAddresses operation.
-
public
unmonitorInstances ( array $args = array() )
Executes the UnmonitorInstances operation.
-
public
waitUntilInstanceRunning ( array $input )
The input array uses the parameters of the DescribeInstances operation and waiter specific settings
-
public
waitUntilInstanceStopped ( array $input )
The input array uses the parameters of the DescribeInstances operation and waiter specific settings
-
public
waitUntilInstanceTerminated ( array $input )
The input array uses the parameters of the DescribeInstances operation and waiter specific settings
-
public
waitUntilExportTaskCompleted ( array $input )
The input array uses the parameters of the DescribeExportTasks operation and waiter specific settings
-
public
waitUntilExportTaskCancelled ( array $input )
The input array uses the parameters of the DescribeExportTasks operation and waiter specific settings
-
public
waitUntilSnapshotCompleted ( array $input )
The input array uses the parameters of the DescribeSnapshots operation and waiter specific settings
-
public
waitUntilSubnetAvailable ( array $input )
The input array uses the parameters of the DescribeSubnets operation and waiter specific settings
-
public
waitUntilVolumeAvailable ( array $input )
The input array uses the parameters of the DescribeVolumes operation and waiter specific settings
-
public
waitUntilVolumeInUse ( array $input )
The input array uses the parameters of the DescribeVolumes operation and waiter specific settings
-
public
waitUntilVolumeDeleted ( array $input )
The input array uses the parameters of the DescribeVolumes operation and waiter specific settings
-
public
waitUntilVpcAvailable ( array $input )
The input array uses the parameters of the DescribeVpcs operation and waiter specific settings
-
public
waitUntilVpnConnectionAvailable ( array $input )
The input array uses the parameters of the DescribeVpnConnections operation and waiter specific settings
-
public
waitUntilVpnConnectionDeleted ( array $input )
The input array uses the parameters of the DescribeVpnConnections operation and waiter specific settings
-
public
waitUntilBundleTaskComplete ( array $input )
The input array uses the parameters of the DescribeBundleTasks operation and waiter specific settings
-
public
waitUntilConversionTaskCompleted ( array $input )
The input array uses the parameters of the DescribeConversionTasks operation and waiter specific settings
-
public
waitUntilConversionTaskCancelled ( array $input )
The input array uses the parameters of the DescribeConversionTasks operation and waiter specific settings
-
public
waitUntilCustomerGatewayAvailable ( array $input )
The input array uses the parameters of the DescribeCustomerGateways operation and waiter specific settings
-
public
waitUntilConversionTaskDeleted ( array $input )
The input array uses the parameters of the DescribeCustomerGateways operation and waiter specific settings
-
public
getDescribeAccountAttributesIterator ( array $args = array() )
The input array uses the parameters of the DescribeAccountAttributes operation
-
public
getDescribeAddressesIterator ( array $args = array() )
The input array uses the parameters of the DescribeAddresses operation
-
public
getDescribeAvailabilityZonesIterator ( array $args = array() )
The input array uses the parameters of the DescribeAvailabilityZones operation
-
public
getDescribeBundleTasksIterator ( array $args = array() )
The input array uses the parameters of the DescribeBundleTasks operation
-
public
getDescribeConversionTasksIterator ( array $args = array() )
The input array uses the parameters of the DescribeConversionTasks operation
-
public
getDescribeCustomerGatewaysIterator ( array $args = array() )
The input array uses the parameters of the DescribeCustomerGateways operation
-
public
getDescribeDhcpOptionsIterator ( array $args = array() )
The input array uses the parameters of the DescribeDhcpOptions operation
-
public
getDescribeExportTasksIterator ( array $args = array() )
The input array uses the parameters of the DescribeExportTasks operation
-
public
getDescribeImagesIterator ( array $args = array() )
The input array uses the parameters of the DescribeImages operation
-
public
getDescribeInstanceStatusIterator ( array $args = array() )
The input array uses the parameters of the DescribeInstanceStatus operation
-
public
getDescribeInstancesIterator ( array $args = array() )
The input array uses the parameters of the DescribeInstances operation
-
public
getDescribeInternetGatewaysIterator ( array $args = array() )
The input array uses the parameters of the DescribeInternetGateways operation
-
public
getDescribeKeyPairsIterator ( array $args = array() )
The input array uses the parameters of the DescribeKeyPairs operation
-
public
getDescribeNetworkAclsIterator ( array $args = array() )
The input array uses the parameters of the DescribeNetworkAcls operation
-
public
getDescribeNetworkInterfacesIterator ( array $args = array() )
The input array uses the parameters of the DescribeNetworkInterfaces operation
-
public
getDescribePlacementGroupsIterator ( array $args = array() )
The input array uses the parameters of the DescribePlacementGroups operation
-
public
getDescribeRegionsIterator ( array $args = array() )
The input array uses the parameters of the DescribeRegions operation
-
public
getDescribeReservedInstancesIterator ( array $args = array() )
The input array uses the parameters of the DescribeReservedInstances operation
-
public
getDescribeReservedInstancesListingsIterator ( array $args = array() )
The input array uses the parameters of the DescribeReservedInstancesListings operation
-
public
getDescribeReservedInstancesOfferingsIterator ( array $args = array() )
The input array uses the parameters of the DescribeReservedInstancesOfferings operation
-
public
getDescribeReservedInstancesModificationsIterator ( array $args = array() )
The input array uses the parameters of the DescribeReservedInstancesModifications operation
-
public
getDescribeRouteTablesIterator ( array $args = array() )
The input array uses the parameters of the DescribeRouteTables operation
-
public
getDescribeSecurityGroupsIterator ( array $args = array() )
The input array uses the parameters of the DescribeSecurityGroups operation
-
public
getDescribeSnapshotsIterator ( array $args = array() )
The input array uses the parameters of the DescribeSnapshots operation
-
public
getDescribeSpotInstanceRequestsIterator ( array $args = array() )
The input array uses the parameters of the DescribeSpotInstanceRequests operation
-
public
getDescribeSpotPriceHistoryIterator ( array $args = array() )
The input array uses the parameters of the DescribeSpotPriceHistory operation
-
public
getDescribeSubnetsIterator ( array $args = array() )
The input array uses the parameters of the DescribeSubnets operation
-
public
getDescribeTagsIterator ( array $args = array() )
The input array uses the parameters of the DescribeTags operation
-
public
getDescribeVolumeStatusIterator ( array $args = array() )
The input array uses the parameters of the DescribeVolumeStatus operation
-
public
getDescribeVolumesIterator ( array $args = array() )
The input array uses the parameters of the DescribeVolumes operation
-
public
getDescribeVpcsIterator ( array $args = array() )
The input array uses the parameters of the DescribeVpcs operation
-
public
getDescribeVpnConnectionsIterator ( array $args = array() )
The input array uses the parameters of the DescribeVpnConnections operation
-
public
getDescribeVpnGatewaysIterator ( array $args = array() )
The input array uses the parameters of the DescribeVpnGateways operation
Methods detail
Factory method to create a new AWS Elastic Compute Cloud client using an array of configuration options.
Parameters
- $config
array|
Guzzle\Common\Collection
$config Client configuration data
Returns
Link
Overrides
Executes the AcceptVpcPeeringConnection operation.
Accept a VPC peering connection request. To accept a request, the VPC peering
connection must be in the
Examples
- Basic formatting example
$result = $client->acceptVpcPeeringConnection(array( 'DryRun' => true || false, 'VpcPeeringConnectionId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcPeeringConnectionId => (string)The ID of the VPC peering connection.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VpcPeeringConnection => (associative-array)Information about the VPC peering connection.
-
AccepterVpcInfo => (associative-array)The information of the peer VPC.
-
CidrBlock => (string)The CIDR block for the VPC.
-
OwnerId => (string)The AWS account ID of the VPC owner.
-
VpcId => (string)The ID of the VPC.
-
-
ExpirationTime => (string)The time that an unaccepted VPC peering connection will expire.
-
RequesterVpcInfo => (associative-array)The information of the requester VPC.
-
CidrBlock => (string)The CIDR block for the VPC.
-
OwnerId => (string)The AWS account ID of the VPC owner.
-
VpcId => (string)The ID of the VPC.
-
-
Status => (associative-array)The status of the VPC peering connection.
-
Code => (string)The status of the VPC peering connection.
-
Message => (string)A message that provides more information about the status, if applicable.
-
-
Tags => (array<associative-array>)Any tags assigned to the resource.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
VpcPeeringConnectionId => (string)The ID of the VPC peering connection.
-
Executes the AllocateAddress operation.
Acquires an Elastic IP address.
An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->allocateAddress(array( 'DryRun' => true || false, 'Domain' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Domain => (string:vpc |standard )Set to vpc to allocate the address for use with instances in a VPC.
Default: The address is for use with instances in EC2-Classic.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
PublicIp => (string)The Elastic IP address.
-
Domain => (string)Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).
-
AllocationId => (string)[EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.
Executes the AssignPrivateIpAddresses operation.
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.
AssignPrivateIpAddresses is available only in EC2-VPC.
Examples
- Basic formatting example
$result = $client->assignPrivateIpAddresses(array( // NetworkInterfaceId is required 'NetworkInterfaceId' => 'string', 'PrivateIpAddresses' => array('string', ... ), 'SecondaryPrivateIpAddressCount' => integer, 'AllowReassignment' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
NetworkInterfaceId => (string)The ID of the network interface.
-
PrivateIpAddresses => (array<string>)One or more IP addresses to be assigned as a secondary private IP address to the network interface. You can't specify this parameter when also specifying a number of secondary IP addresses.
If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.
-
SecondaryPrivateIpAddressCount => (int)The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.
-
AllowReassignment => (bool)Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.
-
Returns
Executes the AssociateAddress operation.
Associates an Elastic IP address with an instance or a network interface.
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.
[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.
This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.
Examples
- Basic formatting example
$result = $client->associateAddress(array( 'DryRun' => true || false, 'InstanceId' => 'string', 'PublicIp' => 'string', 'AllocationId' => 'string', 'NetworkInterfaceId' => 'string', 'PrivateIpAddress' => 'string', 'AllowReassociation' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceId => (string)The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both. The operation fails if you specify an instance ID unless exactly one network interface is attached.
-
PublicIp => (string)The Elastic IP address. This is required for EC2-Classic.
-
AllocationId => (string)[EC2-VPC] The allocation ID. This is required for EC2-VPC.
-
NetworkInterfaceId => (string)[EC2-VPC] The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.
-
PrivateIpAddress => (string)[EC2-VPC] The primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.
-
AllowReassociation => (bool)[EC2-VPC] Allows an Elastic IP address that is already associated with an instance or network interface to be re-associated with the specified instance or network interface. Otherwise, the operation fails.
Default: false
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
AssociationId => (string)[EC2-VPC] The ID that represents the association of the Elastic IP address with an instance.
Executes the AssociateDhcpOptions operation.
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.
Examples
- Basic formatting example
$result = $client->associateDhcpOptions(array( 'DryRun' => true || false, // DhcpOptionsId is required 'DhcpOptionsId' => 'string', // VpcId is required 'VpcId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
DhcpOptionsId => (string)The ID of the DHCP options set, or default to associate no DHCP options with the VPC.
-
VpcId => (string)The ID of the VPC.
-
Returns
Executes the AssociateRouteTable operation.
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 about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->associateRouteTable(array( 'DryRun' => true || false, // SubnetId is required 'SubnetId' => 'string', // RouteTableId is required 'RouteTableId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SubnetId => (string)The ID of the subnet.
-
RouteTableId => (string)The ID of the route table.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
AssociationId => (string)The route table association ID (needed to disassociate the route table).
Executes the AttachClassicLinkVpc operation.
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
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.
Examples
- Basic formatting example
$result = $client->attachClassicLinkVpc(array( 'DryRun' => true || false, // InstanceId is required 'InstanceId' => 'string', // VpcId is required 'VpcId' => 'string', // Groups is required 'Groups' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceId => (string)The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
-
VpcId => (string)The ID of a ClassicLink-enabled VPC.
-
Groups => (array<string>)The ID of one or more of the VPC's security groups. You cannot specify security groups from a different VPC.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Return => (bool)Returns true if the request succeeds; otherwise, it returns an error.
Executes the AttachInternetGateway operation.
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.
Examples
- Basic formatting example
$result = $client->attachInternetGateway(array( 'DryRun' => true || false, // InternetGatewayId is required 'InternetGatewayId' => 'string', // VpcId is required 'VpcId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InternetGatewayId => (string)The ID of the Internet gateway.
-
VpcId => (string)The ID of the VPC.
-
Returns
Executes the AttachNetworkInterface operation.
Attaches a network interface to an instance.
Examples
- Basic formatting example
$result = $client->attachNetworkInterface(array( 'DryRun' => true || false, // NetworkInterfaceId is required 'NetworkInterfaceId' => 'string', // InstanceId is required 'InstanceId' => 'string', // DeviceIndex is required 'DeviceIndex' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
InstanceId => (string)The ID of the instance.
-
DeviceIndex => (int)The index of the device for the network interface attachment.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
AttachmentId => (string)The ID of the network interface attachment.
Executes the AttachVolume operation.
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 an overview of the AWS Marketplace, see Introducing AWS Marketplace.
For more information about EBS volumes, see Attaching Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->attachVolume(array( 'DryRun' => true || false, // VolumeId is required 'VolumeId' => 'string', // InstanceId is required 'InstanceId' => 'string', // Device is required 'Device' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VolumeId => (string)The ID of the EBS volume. The volume and instance must be within the same Availability Zone.
-
InstanceId => (string)The ID of the instance.
-
Device => (string)The device name to expose to the instance (for example, /dev/sdh or xvdh).
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VolumeId => (string)The ID of the volume.
-
InstanceId => (string)The ID of the instance.
-
Device => (string)The device name.
-
State => (string)The attachment state of the volume.
-
AttachTime => (string)The time stamp when the attachment initiated.
-
DeleteOnTermination => (bool)Indicates whether the EBS volume is deleted on instance termination.
Executes the AttachVpnGateway operation.
Attaches a virtual private gateway to a VPC. For more information, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->attachVpnGateway(array( 'DryRun' => true || false, // VpnGatewayId is required 'VpnGatewayId' => 'string', // VpcId is required 'VpcId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpnGatewayId => (string)The ID of the virtual private gateway.
-
VpcId => (string)The ID of the VPC.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VpcAttachment => (associative-array)Information about the attachment.
-
VpcId => (string)The ID of the VPC.
-
State => (string)The current state of the attachment.
-
Executes the BundleInstance operation.
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.
This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.
For more information, see Creating an Instance Store-Backed Windows AMI.
Examples
- Basic formatting example
$result = $client->bundleInstance(array( 'DryRun' => true || false, // InstanceId is required 'InstanceId' => 'string', // Storage is required 'Storage' => array( 'S3' => array( 'Bucket' => 'string', 'Prefix' => 'string', 'AWSAccessKeyId' => 'string', 'UploadPolicy' => 'string', 'UploadPolicySignature' => 'string', ), ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceId => (string)The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
-
Storage => (associative-array)The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
-
S3 => (associative-array)An Amazon S3 storage location.
-
Bucket => (string)The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
-
Prefix => (string)The beginning of the file name of the AMI.
-
AWSAccessKeyId => (string)The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Managing AWS Access Keys.
-
UploadPolicy => (string)A Base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.
-
UploadPolicySignature => (string)The signature of the Base64 encoded JSON document.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
BundleTask => (associative-array)Information about the bundle task.
-
InstanceId => (string)The ID of the instance associated with this bundle task.
-
BundleId => (string)The ID of the bundle task.
-
State => (string)The state of the task.
-
StartTime => (string)The time this task started.
-
UpdateTime => (string)The time of the most recent update for the task.
-
Storage => (associative-array)The Amazon S3 storage locations.
-
S3 => (associative-array)An Amazon S3 storage location.
-
Bucket => (string)The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
-
Prefix => (string)The beginning of the file name of the AMI.
-
AWSAccessKeyId => (string)The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Managing AWS Access Keys.
-
UploadPolicy => (string)A Base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.
-
UploadPolicySignature => (string)The signature of the Base64 encoded JSON document.
-
-
-
Progress => (string)The level of task completion, as a percent (for example, 20%).
-
BundleTaskError => (associative-array)If the task fails, a description of the error.
-
Code => (string)The error code.
-
Message => (string)The error message.
-
-
Executes the CancelBundleTask operation.
Cancels a bundling operation for an instance store-backed Windows instance.
Examples
- Basic formatting example
$result = $client->cancelBundleTask(array( 'DryRun' => true || false, // BundleId is required 'BundleId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
BundleId => (string)The ID of the bundle task.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
BundleTask => (associative-array)Information about the bundle task.
-
InstanceId => (string)The ID of the instance associated with this bundle task.
-
BundleId => (string)The ID of the bundle task.
-
State => (string)The state of the task.
-
StartTime => (string)The time this task started.
-
UpdateTime => (string)The time of the most recent update for the task.
-
Storage => (associative-array)The Amazon S3 storage locations.
-
S3 => (associative-array)An Amazon S3 storage location.
-
Bucket => (string)The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
-
Prefix => (string)The beginning of the file name of the AMI.
-
AWSAccessKeyId => (string)The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Managing AWS Access Keys.
-
UploadPolicy => (string)A Base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.
-
UploadPolicySignature => (string)The signature of the Base64 encoded JSON document.
-
-
-
Progress => (string)The level of task completion, as a percent (for example, 20%).
-
BundleTaskError => (associative-array)If the task fails, a description of the error.
-
Code => (string)The error code.
-
Message => (string)The error message.
-
-
Executes the CancelConversionTask operation.
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 Using the Command Line Tools to Import Your Virtual Machine to Amazon EC2 in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->cancelConversionTask(array( 'DryRun' => true || false, // ConversionTaskId is required 'ConversionTaskId' => 'string', 'ReasonMessage' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ConversionTaskId => (string)The ID of the conversion task.
-
ReasonMessage => (string)The reason for canceling the conversion task.
-
Returns
Executes the CancelExportTask operation.
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.
Examples
- Basic formatting example
$result = $client->cancelExportTask(array( // ExportTaskId is required 'ExportTaskId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ExportTaskId => (string)The ID of the export task. This is the ID returned by CreateInstanceExportTask.
-
Returns
Executes the CancelImportTask operation.
Cancels an in-process import virtual machine or import snapshot task.
Examples
- Basic formatting example
$result = $client->cancelImportTask(array( 'DryRun' => true || false, 'ImportTaskId' => 'string', 'CancelReason' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ImportTaskId => (string)The ID of the import image or import snapshot task to be canceled.
-
CancelReason => (string)The reason for canceling the task.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ImportTaskId => (string)The ID of the task being canceled.
-
State => (string)The current state of the task being canceled.
-
PreviousState => (string)The current state of the task being canceled.
Executes the CancelReservedInstancesListing operation.
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.
Examples
- Basic formatting example
$result = $client->cancelReservedInstancesListing(array( // ReservedInstancesListingId is required 'ReservedInstancesListingId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ReservedInstancesListingId => (string)The ID of the Reserved Instance listing.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ReservedInstancesListings => (array<associative-array>)The Reserved Instance listing.
- (associative-array)
Describes a Reserved Instance listing.
-
ReservedInstancesListingId => (string)The ID of the Reserved Instance listing.
-
ReservedInstancesId => (string)The ID of the Reserved Instance.
-
CreateDate => (string)The time the listing was created.
-
UpdateDate => (string)The last modified timestamp of the listing.
-
Status => (string)The status of the Reserved Instance listing.
-
StatusMessage => (string)The reason for the current status of the Reserved Instance listing. The response can be blank.
-
InstanceCounts => (array<associative-array>)The number of instances in this state.
- (associative-array)
Describes a Reserved Instance listing state.
-
State => (string)The states of the listed Reserved Instances.
-
InstanceCount => (int)The number of listed Reserved Instances in the state specified by the state.
-
- (associative-array)
-
PriceSchedules => (array<associative-array>)The price of the Reserved Instance listing.
- (associative-array)
Describes the price for a Reserved Instance.
-
Term => (int)The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.
-
Price => (int)The fixed price for the term.
-
CurrencyCode => (string)The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.
-
Active => (bool)The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the resource.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
ClientToken => (string)A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
-
- (associative-array)
Executes the CancelSpotFleetRequests operation.
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
Examples
- Basic formatting example
$result = $client->cancelSpotFleetRequests(array( 'DryRun' => true || false, // SpotFleetRequestIds is required 'SpotFleetRequestIds' => array('string', ... ), // TerminateInstances is required 'TerminateInstances' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SpotFleetRequestIds => (array<string>)The IDs of the Spot fleet requests.
-
TerminateInstances => (bool)Indicates whether to terminate instances for a Spot fleet request if it is canceled successfully.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
UnsuccessfulFleetRequests => (array<associative-array>)Information about the Spot fleet requests that are not successfully canceled.
- (associative-array)
Describes a Spot fleet request that was not successfully canceled.
-
SpotFleetRequestId => (string)The ID of the Spot fleet request.
-
Error => (associative-array)The error.
-
Code => (string)The error code.
-
Message => (string)The description for the error code.
-
-
- (associative-array)
-
SuccessfulFleetRequests => (array<associative-array>)Information about the Spot fleet requests that are successfully canceled.
- (associative-array)
Describes a Spot fleet request that was successfully canceled.
-
SpotFleetRequestId => (string)The ID of the Spot fleet request.
-
CurrentSpotFleetRequestState => (string)The current state of the Spot fleet request.
-
PreviousSpotFleetRequestState => (string)The previous state of the Spot fleet request.
-
- (associative-array)
Executes the CancelSpotInstanceRequests operation.
Cancels one or more Spot instance requests. Spot instances are instances that Amazon EC2 starts on your behalf when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot instance capacity and current Spot instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.
Canceling a Spot instance request does not terminate running Spot instances associated with the request.
Examples
- Basic formatting example
$result = $client->cancelSpotInstanceRequests(array( 'DryRun' => true || false, // SpotInstanceRequestIds is required 'SpotInstanceRequestIds' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SpotInstanceRequestIds => (array<string>)One or more Spot instance request IDs.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
CancelledSpotInstanceRequests => (array<associative-array>)One or more Spot instance requests.
- (associative-array)
Describes a request to cancel a Spot instance.
-
SpotInstanceRequestId => (string)The ID of the Spot instance request.
-
State => (string)The state of the Spot instance request.
-
- (associative-array)
Executes the ConfirmProductInstance operation.
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 needs to verify whether another user's instance is eligible for support.
Examples
- Basic formatting example
$result = $client->confirmProductInstance(array( 'DryRun' => true || false, // ProductCode is required 'ProductCode' => 'string', // InstanceId is required 'InstanceId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ProductCode => (string)The product code. This must be a product code that you own.
-
InstanceId => (string)The ID of the instance.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
OwnerId => (string)The AWS account ID of the instance owner. This is only present if the product code is attached to the instance.
-
Return => (bool)The return value of the request. Returns true if the specified product code is owned by the requester and associated with the specified instance.
Executes the CopyImage operation.
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. AMIs that use encrypted EBS snapshots cannot be copied with this method.
For more information, see Copying AMIs in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->copyImage(array( 'DryRun' => true || false, // SourceRegion is required 'SourceRegion' => 'string', // SourceImageId is required 'SourceImageId' => 'string', // Name is required 'Name' => 'string', 'Description' => 'string', 'ClientToken' => 'string', 'Encrypted' => true || false, 'KmsKeyId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SourceRegion => (string)The name of the region that contains the AMI to copy.
-
SourceImageId => (string)The ID of the AMI to copy.
-
Name => (string)The name of the new AMI in the destination region.
-
Description => (string)A description for the new AMI in the destination region.
-
ClientToken => (string)Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ImageId => (string)The ID of the new AMI.
Executes the CopySnapshot operation.
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
For more information, see Copying an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->copySnapshot(array( 'DryRun' => true || false, // SourceRegion is required 'SourceRegion' => 'string', // SourceSnapshotId is required 'SourceSnapshotId' => 'string', 'Description' => 'string', 'DestinationRegion' => 'string', 'PresignedUrl' => 'string', 'Encrypted' => true || false, 'KmsKeyId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SourceRegion => (string)The ID of the region that contains the snapshot to be copied.
-
SourceSnapshotId => (string)The ID of the EBS snapshot to copy.
-
Description => (string)A description for the EBS snapshot.
-
DestinationRegion => (string)The destination region to use in the PresignedUrl parameter of a snapshot copy operation. This parameter is only valid for specifying the destination region in a PresignedUrl parameter, where it is required.
CopySnapshot sends the snapshot copy to the regional endpoint that you send the HTTP request to, such as ec2.us-east-1.amazonaws.com (in the AWS CLI, this is specified with the --region parameter or the default region in your AWS configuration file).
-
PresignedUrl => (string)The pre-signed URL that facilitates copying an encrypted snapshot. This parameter is only required when copying an encrypted snapshot with the Amazon EC2 Query API; it is available as an optional parameter in all other cases. The PresignedUrl should use the snapshot source endpoint, the CopySnapshot action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion parameters. The PresignedUrl must be signed using AWS Signature Version 4. Because EBS snapshots are stored in Amazon S3, the signing algorithm for this parameter uses the same logic that is described in Authenticating Requests by Using Query Parameters (AWS Signature Version 4) in the Amazon Simple Storage Service API Reference. An invalid or improperly signed PresignedUrl will cause the copy operation to fail asynchronously, and the snapshot will move to an error state.
-
Encrypted => (bool)Specifies whether the destination snapshot should be encrypted. There is no way to create an unencrypted snapshot copy from an encrypted snapshot; however, you can encrypt a copy of an unencrypted snapshot with this flag. The default CMK for EBS is used unless a non-default AWS Key Management Service (AWS KMS) CMK is specified with KmsKeyId. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.
-
KmsKeyId => (string)The full ARN of the AWS Key Management Service (AWS KMS) CMK to use when creating the snapshot copy. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. The ARN contains the arn:aws:kms namespace, followed by the region of the CMK, the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. The specified CMK must exist in the region that the snapshot is being copied to. If a KmsKeyId is specified, the Encrypted flag must also be set.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
SnapshotId => (string)The ID of the new snapshot.
Executes the CreateCustomerGateway operation.
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 can't 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).
Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with
the exception of 7224, which is reserved in the
For more information about VPN customer gateways, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud 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.
Examples
- Basic formatting example
$result = $client->createCustomerGateway(array( 'DryRun' => true || false, // Type is required 'Type' => 'string', // PublicIp is required 'PublicIp' => 'string', // BgpAsn is required 'BgpAsn' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Type => (string:ipsec.1 )The type of VPN connection that this customer gateway supports (ipsec.1).
-
PublicIp => (string)The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
-
BgpAsn => (int)For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
CustomerGateway => (associative-array)Information about the customer gateway.
-
CustomerGatewayId => (string)The ID of the customer gateway.
-
State => (string)The current state of the customer gateway (pending | available | deleting | deleted).
-
Type => (string)The type of VPN connection the customer gateway supports (ipsec.1).
-
IpAddress => (string)The Internet-routable IP address of the customer gateway's outside interface.
-
BgpAsn => (string)The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
-
Tags => (array<associative-array>)Any tags assigned to the customer gateway.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
Executes the CreateDhcpOptions operation.
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, orAmazonProvidedDNS . The default DHCP option set specifiesAmazonProvidedDNS . If specifying more than one domain name server, specify the IP addresses in a single parameter, separated by commas. -
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 ). 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
Examples
- Basic formatting example
$result = $client->createDhcpOptions(array( 'DryRun' => true || false, // DhcpConfigurations is required 'DhcpConfigurations' => array( array( 'Key' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
DhcpConfigurations => (array<associative-array>)A DHCP configuration option.
- (associative-array)
Describes a DHCP configuration option.
-
Key => (string)The name of a DHCP option.
-
Values => (array<string>)One or more values for the DHCP option.
-
- (associative-array)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
DhcpOptions => (associative-array)A set of DHCP options.
-
DhcpOptionsId => (string)The ID of the set of DHCP options.
-
DhcpConfigurations => (array<associative-array>)One or more DHCP options in the set.
- (associative-array)
Describes a DHCP configuration option.
-
Key => (string)The name of a DHCP option.
-
Values => (array<string>)One or more values for the DHCP option.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the DHCP options set.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
Executes the CreateFlowLogs operation.
Creates one or more flow logs to capture IP traffic for a specific network interface, subnet, or VPC. Flow logs are delivered to a specified log group in Amazon CloudWatch Logs. If you specify a VPC or subnet in the request, a log stream is created in CloudWatch Logs for each network interface in the subnet or VPC. Log streams can include information about accepted and rejected traffic to a network interface. You can view the data in your log streams using Amazon CloudWatch Logs.
In your request, you must also specify an IAM role that has permission to publish logs to CloudWatch Logs.
Examples
- Basic formatting example
$result = $client->createFlowLogs(array( // ResourceIds is required 'ResourceIds' => array('string', ... ), // ResourceType is required 'ResourceType' => 'string', // TrafficType is required 'TrafficType' => 'string', // LogGroupName is required 'LogGroupName' => 'string', // DeliverLogsPermissionArn is required 'DeliverLogsPermissionArn' => 'string', 'ClientToken' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ResourceIds => (array<string>)One or more subnet, network interface, or VPC IDs.
-
ResourceType => (string:VPC |Subnet |NetworkInterface )The type of resource on which to create the flow log.
-
TrafficType => (string:ACCEPT |REJECT |ALL )The type of traffic to log.
-
LogGroupName => (string)The name of the CloudWatch log group.
-
DeliverLogsPermissionArn => (string)The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.
-
ClientToken => (string)Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
FlowLogIds => (array<string>)The IDs of the flow logs.
-
ClientToken => (string)Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
-
Unsuccessful => (array<associative-array>)Information about the flow logs that could not be created successfully.
- (associative-array)
Information about items that were not successfully processed in a batch call.
-
ResourceId => (string)The ID of the resource.
-
Error => (associative-array)Information about the error.
-
Code => (string)The error code.
-
Message => (string)The error message accompanying the error code.
-
-
- (associative-array)
Executes the CreateImage operation.
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.
Examples
- Basic formatting example
$result = $client->createImage(array( 'DryRun' => true || false, // InstanceId is required 'InstanceId' => 'string', // Name is required 'Name' => 'string', 'Description' => 'string', 'NoReboot' => true || false, 'BlockDeviceMappings' => array( array( 'VirtualName' => 'string', 'DeviceName' => 'string', 'Ebs' => array( 'SnapshotId' => 'string', 'VolumeSize' => integer, 'DeleteOnTermination' => true || false, 'VolumeType' => 'string', 'Iops' => integer, 'Encrypted' => true || false, ), 'NoDevice' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceId => (string)The ID of the instance.
-
Name => (string)A name for the new image.
Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
-
Description => (string)A description for the new image.
-
NoReboot => (bool)By default, this parameter is set to false, which means Amazon EC2 attempts to shut down the instance cleanly before image creation and then reboots the instance. When the parameter is set to true, Amazon EC2 doesn't shut down the instance before creating the image. When this option is used, file system integrity on the created image can't be guaranteed.
-
BlockDeviceMappings => (array<associative-array>)Information about one or more block device mappings.
- (associative-array)
Describes a block device mapping.
-
VirtualName => (string)The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
-
DeviceName => (string)The device name exposed to the instance (for example, /dev/sdh or xvdh).
-
Ebs => (associative-array)Parameters used to automatically set up EBS volumes when the instance is launched.
-
SnapshotId => (string)The ID of the snapshot.
-
VolumeSize => (int)The size of the volume, in GiB.
Constraints: 1-1024 for standard volumes, 1-16384 for gp2 volumes, and 4-16384 for io1 volumes. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
-
DeleteOnTermination => (bool)Indicates whether the EBS volume is deleted on instance termination.
-
VolumeType => (string:standard |io1 |gp2 )The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
Default: standard
-
Iops => (int)The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS (SSD) volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose (SSD) volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose (SSD) baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
-
Encrypted => (bool)Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption.
-
-
NoDevice => (string)Suppresses the specified device included in the block device mapping of the AMI.
-
- (associative-array)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ImageId => (string)The ID of the new AMI.
Executes the CreateInstanceExportTask operation.
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 EC2 Instances in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createInstanceExportTask(array( 'Description' => 'string', // InstanceId is required 'InstanceId' => 'string', 'TargetEnvironment' => 'string', 'ExportToS3Task' => array( 'DiskImageFormat' => 'string', 'ContainerFormat' => 'string', 'S3Bucket' => 'string', 'S3Prefix' => 'string', ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
Description => (string)A description for the conversion task or the resource being exported. The maximum length is 255 bytes.
-
InstanceId => (string)The ID of the instance.
-
TargetEnvironment => (string:citrix |vmware |microsoft )The target virtualization environment.
-
ExportToS3Task => (associative-array)The format and location for an instance export task.
-
DiskImageFormat => (string:VMDK |RAW |VHD )The format for the exported image.
-
ContainerFormat => (string:ova )The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.
-
S3Bucket => (string)The S3 bucket for the destination image. The destination bucket must exist and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
-
S3Prefix => (string)The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ExportTask => (associative-array)Information about the instance export task.
-
ExportTaskId => (string)The ID of the export task.
-
Description => (string)A description of the resource being exported.
-
State => (string)The state of the export task.
-
StatusMessage => (string)The status message related to the export task.
-
InstanceExportDetails => (associative-array)Information about the instance to export.
-
InstanceId => (string)The ID of the resource being exported.
-
TargetEnvironment => (string)The target virtualization environment.
-
-
ExportToS3Task => (associative-array)Information about the export task.
-
DiskImageFormat => (string)The format for the exported image.
-
ContainerFormat => (string)The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.
-
S3Bucket => (string)The S3 bucket for the destination image. The destination bucket must exist and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
-
S3Key => (string)The encryption key for your S3 bucket.
-
-
Executes the CreateInternetGateway operation.
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.
Examples
- Basic formatting example
$result = $client->createInternetGateway(array( 'DryRun' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
InternetGateway => (associative-array)Information about the Internet gateway.
-
InternetGatewayId => (string)The ID of the Internet gateway.
-
Attachments => (array<associative-array>)Any VPCs attached to the Internet gateway.
- (associative-array)
Describes the attachment of a VPC to an Internet gateway.
-
VpcId => (string)The ID of the VPC.
-
State => (string)The current state of the attachment.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the Internet gateway.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
Executes the CreateKeyPair operation.
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#8 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. To create a key pair that is available in all regions, use ImportKeyPair.
For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createKeyPair(array( 'DryRun' => true || false, // KeyName is required 'KeyName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
KeyName => (string)A unique name for the key pair.
Constraints: Up to 255 ASCII characters
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
KeyName => (string)The name of the key pair.
-
KeyFingerprint => (string)The SHA-1 digest of the DER encoded private key.
-
KeyMaterial => (string)An unencrypted PEM encoded RSA private key.
Executes the CreateNetworkAcl operation.
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 about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createNetworkAcl(array( 'DryRun' => true || false, // VpcId is required 'VpcId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcId => (string)The ID of the VPC.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
NetworkAcl => (associative-array)Information about the network ACL.
-
NetworkAclId => (string)The ID of the network ACL.
-
VpcId => (string)The ID of the VPC for the network ACL.
-
IsDefault => (bool)Indicates whether this is the default network ACL for the VPC.
-
Entries => (array<associative-array>)One or more entries (rules) in the network ACL.
- (associative-array)
Describes an entry in a network ACL.
-
RuleNumber => (int)The rule number for the entry. ACL entries are processed in ascending order by rule number.
-
Protocol => (string)The protocol. A value of -1 means all protocols.
-
RuleAction => (string)Indicates whether to allow or deny the traffic that matches the rule.
-
Egress => (bool)Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
-
CidrBlock => (string)The network range to allow or deny, in CIDR notation.
-
IcmpTypeCode => (associative-array)ICMP protocol: The ICMP type and code.
-
Type => (int)The ICMP code. A value of -1 means all codes for the specified ICMP type.
-
Code => (int)The ICMP type. A value of -1 means all types.
-
-
PortRange => (associative-array)TCP or UDP protocols: The range of ports the rule applies to.
-
From => (int)The first port in the range.
-
To => (int)The last port in the range.
-
-
- (associative-array)
-
Associations => (array<associative-array>)Any associations between the network ACL and one or more subnets
- (associative-array)
Describes an association between a network ACL and a subnet.
-
NetworkAclAssociationId => (string)The ID of the association between a network ACL and a subnet.
-
NetworkAclId => (string)The ID of the network ACL.
-
SubnetId => (string)The ID of the subnet.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the network ACL.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
Executes the CreateNetworkAclEntry operation.
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.
Examples
- Basic formatting example
$result = $client->createNetworkAclEntry(array( 'DryRun' => true || false, // NetworkAclId is required 'NetworkAclId' => 'string', // RuleNumber is required 'RuleNumber' => integer, // Protocol is required 'Protocol' => 'string', // RuleAction is required 'RuleAction' => 'string', // Egress is required 'Egress' => true || false, // CidrBlock is required 'CidrBlock' => 'string', 'IcmpTypeCode' => array( 'Type' => integer, 'Code' => integer, ), 'PortRange' => array( 'From' => integer, 'To' => integer, ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
NetworkAclId => (string)The ID of the network ACL.
-
RuleNumber => (int)The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number.
Constraints: Positive integer from 1 to 32766
-
Protocol => (string)The protocol. A value of -1 means all protocols.
-
RuleAction => (string:allow |deny )Indicates whether to allow or deny the traffic that matches the rule.
-
Egress => (bool)Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).
-
CidrBlock => (string)The network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).
-
IcmpTypeCode => (associative-array)ICMP protocol: The ICMP type and code. Required if specifying ICMP for the protocol.
-
Type => (int)The ICMP code. A value of -1 means all codes for the specified ICMP type.
-
Code => (int)The ICMP type. A value of -1 means all types.
-
-
PortRange => (associative-array)TCP or UDP protocols: The range of ports the rule applies to.
-
From => (int)The first port in the range.
-
To => (int)The last port in the range.
-
-
Returns
Executes the CreateNetworkInterface operation.
Creates a network interface in the specified subnet.
For more information about network interfaces, see Elastic Network Interfaces in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createNetworkInterface(array( // SubnetId is required 'SubnetId' => 'string', 'Description' => 'string', 'PrivateIpAddress' => 'string', 'Groups' => array('string', ... ), 'PrivateIpAddresses' => array( array( // PrivateIpAddress is required 'PrivateIpAddress' => 'string', 'Primary' => true || false, ), // ... repeated ), 'SecondaryPrivateIpAddressCount' => integer, 'DryRun' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
SubnetId => (string)The ID of the subnet to associate with the network interface.
-
Description => (string)A description for the network interface.
-
PrivateIpAddress => (string)The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range. If you specify an IP address, you cannot indicate any IP addresses specified in privateIpAddresses as primary (only one IP address can be designated as primary).
-
Groups => (array<string>)The IDs of one or more security groups.
-
PrivateIpAddresses => (array<associative-array>)One or more private IP addresses.
- (associative-array)
Describes a secondary private IP address for a network interface.
-
PrivateIpAddress => (string)The private IP addresses.
-
Primary => (bool)Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
-
- (associative-array)
-
SecondaryPrivateIpAddressCount => (int)The number of secondary private IP addresses to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range. You can't specify this option and specify more than one private IP address using privateIpAddresses.
The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.
-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
NetworkInterface => (associative-array)Information about the network interface.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
SubnetId => (string)The ID of the subnet.
-
VpcId => (string)The ID of the VPC.
-
AvailabilityZone => (string)The Availability Zone.
-
Description => (string)A description.
-
OwnerId => (string)The AWS account ID of the owner of the network interface.
-
RequesterId => (string)The ID of the entity that launched the instance on your behalf (for example, AWS Management Console or Auto Scaling).
-
RequesterManaged => (bool)Indicates whether the network interface is being managed by AWS.
-
Status => (string)The status of the network interface.
-
MacAddress => (string)The MAC address.
-
PrivateIpAddress => (string)The IP address of the network interface within the subnet.
-
PrivateDnsName => (string)The private DNS name.
-
SourceDestCheck => (bool)Indicates whether traffic to or from the instance is validated.
-
Groups => (array<associative-array>)Any security groups for the network interface.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
Attachment => (associative-array)The network interface attachment.
-
AttachmentId => (string)The ID of the network interface attachment.
-
InstanceId => (string)The ID of the instance.
-
InstanceOwnerId => (string)The AWS account ID of the owner of the instance.
-
DeviceIndex => (int)The device index of the network interface attachment on the instance.
-
Status => (string)The attachment state.
-
AttachTime => (string)The timestamp indicating when the attachment initiated.
-
DeleteOnTermination => (bool)Indicates whether the network interface is deleted when the instance is terminated.
-
-
Association => (associative-array)The association information for an Elastic IP associated with the network interface.
-
PublicIp => (string)The address of the Elastic IP address bound to the network interface.
-
PublicDnsName => (string)The public DNS name.
-
IpOwnerId => (string)The ID of the Elastic IP address owner.
-
AllocationId => (string)The allocation ID.
-
AssociationId => (string)The association ID.
-
-
TagSet => (array<associative-array>)Any tags assigned to the network interface.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
PrivateIpAddresses => (array<associative-array>)The private IP addresses associated with the network interface.
- (associative-array)
Describes the private IP address of a network interface.
-
PrivateIpAddress => (string)The private IP address.
-
PrivateDnsName => (string)The private DNS name.
-
Primary => (bool)Indicates whether this IP address is the primary private IP address of the network interface.
-
Association => (associative-array)The association information for an Elastic IP address associated with the network interface.
-
PublicIp => (string)The address of the Elastic IP address bound to the network interface.
-
PublicDnsName => (string)The public DNS name.
-
IpOwnerId => (string)The ID of the Elastic IP address owner.
-
AllocationId => (string)The allocation ID.
-
AssociationId => (string)The association ID.
-
-
- (associative-array)
-
Executes the CreatePlacementGroup operation.
Creates a placement group that you launch cluster instances into. You must give the group a name that's unique within the scope of your account.
For more information about placement groups and cluster instances, see Cluster Instances in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createPlacementGroup(array( 'DryRun' => true || false, // GroupName is required 'GroupName' => 'string', // Strategy is required 'Strategy' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
GroupName => (string)A name for the placement group.
Constraints: Up to 255 ASCII characters
-
Strategy => (string:cluster )The placement strategy.
-
Returns
Executes the CreateReservedInstancesListing operation.
Creates a listing for Amazon EC2 Reserved Instances to be sold in the Reserved Instance Marketplace. You can submit one Reserved Instance listing at a time. To get a list of your Reserved Instances, you can use the DescribeReservedInstances operation.
The Reserved Instance Marketplace matches sellers who want to resell 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 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 Reserved Instances, and specify the upfront price to receive for them. Your Reserved Instance listings then become available for purchase. To view the details of your Reserved Instance listing, you can use the DescribeReservedInstancesListings operation.
For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createReservedInstancesListing(array( // ReservedInstancesId is required 'ReservedInstancesId' => 'string', // InstanceCount is required 'InstanceCount' => integer, // PriceSchedules is required 'PriceSchedules' => array( array( 'Term' => integer, 'Price' => integer, 'CurrencyCode' => 'string', ), // ... repeated ), // ClientToken is required 'ClientToken' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ReservedInstancesId => (string)The ID of the active Reserved Instance.
-
InstanceCount => (int)The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.
-
PriceSchedules => (array<associative-array>)A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.
- (associative-array)
Describes the price for a Reserved Instance.
-
Term => (int)The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.
-
Price => (int)The fixed price for the term.
-
CurrencyCode => (string:USD )The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.
-
- (associative-array)
-
ClientToken => (string)Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ReservedInstancesListings => (array<associative-array>)Information about the Reserved Instances listing.
- (associative-array)
Describes a Reserved Instance listing.
-
ReservedInstancesListingId => (string)The ID of the Reserved Instance listing.
-
ReservedInstancesId => (string)The ID of the Reserved Instance.
-
CreateDate => (string)The time the listing was created.
-
UpdateDate => (string)The last modified timestamp of the listing.
-
Status => (string)The status of the Reserved Instance listing.
-
StatusMessage => (string)The reason for the current status of the Reserved Instance listing. The response can be blank.
-
InstanceCounts => (array<associative-array>)The number of instances in this state.
- (associative-array)
Describes a Reserved Instance listing state.
-
State => (string)The states of the listed Reserved Instances.
-
InstanceCount => (int)The number of listed Reserved Instances in the state specified by the state.
-
- (associative-array)
-
PriceSchedules => (array<associative-array>)The price of the Reserved Instance listing.
- (associative-array)
Describes the price for a Reserved Instance.
-
Term => (int)The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.
-
Price => (int)The fixed price for the term.
-
CurrencyCode => (string)The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.
-
Active => (bool)The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the resource.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
ClientToken => (string)A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
-
- (associative-array)
Executes the CreateRoute operation.
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, VPC peering connection, or network interface.
When determining how to route traffic, we use the route with the most
specific match. For example, let's say the traffic is destined for
-
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
For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createRoute(array( 'DryRun' => true || false, // RouteTableId is required 'RouteTableId' => 'string', // DestinationCidrBlock is required 'DestinationCidrBlock' => 'string', 'GatewayId' => 'string', 'InstanceId' => 'string', 'NetworkInterfaceId' => 'string', 'VpcPeeringConnectionId' => 'string', 'NatGatewayId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
RouteTableId => (string)The ID of the route table for the route.
-
DestinationCidrBlock => (string)The CIDR address block used for the destination match. Routing decisions are based on the most specific match.
-
GatewayId => (string)The ID of an Internet gateway or virtual private gateway attached to your VPC.
-
InstanceId => (string)The ID of a NAT instance in your VPC. The operation fails if you specify an instance ID unless exactly one network interface is attached.
-
NetworkInterfaceId => (string)The ID of a network interface.
-
VpcPeeringConnectionId => (string)The ID of a VPC peering connection.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Return => (bool)Returns true if the request succeeds; otherwise, it returns an error.
Executes the CreateRouteTable operation.
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 about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createRouteTable(array( 'DryRun' => true || false, // VpcId is required 'VpcId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcId => (string)The ID of the VPC.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
RouteTable => (associative-array)Information about the route table.
-
RouteTableId => (string)The ID of the route table.
-
VpcId => (string)The ID of the VPC.
-
Routes => (array<associative-array>)The routes in the route table.
- (associative-array)
Describes a route in a route table.
-
DestinationCidrBlock => (string)The CIDR block used for the destination match.
-
DestinationPrefixListId => (string)The prefix of the AWS service.
-
GatewayId => (string)The ID of a gateway attached to your VPC.
-
InstanceId => (string)The ID of a NAT instance in your VPC.
-
InstanceOwnerId => (string)The AWS account ID of the owner of the instance.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
VpcPeeringConnectionId => (string)The ID of the VPC peering connection.
-
State => (string)The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).
-
Origin => (string)Describes how the route was created.
- CreateRouteTable indicates that route was automatically created when the route table was created.
- CreateRoute indicates that the route was manually added to the route table.
- EnableVgwRoutePropagation indicates that the route was propagated by route propagation.
-
- (associative-array)
-
Associations => (array<associative-array>)The associations between the route table and one or more subnets.
- (associative-array)
Describes an association between a route table and a subnet.
-
RouteTableAssociationId => (string)The ID of the association between a route table and a subnet.
-
RouteTableId => (string)The ID of the route table.
-
SubnetId => (string)The ID of the subnet. A subnet ID is not returned for an implicit association.
-
Main => (bool)Indicates whether this is the main route table.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the route table.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
PropagatingVgws => (array<associative-array>)Any virtual private gateway (VGW) propagating routes.
- (associative-array)
Describes a virtual private gateway propagating route.
-
GatewayId => (string)The ID of the virtual private gateway (VGW).
-
- (associative-array)
-
Executes the CreateSecurityGroup operation.
Creates a security group.
A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. 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.
EC2-Classic: You can have up to 500 security groups.
EC2-VPC: You can create up to 100 security groups per VPC.
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.
Examples
- Basic formatting example
$result = $client->createSecurityGroup(array( 'DryRun' => true || false, // GroupName is required 'GroupName' => 'string', // Description is required 'Description' => 'string', 'VpcId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
GroupName => (string)The name of the security group.
Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
-
Description => (string)A description for the security group. This is informational only.
Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
-
VpcId => (string)[EC2-VPC] The ID of the VPC. Required for EC2-VPC.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
GroupId => (string)The ID of the security group.
Executes the CreateSnapshot operation.
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
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.
For more information, see Amazon Elastic Block Store and Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createSnapshot(array( 'DryRun' => true || false, // VolumeId is required 'VolumeId' => 'string', 'Description' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VolumeId => (string)The ID of the EBS volume.
-
Description => (string)A description for the snapshot.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
SnapshotId => (string)The ID of the snapshot. Each snapshot receives a unique identifier when it is created.
-
VolumeId => (string)The ID of the volume that was used to create the snapshot.
-
State => (string)The snapshot state.
-
StateMessage => (string)Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper AWS Key Management Service (AWS KMS) permissions are not obtained) this field displays error state details to help you diagnose why the error occurred. This parameter is only returned by the DescribeSnapshots API operation.
-
StartTime => (string)The time stamp when the snapshot was initiated.
-
Progress => (string)The progress of the snapshot, as a percentage.
-
OwnerId => (string)The AWS account ID of the EBS snapshot owner.
-
Description => (string)The description for the snapshot.
-
VolumeSize => (int)The size of the volume, in GiB.
-
OwnerAlias => (string)The AWS account alias (for example, amazon, self) or AWS account ID that owns the snapshot.
-
Encrypted => (bool)Indicates whether the snapshot is encrypted.
-
KmsKeyId => (string)The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the parent volume.
-
DataEncryptionKeyId => (string)The data encryption key identifier for the snapshot. This value is a unique identifier that corresponds to the data encryption key that was used to encrypt the original volume or snapshot copy. Because data encryption keys are inherited by volumes created from snapshots, and vice versa, if snapshots share the same data encryption key identifier, then they belong to the same volume/snapshot lineage. This parameter is only returned by the DescribeSnapshots API operation.
Executes the CreateSpotDatafeedSubscription operation.
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 Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createSpotDatafeedSubscription(array( 'DryRun' => true || false, // Bucket is required 'Bucket' => 'string', 'Prefix' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Bucket => (string)The Amazon S3 bucket in which to store the Spot instance data feed.
-
Prefix => (string)A prefix for the data feed file names.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
SpotDatafeedSubscription => (associative-array)The Spot instance data feed subscription.
-
OwnerId => (string)The AWS account ID of the account.
-
Bucket => (string)The Amazon S3 bucket where the Spot instance data feed is located.
-
Prefix => (string)The prefix that is prepended to data feed files.
-
State => (string)The state of the Spot instance data feed subscription.
-
Fault => (associative-array)The fault codes for the Spot instance request, if any.
-
Code => (string)The reason code for the Spot instance state change.
-
Message => (string)The message for the Spot instance state change.
-
-
Executes the CreateSubnet operation.
Creates a subnet in an existing VPC.
When you create each subnet, you provide the VPC ID and the CIDR block you want for the subnet. After you create a subnet, you can't change its CIDR block. The subnet's CIDR block can be the same as the VPC's CIDR block (assuming you want only a single subnet in the VPC), or a subset of the VPC's CIDR block. If you create more than one subnet in a VPC, the subnets' CIDR blocks must not overlap. The smallest subnet (and VPC) you can create uses a /28 netmask (16 IP addresses), and the largest uses a /16 netmask (65,536 IP addresses).
AWS reserves both the first four and the last IP 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.
Examples
- Basic formatting example
$result = $client->createSubnet(array( 'DryRun' => true || false, // VpcId is required 'VpcId' => 'string', // CidrBlock is required 'CidrBlock' => 'string', 'AvailabilityZone' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcId => (string)The ID of the VPC.
-
CidrBlock => (string)The network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.
-
AvailabilityZone => (string)The Availability Zone for the subnet.
Default: Amazon EC2 selects one for you (recommended).
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Subnet => (associative-array)Information about the subnet.
-
SubnetId => (string)The ID of the subnet.
-
State => (string)The current state of the subnet.
-
VpcId => (string)The ID of the VPC the subnet is in.
-
CidrBlock => (string)The CIDR block assigned to the subnet.
-
AvailableIpAddressCount => (int)The number of unused IP addresses in the subnet. Note that the IP addresses for any stopped instances are considered unavailable.
-
AvailabilityZone => (string)The Availability Zone of the subnet.
-
DefaultForAz => (bool)Indicates whether this is the default subnet for the Availability Zone.
-
MapPublicIpOnLaunch => (bool)Indicates whether instances launched in this subnet receive a public IP address.
-
Tags => (array<associative-array>)Any tags assigned to the subnet.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
Executes the CreateTags operation.
Adds or overwrites one or more tags for the specified Amazon EC2 resource or resources. Each resource can have a maximum of 10 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.
Examples
- Basic formatting example
$result = $client->createTags(array( 'DryRun' => true || false, // Resources is required 'Resources' => array('string', ... ), // Tags is required 'Tags' => array( array( 'Key' => 'string', 'Value' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Resources => (array<string>)The IDs of one or more resources to tag. For example, ami-1a2b3c4d.
-
Tags => (array<associative-array>)One or more tags. The value parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
Returns
Executes the CreateVolume operation.
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
For more information, see Creating or Restoring an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createVolume(array( 'DryRun' => true || false, 'Size' => integer, 'SnapshotId' => 'string', // AvailabilityZone is required 'AvailabilityZone' => 'string', 'VolumeType' => 'string', 'Iops' => integer, 'Encrypted' => true || false, 'KmsKeyId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Size => (int)The size of the volume, in GiBs.
Constraints: 1-1024 for standard volumes, 1-16384 for gp2 volumes, and 4-16384 for io1 volumes. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
-
SnapshotId => (string)The snapshot from which to create the volume.
-
AvailabilityZone => (string)The Availability Zone in which to create the volume. Use DescribeAvailabilityZones to list the Availability Zones that are currently available to you.
-
VolumeType => (string:standard |io1 |gp2 )The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes.
Default: standard
-
Iops => (int)Only valid for Provisioned IOPS (SSD) volumes. The number of I/O operations per second (IOPS) to provision for the volume, with a maximum ratio of 30 IOPS/GiB.
Constraint: Range is 100 to 20000 for Provisioned IOPS (SSD) volumes
-
Encrypted => (bool)Specifies whether the volume should be encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or vice versa. If your AMI uses encrypted volumes, you can only launch it on supported instance types. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.
-
KmsKeyId => (string)The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. The ARN contains the arn:aws:kms namespace, followed by the region of the CMK, the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. If a KmsKeyId is specified, the Encrypted flag must also be set.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VolumeId => (string)The ID of the volume.
-
Size => (int)The size of the volume, in GiBs.
-
SnapshotId => (string)The snapshot from which the volume was created, if applicable.
-
AvailabilityZone => (string)The Availability Zone for the volume.
-
State => (string)The volume state.
-
CreateTime => (string)The time stamp when volume creation was initiated.
-
Attachments => (array<associative-array>)Information about the volume attachments.
- (associative-array)
Describes volume attachment details.
-
VolumeId => (string)The ID of the volume.
-
InstanceId => (string)The ID of the instance.
-
Device => (string)The device name.
-
State => (string)The attachment state of the volume.
-
AttachTime => (string)The time stamp when the attachment initiated.
-
DeleteOnTermination => (bool)Indicates whether the EBS volume is deleted on instance termination.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the volume.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
VolumeType => (string)The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes.
-
Iops => (int)The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS (SSD) volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose (SSD) volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose (SSD) baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
-
Encrypted => (bool)Indicates whether the volume will be encrypted.
-
KmsKeyId => (string)The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the volume.
Executes the CreateVpc operation.
Creates a VPC with the specified CIDR block.
The smallest VPC you can create uses a /28 netmask (16 IP addresses), and the largest uses a /16 netmask (65,536 IP addresses). To help you decide how big to make your VPC, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.
By default, each instance you launch in the VPC has the default DHCP options, which includes only a default DNS server that we provide (AmazonProvidedDNS). For more information about DHCP options, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createVpc(array( 'DryRun' => true || false, // CidrBlock is required 'CidrBlock' => 'string', 'InstanceTenancy' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
CidrBlock => (string)The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.
-
InstanceTenancy => (string:default |dedicated )The supported tenancy options for instances launched into the VPC. A value of default means that instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC are launched as dedicated tenancy instances regardless of the tenancy assigned to the instance at launch. Dedicated tenancy instances run on single-tenant hardware.
Default: default
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Vpc => (associative-array)Information about the VPC.
-
VpcId => (string)The ID of the VPC.
-
State => (string)The current state of the VPC.
-
CidrBlock => (string)The CIDR block for the VPC.
-
DhcpOptionsId => (string)The ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC).
-
Tags => (array<associative-array>)Any tags assigned to the VPC.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
InstanceTenancy => (string)The allowed tenancy of instances launched into the VPC.
-
IsDefault => (bool)Indicates whether the VPC is the default VPC.
-
Executes the CreateVpcEndpoint operation.
Creates a VPC endpoint for a specified AWS service. An endpoint enables you to create a private connection between your VPC and another AWS service in your account. 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.
Currently, only endpoints to Amazon S3 are supported.
Examples
- Basic formatting example
$result = $client->createVpcEndpoint(array( 'DryRun' => true || false, // VpcId is required 'VpcId' => 'string', // ServiceName is required 'ServiceName' => 'string', 'PolicyDocument' => 'string', 'RouteTableIds' => array('string', ... ), 'ClientToken' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcId => (string)The ID of the VPC in which the endpoint will be used.
-
ServiceName => (string)The AWS service name, in the form com.amazonaws.region.service. To get a list of available services, use the DescribeVpcEndpointServices request.
-
PolicyDocument => (string)A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.
-
RouteTableIds => (array<string>)One or more route table IDs.
-
ClientToken => (string)Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VpcEndpoint => (associative-array)Information about the endpoint.
-
VpcEndpointId => (string)The ID of the VPC endpoint.
-
VpcId => (string)The ID of the VPC to which the endpoint is associated.
-
ServiceName => (string)The name of the AWS service to which the endpoint is associated.
-
State => (string)The state of the VPC endpoint.
-
PolicyDocument => (string)The policy document associated with the endpoint.
-
RouteTableIds => (array<string>)One or more route tables associated with the endpoint.
-
CreationTimestamp => (string)The date and time the VPC endpoint was created.
-
-
ClientToken => (string)Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
Executes the CreateVpcPeeringConnection operation.
Requests a VPC peering connection between two VPCs: a requester VPC that you own and a peer VPC with which to create the connection. The peer VPC can belong to another AWS account. The requester VPC and peer VPC cannot have overlapping CIDR blocks.
The owner of the peer 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.
A
Examples
- Basic formatting example
$result = $client->createVpcPeeringConnection(array( 'DryRun' => true || false, 'VpcId' => 'string', 'PeerVpcId' => 'string', 'PeerOwnerId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcId => (string)The ID of the requester VPC.
-
PeerVpcId => (string)The ID of the VPC with which you are creating the VPC peering connection.
-
PeerOwnerId => (string)The AWS account ID of the owner of the peer VPC.
Default: Your AWS account ID
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VpcPeeringConnection => (associative-array)Information about the VPC peering connection.
-
AccepterVpcInfo => (associative-array)The information of the peer VPC.
-
CidrBlock => (string)The CIDR block for the VPC.
-
OwnerId => (string)The AWS account ID of the VPC owner.
-
VpcId => (string)The ID of the VPC.
-
-
ExpirationTime => (string)The time that an unaccepted VPC peering connection will expire.
-
RequesterVpcInfo => (associative-array)The information of the requester VPC.
-
CidrBlock => (string)The CIDR block for the VPC.
-
OwnerId => (string)The AWS account ID of the VPC owner.
-
VpcId => (string)The ID of the VPC.
-
-
Status => (associative-array)The status of the VPC peering connection.
-
Code => (string)The status of the VPC peering connection.
-
Message => (string)A message that provides more information about the status, if applicable.
-
-
Tags => (array<associative-array>)Any tags assigned to the resource.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
VpcPeeringConnectionId => (string)The ID of the VPC peering connection.
-
Executes the CreateVpnConnection operation.
Creates a VPN connection between an existing virtual private gateway and a
VPN customer gateway. The only supported connection type is
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.
For more information about VPN connections, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createVpnConnection(array( 'DryRun' => true || false, // Type is required 'Type' => 'string', // CustomerGatewayId is required 'CustomerGatewayId' => 'string', // VpnGatewayId is required 'VpnGatewayId' => 'string', 'Options' => array( 'StaticRoutesOnly' => true || false, ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Type => (string)The type of VPN connection (ipsec.1).
-
CustomerGatewayId => (string)The ID of the customer gateway.
-
VpnGatewayId => (string)The ID of the virtual private gateway.
-
Options => (associative-array)Indicates whether the VPN connection requires static routes. If you are creating a VPN connection for a device that does not support BGP, you must specify true.
Default: false
-
StaticRoutesOnly => (bool)Indicates whether the VPN connection uses static routes only. Static routes must be used for devices that don't support BGP.
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VpnConnection => (associative-array)Information about the VPN connection.
-
VpnConnectionId => (string)The ID of the VPN connection.
-
State => (string)The current state of the VPN connection.
-
CustomerGatewayConfiguration => (string)The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in the pending or available state.
-
Type => (string)The type of VPN connection.
-
CustomerGatewayId => (string)The ID of the customer gateway at your end of the VPN connection.
-
VpnGatewayId => (string)The ID of the virtual private gateway at the AWS side of the VPN connection.
-
Tags => (array<associative-array>)Any tags assigned to the VPN connection.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
VgwTelemetry => (array<associative-array>)Information about the VPN tunnel.
- (associative-array)
Describes telemetry for a VPN tunnel.
-
OutsideIpAddress => (string)The Internet-routable IP address of the virtual private gateway's outside interface.
-
Status => (string)The status of the VPN tunnel.
-
LastStatusChange => (string)The date and time of the last change in status.
-
StatusMessage => (string)If an error occurs, a description of the error.
-
AcceptedRouteCount => (int)The number of accepted routes.
-
- (associative-array)
-
Options => (associative-array)The VPN connection options.
-
StaticRoutesOnly => (bool)Indicates whether the VPN connection uses static routes only. Static routes must be used for devices that don't support BGP.
-
-
Routes => (array<associative-array>)The static routes associated with the VPN connection.
- (associative-array)
Describes a static route for a VPN connection.
-
DestinationCidrBlock => (string)The CIDR block associated with the local subnet of the customer data center.
-
Source => (string)Indicates how the routes were provided.
-
State => (string)The current state of the static route.
-
- (associative-array)
-
Executes the CreateVpnConnectionRoute operation.
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 about VPN connections, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createVpnConnectionRoute(array( // VpnConnectionId is required 'VpnConnectionId' => 'string', // DestinationCidrBlock is required 'DestinationCidrBlock' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
VpnConnectionId => (string)The ID of the VPN connection.
-
DestinationCidrBlock => (string)The CIDR block associated with the local subnet of the customer network.
-
Returns
Executes the CreateVpnGateway operation.
Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.
For more information about virtual private gateways, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->createVpnGateway(array( 'DryRun' => true || false, // Type is required 'Type' => 'string', 'AvailabilityZone' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Type => (string:ipsec.1 )The type of VPN connection this virtual private gateway supports.
-
AvailabilityZone => (string)The Availability Zone for the virtual private gateway.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VpnGateway => (associative-array)Information about the virtual private gateway.
-
VpnGatewayId => (string)The ID of the virtual private gateway.
-
State => (string)The current state of the virtual private gateway.
-
Type => (string)The type of VPN connection the virtual private gateway supports.
-
AvailabilityZone => (string)The Availability Zone where the virtual private gateway was created.
-
VpcAttachments => (array<associative-array>)Any VPCs attached to the virtual private gateway.
- (associative-array)
Describes an attachment between a virtual private gateway and a VPC.
-
VpcId => (string)The ID of the VPC.
-
State => (string)The current state of the attachment.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the virtual private gateway.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
Executes the DeleteCustomerGateway operation.
Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.
Examples
- Basic formatting example
$result = $client->deleteCustomerGateway(array( 'DryRun' => true || false, // CustomerGatewayId is required 'CustomerGatewayId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
CustomerGatewayId => (string)The ID of the customer gateway.
-
Returns
Executes the DeleteDhcpOptions operation.
Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC.
Examples
- Basic formatting example
$result = $client->deleteDhcpOptions(array( 'DryRun' => true || false, // DhcpOptionsId is required 'DhcpOptionsId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
DhcpOptionsId => (string)The ID of the DHCP options set.
-
Returns
Executes the DeleteFlowLogs operation.
Deletes one or more flow logs.
Examples
- Basic formatting example
$result = $client->deleteFlowLogs(array( // FlowLogIds is required 'FlowLogIds' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
FlowLogIds => (array<string>)One or more flow log IDs.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Unsuccessful => (array<associative-array>)Information about the flow logs that could not be deleted successfully.
- (associative-array)
Information about items that were not successfully processed in a batch call.
-
ResourceId => (string)The ID of the resource.
-
Error => (associative-array)Information about the error.
-
Code => (string)The error code.
-
Message => (string)The error message accompanying the error code.
-
-
- (associative-array)
Executes the DeleteInternetGateway operation.
Deletes the specified Internet gateway. You must detach the Internet gateway from the VPC before you can delete it.
Examples
- Basic formatting example
$result = $client->deleteInternetGateway(array( 'DryRun' => true || false, // InternetGatewayId is required 'InternetGatewayId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InternetGatewayId => (string)The ID of the Internet gateway.
-
Returns
Executes the DeleteKeyPair operation.
Deletes the specified key pair, by removing the public key from Amazon EC2.
Examples
- Basic formatting example
$result = $client->deleteKeyPair(array( 'DryRun' => true || false, // KeyName is required 'KeyName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
KeyName => (string)The name of the key pair.
-
Returns
Executes the DeleteNetworkAcl operation.
Deletes the specified network ACL. You can't delete the ACL if it's associated with any subnets. You can't delete the default network ACL.
Examples
- Basic formatting example
$result = $client->deleteNetworkAcl(array( 'DryRun' => true || false, // NetworkAclId is required 'NetworkAclId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
NetworkAclId => (string)The ID of the network ACL.
-
Returns
Executes the DeleteNetworkAclEntry operation.
Deletes the specified ingress or egress entry (rule) from the specified network ACL.
Examples
- Basic formatting example
$result = $client->deleteNetworkAclEntry(array( 'DryRun' => true || false, // NetworkAclId is required 'NetworkAclId' => 'string', // RuleNumber is required 'RuleNumber' => integer, // Egress is required 'Egress' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
NetworkAclId => (string)The ID of the network ACL.
-
RuleNumber => (int)The rule number of the entry to delete.
-
Egress => (bool)Indicates whether the rule is an egress rule.
-
Returns
Executes the DeleteNetworkInterface operation.
Deletes the specified network interface. You must detach the network interface before you can delete it.
Examples
- Basic formatting example
$result = $client->deleteNetworkInterface(array( 'DryRun' => true || false, // NetworkInterfaceId is required 'NetworkInterfaceId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
Returns
Executes the DeletePlacementGroup operation.
Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information about placement groups and cluster instances, see Cluster Instances in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->deletePlacementGroup(array( 'DryRun' => true || false, // GroupName is required 'GroupName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
GroupName => (string)The name of the placement group.
-
Returns
Executes the DeleteRoute operation.
Deletes the specified route from the specified route table.
Examples
- Basic formatting example
$result = $client->deleteRoute(array( 'DryRun' => true || false, // RouteTableId is required 'RouteTableId' => 'string', // DestinationCidrBlock is required 'DestinationCidrBlock' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
RouteTableId => (string)The ID of the route table.
-
DestinationCidrBlock => (string)The CIDR range for the route. The value you specify must match the CIDR for the route exactly.
-
Returns
Executes the DeleteRouteTable operation.
Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table.
Examples
- Basic formatting example
$result = $client->deleteRouteTable(array( 'DryRun' => true || false, // RouteTableId is required 'RouteTableId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
RouteTableId => (string)The ID of the route table.
-
Returns
Executes the DeleteSecurityGroup operation.
Deletes a security group.
If you attempt to delete a security group that is associated with an
instance, or is referenced by another security group, the operation fails with
Examples
- Basic formatting example
$result = $client->deleteSecurityGroup(array( 'DryRun' => true || false, 'GroupName' => 'string', 'GroupId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
GroupName => (string)[EC2-Classic, default VPC] The name of the security group. You can specify either the security group name or the security group ID.
-
GroupId => (string)The ID of the security group. Required for a nondefault VPC.
-
Returns
Executes the DeleteSnapshot operation.
Deletes the specified snapshot.
When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.
You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.
For more information, see Deleting an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->deleteSnapshot(array( 'DryRun' => true || false, // SnapshotId is required 'SnapshotId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SnapshotId => (string)The ID of the EBS snapshot.
-
Returns
Executes the DeleteSpotDatafeedSubscription operation.
Deletes the data feed for Spot instances.
Examples
- Basic formatting example
$result = $client->deleteSpotDatafeedSubscription(array( 'DryRun' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Returns
Executes the DeleteSubnet operation.
Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.
Examples
- Basic formatting example
$result = $client->deleteSubnet(array( 'DryRun' => true || false, // SubnetId is required 'SubnetId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SubnetId => (string)The ID of the subnet.
-
Returns
Executes the DeleteTags operation.
Deletes the specified set of tags from the specified set of resources. This
call is designed to follow a
For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->deleteTags(array( 'DryRun' => true || false, // Resources is required 'Resources' => array('string', ... ), 'Tags' => array( array( 'Key' => 'string', 'Value' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Resources => (array<string>)The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.
-
Tags => (array<associative-array>)One or more tags to delete. If you omit the value parameter, we delete the tag regardless of its value. If you specify this parameter with an empty string as the value, we delete the key only if its value is an empty string.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
Returns
Executes the DeleteVolume operation.
Deletes the specified EBS volume. The volume must be in the
The volume may remain in the
For more information, see Deleting an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->deleteVolume(array( 'DryRun' => true || false, // VolumeId is required 'VolumeId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VolumeId => (string)The ID of the volume.
-
Returns
Executes the DeleteVpc operation.
Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on.
Examples
- Basic formatting example
$result = $client->deleteVpc(array( 'DryRun' => true || false, // VpcId is required 'VpcId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcId => (string)The ID of the VPC.
-
Returns
Executes the DeleteVpcEndpoints operation.
Deletes one or more specified VPC endpoints. Deleting the endpoint also deletes the endpoint routes in the route tables that were associated with the endpoint.
Examples
- Basic formatting example
$result = $client->deleteVpcEndpoints(array( 'DryRun' => true || false, // VpcEndpointIds is required 'VpcEndpointIds' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcEndpointIds => (array<string>)One or more endpoint IDs.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Unsuccessful => (array<associative-array>)Information about the endpoints that were not successfully deleted.
- (associative-array)
Information about items that were not successfully processed in a batch call.
-
ResourceId => (string)The ID of the resource.
-
Error => (associative-array)Information about the error.
-
Code => (string)The error code.
-
Message => (string)The error message accompanying the error code.
-
-
- (associative-array)
Executes the DeleteVpcPeeringConnection operation.
Deletes a VPC peering connection. Either the owner of the requester VPC or
the owner of the peer VPC can delete the VPC peering connection if it's in the
Examples
- Basic formatting example
$result = $client->deleteVpcPeeringConnection(array( 'DryRun' => true || false, // VpcPeeringConnectionId is required 'VpcPeeringConnectionId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcPeeringConnectionId => (string)The ID of the VPC peering connection.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Return => (bool)Returns true if the request succeeds; otherwise, it returns an error.
Executes the DeleteVpnConnection operation.
Deletes the specified VPN connection.
If you're deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection. If you believe that the tunnel credentials for your VPN connection have been compromised, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway using the new configuration information returned with the new VPN connection ID.
Examples
- Basic formatting example
$result = $client->deleteVpnConnection(array( 'DryRun' => true || false, // VpnConnectionId is required 'VpnConnectionId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpnConnectionId => (string)The ID of the VPN connection.
-
Returns
Executes the DeleteVpnConnectionRoute operation.
Deletes the specified 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.
Examples
- Basic formatting example
$result = $client->deleteVpnConnectionRoute(array( // VpnConnectionId is required 'VpnConnectionId' => 'string', // DestinationCidrBlock is required 'DestinationCidrBlock' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
VpnConnectionId => (string)The ID of the VPN connection.
-
DestinationCidrBlock => (string)The CIDR block associated with the local subnet of the customer network.
-
Returns
Executes the DeleteVpnGateway operation.
Deletes the specified virtual private gateway. We recommend that before you delete a virtual private gateway, you detach it from the VPC and delete the VPN connection. Note that you don't need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network.
Examples
- Basic formatting example
$result = $client->deleteVpnGateway(array( 'DryRun' => true || false, // VpnGatewayId is required 'VpnGatewayId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpnGatewayId => (string)The ID of the virtual private gateway.
-
Returns
Executes the DeregisterImage operation.
Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new instances.
This command does not delete the AMI.
Examples
- Basic formatting example
$result = $client->deregisterImage(array( 'DryRun' => true || false, // ImageId is required 'ImageId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ImageId => (string)The ID of the AMI.
-
Returns
Executes the DescribeAccountAttributes operation.
Describes attributes of your AWS account. The following are the supported account attributes:
-
supported-platforms : Indicates whether your account can launch instances into EC2-Classic and EC2-VPC, or only into EC2-VPC. -
default-vpc : The ID of the default VPC for your account, ornone . -
max-instances : The maximum number of On-Demand instances that you can run. -
vpc-max-security-groups-per-interface : The maximum number of security groups that you can assign to a network interface. -
max-elastic-ips : The maximum number of Elastic IP addresses that you can allocate for use with EC2-Classic. -
vpc-max-elastic-ips : The maximum number of Elastic IP addresses that you can allocate for use with EC2-VPC.
Examples
- Basic formatting example
$result = $client->describeAccountAttributes(array( 'DryRun' => true || false, 'AttributeNames' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
AttributeNames => (array<string:supported-platforms |default-vpc >)One or more account attribute names.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
AccountAttributes => (array<associative-array>)Information about one or more account attributes.
- (associative-array)
Describes an account attribute.
-
AttributeName => (string)The name of the account attribute.
-
AttributeValues => (array<associative-array>)One or more values for the account attribute.
- (associative-array)
Describes a value of an account attribute.
-
AttributeValue => (string)The value of the attribute.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeAddresses operation.
Describes one or more of your Elastic IP addresses.
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.
Examples
- Basic formatting example
$result = $client->describeAddresses(array( 'DryRun' => true || false, 'PublicIps' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'AllocationIds' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
PublicIps => (array<string>)[EC2-Classic] One or more Elastic IP addresses.
Default: Describes all your Elastic IP addresses.
-
Filters => (array<associative-array>)One or more filters. Filter names and values are case-sensitive.
-
allocation-id - [EC2-VPC] The allocation ID for the address.
-
association-id - [EC2-VPC] The association ID for the address.
-
domain - Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc).
-
instance-id - The ID of the instance the address is associated with, if any.
-
network-interface-id - [EC2-VPC] The ID of the network interface that the address is associated with, if any.
-
network-interface-owner-id - The AWS account ID of the owner.
-
private-ip-address - [EC2-VPC] The private IP address associated with the Elastic IP address.
-
public-ip - The Elastic IP address.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
AllocationIds => (array<string>)[EC2-VPC] One or more allocation IDs.
Default: Describes all your Elastic IP addresses.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Addresses => (array<associative-array>)Information about one or more Elastic IP addresses.
- (associative-array)
Describes an Elastic IP address.
-
InstanceId => (string)The ID of the instance that the address is associated with (if any).
-
PublicIp => (string)The Elastic IP address.
-
AllocationId => (string)The ID representing the allocation of the address for use with EC2-VPC.
-
AssociationId => (string)The ID representing the association of the address with an instance in a VPC.
-
Domain => (string)Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).
-
NetworkInterfaceId => (string)The ID of the network interface.
-
NetworkInterfaceOwnerId => (string)The ID of the AWS account that owns the network interface.
-
PrivateIpAddress => (string)The private IP address associated with the Elastic IP address.
-
- (associative-array)
Executes the DescribeAvailabilityZones operation.
Describes one or more of the Availability Zones that are available to you. The results include zones only for the region you're currently using. If there is an event impacting an Availability Zone, you can use this request to view the state and any provided message for that Availability Zone.
For more information, see Regions and Availability Zones in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeAvailabilityZones(array( 'DryRun' => true || false, 'ZoneNames' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ZoneNames => (array<string>)The names of one or more Availability Zones.
-
Filters => (array<associative-array>)One or more filters.
-
message - Information about the Availability Zone.
-
region-name - The name of the region for the Availability Zone (for example, us-east-1).
-
state - The state of the Availability Zone (available | information | impaired | unavailable).
-
zone-name - The name of the Availability Zone (for example, us-east-1a).
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
AvailabilityZones => (array<associative-array>)Information about one or more Availability Zones.
- (associative-array)
Describes an Availability Zone.
-
ZoneName => (string)The name of the Availability Zone.
-
State => (string)The state of the Availability Zone.
-
RegionName => (string)The name of the region.
-
Messages => (array<associative-array>)Any messages about the Availability Zone.
- (associative-array)
Describes a message about an Availability Zone.
-
Message => (string)The message about the Availability Zone.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeBundleTasks operation.
Describes one or more of your bundling tasks.
Completed bundle tasks are listed for only a limited time. If your bundle
task is no longer in the list, you can still register an AMI from it. Just use
Examples
- Basic formatting example
$result = $client->describeBundleTasks(array( 'DryRun' => true || false, 'BundleIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
BundleIds => (array<string>)One or more bundle task IDs.
Default: Describes all your bundle tasks.
-
Filters => (array<associative-array>)One or more filters.
-
bundle-id - The ID of the bundle task.
-
error-code - If the task failed, the error code returned.
-
error-message - If the task failed, the error message returned.
-
instance-id - The ID of the instance.
-
progress - The level of task completion, as a percentage (for example, 20%).
-
s3-bucket - The Amazon S3 bucket to store the AMI.
-
s3-prefix - The beginning of the AMI name.
-
start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z).
-
state - The state of the task (pending | waiting-for-shutdown | bundling | storing | cancelling | complete | failed).
-
update-time - The time of the most recent update for the task.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
BundleTasks => (array<associative-array>)Information about one or more bundle tasks.
- (associative-array)
Describes a bundle task.
-
InstanceId => (string)The ID of the instance associated with this bundle task.
-
BundleId => (string)The ID of the bundle task.
-
State => (string)The state of the task.
-
StartTime => (string)The time this task started.
-
UpdateTime => (string)The time of the most recent update for the task.
-
Storage => (associative-array)The Amazon S3 storage locations.
-
S3 => (associative-array)An Amazon S3 storage location.
-
Bucket => (string)The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
-
Prefix => (string)The beginning of the file name of the AMI.
-
AWSAccessKeyId => (string)The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Managing AWS Access Keys.
-
UploadPolicy => (string)A Base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.
-
UploadPolicySignature => (string)The signature of the Base64 encoded JSON document.
-
-
-
Progress => (string)The level of task completion, as a percent (for example, 20%).
-
BundleTaskError => (associative-array)If the task fails, a description of the error.
-
Code => (string)The error code.
-
Message => (string)The error message.
-
-
- (associative-array)
Executes the DescribeClassicLinkInstances operation.
Describes one or more of your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink; you cannot use this request to return information about other instances.
Examples
- Basic formatting example
$result = $client->describeClassicLinkInstances(array( 'DryRun' => true || false, 'InstanceIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'NextToken' => 'string', 'MaxResults' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceIds => (array<string>)One or more instance IDs. Must be instances linked to a VPC through ClassicLink.
-
Filters => (array<associative-array>)One or more filters.
-
group-id - The ID of a VPC security group that's associated with the instance.
-
instance-id - The ID of the instance.
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
vpc-id - The ID of the VPC that the instance is linked to.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
NextToken => (string)The token to retrieve the next page of results.
-
MaxResults => (int)The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. You cannot specify this parameter and the instance IDs parameter in the same request.
Constraint: If the value is greater than 1000, we return only 1000 items.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Instances => (array<associative-array>)Information about one or more linked EC2-Classic instances.
- (associative-array)
Describes a linked EC2-Classic instance.
-
InstanceId => (string)The ID of the instance.
-
VpcId => (string)The ID of the VPC.
-
Groups => (array<associative-array>)A list of security groups.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the instance.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
- (associative-array)
-
NextToken => (string)The token to use to retrieve the next page of results. This value is null when there are no more results to return.
Executes the DescribeConversionTasks operation.
Describes one or more of your conversion tasks. For more information, see Using the Command Line Tools to Import Your Virtual Machine to Amazon EC2 in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeConversionTasks(array( 'DryRun' => true || false, 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'ConversionTaskIds' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Filters => (array<associative-array>)One or more filters.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
- (associative-array)
-
ConversionTaskIds => (array<string>)One or more conversion task IDs.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ConversionTasks => (array<associative-array>)Information about the conversion tasks.
- (associative-array)
Describes a conversion task.
-
ConversionTaskId => (string)The ID of the conversion task.
-
ExpirationTime => (string)The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.
-
ImportInstance => (associative-array)If the task is for importing an instance, this contains information about the import instance task.
-
Volumes => (array<associative-array>)One or more volumes.
- (associative-array)
Describes an import volume task.
-
BytesConverted => (int)The number of bytes converted so far.
-
AvailabilityZone => (string)The Availability Zone where the resulting instance will reside.
-
Image => (associative-array)The image.
-
Format => (string)The disk image format.
-
Size => (int)The size of the disk image, in GiB.
-
ImportManifestUrl => (string)A presigned URL for the import manifest stored in Amazon S3. For information about creating a presigned URL for an Amazon S3 object, read the "Query String Request Authentication Alternative" section of the Authenticating REST Requests topic in the Amazon Simple Storage Service Developer Guide.
-
Checksum => (string)The checksum computed for the disk image.
-
-
Volume => (associative-array)The volume.
-
Size => (int)The size of the volume, in GiB.
-
Id => (string)The volume identifier.
-
-
Status => (string)The status of the import of this particular disk image.
-
StatusMessage => (string)The status information or errors related to the disk image.
-
Description => (string)A description of the task.
-
- (associative-array)
-
InstanceId => (string)The ID of the instance.
-
Platform => (string)The instance operating system.
-
Description => (string)A description of the task.
-
-
ImportVolume => (associative-array)If the task is for importing a volume, this contains information about the import volume task.
-
BytesConverted => (int)The number of bytes converted so far.
-
AvailabilityZone => (string)The Availability Zone where the resulting volume will reside.
-
Description => (string)The description you provided when starting the import volume task.
-
Image => (associative-array)The image.
-
Format => (string)The disk image format.
-
Size => (int)The size of the disk image, in GiB.
-
ImportManifestUrl => (string)A presigned URL for the import manifest stored in Amazon S3. For information about creating a presigned URL for an Amazon S3 object, read the "Query String Request Authentication Alternative" section of the Authenticating REST Requests topic in the Amazon Simple Storage Service Developer Guide.
-
Checksum => (string)The checksum computed for the disk image.
-
-
Volume => (associative-array)The volume.
-
Size => (int)The size of the volume, in GiB.
-
Id => (string)The volume identifier.
-
-
-
State => (string)The state of the conversion task.
-
StatusMessage => (string)The status message related to the conversion task.
-
Tags => (array<associative-array>)Any tags assigned to the task.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeCustomerGateways operation.
Describes one or more of your VPN customer gateways.
For more information about VPN customer gateways, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeCustomerGateways(array( 'DryRun' => true || false, 'CustomerGatewayIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
CustomerGatewayIds => (array<string>)One or more customer gateway IDs.
Default: Describes all your customer gateways.
-
Filters => (array<associative-array>)One or more filters.
-
bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
-
customer-gateway-id - The ID of the customer gateway.
-
ip-address - The IP address of the customer gateway's Internet-routable external interface.
-
state - The state of the customer gateway (pending | available | deleting | deleted).
-
type - The type of customer gateway. Currently, the only supported type is ipsec.1.
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
CustomerGateways => (array<associative-array>)Information about one or more customer gateways.
- (associative-array)
Describes a customer gateway.
-
CustomerGatewayId => (string)The ID of the customer gateway.
-
State => (string)The current state of the customer gateway (pending | available | deleting | deleted).
-
Type => (string)The type of VPN connection the customer gateway supports (ipsec.1).
-
IpAddress => (string)The Internet-routable IP address of the customer gateway's outside interface.
-
BgpAsn => (string)The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
-
Tags => (array<associative-array>)Any tags assigned to the customer gateway.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeDhcpOptions operation.
Describes one or more of your DHCP options sets.
For more information about DHCP options sets, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeDhcpOptions(array( 'DryRun' => true || false, 'DhcpOptionsIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
DhcpOptionsIds => (array<string>)The IDs of one or more DHCP options sets.
Default: Describes all your DHCP options sets.
-
Filters => (array<associative-array>)One or more filters.
-
dhcp-options-id - The ID of a set of DHCP options.
-
key - The key for one of the options (for example, domain-name).
-
value - The value for one of the options.
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
DhcpOptions => (array<associative-array>)Information about one or more DHCP options sets.
- (associative-array)
Describes a set of DHCP options.
-
DhcpOptionsId => (string)The ID of the set of DHCP options.
-
DhcpConfigurations => (array<associative-array>)One or more DHCP options in the set.
- (associative-array)
Describes a DHCP configuration option.
-
Key => (string)The name of a DHCP option.
-
Values => (array<string>)One or more values for the DHCP option.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the DHCP options set.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeExportTasks operation.
Describes one or more of your export tasks.
Examples
- Basic formatting example
$result = $client->describeExportTasks(array( 'ExportTaskIds' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ExportTaskIds => (array<string>)One or more export task IDs.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ExportTasks => (array<associative-array>)Information about the export tasks.
- (associative-array)
Describes an instance export task.
-
ExportTaskId => (string)The ID of the export task.
-
Description => (string)A description of the resource being exported.
-
State => (string)The state of the export task.
-
StatusMessage => (string)The status message related to the export task.
-
InstanceExportDetails => (associative-array)Information about the instance to export.
-
InstanceId => (string)The ID of the resource being exported.
-
TargetEnvironment => (string)The target virtualization environment.
-
-
ExportToS3Task => (associative-array)Information about the export task.
-
DiskImageFormat => (string)The format for the exported image.
-
ContainerFormat => (string)The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.
-
S3Bucket => (string)The S3 bucket for the destination image. The destination bucket must exist and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
-
S3Key => (string)The encryption key for your S3 bucket.
-
-
- (associative-array)
Executes the DescribeFlowLogs operation.
Describes one or more flow logs. To view the information in your flow logs (the log streams for the network interfaces), you must use the CloudWatch Logs console or the CloudWatch Logs API.
Examples
- Basic formatting example
$result = $client->describeFlowLogs(array( 'FlowLogIds' => array('string', ... ), 'Filter' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'NextToken' => 'string', 'MaxResults' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
FlowLogIds => (array<string>)One or more flow log IDs.
-
Filter => (array<associative-array>)One or more filters.
-
deliver-log-status - The status of the logs delivery (SUCCESS | FAILED).
-
flow-log-id - The ID of the flow log.
-
log-group-name - The name of the log group.
-
resource-id - The ID of the VPC, subnet, or network interface.
-
traffic-type - The type of traffic (ACCEPT | REJECT | ALL)
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
NextToken => (string)The token to retrieve the next page of results.
-
MaxResults => (int)The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. You cannot specify this parameter and the flow log IDs parameter in the same request.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
FlowLogs => (array<associative-array>)Information about the flow logs.
- (associative-array)
Describes a flow log.
-
CreationTime => (string)The date and time the flow log was created.
-
FlowLogId => (string)The flow log ID.
-
FlowLogStatus => (string)The status of the flow log (ACTIVE).
-
ResourceId => (string)The ID of the resource on which the flow log was created.
-
TrafficType => (string)The type of traffic captured for the flow log.
-
LogGroupName => (string)The name of the flow log group.
-
DeliverLogsStatus => (string)The status of the logs delivery (SUCCESS | FAILED).
-
DeliverLogsErrorMessage => (string)Information about the error that occurred. Rate limited indicates that CloudWatch logs throttling has been applied for one or more network interfaces. Access error indicates that the IAM role associated with the flow log does not have sufficient permissions to publish to CloudWatch Logs. Unknown error indicates an internal error.
-
DeliverLogsPermissionArn => (string)The ARN of the IAM role that posts logs to CloudWatch Logs.
-
- (associative-array)
-
NextToken => (string)The token to use to retrieve the next page of results. This value is null when there are no more results to return.
Executes the DescribeImageAttribute operation.
Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.
Examples
- Basic formatting example
$result = $client->describeImageAttribute(array( 'DryRun' => true || false, // ImageId is required 'ImageId' => 'string', // Attribute is required 'Attribute' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ImageId => (string)The ID of the AMI.
-
Attribute => (string:description |kernel |ramdisk |launchPermission |productCodes |blockDeviceMapping |sriovNetSupport )The AMI attribute.
Note: Depending on your account privileges, the blockDeviceMapping attribute may return a Client.AuthFailure error. If this happens, use DescribeImages to get information about the block device mapping for the AMI.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ImageId => (string)The ID of the AMI.
-
LaunchPermissions => (array<associative-array>)One or more launch permissions.
- (associative-array)
Describes a launch permission.
-
UserId => (string)The AWS account ID.
-
Group => (string)The name of the group.
-
- (associative-array)
-
ProductCodes => (array<associative-array>)One or more product codes.
- (associative-array)
Describes a product code.
-
ProductCodeId => (string)The product code.
-
ProductCodeType => (string)The type of product code.
-
- (associative-array)
-
KernelId => (associative-array)The kernel ID.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
RamdiskId => (associative-array)The RAM disk ID.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
Description => (associative-array)A description for the AMI.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
SriovNetSupport => (associative-array)The value to use for a resource attribute.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
BlockDeviceMappings => (array<associative-array>)One or more block device mapping entries.
- (associative-array)
Describes a block device mapping.
-
VirtualName => (string)The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
-
DeviceName => (string)The device name exposed to the instance (for example, /dev/sdh or xvdh).
-
Ebs => (associative-array)Parameters used to automatically set up EBS volumes when the instance is launched.
-
SnapshotId => (string)The ID of the snapshot.
-
VolumeSize => (int)The size of the volume, in GiB.
Constraints: 1-1024 for standard volumes, 1-16384 for gp2 volumes, and 4-16384 for io1 volumes. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
-
DeleteOnTermination => (bool)Indicates whether the EBS volume is deleted on instance termination.
-
VolumeType => (string)The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
Default: standard
-
Iops => (int)The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS (SSD) volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose (SSD) volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose (SSD) baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
-
Encrypted => (bool)Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption.
-
-
NoDevice => (string)Suppresses the specified device included in the block device mapping of the AMI.
-
- (associative-array)
Executes the DescribeImages operation.
Describes one or more of the images (AMIs, AKIs, and ARIs) available to you. Images available to you include public images, private images that you own, and private images owned by other AWS accounts but for which you have explicit launch permissions.
Deregistered images are included in the returned results for an unspecified interval after deregistration.
Examples
- Basic formatting example
$result = $client->describeImages(array( 'DryRun' => true || false, 'ImageIds' => array('string', ... ), 'Owners' => array('string', ... ), 'ExecutableUsers' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ImageIds => (array<string>)One or more image IDs.
Default: Describes all images available to you.
-
Owners => (array<string>)Filters the images by the owner. Specify an AWS account ID, amazon (owner is Amazon), aws-marketplace (owner is AWS Marketplace), self (owner is the sender of the request). Omitting this option returns all images for which you have launch permissions, regardless of ownership.
-
ExecutableUsers => (array<string>)Scopes the images by users with explicit launch permissions. Specify an AWS account ID, self (the sender of the request), or all (public AMIs).
-
Filters => (array<associative-array>)One or more filters.
-
architecture - The image architecture (i386 | x86_64).
-
block-device-mapping.delete-on-termination - A Boolean value that indicates whether the Amazon EBS volume is deleted on instance termination.
-
block-device-mapping.device-name - The device name for the EBS volume (for example, /dev/sdh).
-
block-device-mapping.snapshot-id - The ID of the snapshot used for the EBS volume.
-
block-device-mapping.volume-size - The volume size of the EBS volume, in GiB.
-
block-device-mapping.volume-type - The volume type of the EBS volume (gp2 | standard | io1).
-
description - The description of the image (provided during image creation).
-
hypervisor - The hypervisor type (ovm | xen).
-
image-id - The ID of the image.
-
image-type - The image type (machine | kernel | ramdisk).
-
is-public - A Boolean that indicates whether the image is public.
-
kernel-id - The kernel ID.
-
manifest-location - The location of the image manifest.
-
name - The name of the AMI (provided during image creation).
-
owner-alias - The AWS account alias (for example, amazon).
-
owner-id - The AWS account ID of the image owner.
-
platform - The platform. To only list Windows-based AMIs, use windows.
-
product-code - The product code.
-
product-code.type - The type of the product code (devpay | marketplace).
-
ramdisk-id - The RAM disk ID.
-
root-device-name - The name of the root device volume (for example, /dev/sda1).
-
root-device-type - The type of the root device volume (ebs | instance-store).
-
state - The state of the image (available | pending | failed).
-
state-reason-code - The reason code for the state change.
-
state-reason-message - The message for the state change.
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
virtualization-type - The virtualization type (paravirtual | hvm).
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Images => (array<associative-array>)Information about one or more images.
- (associative-array)
Describes an image.
-
ImageId => (string)The ID of the AMI.
-
ImageLocation => (string)The location of the AMI.
-
State => (string)The current state of the AMI. If the state is available, the image is successfully registered and can be used to launch an instance.
-
OwnerId => (string)The AWS account ID of the image owner.
-
CreationDate => (string)The date and time the image was created.
-
Public => (bool)Indicates whether the image has public launch permissions. The value is true if this image has public launch permissions or false if it has only implicit and explicit launch permissions.
-
ProductCodes => (array<associative-array>)Any product codes associated with the AMI.
- (associative-array)
Describes a product code.
-
ProductCodeId => (string)The product code.
-
ProductCodeType => (string)The type of product code.
-
- (associative-array)
-
Architecture => (string)The architecture of the image.
-
ImageType => (string)The type of image.
-
KernelId => (string)The kernel associated with the image, if any. Only applicable for machine images.
-
RamdiskId => (string)The RAM disk associated with the image, if any. Only applicable for machine images.
-
Platform => (string)The value is Windows for Windows AMIs; otherwise blank.
-
SriovNetSupport => (string)Specifies whether enhanced networking is enabled.
-
StateReason => (associative-array)The reason for the state change.
-
Code => (string)The reason code for the state change.
-
Message => (string)The message for the state change.
-
Server.SpotInstanceTermination: A Spot Instance was terminated due to an increase in the market price.
-
Server.InternalError: An internal error occurred during instance launch, resulting in termination.
-
Server.InsufficientInstanceCapacity: There was insufficient instance capacity to satisfy the launch request.
-
Client.InternalError: A client error caused the instance to terminate on launch.
-
Client.InstanceInitiatedShutdown: The instance was shut down using the shutdown -h command from the instance.
-
Client.UserInitiatedShutdown: The instance was shut down using the Amazon EC2 API.
-
Client.VolumeLimitExceeded: The volume limit was exceeded.
-
Client.InvalidSnapshot.NotFound: The specified snapshot was not found.
-
-
-
ImageOwnerAlias => (string)The AWS account alias (for example, amazon, self) or the AWS account ID of the AMI owner.
-
Name => (string)The name of the AMI that was provided during image creation.
-
Description => (string)The description of the AMI that was provided during image creation.
-
RootDeviceType => (string)The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
-
RootDeviceName => (string)The device name of the root device (for example, /dev/sda1 or /dev/xvda).
-
BlockDeviceMappings => (array<associative-array>)Any block device mapping entries.
- (associative-array)
Describes a block device mapping.
-
VirtualName => (string)The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
-
DeviceName => (string)The device name exposed to the instance (for example, /dev/sdh or xvdh).
-
Ebs => (associative-array)Parameters used to automatically set up EBS volumes when the instance is launched.
-
SnapshotId => (string)The ID of the snapshot.
-
VolumeSize => (int)The size of the volume, in GiB.
Constraints: 1-1024 for standard volumes, 1-16384 for gp2 volumes, and 4-16384 for io1 volumes. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
-
DeleteOnTermination => (bool)Indicates whether the EBS volume is deleted on instance termination.
-
VolumeType => (string)The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
Default: standard
-
Iops => (int)The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS (SSD) volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose (SSD) volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose (SSD) baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
-
Encrypted => (bool)Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption.
-
-
NoDevice => (string)Suppresses the specified device included in the block device mapping of the AMI.
-
- (associative-array)
-
VirtualizationType => (string)The type of virtualization of the AMI.
-
Tags => (array<associative-array>)Any tags assigned to the image.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
Hypervisor => (string)The hypervisor type of the image.
-
- (associative-array)
Executes the DescribeImportImageTasks operation.
Displays details about an import virtual machine or import snapshot tasks that are already created.
Examples
- Basic formatting example
$result = $client->describeImportImageTasks(array( 'DryRun' => true || false, 'ImportTaskIds' => array('string', ... ), 'NextToken' => 'string', 'MaxResults' => integer, 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ImportTaskIds => (array<string>)A list of import image task IDs.
-
NextToken => (string)A token that indicates the next page of results.
-
MaxResults => (int)The maximum number of results to return in a single request.
-
Filters => (array<associative-array>)One or more filters.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
- (associative-array)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ImportImageTasks => (array<associative-array>)A list of zero or more import image tasks that are currently active or were completed or canceled in the previous 7 days.
- (associative-array)
Describes an import image task.
-
ImportTaskId => (string)The ID of the import image task.
-
Architecture => (string)The architecture of the virtual machine.
Valid values: i386 | x86_64
-
LicenseType => (string)The license type of the virtual machine.
-
Platform => (string)The description string for the import image task.
-
Hypervisor => (string)The target hypervisor for the import task.
Valid values: xen
-
Description => (string)A description of the import task.
-
SnapshotDetails => (array<associative-array>)Information about the snapshots.
- (associative-array)
Describes the snapshot created from the imported disk.
-
DiskImageSize => (int)The size of the disk in the snapshot, in GiB.
-
Description => (string)A description for the snapshot.
-
Format => (string)The format of the disk image from which the snapshot is created.
-
Url => (string)The URL used to access the disk image.
-
UserBucket => (associative-array)-
S3Bucket => (string)The S3 bucket from which the disk image was created.
-
S3Key => (string)The key from which the disk image was created.
-
-
DeviceName => (string)The block device mapping for the snapshot.
-
SnapshotId => (string)The snapshot ID of the disk being imported.
-
Progress => (string)The percentage of progress for the task.
-
StatusMessage => (string)A detailed status message for the snapshot creation.
-
Status => (string)A brief status of the snapshot creation.
-
- (associative-array)
-
ImageId => (string)The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
-
Progress => (string)The percentage of progress of the import image task.
-
StatusMessage => (string)A descriptive status message for the import image task.
-
Status => (string)A brief status for the import image task.
-
- (associative-array)
-
NextToken => (string)The token to use to get the next page of results. This value is null when there are no more results to return.
Executes the DescribeImportSnapshotTasks operation.
Describes your import snapshot tasks.
Examples
- Basic formatting example
$result = $client->describeImportSnapshotTasks(array( 'DryRun' => true || false, 'ImportTaskIds' => array('string', ... ), 'NextToken' => 'string', 'MaxResults' => integer, 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ImportTaskIds => (array<string>)A list of import snapshot task IDs.
-
NextToken => (string)A token that indicates the next page of results.
-
MaxResults => (int)The maximum number of results to return in a single request.
-
Filters => (array<associative-array>)One or more filters.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
- (associative-array)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ImportSnapshotTasks => (array<associative-array>)A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.
- (associative-array)
Describes an import snapshot task.
-
ImportTaskId => (string)The ID of the import snapshot task.
-
SnapshotTaskDetail => (associative-array)Describes an import snapshot task.
-
DiskImageSize => (int)The size of the disk in the snapshot, in GiB.
-
Description => (string)The description of the snapshot.
-
Format => (string)The format of the disk image from which the snapshot is created.
-
Url => (string)The URL of the disk image from which the snapshot is created.
-
UserBucket => (associative-array)The S3 bucket for the disk image.
-
S3Bucket => (string)The S3 bucket from which the disk image was created.
-
S3Key => (string)The key from which the disk image was created.
-
-
SnapshotId => (string)The snapshot ID of the disk being imported.
-
Progress => (string)The percentage of completion for the import snapshot task.
-
StatusMessage => (string)A detailed status message for the import snapshot task.
-
Status => (string)A brief status for the import snapshot task.
-
-
Description => (string)A description of the import snapshot task.
-
- (associative-array)
-
NextToken => (string)The token to use to get the next page of results. This value is null when there are no more results to return.
Executes the DescribeInstanceAttribute operation.
Describes the specified attribute of the specified instance. You can specify
only one attribute at a time. Valid attribute values are:
Examples
- Basic formatting example
$result = $client->describeInstanceAttribute(array( 'DryRun' => true || false, // InstanceId is required 'InstanceId' => 'string', // Attribute is required 'Attribute' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceId => (string)The ID of the instance.
-
Attribute => (string:instanceType |kernel |ramdisk |userData |disableApiTermination |instanceInitiatedShutdownBehavior |rootDeviceName |blockDeviceMapping |productCodes |sourceDestCheck |groupSet |ebsOptimized |sriovNetSupport )The instance attribute.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
InstanceId => (string)The ID of the instance.
-
InstanceType => (associative-array)The instance type.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
KernelId => (associative-array)The kernel ID.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
RamdiskId => (associative-array)The RAM disk ID.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
UserData => (associative-array)The Base64-encoded MIME user data.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
DisableApiTermination => (associative-array)If the value is true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.
-
Value => (bool)Valid values are true or false.
-
-
InstanceInitiatedShutdownBehavior => (associative-array)Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
RootDeviceName => (associative-array)The name of the root device (for example, /dev/sda1 or /dev/xvda).
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
BlockDeviceMappings => (array<associative-array>)The block device mapping of the instance.
- (associative-array)
Describes a block device mapping.
-
DeviceName => (string)The device name exposed to the instance (for example, /dev/sdh or xvdh).
-
Ebs => (associative-array)Parameters used to automatically set up EBS volumes when the instance is launched.
-
VolumeId => (string)The ID of the EBS volume.
-
Status => (string)The attachment state.
-
AttachTime => (string)The time stamp when the attachment initiated.
-
DeleteOnTermination => (bool)Indicates whether the volume is deleted on instance termination.
-
-
- (associative-array)
-
ProductCodes => (array<associative-array>)A list of product codes.
- (associative-array)
Describes a product code.
-
ProductCodeId => (string)The product code.
-
ProductCodeType => (string)The type of product code.
-
- (associative-array)
-
EbsOptimized => (associative-array)Indicates whether the instance is optimized for EBS I/O.
-
Value => (bool)Valid values are true or false.
-
-
SriovNetSupport => (associative-array)The value to use for a resource attribute.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
SourceDestCheck => (associative-array)Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT.
-
Value => (bool)Valid values are true or false.
-
-
Groups => (array<associative-array>)The security groups associated with the instance.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
Executes the DescribeInstanceStatus operation.
Describes the status of one or more instances.
Instance status includes the following components:
-
Status checks - Amazon EC2 performs status checks on running EC2 instances to identify hardware and software issues. For more information, see Status Checks for Your Instances and Troubleshooting Instances with Failed Status Checks in the Amazon Elastic Compute Cloud User Guide.
-
Scheduled events - Amazon EC2 can schedule events (such as reboot, stop, or terminate) for your instances related to hardware issues, software updates, or system maintenance. For more information, see Scheduled Events for Your Instances in the Amazon Elastic Compute Cloud User Guide.
-
Instance state - You can manage your instances from the moment you launch them through their termination. For more information, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeInstanceStatus(array( 'DryRun' => true || false, 'InstanceIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'NextToken' => 'string', 'MaxResults' => integer, 'IncludeAllInstances' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceIds => (array<string>)One or more instance IDs.
Default: Describes all your instances.
Constraints: Maximum 100 explicitly specified instance IDs.
-
Filters => (array<associative-array>)One or more filters.
-
availability-zone - The Availability Zone of the instance.
-
event.code - The code for the scheduled event (instance-reboot | system-reboot | system-maintenance | instance-retirement | instance-stop).
-
event.description - A description of the event.
-
event.not-after - The latest end time for the scheduled event (for example, 2014-09-15T17:15:20.000Z).
-
event.not-before - The earliest start time for the scheduled event (for example, 2014-09-15T17:15:20.000Z).
-
instance-state-code - The code for the instance state, as a 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented. The valid values are 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).
-
instance-state-name - The state of the instance (pending | running | shutting-down | terminated | stopping | stopped).
-
instance-status.reachability - Filters on instance status where the name is reachability (passed | failed | initializing | insufficient-data).
-
instance-status.status - The status of the instance (ok | impaired | initializing | insufficient-data | not-applicable).
-
system-status.reachability - Filters on system status where the name is reachability (passed | failed | initializing | insufficient-data).
-
system-status.status - The system status of the instance (ok | impaired | initializing | insufficient-data | not-applicable).
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
NextToken => (string)The token to retrieve the next page of results.
-
MaxResults => (int)The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. You cannot specify this parameter and the instance IDs parameter in the same request.
-
IncludeAllInstances => (bool)When true, includes the health status for all instances. When false, includes the health status for running instances only.
Default: false
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
InstanceStatuses => (array<associative-array>)One or more instance status descriptions.
- (associative-array)
Describes the status of an instance.
-
InstanceId => (string)The ID of the instance.
-
AvailabilityZone => (string)The Availability Zone of the instance.
-
Events => (array<associative-array>)Any scheduled events associated with the instance.
- (associative-array)
Describes a scheduled event for an instance.
-
Code => (string)The event code.
-
Description => (string)A description of the event.
After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].
-
NotBefore => (string)The earliest scheduled start time for the event.
-
NotAfter => (string)The latest scheduled end time for the event.
-
- (associative-array)
-
InstanceState => (associative-array)The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.
-
Code => (int)The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0 : pending
-
16 : running
-
32 : shutting-down
-
48 : terminated
-
64 : stopping
-
80 : stopped
-
-
Name => (string)The current state of the instance.
-
-
SystemStatus => (associative-array)Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
-
Status => (string)The status.
-
Details => (array<associative-array>)The system instance health or application instance health.
- (associative-array)
Describes the instance status.
-
Name => (string)The type of instance status.
-
Status => (string)The status.
-
ImpairedSince => (string)The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.
-
- (associative-array)
-
-
InstanceStatus => (associative-array)Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
-
Status => (string)The status.
-
Details => (array<associative-array>)The system instance health or application instance health.
- (associative-array)
Describes the instance status.
-
Name => (string)The type of instance status.
-
Status => (string)The status.
-
ImpairedSince => (string)The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.
-
- (associative-array)
-
-
- (associative-array)
-
NextToken => (string)The token to use to retrieve the next page of results. This value is null when there are no more results to return.
Executes the DescribeInstances operation.
Describes one or more of your instances.
If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the returned results.
Recently terminated instances might appear in the returned results. This interval is usually less than one hour.
Examples
- Basic formatting example
$result = $client->describeInstances(array( 'DryRun' => true || false, 'InstanceIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'NextToken' => 'string', 'MaxResults' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceIds => (array<string>)One or more instance IDs.
Default: Describes all your instances.
-
Filters => (array<associative-array>)One or more filters.
-
architecture - The instance architecture (i386 | x86_64).
-
availability-zone - The Availability Zone of the instance.
-
block-device-mapping.attach-time - The attach time for an EBS volume mapped to the instance, for example, 2010-09-15T17:15:20.000Z.
-
block-device-mapping.delete-on-termination - A Boolean that indicates whether the EBS volume is deleted on instance termination.
-
block-device-mapping.device-name - The device name for the EBS volume (for example, /dev/sdh or xvdh).
-
block-device-mapping.status - The status for the EBS volume (attaching | attached | detaching | detached).
-
block-device-mapping.volume-id - The volume ID of the EBS volume.
-
client-token - The idempotency token you provided when you launched the instance.
-
dns-name - The public DNS name of the instance.
-
group-id - The ID of the security group for the instance. EC2-Classic only.
-
group-name - The name of the security group for the instance. EC2-Classic only.
-
hypervisor - The hypervisor type of the instance (ovm | xen).
-
iam-instance-profile.arn - The instance profile associated with the instance. Specified as an ARN.
-
image-id - The ID of the image used to launch the instance.
-
instance-id - The ID of the instance.
-
instance-lifecycle - Indicates whether this is a Spot Instance (spot).
-
instance-state-code - The state of the instance, as a 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented. The valid values are: 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).
-
instance-state-name - The state of the instance (pending | running | shutting-down | terminated | stopping | stopped).
-
instance-type - The type of instance (for example, t2.micro).
-
instance.group-id - The ID of the security group for the instance.
-
instance.group-name - The name of the security group for the instance.
-
ip-address - The public IP address of the instance.
-
kernel-id - The kernel ID.
-
key-name - The name of the key pair used when the instance was launched.
-
launch-index - When launching multiple instances, this is the index for the instance in the launch group (for example, 0, 1, 2, and so on).
-
launch-time - The time when the instance was launched.
-
monitoring-state - Indicates whether monitoring is enabled for the instance (disabled | enabled).
-
owner-id - The AWS account ID of the instance owner.
-
placement-group-name - The name of the placement group for the instance.
-
platform - The platform. Use windows if you have Windows instances; otherwise, leave blank.
-
private-dns-name - The private DNS name of the instance.
-
private-ip-address - The private IP address of the instance.
-
product-code - The product code associated with the AMI used to launch the instance.
-
product-code.type - The type of product code (devpay | marketplace).
-
ramdisk-id - The RAM disk ID.
-
reason - The reason for the current state of the instance (for example, shows "User Initiated [date]" when you stop or terminate the instance). Similar to the state-reason-code filter.
-
requester-id - The ID of the entity that launched the instance on your behalf (for example, AWS Management Console, Auto Scaling, and so on).
-
reservation-id - The ID of the instance's reservation. A reservation ID is created any time you launch an instance. A reservation ID has a one-to-one relationship with an instance launch request, but can be associated with more than one instance if you launch multiple instances using the same launch request. For example, if you launch one instance, you'll get one reservation ID. If you launch ten instances using the same launch request, you'll also get one reservation ID.
-
root-device-name - The name of the root device for the instance (for example, /dev/sda1 or /dev/xvda).
-
root-device-type - The type of root device that the instance uses (ebs | instance-store).
-
source-dest-check - Indicates whether the instance performs source/destination checking. A value of true means that checking is enabled, and false means checking is disabled. The value must be false for the instance to perform network address translation (NAT) in your VPC.
-
spot-instance-request-id - The ID of the Spot Instance request.
-
state-reason-code - The reason code for the state change.
-
state-reason-message - A message that describes the state change.
-
subnet-id - The ID of the subnet for the instance.
-
tag:key=value - The key/value combination of a tag assigned to the resource, where tag:key is the tag's key.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
tenancy - The tenancy of an instance (dedicated | default).
-
virtualization-type - The virtualization type of the instance (paravirtual | hvm).
-
vpc-id - The ID of the VPC that the instance is running in.
-
network-interface.description - The description of the network interface.
-
network-interface.subnet-id - The ID of the subnet for the network interface.
-
network-interface.vpc-id - The ID of the VPC for the network interface.
-
network-interface.network-interface.id - The ID of the network interface.
-
network-interface.owner-id - The ID of the owner of the network interface.
-
network-interface.availability-zone - The Availability Zone for the network interface.
-
network-interface.requester-id - The requester ID for the network interface.
-
network-interface.requester-managed - Indicates whether the network interface is being managed by AWS.
-
network-interface.status - The status of the network interface (available) | in-use).
-
network-interface.mac-address - The MAC address of the network interface.
-
network-interface-private-dns-name - The private DNS name of the network interface.
-
network-interface.source-dest-check - Whether the network interface performs source/destination checking. A value of true means checking is enabled, and false means checking is disabled. The value must be false for the network interface to perform network address translation (NAT) in your VPC.
-
network-interface.group-id - The ID of a security group associated with the network interface.
-
network-interface.group-name - The name of a security group associated with the network interface.
-
network-interface.attachment.attachment-id - The ID of the interface attachment.
-
network-interface.attachment.instance-id - The ID of the instance to which the network interface is attached.
-
network-interface.attachment.instance-owner-id - The owner ID of the instance to which the network interface is attached.
-
network-interface.addresses.private-ip-address - The private IP address associated with the network interface.
-
network-interface.attachment.device-index - The device index to which the network interface is attached.
-
network-interface.attachment.status - The status of the attachment (attaching | attached | detaching | detached).
-
network-interface.attachment.attach-time - The time that the network interface was attached to an instance.
-
network-interface.attachment.delete-on-termination - Specifies whether the attachment is deleted when an instance is terminated.
-
network-interface.addresses.primary - Specifies whether the IP address of the network interface is the primary private IP address.
-
network-interface.addresses.association.public-ip - The ID of the association of an Elastic IP address with a network interface.
-
network-interface.addresses.association.ip-owner-id - The owner ID of the private IP address associated with the network interface.
-
association.public-ip - The address of the Elastic IP address bound to the network interface.
-
association.ip-owner-id - The owner of the Elastic IP address associated with the network interface.
-
association.allocation-id - The allocation ID returned when you allocated the Elastic IP address for your network interface.
-
association.association-id - The association ID returned when the network interface was associated with an IP address.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
NextToken => (string)The token to request the next page of results.
-
MaxResults => (int)The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. You cannot specify this parameter and the instance IDs parameter in the same request.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Reservations => (array<associative-array>)One or more reservations.
- (associative-array)
Describes a reservation.
-
ReservationId => (string)The ID of the reservation.
-
OwnerId => (string)The ID of the AWS account that owns the reservation.
-
RequesterId => (string)The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).
-
Groups => (array<associative-array>)One or more security groups.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
Instances => (array<associative-array>)One or more instances.
- (associative-array)
Describes an instance.
-
InstanceId => (string)The ID of the instance.
-
ImageId => (string)The ID of the AMI used to launch the instance.
-
State => (associative-array)The current state of the instance.
-
Code => (int)The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0 : pending
-
16 : running
-
32 : shutting-down
-
48 : terminated
-
64 : stopping
-
80 : stopped
-
-
Name => (string)The current state of the instance.
-
-
PrivateDnsName => (string)The private DNS name assigned to the instance. This DNS name can only be used inside the Amazon EC2 network. This name is not available until the instance enters the running state.
-
PublicDnsName => (string)The public DNS name assigned to the instance. This name is not available until the instance enters the running state.
-
StateTransitionReason => (string)The reason for the most recent state transition. This might be an empty string.
-
KeyName => (string)The name of the key pair, if this instance was launched with an associated key pair.
-
AmiLaunchIndex => (int)The AMI launch index, which can be used to find this instance in the launch group.
-
ProductCodes => (array<associative-array>)The product codes attached to this instance.
- (associative-array)
Describes a product code.
-
ProductCodeId => (string)The product code.
-
ProductCodeType => (string)The type of product code.
-
- (associative-array)
-
InstanceType => (string)The instance type.
-
LaunchTime => (string)The time the instance was launched.
-
Placement => (associative-array)The location where the instance launched.
-
AvailabilityZone => (string)The Availability Zone of the instance.
-
GroupName => (string)The name of the placement group the instance is in (for cluster compute instances).
-
Tenancy => (string)The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.
-
-
KernelId => (string)The kernel associated with this instance.
-
RamdiskId => (string)The RAM disk associated with this instance.
-
Platform => (string)The value is Windows for Windows instances; otherwise blank.
-
Monitoring => (associative-array)The monitoring information for the instance.
-
State => (string)Indicates whether monitoring is enabled for the instance.
-
-
SubnetId => (string)The ID of the subnet in which the instance is running.
-
VpcId => (string)The ID of the VPC in which the instance is running.
-
PrivateIpAddress => (string)The private IP address assigned to the instance.
-
PublicIpAddress => (string)The public IP address assigned to the instance.
-
StateReason => (associative-array)The reason for the most recent state transition.
-
Code => (string)The reason code for the state change.
-
Message => (string)The message for the state change.
-
Server.SpotInstanceTermination: A Spot Instance was terminated due to an increase in the market price.
-
Server.InternalError: An internal error occurred during instance launch, resulting in termination.
-
Server.InsufficientInstanceCapacity: There was insufficient instance capacity to satisfy the launch request.
-
Client.InternalError: A client error caused the instance to terminate on launch.
-
Client.InstanceInitiatedShutdown: The instance was shut down using the shutdown -h command from the instance.
-
Client.UserInitiatedShutdown: The instance was shut down using the Amazon EC2 API.
-
Client.VolumeLimitExceeded: The volume limit was exceeded.
-
Client.InvalidSnapshot.NotFound: The specified snapshot was not found.
-
-
-
Architecture => (string)The architecture of the image.
-
RootDeviceType => (string)The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
-
RootDeviceName => (string)The root device name (for example, /dev/sda1 or /dev/xvda).
-
BlockDeviceMappings => (array<associative-array>)Any block device mapping entries for the instance.
- (associative-array)
Describes a block device mapping.
-
DeviceName => (string)The device name exposed to the instance (for example, /dev/sdh or xvdh).
-
Ebs => (associative-array)Parameters used to automatically set up EBS volumes when the instance is launched.
-
VolumeId => (string)The ID of the EBS volume.
-
Status => (string)The attachment state.
-
AttachTime => (string)The time stamp when the attachment initiated.
-
DeleteOnTermination => (bool)Indicates whether the volume is deleted on instance termination.
-
-
- (associative-array)
-
VirtualizationType => (string)The virtualization type of the instance.
-
InstanceLifecycle => (string)Indicates whether this is a Spot Instance.
-
SpotInstanceRequestId => (string)The ID of the Spot Instance request.
-
ClientToken => (string)The idempotency token you provided when you launched the instance.
-
Tags => (array<associative-array>)Any tags assigned to the instance.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
SecurityGroups => (array<associative-array>)One or more security groups for the instance.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
SourceDestCheck => (bool)Specifies whether to enable an instance launched in a VPC to perform NAT. This controls whether source/destination checking is enabled on the instance. A value of true means checking is enabled, and false means checking is disabled. The value must be false for the instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.
-
Hypervisor => (string)The hypervisor type of the instance.
-
NetworkInterfaces => (array<associative-array>)[EC2-VPC] One or more network interfaces for the instance.
- (associative-array)
Describes a network interface.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
SubnetId => (string)The ID of the subnet.
-
VpcId => (string)The ID of the VPC.
-
Description => (string)The description.
-
OwnerId => (string)The ID of the AWS account that created the network interface.
-
Status => (string)The status of the network interface.
-
MacAddress => (string)The MAC address.
-
PrivateIpAddress => (string)The IP address of the network interface within the subnet.
-
PrivateDnsName => (string)The private DNS name.
-
SourceDestCheck => (bool)Indicates whether to validate network traffic to or from this network interface.
-
Groups => (array<associative-array>)One or more security groups.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
Attachment => (associative-array)The network interface attachment.
-
AttachmentId => (string)The ID of the network interface attachment.
-
DeviceIndex => (int)The index of the device on the instance for the network interface attachment.
-
Status => (string)The attachment state.
-
AttachTime => (string)The time stamp when the attachment initiated.
-
DeleteOnTermination => (bool)Indicates whether the network interface is deleted when the instance is terminated.
-
-
Association => (associative-array)The association information for an Elastic IP associated with the network interface.
-
PublicIp => (string)The public IP address or Elastic IP address bound to the network interface.
-
PublicDnsName => (string)The public DNS name.
-
IpOwnerId => (string)The ID of the owner of the Elastic IP address.
-
-
PrivateIpAddresses => (array<associative-array>)The private IP addresses associated with the network interface.
- (associative-array)
Describes a private IP address.
-
PrivateIpAddress => (string)The private IP address of the network interface.
-
PrivateDnsName => (string)The private DNS name.
-
Primary => (bool)Indicates whether this IP address is the primary private IP address of the network interface.
-
Association => (associative-array)The association information for an Elastic IP address for the network interface.
-
PublicIp => (string)The public IP address or Elastic IP address bound to the network interface.
-
PublicDnsName => (string)The public DNS name.
-
IpOwnerId => (string)The ID of the owner of the Elastic IP address.
-
-
- (associative-array)
-
- (associative-array)
-
IamInstanceProfile => (associative-array)The IAM instance profile associated with the instance.
-
Arn => (string)The Amazon Resource Name (ARN) of the instance profile.
-
Id => (string)The ID of the instance profile.
-
-
EbsOptimized => (bool)Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
-
SriovNetSupport => (string)Specifies whether enhanced networking is enabled.
-
- (associative-array)
-
- (associative-array)
-
NextToken => (string)The token to use to retrieve the next page of results. This value is null when there are no more results to return.
Executes the DescribeInternetGateways operation.
Describes one or more of your Internet gateways.
Examples
- Basic formatting example
$result = $client->describeInternetGateways(array( 'DryRun' => true || false, 'InternetGatewayIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InternetGatewayIds => (array<string>)One or more Internet gateway IDs.
Default: Describes all your Internet gateways.
-
Filters => (array<associative-array>)One or more filters.
-
attachment.state - The current state of the attachment between the gateway and the VPC (available). Present only if a VPC is attached.
-
attachment.vpc-id - The ID of an attached VPC.
-
internet-gateway-id - The ID of the Internet gateway.
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
InternetGateways => (array<associative-array>)Information about one or more Internet gateways.
- (associative-array)
Describes an Internet gateway.
-
InternetGatewayId => (string)The ID of the Internet gateway.
-
Attachments => (array<associative-array>)Any VPCs attached to the Internet gateway.
- (associative-array)
Describes the attachment of a VPC to an Internet gateway.
-
VpcId => (string)The ID of the VPC.
-
State => (string)The current state of the attachment.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the Internet gateway.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeKeyPairs operation.
Describes one or more of your key pairs.
For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeKeyPairs(array( 'DryRun' => true || false, 'KeyNames' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
KeyNames => (array<string>)One or more key pair names.
Default: Describes all your key pairs.
-
Filters => (array<associative-array>)One or more filters.
-
fingerprint - The fingerprint of the key pair.
-
key-name - The name of the key pair.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
KeyPairs => (array<associative-array>)Information about one or more key pairs.
- (associative-array)
Describes a key pair.
-
KeyName => (string)The name of the key pair.
-
KeyFingerprint => (string)If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded private key. If you used ImportKeyPair to provide AWS the public key, this is the MD5 public key fingerprint as specified in section 4 of RFC4716.
-
- (associative-array)
Executes the DescribeMovingAddresses operation.
Describes your Elastic IP addresses that are being moved to the EC2-VPC platform, or that are being restored to the EC2-Classic platform. This request does not return information about any other Elastic IP addresses in your account.
Examples
- Basic formatting example
$result = $client->describeMovingAddresses(array( 'DryRun' => true || false, 'PublicIps' => array('string', ... ), 'NextToken' => 'string', 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'MaxResults' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
PublicIps => (array<string>)One or more Elastic IP addresses.
-
NextToken => (string)The token to use to retrieve the next page of results.
-
Filters => (array<associative-array>)One or more filters.
-
moving-status - The status of the Elastic IP address (MovingToVpc | RestoringToClassic).
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
MaxResults => (int)The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value outside of this range, an error is returned.
Default: If no value is provided, the default is 1000.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
MovingAddressStatuses => (array<associative-array>)The status for each Elastic IP address.
- (associative-array)
Describes the status of a moving Elastic IP address.
-
PublicIp => (string)The Elastic IP address.
-
MoveStatus => (string)The status of the Elastic IP address that's being moved to the EC2-VPC platform, or restored to the EC2-Classic platform.
-
- (associative-array)
-
NextToken => (string)The token to use to retrieve the next page of results. This value is null when there are no more results to return.
Executes the DescribeNetworkAcls operation.
Describes one or more of your network ACLs.
For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeNetworkAcls(array( 'DryRun' => true || false, 'NetworkAclIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
NetworkAclIds => (array<string>)One or more network ACL IDs.
Default: Describes all your network ACLs.
-
Filters => (array<associative-array>)One or more filters.
-
association.association-id - The ID of an association ID for the ACL.
-
association.network-acl-id - The ID of the network ACL involved in the association.
-
association.subnet-id - The ID of the subnet involved in the association.
-
default - Indicates whether the ACL is the default network ACL for the VPC.
-
entry.cidr - The CIDR range specified in the entry.
-
entry.egress - Indicates whether the entry applies to egress traffic.
-
entry.icmp.code - The ICMP code specified in the entry, if any.
-
entry.icmp.type - The ICMP type specified in the entry, if any.
-
entry.port-range.from - The start of the port range specified in the entry.
-
entry.port-range.to - The end of the port range specified in the entry.
-
entry.protocol - The protocol specified in the entry (tcp | udp | icmp or a protocol number).
-
entry.rule-action - Allows or denies the matching traffic (allow | deny).
-
entry.rule-number - The number of an entry (in other words, rule) in the ACL's set of entries.
-
network-acl-id - The ID of the network ACL.
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
vpc-id - The ID of the VPC for the network ACL.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
NetworkAcls => (array<associative-array>)Information about one or more network ACLs.
- (associative-array)
Describes a network ACL.
-
NetworkAclId => (string)The ID of the network ACL.
-
VpcId => (string)The ID of the VPC for the network ACL.
-
IsDefault => (bool)Indicates whether this is the default network ACL for the VPC.
-
Entries => (array<associative-array>)One or more entries (rules) in the network ACL.
- (associative-array)
Describes an entry in a network ACL.
-
RuleNumber => (int)The rule number for the entry. ACL entries are processed in ascending order by rule number.
-
Protocol => (string)The protocol. A value of -1 means all protocols.
-
RuleAction => (string)Indicates whether to allow or deny the traffic that matches the rule.
-
Egress => (bool)Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
-
CidrBlock => (string)The network range to allow or deny, in CIDR notation.
-
IcmpTypeCode => (associative-array)ICMP protocol: The ICMP type and code.
-
Type => (int)The ICMP code. A value of -1 means all codes for the specified ICMP type.
-
Code => (int)The ICMP type. A value of -1 means all types.
-
-
PortRange => (associative-array)TCP or UDP protocols: The range of ports the rule applies to.
-
From => (int)The first port in the range.
-
To => (int)The last port in the range.
-
-
- (associative-array)
-
Associations => (array<associative-array>)Any associations between the network ACL and one or more subnets
- (associative-array)
Describes an association between a network ACL and a subnet.
-
NetworkAclAssociationId => (string)The ID of the association between a network ACL and a subnet.
-
NetworkAclId => (string)The ID of the network ACL.
-
SubnetId => (string)The ID of the subnet.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the network ACL.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeNetworkInterfaceAttribute operation.
Describes a network interface attribute. You can specify only one attribute at a time.
Examples
- Basic formatting example
$result = $client->describeNetworkInterfaceAttribute(array( 'DryRun' => true || false, // NetworkInterfaceId is required 'NetworkInterfaceId' => 'string', 'Attribute' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
Attribute => (string:description |groupSet |sourceDestCheck |attachment )The attribute of the network interface.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
NetworkInterfaceId => (string)The ID of the network interface.
-
Description => (associative-array)The description of the network interface.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
SourceDestCheck => (associative-array)Indicates whether source/destination checking is enabled.
-
Value => (bool)Valid values are true or false.
-
-
Groups => (array<associative-array>)The security groups associated with the network interface.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
Attachment => (associative-array)The attachment (if any) of the network interface.
-
AttachmentId => (string)The ID of the network interface attachment.
-
InstanceId => (string)The ID of the instance.
-
InstanceOwnerId => (string)The AWS account ID of the owner of the instance.
-
DeviceIndex => (int)The device index of the network interface attachment on the instance.
-
Status => (string)The attachment state.
-
AttachTime => (string)The timestamp indicating when the attachment initiated.
-
DeleteOnTermination => (bool)Indicates whether the network interface is deleted when the instance is terminated.
-
Executes the DescribeNetworkInterfaces operation.
Describes one or more of your network interfaces.
Examples
- Basic formatting example
$result = $client->describeNetworkInterfaces(array( 'DryRun' => true || false, 'NetworkInterfaceIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
NetworkInterfaceIds => (array<string>)One or more network interface IDs.
Default: Describes all your network interfaces.
-
Filters => (array<associative-array>)One or more filters.
-
addresses.private-ip-address - The private IP addresses associated with the network interface.
-
addresses.primary - Whether the private IP address is the primary IP address associated with the network interface.
-
addresses.association.public-ip - The association ID returned when the network interface was associated with the Elastic IP address.
-
addresses.association.owner-id - The owner ID of the addresses associated with the network interface.
-
association.association-id - The association ID returned when the network interface was associated with an IP address.
-
association.allocation-id - The allocation ID returned when you allocated the Elastic IP address for your network interface.
-
association.ip-owner-id - The owner of the Elastic IP address associated with the network interface.
-
association.public-ip - The address of the Elastic IP address bound to the network interface.
-
association.public-dns-name - The public DNS name for the network interface.
-
attachment.attachment-id - The ID of the interface attachment.
-
attachment.instance-id - The ID of the instance to which the network interface is attached.
-
attachment.instance-owner-id - The owner ID of the instance to which the network interface is attached.
-
attachment.device-index - The device index to which the network interface is attached.
-
attachment.status - The status of the attachment (attaching | attached | detaching | detached).
-
attachment.attach.time - The time that the network interface was attached to an instance.
-
attachment.delete-on-termination - Indicates whether the attachment is deleted when an instance is terminated.
-
availability-zone - The Availability Zone of the network interface.
-
description - The description of the network interface.
-
group-id - The ID of a security group associated with the network interface.
-
group-name - The name of a security group associated with the network interface.
-
mac-address - The MAC address of the network interface.
-
network-interface-id - The ID of the network interface.
-
owner-id - The AWS account ID of the network interface owner.
-
private-ip-address - The private IP address or addresses of the network interface.
-
private-dns-name - The private DNS name of the network interface.
-
requester-id - The ID of the entity that launched the instance on your behalf (for example, AWS Management Console, Auto Scaling, and so on).
-
requester-managed - Indicates whether the network interface is being managed by an AWS service (for example, AWS Management Console, Auto Scaling, and so on).
-
source-desk-check - Indicates whether the network interface performs source/destination checking. A value of true means checking is enabled, and false means checking is disabled. The value must be false for the network interface to perform Network Address Translation (NAT) in your VPC.
-
status - The status of the network interface. If the network interface is not attached to an instance, the status is available; if a network interface is attached to an instance the status is in-use.
-
subnet-id - The ID of the subnet for the network interface.
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
vpc-id - The ID of the VPC for the network interface.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
NetworkInterfaces => (array<associative-array>)Information about one or more network interfaces.
- (associative-array)
Describes a network interface.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
SubnetId => (string)The ID of the subnet.
-
VpcId => (string)The ID of the VPC.
-
AvailabilityZone => (string)The Availability Zone.
-
Description => (string)A description.
-
OwnerId => (string)The AWS account ID of the owner of the network interface.
-
RequesterId => (string)The ID of the entity that launched the instance on your behalf (for example, AWS Management Console or Auto Scaling).
-
RequesterManaged => (bool)Indicates whether the network interface is being managed by AWS.
-
Status => (string)The status of the network interface.
-
MacAddress => (string)The MAC address.
-
PrivateIpAddress => (string)The IP address of the network interface within the subnet.
-
PrivateDnsName => (string)The private DNS name.
-
SourceDestCheck => (bool)Indicates whether traffic to or from the instance is validated.
-
Groups => (array<associative-array>)Any security groups for the network interface.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
Attachment => (associative-array)The network interface attachment.
-
AttachmentId => (string)The ID of the network interface attachment.
-
InstanceId => (string)The ID of the instance.
-
InstanceOwnerId => (string)The AWS account ID of the owner of the instance.
-
DeviceIndex => (int)The device index of the network interface attachment on the instance.
-
Status => (string)The attachment state.
-
AttachTime => (string)The timestamp indicating when the attachment initiated.
-
DeleteOnTermination => (bool)Indicates whether the network interface is deleted when the instance is terminated.
-
-
Association => (associative-array)The association information for an Elastic IP associated with the network interface.
-
PublicIp => (string)The address of the Elastic IP address bound to the network interface.
-
PublicDnsName => (string)The public DNS name.
-
IpOwnerId => (string)The ID of the Elastic IP address owner.
-
AllocationId => (string)The allocation ID.
-
AssociationId => (string)The association ID.
-
-
TagSet => (array<associative-array>)Any tags assigned to the network interface.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
PrivateIpAddresses => (array<associative-array>)The private IP addresses associated with the network interface.
- (associative-array)
Describes the private IP address of a network interface.
-
PrivateIpAddress => (string)The private IP address.
-
PrivateDnsName => (string)The private DNS name.
-
Primary => (bool)Indicates whether this IP address is the primary private IP address of the network interface.
-
Association => (associative-array)The association information for an Elastic IP address associated with the network interface.
-
PublicIp => (string)The address of the Elastic IP address bound to the network interface.
-
PublicDnsName => (string)The public DNS name.
-
IpOwnerId => (string)The ID of the Elastic IP address owner.
-
AllocationId => (string)The allocation ID.
-
AssociationId => (string)The association ID.
-
-
- (associative-array)
-
- (associative-array)
Executes the DescribePlacementGroups operation.
Describes one or more of your placement groups. For more information about placement groups and cluster instances, see Cluster Instances in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describePlacementGroups(array( 'DryRun' => true || false, 'GroupNames' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
GroupNames => (array<string>)One or more placement group names.
Default: Describes all your placement groups, or only those otherwise specified.
-
Filters => (array<associative-array>)One or more filters.
-
group-name - The name of the placement group.
-
state - The state of the placement group (pending | available | deleting | deleted).
-
strategy - The strategy of the placement group (cluster).
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
PlacementGroups => (array<associative-array>)One or more placement groups.
- (associative-array)
Describes a placement group.
-
GroupName => (string)The name of the placement group.
-
Strategy => (string)The placement strategy.
-
State => (string)The state of the placement group.
-
- (associative-array)
Executes the DescribePrefixLists operation.
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. A prefix list ID is required for creating an outbound security group rule that allows traffic from a VPC to access an AWS service through a VPC endpoint.
Examples
- Basic formatting example
$result = $client->describePrefixLists(array( 'DryRun' => true || false, 'PrefixListIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'MaxResults' => integer, 'NextToken' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
PrefixListIds => (array<string>)One or more prefix list IDs.
-
Filters => (array<associative-array>)One or more filters.
-
prefix-list-id: The ID of a prefix list.
-
prefix-list-name: The name of a prefix list.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
MaxResults => (int)The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.
Constraint: If the value specified is greater than 1000, we return only 1000 items.
-
NextToken => (string)The token for the next set of items to return. (You received this token from a prior call.)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
PrefixLists => (array<associative-array>)All available prefix lists.
- (associative-array)
Describes prefixes for AWS services.
-
PrefixListId => (string)The ID of the prefix.
-
PrefixListName => (string)The name of the prefix.
-
Cidrs => (array<string>)The IP address range of the AWS service.
-
- (associative-array)
-
NextToken => (string)The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
Executes the DescribeRegions operation.
Describes one or more regions that are currently available to you.
For a list of the regions supported by Amazon EC2, see Regions and Endpoints.
Examples
- Basic formatting example
$result = $client->describeRegions(array( 'DryRun' => true || false, 'RegionNames' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
RegionNames => (array<string>)The names of one or more regions.
-
Filters => (array<associative-array>)One or more filters.
-
endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com).
-
region-name - The name of the region (for example, us-east-1).
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Regions => (array<associative-array>)Information about one or more regions.
- (associative-array)
Describes a region.
-
RegionName => (string)The name of the region.
-
Endpoint => (string)The region service endpoint.
-
- (associative-array)
Executes the DescribeReservedInstances operation.
Describes one or more of the Reserved Instances that you purchased.
For more information about Reserved Instances, see Reserved Instances in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeReservedInstances(array( 'DryRun' => true || false, 'ReservedInstancesIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'OfferingType' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ReservedInstancesIds => (array<string>)One or more Reserved Instance IDs.
Default: Describes all your Reserved Instances, or only those otherwise specified.
-
Filters => (array<associative-array>)One or more filters.
-
availability-zone - The Availability Zone where the Reserved Instance can be used.
-
duration - The duration of the Reserved Instance (one year or three years), in seconds (31536000 | 94608000).
-
end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z).
-
fixed-price - The purchase price of the Reserved Instance (for example, 9800.0).
-
instance-type - The instance type on which the Reserved Instance can be used.
-
product-description - The Reserved Instance product platform description. Instances that include (Amazon VPC) in the product platform description will only be displayed to EC2-Classic account holders and are for use with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC)).
-
reserved-instances-id - The ID of the Reserved Instance.
-
start - The time at which the Reserved Instance purchase request was placed (for example, 2014-08-07T11:54:42.000Z).
-
state - The state of the Reserved Instance (payment-pending | active | payment-failed | retired).
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
usage-price - The usage price of the Reserved Instance, per hour (for example, 0.84).
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
OfferingType => (string:Heavy Utilization |Medium Utilization |Light Utilization |No Upfront |Partial Upfront |All Upfront )The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API version, you only have access to the Medium Utilization Reserved Instance offering type.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ReservedInstances => (array<associative-array>)A list of Reserved Instances.
- (associative-array)
Describes a Reserved Instance.
-
ReservedInstancesId => (string)The ID of the Reserved Instance.
-
InstanceType => (string)The instance type on which the Reserved Instance can be used.
-
AvailabilityZone => (string)The Availability Zone in which the Reserved Instance can be used.
-
Start => (string)The date and time the Reserved Instance started.
-
End => (string)The time when the Reserved Instance expires.
-
Duration => (int)The duration of the Reserved Instance, in seconds.
-
UsagePrice => (int)The usage price of the Reserved Instance, per hour.
-
FixedPrice => (int)The purchase price of the Reserved Instance.
-
InstanceCount => (int)The number of Reserved Instances purchased.
-
ProductDescription => (string)The Reserved Instance product platform description.
-
State => (string)The state of the Reserved Instance purchase.
-
Tags => (array<associative-array>)Any tags assigned to the resource.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
InstanceTenancy => (string)The tenancy of the reserved instance.
-
CurrencyCode => (string)The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.
-
OfferingType => (string)The Reserved Instance offering type.
-
RecurringCharges => (array<associative-array>)The recurring charge tag assigned to the resource.
- (associative-array)
Describes a recurring charge.
-
Frequency => (string)The frequency of the recurring charge.
-
Amount => (int)The amount of the recurring charge.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeReservedInstancesListings operation.
Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.
The Reserved Instance Marketplace matches sellers who want to resell 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.
As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.
As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you're searching for with what's available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.
For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeReservedInstancesListings(array( 'ReservedInstancesId' => 'string', 'ReservedInstancesListingId' => 'string', 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ReservedInstancesId => (string)One or more Reserved Instance IDs.
-
ReservedInstancesListingId => (string)One or more Reserved Instance Listing IDs.
-
Filters => (array<associative-array>)One or more filters.
-
reserved-instances-id - The ID of the Reserved Instances.
-
reserved-instances-listing-id - The ID of the Reserved Instances listing.
-
status - The status of the Reserved Instance listing (pending | active | cancelled | closed).
-
status-message - The reason for the status.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ReservedInstancesListings => (array<associative-array>)Information about the Reserved Instance listing.
- (associative-array)
Describes a Reserved Instance listing.
-
ReservedInstancesListingId => (string)The ID of the Reserved Instance listing.
-
ReservedInstancesId => (string)The ID of the Reserved Instance.
-
CreateDate => (string)The time the listing was created.
-
UpdateDate => (string)The last modified timestamp of the listing.
-
Status => (string)The status of the Reserved Instance listing.
-
StatusMessage => (string)The reason for the current status of the Reserved Instance listing. The response can be blank.
-
InstanceCounts => (array<associative-array>)The number of instances in this state.
- (associative-array)
Describes a Reserved Instance listing state.
-
State => (string)The states of the listed Reserved Instances.
-
InstanceCount => (int)The number of listed Reserved Instances in the state specified by the state.
-
- (associative-array)
-
PriceSchedules => (array<associative-array>)The price of the Reserved Instance listing.
- (associative-array)
Describes the price for a Reserved Instance.
-
Term => (int)The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.
-
Price => (int)The fixed price for the term.
-
CurrencyCode => (string)The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.
-
Active => (bool)The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the resource.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
ClientToken => (string)A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
-
- (associative-array)
public
Guzzle\Service\Resource\Model
describeReservedInstancesModifications( array $args = array() )
Executes the DescribeReservedInstancesModifications operation.
Describes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned.
For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeReservedInstancesModifications(array( 'ReservedInstancesModificationIds' => array('string', ... ), 'NextToken' => 'string', 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ReservedInstancesModificationIds => (array<string>)IDs for the submitted modification request.
-
NextToken => (string)The token to retrieve the next page of results.
-
Filters => (array<associative-array>)One or more filters.
-
client-token - The idempotency token for the modification request.
-
create-date - The time when the modification request was created.
-
effective-date - The time when the modification becomes effective.
-
modification-result.reserved-instances-id - The ID for the Reserved Instances created as part of the modification request. This ID is only available when the status of the modification is fulfilled.
-
modification-result.target-configuration.availability-zone - The Availability Zone for the new Reserved Instances.
-
modification-result.target-configuration.instance-count - The number of new Reserved Instances.
-
modification-result.target-configuration.instance-type - The instance type of the new Reserved Instances.
-
modification-result.target-configuration.platform - The network platform of the new Reserved Instances (EC2-Classic | EC2-VPC).
-
reserved-instances-id - The ID of the Reserved Instances modified.
-
reserved-instances-modification-id - The ID of the modification request.
-
status - The status of the Reserved Instances modification request (processing | fulfilled | failed).
-
status-message - The reason for the status.
-
update-date - The time when the modification request was last updated.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ReservedInstancesModifications => (array<associative-array>)The Reserved Instance modification information.
- (associative-array)
Describes a Reserved Instance modification.
-
ReservedInstancesModificationId => (string)A unique ID for the Reserved Instance modification.
-
ReservedInstancesIds => (array<associative-array>)The IDs of one or more Reserved Instances.
- (associative-array)
Describes the ID of a Reserved Instance.
-
ReservedInstancesId => (string)The ID of the Reserved Instance.
-
- (associative-array)
-
ModificationResults => (array<associative-array>)Contains target configurations along with their corresponding new Reserved Instance IDs.
- (associative-array)
-
ReservedInstancesId => (string)The ID for the Reserved Instances that were created as part of the modification request. This field is only available when the modification is fulfilled.
-
TargetConfiguration => (associative-array)The target Reserved Instances configurations supplied as part of the modification request.
-
AvailabilityZone => (string)The Availability Zone for the modified Reserved Instances.
-
Platform => (string)The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.
-
InstanceCount => (int)The number of modified Reserved Instances.
-
InstanceType => (string)The instance type for the modified Reserved Instances.
-
-
- (associative-array)
-
CreateDate => (string)The time when the modification request was created.
-
UpdateDate => (string)The time when the modification request was last updated.
-
EffectiveDate => (string)The time for the modification to become effective.
-
Status => (string)The status of the Reserved Instances modification request.
-
StatusMessage => (string)The reason for the status.
-
ClientToken => (string)A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
-
- (associative-array)
-
NextToken => (string)The token to use to retrieve the next page of results. This value is null when there are no more results to return.
Executes the DescribeReservedInstancesOfferings operation.
Describes Reserved Instance offerings that are available for purchase. With Reserved Instances, you purchase the right to launch instances for a period of time. During that time period, you do not receive insufficient capacity errors, and you pay a lower usage rate than the rate charged for On-Demand instances for the actual time used.
For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeReservedInstancesOfferings(array( 'DryRun' => true || false, 'ReservedInstancesOfferingIds' => array('string', ... ), 'InstanceType' => 'string', 'AvailabilityZone' => 'string', 'ProductDescription' => 'string', 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'InstanceTenancy' => 'string', 'OfferingType' => 'string', 'NextToken' => 'string', 'MaxResults' => integer, 'IncludeMarketplace' => true || false, 'MinDuration' => integer, 'MaxDuration' => integer, 'MaxInstanceCount' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ReservedInstancesOfferingIds => (array<string>)One or more Reserved Instances offering IDs.
-
InstanceType => (string:t1.micro |m1.small |m1.medium |m1.large |m1.xlarge |m3.medium |m3.large |m3.xlarge |m3.2xlarge |m4.large |m4.xlarge |m4.2xlarge |m4.4xlarge |m4.10xlarge |t2.micro |t2.small |t2.medium |t2.large |m2.xlarge |m2.2xlarge |m2.4xlarge |cr1.8xlarge |i2.xlarge |i2.2xlarge |i2.4xlarge |i2.8xlarge |hi1.4xlarge |hs1.8xlarge |c1.medium |c1.xlarge |c3.large |c3.xlarge |c3.2xlarge |c3.4xlarge |c3.8xlarge |c4.large |c4.xlarge |c4.2xlarge |c4.4xlarge |c4.8xlarge |cc1.4xlarge |cc2.8xlarge |g2.2xlarge |cg1.4xlarge |r3.large |r3.xlarge |r3.2xlarge |r3.4xlarge |r3.8xlarge |d2.xlarge |d2.2xlarge |d2.4xlarge |d2.8xlarge )The instance type on which the Reserved Instance can be used. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.
-
AvailabilityZone => (string)The Availability Zone in which the Reserved Instance can be used.
-
ProductDescription => (string:Linux/UNIX |Linux/UNIX (Amazon VPC) |Windows |Windows (Amazon VPC) )The Reserved Instance product platform description. Instances that include (Amazon VPC) in the description are for use with Amazon VPC.
-
Filters => (array<associative-array>)One or more filters.
-
availability-zone - The Availability Zone where the Reserved Instance can be used.
-
duration - The duration of the Reserved Instance (for example, one year or three years), in seconds (31536000 | 94608000).
-
fixed-price - The purchase price of the Reserved Instance (for example, 9800.0).
-
instance-type - The instance type on which the Reserved Instance can be used.
-
marketplace - Set to true to show only Reserved Instance Marketplace offerings. When this filter is not used, which is the default behavior, all offerings from AWS and Reserved Instance Marketplace are listed.
-
product-description - The Reserved Instance product platform description. Instances that include (Amazon VPC) in the product platform description will only be displayed to EC2-Classic account holders and are for use with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC))
-
reserved-instances-offering-id - The Reserved Instances offering ID.
-
usage-price - The usage price of the Reserved Instance, per hour (for example, 0.84).
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
InstanceTenancy => (string:default |dedicated )The tenancy of the Reserved Instance offering. A Reserved Instance with dedicated tenancy runs on single-tenant hardware and can only be launched within a VPC.
Default: default
-
OfferingType => (string:Heavy Utilization |Medium Utilization |Light Utilization |No Upfront |Partial Upfront |All Upfront )The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API version, you only have access to the Medium Utilization Reserved Instance offering type.
-
NextToken => (string)The token to retrieve the next page of results.
-
MaxResults => (int)The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. The maximum is 100.
Default: 100
-
IncludeMarketplace => (bool)Include Marketplace offerings in the response.
-
MinDuration => (int)The minimum duration (in seconds) to filter when searching for offerings.
Default: 2592000 (1 month)
-
MaxDuration => (int)The maximum duration (in seconds) to filter when searching for offerings.
Default: 94608000 (3 years)
-
MaxInstanceCount => (int)The maximum number of instances to filter when searching for offerings.
Default: 20
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ReservedInstancesOfferings => (array<associative-array>)A list of Reserved Instances offerings.
- (associative-array)
Describes a Reserved Instance offering.
-
ReservedInstancesOfferingId => (string)The ID of the Reserved Instance offering.
-
InstanceType => (string)The instance type on which the Reserved Instance can be used.
-
AvailabilityZone => (string)The Availability Zone in which the Reserved Instance can be used.
-
Duration => (int)The duration of the Reserved Instance, in seconds.
-
UsagePrice => (int)The usage price of the Reserved Instance, per hour.
-
FixedPrice => (int)The purchase price of the Reserved Instance.
-
ProductDescription => (string)The Reserved Instance product platform description.
-
InstanceTenancy => (string)The tenancy of the reserved instance.
-
CurrencyCode => (string)The currency of the Reserved Instance offering you are purchasing. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.
-
OfferingType => (string)The Reserved Instance offering type.
-
RecurringCharges => (array<associative-array>)The recurring charge tag assigned to the resource.
- (associative-array)
Describes a recurring charge.
-
Frequency => (string)The frequency of the recurring charge.
-
Amount => (int)The amount of the recurring charge.
-
- (associative-array)
-
Marketplace => (bool)Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, this is true.
-
PricingDetails => (array<associative-array>)The pricing details of the Reserved Instance offering.
- (associative-array)
Describes a Reserved Instance offering.
-
Price => (int)The price per instance.
-
Count => (int)The number of instances available for the price.
-
- (associative-array)
-
- (associative-array)
-
NextToken => (string)The token to use to retrieve the next page of results. This value is null when there are no more results to return.
Executes the DescribeRouteTables operation.
Describes one or more of your route tables.
Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.
For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeRouteTables(array( 'DryRun' => true || false, 'RouteTableIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
RouteTableIds => (array<string>)One or more route table IDs.
Default: Describes all your route tables.
-
Filters => (array<associative-array>)One or more filters.
-
association.route-table-association-id - The ID of an association ID for the route table.
-
association.route-table-id - The ID of the route table involved in the association.
-
association.subnet-id - The ID of the subnet involved in the association.
-
association.main - Indicates whether the route table is the main route table for the VPC.
-
route-table-id - The ID of the route table.
-
route.destination-cidr-block - The CIDR range specified in a route in the table.
-
route.destination-prefix-list-id - The ID (prefix) of the AWS service specified in a route in the table.
-
route.gateway-id - The ID of a gateway specified in a route in the table.
-
route.instance-id - The ID of an instance specified in a route in the table.
-
route.origin - Describes how the route was created. CreateRouteTable indicates that the route was automatically created when the route table was created; CreateRoute indicates that the route was manually added to the route table; EnableVgwRoutePropagation indicates that the route was propagated by route propagation.
-
route.state - The state of a route in the route table (active | blackhole). The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, the specified NAT instance has been terminated, and so on).
-
route.vpc-peering-connection-id - The ID of a VPC peering connection specified in a route in the table.
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
vpc-id - The ID of the VPC for the route table.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
RouteTables => (array<associative-array>)Information about one or more route tables.
- (associative-array)
Describes a route table.
-
RouteTableId => (string)The ID of the route table.
-
VpcId => (string)The ID of the VPC.
-
Routes => (array<associative-array>)The routes in the route table.
- (associative-array)
Describes a route in a route table.
-
DestinationCidrBlock => (string)The CIDR block used for the destination match.
-
DestinationPrefixListId => (string)The prefix of the AWS service.
-
GatewayId => (string)The ID of a gateway attached to your VPC.
-
InstanceId => (string)The ID of a NAT instance in your VPC.
-
InstanceOwnerId => (string)The AWS account ID of the owner of the instance.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
VpcPeeringConnectionId => (string)The ID of the VPC peering connection.
-
State => (string)The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).
-
Origin => (string)Describes how the route was created.
- CreateRouteTable indicates that route was automatically created when the route table was created.
- CreateRoute indicates that the route was manually added to the route table.
- EnableVgwRoutePropagation indicates that the route was propagated by route propagation.
-
- (associative-array)
-
Associations => (array<associative-array>)The associations between the route table and one or more subnets.
- (associative-array)
Describes an association between a route table and a subnet.
-
RouteTableAssociationId => (string)The ID of the association between a route table and a subnet.
-
RouteTableId => (string)The ID of the route table.
-
SubnetId => (string)The ID of the subnet. A subnet ID is not returned for an implicit association.
-
Main => (bool)Indicates whether this is the main route table.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the route table.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
PropagatingVgws => (array<associative-array>)Any virtual private gateway (VGW) propagating routes.
- (associative-array)
Describes a virtual private gateway propagating route.
-
GatewayId => (string)The ID of the virtual private gateway (VGW).
-
- (associative-array)
-
- (associative-array)
Executes the DescribeSecurityGroups operation.
Describes one or more of your security groups.
A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. 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.
Examples
- Basic formatting example
$result = $client->describeSecurityGroups(array( 'DryRun' => true || false, 'GroupNames' => array('string', ... ), 'GroupIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
GroupNames => (array<string>)[EC2-Classic and default VPC only] One or more security group names. You can specify either the security group name or the security group ID. For security groups in a nondefault VPC, use the group-name filter to describe security groups by name.
Default: Describes all your security groups.
-
GroupIds => (array<string>)One or more security group IDs. Required for security groups in a nondefault VPC.
Default: Describes all your security groups.
-
Filters => (array<associative-array>)One or more filters. If using multiple filters for rules, the results include security groups for which any combination of rules - not necessarily a single rule - match all filters.
-
description - The description of the security group.
-
egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service to which the security group allows access.
-
group-id - The ID of the security group.
-
group-name - The name of the security group.
-
ip-permission.cidr - A CIDR range that has been granted permission.
-
ip-permission.from-port - The start of port range for the TCP and UDP protocols, or an ICMP type number.
-
ip-permission.group-id - The ID of a security group that has been granted permission.
-
ip-permission.group-name - The name of a security group that has been granted permission.
-
ip-permission.protocol - The IP protocol for the permission (tcp | udp | icmp or a protocol number).
-
ip-permission.to-port - The end of port range for the TCP and UDP protocols, or an ICMP code.
-
ip-permission.user-id - The ID of an AWS account that has been granted permission.
-
owner-id - The AWS account ID of the owner of the security group.
-
tag-key - The key of a tag assigned to the security group.
-
tag-value - The value of a tag assigned to the security group.
-
vpc-id - The ID of the VPC specified when the security group was created.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
SecurityGroups => (array<associative-array>)Information about one or more security groups.
- (associative-array)
Describes a security group
-
OwnerId => (string)The AWS account ID of the owner of the security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
Description => (string)A description of the security group.
-
IpPermissions => (array<associative-array>)One or more inbound rules associated with the security group.
- (associative-array)
Describes a security group rule.
-
IpProtocol => (string)The protocol.
When you call DescribeSecurityGroups, the protocol value returned is the number. Exception: For TCP, UDP, and ICMP, the value returned is the name (for example, tcp, udp, or icmp). For a list of protocol numbers, see Protocol Numbers. (VPC only) When you call AuthorizeSecurityGroupIngress, you can use -1 to specify all.
-
FromPort => (int)The start of port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.
-
ToPort => (int)The end of port range for the TCP and UDP protocols, or an ICMP code. A value of -1 indicates all ICMP codes for the specified ICMP type.
-
UserIdGroupPairs => (array<associative-array>)One or more security group and AWS account ID pairs.
- (associative-array)
Describes a security group and AWS account ID pair.
-
UserId => (string)The ID of an AWS account. EC2-Classic only.
-
GroupName => (string)The name of the security group. In a request, use this parameter for a security group in EC2-Classic or a default VPC only. For a security group in a nondefault VPC, use GroupId.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
IpRanges => (array<associative-array>)One or more IP ranges.
- (associative-array)
Describes an IP range.
-
CidrIp => (string)The CIDR range. You can either specify a CIDR range or a source security group, not both.
-
- (associative-array)
-
PrefixListIds => (array<associative-array>)(Valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress and DescribeSecurityGroups only) One or more prefix list IDs for an AWS service. In an AuthorizeSecurityGroupEgress request, this is the AWS service that you want to access through a VPC endpoint from instances associated with the security group.
- (associative-array)
The ID of the prefix.
-
PrefixListId => (string)The ID of the prefix.
-
- (associative-array)
-
- (associative-array)
-
IpPermissionsEgress => (array<associative-array>)[EC2-VPC] One or more outbound rules associated with the security group.
- (associative-array)
Describes a security group rule.
-
IpProtocol => (string)The protocol.
When you call DescribeSecurityGroups, the protocol value returned is the number. Exception: For TCP, UDP, and ICMP, the value returned is the name (for example, tcp, udp, or icmp). For a list of protocol numbers, see Protocol Numbers. (VPC only) When you call AuthorizeSecurityGroupIngress, you can use -1 to specify all.
-
FromPort => (int)The start of port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.
-
ToPort => (int)The end of port range for the TCP and UDP protocols, or an ICMP code. A value of -1 indicates all ICMP codes for the specified ICMP type.
-
UserIdGroupPairs => (array<associative-array>)One or more security group and AWS account ID pairs.
- (associative-array)
Describes a security group and AWS account ID pair.
-
UserId => (string)The ID of an AWS account. EC2-Classic only.
-
GroupName => (string)The name of the security group. In a request, use this parameter for a security group in EC2-Classic or a default VPC only. For a security group in a nondefault VPC, use GroupId.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
IpRanges => (array<associative-array>)One or more IP ranges.
- (associative-array)
Describes an IP range.
-
CidrIp => (string)The CIDR range. You can either specify a CIDR range or a source security group, not both.
-
- (associative-array)
-
PrefixListIds => (array<associative-array>)(Valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress and DescribeSecurityGroups only) One or more prefix list IDs for an AWS service. In an AuthorizeSecurityGroupEgress request, this is the AWS service that you want to access through a VPC endpoint from instances associated with the security group.
- (associative-array)
The ID of the prefix.
-
PrefixListId => (string)The ID of the prefix.
-
- (associative-array)
-
- (associative-array)
-
VpcId => (string)[EC2-VPC] The ID of the VPC for the security group.
-
Tags => (array<associative-array>)Any tags assigned to the security group.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeSnapshotAttribute operation.
Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.
For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeSnapshotAttribute(array( 'DryRun' => true || false, // SnapshotId is required 'SnapshotId' => 'string', // Attribute is required 'Attribute' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SnapshotId => (string)The ID of the EBS snapshot.
-
Attribute => (string:productCodes |createVolumePermission )The snapshot attribute you would like to view.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
SnapshotId => (string)The ID of the EBS snapshot.
-
CreateVolumePermissions => (array<associative-array>)A list of permissions for creating volumes from the snapshot.
- (associative-array)
Describes the user or group to be added or removed from the permissions for a volume.
-
UserId => (string)The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
-
Group => (string)The specific group that is to be added or removed from a volume's list of create volume permissions.
-
- (associative-array)
-
ProductCodes => (array<associative-array>)A list of product codes.
- (associative-array)
Describes a product code.
-
ProductCodeId => (string)The product code.
-
ProductCodeType => (string)The type of product code.
-
- (associative-array)
Executes the DescribeSnapshots operation.
Describes one or more of the EBS snapshots available to you. Available snapshots include public snapshots available for any AWS account to launch, private snapshots that you own, and private snapshots owned by another AWS account but for which you've been given explicit create volume permissions.
The create volume permissions fall into the following categories:
- public: The owner of the snapshot granted create volume permissions
for the snapshot to the
all group. All AWS accounts have create volume permissions for these snapshots. - explicit: The owner of the snapshot granted create volume permissions to a specific AWS account.
- implicit: An AWS account has implicit create volume permissions for all snapshots it owns.
The list of snapshots returned can be modified by specifying snapshot IDs, snapshot owners, or AWS accounts with create volume permissions. If no options are specified, Amazon EC2 returns all snapshots for which you have create volume permissions.
If you specify one or more snapshot IDs, only snapshots that have the specified IDs are returned. If you specify an invalid snapshot ID, an error is returned. If you specify a snapshot ID for which you do not have access, it is not included in the returned results.
If you specify one or more snapshot owners, only snapshots from the specified
owners and for which you have access are returned. The results can include the
AWS account IDs of the specified owners,
If you specify a list of restorable users, only snapshots with create
snapshot permissions for those users are returned. You can specify AWS account
IDs (if you own the snapshots),
If you are describing a long list of snapshots, you can paginate the output
to make the list more manageable. The
For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeSnapshots(array( 'DryRun' => true || false, 'SnapshotIds' => array('string', ... ), 'OwnerIds' => array('string', ... ), 'RestorableByUserIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'NextToken' => 'string', 'MaxResults' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SnapshotIds => (array<string>)One or more snapshot IDs.
Default: Describes snapshots for which you have launch permissions.
-
OwnerIds => (array<string>)Returns the snapshots owned by the specified owner. Multiple owners can be specified.
-
RestorableByUserIds => (array<string>)One or more AWS accounts IDs that can create volumes from the snapshot.
-
Filters => (array<associative-array>)One or more filters.
-
description - A description of the snapshot.
-
owner-alias - The AWS account alias (for example, amazon) that owns the snapshot.
-
owner-id - The ID of the AWS account that owns the snapshot.
-
progress - The progress of the snapshot, as a percentage (for example, 80%).
-
snapshot-id - The snapshot ID.
-
start-time - The time stamp when the snapshot was initiated.
-
status - The status of the snapshot (pending | completed | error).
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
volume-id - The ID of the volume the snapshot is for.
-
volume-size - The size of the volume, in GiB.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
NextToken => (string)The NextToken value returned from a previous paginated DescribeSnapshots request where MaxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return.
-
MaxResults => (int)The maximum number of snapshot results returned by DescribeSnapshots in paginated output. When this parameter is used, DescribeSnapshots only returns MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeSnapshots request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. If this parameter is not used, then DescribeSnapshots returns all results. You cannot specify this parameter and the snapshot IDs parameter in the same request.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Snapshots => (array<associative-array>)Information about the snapshots.
- (associative-array)
Describes a snapshot.
-
SnapshotId => (string)The ID of the snapshot. Each snapshot receives a unique identifier when it is created.
-
VolumeId => (string)The ID of the volume that was used to create the snapshot.
-
State => (string)The snapshot state.
-
StateMessage => (string)Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper AWS Key Management Service (AWS KMS) permissions are not obtained) this field displays error state details to help you diagnose why the error occurred. This parameter is only returned by the DescribeSnapshots API operation.
-
StartTime => (string)The time stamp when the snapshot was initiated.
-
Progress => (string)The progress of the snapshot, as a percentage.
-
OwnerId => (string)The AWS account ID of the EBS snapshot owner.
-
Description => (string)The description for the snapshot.
-
VolumeSize => (int)The size of the volume, in GiB.
-
OwnerAlias => (string)The AWS account alias (for example, amazon, self) or AWS account ID that owns the snapshot.
-
Tags => (array<associative-array>)Any tags assigned to the snapshot.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
Encrypted => (bool)Indicates whether the snapshot is encrypted.
-
KmsKeyId => (string)The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the parent volume.
-
DataEncryptionKeyId => (string)The data encryption key identifier for the snapshot. This value is a unique identifier that corresponds to the data encryption key that was used to encrypt the original volume or snapshot copy. Because data encryption keys are inherited by volumes created from snapshots, and vice versa, if snapshots share the same data encryption key identifier, then they belong to the same volume/snapshot lineage. This parameter is only returned by the DescribeSnapshots API operation.
-
- (associative-array)
-
NextToken => (string)The NextToken value to include in a future DescribeSnapshots request. When the results of a DescribeSnapshots request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.
Executes the DescribeSpotDatafeedSubscription operation.
Describes the data feed for Spot instances. For more information, see Spot Instance Data Feed in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeSpotDatafeedSubscription(array( 'DryRun' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
SpotDatafeedSubscription => (associative-array)The Spot instance data feed subscription.
-
OwnerId => (string)The AWS account ID of the account.
-
Bucket => (string)The Amazon S3 bucket where the Spot instance data feed is located.
-
Prefix => (string)The prefix that is prepended to data feed files.
-
State => (string)The state of the Spot instance data feed subscription.
-
Fault => (associative-array)The fault codes for the Spot instance request, if any.
-
Code => (string)The reason code for the Spot instance state change.
-
Message => (string)The message for the Spot instance state change.
-
-
Executes the DescribeSpotFleetInstances operation.
Describes the running instances for the specified Spot fleet.
Examples
- Basic formatting example
$result = $client->describeSpotFleetInstances(array( 'DryRun' => true || false, // SpotFleetRequestId is required 'SpotFleetRequestId' => 'string', 'NextToken' => 'string', 'MaxResults' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SpotFleetRequestId => (string)The ID of the Spot fleet request.
-
NextToken => (string)The token for the next set of results.
-
MaxResults => (int)The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
SpotFleetRequestId => (string)The ID of the Spot fleet request.
-
ActiveInstances => (array<associative-array>)The running instances. Note that this list is refreshed periodically and might be out of date.
- (associative-array)
Describes a running instance in a Spot fleet.
-
InstanceType => (string)The instance type.
-
InstanceId => (string)The ID of the instance.
-
SpotInstanceRequestId => (string)The ID of the Spot instance request.
-
- (associative-array)
-
NextToken => (string)The token required to retrieve the next set of results. This value is null when there are no more results to return.
Executes the DescribeSpotFleetRequestHistory operation.
Describes the events for the specified Spot fleet request during the specified time.
Spot fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event.
Examples
- Basic formatting example
$result = $client->describeSpotFleetRequestHistory(array( 'DryRun' => true || false, // SpotFleetRequestId is required 'SpotFleetRequestId' => 'string', 'EventType' => 'string', // StartTime is required 'StartTime' => 'string', 'NextToken' => 'string', 'MaxResults' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SpotFleetRequestId => (string)The ID of the Spot fleet request.
-
EventType => (string:instanceChange |fleetRequestChange |error )The type of events to describe. By default, all events are described.
-
StartTime => (string)The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
NextToken => (string)The token for the next set of results.
-
MaxResults => (int)The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
SpotFleetRequestId => (string)The ID of the Spot fleet request.
-
StartTime => (string)The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
LastEvaluatedTime => (string)The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). All records up to this time were retrieved.
If nextToken indicates that there are more results, this value is not present.
-
HistoryRecords => (array<associative-array>)Information about the events in the history of the Spot fleet request.
- (associative-array)
Describes an event in the history of the Spot fleet request.
-
Timestamp => (string)The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
EventType => (string)The event type.
-
error - Indicates an error with the Spot fleet request.
-
fleetRequestChange - Indicates a change in the status or configuration of the Spot fleet request.
-
instanceChange - Indicates that an instance was launched or terminated.
-
-
EventInformation => (associative-array)Information about the event.
-
InstanceId => (string)The ID of the instance. This information is available only for instanceChange events.
-
EventSubType => (string)The event.
The following are the error events.
-
iamFleetRoleInvalid - The Spot fleet did not have the required permissions either to launch or terminate an instance.
-
launchSpecTemporarilyBlacklisted - The configuration is not valid and several attempts to launch instances have failed. For more information, see the description of the event.
-
spotFleetRequestConfigurationInvalid - The configuration is not valid. For more information, see the description of the event.
-
spotInstanceCountLimitExceeded - You've reached the limit on the number of Spot instances that you can launch.
The following are the fleetRequestChange events.
-
active - The Spot fleet has been validated and Amazon EC2 is attempting to maintain the target number of running Spot instances.
-
cancelled - The Spot fleet is canceled and has no running Spot instances. The Spot fleet will be deleted two days after its instances were terminated.
-
cancelled_running - The Spot fleet is canceled and will not launch additional Spot instances, but its existing Spot instances continue to run until they are interrupted or terminated.
-
cancelled_terminating - The Spot fleet is canceled and its Spot instances are terminating.
-
expired - The Spot fleet request has expired. A subsequent event indicates that the instances were terminated, if the request was created with TerminateInstancesWithExpiration set.
-
modify_in_progress - A request to modify the Spot fleet request was accepted and is in progress.
-
modify_successful - The Spot fleet request was modified.
-
price_update - The bid price for a launch configuration was adjusted because it was too high. This change is permanent.
-
submitted - The Spot fleet request is being evaluated and Amazon EC2 is preparing to launch the target number of Spot instances.
The following are the instanceChange events.
-
launched - A bid was fulfilled and a new instance was launched.
-
terminated - An instance was terminated by the user.
-
-
EventDescription => (string)The description of the event.
-
-
- (associative-array)
-
NextToken => (string)The token required to retrieve the next set of results. This value is null when there are no more results to return.
Executes the DescribeSpotFleetRequests operation.
Describes your Spot fleet requests.
Examples
- Basic formatting example
$result = $client->describeSpotFleetRequests(array( 'DryRun' => true || false, 'SpotFleetRequestIds' => array('string', ... ), 'NextToken' => 'string', 'MaxResults' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SpotFleetRequestIds => (array<string>)The IDs of the Spot fleet requests.
-
NextToken => (string)The token for the next set of results.
-
MaxResults => (int)The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
SpotFleetRequestConfigs => (array<associative-array>)Information about the configuration of your Spot fleet.
- (associative-array)
Describes a Spot fleet request.
-
SpotFleetRequestId => (string)The ID of the Spot fleet request.
-
SpotFleetRequestState => (string)The state of the Spot fleet request.
-
SpotFleetRequestConfig => (associative-array)Information about the configuration of the Spot fleet request.
-
ClientToken => (string)A unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
-
SpotPrice => (string)The bid price per unit hour.
-
TargetCapacity => (int)The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O.
-
ValidFrom => (string)The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.
-
ValidUntil => (string)The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request.
-
TerminateInstancesWithExpiration => (bool)Indicates whether running Spot instances should be terminated when the Spot fleet request expires.
-
IamFleetRole => (string)Grants the Spot fleet permission to terminate Spot instances on your behalf when you cancel its Spot fleet request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set terminateInstancesWithExpiration.
-
LaunchSpecifications => (array<associative-array>)Information about the launch specifications for the Spot fleet request.
- (associative-array)
Describes the launch specification for one or more Spot instances.
-
ImageId => (string)The ID of the AMI.
-
KeyName => (string)The name of the key pair.
-
SecurityGroups => (array<associative-array>)One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
UserData => (string)The Base64-encoded MIME user data to make available to the instances.
-
AddressingType => (string)Deprecated.
-
InstanceType => (string)The instance type.
-
Placement => (associative-array)The placement information.
-
AvailabilityZone => (string)The Availability Zone.
-
GroupName => (string)The name of the placement group (for cluster instances).
-
-
KernelId => (string)The ID of the kernel.
-
RamdiskId => (string)The ID of the RAM disk.
-
BlockDeviceMappings => (array<associative-array>)One or more block device mapping entries.
- (associative-array)
Describes a block device mapping.
-
VirtualName => (string)The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
-
DeviceName => (string)The device name exposed to the instance (for example, /dev/sdh or xvdh).
-
Ebs => (associative-array)Parameters used to automatically set up EBS volumes when the instance is launched.
-
SnapshotId => (string)The ID of the snapshot.
-
VolumeSize => (int)The size of the volume, in GiB.
Constraints: 1-1024 for standard volumes, 1-16384 for gp2 volumes, and 4-16384 for io1 volumes. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
-
DeleteOnTermination => (bool)Indicates whether the EBS volume is deleted on instance termination.
-
VolumeType => (string)The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
Default: standard
-
Iops => (int)The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS (SSD) volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose (SSD) volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose (SSD) baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
-
Encrypted => (bool)Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption.
-
-
NoDevice => (string)Suppresses the specified device included in the block device mapping of the AMI.
-
- (associative-array)
-
Monitoring => (associative-array)Enable or disable monitoring for the instances.
-
Enabled => (bool)Enables monitoring for the instance.
Default: false
-
-
SubnetId => (string)The ID of the subnet in which to launch the instances.
-
NetworkInterfaces => (array<associative-array>)One or more network interfaces.
- (associative-array)
Describes a network interface.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
DeviceIndex => (int)The index of the device on the instance for the network interface attachment. If you are specifying a network interface in a RunInstances request, you must provide the device index.
-
SubnetId => (string)The ID of the subnet associated with the network string. Applies only if creating a network interface when launching an instance.
-
Description => (string)The description of the network interface. Applies only if creating a network interface when launching an instance.
-
PrivateIpAddress => (string)The private IP address of the network interface. Applies only if creating a network interface when launching an instance.
-
Groups => (array<string>)The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
-
DeleteOnTermination => (bool)If set to true, the interface is deleted when the instance is terminated. You can specify true only if creating a new network interface when launching an instance.
-
PrivateIpAddresses => (array<associative-array>)One or more private IP addresses to assign to the network interface. Only one private IP address can be designated as primary.
- (associative-array)
Describes a secondary private IP address for a network interface.
-
PrivateIpAddress => (string)The private IP addresses.
-
Primary => (bool)Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
-
- (associative-array)
-
SecondaryPrivateIpAddressCount => (int)The number of secondary private IP addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option.
-
AssociatePublicIpAddress => (bool)Indicates whether to assign a public IP address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.
-
- (associative-array)
-
IamInstanceProfile => (associative-array)The IAM instance profile.
-
Arn => (string)The Amazon Resource Name (ARN) of the instance profile.
-
Name => (string)The name of the instance profile.
-
-
EbsOptimized => (bool)Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default: false
-
WeightedCapacity => (int)The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms (instances or a performance characteristic such as vCPUs, memory, or I/O).
If the target capacity divided by this value is not a whole number, we round the number of instances to the next whole number. If this value is not specified, the default is 1.
-
SpotPrice => (string)The bid price per unit hour for the specified instance type. If this value is not specified, the default is the Spot bid price specified for the fleet. To determine the bid price per unit hour, divide the Spot bid price by the value of WeightedCapacity.
-
- (associative-array)
-
ExcessCapacityTerminationPolicy => (string)Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
-
AllocationStrategy => (string)Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The default is lowestPrice.
-
-
CreateTime => (string)The creation date and time of the request.
-
- (associative-array)
-
NextToken => (string)The token required to retrieve the next set of results. This value is null when there are no more results to return.
Executes the DescribeSpotInstanceRequests operation.
Describes the Spot instance requests that belong to your account. Spot instances are instances that Amazon EC2 launches when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot instance capacity and current Spot instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.
You can use
Examples
- Basic formatting example
$result = $client->describeSpotInstanceRequests(array( 'DryRun' => true || false, 'SpotInstanceRequestIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SpotInstanceRequestIds => (array<string>)One or more Spot instance request IDs.
-
Filters => (array<associative-array>)One or more filters.
-
availability-zone-group - The Availability Zone group.
-
create-time - The time stamp when the Spot instance request was created.
-
fault-code - The fault code related to the request.
-
fault-message - The fault message related to the request.
-
instance-id - The ID of the instance that fulfilled the request.
-
launch-group - The Spot instance launch group.
-
launch.block-device-mapping.delete-on-termination - Indicates whether the Amazon EBS volume is deleted on instance termination.
-
launch.block-device-mapping.device-name - The device name for the Amazon EBS volume (for example, /dev/sdh).
-
launch.block-device-mapping.snapshot-id - The ID of the snapshot used for the Amazon EBS volume.
-
launch.block-device-mapping.volume-size - The size of the Amazon EBS volume, in GiB.
-
launch.block-device-mapping.volume-type - The type of the Amazon EBS volume (gp2 | standard | io1).
-
launch.group-id - The security group for the instance.
-
launch.image-id - The ID of the AMI.
-
launch.instance-type - The type of instance (for example, m1.small).
-
launch.kernel-id - The kernel ID.
-
launch.key-name - The name of the key pair the instance launched with.
-
launch.monitoring-enabled - Whether monitoring is enabled for the Spot instance.
-
launch.ramdisk-id - The RAM disk ID.
-
network-interface.network-interface-id - The ID of the network interface.
-
network-interface.device-index - The index of the device for the network interface attachment on the instance.
-
network-interface.subnet-id - The ID of the subnet for the instance.
-
network-interface.description - A description of the network interface.
-
network-interface.private-ip-address - The primary private IP address of the network interface.
-
network-interface.delete-on-termination - Indicates whether the network interface is deleted when the instance is terminated.
-
network-interface.group-id - The ID of the security group associated with the network interface.
-
network-interface.group-name - The name of the security group associated with the network interface.
-
network-interface.addresses.primary - Indicates whether the IP address is the primary private IP address.
-
product-description - The product description associated with the instance (Linux/UNIX | Windows).
-
spot-instance-request-id - The Spot instance request ID.
-
spot-price - The maximum hourly price for any Spot instance launched to fulfill the request.
-
state - The state of the Spot instance request (open | active | closed | cancelled | failed). Spot bid status information can help you track your Amazon EC2 Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.
-
status-code - The short code describing the most recent evaluation of your Spot instance request.
-
status-message - The message explaining the status of the Spot instance request.
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
type - The type of Spot instance request (one-time | persistent).
-
launched-availability-zone - The Availability Zone in which the bid is launched.
-
valid-from - The start date of the request.
-
valid-until - The end date of the request.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
SpotInstanceRequests => (array<associative-array>)One or more Spot instance requests.
- (associative-array)
Describes a Spot instance request.
-
SpotInstanceRequestId => (string)The ID of the Spot instance request.
-
SpotPrice => (string)The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
-
Type => (string)The Spot instance request type.
-
State => (string)The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.
-
Fault => (associative-array)The fault codes for the Spot instance request, if any.
-
Code => (string)The reason code for the Spot instance state change.
-
Message => (string)The message for the Spot instance state change.
-
-
Status => (associative-array)The status code and status message describing the Spot instance request.
-
Code => (string)The status code.
-
UpdateTime => (string)The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
Message => (string)The description for the status code.
-
-
ValidFrom => (string)The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The request becomes active at this date and time.
-
ValidUntil => (string)The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). If this is a one-time request, it remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached.
-
LaunchGroup => (string)The instance launch group. Launch groups are Spot instances that launch together and terminate together.
-
AvailabilityZoneGroup => (string)The Availability Zone group. If you specify the same Availability Zone group for all Spot instance requests, all Spot instances are launched in the same Availability Zone.
-
LaunchSpecification => (associative-array)Additional information for launching instances.
-
ImageId => (string)The ID of the AMI.
-
KeyName => (string)The name of the key pair.
-
SecurityGroups => (array<associative-array>)One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
UserData => (string)The Base64-encoded MIME user data to make available to the instances.
-
AddressingType => (string)Deprecated.
-
InstanceType => (string)The instance type.
-
Placement => (associative-array)The placement information for the instance.
-
AvailabilityZone => (string)The Availability Zone.
-
GroupName => (string)The name of the placement group (for cluster instances).
-
-
KernelId => (string)The ID of the kernel.
-
RamdiskId => (string)The ID of the RAM disk.
-
BlockDeviceMappings => (array<associative-array>)One or more block device mapping entries.
- (associative-array)
Describes a block device mapping.
-
VirtualName => (string)The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
-
DeviceName => (string)The device name exposed to the instance (for example, /dev/sdh or xvdh).
-
Ebs => (associative-array)Parameters used to automatically set up EBS volumes when the instance is launched.
-
SnapshotId => (string)The ID of the snapshot.
-
VolumeSize => (int)The size of the volume, in GiB.
Constraints: 1-1024 for standard volumes, 1-16384 for gp2 volumes, and 4-16384 for io1 volumes. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
-
DeleteOnTermination => (bool)Indicates whether the EBS volume is deleted on instance termination.
-
VolumeType => (string)The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
Default: standard
-
Iops => (int)The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS (SSD) volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose (SSD) volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose (SSD) baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
-
Encrypted => (bool)Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption.
-
-
NoDevice => (string)Suppresses the specified device included in the block device mapping of the AMI.
-
- (associative-array)
-
MonitoringEnabled => (bool)Enables monitoring for the instance.
Default: Disabled
-
SubnetId => (string)The ID of the subnet in which to launch the instance.
-
NetworkInterfaces => (array<associative-array>)One or more network interfaces.
- (associative-array)
Describes a network interface.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
DeviceIndex => (int)The index of the device on the instance for the network interface attachment. If you are specifying a network interface in a RunInstances request, you must provide the device index.
-
SubnetId => (string)The ID of the subnet associated with the network string. Applies only if creating a network interface when launching an instance.
-
Description => (string)The description of the network interface. Applies only if creating a network interface when launching an instance.
-
PrivateIpAddress => (string)The private IP address of the network interface. Applies only if creating a network interface when launching an instance.
-
Groups => (array<string>)The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
-
DeleteOnTermination => (bool)If set to true, the interface is deleted when the instance is terminated. You can specify true only if creating a new network interface when launching an instance.
-
PrivateIpAddresses => (array<associative-array>)One or more private IP addresses to assign to the network interface. Only one private IP address can be designated as primary.
- (associative-array)
Describes a secondary private IP address for a network interface.
-
PrivateIpAddress => (string)The private IP addresses.
-
Primary => (bool)Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
-
- (associative-array)
-
SecondaryPrivateIpAddressCount => (int)The number of secondary private IP addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option.
-
AssociatePublicIpAddress => (bool)Indicates whether to assign a public IP address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.
-
- (associative-array)
-
IamInstanceProfile => (associative-array)The IAM instance profile.
-
Arn => (string)The Amazon Resource Name (ARN) of the instance profile.
-
Name => (string)The name of the instance profile.
-
-
EbsOptimized => (bool)Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default: false
-
-
InstanceId => (string)The instance ID, if an instance has been launched to fulfill the Spot instance request.
-
CreateTime => (string)The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
ProductDescription => (string)The product description associated with the Spot instance.
-
BlockDurationMinutes => (int)The required duration for the Spot instance, in minutes.
-
ActualBlockHourlyPrice => (string)If you specified a required duration and your request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.
-
Tags => (array<associative-array>)Any tags assigned to the resource.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
LaunchedAvailabilityZone => (string)The Availability Zone in which the bid is launched.
-
- (associative-array)
Executes the DescribeSpotPriceHistory operation.
Describes the Spot price history. The prices returned are listed in chronological order, from the oldest to the most recent, for up to the past 90 days. For more information, see Spot Instance Pricing History in the Amazon Elastic Compute Cloud User Guide.
When you specify a start and end time, this operation returns the prices of the instance types within the time range that you specified and the time when the price changed. The price is valid within the time period that you specified; the response merely indicates the last time that the price changed.
Examples
- Basic formatting example
$result = $client->describeSpotPriceHistory(array( 'DryRun' => true || false, 'StartTime' => 'mixed type: string (date format)|int (unix timestamp)|\DateTime', 'EndTime' => 'mixed type: string (date format)|int (unix timestamp)|\DateTime', 'InstanceTypes' => array('string', ... ), 'ProductDescriptions' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'AvailabilityZone' => 'string', 'MaxResults' => integer, 'NextToken' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
StartTime => (string [date format]|int [unix timestamp]|\DateTime)The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
EndTime => (string [date format]|int [unix timestamp]|\DateTime)The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
InstanceTypes => (array<string:t1.micro |m1.small |m1.medium |m1.large |m1.xlarge |m3.medium |m3.large |m3.xlarge |m3.2xlarge |m4.large |m4.xlarge |m4.2xlarge |m4.4xlarge |m4.10xlarge |t2.micro |t2.small |t2.medium |t2.large |m2.xlarge |m2.2xlarge |m2.4xlarge |cr1.8xlarge |i2.xlarge |i2.2xlarge |i2.4xlarge |i2.8xlarge |hi1.4xlarge |hs1.8xlarge |c1.medium |c1.xlarge |c3.large |c3.xlarge |c3.2xlarge |c3.4xlarge |c3.8xlarge |c4.large |c4.xlarge |c4.2xlarge |c4.4xlarge |c4.8xlarge |cc1.4xlarge |cc2.8xlarge |g2.2xlarge |cg1.4xlarge |r3.large |r3.xlarge |r3.2xlarge |r3.4xlarge |r3.8xlarge |d2.xlarge |d2.2xlarge |d2.4xlarge |d2.8xlarge >)Filters the results by the specified instance types.
-
ProductDescriptions => (array<string>)Filters the results by the specified basic product descriptions.
-
Filters => (array<associative-array>)One or more filters.
-
availability-zone - The Availability Zone for which prices should be returned.
-
instance-type - The type of instance (for example, m1.small).
-
product-description - The product description for the Spot price (Linux/UNIX | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)).
-
spot-price - The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported).
-
timestamp - The timestamp of the Spot price history, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
AvailabilityZone => (string)Filters the results by the specified Availability Zone.
-
MaxResults => (int)The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.
-
NextToken => (string)The token for the next set of results.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
SpotPriceHistory => (array<associative-array>)The historical Spot prices.
- (associative-array)
Describes the maximum hourly price (bid) for any Spot instance launched to fulfill the request.
-
InstanceType => (string)The instance type.
-
ProductDescription => (string)A general description of the AMI.
-
SpotPrice => (string)The maximum price (bid) that you are willing to pay for a Spot instance.
-
Timestamp => (string)The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
AvailabilityZone => (string)The Availability Zone.
-
- (associative-array)
-
NextToken => (string)The token required to retrieve the next set of results. This value is null when there are no more results to return.
Executes the DescribeSubnets operation.
Describes one or more of your subnets.
For more information about subnets, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeSubnets(array( 'DryRun' => true || false, 'SubnetIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SubnetIds => (array<string>)One or more subnet IDs.
Default: Describes all your subnets.
-
Filters => (array<associative-array>)One or more filters.
-
availabilityZone - The Availability Zone for the subnet. You can also use availability-zone as the filter name.
-
available-ip-address-count - The number of IP addresses in the subnet that are available.
-
cidrBlock - The CIDR block of the subnet. The CIDR block you specify must exactly match the subnet's CIDR block for information to be returned for the subnet. You can also use cidr or cidr-block as the filter names.
-
defaultForAz - Indicates whether this is the default subnet for the Availability Zone. You can also use default-for-az as the filter name.
-
state - The state of the subnet (pending | available).
-
subnet-id - The ID of the subnet.
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
vpc-id - The ID of the VPC for the subnet.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Subnets => (array<associative-array>)Information about one or more subnets.
- (associative-array)
Describes a subnet.
-
SubnetId => (string)The ID of the subnet.
-
State => (string)The current state of the subnet.
-
VpcId => (string)The ID of the VPC the subnet is in.
-
CidrBlock => (string)The CIDR block assigned to the subnet.
-
AvailableIpAddressCount => (int)The number of unused IP addresses in the subnet. Note that the IP addresses for any stopped instances are considered unavailable.
-
AvailabilityZone => (string)The Availability Zone of the subnet.
-
DefaultForAz => (bool)Indicates whether this is the default subnet for the Availability Zone.
-
MapPublicIpOnLaunch => (bool)Indicates whether instances launched in this subnet receive a public IP address.
-
Tags => (array<associative-array>)Any tags assigned to the subnet.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeTags operation.
Describes one or more of the tags for your EC2 resources.
For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeTags(array( 'DryRun' => true || false, 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'MaxResults' => integer, 'NextToken' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Filters => (array<associative-array>)One or more filters.
-
key - The tag key.
-
resource-id - The resource ID.
-
resource-type - The resource type (customer-gateway | dhcp-options | image | instance | internet-gateway | network-acl | network-interface | reserved-instances | route-table | security-group | snapshot | spot-instances-request | subnet | volume | vpc | vpn-connection | vpn-gateway).
-
value - The tag value.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
MaxResults => (int)The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned.
-
NextToken => (string)The token to retrieve the next page of results.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Tags => (array<associative-array>)A list of tags.
- (associative-array)
Describes a tag.
-
ResourceId => (string)The ID of the resource. For example, ami-1a2b3c4d.
-
ResourceType => (string)The resource type.
-
Key => (string)The tag key.
-
Value => (string)The tag value.
-
- (associative-array)
-
NextToken => (string)The token to use to retrieve the next page of results. This value is null when there are no more results to return..
Executes the DescribeVolumeAttribute operation.
Describes the specified attribute of the specified volume. You can specify only one attribute at a time.
For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeVolumeAttribute(array( 'DryRun' => true || false, // VolumeId is required 'VolumeId' => 'string', 'Attribute' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VolumeId => (string)The ID of the volume.
-
Attribute => (string:autoEnableIO |productCodes )The instance attribute.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VolumeId => (string)The ID of the volume.
-
AutoEnableIO => (associative-array)The state of autoEnableIO attribute.
-
Value => (bool)Valid values are true or false.
-
-
ProductCodes => (array<associative-array>)A list of product codes.
- (associative-array)
Describes a product code.
-
ProductCodeId => (string)The product code.
-
ProductCodeType => (string)The type of product code.
-
- (associative-array)
Executes the DescribeVolumeStatus operation.
Describes the status of the specified volumes. Volume status provides the result of the checks performed on your volumes to determine events that can impair the performance of your volumes. The performance of a volume can be affected if an issue occurs on the volume's underlying host. If the volume's underlying host experiences a power outage or system issue, after the system is restored, there could be data inconsistencies on the volume. Volume events notify you if this occurs. Volume actions notify you if any action needs to be taken in response to the event.
The
Status: Reflects the current status of the volume. The possible values
are
Events: Reflect the cause of a volume status and may require you to
take action. For example, if your volume returns an
Actions: Reflect the actions you may have to take in response to an
event. For example, if the status of the volume is
Volume status is based on the volume status checks, and does not reflect the
volume state. Therefore, volume status does not indicate volumes in the
Examples
- Basic formatting example
$result = $client->describeVolumeStatus(array( 'DryRun' => true || false, 'VolumeIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'NextToken' => 'string', 'MaxResults' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VolumeIds => (array<string>)One or more volume IDs.
Default: Describes all your volumes.
-
Filters => (array<associative-array>)One or more filters.
-
action.code - The action code for the event (for example, enable-volume-io).
-
action.description - A description of the action.
-
action.event-id - The event ID associated with the action.
-
availability-zone - The Availability Zone of the instance.
-
event.description - A description of the event.
-
event.event-id - The event ID.
-
event.event-type - The event type (for io-enabled: passed | failed; for io-performance: io-performance:degraded | io-performance:severely-degraded | io-performance:stalled).
-
event.not-after - The latest end time for the event.
-
event.not-before - The earliest start time for the event.
-
volume-status.details-name - The cause for volume-status.status (io-enabled | io-performance).
-
volume-status.details-status - The status of volume-status.details-name (for io-enabled: passed | failed; for io-performance: normal | degraded | severely-degraded | stalled).
-
volume-status.status - The status of the volume (ok | impaired | warning | insufficient-data).
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
NextToken => (string)The NextToken value to include in a future DescribeVolumeStatus request. When the results of the request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.
-
MaxResults => (int)The maximum number of volume results returned by DescribeVolumeStatus in paginated output. When this parameter is used, the request only returns MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. If this parameter is not used, then DescribeVolumeStatus returns all results. You cannot specify this parameter and the volume IDs parameter in the same request.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VolumeStatuses => (array<associative-array>)A list of volumes.
- (associative-array)
Describes the volume status.
-
VolumeId => (string)The volume ID.
-
AvailabilityZone => (string)The Availability Zone of the volume.
-
VolumeStatus => (associative-array)The volume status.
-
Status => (string)The status of the volume.
-
Details => (array<associative-array>)The details of the volume status.
- (associative-array)
Describes a volume status.
-
Name => (string)The name of the volume status.
-
Status => (string)The intended status of the volume status.
-
- (associative-array)
-
-
Events => (array<associative-array>)A list of events associated with the volume.
- (associative-array)
Describes a volume status event.
-
EventType => (string)The type of this event.
-
Description => (string)A description of the event.
-
NotBefore => (string)The earliest start time of the event.
-
NotAfter => (string)The latest end time of the event.
-
EventId => (string)The ID of this event.
-
- (associative-array)
-
Actions => (array<associative-array>)The details of the operation.
- (associative-array)
Describes a volume status operation code.
-
Code => (string)The code identifying the operation, for example, enable-volume-io.
-
Description => (string)A description of the operation.
-
EventType => (string)The event type associated with this operation.
-
EventId => (string)The ID of the event associated with this operation.
-
- (associative-array)
-
- (associative-array)
-
NextToken => (string)The token to use to retrieve the next page of results. This value is null when there are no more results to return.
Executes the DescribeVolumes operation.
Describes the specified EBS volumes.
If you are describing a long list of volumes, you can paginate the output to
make the list more manageable. The
For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeVolumes(array( 'DryRun' => true || false, 'VolumeIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'NextToken' => 'string', 'MaxResults' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VolumeIds => (array<string>)One or more volume IDs.
-
Filters => (array<associative-array>)One or more filters.
-
attachment.attach-time - The time stamp when the attachment initiated.
-
attachment.delete-on-termination - Whether the volume is deleted on instance termination.
-
attachment.device - The device name that is exposed to the instance (for example, /dev/sda1).
-
attachment.instance-id - The ID of the instance the volume is attached to.
-
attachment.status - The attachment state (attaching | attached | detaching | detached).
-
availability-zone - The Availability Zone in which the volume was created.
-
create-time - The time stamp when the volume was created.
-
encrypted - The encryption status of the volume.
-
size - The size of the volume, in GiB.
-
snapshot-id - The snapshot from which the volume was created.
-
status - The status of the volume (creating | available | in-use | deleting | deleted | error).
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
volume-id - The volume ID.
-
volume-type - The Amazon EBS volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
NextToken => (string)The NextToken value returned from a previous paginated DescribeVolumes request where MaxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return.
-
MaxResults => (int)The maximum number of volume results returned by DescribeVolumes in paginated output. When this parameter is used, DescribeVolumes only returns MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeVolumes request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. If this parameter is not used, then DescribeVolumes returns all results. You cannot specify this parameter and the volume IDs parameter in the same request.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Volumes => (array<associative-array>)Information about the volumes.
- (associative-array)
Describes a volume.
-
VolumeId => (string)The ID of the volume.
-
Size => (int)The size of the volume, in GiBs.
-
SnapshotId => (string)The snapshot from which the volume was created, if applicable.
-
AvailabilityZone => (string)The Availability Zone for the volume.
-
State => (string)The volume state.
-
CreateTime => (string)The time stamp when volume creation was initiated.
-
Attachments => (array<associative-array>)Information about the volume attachments.
- (associative-array)
Describes volume attachment details.
-
VolumeId => (string)The ID of the volume.
-
InstanceId => (string)The ID of the instance.
-
Device => (string)The device name.
-
State => (string)The attachment state of the volume.
-
AttachTime => (string)The time stamp when the attachment initiated.
-
DeleteOnTermination => (bool)Indicates whether the EBS volume is deleted on instance termination.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the volume.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
VolumeType => (string)The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes.
-
Iops => (int)The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS (SSD) volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose (SSD) volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose (SSD) baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
-
Encrypted => (bool)Indicates whether the volume will be encrypted.
-
KmsKeyId => (string)The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the volume.
-
- (associative-array)
-
NextToken => (string)The NextToken value to include in a future DescribeVolumes request. When the results of a DescribeVolumes request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.
Executes the DescribeVpcAttribute operation.
Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.
Examples
- Basic formatting example
$result = $client->describeVpcAttribute(array( 'DryRun' => true || false, // VpcId is required 'VpcId' => 'string', // Attribute is required 'Attribute' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcId => (string)The ID of the VPC.
-
Attribute => (string:enableDnsSupport |enableDnsHostnames )The VPC attribute.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VpcId => (string)The ID of the VPC.
-
EnableDnsSupport => (associative-array)Indicates whether DNS resolution is enabled for the VPC. If this attribute is true, the Amazon DNS server resolves DNS hostnames for your instances to their corresponding IP addresses; otherwise, it does not.
-
Value => (bool)Valid values are true or false.
-
-
EnableDnsHostnames => (associative-array)Indicates whether the instances launched in the VPC get DNS hostnames. If this attribute is true, instances in the VPC get DNS hostnames; otherwise, they do not.
-
Value => (bool)Valid values are true or false.
-
Executes the DescribeVpcClassicLink operation.
Describes the ClassicLink status of one or more VPCs.
Examples
- Basic formatting example
$result = $client->describeVpcClassicLink(array( 'DryRun' => true || false, 'VpcIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcIds => (array<string>)One or more VPCs for which you want to describe the ClassicLink status.
-
Filters => (array<associative-array>)One or more filters.
-
is-classic-link-enabled - Whether the VPC is enabled for ClassicLink (true | false).
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Vpcs => (array<associative-array>)The ClassicLink status of one or more VPCs.
- (associative-array)
Describes whether a VPC is enabled for ClassicLink.
-
VpcId => (string)The ID of the VPC.
-
ClassicLinkEnabled => (bool)Indicates whether the VPC is enabled for ClassicLink.
-
Tags => (array<associative-array>)Any tags assigned to the VPC.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeVpcEndpointServices operation.
Describes all supported AWS services that can be specified when creating a VPC endpoint.
Examples
- Basic formatting example
$result = $client->describeVpcEndpointServices(array( 'DryRun' => true || false, 'MaxResults' => integer, 'NextToken' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
MaxResults => (int)The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.
Constraint: If the value is greater than 1000, we return only 1000 items.
-
NextToken => (string)The token for the next set of items to return. (You received this token from a prior call.)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ServiceNames => (array<string>)A list of supported AWS services.
-
NextToken => (string)The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
Executes the DescribeVpcEndpoints operation.
Describes one or more of your VPC endpoints.
Examples
- Basic formatting example
$result = $client->describeVpcEndpoints(array( 'DryRun' => true || false, 'VpcEndpointIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), 'MaxResults' => integer, 'NextToken' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcEndpointIds => (array<string>)One or more endpoint IDs.
-
Filters => (array<associative-array>)One or more filters.
-
service-name: The name of the AWS service.
-
vpc-id: The ID of the VPC in which the endpoint resides.
-
vpc-endpoint-id: The ID of the endpoint.
-
vpc-endpoint-state: The state of the endpoint. (pending | available | deleting | deleted)
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
MaxResults => (int)The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.
Constraint: If the value is greater than 1000, we return only 1000 items.
-
NextToken => (string)The token for the next set of items to return. (You received this token from a prior call.)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VpcEndpoints => (array<associative-array>)Information about the endpoints.
- (associative-array)
Describes a VPC endpoint.
-
VpcEndpointId => (string)The ID of the VPC endpoint.
-
VpcId => (string)The ID of the VPC to which the endpoint is associated.
-
ServiceName => (string)The name of the AWS service to which the endpoint is associated.
-
State => (string)The state of the VPC endpoint.
-
PolicyDocument => (string)The policy document associated with the endpoint.
-
RouteTableIds => (array<string>)One or more route tables associated with the endpoint.
-
CreationTimestamp => (string)The date and time the VPC endpoint was created.
-
- (associative-array)
-
NextToken => (string)The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
Executes the DescribeVpcPeeringConnections operation.
Describes one or more of your VPC peering connections.
Examples
- Basic formatting example
$result = $client->describeVpcPeeringConnections(array( 'DryRun' => true || false, 'VpcPeeringConnectionIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcPeeringConnectionIds => (array<string>)One or more VPC peering connection IDs.
Default: Describes all your VPC peering connections.
-
Filters => (array<associative-array>)One or more filters.
-
accepter-vpc-info.cidr-block - The CIDR block of the peer VPC.
-
accepter-vpc-info.owner-id - The AWS account ID of the owner of the peer VPC.
-
accepter-vpc-info.vpc-id - The ID of the peer VPC.
-
expiration-time - The expiration date and time for the VPC peering connection.
-
requester-vpc-info.cidr-block - The CIDR block of the requester's VPC.
-
requester-vpc-info.owner-id - The AWS account ID of the owner of the requester VPC.
-
requester-vpc-info.vpc-id - The ID of the requester VPC.
-
status-code - The status of the VPC peering connection (pending-acceptance | failed | expired | provisioning | active | deleted | rejected).
-
status-message - A message that provides more information about the status of the VPC peering connection, if applicable.
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
vpc-peering-connection-id - The ID of the VPC peering connection.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VpcPeeringConnections => (array<associative-array>)Information about the VPC peering connections.
- (associative-array)
Describes a VPC peering connection.
-
AccepterVpcInfo => (associative-array)The information of the peer VPC.
-
CidrBlock => (string)The CIDR block for the VPC.
-
OwnerId => (string)The AWS account ID of the VPC owner.
-
VpcId => (string)The ID of the VPC.
-
-
ExpirationTime => (string)The time that an unaccepted VPC peering connection will expire.
-
RequesterVpcInfo => (associative-array)The information of the requester VPC.
-
CidrBlock => (string)The CIDR block for the VPC.
-
OwnerId => (string)The AWS account ID of the VPC owner.
-
VpcId => (string)The ID of the VPC.
-
-
Status => (associative-array)The status of the VPC peering connection.
-
Code => (string)The status of the VPC peering connection.
-
Message => (string)A message that provides more information about the status, if applicable.
-
-
Tags => (array<associative-array>)Any tags assigned to the resource.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
VpcPeeringConnectionId => (string)The ID of the VPC peering connection.
-
- (associative-array)
Executes the DescribeVpcs operation.
Describes one or more of your VPCs.
Examples
- Basic formatting example
$result = $client->describeVpcs(array( 'DryRun' => true || false, 'VpcIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcIds => (array<string>)One or more VPC IDs.
Default: Describes all your VPCs.
-
Filters => (array<associative-array>)One or more filters.
-
cidr - The CIDR block of the VPC. The CIDR block you specify must exactly match the VPC's CIDR block for information to be returned for the VPC. Must contain the slash followed by one or two digits (for example, /28).
-
dhcp-options-id - The ID of a set of DHCP options.
-
isDefault - Indicates whether the VPC is the default VPC.
-
state - The state of the VPC (pending | available).
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
vpc-id - The ID of the VPC.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Vpcs => (array<associative-array>)Information about one or more VPCs.
- (associative-array)
Describes a VPC.
-
VpcId => (string)The ID of the VPC.
-
State => (string)The current state of the VPC.
-
CidrBlock => (string)The CIDR block for the VPC.
-
DhcpOptionsId => (string)The ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC).
-
Tags => (array<associative-array>)Any tags assigned to the VPC.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
InstanceTenancy => (string)The allowed tenancy of instances launched into the VPC.
-
IsDefault => (bool)Indicates whether the VPC is the default VPC.
-
- (associative-array)
Executes the DescribeVpnConnections operation.
Describes one or more of your VPN connections.
For more information about VPN connections, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeVpnConnections(array( 'DryRun' => true || false, 'VpnConnectionIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpnConnectionIds => (array<string>)One or more VPN connection IDs.
Default: Describes your VPN connections.
-
Filters => (array<associative-array>)One or more filters.
-
customer-gateway-configuration - The configuration information for the customer gateway.
-
customer-gateway-id - The ID of a customer gateway associated with the VPN connection.
-
state - The state of the VPN connection (pending | available | deleting | deleted).
-
option.static-routes-only - Indicates whether the connection has static routes only. Used for devices that do not support Border Gateway Protocol (BGP).
-
route.destination-cidr-block - The destination CIDR block. This corresponds to the subnet used in a customer data center.
-
bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP device.
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
type - The type of VPN connection. Currently the only supported type is ipsec.1.
-
vpn-connection-id - The ID of the VPN connection.
-
vpn-gateway-id - The ID of a virtual private gateway associated with the VPN connection.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VpnConnections => (array<associative-array>)Information about one or more VPN connections.
- (associative-array)
Describes a VPN connection.
-
VpnConnectionId => (string)The ID of the VPN connection.
-
State => (string)The current state of the VPN connection.
-
CustomerGatewayConfiguration => (string)The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in the pending or available state.
-
Type => (string)The type of VPN connection.
-
CustomerGatewayId => (string)The ID of the customer gateway at your end of the VPN connection.
-
VpnGatewayId => (string)The ID of the virtual private gateway at the AWS side of the VPN connection.
-
Tags => (array<associative-array>)Any tags assigned to the VPN connection.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
VgwTelemetry => (array<associative-array>)Information about the VPN tunnel.
- (associative-array)
Describes telemetry for a VPN tunnel.
-
OutsideIpAddress => (string)The Internet-routable IP address of the virtual private gateway's outside interface.
-
Status => (string)The status of the VPN tunnel.
-
LastStatusChange => (string)The date and time of the last change in status.
-
StatusMessage => (string)If an error occurs, a description of the error.
-
AcceptedRouteCount => (int)The number of accepted routes.
-
- (associative-array)
-
Options => (associative-array)The VPN connection options.
-
StaticRoutesOnly => (bool)Indicates whether the VPN connection uses static routes only. Static routes must be used for devices that don't support BGP.
-
-
Routes => (array<associative-array>)The static routes associated with the VPN connection.
- (associative-array)
Describes a static route for a VPN connection.
-
DestinationCidrBlock => (string)The CIDR block associated with the local subnet of the customer data center.
-
Source => (string)Indicates how the routes were provided.
-
State => (string)The current state of the static route.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeVpnGateways operation.
Describes one or more of your virtual private gateways.
For more information about virtual private gateways, see Adding an IPsec Hardware VPN to Your VPC in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->describeVpnGateways(array( 'DryRun' => true || false, 'VpnGatewayIds' => array('string', ... ), 'Filters' => array( array( 'Name' => 'string', 'Values' => array('string', ... ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpnGatewayIds => (array<string>)One or more virtual private gateway IDs.
Default: Describes all your virtual private gateways.
-
Filters => (array<associative-array>)One or more filters.
-
attachment.state - The current state of the attachment between the gateway and the VPC (attaching | attached | detaching | detached).
-
attachment.vpc-id - The ID of an attached VPC.
-
availability-zone - The Availability Zone for the virtual private gateway.
-
state - The state of the virtual private gateway (pending | available | deleting | deleted).
-
tag:key=value - The key/value combination of a tag assigned to the resource.
-
tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.
-
tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.
-
type - The type of virtual private gateway. Currently the only supported type is ipsec.1.
-
vpn-gateway-id - The ID of the virtual private gateway.
- (associative-array)
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.
-
Name => (string)The name of the filter. Filter names are case-sensitive.
-
Values => (array<string>)One or more filter values. Filter values are case-sensitive.
-
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VpnGateways => (array<associative-array>)Information about one or more virtual private gateways.
- (associative-array)
Describes a virtual private gateway.
-
VpnGatewayId => (string)The ID of the virtual private gateway.
-
State => (string)The current state of the virtual private gateway.
-
Type => (string)The type of VPN connection the virtual private gateway supports.
-
AvailabilityZone => (string)The Availability Zone where the virtual private gateway was created.
-
VpcAttachments => (array<associative-array>)Any VPCs attached to the virtual private gateway.
- (associative-array)
Describes an attachment between a virtual private gateway and a VPC.
-
VpcId => (string)The ID of the VPC.
-
State => (string)The current state of the attachment.
-
- (associative-array)
-
Tags => (array<associative-array>)Any tags assigned to the virtual private gateway.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
- (associative-array)
Executes the DetachClassicLinkVpc operation.
Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it's stopped.
Examples
- Basic formatting example
$result = $client->detachClassicLinkVpc(array( 'DryRun' => true || false, // InstanceId is required 'InstanceId' => 'string', // VpcId is required 'VpcId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceId => (string)The ID of the instance to unlink from the VPC.
-
VpcId => (string)The ID of the VPC to which the instance is linked.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Return => (bool)Returns true if the request succeeds; otherwise, it returns an error.
Executes the DetachInternetGateway operation.
Detaches an Internet gateway from a VPC, disabling connectivity between the Internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses.
Examples
- Basic formatting example
$result = $client->detachInternetGateway(array( 'DryRun' => true || false, // InternetGatewayId is required 'InternetGatewayId' => 'string', // VpcId is required 'VpcId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InternetGatewayId => (string)The ID of the Internet gateway.
-
VpcId => (string)The ID of the VPC.
-
Returns
Executes the DetachNetworkInterface operation.
Detaches a network interface from an instance.
Examples
- Basic formatting example
$result = $client->detachNetworkInterface(array( 'DryRun' => true || false, // AttachmentId is required 'AttachmentId' => 'string', 'Force' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
AttachmentId => (string)The ID of the attachment.
-
Force => (bool)Specifies whether to force a detachment.
-
Returns
Executes the DetachVolume operation.
Detaches an EBS volume from an instance. Make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to do so results in the volume being stuck in a busy state while detaching.
If an Amazon EBS volume is the root device of an instance, it can't be detached while the instance is running. To detach the root volume, stop the instance first.
When a volume with an AWS Marketplace product code is detached from an instance, the product code is no longer associated with the instance.
For more information, see Detaching an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->detachVolume(array( 'DryRun' => true || false, // VolumeId is required 'VolumeId' => 'string', 'InstanceId' => 'string', 'Device' => 'string', 'Force' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VolumeId => (string)The ID of the volume.
-
InstanceId => (string)The ID of the instance.
-
Device => (string)The device name.
-
Force => (bool)Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance won't have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
VolumeId => (string)The ID of the volume.
-
InstanceId => (string)The ID of the instance.
-
Device => (string)The device name.
-
State => (string)The attachment state of the volume.
-
AttachTime => (string)The time stamp when the attachment initiated.
-
DeleteOnTermination => (bool)Indicates whether the EBS volume is deleted on instance termination.
Executes the DetachVpnGateway operation.
Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).
You must wait for the attachment's state to switch to
Examples
- Basic formatting example
$result = $client->detachVpnGateway(array( 'DryRun' => true || false, // VpnGatewayId is required 'VpnGatewayId' => 'string', // VpcId is required 'VpcId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpnGatewayId => (string)The ID of the virtual private gateway.
-
VpcId => (string)The ID of the VPC.
-
Returns
Executes the DisableVgwRoutePropagation operation.
Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC.
Examples
- Basic formatting example
$result = $client->disableVgwRoutePropagation(array( // RouteTableId is required 'RouteTableId' => 'string', // GatewayId is required 'GatewayId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
RouteTableId => (string)The ID of the route table.
-
GatewayId => (string)The ID of the virtual private gateway.
-
Returns
Executes the DisableVpcClassicLink operation.
Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it.
Examples
- Basic formatting example
$result = $client->disableVpcClassicLink(array( 'DryRun' => true || false, // VpcId is required 'VpcId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcId => (string)The ID of the VPC.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Return => (bool)Returns true if the request succeeds; otherwise, it returns an error.
Executes the DisassociateAddress operation.
Disassociates an Elastic IP address from the instance or network interface it's associated with.
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.
This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.
Examples
- Basic formatting example
$result = $client->disassociateAddress(array( 'DryRun' => true || false, 'PublicIp' => 'string', 'AssociationId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
PublicIp => (string)[EC2-Classic] The Elastic IP address. Required for EC2-Classic.
-
AssociationId => (string)[EC2-VPC] The association ID. Required for EC2-VPC.
-
Returns
Executes the DisassociateRouteTable operation.
Disassociates a subnet from a route table.
After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC's main route table. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->disassociateRouteTable(array( 'DryRun' => true || false, // AssociationId is required 'AssociationId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
AssociationId => (string)The association ID representing the current association between the route table and subnet.
-
Returns
Executes the EnableVgwRoutePropagation operation.
Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.
Examples
- Basic formatting example
$result = $client->enableVgwRoutePropagation(array( // RouteTableId is required 'RouteTableId' => 'string', // GatewayId is required 'GatewayId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
RouteTableId => (string)The ID of the route table.
-
GatewayId => (string)The ID of the virtual private gateway.
-
Returns
Executes the EnableVolumeIO operation.
Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent.
Examples
- Basic formatting example
$result = $client->enableVolumeIO(array( 'DryRun' => true || false, // VolumeId is required 'VolumeId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VolumeId => (string)The ID of the volume.
-
Returns
Executes the EnableVpcClassicLink operation.
Enables a VPC for ClassicLink. You can then link EC2-Classic instances to
your ClassicLink-enabled VPC to allow communication over private IP addresses.
You cannot enable your VPC for ClassicLink if any of your VPC's route tables
have existing routes for address ranges within the
Examples
- Basic formatting example
$result = $client->enableVpcClassicLink(array( 'DryRun' => true || false, // VpcId is required 'VpcId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcId => (string)The ID of the VPC.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Return => (bool)Returns true if the request succeeds; otherwise, it returns an error.
Executes the GetConsoleOutput operation.
Gets the console output for the specified instance.
Instances do not have a physical monitor through which you can view their console output. They also lack physical controls that allow you to power up, reboot, or shut them down. To allow these actions, we provide them through the Amazon EC2 API and command line interface.
Instance console output is buffered and posted shortly after instance boot, reboot, and termination. Amazon EC2 preserves the most recent 64 KB output which is available for at least one hour after the most recent post.
For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. This output is buffered because the instance produces it and then posts it to a store where the instance's owner can retrieve it.
For Windows instances, the instance console output includes output from the EC2Config service.
Examples
- Basic formatting example
$result = $client->getConsoleOutput(array( 'DryRun' => true || false, // InstanceId is required 'InstanceId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceId => (string)The ID of the instance.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
InstanceId => (string)The ID of the instance.
-
Timestamp => (string)The time the output was last updated.
-
Output => (string)The console output, Base64 encoded.
Executes the GetPasswordData operation.
Retrieves the encrypted administrator password for an instance running Windows.
The Windows password is generated at boot if the
The password is encrypted using the key pair that you specified when you launched the instance. You must provide the corresponding key pair file.
Password generation and encryption takes a few moments. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.
Examples
- Basic formatting example
$result = $client->getPasswordData(array( 'DryRun' => true || false, // InstanceId is required 'InstanceId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceId => (string)The ID of the Windows instance.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
InstanceId => (string)The ID of the Windows instance.
-
Timestamp => (string)The time the data was last updated.
-
PasswordData => (string)The password of the instance.
Executes the ImportImage operation.
Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI).
Examples
- Basic formatting example
$result = $client->importImage(array( 'DryRun' => true || false, 'Description' => 'string', 'DiskContainers' => array( array( 'Description' => 'string', 'Format' => 'string', 'Url' => 'string', 'UserBucket' => array( 'S3Bucket' => 'string', 'S3Key' => 'string', ), 'DeviceName' => 'string', 'SnapshotId' => 'string', ), // ... repeated ), 'LicenseType' => 'string', 'Hypervisor' => 'string', 'Architecture' => 'string', 'Platform' => 'string', 'ClientData' => array( 'UploadStart' => 'mixed type: string (date format)|int (unix timestamp)|\DateTime', 'UploadEnd' => 'mixed type: string (date format)|int (unix timestamp)|\DateTime', 'UploadSize' => integer, 'Comment' => 'string', ), 'ClientToken' => 'string', 'RoleName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Description => (string)A description string for the import image task.
-
DiskContainers => (array<associative-array>)Information about the disk containers.
- (associative-array)
Describes the disk container object for an import image task.
-
Description => (string)The description of the disk image.
-
Format => (string)The format of the disk image being imported.
Valid values: RAW | VHD | VMDK | OVA
-
Url => (string)The URL to the Amazon S3-based disk image being imported. The URL can either be a https URL (https://..) or an Amazon S3 URL (s3://..)
-
UserBucket => (associative-array)The S3 bucket for the disk image.
-
S3Bucket => (string)The name of the S3 bucket where the disk image is located.
-
S3Key => (string)The key for the disk image.
-
-
DeviceName => (string)The block device mapping for the disk.
-
SnapshotId => (string)The ID of the EBS snapshot to be used for importing the snapshot.
-
- (associative-array)
-
LicenseType => (string)The license type to be used for the Amazon Machine Image (AMI) after importing.
Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.
-
Hypervisor => (string)The target hypervisor platform.
Valid values: xen
-
Architecture => (string)The architecture of the virtual machine.
Valid values: i386 | x86_64
-
Platform => (string)The operating system of the virtual machine.
Valid values: Windows | Linux
-
ClientData => (associative-array)The client-specific data.
-
UploadStart => (string [date format]|int [unix timestamp]|\DateTime)The time that the disk upload starts.
-
UploadEnd => (string [date format]|int [unix timestamp]|\DateTime)The time that the disk upload ends.
-
UploadSize => (int)The size of the uploaded disk image, in GiB.
-
Comment => (string)A user-defined comment about the disk upload.
-
-
ClientToken => (string)The token to enable idempotency for VM import requests.
-
RoleName => (string)The name of the role to use when not using the default role, 'vmimport'.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ImportTaskId => (string)The task ID of the import image task.
-
Architecture => (string)The architecture of the virtual machine.
-
LicenseType => (string)The license type of the virtual machine.
-
Platform => (string)The operating system of the virtual machine.
-
Hypervisor => (string)The target hypervisor of the import task.
-
Description => (string)A description of the import task.
-
SnapshotDetails => (array<associative-array>)Information about the snapshots.
- (associative-array)
Describes the snapshot created from the imported disk.
-
DiskImageSize => (int)The size of the disk in the snapshot, in GiB.
-
Description => (string)A description for the snapshot.
-
Format => (string)The format of the disk image from which the snapshot is created.
-
Url => (string)The URL used to access the disk image.
-
UserBucket => (associative-array)-
S3Bucket => (string)The S3 bucket from which the disk image was created.
-
S3Key => (string)The key from which the disk image was created.
-
-
DeviceName => (string)The block device mapping for the snapshot.
-
SnapshotId => (string)The snapshot ID of the disk being imported.
-
Progress => (string)The percentage of progress for the task.
-
StatusMessage => (string)A detailed status message for the snapshot creation.
-
Status => (string)A brief status of the snapshot creation.
-
- (associative-array)
-
ImageId => (string)The ID of the Amazon Machine Image (AMI) created by the import task.
-
Progress => (string)The progress of the task.
-
StatusMessage => (string)A detailed status message of the import task.
-
Status => (string)A brief status of the task.
Executes the ImportInstance operation.
Creates an import instance task using metadata from the specified disk image.
Examples
- Basic formatting example
$result = $client->importInstance(array( 'DryRun' => true || false, 'Description' => 'string', 'LaunchSpecification' => array( 'Architecture' => 'string', 'GroupNames' => array('string', ... ), 'GroupIds' => array('string', ... ), 'AdditionalInfo' => 'string', 'UserData' => array( 'Data' => 'string', ), 'InstanceType' => 'string', 'Placement' => array( 'AvailabilityZone' => 'string', 'GroupName' => 'string', 'Tenancy' => 'string', 'HostId' => 'string', 'Affinity' => 'string', ), 'Monitoring' => true || false, 'SubnetId' => 'string', 'InstanceInitiatedShutdownBehavior' => 'string', 'PrivateIpAddress' => 'string', ), 'DiskImages' => array( array( 'Image' => array( // Format is required 'Format' => 'string', // Bytes is required 'Bytes' => integer, // ImportManifestUrl is required 'ImportManifestUrl' => 'string', ), 'Description' => 'string', 'Volume' => array( // Size is required 'Size' => integer, ), ), // ... repeated ), // Platform is required 'Platform' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Description => (string)A description for the instance being imported.
-
LaunchSpecification => (associative-array)The launch specification.
-
Architecture => (string:i386 |x86_64 )The architecture of the instance.
-
GroupNames => (array<string>)One or more security group names.
-
GroupIds => (array<string>)One or more security group IDs.
-
AdditionalInfo => (string)Reserved.
-
UserData => (associative-array)The Base64-encoded MIME user data to be made available to the instance.
-
Data => (string)The Base64-encoded MIME user data for the instance.
-
-
InstanceType => (string:t1.micro |m1.small |m1.medium |m1.large |m1.xlarge |m3.medium |m3.large |m3.xlarge |m3.2xlarge |m4.large |m4.xlarge |m4.2xlarge |m4.4xlarge |m4.10xlarge |t2.micro |t2.small |t2.medium |t2.large |m2.xlarge |m2.2xlarge |m2.4xlarge |cr1.8xlarge |i2.xlarge |i2.2xlarge |i2.4xlarge |i2.8xlarge |hi1.4xlarge |hs1.8xlarge |c1.medium |c1.xlarge |c3.large |c3.xlarge |c3.2xlarge |c3.4xlarge |c3.8xlarge |c4.large |c4.xlarge |c4.2xlarge |c4.4xlarge |c4.8xlarge |cc1.4xlarge |cc2.8xlarge |g2.2xlarge |cg1.4xlarge |r3.large |r3.xlarge |r3.2xlarge |r3.4xlarge |r3.8xlarge |d2.xlarge |d2.2xlarge |d2.4xlarge |d2.8xlarge )The instance type. For more information about the instance types that you can import, see Before You Get Started in the Amazon Elastic Compute Cloud User Guide.
-
Placement => (associative-array)The placement information for the instance.
-
AvailabilityZone => (string)The Availability Zone of the instance.
-
GroupName => (string)The name of the placement group the instance is in (for cluster compute instances).
-
Tenancy => (string:default |dedicated )The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.
-
-
Monitoring => (bool)Indicates whether monitoring is enabled.
-
SubnetId => (string)[EC2-VPC] The ID of the subnet in which to launch the instance.
-
InstanceInitiatedShutdownBehavior => (string:stop |terminate )Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
-
PrivateIpAddress => (string)[EC2-VPC] An available IP address from the IP address range of the subnet.
-
-
DiskImages => (array<associative-array>)The disk image.
- (associative-array)
Describes a disk image.
-
Image => (associative-array)Information about the disk image.
-
Format => (string:VMDK |RAW |VHD )The disk image format.
-
Bytes => (int)The size of the disk image, in GiB.
-
ImportManifestUrl => (string)A presigned URL for the import manifest stored in Amazon S3 and presented here as an Amazon S3 presigned URL. For information about creating a presigned URL for an Amazon S3 object, read the "Query String Request Authentication Alternative" section of the Authenticating REST Requests topic in the Amazon Simple Storage Service Developer Guide.
-
-
Description => (string)A description of the disk image.
-
Volume => (associative-array)Information about the volume.
-
Size => (int)The size of the volume, in GiB.
-
-
- (associative-array)
-
Platform => (string:Windows )The instance operating system.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ConversionTask => (associative-array)Information about the conversion task.
-
ConversionTaskId => (string)The ID of the conversion task.
-
ExpirationTime => (string)The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.
-
ImportInstance => (associative-array)If the task is for importing an instance, this contains information about the import instance task.
-
Volumes => (array<associative-array>)One or more volumes.
- (associative-array)
Describes an import volume task.
-
BytesConverted => (int)The number of bytes converted so far.
-
AvailabilityZone => (string)The Availability Zone where the resulting instance will reside.
-
Image => (associative-array)The image.
-
Format => (string)The disk image format.
-
Size => (int)The size of the disk image, in GiB.
-
ImportManifestUrl => (string)A presigned URL for the import manifest stored in Amazon S3. For information about creating a presigned URL for an Amazon S3 object, read the "Query String Request Authentication Alternative" section of the Authenticating REST Requests topic in the Amazon Simple Storage Service Developer Guide.
-
Checksum => (string)The checksum computed for the disk image.
-
-
Volume => (associative-array)The volume.
-
Size => (int)The size of the volume, in GiB.
-
Id => (string)The volume identifier.
-
-
Status => (string)The status of the import of this particular disk image.
-
StatusMessage => (string)The status information or errors related to the disk image.
-
Description => (string)A description of the task.
-
- (associative-array)
-
InstanceId => (string)The ID of the instance.
-
Platform => (string)The instance operating system.
-
Description => (string)A description of the task.
-
-
ImportVolume => (associative-array)If the task is for importing a volume, this contains information about the import volume task.
-
BytesConverted => (int)The number of bytes converted so far.
-
AvailabilityZone => (string)The Availability Zone where the resulting volume will reside.
-
Description => (string)The description you provided when starting the import volume task.
-
Image => (associative-array)The image.
-
Format => (string)The disk image format.
-
Size => (int)The size of the disk image, in GiB.
-
ImportManifestUrl => (string)A presigned URL for the import manifest stored in Amazon S3. For information about creating a presigned URL for an Amazon S3 object, read the "Query String Request Authentication Alternative" section of the Authenticating REST Requests topic in the Amazon Simple Storage Service Developer Guide.
-
Checksum => (string)The checksum computed for the disk image.
-
-
Volume => (associative-array)The volume.
-
Size => (int)The size of the volume, in GiB.
-
Id => (string)The volume identifier.
-
-
-
State => (string)The state of the conversion task.
-
StatusMessage => (string)The status message related to the conversion task.
-
Tags => (array<associative-array>)Any tags assigned to the task.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
Executes the ImportKeyPair operation.
Imports the public key from an RSA key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which AWS creates the key pair and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair, you create the key pair and give AWS just the public key. The private key is never transferred between you and AWS.
For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->importKeyPair(array( 'DryRun' => true || false, // KeyName is required 'KeyName' => 'string', // PublicKeyMaterial is required 'PublicKeyMaterial' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
KeyName => (string)A unique name for the key pair.
-
PublicKeyMaterial => (string)The supplied string value will be automatically base64 encoded by the SDK. Base64 encoding this value before passing it into an operation will double-encode the data.
The public key. You must base64 encode the public key material before sending it to AWS.
This value will be base64 encoded for you automatically.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
KeyName => (string)The key pair name you provided.
-
KeyFingerprint => (string)The MD5 public key fingerprint as specified in section 4 of RFC 4716.
Executes the ImportSnapshot operation.
Imports a disk into an EBS snapshot.
Examples
- Basic formatting example
$result = $client->importSnapshot(array( 'DryRun' => true || false, 'Description' => 'string', 'DiskContainer' => array( 'Description' => 'string', 'Format' => 'string', 'Url' => 'string', 'UserBucket' => array( 'S3Bucket' => 'string', 'S3Key' => 'string', ), ), 'ClientData' => array( 'UploadStart' => 'mixed type: string (date format)|int (unix timestamp)|\DateTime', 'UploadEnd' => 'mixed type: string (date format)|int (unix timestamp)|\DateTime', 'UploadSize' => integer, 'Comment' => 'string', ), 'ClientToken' => 'string', 'RoleName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Description => (string)The description string for the import snapshot task.
-
DiskContainer => (associative-array)Information about the disk container.
-
Description => (string)The description of the disk image being imported.
-
Format => (string)The format of the disk image being imported.
Valid values: RAW | VHD | VMDK | OVA
-
Url => (string)The URL to the Amazon S3-based disk image being imported. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..).
-
UserBucket => (associative-array)-
S3Bucket => (string)The name of the S3 bucket where the disk image is located.
-
S3Key => (string)The key for the disk image.
-
-
-
ClientData => (associative-array)The client-specific data.
-
UploadStart => (string [date format]|int [unix timestamp]|\DateTime)The time that the disk upload starts.
-
UploadEnd => (string [date format]|int [unix timestamp]|\DateTime)The time that the disk upload ends.
-
UploadSize => (int)The size of the uploaded disk image, in GiB.
-
Comment => (string)A user-defined comment about the disk upload.
-
-
ClientToken => (string)Token to enable idempotency for VM import requests.
-
RoleName => (string)The name of the role to use when not using the default role, 'vmimport'.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ImportTaskId => (string)The ID of the import snapshot task.
-
SnapshotTaskDetail => (associative-array)Information about the import snapshot task.
-
DiskImageSize => (int)The size of the disk in the snapshot, in GiB.
-
Description => (string)The description of the snapshot.
-
Format => (string)The format of the disk image from which the snapshot is created.
-
Url => (string)The URL of the disk image from which the snapshot is created.
-
UserBucket => (associative-array)The S3 bucket for the disk image.
-
S3Bucket => (string)The S3 bucket from which the disk image was created.
-
S3Key => (string)The key from which the disk image was created.
-
-
SnapshotId => (string)The snapshot ID of the disk being imported.
-
Progress => (string)The percentage of completion for the import snapshot task.
-
StatusMessage => (string)A detailed status message for the import snapshot task.
-
Status => (string)A brief status for the import snapshot task.
-
-
Description => (string)A description of the import snapshot task.
Executes the ImportVolume operation.
Creates an import volume task using metadata from the specified disk image.
After importing the image, you then upload it using the
Examples
- Basic formatting example
$result = $client->importVolume(array( 'DryRun' => true || false, // AvailabilityZone is required 'AvailabilityZone' => 'string', // Image is required 'Image' => array( // Format is required 'Format' => 'string', // Bytes is required 'Bytes' => integer, // ImportManifestUrl is required 'ImportManifestUrl' => 'string', ), 'Description' => 'string', // Volume is required 'Volume' => array( // Size is required 'Size' => integer, ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
AvailabilityZone => (string)The Availability Zone for the resulting EBS volume.
-
Image => (associative-array)The disk image.
-
Format => (string:VMDK |RAW |VHD )The disk image format.
-
Bytes => (int)The size of the disk image, in GiB.
-
ImportManifestUrl => (string)A presigned URL for the import manifest stored in Amazon S3 and presented here as an Amazon S3 presigned URL. For information about creating a presigned URL for an Amazon S3 object, read the "Query String Request Authentication Alternative" section of the Authenticating REST Requests topic in the Amazon Simple Storage Service Developer Guide.
-
-
Description => (string)A description of the volume.
-
Volume => (associative-array)The volume size.
-
Size => (int)The size of the volume, in GiB.
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ConversionTask => (associative-array)Information about the conversion task.
-
ConversionTaskId => (string)The ID of the conversion task.
-
ExpirationTime => (string)The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.
-
ImportInstance => (associative-array)If the task is for importing an instance, this contains information about the import instance task.
-
Volumes => (array<associative-array>)One or more volumes.
- (associative-array)
Describes an import volume task.
-
BytesConverted => (int)The number of bytes converted so far.
-
AvailabilityZone => (string)The Availability Zone where the resulting instance will reside.
-
Image => (associative-array)The image.
-
Format => (string)The disk image format.
-
Size => (int)The size of the disk image, in GiB.
-
ImportManifestUrl => (string)A presigned URL for the import manifest stored in Amazon S3. For information about creating a presigned URL for an Amazon S3 object, read the "Query String Request Authentication Alternative" section of the Authenticating REST Requests topic in the Amazon Simple Storage Service Developer Guide.
-
Checksum => (string)The checksum computed for the disk image.
-
-
Volume => (associative-array)The volume.
-
Size => (int)The size of the volume, in GiB.
-
Id => (string)The volume identifier.
-
-
Status => (string)The status of the import of this particular disk image.
-
StatusMessage => (string)The status information or errors related to the disk image.
-
Description => (string)A description of the task.
-
- (associative-array)
-
InstanceId => (string)The ID of the instance.
-
Platform => (string)The instance operating system.
-
Description => (string)A description of the task.
-
-
ImportVolume => (associative-array)If the task is for importing a volume, this contains information about the import volume task.
-
BytesConverted => (int)The number of bytes converted so far.
-
AvailabilityZone => (string)The Availability Zone where the resulting volume will reside.
-
Description => (string)The description you provided when starting the import volume task.
-
Image => (associative-array)The image.
-
Format => (string)The disk image format.
-
Size => (int)The size of the disk image, in GiB.
-
ImportManifestUrl => (string)A presigned URL for the import manifest stored in Amazon S3. For information about creating a presigned URL for an Amazon S3 object, read the "Query String Request Authentication Alternative" section of the Authenticating REST Requests topic in the Amazon Simple Storage Service Developer Guide.
-
Checksum => (string)The checksum computed for the disk image.
-
-
Volume => (associative-array)The volume.
-
Size => (int)The size of the volume, in GiB.
-
Id => (string)The volume identifier.
-
-
-
State => (string)The state of the conversion task.
-
StatusMessage => (string)The status message related to the conversion task.
-
Tags => (array<associative-array>)Any tags assigned to the task.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
Executes the ModifyImageAttribute operation.
Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time.
AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public.
Examples
- Basic formatting example
$result = $client->modifyImageAttribute(array( 'DryRun' => true || false, // ImageId is required 'ImageId' => 'string', 'Attribute' => 'string', 'OperationType' => 'string', 'UserIds' => array('string', ... ), 'UserGroups' => array('string', ... ), 'ProductCodes' => array('string', ... ), 'Value' => 'string', 'LaunchPermission' => array( 'Add' => array( array( 'UserId' => 'string', 'Group' => 'string', ), // ... repeated ), 'Remove' => array( array( 'UserId' => 'string', 'Group' => 'string', ), // ... repeated ), ), 'Description' => array( 'Value' => 'string', ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ImageId => (string)The ID of the AMI.
-
Attribute => (string)The name of the attribute to modify.
-
OperationType => (string:add |remove )The operation type.
-
UserIds => (array<string>)One or more AWS account IDs. This is only valid when modifying the launchPermission attribute.
-
UserGroups => (array<string>)One or more user groups. This is only valid when modifying the launchPermission attribute.
-
ProductCodes => (array<string>)One or more product codes. After you add a product code to an AMI, it can't be removed. This is only valid when modifying the productCodes attribute.
-
Value => (string)The value of the attribute being modified. This is only valid when modifying the description attribute.
-
LaunchPermission => (associative-array)A launch permission modification.
-
Add => (array<associative-array>)The AWS account ID to add to the list of launch permissions for the AMI.
- (associative-array)
Describes a launch permission.
-
UserId => (string)The AWS account ID.
-
Group => (string:all )The name of the group.
-
- (associative-array)
-
Remove => (array<associative-array>)The AWS account ID to remove from the list of launch permissions for the AMI.
- (associative-array)
Describes a launch permission.
-
UserId => (string)The AWS account ID.
-
Group => (string:all )The name of the group.
-
- (associative-array)
-
-
Description => (associative-array)A description for the AMI.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
Returns
Executes the ModifyInstanceAttribute operation.
Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.
To modify some attributes, the instance must be stopped. For more information, see Modifying Attributes of a Stopped Instance in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->modifyInstanceAttribute(array( 'DryRun' => true || false, // InstanceId is required 'InstanceId' => 'string', 'Attribute' => 'string', 'Value' => 'string', 'BlockDeviceMappings' => array( array( 'DeviceName' => 'string', 'Ebs' => array( 'VolumeId' => 'string', 'DeleteOnTermination' => true || false, ), 'VirtualName' => 'string', 'NoDevice' => 'string', ), // ... repeated ), 'SourceDestCheck' => array( 'Value' => true || false, ), 'DisableApiTermination' => array( 'Value' => true || false, ), 'InstanceType' => array( 'Value' => 'string', ), 'Kernel' => array( 'Value' => 'string', ), 'Ramdisk' => array( 'Value' => 'string', ), 'UserData' => array( 'Value' => 'string', ), 'InstanceInitiatedShutdownBehavior' => array( 'Value' => 'string', ), 'Groups' => array('string', ... ), 'EbsOptimized' => array( 'Value' => true || false, ), 'SriovNetSupport' => array( 'Value' => 'string', ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceId => (string)The ID of the instance.
-
Attribute => (string:instanceType |kernel |ramdisk |userData |disableApiTermination |instanceInitiatedShutdownBehavior |rootDeviceName |blockDeviceMapping |productCodes |sourceDestCheck |groupSet |ebsOptimized |sriovNetSupport )The name of the attribute.
-
Value => (string)A new value for the attribute. Use only with the kernel, ramdisk, userData, disableApiTermination, or instanceInitiatedShutdownBehavior attribute.
-
BlockDeviceMappings => (array<associative-array>)Modifies the DeleteOnTermination attribute for volumes that are currently attached. The volume must be owned by the caller. If no value is specified for DeleteOnTermination, the default is true and the volume is deleted when the instance is terminated.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
- (associative-array)
Describes a block device mapping entry.
-
DeviceName => (string)The device name exposed to the instance (for example, /dev/sdh or xvdh).
-
Ebs => (associative-array)Parameters used to automatically set up EBS volumes when the instance is launched.
-
VolumeId => (string)The ID of the EBS volume.
-
DeleteOnTermination => (bool)Indicates whether the volume is deleted on instance termination.
-
-
VirtualName => (string)The virtual device name.
-
NoDevice => (string)suppress the specified device included in the block device mapping.
-
- (associative-array)
-
SourceDestCheck => (associative-array)Specifies whether source/destination checking is enabled. A value of true means that checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT.
-
Value => (bool)Valid values are true or false.
-
-
DisableApiTermination => (associative-array)If the value is true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. You cannot use this paramater for Spot Instances.
-
Value => (bool)Valid values are true or false.
-
-
InstanceType => (associative-array)Changes the instance type to the specified value. For more information, see Instance Types. If the instance type is not valid, the error returned is InvalidInstanceAttributeValue.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
Kernel => (associative-array)Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
Ramdisk => (associative-array)Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
UserData => (associative-array)Changes the instance's user data to the specified value.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
InstanceInitiatedShutdownBehavior => (associative-array)Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
Groups => (array<string>)[EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.
-
EbsOptimized => (associative-array)Specifies whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
-
Value => (bool)Valid values are true or false.
-
-
SriovNetSupport => (associative-array)Set to simple to enable enhanced networking for the instance.
There is no way to disable enhanced networking at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
Returns
Executes the ModifyNetworkInterfaceAttribute operation.
Modifies the specified network interface attribute. You can specify only one attribute at a time.
Examples
- Basic formatting example
$result = $client->modifyNetworkInterfaceAttribute(array( 'DryRun' => true || false, // NetworkInterfaceId is required 'NetworkInterfaceId' => 'string', 'Description' => array( 'Value' => 'string', ), 'SourceDestCheck' => array( 'Value' => true || false, ), 'Groups' => array('string', ... ), 'Attachment' => array( 'AttachmentId' => 'string', 'DeleteOnTermination' => true || false, ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
Description => (associative-array)A description for the network interface.
-
Value => (string)Valid values are case-sensitive and vary by action.
-
-
SourceDestCheck => (associative-array)Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.
-
Value => (bool)Valid values are true or false.
-
-
Groups => (array<string>)Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.
-
Attachment => (associative-array)Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.
-
AttachmentId => (string)The ID of the network interface attachment.
-
DeleteOnTermination => (bool)Indicates whether the network interface is deleted when the instance is terminated.
-
-
Returns
Executes the ModifyReservedInstances operation.
Modifies the Availability Zone, instance count, instance type, or network platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.
For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->modifyReservedInstances(array( 'ClientToken' => 'string', // ReservedInstancesIds is required 'ReservedInstancesIds' => array('string', ... ), // TargetConfigurations is required 'TargetConfigurations' => array( array( 'AvailabilityZone' => 'string', 'Platform' => 'string', 'InstanceCount' => integer, 'InstanceType' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ClientToken => (string)A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.
-
ReservedInstancesIds => (array<string>)The IDs of the Reserved Instances to modify.
-
TargetConfigurations => (array<associative-array>)The configuration settings for the Reserved Instances to modify.
- (associative-array)
Describes the configuration settings for the modified Reserved Instances.
-
AvailabilityZone => (string)The Availability Zone for the modified Reserved Instances.
-
Platform => (string)The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.
-
InstanceCount => (int)The number of modified Reserved Instances.
-
InstanceType => (string:t1.micro |m1.small |m1.medium |m1.large |m1.xlarge |m3.medium |m3.large |m3.xlarge |m3.2xlarge |m4.large |m4.xlarge |m4.2xlarge |m4.4xlarge |m4.10xlarge |t2.micro |t2.small |t2.medium |t2.large |m2.xlarge |m2.2xlarge |m2.4xlarge |cr1.8xlarge |i2.xlarge |i2.2xlarge |i2.4xlarge |i2.8xlarge |hi1.4xlarge |hs1.8xlarge |c1.medium |c1.xlarge |c3.large |c3.xlarge |c3.2xlarge |c3.4xlarge |c3.8xlarge |c4.large |c4.xlarge |c4.2xlarge |c4.4xlarge |c4.8xlarge |cc1.4xlarge |cc2.8xlarge |g2.2xlarge |cg1.4xlarge |r3.large |r3.xlarge |r3.2xlarge |r3.4xlarge |r3.8xlarge |d2.xlarge |d2.2xlarge |d2.4xlarge |d2.8xlarge )The instance type for the modified Reserved Instances.
-
- (associative-array)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ReservedInstancesModificationId => (string)The ID for the modification.
Executes the ModifySnapshotAttribute operation.
Adds or removes permission settings for the specified snapshot. You may add or remove specified AWS account IDs from a snapshot's list of create volume permissions, but you cannot do both in a single API call. If you need to both add and remove account IDs for a snapshot, you must use multiple API calls.
For more information on modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.
Snapshots with AWS Marketplace product codes cannot be made public.
Examples
- Basic formatting example
$result = $client->modifySnapshotAttribute(array( 'DryRun' => true || false, // SnapshotId is required 'SnapshotId' => 'string', 'Attribute' => 'string', 'OperationType' => 'string', 'UserIds' => array('string', ... ), 'GroupNames' => array('string', ... ), 'CreateVolumePermission' => array( 'Add' => array( array( 'UserId' => 'string', 'Group' => 'string', ), // ... repeated ), 'Remove' => array( array( 'UserId' => 'string', 'Group' => 'string', ), // ... repeated ), ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SnapshotId => (string)The ID of the snapshot.
-
Attribute => (string:productCodes |createVolumePermission )The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
-
OperationType => (string:add |remove )The type of operation to perform to the attribute.
-
UserIds => (array<string>)The account ID to modify for the snapshot.
-
GroupNames => (array<string>)The group to modify for the snapshot.
-
CreateVolumePermission => (associative-array)A JSON representation of the snapshot attribute modification.
-
Add => (array<associative-array>)Adds a specific AWS account ID or group to a volume's list of create volume permissions.
- (associative-array)
Describes the user or group to be added or removed from the permissions for a volume.
-
UserId => (string)The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
-
Group => (string:all )The specific group that is to be added or removed from a volume's list of create volume permissions.
-
- (associative-array)
-
Remove => (array<associative-array>)Removes a specific AWS account ID or group from a volume's list of create volume permissions.
- (associative-array)
Describes the user or group to be added or removed from the permissions for a volume.
-
UserId => (string)The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.
-
Group => (string:all )The specific group that is to be added or removed from a volume's list of create volume permissions.
-
- (associative-array)
-
-
Returns
Executes the ModifySpotFleetRequest operation.
Modifies the specified Spot fleet request.
While the Spot fleet request is being modified, it is in the
To scale up your Spot fleet, increase its target capacity. The Spot fleet
launches the additional Spot instances according to the allocation strategy for
the Spot fleet request. If the allocation strategy is
To scale down your Spot fleet, decrease its target capacity. First, the Spot
fleet cancels any open bids that exceed the new target capacity. You can request
that the Spot fleet terminate Spot instances until the size of the fleet no
longer exceeds the new target capacity. If the allocation strategy is
Examples
- Basic formatting example
$result = $client->modifySpotFleetRequest(array( // SpotFleetRequestId is required 'SpotFleetRequestId' => 'string', 'TargetCapacity' => integer, 'ExcessCapacityTerminationPolicy' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
SpotFleetRequestId => (string)The ID of the Spot fleet request.
-
TargetCapacity => (int)The size of the fleet.
-
ExcessCapacityTerminationPolicy => (string:noTermination |default )Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Return => (bool)Is true if the request succeeds, and an error otherwise.
Executes the ModifySubnetAttribute operation.
Modifies a subnet attribute.
Examples
- Basic formatting example
$result = $client->modifySubnetAttribute(array( // SubnetId is required 'SubnetId' => 'string', 'MapPublicIpOnLaunch' => array( 'Value' => true || false, ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
SubnetId => (string)The ID of the subnet.
-
MapPublicIpOnLaunch => (associative-array)Specify true to indicate that instances launched into the specified subnet should be assigned public IP address.
-
Value => (bool)Valid values are true or false.
-
-
Returns
Executes the ModifyVolumeAttribute operation.
Modifies a volume attribute.
By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.
You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.
Examples
- Basic formatting example
$result = $client->modifyVolumeAttribute(array( 'DryRun' => true || false, // VolumeId is required 'VolumeId' => 'string', 'AutoEnableIO' => array( 'Value' => true || false, ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VolumeId => (string)The ID of the volume.
-
AutoEnableIO => (associative-array)Indicates whether the volume should be auto-enabled for I/O operations.
-
Value => (bool)Valid values are true or false.
-
-
Returns
Executes the ModifyVpcAttribute operation.
Modifies the specified attribute of the specified VPC.
Examples
- Basic formatting example
$result = $client->modifyVpcAttribute(array( // VpcId is required 'VpcId' => 'string', 'EnableDnsSupport' => array( 'Value' => true || false, ), 'EnableDnsHostnames' => array( 'Value' => true || false, ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
VpcId => (string)The ID of the VPC.
-
EnableDnsSupport => (associative-array)Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" will succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.
-
Value => (bool)Valid values are true or false.
-
-
EnableDnsHostnames => (associative-array)Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.
You can only enable DNS hostnames if you also enable DNS support.
-
Value => (bool)Valid values are true or false.
-
-
Returns
Executes the ModifyVpcEndpoint operation.
Modifies attributes of a specified VPC endpoint. You can modify the policy associated with the endpoint, and you can add and remove route tables associated with the endpoint.
Examples
- Basic formatting example
$result = $client->modifyVpcEndpoint(array( 'DryRun' => true || false, // VpcEndpointId is required 'VpcEndpointId' => 'string', 'ResetPolicy' => true || false, 'PolicyDocument' => 'string', 'AddRouteTableIds' => array('string', ... ), 'RemoveRouteTableIds' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcEndpointId => (string)The ID of the endpoint.
-
ResetPolicy => (bool)Specify true to reset the policy document to the default policy. The default policy allows access to the service.
-
PolicyDocument => (string)A policy document to attach to the endpoint. The policy must be in valid JSON format.
-
AddRouteTableIds => (array<string>)One or more route tables IDs to associate with the endpoint.
-
RemoveRouteTableIds => (array<string>)One or more route table IDs to disassociate from the endpoint.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Return => (bool)Returns true if the request succeeds; otherwise, it returns an error.
Executes the MonitorInstances operation.
Enables monitoring for a running instance. For more information about monitoring instances, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->monitorInstances(array( 'DryRun' => true || false, // InstanceIds is required 'InstanceIds' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceIds => (array<string>)One or more instance IDs.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
InstanceMonitorings => (array<associative-array>)Monitoring information for one or more instances.
- (associative-array)
Describes the monitoring information of the instance.
-
InstanceId => (string)The ID of the instance.
-
Monitoring => (associative-array)The monitoring information.
-
State => (string)Indicates whether monitoring is enabled for the instance.
-
-
- (associative-array)
Executes the MoveAddressToVpc operation.
Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that's allocated for use in the EC2-VPC platform to the EC2-Classic platform.
Examples
- Basic formatting example
$result = $client->moveAddressToVpc(array( 'DryRun' => true || false, // PublicIp is required 'PublicIp' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
PublicIp => (string)The Elastic IP address.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
AllocationId => (string)The allocation ID for the Elastic IP address.
-
Status => (string)The status of the move of the IP address.
Executes the PurchaseReservedInstancesOffering operation.
Purchases a Reserved Instance for use with your account. With Amazon EC2 Reserved Instances, you obtain a capacity reservation for a certain instance configuration over a specified period of time and pay a lower hourly rate compared to on-Demand Instance pricing.
Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you've purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.
For more information, see Reserved Instances and Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->purchaseReservedInstancesOffering(array( 'DryRun' => true || false, // ReservedInstancesOfferingId is required 'ReservedInstancesOfferingId' => 'string', // InstanceCount is required 'InstanceCount' => integer, 'LimitPrice' => array( 'Amount' => integer, 'CurrencyCode' => 'string', ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ReservedInstancesOfferingId => (string)The ID of the Reserved Instance offering to purchase.
-
InstanceCount => (int)The number of Reserved Instances to purchase.
-
LimitPrice => (associative-array)Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
-
Amount => (int)Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).
-
CurrencyCode => (string:USD )The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD.
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ReservedInstancesId => (string)The IDs of the purchased Reserved Instances.
Executes the RebootInstances operation.
Requests a reboot of one or more instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.
If a Linux/Unix instance does not cleanly shut down within four minutes, Amazon EC2 performs a hard reboot.
For more information about troubleshooting, see Getting Console Output and Rebooting Instances in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->rebootInstances(array( 'DryRun' => true || false, // InstanceIds is required 'InstanceIds' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceIds => (array<string>)One or more instance IDs.
-
Returns
Executes the RegisterImage operation.
Registers an AMI. When you're creating an AMI, this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs, see Creating Your Own AMIs in the Amazon Elastic Compute Cloud User Guide.
For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single request, so you don't have to register the AMI yourself.
You can also use
Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE
Linux Enterprise Server (SLES), use the EC2
Similarly, although you can create a Windows AMI from a snapshot, you can't successfully launch an instance from the AMI.
To create Windows AMIs or to create AMIs for Linux operating systems that must retain AMI billing codes to work properly, see CreateImage.
If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.
You can't register an image where a secondary (non-root) snapshot has AWS Marketplace product codes.
Examples
- Basic formatting example
$result = $client->registerImage(array( 'DryRun' => true || false, 'ImageLocation' => 'string', // Name is required 'Name' => 'string', 'Description' => 'string', 'Architecture' => 'string', 'KernelId' => 'string', 'RamdiskId' => 'string', 'RootDeviceName' => 'string', 'BlockDeviceMappings' => array( array( 'VirtualName' => 'string', 'DeviceName' => 'string', 'Ebs' => array( 'SnapshotId' => 'string', 'VolumeSize' => integer, 'DeleteOnTermination' => true || false, 'VolumeType' => 'string', 'Iops' => integer, 'Encrypted' => true || false, ), 'NoDevice' => 'string', ), // ... repeated ), 'VirtualizationType' => 'string', 'SriovNetSupport' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ImageLocation => (string)The full path to your AMI manifest in Amazon S3 storage.
-
Name => (string)A name for your AMI.
Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)
-
Description => (string)A description for your AMI.
-
Architecture => (string:i386 |x86_64 )The architecture of the AMI.
Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the architecture specified in the manifest file.
-
KernelId => (string)The ID of the kernel.
-
RamdiskId => (string)The ID of the RAM disk.
-
RootDeviceName => (string)The name of the root device (for example, /dev/sda1, or /dev/xvda).
-
BlockDeviceMappings => (array<associative-array>)One or more block device mapping entries.
- (associative-array)
Describes a block device mapping.
-
VirtualName => (string)The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
-
DeviceName => (string)The device name exposed to the instance (for example, /dev/sdh or xvdh).
-
Ebs => (associative-array)Parameters used to automatically set up EBS volumes when the instance is launched.
-
SnapshotId => (string)The ID of the snapshot.
-
VolumeSize => (int)The size of the volume, in GiB.
Constraints: 1-1024 for standard volumes, 1-16384 for gp2 volumes, and 4-16384 for io1 volumes. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
-
DeleteOnTermination => (bool)Indicates whether the EBS volume is deleted on instance termination.
-
VolumeType => (string:standard |io1 |gp2 )The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
Default: standard
-
Iops => (int)The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS (SSD) volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose (SSD) volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose (SSD) baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
-
Encrypted => (bool)Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption.
-
-
NoDevice => (string)Suppresses the specified device included in the block device mapping of the AMI.
-
- (associative-array)
-
VirtualizationType => (string)The type of virtualization.
Default: paravirtual
-
SriovNetSupport => (string)Set to simple to enable enhanced networking for the AMI and any instances that you launch from the AMI.
There is no way to disable enhanced networking at this time.
This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from the AMI unreachable.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ImageId => (string)The ID of the newly registered AMI.
Executes the RejectVpcPeeringConnection operation.
Rejects a VPC peering connection request. The VPC peering connection must be
in the
Examples
- Basic formatting example
$result = $client->rejectVpcPeeringConnection(array( 'DryRun' => true || false, // VpcPeeringConnectionId is required 'VpcPeeringConnectionId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
VpcPeeringConnectionId => (string)The ID of the VPC peering connection.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Return => (bool)Returns true if the request succeeds; otherwise, it returns an error.
Executes the ReleaseAddress operation.
Releases the specified Elastic IP address.
After releasing an Elastic IP address, it is released to the IP address pool
and might be unavailable to you. Be sure to update your DNS records and any
servers or devices that communicate with the address. If you attempt to release
an Elastic IP address that you already released, you'll get an
[EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it from any instance that it's associated with. To disassociate an Elastic IP address without releasing it, use DisassociateAddress.
[Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic
IP address before you try to release it. Otherwise, Amazon EC2 returns an error
(
Examples
- Basic formatting example
$result = $client->releaseAddress(array( 'DryRun' => true || false, 'PublicIp' => 'string', 'AllocationId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
PublicIp => (string)[EC2-Classic] The Elastic IP address. Required for EC2-Classic.
-
AllocationId => (string)[EC2-VPC] The allocation ID. Required for EC2-VPC.
-
Returns
Executes the ReplaceNetworkAclAssociation operation.
Changes which network ACL a subnet is associated with. By default when you create a subnet, it's automatically associated with the default network ACL. For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->replaceNetworkAclAssociation(array( 'DryRun' => true || false, // AssociationId is required 'AssociationId' => 'string', // NetworkAclId is required 'NetworkAclId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
AssociationId => (string)The ID of the current association between the original network ACL and the subnet.
-
NetworkAclId => (string)The ID of the new network ACL to associate with the subnet.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
NewAssociationId => (string)The ID of the new association.
Executes the ReplaceNetworkAclEntry operation.
Replaces an entry (rule) in a network ACL. For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->replaceNetworkAclEntry(array( 'DryRun' => true || false, // NetworkAclId is required 'NetworkAclId' => 'string', // RuleNumber is required 'RuleNumber' => integer, // Protocol is required 'Protocol' => 'string', // RuleAction is required 'RuleAction' => 'string', // Egress is required 'Egress' => true || false, // CidrBlock is required 'CidrBlock' => 'string', 'IcmpTypeCode' => array( 'Type' => integer, 'Code' => integer, ), 'PortRange' => array( 'From' => integer, 'To' => integer, ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
NetworkAclId => (string)The ID of the ACL.
-
RuleNumber => (int)The rule number of the entry to replace.
-
Protocol => (string)The IP protocol. You can specify all or -1 to mean all protocols.
-
RuleAction => (string:allow |deny )Indicates whether to allow or deny the traffic that matches the rule.
-
Egress => (bool)Indicates whether to replace the egress rule.
Default: If no value is specified, we replace the ingress rule.
-
CidrBlock => (string)The network range to allow or deny, in CIDR notation.
-
IcmpTypeCode => (associative-array)ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.
-
Type => (int)The ICMP code. A value of -1 means all codes for the specified ICMP type.
-
Code => (int)The ICMP type. A value of -1 means all types.
-
-
PortRange => (associative-array)TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.
-
From => (int)The first port in the range.
-
To => (int)The last port in the range.
-
-
Returns
Executes the ReplaceRoute operation.
Replaces an existing route within a route table in a VPC. You must provide only one of the following: Internet gateway or virtual private gateway, NAT instance, VPC peering connection, or network interface.
For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.
Examples
- Basic formatting example
$result = $client->replaceRoute(array( 'DryRun' => true || false, // RouteTableId is required 'RouteTableId' => 'string', // DestinationCidrBlock is required 'DestinationCidrBlock' => 'string', 'GatewayId' => 'string', 'InstanceId' => 'string', 'NetworkInterfaceId' => 'string', 'VpcPeeringConnectionId' => 'string', 'NatGatewayId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
RouteTableId => (string)The ID of the route table.
-
DestinationCidrBlock => (string)The CIDR address block used for the destination match. The value you provide must match the CIDR of an existing route in the table.
-
GatewayId => (string)The ID of an Internet gateway or virtual private gateway.
-
InstanceId => (string)The ID of a NAT instance in your VPC.
-
NetworkInterfaceId => (string)The ID of a network interface.
-
VpcPeeringConnectionId => (string)The ID of a VPC peering connection.
-
Returns
Executes the ReplaceRouteTableAssociation operation.
Changes the route table associated with a given subnet in a VPC. After the operation completes, the subnet uses the routes in the new route table it's associated with. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.
You can also use ReplaceRouteTableAssociation to change which table is the main route table in the VPC. You just specify the main route table's association ID and the route table to be the new main route table.
Examples
- Basic formatting example
$result = $client->replaceRouteTableAssociation(array( 'DryRun' => true || false, // AssociationId is required 'AssociationId' => 'string', // RouteTableId is required 'RouteTableId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
AssociationId => (string)The association ID.
-
RouteTableId => (string)The ID of the new route table to associate with the subnet.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
NewAssociationId => (string)The ID of the new association.
Executes the ReportInstanceStatus operation.
Submits feedback about the status of an instance. The instance must be in the
Use of this action does not change the value returned by DescribeInstanceStatus.
Examples
- Basic formatting example
$result = $client->reportInstanceStatus(array( 'DryRun' => true || false, // Instances is required 'Instances' => array('string', ... ), // Status is required 'Status' => 'string', 'StartTime' => 'mixed type: string (date format)|int (unix timestamp)|\DateTime', 'EndTime' => 'mixed type: string (date format)|int (unix timestamp)|\DateTime', // ReasonCodes is required 'ReasonCodes' => array('string', ... ), 'Description' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Instances => (array<string>)One or more instances.
-
Status => (string:ok |impaired )The status of all instances listed.
-
StartTime => (string [date format]|int [unix timestamp]|\DateTime)The time at which the reported instance health state began.
-
EndTime => (string [date format]|int [unix timestamp]|\DateTime)The time at which the reported instance health state ended.
-
ReasonCodes => (array<string:instance-stuck-in-state |unresponsive |not-accepting-credentials |password-not-available |performance-network |performance-instance-store |performance-ebs-volume |performance-other |other >)One or more reason codes that describes the health state of your instance.
-
instance-stuck-in-state: My instance is stuck in a state.
-
unresponsive: My instance is unresponsive.
-
not-accepting-credentials: My instance is not accepting my credentials.
-
password-not-available: A password is not available for my instance.
-
performance-network: My instance is experiencing performance problems which I believe are network related.
-
performance-instance-store: My instance is experiencing performance problems which I believe are related to the instance stores.
-
performance-ebs-volume: My instance is experiencing performance problems which I believe are related to an EBS volume.
-
performance-other: My instance is experiencing performance problems.
-
other: [explain using the description parameter]
-
-
Description => (string)Descriptive text about the health state of your instance.
-
Returns
Executes the RequestSpotFleet operation.
Creates a Spot fleet request.
You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.
By default, the Spot fleet requests Spot instances in the Spot pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.
Alternatively, you can specify that the Spot fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot instances in your Spot fleet are in different Spot pools, you can improve the availability of your fleet.
For more information, see Spot Fleet Requests in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->requestSpotFleet(array( 'DryRun' => true || false, // SpotFleetRequestConfig is required 'SpotFleetRequestConfig' => array( 'ClientToken' => 'string', // SpotPrice is required 'SpotPrice' => 'string', // TargetCapacity is required 'TargetCapacity' => integer, 'ValidFrom' => 'string', 'ValidUntil' => 'string', 'TerminateInstancesWithExpiration' => true || false, // IamFleetRole is required 'IamFleetRole' => 'string', // LaunchSpecifications is required 'LaunchSpecifications' => array( array( 'ImageId' => 'string', 'KeyName' => 'string', 'SecurityGroups' => array( array( 'GroupName' => 'string', 'GroupId' => 'string', ), // ... repeated ), 'UserData' => 'string', 'AddressingType' => 'string', 'InstanceType' => 'string', 'Placement' => array( 'AvailabilityZone' => 'string', 'GroupName' => 'string', ), 'KernelId' => 'string', 'RamdiskId' => 'string', 'BlockDeviceMappings' => array( array( 'VirtualName' => 'string', 'DeviceName' => 'string', 'Ebs' => array( 'SnapshotId' => 'string', 'VolumeSize' => integer, 'DeleteOnTermination' => true || false, 'VolumeType' => 'string', 'Iops' => integer, 'Encrypted' => true || false, ), 'NoDevice' => 'string', ), // ... repeated ), 'Monitoring' => array( 'Enabled' => true || false, ), 'SubnetId' => 'string', 'NetworkInterfaces' => array( array( 'NetworkInterfaceId' => 'string', 'DeviceIndex' => integer, 'SubnetId' => 'string', 'Description' => 'string', 'PrivateIpAddress' => 'string', 'Groups' => array('string', ... ), 'DeleteOnTermination' => true || false, 'PrivateIpAddresses' => array( array( // PrivateIpAddress is required 'PrivateIpAddress' => 'string', 'Primary' => true || false, ), // ... repeated ), 'SecondaryPrivateIpAddressCount' => integer, 'AssociatePublicIpAddress' => true || false, ), // ... repeated ), 'IamInstanceProfile' => array( 'Arn' => 'string', 'Name' => 'string', ), 'EbsOptimized' => true || false, 'WeightedCapacity' => integer, 'SpotPrice' => 'string', ), // ... repeated ), 'ExcessCapacityTerminationPolicy' => 'string', 'AllocationStrategy' => 'string', ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SpotFleetRequestConfig => (associative-array)The configuration for the Spot fleet request.
-
ClientToken => (string)A unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
-
SpotPrice => (string)The bid price per unit hour.
-
TargetCapacity => (int)The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O.
-
ValidFrom => (string)The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.
-
ValidUntil => (string)The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request.
-
TerminateInstancesWithExpiration => (bool)Indicates whether running Spot instances should be terminated when the Spot fleet request expires.
-
IamFleetRole => (string)Grants the Spot fleet permission to terminate Spot instances on your behalf when you cancel its Spot fleet request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set terminateInstancesWithExpiration.
-
LaunchSpecifications => (array<associative-array>)Information about the launch specifications for the Spot fleet request.
- (associative-array)
Describes the launch specification for one or more Spot instances.
-
ImageId => (string)The ID of the AMI.
-
KeyName => (string)The name of the key pair.
-
SecurityGroups => (array<associative-array>)One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
UserData => (string)The Base64-encoded MIME user data to make available to the instances.
-
AddressingType => (string)Deprecated.
-
InstanceType => (string:t1.micro |m1.small |m1.medium |m1.large |m1.xlarge |m3.medium |m3.large |m3.xlarge |m3.2xlarge |m4.large |m4.xlarge |m4.2xlarge |m4.4xlarge |m4.10xlarge |t2.micro |t2.small |t2.medium |t2.large |m2.xlarge |m2.2xlarge |m2.4xlarge |cr1.8xlarge |i2.xlarge |i2.2xlarge |i2.4xlarge |i2.8xlarge |hi1.4xlarge |hs1.8xlarge |c1.medium |c1.xlarge |c3.large |c3.xlarge |c3.2xlarge |c3.4xlarge |c3.8xlarge |c4.large |c4.xlarge |c4.2xlarge |c4.4xlarge |c4.8xlarge |cc1.4xlarge |cc2.8xlarge |g2.2xlarge |cg1.4xlarge |r3.large |r3.xlarge |r3.2xlarge |r3.4xlarge |r3.8xlarge |d2.xlarge |d2.2xlarge |d2.4xlarge |d2.8xlarge )The instance type.
-
Placement => (associative-array)The placement information.
-
AvailabilityZone => (string)The Availability Zone.
-
GroupName => (string)The name of the placement group (for cluster instances).
-
-
KernelId => (string)The ID of the kernel.
-
RamdiskId => (string)The ID of the RAM disk.
-
BlockDeviceMappings => (array<associative-array>)One or more block device mapping entries.
- (associative-array)
Describes a block device mapping.
-
VirtualName => (string)The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
-
DeviceName => (string)The device name exposed to the instance (for example, /dev/sdh or xvdh).
-
Ebs => (associative-array)Parameters used to automatically set up EBS volumes when the instance is launched.
-
SnapshotId => (string)The ID of the snapshot.
-
VolumeSize => (int)The size of the volume, in GiB.
Constraints: 1-1024 for standard volumes, 1-16384 for gp2 volumes, and 4-16384 for io1 volumes. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
-
DeleteOnTermination => (bool)Indicates whether the EBS volume is deleted on instance termination.
-
VolumeType => (string:standard |io1 |gp2 )The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
Default: standard
-
Iops => (int)The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS (SSD) volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose (SSD) volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose (SSD) baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
-
Encrypted => (bool)Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption.
-
-
NoDevice => (string)Suppresses the specified device included in the block device mapping of the AMI.
-
- (associative-array)
-
Monitoring => (associative-array)Enable or disable monitoring for the instances.
-
Enabled => (bool)Enables monitoring for the instance.
Default: false
-
-
SubnetId => (string)The ID of the subnet in which to launch the instances.
-
NetworkInterfaces => (array<associative-array>)One or more network interfaces.
- (associative-array)
Describes a network interface.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
DeviceIndex => (int)The index of the device on the instance for the network interface attachment. If you are specifying a network interface in a RunInstances request, you must provide the device index.
-
SubnetId => (string)The ID of the subnet associated with the network string. Applies only if creating a network interface when launching an instance.
-
Description => (string)The description of the network interface. Applies only if creating a network interface when launching an instance.
-
PrivateIpAddress => (string)The private IP address of the network interface. Applies only if creating a network interface when launching an instance.
-
Groups => (array<string>)The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
-
DeleteOnTermination => (bool)If set to true, the interface is deleted when the instance is terminated. You can specify true only if creating a new network interface when launching an instance.
-
PrivateIpAddresses => (array<associative-array>)One or more private IP addresses to assign to the network interface. Only one private IP address can be designated as primary.
- (associative-array)
Describes a secondary private IP address for a network interface.
-
PrivateIpAddress => (string)The private IP addresses.
-
Primary => (bool)Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
-
- (associative-array)
-
SecondaryPrivateIpAddressCount => (int)The number of secondary private IP addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option.
-
AssociatePublicIpAddress => (bool)Indicates whether to assign a public IP address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.
-
- (associative-array)
-
IamInstanceProfile => (associative-array)The IAM instance profile.
-
Arn => (string)The Amazon Resource Name (ARN) of the instance profile.
-
Name => (string)The name of the instance profile.
-
-
EbsOptimized => (bool)Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default: false
-
WeightedCapacity => (int)The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms (instances or a performance characteristic such as vCPUs, memory, or I/O).
If the target capacity divided by this value is not a whole number, we round the number of instances to the next whole number. If this value is not specified, the default is 1.
-
SpotPrice => (string)The bid price per unit hour for the specified instance type. If this value is not specified, the default is the Spot bid price specified for the fleet. To determine the bid price per unit hour, divide the Spot bid price by the value of WeightedCapacity.
-
- (associative-array)
-
ExcessCapacityTerminationPolicy => (string:noTermination |default )Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
-
AllocationStrategy => (string:lowestPrice |diversified )Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The default is lowestPrice.
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
SpotFleetRequestId => (string)The ID of the Spot fleet request.
Executes the RequestSpotInstances operation.
Creates a Spot instance request. Spot instances are instances that Amazon EC2 launches when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot Instance capacity and current Spot instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->requestSpotInstances(array( 'DryRun' => true || false, // SpotPrice is required 'SpotPrice' => 'string', 'ClientToken' => 'string', 'InstanceCount' => integer, 'Type' => 'string', 'ValidFrom' => 'mixed type: string (date format)|int (unix timestamp)|\DateTime', 'ValidUntil' => 'mixed type: string (date format)|int (unix timestamp)|\DateTime', 'LaunchGroup' => 'string', 'AvailabilityZoneGroup' => 'string', 'BlockDurationMinutes' => integer, 'LaunchSpecification' => array( 'ImageId' => 'string', 'KeyName' => 'string', 'UserData' => 'string', 'AddressingType' => 'string', 'InstanceType' => 'string', 'Placement' => array( 'AvailabilityZone' => 'string', 'GroupName' => 'string', ), 'KernelId' => 'string', 'RamdiskId' => 'string', 'BlockDeviceMappings' => array( array( 'VirtualName' => 'string', 'DeviceName' => 'string', 'Ebs' => array( 'SnapshotId' => 'string', 'VolumeSize' => integer, 'DeleteOnTermination' => true || false, 'VolumeType' => 'string', 'Iops' => integer, 'Encrypted' => true || false, ), 'NoDevice' => 'string', ), // ... repeated ), 'Monitoring' => array( // Enabled is required 'Enabled' => true || false, ), 'SubnetId' => 'string', 'NetworkInterfaces' => array( array( 'NetworkInterfaceId' => 'string', 'DeviceIndex' => integer, 'SubnetId' => 'string', 'Description' => 'string', 'PrivateIpAddress' => 'string', 'Groups' => array('string', ... ), 'DeleteOnTermination' => true || false, 'PrivateIpAddresses' => array( array( // PrivateIpAddress is required 'PrivateIpAddress' => 'string', 'Primary' => true || false, ), // ... repeated ), 'SecondaryPrivateIpAddressCount' => integer, 'AssociatePublicIpAddress' => true || false, ), // ... repeated ), 'IamInstanceProfile' => array( 'Arn' => 'string', 'Name' => 'string', ), 'EbsOptimized' => true || false, 'SecurityGroupIds' => array('string', ... ), 'SecurityGroups' => array('string', ... ), ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SpotPrice => (string)The maximum hourly price (bid) for any Spot instance launched to fulfill the request.
-
ClientToken => (string)Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
-
InstanceCount => (int)The maximum number of Spot instances to launch.
Default: 1
-
Type => (string:one-time |persistent )The Spot instance request type.
Default: one-time
-
ValidFrom => (string [date format]|int [unix timestamp]|\DateTime)The start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled.
Default: The request is effective indefinitely.
-
ValidUntil => (string [date format]|int [unix timestamp]|\DateTime)The end date of the request. If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached.
Default: The request is effective indefinitely.
-
LaunchGroup => (string)The instance launch group. Launch groups are Spot instances that launch together and terminate together.
Default: Instances are launched and terminated individually
-
AvailabilityZoneGroup => (string)The user-specified name for a logical grouping of bids.
When you specify an Availability Zone group in a Spot Instance request, all Spot instances in the request are launched in the same Availability Zone. Instance proximity is maintained with this parameter, but the choice of Availability Zone is not. The group applies only to bids for Spot Instances of the same instance type. Any additional Spot instance requests that are specified with the same Availability Zone group name are launched in that same Availability Zone, as long as at least one instance from the group is still active.
If there is no active instance running in the Availability Zone group that you specify for a new Spot instance request (all instances are terminated, the bid is expired, or the bid falls below current market), then Amazon EC2 launches the instance in any Availability Zone where the constraint can be met. Consequently, the subsequent set of Spot instances could be placed in a different zone from the original request, even if you specified the same Availability Zone group.
Default: Instances are launched in any available Availability Zone.
-
BlockDurationMinutes => (int)The required duration for the Spot instances, in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360).
The duration period starts as soon as your Spot instance receives its instance ID. At the end of the duration period, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
Note that you can't specify an Availability Zone group or a launch group if you specify a required duration.
-
LaunchSpecification => (associative-array)The launch specification.
-
ImageId => (string)The ID of the AMI.
-
KeyName => (string)The name of the key pair.
-
UserData => (string)The Base64-encoded MIME user data to make available to the instances.
-
AddressingType => (string)Deprecated.
-
InstanceType => (string:t1.micro |m1.small |m1.medium |m1.large |m1.xlarge |m3.medium |m3.large |m3.xlarge |m3.2xlarge |m4.large |m4.xlarge |m4.2xlarge |m4.4xlarge |m4.10xlarge |t2.micro |t2.small |t2.medium |t2.large |m2.xlarge |m2.2xlarge |m2.4xlarge |cr1.8xlarge |i2.xlarge |i2.2xlarge |i2.4xlarge |i2.8xlarge |hi1.4xlarge |hs1.8xlarge |c1.medium |c1.xlarge |c3.large |c3.xlarge |c3.2xlarge |c3.4xlarge |c3.8xlarge |c4.large |c4.xlarge |c4.2xlarge |c4.4xlarge |c4.8xlarge |cc1.4xlarge |cc2.8xlarge |g2.2xlarge |cg1.4xlarge |r3.large |r3.xlarge |r3.2xlarge |r3.4xlarge |r3.8xlarge |d2.xlarge |d2.2xlarge |d2.4xlarge |d2.8xlarge )The instance type.
-
Placement => (associative-array)The placement information for the instance.
-
AvailabilityZone => (string)The Availability Zone.
-
GroupName => (string)The name of the placement group (for cluster instances).
-
-
KernelId => (string)The ID of the kernel.
-
RamdiskId => (string)The ID of the RAM disk.
-
BlockDeviceMappings => (array<associative-array>)One or more block device mapping entries.
- (associative-array)
Describes a block device mapping.
-
VirtualName => (string)The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
-
DeviceName => (string)The device name exposed to the instance (for example, /dev/sdh or xvdh).
-
Ebs => (associative-array)Parameters used to automatically set up EBS volumes when the instance is launched.
-
SnapshotId => (string)The ID of the snapshot.
-
VolumeSize => (int)The size of the volume, in GiB.
Constraints: 1-1024 for standard volumes, 1-16384 for gp2 volumes, and 4-16384 for io1 volumes. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
-
DeleteOnTermination => (bool)Indicates whether the EBS volume is deleted on instance termination.
-
VolumeType => (string:standard |io1 |gp2 )The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
Default: standard
-
Iops => (int)The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS (SSD) volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose (SSD) volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose (SSD) baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
-
Encrypted => (bool)Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption.
-
-
NoDevice => (string)Suppresses the specified device included in the block device mapping of the AMI.
-
- (associative-array)
-
Monitoring => (associative-array)-
Enabled => (bool)Enables monitoring for the instance.
Default: Disabled
-
-
SubnetId => (string)The ID of the subnet in which to launch the instance.
-
NetworkInterfaces => (array<associative-array>)One or more network interfaces.
- (associative-array)
Describes a network interface.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
DeviceIndex => (int)The index of the device on the instance for the network interface attachment. If you are specifying a network interface in a RunInstances request, you must provide the device index.
-
SubnetId => (string)The ID of the subnet associated with the network string. Applies only if creating a network interface when launching an instance.
-
Description => (string)The description of the network interface. Applies only if creating a network interface when launching an instance.
-
PrivateIpAddress => (string)The private IP address of the network interface. Applies only if creating a network interface when launching an instance.
-
Groups => (array<string>)The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
-
DeleteOnTermination => (bool)If set to true, the interface is deleted when the instance is terminated. You can specify true only if creating a new network interface when launching an instance.
-
PrivateIpAddresses => (array<associative-array>)One or more private IP addresses to assign to the network interface. Only one private IP address can be designated as primary.
- (associative-array)
Describes a secondary private IP address for a network interface.
-
PrivateIpAddress => (string)The private IP addresses.
-
Primary => (bool)Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
-
- (associative-array)
-
SecondaryPrivateIpAddressCount => (int)The number of secondary private IP addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option.
-
AssociatePublicIpAddress => (bool)Indicates whether to assign a public IP address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.
-
- (associative-array)
-
IamInstanceProfile => (associative-array)The IAM instance profile.
-
Arn => (string)The Amazon Resource Name (ARN) of the instance profile.
-
Name => (string)The name of the instance profile.
-
-
EbsOptimized => (bool)Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default: false
-
SecurityGroupIds => (array<string>) -
SecurityGroups => (array<string>)
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
SpotInstanceRequests => (array<associative-array>)One or more Spot instance requests.
- (associative-array)
Describes a Spot instance request.
-
SpotInstanceRequestId => (string)The ID of the Spot instance request.
-
SpotPrice => (string)The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
-
Type => (string)The Spot instance request type.
-
State => (string)The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.
-
Fault => (associative-array)The fault codes for the Spot instance request, if any.
-
Code => (string)The reason code for the Spot instance state change.
-
Message => (string)The message for the Spot instance state change.
-
-
Status => (associative-array)The status code and status message describing the Spot instance request.
-
Code => (string)The status code.
-
UpdateTime => (string)The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
Message => (string)The description for the status code.
-
-
ValidFrom => (string)The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The request becomes active at this date and time.
-
ValidUntil => (string)The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). If this is a one-time request, it remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached.
-
LaunchGroup => (string)The instance launch group. Launch groups are Spot instances that launch together and terminate together.
-
AvailabilityZoneGroup => (string)The Availability Zone group. If you specify the same Availability Zone group for all Spot instance requests, all Spot instances are launched in the same Availability Zone.
-
LaunchSpecification => (associative-array)Additional information for launching instances.
-
ImageId => (string)The ID of the AMI.
-
KeyName => (string)The name of the key pair.
-
SecurityGroups => (array<associative-array>)One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
UserData => (string)The Base64-encoded MIME user data to make available to the instances.
-
AddressingType => (string)Deprecated.
-
InstanceType => (string)The instance type.
-
Placement => (associative-array)The placement information for the instance.
-
AvailabilityZone => (string)The Availability Zone.
-
GroupName => (string)The name of the placement group (for cluster instances).
-
-
KernelId => (string)The ID of the kernel.
-
RamdiskId => (string)The ID of the RAM disk.
-
BlockDeviceMappings => (array<associative-array>)One or more block device mapping entries.
- (associative-array)
Describes a block device mapping.
-
VirtualName => (string)The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
-
DeviceName => (string)The device name exposed to the instance (for example, /dev/sdh or xvdh).
-
Ebs => (associative-array)Parameters used to automatically set up EBS volumes when the instance is launched.
-
SnapshotId => (string)The ID of the snapshot.
-
VolumeSize => (int)The size of the volume, in GiB.
Constraints: 1-1024 for standard volumes, 1-16384 for gp2 volumes, and 4-16384 for io1 volumes. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
-
DeleteOnTermination => (bool)Indicates whether the EBS volume is deleted on instance termination.
-
VolumeType => (string)The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
Default: standard
-
Iops => (int)The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS (SSD) volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose (SSD) volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose (SSD) baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
-
Encrypted => (bool)Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption.
-
-
NoDevice => (string)Suppresses the specified device included in the block device mapping of the AMI.
-
- (associative-array)
-
MonitoringEnabled => (bool)Enables monitoring for the instance.
Default: Disabled
-
SubnetId => (string)The ID of the subnet in which to launch the instance.
-
NetworkInterfaces => (array<associative-array>)One or more network interfaces.
- (associative-array)
Describes a network interface.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
DeviceIndex => (int)The index of the device on the instance for the network interface attachment. If you are specifying a network interface in a RunInstances request, you must provide the device index.
-
SubnetId => (string)The ID of the subnet associated with the network string. Applies only if creating a network interface when launching an instance.
-
Description => (string)The description of the network interface. Applies only if creating a network interface when launching an instance.
-
PrivateIpAddress => (string)The private IP address of the network interface. Applies only if creating a network interface when launching an instance.
-
Groups => (array<string>)The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
-
DeleteOnTermination => (bool)If set to true, the interface is deleted when the instance is terminated. You can specify true only if creating a new network interface when launching an instance.
-
PrivateIpAddresses => (array<associative-array>)One or more private IP addresses to assign to the network interface. Only one private IP address can be designated as primary.
- (associative-array)
Describes a secondary private IP address for a network interface.
-
PrivateIpAddress => (string)The private IP addresses.
-
Primary => (bool)Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
-
- (associative-array)
-
SecondaryPrivateIpAddressCount => (int)The number of secondary private IP addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option.
-
AssociatePublicIpAddress => (bool)Indicates whether to assign a public IP address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.
-
- (associative-array)
-
IamInstanceProfile => (associative-array)The IAM instance profile.
-
Arn => (string)The Amazon Resource Name (ARN) of the instance profile.
-
Name => (string)The name of the instance profile.
-
-
EbsOptimized => (bool)Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default: false
-
-
InstanceId => (string)The instance ID, if an instance has been launched to fulfill the Spot instance request.
-
CreateTime => (string)The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
ProductDescription => (string)The product description associated with the Spot instance.
-
BlockDurationMinutes => (int)The required duration for the Spot instance, in minutes.
-
ActualBlockHourlyPrice => (string)If you specified a required duration and your request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.
-
Tags => (array<associative-array>)Any tags assigned to the resource.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
LaunchedAvailabilityZone => (string)The Availability Zone in which the bid is launched.
-
- (associative-array)
Executes the ResetImageAttribute operation.
Resets an attribute of an AMI to its default value.
The productCodes attribute can't be reset.
Examples
- Basic formatting example
$result = $client->resetImageAttribute(array( 'DryRun' => true || false, // ImageId is required 'ImageId' => 'string', // Attribute is required 'Attribute' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ImageId => (string)The ID of the AMI.
-
Attribute => (string:launchPermission )The attribute to reset (currently you can only reset the launch permission attribute).
-
Returns
Executes the ResetInstanceAttribute operation.
Resets an attribute of an instance to its default value. To reset the
The
Examples
- Basic formatting example
$result = $client->resetInstanceAttribute(array( 'DryRun' => true || false, // InstanceId is required 'InstanceId' => 'string', // Attribute is required 'Attribute' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceId => (string)The ID of the instance.
-
Attribute => (string:instanceType |kernel |ramdisk |userData |disableApiTermination |instanceInitiatedShutdownBehavior |rootDeviceName |blockDeviceMapping |productCodes |sourceDestCheck |groupSet |ebsOptimized |sriovNetSupport )The attribute to reset.
-
Returns
Executes the ResetNetworkInterfaceAttribute operation.
Resets a network interface attribute. You can specify only one attribute at a time.
Examples
- Basic formatting example
$result = $client->resetNetworkInterfaceAttribute(array( 'DryRun' => true || false, // NetworkInterfaceId is required 'NetworkInterfaceId' => 'string', 'SourceDestCheck' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
SourceDestCheck => (string)The source/destination checking attribute. Resets the value to true.
-
Returns
Executes the ResetSnapshotAttribute operation.
Resets permission settings for the specified snapshot.
For more information on modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->resetSnapshotAttribute(array( 'DryRun' => true || false, // SnapshotId is required 'SnapshotId' => 'string', // Attribute is required 'Attribute' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
SnapshotId => (string)The ID of the snapshot.
-
Attribute => (string:productCodes |createVolumePermission )The attribute to reset. Currently, only the attribute for permission to create volumes can be reset.
-
Returns
Executes the RestoreAddressToClassic operation.
Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform. You cannot move an Elastic IP address that was originally allocated for use in EC2-VPC. The Elastic IP address must not be associated with an instance or network interface.
Examples
- Basic formatting example
$result = $client->restoreAddressToClassic(array( 'DryRun' => true || false, // PublicIp is required 'PublicIp' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
PublicIp => (string)The Elastic IP address.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Status => (string)The move status for the IP address.
-
PublicIp => (string)The Elastic IP address.
Executes the RevokeSecurityGroupEgress operation.
Removes one or more egress rules from a security group for EC2-VPC. The values that you specify in the revoke request (for example, ports) must match the existing rule's values for the rule to be revoked.
Each rule consists of the protocol and the CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code.
Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.
Examples
- Basic formatting example
$result = $client->revokeSecurityGroupEgress(array( 'DryRun' => true || false, // GroupId is required 'GroupId' => 'string', 'SourceSecurityGroupName' => 'string', 'SourceSecurityGroupOwnerId' => 'string', 'IpProtocol' => 'string', 'FromPort' => integer, 'ToPort' => integer, 'CidrIp' => 'string', 'IpPermissions' => array( array( 'IpProtocol' => 'string', 'FromPort' => integer, 'ToPort' => integer, 'UserIdGroupPairs' => array( array( 'UserId' => 'string', 'GroupName' => 'string', 'GroupId' => 'string', ), // ... repeated ), 'IpRanges' => array( array( 'CidrIp' => 'string', ), // ... repeated ), 'PrefixListIds' => array( array( 'PrefixListId' => 'string', ), // ... repeated ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
GroupId => (string)The ID of the security group.
-
SourceSecurityGroupName => (string)The name of a destination security group. To revoke outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
-
SourceSecurityGroupOwnerId => (string)The AWS account number for a destination security group. To revoke outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
-
IpProtocol => (string)The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). Use -1 to specify all.
-
FromPort => (int)The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use -1 to specify all ICMP types.
-
ToPort => (int)The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type.
-
CidrIp => (string)The CIDR IP address range. You can't specify this parameter when specifying a source security group.
-
IpPermissions => (array<associative-array>)A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
- (associative-array)
Describes a security group rule.
-
IpProtocol => (string)The protocol.
When you call DescribeSecurityGroups, the protocol value returned is the number. Exception: For TCP, UDP, and ICMP, the value returned is the name (for example, tcp, udp, or icmp). For a list of protocol numbers, see Protocol Numbers. (VPC only) When you call AuthorizeSecurityGroupIngress, you can use -1 to specify all.
-
FromPort => (int)The start of port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.
-
ToPort => (int)The end of port range for the TCP and UDP protocols, or an ICMP code. A value of -1 indicates all ICMP codes for the specified ICMP type.
-
UserIdGroupPairs => (array<associative-array>)One or more security group and AWS account ID pairs.
- (associative-array)
Describes a security group and AWS account ID pair.
-
UserId => (string)The ID of an AWS account. EC2-Classic only.
-
GroupName => (string)The name of the security group. In a request, use this parameter for a security group in EC2-Classic or a default VPC only. For a security group in a nondefault VPC, use GroupId.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
IpRanges => (array<associative-array>)One or more IP ranges.
- (associative-array)
Describes an IP range.
-
CidrIp => (string)The CIDR range. You can either specify a CIDR range or a source security group, not both.
-
- (associative-array)
-
PrefixListIds => (array<associative-array>)(Valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress and DescribeSecurityGroups only) One or more prefix list IDs for an AWS service. In an AuthorizeSecurityGroupEgress request, this is the AWS service that you want to access through a VPC endpoint from instances associated with the security group.
- (associative-array)
The ID of the prefix.
-
PrefixListId => (string)The ID of the prefix.
-
- (associative-array)
-
- (associative-array)
-
Returns
Executes the RevokeSecurityGroupIngress operation.
Removes one or more ingress rules from a security group. The values that you specify in the revoke request (for example, ports) must match the existing rule's values for the rule to be removed.
Each rule consists of the protocol and the CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code.
Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.
Examples
- Basic formatting example
$result = $client->revokeSecurityGroupIngress(array( 'DryRun' => true || false, 'GroupName' => 'string', 'GroupId' => 'string', 'SourceSecurityGroupName' => 'string', 'SourceSecurityGroupOwnerId' => 'string', 'IpProtocol' => 'string', 'FromPort' => integer, 'ToPort' => integer, 'CidrIp' => 'string', 'IpPermissions' => array( array( 'IpProtocol' => 'string', 'FromPort' => integer, 'ToPort' => integer, 'UserIdGroupPairs' => array( array( 'UserId' => 'string', 'GroupName' => 'string', 'GroupId' => 'string', ), // ... repeated ), 'IpRanges' => array( array( 'CidrIp' => 'string', ), // ... repeated ), 'PrefixListIds' => array( array( 'PrefixListId' => 'string', ), // ... repeated ), ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
GroupName => (string)[EC2-Classic, default VPC] The name of the security group.
-
GroupId => (string)The ID of the security group. Required for a security group in a nondefault VPC.
-
SourceSecurityGroupName => (string)[EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. For EC2-VPC, the source security group must be in the same VPC.
-
SourceSecurityGroupOwnerId => (string)[EC2-Classic, default VPC] The AWS account ID of the source security group. For EC2-VPC, the source security group must be in the same VPC. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
-
IpProtocol => (string)The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). Use -1 to specify all.
-
FromPort => (int)The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use -1 to specify all ICMP types.
-
ToPort => (int)The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type.
-
CidrIp => (string)The CIDR IP address range. You can't specify this parameter when specifying a source security group.
-
IpPermissions => (array<associative-array>)A set of IP permissions. You can't specify a source security group and a CIDR IP address range.
- (associative-array)
Describes a security group rule.
-
IpProtocol => (string)The protocol.
When you call DescribeSecurityGroups, the protocol value returned is the number. Exception: For TCP, UDP, and ICMP, the value returned is the name (for example, tcp, udp, or icmp). For a list of protocol numbers, see Protocol Numbers. (VPC only) When you call AuthorizeSecurityGroupIngress, you can use -1 to specify all.
-
FromPort => (int)The start of port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.
-
ToPort => (int)The end of port range for the TCP and UDP protocols, or an ICMP code. A value of -1 indicates all ICMP codes for the specified ICMP type.
-
UserIdGroupPairs => (array<associative-array>)One or more security group and AWS account ID pairs.
- (associative-array)
Describes a security group and AWS account ID pair.
-
UserId => (string)The ID of an AWS account. EC2-Classic only.
-
GroupName => (string)The name of the security group. In a request, use this parameter for a security group in EC2-Classic or a default VPC only. For a security group in a nondefault VPC, use GroupId.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
IpRanges => (array<associative-array>)One or more IP ranges.
- (associative-array)
Describes an IP range.
-
CidrIp => (string)The CIDR range. You can either specify a CIDR range or a source security group, not both.
-
- (associative-array)
-
PrefixListIds => (array<associative-array>)(Valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress and DescribeSecurityGroups only) One or more prefix list IDs for an AWS service. In an AuthorizeSecurityGroupEgress request, this is the AWS service that you want to access through a VPC endpoint from instances associated with the security group.
- (associative-array)
The ID of the prefix.
-
PrefixListId => (string)The ID of the prefix.
-
- (associative-array)
-
- (associative-array)
-
Returns
Executes the RunInstances operation.
Launches the specified number of instances using an AMI for which you have permissions.
When you launch an instance, it enters the
If you don't specify a security group when launching an instance, Amazon EC2 uses the default security group. For more information, see Security Groups in the Amazon Elastic Compute Cloud User Guide.
[EC2-VPC only accounts] If you don't specify a subnet in the request, we choose a default subnet from your default VPC for you.
[EC2-Classic accounts] If you're launching into EC2-Classic and you don't specify an Availability Zone, we choose one for you.
Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.
You can provide optional user data when launching an instance. For more information, see Instance Metadata in the Amazon Elastic Compute Cloud User Guide.
If any of the AMIs have a product code attached for which the user has not
subscribed,
T2 instance types can only be launched into a VPC. If you do not have a
default VPC, or if you do not specify a subnet ID in the request,
For more information about troubleshooting, see What To Do If An Instance Immediately Terminates, and Troubleshooting Connecting to Your Instance in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->runInstances(array( 'DryRun' => true || false, // ImageId is required 'ImageId' => 'string', // MinCount is required 'MinCount' => integer, // MaxCount is required 'MaxCount' => integer, 'KeyName' => 'string', 'SecurityGroups' => array('string', ... ), 'SecurityGroupIds' => array('string', ... ), 'UserData' => 'string', 'InstanceType' => 'string', 'Placement' => array( 'AvailabilityZone' => 'string', 'GroupName' => 'string', 'Tenancy' => 'string', 'HostId' => 'string', 'Affinity' => 'string', ), 'KernelId' => 'string', 'RamdiskId' => 'string', 'BlockDeviceMappings' => array( array( 'VirtualName' => 'string', 'DeviceName' => 'string', 'Ebs' => array( 'SnapshotId' => 'string', 'VolumeSize' => integer, 'DeleteOnTermination' => true || false, 'VolumeType' => 'string', 'Iops' => integer, 'Encrypted' => true || false, ), 'NoDevice' => 'string', ), // ... repeated ), 'Monitoring' => array( // Enabled is required 'Enabled' => true || false, ), 'SubnetId' => 'string', 'DisableApiTermination' => true || false, 'InstanceInitiatedShutdownBehavior' => 'string', 'PrivateIpAddress' => 'string', 'ClientToken' => 'string', 'AdditionalInfo' => 'string', 'NetworkInterfaces' => array( array( 'NetworkInterfaceId' => 'string', 'DeviceIndex' => integer, 'SubnetId' => 'string', 'Description' => 'string', 'PrivateIpAddress' => 'string', 'Groups' => array('string', ... ), 'DeleteOnTermination' => true || false, 'PrivateIpAddresses' => array( array( // PrivateIpAddress is required 'PrivateIpAddress' => 'string', 'Primary' => true || false, ), // ... repeated ), 'SecondaryPrivateIpAddressCount' => integer, 'AssociatePublicIpAddress' => true || false, ), // ... repeated ), 'IamInstanceProfile' => array( 'Arn' => 'string', 'Name' => 'string', ), 'EbsOptimized' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
ImageId => (string)The ID of the AMI, which you can get by calling DescribeImages.
-
MinCount => (int)The minimum number of instances to launch. If you specify a minimum that is more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances.
Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.
-
MaxCount => (int)The maximum number of instances to launch. If you specify more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above MinCount.
Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.
-
KeyName => (string)The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.
If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
-
SecurityGroups => (array<string>)[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead.
Default: Amazon EC2 uses the default security group.
-
SecurityGroupIds => (array<string>)One or more security group IDs. You can create a security group using CreateSecurityGroup.
Default: Amazon EC2 uses the default security group.
-
UserData => (string)The Base64-encoded MIME user data for the instances.
-
InstanceType => (string:t1.micro |m1.small |m1.medium |m1.large |m1.xlarge |m3.medium |m3.large |m3.xlarge |m3.2xlarge |m4.large |m4.xlarge |m4.2xlarge |m4.4xlarge |m4.10xlarge |t2.micro |t2.small |t2.medium |t2.large |m2.xlarge |m2.2xlarge |m2.4xlarge |cr1.8xlarge |i2.xlarge |i2.2xlarge |i2.4xlarge |i2.8xlarge |hi1.4xlarge |hs1.8xlarge |c1.medium |c1.xlarge |c3.large |c3.xlarge |c3.2xlarge |c3.4xlarge |c3.8xlarge |c4.large |c4.xlarge |c4.2xlarge |c4.4xlarge |c4.8xlarge |cc1.4xlarge |cc2.8xlarge |g2.2xlarge |cg1.4xlarge |r3.large |r3.xlarge |r3.2xlarge |r3.4xlarge |r3.8xlarge |d2.xlarge |d2.2xlarge |d2.4xlarge |d2.8xlarge )The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.
-
Placement => (associative-array)The placement for the instance.
-
AvailabilityZone => (string)The Availability Zone of the instance.
-
GroupName => (string)The name of the placement group the instance is in (for cluster compute instances).
-
Tenancy => (string:default |dedicated )The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.
-
-
KernelId => (string)The ID of the kernel.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide.
-
RamdiskId => (string)The ID of the RAM disk.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide.
-
BlockDeviceMappings => (array<associative-array>)The block device mapping.
- (associative-array)
Describes a block device mapping.
-
VirtualName => (string)The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
-
DeviceName => (string)The device name exposed to the instance (for example, /dev/sdh or xvdh).
-
Ebs => (associative-array)Parameters used to automatically set up EBS volumes when the instance is launched.
-
SnapshotId => (string)The ID of the snapshot.
-
VolumeSize => (int)The size of the volume, in GiB.
Constraints: 1-1024 for standard volumes, 1-16384 for gp2 volumes, and 4-16384 for io1 volumes. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
-
DeleteOnTermination => (bool)Indicates whether the EBS volume is deleted on instance termination.
-
VolumeType => (string:standard |io1 |gp2 )The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
Default: standard
-
Iops => (int)The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS (SSD) volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose (SSD) volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose (SSD) baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
-
Encrypted => (bool)Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption.
-
-
NoDevice => (string)Suppresses the specified device included in the block device mapping of the AMI.
-
- (associative-array)
-
Monitoring => (associative-array)The monitoring for the instance.
-
Enabled => (bool)Indicates whether monitoring is enabled for the instance.
-
-
SubnetId => (string)[EC2-VPC] The ID of the subnet to launch the instance into.
-
DisableApiTermination => (bool)If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. If you set this parameter to true and then later want to be able to terminate the instance, you must first change the value of the disableApiTermination attribute to false using ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.
Default: false
-
InstanceInitiatedShutdownBehavior => (string:stop |terminate )Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default: stop
-
PrivateIpAddress => (string)[EC2-VPC] The primary IP address. You must specify a value from the IP address range of the subnet.
Only one private IP address can be designated as primary. Therefore, you can't specify this parameter if PrivateIpAddresses.n.Primary is set to true and PrivateIpAddresses.n.PrivateIpAddress is set to an IP address.
Default: We select an IP address from the IP address range of the subnet.
-
ClientToken => (string)Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
-
AdditionalInfo => (string)Reserved.
-
NetworkInterfaces => (array<associative-array>)One or more network interfaces.
- (associative-array)
Describes a network interface.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
DeviceIndex => (int)The index of the device on the instance for the network interface attachment. If you are specifying a network interface in a RunInstances request, you must provide the device index.
-
SubnetId => (string)The ID of the subnet associated with the network string. Applies only if creating a network interface when launching an instance.
-
Description => (string)The description of the network interface. Applies only if creating a network interface when launching an instance.
-
PrivateIpAddress => (string)The private IP address of the network interface. Applies only if creating a network interface when launching an instance.
-
Groups => (array<string>)The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
-
DeleteOnTermination => (bool)If set to true, the interface is deleted when the instance is terminated. You can specify true only if creating a new network interface when launching an instance.
-
PrivateIpAddresses => (array<associative-array>)One or more private IP addresses to assign to the network interface. Only one private IP address can be designated as primary.
- (associative-array)
Describes a secondary private IP address for a network interface.
-
PrivateIpAddress => (string)The private IP addresses.
-
Primary => (bool)Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
-
- (associative-array)
-
SecondaryPrivateIpAddressCount => (int)The number of secondary private IP addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option.
-
AssociatePublicIpAddress => (bool)Indicates whether to assign a public IP address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.
-
- (associative-array)
-
IamInstanceProfile => (associative-array)The IAM instance profile.
-
Arn => (string)The Amazon Resource Name (ARN) of the instance profile.
-
Name => (string)The name of the instance profile.
-
-
EbsOptimized => (bool)Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
Default: false
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ReservationId => (string)The ID of the reservation.
-
OwnerId => (string)The ID of the AWS account that owns the reservation.
-
RequesterId => (string)The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).
-
Groups => (array<associative-array>)One or more security groups.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
Instances => (array<associative-array>)One or more instances.
- (associative-array)
Describes an instance.
-
InstanceId => (string)The ID of the instance.
-
ImageId => (string)The ID of the AMI used to launch the instance.
-
State => (associative-array)The current state of the instance.
-
Code => (int)The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0 : pending
-
16 : running
-
32 : shutting-down
-
48 : terminated
-
64 : stopping
-
80 : stopped
-
-
Name => (string)The current state of the instance.
-
-
PrivateDnsName => (string)The private DNS name assigned to the instance. This DNS name can only be used inside the Amazon EC2 network. This name is not available until the instance enters the running state.
-
PublicDnsName => (string)The public DNS name assigned to the instance. This name is not available until the instance enters the running state.
-
StateTransitionReason => (string)The reason for the most recent state transition. This might be an empty string.
-
KeyName => (string)The name of the key pair, if this instance was launched with an associated key pair.
-
AmiLaunchIndex => (int)The AMI launch index, which can be used to find this instance in the launch group.
-
ProductCodes => (array<associative-array>)The product codes attached to this instance.
- (associative-array)
Describes a product code.
-
ProductCodeId => (string)The product code.
-
ProductCodeType => (string)The type of product code.
-
- (associative-array)
-
InstanceType => (string)The instance type.
-
LaunchTime => (string)The time the instance was launched.
-
Placement => (associative-array)The location where the instance launched.
-
AvailabilityZone => (string)The Availability Zone of the instance.
-
GroupName => (string)The name of the placement group the instance is in (for cluster compute instances).
-
Tenancy => (string)The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.
-
-
KernelId => (string)The kernel associated with this instance.
-
RamdiskId => (string)The RAM disk associated with this instance.
-
Platform => (string)The value is Windows for Windows instances; otherwise blank.
-
Monitoring => (associative-array)The monitoring information for the instance.
-
State => (string)Indicates whether monitoring is enabled for the instance.
-
-
SubnetId => (string)The ID of the subnet in which the instance is running.
-
VpcId => (string)The ID of the VPC in which the instance is running.
-
PrivateIpAddress => (string)The private IP address assigned to the instance.
-
PublicIpAddress => (string)The public IP address assigned to the instance.
-
StateReason => (associative-array)The reason for the most recent state transition.
-
Code => (string)The reason code for the state change.
-
Message => (string)The message for the state change.
-
Server.SpotInstanceTermination: A Spot Instance was terminated due to an increase in the market price.
-
Server.InternalError: An internal error occurred during instance launch, resulting in termination.
-
Server.InsufficientInstanceCapacity: There was insufficient instance capacity to satisfy the launch request.
-
Client.InternalError: A client error caused the instance to terminate on launch.
-
Client.InstanceInitiatedShutdown: The instance was shut down using the shutdown -h command from the instance.
-
Client.UserInitiatedShutdown: The instance was shut down using the Amazon EC2 API.
-
Client.VolumeLimitExceeded: The volume limit was exceeded.
-
Client.InvalidSnapshot.NotFound: The specified snapshot was not found.
-
-
-
Architecture => (string)The architecture of the image.
-
RootDeviceType => (string)The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
-
RootDeviceName => (string)The root device name (for example, /dev/sda1 or /dev/xvda).
-
BlockDeviceMappings => (array<associative-array>)Any block device mapping entries for the instance.
- (associative-array)
Describes a block device mapping.
-
DeviceName => (string)The device name exposed to the instance (for example, /dev/sdh or xvdh).
-
Ebs => (associative-array)Parameters used to automatically set up EBS volumes when the instance is launched.
-
VolumeId => (string)The ID of the EBS volume.
-
Status => (string)The attachment state.
-
AttachTime => (string)The time stamp when the attachment initiated.
-
DeleteOnTermination => (bool)Indicates whether the volume is deleted on instance termination.
-
-
- (associative-array)
-
VirtualizationType => (string)The virtualization type of the instance.
-
InstanceLifecycle => (string)Indicates whether this is a Spot Instance.
-
SpotInstanceRequestId => (string)The ID of the Spot Instance request.
-
ClientToken => (string)The idempotency token you provided when you launched the instance.
-
Tags => (array<associative-array>)Any tags assigned to the instance.
- (associative-array)
Describes a tag.
-
Key => (string)The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
-
Value => (string)The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
- (associative-array)
-
SecurityGroups => (array<associative-array>)One or more security groups for the instance.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
SourceDestCheck => (bool)Specifies whether to enable an instance launched in a VPC to perform NAT. This controls whether source/destination checking is enabled on the instance. A value of true means checking is enabled, and false means checking is disabled. The value must be false for the instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.
-
Hypervisor => (string)The hypervisor type of the instance.
-
NetworkInterfaces => (array<associative-array>)[EC2-VPC] One or more network interfaces for the instance.
- (associative-array)
Describes a network interface.
-
NetworkInterfaceId => (string)The ID of the network interface.
-
SubnetId => (string)The ID of the subnet.
-
VpcId => (string)The ID of the VPC.
-
Description => (string)The description.
-
OwnerId => (string)The ID of the AWS account that created the network interface.
-
Status => (string)The status of the network interface.
-
MacAddress => (string)The MAC address.
-
PrivateIpAddress => (string)The IP address of the network interface within the subnet.
-
PrivateDnsName => (string)The private DNS name.
-
SourceDestCheck => (bool)Indicates whether to validate network traffic to or from this network interface.
-
Groups => (array<associative-array>)One or more security groups.
- (associative-array)
Describes a security group.
-
GroupName => (string)The name of the security group.
-
GroupId => (string)The ID of the security group.
-
- (associative-array)
-
Attachment => (associative-array)The network interface attachment.
-
AttachmentId => (string)The ID of the network interface attachment.
-
DeviceIndex => (int)The index of the device on the instance for the network interface attachment.
-
Status => (string)The attachment state.
-
AttachTime => (string)The time stamp when the attachment initiated.
-
DeleteOnTermination => (bool)Indicates whether the network interface is deleted when the instance is terminated.
-
-
Association => (associative-array)The association information for an Elastic IP associated with the network interface.
-
PublicIp => (string)The public IP address or Elastic IP address bound to the network interface.
-
PublicDnsName => (string)The public DNS name.
-
IpOwnerId => (string)The ID of the owner of the Elastic IP address.
-
-
PrivateIpAddresses => (array<associative-array>)The private IP addresses associated with the network interface.
- (associative-array)
Describes a private IP address.
-
PrivateIpAddress => (string)The private IP address of the network interface.
-
PrivateDnsName => (string)The private DNS name.
-
Primary => (bool)Indicates whether this IP address is the primary private IP address of the network interface.
-
Association => (associative-array)The association information for an Elastic IP address for the network interface.
-
PublicIp => (string)The public IP address or Elastic IP address bound to the network interface.
-
PublicDnsName => (string)The public DNS name.
-
IpOwnerId => (string)The ID of the owner of the Elastic IP address.
-
-
- (associative-array)
-
- (associative-array)
-
IamInstanceProfile => (associative-array)The IAM instance profile associated with the instance.
-
Arn => (string)The Amazon Resource Name (ARN) of the instance profile.
-
Id => (string)The ID of the instance profile.
-
-
EbsOptimized => (bool)Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
-
SriovNetSupport => (string)Specifies whether enhanced networking is enabled.
-
- (associative-array)
Executes the StartInstances operation.
Starts an Amazon EBS-backed AMI that you've previously stopped.
Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Each time you transition an instance from stopped to started, Amazon EC2 charges a full instance hour, even if transitions happen multiple times within a single hour.
Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.
Performing this operation on an instance that uses an instance store as its root device returns an error.
For more information, see Stopping Instances in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->startInstances(array( // InstanceIds is required 'InstanceIds' => array('string', ... ), 'AdditionalInfo' => 'string', 'DryRun' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
InstanceIds => (array<string>)One or more instance IDs.
-
AdditionalInfo => (string)Reserved.
-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
StartingInstances => (array<associative-array>)Information about one or more started instances.
- (associative-array)
Describes an instance state change.
-
InstanceId => (string)The ID of the instance.
-
CurrentState => (associative-array)The current state of the instance.
-
Code => (int)The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0 : pending
-
16 : running
-
32 : shutting-down
-
48 : terminated
-
64 : stopping
-
80 : stopped
-
-
Name => (string)The current state of the instance.
-
-
PreviousState => (associative-array)The previous state of the instance.
-
Code => (int)The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0 : pending
-
16 : running
-
32 : shutting-down
-
48 : terminated
-
64 : stopping
-
80 : stopped
-
-
Name => (string)The current state of the instance.
-
-
- (associative-array)
Executes the StopInstances operation.
Stops an Amazon EBS-backed instance. Each time you transition an instance from stopped to started, Amazon EC2 charges a full instance hour, even if transitions happen multiple times within a single hour.
You can't start or stop Spot Instances.
Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time.
Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.
Performing this operation on an instance that uses an instance store as its root device returns an error.
You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, the root device and any other devices attached during the instance launch are automatically deleted. For more information about the differences between stopping and terminating instances, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.
For more information about troubleshooting, see Troubleshooting Stopping Your Instance in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->stopInstances(array( 'DryRun' => true || false, // InstanceIds is required 'InstanceIds' => array('string', ... ), 'Force' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceIds => (array<string>)One or more instance IDs.
-
Force => (bool)Forces the instances to stop. The instances do not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances.
Default: false
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
StoppingInstances => (array<associative-array>)Information about one or more stopped instances.
- (associative-array)
Describes an instance state change.
-
InstanceId => (string)The ID of the instance.
-
CurrentState => (associative-array)The current state of the instance.
-
Code => (int)The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0 : pending
-
16 : running
-
32 : shutting-down
-
48 : terminated
-
64 : stopping
-
80 : stopped
-
-
Name => (string)The current state of the instance.
-
-
PreviousState => (associative-array)The previous state of the instance.
-
Code => (int)The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0 : pending
-
16 : running
-
32 : shutting-down
-
48 : terminated
-
64 : stopping
-
80 : stopped
-
-
Name => (string)The current state of the instance.
-
-
- (associative-array)
Executes the TerminateInstances operation.
Shuts down one or more instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.
Terminated instances remain visible after termination (for approximately one hour).
By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.
You can stop, start, and terminate EBS-backed instances. You can only
terminate instance store-backed instances. What happens to an instance differs
if you stop it or terminate it. For example, when you stop an instance, the root
device and any other devices attached to the instance persist. When you
terminate an instance, any attached EBS volumes with the
For more information about troubleshooting, see Troubleshooting Terminating Your Instance in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->terminateInstances(array( 'DryRun' => true || false, // InstanceIds is required 'InstanceIds' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceIds => (array<string>)One or more instance IDs.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
TerminatingInstances => (array<associative-array>)Information about one or more terminated instances.
- (associative-array)
Describes an instance state change.
-
InstanceId => (string)The ID of the instance.
-
CurrentState => (associative-array)The current state of the instance.
-
Code => (int)The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0 : pending
-
16 : running
-
32 : shutting-down
-
48 : terminated
-
64 : stopping
-
80 : stopped
-
-
Name => (string)The current state of the instance.
-
-
PreviousState => (associative-array)The previous state of the instance.
-
Code => (int)The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0 : pending
-
16 : running
-
32 : shutting-down
-
48 : terminated
-
64 : stopping
-
80 : stopped
-
-
Name => (string)The current state of the instance.
-
-
- (associative-array)
Executes the UnassignPrivateIpAddresses operation.
Unassigns one or more secondary private IP addresses from a network interface.
Examples
- Basic formatting example
$result = $client->unassignPrivateIpAddresses(array( // NetworkInterfaceId is required 'NetworkInterfaceId' => 'string', // PrivateIpAddresses is required 'PrivateIpAddresses' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
NetworkInterfaceId => (string)The ID of the network interface.
-
PrivateIpAddresses => (array<string>)The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address.
-
Returns
Executes the UnmonitorInstances operation.
Disables monitoring for a running instance. For more information about monitoring instances, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide.
Examples
- Basic formatting example
$result = $client->unmonitorInstances(array( 'DryRun' => true || false, // InstanceIds is required 'InstanceIds' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
DryRun => (bool)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
-
InstanceIds => (array<string>)One or more instance IDs.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
InstanceMonitorings => (array<associative-array>)Monitoring information for one or more instances.
- (associative-array)
Describes the monitoring information of the instance.
-
InstanceId => (string)The ID of the instance.
-
Monitoring => (associative-array)The monitoring information.
-
State => (string)Indicates whether monitoring is enabled for the instance.
-
-
- (associative-array)
The input array uses the parameters of the DescribeInstances operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeInstances operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeInstances operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeExportTasks operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeExportTasks operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeSnapshots operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeSubnets operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeVolumes operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeVolumes operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeVolumes operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeVpcs operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeVpnConnections operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeVpnConnections operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeBundleTasks operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeConversionTasks operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeConversionTasks operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeCustomerGateways operation and waiter specific settings
Parameters
- $input
array
$input
The input array uses the parameters of the DescribeCustomerGateways operation and waiter specific settings
Parameters
- $input
array
$input
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeAccountAttributesIterator( array $args = array() )
The input array uses the parameters of the DescribeAccountAttributes operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeAddressesIterator( array $args = array() )
The input array uses the parameters of the DescribeAddresses operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeAvailabilityZonesIterator( array $args = array() )
The input array uses the parameters of the DescribeAvailabilityZones operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeBundleTasksIterator( array $args = array() )
The input array uses the parameters of the DescribeBundleTasks operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeConversionTasksIterator( array $args = array() )
The input array uses the parameters of the DescribeConversionTasks operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeCustomerGatewaysIterator( array $args = array() )
The input array uses the parameters of the DescribeCustomerGateways operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeDhcpOptionsIterator( array $args = array() )
The input array uses the parameters of the DescribeDhcpOptions operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeExportTasksIterator( array $args = array() )
The input array uses the parameters of the DescribeExportTasks operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeImagesIterator( array $args = array() )
The input array uses the parameters of the DescribeImages operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeInstanceStatusIterator( array $args = array() )
The input array uses the parameters of the DescribeInstanceStatus operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeInstancesIterator( array $args = array() )
The input array uses the parameters of the DescribeInstances operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeInternetGatewaysIterator( array $args = array() )
The input array uses the parameters of the DescribeInternetGateways operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeKeyPairsIterator( array $args = array() )
The input array uses the parameters of the DescribeKeyPairs operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeNetworkAclsIterator( array $args = array() )
The input array uses the parameters of the DescribeNetworkAcls operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeNetworkInterfacesIterator( array $args = array() )
The input array uses the parameters of the DescribeNetworkInterfaces operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribePlacementGroupsIterator( array $args = array() )
The input array uses the parameters of the DescribePlacementGroups operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeRegionsIterator( array $args = array() )
The input array uses the parameters of the DescribeRegions operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeReservedInstancesIterator( array $args = array() )
The input array uses the parameters of the DescribeReservedInstances operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeReservedInstancesListingsIterator( array $args = array() )
The input array uses the parameters of the DescribeReservedInstancesListings operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeReservedInstancesOfferingsIterator( array $args = array() )
The input array uses the parameters of the DescribeReservedInstancesOfferings operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeReservedInstancesModificationsIterator( array $args = array() )
The input array uses the parameters of the DescribeReservedInstancesModifications operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeRouteTablesIterator( array $args = array() )
The input array uses the parameters of the DescribeRouteTables operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeSecurityGroupsIterator( array $args = array() )
The input array uses the parameters of the DescribeSecurityGroups operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeSnapshotsIterator( array $args = array() )
The input array uses the parameters of the DescribeSnapshots operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeSpotInstanceRequestsIterator( array $args = array() )
The input array uses the parameters of the DescribeSpotInstanceRequests operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeSpotPriceHistoryIterator( array $args = array() )
The input array uses the parameters of the DescribeSpotPriceHistory operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeSubnetsIterator( array $args = array() )
The input array uses the parameters of the DescribeSubnets operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeTagsIterator( array $args = array() )
The input array uses the parameters of the DescribeTags operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeVolumeStatusIterator( array $args = array() )
The input array uses the parameters of the DescribeVolumeStatus operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeVolumesIterator( array $args = array() )
The input array uses the parameters of the DescribeVolumes operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeVpcsIterator( array $args = array() )
The input array uses the parameters of the DescribeVpcs operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeVpnConnectionsIterator( array $args = array() )
The input array uses the parameters of the DescribeVpnConnections operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeVpnGatewaysIterator( array $args = array() )
The input array uses the parameters of the DescribeVpnGateways operation
Parameters
- $args
array
$args
Returns
Methods inherited from Aws\Common\Client\AbstractClient
__call()
,
__construct()
,
createRequest()
,
getAllEvents()
,
getApiVersion()
,
getCredentials()
,
getRegion()
,
getRegions()
,
getSignature()
,
getWaiter()
,
getWaiterFactory()
,
send()
,
setCredentials()
,
setRegion()
,
setWaiterFactory()
,
waitUntil()
Methods inherited from Guzzle\Service\Client
execute()
,
executeMultiple()
,
getCommand()
,
getCommandFactory()
,
getDescription()
,
getInflector()
,
getIterator()
,
getResourceIteratorFactory()
,
prepareCommand()
,
setCommandFactory()
,
setDescription()
,
setInflector()
,
setResourceIteratorFactory()
Methods inherited from Guzzle\Http\Client
delete()
,
expandTemplate()
,
extractPharCacert()
,
get()
,
getBaseUrl()
,
getConfig()
,
getCurlMulti()
,
getDefaultOption()
,
getDefaultUserAgent()
,
getUriTemplate()
,
head()
,
initSsl()
,
options()
,
patch()
,
post()
,
prepareRequest()
,
put()
,
sendMultiple()
,
setBaseUrl()
,
setConfig()
,
setCurlMulti()
,
setDefaultOption()
,
setRequestFactory()
,
setSslVerification()
,
setUriTemplate()
,
setUserAgent()
Methods inherited from Guzzle\Common\AbstractHasDispatcher
addSubscriber()
,
dispatch()
,
getEventDispatcher()
,
setEventDispatcher()
Magic methods summary
Constants summary
string |
LATEST_API_VERSION |
'2015-10-01' |
Constants inherited from Guzzle\Service\Client
Constants inherited from Guzzle\Http\Client
CURL_OPTIONS
,
DEFAULT_SELECT_TIMEOUT
,
DISABLE_REDIRECTS
,
MAX_HANDLES
,
REQUEST_OPTIONS
,
SSL_CERT_AUTHORITY
Constants inherited from Guzzle\Http\ClientInterface
Properties summary
Properties inherited from Aws\Common\Client\AbstractClient
$aggregator
,
$credentials
,
$signature
,
$waiterFactory
Properties inherited from Guzzle\Service\Client
$commandFactory
,
$inflector
,
$resourceIteratorFactory
,
$serviceDescription
Properties inherited from Guzzle\Http\Client
$defaultHeaders
,
$requestFactory
,
$userAgent