示例#1
0
        public void FSxTagResource()
        {
            #region to-tag-a-fsx-resource-1481847318371

            var response = client.TagResource(new TagResourceRequest
            {
                ResourceARN = "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec",
                Tags        = new List <Tag> {
                    new Tag {
                        Key   = "Name",
                        Value = "MyFileSystem"
                    }
                }
            });


            #endregion
        }
示例#2
0
 private Amazon.FSx.Model.TagResourceResponse CallAWSServiceOperation(IAmazonFSx client, Amazon.FSx.Model.TagResourceRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon FSx", "TagResource");
     try
     {
         #if DESKTOP
         return(client.TagResource(request));
         #elif CORECLR
         return(client.TagResourceAsync(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;
     }
 }