Class: AWS.SecurityHub
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.SecurityHub
- Identifier:
- securityhub
- API Version:
- 2018-10-26
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Security Hub provides you with a comprehensive view of your security state in Amazon Web Services and helps you assess your Amazon Web Services environment against security industry standards and best practices.
Security Hub collects security data across Amazon Web Services accounts, Amazon Web Servicesservices, and supported third-party products and helps you analyze your security trends and identify the highest priority security issues.
To help you manage the security state of your organization, Security Hub supports multiple security standards. These include the Amazon Web Services Foundational Security Best Practices (FSBP) standard developed by Amazon Web Services, and external compliance frameworks such as the Center for Internet Security (CIS), the Payment Card Industry Data Security Standard (PCI DSS), and the National Institute of Standards and Technology (NIST). Each standard includes several security controls, each of which represents a security best practice. Security Hub runs checks against security controls and generates control findings to help you assess your compliance against security best practices.
In addition to generating control findings, Security Hub also receives findings from other Amazon Web Servicesservices, such as Amazon GuardDuty and Amazon Inspector, and supported third-party products. This gives you a single pane of glass into a variety of security-related issues. You can also send Security Hub findings to other Amazon Web Servicesservices and supported third-party products.
Security Hub offers automation features that help you triage and remediate security issues. For example, you can use automation rules to automatically update critical findings when a security check fails. You can also leverage the integration with Amazon EventBridge to trigger automatic responses to specific findings.
This guide, the Security Hub API Reference, provides information about the Security Hub API. This includes supported resources, HTTP methods, parameters, and schemas. If you're new to Security Hub, you might find it helpful to also review the Security Hub User Guide . The user guide explains key concepts and provides procedures that demonstrate how to use Security Hub features. It also provides information about topics such as integrating Security Hub with other Amazon Web Servicesservices.
In addition to interacting with Security Hub by making calls to the Security Hub API, you can use a current version of an Amazon Web Services command line tool or SDK. Amazon Web Services provides tools and SDKs that consist of libraries and sample code for various languages and platforms, such as PowerShell, Java, Go, Python, C++, and .NET. These tools and SDKs provide convenient, programmatic access to Security Hub and other Amazon Web Servicesservices . They also handle tasks such as signing requests, managing errors, and retrying requests automatically. For information about installing and using the Amazon Web Services tools and SDKs, see Tools to Build on Amazon Web Services.
With the exception of operations that are related to central configuration, Security Hub API requests are executed only in the Amazon Web Services Region that is currently active or in the specific Amazon Web Services Region that you specify in your request. Any configuration or settings change that results from the operation is applied only to that Region. To make the same change in other Regions, call the same API operation in each Region in which you want to apply the change. When you use central configuration, API requests for enabling Security Hub, standards, and controls are executed in the home Region and all linked Regions. For a list of central configuration operations, see the Central configuration terms and concepts section of the Security Hub User Guide.
The following throttling limits apply to Security Hub API operations.
-
BatchEnableStandards-RateLimitof 1 request per second.BurstLimitof 1 request per second. -
GetFindings-RateLimitof 3 requests per second.BurstLimitof 6 requests per second. -
BatchImportFindings-RateLimitof 10 requests per second.BurstLimitof 30 requests per second. -
BatchUpdateFindings-RateLimitof 10 requests per second.BurstLimitof 30 requests per second. -
UpdateStandardsControl-RateLimitof 1 request per second.BurstLimitof 5 requests per second. -
All other operations -
RateLimitof 10 requests per second.BurstLimitof 30 requests per second.
Sending a Request Using SecurityHub
var securityhub = new AWS.SecurityHub();
securityhub.createActionTarget(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the SecurityHub object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var securityhub = new AWS.SecurityHub({apiVersion: '2018-10-26'});
You can also set the API version globally in AWS.config.apiVersions using
the securityhub service identifier:
AWS.config.apiVersions = {
securityhub: '2018-10-26',
// other service API versions
};
var securityhub = new AWS.SecurityHub();
Constructor Summary collapse
-
new AWS.SecurityHub(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
acceptAdministratorInvitation(params = {}, callback) ⇒ AWS.Request
Accepts the invitation to be a member account and be monitored by the Security Hub administrator account that the invitation was sent from.
This operation is only used by member accounts that are not added through Organizations.
When the member account accepts the invitation, permission is granted to the administrator account to view findings generated in the member account.
. -
acceptInvitation(params = {}, callback) ⇒ AWS.Request
This method is deprecated.
-
batchDeleteAutomationRules(params = {}, callback) ⇒ AWS.Request
Deletes one or more automation rules.
-
batchDisableStandards(params = {}, callback) ⇒ AWS.Request
Disables the standards specified by the provided
StandardsSubscriptionArns.For more information, see Security Standards section of the Security Hub User Guide.
. -
batchEnableStandards(params = {}, callback) ⇒ AWS.Request
Enables the standards specified by the provided
StandardsArn. -
batchGetAutomationRules(params = {}, callback) ⇒ AWS.Request
Retrieves a list of details for automation rules based on rule Amazon Resource Names (ARNs).
-
batchGetConfigurationPolicyAssociations(params = {}, callback) ⇒ AWS.Request
Returns associations between an Security Hub configuration and a batch of target accounts, organizational units, or the root.
-
batchGetSecurityControls(params = {}, callback) ⇒ AWS.Request
Provides details about a batch of security controls for the current Amazon Web Services account and Amazon Web Services Region.
-
batchGetStandardsControlAssociations(params = {}, callback) ⇒ AWS.Request
For a batch of security controls and standards, identifies whether each control is currently enabled or disabled in a standard.
-
batchImportFindings(params = {}, callback) ⇒ AWS.Request
Imports security findings generated by a finding provider into Security Hub.
-
batchUpdateAutomationRules(params = {}, callback) ⇒ AWS.Request
Updates one or more automation rules based on rule Amazon Resource Names (ARNs) and input parameters.
-
batchUpdateFindings(params = {}, callback) ⇒ AWS.Request
Used by Security Hub customers to update information about their investigation into a finding.
-
batchUpdateStandardsControlAssociations(params = {}, callback) ⇒ AWS.Request
For a batch of security controls and standards, this operation updates the enablement status of a control in a standard.
-
createActionTarget(params = {}, callback) ⇒ AWS.Request
Creates a custom action target in Security Hub.
You can use custom actions on findings and insights in Security Hub to trigger target actions in Amazon CloudWatch Events.
. -
createAutomationRule(params = {}, callback) ⇒ AWS.Request
Creates an automation rule based on input parameters.
-
createConfigurationPolicy(params = {}, callback) ⇒ AWS.Request
Creates a configuration policy with the defined configuration.
-
createFindingAggregator(params = {}, callback) ⇒ AWS.Request
Used to enable finding aggregation.
-
createInsight(params = {}, callback) ⇒ AWS.Request
Creates a custom insight in Security Hub.
-
createMembers(params = {}, callback) ⇒ AWS.Request
Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the administrator account.
-
declineInvitations(params = {}, callback) ⇒ AWS.Request
Declines invitations to become a member account.
A prospective member account uses this operation to decline an invitation to become a member.
This operation is only called by member accounts that aren't part of an organization.
-
deleteActionTarget(params = {}, callback) ⇒ AWS.Request
Deletes a custom action target from Security Hub.
Deleting a custom action target does not affect any findings or insights that were already sent to Amazon CloudWatch Events using the custom action.
. -
deleteConfigurationPolicy(params = {}, callback) ⇒ AWS.Request
Deletes a configuration policy.
-
deleteFindingAggregator(params = {}, callback) ⇒ AWS.Request
Deletes a finding aggregator.
-
deleteInsight(params = {}, callback) ⇒ AWS.Request
Deletes the insight specified by the
InsightArn..
-
deleteInvitations(params = {}, callback) ⇒ AWS.Request
Deletes invitations received by the Amazon Web Services account to become a member account.
A Security Hub administrator account can use this operation to delete invitations sent to one or more member accounts.
This operation is only used to delete invitations that are sent to member accounts that aren't part of an organization.
-
deleteMembers(params = {}, callback) ⇒ AWS.Request
Deletes the specified member accounts from Security Hub.
You can invoke this API only to delete accounts that became members through invitation.
-
describeActionTargets(params = {}, callback) ⇒ AWS.Request
Returns a list of the custom action targets in Security Hub in your account.
.
-
describeHub(params = {}, callback) ⇒ AWS.Request
Returns details about the Hub resource in your account, including the
HubArnand the time when you enabled Security Hub..
-
describeOrganizationConfiguration(params = {}, callback) ⇒ AWS.Request
Returns information about the way your organization is configured in Security Hub.
-
describeProducts(params = {}, callback) ⇒ AWS.Request
Returns information about product integrations in Security Hub.
You can optionally provide an integration ARN.
-
describeStandards(params = {}, callback) ⇒ AWS.Request
Returns a list of the available standards in Security Hub.
For each standard, the results include the standard ARN, the name, and a description.
-
describeStandardsControls(params = {}, callback) ⇒ AWS.Request
Returns a list of security standards controls.
For each control, the results include information about whether it is currently enabled, the severity, and a link to remediation information.
. -
disableImportFindingsForProduct(params = {}, callback) ⇒ AWS.Request
Disables the integration of the specified product with Security Hub.
-
disableOrganizationAdminAccount(params = {}, callback) ⇒ AWS.Request
Disables a Security Hub administrator account.
-
disableSecurityHub(params = {}, callback) ⇒ AWS.Request
Disables Security Hub in your account only in the current Amazon Web Services Region.
-
disassociateFromAdministratorAccount(params = {}, callback) ⇒ AWS.Request
Disassociates the current Security Hub member account from the associated administrator account.
This operation is only used by accounts that are not part of an organization.
-
disassociateFromMasterAccount(params = {}, callback) ⇒ AWS.Request
This method is deprecated.
-
disassociateMembers(params = {}, callback) ⇒ AWS.Request
Disassociates the specified member accounts from the associated administrator account.
Can be used to disassociate both accounts that are managed using Organizations and accounts that were invited manually.
. -
enableImportFindingsForProduct(params = {}, callback) ⇒ AWS.Request
Enables the integration of a partner product with Security Hub.
-
enableOrganizationAdminAccount(params = {}, callback) ⇒ AWS.Request
Designates the Security Hub administrator account for an organization.
-
enableSecurityHub(params = {}, callback) ⇒ AWS.Request
Enables Security Hub for your account in the current Region or the Region you specify in the request.
When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from other services that are integrated with Security Hub.
When you use the
EnableSecurityHuboperation to enable Security Hub, you also automatically enable the following standards:-
Center for Internet Security (CIS) Amazon Web Services Foundations Benchmark v1.2.0
-
Amazon Web Services Foundational Security Best Practices
Other standards are not automatically enabled.
-
-
getAdministratorAccount(params = {}, callback) ⇒ AWS.Request
Provides the details for the Security Hub administrator account for the current member account.
Can be used by both member accounts that are managed using Organizations and accounts that were invited manually.
. -
getConfigurationPolicy(params = {}, callback) ⇒ AWS.Request
Provides information about a configuration policy.
-
getConfigurationPolicyAssociation(params = {}, callback) ⇒ AWS.Request
Returns the association between a configuration and a target account, organizational unit, or the root.
-
getEnabledStandards(params = {}, callback) ⇒ AWS.Request
Returns a list of the standards that are currently enabled.
.
-
getFindingAggregator(params = {}, callback) ⇒ AWS.Request
Returns the current finding aggregation configuration.
.
-
getFindingHistory(params = {}, callback) ⇒ AWS.Request
Returns history for a Security Hub finding in the last 90 days.
-
getFindings(params = {}, callback) ⇒ AWS.Request
Returns a list of findings that match the specified criteria.
If finding aggregation is enabled, then when you call
.GetFindingsfrom the aggregation Region, the results include all of the matching findings from both the aggregation Region and the linked Regions. -
getInsightResults(params = {}, callback) ⇒ AWS.Request
Lists the results of the Security Hub insight specified by the insight ARN.
.
-
getInsights(params = {}, callback) ⇒ AWS.Request
Lists and describes insights for the specified insight ARNs.
.
-
getInvitationsCount(params = {}, callback) ⇒ AWS.Request
Returns the count of all Security Hub membership invitations that were sent to the current member account, not including the currently accepted invitation.
-
getMasterAccount(params = {}, callback) ⇒ AWS.Request
This method is deprecated.
-
getMembers(params = {}, callback) ⇒ AWS.Request
Returns the details for the Security Hub member accounts for the specified account IDs.
An administrator account can be either the delegated Security Hub administrator account for an organization or an administrator account that enabled Security Hub manually.
The results include both member accounts that are managed using Organizations and accounts that were invited manually.
. -
getSecurityControlDefinition(params = {}, callback) ⇒ AWS.Request
Retrieves the definition of a security control.
-
inviteMembers(params = {}, callback) ⇒ AWS.Request
Invites other Amazon Web Services accounts to become member accounts for the Security Hub administrator account that the invitation is sent from.
This operation is only used to invite accounts that do not belong to an organization.
-
listAutomationRules(params = {}, callback) ⇒ AWS.Request
A list of automation rules and their metadata for the calling account.
-
listConfigurationPolicies(params = {}, callback) ⇒ AWS.Request
Lists the configuration policies that the Security Hub delegated administrator has created for your organization.
-
listConfigurationPolicyAssociations(params = {}, callback) ⇒ AWS.Request
Provides information about the associations for your configuration policies and self-managed behavior.
-
listEnabledProductsForImport(params = {}, callback) ⇒ AWS.Request
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
.
-
listFindingAggregators(params = {}, callback) ⇒ AWS.Request
If finding aggregation is enabled, then
ListFindingAggregatorsreturns the ARN of the finding aggregator. -
listInvitations(params = {}, callback) ⇒ AWS.Request
Lists all Security Hub membership invitations that were sent to the current Amazon Web Services account.
This operation is only used by accounts that are managed by invitation.
-
listMembers(params = {}, callback) ⇒ AWS.Request
Lists details about all member accounts for the current Security Hub administrator account.
The results include both member accounts that belong to an organization and member accounts that were invited manually.
. -
listOrganizationAdminAccounts(params = {}, callback) ⇒ AWS.Request
Lists the Security Hub administrator accounts.
-
listSecurityControlDefinitions(params = {}, callback) ⇒ AWS.Request
Lists all of the security controls that apply to a specified standard.
-
listStandardsControlAssociations(params = {}, callback) ⇒ AWS.Request
Specifies whether a control is currently enabled or disabled in each enabled standard in the calling account.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Returns a list of tags associated with a resource.
.
-
startConfigurationPolicyAssociation(params = {}, callback) ⇒ AWS.Request
Associates a target account, organizational unit, or the root with a specified configuration.
-
startConfigurationPolicyDisassociation(params = {}, callback) ⇒ AWS.Request
Disassociates a target account, organizational unit, or the root from a specified configuration.
-
tagResource(params = {}, callback) ⇒ AWS.Request
Adds one or more tags to a resource.
.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Removes one or more tags from a resource.
.
-
updateActionTarget(params = {}, callback) ⇒ AWS.Request
Updates the name and description of a custom action target in Security Hub.
.
-
updateConfigurationPolicy(params = {}, callback) ⇒ AWS.Request
Updates a configuration policy.
-
updateFindingAggregator(params = {}, callback) ⇒ AWS.Request
Updates the finding aggregation configuration.
-
updateFindings(params = {}, callback) ⇒ AWS.Request
UpdateFindingsis a deprecated operation. -
updateInsight(params = {}, callback) ⇒ AWS.Request
Updates the Security Hub insight identified by the specified insight ARN.
.
-
updateOrganizationConfiguration(params = {}, callback) ⇒ AWS.Request
Updates the configuration of your organization in Security Hub.
-
updateSecurityControl(params = {}, callback) ⇒ AWS.Request
Updates the properties of a security control.
-
updateSecurityHubConfiguration(params = {}, callback) ⇒ AWS.Request
Updates configuration options for Security Hub.
.
-
updateStandardsControl(params = {}, callback) ⇒ AWS.Request
Used to control whether an individual security standard control is enabled or disabled.
.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.SecurityHub(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.