Example #1
0
        public IDictionary <string, string> GetEndpointAttributes(string endpointarn)
        {
            try
            {
                using (var snsclient = new AmazonSimpleNotificationServiceClient(_accesskey, _secretkey))
                {
                    var result = snsclient.GetEndpointAttributes(new GetEndpointAttributesRequest()
                    {
                        EndpointArn = endpointarn
                    });

                    return(result.Attributes);
                }
            }
            catch (Exception ex)
            {
                throw new Exception("GetEndpointAttributes " + ex.Message);
            }
        }