Data Holder Analysis
An analysis result contains a structured privacy analysis for a specific data holder. Analysis results are generated automatically as data holders are discovered.
Each analysis result summarizes how a data holder collects, retains, and shares user data based on their publicly available privacy policy and other documents.
Listing Analysis Results
To retrieve all analysis results associated with a specific virtual presence, use the listAnalysisResults method. Results are paginated.
A call to listAnalysisResults returns a ListOutput object containing a list of matching items and a nextToken to support pagination. If no results are found, the result will contain empty items. Always check the value of the returned nextToken since there are more results to retrieve when nextToken is defined.
try {
let nextToken: string | undefined = undefined
do {
const listOutput = await privacyInteractionClient.listAnalysisResults({
virtualPresenceId: 'virtual-presence-id',
limit: 20,
nextToken,
})
for (const analysisResult of listOutput.items) {
console.log(analysisResult.dataHolderIdentifier, analysisResult.status)
}
nextToken = listOutput.nextToken
} while (nextToken !== undefined)
} catch (error) {
// Handle/notify user of errors
}Input Parameters:
virtualPresenceId
string
Yes
The identifier of the virtual presence to list analysis results for.
limit
number
No
Maximum number of items to return. Will be defaulted if omitted.
nextToken
string
No
A pagination token from a previous call.
Retrieving an Analysis Result
To retrieve a full analysis result by its unique identifier, use the getAnalysisResult method. This returns the analysis result if it exists, or undefined if not found. Analysis result identifiers will be provided in subscription update notifications, or can be retrieved from the listAnalysisResults method.
The data field is populated when the analysis result status is COMPLETE or PARTIAL. For other statuses, data will be undefined.
Analysis Result Object
id
string
Unique identifier for the analysis result.
owner
string
Unique identifier of the user.
virtualPresenceId
string
The virtual presence this analysis is associated with.
dataHolderIdentifier
string
The data holder domain this analysis is about.
lastAnalyzedAt
Date
When the analysis was last performed.
data
AnalysisResultData | undefined
Structured analysis data, populated when status is COMPLETE or PARTIAL. See Analysis Data.
version
number
Entity version, increments on update.
createdAt
Date
When the analysis result was created.
updatedAt
Date
When the analysis result was last updated.
Subscribing to Analysis Result Updates
To receive real-time notifications when analysis results are created, change status or are updated, see Subscriptions.
Last updated