更新时间:2023-11-22 20:13:29
亚马逊取得了巨大的努力,其AWS云计算的.Net SDK集成到VS2008和放大器; VS 2010
Amazon made huge efforts to integrate its AWS Cloud .Net SDK To VS2008 & VS 2010
AmazonEC2 ec2 = AWSClientFactory.CreateAmazonEC2Client();
//Start Your Instance
ec2.StartInstances(new StartInstancesRequest().WithInstanceId("i-00000000"));
//Stop it
ec2.StopInstances(new StopInstancesRequest().WithInstanceId("i-00000000"));
您只需要更换I-00000000您的实例ID(在AWS管理控制台提供)
You just need to replace "i-00000000" by your instance Id (available in your AWS Management Console)
希望这有助于那些谷歌搜索这一点,并就这个问题绊脚石(像我一样我自己)迅速开始。照片下面通过这些向导,这些简单的步骤将不遗余力你相当头痛。
Hope this helps those googling this and stumbling upon this question (as I did myself) start off quickly.
Following these simple steps via these wizards will spare you considerable headaches.