Las traducciones son generadas a través de traducción automática. En caso de conflicto entre la traducción y la version original de inglés, prevalecerá la version en inglés.
Acciones para que Amazon EC2 utilice AWS SDKs
Los siguientes ejemplos de código muestran cómo realizar EC2 acciones individuales de Amazon con AWS SDKs. Cada ejemplo incluye un enlace a GitHub, donde puedes encontrar instrucciones para configurar y ejecutar el código.
Estos extractos se denominan Amazon EC2 API y son extractos de código de programas más grandes que deben ejecutarse en su contexto. Puede ver las acciones en su contexto en Escenarios para el EC2 uso de Amazon AWS SDKs .
Los siguientes ejemplos incluyen solo las acciones que se utilizan con mayor frecuencia. Para obtener una lista completa, consulte la APIreferencia de Amazon Elastic Compute Cloud.
Ejemplos
- AcceptVpcPeeringConnection
- AllocateAddress
- AllocateHosts
- AssignPrivateIpAddresses
- AssociateAddress
- AssociateDhcpOptions
- AssociateRouteTable
- AttachInternetGateway
- AttachNetworkInterface
- AttachVolume
- AttachVpnGateway
- AuthorizeSecurityGroupEgress
- AuthorizeSecurityGroupIngress
- CancelCapacityReservation
- CancelImportTask
- CancelSpotFleetRequests
- CancelSpotInstanceRequests
- ConfirmProductInstance
- CopyImage
- CopySnapshot
- CreateCapacityReservation
- CreateCustomerGateway
- CreateDhcpOptions
- CreateFlowLogs
- CreateImage
- CreateInstanceExportTask
- CreateInternetGateway
- CreateKeyPair
- CreateLaunchTemplate
- CreateNetworkAcl
- CreateNetworkAclEntry
- CreateNetworkInterface
- CreatePlacementGroup
- CreateRoute
- CreateRouteTable
- CreateSecurityGroup
- CreateSnapshot
- CreateSpotDatafeedSubscription
- CreateSubnet
- CreateTags
- CreateVolume
- CreateVpc
- CreateVpcEndpoint
- CreateVpnConnection
- CreateVpnConnectionRoute
- CreateVpnGateway
- DeleteCustomerGateway
- DeleteDhcpOptions
- DeleteFlowLogs
- DeleteInternetGateway
- DeleteKeyPair
- DeleteLaunchTemplate
- DeleteNetworkAcl
- DeleteNetworkAclEntry
- DeleteNetworkInterface
- DeletePlacementGroup
- DeleteRoute
- DeleteRouteTable
- DeleteSecurityGroup
- DeleteSnapshot
- DeleteSpotDatafeedSubscription
- DeleteSubnet
- DeleteTags
- DeleteVolume
- DeleteVpc
- DeleteVpcEndpoint
- DeleteVpnConnection
- DeleteVpnConnectionRoute
- DeleteVpnGateway
- DeregisterImage
- DescribeAccountAttributes
- DescribeAddresses
- DescribeAvailabilityZones
- DescribeBundleTasks
- DescribeCapacityReservations
- DescribeCustomerGateways
- DescribeDhcpOptions
- DescribeFlowLogs
- DescribeHostReservationOfferings
- DescribeHosts
- DescribeIamInstanceProfileAssociations
- DescribeIdFormat
- DescribeIdentityIdFormat
- DescribeImageAttribute
- DescribeImages
- DescribeImportImageTasks
- DescribeImportSnapshotTasks
- DescribeInstanceAttribute
- DescribeInstanceStatus
- DescribeInstanceTypes
- DescribeInstances
- DescribeInternetGateways
- DescribeKeyPairs
- DescribeNetworkAcls
- DescribeNetworkInterfaceAttribute
- DescribeNetworkInterfaces
- DescribePlacementGroups
- DescribePrefixLists
- DescribeRegions
- DescribeRouteTables
- DescribeScheduledInstanceAvailability
- DescribeScheduledInstances
- DescribeSecurityGroups
- DescribeSnapshotAttribute
- DescribeSnapshots
- DescribeSpotDatafeedSubscription
- DescribeSpotFleetInstances
- DescribeSpotFleetRequestHistory
- DescribeSpotFleetRequests
- DescribeSpotInstanceRequests
- DescribeSpotPriceHistory
- DescribeSubnets
- DescribeTags
- DescribeVolumeAttribute
- DescribeVolumeStatus
- DescribeVolumes
- DescribeVpcAttribute
- DescribeVpcClassicLink
- DescribeVpcClassicLinkDnsSupport
- DescribeVpcEndpointServices
- DescribeVpcEndpoints
- DescribeVpcs
- DescribeVpnConnections
- DescribeVpnGateways
- DetachInternetGateway
- DetachNetworkInterface
- DetachVolume
- DetachVpnGateway
- DisableVgwRoutePropagation
- DisableVpcClassicLink
- DisableVpcClassicLinkDnsSupport
- DisassociateAddress
- DisassociateRouteTable
- EnableVgwRoutePropagation
- EnableVolumeIo
- EnableVpcClassicLink
- EnableVpcClassicLinkDnsSupport
- GetConsoleOutput
- GetHostReservationPurchasePreview
- GetPasswordData
- ImportImage
- ImportKeyPair
- ImportSnapshot
- ModifyCapacityReservation
- ModifyHosts
- ModifyIdFormat
- ModifyImageAttribute
- ModifyInstanceAttribute
- ModifyInstanceCreditSpecification
- ModifyNetworkInterfaceAttribute
- ModifyReservedInstances
- ModifySnapshotAttribute
- ModifySpotFleetRequest
- ModifySubnetAttribute
- ModifyVolumeAttribute
- ModifyVpcAttribute
- MonitorInstances
- MoveAddressToVpc
- PurchaseHostReservation
- PurchaseScheduledInstances
- RebootInstances
- RegisterImage
- RejectVpcPeeringConnection
- ReleaseAddress
- ReleaseHosts
- ReplaceIamInstanceProfileAssociation
- ReplaceNetworkAclAssociation
- ReplaceNetworkAclEntry
- ReplaceRoute
- ReplaceRouteTableAssociation
- ReportInstanceStatus
- RequestSpotFleet
- RequestSpotInstances
- ResetImageAttribute
- ResetInstanceAttribute
- ResetNetworkInterfaceAttribute
- ResetSnapshotAttribute
- RevokeSecurityGroupEgress
- RevokeSecurityGroupIngress
- RunInstances
- RunScheduledInstances
- StartInstances
- StopInstances
- TerminateInstances
- UnassignPrivateIpAddresses
- UnmonitorInstances
- UpdateSecurityGroupRuleDescriptionsIngress