Interface Inspector2Client
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
Amazon Inspector is a vulnerability discovery service that automates continuous scanning for security vulnerabilities within your Amazon EC2, Amazon ECR, and Amazon Web Services Lambda environments.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptiondefault AssociateMemberResponse
associateMember
(Consumer<AssociateMemberRequest.Builder> associateMemberRequest) Associates an Amazon Web Services account with an Amazon Inspector delegated administrator.default AssociateMemberResponse
associateMember
(AssociateMemberRequest associateMemberRequest) Associates an Amazon Web Services account with an Amazon Inspector delegated administrator.default BatchGetAccountStatusResponse
batchGetAccountStatus
(Consumer<BatchGetAccountStatusRequest.Builder> batchGetAccountStatusRequest) Retrieves the Amazon Inspector status of multiple Amazon Web Services accounts within your environment.default BatchGetAccountStatusResponse
batchGetAccountStatus
(BatchGetAccountStatusRequest batchGetAccountStatusRequest) Retrieves the Amazon Inspector status of multiple Amazon Web Services accounts within your environment.default BatchGetCodeSnippetResponse
batchGetCodeSnippet
(Consumer<BatchGetCodeSnippetRequest.Builder> batchGetCodeSnippetRequest) Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in.default BatchGetCodeSnippetResponse
batchGetCodeSnippet
(BatchGetCodeSnippetRequest batchGetCodeSnippetRequest) Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in.default BatchGetFindingDetailsResponse
batchGetFindingDetails
(Consumer<BatchGetFindingDetailsRequest.Builder> batchGetFindingDetailsRequest) Gets vulnerability details for findings.default BatchGetFindingDetailsResponse
batchGetFindingDetails
(BatchGetFindingDetailsRequest batchGetFindingDetailsRequest) Gets vulnerability details for findings.default BatchGetFreeTrialInfoResponse
batchGetFreeTrialInfo
(Consumer<BatchGetFreeTrialInfoRequest.Builder> batchGetFreeTrialInfoRequest) Gets free trial status for multiple Amazon Web Services accounts.default BatchGetFreeTrialInfoResponse
batchGetFreeTrialInfo
(BatchGetFreeTrialInfoRequest batchGetFreeTrialInfoRequest) Gets free trial status for multiple Amazon Web Services accounts.batchGetMemberEc2DeepInspectionStatus
(Consumer<BatchGetMemberEc2DeepInspectionStatusRequest.Builder> batchGetMemberEc2DeepInspectionStatusRequest) Retrieves Amazon Inspector deep inspection activation status of multiple member accounts within your organization.batchGetMemberEc2DeepInspectionStatus
(BatchGetMemberEc2DeepInspectionStatusRequest batchGetMemberEc2DeepInspectionStatusRequest) Retrieves Amazon Inspector deep inspection activation status of multiple member accounts within your organization.batchUpdateMemberEc2DeepInspectionStatus
(Consumer<BatchUpdateMemberEc2DeepInspectionStatusRequest.Builder> batchUpdateMemberEc2DeepInspectionStatusRequest) Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your organization.batchUpdateMemberEc2DeepInspectionStatus
(BatchUpdateMemberEc2DeepInspectionStatusRequest batchUpdateMemberEc2DeepInspectionStatusRequest) Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your organization.static Inspector2ClientBuilder
builder()
Create a builder that can be used to configure and create aInspector2Client
.default CancelFindingsReportResponse
cancelFindingsReport
(Consumer<CancelFindingsReportRequest.Builder> cancelFindingsReportRequest) Cancels the given findings report.default CancelFindingsReportResponse
cancelFindingsReport
(CancelFindingsReportRequest cancelFindingsReportRequest) Cancels the given findings report.default CancelSbomExportResponse
cancelSbomExport
(Consumer<CancelSbomExportRequest.Builder> cancelSbomExportRequest) Cancels a software bill of materials (SBOM) report.default CancelSbomExportResponse
cancelSbomExport
(CancelSbomExportRequest cancelSbomExportRequest) Cancels a software bill of materials (SBOM) report.static Inspector2Client
create()
Create aInspector2Client
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CreateFilterResponse
createFilter
(Consumer<CreateFilterRequest.Builder> createFilterRequest) Creates a filter resource using specified filter criteria.default CreateFilterResponse
createFilter
(CreateFilterRequest createFilterRequest) Creates a filter resource using specified filter criteria.default CreateFindingsReportResponse
createFindingsReport
(Consumer<CreateFindingsReportRequest.Builder> createFindingsReportRequest) Creates a finding report.default CreateFindingsReportResponse
createFindingsReport
(CreateFindingsReportRequest createFindingsReportRequest) Creates a finding report.default CreateSbomExportResponse
createSbomExport
(Consumer<CreateSbomExportRequest.Builder> createSbomExportRequest) Creates a software bill of materials (SBOM) report.default CreateSbomExportResponse
createSbomExport
(CreateSbomExportRequest createSbomExportRequest) Creates a software bill of materials (SBOM) report.default DeleteFilterResponse
deleteFilter
(Consumer<DeleteFilterRequest.Builder> deleteFilterRequest) Deletes a filter resource.default DeleteFilterResponse
deleteFilter
(DeleteFilterRequest deleteFilterRequest) Deletes a filter resource.describeOrganizationConfiguration
(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest) Describe Amazon Inspector configuration settings for an Amazon Web Services organization.describeOrganizationConfiguration
(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest) Describe Amazon Inspector configuration settings for an Amazon Web Services organization.default DisableResponse
disable
(Consumer<DisableRequest.Builder> disableRequest) Disables Amazon Inspector scans for one or more Amazon Web Services accounts.default DisableResponse
disable
(DisableRequest disableRequest) Disables Amazon Inspector scans for one or more Amazon Web Services accounts.disableDelegatedAdminAccount
(Consumer<DisableDelegatedAdminAccountRequest.Builder> disableDelegatedAdminAccountRequest) Disables the Amazon Inspector delegated administrator for your organization.disableDelegatedAdminAccount
(DisableDelegatedAdminAccountRequest disableDelegatedAdminAccountRequest) Disables the Amazon Inspector delegated administrator for your organization.default DisassociateMemberResponse
disassociateMember
(Consumer<DisassociateMemberRequest.Builder> disassociateMemberRequest) Disassociates a member account from an Amazon Inspector delegated administrator.default DisassociateMemberResponse
disassociateMember
(DisassociateMemberRequest disassociateMemberRequest) Disassociates a member account from an Amazon Inspector delegated administrator.default EnableResponse
enable
(Consumer<EnableRequest.Builder> enableRequest) Enables Amazon Inspector scans for one or more Amazon Web Services accounts.default EnableResponse
enable
(EnableRequest enableRequest) Enables Amazon Inspector scans for one or more Amazon Web Services accounts.enableDelegatedAdminAccount
(Consumer<EnableDelegatedAdminAccountRequest.Builder> enableDelegatedAdminAccountRequest) Enables the Amazon Inspector delegated administrator for your Organizations organization.enableDelegatedAdminAccount
(EnableDelegatedAdminAccountRequest enableDelegatedAdminAccountRequest) Enables the Amazon Inspector delegated administrator for your Organizations organization.default GetConfigurationResponse
getConfiguration
(Consumer<GetConfigurationRequest.Builder> getConfigurationRequest) Retrieves setting configurations for Inspector scans.default GetConfigurationResponse
getConfiguration
(GetConfigurationRequest getConfigurationRequest) Retrieves setting configurations for Inspector scans.default GetDelegatedAdminAccountResponse
getDelegatedAdminAccount
(Consumer<GetDelegatedAdminAccountRequest.Builder> getDelegatedAdminAccountRequest) Retrieves information about the Amazon Inspector delegated administrator for your organization.default GetDelegatedAdminAccountResponse
getDelegatedAdminAccount
(GetDelegatedAdminAccountRequest getDelegatedAdminAccountRequest) Retrieves information about the Amazon Inspector delegated administrator for your organization.getEc2DeepInspectionConfiguration
(Consumer<GetEc2DeepInspectionConfigurationRequest.Builder> getEc2DeepInspectionConfigurationRequest) Retrieves the activation status of Amazon Inspector deep inspection and custom paths associated with your account.getEc2DeepInspectionConfiguration
(GetEc2DeepInspectionConfigurationRequest getEc2DeepInspectionConfigurationRequest) Retrieves the activation status of Amazon Inspector deep inspection and custom paths associated with your account.default GetEncryptionKeyResponse
getEncryptionKey
(Consumer<GetEncryptionKeyRequest.Builder> getEncryptionKeyRequest) Gets an encryption key.default GetEncryptionKeyResponse
getEncryptionKey
(GetEncryptionKeyRequest getEncryptionKeyRequest) Gets an encryption key.default GetFindingsReportStatusResponse
getFindingsReportStatus
(Consumer<GetFindingsReportStatusRequest.Builder> getFindingsReportStatusRequest) Gets the status of a findings report.default GetFindingsReportStatusResponse
getFindingsReportStatus
(GetFindingsReportStatusRequest getFindingsReportStatusRequest) Gets the status of a findings report.default GetMemberResponse
getMember
(Consumer<GetMemberRequest.Builder> getMemberRequest) Gets member information for your organization.default GetMemberResponse
getMember
(GetMemberRequest getMemberRequest) Gets member information for your organization.default GetSbomExportResponse
getSbomExport
(Consumer<GetSbomExportRequest.Builder> getSbomExportRequest) Gets details of a software bill of materials (SBOM) report.default GetSbomExportResponse
getSbomExport
(GetSbomExportRequest getSbomExportRequest) Gets details of a software bill of materials (SBOM) report.default ListAccountPermissionsResponse
listAccountPermissions
(Consumer<ListAccountPermissionsRequest.Builder> listAccountPermissionsRequest) Lists the permissions an account has to configure Amazon Inspector.default ListAccountPermissionsResponse
listAccountPermissions
(ListAccountPermissionsRequest listAccountPermissionsRequest) Lists the permissions an account has to configure Amazon Inspector.default ListAccountPermissionsIterable
listAccountPermissionsPaginator
(Consumer<ListAccountPermissionsRequest.Builder> listAccountPermissionsRequest) Lists the permissions an account has to configure Amazon Inspector.default ListAccountPermissionsIterable
listAccountPermissionsPaginator
(ListAccountPermissionsRequest listAccountPermissionsRequest) Lists the permissions an account has to configure Amazon Inspector.default ListCoverageResponse
listCoverage
(Consumer<ListCoverageRequest.Builder> listCoverageRequest) Lists coverage details for you environment.default ListCoverageResponse
listCoverage
(ListCoverageRequest listCoverageRequest) Lists coverage details for you environment.default ListCoverageIterable
listCoveragePaginator
(Consumer<ListCoverageRequest.Builder> listCoverageRequest) Lists coverage details for you environment.default ListCoverageIterable
listCoveragePaginator
(ListCoverageRequest listCoverageRequest) Lists coverage details for you environment.default ListCoverageStatisticsResponse
listCoverageStatistics
(Consumer<ListCoverageStatisticsRequest.Builder> listCoverageStatisticsRequest) Lists Amazon Inspector coverage statistics for your environment.default ListCoverageStatisticsResponse
listCoverageStatistics
(ListCoverageStatisticsRequest listCoverageStatisticsRequest) Lists Amazon Inspector coverage statistics for your environment.default ListCoverageStatisticsIterable
listCoverageStatisticsPaginator
(Consumer<ListCoverageStatisticsRequest.Builder> listCoverageStatisticsRequest) Lists Amazon Inspector coverage statistics for your environment.default ListCoverageStatisticsIterable
listCoverageStatisticsPaginator
(ListCoverageStatisticsRequest listCoverageStatisticsRequest) Lists Amazon Inspector coverage statistics for your environment.listDelegatedAdminAccounts
(Consumer<ListDelegatedAdminAccountsRequest.Builder> listDelegatedAdminAccountsRequest) Lists information about the Amazon Inspector delegated administrator of your organization.listDelegatedAdminAccounts
(ListDelegatedAdminAccountsRequest listDelegatedAdminAccountsRequest) Lists information about the Amazon Inspector delegated administrator of your organization.listDelegatedAdminAccountsPaginator
(Consumer<ListDelegatedAdminAccountsRequest.Builder> listDelegatedAdminAccountsRequest) Lists information about the Amazon Inspector delegated administrator of your organization.listDelegatedAdminAccountsPaginator
(ListDelegatedAdminAccountsRequest listDelegatedAdminAccountsRequest) Lists information about the Amazon Inspector delegated administrator of your organization.default ListFiltersResponse
listFilters
(Consumer<ListFiltersRequest.Builder> listFiltersRequest) Lists the filters associated with your account.default ListFiltersResponse
listFilters
(ListFiltersRequest listFiltersRequest) Lists the filters associated with your account.default ListFiltersIterable
listFiltersPaginator
(Consumer<ListFiltersRequest.Builder> listFiltersRequest) Lists the filters associated with your account.default ListFiltersIterable
listFiltersPaginator
(ListFiltersRequest listFiltersRequest) Lists the filters associated with your account.default ListFindingAggregationsResponse
listFindingAggregations
(Consumer<ListFindingAggregationsRequest.Builder> listFindingAggregationsRequest) Lists aggregated finding data for your environment based on specific criteria.default ListFindingAggregationsResponse
listFindingAggregations
(ListFindingAggregationsRequest listFindingAggregationsRequest) Lists aggregated finding data for your environment based on specific criteria.default ListFindingAggregationsIterable
listFindingAggregationsPaginator
(Consumer<ListFindingAggregationsRequest.Builder> listFindingAggregationsRequest) Lists aggregated finding data for your environment based on specific criteria.default ListFindingAggregationsIterable
listFindingAggregationsPaginator
(ListFindingAggregationsRequest listFindingAggregationsRequest) Lists aggregated finding data for your environment based on specific criteria.default ListFindingsResponse
listFindings
(Consumer<ListFindingsRequest.Builder> listFindingsRequest) Lists findings for your environment.default ListFindingsResponse
listFindings
(ListFindingsRequest listFindingsRequest) Lists findings for your environment.default ListFindingsIterable
listFindingsPaginator
(Consumer<ListFindingsRequest.Builder> listFindingsRequest) Lists findings for your environment.default ListFindingsIterable
listFindingsPaginator
(ListFindingsRequest listFindingsRequest) Lists findings for your environment.default ListMembersResponse
listMembers
(Consumer<ListMembersRequest.Builder> listMembersRequest) List members associated with the Amazon Inspector delegated administrator for your organization.default ListMembersResponse
listMembers
(ListMembersRequest listMembersRequest) List members associated with the Amazon Inspector delegated administrator for your organization.default ListMembersIterable
listMembersPaginator
(Consumer<ListMembersRequest.Builder> listMembersRequest) List members associated with the Amazon Inspector delegated administrator for your organization.default ListMembersIterable
listMembersPaginator
(ListMembersRequest listMembersRequest) List members associated with the Amazon Inspector delegated administrator for your organization.default ListTagsForResourceResponse
listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists all tags attached to a given resource.default ListTagsForResourceResponse
listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Lists all tags attached to a given resource.default ListUsageTotalsResponse
listUsageTotals
(Consumer<ListUsageTotalsRequest.Builder> listUsageTotalsRequest) Lists the Amazon Inspector usage totals over the last 30 days.default ListUsageTotalsResponse
listUsageTotals
(ListUsageTotalsRequest listUsageTotalsRequest) Lists the Amazon Inspector usage totals over the last 30 days.default ListUsageTotalsIterable
listUsageTotalsPaginator
(Consumer<ListUsageTotalsRequest.Builder> listUsageTotalsRequest) Lists the Amazon Inspector usage totals over the last 30 days.default ListUsageTotalsIterable
listUsageTotalsPaginator
(ListUsageTotalsRequest listUsageTotalsRequest) Lists the Amazon Inspector usage totals over the last 30 days.default ResetEncryptionKeyResponse
resetEncryptionKey
(Consumer<ResetEncryptionKeyRequest.Builder> resetEncryptionKeyRequest) Resets an encryption key.default ResetEncryptionKeyResponse
resetEncryptionKey
(ResetEncryptionKeyRequest resetEncryptionKeyRequest) Resets an encryption key.default SearchVulnerabilitiesResponse
searchVulnerabilities
(Consumer<SearchVulnerabilitiesRequest.Builder> searchVulnerabilitiesRequest) Lists Amazon Inspector coverage details for a specific vulnerability.default SearchVulnerabilitiesResponse
searchVulnerabilities
(SearchVulnerabilitiesRequest searchVulnerabilitiesRequest) Lists Amazon Inspector coverage details for a specific vulnerability.default SearchVulnerabilitiesIterable
searchVulnerabilitiesPaginator
(Consumer<SearchVulnerabilitiesRequest.Builder> searchVulnerabilitiesRequest) Lists Amazon Inspector coverage details for a specific vulnerability.default SearchVulnerabilitiesIterable
searchVulnerabilitiesPaginator
(SearchVulnerabilitiesRequest searchVulnerabilitiesRequest) Lists Amazon Inspector coverage details for a specific vulnerability.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default TagResourceResponse
tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to a resource.default TagResourceResponse
tagResource
(TagResourceRequest tagResourceRequest) Adds tags to a resource.default UntagResourceResponse
untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a resource.default UntagResourceResponse
untagResource
(UntagResourceRequest untagResourceRequest) Removes tags from a resource.default UpdateConfigurationResponse
updateConfiguration
(Consumer<UpdateConfigurationRequest.Builder> updateConfigurationRequest) Updates setting configurations for your Amazon Inspector account.default UpdateConfigurationResponse
updateConfiguration
(UpdateConfigurationRequest updateConfigurationRequest) Updates setting configurations for your Amazon Inspector account.updateEc2DeepInspectionConfiguration
(Consumer<UpdateEc2DeepInspectionConfigurationRequest.Builder> updateEc2DeepInspectionConfigurationRequest) Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.updateEc2DeepInspectionConfiguration
(UpdateEc2DeepInspectionConfigurationRequest updateEc2DeepInspectionConfigurationRequest) Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.default UpdateEncryptionKeyResponse
updateEncryptionKey
(Consumer<UpdateEncryptionKeyRequest.Builder> updateEncryptionKeyRequest) Updates an encryption key.default UpdateEncryptionKeyResponse
updateEncryptionKey
(UpdateEncryptionKeyRequest updateEncryptionKeyRequest) Updates an encryption key.default UpdateFilterResponse
updateFilter
(Consumer<UpdateFilterRequest.Builder> updateFilterRequest) Specifies the action that is to be applied to the findings that match the filter.default UpdateFilterResponse
updateFilter
(UpdateFilterRequest updateFilterRequest) Specifies the action that is to be applied to the findings that match the filter.updateOrganizationConfiguration
(Consumer<UpdateOrganizationConfigurationRequest.Builder> updateOrganizationConfigurationRequest) Updates the configurations for your Amazon Inspector organization.updateOrganizationConfiguration
(UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest) Updates the configurations for your Amazon Inspector organization.updateOrgEc2DeepInspectionConfiguration
(Consumer<UpdateOrgEc2DeepInspectionConfigurationRequest.Builder> updateOrgEc2DeepInspectionConfigurationRequest) Updates the Amazon Inspector deep inspection custom paths for your organization.updateOrgEc2DeepInspectionConfiguration
(UpdateOrgEc2DeepInspectionConfigurationRequest updateOrgEc2DeepInspectionConfigurationRequest) Updates the Amazon Inspector deep inspection custom paths for your organization.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
associateMember
default AssociateMemberResponse associateMember(AssociateMemberRequest associateMemberRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Associates an Amazon Web Services account with an Amazon Inspector delegated administrator. An HTTP 200 response indicates the association was successfully started, but doesn’t indicate whether it was completed. You can check if the association completed by using ListMembers for multiple accounts or GetMembers for a single account.
- Parameters:
associateMemberRequest
-- Returns:
- Result of the AssociateMember operation returned by the service.
- See Also:
-
associateMember
default AssociateMemberResponse associateMember(Consumer<AssociateMemberRequest.Builder> associateMemberRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Associates an Amazon Web Services account with an Amazon Inspector delegated administrator. An HTTP 200 response indicates the association was successfully started, but doesn’t indicate whether it was completed. You can check if the association completed by using ListMembers for multiple accounts or GetMembers for a single account.
This is a convenience which creates an instance of the
AssociateMemberRequest.Builder
avoiding the need to create one manually viaAssociateMemberRequest.builder()
- Parameters:
associateMemberRequest
- AConsumer
that will call methods onAssociateMemberRequest.Builder
to create a request.- Returns:
- Result of the AssociateMember operation returned by the service.
- See Also:
-
batchGetAccountStatus
default BatchGetAccountStatusResponse batchGetAccountStatus(BatchGetAccountStatusRequest batchGetAccountStatusRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Retrieves the Amazon Inspector status of multiple Amazon Web Services accounts within your environment.
- Parameters:
batchGetAccountStatusRequest
-- Returns:
- Result of the BatchGetAccountStatus operation returned by the service.
- See Also:
-
batchGetAccountStatus
default BatchGetAccountStatusResponse batchGetAccountStatus(Consumer<BatchGetAccountStatusRequest.Builder> batchGetAccountStatusRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Retrieves the Amazon Inspector status of multiple Amazon Web Services accounts within your environment.
This is a convenience which creates an instance of the
BatchGetAccountStatusRequest.Builder
avoiding the need to create one manually viaBatchGetAccountStatusRequest.builder()
- Parameters:
batchGetAccountStatusRequest
- AConsumer
that will call methods onBatchGetAccountStatusRequest.Builder
to create a request.- Returns:
- Result of the BatchGetAccountStatus operation returned by the service.
- See Also:
-
batchGetCodeSnippet
default BatchGetCodeSnippetResponse batchGetCodeSnippet(BatchGetCodeSnippetRequest batchGetCodeSnippetRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in.
- Parameters:
batchGetCodeSnippetRequest
-- Returns:
- Result of the BatchGetCodeSnippet operation returned by the service.
- See Also:
-
batchGetCodeSnippet
default BatchGetCodeSnippetResponse batchGetCodeSnippet(Consumer<BatchGetCodeSnippetRequest.Builder> batchGetCodeSnippetRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in.
This is a convenience which creates an instance of the
BatchGetCodeSnippetRequest.Builder
avoiding the need to create one manually viaBatchGetCodeSnippetRequest.builder()
- Parameters:
batchGetCodeSnippetRequest
- AConsumer
that will call methods onBatchGetCodeSnippetRequest.Builder
to create a request.- Returns:
- Result of the BatchGetCodeSnippet operation returned by the service.
- See Also:
-
batchGetFindingDetails
default BatchGetFindingDetailsResponse batchGetFindingDetails(BatchGetFindingDetailsRequest batchGetFindingDetailsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Gets vulnerability details for findings.
- Parameters:
batchGetFindingDetailsRequest
-- Returns:
- Result of the BatchGetFindingDetails operation returned by the service.
- See Also:
-
batchGetFindingDetails
default BatchGetFindingDetailsResponse batchGetFindingDetails(Consumer<BatchGetFindingDetailsRequest.Builder> batchGetFindingDetailsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Gets vulnerability details for findings.
This is a convenience which creates an instance of the
BatchGetFindingDetailsRequest.Builder
avoiding the need to create one manually viaBatchGetFindingDetailsRequest.builder()
- Parameters:
batchGetFindingDetailsRequest
- AConsumer
that will call methods onBatchGetFindingDetailsRequest.Builder
to create a request.- Returns:
- Result of the BatchGetFindingDetails operation returned by the service.
- See Also:
-
batchGetFreeTrialInfo
default BatchGetFreeTrialInfoResponse batchGetFreeTrialInfo(BatchGetFreeTrialInfoRequest batchGetFreeTrialInfoRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Gets free trial status for multiple Amazon Web Services accounts.
- Parameters:
batchGetFreeTrialInfoRequest
-- Returns:
- Result of the BatchGetFreeTrialInfo operation returned by the service.
- See Also:
-
batchGetFreeTrialInfo
default BatchGetFreeTrialInfoResponse batchGetFreeTrialInfo(Consumer<BatchGetFreeTrialInfoRequest.Builder> batchGetFreeTrialInfoRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Gets free trial status for multiple Amazon Web Services accounts.
This is a convenience which creates an instance of the
BatchGetFreeTrialInfoRequest.Builder
avoiding the need to create one manually viaBatchGetFreeTrialInfoRequest.builder()
- Parameters:
batchGetFreeTrialInfoRequest
- AConsumer
that will call methods onBatchGetFreeTrialInfoRequest.Builder
to create a request.- Returns:
- Result of the BatchGetFreeTrialInfo operation returned by the service.
- See Also:
-
batchGetMemberEc2DeepInspectionStatus
default BatchGetMemberEc2DeepInspectionStatusResponse batchGetMemberEc2DeepInspectionStatus(BatchGetMemberEc2DeepInspectionStatusRequest batchGetMemberEc2DeepInspectionStatusRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Retrieves Amazon Inspector deep inspection activation status of multiple member accounts within your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.
- Parameters:
batchGetMemberEc2DeepInspectionStatusRequest
-- Returns:
- Result of the BatchGetMemberEc2DeepInspectionStatus operation returned by the service.
- See Also:
-
batchGetMemberEc2DeepInspectionStatus
default BatchGetMemberEc2DeepInspectionStatusResponse batchGetMemberEc2DeepInspectionStatus(Consumer<BatchGetMemberEc2DeepInspectionStatusRequest.Builder> batchGetMemberEc2DeepInspectionStatusRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Retrieves Amazon Inspector deep inspection activation status of multiple member accounts within your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.
This is a convenience which creates an instance of the
BatchGetMemberEc2DeepInspectionStatusRequest.Builder
avoiding the need to create one manually viaBatchGetMemberEc2DeepInspectionStatusRequest.builder()
- Parameters:
batchGetMemberEc2DeepInspectionStatusRequest
- AConsumer
that will call methods onBatchGetMemberEc2DeepInspectionStatusRequest.Builder
to create a request.- Returns:
- Result of the BatchGetMemberEc2DeepInspectionStatus operation returned by the service.
- See Also:
-
batchUpdateMemberEc2DeepInspectionStatus
default BatchUpdateMemberEc2DeepInspectionStatusResponse batchUpdateMemberEc2DeepInspectionStatus(BatchUpdateMemberEc2DeepInspectionStatusRequest batchUpdateMemberEc2DeepInspectionStatusRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.
- Parameters:
batchUpdateMemberEc2DeepInspectionStatusRequest
-- Returns:
- Result of the BatchUpdateMemberEc2DeepInspectionStatus operation returned by the service.
- See Also:
-
batchUpdateMemberEc2DeepInspectionStatus
default BatchUpdateMemberEc2DeepInspectionStatusResponse batchUpdateMemberEc2DeepInspectionStatus(Consumer<BatchUpdateMemberEc2DeepInspectionStatusRequest.Builder> batchUpdateMemberEc2DeepInspectionStatusRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.
This is a convenience which creates an instance of the
BatchUpdateMemberEc2DeepInspectionStatusRequest.Builder
avoiding the need to create one manually viaBatchUpdateMemberEc2DeepInspectionStatusRequest.builder()
- Parameters:
batchUpdateMemberEc2DeepInspectionStatusRequest
- AConsumer
that will call methods onBatchUpdateMemberEc2DeepInspectionStatusRequest.Builder
to create a request.- Returns:
- Result of the BatchUpdateMemberEc2DeepInspectionStatus operation returned by the service.
- See Also:
-
cancelFindingsReport
default CancelFindingsReportResponse cancelFindingsReport(CancelFindingsReportRequest cancelFindingsReportRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Cancels the given findings report.
- Parameters:
cancelFindingsReportRequest
-- Returns:
- Result of the CancelFindingsReport operation returned by the service.
- See Also:
-
cancelFindingsReport
default CancelFindingsReportResponse cancelFindingsReport(Consumer<CancelFindingsReportRequest.Builder> cancelFindingsReportRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Cancels the given findings report.
This is a convenience which creates an instance of the
CancelFindingsReportRequest.Builder
avoiding the need to create one manually viaCancelFindingsReportRequest.builder()
- Parameters:
cancelFindingsReportRequest
- AConsumer
that will call methods onCancelFindingsReportRequest.Builder
to create a request.- Returns:
- Result of the CancelFindingsReport operation returned by the service.
- See Also:
-
cancelSbomExport
default CancelSbomExportResponse cancelSbomExport(CancelSbomExportRequest cancelSbomExportRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Cancels a software bill of materials (SBOM) report.
- Parameters:
cancelSbomExportRequest
-- Returns:
- Result of the CancelSbomExport operation returned by the service.
- See Also:
-
cancelSbomExport
default CancelSbomExportResponse cancelSbomExport(Consumer<CancelSbomExportRequest.Builder> cancelSbomExportRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Cancels a software bill of materials (SBOM) report.
This is a convenience which creates an instance of the
CancelSbomExportRequest.Builder
avoiding the need to create one manually viaCancelSbomExportRequest.builder()
- Parameters:
cancelSbomExportRequest
- AConsumer
that will call methods onCancelSbomExportRequest.Builder
to create a request.- Returns:
- Result of the CancelSbomExport operation returned by the service.
- See Also:
-
createFilter
default CreateFilterResponse createFilter(CreateFilterRequest createFilterRequest) throws ServiceQuotaExceededException, BadRequestException, ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Creates a filter resource using specified filter criteria. When the filter action is set to
SUPPRESS
this action creates a suppression rule.- Parameters:
createFilterRequest
-- Returns:
- Result of the CreateFilter operation returned by the service.
- See Also:
-
createFilter
default CreateFilterResponse createFilter(Consumer<CreateFilterRequest.Builder> createFilterRequest) throws ServiceQuotaExceededException, BadRequestException, ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Creates a filter resource using specified filter criteria. When the filter action is set to
SUPPRESS
this action creates a suppression rule.
This is a convenience which creates an instance of the
CreateFilterRequest.Builder
avoiding the need to create one manually viaCreateFilterRequest.builder()
- Parameters:
createFilterRequest
- AConsumer
that will call methods onCreateFilterRequest.Builder
to create a request.- Returns:
- Result of the CreateFilter operation returned by the service.
- See Also:
-
createFindingsReport
default CreateFindingsReportResponse createFindingsReport(CreateFindingsReportRequest createFindingsReportRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Creates a finding report. By default only
ACTIVE
findings are returned in the report. To seeSUPRESSED
orCLOSED
findings you must specify a value for thefindingStatus
filter criteria.- Parameters:
createFindingsReportRequest
-- Returns:
- Result of the CreateFindingsReport operation returned by the service.
- See Also:
-
createFindingsReport
default CreateFindingsReportResponse createFindingsReport(Consumer<CreateFindingsReportRequest.Builder> createFindingsReportRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Creates a finding report. By default only
ACTIVE
findings are returned in the report. To seeSUPRESSED
orCLOSED
findings you must specify a value for thefindingStatus
filter criteria.
This is a convenience which creates an instance of the
CreateFindingsReportRequest.Builder
avoiding the need to create one manually viaCreateFindingsReportRequest.builder()
- Parameters:
createFindingsReportRequest
- AConsumer
that will call methods onCreateFindingsReportRequest.Builder
to create a request.- Returns:
- Result of the CreateFindingsReport operation returned by the service.
- See Also:
-
createSbomExport
default CreateSbomExportResponse createSbomExport(CreateSbomExportRequest createSbomExportRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Creates a software bill of materials (SBOM) report.
- Parameters:
createSbomExportRequest
-- Returns:
- Result of the CreateSbomExport operation returned by the service.
- See Also:
-
createSbomExport
default CreateSbomExportResponse createSbomExport(Consumer<CreateSbomExportRequest.Builder> createSbomExportRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Creates a software bill of materials (SBOM) report.
This is a convenience which creates an instance of the
CreateSbomExportRequest.Builder
avoiding the need to create one manually viaCreateSbomExportRequest.builder()
- Parameters:
createSbomExportRequest
- AConsumer
that will call methods onCreateSbomExportRequest.Builder
to create a request.- Returns:
- Result of the CreateSbomExport operation returned by the service.
- See Also:
-
deleteFilter
default DeleteFilterResponse deleteFilter(DeleteFilterRequest deleteFilterRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Deletes a filter resource.
- Parameters:
deleteFilterRequest
-- Returns:
- Result of the DeleteFilter operation returned by the service.
- See Also:
-
deleteFilter
default DeleteFilterResponse deleteFilter(Consumer<DeleteFilterRequest.Builder> deleteFilterRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Deletes a filter resource.
This is a convenience which creates an instance of the
DeleteFilterRequest.Builder
avoiding the need to create one manually viaDeleteFilterRequest.builder()
- Parameters:
deleteFilterRequest
- AConsumer
that will call methods onDeleteFilterRequest.Builder
to create a request.- Returns:
- Result of the DeleteFilter operation returned by the service.
- See Also:
-
describeOrganizationConfiguration
default DescribeOrganizationConfigurationResponse describeOrganizationConfiguration(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Describe Amazon Inspector configuration settings for an Amazon Web Services organization.
- Parameters:
describeOrganizationConfigurationRequest
-- Returns:
- Result of the DescribeOrganizationConfiguration operation returned by the service.
- See Also:
-
describeOrganizationConfiguration
default DescribeOrganizationConfigurationResponse describeOrganizationConfiguration(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Describe Amazon Inspector configuration settings for an Amazon Web Services organization.
This is a convenience which creates an instance of the
DescribeOrganizationConfigurationRequest.Builder
avoiding the need to create one manually viaDescribeOrganizationConfigurationRequest.builder()
- Parameters:
describeOrganizationConfigurationRequest
- AConsumer
that will call methods onDescribeOrganizationConfigurationRequest.Builder
to create a request.- Returns:
- Result of the DescribeOrganizationConfiguration operation returned by the service.
- See Also:
-
disable
default DisableResponse disable(DisableRequest disableRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Disables Amazon Inspector scans for one or more Amazon Web Services accounts. Disabling all scan types in an account disables the Amazon Inspector service.
- Parameters:
disableRequest
-- Returns:
- Result of the Disable operation returned by the service.
- See Also:
-
disable
default DisableResponse disable(Consumer<DisableRequest.Builder> disableRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Disables Amazon Inspector scans for one or more Amazon Web Services accounts. Disabling all scan types in an account disables the Amazon Inspector service.
This is a convenience which creates an instance of the
DisableRequest.Builder
avoiding the need to create one manually viaDisableRequest.builder()
- Parameters:
disableRequest
- AConsumer
that will call methods onDisableRequest.Builder
to create a request.- Returns:
- Result of the Disable operation returned by the service.
- See Also:
-
disableDelegatedAdminAccount
default DisableDelegatedAdminAccountResponse disableDelegatedAdminAccount(DisableDelegatedAdminAccountRequest disableDelegatedAdminAccountRequest) throws ConflictException, ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Disables the Amazon Inspector delegated administrator for your organization.
- Parameters:
disableDelegatedAdminAccountRequest
-- Returns:
- Result of the DisableDelegatedAdminAccount operation returned by the service.
- See Also:
-
disableDelegatedAdminAccount
default DisableDelegatedAdminAccountResponse disableDelegatedAdminAccount(Consumer<DisableDelegatedAdminAccountRequest.Builder> disableDelegatedAdminAccountRequest) throws ConflictException, ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Disables the Amazon Inspector delegated administrator for your organization.
This is a convenience which creates an instance of the
DisableDelegatedAdminAccountRequest.Builder
avoiding the need to create one manually viaDisableDelegatedAdminAccountRequest.builder()
- Parameters:
disableDelegatedAdminAccountRequest
- AConsumer
that will call methods onDisableDelegatedAdminAccountRequest.Builder
to create a request.- Returns:
- Result of the DisableDelegatedAdminAccount operation returned by the service.
- See Also:
-
disassociateMember
default DisassociateMemberResponse disassociateMember(DisassociateMemberRequest disassociateMemberRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Disassociates a member account from an Amazon Inspector delegated administrator.
- Parameters:
disassociateMemberRequest
-- Returns:
- Result of the DisassociateMember operation returned by the service.
- See Also:
-
disassociateMember
default DisassociateMemberResponse disassociateMember(Consumer<DisassociateMemberRequest.Builder> disassociateMemberRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Disassociates a member account from an Amazon Inspector delegated administrator.
This is a convenience which creates an instance of the
DisassociateMemberRequest.Builder
avoiding the need to create one manually viaDisassociateMemberRequest.builder()
- Parameters:
disassociateMemberRequest
- AConsumer
that will call methods onDisassociateMemberRequest.Builder
to create a request.- Returns:
- Result of the DisassociateMember operation returned by the service.
- See Also:
-
enable
default EnableResponse enable(EnableRequest enableRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Enables Amazon Inspector scans for one or more Amazon Web Services accounts.
- Parameters:
enableRequest
-- Returns:
- Result of the Enable operation returned by the service.
- See Also:
-
enable
default EnableResponse enable(Consumer<EnableRequest.Builder> enableRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Enables Amazon Inspector scans for one or more Amazon Web Services accounts.
This is a convenience which creates an instance of the
EnableRequest.Builder
avoiding the need to create one manually viaEnableRequest.builder()
- Parameters:
enableRequest
- AConsumer
that will call methods onEnableRequest.Builder
to create a request.- Returns:
- Result of the Enable operation returned by the service.
- See Also:
-
enableDelegatedAdminAccount
default EnableDelegatedAdminAccountResponse enableDelegatedAdminAccount(EnableDelegatedAdminAccountRequest enableDelegatedAdminAccountRequest) throws ConflictException, ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Enables the Amazon Inspector delegated administrator for your Organizations organization.
- Parameters:
enableDelegatedAdminAccountRequest
-- Returns:
- Result of the EnableDelegatedAdminAccount operation returned by the service.
- See Also:
-
enableDelegatedAdminAccount
default EnableDelegatedAdminAccountResponse enableDelegatedAdminAccount(Consumer<EnableDelegatedAdminAccountRequest.Builder> enableDelegatedAdminAccountRequest) throws ConflictException, ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Enables the Amazon Inspector delegated administrator for your Organizations organization.
This is a convenience which creates an instance of the
EnableDelegatedAdminAccountRequest.Builder
avoiding the need to create one manually viaEnableDelegatedAdminAccountRequest.builder()
- Parameters:
enableDelegatedAdminAccountRequest
- AConsumer
that will call methods onEnableDelegatedAdminAccountRequest.Builder
to create a request.- Returns:
- Result of the EnableDelegatedAdminAccount operation returned by the service.
- See Also:
-
getConfiguration
default GetConfigurationResponse getConfiguration(GetConfigurationRequest getConfigurationRequest) throws ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Retrieves setting configurations for Inspector scans.
- Parameters:
getConfigurationRequest
-- Returns:
- Result of the GetConfiguration operation returned by the service.
- See Also:
-
getConfiguration
default GetConfigurationResponse getConfiguration(Consumer<GetConfigurationRequest.Builder> getConfigurationRequest) throws ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Retrieves setting configurations for Inspector scans.
This is a convenience which creates an instance of the
GetConfigurationRequest.Builder
avoiding the need to create one manually viaGetConfigurationRequest.builder()
- Parameters:
getConfigurationRequest
- AConsumer
that will call methods onGetConfigurationRequest.Builder
to create a request.- Returns:
- Result of the GetConfiguration operation returned by the service.
- See Also:
-
getDelegatedAdminAccount
default GetDelegatedAdminAccountResponse getDelegatedAdminAccount(GetDelegatedAdminAccountRequest getDelegatedAdminAccountRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Retrieves information about the Amazon Inspector delegated administrator for your organization.
- Parameters:
getDelegatedAdminAccountRequest
-- Returns:
- Result of the GetDelegatedAdminAccount operation returned by the service.
- See Also:
-
getDelegatedAdminAccount
default GetDelegatedAdminAccountResponse getDelegatedAdminAccount(Consumer<GetDelegatedAdminAccountRequest.Builder> getDelegatedAdminAccountRequest) throws AccessDeniedException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Retrieves information about the Amazon Inspector delegated administrator for your organization.
This is a convenience which creates an instance of the
GetDelegatedAdminAccountRequest.Builder
avoiding the need to create one manually viaGetDelegatedAdminAccountRequest.builder()
- Parameters:
getDelegatedAdminAccountRequest
- AConsumer
that will call methods onGetDelegatedAdminAccountRequest.Builder
to create a request.- Returns:
- Result of the GetDelegatedAdminAccount operation returned by the service.
- See Also:
-
getEc2DeepInspectionConfiguration
default GetEc2DeepInspectionConfigurationResponse getEc2DeepInspectionConfiguration(GetEc2DeepInspectionConfigurationRequest getEc2DeepInspectionConfigurationRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Retrieves the activation status of Amazon Inspector deep inspection and custom paths associated with your account.
- Parameters:
getEc2DeepInspectionConfigurationRequest
-- Returns:
- Result of the GetEc2DeepInspectionConfiguration operation returned by the service.
- See Also:
-
getEc2DeepInspectionConfiguration
default GetEc2DeepInspectionConfigurationResponse getEc2DeepInspectionConfiguration(Consumer<GetEc2DeepInspectionConfigurationRequest.Builder> getEc2DeepInspectionConfigurationRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Retrieves the activation status of Amazon Inspector deep inspection and custom paths associated with your account.
This is a convenience which creates an instance of the
GetEc2DeepInspectionConfigurationRequest.Builder
avoiding the need to create one manually viaGetEc2DeepInspectionConfigurationRequest.builder()
- Parameters:
getEc2DeepInspectionConfigurationRequest
- AConsumer
that will call methods onGetEc2DeepInspectionConfigurationRequest.Builder
to create a request.- Returns:
- Result of the GetEc2DeepInspectionConfiguration operation returned by the service.
- See Also:
-
getEncryptionKey
default GetEncryptionKeyResponse getEncryptionKey(GetEncryptionKeyRequest getEncryptionKeyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Gets an encryption key.
- Parameters:
getEncryptionKeyRequest
-- Returns:
- Result of the GetEncryptionKey operation returned by the service.
- See Also:
-
getEncryptionKey
default GetEncryptionKeyResponse getEncryptionKey(Consumer<GetEncryptionKeyRequest.Builder> getEncryptionKeyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Gets an encryption key.
This is a convenience which creates an instance of the
GetEncryptionKeyRequest.Builder
avoiding the need to create one manually viaGetEncryptionKeyRequest.builder()
- Parameters:
getEncryptionKeyRequest
- AConsumer
that will call methods onGetEncryptionKeyRequest.Builder
to create a request.- Returns:
- Result of the GetEncryptionKey operation returned by the service.
- See Also:
-
getFindingsReportStatus
default GetFindingsReportStatusResponse getFindingsReportStatus(GetFindingsReportStatusRequest getFindingsReportStatusRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Gets the status of a findings report.
- Parameters:
getFindingsReportStatusRequest
-- Returns:
- Result of the GetFindingsReportStatus operation returned by the service.
- See Also:
-
getFindingsReportStatus
default GetFindingsReportStatusResponse getFindingsReportStatus(Consumer<GetFindingsReportStatusRequest.Builder> getFindingsReportStatusRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Gets the status of a findings report.
This is a convenience which creates an instance of the
GetFindingsReportStatusRequest.Builder
avoiding the need to create one manually viaGetFindingsReportStatusRequest.builder()
- Parameters:
getFindingsReportStatusRequest
- AConsumer
that will call methods onGetFindingsReportStatusRequest.Builder
to create a request.- Returns:
- Result of the GetFindingsReportStatus operation returned by the service.
- See Also:
-
getMember
default GetMemberResponse getMember(GetMemberRequest getMemberRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Gets member information for your organization.
- Parameters:
getMemberRequest
-- Returns:
- Result of the GetMember operation returned by the service.
- See Also:
-
getMember
default GetMemberResponse getMember(Consumer<GetMemberRequest.Builder> getMemberRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Gets member information for your organization.
This is a convenience which creates an instance of the
GetMemberRequest.Builder
avoiding the need to create one manually viaGetMemberRequest.builder()
- Parameters:
getMemberRequest
- AConsumer
that will call methods onGetMemberRequest.Builder
to create a request.- Returns:
- Result of the GetMember operation returned by the service.
- See Also:
-
getSbomExport
default GetSbomExportResponse getSbomExport(GetSbomExportRequest getSbomExportRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Gets details of a software bill of materials (SBOM) report.
- Parameters:
getSbomExportRequest
-- Returns:
- Result of the GetSbomExport operation returned by the service.
- See Also:
-
getSbomExport
default GetSbomExportResponse getSbomExport(Consumer<GetSbomExportRequest.Builder> getSbomExportRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Gets details of a software bill of materials (SBOM) report.
This is a convenience which creates an instance of the
GetSbomExportRequest.Builder
avoiding the need to create one manually viaGetSbomExportRequest.builder()
- Parameters:
getSbomExportRequest
- AConsumer
that will call methods onGetSbomExportRequest.Builder
to create a request.- Returns:
- Result of the GetSbomExport operation returned by the service.
- See Also:
-
listAccountPermissions
default ListAccountPermissionsResponse listAccountPermissions(ListAccountPermissionsRequest listAccountPermissionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists the permissions an account has to configure Amazon Inspector.
- Parameters:
listAccountPermissionsRequest
-- Returns:
- Result of the ListAccountPermissions operation returned by the service.
- See Also:
-
listAccountPermissions
default ListAccountPermissionsResponse listAccountPermissions(Consumer<ListAccountPermissionsRequest.Builder> listAccountPermissionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists the permissions an account has to configure Amazon Inspector.
This is a convenience which creates an instance of the
ListAccountPermissionsRequest.Builder
avoiding the need to create one manually viaListAccountPermissionsRequest.builder()
- Parameters:
listAccountPermissionsRequest
- AConsumer
that will call methods onListAccountPermissionsRequest.Builder
to create a request.- Returns:
- Result of the ListAccountPermissions operation returned by the service.
- See Also:
-
listAccountPermissionsPaginator
default ListAccountPermissionsIterable listAccountPermissionsPaginator(ListAccountPermissionsRequest listAccountPermissionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists the permissions an account has to configure Amazon Inspector.
This is a variant of
listAccountPermissions(software.amazon.awssdk.services.inspector2.model.ListAccountPermissionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListAccountPermissionsIterable responses = client.listAccountPermissionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListAccountPermissionsIterable responses = client .listAccountPermissionsPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListAccountPermissionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListAccountPermissionsIterable responses = client.listAccountPermissionsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAccountPermissions(software.amazon.awssdk.services.inspector2.model.ListAccountPermissionsRequest)
operation.- Parameters:
listAccountPermissionsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAccountPermissionsPaginator
default ListAccountPermissionsIterable listAccountPermissionsPaginator(Consumer<ListAccountPermissionsRequest.Builder> listAccountPermissionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists the permissions an account has to configure Amazon Inspector.
This is a variant of
listAccountPermissions(software.amazon.awssdk.services.inspector2.model.ListAccountPermissionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListAccountPermissionsIterable responses = client.listAccountPermissionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListAccountPermissionsIterable responses = client .listAccountPermissionsPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListAccountPermissionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListAccountPermissionsIterable responses = client.listAccountPermissionsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAccountPermissions(software.amazon.awssdk.services.inspector2.model.ListAccountPermissionsRequest)
operation.This is a convenience which creates an instance of the
ListAccountPermissionsRequest.Builder
avoiding the need to create one manually viaListAccountPermissionsRequest.builder()
- Parameters:
listAccountPermissionsRequest
- AConsumer
that will call methods onListAccountPermissionsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCoverage
default ListCoverageResponse listCoverage(ListCoverageRequest listCoverageRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists coverage details for you environment.
- Parameters:
listCoverageRequest
-- Returns:
- Result of the ListCoverage operation returned by the service.
- See Also:
-
listCoverage
default ListCoverageResponse listCoverage(Consumer<ListCoverageRequest.Builder> listCoverageRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists coverage details for you environment.
This is a convenience which creates an instance of the
ListCoverageRequest.Builder
avoiding the need to create one manually viaListCoverageRequest.builder()
- Parameters:
listCoverageRequest
- AConsumer
that will call methods onListCoverageRequest.Builder
to create a request.- Returns:
- Result of the ListCoverage operation returned by the service.
- See Also:
-
listCoveragePaginator
default ListCoverageIterable listCoveragePaginator(ListCoverageRequest listCoverageRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists coverage details for you environment.
This is a variant of
listCoverage(software.amazon.awssdk.services.inspector2.model.ListCoverageRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListCoverageResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCoverage(software.amazon.awssdk.services.inspector2.model.ListCoverageRequest)
operation.- Parameters:
listCoverageRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCoveragePaginator
default ListCoverageIterable listCoveragePaginator(Consumer<ListCoverageRequest.Builder> listCoverageRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists coverage details for you environment.
This is a variant of
listCoverage(software.amazon.awssdk.services.inspector2.model.ListCoverageRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListCoverageResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCoverage(software.amazon.awssdk.services.inspector2.model.ListCoverageRequest)
operation.This is a convenience which creates an instance of the
ListCoverageRequest.Builder
avoiding the need to create one manually viaListCoverageRequest.builder()
- Parameters:
listCoverageRequest
- AConsumer
that will call methods onListCoverageRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCoverageStatistics
default ListCoverageStatisticsResponse listCoverageStatistics(ListCoverageStatisticsRequest listCoverageStatisticsRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists Amazon Inspector coverage statistics for your environment.
- Parameters:
listCoverageStatisticsRequest
-- Returns:
- Result of the ListCoverageStatistics operation returned by the service.
- See Also:
-
listCoverageStatistics
default ListCoverageStatisticsResponse listCoverageStatistics(Consumer<ListCoverageStatisticsRequest.Builder> listCoverageStatisticsRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists Amazon Inspector coverage statistics for your environment.
This is a convenience which creates an instance of the
ListCoverageStatisticsRequest.Builder
avoiding the need to create one manually viaListCoverageStatisticsRequest.builder()
- Parameters:
listCoverageStatisticsRequest
- AConsumer
that will call methods onListCoverageStatisticsRequest.Builder
to create a request.- Returns:
- Result of the ListCoverageStatistics operation returned by the service.
- See Also:
-
listCoverageStatisticsPaginator
default ListCoverageStatisticsIterable listCoverageStatisticsPaginator(ListCoverageStatisticsRequest listCoverageStatisticsRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists Amazon Inspector coverage statistics for your environment.
This is a variant of
listCoverageStatistics(software.amazon.awssdk.services.inspector2.model.ListCoverageStatisticsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListCoverageStatisticsIterable responses = client.listCoverageStatisticsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListCoverageStatisticsIterable responses = client .listCoverageStatisticsPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListCoverageStatisticsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListCoverageStatisticsIterable responses = client.listCoverageStatisticsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null 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
listCoverageStatistics(software.amazon.awssdk.services.inspector2.model.ListCoverageStatisticsRequest)
operation.- Parameters:
listCoverageStatisticsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCoverageStatisticsPaginator
default ListCoverageStatisticsIterable listCoverageStatisticsPaginator(Consumer<ListCoverageStatisticsRequest.Builder> listCoverageStatisticsRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists Amazon Inspector coverage statistics for your environment.
This is a variant of
listCoverageStatistics(software.amazon.awssdk.services.inspector2.model.ListCoverageStatisticsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListCoverageStatisticsIterable responses = client.listCoverageStatisticsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListCoverageStatisticsIterable responses = client .listCoverageStatisticsPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListCoverageStatisticsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListCoverageStatisticsIterable responses = client.listCoverageStatisticsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null 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
listCoverageStatistics(software.amazon.awssdk.services.inspector2.model.ListCoverageStatisticsRequest)
operation.This is a convenience which creates an instance of the
ListCoverageStatisticsRequest.Builder
avoiding the need to create one manually viaListCoverageStatisticsRequest.builder()
- Parameters:
listCoverageStatisticsRequest
- AConsumer
that will call methods onListCoverageStatisticsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDelegatedAdminAccounts
default ListDelegatedAdminAccountsResponse listDelegatedAdminAccounts(ListDelegatedAdminAccountsRequest listDelegatedAdminAccountsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists information about the Amazon Inspector delegated administrator of your organization.
- Parameters:
listDelegatedAdminAccountsRequest
-- Returns:
- Result of the ListDelegatedAdminAccounts operation returned by the service.
- See Also:
-
listDelegatedAdminAccounts
default ListDelegatedAdminAccountsResponse listDelegatedAdminAccounts(Consumer<ListDelegatedAdminAccountsRequest.Builder> listDelegatedAdminAccountsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists information about the Amazon Inspector delegated administrator of your organization.
This is a convenience which creates an instance of the
ListDelegatedAdminAccountsRequest.Builder
avoiding the need to create one manually viaListDelegatedAdminAccountsRequest.builder()
- Parameters:
listDelegatedAdminAccountsRequest
- AConsumer
that will call methods onListDelegatedAdminAccountsRequest.Builder
to create a request.- Returns:
- Result of the ListDelegatedAdminAccounts operation returned by the service.
- See Also:
-
listDelegatedAdminAccountsPaginator
default ListDelegatedAdminAccountsIterable listDelegatedAdminAccountsPaginator(ListDelegatedAdminAccountsRequest listDelegatedAdminAccountsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists information about the Amazon Inspector delegated administrator of your organization.
This is a variant of
listDelegatedAdminAccounts(software.amazon.awssdk.services.inspector2.model.ListDelegatedAdminAccountsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListDelegatedAdminAccountsIterable responses = client.listDelegatedAdminAccountsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListDelegatedAdminAccountsIterable responses = client .listDelegatedAdminAccountsPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListDelegatedAdminAccountsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListDelegatedAdminAccountsIterable responses = client.listDelegatedAdminAccountsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDelegatedAdminAccounts(software.amazon.awssdk.services.inspector2.model.ListDelegatedAdminAccountsRequest)
operation.- Parameters:
listDelegatedAdminAccountsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDelegatedAdminAccountsPaginator
default ListDelegatedAdminAccountsIterable listDelegatedAdminAccountsPaginator(Consumer<ListDelegatedAdminAccountsRequest.Builder> listDelegatedAdminAccountsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists information about the Amazon Inspector delegated administrator of your organization.
This is a variant of
listDelegatedAdminAccounts(software.amazon.awssdk.services.inspector2.model.ListDelegatedAdminAccountsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListDelegatedAdminAccountsIterable responses = client.listDelegatedAdminAccountsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListDelegatedAdminAccountsIterable responses = client .listDelegatedAdminAccountsPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListDelegatedAdminAccountsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListDelegatedAdminAccountsIterable responses = client.listDelegatedAdminAccountsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDelegatedAdminAccounts(software.amazon.awssdk.services.inspector2.model.ListDelegatedAdminAccountsRequest)
operation.This is a convenience which creates an instance of the
ListDelegatedAdminAccountsRequest.Builder
avoiding the need to create one manually viaListDelegatedAdminAccountsRequest.builder()
- Parameters:
listDelegatedAdminAccountsRequest
- AConsumer
that will call methods onListDelegatedAdminAccountsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFilters
default ListFiltersResponse listFilters(ListFiltersRequest listFiltersRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists the filters associated with your account.
- Parameters:
listFiltersRequest
-- Returns:
- Result of the ListFilters operation returned by the service.
- See Also:
-
listFilters
default ListFiltersResponse listFilters(Consumer<ListFiltersRequest.Builder> listFiltersRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists the filters associated with your account.
This is a convenience which creates an instance of the
ListFiltersRequest.Builder
avoiding the need to create one manually viaListFiltersRequest.builder()
- Parameters:
listFiltersRequest
- AConsumer
that will call methods onListFiltersRequest.Builder
to create a request.- Returns:
- Result of the ListFilters operation returned by the service.
- See Also:
-
listFiltersPaginator
default ListFiltersIterable listFiltersPaginator(ListFiltersRequest listFiltersRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists the filters associated with your account.
This is a variant of
listFilters(software.amazon.awssdk.services.inspector2.model.ListFiltersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListFiltersResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFilters(software.amazon.awssdk.services.inspector2.model.ListFiltersRequest)
operation.- Parameters:
listFiltersRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFiltersPaginator
default ListFiltersIterable listFiltersPaginator(Consumer<ListFiltersRequest.Builder> listFiltersRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists the filters associated with your account.
This is a variant of
listFilters(software.amazon.awssdk.services.inspector2.model.ListFiltersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListFiltersResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFilters(software.amazon.awssdk.services.inspector2.model.ListFiltersRequest)
operation.This is a convenience which creates an instance of the
ListFiltersRequest.Builder
avoiding the need to create one manually viaListFiltersRequest.builder()
- Parameters:
listFiltersRequest
- AConsumer
that will call methods onListFiltersRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFindingAggregations
default ListFindingAggregationsResponse listFindingAggregations(ListFindingAggregationsRequest listFindingAggregationsRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists aggregated finding data for your environment based on specific criteria.
- Parameters:
listFindingAggregationsRequest
-- Returns:
- Result of the ListFindingAggregations operation returned by the service.
- See Also:
-
listFindingAggregations
default ListFindingAggregationsResponse listFindingAggregations(Consumer<ListFindingAggregationsRequest.Builder> listFindingAggregationsRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists aggregated finding data for your environment based on specific criteria.
This is a convenience which creates an instance of the
ListFindingAggregationsRequest.Builder
avoiding the need to create one manually viaListFindingAggregationsRequest.builder()
- Parameters:
listFindingAggregationsRequest
- AConsumer
that will call methods onListFindingAggregationsRequest.Builder
to create a request.- Returns:
- Result of the ListFindingAggregations operation returned by the service.
- See Also:
-
listFindingAggregationsPaginator
default ListFindingAggregationsIterable listFindingAggregationsPaginator(ListFindingAggregationsRequest listFindingAggregationsRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists aggregated finding data for your environment based on specific criteria.
This is a variant of
listFindingAggregations(software.amazon.awssdk.services.inspector2.model.ListFindingAggregationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListFindingAggregationsIterable responses = client.listFindingAggregationsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListFindingAggregationsIterable responses = client .listFindingAggregationsPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListFindingAggregationsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListFindingAggregationsIterable responses = client.listFindingAggregationsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFindingAggregations(software.amazon.awssdk.services.inspector2.model.ListFindingAggregationsRequest)
operation.- Parameters:
listFindingAggregationsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFindingAggregationsPaginator
default ListFindingAggregationsIterable listFindingAggregationsPaginator(Consumer<ListFindingAggregationsRequest.Builder> listFindingAggregationsRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists aggregated finding data for your environment based on specific criteria.
This is a variant of
listFindingAggregations(software.amazon.awssdk.services.inspector2.model.ListFindingAggregationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListFindingAggregationsIterable responses = client.listFindingAggregationsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListFindingAggregationsIterable responses = client .listFindingAggregationsPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListFindingAggregationsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListFindingAggregationsIterable responses = client.listFindingAggregationsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFindingAggregations(software.amazon.awssdk.services.inspector2.model.ListFindingAggregationsRequest)
operation.This is a convenience which creates an instance of the
ListFindingAggregationsRequest.Builder
avoiding the need to create one manually viaListFindingAggregationsRequest.builder()
- Parameters:
listFindingAggregationsRequest
- AConsumer
that will call methods onListFindingAggregationsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFindings
default ListFindingsResponse listFindings(ListFindingsRequest listFindingsRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists findings for your environment.
- Parameters:
listFindingsRequest
-- Returns:
- Result of the ListFindings operation returned by the service.
- See Also:
-
listFindings
default ListFindingsResponse listFindings(Consumer<ListFindingsRequest.Builder> listFindingsRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists findings for your environment.
This is a convenience which creates an instance of the
ListFindingsRequest.Builder
avoiding the need to create one manually viaListFindingsRequest.builder()
- Parameters:
listFindingsRequest
- AConsumer
that will call methods onListFindingsRequest.Builder
to create a request.- Returns:
- Result of the ListFindings operation returned by the service.
- See Also:
-
listFindingsPaginator
default ListFindingsIterable listFindingsPaginator(ListFindingsRequest listFindingsRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists findings for your environment.
This is a variant of
listFindings(software.amazon.awssdk.services.inspector2.model.ListFindingsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListFindingsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFindings(software.amazon.awssdk.services.inspector2.model.ListFindingsRequest)
operation.- Parameters:
listFindingsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFindingsPaginator
default ListFindingsIterable listFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest) throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists findings for your environment.
This is a variant of
listFindings(software.amazon.awssdk.services.inspector2.model.ListFindingsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListFindingsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFindings(software.amazon.awssdk.services.inspector2.model.ListFindingsRequest)
operation.This is a convenience which creates an instance of the
ListFindingsRequest.Builder
avoiding the need to create one manually viaListFindingsRequest.builder()
- Parameters:
listFindingsRequest
- AConsumer
that will call methods onListFindingsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listMembers
default ListMembersResponse listMembers(ListMembersRequest listMembersRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception List members associated with the Amazon Inspector delegated administrator for your organization.
- Parameters:
listMembersRequest
-- Returns:
- Result of the ListMembers operation returned by the service.
- See Also:
-
listMembers
default ListMembersResponse listMembers(Consumer<ListMembersRequest.Builder> listMembersRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception List members associated with the Amazon Inspector delegated administrator for your organization.
This is a convenience which creates an instance of the
ListMembersRequest.Builder
avoiding the need to create one manually viaListMembersRequest.builder()
- Parameters:
listMembersRequest
- AConsumer
that will call methods onListMembersRequest.Builder
to create a request.- Returns:
- Result of the ListMembers operation returned by the service.
- See Also:
-
listMembersPaginator
default ListMembersIterable listMembersPaginator(ListMembersRequest listMembersRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception List members associated with the Amazon Inspector delegated administrator for your organization.
This is a variant of
listMembers(software.amazon.awssdk.services.inspector2.model.ListMembersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListMembersIterable responses = client.listMembersPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListMembersIterable responses = client.listMembersPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListMembersResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListMembersIterable responses = client.listMembersPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMembers(software.amazon.awssdk.services.inspector2.model.ListMembersRequest)
operation.- Parameters:
listMembersRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listMembersPaginator
default ListMembersIterable listMembersPaginator(Consumer<ListMembersRequest.Builder> listMembersRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception List members associated with the Amazon Inspector delegated administrator for your organization.
This is a variant of
listMembers(software.amazon.awssdk.services.inspector2.model.ListMembersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListMembersIterable responses = client.listMembersPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListMembersIterable responses = client.listMembersPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListMembersResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListMembersIterable responses = client.listMembersPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMembers(software.amazon.awssdk.services.inspector2.model.ListMembersRequest)
operation.This is a convenience which creates an instance of the
ListMembersRequest.Builder
avoiding the need to create one manually viaListMembersRequest.builder()
- Parameters:
listMembersRequest
- AConsumer
that will call methods onListMembersRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists all tags attached to a given resource.
- Parameters:
listTagsForResourceRequest
-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists all tags attached to a given resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listUsageTotals
default ListUsageTotalsResponse listUsageTotals(ListUsageTotalsRequest listUsageTotalsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists the Amazon Inspector usage totals over the last 30 days.
- Parameters:
listUsageTotalsRequest
-- Returns:
- Result of the ListUsageTotals operation returned by the service.
- See Also:
-
listUsageTotals
default ListUsageTotalsResponse listUsageTotals(Consumer<ListUsageTotalsRequest.Builder> listUsageTotalsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists the Amazon Inspector usage totals over the last 30 days.
This is a convenience which creates an instance of the
ListUsageTotalsRequest.Builder
avoiding the need to create one manually viaListUsageTotalsRequest.builder()
- Parameters:
listUsageTotalsRequest
- AConsumer
that will call methods onListUsageTotalsRequest.Builder
to create a request.- Returns:
- Result of the ListUsageTotals operation returned by the service.
- See Also:
-
listUsageTotalsPaginator
default ListUsageTotalsIterable listUsageTotalsPaginator(ListUsageTotalsRequest listUsageTotalsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists the Amazon Inspector usage totals over the last 30 days.
This is a variant of
listUsageTotals(software.amazon.awssdk.services.inspector2.model.ListUsageTotalsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListUsageTotalsIterable responses = client.listUsageTotalsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListUsageTotalsIterable responses = client .listUsageTotalsPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListUsageTotalsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListUsageTotalsIterable responses = client.listUsageTotalsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listUsageTotals(software.amazon.awssdk.services.inspector2.model.ListUsageTotalsRequest)
operation.- Parameters:
listUsageTotalsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listUsageTotalsPaginator
default ListUsageTotalsIterable listUsageTotalsPaginator(Consumer<ListUsageTotalsRequest.Builder> listUsageTotalsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists the Amazon Inspector usage totals over the last 30 days.
This is a variant of
listUsageTotals(software.amazon.awssdk.services.inspector2.model.ListUsageTotalsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.ListUsageTotalsIterable responses = client.listUsageTotalsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.ListUsageTotalsIterable responses = client .listUsageTotalsPaginator(request); for (software.amazon.awssdk.services.inspector2.model.ListUsageTotalsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.ListUsageTotalsIterable responses = client.listUsageTotalsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listUsageTotals(software.amazon.awssdk.services.inspector2.model.ListUsageTotalsRequest)
operation.This is a convenience which creates an instance of the
ListUsageTotalsRequest.Builder
avoiding the need to create one manually viaListUsageTotalsRequest.builder()
- Parameters:
listUsageTotalsRequest
- AConsumer
that will call methods onListUsageTotalsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
resetEncryptionKey
default ResetEncryptionKeyResponse resetEncryptionKey(ResetEncryptionKeyRequest resetEncryptionKeyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Resets an encryption key. After the key is reset your resources will be encrypted by an Amazon Web Services owned key.
- Parameters:
resetEncryptionKeyRequest
-- Returns:
- Result of the ResetEncryptionKey operation returned by the service.
- See Also:
-
resetEncryptionKey
default ResetEncryptionKeyResponse resetEncryptionKey(Consumer<ResetEncryptionKeyRequest.Builder> resetEncryptionKeyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Resets an encryption key. After the key is reset your resources will be encrypted by an Amazon Web Services owned key.
This is a convenience which creates an instance of the
ResetEncryptionKeyRequest.Builder
avoiding the need to create one manually viaResetEncryptionKeyRequest.builder()
- Parameters:
resetEncryptionKeyRequest
- AConsumer
that will call methods onResetEncryptionKeyRequest.Builder
to create a request.- Returns:
- Result of the ResetEncryptionKey operation returned by the service.
- See Also:
-
searchVulnerabilities
default SearchVulnerabilitiesResponse searchVulnerabilities(SearchVulnerabilitiesRequest searchVulnerabilitiesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists Amazon Inspector coverage details for a specific vulnerability.
- Parameters:
searchVulnerabilitiesRequest
-- Returns:
- Result of the SearchVulnerabilities operation returned by the service.
- See Also:
-
searchVulnerabilities
default SearchVulnerabilitiesResponse searchVulnerabilities(Consumer<SearchVulnerabilitiesRequest.Builder> searchVulnerabilitiesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists Amazon Inspector coverage details for a specific vulnerability.
This is a convenience which creates an instance of the
SearchVulnerabilitiesRequest.Builder
avoiding the need to create one manually viaSearchVulnerabilitiesRequest.builder()
- Parameters:
searchVulnerabilitiesRequest
- AConsumer
that will call methods onSearchVulnerabilitiesRequest.Builder
to create a request.- Returns:
- Result of the SearchVulnerabilities operation returned by the service.
- See Also:
-
searchVulnerabilitiesPaginator
default SearchVulnerabilitiesIterable searchVulnerabilitiesPaginator(SearchVulnerabilitiesRequest searchVulnerabilitiesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists Amazon Inspector coverage details for a specific vulnerability.
This is a variant of
searchVulnerabilities(software.amazon.awssdk.services.inspector2.model.SearchVulnerabilitiesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.SearchVulnerabilitiesIterable responses = client.searchVulnerabilitiesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.SearchVulnerabilitiesIterable responses = client .searchVulnerabilitiesPaginator(request); for (software.amazon.awssdk.services.inspector2.model.SearchVulnerabilitiesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.SearchVulnerabilitiesIterable responses = client.searchVulnerabilitiesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null 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
searchVulnerabilities(software.amazon.awssdk.services.inspector2.model.SearchVulnerabilitiesRequest)
operation.- Parameters:
searchVulnerabilitiesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
searchVulnerabilitiesPaginator
default SearchVulnerabilitiesIterable searchVulnerabilitiesPaginator(Consumer<SearchVulnerabilitiesRequest.Builder> searchVulnerabilitiesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Lists Amazon Inspector coverage details for a specific vulnerability.
This is a variant of
searchVulnerabilities(software.amazon.awssdk.services.inspector2.model.SearchVulnerabilitiesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.inspector2.paginators.SearchVulnerabilitiesIterable responses = client.searchVulnerabilitiesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.inspector2.paginators.SearchVulnerabilitiesIterable responses = client .searchVulnerabilitiesPaginator(request); for (software.amazon.awssdk.services.inspector2.model.SearchVulnerabilitiesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.inspector2.paginators.SearchVulnerabilitiesIterable responses = client.searchVulnerabilitiesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null 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
searchVulnerabilities(software.amazon.awssdk.services.inspector2.model.SearchVulnerabilitiesRequest)
operation.This is a convenience which creates an instance of the
SearchVulnerabilitiesRequest.Builder
avoiding the need to create one manually viaSearchVulnerabilitiesRequest.builder()
- Parameters:
searchVulnerabilitiesRequest
- AConsumer
that will call methods onSearchVulnerabilitiesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws BadRequestException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Adds tags to a resource.
- Parameters:
tagResourceRequest
-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws BadRequestException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Adds tags to a resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Removes tags from a resource.
- Parameters:
untagResourceRequest
-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Removes tags from a resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateConfiguration
default UpdateConfigurationResponse updateConfiguration(UpdateConfigurationRequest updateConfigurationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Updates setting configurations for your Amazon Inspector account. When you use this API as an Amazon Inspector delegated administrator this updates the setting for all accounts you manage. Member accounts in an organization cannot update this setting.
- Parameters:
updateConfigurationRequest
-- Returns:
- Result of the UpdateConfiguration operation returned by the service.
- See Also:
-
updateConfiguration
default UpdateConfigurationResponse updateConfiguration(Consumer<UpdateConfigurationRequest.Builder> updateConfigurationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Updates setting configurations for your Amazon Inspector account. When you use this API as an Amazon Inspector delegated administrator this updates the setting for all accounts you manage. Member accounts in an organization cannot update this setting.
This is a convenience which creates an instance of the
UpdateConfigurationRequest.Builder
avoiding the need to create one manually viaUpdateConfigurationRequest.builder()
- Parameters:
updateConfigurationRequest
- AConsumer
that will call methods onUpdateConfigurationRequest.Builder
to create a request.- Returns:
- Result of the UpdateConfiguration operation returned by the service.
- See Also:
-
updateEc2DeepInspectionConfiguration
default UpdateEc2DeepInspectionConfigurationResponse updateEc2DeepInspectionConfiguration(UpdateEc2DeepInspectionConfigurationRequest updateEc2DeepInspectionConfigurationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.
- Parameters:
updateEc2DeepInspectionConfigurationRequest
-- Returns:
- Result of the UpdateEc2DeepInspectionConfiguration operation returned by the service.
- See Also:
-
updateEc2DeepInspectionConfiguration
default UpdateEc2DeepInspectionConfigurationResponse updateEc2DeepInspectionConfiguration(Consumer<UpdateEc2DeepInspectionConfigurationRequest.Builder> updateEc2DeepInspectionConfigurationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.
This is a convenience which creates an instance of the
UpdateEc2DeepInspectionConfigurationRequest.Builder
avoiding the need to create one manually viaUpdateEc2DeepInspectionConfigurationRequest.builder()
- Parameters:
updateEc2DeepInspectionConfigurationRequest
- AConsumer
that will call methods onUpdateEc2DeepInspectionConfigurationRequest.Builder
to create a request.- Returns:
- Result of the UpdateEc2DeepInspectionConfiguration operation returned by the service.
- See Also:
-
updateEncryptionKey
default UpdateEncryptionKeyResponse updateEncryptionKey(UpdateEncryptionKeyRequest updateEncryptionKeyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Updates an encryption key. A
ResourceNotFoundException
means that an AWS owned key is being used for encryption.- Parameters:
updateEncryptionKeyRequest
-- Returns:
- Result of the UpdateEncryptionKey operation returned by the service.
- See Also:
-
updateEncryptionKey
default UpdateEncryptionKeyResponse updateEncryptionKey(Consumer<UpdateEncryptionKeyRequest.Builder> updateEncryptionKeyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Updates an encryption key. A
ResourceNotFoundException
means that an AWS owned key is being used for encryption.
This is a convenience which creates an instance of the
UpdateEncryptionKeyRequest.Builder
avoiding the need to create one manually viaUpdateEncryptionKeyRequest.builder()
- Parameters:
updateEncryptionKeyRequest
- AConsumer
that will call methods onUpdateEncryptionKeyRequest.Builder
to create a request.- Returns:
- Result of the UpdateEncryptionKey operation returned by the service.
- See Also:
-
updateFilter
default UpdateFilterResponse updateFilter(UpdateFilterRequest updateFilterRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Specifies the action that is to be applied to the findings that match the filter.
- Parameters:
updateFilterRequest
-- Returns:
- Result of the UpdateFilter operation returned by the service.
- See Also:
-
updateFilter
default UpdateFilterResponse updateFilter(Consumer<UpdateFilterRequest.Builder> updateFilterRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Specifies the action that is to be applied to the findings that match the filter.
This is a convenience which creates an instance of the
UpdateFilterRequest.Builder
avoiding the need to create one manually viaUpdateFilterRequest.builder()
- Parameters:
updateFilterRequest
- AConsumer
that will call methods onUpdateFilterRequest.Builder
to create a request.- Returns:
- Result of the UpdateFilter operation returned by the service.
- See Also:
-
updateOrgEc2DeepInspectionConfiguration
default UpdateOrgEc2DeepInspectionConfigurationResponse updateOrgEc2DeepInspectionConfiguration(UpdateOrgEc2DeepInspectionConfigurationRequest updateOrgEc2DeepInspectionConfigurationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Updates the Amazon Inspector deep inspection custom paths for your organization. You must be an Amazon Inspector delegated administrator to use this API.
- Parameters:
updateOrgEc2DeepInspectionConfigurationRequest
-- Returns:
- Result of the UpdateOrgEc2DeepInspectionConfiguration operation returned by the service.
- See Also:
-
updateOrgEc2DeepInspectionConfiguration
default UpdateOrgEc2DeepInspectionConfigurationResponse updateOrgEc2DeepInspectionConfiguration(Consumer<UpdateOrgEc2DeepInspectionConfigurationRequest.Builder> updateOrgEc2DeepInspectionConfigurationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Updates the Amazon Inspector deep inspection custom paths for your organization. You must be an Amazon Inspector delegated administrator to use this API.
This is a convenience which creates an instance of the
UpdateOrgEc2DeepInspectionConfigurationRequest.Builder
avoiding the need to create one manually viaUpdateOrgEc2DeepInspectionConfigurationRequest.builder()
- Parameters:
updateOrgEc2DeepInspectionConfigurationRequest
- AConsumer
that will call methods onUpdateOrgEc2DeepInspectionConfigurationRequest.Builder
to create a request.- Returns:
- Result of the UpdateOrgEc2DeepInspectionConfiguration operation returned by the service.
- See Also:
-
updateOrganizationConfiguration
default UpdateOrganizationConfigurationResponse updateOrganizationConfiguration(UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest) throws AccessDeniedException, ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Updates the configurations for your Amazon Inspector organization.
- Parameters:
updateOrganizationConfigurationRequest
-- Returns:
- Result of the UpdateOrganizationConfiguration operation returned by the service.
- See Also:
-
updateOrganizationConfiguration
default UpdateOrganizationConfigurationResponse updateOrganizationConfiguration(Consumer<UpdateOrganizationConfigurationRequest.Builder> updateOrganizationConfigurationRequest) throws AccessDeniedException, ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, Inspector2Exception Updates the configurations for your Amazon Inspector organization.
This is a convenience which creates an instance of the
UpdateOrganizationConfigurationRequest.Builder
avoiding the need to create one manually viaUpdateOrganizationConfigurationRequest.builder()
- Parameters:
updateOrganizationConfigurationRequest
- AConsumer
that will call methods onUpdateOrganizationConfigurationRequest.Builder
to create a request.- Returns:
- Result of the UpdateOrganizationConfiguration operation returned by the service.
- See Also:
-
create
Create aInspector2Client
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aInspector2Client
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-