Ejemplo n.º 1
0
        public void SnowballDescribeAddress()
        {
            #region to-describe-an-address-for-a-job-1482538608745

            var response = client.DescribeAddress(new DescribeAddressRequest
            {
                AddressId = "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b"
            });

            Address address = response.Address;

            #endregion
        }
Ejemplo n.º 2
0
 private Amazon.Snowball.Model.DescribeAddressResponse CallAWSServiceOperation(IAmazonSnowball client, Amazon.Snowball.Model.DescribeAddressRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Import/Export Snowball", "DescribeAddress");
     try
     {
         #if DESKTOP
         return(client.DescribeAddress(request));
         #elif CORECLR
         return(client.DescribeAddressAsync(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;
     }
 }