All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.inspector.InspectorAsyncClient Maven / Gradle / Ivy

/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.inspector;

import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.core.SdkClient;
import software.amazon.awssdk.services.inspector.model.AddAttributesToFindingsRequest;
import software.amazon.awssdk.services.inspector.model.AddAttributesToFindingsResponse;
import software.amazon.awssdk.services.inspector.model.CreateAssessmentTargetRequest;
import software.amazon.awssdk.services.inspector.model.CreateAssessmentTargetResponse;
import software.amazon.awssdk.services.inspector.model.CreateAssessmentTemplateRequest;
import software.amazon.awssdk.services.inspector.model.CreateAssessmentTemplateResponse;
import software.amazon.awssdk.services.inspector.model.CreateExclusionsPreviewRequest;
import software.amazon.awssdk.services.inspector.model.CreateExclusionsPreviewResponse;
import software.amazon.awssdk.services.inspector.model.CreateResourceGroupRequest;
import software.amazon.awssdk.services.inspector.model.CreateResourceGroupResponse;
import software.amazon.awssdk.services.inspector.model.DeleteAssessmentRunRequest;
import software.amazon.awssdk.services.inspector.model.DeleteAssessmentRunResponse;
import software.amazon.awssdk.services.inspector.model.DeleteAssessmentTargetRequest;
import software.amazon.awssdk.services.inspector.model.DeleteAssessmentTargetResponse;
import software.amazon.awssdk.services.inspector.model.DeleteAssessmentTemplateRequest;
import software.amazon.awssdk.services.inspector.model.DeleteAssessmentTemplateResponse;
import software.amazon.awssdk.services.inspector.model.DescribeAssessmentRunsRequest;
import software.amazon.awssdk.services.inspector.model.DescribeAssessmentRunsResponse;
import software.amazon.awssdk.services.inspector.model.DescribeAssessmentTargetsRequest;
import software.amazon.awssdk.services.inspector.model.DescribeAssessmentTargetsResponse;
import software.amazon.awssdk.services.inspector.model.DescribeAssessmentTemplatesRequest;
import software.amazon.awssdk.services.inspector.model.DescribeAssessmentTemplatesResponse;
import software.amazon.awssdk.services.inspector.model.DescribeCrossAccountAccessRoleRequest;
import software.amazon.awssdk.services.inspector.model.DescribeCrossAccountAccessRoleResponse;
import software.amazon.awssdk.services.inspector.model.DescribeExclusionsRequest;
import software.amazon.awssdk.services.inspector.model.DescribeExclusionsResponse;
import software.amazon.awssdk.services.inspector.model.DescribeFindingsRequest;
import software.amazon.awssdk.services.inspector.model.DescribeFindingsResponse;
import software.amazon.awssdk.services.inspector.model.DescribeResourceGroupsRequest;
import software.amazon.awssdk.services.inspector.model.DescribeResourceGroupsResponse;
import software.amazon.awssdk.services.inspector.model.DescribeRulesPackagesRequest;
import software.amazon.awssdk.services.inspector.model.DescribeRulesPackagesResponse;
import software.amazon.awssdk.services.inspector.model.GetAssessmentReportRequest;
import software.amazon.awssdk.services.inspector.model.GetAssessmentReportResponse;
import software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest;
import software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewResponse;
import software.amazon.awssdk.services.inspector.model.GetTelemetryMetadataRequest;
import software.amazon.awssdk.services.inspector.model.GetTelemetryMetadataResponse;
import software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest;
import software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsResponse;
import software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest;
import software.amazon.awssdk.services.inspector.model.ListAssessmentRunsResponse;
import software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest;
import software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsResponse;
import software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest;
import software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesResponse;
import software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest;
import software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsResponse;
import software.amazon.awssdk.services.inspector.model.ListExclusionsRequest;
import software.amazon.awssdk.services.inspector.model.ListExclusionsResponse;
import software.amazon.awssdk.services.inspector.model.ListFindingsRequest;
import software.amazon.awssdk.services.inspector.model.ListFindingsResponse;
import software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest;
import software.amazon.awssdk.services.inspector.model.ListRulesPackagesResponse;
import software.amazon.awssdk.services.inspector.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.inspector.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest;
import software.amazon.awssdk.services.inspector.model.PreviewAgentsResponse;
import software.amazon.awssdk.services.inspector.model.RegisterCrossAccountAccessRoleRequest;
import software.amazon.awssdk.services.inspector.model.RegisterCrossAccountAccessRoleResponse;
import software.amazon.awssdk.services.inspector.model.RemoveAttributesFromFindingsRequest;
import software.amazon.awssdk.services.inspector.model.RemoveAttributesFromFindingsResponse;
import software.amazon.awssdk.services.inspector.model.SetTagsForResourceRequest;
import software.amazon.awssdk.services.inspector.model.SetTagsForResourceResponse;
import software.amazon.awssdk.services.inspector.model.StartAssessmentRunRequest;
import software.amazon.awssdk.services.inspector.model.StartAssessmentRunResponse;
import software.amazon.awssdk.services.inspector.model.StopAssessmentRunRequest;
import software.amazon.awssdk.services.inspector.model.StopAssessmentRunResponse;
import software.amazon.awssdk.services.inspector.model.SubscribeToEventRequest;
import software.amazon.awssdk.services.inspector.model.SubscribeToEventResponse;
import software.amazon.awssdk.services.inspector.model.UnsubscribeFromEventRequest;
import software.amazon.awssdk.services.inspector.model.UnsubscribeFromEventResponse;
import software.amazon.awssdk.services.inspector.model.UpdateAssessmentTargetRequest;
import software.amazon.awssdk.services.inspector.model.UpdateAssessmentTargetResponse;
import software.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewPublisher;
import software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsPublisher;
import software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsPublisher;
import software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsPublisher;
import software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesPublisher;
import software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsPublisher;
import software.amazon.awssdk.services.inspector.paginators.ListExclusionsPublisher;
import software.amazon.awssdk.services.inspector.paginators.ListFindingsPublisher;
import software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesPublisher;
import software.amazon.awssdk.services.inspector.paginators.PreviewAgentsPublisher;

/**
 * Service client for accessing Amazon Inspector asynchronously. This can be created using the static {@link #builder()}
 * method.
 *
 * Amazon Inspector
 * 

* 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. *

*/ @Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface InspectorAsyncClient extends SdkClient { String SERVICE_NAME = "inspector"; /** * Value for looking up the service's metadata from the * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}. */ String SERVICE_METADATA_ID = "inspector"; /** * Create a {@link InspectorAsyncClient} with the region loaded from the * {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the * {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}. */ static InspectorAsyncClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link InspectorAsyncClient}. */ static InspectorAsyncClientBuilder builder() { return new DefaultInspectorAsyncClientBuilder(); } /** *

* Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings. *

* * @param addAttributesToFindingsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.AddAttributesToFindings * @see AWS API Documentation */ default CompletableFuture addAttributesToFindings( AddAttributesToFindingsRequest addAttributesToFindingsRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link AddAttributesToFindingsRequest.Builder} avoiding * the need to create one manually via {@link AddAttributesToFindingsRequest#builder()} *

* * @param addAttributesToFindingsRequest * A {@link Consumer} that will call methods on {@link AddAttributesToFindingsRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.AddAttributesToFindings * @see AWS API Documentation */ default CompletableFuture addAttributesToFindings( Consumer addAttributesToFindingsRequest) { return addAttributesToFindings(AddAttributesToFindingsRequest.builder().applyMutation(addAttributesToFindingsRequest) .build()); } /** *

* 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. *

* * @param createAssessmentTargetRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.CreateAssessmentTarget * @see AWS API Documentation */ default CompletableFuture createAssessmentTarget( CreateAssessmentTargetRequest createAssessmentTargetRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link CreateAssessmentTargetRequest.Builder} avoiding the * need to create one manually via {@link CreateAssessmentTargetRequest#builder()} *

* * @param createAssessmentTargetRequest * A {@link Consumer} that will call methods on {@link CreateAssessmentTargetRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.CreateAssessmentTarget * @see AWS API Documentation */ default CompletableFuture createAssessmentTarget( Consumer createAssessmentTargetRequest) { return createAssessmentTarget(CreateAssessmentTargetRequest.builder().applyMutation(createAssessmentTargetRequest) .build()); } /** *

* 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. *

* * @param createAssessmentTemplateRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.CreateAssessmentTemplate * @see AWS API Documentation */ default CompletableFuture createAssessmentTemplate( CreateAssessmentTemplateRequest createAssessmentTemplateRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link CreateAssessmentTemplateRequest.Builder} avoiding * the need to create one manually via {@link CreateAssessmentTemplateRequest#builder()} *

* * @param createAssessmentTemplateRequest * A {@link Consumer} that will call methods on {@link CreateAssessmentTemplateRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.CreateAssessmentTemplate * @see AWS API Documentation */ default CompletableFuture createAssessmentTemplate( Consumer createAssessmentTemplateRequest) { return createAssessmentTemplate(CreateAssessmentTemplateRequest.builder().applyMutation(createAssessmentTemplateRequest) .build()); } /** *

* 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. *

* * @param createExclusionsPreviewRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.CreateExclusionsPreview * @see AWS API Documentation */ default CompletableFuture createExclusionsPreview( CreateExclusionsPreviewRequest createExclusionsPreviewRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link CreateExclusionsPreviewRequest.Builder} avoiding * the need to create one manually via {@link CreateExclusionsPreviewRequest#builder()} *

* * @param createExclusionsPreviewRequest * A {@link Consumer} that will call methods on {@link CreateExclusionsPreviewRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.CreateExclusionsPreview * @see AWS API Documentation */ default CompletableFuture createExclusionsPreview( Consumer createExclusionsPreviewRequest) { return createExclusionsPreview(CreateExclusionsPreviewRequest.builder().applyMutation(createExclusionsPreviewRequest) .build()); } /** *

* 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. *

* * @param createResourceGroupRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.CreateResourceGroup * @see AWS * API Documentation */ default CompletableFuture createResourceGroup( CreateResourceGroupRequest createResourceGroupRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link CreateResourceGroupRequest.Builder} avoiding the * need to create one manually via {@link CreateResourceGroupRequest#builder()} *

* * @param createResourceGroupRequest * A {@link Consumer} that will call methods on {@link CreateResourceGroupRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.CreateResourceGroup * @see AWS * API Documentation */ default CompletableFuture createResourceGroup( Consumer createResourceGroupRequest) { return createResourceGroup(CreateResourceGroupRequest.builder().applyMutation(createResourceGroupRequest).build()); } /** *

* Deletes the assessment run that is specified by the ARN of the assessment run. *

* * @param deleteAssessmentRunRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DeleteAssessmentRun * @see AWS * API Documentation */ default CompletableFuture deleteAssessmentRun( DeleteAssessmentRunRequest deleteAssessmentRunRequest) { throw new UnsupportedOperationException(); } /** *

* Deletes the assessment run that is specified by the ARN of the assessment run. *

*
*

* This is a convenience which creates an instance of the {@link DeleteAssessmentRunRequest.Builder} avoiding the * need to create one manually via {@link DeleteAssessmentRunRequest#builder()} *

* * @param deleteAssessmentRunRequest * A {@link Consumer} that will call methods on {@link DeleteAssessmentRunRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DeleteAssessmentRun * @see AWS * API Documentation */ default CompletableFuture deleteAssessmentRun( Consumer deleteAssessmentRunRequest) { return deleteAssessmentRun(DeleteAssessmentRunRequest.builder().applyMutation(deleteAssessmentRunRequest).build()); } /** *

* Deletes the assessment target that is specified by the ARN of the assessment target. *

* * @param deleteAssessmentTargetRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DeleteAssessmentTarget * @see AWS API Documentation */ default CompletableFuture deleteAssessmentTarget( DeleteAssessmentTargetRequest deleteAssessmentTargetRequest) { throw new UnsupportedOperationException(); } /** *

* Deletes the assessment target that is specified by the ARN of the assessment target. *

*
*

* This is a convenience which creates an instance of the {@link DeleteAssessmentTargetRequest.Builder} avoiding the * need to create one manually via {@link DeleteAssessmentTargetRequest#builder()} *

* * @param deleteAssessmentTargetRequest * A {@link Consumer} that will call methods on {@link DeleteAssessmentTargetRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DeleteAssessmentTarget * @see AWS API Documentation */ default CompletableFuture deleteAssessmentTarget( Consumer deleteAssessmentTargetRequest) { return deleteAssessmentTarget(DeleteAssessmentTargetRequest.builder().applyMutation(deleteAssessmentTargetRequest) .build()); } /** *

* Deletes the assessment template that is specified by the ARN of the assessment template. *

* * @param deleteAssessmentTemplateRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DeleteAssessmentTemplate * @see AWS API Documentation */ default CompletableFuture deleteAssessmentTemplate( DeleteAssessmentTemplateRequest deleteAssessmentTemplateRequest) { throw new UnsupportedOperationException(); } /** *

* Deletes the assessment template that is specified by the ARN of the assessment template. *

*
*

* This is a convenience which creates an instance of the {@link DeleteAssessmentTemplateRequest.Builder} avoiding * the need to create one manually via {@link DeleteAssessmentTemplateRequest#builder()} *

* * @param deleteAssessmentTemplateRequest * A {@link Consumer} that will call methods on {@link DeleteAssessmentTemplateRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DeleteAssessmentTemplate * @see AWS API Documentation */ default CompletableFuture deleteAssessmentTemplate( Consumer deleteAssessmentTemplateRequest) { return deleteAssessmentTemplate(DeleteAssessmentTemplateRequest.builder().applyMutation(deleteAssessmentTemplateRequest) .build()); } /** *

* Describes the assessment runs that are specified by the ARNs of the assessment runs. *

* * @param describeAssessmentRunsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeAssessmentRuns * @see AWS API Documentation */ default CompletableFuture describeAssessmentRuns( DescribeAssessmentRunsRequest describeAssessmentRunsRequest) { throw new UnsupportedOperationException(); } /** *

* Describes the assessment runs that are specified by the ARNs of the assessment runs. *

*
*

* This is a convenience which creates an instance of the {@link DescribeAssessmentRunsRequest.Builder} avoiding the * need to create one manually via {@link DescribeAssessmentRunsRequest#builder()} *

* * @param describeAssessmentRunsRequest * A {@link Consumer} that will call methods on {@link DescribeAssessmentRunsRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeAssessmentRuns * @see AWS API Documentation */ default CompletableFuture describeAssessmentRuns( Consumer describeAssessmentRunsRequest) { return describeAssessmentRuns(DescribeAssessmentRunsRequest.builder().applyMutation(describeAssessmentRunsRequest) .build()); } /** *

* Describes the assessment targets that are specified by the ARNs of the assessment targets. *

* * @param describeAssessmentTargetsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeAssessmentTargets * @see AWS API Documentation */ default CompletableFuture describeAssessmentTargets( DescribeAssessmentTargetsRequest describeAssessmentTargetsRequest) { throw new UnsupportedOperationException(); } /** *

* Describes the assessment targets that are specified by the ARNs of the assessment targets. *

*
*

* This is a convenience which creates an instance of the {@link DescribeAssessmentTargetsRequest.Builder} avoiding * the need to create one manually via {@link DescribeAssessmentTargetsRequest#builder()} *

* * @param describeAssessmentTargetsRequest * A {@link Consumer} that will call methods on {@link DescribeAssessmentTargetsRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeAssessmentTargets * @see AWS API Documentation */ default CompletableFuture describeAssessmentTargets( Consumer describeAssessmentTargetsRequest) { return describeAssessmentTargets(DescribeAssessmentTargetsRequest.builder() .applyMutation(describeAssessmentTargetsRequest).build()); } /** *

* Describes the assessment templates that are specified by the ARNs of the assessment templates. *

* * @param describeAssessmentTemplatesRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeAssessmentTemplates * @see AWS API Documentation */ default CompletableFuture describeAssessmentTemplates( DescribeAssessmentTemplatesRequest describeAssessmentTemplatesRequest) { throw new UnsupportedOperationException(); } /** *

* Describes the assessment templates that are specified by the ARNs of the assessment templates. *

*
*

* This is a convenience which creates an instance of the {@link DescribeAssessmentTemplatesRequest.Builder} * avoiding the need to create one manually via {@link DescribeAssessmentTemplatesRequest#builder()} *

* * @param describeAssessmentTemplatesRequest * A {@link Consumer} that will call methods on {@link DescribeAssessmentTemplatesRequest.Builder} to create * a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeAssessmentTemplates * @see AWS API Documentation */ default CompletableFuture describeAssessmentTemplates( Consumer describeAssessmentTemplatesRequest) { return describeAssessmentTemplates(DescribeAssessmentTemplatesRequest.builder() .applyMutation(describeAssessmentTemplatesRequest).build()); } /** *

* Describes the IAM role that enables Amazon Inspector to access your AWS account. *

* * @param describeCrossAccountAccessRoleRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeCrossAccountAccessRole * @see AWS API Documentation */ default CompletableFuture describeCrossAccountAccessRole( DescribeCrossAccountAccessRoleRequest describeCrossAccountAccessRoleRequest) { throw new UnsupportedOperationException(); } /** *

* Describes the IAM role that enables Amazon Inspector to access your AWS account. *

*
*

* This is a convenience which creates an instance of the {@link DescribeCrossAccountAccessRoleRequest.Builder} * avoiding the need to create one manually via {@link DescribeCrossAccountAccessRoleRequest#builder()} *

* * @param describeCrossAccountAccessRoleRequest * A {@link Consumer} that will call methods on {@link DescribeCrossAccountAccessRoleRequest.Builder} to * create a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeCrossAccountAccessRole * @see AWS API Documentation */ default CompletableFuture describeCrossAccountAccessRole( Consumer describeCrossAccountAccessRoleRequest) { return describeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest.builder() .applyMutation(describeCrossAccountAccessRoleRequest).build()); } /** *

* Describes the IAM role that enables Amazon Inspector to access your AWS account. *

* * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeCrossAccountAccessRole * @see AWS API Documentation */ default CompletableFuture describeCrossAccountAccessRole() { return describeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest.builder().build()); } /** *

* Describes the exclusions that are specified by the exclusions' ARNs. *

* * @param describeExclusionsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeExclusions * @see AWS * API Documentation */ default CompletableFuture describeExclusions(DescribeExclusionsRequest describeExclusionsRequest) { throw new UnsupportedOperationException(); } /** *

* Describes the exclusions that are specified by the exclusions' ARNs. *

*
*

* This is a convenience which creates an instance of the {@link DescribeExclusionsRequest.Builder} avoiding the * need to create one manually via {@link DescribeExclusionsRequest#builder()} *

* * @param describeExclusionsRequest * A {@link Consumer} that will call methods on {@link DescribeExclusionsRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeExclusions * @see AWS * API Documentation */ default CompletableFuture describeExclusions( Consumer describeExclusionsRequest) { return describeExclusions(DescribeExclusionsRequest.builder().applyMutation(describeExclusionsRequest).build()); } /** *

* Describes the findings that are specified by the ARNs of the findings. *

* * @param describeFindingsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeFindings * @see AWS * API Documentation */ default CompletableFuture describeFindings(DescribeFindingsRequest describeFindingsRequest) { throw new UnsupportedOperationException(); } /** *

* Describes the findings that are specified by the ARNs of the findings. *

*
*

* This is a convenience which creates an instance of the {@link DescribeFindingsRequest.Builder} avoiding the need * to create one manually via {@link DescribeFindingsRequest#builder()} *

* * @param describeFindingsRequest * A {@link Consumer} that will call methods on {@link DescribeFindingsRequest.Builder} to create a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeFindings * @see AWS * API Documentation */ default CompletableFuture describeFindings( Consumer describeFindingsRequest) { return describeFindings(DescribeFindingsRequest.builder().applyMutation(describeFindingsRequest).build()); } /** *

* Describes the resource groups that are specified by the ARNs of the resource groups. *

* * @param describeResourceGroupsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeResourceGroups * @see AWS API Documentation */ default CompletableFuture describeResourceGroups( DescribeResourceGroupsRequest describeResourceGroupsRequest) { throw new UnsupportedOperationException(); } /** *

* Describes the resource groups that are specified by the ARNs of the resource groups. *

*
*

* This is a convenience which creates an instance of the {@link DescribeResourceGroupsRequest.Builder} avoiding the * need to create one manually via {@link DescribeResourceGroupsRequest#builder()} *

* * @param describeResourceGroupsRequest * A {@link Consumer} that will call methods on {@link DescribeResourceGroupsRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeResourceGroups * @see AWS API Documentation */ default CompletableFuture describeResourceGroups( Consumer describeResourceGroupsRequest) { return describeResourceGroups(DescribeResourceGroupsRequest.builder().applyMutation(describeResourceGroupsRequest) .build()); } /** *

* Describes the rules packages that are specified by the ARNs of the rules packages. *

* * @param describeRulesPackagesRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeRulesPackages * @see AWS API Documentation */ default CompletableFuture describeRulesPackages( DescribeRulesPackagesRequest describeRulesPackagesRequest) { throw new UnsupportedOperationException(); } /** *

* Describes the rules packages that are specified by the ARNs of the rules packages. *

*
*

* This is a convenience which creates an instance of the {@link DescribeRulesPackagesRequest.Builder} avoiding the * need to create one manually via {@link DescribeRulesPackagesRequest#builder()} *

* * @param describeRulesPackagesRequest * A {@link Consumer} that will call methods on {@link DescribeRulesPackagesRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.DescribeRulesPackages * @see AWS API Documentation */ default CompletableFuture describeRulesPackages( Consumer describeRulesPackagesRequest) { return describeRulesPackages(DescribeRulesPackagesRequest.builder().applyMutation(describeRulesPackagesRequest).build()); } /** *

* Produces an assessment report that includes detailed and comprehensive results of a specified assessment run. *

* * @param getAssessmentReportRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.GetAssessmentReport * @see AWS * API Documentation */ default CompletableFuture getAssessmentReport( GetAssessmentReportRequest getAssessmentReportRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link GetAssessmentReportRequest.Builder} avoiding the * need to create one manually via {@link GetAssessmentReportRequest#builder()} *

* * @param getAssessmentReportRequest * A {@link Consumer} that will call methods on {@link GetAssessmentReportRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.GetAssessmentReport * @see AWS * API Documentation */ default CompletableFuture getAssessmentReport( Consumer getAssessmentReportRequest) { return getAssessmentReport(GetAssessmentReportRequest.builder().applyMutation(getAssessmentReportRequest).build()); } /** *

* 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. *

* * @param getExclusionsPreviewRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.GetExclusionsPreview * @see AWS API Documentation */ default CompletableFuture getExclusionsPreview( GetExclusionsPreviewRequest getExclusionsPreviewRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link GetExclusionsPreviewRequest.Builder} avoiding the * need to create one manually via {@link GetExclusionsPreviewRequest#builder()} *

* * @param getExclusionsPreviewRequest * A {@link Consumer} that will call methods on {@link GetExclusionsPreviewRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.GetExclusionsPreview * @see AWS API Documentation */ default CompletableFuture getExclusionsPreview( Consumer getExclusionsPreviewRequest) { return getExclusionsPreview(GetExclusionsPreviewRequest.builder().applyMutation(getExclusionsPreviewRequest).build()); } /** *

* 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 variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewPublisher publisher = client.getExclusionsPreviewPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewPublisher publisher = client.getExclusionsPreviewPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #getExclusionsPreview(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest)} * operation. *

* * @param getExclusionsPreviewRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.GetExclusionsPreview * @see AWS API Documentation */ default GetExclusionsPreviewPublisher getExclusionsPreviewPaginator(GetExclusionsPreviewRequest getExclusionsPreviewRequest) { throw new UnsupportedOperationException(); } /** *

* 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 variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewPublisher publisher = client.getExclusionsPreviewPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewPublisher publisher = client.getExclusionsPreviewPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #getExclusionsPreview(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link GetExclusionsPreviewRequest.Builder} avoiding the * need to create one manually via {@link GetExclusionsPreviewRequest#builder()} *

* * @param getExclusionsPreviewRequest * A {@link Consumer} that will call methods on {@link GetExclusionsPreviewRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.GetExclusionsPreview * @see AWS API Documentation */ default GetExclusionsPreviewPublisher getExclusionsPreviewPaginator( Consumer getExclusionsPreviewRequest) { return getExclusionsPreviewPaginator(GetExclusionsPreviewRequest.builder().applyMutation(getExclusionsPreviewRequest) .build()); } /** *

* Information about the data that is collected for the specified assessment run. *

* * @param getTelemetryMetadataRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.GetTelemetryMetadata * @see AWS API Documentation */ default CompletableFuture getTelemetryMetadata( GetTelemetryMetadataRequest getTelemetryMetadataRequest) { throw new UnsupportedOperationException(); } /** *

* Information about the data that is collected for the specified assessment run. *

*
*

* This is a convenience which creates an instance of the {@link GetTelemetryMetadataRequest.Builder} avoiding the * need to create one manually via {@link GetTelemetryMetadataRequest#builder()} *

* * @param getTelemetryMetadataRequest * A {@link Consumer} that will call methods on {@link GetTelemetryMetadataRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.GetTelemetryMetadata * @see AWS API Documentation */ default CompletableFuture getTelemetryMetadata( Consumer getTelemetryMetadataRequest) { return getTelemetryMetadata(GetTelemetryMetadataRequest.builder().applyMutation(getTelemetryMetadataRequest).build()); } /** *

* Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs. *

* * @param listAssessmentRunAgentsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentRunAgents * @see AWS API Documentation */ default CompletableFuture listAssessmentRunAgents( ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link ListAssessmentRunAgentsRequest.Builder} avoiding * the need to create one manually via {@link ListAssessmentRunAgentsRequest#builder()} *

* * @param listAssessmentRunAgentsRequest * A {@link Consumer} that will call methods on {@link ListAssessmentRunAgentsRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentRunAgents * @see AWS API Documentation */ default CompletableFuture listAssessmentRunAgents( Consumer listAssessmentRunAgentsRequest) { return listAssessmentRunAgents(ListAssessmentRunAgentsRequest.builder().applyMutation(listAssessmentRunAgentsRequest) .build()); } /** *

* Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs. *

*
*

* This is a variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsPublisher publisher = client.listAssessmentRunAgentsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsPublisher publisher = client.listAssessmentRunAgentsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAssessmentRunAgents(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest)} * operation. *

* * @param listAssessmentRunAgentsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentRunAgents * @see AWS API Documentation */ default ListAssessmentRunAgentsPublisher listAssessmentRunAgentsPaginator( ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest) { throw new UnsupportedOperationException(); } /** *

* Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs. *

*
*

* This is a variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsPublisher publisher = client.listAssessmentRunAgentsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsPublisher publisher = client.listAssessmentRunAgentsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAssessmentRunAgents(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link ListAssessmentRunAgentsRequest.Builder} avoiding * the need to create one manually via {@link ListAssessmentRunAgentsRequest#builder()} *

* * @param listAssessmentRunAgentsRequest * A {@link Consumer} that will call methods on {@link ListAssessmentRunAgentsRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentRunAgents * @see AWS API Documentation */ default ListAssessmentRunAgentsPublisher listAssessmentRunAgentsPaginator( Consumer listAssessmentRunAgentsRequest) { return listAssessmentRunAgentsPaginator(ListAssessmentRunAgentsRequest.builder() .applyMutation(listAssessmentRunAgentsRequest).build()); } /** *

* Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the * assessment templates. *

* * @param listAssessmentRunsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentRuns * @see AWS * API Documentation */ default CompletableFuture listAssessmentRuns(ListAssessmentRunsRequest listAssessmentRunsRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link ListAssessmentRunsRequest.Builder} avoiding the * need to create one manually via {@link ListAssessmentRunsRequest#builder()} *

* * @param listAssessmentRunsRequest * A {@link Consumer} that will call methods on {@link ListAssessmentRunsRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentRuns * @see AWS * API Documentation */ default CompletableFuture listAssessmentRuns( Consumer listAssessmentRunsRequest) { return listAssessmentRuns(ListAssessmentRunsRequest.builder().applyMutation(listAssessmentRunsRequest).build()); } /** *

* Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the * assessment templates. *

* * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentRuns * @see AWS * API Documentation */ default CompletableFuture listAssessmentRuns() { return listAssessmentRuns(ListAssessmentRunsRequest.builder().build()); } /** *

* Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the * assessment templates. *

*
*

* This is a variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsPublisher publisher = client.listAssessmentRunsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsPublisher publisher = client.listAssessmentRunsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)} * operation. *

* * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentRuns * @see AWS * API Documentation */ default ListAssessmentRunsPublisher listAssessmentRunsPaginator() { return listAssessmentRunsPaginator(ListAssessmentRunsRequest.builder().build()); } /** *

* Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the * assessment templates. *

*
*

* This is a variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsPublisher publisher = client.listAssessmentRunsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsPublisher publisher = client.listAssessmentRunsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)} * operation. *

* * @param listAssessmentRunsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentRuns * @see AWS * API Documentation */ default ListAssessmentRunsPublisher listAssessmentRunsPaginator(ListAssessmentRunsRequest listAssessmentRunsRequest) { throw new UnsupportedOperationException(); } /** *

* Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the * assessment templates. *

*
*

* This is a variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsPublisher publisher = client.listAssessmentRunsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsPublisher publisher = client.listAssessmentRunsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link ListAssessmentRunsRequest.Builder} avoiding the * need to create one manually via {@link ListAssessmentRunsRequest#builder()} *

* * @param listAssessmentRunsRequest * A {@link Consumer} that will call methods on {@link ListAssessmentRunsRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentRuns * @see AWS * API Documentation */ default ListAssessmentRunsPublisher listAssessmentRunsPaginator( Consumer listAssessmentRunsRequest) { return listAssessmentRunsPaginator(ListAssessmentRunsRequest.builder().applyMutation(listAssessmentRunsRequest).build()); } /** *

* Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, * see Amazon Inspector * Assessment Targets. *

* * @param listAssessmentTargetsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentTargets * @see AWS API Documentation */ default CompletableFuture listAssessmentTargets( ListAssessmentTargetsRequest listAssessmentTargetsRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link ListAssessmentTargetsRequest.Builder} avoiding the * need to create one manually via {@link ListAssessmentTargetsRequest#builder()} *

* * @param listAssessmentTargetsRequest * A {@link Consumer} that will call methods on {@link ListAssessmentTargetsRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentTargets * @see AWS API Documentation */ default CompletableFuture listAssessmentTargets( Consumer listAssessmentTargetsRequest) { return listAssessmentTargets(ListAssessmentTargetsRequest.builder().applyMutation(listAssessmentTargetsRequest).build()); } /** *

* Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, * see Amazon Inspector * Assessment Targets. *

* * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentTargets * @see AWS API Documentation */ default CompletableFuture listAssessmentTargets() { return listAssessmentTargets(ListAssessmentTargetsRequest.builder().build()); } /** *

* 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 variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsPublisher publisher = client.listAssessmentTargetsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsPublisher publisher = client.listAssessmentTargetsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)} * operation. *

* * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentTargets * @see AWS API Documentation */ default ListAssessmentTargetsPublisher listAssessmentTargetsPaginator() { return listAssessmentTargetsPaginator(ListAssessmentTargetsRequest.builder().build()); } /** *

* 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 variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsPublisher publisher = client.listAssessmentTargetsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsPublisher publisher = client.listAssessmentTargetsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)} * operation. *

* * @param listAssessmentTargetsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentTargets * @see AWS API Documentation */ default ListAssessmentTargetsPublisher listAssessmentTargetsPaginator( ListAssessmentTargetsRequest listAssessmentTargetsRequest) { throw new UnsupportedOperationException(); } /** *

* 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 variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsPublisher publisher = client.listAssessmentTargetsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsPublisher publisher = client.listAssessmentTargetsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link ListAssessmentTargetsRequest.Builder} avoiding the * need to create one manually via {@link ListAssessmentTargetsRequest#builder()} *

* * @param listAssessmentTargetsRequest * A {@link Consumer} that will call methods on {@link ListAssessmentTargetsRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentTargets * @see AWS API Documentation */ default ListAssessmentTargetsPublisher listAssessmentTargetsPaginator( Consumer listAssessmentTargetsRequest) { return listAssessmentTargetsPaginator(ListAssessmentTargetsRequest.builder().applyMutation(listAssessmentTargetsRequest) .build()); } /** *

* Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the * assessment targets. *

* * @param listAssessmentTemplatesRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentTemplates * @see AWS API Documentation */ default CompletableFuture listAssessmentTemplates( ListAssessmentTemplatesRequest listAssessmentTemplatesRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link ListAssessmentTemplatesRequest.Builder} avoiding * the need to create one manually via {@link ListAssessmentTemplatesRequest#builder()} *

* * @param listAssessmentTemplatesRequest * A {@link Consumer} that will call methods on {@link ListAssessmentTemplatesRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentTemplates * @see AWS API Documentation */ default CompletableFuture listAssessmentTemplates( Consumer listAssessmentTemplatesRequest) { return listAssessmentTemplates(ListAssessmentTemplatesRequest.builder().applyMutation(listAssessmentTemplatesRequest) .build()); } /** *

* Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the * assessment targets. *

* * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentTemplates * @see AWS API Documentation */ default CompletableFuture listAssessmentTemplates() { return listAssessmentTemplates(ListAssessmentTemplatesRequest.builder().build()); } /** *

* Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the * assessment targets. *

*
*

* This is a variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesPublisher publisher = client.listAssessmentTemplatesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesPublisher publisher = client.listAssessmentTemplatesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)} * operation. *

* * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentTemplates * @see AWS API Documentation */ default ListAssessmentTemplatesPublisher listAssessmentTemplatesPaginator() { return listAssessmentTemplatesPaginator(ListAssessmentTemplatesRequest.builder().build()); } /** *

* Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the * assessment targets. *

*
*

* This is a variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesPublisher publisher = client.listAssessmentTemplatesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesPublisher publisher = client.listAssessmentTemplatesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)} * operation. *

* * @param listAssessmentTemplatesRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentTemplates * @see AWS API Documentation */ default ListAssessmentTemplatesPublisher listAssessmentTemplatesPaginator( ListAssessmentTemplatesRequest listAssessmentTemplatesRequest) { throw new UnsupportedOperationException(); } /** *

* Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the * assessment targets. *

*
*

* This is a variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesPublisher publisher = client.listAssessmentTemplatesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesPublisher publisher = client.listAssessmentTemplatesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link ListAssessmentTemplatesRequest.Builder} avoiding * the need to create one manually via {@link ListAssessmentTemplatesRequest#builder()} *

* * @param listAssessmentTemplatesRequest * A {@link Consumer} that will call methods on {@link ListAssessmentTemplatesRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListAssessmentTemplates * @see AWS API Documentation */ default ListAssessmentTemplatesPublisher listAssessmentTemplatesPaginator( Consumer listAssessmentTemplatesRequest) { return listAssessmentTemplatesPaginator(ListAssessmentTemplatesRequest.builder() .applyMutation(listAssessmentTemplatesRequest).build()); } /** *

* 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. *

* * @param listEventSubscriptionsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListEventSubscriptions * @see AWS API Documentation */ default CompletableFuture listEventSubscriptions( ListEventSubscriptionsRequest listEventSubscriptionsRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link ListEventSubscriptionsRequest.Builder} avoiding the * need to create one manually via {@link ListEventSubscriptionsRequest#builder()} *

* * @param listEventSubscriptionsRequest * A {@link Consumer} that will call methods on {@link ListEventSubscriptionsRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListEventSubscriptions * @see AWS API Documentation */ default CompletableFuture listEventSubscriptions( Consumer listEventSubscriptionsRequest) { return listEventSubscriptions(ListEventSubscriptionsRequest.builder().applyMutation(listEventSubscriptionsRequest) .build()); } /** *

* 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. *

* * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListEventSubscriptions * @see AWS API Documentation */ default CompletableFuture listEventSubscriptions() { return listEventSubscriptions(ListEventSubscriptionsRequest.builder().build()); } /** *

* 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 variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsPublisher publisher = client.listEventSubscriptionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsPublisher publisher = client.listEventSubscriptionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)} * operation. *

* * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListEventSubscriptions * @see AWS API Documentation */ default ListEventSubscriptionsPublisher listEventSubscriptionsPaginator() { return listEventSubscriptionsPaginator(ListEventSubscriptionsRequest.builder().build()); } /** *

* 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 variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsPublisher publisher = client.listEventSubscriptionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsPublisher publisher = client.listEventSubscriptionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)} * operation. *

* * @param listEventSubscriptionsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListEventSubscriptions * @see AWS API Documentation */ default ListEventSubscriptionsPublisher listEventSubscriptionsPaginator( ListEventSubscriptionsRequest listEventSubscriptionsRequest) { throw new UnsupportedOperationException(); } /** *

* 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 variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsPublisher publisher = client.listEventSubscriptionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsPublisher publisher = client.listEventSubscriptionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link ListEventSubscriptionsRequest.Builder} avoiding the * need to create one manually via {@link ListEventSubscriptionsRequest#builder()} *

* * @param listEventSubscriptionsRequest * A {@link Consumer} that will call methods on {@link ListEventSubscriptionsRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListEventSubscriptions * @see AWS API Documentation */ default ListEventSubscriptionsPublisher listEventSubscriptionsPaginator( Consumer listEventSubscriptionsRequest) { return listEventSubscriptionsPaginator(ListEventSubscriptionsRequest.builder() .applyMutation(listEventSubscriptionsRequest).build()); } /** *

* List exclusions that are generated by the assessment run. *

* * @param listExclusionsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListExclusions * @see AWS API * Documentation */ default CompletableFuture listExclusions(ListExclusionsRequest listExclusionsRequest) { throw new UnsupportedOperationException(); } /** *

* List exclusions that are generated by the assessment run. *

*
*

* This is a convenience which creates an instance of the {@link ListExclusionsRequest.Builder} avoiding the need to * create one manually via {@link ListExclusionsRequest#builder()} *

* * @param listExclusionsRequest * A {@link Consumer} that will call methods on {@link ListExclusionsRequest.Builder} to create a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListExclusions * @see AWS API * Documentation */ default CompletableFuture listExclusions(Consumer listExclusionsRequest) { return listExclusions(ListExclusionsRequest.builder().applyMutation(listExclusionsRequest).build()); } /** *

* List exclusions that are generated by the assessment run. *

*
*

* This is a variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListExclusionsPublisher publisher = client.listExclusionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListExclusionsPublisher publisher = client.listExclusionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListExclusionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listExclusions(software.amazon.awssdk.services.inspector.model.ListExclusionsRequest)} operation. *

* * @param listExclusionsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListExclusions * @see AWS API * Documentation */ default ListExclusionsPublisher listExclusionsPaginator(ListExclusionsRequest listExclusionsRequest) { throw new UnsupportedOperationException(); } /** *

* List exclusions that are generated by the assessment run. *

*
*

* This is a variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListExclusionsPublisher publisher = client.listExclusionsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListExclusionsPublisher publisher = client.listExclusionsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListExclusionsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listExclusions(software.amazon.awssdk.services.inspector.model.ListExclusionsRequest)} operation. *

*

* This is a convenience which creates an instance of the {@link ListExclusionsRequest.Builder} avoiding the need to * create one manually via {@link ListExclusionsRequest#builder()} *

* * @param listExclusionsRequest * A {@link Consumer} that will call methods on {@link ListExclusionsRequest.Builder} to create a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListExclusions * @see AWS API * Documentation */ default ListExclusionsPublisher listExclusionsPaginator(Consumer listExclusionsRequest) { return listExclusionsPaginator(ListExclusionsRequest.builder().applyMutation(listExclusionsRequest).build()); } /** *

* Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs. *

* * @param listFindingsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListFindings * @see AWS API * Documentation */ default CompletableFuture listFindings(ListFindingsRequest listFindingsRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link ListFindingsRequest.Builder} avoiding the need to * create one manually via {@link ListFindingsRequest#builder()} *

* * @param listFindingsRequest * A {@link Consumer} that will call methods on {@link ListFindingsRequest.Builder} to create a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListFindings * @see AWS API * Documentation */ default CompletableFuture listFindings(Consumer listFindingsRequest) { return listFindings(ListFindingsRequest.builder().applyMutation(listFindingsRequest).build()); } /** *

* Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs. *

* * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListFindings * @see AWS API * Documentation */ default CompletableFuture listFindings() { return listFindings(ListFindingsRequest.builder().build()); } /** *

* Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs. *

*
*

* This is a variant of {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListFindingsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)} operation. *

* * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListFindings * @see AWS API * Documentation */ default ListFindingsPublisher listFindingsPaginator() { return listFindingsPaginator(ListFindingsRequest.builder().build()); } /** *

* Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs. *

*
*

* This is a variant of {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListFindingsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)} operation. *

* * @param listFindingsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListFindings * @see AWS API * Documentation */ default ListFindingsPublisher listFindingsPaginator(ListFindingsRequest listFindingsRequest) { throw new UnsupportedOperationException(); } /** *

* Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs. *

*
*

* This is a variant of {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListFindingsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)} operation. *

*

* This is a convenience which creates an instance of the {@link ListFindingsRequest.Builder} avoiding the need to * create one manually via {@link ListFindingsRequest#builder()} *

* * @param listFindingsRequest * A {@link Consumer} that will call methods on {@link ListFindingsRequest.Builder} to create a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListFindings * @see AWS API * Documentation */ default ListFindingsPublisher listFindingsPaginator(Consumer listFindingsRequest) { return listFindingsPaginator(ListFindingsRequest.builder().applyMutation(listFindingsRequest).build()); } /** *

* Lists all available Amazon Inspector rules packages. *

* * @param listRulesPackagesRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListRulesPackages * @see AWS * API Documentation */ default CompletableFuture listRulesPackages(ListRulesPackagesRequest listRulesPackagesRequest) { throw new UnsupportedOperationException(); } /** *

* Lists all available Amazon Inspector rules packages. *

*
*

* This is a convenience which creates an instance of the {@link ListRulesPackagesRequest.Builder} avoiding the need * to create one manually via {@link ListRulesPackagesRequest#builder()} *

* * @param listRulesPackagesRequest * A {@link Consumer} that will call methods on {@link ListRulesPackagesRequest.Builder} to create a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListRulesPackages * @see AWS * API Documentation */ default CompletableFuture listRulesPackages( Consumer listRulesPackagesRequest) { return listRulesPackages(ListRulesPackagesRequest.builder().applyMutation(listRulesPackagesRequest).build()); } /** *

* Lists all available Amazon Inspector rules packages. *

* * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListRulesPackages * @see AWS * API Documentation */ default CompletableFuture listRulesPackages() { return listRulesPackages(ListRulesPackagesRequest.builder().build()); } /** *

* Lists all available Amazon Inspector rules packages. *

*
*

* This is a variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesPublisher publisher = client.listRulesPackagesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesPublisher publisher = client.listRulesPackagesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListRulesPackagesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)} * operation. *

* * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListRulesPackages * @see AWS * API Documentation */ default ListRulesPackagesPublisher listRulesPackagesPaginator() { return listRulesPackagesPaginator(ListRulesPackagesRequest.builder().build()); } /** *

* Lists all available Amazon Inspector rules packages. *

*
*

* This is a variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesPublisher publisher = client.listRulesPackagesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesPublisher publisher = client.listRulesPackagesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListRulesPackagesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)} * operation. *

* * @param listRulesPackagesRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListRulesPackages * @see AWS * API Documentation */ default ListRulesPackagesPublisher listRulesPackagesPaginator(ListRulesPackagesRequest listRulesPackagesRequest) { throw new UnsupportedOperationException(); } /** *

* Lists all available Amazon Inspector rules packages. *

*
*

* This is a variant of * {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesPublisher publisher = client.listRulesPackagesPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesPublisher publisher = client.listRulesPackagesPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.ListRulesPackagesResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)} * operation. *

*

* This is a convenience which creates an instance of the {@link ListRulesPackagesRequest.Builder} avoiding the need * to create one manually via {@link ListRulesPackagesRequest#builder()} *

* * @param listRulesPackagesRequest * A {@link Consumer} that will call methods on {@link ListRulesPackagesRequest.Builder} to create a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListRulesPackages * @see AWS * API Documentation */ default ListRulesPackagesPublisher listRulesPackagesPaginator( Consumer listRulesPackagesRequest) { return listRulesPackagesPaginator(ListRulesPackagesRequest.builder().applyMutation(listRulesPackagesRequest).build()); } /** *

* Lists all tags associated with an assessment template. *

* * @param listTagsForResourceRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListTagsForResource * @see AWS * API Documentation */ default CompletableFuture listTagsForResource( ListTagsForResourceRequest listTagsForResourceRequest) { throw new UnsupportedOperationException(); } /** *

* Lists all tags associated with an assessment template. *

*
*

* This is a convenience which creates an instance of the {@link ListTagsForResourceRequest.Builder} avoiding the * need to create one manually via {@link ListTagsForResourceRequest#builder()} *

* * @param listTagsForResourceRequest * A {@link Consumer} that will call methods on {@link ListTagsForResourceRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.ListTagsForResource * @see AWS * API Documentation */ default CompletableFuture listTagsForResource( Consumer listTagsForResourceRequest) { return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build()); } /** *

* Previews the agents installed on the EC2 instances that are part of the specified assessment target. *

* * @param previewAgentsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.PreviewAgents * @see AWS API * Documentation */ default CompletableFuture previewAgents(PreviewAgentsRequest previewAgentsRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link PreviewAgentsRequest.Builder} avoiding the need to * create one manually via {@link PreviewAgentsRequest#builder()} *

* * @param previewAgentsRequest * A {@link Consumer} that will call methods on {@link PreviewAgentsRequest.Builder} to create a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.PreviewAgents * @see AWS API * Documentation */ default CompletableFuture previewAgents(Consumer previewAgentsRequest) { return previewAgents(PreviewAgentsRequest.builder().applyMutation(previewAgentsRequest).build()); } /** *

* Previews the agents installed on the EC2 instances that are part of the specified assessment target. *

*
*

* This is a variant of {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.PreviewAgentsPublisher publisher = client.previewAgentsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.PreviewAgentsPublisher publisher = client.previewAgentsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.PreviewAgentsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #previewAgents(software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest)} operation. *

* * @param previewAgentsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.PreviewAgents * @see AWS API * Documentation */ default PreviewAgentsPublisher previewAgentsPaginator(PreviewAgentsRequest previewAgentsRequest) { throw new UnsupportedOperationException(); } /** *

* Previews the agents installed on the EC2 instances that are part of the specified assessment target. *

*
*

* This is a variant of {@link #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 * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.PreviewAgentsPublisher publisher = client.previewAgentsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.inspector.paginators.PreviewAgentsPublisher publisher = client.previewAgentsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.inspector.model.PreviewAgentsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #previewAgents(software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest)} operation. *

*

* This is a convenience which creates an instance of the {@link PreviewAgentsRequest.Builder} avoiding the need to * create one manually via {@link PreviewAgentsRequest#builder()} *

* * @param previewAgentsRequest * A {@link Consumer} that will call methods on {@link PreviewAgentsRequest.Builder} to create a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.PreviewAgents * @see AWS API * Documentation */ default PreviewAgentsPublisher previewAgentsPaginator(Consumer previewAgentsRequest) { return previewAgentsPaginator(PreviewAgentsRequest.builder().applyMutation(previewAgentsRequest).build()); } /** *

* Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security * assessments. *

* * @param registerCrossAccountAccessRoleRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.RegisterCrossAccountAccessRole * @see AWS API Documentation */ default CompletableFuture registerCrossAccountAccessRole( RegisterCrossAccountAccessRoleRequest registerCrossAccountAccessRoleRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link RegisterCrossAccountAccessRoleRequest.Builder} * avoiding the need to create one manually via {@link RegisterCrossAccountAccessRoleRequest#builder()} *

* * @param registerCrossAccountAccessRoleRequest * A {@link Consumer} that will call methods on {@link RegisterCrossAccountAccessRoleRequest.Builder} to * create a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.RegisterCrossAccountAccessRole * @see AWS API Documentation */ default CompletableFuture registerCrossAccountAccessRole( Consumer registerCrossAccountAccessRoleRequest) { return registerCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest.builder() .applyMutation(registerCrossAccountAccessRoleRequest).build()); } /** *

* 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. *

* * @param removeAttributesFromFindingsRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.RemoveAttributesFromFindings * @see AWS API Documentation */ default CompletableFuture removeAttributesFromFindings( RemoveAttributesFromFindingsRequest removeAttributesFromFindingsRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link RemoveAttributesFromFindingsRequest.Builder} * avoiding the need to create one manually via {@link RemoveAttributesFromFindingsRequest#builder()} *

* * @param removeAttributesFromFindingsRequest * A {@link Consumer} that will call methods on {@link RemoveAttributesFromFindingsRequest.Builder} to create * a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.RemoveAttributesFromFindings * @see AWS API Documentation */ default CompletableFuture removeAttributesFromFindings( Consumer removeAttributesFromFindingsRequest) { return removeAttributesFromFindings(RemoveAttributesFromFindingsRequest.builder() .applyMutation(removeAttributesFromFindingsRequest).build()); } /** *

* Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment * template. *

* * @param setTagsForResourceRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.SetTagsForResource * @see AWS * API Documentation */ default CompletableFuture setTagsForResource(SetTagsForResourceRequest setTagsForResourceRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link SetTagsForResourceRequest.Builder} avoiding the * need to create one manually via {@link SetTagsForResourceRequest#builder()} *

* * @param setTagsForResourceRequest * A {@link Consumer} that will call methods on {@link SetTagsForResourceRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.SetTagsForResource * @see AWS * API Documentation */ default CompletableFuture setTagsForResource( Consumer setTagsForResourceRequest) { return setTagsForResource(SetTagsForResourceRequest.builder().applyMutation(setTagsForResourceRequest).build()); } /** *

* 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. *

* * @param startAssessmentRunRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.StartAssessmentRun * @see AWS * API Documentation */ default CompletableFuture startAssessmentRun(StartAssessmentRunRequest startAssessmentRunRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link StartAssessmentRunRequest.Builder} avoiding the * need to create one manually via {@link StartAssessmentRunRequest#builder()} *

* * @param startAssessmentRunRequest * A {@link Consumer} that will call methods on {@link StartAssessmentRunRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.StartAssessmentRun * @see AWS * API Documentation */ default CompletableFuture startAssessmentRun( Consumer startAssessmentRunRequest) { return startAssessmentRun(StartAssessmentRunRequest.builder().applyMutation(startAssessmentRunRequest).build()); } /** *

* Stops the assessment run that is specified by the ARN of the assessment run. *

* * @param stopAssessmentRunRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.StopAssessmentRun * @see AWS * API Documentation */ default CompletableFuture stopAssessmentRun(StopAssessmentRunRequest stopAssessmentRunRequest) { throw new UnsupportedOperationException(); } /** *

* Stops the assessment run that is specified by the ARN of the assessment run. *

*
*

* This is a convenience which creates an instance of the {@link StopAssessmentRunRequest.Builder} avoiding the need * to create one manually via {@link StopAssessmentRunRequest#builder()} *

* * @param stopAssessmentRunRequest * A {@link Consumer} that will call methods on {@link StopAssessmentRunRequest.Builder} to create a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.StopAssessmentRun * @see AWS * API Documentation */ default CompletableFuture stopAssessmentRun( Consumer stopAssessmentRunRequest) { return stopAssessmentRun(StopAssessmentRunRequest.builder().applyMutation(stopAssessmentRunRequest).build()); } /** *

* Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to * a specified SNS topic. *

* * @param subscribeToEventRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.SubscribeToEvent * @see AWS * API Documentation */ default CompletableFuture subscribeToEvent(SubscribeToEventRequest subscribeToEventRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link SubscribeToEventRequest.Builder} avoiding the need * to create one manually via {@link SubscribeToEventRequest#builder()} *

* * @param subscribeToEventRequest * A {@link Consumer} that will call methods on {@link SubscribeToEventRequest.Builder} to create a request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.SubscribeToEvent * @see AWS * API Documentation */ default CompletableFuture subscribeToEvent( Consumer subscribeToEventRequest) { return subscribeToEvent(SubscribeToEventRequest.builder().applyMutation(subscribeToEventRequest).build()); } /** *

* Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to * a specified SNS topic. *

* * @param unsubscribeFromEventRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.UnsubscribeFromEvent * @see AWS API Documentation */ default CompletableFuture unsubscribeFromEvent( UnsubscribeFromEventRequest unsubscribeFromEventRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link UnsubscribeFromEventRequest.Builder} avoiding the * need to create one manually via {@link UnsubscribeFromEventRequest#builder()} *

* * @param unsubscribeFromEventRequest * A {@link Consumer} that will call methods on {@link UnsubscribeFromEventRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.UnsubscribeFromEvent * @see AWS API Documentation */ default CompletableFuture unsubscribeFromEvent( Consumer unsubscribeFromEventRequest) { return unsubscribeFromEvent(UnsubscribeFromEventRequest.builder().applyMutation(unsubscribeFromEventRequest).build()); } /** *

* 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. *

* * @param updateAssessmentTargetRequest * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.UpdateAssessmentTarget * @see AWS API Documentation */ default CompletableFuture updateAssessmentTarget( UpdateAssessmentTargetRequest updateAssessmentTargetRequest) { throw new UnsupportedOperationException(); } /** *

* 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 {@link UpdateAssessmentTargetRequest.Builder} avoiding the * need to create one manually via {@link UpdateAssessmentTargetRequest#builder()} *

* * @param updateAssessmentTargetRequest * A {@link Consumer} that will call methods on {@link UpdateAssessmentTargetRequest.Builder} to create a * request. * @return 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. *
    *
  • 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.
  • *
* @sample InspectorAsyncClient.UpdateAssessmentTarget * @see AWS API Documentation */ default CompletableFuture updateAssessmentTarget( Consumer updateAssessmentTargetRequest) { return updateAssessmentTarget(UpdateAssessmentTargetRequest.builder().applyMutation(updateAssessmentTargetRequest) .build()); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy