public void ElasticFileSystemDescribeMountTargetSecurityGroups() { #region to-describe-the-security-groups-for-a-mount-target-1481849317823 var response = client.DescribeMountTargetSecurityGroups(new DescribeMountTargetSecurityGroupsRequest { MountTargetId = "fsmt-12340abc" }); List <string> securityGroups = response.SecurityGroups; #endregion }
private Amazon.ElasticFileSystem.Model.DescribeMountTargetSecurityGroupsResponse CallAWSServiceOperation(IAmazonElasticFileSystem client, Amazon.ElasticFileSystem.Model.DescribeMountTargetSecurityGroupsRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Elastic File System", "DescribeMountTargetSecurityGroups"); try { #if DESKTOP return(client.DescribeMountTargetSecurityGroups(request)); #elif CORECLR return(client.DescribeMountTargetSecurityGroupsAsync(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; } }