Ejemplo n.º 1
0
        public void SnowballCreateAddress()
        {
            #region to-create-an-address-for-a-job-1482535416294

            var response = client.CreateAddress(new CreateAddressRequest
            {
                Address = new Address {
                    City            = "Seattle",
                    Company         = "My Company's Name",
                    Country         = "USA",
                    Name            = "My Name",
                    PhoneNumber     = "425-555-5555",
                    PostalCode      = "98101",
                    StateOrProvince = "WA",
                    Street1         = "123 Main Street"
                }
            });

            string addressId = response.AddressId;

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