AutoCloseable
@Generated("software.amazon.awssdk:codegen") public interface InspectorClient extends AutoCloseable
builder()
method.
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 | Description |
---|---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method | Description |
---|---|---|
default AddAttributesToFindingsResponse |
addAttributesToFindings(AddAttributesToFindingsRequest addAttributesToFindingsRequest) |
Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
|
static InspectorClientBuilder |
builder() |
Create a builder that can be used to configure and create a
InspectorClient . |
static InspectorClient |
create() |
Create a
InspectorClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CreateAssessmentTargetResponse |
createAssessmentTarget(CreateAssessmentTargetRequest createAssessmentTargetRequest) |
Creates a new assessment target using the ARN of the resource group that is generated by
CreateResourceGroup.
|
default CreateAssessmentTemplateResponse |
createAssessmentTemplate(CreateAssessmentTemplateRequest createAssessmentTemplateRequest) |
Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.
|
default CreateResourceGroupResponse |
createResourceGroup(CreateResourceGroupRequest createResourceGroupRequest) |
Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2
instances to be included in an Amazon Inspector assessment target.
|
default DeleteAssessmentRunResponse |
deleteAssessmentRun(DeleteAssessmentRunRequest deleteAssessmentRunRequest) |
Deletes the assessment run that is specified by the ARN of the assessment run.
|
default DeleteAssessmentTargetResponse |
deleteAssessmentTarget(DeleteAssessmentTargetRequest deleteAssessmentTargetRequest) |
Deletes the assessment target that is specified by the ARN of the assessment target.
|
default DeleteAssessmentTemplateResponse |
deleteAssessmentTemplate(DeleteAssessmentTemplateRequest deleteAssessmentTemplateRequest) |
Deletes the assessment template that is specified by the ARN of the assessment template.
|
default DescribeAssessmentRunsResponse |
describeAssessmentRuns(DescribeAssessmentRunsRequest describeAssessmentRunsRequest) |
Describes the assessment runs that are specified by the ARNs of the assessment runs.
|
default DescribeAssessmentTargetsResponse |
describeAssessmentTargets(DescribeAssessmentTargetsRequest describeAssessmentTargetsRequest) |
Describes the assessment targets that are specified by the ARNs of the assessment targets.
|
default DescribeAssessmentTemplatesResponse |
describeAssessmentTemplates(DescribeAssessmentTemplatesRequest describeAssessmentTemplatesRequest) |
Describes the assessment templates that are specified by the ARNs of the assessment templates.
|
default DescribeCrossAccountAccessRoleResponse |
describeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest describeCrossAccountAccessRoleRequest) |
Describes the IAM role that enables Amazon Inspector to access your AWS account.
|
default DescribeFindingsResponse |
describeFindings(DescribeFindingsRequest describeFindingsRequest) |
Describes the findings that are specified by the ARNs of the findings.
|
default DescribeResourceGroupsResponse |
describeResourceGroups(DescribeResourceGroupsRequest describeResourceGroupsRequest) |
Describes the resource groups that are specified by the ARNs of the resource groups.
|
default DescribeRulesPackagesResponse |
describeRulesPackages(DescribeRulesPackagesRequest describeRulesPackagesRequest) |
Describes the rules packages that are specified by the ARNs of the rules packages.
|
default GetAssessmentReportResponse |
getAssessmentReport(GetAssessmentReportRequest getAssessmentReportRequest) |
Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.
|
default GetTelemetryMetadataResponse |
getTelemetryMetadata(GetTelemetryMetadataRequest getTelemetryMetadataRequest) |
Information about the data that is collected for the specified assessment run.
|
default ListAssessmentRunAgentsResponse |
listAssessmentRunAgents(ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest) |
Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
|
default ListAssessmentRunsResponse |
listAssessmentRuns(ListAssessmentRunsRequest listAssessmentRunsRequest) |
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the
assessment templates.
|
default ListAssessmentTargetsResponse |
listAssessmentTargets(ListAssessmentTargetsRequest listAssessmentTargetsRequest) |
Lists the ARNs of the assessment targets within this AWS account.
|
default ListAssessmentTemplatesResponse |
listAssessmentTemplates(ListAssessmentTemplatesRequest listAssessmentTemplatesRequest) |
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the
assessment targets.
|
default ListEventSubscriptionsResponse |
listEventSubscriptions(ListEventSubscriptionsRequest listEventSubscriptionsRequest) |
Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment
template.
|
default ListFindingsResponse |
listFindings(ListFindingsRequest listFindingsRequest) |
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
|
default ListRulesPackagesResponse |
listRulesPackages(ListRulesPackagesRequest listRulesPackagesRequest) |
Lists all available Amazon Inspector rules packages.
|
default ListTagsForResourceResponse |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) |
Lists all tags associated with an assessment template.
|
default PreviewAgentsResponse |
previewAgents(PreviewAgentsRequest previewAgentsRequest) |
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
|
default RegisterCrossAccountAccessRoleResponse |
registerCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest registerCrossAccountAccessRoleRequest) |
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.
|
default RemoveAttributesFromFindingsResponse |
removeAttributesFromFindings(RemoveAttributesFromFindingsRequest removeAttributesFromFindingsRequest) |
Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings
where an attribute with the specified key exists.
|
static ServiceMetadata |
serviceMetadata() |
|
default SetTagsForResourceResponse |
setTagsForResource(SetTagsForResourceRequest setTagsForResourceRequest) |
Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment
template.
|
default StartAssessmentRunResponse |
startAssessmentRun(StartAssessmentRunRequest startAssessmentRunRequest) |
Starts the assessment run specified by the ARN of the assessment template.
|
default StopAssessmentRunResponse |
stopAssessmentRun(StopAssessmentRunRequest stopAssessmentRunRequest) |
Stops the assessment run that is specified by the ARN of the assessment run.
|
default SubscribeToEventResponse |
subscribeToEvent(SubscribeToEventRequest subscribeToEventRequest) |
Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to
a specified SNS topic.
|
default UnsubscribeFromEventResponse |
unsubscribeFromEvent(UnsubscribeFromEventRequest unsubscribeFromEventRequest) |
Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to
a specified SNS topic.
|
default UpdateAssessmentTargetResponse |
updateAssessmentTarget(UpdateAssessmentTargetRequest updateAssessmentTargetRequest) |
Updates the assessment target that is specified by the ARN of the assessment target.
|
close
static final String SERVICE_NAME
static InspectorClient create()
InspectorClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static InspectorClientBuilder builder()
InspectorClient
.default AddAttributesToFindingsResponse addAttributesToFindings(AddAttributesToFindingsRequest addAttributesToFindingsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
addAttributesToFindingsRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault CreateAssessmentTargetResponse createAssessmentTarget(CreateAssessmentTargetRequest createAssessmentTargetRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
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.
createAssessmentTargetRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault CreateAssessmentTemplateResponse createAssessmentTemplate(CreateAssessmentTemplateRequest createAssessmentTemplateRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.
createAssessmentTemplateRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault CreateResourceGroupResponse createResourceGroup(CreateResourceGroupRequest createResourceGroupRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, SdkBaseException, SdkClientException, InspectorException
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.
createResourceGroupRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DeleteAssessmentRunResponse deleteAssessmentRun(DeleteAssessmentRunRequest deleteAssessmentRunRequest) throws InternalException, InvalidInputException, AssessmentRunInProgressException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Deletes the assessment run that is specified by the ARN of the assessment run.
deleteAssessmentRunRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DeleteAssessmentTargetResponse deleteAssessmentTarget(DeleteAssessmentTargetRequest deleteAssessmentTargetRequest) throws InternalException, InvalidInputException, AssessmentRunInProgressException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Deletes the assessment target that is specified by the ARN of the assessment target.
deleteAssessmentTargetRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DeleteAssessmentTemplateResponse deleteAssessmentTemplate(DeleteAssessmentTemplateRequest deleteAssessmentTemplateRequest) throws InternalException, InvalidInputException, AssessmentRunInProgressException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Deletes the assessment template that is specified by the ARN of the assessment template.
deleteAssessmentTemplateRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DescribeAssessmentRunsResponse describeAssessmentRuns(DescribeAssessmentRunsRequest describeAssessmentRunsRequest) throws InternalException, InvalidInputException, SdkBaseException, SdkClientException, InspectorException
Describes the assessment runs that are specified by the ARNs of the assessment runs.
describeAssessmentRunsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DescribeAssessmentTargetsResponse describeAssessmentTargets(DescribeAssessmentTargetsRequest describeAssessmentTargetsRequest) throws InternalException, InvalidInputException, SdkBaseException, SdkClientException, InspectorException
Describes the assessment targets that are specified by the ARNs of the assessment targets.
describeAssessmentTargetsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DescribeAssessmentTemplatesResponse describeAssessmentTemplates(DescribeAssessmentTemplatesRequest describeAssessmentTemplatesRequest) throws InternalException, InvalidInputException, SdkBaseException, SdkClientException, InspectorException
Describes the assessment templates that are specified by the ARNs of the assessment templates.
describeAssessmentTemplatesRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DescribeCrossAccountAccessRoleResponse describeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest describeCrossAccountAccessRoleRequest) throws InternalException, SdkBaseException, SdkClientException, InspectorException
Describes the IAM role that enables Amazon Inspector to access your AWS account.
describeCrossAccountAccessRoleRequest
- InternalException
- Internal server error.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DescribeFindingsResponse describeFindings(DescribeFindingsRequest describeFindingsRequest) throws InternalException, InvalidInputException, SdkBaseException, SdkClientException, InspectorException
Describes the findings that are specified by the ARNs of the findings.
describeFindingsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DescribeResourceGroupsResponse describeResourceGroups(DescribeResourceGroupsRequest describeResourceGroupsRequest) throws InternalException, InvalidInputException, SdkBaseException, SdkClientException, InspectorException
Describes the resource groups that are specified by the ARNs of the resource groups.
describeResourceGroupsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DescribeRulesPackagesResponse describeRulesPackages(DescribeRulesPackagesRequest describeRulesPackagesRequest) throws InternalException, InvalidInputException, SdkBaseException, SdkClientException, InspectorException
Describes the rules packages that are specified by the ARNs of the rules packages.
describeRulesPackagesRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault GetAssessmentReportResponse getAssessmentReport(GetAssessmentReportRequest getAssessmentReportRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AssessmentRunInProgressException, UnsupportedFeatureException, SdkBaseException, SdkClientException, InspectorException
Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.
getAssessmentReportRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault GetTelemetryMetadataResponse getTelemetryMetadata(GetTelemetryMetadataRequest getTelemetryMetadataRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Information about the data that is collected for the specified assessment run.
getTelemetryMetadataRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault ListAssessmentRunAgentsResponse listAssessmentRunAgents(ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
listAssessmentRunAgentsRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault ListAssessmentRunsResponse listAssessmentRuns(ListAssessmentRunsRequest listAssessmentRunsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
listAssessmentRunsRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault ListAssessmentTargetsResponse listAssessmentTargets(ListAssessmentTargetsRequest listAssessmentTargetsRequest) throws InternalException, InvalidInputException, AccessDeniedException, SdkBaseException, SdkClientException, InspectorException
Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
listAssessmentTargetsRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault ListAssessmentTemplatesResponse listAssessmentTemplates(ListAssessmentTemplatesRequest listAssessmentTemplatesRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
listAssessmentTemplatesRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault ListEventSubscriptionsResponse listEventSubscriptions(ListEventSubscriptionsRequest listEventSubscriptionsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
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.
listEventSubscriptionsRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault ListFindingsResponse listFindings(ListFindingsRequest listFindingsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
listFindingsRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault ListRulesPackagesResponse listRulesPackages(ListRulesPackagesRequest listRulesPackagesRequest) throws InternalException, InvalidInputException, AccessDeniedException, SdkBaseException, SdkClientException, InspectorException
Lists all available Amazon Inspector rules packages.
listRulesPackagesRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Lists all tags associated with an assessment template.
listTagsForResourceRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault PreviewAgentsResponse previewAgents(PreviewAgentsRequest previewAgentsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, InvalidCrossAccountRoleException, SdkBaseException, SdkClientException, InspectorException
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
previewAgentsRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault RegisterCrossAccountAccessRoleResponse registerCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest registerCrossAccountAccessRoleRequest) throws InternalException, InvalidInputException, AccessDeniedException, InvalidCrossAccountRoleException, SdkBaseException, SdkClientException, InspectorException
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.
registerCrossAccountAccessRoleRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault RemoveAttributesFromFindingsResponse removeAttributesFromFindings(RemoveAttributesFromFindingsRequest removeAttributesFromFindingsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
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.
removeAttributesFromFindingsRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault SetTagsForResourceResponse setTagsForResource(SetTagsForResourceRequest setTagsForResourceRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.
setTagsForResourceRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault StartAssessmentRunResponse startAssessmentRun(StartAssessmentRunRequest startAssessmentRunRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, NoSuchEntityException, InvalidCrossAccountRoleException, AgentsAlreadyRunningAssessmentException, SdkBaseException, SdkClientException, InspectorException
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.
startAssessmentRunRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault StopAssessmentRunResponse stopAssessmentRun(StopAssessmentRunRequest stopAssessmentRunRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Stops the assessment run that is specified by the ARN of the assessment run.
stopAssessmentRunRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault SubscribeToEventResponse subscribeToEvent(SubscribeToEventRequest subscribeToEventRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
subscribeToEventRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault UnsubscribeFromEventResponse unsubscribeFromEvent(UnsubscribeFromEventRequest unsubscribeFromEventRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
unsubscribeFromEventRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault UpdateAssessmentTargetResponse updateAssessmentTarget(UpdateAssessmentTargetRequest updateAssessmentTargetRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, SdkBaseException, SdkClientException, InspectorException
Updates the assessment target that is specified by the ARN of the assessment target.
updateAssessmentTargetRequest
- 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.SdkBaseException
- 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 exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typestatic ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.