Access Analyzer
amazonaws · Cloud
Identity and Access Management Access Analyzer helps identify potential resource-access risks by enabling you to identify any policies that grant access to an external principal. It does this by using logic-based reasoning to analyze resource-based policies in your Amazon Web Services environment. An external principal can be another Amazon Web Services account, a root user, an IAM user or role, a federated user, an Amazon Web Services service, or an anonymous user. You can also use IAM Acces
Authentication
Sample Requests
Retrieves a list of analyzers.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/analyzer?type=ACCOUNT&nextToken=example&maxResults=1"
import requests
params = {
"type": "ACCOUNT",
"nextToken": "example",
"maxResults": "1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/analyzer",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/analyzer');
url.searchParams.set('type', 'ACCOUNT');
url.searchParams.set('nextToken', 'example');
url.searchParams.set('maxResults', '1');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/analyzer")
q := baseURL.Query()
q.Set("type", "ACCOUNT")
q.Set("nextToken", "example")
q.Set("maxResults", "1")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/analyzer")
uri.query = URI.encode_www_form({
"type" => "ACCOUNT",
"nextToken" => "example",
"maxResults" => "1"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/analyzer?" . http_build_query([
"type" => "ACCOUNT",
"nextToken" => "example",
"maxResults" => "1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Retrieves information about a resource that was analyzed.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/analyzed-resource#analyzerArn&resourceArn?analyzerArn=example&resourceArn=example"
import requests
params = {
"analyzerArn": "example",
"resourceArn": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/analyzed-resource#analyzerArn&resourceArn",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/analyzed-resource#analyzerArn&resourceArn');
url.searchParams.set('analyzerArn', 'example');
url.searchParams.set('resourceArn', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/analyzed-resource#analyzerArn&resourceArn")
q := baseURL.Query()
q.Set("analyzerArn", "example")
q.Set("resourceArn", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/analyzed-resource#analyzerArn&resourceArn")
uri.query = URI.encode_www_form({
"analyzerArn" => "example",
"resourceArn" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/analyzed-resource#analyzerArn&resourceArn?" . http_build_query([
"analyzerArn" => "example",
"resourceArn" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Retrieves a list of access previews for the specified analyzer.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/access-preview#analyzerArn?nextToken=example&maxResults=1&analyzerArn=example"
import requests
params = {
"nextToken": "example",
"maxResults": "1",
"analyzerArn": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/access-preview#analyzerArn",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/access-preview#analyzerArn');
url.searchParams.set('nextToken', 'example');
url.searchParams.set('maxResults', '1');
url.searchParams.set('analyzerArn', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/access-preview#analyzerArn")
q := baseURL.Query()
q.Set("nextToken", "example")
q.Set("maxResults", "1")
q.Set("analyzerArn", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/access-preview#analyzerArn")
uri.query = URI.encode_www_form({
"nextToken" => "example",
"maxResults" => "1",
"analyzerArn" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/accessanalyzer/2019-11-01/access-preview#analyzerArn?" . http_build_query([
"nextToken" => "example",
"maxResults" => "1",
"analyzerArn" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Access Analyzer?
Access Analyzer is a Cloud API. Developers commonly use cloud APIs for:
- provisioning and managing cloud infrastructure
- automating deployments and container orchestration
- monitoring uptime and performance metrics
- managing storage buckets and databases
- setting up auto-scaling and load balancing
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Access Analyzer is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?