public void GlacierGetVaultNotifications()
        {
            #region to-get-the-notification-configuration-for-the-specified-vault-1481918746677

            var response = client.GetVaultNotifications(new GetVaultNotificationsRequest
            {
                AccountId = "-",
                VaultName = "my-vault"
            });

            VaultNotificationConfig vaultNotificationConfig = response.VaultNotificationConfig;

            #endregion
        }
示例#2
0
 private Amazon.Glacier.Model.GetVaultNotificationsResponse CallAWSServiceOperation(IAmazonGlacier client, Amazon.Glacier.Model.GetVaultNotificationsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Glacier", "GetVaultNotifications");
     try
     {
         #if DESKTOP
         return(client.GetVaultNotifications(request));
         #elif CORECLR
         return(client.GetVaultNotificationsAsync(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;
     }
 }