Exemple #1
0
        public List <Group> GetQuickSightGroups()
        {
            var client = new AmazonQuickSightClient(
                accessKey,
                secretAccessKey,
                Amazon.RegionEndpoint.USEast1);

            var listGroupsRequest = new ListGroupsRequest
            {
                AwsAccountId = accountID,
                Namespace    = Namespace
            };

            try
            {
                var groupsList = client.ListGroupsAsync(listGroupsRequest).Result.GroupList;
                return(groupsList);
            }
            catch (Exception ex)
            {
                return(null);
            }
        }