-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (31 loc) · 1.46 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
<title>Current List of AWS Services</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body>
<h1>Current List of AWS Services</h1>
Generated by making the following API call which lists all the services supported by the AWS Boto3 SDK: <a href="https://api.github.com/repos/boto/botocore/contents/botocore/data">https://api.github.com/repos/boto/botocore/contents/botocore/data</a>
<h3>Count of services: <span id="service-count"></span></h3>
<p></p>
<ul id="folder-list"></ul>
<script>
async function getFolders() {
const response = await fetch('https://api.github.com/repos/boto/botocore/contents/botocore/data');
const data = await response.json();
const folders = data.filter(entry => entry.type === 'dir');
const folderList = document.getElementById('folder-list');
for (const folder of folders) {
const listItem = document.createElement('li');
listItem.textContent = folder.name;
folderList.appendChild(listItem);
}
// Update the service count
document.getElementById('service-count').textContent = folders.length;
}
getFolders();
</script>
</body>
</html>