예제 #1
0
        public void ElasticFileSystemModifyMountTargetSecurityGroups()
        {
            #region to-modify-the-security-groups-associated-with-a-mount-target-for-a-file-system-1481850772562

            var response = client.ModifyMountTargetSecurityGroups(new ModifyMountTargetSecurityGroupsRequest
            {
                MountTargetId  = "fsmt-12340abc",
                SecurityGroups = new List <string> {
                    "sg-abcd1234"
                }
            });


            #endregion
        }
 private Amazon.ElasticFileSystem.Model.ModifyMountTargetSecurityGroupsResponse CallAWSServiceOperation(IAmazonElasticFileSystem client, Amazon.ElasticFileSystem.Model.ModifyMountTargetSecurityGroupsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Elastic File System", "ModifyMountTargetSecurityGroups");
     try
     {
         #if DESKTOP
         return(client.ModifyMountTargetSecurityGroups(request));
         #elif CORECLR
         return(client.ModifyMountTargetSecurityGroupsAsync(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;
     }
 }