@Generated(value="software.amazon.awssdk:codegen") public interface SecurityHubAsyncClient extends SdkClient
builder()
method.
Security Hub provides you with a comprehensive view of the security state of your AWS environment and resources. It also provides you with the readiness status of your environment based on controls from supported security standards. Security Hub collects security data from AWS accounts, services, and integrated third-party products and helps you analyze security trends in your environment to identify the highest priority security issues. For more information about Security Hub, see the AWS Security Hub User Guide .
When you use operations in the Security Hub API, the requests are executed only in the AWS Region that is currently active or in the specific AWS Region that you specify in your request. Any configuration or settings change that results from the operation is applied only to that Region. To make the same change in other Regions, execute the same command for each Region to apply the change to.
For example, if your Region is set to us-west-2
, when you use CreateMembers
to add
a member account to Security Hub, the association of the member account with the master account is created only in
the us-west-2
Region. Security Hub must be enabled for the member account in the same Region that the
invitation was sent from.
The following throttling limits apply to using Security Hub API operations.
BatchEnableStandards
- RateLimit
of 1 request per second, BurstLimit
of 1 request per second.
GetFindings
- RateLimit
of 3 requests per second. BurstLimit
of 6
requests per second.
UpdateFindings
- RateLimit
of 1 request per second. BurstLimit
of 5
requests per second.
UpdateStandardsControl
- RateLimit
of 1 request per second,
BurstLimit
of 5 requests per second.
All other operations - RateLimit
of 10 requests per second. BurstLimit
of 30 requests per
second.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider . |
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
default CompletableFuture<AcceptInvitationResponse> |
acceptInvitation(AcceptInvitationRequest acceptInvitationRequest)
Accepts the invitation to be a member account and be monitored by the Security Hub master account that the
invitation was sent from.
|
default CompletableFuture<AcceptInvitationResponse> |
acceptInvitation(Consumer<AcceptInvitationRequest.Builder> acceptInvitationRequest)
Accepts the invitation to be a member account and be monitored by the Security Hub master account that the
invitation was sent from.
|
default CompletableFuture<BatchDisableStandardsResponse> |
batchDisableStandards(BatchDisableStandardsRequest batchDisableStandardsRequest)
Disables the standards specified by the provided
StandardsSubscriptionArns . |
default CompletableFuture<BatchDisableStandardsResponse> |
batchDisableStandards(Consumer<BatchDisableStandardsRequest.Builder> batchDisableStandardsRequest)
Disables the standards specified by the provided
StandardsSubscriptionArns . |
default CompletableFuture<BatchEnableStandardsResponse> |
batchEnableStandards(BatchEnableStandardsRequest batchEnableStandardsRequest)
Enables the standards specified by the provided
StandardsArn . |
default CompletableFuture<BatchEnableStandardsResponse> |
batchEnableStandards(Consumer<BatchEnableStandardsRequest.Builder> batchEnableStandardsRequest)
Enables the standards specified by the provided
StandardsArn . |
default CompletableFuture<BatchImportFindingsResponse> |
batchImportFindings(BatchImportFindingsRequest batchImportFindingsRequest)
Imports security findings generated from an integrated product into Security Hub.
|
default CompletableFuture<BatchImportFindingsResponse> |
batchImportFindings(Consumer<BatchImportFindingsRequest.Builder> batchImportFindingsRequest)
Imports security findings generated from an integrated product into Security Hub.
|
default CompletableFuture<BatchUpdateFindingsResponse> |
batchUpdateFindings(BatchUpdateFindingsRequest batchUpdateFindingsRequest)
Used by Security Hub customers to update information about their investigation into a finding.
|
default CompletableFuture<BatchUpdateFindingsResponse> |
batchUpdateFindings(Consumer<BatchUpdateFindingsRequest.Builder> batchUpdateFindingsRequest)
Used by Security Hub customers to update information about their investigation into a finding.
|
static SecurityHubAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
SecurityHubAsyncClient . |
static SecurityHubAsyncClient |
create()
Create a
SecurityHubAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CompletableFuture<CreateActionTargetResponse> |
createActionTarget(Consumer<CreateActionTargetRequest.Builder> createActionTargetRequest)
Creates a custom action target in Security Hub.
|
default CompletableFuture<CreateActionTargetResponse> |
createActionTarget(CreateActionTargetRequest createActionTargetRequest)
Creates a custom action target in Security Hub.
|
default CompletableFuture<CreateInsightResponse> |
createInsight(Consumer<CreateInsightRequest.Builder> createInsightRequest)
Creates a custom insight in Security Hub.
|
default CompletableFuture<CreateInsightResponse> |
createInsight(CreateInsightRequest createInsightRequest)
Creates a custom insight in Security Hub.
|
default CompletableFuture<CreateMembersResponse> |
createMembers(Consumer<CreateMembersRequest.Builder> createMembersRequest)
Creates a member association in Security Hub between the specified accounts and the account used to make the
request, which is the master account.
|
default CompletableFuture<CreateMembersResponse> |
createMembers(CreateMembersRequest createMembersRequest)
Creates a member association in Security Hub between the specified accounts and the account used to make the
request, which is the master account.
|
default CompletableFuture<DeclineInvitationsResponse> |
declineInvitations(Consumer<DeclineInvitationsRequest.Builder> declineInvitationsRequest)
Declines invitations to become a member account.
|
default CompletableFuture<DeclineInvitationsResponse> |
declineInvitations(DeclineInvitationsRequest declineInvitationsRequest)
Declines invitations to become a member account.
|
default CompletableFuture<DeleteActionTargetResponse> |
deleteActionTarget(Consumer<DeleteActionTargetRequest.Builder> deleteActionTargetRequest)
Deletes a custom action target from Security Hub.
|
default CompletableFuture<DeleteActionTargetResponse> |
deleteActionTarget(DeleteActionTargetRequest deleteActionTargetRequest)
Deletes a custom action target from Security Hub.
|
default CompletableFuture<DeleteInsightResponse> |
deleteInsight(Consumer<DeleteInsightRequest.Builder> deleteInsightRequest)
Deletes the insight specified by the
InsightArn . |
default CompletableFuture<DeleteInsightResponse> |
deleteInsight(DeleteInsightRequest deleteInsightRequest)
Deletes the insight specified by the
InsightArn . |
default CompletableFuture<DeleteInvitationsResponse> |
deleteInvitations(Consumer<DeleteInvitationsRequest.Builder> deleteInvitationsRequest)
Deletes invitations received by the AWS account to become a member account.
|
default CompletableFuture<DeleteInvitationsResponse> |
deleteInvitations(DeleteInvitationsRequest deleteInvitationsRequest)
Deletes invitations received by the AWS account to become a member account.
|
default CompletableFuture<DeleteMembersResponse> |
deleteMembers(Consumer<DeleteMembersRequest.Builder> deleteMembersRequest)
Deletes the specified member accounts from Security Hub.
|
default CompletableFuture<DeleteMembersResponse> |
deleteMembers(DeleteMembersRequest deleteMembersRequest)
Deletes the specified member accounts from Security Hub.
|
default CompletableFuture<DescribeActionTargetsResponse> |
describeActionTargets(Consumer<DescribeActionTargetsRequest.Builder> describeActionTargetsRequest)
Returns a list of the custom action targets in Security Hub in your account.
|
default CompletableFuture<DescribeActionTargetsResponse> |
describeActionTargets(DescribeActionTargetsRequest describeActionTargetsRequest)
Returns a list of the custom action targets in Security Hub in your account.
|
default DescribeActionTargetsPublisher |
describeActionTargetsPaginator(Consumer<DescribeActionTargetsRequest.Builder> describeActionTargetsRequest)
Returns a list of the custom action targets in Security Hub in your account.
|
default DescribeActionTargetsPublisher |
describeActionTargetsPaginator(DescribeActionTargetsRequest describeActionTargetsRequest)
Returns a list of the custom action targets in Security Hub in your account.
|
default CompletableFuture<DescribeHubResponse> |
describeHub(Consumer<DescribeHubRequest.Builder> describeHubRequest)
Returns details about the Hub resource in your account, including the
HubArn and the time when you
enabled Security Hub. |
default CompletableFuture<DescribeHubResponse> |
describeHub(DescribeHubRequest describeHubRequest)
Returns details about the Hub resource in your account, including the
HubArn and the time when you
enabled Security Hub. |
default CompletableFuture<DescribeOrganizationConfigurationResponse> |
describeOrganizationConfiguration(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest)
Returns information about the Organizations configuration for Security Hub.
|
default CompletableFuture<DescribeOrganizationConfigurationResponse> |
describeOrganizationConfiguration(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest)
Returns information about the Organizations configuration for Security Hub.
|
default CompletableFuture<DescribeProductsResponse> |
describeProducts(Consumer<DescribeProductsRequest.Builder> describeProductsRequest)
Returns information about product integrations in Security Hub.
|
default CompletableFuture<DescribeProductsResponse> |
describeProducts(DescribeProductsRequest describeProductsRequest)
Returns information about product integrations in Security Hub.
|
default DescribeProductsPublisher |
describeProductsPaginator(Consumer<DescribeProductsRequest.Builder> describeProductsRequest)
Returns information about product integrations in Security Hub.
|
default DescribeProductsPublisher |
describeProductsPaginator(DescribeProductsRequest describeProductsRequest)
Returns information about product integrations in Security Hub.
|
default CompletableFuture<DescribeStandardsResponse> |
describeStandards(Consumer<DescribeStandardsRequest.Builder> describeStandardsRequest)
Returns a list of the available standards in Security Hub.
|
default CompletableFuture<DescribeStandardsResponse> |
describeStandards(DescribeStandardsRequest describeStandardsRequest)
Returns a list of the available standards in Security Hub.
|
default CompletableFuture<DescribeStandardsControlsResponse> |
describeStandardsControls(Consumer<DescribeStandardsControlsRequest.Builder> describeStandardsControlsRequest)
Returns a list of security standards controls.
|
default CompletableFuture<DescribeStandardsControlsResponse> |
describeStandardsControls(DescribeStandardsControlsRequest describeStandardsControlsRequest)
Returns a list of security standards controls.
|
default DescribeStandardsControlsPublisher |
describeStandardsControlsPaginator(Consumer<DescribeStandardsControlsRequest.Builder> describeStandardsControlsRequest)
Returns a list of security standards controls.
|
default DescribeStandardsControlsPublisher |
describeStandardsControlsPaginator(DescribeStandardsControlsRequest describeStandardsControlsRequest)
Returns a list of security standards controls.
|
default DescribeStandardsPublisher |
describeStandardsPaginator(Consumer<DescribeStandardsRequest.Builder> describeStandardsRequest)
Returns a list of the available standards in Security Hub.
|
default DescribeStandardsPublisher |
describeStandardsPaginator(DescribeStandardsRequest describeStandardsRequest)
Returns a list of the available standards in Security Hub.
|
default CompletableFuture<DisableImportFindingsForProductResponse> |
disableImportFindingsForProduct(Consumer<DisableImportFindingsForProductRequest.Builder> disableImportFindingsForProductRequest)
Disables the integration of the specified product with Security Hub.
|
default CompletableFuture<DisableImportFindingsForProductResponse> |
disableImportFindingsForProduct(DisableImportFindingsForProductRequest disableImportFindingsForProductRequest)
Disables the integration of the specified product with Security Hub.
|
default CompletableFuture<DisableOrganizationAdminAccountResponse> |
disableOrganizationAdminAccount(Consumer<DisableOrganizationAdminAccountRequest.Builder> disableOrganizationAdminAccountRequest)
Disables a Security Hub administrator account.
|
default CompletableFuture<DisableOrganizationAdminAccountResponse> |
disableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest disableOrganizationAdminAccountRequest)
Disables a Security Hub administrator account.
|
default CompletableFuture<DisableSecurityHubResponse> |
disableSecurityHub()
Disables Security Hub in your account only in the current Region.
|
default CompletableFuture<DisableSecurityHubResponse> |
disableSecurityHub(Consumer<DisableSecurityHubRequest.Builder> disableSecurityHubRequest)
Disables Security Hub in your account only in the current Region.
|
default CompletableFuture<DisableSecurityHubResponse> |
disableSecurityHub(DisableSecurityHubRequest disableSecurityHubRequest)
Disables Security Hub in your account only in the current Region.
|
default CompletableFuture<DisassociateFromMasterAccountResponse> |
disassociateFromMasterAccount(Consumer<DisassociateFromMasterAccountRequest.Builder> disassociateFromMasterAccountRequest)
Disassociates the current Security Hub member account from the associated master account.
|
default CompletableFuture<DisassociateFromMasterAccountResponse> |
disassociateFromMasterAccount(DisassociateFromMasterAccountRequest disassociateFromMasterAccountRequest)
Disassociates the current Security Hub member account from the associated master account.
|
default CompletableFuture<DisassociateMembersResponse> |
disassociateMembers(Consumer<DisassociateMembersRequest.Builder> disassociateMembersRequest)
Disassociates the specified member accounts from the associated master account.
|
default CompletableFuture<DisassociateMembersResponse> |
disassociateMembers(DisassociateMembersRequest disassociateMembersRequest)
Disassociates the specified member accounts from the associated master account.
|
default CompletableFuture<EnableImportFindingsForProductResponse> |
enableImportFindingsForProduct(Consumer<EnableImportFindingsForProductRequest.Builder> enableImportFindingsForProductRequest)
Enables the integration of a partner product with Security Hub.
|
default CompletableFuture<EnableImportFindingsForProductResponse> |
enableImportFindingsForProduct(EnableImportFindingsForProductRequest enableImportFindingsForProductRequest)
Enables the integration of a partner product with Security Hub.
|
default CompletableFuture<EnableOrganizationAdminAccountResponse> |
enableOrganizationAdminAccount(Consumer<EnableOrganizationAdminAccountRequest.Builder> enableOrganizationAdminAccountRequest)
Designates the Security Hub administrator account for an organization.
|
default CompletableFuture<EnableOrganizationAdminAccountResponse> |
enableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest enableOrganizationAdminAccountRequest)
Designates the Security Hub administrator account for an organization.
|
default CompletableFuture<EnableSecurityHubResponse> |
enableSecurityHub()
Enables Security Hub for your account in the current Region or the Region you specify in the request.
|
default CompletableFuture<EnableSecurityHubResponse> |
enableSecurityHub(Consumer<EnableSecurityHubRequest.Builder> enableSecurityHubRequest)
Enables Security Hub for your account in the current Region or the Region you specify in the request.
|
default CompletableFuture<EnableSecurityHubResponse> |
enableSecurityHub(EnableSecurityHubRequest enableSecurityHubRequest)
Enables Security Hub for your account in the current Region or the Region you specify in the request.
|
default CompletableFuture<GetEnabledStandardsResponse> |
getEnabledStandards(Consumer<GetEnabledStandardsRequest.Builder> getEnabledStandardsRequest)
Returns a list of the standards that are currently enabled.
|
default CompletableFuture<GetEnabledStandardsResponse> |
getEnabledStandards(GetEnabledStandardsRequest getEnabledStandardsRequest)
Returns a list of the standards that are currently enabled.
|
default GetEnabledStandardsPublisher |
getEnabledStandardsPaginator(Consumer<GetEnabledStandardsRequest.Builder> getEnabledStandardsRequest)
Returns a list of the standards that are currently enabled.
|
default GetEnabledStandardsPublisher |
getEnabledStandardsPaginator(GetEnabledStandardsRequest getEnabledStandardsRequest)
Returns a list of the standards that are currently enabled.
|
default CompletableFuture<GetFindingsResponse> |
getFindings()
Returns a list of findings that match the specified criteria.
|
default CompletableFuture<GetFindingsResponse> |
getFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest)
Returns a list of findings that match the specified criteria.
|
default CompletableFuture<GetFindingsResponse> |
getFindings(GetFindingsRequest getFindingsRequest)
Returns a list of findings that match the specified criteria.
|
default GetFindingsPublisher |
getFindingsPaginator()
Returns a list of findings that match the specified criteria.
|
default GetFindingsPublisher |
getFindingsPaginator(Consumer<GetFindingsRequest.Builder> getFindingsRequest)
Returns a list of findings that match the specified criteria.
|
default GetFindingsPublisher |
getFindingsPaginator(GetFindingsRequest getFindingsRequest)
Returns a list of findings that match the specified criteria.
|
default CompletableFuture<GetInsightResultsResponse> |
getInsightResults(Consumer<GetInsightResultsRequest.Builder> getInsightResultsRequest)
Lists the results of the Security Hub insight specified by the insight ARN.
|
default CompletableFuture<GetInsightResultsResponse> |
getInsightResults(GetInsightResultsRequest getInsightResultsRequest)
Lists the results of the Security Hub insight specified by the insight ARN.
|
default CompletableFuture<GetInsightsResponse> |
getInsights(Consumer<GetInsightsRequest.Builder> getInsightsRequest)
Lists and describes insights for the specified insight ARNs.
|
default CompletableFuture<GetInsightsResponse> |
getInsights(GetInsightsRequest getInsightsRequest)
Lists and describes insights for the specified insight ARNs.
|
default GetInsightsPublisher |
getInsightsPaginator(Consumer<GetInsightsRequest.Builder> getInsightsRequest)
Lists and describes insights for the specified insight ARNs.
|
default GetInsightsPublisher |
getInsightsPaginator(GetInsightsRequest getInsightsRequest)
Lists and describes insights for the specified insight ARNs.
|
default CompletableFuture<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 CompletableFuture<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 CompletableFuture<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 CompletableFuture<GetMasterAccountResponse> |
getMasterAccount()
Provides the details for the Security Hub master account for the current member account.
|
default CompletableFuture<GetMasterAccountResponse> |
getMasterAccount(Consumer<GetMasterAccountRequest.Builder> getMasterAccountRequest)
Provides the details for the Security Hub master account for the current member account.
|
default CompletableFuture<GetMasterAccountResponse> |
getMasterAccount(GetMasterAccountRequest getMasterAccountRequest)
Provides the details for the Security Hub master account for the current member account.
|
default CompletableFuture<GetMembersResponse> |
getMembers(Consumer<GetMembersRequest.Builder> getMembersRequest)
Returns the details for the Security Hub member accounts for the specified account IDs.
|
default CompletableFuture<GetMembersResponse> |
getMembers(GetMembersRequest getMembersRequest)
Returns the details for the Security Hub member accounts for the specified account IDs.
|
default CompletableFuture<InviteMembersResponse> |
inviteMembers(Consumer<InviteMembersRequest.Builder> inviteMembersRequest)
Invites other AWS accounts to become member accounts for the Security Hub master account that the invitation is
sent from.
|
default CompletableFuture<InviteMembersResponse> |
inviteMembers(InviteMembersRequest inviteMembersRequest)
Invites other AWS accounts to become member accounts for the Security Hub master account that the invitation is
sent from.
|
default CompletableFuture<ListEnabledProductsForImportResponse> |
listEnabledProductsForImport()
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security
Hub.
|
default CompletableFuture<ListEnabledProductsForImportResponse> |
listEnabledProductsForImport(Consumer<ListEnabledProductsForImportRequest.Builder> listEnabledProductsForImportRequest)
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security
Hub.
|
default CompletableFuture<ListEnabledProductsForImportResponse> |
listEnabledProductsForImport(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest)
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security
Hub.
|
default ListEnabledProductsForImportPublisher |
listEnabledProductsForImportPaginator()
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security
Hub.
|
default ListEnabledProductsForImportPublisher |
listEnabledProductsForImportPaginator(Consumer<ListEnabledProductsForImportRequest.Builder> listEnabledProductsForImportRequest)
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security
Hub.
|
default ListEnabledProductsForImportPublisher |
listEnabledProductsForImportPaginator(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest)
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security
Hub.
|
default CompletableFuture<ListInvitationsResponse> |
listInvitations()
Lists all Security Hub membership invitations that were sent to the current AWS account.
|
default CompletableFuture<ListInvitationsResponse> |
listInvitations(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest)
Lists all Security Hub membership invitations that were sent to the current AWS account.
|
default CompletableFuture<ListInvitationsResponse> |
listInvitations(ListInvitationsRequest listInvitationsRequest)
Lists all Security Hub membership invitations that were sent to the current AWS account.
|
default ListInvitationsPublisher |
listInvitationsPaginator()
Lists all Security Hub membership invitations that were sent to the current AWS account.
|
default ListInvitationsPublisher |
listInvitationsPaginator(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest)
Lists all Security Hub membership invitations that were sent to the current AWS account.
|
default ListInvitationsPublisher |
listInvitationsPaginator(ListInvitationsRequest listInvitationsRequest)
Lists all Security Hub membership invitations that were sent to the current AWS account.
|
default CompletableFuture<ListMembersResponse> |
listMembers()
Lists details about all member accounts for the current Security Hub master account.
|
default CompletableFuture<ListMembersResponse> |
listMembers(Consumer<ListMembersRequest.Builder> listMembersRequest)
Lists details about all member accounts for the current Security Hub master account.
|
default CompletableFuture<ListMembersResponse> |
listMembers(ListMembersRequest listMembersRequest)
Lists details about all member accounts for the current Security Hub master account.
|
default ListMembersPublisher |
listMembersPaginator()
Lists details about all member accounts for the current Security Hub master account.
|
default ListMembersPublisher |
listMembersPaginator(Consumer<ListMembersRequest.Builder> listMembersRequest)
Lists details about all member accounts for the current Security Hub master account.
|
default ListMembersPublisher |
listMembersPaginator(ListMembersRequest listMembersRequest)
Lists details about all member accounts for the current Security Hub master account.
|
default CompletableFuture<ListOrganizationAdminAccountsResponse> |
listOrganizationAdminAccounts(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest)
Lists the Security Hub administrator accounts.
|
default CompletableFuture<ListOrganizationAdminAccountsResponse> |
listOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest)
Lists the Security Hub administrator accounts.
|
default ListOrganizationAdminAccountsPublisher |
listOrganizationAdminAccountsPaginator(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest)
Lists the Security Hub administrator accounts.
|
default ListOrganizationAdminAccountsPublisher |
listOrganizationAdminAccountsPaginator(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest)
Lists the Security Hub administrator accounts.
|
default CompletableFuture<ListTagsForResourceResponse> |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Returns a list of tags associated with a resource.
|
default CompletableFuture<ListTagsForResourceResponse> |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns a list of tags associated with a resource.
|
default CompletableFuture<TagResourceResponse> |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds one or more tags to a resource.
|
default CompletableFuture<TagResourceResponse> |
tagResource(TagResourceRequest tagResourceRequest)
Adds one or more tags to a resource.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes one or more tags from a resource.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(UntagResourceRequest untagResourceRequest)
Removes one or more tags from a resource.
|
default CompletableFuture<UpdateActionTargetResponse> |
updateActionTarget(Consumer<UpdateActionTargetRequest.Builder> updateActionTargetRequest)
Updates the name and description of a custom action target in Security Hub.
|
default CompletableFuture<UpdateActionTargetResponse> |
updateActionTarget(UpdateActionTargetRequest updateActionTargetRequest)
Updates the name and description of a custom action target in Security Hub.
|
default CompletableFuture<UpdateFindingsResponse> |
updateFindings(Consumer<UpdateFindingsRequest.Builder> updateFindingsRequest)
UpdateFindings is deprecated. |
default CompletableFuture<UpdateFindingsResponse> |
updateFindings(UpdateFindingsRequest updateFindingsRequest)
UpdateFindings is deprecated. |
default CompletableFuture<UpdateInsightResponse> |
updateInsight(Consumer<UpdateInsightRequest.Builder> updateInsightRequest)
Updates the Security Hub insight identified by the specified insight ARN.
|
default CompletableFuture<UpdateInsightResponse> |
updateInsight(UpdateInsightRequest updateInsightRequest)
Updates the Security Hub insight identified by the specified insight ARN.
|
default CompletableFuture<UpdateOrganizationConfigurationResponse> |
updateOrganizationConfiguration(Consumer<UpdateOrganizationConfigurationRequest.Builder> updateOrganizationConfigurationRequest)
Used to update the configuration related to Organizations.
|
default CompletableFuture<UpdateOrganizationConfigurationResponse> |
updateOrganizationConfiguration(UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest)
Used to update the configuration related to Organizations.
|
default CompletableFuture<UpdateSecurityHubConfigurationResponse> |
updateSecurityHubConfiguration(Consumer<UpdateSecurityHubConfigurationRequest.Builder> updateSecurityHubConfigurationRequest)
Updates configuration options for Security Hub.
|
default CompletableFuture<UpdateSecurityHubConfigurationResponse> |
updateSecurityHubConfiguration(UpdateSecurityHubConfigurationRequest updateSecurityHubConfigurationRequest)
Updates configuration options for Security Hub.
|
default CompletableFuture<UpdateStandardsControlResponse> |
updateStandardsControl(Consumer<UpdateStandardsControlRequest.Builder> updateStandardsControlRequest)
Used to control whether an individual security standard control is enabled or disabled.
|
default CompletableFuture<UpdateStandardsControlResponse> |
updateStandardsControl(UpdateStandardsControlRequest updateStandardsControlRequest)
Used to control whether an individual security standard control is enabled or disabled.
|
serviceName
close
static final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider
.static SecurityHubAsyncClient create()
SecurityHubAsyncClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static SecurityHubAsyncClientBuilder builder()
SecurityHubAsyncClient
.default CompletableFuture<AcceptInvitationResponse> acceptInvitation(AcceptInvitationRequest acceptInvitationRequest)
Accepts the invitation to be a member account and be monitored by the Security Hub master account that the invitation was sent from.
This operation is only used by member accounts that are not added through Organizations.
When the member account accepts the invitation, permission is granted to the master account to view findings generated in the member account.
acceptInvitationRequest
- default CompletableFuture<AcceptInvitationResponse> acceptInvitation(Consumer<AcceptInvitationRequest.Builder> acceptInvitationRequest)
Accepts the invitation to be a member account and be monitored by the Security Hub master account that the invitation was sent from.
This operation is only used by member accounts that are not added through Organizations.
When the member account accepts the invitation, permission is granted to the master account to view findings generated in the member account.
This is a convenience which creates an instance of the AcceptInvitationRequest.Builder
avoiding the need
to create one manually via AcceptInvitationRequest.builder()
acceptInvitationRequest
- A Consumer
that will call methods on AcceptInvitationRequest.Builder
to create a request.default CompletableFuture<BatchDisableStandardsResponse> batchDisableStandards(BatchDisableStandardsRequest batchDisableStandardsRequest)
Disables the standards specified by the provided StandardsSubscriptionArns
.
For more information, see Security Standards section of the AWS Security Hub User Guide.
batchDisableStandardsRequest
- default CompletableFuture<BatchDisableStandardsResponse> batchDisableStandards(Consumer<BatchDisableStandardsRequest.Builder> batchDisableStandardsRequest)
Disables the standards specified by the provided StandardsSubscriptionArns
.
For more information, see Security Standards section of the AWS Security Hub User Guide.
This is a convenience which creates an instance of the BatchDisableStandardsRequest.Builder
avoiding the
need to create one manually via BatchDisableStandardsRequest.builder()
batchDisableStandardsRequest
- A Consumer
that will call methods on BatchDisableStandardsRequest.Builder
to create a
request.default CompletableFuture<BatchEnableStandardsResponse> batchEnableStandards(BatchEnableStandardsRequest batchEnableStandardsRequest)
Enables the standards specified by the provided StandardsArn
. To obtain the ARN for a standard, use
the DescribeStandards
operation.
For more information, see the Security Standards section of the AWS Security Hub User Guide.
batchEnableStandardsRequest
- default CompletableFuture<BatchEnableStandardsResponse> batchEnableStandards(Consumer<BatchEnableStandardsRequest.Builder> batchEnableStandardsRequest)
Enables the standards specified by the provided StandardsArn
. To obtain the ARN for a standard, use
the DescribeStandards
operation.
For more information, see the Security Standards section of the AWS Security Hub User Guide.
This is a convenience which creates an instance of the BatchEnableStandardsRequest.Builder
avoiding the
need to create one manually via BatchEnableStandardsRequest.builder()
batchEnableStandardsRequest
- A Consumer
that will call methods on BatchEnableStandardsRequest.Builder
to create a
request.default CompletableFuture<BatchImportFindingsResponse> batchImportFindings(BatchImportFindingsRequest batchImportFindingsRequest)
Imports security findings generated from an integrated product into Security Hub. This action is requested by the integrated product to import its findings into Security Hub.
The maximum allowed size for a finding is 240 Kb. An error is returned for any finding larger than 240 Kb.
After a finding is created, BatchImportFindings
cannot be used to update the following finding
fields and objects, which Security Hub customers use to manage their investigation workflow.
Note
UserDefinedFields
VerificationState
Workflow
Finding providers also should not use BatchImportFindings
to update the following attributes.
Confidence
Criticality
RelatedFindings
Severity
Types
Instead, finding providers use FindingProviderFields
to provide values for these attributes.
batchImportFindingsRequest
- default CompletableFuture<BatchImportFindingsResponse> batchImportFindings(Consumer<BatchImportFindingsRequest.Builder> batchImportFindingsRequest)
Imports security findings generated from an integrated product into Security Hub. This action is requested by the integrated product to import its findings into Security Hub.
The maximum allowed size for a finding is 240 Kb. An error is returned for any finding larger than 240 Kb.
After a finding is created, BatchImportFindings
cannot be used to update the following finding
fields and objects, which Security Hub customers use to manage their investigation workflow.
Note
UserDefinedFields
VerificationState
Workflow
Finding providers also should not use BatchImportFindings
to update the following attributes.
Confidence
Criticality
RelatedFindings
Severity
Types
Instead, finding providers use FindingProviderFields
to provide values for these attributes.
This is a convenience which creates an instance of the BatchImportFindingsRequest.Builder
avoiding the
need to create one manually via BatchImportFindingsRequest.builder()
batchImportFindingsRequest
- A Consumer
that will call methods on BatchImportFindingsRequest.Builder
to create a
request.default CompletableFuture<BatchUpdateFindingsResponse> batchUpdateFindings(BatchUpdateFindingsRequest batchUpdateFindingsRequest)
Used by Security Hub customers to update information about their investigation into a finding. Requested by master accounts or member accounts. Master accounts can update findings for their account and their member accounts. Member accounts can update findings for their account.
Updates from BatchUpdateFindings
do not affect the value of UpdatedAt
for a finding.
Master and member accounts can use BatchUpdateFindings
to update the following finding fields and
objects.
Confidence
Criticality
Note
RelatedFindings
Severity
Types
UserDefinedFields
VerificationState
Workflow
You can configure IAM policies to restrict access to fields and field values. For example, you might not want member accounts to be able to suppress findings or change the finding severity. See Configuring access to BatchUpdateFindings in the AWS Security Hub User Guide.
batchUpdateFindingsRequest
- default CompletableFuture<BatchUpdateFindingsResponse> batchUpdateFindings(Consumer<BatchUpdateFindingsRequest.Builder> batchUpdateFindingsRequest)
Used by Security Hub customers to update information about their investigation into a finding. Requested by master accounts or member accounts. Master accounts can update findings for their account and their member accounts. Member accounts can update findings for their account.
Updates from BatchUpdateFindings
do not affect the value of UpdatedAt
for a finding.
Master and member accounts can use BatchUpdateFindings
to update the following finding fields and
objects.
Confidence
Criticality
Note
RelatedFindings
Severity
Types
UserDefinedFields
VerificationState
Workflow
You can configure IAM policies to restrict access to fields and field values. For example, you might not want member accounts to be able to suppress findings or change the finding severity. See Configuring access to BatchUpdateFindings in the AWS Security Hub User Guide.
This is a convenience which creates an instance of the BatchUpdateFindingsRequest.Builder
avoiding the
need to create one manually via BatchUpdateFindingsRequest.builder()
batchUpdateFindingsRequest
- A Consumer
that will call methods on BatchUpdateFindingsRequest.Builder
to create a
request.default CompletableFuture<CreateActionTargetResponse> createActionTarget(CreateActionTargetRequest createActionTargetRequest)
Creates a custom action target in Security Hub.
You can use custom actions on findings and insights in Security Hub to trigger target actions in Amazon CloudWatch Events.
createActionTargetRequest
- default CompletableFuture<CreateActionTargetResponse> createActionTarget(Consumer<CreateActionTargetRequest.Builder> createActionTargetRequest)
Creates a custom action target in Security Hub.
You can use custom actions on findings and insights in Security Hub to trigger target actions in Amazon CloudWatch Events.
This is a convenience which creates an instance of the CreateActionTargetRequest.Builder
avoiding the
need to create one manually via CreateActionTargetRequest.builder()
createActionTargetRequest
- A Consumer
that will call methods on CreateActionTargetRequest.Builder
to create a
request.default CompletableFuture<CreateInsightResponse> createInsight(CreateInsightRequest createInsightRequest)
Creates a custom insight in Security Hub. An insight is a consolidation of findings that relate to a security issue that requires attention or remediation.
To group the related findings in the insight, use the GroupByAttribute
.
createInsightRequest
- default CompletableFuture<CreateInsightResponse> createInsight(Consumer<CreateInsightRequest.Builder> createInsightRequest)
Creates a custom insight in Security Hub. An insight is a consolidation of findings that relate to a security issue that requires attention or remediation.
To group the related findings in the insight, use the GroupByAttribute
.
This is a convenience which creates an instance of the CreateInsightRequest.Builder
avoiding the need to
create one manually via CreateInsightRequest.builder()
createInsightRequest
- A Consumer
that will call methods on CreateInsightRequest.Builder
to create a request.default CompletableFuture<CreateMembersResponse> createMembers(CreateMembersRequest createMembersRequest)
Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the master account. If you are integrated with Organizations, then the master account is the Security Hub administrator account that is designated by the organization management account.
CreateMembers
is always used to add accounts that are not organization members.
For accounts that are part of an organization, CreateMembers
is only used in the following cases:
Security Hub is not configured to automatically add new accounts in an organization.
The account was disassociated or deleted in Security Hub.
This action can only be used by an account that has Security Hub enabled. To enable Security Hub, you can use the
EnableSecurityHub
operation.
For accounts that are not organization members, you create the account association and then send an invitation to
the member account. To send the invitation, you use the InviteMembers
operation. If the
account owner accepts the invitation, the account becomes a member account in Security Hub.
Accounts that are part of an organization do not receive an invitation. They automatically become a member account in Security Hub.
A permissions policy is added that permits the master account to view the findings generated in the member account. When Security Hub is enabled in a member account, findings are sent to both the member and master accounts.
To remove the association between the master and member accounts, use the
DisassociateFromMasterAccount
or DisassociateMembers
operation.
createMembersRequest
- default CompletableFuture<CreateMembersResponse> createMembers(Consumer<CreateMembersRequest.Builder> createMembersRequest)
Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the master account. If you are integrated with Organizations, then the master account is the Security Hub administrator account that is designated by the organization management account.
CreateMembers
is always used to add accounts that are not organization members.
For accounts that are part of an organization, CreateMembers
is only used in the following cases:
Security Hub is not configured to automatically add new accounts in an organization.
The account was disassociated or deleted in Security Hub.
This action can only be used by an account that has Security Hub enabled. To enable Security Hub, you can use the
EnableSecurityHub
operation.
For accounts that are not organization members, you create the account association and then send an invitation to
the member account. To send the invitation, you use the InviteMembers
operation. If the
account owner accepts the invitation, the account becomes a member account in Security Hub.
Accounts that are part of an organization do not receive an invitation. They automatically become a member account in Security Hub.
A permissions policy is added that permits the master account to view the findings generated in the member account. When Security Hub is enabled in a member account, findings are sent to both the member and master accounts.
To remove the association between the master and member accounts, use the
DisassociateFromMasterAccount
or DisassociateMembers
operation.
This is a convenience which creates an instance of the CreateMembersRequest.Builder
avoiding the need to
create one manually via CreateMembersRequest.builder()
createMembersRequest
- A Consumer
that will call methods on CreateMembersRequest.Builder
to create a request.default CompletableFuture<DeclineInvitationsResponse> declineInvitations(DeclineInvitationsRequest declineInvitationsRequest)
Declines invitations to become a member account.
This operation is only used by accounts that are not part of an organization. Organization accounts do not receive invitations.
declineInvitationsRequest
- default CompletableFuture<DeclineInvitationsResponse> declineInvitations(Consumer<DeclineInvitationsRequest.Builder> declineInvitationsRequest)
Declines invitations to become a member account.
This operation is only used by accounts that are not part of an organization. Organization accounts do not receive invitations.
This is a convenience which creates an instance of the DeclineInvitationsRequest.Builder
avoiding the
need to create one manually via DeclineInvitationsRequest.builder()
declineInvitationsRequest
- A Consumer
that will call methods on DeclineInvitationsRequest.Builder
to create a
request.default CompletableFuture<DeleteActionTargetResponse> deleteActionTarget(DeleteActionTargetRequest deleteActionTargetRequest)
Deletes a custom action target from Security Hub.
Deleting a custom action target does not affect any findings or insights that were already sent to Amazon CloudWatch Events using the custom action.
deleteActionTargetRequest
- default CompletableFuture<DeleteActionTargetResponse> deleteActionTarget(Consumer<DeleteActionTargetRequest.Builder> deleteActionTargetRequest)
Deletes a custom action target from Security Hub.
Deleting a custom action target does not affect any findings or insights that were already sent to Amazon CloudWatch Events using the custom action.
This is a convenience which creates an instance of the DeleteActionTargetRequest.Builder
avoiding the
need to create one manually via DeleteActionTargetRequest.builder()
deleteActionTargetRequest
- A Consumer
that will call methods on DeleteActionTargetRequest.Builder
to create a
request.default CompletableFuture<DeleteInsightResponse> deleteInsight(DeleteInsightRequest deleteInsightRequest)
Deletes the insight specified by the InsightArn
.
deleteInsightRequest
- default CompletableFuture<DeleteInsightResponse> deleteInsight(Consumer<DeleteInsightRequest.Builder> deleteInsightRequest)
Deletes the insight specified by the InsightArn
.
This is a convenience which creates an instance of the DeleteInsightRequest.Builder
avoiding the need to
create one manually via DeleteInsightRequest.builder()
deleteInsightRequest
- A Consumer
that will call methods on DeleteInsightRequest.Builder
to create a request.default CompletableFuture<DeleteInvitationsResponse> deleteInvitations(DeleteInvitationsRequest deleteInvitationsRequest)
Deletes invitations received by the AWS account to become a member account.
This operation is only used by accounts that are not part of an organization. Organization accounts do not receive invitations.
deleteInvitationsRequest
- default CompletableFuture<DeleteInvitationsResponse> deleteInvitations(Consumer<DeleteInvitationsRequest.Builder> deleteInvitationsRequest)
Deletes invitations received by the AWS account to become a member account.
This operation is only used by accounts that are not part of an organization. Organization accounts do not receive invitations.
This is a convenience which creates an instance of the DeleteInvitationsRequest.Builder
avoiding the need
to create one manually via DeleteInvitationsRequest.builder()
deleteInvitationsRequest
- A Consumer
that will call methods on DeleteInvitationsRequest.Builder
to create a request.default CompletableFuture<DeleteMembersResponse> deleteMembers(DeleteMembersRequest deleteMembersRequest)
Deletes the specified member accounts from Security Hub.
Can be used to delete member accounts that belong to an organization as well as member accounts that were invited manually.
deleteMembersRequest
- default CompletableFuture<DeleteMembersResponse> deleteMembers(Consumer<DeleteMembersRequest.Builder> deleteMembersRequest)
Deletes the specified member accounts from Security Hub.
Can be used to delete member accounts that belong to an organization as well as member accounts that were invited manually.
This is a convenience which creates an instance of the DeleteMembersRequest.Builder
avoiding the need to
create one manually via DeleteMembersRequest.builder()
deleteMembersRequest
- A Consumer
that will call methods on DeleteMembersRequest.Builder
to create a request.default CompletableFuture<DescribeActionTargetsResponse> describeActionTargets(DescribeActionTargetsRequest describeActionTargetsRequest)
Returns a list of the custom action targets in Security Hub in your account.
describeActionTargetsRequest
- default CompletableFuture<DescribeActionTargetsResponse> describeActionTargets(Consumer<DescribeActionTargetsRequest.Builder> describeActionTargetsRequest)
Returns a list of the custom action targets in Security Hub in your account.
This is a convenience which creates an instance of the DescribeActionTargetsRequest.Builder
avoiding the
need to create one manually via DescribeActionTargetsRequest.builder()
describeActionTargetsRequest
- A Consumer
that will call methods on DescribeActionTargetsRequest.Builder
to create a
request.default DescribeActionTargetsPublisher describeActionTargetsPaginator(DescribeActionTargetsRequest describeActionTargetsRequest)
Returns a list of the custom action targets in Security Hub in your account.
This is a variant of
describeActionTargets(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.DescribeActionTargetsPublisher publisher = client.describeActionTargetsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.DescribeActionTargetsPublisher publisher = client.describeActionTargetsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeActionTargets(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsRequest)
operation.
describeActionTargetsRequest
- default DescribeActionTargetsPublisher describeActionTargetsPaginator(Consumer<DescribeActionTargetsRequest.Builder> describeActionTargetsRequest)
Returns a list of the custom action targets in Security Hub in your account.
This is a variant of
describeActionTargets(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.DescribeActionTargetsPublisher publisher = client.describeActionTargetsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.DescribeActionTargetsPublisher publisher = client.describeActionTargetsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeActionTargets(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsRequest)
operation.
This is a convenience which creates an instance of the DescribeActionTargetsRequest.Builder
avoiding the
need to create one manually via DescribeActionTargetsRequest.builder()
describeActionTargetsRequest
- A Consumer
that will call methods on DescribeActionTargetsRequest.Builder
to create a
request.default CompletableFuture<DescribeHubResponse> describeHub(DescribeHubRequest describeHubRequest)
Returns details about the Hub resource in your account, including the HubArn
and the time when you
enabled Security Hub.
describeHubRequest
- default CompletableFuture<DescribeHubResponse> describeHub(Consumer<DescribeHubRequest.Builder> describeHubRequest)
Returns details about the Hub resource in your account, including the HubArn
and the time when you
enabled Security Hub.
This is a convenience which creates an instance of the DescribeHubRequest.Builder
avoiding the need to
create one manually via DescribeHubRequest.builder()
describeHubRequest
- A Consumer
that will call methods on DescribeHubRequest.Builder
to create a request.default CompletableFuture<DescribeOrganizationConfigurationResponse> describeOrganizationConfiguration(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest)
Returns information about the Organizations configuration for Security Hub. Can only be called from a Security Hub administrator account.
describeOrganizationConfigurationRequest
- default CompletableFuture<DescribeOrganizationConfigurationResponse> describeOrganizationConfiguration(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest)
Returns information about the Organizations configuration for Security Hub. Can only be called from a Security Hub administrator account.
This is a convenience which creates an instance of the DescribeOrganizationConfigurationRequest.Builder
avoiding the need to create one manually via DescribeOrganizationConfigurationRequest.builder()
describeOrganizationConfigurationRequest
- A Consumer
that will call methods on DescribeOrganizationConfigurationRequest.Builder
to
create a request.default CompletableFuture<DescribeProductsResponse> describeProducts(DescribeProductsRequest describeProductsRequest)
Returns information about product integrations in Security Hub.
You can optionally provide an integration ARN. If you provide an integration ARN, then the results only include that integration.
If you do not provide an integration ARN, then the results include all of the available product integrations.
describeProductsRequest
- default CompletableFuture<DescribeProductsResponse> describeProducts(Consumer<DescribeProductsRequest.Builder> describeProductsRequest)
Returns information about product integrations in Security Hub.
You can optionally provide an integration ARN. If you provide an integration ARN, then the results only include that integration.
If you do not provide an integration ARN, then the results include all of the available product integrations.
This is a convenience which creates an instance of the DescribeProductsRequest.Builder
avoiding the need
to create one manually via DescribeProductsRequest.builder()
describeProductsRequest
- A Consumer
that will call methods on DescribeProductsRequest.Builder
to create a request.default DescribeProductsPublisher describeProductsPaginator(DescribeProductsRequest describeProductsRequest)
Returns information about product integrations in Security Hub.
You can optionally provide an integration ARN. If you provide an integration ARN, then the results only include that integration.
If you do not provide an integration ARN, then the results include all of the available product integrations.
This is a variant of
describeProducts(software.amazon.awssdk.services.securityhub.model.DescribeProductsRequest)
operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.DescribeProductsPublisher publisher = client.describeProductsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.DescribeProductsPublisher publisher = client.describeProductsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeProductsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeProductsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeProducts(software.amazon.awssdk.services.securityhub.model.DescribeProductsRequest)
operation.
describeProductsRequest
- default DescribeProductsPublisher describeProductsPaginator(Consumer<DescribeProductsRequest.Builder> describeProductsRequest)
Returns information about product integrations in Security Hub.
You can optionally provide an integration ARN. If you provide an integration ARN, then the results only include that integration.
If you do not provide an integration ARN, then the results include all of the available product integrations.
This is a variant of
describeProducts(software.amazon.awssdk.services.securityhub.model.DescribeProductsRequest)
operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.DescribeProductsPublisher publisher = client.describeProductsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.DescribeProductsPublisher publisher = client.describeProductsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeProductsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeProductsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeProducts(software.amazon.awssdk.services.securityhub.model.DescribeProductsRequest)
operation.
This is a convenience which creates an instance of the DescribeProductsRequest.Builder
avoiding the need
to create one manually via DescribeProductsRequest.builder()
describeProductsRequest
- A Consumer
that will call methods on DescribeProductsRequest.Builder
to create a request.default CompletableFuture<DescribeStandardsResponse> describeStandards(DescribeStandardsRequest describeStandardsRequest)
Returns a list of the available standards in Security Hub.
For each standard, the results include the standard ARN, the name, and a description.
describeStandardsRequest
- default CompletableFuture<DescribeStandardsResponse> describeStandards(Consumer<DescribeStandardsRequest.Builder> describeStandardsRequest)
Returns a list of the available standards in Security Hub.
For each standard, the results include the standard ARN, the name, and a description.
This is a convenience which creates an instance of the DescribeStandardsRequest.Builder
avoiding the need
to create one manually via DescribeStandardsRequest.builder()
describeStandardsRequest
- A Consumer
that will call methods on DescribeStandardsRequest.Builder
to create a request.default CompletableFuture<DescribeStandardsControlsResponse> describeStandardsControls(DescribeStandardsControlsRequest describeStandardsControlsRequest)
Returns a list of security standards controls.
For each control, the results include information about whether it is currently enabled, the severity, and a link to remediation information.
describeStandardsControlsRequest
- default CompletableFuture<DescribeStandardsControlsResponse> describeStandardsControls(Consumer<DescribeStandardsControlsRequest.Builder> describeStandardsControlsRequest)
Returns a list of security standards controls.
For each control, the results include information about whether it is currently enabled, the severity, and a link to remediation information.
This is a convenience which creates an instance of the DescribeStandardsControlsRequest.Builder
avoiding
the need to create one manually via DescribeStandardsControlsRequest.builder()
describeStandardsControlsRequest
- A Consumer
that will call methods on DescribeStandardsControlsRequest.Builder
to create a
request.default DescribeStandardsControlsPublisher describeStandardsControlsPaginator(DescribeStandardsControlsRequest describeStandardsControlsRequest)
Returns a list of security standards controls.
For each control, the results include information about whether it is currently enabled, the severity, and a link to remediation information.
This is a variant of
describeStandardsControls(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsControlsPublisher publisher = client.describeStandardsControlsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsControlsPublisher publisher = client.describeStandardsControlsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeStandardsControls(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsRequest)
operation.
describeStandardsControlsRequest
- default DescribeStandardsControlsPublisher describeStandardsControlsPaginator(Consumer<DescribeStandardsControlsRequest.Builder> describeStandardsControlsRequest)
Returns a list of security standards controls.
For each control, the results include information about whether it is currently enabled, the severity, and a link to remediation information.
This is a variant of
describeStandardsControls(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsControlsPublisher publisher = client.describeStandardsControlsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsControlsPublisher publisher = client.describeStandardsControlsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeStandardsControls(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsRequest)
operation.
This is a convenience which creates an instance of the DescribeStandardsControlsRequest.Builder
avoiding
the need to create one manually via DescribeStandardsControlsRequest.builder()
describeStandardsControlsRequest
- A Consumer
that will call methods on DescribeStandardsControlsRequest.Builder
to create a
request.default DescribeStandardsPublisher describeStandardsPaginator(DescribeStandardsRequest describeStandardsRequest)
Returns a list of the available standards in Security Hub.
For each standard, the results include the standard ARN, the name, and a description.
This is a variant of
describeStandards(software.amazon.awssdk.services.securityhub.model.DescribeStandardsRequest)
operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsPublisher publisher = client.describeStandardsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsPublisher publisher = client.describeStandardsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeStandardsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeStandardsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeStandards(software.amazon.awssdk.services.securityhub.model.DescribeStandardsRequest)
operation.
describeStandardsRequest
- default DescribeStandardsPublisher describeStandardsPaginator(Consumer<DescribeStandardsRequest.Builder> describeStandardsRequest)
Returns a list of the available standards in Security Hub.
For each standard, the results include the standard ARN, the name, and a description.
This is a variant of
describeStandards(software.amazon.awssdk.services.securityhub.model.DescribeStandardsRequest)
operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsPublisher publisher = client.describeStandardsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsPublisher publisher = client.describeStandardsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeStandardsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeStandardsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeStandards(software.amazon.awssdk.services.securityhub.model.DescribeStandardsRequest)
operation.
This is a convenience which creates an instance of the DescribeStandardsRequest.Builder
avoiding the need
to create one manually via DescribeStandardsRequest.builder()
describeStandardsRequest
- A Consumer
that will call methods on DescribeStandardsRequest.Builder
to create a request.default CompletableFuture<DisableImportFindingsForProductResponse> disableImportFindingsForProduct(DisableImportFindingsForProductRequest disableImportFindingsForProductRequest)
Disables the integration of the specified product with Security Hub. After the integration is disabled, findings from that product are no longer sent to Security Hub.
disableImportFindingsForProductRequest
- default CompletableFuture<DisableImportFindingsForProductResponse> disableImportFindingsForProduct(Consumer<DisableImportFindingsForProductRequest.Builder> disableImportFindingsForProductRequest)
Disables the integration of the specified product with Security Hub. After the integration is disabled, findings from that product are no longer sent to Security Hub.
This is a convenience which creates an instance of the DisableImportFindingsForProductRequest.Builder
avoiding the need to create one manually via DisableImportFindingsForProductRequest.builder()
disableImportFindingsForProductRequest
- A Consumer
that will call methods on DisableImportFindingsForProductRequest.Builder
to
create a request.default CompletableFuture<DisableOrganizationAdminAccountResponse> disableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest disableOrganizationAdminAccountRequest)
Disables a Security Hub administrator account. Can only be called by the organization management account.
disableOrganizationAdminAccountRequest
- default CompletableFuture<DisableOrganizationAdminAccountResponse> disableOrganizationAdminAccount(Consumer<DisableOrganizationAdminAccountRequest.Builder> disableOrganizationAdminAccountRequest)
Disables a Security Hub administrator account. Can only be called by the organization management account.
This is a convenience which creates an instance of the DisableOrganizationAdminAccountRequest.Builder
avoiding the need to create one manually via DisableOrganizationAdminAccountRequest.builder()
disableOrganizationAdminAccountRequest
- A Consumer
that will call methods on DisableOrganizationAdminAccountRequest.Builder
to
create a request.default CompletableFuture<DisableSecurityHubResponse> disableSecurityHub(DisableSecurityHubRequest disableSecurityHubRequest)
Disables Security Hub in your account only in the current Region. To disable Security Hub in all Regions, you must submit one request per Region where you have enabled Security Hub.
When you disable Security Hub for a master account, it doesn't disable Security Hub for any associated member accounts.
When you disable Security Hub, your existing findings and insights and any Security Hub configuration settings are deleted after 90 days and cannot be recovered. Any standards that were enabled are disabled, and your master and member account associations are removed.
If you want to save your existing findings, you must export them before you disable Security Hub.
disableSecurityHubRequest
- default CompletableFuture<DisableSecurityHubResponse> disableSecurityHub(Consumer<DisableSecurityHubRequest.Builder> disableSecurityHubRequest)
Disables Security Hub in your account only in the current Region. To disable Security Hub in all Regions, you must submit one request per Region where you have enabled Security Hub.
When you disable Security Hub for a master account, it doesn't disable Security Hub for any associated member accounts.
When you disable Security Hub, your existing findings and insights and any Security Hub configuration settings are deleted after 90 days and cannot be recovered. Any standards that were enabled are disabled, and your master and member account associations are removed.
If you want to save your existing findings, you must export them before you disable Security Hub.
This is a convenience which creates an instance of the DisableSecurityHubRequest.Builder
avoiding the
need to create one manually via DisableSecurityHubRequest.builder()
disableSecurityHubRequest
- A Consumer
that will call methods on DisableSecurityHubRequest.Builder
to create a
request.default CompletableFuture<DisableSecurityHubResponse> disableSecurityHub()
Disables Security Hub in your account only in the current Region. To disable Security Hub in all Regions, you must submit one request per Region where you have enabled Security Hub.
When you disable Security Hub for a master account, it doesn't disable Security Hub for any associated member accounts.
When you disable Security Hub, your existing findings and insights and any Security Hub configuration settings are deleted after 90 days and cannot be recovered. Any standards that were enabled are disabled, and your master and member account associations are removed.
If you want to save your existing findings, you must export them before you disable Security Hub.
default CompletableFuture<DisassociateFromMasterAccountResponse> disassociateFromMasterAccount(DisassociateFromMasterAccountRequest disassociateFromMasterAccountRequest)
Disassociates the current Security Hub member account from the associated master account.
This operation is only used by accounts that are not part of an organization. For organization accounts, only the master account (the designated Security Hub administrator) can disassociate a member account.
disassociateFromMasterAccountRequest
- default CompletableFuture<DisassociateFromMasterAccountResponse> disassociateFromMasterAccount(Consumer<DisassociateFromMasterAccountRequest.Builder> disassociateFromMasterAccountRequest)
Disassociates the current Security Hub member account from the associated master account.
This operation is only used by accounts that are not part of an organization. For organization accounts, only the master account (the designated Security Hub administrator) can disassociate a member account.
This is a convenience which creates an instance of the DisassociateFromMasterAccountRequest.Builder
avoiding the need to create one manually via DisassociateFromMasterAccountRequest.builder()
disassociateFromMasterAccountRequest
- A Consumer
that will call methods on DisassociateFromMasterAccountRequest.Builder
to
create a request.default CompletableFuture<DisassociateMembersResponse> disassociateMembers(DisassociateMembersRequest disassociateMembersRequest)
Disassociates the specified member accounts from the associated master account.
Can be used to disassociate both accounts that are in an organization and accounts that were invited manually.
disassociateMembersRequest
- default CompletableFuture<DisassociateMembersResponse> disassociateMembers(Consumer<DisassociateMembersRequest.Builder> disassociateMembersRequest)
Disassociates the specified member accounts from the associated master account.
Can be used to disassociate both accounts that are in an organization and accounts that were invited manually.
This is a convenience which creates an instance of the DisassociateMembersRequest.Builder
avoiding the
need to create one manually via DisassociateMembersRequest.builder()
disassociateMembersRequest
- A Consumer
that will call methods on DisassociateMembersRequest.Builder
to create a
request.default CompletableFuture<EnableImportFindingsForProductResponse> enableImportFindingsForProduct(EnableImportFindingsForProductRequest enableImportFindingsForProductRequest)
Enables the integration of a partner product with Security Hub. Integrated products send findings to Security Hub.
When you enable a product integration, a permissions policy that grants permission for the product to send findings to Security Hub is applied.
enableImportFindingsForProductRequest
- default CompletableFuture<EnableImportFindingsForProductResponse> enableImportFindingsForProduct(Consumer<EnableImportFindingsForProductRequest.Builder> enableImportFindingsForProductRequest)
Enables the integration of a partner product with Security Hub. Integrated products send findings to Security Hub.
When you enable a product integration, a permissions policy that grants permission for the product to send findings to Security Hub is applied.
This is a convenience which creates an instance of the EnableImportFindingsForProductRequest.Builder
avoiding the need to create one manually via EnableImportFindingsForProductRequest.builder()
enableImportFindingsForProductRequest
- A Consumer
that will call methods on EnableImportFindingsForProductRequest.Builder
to
create a request.default CompletableFuture<EnableOrganizationAdminAccountResponse> enableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest enableOrganizationAdminAccountRequest)
Designates the Security Hub administrator account for an organization. Can only be called by the organization management account.
enableOrganizationAdminAccountRequest
- default CompletableFuture<EnableOrganizationAdminAccountResponse> enableOrganizationAdminAccount(Consumer<EnableOrganizationAdminAccountRequest.Builder> enableOrganizationAdminAccountRequest)
Designates the Security Hub administrator account for an organization. Can only be called by the organization management account.
This is a convenience which creates an instance of the EnableOrganizationAdminAccountRequest.Builder
avoiding the need to create one manually via EnableOrganizationAdminAccountRequest.builder()
enableOrganizationAdminAccountRequest
- A Consumer
that will call methods on EnableOrganizationAdminAccountRequest.Builder
to
create a request.default CompletableFuture<EnableSecurityHubResponse> enableSecurityHub(EnableSecurityHubRequest enableSecurityHubRequest)
Enables Security Hub for your account in the current Region or the Region you specify in the request.
When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from other services that are integrated with Security Hub.
When you use the EnableSecurityHub
operation to enable Security Hub, you also automatically enable
the following standards.
CIS AWS Foundations
AWS Foundational Security Best Practices
You do not enable the Payment Card Industry Data Security Standard (PCI DSS) standard.
To not enable the automatically enabled standards, set EnableDefaultStandards
to false
.
After you enable Security Hub, to enable a standard, use the BatchEnableStandards
operation. To disable a standard, use the BatchDisableStandards
operation.
To learn more, see Setting Up AWS Security Hub in the AWS Security Hub User Guide.
enableSecurityHubRequest
- default CompletableFuture<EnableSecurityHubResponse> enableSecurityHub(Consumer<EnableSecurityHubRequest.Builder> enableSecurityHubRequest)
Enables Security Hub for your account in the current Region or the Region you specify in the request.
When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from other services that are integrated with Security Hub.
When you use the EnableSecurityHub
operation to enable Security Hub, you also automatically enable
the following standards.
CIS AWS Foundations
AWS Foundational Security Best Practices
You do not enable the Payment Card Industry Data Security Standard (PCI DSS) standard.
To not enable the automatically enabled standards, set EnableDefaultStandards
to false
.
After you enable Security Hub, to enable a standard, use the BatchEnableStandards
operation. To disable a standard, use the BatchDisableStandards
operation.
To learn more, see Setting Up AWS Security Hub in the AWS Security Hub User Guide.
This is a convenience which creates an instance of the EnableSecurityHubRequest.Builder
avoiding the need
to create one manually via EnableSecurityHubRequest.builder()
enableSecurityHubRequest
- A Consumer
that will call methods on EnableSecurityHubRequest.Builder
to create a request.default CompletableFuture<EnableSecurityHubResponse> enableSecurityHub()
Enables Security Hub for your account in the current Region or the Region you specify in the request.
When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from other services that are integrated with Security Hub.
When you use the EnableSecurityHub
operation to enable Security Hub, you also automatically enable
the following standards.
CIS AWS Foundations
AWS Foundational Security Best Practices
You do not enable the Payment Card Industry Data Security Standard (PCI DSS) standard.
To not enable the automatically enabled standards, set EnableDefaultStandards
to false
.
After you enable Security Hub, to enable a standard, use the BatchEnableStandards
operation. To disable a standard, use the BatchDisableStandards
operation.
To learn more, see Setting Up AWS Security Hub in the AWS Security Hub User Guide.
default CompletableFuture<GetEnabledStandardsResponse> getEnabledStandards(GetEnabledStandardsRequest getEnabledStandardsRequest)
Returns a list of the standards that are currently enabled.
getEnabledStandardsRequest
- default CompletableFuture<GetEnabledStandardsResponse> getEnabledStandards(Consumer<GetEnabledStandardsRequest.Builder> getEnabledStandardsRequest)
Returns a list of the standards that are currently enabled.
This is a convenience which creates an instance of the GetEnabledStandardsRequest.Builder
avoiding the
need to create one manually via GetEnabledStandardsRequest.builder()
getEnabledStandardsRequest
- A Consumer
that will call methods on GetEnabledStandardsRequest.Builder
to create a
request.default GetEnabledStandardsPublisher getEnabledStandardsPaginator(GetEnabledStandardsRequest getEnabledStandardsRequest)
Returns a list of the standards that are currently enabled.
This is a variant of
getEnabledStandards(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.GetEnabledStandardsPublisher publisher = client.getEnabledStandardsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.GetEnabledStandardsPublisher publisher = client.getEnabledStandardsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getEnabledStandards(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsRequest)
operation.
getEnabledStandardsRequest
- default GetEnabledStandardsPublisher getEnabledStandardsPaginator(Consumer<GetEnabledStandardsRequest.Builder> getEnabledStandardsRequest)
Returns a list of the standards that are currently enabled.
This is a variant of
getEnabledStandards(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.GetEnabledStandardsPublisher publisher = client.getEnabledStandardsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.GetEnabledStandardsPublisher publisher = client.getEnabledStandardsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getEnabledStandards(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsRequest)
operation.
This is a convenience which creates an instance of the GetEnabledStandardsRequest.Builder
avoiding the
need to create one manually via GetEnabledStandardsRequest.builder()
getEnabledStandardsRequest
- A Consumer
that will call methods on GetEnabledStandardsRequest.Builder
to create a
request.default CompletableFuture<GetFindingsResponse> getFindings(GetFindingsRequest getFindingsRequest)
Returns a list of findings that match the specified criteria.
getFindingsRequest
- default CompletableFuture<GetFindingsResponse> getFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest)
Returns a list of findings that match the specified criteria.
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.default CompletableFuture<GetFindingsResponse> getFindings()
Returns a list of findings that match the specified criteria.
default GetFindingsPublisher getFindingsPaginator()
Returns a list of findings that match the specified criteria.
This is a variant of getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetFindingsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.GetFindingsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest)
operation.
default GetFindingsPublisher getFindingsPaginator(GetFindingsRequest getFindingsRequest)
Returns a list of findings that match the specified criteria.
This is a variant of getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetFindingsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.GetFindingsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest)
operation.
getFindingsRequest
- default GetFindingsPublisher getFindingsPaginator(Consumer<GetFindingsRequest.Builder> getFindingsRequest)
Returns a list of findings that match the specified criteria.
This is a variant of getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetFindingsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.GetFindingsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest)
operation.
This is a convenience which creates an instance of the GetFindingsRequest.Builder
avoiding the need to
create one manually via GetFindingsRequest.builder()
getFindingsRequest
- A Consumer
that will call methods on GetFindingsRequest.Builder
to create a request.default CompletableFuture<GetInsightResultsResponse> getInsightResults(GetInsightResultsRequest getInsightResultsRequest)
Lists the results of the Security Hub insight specified by the insight ARN.
getInsightResultsRequest
- default CompletableFuture<GetInsightResultsResponse> getInsightResults(Consumer<GetInsightResultsRequest.Builder> getInsightResultsRequest)
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.default CompletableFuture<GetInsightsResponse> getInsights(GetInsightsRequest getInsightsRequest)
Lists and describes insights for the specified insight ARNs.
getInsightsRequest
- default CompletableFuture<GetInsightsResponse> getInsights(Consumer<GetInsightsRequest.Builder> getInsightsRequest)
Lists and describes insights for the specified insight ARNs.
This is a convenience which creates an instance of the GetInsightsRequest.Builder
avoiding the need to
create one manually via GetInsightsRequest.builder()
getInsightsRequest
- A Consumer
that will call methods on GetInsightsRequest.Builder
to create a request.default GetInsightsPublisher getInsightsPaginator(GetInsightsRequest getInsightsRequest)
Lists and describes insights for the specified insight ARNs.
This is a variant of getInsights(software.amazon.awssdk.services.securityhub.model.GetInsightsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.GetInsightsPublisher publisher = client.getInsightsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.GetInsightsPublisher publisher = client.getInsightsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetInsightsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.GetInsightsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getInsights(software.amazon.awssdk.services.securityhub.model.GetInsightsRequest)
operation.
getInsightsRequest
- default GetInsightsPublisher getInsightsPaginator(Consumer<GetInsightsRequest.Builder> getInsightsRequest)
Lists and describes insights for the specified insight ARNs.
This is a variant of getInsights(software.amazon.awssdk.services.securityhub.model.GetInsightsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.GetInsightsPublisher publisher = client.getInsightsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.GetInsightsPublisher publisher = client.getInsightsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetInsightsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.GetInsightsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getInsights(software.amazon.awssdk.services.securityhub.model.GetInsightsRequest)
operation.
This is a convenience which creates an instance of the GetInsightsRequest.Builder
avoiding the need to
create one manually via GetInsightsRequest.builder()
getInsightsRequest
- A Consumer
that will call methods on GetInsightsRequest.Builder
to create a request.default CompletableFuture<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.
getInvitationsCountRequest
- default CompletableFuture<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.
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.default CompletableFuture<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 CompletableFuture<GetMasterAccountResponse> getMasterAccount(GetMasterAccountRequest getMasterAccountRequest)
Provides the details for the Security Hub master account for the current member account.
Can be used by both member accounts that are in an organization and accounts that were invited manually.
getMasterAccountRequest
- default CompletableFuture<GetMasterAccountResponse> getMasterAccount(Consumer<GetMasterAccountRequest.Builder> getMasterAccountRequest)
Provides the details for the Security Hub master account for the current member account.
Can be used by both member accounts that are in an organization and accounts that were invited manually.
This is a convenience which creates an instance of the GetMasterAccountRequest.Builder
avoiding the need
to create one manually via GetMasterAccountRequest.builder()
getMasterAccountRequest
- A Consumer
that will call methods on GetMasterAccountRequest.Builder
to create a request.default CompletableFuture<GetMasterAccountResponse> getMasterAccount()
Provides the details for the Security Hub master account for the current member account.
Can be used by both member accounts that are in an organization and accounts that were invited manually.
default CompletableFuture<GetMembersResponse> getMembers(GetMembersRequest getMembersRequest)
Returns the details for the Security Hub member accounts for the specified account IDs.
A master account can be either a delegated Security Hub administrator account for an organization or a master account that enabled Security Hub manually.
The results include both member accounts that are in an organization and accounts that were invited manually.
getMembersRequest
- default CompletableFuture<GetMembersResponse> getMembers(Consumer<GetMembersRequest.Builder> getMembersRequest)
Returns the details for the Security Hub member accounts for the specified account IDs.
A master account can be either a delegated Security Hub administrator account for an organization or a master account that enabled Security Hub manually.
The results include both member accounts that are in an organization and accounts that were invited manually.
This is a convenience which creates an instance of the GetMembersRequest.Builder
avoiding the need to
create one manually via GetMembersRequest.builder()
getMembersRequest
- A Consumer
that will call methods on GetMembersRequest.Builder
to create a request.default CompletableFuture<InviteMembersResponse> inviteMembers(InviteMembersRequest inviteMembersRequest)
Invites other AWS accounts to become member accounts for the Security Hub master account that the invitation is sent from.
This operation is only used to invite accounts that do not belong to an organization. Organization accounts do not receive invitations.
Before you can use this action to invite a member, you must first use the CreateMembers
action to create the member account in Security Hub.
When the account owner enables Security Hub and accepts the invitation to become a member account, the master account can view the findings generated from the member account.
inviteMembersRequest
- default CompletableFuture<InviteMembersResponse> inviteMembers(Consumer<InviteMembersRequest.Builder> inviteMembersRequest)
Invites other AWS accounts to become member accounts for the Security Hub master account that the invitation is sent from.
This operation is only used to invite accounts that do not belong to an organization. Organization accounts do not receive invitations.
Before you can use this action to invite a member, you must first use the CreateMembers
action to create the member account in Security Hub.
When the account owner enables Security Hub and accepts the invitation to become a member account, the master account can view the findings generated from the member account.
This is a convenience which creates an instance of the InviteMembersRequest.Builder
avoiding the need to
create one manually via InviteMembersRequest.builder()
inviteMembersRequest
- A Consumer
that will call methods on InviteMembersRequest.Builder
to create a request.default CompletableFuture<ListEnabledProductsForImportResponse> listEnabledProductsForImport(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest)
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
listEnabledProductsForImportRequest
- default CompletableFuture<ListEnabledProductsForImportResponse> listEnabledProductsForImport(Consumer<ListEnabledProductsForImportRequest.Builder> listEnabledProductsForImportRequest)
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
This is a convenience which creates an instance of the ListEnabledProductsForImportRequest.Builder
avoiding the need to create one manually via ListEnabledProductsForImportRequest.builder()
listEnabledProductsForImportRequest
- A Consumer
that will call methods on ListEnabledProductsForImportRequest.Builder
to create
a request.default CompletableFuture<ListEnabledProductsForImportResponse> listEnabledProductsForImport()
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
default ListEnabledProductsForImportPublisher listEnabledProductsForImportPaginator()
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
This is a variant of
listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportPublisher publisher = client.listEnabledProductsForImportPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportPublisher publisher = client.listEnabledProductsForImportPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest)
operation.
default ListEnabledProductsForImportPublisher listEnabledProductsForImportPaginator(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest)
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
This is a variant of
listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportPublisher publisher = client.listEnabledProductsForImportPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportPublisher publisher = client.listEnabledProductsForImportPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest)
operation.
listEnabledProductsForImportRequest
- default ListEnabledProductsForImportPublisher listEnabledProductsForImportPaginator(Consumer<ListEnabledProductsForImportRequest.Builder> listEnabledProductsForImportRequest)
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
This is a variant of
listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportPublisher publisher = client.listEnabledProductsForImportPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportPublisher publisher = client.listEnabledProductsForImportPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest)
operation.
This is a convenience which creates an instance of the ListEnabledProductsForImportRequest.Builder
avoiding the need to create one manually via ListEnabledProductsForImportRequest.builder()
listEnabledProductsForImportRequest
- A Consumer
that will call methods on ListEnabledProductsForImportRequest.Builder
to create
a request.default CompletableFuture<ListInvitationsResponse> listInvitations(ListInvitationsRequest listInvitationsRequest)
Lists all Security Hub membership invitations that were sent to the current AWS account.
This operation is only used by accounts that do not belong to an organization. Organization accounts do not receive invitations.
listInvitationsRequest
- default CompletableFuture<ListInvitationsResponse> listInvitations(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest)
Lists all Security Hub membership invitations that were sent to the current AWS account.
This operation is only used by accounts that do not belong to an organization. Organization accounts do not receive invitations.
This is a convenience which creates an instance of the ListInvitationsRequest.Builder
avoiding the need
to create one manually via ListInvitationsRequest.builder()
listInvitationsRequest
- A Consumer
that will call methods on ListInvitationsRequest.Builder
to create a request.default CompletableFuture<ListInvitationsResponse> listInvitations()
Lists all Security Hub membership invitations that were sent to the current AWS account.
This operation is only used by accounts that do not belong to an organization. Organization accounts do not receive invitations.
default ListInvitationsPublisher listInvitationsPaginator()
Lists all Security Hub membership invitations that were sent to the current AWS account.
This operation is only used by accounts that do not belong to an organization. Organization accounts do not receive invitations.
This is a variant of
listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest)
operation.
default ListInvitationsPublisher listInvitationsPaginator(ListInvitationsRequest listInvitationsRequest)
Lists all Security Hub membership invitations that were sent to the current AWS account.
This operation is only used by accounts that do not belong to an organization. Organization accounts do not receive invitations.
This is a variant of
listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest)
operation.
listInvitationsRequest
- default ListInvitationsPublisher listInvitationsPaginator(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest)
Lists all Security Hub membership invitations that were sent to the current AWS account.
This operation is only used by accounts that do not belong to an organization. Organization accounts do not receive invitations.
This is a variant of
listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest)
operation.
This is a convenience which creates an instance of the ListInvitationsRequest.Builder
avoiding the need
to create one manually via ListInvitationsRequest.builder()
listInvitationsRequest
- A Consumer
that will call methods on ListInvitationsRequest.Builder
to create a request.default CompletableFuture<ListMembersResponse> listMembers(ListMembersRequest listMembersRequest)
Lists details about all member accounts for the current Security Hub master account.
The results include both member accounts that belong to an organization and member accounts that were invited manually.
listMembersRequest
- default CompletableFuture<ListMembersResponse> listMembers(Consumer<ListMembersRequest.Builder> listMembersRequest)
Lists details about all member accounts for the current Security Hub master account.
The results include both member accounts that belong to an organization and member accounts that were invited manually.
This is a convenience which creates an instance of the ListMembersRequest.Builder
avoiding the need to
create one manually via ListMembersRequest.builder()
listMembersRequest
- A Consumer
that will call methods on ListMembersRequest.Builder
to create a request.default CompletableFuture<ListMembersResponse> listMembers()
Lists details about all member accounts for the current Security Hub master account.
The results include both member accounts that belong to an organization and member accounts that were invited manually.
default ListMembersPublisher listMembersPaginator()
Lists details about all member accounts for the current Security Hub master account.
The results include both member accounts that belong to an organization and member accounts that were invited manually.
This is a variant of listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListMembersResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.ListMembersResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest)
operation.
default ListMembersPublisher listMembersPaginator(ListMembersRequest listMembersRequest)
Lists details about all member accounts for the current Security Hub master account.
The results include both member accounts that belong to an organization and member accounts that were invited manually.
This is a variant of listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListMembersResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.ListMembersResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest)
operation.
listMembersRequest
- default ListMembersPublisher listMembersPaginator(Consumer<ListMembersRequest.Builder> listMembersRequest)
Lists details about all member accounts for the current Security Hub master account.
The results include both member accounts that belong to an organization and member accounts that were invited manually.
This is a variant of listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListMembersResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.ListMembersResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest)
operation.
This is a convenience which creates an instance of the ListMembersRequest.Builder
avoiding the need to
create one manually via ListMembersRequest.builder()
listMembersRequest
- A Consumer
that will call methods on ListMembersRequest.Builder
to create a request.default CompletableFuture<ListOrganizationAdminAccountsResponse> listOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest)
Lists the Security Hub administrator accounts. Can only be called by the organization management account.
listOrganizationAdminAccountsRequest
- default CompletableFuture<ListOrganizationAdminAccountsResponse> listOrganizationAdminAccounts(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest)
Lists the Security Hub administrator accounts. Can only be called by the organization management account.
This is a convenience which creates an instance of the ListOrganizationAdminAccountsRequest.Builder
avoiding the need to create one manually via ListOrganizationAdminAccountsRequest.builder()
listOrganizationAdminAccountsRequest
- A Consumer
that will call methods on ListOrganizationAdminAccountsRequest.Builder
to
create a request.default ListOrganizationAdminAccountsPublisher listOrganizationAdminAccountsPaginator(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest)
Lists the Security Hub administrator accounts. Can only be called by the organization management account.
This is a variant of
listOrganizationAdminAccounts(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.ListOrganizationAdminAccountsPublisher publisher = client.listOrganizationAdminAccountsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.ListOrganizationAdminAccountsPublisher publisher = client.listOrganizationAdminAccountsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationAdminAccounts(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsRequest)
operation.
listOrganizationAdminAccountsRequest
- default ListOrganizationAdminAccountsPublisher listOrganizationAdminAccountsPaginator(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest)
Lists the Security Hub administrator accounts. Can only be called by the organization management account.
This is a variant of
listOrganizationAdminAccounts(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.securityhub.paginators.ListOrganizationAdminAccountsPublisher publisher = client.listOrganizationAdminAccountsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.securityhub.paginators.ListOrganizationAdminAccountsPublisher publisher = client.listOrganizationAdminAccountsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationAdminAccounts(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsRequest)
operation.
This is a convenience which creates an instance of the ListOrganizationAdminAccountsRequest.Builder
avoiding the need to create one manually via ListOrganizationAdminAccountsRequest.builder()
listOrganizationAdminAccountsRequest
- A Consumer
that will call methods on ListOrganizationAdminAccountsRequest.Builder
to
create a request.default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns a list of tags associated with a resource.
listTagsForResourceRequest
- default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Returns a list of tags associated with a resource.
This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder
avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest
- A Consumer
that will call methods on ListTagsForResourceRequest.Builder
to create a
request.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
Adds one or more tags to a resource.
tagResourceRequest
- default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds one or more tags to a resource.
This is a convenience which creates an instance of the TagResourceRequest.Builder
avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest
- A Consumer
that will call methods on TagResourceRequest.Builder
to create a request.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Removes one or more tags from a resource.
untagResourceRequest
- default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes one or more tags from a resource.
This is a convenience which creates an instance of the UntagResourceRequest.Builder
avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest
- A Consumer
that will call methods on UntagResourceRequest.Builder
to create a request.default CompletableFuture<UpdateActionTargetResponse> updateActionTarget(UpdateActionTargetRequest updateActionTargetRequest)
Updates the name and description of a custom action target in Security Hub.
updateActionTargetRequest
- default CompletableFuture<UpdateActionTargetResponse> updateActionTarget(Consumer<UpdateActionTargetRequest.Builder> updateActionTargetRequest)
Updates the name and description of a custom action target in Security Hub.
This is a convenience which creates an instance of the UpdateActionTargetRequest.Builder
avoiding the
need to create one manually via UpdateActionTargetRequest.builder()
updateActionTargetRequest
- A Consumer
that will call methods on UpdateActionTargetRequest.Builder
to create a
request.default CompletableFuture<UpdateFindingsResponse> updateFindings(UpdateFindingsRequest updateFindingsRequest)
UpdateFindings
is deprecated. Instead of UpdateFindings
, use
BatchUpdateFindings
.
Updates the Note
and RecordState
of the Security Hub-aggregated findings that the
filter attributes specify. Any member account that can view the finding also sees the update to the finding.
updateFindingsRequest
- default CompletableFuture<UpdateFindingsResponse> updateFindings(Consumer<UpdateFindingsRequest.Builder> updateFindingsRequest)
UpdateFindings
is deprecated. Instead of UpdateFindings
, use
BatchUpdateFindings
.
Updates the Note
and RecordState
of the Security Hub-aggregated findings that the
filter attributes specify. Any member account that can view the finding also sees the update to the finding.
This is a convenience which creates an instance of the UpdateFindingsRequest.Builder
avoiding the need to
create one manually via UpdateFindingsRequest.builder()
updateFindingsRequest
- A Consumer
that will call methods on UpdateFindingsRequest.Builder
to create a request.default CompletableFuture<UpdateInsightResponse> updateInsight(UpdateInsightRequest updateInsightRequest)
Updates the Security Hub insight identified by the specified insight ARN.
updateInsightRequest
- default CompletableFuture<UpdateInsightResponse> updateInsight(Consumer<UpdateInsightRequest.Builder> updateInsightRequest)
Updates the Security Hub insight identified by the specified insight ARN.
This is a convenience which creates an instance of the UpdateInsightRequest.Builder
avoiding the need to
create one manually via UpdateInsightRequest.builder()
updateInsightRequest
- A Consumer
that will call methods on UpdateInsightRequest.Builder
to create a request.default CompletableFuture<UpdateOrganizationConfigurationResponse> updateOrganizationConfiguration(UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest)
Used to update the configuration related to Organizations. Can only be called from a Security Hub administrator account.
updateOrganizationConfigurationRequest
- default CompletableFuture<UpdateOrganizationConfigurationResponse> updateOrganizationConfiguration(Consumer<UpdateOrganizationConfigurationRequest.Builder> updateOrganizationConfigurationRequest)
Used to update the configuration related to Organizations. Can only be called from a Security Hub administrator account.
This is a convenience which creates an instance of the UpdateOrganizationConfigurationRequest.Builder
avoiding the need to create one manually via UpdateOrganizationConfigurationRequest.builder()
updateOrganizationConfigurationRequest
- A Consumer
that will call methods on UpdateOrganizationConfigurationRequest.Builder
to
create a request.default CompletableFuture<UpdateSecurityHubConfigurationResponse> updateSecurityHubConfiguration(UpdateSecurityHubConfigurationRequest updateSecurityHubConfigurationRequest)
Updates configuration options for Security Hub.
updateSecurityHubConfigurationRequest
- default CompletableFuture<UpdateSecurityHubConfigurationResponse> updateSecurityHubConfiguration(Consumer<UpdateSecurityHubConfigurationRequest.Builder> updateSecurityHubConfigurationRequest)
Updates configuration options for Security Hub.
This is a convenience which creates an instance of the UpdateSecurityHubConfigurationRequest.Builder
avoiding the need to create one manually via UpdateSecurityHubConfigurationRequest.builder()
updateSecurityHubConfigurationRequest
- A Consumer
that will call methods on UpdateSecurityHubConfigurationRequest.Builder
to
create a request.default CompletableFuture<UpdateStandardsControlResponse> updateStandardsControl(UpdateStandardsControlRequest updateStandardsControlRequest)
Used to control whether an individual security standard control is enabled or disabled.
updateStandardsControlRequest
- default CompletableFuture<UpdateStandardsControlResponse> updateStandardsControl(Consumer<UpdateStandardsControlRequest.Builder> updateStandardsControlRequest)
Used to control whether an individual security standard control is enabled or disabled.
This is a convenience which creates an instance of the UpdateStandardsControlRequest.Builder
avoiding the
need to create one manually via UpdateStandardsControlRequest.builder()
updateStandardsControlRequest
- A Consumer
that will call methods on UpdateStandardsControlRequest.Builder
to create a
request.