C# Class AwsSnapshotScheduler.Ec2Helper

Datei anzeigen Open project: ronmichael/aws-snapshot-scheduler Class Usage Examples

Public Methods

Method Description
CreateClient ( ) : AmazonEC2Client

Return the EC2 client

DeleteSnapsot ( string snapshotid ) : void

Delete the snapshop with the given ID from EBS

GetInstanceName ( string instanceId ) : string

Get the name of the instances with the given instanceID from EC2

GetTagValue ( List Tags, string tagname ) : string

Method Details

CreateClient() public static method

Return the EC2 client
public static CreateClient ( ) : AmazonEC2Client
return Amazon.EC2.AmazonEC2Client

DeleteSnapsot() public static method

Delete the snapshop with the given ID from EBS
public static DeleteSnapsot ( string snapshotid ) : void
snapshotid string
return void

GetInstanceName() public static method

Get the name of the instances with the given instanceID from EC2
public static GetInstanceName ( string instanceId ) : string
instanceId string
return string

GetTagValue() public static method

public static GetTagValue ( List Tags, string tagname ) : string
Tags List
tagname string
return string