clients/client-auditmanager/README.md
AWS SDK for JavaScript AuditManager Client for Node.js, Browser and React Native.
<p>Welcome to the Audit Manager API reference. This guide is for developers who need detailed information about the Audit Manager API operations, data types, and errors. </p> <p>Audit Manager is a service that provides automated evidence collection so that you can continually audit your Amazon Web Services usage. You can use it to assess the effectiveness of your controls, manage risk, and simplify compliance.</p> <p>Audit Manager provides prebuilt frameworks that structure and automate assessments for a given compliance standard. Frameworks include a prebuilt collection of controls with descriptions and testing procedures. These controls are grouped according to the requirements of the specified compliance standard or regulation. You can also customize frameworks and controls to support internal audits with specific requirements. </p> <p>Use the following links to get started with the Audit Manager API:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_Operations.html">Actions</a>: An alphabetical list of all Audit Manager API operations.</p> </li> <li> <p> <a href="https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_Types.html">Data types</a>: An alphabetical list of all Audit Manager data types.</p> </li> <li> <p> <a href="https://docs.aws.amazon.com/audit-manager/latest/APIReference/CommonParameters.html">Common parameters</a>: Parameters that all operations can use.</p> </li> <li> <p> <a href="https://docs.aws.amazon.com/audit-manager/latest/APIReference/CommonErrors.html">Common errors</a>: Client and server errors that all operations can return.</p> </li> </ul> <p>If you're new to Audit Manager, we recommend that you review the <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/what-is.html"> Audit Manager User Guide</a>.</p>To install this package, use the CLI of your favorite package manager:
npm install @aws-sdk/client-auditmanageryarn add @aws-sdk/client-auditmanagerpnpm add @aws-sdk/client-auditmanagerThe AWS SDK is modulized by clients and commands.
To send a request, you only need to import the AuditManagerClient and
the commands you need, for example ListAssessmentsCommand:
// ES5 example
const { AuditManagerClient, ListAssessmentsCommand } = require("@aws-sdk/client-auditmanager");
// ES6+ example
import { AuditManagerClient, ListAssessmentsCommand } from "@aws-sdk/client-auditmanager";
To send a request:
send operation on the client, providing the command object as input.const client = new AuditManagerClient({ region: "REGION" });
const params = { /** input parameters */ };
const command = new ListAssessmentsCommand(params);
We recommend using the await operator to wait for the promise returned by send operation as follows:
// async/await.
try {
const data = await client.send(command);
// process data.
} catch (error) {
// error handling.
} finally {
// finally.
}
You can also use Promise chaining.
client
.send(command)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
})
.finally(() => {
// finally.
});
The aggregated client class is exported from the same package, but without the "Client" suffix.
AuditManager extends AuditManagerClient and additionally supports all operations, waiters, and paginators as methods.
This style may be familiar to you from the AWS SDK for JavaScript v2.
If you are bundling the AWS SDK, we recommend using only the bare-bones client (AuditManagerClient).
More details are in the blog post on
modular packages in AWS SDK for JavaScript.
import { AuditManager } from "@aws-sdk/client-auditmanager";
const client = new AuditManager({ region: "REGION" });
// async/await.
try {
const data = await client.listAssessments(params);
// process data.
} catch (error) {
// error handling.
}
// Promises.
client
.listAssessments(params)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
});
// callbacks (not recommended).
client.listAssessments(params, (err, data) => {
// process err and data.
});
When the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).
try {
const data = await client.send(command);
// process data.
} catch (error) {
const { requestId, cfId, extendedRequestId } = error.$metadata;
console.log({ requestId, cfId, extendedRequestId });
/**
* The keys within exceptions are also parsed.
* You can access them by specifying exception names:
* if (error.name === 'SomeServiceException') {
* const value = error.specialKeyInException;
* }
*/
}
See also docs/ERROR_HANDLING.
Please use these community resources for getting help. We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
aws-sdk-js
on AWS Developer Blog.aws-sdk-js.To test your universal JavaScript code in Node.js, browser and react-native environments, visit our code samples repo.
This client code is generated automatically. Any modifications will be overwritten the next time the @aws-sdk/client-auditmanager package is updated.
To contribute to client you can check our generate clients scripts.
This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.
Command API Reference / Input / Output
</details> <details> <summary> BatchAssociateAssessmentReportEvidence </summary>Command API Reference / Input / Output
</details> <details> <summary> BatchCreateDelegationByAssessment </summary>Command API Reference / Input / Output
</details> <details> <summary> BatchDeleteDelegationByAssessment </summary>Command API Reference / Input / Output
</details> <details> <summary> BatchDisassociateAssessmentReportEvidence </summary>Command API Reference / Input / Output
</details> <details> <summary> BatchImportEvidenceToAssessmentControl </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateAssessment </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateAssessmentFramework </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateAssessmentReport </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateControl </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAssessment </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAssessmentFramework </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAssessmentFrameworkShare </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAssessmentReport </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteControl </summary>Command API Reference / Input / Output
</details> <details> <summary> DeregisterAccount </summary>Command API Reference / Input / Output
</details> <details> <summary> DeregisterOrganizationAdminAccount </summary>Command API Reference / Input / Output
</details> <details> <summary> DisassociateAssessmentReportEvidenceFolder </summary>Command API Reference / Input / Output
</details> <details> <summary> GetAccountStatus </summary>Command API Reference / Input / Output
</details> <details> <summary> GetAssessment </summary>Command API Reference / Input / Output
</details> <details> <summary> GetAssessmentFramework </summary>Command API Reference / Input / Output
</details> <details> <summary> GetAssessmentReportUrl </summary>Command API Reference / Input / Output
</details> <details> <summary> GetChangeLogs </summary>Command API Reference / Input / Output
</details> <details> <summary> GetControl </summary>Command API Reference / Input / Output
</details> <details> <summary> GetDelegations </summary>Command API Reference / Input / Output
</details> <details> <summary> GetEvidence </summary>Command API Reference / Input / Output
</details> <details> <summary> GetEvidenceByEvidenceFolder </summary>Command API Reference / Input / Output
</details> <details> <summary> GetEvidenceFileUploadUrl </summary>Command API Reference / Input / Output
</details> <details> <summary> GetEvidenceFolder </summary>Command API Reference / Input / Output
</details> <details> <summary> GetEvidenceFoldersByAssessment </summary>Command API Reference / Input / Output
</details> <details> <summary> GetEvidenceFoldersByAssessmentControl </summary>Command API Reference / Input / Output
</details> <details> <summary> GetInsights </summary>Command API Reference / Input / Output
</details> <details> <summary> GetInsightsByAssessment </summary>Command API Reference / Input / Output
</details> <details> <summary> GetOrganizationAdminAccount </summary>Command API Reference / Input / Output
</details> <details> <summary> GetServicesInScope </summary>Command API Reference / Input / Output
</details> <details> <summary> GetSettings </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAssessmentControlInsightsByControlDomain </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAssessmentFrameworks </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAssessmentFrameworkShareRequests </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAssessmentReports </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAssessments </summary>Command API Reference / Input / Output
</details> <details> <summary> ListControlDomainInsights </summary>Command API Reference / Input / Output
</details> <details> <summary> ListControlDomainInsightsByAssessment </summary>Command API Reference / Input / Output
</details> <details> <summary> ListControlInsightsByControlDomain </summary>Command API Reference / Input / Output
</details> <details> <summary> ListControls </summary>Command API Reference / Input / Output
</details> <details> <summary> ListKeywordsForDataSource </summary>Command API Reference / Input / Output
</details> <details> <summary> ListNotifications </summary>Command API Reference / Input / Output
</details> <details> <summary> ListTagsForResource </summary>Command API Reference / Input / Output
</details> <details> <summary> RegisterAccount </summary>Command API Reference / Input / Output
</details> <details> <summary> RegisterOrganizationAdminAccount </summary>Command API Reference / Input / Output
</details> <details> <summary> StartAssessmentFrameworkShare </summary>Command API Reference / Input / Output
</details> <details> <summary> TagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UntagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateAssessment </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateAssessmentControl </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateAssessmentControlSetStatus </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateAssessmentFramework </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateAssessmentFrameworkShare </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateAssessmentStatus </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateControl </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateSettings </summary> </details> <details> <summary> ValidateAssessmentReportIntegrity </summary> </details>