private void SaveVpcToDB(Amazon.RegionEndpoint regionEndpoint, Amazon.EC2.Model.Vpc vpc) { try { var client = new AmazonDynamoDBClient(regionEndpoint); var table = Table.LoadTable(client, "Vpc"); var jsonData = JsonConvert.SerializeObject(vpc); table.PutItem(Document.FromJson(jsonData)); } catch (Amazon.DynamoDBv2.Model.ResourceNotFoundException e) { Console.WriteLine("No VPCs found in {0}", regionEndpoint); } catch (Exception e) { Console.WriteLine(e); } }
public CreateVpcResult WithVpc(Amazon.EC2.Model.Vpc vpc) { this.vpcField = vpc; return this; }
public CreateVpcResult WithVpc(Amazon.EC2.Model.Vpc vpc) { this.vpcField = vpc; return(this); }