@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface SecurityHubClient extends SdkClient
builder() method.
Security Hub provides you with a comprehensive view of the security state of your Amazon Web Services environment and resources. It also provides you with the readiness status of your environment based on controls from supported security standards. Security Hub collects security data from Amazon Web Services accounts, services, and integrated third-party products and helps you analyze security trends in your environment to identify the highest priority security issues. For more information about Security Hub, see the Security HubUser Guide .
When you use operations in the Security Hub API, the 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, execute the same command for each Region to apply the change to.
For example, if your Region is set to us-west-2, when you use CreateMembers to add a member
account to Security Hub, the association of the member account with the administrator account is created only in the
us-west-2 Region. Security Hub must be enabled for the member account in the same Region that the
invitation was sent from.
The following throttling limits apply to using Security Hub API operations.
BatchEnableStandards - RateLimit of 1 request per second, BurstLimit of 1
request per second.
GetFindings - RateLimit of 3 requests per second. BurstLimit of 6 requests per
second.
BatchImportFindings - RateLimit of 10 requests per second. BurstLimit of 30
requests per second.
BatchUpdateFindings - RateLimit of 10 requests per second. BurstLimit of 30
requests per second.
UpdateStandardsControl - RateLimit of 1 request per second, BurstLimit of 5
requests per second.
All other operations - RateLimit of 10 requests per second. BurstLimit of 30 requests per
second.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
default AcceptAdministratorInvitationResponse |
acceptAdministratorInvitation(AcceptAdministratorInvitationRequest acceptAdministratorInvitationRequest)
Accepts the invitation to be a member account and be monitored by the Security Hub administrator account that the
invitation was sent from.
|
default AcceptAdministratorInvitationResponse |
acceptAdministratorInvitation(Consumer<AcceptAdministratorInvitationRequest.Builder> acceptAdministratorInvitationRequest)
Accepts the invitation to be a member account and be monitored by the Security Hub administrator account that the
invitation was sent from.
|
default AcceptInvitationResponse |
acceptInvitation(AcceptInvitationRequest acceptInvitationRequest)
Deprecated.
This API has been deprecated, use AcceptAdministratorInvitation API instead.
|
default AcceptInvitationResponse |
acceptInvitation(Consumer<AcceptInvitationRequest.Builder> acceptInvitationRequest)
Deprecated.
This API has been deprecated, use AcceptAdministratorInvitation API instead.
|
default BatchDisableStandardsResponse |
batchDisableStandards(BatchDisableStandardsRequest batchDisableStandardsRequest)
Disables the standards specified by the provided
StandardsSubscriptionArns. |
default BatchDisableStandardsResponse |
batchDisableStandards(Consumer<BatchDisableStandardsRequest.Builder> batchDisableStandardsRequest)
Disables the standards specified by the provided
StandardsSubscriptionArns. |
default BatchEnableStandardsResponse |
batchEnableStandards(BatchEnableStandardsRequest batchEnableStandardsRequest)
Enables the standards specified by the provided
StandardsArn. |
default BatchEnableStandardsResponse |
batchEnableStandards(Consumer<BatchEnableStandardsRequest.Builder> batchEnableStandardsRequest)
Enables the standards specified by the provided
StandardsArn. |
default BatchImportFindingsResponse |
batchImportFindings(BatchImportFindingsRequest batchImportFindingsRequest)
Imports security findings generated by a finding provider into Security Hub.
|
default BatchImportFindingsResponse |
batchImportFindings(Consumer<BatchImportFindingsRequest.Builder> batchImportFindingsRequest)
Imports security findings generated by a finding provider into Security Hub.
|
default BatchUpdateFindingsResponse |
batchUpdateFindings(BatchUpdateFindingsRequest batchUpdateFindingsRequest)
Used by Security Hub customers to update information about their investigation into a finding.
|
default BatchUpdateFindingsResponse |
batchUpdateFindings(Consumer<BatchUpdateFindingsRequest.Builder> batchUpdateFindingsRequest)
Used by Security Hub customers to update information about their investigation into a finding.
|
static SecurityHubClientBuilder |
builder()
Create a builder that can be used to configure and create a
SecurityHubClient. |
static SecurityHubClient |
create()
Create a
SecurityHubClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateActionTargetResponse |
createActionTarget(Consumer<CreateActionTargetRequest.Builder> createActionTargetRequest)
Creates a custom action target in Security Hub.
|
default CreateActionTargetResponse |
createActionTarget(CreateActionTargetRequest createActionTargetRequest)
Creates a custom action target in Security Hub.
|
default CreateFindingAggregatorResponse |
createFindingAggregator(Consumer<CreateFindingAggregatorRequest.Builder> createFindingAggregatorRequest)
Used to enable finding aggregation.
|
default CreateFindingAggregatorResponse |
createFindingAggregator(CreateFindingAggregatorRequest createFindingAggregatorRequest)
Used to enable finding aggregation.
|
default CreateInsightResponse |
createInsight(Consumer<CreateInsightRequest.Builder> createInsightRequest)
Creates a custom insight in Security Hub.
|
default CreateInsightResponse |
createInsight(CreateInsightRequest createInsightRequest)
Creates a custom insight in Security Hub.
|
default CreateMembersResponse |
createMembers(Consumer<CreateMembersRequest.Builder> createMembersRequest)
Creates a member association in Security Hub between the specified accounts and the account used to make the
request, which is the administrator account.
|
default CreateMembersResponse |
createMembers(CreateMembersRequest createMembersRequest)
Creates a member association in Security Hub between the specified accounts and the account used to make the
request, which is the administrator account.
|
default DeclineInvitationsResponse |
declineInvitations(Consumer<DeclineInvitationsRequest.Builder> declineInvitationsRequest)
Declines invitations to become a member account.
|
default DeclineInvitationsResponse |
declineInvitations(DeclineInvitationsRequest declineInvitationsRequest)
Declines invitations to become a member account.
|
default DeleteActionTargetResponse |
deleteActionTarget(Consumer<DeleteActionTargetRequest.Builder> deleteActionTargetRequest)
Deletes a custom action target from Security Hub.
|
default DeleteActionTargetResponse |
deleteActionTarget(DeleteActionTargetRequest deleteActionTargetRequest)
Deletes a custom action target from Security Hub.
|
default DeleteFindingAggregatorResponse |
deleteFindingAggregator(Consumer<DeleteFindingAggregatorRequest.Builder> deleteFindingAggregatorRequest)
Deletes a finding aggregator.
|
default DeleteFindingAggregatorResponse |
deleteFindingAggregator(DeleteFindingAggregatorRequest deleteFindingAggregatorRequest)
Deletes a finding aggregator.
|
default DeleteInsightResponse |
deleteInsight(Consumer<DeleteInsightRequest.Builder> deleteInsightRequest)
Deletes the insight specified by the
InsightArn. |
default DeleteInsightResponse |
deleteInsight(DeleteInsightRequest deleteInsightRequest)
Deletes the insight specified by the
InsightArn. |
default DeleteInvitationsResponse |
deleteInvitations(Consumer<DeleteInvitationsRequest.Builder> deleteInvitationsRequest)
Deletes invitations received by the Amazon Web Services account to become a member account.
|
default DeleteInvitationsResponse |
deleteInvitations(DeleteInvitationsRequest deleteInvitationsRequest)
Deletes invitations received by the Amazon Web Services account to become a member account.
|
default DeleteMembersResponse |
deleteMembers(Consumer<DeleteMembersRequest.Builder> deleteMembersRequest)
Deletes the specified member accounts from Security Hub.
|
default DeleteMembersResponse |
deleteMembers(DeleteMembersRequest deleteMembersRequest)
Deletes the specified member accounts from Security Hub.
|
default DescribeActionTargetsResponse |
describeActionTargets(Consumer<DescribeActionTargetsRequest.Builder> describeActionTargetsRequest)
Returns a list of the custom action targets in Security Hub in your account.
|
default DescribeActionTargetsResponse |
describeActionTargets(DescribeActionTargetsRequest describeActionTargetsRequest)
Returns a list of the custom action targets in Security Hub in your account.
|
default DescribeActionTargetsIterable |
describeActionTargetsPaginator(Consumer<DescribeActionTargetsRequest.Builder> describeActionTargetsRequest)
Returns a list of the custom action targets in Security Hub in your account.
|
default DescribeActionTargetsIterable |
describeActionTargetsPaginator(DescribeActionTargetsRequest describeActionTargetsRequest)
Returns a list of the custom action targets in Security Hub in your account.
|
default DescribeHubResponse |
describeHub(Consumer<DescribeHubRequest.Builder> describeHubRequest)
Returns details about the Hub resource in your account, including the
HubArn and the time when you
enabled Security Hub. |
default DescribeHubResponse |
describeHub(DescribeHubRequest describeHubRequest)
Returns details about the Hub resource in your account, including the
HubArn and the time when you
enabled Security Hub. |
default DescribeOrganizationConfigurationResponse |
describeOrganizationConfiguration(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest)
Returns information about the Organizations configuration for Security Hub.
|
default DescribeOrganizationConfigurationResponse |
describeOrganizationConfiguration(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest)
Returns information about the Organizations configuration for Security Hub.
|
default DescribeProductsResponse |
describeProducts(Consumer<DescribeProductsRequest.Builder> describeProductsRequest)
Returns information about product integrations in Security Hub.
|
default DescribeProductsResponse |
describeProducts(DescribeProductsRequest describeProductsRequest)
Returns information about product integrations in Security Hub.
|
default DescribeProductsIterable |
describeProductsPaginator(Consumer<DescribeProductsRequest.Builder> describeProductsRequest)
Returns information about product integrations in Security Hub.
|
default DescribeProductsIterable |
describeProductsPaginator(DescribeProductsRequest describeProductsRequest)
Returns information about product integrations in Security Hub.
|
default DescribeStandardsResponse |
describeStandards(Consumer<DescribeStandardsRequest.Builder> describeStandardsRequest)
Returns a list of the available standards in Security Hub.
|
default DescribeStandardsResponse |
describeStandards(DescribeStandardsRequest describeStandardsRequest)
Returns a list of the available standards in Security Hub.
|
default DescribeStandardsControlsResponse |
describeStandardsControls(Consumer<DescribeStandardsControlsRequest.Builder> describeStandardsControlsRequest)
Returns a list of security standards controls.
|
default DescribeStandardsControlsResponse |
describeStandardsControls(DescribeStandardsControlsRequest describeStandardsControlsRequest)
Returns a list of security standards controls.
|
default DescribeStandardsControlsIterable |
describeStandardsControlsPaginator(Consumer<DescribeStandardsControlsRequest.Builder> describeStandardsControlsRequest)
Returns a list of security standards controls.
|
default DescribeStandardsControlsIterable |
describeStandardsControlsPaginator(DescribeStandardsControlsRequest describeStandardsControlsRequest)
Returns a list of security standards controls.
|
default DescribeStandardsIterable |
describeStandardsPaginator(Consumer<DescribeStandardsRequest.Builder> describeStandardsRequest)
Returns a list of the available standards in Security Hub.
|
default DescribeStandardsIterable |
describeStandardsPaginator(DescribeStandardsRequest describeStandardsRequest)
Returns a list of the available standards in Security Hub.
|
default DisableImportFindingsForProductResponse |
disableImportFindingsForProduct(Consumer<DisableImportFindingsForProductRequest.Builder> disableImportFindingsForProductRequest)
Disables the integration of the specified product with Security Hub.
|
default DisableImportFindingsForProductResponse |
disableImportFindingsForProduct(DisableImportFindingsForProductRequest disableImportFindingsForProductRequest)
Disables the integration of the specified product with Security Hub.
|
default DisableOrganizationAdminAccountResponse |
disableOrganizationAdminAccount(Consumer<DisableOrganizationAdminAccountRequest.Builder> disableOrganizationAdminAccountRequest)
Disables a Security Hub administrator account.
|
default DisableOrganizationAdminAccountResponse |
disableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest disableOrganizationAdminAccountRequest)
Disables a Security Hub administrator account.
|
default DisableSecurityHubResponse |
disableSecurityHub()
Disables Security Hub in your account only in the current Region.
|
default DisableSecurityHubResponse |
disableSecurityHub(Consumer<DisableSecurityHubRequest.Builder> disableSecurityHubRequest)
Disables Security Hub in your account only in the current Region.
|
default DisableSecurityHubResponse |
disableSecurityHub(DisableSecurityHubRequest disableSecurityHubRequest)
Disables Security Hub in your account only in the current Region.
|
default DisassociateFromAdministratorAccountResponse |
disassociateFromAdministratorAccount(Consumer<DisassociateFromAdministratorAccountRequest.Builder> disassociateFromAdministratorAccountRequest)
Disassociates the current Security Hub member account from the associated administrator account.
|
default DisassociateFromAdministratorAccountResponse |
disassociateFromAdministratorAccount(DisassociateFromAdministratorAccountRequest disassociateFromAdministratorAccountRequest)
Disassociates the current Security Hub member account from the associated administrator account.
|
default DisassociateFromMasterAccountResponse |
disassociateFromMasterAccount(Consumer<DisassociateFromMasterAccountRequest.Builder> disassociateFromMasterAccountRequest)
Deprecated.
This API has been deprecated, use DisassociateFromAdministratorAccount API instead.
|
default DisassociateFromMasterAccountResponse |
disassociateFromMasterAccount(DisassociateFromMasterAccountRequest disassociateFromMasterAccountRequest)
Deprecated.
This API has been deprecated, use DisassociateFromAdministratorAccount API instead.
|
default DisassociateMembersResponse |
disassociateMembers(Consumer<DisassociateMembersRequest.Builder> disassociateMembersRequest)
Disassociates the specified member accounts from the associated administrator account.
|
default DisassociateMembersResponse |
disassociateMembers(DisassociateMembersRequest disassociateMembersRequest)
Disassociates the specified member accounts from the associated administrator account.
|
default EnableImportFindingsForProductResponse |
enableImportFindingsForProduct(Consumer<EnableImportFindingsForProductRequest.Builder> enableImportFindingsForProductRequest)
Enables the integration of a partner product with Security Hub.
|
default EnableImportFindingsForProductResponse |
enableImportFindingsForProduct(EnableImportFindingsForProductRequest enableImportFindingsForProductRequest)
Enables the integration of a partner product with Security Hub.
|
default EnableOrganizationAdminAccountResponse |
enableOrganizationAdminAccount(Consumer<EnableOrganizationAdminAccountRequest.Builder> enableOrganizationAdminAccountRequest)
Designates the Security Hub administrator account for an organization.
|
default EnableOrganizationAdminAccountResponse |
enableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest enableOrganizationAdminAccountRequest)
Designates the Security Hub administrator account for an organization.
|
default EnableSecurityHubResponse |
enableSecurityHub()
Enables Security Hub for your account in the current Region or the Region you specify in the request.
|
default EnableSecurityHubResponse |
enableSecurityHub(Consumer<EnableSecurityHubRequest.Builder> enableSecurityHubRequest)
Enables Security Hub for your account in the current Region or the Region you specify in the request.
|
default EnableSecurityHubResponse |
enableSecurityHub(EnableSecurityHubRequest enableSecurityHubRequest)
Enables Security Hub for your account in the current Region or the Region you specify in the request.
|
default GetAdministratorAccountResponse |
getAdministratorAccount(Consumer<GetAdministratorAccountRequest.Builder> getAdministratorAccountRequest)
Provides the details for the Security Hub administrator account for the current member account.
|
default GetAdministratorAccountResponse |
getAdministratorAccount(GetAdministratorAccountRequest getAdministratorAccountRequest)
Provides the details for the Security Hub administrator account for the current member account.
|
default GetEnabledStandardsResponse |
getEnabledStandards(Consumer<GetEnabledStandardsRequest.Builder> getEnabledStandardsRequest)
Returns a list of the standards that are currently enabled.
|
default GetEnabledStandardsResponse |
getEnabledStandards(GetEnabledStandardsRequest getEnabledStandardsRequest)
Returns a list of the standards that are currently enabled.
|
default GetEnabledStandardsIterable |
getEnabledStandardsPaginator(Consumer<GetEnabledStandardsRequest.Builder> getEnabledStandardsRequest)
Returns a list of the standards that are currently enabled.
|
default GetEnabledStandardsIterable |
getEnabledStandardsPaginator(GetEnabledStandardsRequest getEnabledStandardsRequest)
Returns a list of the standards that are currently enabled.
|
default GetFindingAggregatorResponse |
getFindingAggregator(Consumer<GetFindingAggregatorRequest.Builder> getFindingAggregatorRequest)
Returns the current finding aggregation configuration.
|
default GetFindingAggregatorResponse |
getFindingAggregator(GetFindingAggregatorRequest getFindingAggregatorRequest)
Returns the current finding aggregation configuration.
|
default GetFindingsResponse |
getFindings()
Returns a list of findings that match the specified criteria.
|
default GetFindingsResponse |
getFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest)
Returns a list of findings that match the specified criteria.
|
default GetFindingsResponse |
getFindings(GetFindingsRequest getFindingsRequest)
Returns a list of findings that match the specified criteria.
|
default GetFindingsIterable |
getFindingsPaginator()
Returns a list of findings that match the specified criteria.
|
default GetFindingsIterable |
getFindingsPaginator(Consumer<GetFindingsRequest.Builder> getFindingsRequest)
Returns a list of findings that match the specified criteria.
|
default GetFindingsIterable |
getFindingsPaginator(GetFindingsRequest getFindingsRequest)
Returns a list of findings that match the specified criteria.
|
default GetInsightResultsResponse |
getInsightResults(Consumer<GetInsightResultsRequest.Builder> getInsightResultsRequest)
Lists the results of the Security Hub insight specified by the insight ARN.
|
default GetInsightResultsResponse |
getInsightResults(GetInsightResultsRequest getInsightResultsRequest)
Lists the results of the Security Hub insight specified by the insight ARN.
|
default GetInsightsResponse |
getInsights(Consumer<GetInsightsRequest.Builder> getInsightsRequest)
Lists and describes insights for the specified insight ARNs.
|
default GetInsightsResponse |
getInsights(GetInsightsRequest getInsightsRequest)
Lists and describes insights for the specified insight ARNs.
|
default GetInsightsIterable |
getInsightsPaginator(Consumer<GetInsightsRequest.Builder> getInsightsRequest)
Lists and describes insights for the specified insight ARNs.
|
default GetInsightsIterable |
getInsightsPaginator(GetInsightsRequest getInsightsRequest)
Lists and describes insights for the specified insight ARNs.
|
default GetInvitationsCountResponse |
getInvitationsCount()
Returns the count of all Security Hub membership invitations that were sent to the current member account, not
including the currently accepted invitation.
|
default GetInvitationsCountResponse |
getInvitationsCount(Consumer<GetInvitationsCountRequest.Builder> getInvitationsCountRequest)
Returns the count of all Security Hub membership invitations that were sent to the current member account, not
including the currently accepted invitation.
|
default GetInvitationsCountResponse |
getInvitationsCount(GetInvitationsCountRequest getInvitationsCountRequest)
Returns the count of all Security Hub membership invitations that were sent to the current member account, not
including the currently accepted invitation.
|
default GetMasterAccountResponse |
getMasterAccount()
Deprecated.
This API has been deprecated, use GetAdministratorAccount API instead.
|
default GetMasterAccountResponse |
getMasterAccount(Consumer<GetMasterAccountRequest.Builder> getMasterAccountRequest)
Deprecated.
This API has been deprecated, use GetAdministratorAccount API instead.
|
default GetMasterAccountResponse |
getMasterAccount(GetMasterAccountRequest getMasterAccountRequest)
Deprecated.
This API has been deprecated, use GetAdministratorAccount API instead.
|
default GetMembersResponse |
getMembers(Consumer<GetMembersRequest.Builder> getMembersRequest)
Returns the details for the Security Hub member accounts for the specified account IDs.
|
default GetMembersResponse |
getMembers(GetMembersRequest getMembersRequest)
Returns the details for the Security Hub member accounts for the specified account IDs.
|
default InviteMembersResponse |
inviteMembers(Consumer<InviteMembersRequest.Builder> inviteMembersRequest)
Invites other Amazon Web Services accounts to become member accounts for the Security Hub administrator account
that the invitation is sent from.
|
default InviteMembersResponse |
inviteMembers(InviteMembersRequest inviteMembersRequest)
Invites other Amazon Web Services accounts to become member accounts for the Security Hub administrator account
that the invitation is sent from.
|
default ListEnabledProductsForImportResponse |
listEnabledProductsForImport()
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security
Hub.
|
default ListEnabledProductsForImportResponse |
listEnabledProductsForImport(Consumer<ListEnabledProductsForImportRequest.Builder> listEnabledProductsForImportRequest)
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security
Hub.
|
default ListEnabledProductsForImportResponse |
listEnabledProductsForImport(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest)
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security
Hub.
|
default ListEnabledProductsForImportIterable |
listEnabledProductsForImportPaginator()
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security
Hub.
|
default ListEnabledProductsForImportIterable |
listEnabledProductsForImportPaginator(Consumer<ListEnabledProductsForImportRequest.Builder> listEnabledProductsForImportRequest)
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security
Hub.
|
default ListEnabledProductsForImportIterable |
listEnabledProductsForImportPaginator(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest)
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security
Hub.
|
default ListFindingAggregatorsResponse |
listFindingAggregators(Consumer<ListFindingAggregatorsRequest.Builder> listFindingAggregatorsRequest)
If finding aggregation is enabled, then
ListFindingAggregators returns the ARN of the finding
aggregator. |
default ListFindingAggregatorsResponse |
listFindingAggregators(ListFindingAggregatorsRequest listFindingAggregatorsRequest)
If finding aggregation is enabled, then
ListFindingAggregators returns the ARN of the finding
aggregator. |
default ListFindingAggregatorsIterable |
listFindingAggregatorsPaginator(Consumer<ListFindingAggregatorsRequest.Builder> listFindingAggregatorsRequest)
If finding aggregation is enabled, then
ListFindingAggregators returns the ARN of the finding
aggregator. |
default ListFindingAggregatorsIterable |
listFindingAggregatorsPaginator(ListFindingAggregatorsRequest listFindingAggregatorsRequest)
If finding aggregation is enabled, then
ListFindingAggregators returns the ARN of the finding
aggregator. |
default ListInvitationsResponse |
listInvitations()
Lists all Security Hub membership invitations that were sent to the current Amazon Web Services account.
|
default ListInvitationsResponse |
listInvitations(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest)
Lists all Security Hub membership invitations that were sent to the current Amazon Web Services account.
|
default ListInvitationsResponse |
listInvitations(ListInvitationsRequest listInvitationsRequest)
Lists all Security Hub membership invitations that were sent to the current Amazon Web Services account.
|
default ListInvitationsIterable |
listInvitationsPaginator()
Lists all Security Hub membership invitations that were sent to the current Amazon Web Services account.
|
default ListInvitationsIterable |
listInvitationsPaginator(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest)
Lists all Security Hub membership invitations that were sent to the current Amazon Web Services account.
|
default ListInvitationsIterable |
listInvitationsPaginator(ListInvitationsRequest listInvitationsRequest)
Lists all Security Hub membership invitations that were sent to the current Amazon Web Services account.
|
default ListMembersResponse |
listMembers()
Lists details about all member accounts for the current Security Hub administrator account.
|
default ListMembersResponse |
listMembers(Consumer<ListMembersRequest.Builder> listMembersRequest)
Lists details about all member accounts for the current Security Hub administrator account.
|
default ListMembersResponse |
listMembers(ListMembersRequest listMembersRequest)
Lists details about all member accounts for the current Security Hub administrator account.
|
default ListMembersIterable |
listMembersPaginator()
Lists details about all member accounts for the current Security Hub administrator account.
|
default ListMembersIterable |
listMembersPaginator(Consumer<ListMembersRequest.Builder> listMembersRequest)
Lists details about all member accounts for the current Security Hub administrator account.
|
default ListMembersIterable |
listMembersPaginator(ListMembersRequest listMembersRequest)
Lists details about all member accounts for the current Security Hub administrator account.
|
default ListOrganizationAdminAccountsResponse |
listOrganizationAdminAccounts(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest)
Lists the Security Hub administrator accounts.
|
default ListOrganizationAdminAccountsResponse |
listOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest)
Lists the Security Hub administrator accounts.
|
default ListOrganizationAdminAccountsIterable |
listOrganizationAdminAccountsPaginator(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest)
Lists the Security Hub administrator accounts.
|
default ListOrganizationAdminAccountsIterable |
listOrganizationAdminAccountsPaginator(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest)
Lists the Security Hub administrator accounts.
|
default ListTagsForResourceResponse |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Returns a list of tags associated with a resource.
|
default ListTagsForResourceResponse |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns a list of tags associated with a resource.
|
static ServiceMetadata |
serviceMetadata() |
default TagResourceResponse |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds one or more tags to a resource.
|
default TagResourceResponse |
tagResource(TagResourceRequest tagResourceRequest)
Adds one or more tags to a resource.
|
default UntagResourceResponse |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes one or more tags from a resource.
|
default UntagResourceResponse |
untagResource(UntagResourceRequest untagResourceRequest)
Removes one or more tags from a resource.
|
default UpdateActionTargetResponse |
updateActionTarget(Consumer<UpdateActionTargetRequest.Builder> updateActionTargetRequest)
Updates the name and description of a custom action target in Security Hub.
|
default UpdateActionTargetResponse |
updateActionTarget(UpdateActionTargetRequest updateActionTargetRequest)
Updates the name and description of a custom action target in Security Hub.
|
default UpdateFindingAggregatorResponse |
updateFindingAggregator(Consumer<UpdateFindingAggregatorRequest.Builder> updateFindingAggregatorRequest)
Updates the finding aggregation configuration.
|
default UpdateFindingAggregatorResponse |
updateFindingAggregator(UpdateFindingAggregatorRequest updateFindingAggregatorRequest)
Updates the finding aggregation configuration.
|
default UpdateFindingsResponse |
updateFindings(Consumer<UpdateFindingsRequest.Builder> updateFindingsRequest)
UpdateFindings is deprecated. |
default UpdateFindingsResponse |
updateFindings(UpdateFindingsRequest updateFindingsRequest)
UpdateFindings is deprecated. |
default UpdateInsightResponse |
updateInsight(Consumer<UpdateInsightRequest.Builder> updateInsightRequest)
Updates the Security Hub insight identified by the specified insight ARN.
|
default UpdateInsightResponse |
updateInsight(UpdateInsightRequest updateInsightRequest)
Updates the Security Hub insight identified by the specified insight ARN.
|
default UpdateOrganizationConfigurationResponse |
updateOrganizationConfiguration(Consumer<UpdateOrganizationConfigurationRequest.Builder> updateOrganizationConfigurationRequest)
Used to update the configuration related to Organizations.
|
default UpdateOrganizationConfigurationResponse |
updateOrganizationConfiguration(UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest)
Used to update the configuration related to Organizations.
|
default UpdateSecurityHubConfigurationResponse |
updateSecurityHubConfiguration(Consumer<UpdateSecurityHubConfigurationRequest.Builder> updateSecurityHubConfigurationRequest)
Updates configuration options for Security Hub.
|
default UpdateSecurityHubConfigurationResponse |
updateSecurityHubConfiguration(UpdateSecurityHubConfigurationRequest updateSecurityHubConfigurationRequest)
Updates configuration options for Security Hub.
|
default UpdateStandardsControlResponse |
updateStandardsControl(Consumer<UpdateStandardsControlRequest.Builder> updateStandardsControlRequest)
Used to control whether an individual security standard control is enabled or disabled.
|
default UpdateStandardsControlResponse |
updateStandardsControl(UpdateStandardsControlRequest updateStandardsControlRequest)
Used to control whether an individual security standard control is enabled or disabled.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.static SecurityHubClient create()
SecurityHubClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static SecurityHubClientBuilder builder()
SecurityHubClient.default AcceptAdministratorInvitationResponse acceptAdministratorInvitation(AcceptAdministratorInvitationRequest acceptAdministratorInvitationRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
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.
acceptAdministratorInvitationRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault AcceptAdministratorInvitationResponse acceptAdministratorInvitation(Consumer<AcceptAdministratorInvitationRequest.Builder> acceptAdministratorInvitationRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
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.
This is a convenience which creates an instance of the AcceptAdministratorInvitationRequest.Builder
avoiding the need to create one manually via AcceptAdministratorInvitationRequest.builder()
acceptAdministratorInvitationRequest - A Consumer that will call methods on AcceptAdministratorInvitationRequest.Builder to
create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException@Deprecated default AcceptInvitationResponse acceptInvitation(AcceptInvitationRequest acceptInvitationRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
This method is deprecated. Instead, use AcceptAdministratorInvitation.
The Security Hub console continues to use AcceptInvitation. It will eventually change to use
AcceptAdministratorInvitation. Any IAM policies that specifically control access to this function
must continue to use AcceptInvitation. You should also add
AcceptAdministratorInvitation to your policies to ensure that the correct permissions are in place
after the console begins to use AcceptAdministratorInvitation.
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.
acceptInvitationRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException@Deprecated default AcceptInvitationResponse acceptInvitation(Consumer<AcceptInvitationRequest.Builder> acceptInvitationRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
This method is deprecated. Instead, use AcceptAdministratorInvitation.
The Security Hub console continues to use AcceptInvitation. It will eventually change to use
AcceptAdministratorInvitation. Any IAM policies that specifically control access to this function
must continue to use AcceptInvitation. You should also add
AcceptAdministratorInvitation to your policies to ensure that the correct permissions are in place
after the console begins to use AcceptAdministratorInvitation.
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.
This is a convenience which creates an instance of the AcceptInvitationRequest.Builder avoiding the need
to create one manually via AcceptInvitationRequest.builder()
acceptInvitationRequest - A Consumer that will call methods on AcceptInvitationRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault BatchDisableStandardsResponse batchDisableStandards(BatchDisableStandardsRequest batchDisableStandardsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Disables the standards specified by the provided StandardsSubscriptionArns.
For more information, see Security Standards section of the Security Hub User Guide.
batchDisableStandardsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault BatchDisableStandardsResponse batchDisableStandards(Consumer<BatchDisableStandardsRequest.Builder> batchDisableStandardsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Disables the standards specified by the provided StandardsSubscriptionArns.
For more information, see Security Standards section of the Security Hub User Guide.
This is a convenience which creates an instance of the BatchDisableStandardsRequest.Builder avoiding the
need to create one manually via BatchDisableStandardsRequest.builder()
batchDisableStandardsRequest - A Consumer that will call methods on BatchDisableStandardsRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault BatchEnableStandardsResponse batchEnableStandards(BatchEnableStandardsRequest batchEnableStandardsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Enables the standards specified by the provided StandardsArn. To obtain the ARN for a standard, use
the DescribeStandards operation.
For more information, see the Security Standards section of the Security Hub User Guide.
batchEnableStandardsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault BatchEnableStandardsResponse batchEnableStandards(Consumer<BatchEnableStandardsRequest.Builder> batchEnableStandardsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Enables the standards specified by the provided StandardsArn. To obtain the ARN for a standard, use
the DescribeStandards operation.
For more information, see the Security Standards section of the Security Hub User Guide.
This is a convenience which creates an instance of the BatchEnableStandardsRequest.Builder avoiding the
need to create one manually via BatchEnableStandardsRequest.builder()
batchEnableStandardsRequest - A Consumer that will call methods on BatchEnableStandardsRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault BatchImportFindingsResponse batchImportFindings(BatchImportFindingsRequest batchImportFindingsRequest) throws InternalException, InvalidInputException, LimitExceededException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Imports security findings generated by a finding provider into Security Hub. This action is requested by the finding provider to import its findings into Security Hub.
BatchImportFindings must be called by one of the following:
The Amazon Web Services account that is associated with a finding if you are using the default product ARN or are a partner sending findings from within a customer's Amazon Web Services account.
In these cases, the identifier of the account that you are calling BatchImportFindings from needs to
be the same as the AwsAccountId attribute for the finding.
An Amazon Web Services account that Security Hub has allow-listed for an official partner integration. In this
case, you can call BatchImportFindings from the allow-listed account and send findings from
different customer accounts in the same batch.
The maximum allowed size for a finding is 240 Kb. An error is returned for any finding larger than 240 Kb.
After a finding is created, BatchImportFindings cannot be used to update the following finding
fields and objects, which Security Hub customers use to manage their investigation workflow.
Note
UserDefinedFields
VerificationState
Workflow
Finding providers also should not use BatchImportFindings to update the following attributes.
Confidence
Criticality
RelatedFindings
Severity
Types
Instead, finding providers use FindingProviderFields to provide values for these attributes.
batchImportFindingsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault BatchImportFindingsResponse batchImportFindings(Consumer<BatchImportFindingsRequest.Builder> batchImportFindingsRequest) throws InternalException, InvalidInputException, LimitExceededException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Imports security findings generated by a finding provider into Security Hub. This action is requested by the finding provider to import its findings into Security Hub.
BatchImportFindings must be called by one of the following:
The Amazon Web Services account that is associated with a finding if you are using the default product ARN or are a partner sending findings from within a customer's Amazon Web Services account.
In these cases, the identifier of the account that you are calling BatchImportFindings from needs to
be the same as the AwsAccountId attribute for the finding.
An Amazon Web Services account that Security Hub has allow-listed for an official partner integration. In this
case, you can call BatchImportFindings from the allow-listed account and send findings from
different customer accounts in the same batch.
The maximum allowed size for a finding is 240 Kb. An error is returned for any finding larger than 240 Kb.
After a finding is created, BatchImportFindings cannot be used to update the following finding
fields and objects, which Security Hub customers use to manage their investigation workflow.
Note
UserDefinedFields
VerificationState
Workflow
Finding providers also should not use BatchImportFindings to update the following attributes.
Confidence
Criticality
RelatedFindings
Severity
Types
Instead, finding providers use FindingProviderFields to provide values for these attributes.
This is a convenience which creates an instance of the BatchImportFindingsRequest.Builder avoiding the
need to create one manually via BatchImportFindingsRequest.builder()
batchImportFindingsRequest - A Consumer that will call methods on BatchImportFindingsRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault BatchUpdateFindingsResponse batchUpdateFindings(BatchUpdateFindingsRequest batchUpdateFindingsRequest) throws InternalException, InvalidInputException, LimitExceededException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Used by Security Hub customers to update information about their investigation into a finding. Requested by administrator accounts or member accounts. Administrator accounts can update findings for their account and their member accounts. Member accounts can update findings for their account.
Updates from BatchUpdateFindings do not affect the value of UpdatedAt for a finding.
Administrator and member accounts can use BatchUpdateFindings to update the following finding fields
and objects.
Confidence
Criticality
Note
RelatedFindings
Severity
Types
UserDefinedFields
VerificationState
Workflow
You can configure IAM policies to restrict access to fields and field values. For example, you might not want member accounts to be able to suppress findings or change the finding severity. See Configuring access to BatchUpdateFindings in the Security Hub User Guide.
batchUpdateFindingsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault BatchUpdateFindingsResponse batchUpdateFindings(Consumer<BatchUpdateFindingsRequest.Builder> batchUpdateFindingsRequest) throws InternalException, InvalidInputException, LimitExceededException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Used by Security Hub customers to update information about their investigation into a finding. Requested by administrator accounts or member accounts. Administrator accounts can update findings for their account and their member accounts. Member accounts can update findings for their account.
Updates from BatchUpdateFindings do not affect the value of UpdatedAt for a finding.
Administrator and member accounts can use BatchUpdateFindings to update the following finding fields
and objects.
Confidence
Criticality
Note
RelatedFindings
Severity
Types
UserDefinedFields
VerificationState
Workflow
You can configure IAM policies to restrict access to fields and field values. For example, you might not want member accounts to be able to suppress findings or change the finding severity. See Configuring access to BatchUpdateFindings in the Security Hub User Guide.
This is a convenience which creates an instance of the BatchUpdateFindingsRequest.Builder avoiding the
need to create one manually via BatchUpdateFindingsRequest.builder()
batchUpdateFindingsRequest - A Consumer that will call methods on BatchUpdateFindingsRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateActionTargetResponse createActionTarget(CreateActionTargetRequest createActionTargetRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceConflictException, AwsServiceException, SdkClientException, SecurityHubException
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.
createActionTargetRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceConflictException - The resource specified in the request conflicts with an existing resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateActionTargetResponse createActionTarget(Consumer<CreateActionTargetRequest.Builder> createActionTargetRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceConflictException, AwsServiceException, SdkClientException, SecurityHubException
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.
This is a convenience which creates an instance of the CreateActionTargetRequest.Builder avoiding the
need to create one manually via CreateActionTargetRequest.builder()
createActionTargetRequest - A Consumer that will call methods on CreateActionTargetRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceConflictException - The resource specified in the request conflicts with an existing resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateFindingAggregatorResponse createFindingAggregator(CreateFindingAggregatorRequest createFindingAggregatorRequest) throws InternalException, LimitExceededException, InvalidAccessException, AccessDeniedException, InvalidInputException, AwsServiceException, SdkClientException, SecurityHubException
Used to enable finding aggregation. Must be called from the aggregation Region.
For more details about cross-Region replication, see Configuring finding aggregation in the Security Hub User Guide.
createFindingAggregatorRequest - InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.AccessDeniedException - You don't have permission to perform the action specified in the request.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateFindingAggregatorResponse createFindingAggregator(Consumer<CreateFindingAggregatorRequest.Builder> createFindingAggregatorRequest) throws InternalException, LimitExceededException, InvalidAccessException, AccessDeniedException, InvalidInputException, AwsServiceException, SdkClientException, SecurityHubException
Used to enable finding aggregation. Must be called from the aggregation Region.
For more details about cross-Region replication, see Configuring finding aggregation in the Security Hub User Guide.
This is a convenience which creates an instance of the CreateFindingAggregatorRequest.Builder avoiding
the need to create one manually via CreateFindingAggregatorRequest.builder()
createFindingAggregatorRequest - A Consumer that will call methods on CreateFindingAggregatorRequest.Builder to create a
request.InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.AccessDeniedException - You don't have permission to perform the action specified in the request.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateInsightResponse createInsight(CreateInsightRequest createInsightRequest) throws InternalException, InvalidInputException, LimitExceededException, InvalidAccessException, ResourceConflictException, AwsServiceException, SdkClientException, SecurityHubException
Creates a custom insight in Security Hub. An insight is a consolidation of findings that relate to a security issue that requires attention or remediation.
To group the related findings in the insight, use the GroupByAttribute.
createInsightRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceConflictException - The resource specified in the request conflicts with an existing resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateInsightResponse createInsight(Consumer<CreateInsightRequest.Builder> createInsightRequest) throws InternalException, InvalidInputException, LimitExceededException, InvalidAccessException, ResourceConflictException, AwsServiceException, SdkClientException, SecurityHubException
Creates a custom insight in Security Hub. An insight is a consolidation of findings that relate to a security issue that requires attention or remediation.
To group the related findings in the insight, use the GroupByAttribute.
This is a convenience which creates an instance of the CreateInsightRequest.Builder avoiding the need to
create one manually via CreateInsightRequest.builder()
createInsightRequest - A Consumer that will call methods on CreateInsightRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceConflictException - The resource specified in the request conflicts with an existing resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateMembersResponse createMembers(CreateMembersRequest createMembersRequest) throws InternalException, InvalidInputException, LimitExceededException, InvalidAccessException, ResourceConflictException, AwsServiceException, SdkClientException, SecurityHubException
Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the administrator account. If you are integrated with Organizations, then the administrator account is designated by the organization management account.
CreateMembers is always used to add accounts that are not organization members.
For accounts that are managed using Organizations, CreateMembers is only used in the following
cases:
Security Hub is not configured to automatically add new organization accounts.
The account was disassociated or deleted in Security Hub.
This action can only be used by an account that has Security Hub enabled. To enable Security Hub, you can use the
EnableSecurityHub operation.
For accounts that are not organization members, you create the account association and then send an invitation to
the member account. To send the invitation, you use the InviteMembers operation. If the account
owner accepts the invitation, the account becomes a member account in Security Hub.
Accounts that are managed using Organizations do not receive an invitation. They automatically become a member account in Security Hub.
If the organization account does not have Security Hub enabled, then Security Hub and the default standards are automatically enabled. Note that Security Hub cannot be enabled automatically for the organization management account. The organization management account must enable Security Hub before the administrator account enables it as a member account.
For organization accounts that already have Security Hub enabled, Security Hub does not make any other changes to those accounts. It does not change their enabled standards or controls.
A permissions policy is added that permits the administrator account to view the findings generated in the member account.
To remove the association between the administrator and member accounts, use the
DisassociateFromMasterAccount or DisassociateMembers operation.
createMembersRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceConflictException - The resource specified in the request conflicts with an existing resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateMembersResponse createMembers(Consumer<CreateMembersRequest.Builder> createMembersRequest) throws InternalException, InvalidInputException, LimitExceededException, InvalidAccessException, ResourceConflictException, AwsServiceException, SdkClientException, SecurityHubException
Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the administrator account. If you are integrated with Organizations, then the administrator account is designated by the organization management account.
CreateMembers is always used to add accounts that are not organization members.
For accounts that are managed using Organizations, CreateMembers is only used in the following
cases:
Security Hub is not configured to automatically add new organization accounts.
The account was disassociated or deleted in Security Hub.
This action can only be used by an account that has Security Hub enabled. To enable Security Hub, you can use the
EnableSecurityHub operation.
For accounts that are not organization members, you create the account association and then send an invitation to
the member account. To send the invitation, you use the InviteMembers operation. If the account
owner accepts the invitation, the account becomes a member account in Security Hub.
Accounts that are managed using Organizations do not receive an invitation. They automatically become a member account in Security Hub.
If the organization account does not have Security Hub enabled, then Security Hub and the default standards are automatically enabled. Note that Security Hub cannot be enabled automatically for the organization management account. The organization management account must enable Security Hub before the administrator account enables it as a member account.
For organization accounts that already have Security Hub enabled, Security Hub does not make any other changes to those accounts. It does not change their enabled standards or controls.
A permissions policy is added that permits the administrator account to view the findings generated in the member account.
To remove the association between the administrator and member accounts, use the
DisassociateFromMasterAccount or DisassociateMembers operation.
This is a convenience which creates an instance of the CreateMembersRequest.Builder avoiding the need to
create one manually via CreateMembersRequest.builder()
createMembersRequest - A Consumer that will call methods on CreateMembersRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceConflictException - The resource specified in the request conflicts with an existing resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeclineInvitationsResponse declineInvitations(DeclineInvitationsRequest declineInvitationsRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Declines invitations to become a member account.
This operation is only used by accounts that are not part of an organization. Organization accounts do not receive invitations.
declineInvitationsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeclineInvitationsResponse declineInvitations(Consumer<DeclineInvitationsRequest.Builder> declineInvitationsRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Declines invitations to become a member account.
This operation is only used by accounts that are not part of an organization. Organization accounts do not receive invitations.
This is a convenience which creates an instance of the DeclineInvitationsRequest.Builder avoiding the
need to create one manually via DeclineInvitationsRequest.builder()
declineInvitationsRequest - A Consumer that will call methods on DeclineInvitationsRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteActionTargetResponse deleteActionTarget(DeleteActionTargetRequest deleteActionTargetRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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.
deleteActionTargetRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteActionTargetResponse deleteActionTarget(Consumer<DeleteActionTargetRequest.Builder> deleteActionTargetRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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.
This is a convenience which creates an instance of the DeleteActionTargetRequest.Builder avoiding the
need to create one manually via DeleteActionTargetRequest.builder()
deleteActionTargetRequest - A Consumer that will call methods on DeleteActionTargetRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteFindingAggregatorResponse deleteFindingAggregator(DeleteFindingAggregatorRequest deleteFindingAggregatorRequest) throws InternalException, LimitExceededException, InvalidAccessException, AccessDeniedException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Deletes a finding aggregator. When you delete the finding aggregator, you stop finding aggregation.
When you stop finding aggregation, findings that were already aggregated to the aggregation Region are still visible from the aggregation Region. New findings and finding updates are not aggregated.
deleteFindingAggregatorRequest - InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.AccessDeniedException - You don't have permission to perform the action specified in the request.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteFindingAggregatorResponse deleteFindingAggregator(Consumer<DeleteFindingAggregatorRequest.Builder> deleteFindingAggregatorRequest) throws InternalException, LimitExceededException, InvalidAccessException, AccessDeniedException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Deletes a finding aggregator. When you delete the finding aggregator, you stop finding aggregation.
When you stop finding aggregation, findings that were already aggregated to the aggregation Region are still visible from the aggregation Region. New findings and finding updates are not aggregated.
This is a convenience which creates an instance of the DeleteFindingAggregatorRequest.Builder avoiding
the need to create one manually via DeleteFindingAggregatorRequest.builder()
deleteFindingAggregatorRequest - A Consumer that will call methods on DeleteFindingAggregatorRequest.Builder to create a
request.InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.AccessDeniedException - You don't have permission to perform the action specified in the request.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteInsightResponse deleteInsight(DeleteInsightRequest deleteInsightRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Deletes the insight specified by the InsightArn.
deleteInsightRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteInsightResponse deleteInsight(Consumer<DeleteInsightRequest.Builder> deleteInsightRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Deletes the insight specified by the InsightArn.
This is a convenience which creates an instance of the DeleteInsightRequest.Builder avoiding the need to
create one manually via DeleteInsightRequest.builder()
deleteInsightRequest - A Consumer that will call methods on DeleteInsightRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteInvitationsResponse deleteInvitations(DeleteInvitationsRequest deleteInvitationsRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Deletes invitations received by the Amazon Web Services account to become a member account.
This operation is only used by accounts that are not part of an organization. Organization accounts do not receive invitations.
deleteInvitationsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteInvitationsResponse deleteInvitations(Consumer<DeleteInvitationsRequest.Builder> deleteInvitationsRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Deletes invitations received by the Amazon Web Services account to become a member account.
This operation is only used by accounts that are not part of an organization. Organization accounts do not receive invitations.
This is a convenience which creates an instance of the DeleteInvitationsRequest.Builder avoiding the need
to create one manually via DeleteInvitationsRequest.builder()
deleteInvitationsRequest - A Consumer that will call methods on DeleteInvitationsRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteMembersResponse deleteMembers(DeleteMembersRequest deleteMembersRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Deletes the specified member accounts from Security Hub.
Can be used to delete member accounts that belong to an organization as well as member accounts that were invited manually.
deleteMembersRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteMembersResponse deleteMembers(Consumer<DeleteMembersRequest.Builder> deleteMembersRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Deletes the specified member accounts from Security Hub.
Can be used to delete member accounts that belong to an organization as well as member accounts that were invited manually.
This is a convenience which creates an instance of the DeleteMembersRequest.Builder avoiding the need to
create one manually via DeleteMembersRequest.builder()
deleteMembersRequest - A Consumer that will call methods on DeleteMembersRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeActionTargetsResponse describeActionTargets(DescribeActionTargetsRequest describeActionTargetsRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of the custom action targets in Security Hub in your account.
describeActionTargetsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeActionTargetsResponse describeActionTargets(Consumer<DescribeActionTargetsRequest.Builder> describeActionTargetsRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of the custom action targets in Security Hub in your account.
This is a convenience which creates an instance of the DescribeActionTargetsRequest.Builder avoiding the
need to create one manually via DescribeActionTargetsRequest.builder()
describeActionTargetsRequest - A Consumer that will call methods on DescribeActionTargetsRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeActionTargetsIterable describeActionTargetsPaginator(DescribeActionTargetsRequest describeActionTargetsRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of the custom action targets in Security Hub in your account.
This is a variant of
describeActionTargets(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.DescribeActionTargetsIterable responses = client.describeActionTargetsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.DescribeActionTargetsIterable responses = client
.describeActionTargetsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.DescribeActionTargetsIterable responses = client.describeActionTargetsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeActionTargets(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsRequest)
operation.
describeActionTargetsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeActionTargetsIterable describeActionTargetsPaginator(Consumer<DescribeActionTargetsRequest.Builder> describeActionTargetsRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of the custom action targets in Security Hub in your account.
This is a variant of
describeActionTargets(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.DescribeActionTargetsIterable responses = client.describeActionTargetsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.DescribeActionTargetsIterable responses = client
.describeActionTargetsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.DescribeActionTargetsIterable responses = client.describeActionTargetsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeActionTargets(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsRequest)
operation.
This is a convenience which creates an instance of the DescribeActionTargetsRequest.Builder avoiding the
need to create one manually via DescribeActionTargetsRequest.builder()
describeActionTargetsRequest - A Consumer that will call methods on DescribeActionTargetsRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeHubResponse describeHub(DescribeHubRequest describeHubRequest) throws InternalException, LimitExceededException, InvalidAccessException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Returns details about the Hub resource in your account, including the HubArn and the time when you
enabled Security Hub.
describeHubRequest - InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeHubResponse describeHub(Consumer<DescribeHubRequest.Builder> describeHubRequest) throws InternalException, LimitExceededException, InvalidAccessException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Returns details about the Hub resource in your account, including the HubArn and the time when you
enabled Security Hub.
This is a convenience which creates an instance of the DescribeHubRequest.Builder avoiding the need to
create one manually via DescribeHubRequest.builder()
describeHubRequest - A Consumer that will call methods on DescribeHubRequest.Builder to create a request.InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeOrganizationConfigurationResponse describeOrganizationConfiguration(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns information about the Organizations configuration for Security Hub. Can only be called from a Security Hub administrator account.
describeOrganizationConfigurationRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeOrganizationConfigurationResponse describeOrganizationConfiguration(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns information about the Organizations configuration for Security Hub. Can only be called from a Security Hub administrator account.
This is a convenience which creates an instance of the DescribeOrganizationConfigurationRequest.Builder
avoiding the need to create one manually via DescribeOrganizationConfigurationRequest.builder()
describeOrganizationConfigurationRequest - A Consumer that will call methods on DescribeOrganizationConfigurationRequest.Builder to
create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeProductsResponse describeProducts(DescribeProductsRequest describeProductsRequest) throws InternalException, LimitExceededException, InvalidAccessException, InvalidInputException, AwsServiceException, SdkClientException, SecurityHubException
Returns information about product integrations in Security Hub.
You can optionally provide an integration ARN. If you provide an integration ARN, then the results only include that integration.
If you do not provide an integration ARN, then the results include all of the available product integrations.
describeProductsRequest - InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeProductsResponse describeProducts(Consumer<DescribeProductsRequest.Builder> describeProductsRequest) throws InternalException, LimitExceededException, InvalidAccessException, InvalidInputException, AwsServiceException, SdkClientException, SecurityHubException
Returns information about product integrations in Security Hub.
You can optionally provide an integration ARN. If you provide an integration ARN, then the results only include that integration.
If you do not provide an integration ARN, then the results include all of the available product integrations.
This is a convenience which creates an instance of the DescribeProductsRequest.Builder avoiding the need
to create one manually via DescribeProductsRequest.builder()
describeProductsRequest - A Consumer that will call methods on DescribeProductsRequest.Builder to create a request.InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeProductsIterable describeProductsPaginator(DescribeProductsRequest describeProductsRequest) throws InternalException, LimitExceededException, InvalidAccessException, InvalidInputException, AwsServiceException, SdkClientException, SecurityHubException
Returns information about product integrations in Security Hub.
You can optionally provide an integration ARN. If you provide an integration ARN, then the results only include that integration.
If you do not provide an integration ARN, then the results include all of the available product integrations.
This is a variant of
describeProducts(software.amazon.awssdk.services.securityhub.model.DescribeProductsRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.DescribeProductsIterable responses = client.describeProductsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.DescribeProductsIterable responses = client
.describeProductsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.DescribeProductsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.DescribeProductsIterable responses = client.describeProductsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeProducts(software.amazon.awssdk.services.securityhub.model.DescribeProductsRequest)
operation.
describeProductsRequest - InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeProductsIterable describeProductsPaginator(Consumer<DescribeProductsRequest.Builder> describeProductsRequest) throws InternalException, LimitExceededException, InvalidAccessException, InvalidInputException, AwsServiceException, SdkClientException, SecurityHubException
Returns information about product integrations in Security Hub.
You can optionally provide an integration ARN. If you provide an integration ARN, then the results only include that integration.
If you do not provide an integration ARN, then the results include all of the available product integrations.
This is a variant of
describeProducts(software.amazon.awssdk.services.securityhub.model.DescribeProductsRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.DescribeProductsIterable responses = client.describeProductsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.DescribeProductsIterable responses = client
.describeProductsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.DescribeProductsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.DescribeProductsIterable responses = client.describeProductsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeProducts(software.amazon.awssdk.services.securityhub.model.DescribeProductsRequest)
operation.
This is a convenience which creates an instance of the DescribeProductsRequest.Builder avoiding the need
to create one manually via DescribeProductsRequest.builder()
describeProductsRequest - A Consumer that will call methods on DescribeProductsRequest.Builder to create a request.InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeStandardsResponse describeStandards(DescribeStandardsRequest describeStandardsRequest) throws InternalException, InvalidInputException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of the available standards in Security Hub.
For each standard, the results include the standard ARN, the name, and a description.
describeStandardsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeStandardsResponse describeStandards(Consumer<DescribeStandardsRequest.Builder> describeStandardsRequest) throws InternalException, InvalidInputException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of the available standards in Security Hub.
For each standard, the results include the standard ARN, the name, and a description.
This is a convenience which creates an instance of the DescribeStandardsRequest.Builder avoiding the need
to create one manually via DescribeStandardsRequest.builder()
describeStandardsRequest - A Consumer that will call methods on DescribeStandardsRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeStandardsIterable describeStandardsPaginator(DescribeStandardsRequest describeStandardsRequest) throws InternalException, InvalidInputException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of the available standards in Security Hub.
For each standard, the results include the standard ARN, the name, and a description.
This is a variant of
describeStandards(software.amazon.awssdk.services.securityhub.model.DescribeStandardsRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsIterable responses = client.describeStandardsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsIterable responses = client
.describeStandardsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.DescribeStandardsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsIterable responses = client.describeStandardsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeStandards(software.amazon.awssdk.services.securityhub.model.DescribeStandardsRequest)
operation.
describeStandardsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeStandardsIterable describeStandardsPaginator(Consumer<DescribeStandardsRequest.Builder> describeStandardsRequest) throws InternalException, InvalidInputException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of the available standards in Security Hub.
For each standard, the results include the standard ARN, the name, and a description.
This is a variant of
describeStandards(software.amazon.awssdk.services.securityhub.model.DescribeStandardsRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsIterable responses = client.describeStandardsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsIterable responses = client
.describeStandardsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.DescribeStandardsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsIterable responses = client.describeStandardsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeStandards(software.amazon.awssdk.services.securityhub.model.DescribeStandardsRequest)
operation.
This is a convenience which creates an instance of the DescribeStandardsRequest.Builder avoiding the need
to create one manually via DescribeStandardsRequest.builder()
describeStandardsRequest - A Consumer that will call methods on DescribeStandardsRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeStandardsControlsResponse describeStandardsControls(DescribeStandardsControlsRequest describeStandardsControlsRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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.
describeStandardsControlsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeStandardsControlsResponse describeStandardsControls(Consumer<DescribeStandardsControlsRequest.Builder> describeStandardsControlsRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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.
This is a convenience which creates an instance of the DescribeStandardsControlsRequest.Builder avoiding
the need to create one manually via DescribeStandardsControlsRequest.builder()
describeStandardsControlsRequest - A Consumer that will call methods on DescribeStandardsControlsRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeStandardsControlsIterable describeStandardsControlsPaginator(DescribeStandardsControlsRequest describeStandardsControlsRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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.
This is a variant of
describeStandardsControls(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsControlsIterable responses = client.describeStandardsControlsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsControlsIterable responses = client
.describeStandardsControlsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsControlsIterable responses = client.describeStandardsControlsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeStandardsControls(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsRequest)
operation.
describeStandardsControlsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeStandardsControlsIterable describeStandardsControlsPaginator(Consumer<DescribeStandardsControlsRequest.Builder> describeStandardsControlsRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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.
This is a variant of
describeStandardsControls(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsControlsIterable responses = client.describeStandardsControlsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsControlsIterable responses = client
.describeStandardsControlsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsControlsIterable responses = client.describeStandardsControlsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeStandardsControls(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsRequest)
operation.
This is a convenience which creates an instance of the DescribeStandardsControlsRequest.Builder avoiding
the need to create one manually via DescribeStandardsControlsRequest.builder()
describeStandardsControlsRequest - A Consumer that will call methods on DescribeStandardsControlsRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisableImportFindingsForProductResponse disableImportFindingsForProduct(DisableImportFindingsForProductRequest disableImportFindingsForProductRequest) throws InternalException, InvalidInputException, ResourceNotFoundException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Disables the integration of the specified product with Security Hub. After the integration is disabled, findings from that product are no longer sent to Security Hub.
disableImportFindingsForProductRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisableImportFindingsForProductResponse disableImportFindingsForProduct(Consumer<DisableImportFindingsForProductRequest.Builder> disableImportFindingsForProductRequest) throws InternalException, InvalidInputException, ResourceNotFoundException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Disables the integration of the specified product with Security Hub. After the integration is disabled, findings from that product are no longer sent to Security Hub.
This is a convenience which creates an instance of the DisableImportFindingsForProductRequest.Builder
avoiding the need to create one manually via DisableImportFindingsForProductRequest.builder()
disableImportFindingsForProductRequest - A Consumer that will call methods on DisableImportFindingsForProductRequest.Builder to
create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisableOrganizationAdminAccountResponse disableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest disableOrganizationAdminAccountRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Disables a Security Hub administrator account. Can only be called by the organization management account.
disableOrganizationAdminAccountRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisableOrganizationAdminAccountResponse disableOrganizationAdminAccount(Consumer<DisableOrganizationAdminAccountRequest.Builder> disableOrganizationAdminAccountRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Disables a Security Hub administrator account. Can only be called by the organization management account.
This is a convenience which creates an instance of the DisableOrganizationAdminAccountRequest.Builder
avoiding the need to create one manually via DisableOrganizationAdminAccountRequest.builder()
disableOrganizationAdminAccountRequest - A Consumer that will call methods on DisableOrganizationAdminAccountRequest.Builder to
create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisableSecurityHubResponse disableSecurityHub() throws InternalException, LimitExceededException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Disables Security Hub in your account only in the current Region. To disable Security Hub in all Regions, you must submit one request per Region where you have enabled Security Hub.
When you disable Security Hub for an administrator account, it doesn't disable Security Hub for any associated member accounts.
When you disable Security Hub, your existing findings and insights and any Security Hub configuration settings are deleted after 90 days and cannot be recovered. Any standards that were enabled are disabled, and your administrator and member account associations are removed.
If you want to save your existing findings, you must export them before you disable Security Hub.
InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondisableSecurityHub(DisableSecurityHubRequest),
AWS API Documentationdefault DisableSecurityHubResponse disableSecurityHub(DisableSecurityHubRequest disableSecurityHubRequest) throws InternalException, LimitExceededException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Disables Security Hub in your account only in the current Region. To disable Security Hub in all Regions, you must submit one request per Region where you have enabled Security Hub.
When you disable Security Hub for an administrator account, it doesn't disable Security Hub for any associated member accounts.
When you disable Security Hub, your existing findings and insights and any Security Hub configuration settings are deleted after 90 days and cannot be recovered. Any standards that were enabled are disabled, and your administrator and member account associations are removed.
If you want to save your existing findings, you must export them before you disable Security Hub.
disableSecurityHubRequest - InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisableSecurityHubResponse disableSecurityHub(Consumer<DisableSecurityHubRequest.Builder> disableSecurityHubRequest) throws InternalException, LimitExceededException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Disables Security Hub in your account only in the current Region. To disable Security Hub in all Regions, you must submit one request per Region where you have enabled Security Hub.
When you disable Security Hub for an administrator account, it doesn't disable Security Hub for any associated member accounts.
When you disable Security Hub, your existing findings and insights and any Security Hub configuration settings are deleted after 90 days and cannot be recovered. Any standards that were enabled are disabled, and your administrator and member account associations are removed.
If you want to save your existing findings, you must export them before you disable Security Hub.
This is a convenience which creates an instance of the DisableSecurityHubRequest.Builder avoiding the
need to create one manually via DisableSecurityHubRequest.builder()
disableSecurityHubRequest - A Consumer that will call methods on DisableSecurityHubRequest.Builder to create a
request.InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisassociateFromAdministratorAccountResponse disassociateFromAdministratorAccount(DisassociateFromAdministratorAccountRequest disassociateFromAdministratorAccountRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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. For organization accounts, only the administrator account can disassociate a member account.
disassociateFromAdministratorAccountRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisassociateFromAdministratorAccountResponse disassociateFromAdministratorAccount(Consumer<DisassociateFromAdministratorAccountRequest.Builder> disassociateFromAdministratorAccountRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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. For organization accounts, only the administrator account can disassociate a member account.
This is a convenience which creates an instance of the
DisassociateFromAdministratorAccountRequest.Builder avoiding the need to create one manually via
DisassociateFromAdministratorAccountRequest.builder()
disassociateFromAdministratorAccountRequest - A Consumer that will call methods on DisassociateFromAdministratorAccountRequest.Builder
to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException@Deprecated default DisassociateFromMasterAccountResponse disassociateFromMasterAccount(DisassociateFromMasterAccountRequest disassociateFromMasterAccountRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
This method is deprecated. Instead, use DisassociateFromAdministratorAccount.
The Security Hub console continues to use DisassociateFromMasterAccount. It will eventually change
to use DisassociateFromAdministratorAccount. Any IAM policies that specifically control access to
this function must continue to use DisassociateFromMasterAccount. You should also add
DisassociateFromAdministratorAccount to your policies to ensure that the correct permissions are in
place after the console begins to use DisassociateFromAdministratorAccount.
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. For organization accounts, only the administrator account can disassociate a member account.
disassociateFromMasterAccountRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException@Deprecated default DisassociateFromMasterAccountResponse disassociateFromMasterAccount(Consumer<DisassociateFromMasterAccountRequest.Builder> disassociateFromMasterAccountRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
This method is deprecated. Instead, use DisassociateFromAdministratorAccount.
The Security Hub console continues to use DisassociateFromMasterAccount. It will eventually change
to use DisassociateFromAdministratorAccount. Any IAM policies that specifically control access to
this function must continue to use DisassociateFromMasterAccount. You should also add
DisassociateFromAdministratorAccount to your policies to ensure that the correct permissions are in
place after the console begins to use DisassociateFromAdministratorAccount.
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. For organization accounts, only the administrator account can disassociate a member account.
This is a convenience which creates an instance of the DisassociateFromMasterAccountRequest.Builder
avoiding the need to create one manually via DisassociateFromMasterAccountRequest.builder()
disassociateFromMasterAccountRequest - A Consumer that will call methods on DisassociateFromMasterAccountRequest.Builder to
create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisassociateMembersResponse disassociateMembers(DisassociateMembersRequest disassociateMembersRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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.
disassociateMembersRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisassociateMembersResponse disassociateMembers(Consumer<DisassociateMembersRequest.Builder> disassociateMembersRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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.
This is a convenience which creates an instance of the DisassociateMembersRequest.Builder avoiding the
need to create one manually via DisassociateMembersRequest.builder()
disassociateMembersRequest - A Consumer that will call methods on DisassociateMembersRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault EnableImportFindingsForProductResponse enableImportFindingsForProduct(EnableImportFindingsForProductRequest enableImportFindingsForProductRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceConflictException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Enables the integration of a partner product with Security Hub. Integrated products send findings to Security Hub.
When you enable a product integration, a permissions policy that grants permission for the product to send findings to Security Hub is applied.
enableImportFindingsForProductRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceConflictException - The resource specified in the request conflicts with an existing resource.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault EnableImportFindingsForProductResponse enableImportFindingsForProduct(Consumer<EnableImportFindingsForProductRequest.Builder> enableImportFindingsForProductRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceConflictException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Enables the integration of a partner product with Security Hub. Integrated products send findings to Security Hub.
When you enable a product integration, a permissions policy that grants permission for the product to send findings to Security Hub is applied.
This is a convenience which creates an instance of the EnableImportFindingsForProductRequest.Builder
avoiding the need to create one manually via EnableImportFindingsForProductRequest.builder()
enableImportFindingsForProductRequest - A Consumer that will call methods on EnableImportFindingsForProductRequest.Builder to
create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceConflictException - The resource specified in the request conflicts with an existing resource.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault EnableOrganizationAdminAccountResponse enableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest enableOrganizationAdminAccountRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Designates the Security Hub administrator account for an organization. Can only be called by the organization management account.
enableOrganizationAdminAccountRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault EnableOrganizationAdminAccountResponse enableOrganizationAdminAccount(Consumer<EnableOrganizationAdminAccountRequest.Builder> enableOrganizationAdminAccountRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Designates the Security Hub administrator account for an organization. Can only be called by the organization management account.
This is a convenience which creates an instance of the EnableOrganizationAdminAccountRequest.Builder
avoiding the need to create one manually via EnableOrganizationAdminAccountRequest.builder()
enableOrganizationAdminAccountRequest - A Consumer that will call methods on EnableOrganizationAdminAccountRequest.Builder to
create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault EnableSecurityHubResponse enableSecurityHub() throws InternalException, LimitExceededException, InvalidAccessException, ResourceConflictException, AccessDeniedException, AwsServiceException, SdkClientException, SecurityHubException
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 EnableSecurityHub operation to enable Security Hub, you also automatically enable
the following standards.
CIS Amazon Web Services Foundations
Amazon Web Services Foundational Security Best Practices
You do not enable the Payment Card Industry Data Security Standard (PCI DSS) standard.
To not enable the automatically enabled standards, set EnableDefaultStandards to false.
After you enable Security Hub, to enable a standard, use the BatchEnableStandards operation. To
disable a standard, use the BatchDisableStandards operation.
To learn more, see the setup information in the Security Hub User Guide.
InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceConflictException - The resource specified in the request conflicts with an existing resource.AccessDeniedException - You don't have permission to perform the action specified in the request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionenableSecurityHub(EnableSecurityHubRequest),
AWS
API Documentationdefault EnableSecurityHubResponse enableSecurityHub(EnableSecurityHubRequest enableSecurityHubRequest) throws InternalException, LimitExceededException, InvalidAccessException, ResourceConflictException, AccessDeniedException, AwsServiceException, SdkClientException, SecurityHubException
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 EnableSecurityHub operation to enable Security Hub, you also automatically enable
the following standards.
CIS Amazon Web Services Foundations
Amazon Web Services Foundational Security Best Practices
You do not enable the Payment Card Industry Data Security Standard (PCI DSS) standard.
To not enable the automatically enabled standards, set EnableDefaultStandards to false.
After you enable Security Hub, to enable a standard, use the BatchEnableStandards operation. To
disable a standard, use the BatchDisableStandards operation.
To learn more, see the setup information in the Security Hub User Guide.
enableSecurityHubRequest - InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceConflictException - The resource specified in the request conflicts with an existing resource.AccessDeniedException - You don't have permission to perform the action specified in the request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault EnableSecurityHubResponse enableSecurityHub(Consumer<EnableSecurityHubRequest.Builder> enableSecurityHubRequest) throws InternalException, LimitExceededException, InvalidAccessException, ResourceConflictException, AccessDeniedException, AwsServiceException, SdkClientException, SecurityHubException
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 EnableSecurityHub operation to enable Security Hub, you also automatically enable
the following standards.
CIS Amazon Web Services Foundations
Amazon Web Services Foundational Security Best Practices
You do not enable the Payment Card Industry Data Security Standard (PCI DSS) standard.
To not enable the automatically enabled standards, set EnableDefaultStandards to false.
After you enable Security Hub, to enable a standard, use the BatchEnableStandards operation. To
disable a standard, use the BatchDisableStandards operation.
To learn more, see the setup information in the Security Hub User Guide.
This is a convenience which creates an instance of the EnableSecurityHubRequest.Builder avoiding the need
to create one manually via EnableSecurityHubRequest.builder()
enableSecurityHubRequest - A Consumer that will call methods on EnableSecurityHubRequest.Builder to create a request.InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceConflictException - The resource specified in the request conflicts with an existing resource.AccessDeniedException - You don't have permission to perform the action specified in the request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetAdministratorAccountResponse getAdministratorAccount(GetAdministratorAccountRequest getAdministratorAccountRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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.
getAdministratorAccountRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetAdministratorAccountResponse getAdministratorAccount(Consumer<GetAdministratorAccountRequest.Builder> getAdministratorAccountRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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.
This is a convenience which creates an instance of the GetAdministratorAccountRequest.Builder avoiding
the need to create one manually via GetAdministratorAccountRequest.builder()
getAdministratorAccountRequest - A Consumer that will call methods on GetAdministratorAccountRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetEnabledStandardsResponse getEnabledStandards(GetEnabledStandardsRequest getEnabledStandardsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of the standards that are currently enabled.
getEnabledStandardsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetEnabledStandardsResponse getEnabledStandards(Consumer<GetEnabledStandardsRequest.Builder> getEnabledStandardsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of the standards that are currently enabled.
This is a convenience which creates an instance of the GetEnabledStandardsRequest.Builder avoiding the
need to create one manually via GetEnabledStandardsRequest.builder()
getEnabledStandardsRequest - A Consumer that will call methods on GetEnabledStandardsRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetEnabledStandardsIterable getEnabledStandardsPaginator(GetEnabledStandardsRequest getEnabledStandardsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of the standards that are currently enabled.
This is a variant of
getEnabledStandards(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.GetEnabledStandardsIterable responses = client.getEnabledStandardsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.GetEnabledStandardsIterable responses = client
.getEnabledStandardsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.GetEnabledStandardsIterable responses = client.getEnabledStandardsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getEnabledStandards(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsRequest)
operation.
getEnabledStandardsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetEnabledStandardsIterable getEnabledStandardsPaginator(Consumer<GetEnabledStandardsRequest.Builder> getEnabledStandardsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of the standards that are currently enabled.
This is a variant of
getEnabledStandards(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.GetEnabledStandardsIterable responses = client.getEnabledStandardsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.GetEnabledStandardsIterable responses = client
.getEnabledStandardsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.GetEnabledStandardsIterable responses = client.getEnabledStandardsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getEnabledStandards(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsRequest)
operation.
This is a convenience which creates an instance of the GetEnabledStandardsRequest.Builder avoiding the
need to create one manually via GetEnabledStandardsRequest.builder()
getEnabledStandardsRequest - A Consumer that will call methods on GetEnabledStandardsRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFindingAggregatorResponse getFindingAggregator(GetFindingAggregatorRequest getFindingAggregatorRequest) throws InternalException, LimitExceededException, InvalidAccessException, AccessDeniedException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Returns the current finding aggregation configuration.
getFindingAggregatorRequest - InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.AccessDeniedException - You don't have permission to perform the action specified in the request.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFindingAggregatorResponse getFindingAggregator(Consumer<GetFindingAggregatorRequest.Builder> getFindingAggregatorRequest) throws InternalException, LimitExceededException, InvalidAccessException, AccessDeniedException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Returns the current finding aggregation configuration.
This is a convenience which creates an instance of the GetFindingAggregatorRequest.Builder avoiding the
need to create one manually via GetFindingAggregatorRequest.builder()
getFindingAggregatorRequest - A Consumer that will call methods on GetFindingAggregatorRequest.Builder to create a
request.InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.AccessDeniedException - You don't have permission to perform the action specified in the request.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFindingsResponse getFindings() throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of findings that match the specified criteria.
If finding aggregation is enabled, then when you call GetFindings from the aggregation Region, the
results include all of the matching findings from both the aggregation Region and the linked Regions.
InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiongetFindings(GetFindingsRequest),
AWS API
Documentationdefault GetFindingsResponse getFindings(GetFindingsRequest getFindingsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of findings that match the specified criteria.
If finding aggregation is enabled, then when you call GetFindings from the aggregation Region, the
results include all of the matching findings from both the aggregation Region and the linked Regions.
getFindingsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFindingsResponse getFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of findings that match the specified criteria.
If finding aggregation is enabled, then when you call GetFindings from the aggregation Region, the
results include all of the matching findings from both the aggregation Region and the linked Regions.
This is a convenience which creates an instance of the GetFindingsRequest.Builder avoiding the need to
create one manually via GetFindingsRequest.builder()
getFindingsRequest - A Consumer that will call methods on GetFindingsRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFindingsIterable getFindingsPaginator() throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of findings that match the specified criteria.
If finding aggregation is enabled, then when you call GetFindings from the aggregation Region, the
results include all of the matching findings from both the aggregation Region and the linked Regions.
This is a variant of getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.GetFindingsIterable responses = client.getFindingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.GetFindingsIterable responses = client.getFindingsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.GetFindingsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.GetFindingsIterable responses = client.getFindingsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest) operation.
InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiongetFindingsPaginator(GetFindingsRequest),
AWS API
Documentationdefault GetFindingsIterable getFindingsPaginator(GetFindingsRequest getFindingsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of findings that match the specified criteria.
If finding aggregation is enabled, then when you call GetFindings from the aggregation Region, the
results include all of the matching findings from both the aggregation Region and the linked Regions.
This is a variant of getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.GetFindingsIterable responses = client.getFindingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.GetFindingsIterable responses = client.getFindingsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.GetFindingsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.GetFindingsIterable responses = client.getFindingsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest) operation.
getFindingsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFindingsIterable getFindingsPaginator(Consumer<GetFindingsRequest.Builder> getFindingsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of findings that match the specified criteria.
If finding aggregation is enabled, then when you call GetFindings from the aggregation Region, the
results include all of the matching findings from both the aggregation Region and the linked Regions.
This is a variant of getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.GetFindingsIterable responses = client.getFindingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.GetFindingsIterable responses = client.getFindingsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.GetFindingsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.GetFindingsIterable responses = client.getFindingsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest) operation.
This is a convenience which creates an instance of the GetFindingsRequest.Builder avoiding the need to
create one manually via GetFindingsRequest.builder()
getFindingsRequest - A Consumer that will call methods on GetFindingsRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetInsightResultsResponse getInsightResults(GetInsightResultsRequest getInsightResultsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists the results of the Security Hub insight specified by the insight ARN.
getInsightResultsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetInsightResultsResponse getInsightResults(Consumer<GetInsightResultsRequest.Builder> getInsightResultsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists the results of the Security Hub insight specified by the insight ARN.
This is a convenience which creates an instance of the GetInsightResultsRequest.Builder avoiding the need
to create one manually via GetInsightResultsRequest.builder()
getInsightResultsRequest - A Consumer that will call methods on GetInsightResultsRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetInsightsResponse getInsights(GetInsightsRequest getInsightsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes insights for the specified insight ARNs.
getInsightsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetInsightsResponse getInsights(Consumer<GetInsightsRequest.Builder> getInsightsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes insights for the specified insight ARNs.
This is a convenience which creates an instance of the GetInsightsRequest.Builder avoiding the need to
create one manually via GetInsightsRequest.builder()
getInsightsRequest - A Consumer that will call methods on GetInsightsRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetInsightsIterable getInsightsPaginator(GetInsightsRequest getInsightsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes insights for the specified insight ARNs.
This is a variant of getInsights(software.amazon.awssdk.services.securityhub.model.GetInsightsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.GetInsightsIterable responses = client.getInsightsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.GetInsightsIterable responses = client.getInsightsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.GetInsightsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.GetInsightsIterable responses = client.getInsightsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getInsights(software.amazon.awssdk.services.securityhub.model.GetInsightsRequest) operation.
getInsightsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetInsightsIterable getInsightsPaginator(Consumer<GetInsightsRequest.Builder> getInsightsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes insights for the specified insight ARNs.
This is a variant of getInsights(software.amazon.awssdk.services.securityhub.model.GetInsightsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.GetInsightsIterable responses = client.getInsightsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.GetInsightsIterable responses = client.getInsightsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.GetInsightsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.GetInsightsIterable responses = client.getInsightsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getInsights(software.amazon.awssdk.services.securityhub.model.GetInsightsRequest) operation.
This is a convenience which creates an instance of the GetInsightsRequest.Builder avoiding the need to
create one manually via GetInsightsRequest.builder()
getInsightsRequest - A Consumer that will call methods on GetInsightsRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetInvitationsCountResponse getInvitationsCount() throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns the count of all Security Hub membership invitations that were sent to the current member account, not including the currently accepted invitation.
InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiongetInvitationsCount(GetInvitationsCountRequest),
AWS API Documentationdefault GetInvitationsCountResponse getInvitationsCount(GetInvitationsCountRequest getInvitationsCountRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns the count of all Security Hub membership invitations that were sent to the current member account, not including the currently accepted invitation.
getInvitationsCountRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetInvitationsCountResponse getInvitationsCount(Consumer<GetInvitationsCountRequest.Builder> getInvitationsCountRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Returns the count of all Security Hub membership invitations that were sent to the current member account, not including the currently accepted invitation.
This is a convenience which creates an instance of the GetInvitationsCountRequest.Builder avoiding the
need to create one manually via GetInvitationsCountRequest.builder()
getInvitationsCountRequest - A Consumer that will call methods on GetInvitationsCountRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException@Deprecated default GetMasterAccountResponse getMasterAccount() throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
This method is deprecated. Instead, use GetAdministratorAccount.
The Security Hub console continues to use GetMasterAccount. It will eventually change to use
GetAdministratorAccount. Any IAM policies that specifically control access to this function must
continue to use GetMasterAccount. You should also add GetAdministratorAccount to your
policies to ensure that the correct permissions are in place after the console begins to use
GetAdministratorAccount.
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.
InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiongetMasterAccount(GetMasterAccountRequest),
AWS
API Documentation@Deprecated default GetMasterAccountResponse getMasterAccount(GetMasterAccountRequest getMasterAccountRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
This method is deprecated. Instead, use GetAdministratorAccount.
The Security Hub console continues to use GetMasterAccount. It will eventually change to use
GetAdministratorAccount. Any IAM policies that specifically control access to this function must
continue to use GetMasterAccount. You should also add GetAdministratorAccount to your
policies to ensure that the correct permissions are in place after the console begins to use
GetAdministratorAccount.
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.
getMasterAccountRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException@Deprecated default GetMasterAccountResponse getMasterAccount(Consumer<GetMasterAccountRequest.Builder> getMasterAccountRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
This method is deprecated. Instead, use GetAdministratorAccount.
The Security Hub console continues to use GetMasterAccount. It will eventually change to use
GetAdministratorAccount. Any IAM policies that specifically control access to this function must
continue to use GetMasterAccount. You should also add GetAdministratorAccount to your
policies to ensure that the correct permissions are in place after the console begins to use
GetAdministratorAccount.
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.
This is a convenience which creates an instance of the GetMasterAccountRequest.Builder avoiding the need
to create one manually via GetMasterAccountRequest.builder()
getMasterAccountRequest - A Consumer that will call methods on GetMasterAccountRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetMembersResponse getMembers(GetMembersRequest getMembersRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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.
getMembersRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetMembersResponse getMembers(Consumer<GetMembersRequest.Builder> getMembersRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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.
This is a convenience which creates an instance of the GetMembersRequest.Builder avoiding the need to
create one manually via GetMembersRequest.builder()
getMembersRequest - A Consumer that will call methods on GetMembersRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault InviteMembersResponse inviteMembers(InviteMembersRequest inviteMembersRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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. Organization accounts do not receive invitations.
Before you can use this action to invite a member, you must first use the CreateMembers action to
create the member account in Security Hub.
When the account owner enables Security Hub and accepts the invitation to become a member account, the administrator account can view the findings generated from the member account.
inviteMembersRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault InviteMembersResponse inviteMembers(Consumer<InviteMembersRequest.Builder> inviteMembersRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
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. Organization accounts do not receive invitations.
Before you can use this action to invite a member, you must first use the CreateMembers action to
create the member account in Security Hub.
When the account owner enables Security Hub and accepts the invitation to become a member account, the administrator account can view the findings generated from the member account.
This is a convenience which creates an instance of the InviteMembersRequest.Builder avoiding the need to
create one manually via InviteMembersRequest.builder()
inviteMembersRequest - A Consumer that will call methods on InviteMembersRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEnabledProductsForImportResponse listEnabledProductsForImport() throws InternalException, LimitExceededException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistEnabledProductsForImport(ListEnabledProductsForImportRequest),
AWS API Documentationdefault ListEnabledProductsForImportResponse listEnabledProductsForImport(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest) throws InternalException, LimitExceededException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
listEnabledProductsForImportRequest - InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEnabledProductsForImportResponse listEnabledProductsForImport(Consumer<ListEnabledProductsForImportRequest.Builder> listEnabledProductsForImportRequest) throws InternalException, LimitExceededException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
This is a convenience which creates an instance of the ListEnabledProductsForImportRequest.Builder
avoiding the need to create one manually via ListEnabledProductsForImportRequest.builder()
listEnabledProductsForImportRequest - A Consumer that will call methods on ListEnabledProductsForImportRequest.Builder to create
a request.InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEnabledProductsForImportIterable listEnabledProductsForImportPaginator() throws InternalException, LimitExceededException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
This is a variant of
listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportIterable responses = client.listEnabledProductsForImportPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportIterable responses = client
.listEnabledProductsForImportPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportIterable responses = client.listEnabledProductsForImportPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest)
operation.
InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistEnabledProductsForImportPaginator(ListEnabledProductsForImportRequest),
AWS API Documentationdefault ListEnabledProductsForImportIterable listEnabledProductsForImportPaginator(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest) throws InternalException, LimitExceededException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
This is a variant of
listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportIterable responses = client.listEnabledProductsForImportPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportIterable responses = client
.listEnabledProductsForImportPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportIterable responses = client.listEnabledProductsForImportPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest)
operation.
listEnabledProductsForImportRequest - InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEnabledProductsForImportIterable listEnabledProductsForImportPaginator(Consumer<ListEnabledProductsForImportRequest.Builder> listEnabledProductsForImportRequest) throws InternalException, LimitExceededException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
This is a variant of
listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportIterable responses = client.listEnabledProductsForImportPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportIterable responses = client
.listEnabledProductsForImportPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportIterable responses = client.listEnabledProductsForImportPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest)
operation.
This is a convenience which creates an instance of the ListEnabledProductsForImportRequest.Builder
avoiding the need to create one manually via ListEnabledProductsForImportRequest.builder()
listEnabledProductsForImportRequest - A Consumer that will call methods on ListEnabledProductsForImportRequest.Builder to create
a request.InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFindingAggregatorsResponse listFindingAggregators(ListFindingAggregatorsRequest listFindingAggregatorsRequest) throws InternalException, LimitExceededException, InvalidAccessException, AccessDeniedException, InvalidInputException, AwsServiceException, SdkClientException, SecurityHubException
If finding aggregation is enabled, then ListFindingAggregators returns the ARN of the finding
aggregator. You can run this operation from any Region.
listFindingAggregatorsRequest - InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.AccessDeniedException - You don't have permission to perform the action specified in the request.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFindingAggregatorsResponse listFindingAggregators(Consumer<ListFindingAggregatorsRequest.Builder> listFindingAggregatorsRequest) throws InternalException, LimitExceededException, InvalidAccessException, AccessDeniedException, InvalidInputException, AwsServiceException, SdkClientException, SecurityHubException
If finding aggregation is enabled, then ListFindingAggregators returns the ARN of the finding
aggregator. You can run this operation from any Region.
This is a convenience which creates an instance of the ListFindingAggregatorsRequest.Builder avoiding the
need to create one manually via ListFindingAggregatorsRequest.builder()
listFindingAggregatorsRequest - A Consumer that will call methods on ListFindingAggregatorsRequest.Builder to create a
request.InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.AccessDeniedException - You don't have permission to perform the action specified in the request.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFindingAggregatorsIterable listFindingAggregatorsPaginator(ListFindingAggregatorsRequest listFindingAggregatorsRequest) throws InternalException, LimitExceededException, InvalidAccessException, AccessDeniedException, InvalidInputException, AwsServiceException, SdkClientException, SecurityHubException
If finding aggregation is enabled, then ListFindingAggregators returns the ARN of the finding
aggregator. You can run this operation from any Region.
This is a variant of
listFindingAggregators(software.amazon.awssdk.services.securityhub.model.ListFindingAggregatorsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.ListFindingAggregatorsIterable responses = client.listFindingAggregatorsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.ListFindingAggregatorsIterable responses = client
.listFindingAggregatorsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.ListFindingAggregatorsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.ListFindingAggregatorsIterable responses = client.listFindingAggregatorsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFindingAggregators(software.amazon.awssdk.services.securityhub.model.ListFindingAggregatorsRequest)
operation.
listFindingAggregatorsRequest - InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.AccessDeniedException - You don't have permission to perform the action specified in the request.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFindingAggregatorsIterable listFindingAggregatorsPaginator(Consumer<ListFindingAggregatorsRequest.Builder> listFindingAggregatorsRequest) throws InternalException, LimitExceededException, InvalidAccessException, AccessDeniedException, InvalidInputException, AwsServiceException, SdkClientException, SecurityHubException
If finding aggregation is enabled, then ListFindingAggregators returns the ARN of the finding
aggregator. You can run this operation from any Region.
This is a variant of
listFindingAggregators(software.amazon.awssdk.services.securityhub.model.ListFindingAggregatorsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.ListFindingAggregatorsIterable responses = client.listFindingAggregatorsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.ListFindingAggregatorsIterable responses = client
.listFindingAggregatorsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.ListFindingAggregatorsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.ListFindingAggregatorsIterable responses = client.listFindingAggregatorsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFindingAggregators(software.amazon.awssdk.services.securityhub.model.ListFindingAggregatorsRequest)
operation.
This is a convenience which creates an instance of the ListFindingAggregatorsRequest.Builder avoiding the
need to create one manually via ListFindingAggregatorsRequest.builder()
listFindingAggregatorsRequest - A Consumer that will call methods on ListFindingAggregatorsRequest.Builder to create a
request.InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.AccessDeniedException - You don't have permission to perform the action specified in the request.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListInvitationsResponse listInvitations() throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
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. Accounts that are managed using the integration with Organizations do not receive invitations.
InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistInvitations(ListInvitationsRequest),
AWS
API Documentationdefault ListInvitationsResponse listInvitations(ListInvitationsRequest listInvitationsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
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. Accounts that are managed using the integration with Organizations do not receive invitations.
listInvitationsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListInvitationsResponse listInvitations(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
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. Accounts that are managed using the integration with Organizations do not receive invitations.
This is a convenience which creates an instance of the ListInvitationsRequest.Builder avoiding the need
to create one manually via ListInvitationsRequest.builder()
listInvitationsRequest - A Consumer that will call methods on ListInvitationsRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListInvitationsIterable listInvitationsPaginator() throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
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. Accounts that are managed using the integration with Organizations do not receive invitations.
This is a variant of
listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsIterable responses = client
.listInvitationsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest) operation.
InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistInvitationsPaginator(ListInvitationsRequest),
AWS
API Documentationdefault ListInvitationsIterable listInvitationsPaginator(ListInvitationsRequest listInvitationsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
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. Accounts that are managed using the integration with Organizations do not receive invitations.
This is a variant of
listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsIterable responses = client
.listInvitationsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest) operation.
listInvitationsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListInvitationsIterable listInvitationsPaginator(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
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. Accounts that are managed using the integration with Organizations do not receive invitations.
This is a variant of
listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsIterable responses = client
.listInvitationsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest) operation.
This is a convenience which creates an instance of the ListInvitationsRequest.Builder avoiding the need
to create one manually via ListInvitationsRequest.builder()
listInvitationsRequest - A Consumer that will call methods on ListInvitationsRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListMembersResponse listMembers() throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
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.
InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistMembers(ListMembersRequest),
AWS API
Documentationdefault ListMembersResponse listMembers(ListMembersRequest listMembersRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
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.
listMembersRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListMembersResponse listMembers(Consumer<ListMembersRequest.Builder> listMembersRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
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.
This is a convenience which creates an instance of the ListMembersRequest.Builder avoiding the need to
create one manually via ListMembersRequest.builder()
listMembersRequest - A Consumer that will call methods on ListMembersRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListMembersIterable listMembersPaginator() throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
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.
This is a variant of listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.ListMembersResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest) operation.
InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistMembersPaginator(ListMembersRequest),
AWS API
Documentationdefault ListMembersIterable listMembersPaginator(ListMembersRequest listMembersRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
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.
This is a variant of listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.ListMembersResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest) operation.
listMembersRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListMembersIterable listMembersPaginator(Consumer<ListMembersRequest.Builder> listMembersRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
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.
This is a variant of listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.ListMembersResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest) operation.
This is a convenience which creates an instance of the ListMembersRequest.Builder avoiding the need to
create one manually via ListMembersRequest.builder()
listMembersRequest - A Consumer that will call methods on ListMembersRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListOrganizationAdminAccountsResponse listOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists the Security Hub administrator accounts. Can only be called by the organization management account.
listOrganizationAdminAccountsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListOrganizationAdminAccountsResponse listOrganizationAdminAccounts(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists the Security Hub administrator accounts. Can only be called by the organization management account.
This is a convenience which creates an instance of the ListOrganizationAdminAccountsRequest.Builder
avoiding the need to create one manually via ListOrganizationAdminAccountsRequest.builder()
listOrganizationAdminAccountsRequest - A Consumer that will call methods on ListOrganizationAdminAccountsRequest.Builder to
create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListOrganizationAdminAccountsIterable listOrganizationAdminAccountsPaginator(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists the Security Hub administrator accounts. Can only be called by the organization management account.
This is a variant of
listOrganizationAdminAccounts(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.ListOrganizationAdminAccountsIterable responses = client.listOrganizationAdminAccountsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.ListOrganizationAdminAccountsIterable responses = client
.listOrganizationAdminAccountsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.ListOrganizationAdminAccountsIterable responses = client.listOrganizationAdminAccountsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationAdminAccounts(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsRequest)
operation.
listOrganizationAdminAccountsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListOrganizationAdminAccountsIterable listOrganizationAdminAccountsPaginator(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists the Security Hub administrator accounts. Can only be called by the organization management account.
This is a variant of
listOrganizationAdminAccounts(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.securityhub.paginators.ListOrganizationAdminAccountsIterable responses = client.listOrganizationAdminAccountsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.securityhub.paginators.ListOrganizationAdminAccountsIterable responses = client
.listOrganizationAdminAccountsPaginator(request);
for (software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.securityhub.paginators.ListOrganizationAdminAccountsIterable responses = client.listOrganizationAdminAccountsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationAdminAccounts(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsRequest)
operation.
This is a convenience which creates an instance of the ListOrganizationAdminAccountsRequest.Builder
avoiding the need to create one manually via ListOrganizationAdminAccountsRequest.builder()
listOrganizationAdminAccountsRequest - A Consumer that will call methods on ListOrganizationAdminAccountsRequest.Builder to
create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of tags associated with a resource.
listTagsForResourceRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InternalException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Returns a list of tags associated with a resource.
This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Adds one or more tags to a resource.
tagResourceRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InternalException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Adds one or more tags to a resource.
This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Removes one or more tags from a resource.
untagResourceRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InternalException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Removes one or more tags from a resource.
This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateActionTargetResponse updateActionTarget(UpdateActionTargetRequest updateActionTargetRequest) throws InternalException, InvalidInputException, ResourceNotFoundException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Updates the name and description of a custom action target in Security Hub.
updateActionTargetRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateActionTargetResponse updateActionTarget(Consumer<UpdateActionTargetRequest.Builder> updateActionTargetRequest) throws InternalException, InvalidInputException, ResourceNotFoundException, InvalidAccessException, AwsServiceException, SdkClientException, SecurityHubException
Updates the name and description of a custom action target in Security Hub.
This is a convenience which creates an instance of the UpdateActionTargetRequest.Builder avoiding the
need to create one manually via UpdateActionTargetRequest.builder()
updateActionTargetRequest - A Consumer that will call methods on UpdateActionTargetRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateFindingAggregatorResponse updateFindingAggregator(UpdateFindingAggregatorRequest updateFindingAggregatorRequest) throws InternalException, LimitExceededException, InvalidAccessException, AccessDeniedException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Updates the finding aggregation configuration. Used to update the Region linking mode and the list of included or
excluded Regions. You cannot use UpdateFindingAggregator to change the aggregation Region.
You must run UpdateFindingAggregator from the current aggregation Region.
updateFindingAggregatorRequest - InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.AccessDeniedException - You don't have permission to perform the action specified in the request.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateFindingAggregatorResponse updateFindingAggregator(Consumer<UpdateFindingAggregatorRequest.Builder> updateFindingAggregatorRequest) throws InternalException, LimitExceededException, InvalidAccessException, AccessDeniedException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Updates the finding aggregation configuration. Used to update the Region linking mode and the list of included or
excluded Regions. You cannot use UpdateFindingAggregator to change the aggregation Region.
You must run UpdateFindingAggregator from the current aggregation Region.
This is a convenience which creates an instance of the UpdateFindingAggregatorRequest.Builder avoiding
the need to create one manually via UpdateFindingAggregatorRequest.builder()
updateFindingAggregatorRequest - A Consumer that will call methods on UpdateFindingAggregatorRequest.Builder to create a
request.InternalException - Internal server error.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.AccessDeniedException - You don't have permission to perform the action specified in the request.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateFindingsResponse updateFindings(UpdateFindingsRequest updateFindingsRequest) throws InternalException, InvalidInputException, LimitExceededException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
UpdateFindings is deprecated. Instead of UpdateFindings, use
BatchUpdateFindings.
Updates the Note and RecordState of the Security Hub-aggregated findings that the
filter attributes specify. Any member account that can view the finding also sees the update to the finding.
updateFindingsRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateFindingsResponse updateFindings(Consumer<UpdateFindingsRequest.Builder> updateFindingsRequest) throws InternalException, InvalidInputException, LimitExceededException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
UpdateFindings is deprecated. Instead of UpdateFindings, use
BatchUpdateFindings.
Updates the Note and RecordState of the Security Hub-aggregated findings that the
filter attributes specify. Any member account that can view the finding also sees the update to the finding.
This is a convenience which creates an instance of the UpdateFindingsRequest.Builder avoiding the need to
create one manually via UpdateFindingsRequest.builder()
updateFindingsRequest - A Consumer that will call methods on UpdateFindingsRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateInsightResponse updateInsight(UpdateInsightRequest updateInsightRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Updates the Security Hub insight identified by the specified insight ARN.
updateInsightRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateInsightResponse updateInsight(Consumer<UpdateInsightRequest.Builder> updateInsightRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Updates the Security Hub insight identified by the specified insight ARN.
This is a convenience which creates an instance of the UpdateInsightRequest.Builder avoiding the need to
create one manually via UpdateInsightRequest.builder()
updateInsightRequest - A Consumer that will call methods on UpdateInsightRequest.Builder to create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateOrganizationConfigurationResponse updateOrganizationConfiguration(UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Used to update the configuration related to Organizations. Can only be called from a Security Hub administrator account.
updateOrganizationConfigurationRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateOrganizationConfigurationResponse updateOrganizationConfiguration(Consumer<UpdateOrganizationConfigurationRequest.Builder> updateOrganizationConfigurationRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Used to update the configuration related to Organizations. Can only be called from a Security Hub administrator account.
This is a convenience which creates an instance of the UpdateOrganizationConfigurationRequest.Builder
avoiding the need to create one manually via UpdateOrganizationConfigurationRequest.builder()
updateOrganizationConfigurationRequest - A Consumer that will call methods on UpdateOrganizationConfigurationRequest.Builder to
create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateSecurityHubConfigurationResponse updateSecurityHubConfiguration(UpdateSecurityHubConfigurationRequest updateSecurityHubConfigurationRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Updates configuration options for Security Hub.
updateSecurityHubConfigurationRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateSecurityHubConfigurationResponse updateSecurityHubConfiguration(Consumer<UpdateSecurityHubConfigurationRequest.Builder> updateSecurityHubConfigurationRequest) throws InternalException, InvalidInputException, InvalidAccessException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Updates configuration options for Security Hub.
This is a convenience which creates an instance of the UpdateSecurityHubConfigurationRequest.Builder
avoiding the need to create one manually via UpdateSecurityHubConfigurationRequest.builder()
updateSecurityHubConfigurationRequest - A Consumer that will call methods on UpdateSecurityHubConfigurationRequest.Builder to
create a request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services
account or throttling limits. The error code describes the limit exceeded.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateStandardsControlResponse updateStandardsControl(UpdateStandardsControlRequest updateStandardsControlRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Used to control whether an individual security standard control is enabled or disabled.
updateStandardsControlRequest - InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateStandardsControlResponse updateStandardsControl(Consumer<UpdateStandardsControlRequest.Builder> updateStandardsControlRequest) throws InternalException, InvalidInputException, InvalidAccessException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Used to control whether an individual security standard control is enabled or disabled.
This is a convenience which creates an instance of the UpdateStandardsControlRequest.Builder avoiding the
need to create one manually via UpdateStandardsControlRequest.builder()
updateStandardsControlRequest - A Consumer that will call methods on UpdateStandardsControlRequest.Builder to create a
request.InternalException - Internal server error.InvalidInputException - The request was rejected because you supplied an invalid or out-of-range value for an input parameter.InvalidAccessException - There is an issue with the account used to make the request. Either Security Hub is not enabled for the
account, or the account does not have permission to perform this action.ResourceNotFoundException - The request was rejected because we can't find the specified resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SecurityHubException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
Copyright © 2022. All rights reserved.