Interface InspectorAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in
some cases such as credentials retrieval and endpoint discovery as part of the async API call.
Amazon Inspector enables you to analyze the behavior of your AWS resources and to identify potential security issues. For more information, see Amazon Inspector User Guide.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionaddAttributesToFindings
(Consumer<AddAttributesToFindingsRequest.Builder> addAttributesToFindingsRequest) Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.addAttributesToFindings
(AddAttributesToFindingsRequest addAttributesToFindingsRequest) Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.static InspectorAsyncClientBuilder
builder()
Create a builder that can be used to configure and create aInspectorAsyncClient
.static InspectorAsyncClient
create()
Create aInspectorAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.createAssessmentTarget
(Consumer<CreateAssessmentTargetRequest.Builder> createAssessmentTargetRequest) Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup.createAssessmentTarget
(CreateAssessmentTargetRequest createAssessmentTargetRequest) Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup.createAssessmentTemplate
(Consumer<CreateAssessmentTemplateRequest.Builder> createAssessmentTemplateRequest) Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.createAssessmentTemplate
(CreateAssessmentTemplateRequest createAssessmentTemplateRequest) Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.createExclusionsPreview
(Consumer<CreateExclusionsPreviewRequest.Builder> createExclusionsPreviewRequest) Starts the generation of an exclusions preview for the specified assessment template.createExclusionsPreview
(CreateExclusionsPreviewRequest createExclusionsPreviewRequest) Starts the generation of an exclusions preview for the specified assessment template.createResourceGroup
(Consumer<CreateResourceGroupRequest.Builder> createResourceGroupRequest) Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target.createResourceGroup
(CreateResourceGroupRequest createResourceGroupRequest) Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target.deleteAssessmentRun
(Consumer<DeleteAssessmentRunRequest.Builder> deleteAssessmentRunRequest) Deletes the assessment run that is specified by the ARN of the assessment run.deleteAssessmentRun
(DeleteAssessmentRunRequest deleteAssessmentRunRequest) Deletes the assessment run that is specified by the ARN of the assessment run.deleteAssessmentTarget
(Consumer<DeleteAssessmentTargetRequest.Builder> deleteAssessmentTargetRequest) Deletes the assessment target that is specified by the ARN of the assessment target.deleteAssessmentTarget
(DeleteAssessmentTargetRequest deleteAssessmentTargetRequest) Deletes the assessment target that is specified by the ARN of the assessment target.deleteAssessmentTemplate
(Consumer<DeleteAssessmentTemplateRequest.Builder> deleteAssessmentTemplateRequest) Deletes the assessment template that is specified by the ARN of the assessment template.deleteAssessmentTemplate
(DeleteAssessmentTemplateRequest deleteAssessmentTemplateRequest) Deletes the assessment template that is specified by the ARN of the assessment template.describeAssessmentRuns
(Consumer<DescribeAssessmentRunsRequest.Builder> describeAssessmentRunsRequest) Describes the assessment runs that are specified by the ARNs of the assessment runs.describeAssessmentRuns
(DescribeAssessmentRunsRequest describeAssessmentRunsRequest) Describes the assessment runs that are specified by the ARNs of the assessment runs.describeAssessmentTargets
(Consumer<DescribeAssessmentTargetsRequest.Builder> describeAssessmentTargetsRequest) Describes the assessment targets that are specified by the ARNs of the assessment targets.describeAssessmentTargets
(DescribeAssessmentTargetsRequest describeAssessmentTargetsRequest) Describes the assessment targets that are specified by the ARNs of the assessment targets.describeAssessmentTemplates
(Consumer<DescribeAssessmentTemplatesRequest.Builder> describeAssessmentTemplatesRequest) Describes the assessment templates that are specified by the ARNs of the assessment templates.describeAssessmentTemplates
(DescribeAssessmentTemplatesRequest describeAssessmentTemplatesRequest) Describes the assessment templates that are specified by the ARNs of the assessment templates.Describes the IAM role that enables Amazon Inspector to access your AWS account.describeCrossAccountAccessRole
(Consumer<DescribeCrossAccountAccessRoleRequest.Builder> describeCrossAccountAccessRoleRequest) Describes the IAM role that enables Amazon Inspector to access your AWS account.describeCrossAccountAccessRole
(DescribeCrossAccountAccessRoleRequest describeCrossAccountAccessRoleRequest) Describes the IAM role that enables Amazon Inspector to access your AWS account.describeExclusions
(Consumer<DescribeExclusionsRequest.Builder> describeExclusionsRequest) Describes the exclusions that are specified by the exclusions' ARNs.describeExclusions
(DescribeExclusionsRequest describeExclusionsRequest) Describes the exclusions that are specified by the exclusions' ARNs.describeFindings
(Consumer<DescribeFindingsRequest.Builder> describeFindingsRequest) Describes the findings that are specified by the ARNs of the findings.describeFindings
(DescribeFindingsRequest describeFindingsRequest) Describes the findings that are specified by the ARNs of the findings.describeResourceGroups
(Consumer<DescribeResourceGroupsRequest.Builder> describeResourceGroupsRequest) Describes the resource groups that are specified by the ARNs of the resource groups.describeResourceGroups
(DescribeResourceGroupsRequest describeResourceGroupsRequest) Describes the resource groups that are specified by the ARNs of the resource groups.describeRulesPackages
(Consumer<DescribeRulesPackagesRequest.Builder> describeRulesPackagesRequest) Describes the rules packages that are specified by the ARNs of the rules packages.describeRulesPackages
(DescribeRulesPackagesRequest describeRulesPackagesRequest) Describes the rules packages that are specified by the ARNs of the rules packages.getAssessmentReport
(Consumer<GetAssessmentReportRequest.Builder> getAssessmentReportRequest) Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.getAssessmentReport
(GetAssessmentReportRequest getAssessmentReportRequest) Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.getExclusionsPreview
(Consumer<GetExclusionsPreviewRequest.Builder> getExclusionsPreviewRequest) Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token.getExclusionsPreview
(GetExclusionsPreviewRequest getExclusionsPreviewRequest) Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token.default GetExclusionsPreviewPublisher
getExclusionsPreviewPaginator
(Consumer<GetExclusionsPreviewRequest.Builder> getExclusionsPreviewRequest) This is a variant ofgetExclusionsPreview(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest)
operation.default GetExclusionsPreviewPublisher
getExclusionsPreviewPaginator
(GetExclusionsPreviewRequest getExclusionsPreviewRequest) This is a variant ofgetExclusionsPreview(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest)
operation.getTelemetryMetadata
(Consumer<GetTelemetryMetadataRequest.Builder> getTelemetryMetadataRequest) Information about the data that is collected for the specified assessment run.getTelemetryMetadata
(GetTelemetryMetadataRequest getTelemetryMetadataRequest) Information about the data that is collected for the specified assessment run.listAssessmentRunAgents
(Consumer<ListAssessmentRunAgentsRequest.Builder> listAssessmentRunAgentsRequest) Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.listAssessmentRunAgents
(ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest) Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.default ListAssessmentRunAgentsPublisher
listAssessmentRunAgentsPaginator
(Consumer<ListAssessmentRunAgentsRequest.Builder> listAssessmentRunAgentsRequest) This is a variant oflistAssessmentRunAgents(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest)
operation.default ListAssessmentRunAgentsPublisher
listAssessmentRunAgentsPaginator
(ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest) This is a variant oflistAssessmentRunAgents(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest)
operation.Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.listAssessmentRuns
(Consumer<ListAssessmentRunsRequest.Builder> listAssessmentRunsRequest) Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.listAssessmentRuns
(ListAssessmentRunsRequest listAssessmentRunsRequest) Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.default ListAssessmentRunsPublisher
This is a variant oflistAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)
operation.default ListAssessmentRunsPublisher
listAssessmentRunsPaginator
(Consumer<ListAssessmentRunsRequest.Builder> listAssessmentRunsRequest) This is a variant oflistAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)
operation.default ListAssessmentRunsPublisher
listAssessmentRunsPaginator
(ListAssessmentRunsRequest listAssessmentRunsRequest) This is a variant oflistAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)
operation.Lists the ARNs of the assessment targets within this AWS account.listAssessmentTargets
(Consumer<ListAssessmentTargetsRequest.Builder> listAssessmentTargetsRequest) Lists the ARNs of the assessment targets within this AWS account.listAssessmentTargets
(ListAssessmentTargetsRequest listAssessmentTargetsRequest) Lists the ARNs of the assessment targets within this AWS account.default ListAssessmentTargetsPublisher
This is a variant oflistAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)
operation.default ListAssessmentTargetsPublisher
listAssessmentTargetsPaginator
(Consumer<ListAssessmentTargetsRequest.Builder> listAssessmentTargetsRequest) This is a variant oflistAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)
operation.default ListAssessmentTargetsPublisher
listAssessmentTargetsPaginator
(ListAssessmentTargetsRequest listAssessmentTargetsRequest) This is a variant oflistAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)
operation.Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.listAssessmentTemplates
(Consumer<ListAssessmentTemplatesRequest.Builder> listAssessmentTemplatesRequest) Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.listAssessmentTemplates
(ListAssessmentTemplatesRequest listAssessmentTemplatesRequest) Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.default ListAssessmentTemplatesPublisher
This is a variant oflistAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)
operation.default ListAssessmentTemplatesPublisher
listAssessmentTemplatesPaginator
(Consumer<ListAssessmentTemplatesRequest.Builder> listAssessmentTemplatesRequest) This is a variant oflistAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)
operation.default ListAssessmentTemplatesPublisher
listAssessmentTemplatesPaginator
(ListAssessmentTemplatesRequest listAssessmentTemplatesRequest) This is a variant oflistAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)
operation.Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template.listEventSubscriptions
(Consumer<ListEventSubscriptionsRequest.Builder> listEventSubscriptionsRequest) Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template.listEventSubscriptions
(ListEventSubscriptionsRequest listEventSubscriptionsRequest) Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template.default ListEventSubscriptionsPublisher
This is a variant oflistEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)
operation.default ListEventSubscriptionsPublisher
listEventSubscriptionsPaginator
(Consumer<ListEventSubscriptionsRequest.Builder> listEventSubscriptionsRequest) This is a variant oflistEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)
operation.default ListEventSubscriptionsPublisher
listEventSubscriptionsPaginator
(ListEventSubscriptionsRequest listEventSubscriptionsRequest) This is a variant oflistEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)
operation.default CompletableFuture
<ListExclusionsResponse> listExclusions
(Consumer<ListExclusionsRequest.Builder> listExclusionsRequest) List exclusions that are generated by the assessment run.default CompletableFuture
<ListExclusionsResponse> listExclusions
(ListExclusionsRequest listExclusionsRequest) List exclusions that are generated by the assessment run.default ListExclusionsPublisher
listExclusionsPaginator
(Consumer<ListExclusionsRequest.Builder> listExclusionsRequest) This is a variant oflistExclusions(software.amazon.awssdk.services.inspector.model.ListExclusionsRequest)
operation.default ListExclusionsPublisher
listExclusionsPaginator
(ListExclusionsRequest listExclusionsRequest) This is a variant oflistExclusions(software.amazon.awssdk.services.inspector.model.ListExclusionsRequest)
operation.default CompletableFuture
<ListFindingsResponse> Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.default CompletableFuture
<ListFindingsResponse> listFindings
(Consumer<ListFindingsRequest.Builder> listFindingsRequest) Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.default CompletableFuture
<ListFindingsResponse> listFindings
(ListFindingsRequest listFindingsRequest) Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.default ListFindingsPublisher
This is a variant oflistFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)
operation.default ListFindingsPublisher
listFindingsPaginator
(Consumer<ListFindingsRequest.Builder> listFindingsRequest) This is a variant oflistFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)
operation.default ListFindingsPublisher
listFindingsPaginator
(ListFindingsRequest listFindingsRequest) This is a variant oflistFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)
operation.Lists all available Amazon Inspector rules packages.listRulesPackages
(Consumer<ListRulesPackagesRequest.Builder> listRulesPackagesRequest) Lists all available Amazon Inspector rules packages.listRulesPackages
(ListRulesPackagesRequest listRulesPackagesRequest) Lists all available Amazon Inspector rules packages.default ListRulesPackagesPublisher
This is a variant oflistRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)
operation.default ListRulesPackagesPublisher
listRulesPackagesPaginator
(Consumer<ListRulesPackagesRequest.Builder> listRulesPackagesRequest) This is a variant oflistRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)
operation.default ListRulesPackagesPublisher
listRulesPackagesPaginator
(ListRulesPackagesRequest listRulesPackagesRequest) This is a variant oflistRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)
operation.listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists all tags associated with an assessment template.listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Lists all tags associated with an assessment template.default CompletableFuture
<PreviewAgentsResponse> previewAgents
(Consumer<PreviewAgentsRequest.Builder> previewAgentsRequest) Previews the agents installed on the EC2 instances that are part of the specified assessment target.default CompletableFuture
<PreviewAgentsResponse> previewAgents
(PreviewAgentsRequest previewAgentsRequest) Previews the agents installed on the EC2 instances that are part of the specified assessment target.default PreviewAgentsPublisher
previewAgentsPaginator
(Consumer<PreviewAgentsRequest.Builder> previewAgentsRequest) This is a variant ofpreviewAgents(software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest)
operation.default PreviewAgentsPublisher
previewAgentsPaginator
(PreviewAgentsRequest previewAgentsRequest) This is a variant ofpreviewAgents(software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest)
operation.registerCrossAccountAccessRole
(Consumer<RegisterCrossAccountAccessRoleRequest.Builder> registerCrossAccountAccessRoleRequest) Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.registerCrossAccountAccessRole
(RegisterCrossAccountAccessRoleRequest registerCrossAccountAccessRoleRequest) Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.removeAttributesFromFindings
(Consumer<RemoveAttributesFromFindingsRequest.Builder> removeAttributesFromFindingsRequest) Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists.removeAttributesFromFindings
(RemoveAttributesFromFindingsRequest removeAttributesFromFindingsRequest) Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationsetTagsForResource
(Consumer<SetTagsForResourceRequest.Builder> setTagsForResourceRequest) Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.setTagsForResource
(SetTagsForResourceRequest setTagsForResourceRequest) Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.startAssessmentRun
(Consumer<StartAssessmentRunRequest.Builder> startAssessmentRunRequest) Starts the assessment run specified by the ARN of the assessment template.startAssessmentRun
(StartAssessmentRunRequest startAssessmentRunRequest) Starts the assessment run specified by the ARN of the assessment template.stopAssessmentRun
(Consumer<StopAssessmentRunRequest.Builder> stopAssessmentRunRequest) Stops the assessment run that is specified by the ARN of the assessment run.stopAssessmentRun
(StopAssessmentRunRequest stopAssessmentRunRequest) Stops the assessment run that is specified by the ARN of the assessment run.subscribeToEvent
(Consumer<SubscribeToEventRequest.Builder> subscribeToEventRequest) Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.subscribeToEvent
(SubscribeToEventRequest subscribeToEventRequest) Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.unsubscribeFromEvent
(Consumer<UnsubscribeFromEventRequest.Builder> unsubscribeFromEventRequest) Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.unsubscribeFromEvent
(UnsubscribeFromEventRequest unsubscribeFromEventRequest) Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.updateAssessmentTarget
(Consumer<UpdateAssessmentTargetRequest.Builder> updateAssessmentTargetRequest) Updates the assessment target that is specified by the ARN of the assessment target.updateAssessmentTarget
(UpdateAssessmentTargetRequest updateAssessmentTargetRequest) Updates the assessment target that is specified by the ARN of the assessment target.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
-
addAttributesToFindings
default CompletableFuture<AddAttributesToFindingsResponse> addAttributesToFindings(AddAttributesToFindingsRequest addAttributesToFindingsRequest) Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
- Parameters:
addAttributesToFindingsRequest
-- Returns:
- A Java Future containing the result of the AddAttributesToFindings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
addAttributesToFindings
default CompletableFuture<AddAttributesToFindingsResponse> addAttributesToFindings(Consumer<AddAttributesToFindingsRequest.Builder> addAttributesToFindingsRequest) Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
This is a convenience which creates an instance of the
AddAttributesToFindingsRequest.Builder
avoiding the need to create one manually viaAddAttributesToFindingsRequest.builder()
- Parameters:
addAttributesToFindingsRequest
- AConsumer
that will call methods onAddAttributesToFindingsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the AddAttributesToFindings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAssessmentTarget
default CompletableFuture<CreateAssessmentTargetResponse> createAssessmentTarget(CreateAssessmentTargetRequest createAssessmentTargetRequest) Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Amazon Inspector Assessment Targets.
- Parameters:
createAssessmentTargetRequest
-- Returns:
- A Java Future containing the result of the CreateAssessmentTarget operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- LimitExceededException The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- InvalidCrossAccountRoleException Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAssessmentTarget
default CompletableFuture<CreateAssessmentTargetResponse> createAssessmentTarget(Consumer<CreateAssessmentTargetRequest.Builder> createAssessmentTargetRequest) Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Amazon Inspector Assessment Targets.
This is a convenience which creates an instance of the
CreateAssessmentTargetRequest.Builder
avoiding the need to create one manually viaCreateAssessmentTargetRequest.builder()
- Parameters:
createAssessmentTargetRequest
- AConsumer
that will call methods onCreateAssessmentTargetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateAssessmentTarget operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- LimitExceededException The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- InvalidCrossAccountRoleException Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAssessmentTemplate
default CompletableFuture<CreateAssessmentTemplateResponse> createAssessmentTemplate(CreateAssessmentTemplateRequest createAssessmentTemplateRequest) Creates an assessment template for the assessment target that is specified by the ARN of the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments.
- Parameters:
createAssessmentTemplateRequest
-- Returns:
- A Java Future containing the result of the CreateAssessmentTemplate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- LimitExceededException The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAssessmentTemplate
default CompletableFuture<CreateAssessmentTemplateResponse> createAssessmentTemplate(Consumer<CreateAssessmentTemplateRequest.Builder> createAssessmentTemplateRequest) Creates an assessment template for the assessment target that is specified by the ARN of the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments.
This is a convenience which creates an instance of the
CreateAssessmentTemplateRequest.Builder
avoiding the need to create one manually viaCreateAssessmentTemplateRequest.builder()
- Parameters:
createAssessmentTemplateRequest
- AConsumer
that will call methods onCreateAssessmentTemplateRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateAssessmentTemplate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- LimitExceededException The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createExclusionsPreview
default CompletableFuture<CreateExclusionsPreviewResponse> createExclusionsPreview(CreateExclusionsPreviewRequest createExclusionsPreviewRequest) Starts the generation of an exclusions preview for the specified assessment template. The exclusions preview lists the potential exclusions (ExclusionPreview) that Inspector can detect before it runs the assessment.
- Parameters:
createExclusionsPreviewRequest
-- Returns:
- A Java Future containing the result of the CreateExclusionsPreview operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- PreviewGenerationInProgressException The request is rejected. The specified assessment template is currently generating an exclusions preview.
- InternalException Internal server error.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createExclusionsPreview
default CompletableFuture<CreateExclusionsPreviewResponse> createExclusionsPreview(Consumer<CreateExclusionsPreviewRequest.Builder> createExclusionsPreviewRequest) Starts the generation of an exclusions preview for the specified assessment template. The exclusions preview lists the potential exclusions (ExclusionPreview) that Inspector can detect before it runs the assessment.
This is a convenience which creates an instance of the
CreateExclusionsPreviewRequest.Builder
avoiding the need to create one manually viaCreateExclusionsPreviewRequest.builder()
- Parameters:
createExclusionsPreviewRequest
- AConsumer
that will call methods onCreateExclusionsPreviewRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateExclusionsPreview operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- PreviewGenerationInProgressException The request is rejected. The specified assessment template is currently generating an exclusions preview.
- InternalException Internal server error.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createResourceGroup
default CompletableFuture<CreateResourceGroupResponse> createResourceGroup(CreateResourceGroupRequest createResourceGroupRequest) Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target. The created resource group is then used to create an Amazon Inspector assessment target. For more information, see CreateAssessmentTarget.
- Parameters:
createResourceGroupRequest
-- Returns:
- A Java Future containing the result of the CreateResourceGroup operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- LimitExceededException The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.
- AccessDeniedException You do not have required permissions to access the requested resource.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createResourceGroup
default CompletableFuture<CreateResourceGroupResponse> createResourceGroup(Consumer<CreateResourceGroupRequest.Builder> createResourceGroupRequest) Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target. The created resource group is then used to create an Amazon Inspector assessment target. For more information, see CreateAssessmentTarget.
This is a convenience which creates an instance of the
CreateResourceGroupRequest.Builder
avoiding the need to create one manually viaCreateResourceGroupRequest.builder()
- Parameters:
createResourceGroupRequest
- AConsumer
that will call methods onCreateResourceGroupRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateResourceGroup operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- LimitExceededException The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.
- AccessDeniedException You do not have required permissions to access the requested resource.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAssessmentRun
default CompletableFuture<DeleteAssessmentRunResponse> deleteAssessmentRun(DeleteAssessmentRunRequest deleteAssessmentRunRequest) Deletes the assessment run that is specified by the ARN of the assessment run.
- Parameters:
deleteAssessmentRunRequest
-- Returns:
- A Java Future containing the result of the DeleteAssessmentRun operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AssessmentRunInProgressException You cannot perform a specified action if an assessment run is currently in progress.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAssessmentRun
default CompletableFuture<DeleteAssessmentRunResponse> deleteAssessmentRun(Consumer<DeleteAssessmentRunRequest.Builder> deleteAssessmentRunRequest) Deletes the assessment run that is specified by the ARN of the assessment run.
This is a convenience which creates an instance of the
DeleteAssessmentRunRequest.Builder
avoiding the need to create one manually viaDeleteAssessmentRunRequest.builder()
- Parameters:
deleteAssessmentRunRequest
- AConsumer
that will call methods onDeleteAssessmentRunRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteAssessmentRun operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AssessmentRunInProgressException You cannot perform a specified action if an assessment run is currently in progress.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAssessmentTarget
default CompletableFuture<DeleteAssessmentTargetResponse> deleteAssessmentTarget(DeleteAssessmentTargetRequest deleteAssessmentTargetRequest) Deletes the assessment target that is specified by the ARN of the assessment target.
- Parameters:
deleteAssessmentTargetRequest
-- Returns:
- A Java Future containing the result of the DeleteAssessmentTarget operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AssessmentRunInProgressException You cannot perform a specified action if an assessment run is currently in progress.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAssessmentTarget
default CompletableFuture<DeleteAssessmentTargetResponse> deleteAssessmentTarget(Consumer<DeleteAssessmentTargetRequest.Builder> deleteAssessmentTargetRequest) Deletes the assessment target that is specified by the ARN of the assessment target.
This is a convenience which creates an instance of the
DeleteAssessmentTargetRequest.Builder
avoiding the need to create one manually viaDeleteAssessmentTargetRequest.builder()
- Parameters:
deleteAssessmentTargetRequest
- AConsumer
that will call methods onDeleteAssessmentTargetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteAssessmentTarget operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AssessmentRunInProgressException You cannot perform a specified action if an assessment run is currently in progress.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAssessmentTemplate
default CompletableFuture<DeleteAssessmentTemplateResponse> deleteAssessmentTemplate(DeleteAssessmentTemplateRequest deleteAssessmentTemplateRequest) Deletes the assessment template that is specified by the ARN of the assessment template.
- Parameters:
deleteAssessmentTemplateRequest
-- Returns:
- A Java Future containing the result of the DeleteAssessmentTemplate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AssessmentRunInProgressException You cannot perform a specified action if an assessment run is currently in progress.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAssessmentTemplate
default CompletableFuture<DeleteAssessmentTemplateResponse> deleteAssessmentTemplate(Consumer<DeleteAssessmentTemplateRequest.Builder> deleteAssessmentTemplateRequest) Deletes the assessment template that is specified by the ARN of the assessment template.
This is a convenience which creates an instance of the
DeleteAssessmentTemplateRequest.Builder
avoiding the need to create one manually viaDeleteAssessmentTemplateRequest.builder()
- Parameters:
deleteAssessmentTemplateRequest
- AConsumer
that will call methods onDeleteAssessmentTemplateRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteAssessmentTemplate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AssessmentRunInProgressException You cannot perform a specified action if an assessment run is currently in progress.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeAssessmentRuns
default CompletableFuture<DescribeAssessmentRunsResponse> describeAssessmentRuns(DescribeAssessmentRunsRequest describeAssessmentRunsRequest) Describes the assessment runs that are specified by the ARNs of the assessment runs.
- Parameters:
describeAssessmentRunsRequest
-- Returns:
- A Java Future containing the result of the DescribeAssessmentRuns operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeAssessmentRuns
default CompletableFuture<DescribeAssessmentRunsResponse> describeAssessmentRuns(Consumer<DescribeAssessmentRunsRequest.Builder> describeAssessmentRunsRequest) Describes the assessment runs that are specified by the ARNs of the assessment runs.
This is a convenience which creates an instance of the
DescribeAssessmentRunsRequest.Builder
avoiding the need to create one manually viaDescribeAssessmentRunsRequest.builder()
- Parameters:
describeAssessmentRunsRequest
- AConsumer
that will call methods onDescribeAssessmentRunsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeAssessmentRuns operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeAssessmentTargets
default CompletableFuture<DescribeAssessmentTargetsResponse> describeAssessmentTargets(DescribeAssessmentTargetsRequest describeAssessmentTargetsRequest) Describes the assessment targets that are specified by the ARNs of the assessment targets.
- Parameters:
describeAssessmentTargetsRequest
-- Returns:
- A Java Future containing the result of the DescribeAssessmentTargets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeAssessmentTargets
default CompletableFuture<DescribeAssessmentTargetsResponse> describeAssessmentTargets(Consumer<DescribeAssessmentTargetsRequest.Builder> describeAssessmentTargetsRequest) Describes the assessment targets that are specified by the ARNs of the assessment targets.
This is a convenience which creates an instance of the
DescribeAssessmentTargetsRequest.Builder
avoiding the need to create one manually viaDescribeAssessmentTargetsRequest.builder()
- Parameters:
describeAssessmentTargetsRequest
- AConsumer
that will call methods onDescribeAssessmentTargetsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeAssessmentTargets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeAssessmentTemplates
default CompletableFuture<DescribeAssessmentTemplatesResponse> describeAssessmentTemplates(DescribeAssessmentTemplatesRequest describeAssessmentTemplatesRequest) Describes the assessment templates that are specified by the ARNs of the assessment templates.
- Parameters:
describeAssessmentTemplatesRequest
-- Returns:
- A Java Future containing the result of the DescribeAssessmentTemplates operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeAssessmentTemplates
default CompletableFuture<DescribeAssessmentTemplatesResponse> describeAssessmentTemplates(Consumer<DescribeAssessmentTemplatesRequest.Builder> describeAssessmentTemplatesRequest) Describes the assessment templates that are specified by the ARNs of the assessment templates.
This is a convenience which creates an instance of the
DescribeAssessmentTemplatesRequest.Builder
avoiding the need to create one manually viaDescribeAssessmentTemplatesRequest.builder()
- Parameters:
describeAssessmentTemplatesRequest
- AConsumer
that will call methods onDescribeAssessmentTemplatesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeAssessmentTemplates operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeCrossAccountAccessRole
default CompletableFuture<DescribeCrossAccountAccessRoleResponse> describeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest describeCrossAccountAccessRoleRequest) Describes the IAM role that enables Amazon Inspector to access your AWS account.
- Parameters:
describeCrossAccountAccessRoleRequest
-- Returns:
- A Java Future containing the result of the DescribeCrossAccountAccessRole operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeCrossAccountAccessRole
default CompletableFuture<DescribeCrossAccountAccessRoleResponse> describeCrossAccountAccessRole(Consumer<DescribeCrossAccountAccessRoleRequest.Builder> describeCrossAccountAccessRoleRequest) Describes the IAM role that enables Amazon Inspector to access your AWS account.
This is a convenience which creates an instance of the
DescribeCrossAccountAccessRoleRequest.Builder
avoiding the need to create one manually viaDescribeCrossAccountAccessRoleRequest.builder()
- Parameters:
describeCrossAccountAccessRoleRequest
- AConsumer
that will call methods onDescribeCrossAccountAccessRoleRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeCrossAccountAccessRole operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeCrossAccountAccessRole
Describes the IAM role that enables Amazon Inspector to access your AWS account.
- Returns:
- A Java Future containing the result of the DescribeCrossAccountAccessRole operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeExclusions
default CompletableFuture<DescribeExclusionsResponse> describeExclusions(DescribeExclusionsRequest describeExclusionsRequest) Describes the exclusions that are specified by the exclusions' ARNs.
- Parameters:
describeExclusionsRequest
-- Returns:
- A Java Future containing the result of the DescribeExclusions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeExclusions
default CompletableFuture<DescribeExclusionsResponse> describeExclusions(Consumer<DescribeExclusionsRequest.Builder> describeExclusionsRequest) Describes the exclusions that are specified by the exclusions' ARNs.
This is a convenience which creates an instance of the
DescribeExclusionsRequest.Builder
avoiding the need to create one manually viaDescribeExclusionsRequest.builder()
- Parameters:
describeExclusionsRequest
- AConsumer
that will call methods onDescribeExclusionsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeExclusions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeFindings
default CompletableFuture<DescribeFindingsResponse> describeFindings(DescribeFindingsRequest describeFindingsRequest) Describes the findings that are specified by the ARNs of the findings.
- Parameters:
describeFindingsRequest
-- Returns:
- A Java Future containing the result of the DescribeFindings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeFindings
default CompletableFuture<DescribeFindingsResponse> describeFindings(Consumer<DescribeFindingsRequest.Builder> describeFindingsRequest) Describes the findings that are specified by the ARNs of the findings.
This is a convenience which creates an instance of the
DescribeFindingsRequest.Builder
avoiding the need to create one manually viaDescribeFindingsRequest.builder()
- Parameters:
describeFindingsRequest
- AConsumer
that will call methods onDescribeFindingsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeFindings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeResourceGroups
default CompletableFuture<DescribeResourceGroupsResponse> describeResourceGroups(DescribeResourceGroupsRequest describeResourceGroupsRequest) Describes the resource groups that are specified by the ARNs of the resource groups.
- Parameters:
describeResourceGroupsRequest
-- Returns:
- A Java Future containing the result of the DescribeResourceGroups operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeResourceGroups
default CompletableFuture<DescribeResourceGroupsResponse> describeResourceGroups(Consumer<DescribeResourceGroupsRequest.Builder> describeResourceGroupsRequest) Describes the resource groups that are specified by the ARNs of the resource groups.
This is a convenience which creates an instance of the
DescribeResourceGroupsRequest.Builder
avoiding the need to create one manually viaDescribeResourceGroupsRequest.builder()
- Parameters:
describeResourceGroupsRequest
- AConsumer
that will call methods onDescribeResourceGroupsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeResourceGroups operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeRulesPackages
default CompletableFuture<DescribeRulesPackagesResponse> describeRulesPackages(DescribeRulesPackagesRequest describeRulesPackagesRequest) Describes the rules packages that are specified by the ARNs of the rules packages.
- Parameters:
describeRulesPackagesRequest
-- Returns:
- A Java Future containing the result of the DescribeRulesPackages operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeRulesPackages
default CompletableFuture<DescribeRulesPackagesResponse> describeRulesPackages(Consumer<DescribeRulesPackagesRequest.Builder> describeRulesPackagesRequest) Describes the rules packages that are specified by the ARNs of the rules packages.
This is a convenience which creates an instance of the
DescribeRulesPackagesRequest.Builder
avoiding the need to create one manually viaDescribeRulesPackagesRequest.builder()
- Parameters:
describeRulesPackagesRequest
- AConsumer
that will call methods onDescribeRulesPackagesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeRulesPackages operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAssessmentReport
default CompletableFuture<GetAssessmentReportResponse> getAssessmentReport(GetAssessmentReportRequest getAssessmentReportRequest) Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.
- Parameters:
getAssessmentReportRequest
-- Returns:
- A Java Future containing the result of the GetAssessmentReport operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- AssessmentRunInProgressException You cannot perform a specified action if an assessment run is currently in progress.
- UnsupportedFeatureException Used by the GetAssessmentReport API. The request was rejected because you tried to generate a report for an assessment run that existed before reporting was supported in Amazon Inspector. You can only generate reports for assessment runs that took place or will take place after generating reports in Amazon Inspector became available.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAssessmentReport
default CompletableFuture<GetAssessmentReportResponse> getAssessmentReport(Consumer<GetAssessmentReportRequest.Builder> getAssessmentReportRequest) Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.
This is a convenience which creates an instance of the
GetAssessmentReportRequest.Builder
avoiding the need to create one manually viaGetAssessmentReportRequest.builder()
- Parameters:
getAssessmentReportRequest
- AConsumer
that will call methods onGetAssessmentReportRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetAssessmentReport operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- AssessmentRunInProgressException You cannot perform a specified action if an assessment run is currently in progress.
- UnsupportedFeatureException Used by the GetAssessmentReport API. The request was rejected because you tried to generate a report for an assessment run that existed before reporting was supported in Amazon Inspector. You can only generate reports for assessment runs that took place or will take place after generating reports in Amazon Inspector became available.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getExclusionsPreview
default CompletableFuture<GetExclusionsPreviewResponse> getExclusionsPreview(GetExclusionsPreviewRequest getExclusionsPreviewRequest) Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token. You can obtain the preview token by running the CreateExclusionsPreview API.
- Parameters:
getExclusionsPreviewRequest
-- Returns:
- A Java Future containing the result of the GetExclusionsPreview operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- InternalException Internal server error.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getExclusionsPreview
default CompletableFuture<GetExclusionsPreviewResponse> getExclusionsPreview(Consumer<GetExclusionsPreviewRequest.Builder> getExclusionsPreviewRequest) Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token. You can obtain the preview token by running the CreateExclusionsPreview API.
This is a convenience which creates an instance of the
GetExclusionsPreviewRequest.Builder
avoiding the need to create one manually viaGetExclusionsPreviewRequest.builder()
- Parameters:
getExclusionsPreviewRequest
- AConsumer
that will call methods onGetExclusionsPreviewRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetExclusionsPreview operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- InternalException Internal server error.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getExclusionsPreviewPaginator
default GetExclusionsPreviewPublisher getExclusionsPreviewPaginator(GetExclusionsPreviewRequest getExclusionsPreviewRequest) This is a variant of
getExclusionsPreview(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewPublisher publisher = client.getExclusionsPreviewPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewPublisher publisher = client.getExclusionsPreviewPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewResponse response) { //... }; });
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
getExclusionsPreview(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest)
operation.- Parameters:
getExclusionsPreviewRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- InternalException Internal server error.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getExclusionsPreviewPaginator
default GetExclusionsPreviewPublisher getExclusionsPreviewPaginator(Consumer<GetExclusionsPreviewRequest.Builder> getExclusionsPreviewRequest) This is a variant of
getExclusionsPreview(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewPublisher publisher = client.getExclusionsPreviewPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewPublisher publisher = client.getExclusionsPreviewPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewResponse response) { //... }; });
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
getExclusionsPreview(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest)
operation.
This is a convenience which creates an instance of the
GetExclusionsPreviewRequest.Builder
avoiding the need to create one manually viaGetExclusionsPreviewRequest.builder()
- Parameters:
getExclusionsPreviewRequest
- AConsumer
that will call methods onGetExclusionsPreviewRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- InternalException Internal server error.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getTelemetryMetadata
default CompletableFuture<GetTelemetryMetadataResponse> getTelemetryMetadata(GetTelemetryMetadataRequest getTelemetryMetadataRequest) Information about the data that is collected for the specified assessment run.
- Parameters:
getTelemetryMetadataRequest
-- Returns:
- A Java Future containing the result of the GetTelemetryMetadata operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getTelemetryMetadata
default CompletableFuture<GetTelemetryMetadataResponse> getTelemetryMetadata(Consumer<GetTelemetryMetadataRequest.Builder> getTelemetryMetadataRequest) Information about the data that is collected for the specified assessment run.
This is a convenience which creates an instance of the
GetTelemetryMetadataRequest.Builder
avoiding the need to create one manually viaGetTelemetryMetadataRequest.builder()
- Parameters:
getTelemetryMetadataRequest
- AConsumer
that will call methods onGetTelemetryMetadataRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetTelemetryMetadata operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentRunAgents
default CompletableFuture<ListAssessmentRunAgentsResponse> listAssessmentRunAgents(ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest) Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
- Parameters:
listAssessmentRunAgentsRequest
-- Returns:
- A Java Future containing the result of the ListAssessmentRunAgents operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentRunAgents
default CompletableFuture<ListAssessmentRunAgentsResponse> listAssessmentRunAgents(Consumer<ListAssessmentRunAgentsRequest.Builder> listAssessmentRunAgentsRequest) Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
This is a convenience which creates an instance of the
ListAssessmentRunAgentsRequest.Builder
avoiding the need to create one manually viaListAssessmentRunAgentsRequest.builder()
- Parameters:
listAssessmentRunAgentsRequest
- AConsumer
that will call methods onListAssessmentRunAgentsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListAssessmentRunAgents operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentRunAgentsPaginator
default ListAssessmentRunAgentsPublisher listAssessmentRunAgentsPaginator(ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest) This is a variant of
listAssessmentRunAgents(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsPublisher publisher = client.listAssessmentRunAgentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsPublisher publisher = client.listAssessmentRunAgentsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsResponse response) { //... }; });
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
listAssessmentRunAgents(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest)
operation.- Parameters:
listAssessmentRunAgentsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentRunAgentsPaginator
default ListAssessmentRunAgentsPublisher listAssessmentRunAgentsPaginator(Consumer<ListAssessmentRunAgentsRequest.Builder> listAssessmentRunAgentsRequest) This is a variant of
listAssessmentRunAgents(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsPublisher publisher = client.listAssessmentRunAgentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsPublisher publisher = client.listAssessmentRunAgentsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsResponse response) { //... }; });
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
listAssessmentRunAgents(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest)
operation.
This is a convenience which creates an instance of the
ListAssessmentRunAgentsRequest.Builder
avoiding the need to create one manually viaListAssessmentRunAgentsRequest.builder()
- Parameters:
listAssessmentRunAgentsRequest
- AConsumer
that will call methods onListAssessmentRunAgentsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentRuns
default CompletableFuture<ListAssessmentRunsResponse> listAssessmentRuns(ListAssessmentRunsRequest listAssessmentRunsRequest) Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
- Parameters:
listAssessmentRunsRequest
-- Returns:
- A Java Future containing the result of the ListAssessmentRuns operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentRuns
default CompletableFuture<ListAssessmentRunsResponse> listAssessmentRuns(Consumer<ListAssessmentRunsRequest.Builder> listAssessmentRunsRequest) Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
This is a convenience which creates an instance of the
ListAssessmentRunsRequest.Builder
avoiding the need to create one manually viaListAssessmentRunsRequest.builder()
- Parameters:
listAssessmentRunsRequest
- AConsumer
that will call methods onListAssessmentRunsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListAssessmentRuns operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentRuns
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
- Returns:
- A Java Future containing the result of the ListAssessmentRuns operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentRunsPaginator
This is a variant of
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsPublisher publisher = client.listAssessmentRunsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsPublisher publisher = client.listAssessmentRunsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListAssessmentRunsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsResponse response) { //... }; });
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
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)
operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentRunsPaginator
default ListAssessmentRunsPublisher listAssessmentRunsPaginator(ListAssessmentRunsRequest listAssessmentRunsRequest) This is a variant of
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsPublisher publisher = client.listAssessmentRunsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsPublisher publisher = client.listAssessmentRunsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListAssessmentRunsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsResponse response) { //... }; });
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
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)
operation.- Parameters:
listAssessmentRunsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentRunsPaginator
default ListAssessmentRunsPublisher listAssessmentRunsPaginator(Consumer<ListAssessmentRunsRequest.Builder> listAssessmentRunsRequest) This is a variant of
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsPublisher publisher = client.listAssessmentRunsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsPublisher publisher = client.listAssessmentRunsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListAssessmentRunsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsResponse response) { //... }; });
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
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)
operation.
This is a convenience which creates an instance of the
ListAssessmentRunsRequest.Builder
avoiding the need to create one manually viaListAssessmentRunsRequest.builder()
- Parameters:
listAssessmentRunsRequest
- AConsumer
that will call methods onListAssessmentRunsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentTargets
default CompletableFuture<ListAssessmentTargetsResponse> listAssessmentTargets(ListAssessmentTargetsRequest listAssessmentTargetsRequest) Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
- Parameters:
listAssessmentTargetsRequest
-- Returns:
- A Java Future containing the result of the ListAssessmentTargets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentTargets
default CompletableFuture<ListAssessmentTargetsResponse> listAssessmentTargets(Consumer<ListAssessmentTargetsRequest.Builder> listAssessmentTargetsRequest) Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
This is a convenience which creates an instance of the
ListAssessmentTargetsRequest.Builder
avoiding the need to create one manually viaListAssessmentTargetsRequest.builder()
- Parameters:
listAssessmentTargetsRequest
- AConsumer
that will call methods onListAssessmentTargetsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListAssessmentTargets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentTargets
Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
- Returns:
- A Java Future containing the result of the ListAssessmentTargets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentTargetsPaginator
This is a variant of
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsPublisher publisher = client.listAssessmentTargetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsPublisher publisher = client.listAssessmentTargetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsResponse response) { //... }; });
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
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)
operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentTargetsPaginator
default ListAssessmentTargetsPublisher listAssessmentTargetsPaginator(ListAssessmentTargetsRequest listAssessmentTargetsRequest) This is a variant of
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsPublisher publisher = client.listAssessmentTargetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsPublisher publisher = client.listAssessmentTargetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsResponse response) { //... }; });
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
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)
operation.- Parameters:
listAssessmentTargetsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentTargetsPaginator
default ListAssessmentTargetsPublisher listAssessmentTargetsPaginator(Consumer<ListAssessmentTargetsRequest.Builder> listAssessmentTargetsRequest) This is a variant of
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsPublisher publisher = client.listAssessmentTargetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsPublisher publisher = client.listAssessmentTargetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsResponse response) { //... }; });
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
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)
operation.
This is a convenience which creates an instance of the
ListAssessmentTargetsRequest.Builder
avoiding the need to create one manually viaListAssessmentTargetsRequest.builder()
- Parameters:
listAssessmentTargetsRequest
- AConsumer
that will call methods onListAssessmentTargetsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentTemplates
default CompletableFuture<ListAssessmentTemplatesResponse> listAssessmentTemplates(ListAssessmentTemplatesRequest listAssessmentTemplatesRequest) Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
- Parameters:
listAssessmentTemplatesRequest
-- Returns:
- A Java Future containing the result of the ListAssessmentTemplates operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentTemplates
default CompletableFuture<ListAssessmentTemplatesResponse> listAssessmentTemplates(Consumer<ListAssessmentTemplatesRequest.Builder> listAssessmentTemplatesRequest) Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
This is a convenience which creates an instance of the
ListAssessmentTemplatesRequest.Builder
avoiding the need to create one manually viaListAssessmentTemplatesRequest.builder()
- Parameters:
listAssessmentTemplatesRequest
- AConsumer
that will call methods onListAssessmentTemplatesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListAssessmentTemplates operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentTemplates
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
- Returns:
- A Java Future containing the result of the ListAssessmentTemplates operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentTemplatesPaginator
This is a variant of
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesPublisher publisher = client.listAssessmentTemplatesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesPublisher publisher = client.listAssessmentTemplatesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesResponse response) { //... }; });
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
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)
operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentTemplatesPaginator
default ListAssessmentTemplatesPublisher listAssessmentTemplatesPaginator(ListAssessmentTemplatesRequest listAssessmentTemplatesRequest) This is a variant of
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesPublisher publisher = client.listAssessmentTemplatesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesPublisher publisher = client.listAssessmentTemplatesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesResponse response) { //... }; });
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
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)
operation.- Parameters:
listAssessmentTemplatesRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAssessmentTemplatesPaginator
default ListAssessmentTemplatesPublisher listAssessmentTemplatesPaginator(Consumer<ListAssessmentTemplatesRequest.Builder> listAssessmentTemplatesRequest) This is a variant of
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesPublisher publisher = client.listAssessmentTemplatesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesPublisher publisher = client.listAssessmentTemplatesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesResponse response) { //... }; });
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
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)
operation.
This is a convenience which creates an instance of the
ListAssessmentTemplatesRequest.Builder
avoiding the need to create one manually viaListAssessmentTemplatesRequest.builder()
- Parameters:
listAssessmentTemplatesRequest
- AConsumer
that will call methods onListAssessmentTemplatesRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventSubscriptions
default CompletableFuture<ListEventSubscriptionsResponse> listEventSubscriptions(ListEventSubscriptionsRequest listEventSubscriptionsRequest) Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template. For more information, see SubscribeToEvent and UnsubscribeFromEvent.
- Parameters:
listEventSubscriptionsRequest
-- Returns:
- A Java Future containing the result of the ListEventSubscriptions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventSubscriptions
default CompletableFuture<ListEventSubscriptionsResponse> listEventSubscriptions(Consumer<ListEventSubscriptionsRequest.Builder> listEventSubscriptionsRequest) Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template. For more information, see SubscribeToEvent and UnsubscribeFromEvent.
This is a convenience which creates an instance of the
ListEventSubscriptionsRequest.Builder
avoiding the need to create one manually viaListEventSubscriptionsRequest.builder()
- Parameters:
listEventSubscriptionsRequest
- AConsumer
that will call methods onListEventSubscriptionsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListEventSubscriptions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventSubscriptions
Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template. For more information, see SubscribeToEvent and UnsubscribeFromEvent.
- Returns:
- A Java Future containing the result of the ListEventSubscriptions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventSubscriptionsPaginator
This is a variant of
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsPublisher publisher = client.listEventSubscriptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsPublisher publisher = client.listEventSubscriptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsResponse response) { //... }; });
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
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)
operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventSubscriptionsPaginator
default ListEventSubscriptionsPublisher listEventSubscriptionsPaginator(ListEventSubscriptionsRequest listEventSubscriptionsRequest) This is a variant of
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsPublisher publisher = client.listEventSubscriptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsPublisher publisher = client.listEventSubscriptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsResponse response) { //... }; });
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
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)
operation.- Parameters:
listEventSubscriptionsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventSubscriptionsPaginator
default ListEventSubscriptionsPublisher listEventSubscriptionsPaginator(Consumer<ListEventSubscriptionsRequest.Builder> listEventSubscriptionsRequest) This is a variant of
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsPublisher publisher = client.listEventSubscriptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsPublisher publisher = client.listEventSubscriptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsResponse response) { //... }; });
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
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)
operation.
This is a convenience which creates an instance of the
ListEventSubscriptionsRequest.Builder
avoiding the need to create one manually viaListEventSubscriptionsRequest.builder()
- Parameters:
listEventSubscriptionsRequest
- AConsumer
that will call methods onListEventSubscriptionsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listExclusions
default CompletableFuture<ListExclusionsResponse> listExclusions(ListExclusionsRequest listExclusionsRequest) List exclusions that are generated by the assessment run.
- Parameters:
listExclusionsRequest
-- Returns:
- A Java Future containing the result of the ListExclusions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listExclusions
default CompletableFuture<ListExclusionsResponse> listExclusions(Consumer<ListExclusionsRequest.Builder> listExclusionsRequest) List exclusions that are generated by the assessment run.
This is a convenience which creates an instance of the
ListExclusionsRequest.Builder
avoiding the need to create one manually viaListExclusionsRequest.builder()
- Parameters:
listExclusionsRequest
- AConsumer
that will call methods onListExclusionsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListExclusions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listExclusionsPaginator
default ListExclusionsPublisher listExclusionsPaginator(ListExclusionsRequest listExclusionsRequest) This is a variant of
listExclusions(software.amazon.awssdk.services.inspector.model.ListExclusionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListExclusionsPublisher publisher = client.listExclusionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListExclusionsPublisher publisher = client.listExclusionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListExclusionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListExclusionsResponse response) { //... }; });
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
listExclusions(software.amazon.awssdk.services.inspector.model.ListExclusionsRequest)
operation.- Parameters:
listExclusionsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listExclusionsPaginator
default ListExclusionsPublisher listExclusionsPaginator(Consumer<ListExclusionsRequest.Builder> listExclusionsRequest) This is a variant of
listExclusions(software.amazon.awssdk.services.inspector.model.ListExclusionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListExclusionsPublisher publisher = client.listExclusionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListExclusionsPublisher publisher = client.listExclusionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListExclusionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListExclusionsResponse response) { //... }; });
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
listExclusions(software.amazon.awssdk.services.inspector.model.ListExclusionsRequest)
operation.
This is a convenience which creates an instance of the
ListExclusionsRequest.Builder
avoiding the need to create one manually viaListExclusionsRequest.builder()
- Parameters:
listExclusionsRequest
- AConsumer
that will call methods onListExclusionsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFindings
default CompletableFuture<ListFindingsResponse> listFindings(ListFindingsRequest listFindingsRequest) Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
- Parameters:
listFindingsRequest
-- Returns:
- A Java Future containing the result of the ListFindings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFindings
default CompletableFuture<ListFindingsResponse> listFindings(Consumer<ListFindingsRequest.Builder> listFindingsRequest) Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
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 Java Future containing the result of the ListFindings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFindings
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
- Returns:
- A Java Future containing the result of the ListFindings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFindingsPaginator
This is a variant of
listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListFindingsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListFindingsResponse response) { //... }; });
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.inspector.model.ListFindingsRequest)
operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFindingsPaginator
This is a variant of
listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListFindingsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListFindingsResponse response) { //... }; });
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.inspector.model.ListFindingsRequest)
operation.- Parameters:
listFindingsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFindingsPaginator
default ListFindingsPublisher listFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest) This is a variant of
listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListFindingsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListFindingsResponse response) { //... }; });
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.inspector.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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRulesPackages
default CompletableFuture<ListRulesPackagesResponse> listRulesPackages(ListRulesPackagesRequest listRulesPackagesRequest) Lists all available Amazon Inspector rules packages.
- Parameters:
listRulesPackagesRequest
-- Returns:
- A Java Future containing the result of the ListRulesPackages operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRulesPackages
default CompletableFuture<ListRulesPackagesResponse> listRulesPackages(Consumer<ListRulesPackagesRequest.Builder> listRulesPackagesRequest) Lists all available Amazon Inspector rules packages.
This is a convenience which creates an instance of the
ListRulesPackagesRequest.Builder
avoiding the need to create one manually viaListRulesPackagesRequest.builder()
- Parameters:
listRulesPackagesRequest
- AConsumer
that will call methods onListRulesPackagesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListRulesPackages operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRulesPackages
Lists all available Amazon Inspector rules packages.
- Returns:
- A Java Future containing the result of the ListRulesPackages operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRulesPackagesPaginator
This is a variant of
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListRulesPackagesPublisher publisher = client.listRulesPackagesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesPublisher publisher = client.listRulesPackagesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListRulesPackagesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListRulesPackagesResponse response) { //... }; });
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
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)
operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRulesPackagesPaginator
default ListRulesPackagesPublisher listRulesPackagesPaginator(ListRulesPackagesRequest listRulesPackagesRequest) This is a variant of
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListRulesPackagesPublisher publisher = client.listRulesPackagesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesPublisher publisher = client.listRulesPackagesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListRulesPackagesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListRulesPackagesResponse response) { //... }; });
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
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)
operation.- Parameters:
listRulesPackagesRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRulesPackagesPaginator
default ListRulesPackagesPublisher listRulesPackagesPaginator(Consumer<ListRulesPackagesRequest.Builder> listRulesPackagesRequest) This is a variant of
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.ListRulesPackagesPublisher publisher = client.listRulesPackagesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesPublisher publisher = client.listRulesPackagesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.ListRulesPackagesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.ListRulesPackagesResponse response) { //... }; });
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
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)
operation.
This is a convenience which creates an instance of the
ListRulesPackagesRequest.Builder
avoiding the need to create one manually viaListRulesPackagesRequest.builder()
- Parameters:
listRulesPackagesRequest
- AConsumer
that will call methods onListRulesPackagesRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists all tags associated with an assessment template.
- Parameters:
listTagsForResourceRequest
-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists all tags associated with an assessment template.
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:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
previewAgents
default CompletableFuture<PreviewAgentsResponse> previewAgents(PreviewAgentsRequest previewAgentsRequest) Previews the agents installed on the EC2 instances that are part of the specified assessment target.
- Parameters:
previewAgentsRequest
-- Returns:
- A Java Future containing the result of the PreviewAgents operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- InvalidCrossAccountRoleException Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
previewAgents
default CompletableFuture<PreviewAgentsResponse> previewAgents(Consumer<PreviewAgentsRequest.Builder> previewAgentsRequest) Previews the agents installed on the EC2 instances that are part of the specified assessment target.
This is a convenience which creates an instance of the
PreviewAgentsRequest.Builder
avoiding the need to create one manually viaPreviewAgentsRequest.builder()
- Parameters:
previewAgentsRequest
- AConsumer
that will call methods onPreviewAgentsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the PreviewAgents operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- InvalidCrossAccountRoleException Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
previewAgentsPaginator
This is a variant of
previewAgents(software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.PreviewAgentsPublisher publisher = client.previewAgentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.PreviewAgentsPublisher publisher = client.previewAgentsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.PreviewAgentsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.PreviewAgentsResponse response) { //... }; });
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
previewAgents(software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest)
operation.- Parameters:
previewAgentsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- InvalidCrossAccountRoleException Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
previewAgentsPaginator
default PreviewAgentsPublisher previewAgentsPaginator(Consumer<PreviewAgentsRequest.Builder> previewAgentsRequest) This is a variant of
previewAgents(software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.inspector.paginators.PreviewAgentsPublisher publisher = client.previewAgentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.inspector.paginators.PreviewAgentsPublisher publisher = client.previewAgentsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.inspector.model.PreviewAgentsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.inspector.model.PreviewAgentsResponse response) { //... }; });
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
previewAgents(software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest)
operation.
This is a convenience which creates an instance of the
PreviewAgentsRequest.Builder
avoiding the need to create one manually viaPreviewAgentsRequest.builder()
- Parameters:
previewAgentsRequest
- AConsumer
that will call methods onPreviewAgentsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- InvalidCrossAccountRoleException Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
registerCrossAccountAccessRole
default CompletableFuture<RegisterCrossAccountAccessRoleResponse> registerCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest registerCrossAccountAccessRoleRequest) Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.
- Parameters:
registerCrossAccountAccessRoleRequest
-- Returns:
- A Java Future containing the result of the RegisterCrossAccountAccessRole operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- InvalidCrossAccountRoleException Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
registerCrossAccountAccessRole
default CompletableFuture<RegisterCrossAccountAccessRoleResponse> registerCrossAccountAccessRole(Consumer<RegisterCrossAccountAccessRoleRequest.Builder> registerCrossAccountAccessRoleRequest) Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.
This is a convenience which creates an instance of the
RegisterCrossAccountAccessRoleRequest.Builder
avoiding the need to create one manually viaRegisterCrossAccountAccessRoleRequest.builder()
- Parameters:
registerCrossAccountAccessRoleRequest
- AConsumer
that will call methods onRegisterCrossAccountAccessRoleRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the RegisterCrossAccountAccessRole operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- InvalidCrossAccountRoleException Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
removeAttributesFromFindings
default CompletableFuture<RemoveAttributesFromFindingsResponse> removeAttributesFromFindings(RemoveAttributesFromFindingsRequest removeAttributesFromFindingsRequest) Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists.
- Parameters:
removeAttributesFromFindingsRequest
-- Returns:
- A Java Future containing the result of the RemoveAttributesFromFindings operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
removeAttributesFromFindings
default CompletableFuture<RemoveAttributesFromFindingsResponse> removeAttributesFromFindings(Consumer<RemoveAttributesFromFindingsRequest.Builder> removeAttributesFromFindingsRequest) Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists.
This is a convenience which creates an instance of the
RemoveAttributesFromFindingsRequest.Builder
avoiding the need to create one manually viaRemoveAttributesFromFindingsRequest.builder()
- Parameters:
removeAttributesFromFindingsRequest
- AConsumer
that will call methods onRemoveAttributesFromFindingsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the RemoveAttributesFromFindings operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
setTagsForResource
default CompletableFuture<SetTagsForResourceResponse> setTagsForResource(SetTagsForResourceRequest setTagsForResourceRequest) Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.
- Parameters:
setTagsForResourceRequest
-- Returns:
- A Java Future containing the result of the SetTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
setTagsForResource
default CompletableFuture<SetTagsForResourceResponse> setTagsForResource(Consumer<SetTagsForResourceRequest.Builder> setTagsForResourceRequest) Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.
This is a convenience which creates an instance of the
SetTagsForResourceRequest.Builder
avoiding the need to create one manually viaSetTagsForResourceRequest.builder()
- Parameters:
setTagsForResourceRequest
- AConsumer
that will call methods onSetTagsForResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the SetTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startAssessmentRun
default CompletableFuture<StartAssessmentRunResponse> startAssessmentRun(StartAssessmentRunRequest startAssessmentRunRequest) Starts the assessment run specified by the ARN of the assessment template. For this API to function properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account.
- Parameters:
startAssessmentRunRequest
-- Returns:
- A Java Future containing the result of the StartAssessmentRun operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- LimitExceededException The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- InvalidCrossAccountRoleException Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
- AgentsAlreadyRunningAssessmentException You started an assessment run, but one of the instances is already participating in another assessment run.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startAssessmentRun
default CompletableFuture<StartAssessmentRunResponse> startAssessmentRun(Consumer<StartAssessmentRunRequest.Builder> startAssessmentRunRequest) Starts the assessment run specified by the ARN of the assessment template. For this API to function properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account.
This is a convenience which creates an instance of the
StartAssessmentRunRequest.Builder
avoiding the need to create one manually viaStartAssessmentRunRequest.builder()
- Parameters:
startAssessmentRunRequest
- AConsumer
that will call methods onStartAssessmentRunRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StartAssessmentRun operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- LimitExceededException The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- InvalidCrossAccountRoleException Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
- AgentsAlreadyRunningAssessmentException You started an assessment run, but one of the instances is already participating in another assessment run.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopAssessmentRun
default CompletableFuture<StopAssessmentRunResponse> stopAssessmentRun(StopAssessmentRunRequest stopAssessmentRunRequest) Stops the assessment run that is specified by the ARN of the assessment run.
- Parameters:
stopAssessmentRunRequest
-- Returns:
- A Java Future containing the result of the StopAssessmentRun operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopAssessmentRun
default CompletableFuture<StopAssessmentRunResponse> stopAssessmentRun(Consumer<StopAssessmentRunRequest.Builder> stopAssessmentRunRequest) Stops the assessment run that is specified by the ARN of the assessment run.
This is a convenience which creates an instance of the
StopAssessmentRunRequest.Builder
avoiding the need to create one manually viaStopAssessmentRunRequest.builder()
- Parameters:
stopAssessmentRunRequest
- AConsumer
that will call methods onStopAssessmentRunRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StopAssessmentRun operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
subscribeToEvent
default CompletableFuture<SubscribeToEventResponse> subscribeToEvent(SubscribeToEventRequest subscribeToEventRequest) Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
- Parameters:
subscribeToEventRequest
-- Returns:
- A Java Future containing the result of the SubscribeToEvent operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- LimitExceededException The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
subscribeToEvent
default CompletableFuture<SubscribeToEventResponse> subscribeToEvent(Consumer<SubscribeToEventRequest.Builder> subscribeToEventRequest) Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
This is a convenience which creates an instance of the
SubscribeToEventRequest.Builder
avoiding the need to create one manually viaSubscribeToEventRequest.builder()
- Parameters:
subscribeToEventRequest
- AConsumer
that will call methods onSubscribeToEventRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the SubscribeToEvent operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- LimitExceededException The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
unsubscribeFromEvent
default CompletableFuture<UnsubscribeFromEventResponse> unsubscribeFromEvent(UnsubscribeFromEventRequest unsubscribeFromEventRequest) Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
- Parameters:
unsubscribeFromEventRequest
-- Returns:
- A Java Future containing the result of the UnsubscribeFromEvent operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
unsubscribeFromEvent
default CompletableFuture<UnsubscribeFromEventResponse> unsubscribeFromEvent(Consumer<UnsubscribeFromEventRequest.Builder> unsubscribeFromEventRequest) Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
This is a convenience which creates an instance of the
UnsubscribeFromEventRequest.Builder
avoiding the need to create one manually viaUnsubscribeFromEventRequest.builder()
- Parameters:
unsubscribeFromEventRequest
- AConsumer
that will call methods onUnsubscribeFromEventRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UnsubscribeFromEvent operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAssessmentTarget
default CompletableFuture<UpdateAssessmentTargetResponse> updateAssessmentTarget(UpdateAssessmentTargetRequest updateAssessmentTargetRequest) Updates the assessment target that is specified by the ARN of the assessment target.
If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
- Parameters:
updateAssessmentTargetRequest
-- Returns:
- A Java Future containing the result of the UpdateAssessmentTarget operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAssessmentTarget
default CompletableFuture<UpdateAssessmentTargetResponse> updateAssessmentTarget(Consumer<UpdateAssessmentTargetRequest.Builder> updateAssessmentTargetRequest) Updates the assessment target that is specified by the ARN of the assessment target.
If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
This is a convenience which creates an instance of the
UpdateAssessmentTargetRequest.Builder
avoiding the need to create one manually viaUpdateAssessmentTargetRequest.builder()
- Parameters:
updateAssessmentTargetRequest
- AConsumer
that will call methods onUpdateAssessmentTargetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateAssessmentTarget operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalException Internal server error.
- InvalidInputException The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException You do not have required permissions to access the requested resource.
- NoSuchEntityException The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
- ServiceTemporarilyUnavailableException The serice is temporary unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InspectorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
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
-
create
Create aInspectorAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aInspectorAsyncClient
.
-