Exemple #1
0
        public void AddBlockDeviceMapping(string deviceName, uint volumeSize, Ebs.VolumeTypes volumeType)
        {
            BlockDeviceMapping blockDeviceMapping = new BlockDeviceMapping(this, deviceName);

            blockDeviceMapping.Ebs.VolumeSize = volumeSize;
            blockDeviceMapping.Ebs.VolumeType = volumeType;
            this.BlockDeviceMappings.Add(blockDeviceMapping);
        }
Exemple #2
0
        public BlockDeviceMapping AddDisk(Ebs.VolumeTypes ec2DiskType,
                                          uint sizeInGigabytes,
                                          string deviceId,
                                          bool deleteOnTermination)
        {
            BlockDeviceMapping blockDeviceMapping = new BlockDeviceMapping(this, deviceId);

            blockDeviceMapping.Ebs.VolumeSize          = sizeInGigabytes;
            blockDeviceMapping.Ebs.VolumeType          = ec2DiskType;
            blockDeviceMapping.Ebs.DeleteOnTermination = deleteOnTermination;
            this.BlockDeviceMappings.Add(blockDeviceMapping);
            return(blockDeviceMapping);
        }
 public DbInstance(DbInstanceClassEnum instanceType,
                   EngineType engineType,
                   LicenseModelType licenseType,
                   Ebs.VolumeTypes storageType,
                   int allocatedStorage,
                   DbSubnetGroup subnetGroup,
                   SecurityGroup dbSecurityGroup,
                   object masterUserName,
                   object masterPassword
                   ) : this(instanceType, engineType, licenseType, storageType, allocatedStorage, masterUserName, masterPassword)
 {
     this.DBSubnetGroupName = new ReferenceProperty(subnetGroup);
     this.AddVpcSecurityGroup(dbSecurityGroup);
 }
 public DbInstance(DbInstanceClassEnum instanceType,
                   EngineType engineType,
                   LicenseModelType licenseType,
                   Ebs.VolumeTypes storageType,
                   int allocatedStorage,
                   object masterUserName,
                   object masterPassword
                   ) : base(ResourceType.AwsRdsDbInstance)
 {
     this.Type               = ResourceType.AwsRdsDbInstance;
     this.DBInstanceClass    = instanceType;
     this.AllocatedStorage   = allocatedStorage.ToString();
     this.Engine             = engineType;
     this.MasterUsername     = masterUserName;
     this.MasterUserPassword = masterPassword;
     this.LicenseModel       = licenseType;
     this.StorageType        = storageType;
 }
Exemple #5
0
 public BlockDeviceMapping AddDisk(Ebs.VolumeTypes ec2DiskType, uint sizeInGigabytes)
 {
     return(AddDisk(ec2DiskType, sizeInGigabytes, this.GetAvailableDevice(), true));
 }
Exemple #6
0
 public BlockDeviceMapping AddDisk(Ebs.VolumeTypes ec2DiskType,
                                   uint sizeInGigabytes,
                                   bool deleteOnTermination)
 {
     return(this.AddDisk(ec2DiskType, sizeInGigabytes, this.GetAvailableDevice(), deleteOnTermination));
 }
Exemple #7
0
 public Instance(Subnet subnet, InstanceTypes instanceType, string imageId,
                 OperatingSystem operatingSystem, Ebs.VolumeTypes volumeType, uint volumeSize)
     : this(subnet, instanceType, imageId, operatingSystem)
 {
     this.AddDisk(volumeType, volumeSize, this.GetRootDeviceId(), true);
 }