文件 AWS SDK AWS 範例 SDK 儲存庫中有更多可用的
本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
Amazon EC2 using AWS SDKs 的基本範例
下列程式碼範例示範如何搭配 AWS SDKs 使用 Amazon Elastic Compute Cloud 的基本概念。
範例
- Amazon EC2 您好
- 了解基本概念
- 動作
- 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