@Generated(value="software.amazon.awssdk:codegen") public interface SecurityHubClient extends SdkClient
builder()
method.
AWS Security Hub provides you with a comprehensive view of your security state within AWS and your compliance with the security industry standards and best practices. Security Hub collects security data from across AWS accounts, services, and supported third-party partners and helps you analyze your security trends and identify the highest priority security issues. For more information, see AWS Security Hub User Guide.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
default AcceptInvitationResponse |
acceptInvitation(AcceptInvitationRequest acceptInvitationRequest)
Accepts the invitation to be monitored by a master SecurityHub account.
|
default AcceptInvitationResponse |
acceptInvitation(Consumer<AcceptInvitationRequest.Builder> acceptInvitationRequest)
Accepts the invitation to be monitored by a master SecurityHub account.
|
default BatchDisableStandardsResponse |
batchDisableStandards(BatchDisableStandardsRequest batchDisableStandardsRequest)
Disables the standards specified by the standards subscription ARNs.
|
default BatchDisableStandardsResponse |
batchDisableStandards(Consumer<BatchDisableStandardsRequest.Builder> batchDisableStandardsRequest)
Disables the standards specified by the standards subscription ARNs.
|
default BatchEnableStandardsResponse |
batchEnableStandards(BatchEnableStandardsRequest batchEnableStandardsRequest)
Enables the standards specified by the standards ARNs.
|
default BatchEnableStandardsResponse |
batchEnableStandards(Consumer<BatchEnableStandardsRequest.Builder> batchEnableStandardsRequest)
Enables the standards specified by the standards ARNs.
|
default BatchImportFindingsResponse |
batchImportFindings(BatchImportFindingsRequest batchImportFindingsRequest)
Imports security findings that are generated by the integrated third-party products into Security Hub.
|
default BatchImportFindingsResponse |
batchImportFindings(Consumer<BatchImportFindingsRequest.Builder> batchImportFindingsRequest)
Imports security findings that are generated by the integrated third-party products into Security Hub.
|
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 CreateInsightResponse |
createInsight(Consumer<CreateInsightRequest.Builder> createInsightRequest)
Creates an insight, which is a consolidation of findings that identifies a security area that requires attention
or intervention.
|
default CreateInsightResponse |
createInsight(CreateInsightRequest createInsightRequest)
Creates an insight, which is a consolidation of findings that identifies a security area that requires attention
or intervention.
|
default CreateMembersResponse |
createMembers(Consumer<CreateMembersRequest.Builder> createMembersRequest)
Creates member Security Hub accounts in the current AWS account (which becomes the master Security Hub account)
that has Security Hub enabled.
|
default CreateMembersResponse |
createMembers(CreateMembersRequest createMembersRequest)
Creates member Security Hub accounts in the current AWS account (which becomes the master Security Hub account)
that has Security Hub enabled.
|
default DeclineInvitationsResponse |
declineInvitations(Consumer<DeclineInvitationsRequest.Builder> declineInvitationsRequest)
Declines invitations that are sent to this AWS account (invitee) by the AWS accounts (inviters) that are
specified by the account IDs.
|
default DeclineInvitationsResponse |
declineInvitations(DeclineInvitationsRequest declineInvitationsRequest)
Declines invitations that are sent to this AWS account (invitee) by the AWS accounts (inviters) that are
specified by the account IDs.
|
default DeleteInsightResponse |
deleteInsight(Consumer<DeleteInsightRequest.Builder> deleteInsightRequest)
Deletes an insight that is specified by the insight ARN.
|
default DeleteInsightResponse |
deleteInsight(DeleteInsightRequest deleteInsightRequest)
Deletes an insight that is specified by the insight ARN.
|
default DeleteInvitationsResponse |
deleteInvitations(Consumer<DeleteInvitationsRequest.Builder> deleteInvitationsRequest)
Deletes invitations that are sent to this AWS account (invitee) by the AWS accounts (inviters) that are specified
by their account IDs.
|
default DeleteInvitationsResponse |
deleteInvitations(DeleteInvitationsRequest deleteInvitationsRequest)
Deletes invitations that are sent to this AWS account (invitee) by the AWS accounts (inviters) that are specified
by their account IDs.
|
default DeleteMembersResponse |
deleteMembers(Consumer<DeleteMembersRequest.Builder> deleteMembersRequest)
Deletes the Security Hub member accounts that are specified by the account IDs.
|
default DeleteMembersResponse |
deleteMembers(DeleteMembersRequest deleteMembersRequest)
Deletes the Security Hub member accounts that are specified by the account IDs.
|
default DisableImportFindingsForProductResponse |
disableImportFindingsForProduct(Consumer<DisableImportFindingsForProductRequest.Builder> disableImportFindingsForProductRequest)
Stops you from being able to import findings generated by integrated third-party providers into Security Hub.
|
default DisableImportFindingsForProductResponse |
disableImportFindingsForProduct(DisableImportFindingsForProductRequest disableImportFindingsForProductRequest)
Stops you from being able to import findings generated by integrated third-party providers into Security Hub.
|
default DisableSecurityHubResponse |
disableSecurityHub(Consumer<DisableSecurityHubRequest.Builder> disableSecurityHubRequest)
Disables the AWS Security Hub Service.
|
default DisableSecurityHubResponse |
disableSecurityHub(DisableSecurityHubRequest disableSecurityHubRequest)
Disables the AWS Security Hub Service.
|
default DisassociateFromMasterAccountResponse |
disassociateFromMasterAccount(Consumer<DisassociateFromMasterAccountRequest.Builder> disassociateFromMasterAccountRequest)
Disassociates the current Security Hub member account from its master account.
|
default DisassociateFromMasterAccountResponse |
disassociateFromMasterAccount(DisassociateFromMasterAccountRequest disassociateFromMasterAccountRequest)
Disassociates the current Security Hub member account from its master account.
|
default DisassociateMembersResponse |
disassociateMembers(Consumer<DisassociateMembersRequest.Builder> disassociateMembersRequest)
Disassociates the Security Hub member accounts that are specified by the account IDs from their master account.
|
default DisassociateMembersResponse |
disassociateMembers(DisassociateMembersRequest disassociateMembersRequest)
Disassociates the Security Hub member accounts that are specified by the account IDs from their master account.
|
default EnableImportFindingsForProductResponse |
enableImportFindingsForProduct(Consumer<EnableImportFindingsForProductRequest.Builder> enableImportFindingsForProductRequest)
Enables you to import findings generated by integrated third-party providers into Security Hub.
|
default EnableImportFindingsForProductResponse |
enableImportFindingsForProduct(EnableImportFindingsForProductRequest enableImportFindingsForProductRequest)
Enables you to import findings generated by integrated third-party providers into Security Hub.
|
default EnableSecurityHubResponse |
enableSecurityHub(Consumer<EnableSecurityHubRequest.Builder> enableSecurityHubRequest)
Enables the AWS Security Hub service.
|
default EnableSecurityHubResponse |
enableSecurityHub(EnableSecurityHubRequest enableSecurityHubRequest)
Enables the AWS Security Hub service.
|
default GetEnabledStandardsResponse |
getEnabledStandards(Consumer<GetEnabledStandardsRequest.Builder> getEnabledStandardsRequest)
Lists and describes enabled standards.
|
default GetEnabledStandardsResponse |
getEnabledStandards(GetEnabledStandardsRequest getEnabledStandardsRequest)
Lists and describes enabled standards.
|
default GetFindingsResponse |
getFindings()
Lists and describes Security Hub-aggregated findings that are specified by filter attributes.
|
default GetFindingsResponse |
getFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest)
Lists and describes Security Hub-aggregated findings that are specified by filter attributes.
|
default GetFindingsResponse |
getFindings(GetFindingsRequest getFindingsRequest)
Lists and describes Security Hub-aggregated findings that are specified by filter attributes.
|
default GetFindingsIterable |
getFindingsPaginator()
Lists and describes Security Hub-aggregated findings that are specified by filter attributes.
|
default GetFindingsIterable |
getFindingsPaginator(Consumer<GetFindingsRequest.Builder> getFindingsRequest)
Lists and describes Security Hub-aggregated findings that are specified by filter attributes.
|
default GetFindingsIterable |
getFindingsPaginator(GetFindingsRequest getFindingsRequest)
Lists and describes Security Hub-aggregated findings that are specified by filter attributes.
|
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 that are specified by insight ARNs.
|
default GetInsightsResponse |
getInsights(GetInsightsRequest getInsightsRequest)
Lists and describes insights that are specified by insight ARNs.
|
default GetInsightsIterable |
getInsightsPaginator(Consumer<GetInsightsRequest.Builder> getInsightsRequest)
Lists and describes insights that are specified by insight ARNs.
|
default GetInsightsIterable |
getInsightsPaginator(GetInsightsRequest getInsightsRequest)
Lists and describes insights that are specified by 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()
Provides the details for the Security Hub master account to the current member account.
|
default GetMasterAccountResponse |
getMasterAccount(Consumer<GetMasterAccountRequest.Builder> getMasterAccountRequest)
Provides the details for the Security Hub master account to the current member account.
|
default GetMasterAccountResponse |
getMasterAccount(GetMasterAccountRequest getMasterAccountRequest)
Provides the details for the Security Hub master account to the current member account.
|
default GetMembersResponse |
getMembers(Consumer<GetMembersRequest.Builder> getMembersRequest)
Returns the details on the Security Hub member accounts that are specified by the account IDs.
|
default GetMembersResponse |
getMembers(GetMembersRequest getMembersRequest)
Returns the details on the Security Hub member accounts that are specified by the account IDs.
|
default InviteMembersResponse |
inviteMembers(Consumer<InviteMembersRequest.Builder> inviteMembersRequest)
Invites other AWS accounts to enable Security Hub and become Security Hub member accounts.
|
default InviteMembersResponse |
inviteMembers(InviteMembersRequest inviteMembersRequest)
Invites other AWS accounts to enable Security Hub and become Security Hub member accounts.
|
default ListEnabledProductsForImportResponse |
listEnabledProductsForImport()
Lists all Security Hub-integrated third-party findings providers.
|
default ListEnabledProductsForImportResponse |
listEnabledProductsForImport(Consumer<ListEnabledProductsForImportRequest.Builder> listEnabledProductsForImportRequest)
Lists all Security Hub-integrated third-party findings providers.
|
default ListEnabledProductsForImportResponse |
listEnabledProductsForImport(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest)
Lists all Security Hub-integrated third-party findings providers.
|
default ListEnabledProductsForImportIterable |
listEnabledProductsForImportPaginator()
Lists all Security Hub-integrated third-party findings providers.
|
default ListEnabledProductsForImportIterable |
listEnabledProductsForImportPaginator(Consumer<ListEnabledProductsForImportRequest.Builder> listEnabledProductsForImportRequest)
Lists all Security Hub-integrated third-party findings providers.
|
default ListEnabledProductsForImportIterable |
listEnabledProductsForImportPaginator(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest)
Lists all Security Hub-integrated third-party findings providers.
|
default ListInvitationsResponse |
listInvitations()
Lists all Security Hub membership invitations that were sent to the current AWS account.
|
default ListInvitationsResponse |
listInvitations(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest)
Lists all Security Hub membership invitations that were sent to the current AWS account.
|
default ListInvitationsResponse |
listInvitations(ListInvitationsRequest listInvitationsRequest)
Lists all Security Hub membership invitations that were sent to the current AWS account.
|
default ListMembersResponse |
listMembers()
Lists details about all member accounts for the current Security Hub master account.
|
default ListMembersResponse |
listMembers(Consumer<ListMembersRequest.Builder> listMembersRequest)
Lists details about all member accounts for the current Security Hub master account.
|
default ListMembersResponse |
listMembers(ListMembersRequest listMembersRequest)
Lists details about all member accounts for the current Security Hub master account.
|
static ServiceMetadata |
serviceMetadata() |
default UpdateFindingsResponse |
updateFindings(Consumer<UpdateFindingsRequest.Builder> updateFindingsRequest)
Updates the AWS Security Hub-aggregated findings specified by the filter attributes.
|
default UpdateFindingsResponse |
updateFindings(UpdateFindingsRequest updateFindingsRequest)
Updates the AWS Security Hub-aggregated findings specified by the filter attributes.
|
default UpdateInsightResponse |
updateInsight(Consumer<UpdateInsightRequest.Builder> updateInsightRequest)
Updates the AWS Security Hub insight specified by the insight ARN.
|
default UpdateInsightResponse |
updateInsight(UpdateInsightRequest updateInsightRequest)
Updates the AWS Security Hub insight specified by the insight ARN.
|
serviceName
close
static final String SERVICE_NAME
static SecurityHubClient create()
SecurityHubClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static SecurityHubClientBuilder builder()
SecurityHubClient
.default AcceptInvitationResponse acceptInvitation(AcceptInvitationRequest acceptInvitationRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Accepts the invitation to be monitored by a master SecurityHub account.
acceptInvitationRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default AcceptInvitationResponse acceptInvitation(Consumer<AcceptInvitationRequest.Builder> acceptInvitationRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Accepts the invitation to be monitored by a master SecurityHub 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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default BatchDisableStandardsResponse batchDisableStandards(BatchDisableStandardsRequest batchDisableStandardsRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Disables the standards specified by the standards subscription ARNs. In the context of Security Hub, supported standards (for example, CIS AWS Foundations) are automated and continuous checks that help determine your compliance status against security industry (including AWS) best practices.
batchDisableStandardsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default BatchDisableStandardsResponse batchDisableStandards(Consumer<BatchDisableStandardsRequest.Builder> batchDisableStandardsRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Disables the standards specified by the standards subscription ARNs. In the context of Security Hub, supported standards (for example, CIS AWS Foundations) are automated and continuous checks that help determine your compliance status against security industry (including AWS) best practices.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default BatchEnableStandardsResponse batchEnableStandards(BatchEnableStandardsRequest batchEnableStandardsRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Enables the standards specified by the standards ARNs. In the context of Security Hub, supported standards (for example, CIS AWS Foundations) are automated and continuous checks that help determine your compliance status against security industry (including AWS) best practices.
batchEnableStandardsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default BatchEnableStandardsResponse batchEnableStandards(Consumer<BatchEnableStandardsRequest.Builder> batchEnableStandardsRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Enables the standards specified by the standards ARNs. In the context of Security Hub, supported standards (for example, CIS AWS Foundations) are automated and continuous checks that help determine your compliance status against security industry (including AWS) best practices.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default BatchImportFindingsResponse batchImportFindings(BatchImportFindingsRequest batchImportFindingsRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Imports security findings that are generated by the integrated third-party products into Security Hub.
batchImportFindingsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default BatchImportFindingsResponse batchImportFindings(Consumer<BatchImportFindingsRequest.Builder> batchImportFindingsRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Imports security findings that are generated by the integrated third-party products into Security Hub.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default CreateInsightResponse createInsight(CreateInsightRequest createInsightRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Creates an insight, which is a consolidation of findings that identifies a security area that requires attention or intervention.
createInsightRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default CreateInsightResponse createInsight(Consumer<CreateInsightRequest.Builder> createInsightRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Creates an insight, which is a consolidation of findings that identifies a security area that requires attention or intervention.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default CreateMembersResponse createMembers(CreateMembersRequest createMembersRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Creates member Security Hub accounts in the current AWS account (which becomes the master Security Hub account) that has Security Hub enabled.
createMembersRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default CreateMembersResponse createMembers(Consumer<CreateMembersRequest.Builder> createMembersRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Creates member Security Hub accounts in the current AWS account (which becomes the master Security Hub account) that has Security Hub enabled.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default DeclineInvitationsResponse declineInvitations(DeclineInvitationsRequest declineInvitationsRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Declines invitations that are sent to this AWS account (invitee) by the AWS accounts (inviters) that are specified by the account IDs.
declineInvitationsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default DeclineInvitationsResponse declineInvitations(Consumer<DeclineInvitationsRequest.Builder> declineInvitationsRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Declines invitations that are sent to this AWS account (invitee) by the AWS accounts (inviters) that are specified by the account IDs.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default DeleteInsightResponse deleteInsight(DeleteInsightRequest deleteInsightRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Deletes an insight that is specified by the insight ARN.
deleteInsightRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default DeleteInsightResponse deleteInsight(Consumer<DeleteInsightRequest.Builder> deleteInsightRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Deletes an insight that is specified by the insight ARN.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default DeleteInvitationsResponse deleteInvitations(DeleteInvitationsRequest deleteInvitationsRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Deletes invitations that are sent to this AWS account (invitee) by the AWS accounts (inviters) that are specified by their account IDs.
deleteInvitationsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default DeleteInvitationsResponse deleteInvitations(Consumer<DeleteInvitationsRequest.Builder> deleteInvitationsRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Deletes invitations that are sent to this AWS account (invitee) by the AWS accounts (inviters) that are specified by their account IDs.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default DeleteMembersResponse deleteMembers(DeleteMembersRequest deleteMembersRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Deletes the Security Hub member accounts that are specified by the account IDs.
deleteMembersRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default DeleteMembersResponse deleteMembers(Consumer<DeleteMembersRequest.Builder> deleteMembersRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Deletes the Security Hub member accounts that are specified by the account IDs.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default DisableImportFindingsForProductResponse disableImportFindingsForProduct(DisableImportFindingsForProductRequest disableImportFindingsForProductRequest) throws InternalException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Stops you from being able to import findings generated by integrated third-party providers into Security Hub.
disableImportFindingsForProductRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default DisableImportFindingsForProductResponse disableImportFindingsForProduct(Consumer<DisableImportFindingsForProductRequest.Builder> disableImportFindingsForProductRequest) throws InternalException, InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Stops you from being able to import findings generated by integrated third-party providers into 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 an invalid or out-of-range value was supplied for an input parameter.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default DisableSecurityHubResponse disableSecurityHub(DisableSecurityHubRequest disableSecurityHubRequest) throws InternalException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Disables the AWS Security Hub Service.
disableSecurityHubRequest
- InternalException
- Internal server error.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default DisableSecurityHubResponse disableSecurityHub(Consumer<DisableSecurityHubRequest.Builder> disableSecurityHubRequest) throws InternalException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Disables the AWS Security Hub Service.
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 AWS account 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
default DisassociateFromMasterAccountResponse disassociateFromMasterAccount(DisassociateFromMasterAccountRequest disassociateFromMasterAccountRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Disassociates the current Security Hub member account from its master account.
disassociateFromMasterAccountRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default DisassociateFromMasterAccountResponse disassociateFromMasterAccount(Consumer<DisassociateFromMasterAccountRequest.Builder> disassociateFromMasterAccountRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Disassociates the current Security Hub member account from its master 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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default DisassociateMembersResponse disassociateMembers(DisassociateMembersRequest disassociateMembersRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Disassociates the Security Hub member accounts that are specified by the account IDs from their master account.
disassociateMembersRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default DisassociateMembersResponse disassociateMembers(Consumer<DisassociateMembersRequest.Builder> disassociateMembersRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Disassociates the Security Hub member accounts that are specified by the account IDs from their master account.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default EnableImportFindingsForProductResponse enableImportFindingsForProduct(EnableImportFindingsForProductRequest enableImportFindingsForProductRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, SecurityHubException
Enables you to import findings generated by integrated third-party providers into Security Hub.
enableImportFindingsForProductRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied 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.AwsServiceException
default EnableImportFindingsForProductResponse enableImportFindingsForProduct(Consumer<EnableImportFindingsForProductRequest.Builder> enableImportFindingsForProductRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, SecurityHubException
Enables you to import findings generated by integrated third-party providers into Security Hub.
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 an invalid or out-of-range value was supplied 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.AwsServiceException
default EnableSecurityHubResponse enableSecurityHub(EnableSecurityHubRequest enableSecurityHubRequest) throws InternalException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Enables the AWS Security Hub service.
enableSecurityHubRequest
- InternalException
- Internal server error.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default EnableSecurityHubResponse enableSecurityHub(Consumer<EnableSecurityHubRequest.Builder> enableSecurityHubRequest) throws InternalException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Enables the AWS Security Hub service.
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 AWS account 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
default GetEnabledStandardsResponse getEnabledStandards(GetEnabledStandardsRequest getEnabledStandardsRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes enabled standards.
getEnabledStandardsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default GetEnabledStandardsResponse getEnabledStandards(Consumer<GetEnabledStandardsRequest.Builder> getEnabledStandardsRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes enabled standards.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default GetFindingsResponse getFindings() throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes Security Hub-aggregated findings that are specified by filter attributes.
InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
getFindings(GetFindingsRequest)
,
AWS API
Documentationdefault GetFindingsResponse getFindings(GetFindingsRequest getFindingsRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes Security Hub-aggregated findings that are specified by filter attributes.
getFindingsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default GetFindingsResponse getFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes Security Hub-aggregated findings that are specified by filter attributes.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default GetFindingsIterable getFindingsPaginator() throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes Security Hub-aggregated findings that are specified by filter attributes.
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(....);
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
getFindingsPaginator(GetFindingsRequest)
,
AWS API
Documentationdefault GetFindingsIterable getFindingsPaginator(GetFindingsRequest getFindingsRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes Security Hub-aggregated findings that are specified by filter attributes.
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(....);
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default GetFindingsIterable getFindingsPaginator(Consumer<GetFindingsRequest.Builder> getFindingsRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes Security Hub-aggregated findings that are specified by filter attributes.
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(....);
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default GetInsightResultsResponse getInsightResults(GetInsightResultsRequest getInsightResultsRequest) throws InternalException, InvalidInputException, LimitExceededException, 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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default GetInsightResultsResponse getInsightResults(Consumer<GetInsightResultsRequest.Builder> getInsightResultsRequest) throws InternalException, InvalidInputException, LimitExceededException, 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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default GetInsightsResponse getInsights(GetInsightsRequest getInsightsRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes insights that are specified by insight ARNs.
getInsightsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default GetInsightsResponse getInsights(Consumer<GetInsightsRequest.Builder> getInsightsRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes insights that are specified by 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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default GetInsightsIterable getInsightsPaginator(GetInsightsRequest getInsightsRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes insights that are specified by 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(....);
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default GetInsightsIterable getInsightsPaginator(Consumer<GetInsightsRequest.Builder> getInsightsRequest) throws InternalException, InvalidInputException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists and describes insights that are specified by 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(....);
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default GetInvitationsCountResponse getInvitationsCount() throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, 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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
getInvitationsCount(GetInvitationsCountRequest)
,
AWS API Documentationdefault GetInvitationsCountResponse getInvitationsCount(GetInvitationsCountRequest getInvitationsCountRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, 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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default GetInvitationsCountResponse getInvitationsCount(Consumer<GetInvitationsCountRequest.Builder> getInvitationsCountRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, 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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default GetMasterAccountResponse getMasterAccount() throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Provides the details for the Security Hub master account to the current member account.
InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
getMasterAccount(GetMasterAccountRequest)
,
AWS
API Documentationdefault GetMasterAccountResponse getMasterAccount(GetMasterAccountRequest getMasterAccountRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Provides the details for the Security Hub master account to the current member account.
getMasterAccountRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default GetMasterAccountResponse getMasterAccount(Consumer<GetMasterAccountRequest.Builder> getMasterAccountRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Provides the details for the Security Hub master account to the current member account.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default GetMembersResponse getMembers(GetMembersRequest getMembersRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Returns the details on the Security Hub member accounts that are specified by the account IDs.
getMembersRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default GetMembersResponse getMembers(Consumer<GetMembersRequest.Builder> getMembersRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Returns the details on the Security Hub member accounts that are specified by the account IDs.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default InviteMembersResponse inviteMembers(InviteMembersRequest inviteMembersRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Invites other AWS accounts to enable Security Hub and become Security Hub member accounts. When an account accepts the invitation and becomes a member account, the master account can view Security Hub findings of the member account.
inviteMembersRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default InviteMembersResponse inviteMembers(Consumer<InviteMembersRequest.Builder> inviteMembersRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Invites other AWS accounts to enable Security Hub and become Security Hub member accounts. When an account accepts the invitation and becomes a member account, the master account can view Security Hub findings of 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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default ListEnabledProductsForImportResponse listEnabledProductsForImport() throws InternalException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists all Security Hub-integrated third-party findings providers.
InternalException
- Internal server error.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
listEnabledProductsForImport(ListEnabledProductsForImportRequest)
,
AWS API Documentationdefault ListEnabledProductsForImportResponse listEnabledProductsForImport(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest) throws InternalException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists all Security Hub-integrated third-party findings providers.
listEnabledProductsForImportRequest
- InternalException
- Internal server error.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account 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
default ListEnabledProductsForImportResponse listEnabledProductsForImport(Consumer<ListEnabledProductsForImportRequest.Builder> listEnabledProductsForImportRequest) throws InternalException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists all Security Hub-integrated third-party findings providers.
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 AWS account 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
default ListEnabledProductsForImportIterable listEnabledProductsForImportPaginator() throws InternalException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists all Security Hub-integrated third-party findings providers.
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(....);
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 AWS account 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
listEnabledProductsForImportPaginator(ListEnabledProductsForImportRequest)
,
AWS API Documentationdefault ListEnabledProductsForImportIterable listEnabledProductsForImportPaginator(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest) throws InternalException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists all Security Hub-integrated third-party findings providers.
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(....);
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 AWS account 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
default ListEnabledProductsForImportIterable listEnabledProductsForImportPaginator(Consumer<ListEnabledProductsForImportRequest.Builder> listEnabledProductsForImportRequest) throws InternalException, LimitExceededException, AwsServiceException, SdkClientException, SecurityHubException
Lists all Security Hub-integrated third-party findings providers.
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(....);
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 AWS account 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
default ListInvitationsResponse listInvitations() throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists all Security Hub membership invitations that were sent to the current AWS account.
InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
listInvitations(ListInvitationsRequest)
,
AWS
API Documentationdefault ListInvitationsResponse listInvitations(ListInvitationsRequest listInvitationsRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists all Security Hub membership invitations that were sent to the current AWS account.
listInvitationsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default ListInvitationsResponse listInvitations(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists all Security Hub membership invitations that were sent to the current AWS account.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default ListMembersResponse listMembers() throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists details about all member accounts for the current Security Hub master account.
InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
listMembers(ListMembersRequest)
,
AWS API
Documentationdefault ListMembersResponse listMembers(ListMembersRequest listMembersRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists details about all member accounts for the current Security Hub master account.
listMembersRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default ListMembersResponse listMembers(Consumer<ListMembersRequest.Builder> listMembersRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Lists details about all member accounts for the current Security Hub master account.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default UpdateFindingsResponse updateFindings(UpdateFindingsRequest updateFindingsRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Updates the AWS Security Hub-aggregated findings specified by the filter attributes.
updateFindingsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default UpdateFindingsResponse updateFindings(Consumer<UpdateFindingsRequest.Builder> updateFindingsRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Updates the AWS Security Hub-aggregated findings specified by the filter attributes.
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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default UpdateInsightResponse updateInsight(UpdateInsightRequest updateInsightRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Updates the AWS Security Hub insight specified by the insight ARN.
updateInsightRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
default UpdateInsightResponse updateInsight(Consumer<UpdateInsightRequest.Builder> updateInsightRequest) throws InternalException, InvalidInputException, LimitExceededException, ResourceNotFoundException, AwsServiceException, SdkClientException, SecurityHubException
Updates the AWS Security Hub insight specified by the 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 an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.ResourceNotFoundException
- The request was rejected because the specified resource cannot be found.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
static ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.