@ThreadSafe public class AmazonInspectorAsyncClient extends AmazonInspectorClient implements AmazonInspectorAsync
AsyncHandler
can be used to
receive notification when an asynchronous operation completes.
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.
Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_THREAD_POOL_SIZE |
private java.util.concurrent.ExecutorService |
executorService |
configFactory
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
Constructor and Description |
---|
AmazonInspectorAsyncClient()
Constructs a new asynchronous client to invoke service methods on Amazon
Inspector.
|
AmazonInspectorAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on Amazon
Inspector using the specified AWS account credentials.
|
AmazonInspectorAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on Amazon
Inspector using the specified AWS account credentials, executor service,
and client configuration options.
|
AmazonInspectorAsyncClient(AWSCredentials awsCredentials,
java.util.concurrent.ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on Amazon
Inspector using the specified AWS account credentials and executor
service.
|
AmazonInspectorAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on Amazon
Inspector using the specified AWS account credentials provider.
|
AmazonInspectorAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on Amazon
Inspector using the provided AWS account credentials provider and client
configuration options.
|
AmazonInspectorAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on Amazon
Inspector using the specified AWS account credentials provider, executor
service, and client configuration options.
|
AmazonInspectorAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
java.util.concurrent.ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on Amazon
Inspector using the specified AWS account credentials provider and
executor service.
|
AmazonInspectorAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on Amazon
Inspector.
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Future<AddAttributesToFindingsResult> |
addAttributesToFindingsAsync(AddAttributesToFindingsRequest request)
Assigns attributes (key and value pairs) to the findings that are
specified by the ARNs of the findings.
|
java.util.concurrent.Future<AddAttributesToFindingsResult> |
addAttributesToFindingsAsync(AddAttributesToFindingsRequest request,
AsyncHandler<AddAttributesToFindingsRequest,AddAttributesToFindingsResult> asyncHandler)
Assigns attributes (key and value pairs) to the findings that are
specified by the ARNs of the findings.
|
java.util.concurrent.Future<CreateAssessmentTargetResult> |
createAssessmentTargetAsync(CreateAssessmentTargetRequest request)
Creates a new assessment target using the ARN of the resource group that
is generated by CreateResourceGroup.
|
java.util.concurrent.Future<CreateAssessmentTargetResult> |
createAssessmentTargetAsync(CreateAssessmentTargetRequest request,
AsyncHandler<CreateAssessmentTargetRequest,CreateAssessmentTargetResult> asyncHandler)
Creates a new assessment target using the ARN of the resource group that
is generated by CreateResourceGroup.
|
java.util.concurrent.Future<CreateAssessmentTemplateResult> |
createAssessmentTemplateAsync(CreateAssessmentTemplateRequest request)
Creates an assessment template for the assessment target that is
specified by the ARN of the assessment target.
|
java.util.concurrent.Future<CreateAssessmentTemplateResult> |
createAssessmentTemplateAsync(CreateAssessmentTemplateRequest request,
AsyncHandler<CreateAssessmentTemplateRequest,CreateAssessmentTemplateResult> asyncHandler)
Creates an assessment template for the assessment target that is
specified by the ARN of the assessment target.
|
java.util.concurrent.Future<CreateResourceGroupResult> |
createResourceGroupAsync(CreateResourceGroupRequest request)
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.
|
java.util.concurrent.Future<CreateResourceGroupResult> |
createResourceGroupAsync(CreateResourceGroupRequest request,
AsyncHandler<CreateResourceGroupRequest,CreateResourceGroupResult> asyncHandler)
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.
|
java.util.concurrent.Future<DeleteAssessmentRunResult> |
deleteAssessmentRunAsync(DeleteAssessmentRunRequest request)
Deletes the assessment run that is specified by the ARN of the assessment
run.
|
java.util.concurrent.Future<DeleteAssessmentRunResult> |
deleteAssessmentRunAsync(DeleteAssessmentRunRequest request,
AsyncHandler<DeleteAssessmentRunRequest,DeleteAssessmentRunResult> asyncHandler)
Deletes the assessment run that is specified by the ARN of the assessment
run.
|
java.util.concurrent.Future<DeleteAssessmentTargetResult> |
deleteAssessmentTargetAsync(DeleteAssessmentTargetRequest request)
Deletes the assessment target that is specified by the ARN of the
assessment target.
|
java.util.concurrent.Future<DeleteAssessmentTargetResult> |
deleteAssessmentTargetAsync(DeleteAssessmentTargetRequest request,
AsyncHandler<DeleteAssessmentTargetRequest,DeleteAssessmentTargetResult> asyncHandler)
Deletes the assessment target that is specified by the ARN of the
assessment target.
|
java.util.concurrent.Future<DeleteAssessmentTemplateResult> |
deleteAssessmentTemplateAsync(DeleteAssessmentTemplateRequest request)
Deletes the assessment template that is specified by the ARN of the
assessment template.
|
java.util.concurrent.Future<DeleteAssessmentTemplateResult> |
deleteAssessmentTemplateAsync(DeleteAssessmentTemplateRequest request,
AsyncHandler<DeleteAssessmentTemplateRequest,DeleteAssessmentTemplateResult> asyncHandler)
Deletes the assessment template that is specified by the ARN of the
assessment template.
|
java.util.concurrent.Future<DescribeAssessmentRunsResult> |
describeAssessmentRunsAsync(DescribeAssessmentRunsRequest request)
Describes the assessment runs that are specified by the ARNs of the
assessment runs.
|
java.util.concurrent.Future<DescribeAssessmentRunsResult> |
describeAssessmentRunsAsync(DescribeAssessmentRunsRequest request,
AsyncHandler<DescribeAssessmentRunsRequest,DescribeAssessmentRunsResult> asyncHandler)
Describes the assessment runs that are specified by the ARNs of the
assessment runs.
|
java.util.concurrent.Future<DescribeAssessmentTargetsResult> |
describeAssessmentTargetsAsync(DescribeAssessmentTargetsRequest request)
Describes the assessment targets that are specified by the ARNs of the
assessment targets.
|
java.util.concurrent.Future<DescribeAssessmentTargetsResult> |
describeAssessmentTargetsAsync(DescribeAssessmentTargetsRequest request,
AsyncHandler<DescribeAssessmentTargetsRequest,DescribeAssessmentTargetsResult> asyncHandler)
Describes the assessment targets that are specified by the ARNs of the
assessment targets.
|
java.util.concurrent.Future<DescribeAssessmentTemplatesResult> |
describeAssessmentTemplatesAsync(DescribeAssessmentTemplatesRequest request)
Describes the assessment templates that are specified by the ARNs of the
assessment templates.
|
java.util.concurrent.Future<DescribeAssessmentTemplatesResult> |
describeAssessmentTemplatesAsync(DescribeAssessmentTemplatesRequest request,
AsyncHandler<DescribeAssessmentTemplatesRequest,DescribeAssessmentTemplatesResult> asyncHandler)
Describes the assessment templates that are specified by the ARNs of the
assessment templates.
|
java.util.concurrent.Future<DescribeCrossAccountAccessRoleResult> |
describeCrossAccountAccessRoleAsync(DescribeCrossAccountAccessRoleRequest request)
Describes the IAM role that enables Amazon Inspector to access your AWS
account.
|
java.util.concurrent.Future<DescribeCrossAccountAccessRoleResult> |
describeCrossAccountAccessRoleAsync(DescribeCrossAccountAccessRoleRequest request,
AsyncHandler<DescribeCrossAccountAccessRoleRequest,DescribeCrossAccountAccessRoleResult> asyncHandler)
Describes the IAM role that enables Amazon Inspector to access your AWS
account.
|
java.util.concurrent.Future<DescribeFindingsResult> |
describeFindingsAsync(DescribeFindingsRequest request)
Describes the findings that are specified by the ARNs of the findings.
|
java.util.concurrent.Future<DescribeFindingsResult> |
describeFindingsAsync(DescribeFindingsRequest request,
AsyncHandler<DescribeFindingsRequest,DescribeFindingsResult> asyncHandler)
Describes the findings that are specified by the ARNs of the findings.
|
java.util.concurrent.Future<DescribeResourceGroupsResult> |
describeResourceGroupsAsync(DescribeResourceGroupsRequest request)
Describes the resource groups that are specified by the ARNs of the
resource groups.
|
java.util.concurrent.Future<DescribeResourceGroupsResult> |
describeResourceGroupsAsync(DescribeResourceGroupsRequest request,
AsyncHandler<DescribeResourceGroupsRequest,DescribeResourceGroupsResult> asyncHandler)
Describes the resource groups that are specified by the ARNs of the
resource groups.
|
java.util.concurrent.Future<DescribeRulesPackagesResult> |
describeRulesPackagesAsync(DescribeRulesPackagesRequest request)
Describes the rules packages that are specified by the ARNs of the rules
packages.
|
java.util.concurrent.Future<DescribeRulesPackagesResult> |
describeRulesPackagesAsync(DescribeRulesPackagesRequest request,
AsyncHandler<DescribeRulesPackagesRequest,DescribeRulesPackagesResult> asyncHandler)
Describes the rules packages that are specified by the ARNs of the rules
packages.
|
java.util.concurrent.ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async
requests.
|
java.util.concurrent.Future<GetTelemetryMetadataResult> |
getTelemetryMetadataAsync(GetTelemetryMetadataRequest request)
Information about the data that is collected for the specified assessment
run.
|
java.util.concurrent.Future<GetTelemetryMetadataResult> |
getTelemetryMetadataAsync(GetTelemetryMetadataRequest request,
AsyncHandler<GetTelemetryMetadataRequest,GetTelemetryMetadataResult> asyncHandler)
Information about the data that is collected for the specified assessment
run.
|
java.util.concurrent.Future<ListAssessmentRunAgentsResult> |
listAssessmentRunAgentsAsync(ListAssessmentRunAgentsRequest request)
Lists the agents of the assessment runs that are specified by the ARNs of
the assessment runs.
|
java.util.concurrent.Future<ListAssessmentRunAgentsResult> |
listAssessmentRunAgentsAsync(ListAssessmentRunAgentsRequest request,
AsyncHandler<ListAssessmentRunAgentsRequest,ListAssessmentRunAgentsResult> asyncHandler)
Lists the agents of the assessment runs that are specified by the ARNs of
the assessment runs.
|
java.util.concurrent.Future<ListAssessmentRunsResult> |
listAssessmentRunsAsync(ListAssessmentRunsRequest request)
Lists the assessment runs that correspond to the assessment templates
that are specified by the ARNs of the assessment templates.
|
java.util.concurrent.Future<ListAssessmentRunsResult> |
listAssessmentRunsAsync(ListAssessmentRunsRequest request,
AsyncHandler<ListAssessmentRunsRequest,ListAssessmentRunsResult> asyncHandler)
Lists the assessment runs that correspond to the assessment templates
that are specified by the ARNs of the assessment templates.
|
java.util.concurrent.Future<ListAssessmentTargetsResult> |
listAssessmentTargetsAsync(ListAssessmentTargetsRequest request)
Lists the ARNs of the assessment targets within this AWS account.
|
java.util.concurrent.Future<ListAssessmentTargetsResult> |
listAssessmentTargetsAsync(ListAssessmentTargetsRequest request,
AsyncHandler<ListAssessmentTargetsRequest,ListAssessmentTargetsResult> asyncHandler)
Lists the ARNs of the assessment targets within this AWS account.
|
java.util.concurrent.Future<ListAssessmentTemplatesResult> |
listAssessmentTemplatesAsync(ListAssessmentTemplatesRequest request)
Lists the assessment templates that correspond to the assessment targets
that are specified by the ARNs of the assessment targets.
|
java.util.concurrent.Future<ListAssessmentTemplatesResult> |
listAssessmentTemplatesAsync(ListAssessmentTemplatesRequest request,
AsyncHandler<ListAssessmentTemplatesRequest,ListAssessmentTemplatesResult> asyncHandler)
Lists the assessment templates that correspond to the assessment targets
that are specified by the ARNs of the assessment targets.
|
java.util.concurrent.Future<ListEventSubscriptionsResult> |
listEventSubscriptionsAsync(ListEventSubscriptionsRequest request)
Lists all the event subscriptions for the assessment template that is
specified by the ARN of the assessment template.
|
java.util.concurrent.Future<ListEventSubscriptionsResult> |
listEventSubscriptionsAsync(ListEventSubscriptionsRequest request,
AsyncHandler<ListEventSubscriptionsRequest,ListEventSubscriptionsResult> asyncHandler)
Lists all the event subscriptions for the assessment template that is
specified by the ARN of the assessment template.
|
java.util.concurrent.Future<ListFindingsResult> |
listFindingsAsync(ListFindingsRequest request)
Lists findings that are generated by the assessment runs that are
specified by the ARNs of the assessment runs.
|
java.util.concurrent.Future<ListFindingsResult> |
listFindingsAsync(ListFindingsRequest request,
AsyncHandler<ListFindingsRequest,ListFindingsResult> asyncHandler)
Lists findings that are generated by the assessment runs that are
specified by the ARNs of the assessment runs.
|
java.util.concurrent.Future<ListRulesPackagesResult> |
listRulesPackagesAsync(ListRulesPackagesRequest request)
Lists all available Amazon Inspector rules packages.
|
java.util.concurrent.Future<ListRulesPackagesResult> |
listRulesPackagesAsync(ListRulesPackagesRequest request,
AsyncHandler<ListRulesPackagesRequest,ListRulesPackagesResult> asyncHandler)
Lists all available Amazon Inspector rules packages.
|
java.util.concurrent.Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request)
Lists all tags associated with an assessment template.
|
java.util.concurrent.Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request,
AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
Lists all tags associated with an assessment template.
|
java.util.concurrent.Future<PreviewAgentsResult> |
previewAgentsAsync(PreviewAgentsRequest request)
Previews the agents installed on the EC2 instances that are part of the
specified assessment target.
|
java.util.concurrent.Future<PreviewAgentsResult> |
previewAgentsAsync(PreviewAgentsRequest request,
AsyncHandler<PreviewAgentsRequest,PreviewAgentsResult> asyncHandler)
Previews the agents installed on the EC2 instances that are part of the
specified assessment target.
|
java.util.concurrent.Future<RegisterCrossAccountAccessRoleResult> |
registerCrossAccountAccessRoleAsync(RegisterCrossAccountAccessRoleRequest request)
Registers the IAM role that Amazon Inspector uses to list your EC2
instances at the start of the assessment run or when you call the
PreviewAgents action.
|
java.util.concurrent.Future<RegisterCrossAccountAccessRoleResult> |
registerCrossAccountAccessRoleAsync(RegisterCrossAccountAccessRoleRequest request,
AsyncHandler<RegisterCrossAccountAccessRoleRequest,RegisterCrossAccountAccessRoleResult> asyncHandler)
Registers the IAM role that Amazon Inspector uses to list your EC2
instances at the start of the assessment run or when you call the
PreviewAgents action.
|
java.util.concurrent.Future<RemoveAttributesFromFindingsResult> |
removeAttributesFromFindingsAsync(RemoveAttributesFromFindingsRequest request)
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.
|
java.util.concurrent.Future<RemoveAttributesFromFindingsResult> |
removeAttributesFromFindingsAsync(RemoveAttributesFromFindingsRequest request,
AsyncHandler<RemoveAttributesFromFindingsRequest,RemoveAttributesFromFindingsResult> asyncHandler)
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.
|
java.util.concurrent.Future<SetTagsForResourceResult> |
setTagsForResourceAsync(SetTagsForResourceRequest request)
Sets tags (key and value pairs) to the assessment template that is
specified by the ARN of the assessment template.
|
java.util.concurrent.Future<SetTagsForResourceResult> |
setTagsForResourceAsync(SetTagsForResourceRequest request,
AsyncHandler<SetTagsForResourceRequest,SetTagsForResourceResult> asyncHandler)
Sets tags (key and value pairs) to the assessment template that is
specified by the ARN of the assessment template.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
java.util.concurrent.Future<StartAssessmentRunResult> |
startAssessmentRunAsync(StartAssessmentRunRequest request)
Starts the assessment run specified by the ARN of the assessment
template.
|
java.util.concurrent.Future<StartAssessmentRunResult> |
startAssessmentRunAsync(StartAssessmentRunRequest request,
AsyncHandler<StartAssessmentRunRequest,StartAssessmentRunResult> asyncHandler)
Starts the assessment run specified by the ARN of the assessment
template.
|
java.util.concurrent.Future<StopAssessmentRunResult> |
stopAssessmentRunAsync(StopAssessmentRunRequest request)
Stops the assessment run that is specified by the ARN of the assessment
run.
|
java.util.concurrent.Future<StopAssessmentRunResult> |
stopAssessmentRunAsync(StopAssessmentRunRequest request,
AsyncHandler<StopAssessmentRunRequest,StopAssessmentRunResult> asyncHandler)
Stops the assessment run that is specified by the ARN of the assessment
run.
|
java.util.concurrent.Future<SubscribeToEventResult> |
subscribeToEventAsync(SubscribeToEventRequest request)
Enables the process of sending Amazon Simple Notification Service (SNS)
notifications about a specified event to a specified SNS topic.
|
java.util.concurrent.Future<SubscribeToEventResult> |
subscribeToEventAsync(SubscribeToEventRequest request,
AsyncHandler<SubscribeToEventRequest,SubscribeToEventResult> asyncHandler)
Enables the process of sending Amazon Simple Notification Service (SNS)
notifications about a specified event to a specified SNS topic.
|
java.util.concurrent.Future<UnsubscribeFromEventResult> |
unsubscribeFromEventAsync(UnsubscribeFromEventRequest request)
Disables the process of sending Amazon Simple Notification Service (SNS)
notifications about a specified event to a specified SNS topic.
|
java.util.concurrent.Future<UnsubscribeFromEventResult> |
unsubscribeFromEventAsync(UnsubscribeFromEventRequest request,
AsyncHandler<UnsubscribeFromEventRequest,UnsubscribeFromEventResult> asyncHandler)
Disables the process of sending Amazon Simple Notification Service (SNS)
notifications about a specified event to a specified SNS topic.
|
java.util.concurrent.Future<UpdateAssessmentTargetResult> |
updateAssessmentTargetAsync(UpdateAssessmentTargetRequest request)
Updates the assessment target that is specified by the ARN of the
assessment target.
|
java.util.concurrent.Future<UpdateAssessmentTargetResult> |
updateAssessmentTargetAsync(UpdateAssessmentTargetRequest request,
AsyncHandler<UpdateAssessmentTargetRequest,UpdateAssessmentTargetResult> asyncHandler)
Updates the assessment target that is specified by the ARN of the
assessment target.
|
addAttributesToFindings, createAssessmentTarget, createAssessmentTemplate, createResourceGroup, deleteAssessmentRun, deleteAssessmentTarget, deleteAssessmentTemplate, describeAssessmentRuns, describeAssessmentTargets, describeAssessmentTemplates, describeCrossAccountAccessRole, describeFindings, describeResourceGroups, describeRulesPackages, getCachedResponseMetadata, getTelemetryMetadata, listAssessmentRunAgents, listAssessmentRuns, listAssessmentTargets, listAssessmentTemplates, listEventSubscriptions, listFindings, listRulesPackages, listTagsForResource, previewAgents, registerCrossAccountAccessRole, removeAttributesFromFindings, setTagsForResource, startAssessmentRun, stopAssessmentRun, subscribeToEvent, unsubscribeFromEvent, updateAssessmentTarget
addRequestHandler, addRequestHandler, beforeMarshalling, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getEndpointPrefix, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttributesToFindings, createAssessmentTarget, createAssessmentTemplate, createResourceGroup, deleteAssessmentRun, deleteAssessmentTarget, deleteAssessmentTemplate, describeAssessmentRuns, describeAssessmentTargets, describeAssessmentTemplates, describeCrossAccountAccessRole, describeFindings, describeResourceGroups, describeRulesPackages, getCachedResponseMetadata, getTelemetryMetadata, listAssessmentRunAgents, listAssessmentRuns, listAssessmentTargets, listAssessmentTemplates, listEventSubscriptions, listFindings, listRulesPackages, listTagsForResource, previewAgents, registerCrossAccountAccessRole, removeAttributesFromFindings, setEndpoint, setRegion, setTagsForResource, startAssessmentRun, stopAssessmentRun, subscribeToEvent, unsubscribeFromEvent, updateAssessmentTarget
private static final int DEFAULT_THREAD_POOL_SIZE
private final java.util.concurrent.ExecutorService executorService
public AmazonInspectorAsyncClient()
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AmazonInspectorAsyncClient(ClientConfiguration clientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing
a number of threads equal to the maximum number of concurrent connections
configured via ClientConfiguration.getMaxConnections()
.
clientConfiguration
- The client configuration options controlling how this client
connects to Amazon Inspector (ex: proxy settings, retry counts,
etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AmazonInspectorAsyncClient(AWSCredentials awsCredentials)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.Executors.newFixedThreadPool(int)
public AmazonInspectorAsyncClient(AWSCredentials awsCredentials, java.util.concurrent.ExecutorService executorService)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will be
executed.public AmazonInspectorAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, java.util.concurrent.ExecutorService executorService)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).executorService
- The executor service by which all asynchronous requests will be
executed.public AmazonInspectorAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.Executors.newFixedThreadPool(int)
public AmazonInspectorAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing
a number of threads equal to the maximum number of concurrent connections
configured via ClientConfiguration.getMaxConnections()
.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AmazonInspectorAsyncClient(AWSCredentialsProvider awsCredentialsProvider, java.util.concurrent.ExecutorService executorService)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will be
executed.public AmazonInspectorAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, java.util.concurrent.ExecutorService executorService)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).executorService
- The executor service by which all asynchronous requests will be
executed.public java.util.concurrent.ExecutorService getExecutorService()
public java.util.concurrent.Future<AddAttributesToFindingsResult> addAttributesToFindingsAsync(AddAttributesToFindingsRequest request)
AmazonInspectorAsync
Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
addAttributesToFindingsAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<AddAttributesToFindingsResult> addAttributesToFindingsAsync(AddAttributesToFindingsRequest request, AsyncHandler<AddAttributesToFindingsRequest,AddAttributesToFindingsResult> asyncHandler)
AmazonInspectorAsync
Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
addAttributesToFindingsAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<CreateAssessmentTargetResult> createAssessmentTargetAsync(CreateAssessmentTargetRequest request)
AmazonInspectorAsync
Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. 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.
createAssessmentTargetAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<CreateAssessmentTargetResult> createAssessmentTargetAsync(CreateAssessmentTargetRequest request, AsyncHandler<CreateAssessmentTargetRequest,CreateAssessmentTargetResult> asyncHandler)
AmazonInspectorAsync
Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. 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.
createAssessmentTargetAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<CreateAssessmentTemplateResult> createAssessmentTemplateAsync(CreateAssessmentTemplateRequest request)
AmazonInspectorAsync
Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.
createAssessmentTemplateAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<CreateAssessmentTemplateResult> createAssessmentTemplateAsync(CreateAssessmentTemplateRequest request, AsyncHandler<CreateAssessmentTemplateRequest,CreateAssessmentTemplateResult> asyncHandler)
AmazonInspectorAsync
Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.
createAssessmentTemplateAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<CreateResourceGroupResult> createResourceGroupAsync(CreateResourceGroupRequest request)
AmazonInspectorAsync
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.
createResourceGroupAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<CreateResourceGroupResult> createResourceGroupAsync(CreateResourceGroupRequest request, AsyncHandler<CreateResourceGroupRequest,CreateResourceGroupResult> asyncHandler)
AmazonInspectorAsync
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.
createResourceGroupAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<DeleteAssessmentRunResult> deleteAssessmentRunAsync(DeleteAssessmentRunRequest request)
AmazonInspectorAsync
Deletes the assessment run that is specified by the ARN of the assessment run.
deleteAssessmentRunAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<DeleteAssessmentRunResult> deleteAssessmentRunAsync(DeleteAssessmentRunRequest request, AsyncHandler<DeleteAssessmentRunRequest,DeleteAssessmentRunResult> asyncHandler)
AmazonInspectorAsync
Deletes the assessment run that is specified by the ARN of the assessment run.
deleteAssessmentRunAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<DeleteAssessmentTargetResult> deleteAssessmentTargetAsync(DeleteAssessmentTargetRequest request)
AmazonInspectorAsync
Deletes the assessment target that is specified by the ARN of the assessment target.
deleteAssessmentTargetAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<DeleteAssessmentTargetResult> deleteAssessmentTargetAsync(DeleteAssessmentTargetRequest request, AsyncHandler<DeleteAssessmentTargetRequest,DeleteAssessmentTargetResult> asyncHandler)
AmazonInspectorAsync
Deletes the assessment target that is specified by the ARN of the assessment target.
deleteAssessmentTargetAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<DeleteAssessmentTemplateResult> deleteAssessmentTemplateAsync(DeleteAssessmentTemplateRequest request)
AmazonInspectorAsync
Deletes the assessment template that is specified by the ARN of the assessment template.
deleteAssessmentTemplateAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<DeleteAssessmentTemplateResult> deleteAssessmentTemplateAsync(DeleteAssessmentTemplateRequest request, AsyncHandler<DeleteAssessmentTemplateRequest,DeleteAssessmentTemplateResult> asyncHandler)
AmazonInspectorAsync
Deletes the assessment template that is specified by the ARN of the assessment template.
deleteAssessmentTemplateAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<DescribeAssessmentRunsResult> describeAssessmentRunsAsync(DescribeAssessmentRunsRequest request)
AmazonInspectorAsync
Describes the assessment runs that are specified by the ARNs of the assessment runs.
describeAssessmentRunsAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<DescribeAssessmentRunsResult> describeAssessmentRunsAsync(DescribeAssessmentRunsRequest request, AsyncHandler<DescribeAssessmentRunsRequest,DescribeAssessmentRunsResult> asyncHandler)
AmazonInspectorAsync
Describes the assessment runs that are specified by the ARNs of the assessment runs.
describeAssessmentRunsAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<DescribeAssessmentTargetsResult> describeAssessmentTargetsAsync(DescribeAssessmentTargetsRequest request)
AmazonInspectorAsync
Describes the assessment targets that are specified by the ARNs of the assessment targets.
describeAssessmentTargetsAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<DescribeAssessmentTargetsResult> describeAssessmentTargetsAsync(DescribeAssessmentTargetsRequest request, AsyncHandler<DescribeAssessmentTargetsRequest,DescribeAssessmentTargetsResult> asyncHandler)
AmazonInspectorAsync
Describes the assessment targets that are specified by the ARNs of the assessment targets.
describeAssessmentTargetsAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<DescribeAssessmentTemplatesResult> describeAssessmentTemplatesAsync(DescribeAssessmentTemplatesRequest request)
AmazonInspectorAsync
Describes the assessment templates that are specified by the ARNs of the assessment templates.
describeAssessmentTemplatesAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<DescribeAssessmentTemplatesResult> describeAssessmentTemplatesAsync(DescribeAssessmentTemplatesRequest request, AsyncHandler<DescribeAssessmentTemplatesRequest,DescribeAssessmentTemplatesResult> asyncHandler)
AmazonInspectorAsync
Describes the assessment templates that are specified by the ARNs of the assessment templates.
describeAssessmentTemplatesAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<DescribeCrossAccountAccessRoleResult> describeCrossAccountAccessRoleAsync(DescribeCrossAccountAccessRoleRequest request)
AmazonInspectorAsync
Describes the IAM role that enables Amazon Inspector to access your AWS account.
describeCrossAccountAccessRoleAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<DescribeCrossAccountAccessRoleResult> describeCrossAccountAccessRoleAsync(DescribeCrossAccountAccessRoleRequest request, AsyncHandler<DescribeCrossAccountAccessRoleRequest,DescribeCrossAccountAccessRoleResult> asyncHandler)
AmazonInspectorAsync
Describes the IAM role that enables Amazon Inspector to access your AWS account.
describeCrossAccountAccessRoleAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<DescribeFindingsResult> describeFindingsAsync(DescribeFindingsRequest request)
AmazonInspectorAsync
Describes the findings that are specified by the ARNs of the findings.
describeFindingsAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<DescribeFindingsResult> describeFindingsAsync(DescribeFindingsRequest request, AsyncHandler<DescribeFindingsRequest,DescribeFindingsResult> asyncHandler)
AmazonInspectorAsync
Describes the findings that are specified by the ARNs of the findings.
describeFindingsAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<DescribeResourceGroupsResult> describeResourceGroupsAsync(DescribeResourceGroupsRequest request)
AmazonInspectorAsync
Describes the resource groups that are specified by the ARNs of the resource groups.
describeResourceGroupsAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<DescribeResourceGroupsResult> describeResourceGroupsAsync(DescribeResourceGroupsRequest request, AsyncHandler<DescribeResourceGroupsRequest,DescribeResourceGroupsResult> asyncHandler)
AmazonInspectorAsync
Describes the resource groups that are specified by the ARNs of the resource groups.
describeResourceGroupsAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<DescribeRulesPackagesResult> describeRulesPackagesAsync(DescribeRulesPackagesRequest request)
AmazonInspectorAsync
Describes the rules packages that are specified by the ARNs of the rules packages.
describeRulesPackagesAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<DescribeRulesPackagesResult> describeRulesPackagesAsync(DescribeRulesPackagesRequest request, AsyncHandler<DescribeRulesPackagesRequest,DescribeRulesPackagesResult> asyncHandler)
AmazonInspectorAsync
Describes the rules packages that are specified by the ARNs of the rules packages.
describeRulesPackagesAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<GetTelemetryMetadataResult> getTelemetryMetadataAsync(GetTelemetryMetadataRequest request)
AmazonInspectorAsync
Information about the data that is collected for the specified assessment run.
getTelemetryMetadataAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<GetTelemetryMetadataResult> getTelemetryMetadataAsync(GetTelemetryMetadataRequest request, AsyncHandler<GetTelemetryMetadataRequest,GetTelemetryMetadataResult> asyncHandler)
AmazonInspectorAsync
Information about the data that is collected for the specified assessment run.
getTelemetryMetadataAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<ListAssessmentRunAgentsResult> listAssessmentRunAgentsAsync(ListAssessmentRunAgentsRequest request)
AmazonInspectorAsync
Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
listAssessmentRunAgentsAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<ListAssessmentRunAgentsResult> listAssessmentRunAgentsAsync(ListAssessmentRunAgentsRequest request, AsyncHandler<ListAssessmentRunAgentsRequest,ListAssessmentRunAgentsResult> asyncHandler)
AmazonInspectorAsync
Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
listAssessmentRunAgentsAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<ListAssessmentRunsResult> listAssessmentRunsAsync(ListAssessmentRunsRequest request)
AmazonInspectorAsync
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
listAssessmentRunsAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<ListAssessmentRunsResult> listAssessmentRunsAsync(ListAssessmentRunsRequest request, AsyncHandler<ListAssessmentRunsRequest,ListAssessmentRunsResult> asyncHandler)
AmazonInspectorAsync
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
listAssessmentRunsAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<ListAssessmentTargetsResult> listAssessmentTargetsAsync(ListAssessmentTargetsRequest request)
AmazonInspectorAsync
Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
listAssessmentTargetsAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<ListAssessmentTargetsResult> listAssessmentTargetsAsync(ListAssessmentTargetsRequest request, AsyncHandler<ListAssessmentTargetsRequest,ListAssessmentTargetsResult> asyncHandler)
AmazonInspectorAsync
Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
listAssessmentTargetsAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<ListAssessmentTemplatesResult> listAssessmentTemplatesAsync(ListAssessmentTemplatesRequest request)
AmazonInspectorAsync
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
listAssessmentTemplatesAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<ListAssessmentTemplatesResult> listAssessmentTemplatesAsync(ListAssessmentTemplatesRequest request, AsyncHandler<ListAssessmentTemplatesRequest,ListAssessmentTemplatesResult> asyncHandler)
AmazonInspectorAsync
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
listAssessmentTemplatesAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<ListEventSubscriptionsResult> listEventSubscriptionsAsync(ListEventSubscriptionsRequest request)
AmazonInspectorAsync
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.
listEventSubscriptionsAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<ListEventSubscriptionsResult> listEventSubscriptionsAsync(ListEventSubscriptionsRequest request, AsyncHandler<ListEventSubscriptionsRequest,ListEventSubscriptionsResult> asyncHandler)
AmazonInspectorAsync
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.
listEventSubscriptionsAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<ListFindingsResult> listFindingsAsync(ListFindingsRequest request)
AmazonInspectorAsync
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
listFindingsAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<ListFindingsResult> listFindingsAsync(ListFindingsRequest request, AsyncHandler<ListFindingsRequest,ListFindingsResult> asyncHandler)
AmazonInspectorAsync
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
listFindingsAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<ListRulesPackagesResult> listRulesPackagesAsync(ListRulesPackagesRequest request)
AmazonInspectorAsync
Lists all available Amazon Inspector rules packages.
listRulesPackagesAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<ListRulesPackagesResult> listRulesPackagesAsync(ListRulesPackagesRequest request, AsyncHandler<ListRulesPackagesRequest,ListRulesPackagesResult> asyncHandler)
AmazonInspectorAsync
Lists all available Amazon Inspector rules packages.
listRulesPackagesAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonInspectorAsync
Lists all tags associated with an assessment template.
listTagsForResourceAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonInspectorAsync
Lists all tags associated with an assessment template.
listTagsForResourceAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<PreviewAgentsResult> previewAgentsAsync(PreviewAgentsRequest request)
AmazonInspectorAsync
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
previewAgentsAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<PreviewAgentsResult> previewAgentsAsync(PreviewAgentsRequest request, AsyncHandler<PreviewAgentsRequest,PreviewAgentsResult> asyncHandler)
AmazonInspectorAsync
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
previewAgentsAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<RegisterCrossAccountAccessRoleResult> registerCrossAccountAccessRoleAsync(RegisterCrossAccountAccessRoleRequest request)
AmazonInspectorAsync
Registers the IAM role that Amazon Inspector uses to list your EC2 instances at the start of the assessment run or when you call the PreviewAgents action.
registerCrossAccountAccessRoleAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<RegisterCrossAccountAccessRoleResult> registerCrossAccountAccessRoleAsync(RegisterCrossAccountAccessRoleRequest request, AsyncHandler<RegisterCrossAccountAccessRoleRequest,RegisterCrossAccountAccessRoleResult> asyncHandler)
AmazonInspectorAsync
Registers the IAM role that Amazon Inspector uses to list your EC2 instances at the start of the assessment run or when you call the PreviewAgents action.
registerCrossAccountAccessRoleAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<RemoveAttributesFromFindingsResult> removeAttributesFromFindingsAsync(RemoveAttributesFromFindingsRequest request)
AmazonInspectorAsync
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.
removeAttributesFromFindingsAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<RemoveAttributesFromFindingsResult> removeAttributesFromFindingsAsync(RemoveAttributesFromFindingsRequest request, AsyncHandler<RemoveAttributesFromFindingsRequest,RemoveAttributesFromFindingsResult> asyncHandler)
AmazonInspectorAsync
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.
removeAttributesFromFindingsAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<SetTagsForResourceResult> setTagsForResourceAsync(SetTagsForResourceRequest request)
AmazonInspectorAsync
Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.
setTagsForResourceAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<SetTagsForResourceResult> setTagsForResourceAsync(SetTagsForResourceRequest request, AsyncHandler<SetTagsForResourceRequest,SetTagsForResourceResult> asyncHandler)
AmazonInspectorAsync
Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.
setTagsForResourceAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<StartAssessmentRunResult> startAssessmentRunAsync(StartAssessmentRunRequest request)
AmazonInspectorAsync
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.
startAssessmentRunAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<StartAssessmentRunResult> startAssessmentRunAsync(StartAssessmentRunRequest request, AsyncHandler<StartAssessmentRunRequest,StartAssessmentRunResult> asyncHandler)
AmazonInspectorAsync
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.
startAssessmentRunAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<StopAssessmentRunResult> stopAssessmentRunAsync(StopAssessmentRunRequest request)
AmazonInspectorAsync
Stops the assessment run that is specified by the ARN of the assessment run.
stopAssessmentRunAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<StopAssessmentRunResult> stopAssessmentRunAsync(StopAssessmentRunRequest request, AsyncHandler<StopAssessmentRunRequest,StopAssessmentRunResult> asyncHandler)
AmazonInspectorAsync
Stops the assessment run that is specified by the ARN of the assessment run.
stopAssessmentRunAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<SubscribeToEventResult> subscribeToEventAsync(SubscribeToEventRequest request)
AmazonInspectorAsync
Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
subscribeToEventAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<SubscribeToEventResult> subscribeToEventAsync(SubscribeToEventRequest request, AsyncHandler<SubscribeToEventRequest,SubscribeToEventResult> asyncHandler)
AmazonInspectorAsync
Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
subscribeToEventAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<UnsubscribeFromEventResult> unsubscribeFromEventAsync(UnsubscribeFromEventRequest request)
AmazonInspectorAsync
Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
unsubscribeFromEventAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<UnsubscribeFromEventResult> unsubscribeFromEventAsync(UnsubscribeFromEventRequest request, AsyncHandler<UnsubscribeFromEventRequest,UnsubscribeFromEventResult> asyncHandler)
AmazonInspectorAsync
Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
unsubscribeFromEventAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public java.util.concurrent.Future<UpdateAssessmentTargetResult> updateAssessmentTargetAsync(UpdateAssessmentTargetRequest request)
AmazonInspectorAsync
Updates the assessment target that is specified by the ARN of the assessment target.
updateAssessmentTargetAsync
in interface AmazonInspectorAsync
public java.util.concurrent.Future<UpdateAssessmentTargetResult> updateAssessmentTargetAsync(UpdateAssessmentTargetRequest request, AsyncHandler<UpdateAssessmentTargetRequest,UpdateAssessmentTargetResult> asyncHandler)
AmazonInspectorAsync
Updates the assessment target that is specified by the ARN of the assessment target.
updateAssessmentTargetAsync
in interface AmazonInspectorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by
getExecutorService().awaitTermination()
prior to calling this
method.shutdown
in interface AmazonInspector
shutdown
in class AmazonWebServiceClient