public void FSxCreateFileSystem() { #region to-create-a-new-file-system-1481840798547 var response = client.CreateFileSystem(new CreateFileSystemRequest { ClientRequestToken = "a8ca07e4-61ec-4399-99f4-19853801bcd5", FileSystemType = "WINDOWS", KmsKeyId = "arn:aws:kms:us-east-1:012345678912:key/0ff3ea8d-130e-4133-877f-93908b6fdbd6", SecurityGroupIds = new List <string> { "sg-edcd9784" }, StorageCapacity = 300, SubnetIds = new List <string> { "subnet-1234abcd" }, Tags = new List <Tag> { new Tag { Key = "Name", Value = "MyFileSystem" } }, WindowsConfiguration = new CreateFileSystemWindowsConfiguration { ActiveDirectoryId = "d-1234abcd12", AutomaticBackupRetentionDays = 30, DailyAutomaticBackupStartTime = "05:00", ThroughputCapacity = 8, WeeklyMaintenanceStartTime = "1:05:00" } }); FileSystem fileSystem = response.FileSystem; #endregion }
private Amazon.FSx.Model.CreateFileSystemResponse CallAWSServiceOperation(IAmazonFSx client, Amazon.FSx.Model.CreateFileSystemRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon FSx", "CreateFileSystem"); try { #if DESKTOP return(client.CreateFileSystem(request)); #elif CORECLR return(client.CreateFileSystemAsync(request).GetAwaiter().GetResult()); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } }