コード例 #1
0
        public void SnowballUpdateCluster()
        {
            #region to-update-a-cluster-1482863900595

            var response = client.UpdateCluster(new UpdateClusterRequest
            {
                AddressId   = "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
                ClusterId   = "CID123e4567-e89b-12d3-a456-426655440000",
                Description = "Updated the address to send this to image processing - RJ"
            });


            #endregion
        }
コード例 #2
0
 private Amazon.Snowball.Model.UpdateClusterResponse CallAWSServiceOperation(IAmazonSnowball client, Amazon.Snowball.Model.UpdateClusterRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Import/Export Snowball", "UpdateCluster");
     try
     {
         #if DESKTOP
         return(client.UpdateCluster(request));
         #elif CORECLR
         return(client.UpdateClusterAsync(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;
     }
 }