Interface InspectorClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface InspectorClient extends AwsClient
Service client for accessing Amazon Inspector. This can be created using the staticbuilder()method.Amazon Inspector Amazon Inspector enables you to analyze the behavior of your AWS resources and to identify potential security issues. For more information, see Amazon Inspector User Guide.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default AddAttributesToFindingsResponseaddAttributesToFindings(Consumer<AddAttributesToFindingsRequest.Builder> addAttributesToFindingsRequest)Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.default AddAttributesToFindingsResponseaddAttributesToFindings(AddAttributesToFindingsRequest addAttributesToFindingsRequest)Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.static InspectorClientBuilderbuilder()Create a builder that can be used to configure and create aInspectorClient.static InspectorClientcreate()Create aInspectorClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateAssessmentTargetResponsecreateAssessmentTarget(Consumer<CreateAssessmentTargetRequest.Builder> createAssessmentTargetRequest)Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup.default CreateAssessmentTargetResponsecreateAssessmentTarget(CreateAssessmentTargetRequest createAssessmentTargetRequest)Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup.default CreateAssessmentTemplateResponsecreateAssessmentTemplate(Consumer<CreateAssessmentTemplateRequest.Builder> createAssessmentTemplateRequest)Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.default CreateAssessmentTemplateResponsecreateAssessmentTemplate(CreateAssessmentTemplateRequest createAssessmentTemplateRequest)Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.default CreateExclusionsPreviewResponsecreateExclusionsPreview(Consumer<CreateExclusionsPreviewRequest.Builder> createExclusionsPreviewRequest)Starts the generation of an exclusions preview for the specified assessment template.default CreateExclusionsPreviewResponsecreateExclusionsPreview(CreateExclusionsPreviewRequest createExclusionsPreviewRequest)Starts the generation of an exclusions preview for the specified assessment template.default CreateResourceGroupResponsecreateResourceGroup(Consumer<CreateResourceGroupRequest.Builder> createResourceGroupRequest)Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target.default CreateResourceGroupResponsecreateResourceGroup(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 DeleteAssessmentRunResponsedeleteAssessmentRun(Consumer<DeleteAssessmentRunRequest.Builder> deleteAssessmentRunRequest)Deletes the assessment run that is specified by the ARN of the assessment run.default DeleteAssessmentRunResponsedeleteAssessmentRun(DeleteAssessmentRunRequest deleteAssessmentRunRequest)Deletes the assessment run that is specified by the ARN of the assessment run.default DeleteAssessmentTargetResponsedeleteAssessmentTarget(Consumer<DeleteAssessmentTargetRequest.Builder> deleteAssessmentTargetRequest)Deletes the assessment target that is specified by the ARN of the assessment target.default DeleteAssessmentTargetResponsedeleteAssessmentTarget(DeleteAssessmentTargetRequest deleteAssessmentTargetRequest)Deletes the assessment target that is specified by the ARN of the assessment target.default DeleteAssessmentTemplateResponsedeleteAssessmentTemplate(Consumer<DeleteAssessmentTemplateRequest.Builder> deleteAssessmentTemplateRequest)Deletes the assessment template that is specified by the ARN of the assessment template.default DeleteAssessmentTemplateResponsedeleteAssessmentTemplate(DeleteAssessmentTemplateRequest deleteAssessmentTemplateRequest)Deletes the assessment template that is specified by the ARN of the assessment template.default DescribeAssessmentRunsResponsedescribeAssessmentRuns(Consumer<DescribeAssessmentRunsRequest.Builder> describeAssessmentRunsRequest)Describes the assessment runs that are specified by the ARNs of the assessment runs.default DescribeAssessmentRunsResponsedescribeAssessmentRuns(DescribeAssessmentRunsRequest describeAssessmentRunsRequest)Describes the assessment runs that are specified by the ARNs of the assessment runs.default DescribeAssessmentTargetsResponsedescribeAssessmentTargets(Consumer<DescribeAssessmentTargetsRequest.Builder> describeAssessmentTargetsRequest)Describes the assessment targets that are specified by the ARNs of the assessment targets.default DescribeAssessmentTargetsResponsedescribeAssessmentTargets(DescribeAssessmentTargetsRequest describeAssessmentTargetsRequest)Describes the assessment targets that are specified by the ARNs of the assessment targets.default DescribeAssessmentTemplatesResponsedescribeAssessmentTemplates(Consumer<DescribeAssessmentTemplatesRequest.Builder> describeAssessmentTemplatesRequest)Describes the assessment templates that are specified by the ARNs of the assessment templates.default DescribeAssessmentTemplatesResponsedescribeAssessmentTemplates(DescribeAssessmentTemplatesRequest describeAssessmentTemplatesRequest)Describes the assessment templates that are specified by the ARNs of the assessment templates.default DescribeCrossAccountAccessRoleResponsedescribeCrossAccountAccessRole()Describes the IAM role that enables Amazon Inspector to access your AWS account.default DescribeCrossAccountAccessRoleResponsedescribeCrossAccountAccessRole(Consumer<DescribeCrossAccountAccessRoleRequest.Builder> describeCrossAccountAccessRoleRequest)Describes the IAM role that enables Amazon Inspector to access your AWS account.default DescribeCrossAccountAccessRoleResponsedescribeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest describeCrossAccountAccessRoleRequest)Describes the IAM role that enables Amazon Inspector to access your AWS account.default DescribeExclusionsResponsedescribeExclusions(Consumer<DescribeExclusionsRequest.Builder> describeExclusionsRequest)Describes the exclusions that are specified by the exclusions' ARNs.default DescribeExclusionsResponsedescribeExclusions(DescribeExclusionsRequest describeExclusionsRequest)Describes the exclusions that are specified by the exclusions' ARNs.default DescribeFindingsResponsedescribeFindings(Consumer<DescribeFindingsRequest.Builder> describeFindingsRequest)Describes the findings that are specified by the ARNs of the findings.default DescribeFindingsResponsedescribeFindings(DescribeFindingsRequest describeFindingsRequest)Describes the findings that are specified by the ARNs of the findings.default DescribeResourceGroupsResponsedescribeResourceGroups(Consumer<DescribeResourceGroupsRequest.Builder> describeResourceGroupsRequest)Describes the resource groups that are specified by the ARNs of the resource groups.default DescribeResourceGroupsResponsedescribeResourceGroups(DescribeResourceGroupsRequest describeResourceGroupsRequest)Describes the resource groups that are specified by the ARNs of the resource groups.default DescribeRulesPackagesResponsedescribeRulesPackages(Consumer<DescribeRulesPackagesRequest.Builder> describeRulesPackagesRequest)Describes the rules packages that are specified by the ARNs of the rules packages.default DescribeRulesPackagesResponsedescribeRulesPackages(DescribeRulesPackagesRequest describeRulesPackagesRequest)Describes the rules packages that are specified by the ARNs of the rules packages.default GetAssessmentReportResponsegetAssessmentReport(Consumer<GetAssessmentReportRequest.Builder> getAssessmentReportRequest)Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.default GetAssessmentReportResponsegetAssessmentReport(GetAssessmentReportRequest getAssessmentReportRequest)Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.default GetExclusionsPreviewResponsegetExclusionsPreview(Consumer<GetExclusionsPreviewRequest.Builder> getExclusionsPreviewRequest)Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token.default GetExclusionsPreviewResponsegetExclusionsPreview(GetExclusionsPreviewRequest getExclusionsPreviewRequest)Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token.default GetExclusionsPreviewIterablegetExclusionsPreviewPaginator(Consumer<GetExclusionsPreviewRequest.Builder> getExclusionsPreviewRequest)Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token.default GetExclusionsPreviewIterablegetExclusionsPreviewPaginator(GetExclusionsPreviewRequest getExclusionsPreviewRequest)Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token.default GetTelemetryMetadataResponsegetTelemetryMetadata(Consumer<GetTelemetryMetadataRequest.Builder> getTelemetryMetadataRequest)Information about the data that is collected for the specified assessment run.default GetTelemetryMetadataResponsegetTelemetryMetadata(GetTelemetryMetadataRequest getTelemetryMetadataRequest)Information about the data that is collected for the specified assessment run.default ListAssessmentRunAgentsResponselistAssessmentRunAgents(Consumer<ListAssessmentRunAgentsRequest.Builder> listAssessmentRunAgentsRequest)Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.default ListAssessmentRunAgentsResponselistAssessmentRunAgents(ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest)Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.default ListAssessmentRunAgentsIterablelistAssessmentRunAgentsPaginator(Consumer<ListAssessmentRunAgentsRequest.Builder> listAssessmentRunAgentsRequest)Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.default ListAssessmentRunAgentsIterablelistAssessmentRunAgentsPaginator(ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest)Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.default ListAssessmentRunsResponselistAssessmentRuns()Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.default ListAssessmentRunsResponselistAssessmentRuns(Consumer<ListAssessmentRunsRequest.Builder> listAssessmentRunsRequest)Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.default ListAssessmentRunsResponselistAssessmentRuns(ListAssessmentRunsRequest listAssessmentRunsRequest)Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.default ListAssessmentRunsIterablelistAssessmentRunsPaginator()Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.default ListAssessmentRunsIterablelistAssessmentRunsPaginator(Consumer<ListAssessmentRunsRequest.Builder> listAssessmentRunsRequest)Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.default ListAssessmentRunsIterablelistAssessmentRunsPaginator(ListAssessmentRunsRequest listAssessmentRunsRequest)Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.default ListAssessmentTargetsResponselistAssessmentTargets()Lists the ARNs of the assessment targets within this AWS account.default ListAssessmentTargetsResponselistAssessmentTargets(Consumer<ListAssessmentTargetsRequest.Builder> listAssessmentTargetsRequest)Lists the ARNs of the assessment targets within this AWS account.default ListAssessmentTargetsResponselistAssessmentTargets(ListAssessmentTargetsRequest listAssessmentTargetsRequest)Lists the ARNs of the assessment targets within this AWS account.default ListAssessmentTargetsIterablelistAssessmentTargetsPaginator()Lists the ARNs of the assessment targets within this AWS account.default ListAssessmentTargetsIterablelistAssessmentTargetsPaginator(Consumer<ListAssessmentTargetsRequest.Builder> listAssessmentTargetsRequest)Lists the ARNs of the assessment targets within this AWS account.default ListAssessmentTargetsIterablelistAssessmentTargetsPaginator(ListAssessmentTargetsRequest listAssessmentTargetsRequest)Lists the ARNs of the assessment targets within this AWS account.default ListAssessmentTemplatesResponselistAssessmentTemplates()Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.default ListAssessmentTemplatesResponselistAssessmentTemplates(Consumer<ListAssessmentTemplatesRequest.Builder> listAssessmentTemplatesRequest)Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.default ListAssessmentTemplatesResponselistAssessmentTemplates(ListAssessmentTemplatesRequest listAssessmentTemplatesRequest)Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.default ListAssessmentTemplatesIterablelistAssessmentTemplatesPaginator()Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.default ListAssessmentTemplatesIterablelistAssessmentTemplatesPaginator(Consumer<ListAssessmentTemplatesRequest.Builder> listAssessmentTemplatesRequest)Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.default ListAssessmentTemplatesIterablelistAssessmentTemplatesPaginator(ListAssessmentTemplatesRequest listAssessmentTemplatesRequest)Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.default ListEventSubscriptionsResponselistEventSubscriptions()Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template.default ListEventSubscriptionsResponselistEventSubscriptions(Consumer<ListEventSubscriptionsRequest.Builder> listEventSubscriptionsRequest)Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template.default ListEventSubscriptionsResponselistEventSubscriptions(ListEventSubscriptionsRequest listEventSubscriptionsRequest)Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template.default ListEventSubscriptionsIterablelistEventSubscriptionsPaginator()Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template.default ListEventSubscriptionsIterablelistEventSubscriptionsPaginator(Consumer<ListEventSubscriptionsRequest.Builder> listEventSubscriptionsRequest)Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template.default ListEventSubscriptionsIterablelistEventSubscriptionsPaginator(ListEventSubscriptionsRequest listEventSubscriptionsRequest)Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template.default ListExclusionsResponselistExclusions(Consumer<ListExclusionsRequest.Builder> listExclusionsRequest)List exclusions that are generated by the assessment run.default ListExclusionsResponselistExclusions(ListExclusionsRequest listExclusionsRequest)List exclusions that are generated by the assessment run.default ListExclusionsIterablelistExclusionsPaginator(Consumer<ListExclusionsRequest.Builder> listExclusionsRequest)List exclusions that are generated by the assessment run.default ListExclusionsIterablelistExclusionsPaginator(ListExclusionsRequest listExclusionsRequest)List exclusions that are generated by the assessment run.default ListFindingsResponselistFindings()Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.default ListFindingsResponselistFindings(Consumer<ListFindingsRequest.Builder> listFindingsRequest)Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.default ListFindingsResponselistFindings(ListFindingsRequest listFindingsRequest)Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.default ListFindingsIterablelistFindingsPaginator()Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.default ListFindingsIterablelistFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest)Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.default ListFindingsIterablelistFindingsPaginator(ListFindingsRequest listFindingsRequest)Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.default ListRulesPackagesResponselistRulesPackages()Lists all available Amazon Inspector rules packages.default ListRulesPackagesResponselistRulesPackages(Consumer<ListRulesPackagesRequest.Builder> listRulesPackagesRequest)Lists all available Amazon Inspector rules packages.default ListRulesPackagesResponselistRulesPackages(ListRulesPackagesRequest listRulesPackagesRequest)Lists all available Amazon Inspector rules packages.default ListRulesPackagesIterablelistRulesPackagesPaginator()Lists all available Amazon Inspector rules packages.default ListRulesPackagesIterablelistRulesPackagesPaginator(Consumer<ListRulesPackagesRequest.Builder> listRulesPackagesRequest)Lists all available Amazon Inspector rules packages.default ListRulesPackagesIterablelistRulesPackagesPaginator(ListRulesPackagesRequest listRulesPackagesRequest)Lists all available Amazon Inspector rules packages.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)Lists all tags associated with an assessment template.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)Lists all tags associated with an assessment template.default PreviewAgentsResponsepreviewAgents(Consumer<PreviewAgentsRequest.Builder> previewAgentsRequest)Previews the agents installed on the EC2 instances that are part of the specified assessment target.default PreviewAgentsResponsepreviewAgents(PreviewAgentsRequest previewAgentsRequest)Previews the agents installed on the EC2 instances that are part of the specified assessment target.default PreviewAgentsIterablepreviewAgentsPaginator(Consumer<PreviewAgentsRequest.Builder> previewAgentsRequest)Previews the agents installed on the EC2 instances that are part of the specified assessment target.default PreviewAgentsIterablepreviewAgentsPaginator(PreviewAgentsRequest previewAgentsRequest)Previews the agents installed on the EC2 instances that are part of the specified assessment target.default RegisterCrossAccountAccessRoleResponseregisterCrossAccountAccessRole(Consumer<RegisterCrossAccountAccessRoleRequest.Builder> registerCrossAccountAccessRoleRequest)Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.default RegisterCrossAccountAccessRoleResponseregisterCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest registerCrossAccountAccessRoleRequest)Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.default RemoveAttributesFromFindingsResponseremoveAttributesFromFindings(Consumer<RemoveAttributesFromFindingsRequest.Builder> removeAttributesFromFindingsRequest)Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists.default RemoveAttributesFromFindingsResponseremoveAttributesFromFindings(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.default InspectorServiceClientConfigurationserviceClientConfiguration()static ServiceMetadataserviceMetadata()default SetTagsForResourceResponsesetTagsForResource(Consumer<SetTagsForResourceRequest.Builder> setTagsForResourceRequest)Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.default SetTagsForResourceResponsesetTagsForResource(SetTagsForResourceRequest setTagsForResourceRequest)Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.default StartAssessmentRunResponsestartAssessmentRun(Consumer<StartAssessmentRunRequest.Builder> startAssessmentRunRequest)Starts the assessment run specified by the ARN of the assessment template.default StartAssessmentRunResponsestartAssessmentRun(StartAssessmentRunRequest startAssessmentRunRequest)Starts the assessment run specified by the ARN of the assessment template.default StopAssessmentRunResponsestopAssessmentRun(Consumer<StopAssessmentRunRequest.Builder> stopAssessmentRunRequest)Stops the assessment run that is specified by the ARN of the assessment run.default StopAssessmentRunResponsestopAssessmentRun(StopAssessmentRunRequest stopAssessmentRunRequest)Stops the assessment run that is specified by the ARN of the assessment run.default SubscribeToEventResponsesubscribeToEvent(Consumer<SubscribeToEventRequest.Builder> subscribeToEventRequest)Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.default SubscribeToEventResponsesubscribeToEvent(SubscribeToEventRequest subscribeToEventRequest)Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.default UnsubscribeFromEventResponseunsubscribeFromEvent(Consumer<UnsubscribeFromEventRequest.Builder> unsubscribeFromEventRequest)Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.default UnsubscribeFromEventResponseunsubscribeFromEvent(UnsubscribeFromEventRequest unsubscribeFromEventRequest)Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.default UpdateAssessmentTargetResponseupdateAssessmentTarget(Consumer<UpdateAssessmentTargetRequest.Builder> updateAssessmentTargetRequest)Updates the assessment target that is specified by the ARN of the assessment target.default UpdateAssessmentTargetResponseupdateAssessmentTarget(UpdateAssessmentTargetRequest updateAssessmentTargetRequest)Updates the assessment target that is specified by the ARN of the assessment target.-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
addAttributesToFindings
default AddAttributesToFindingsResponse addAttributesToFindings(AddAttributesToFindingsRequest addAttributesToFindingsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
- Parameters:
addAttributesToFindingsRequest-- Returns:
- Result of the AddAttributesToFindings operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
addAttributesToFindings
default AddAttributesToFindingsResponse addAttributesToFindings(Consumer<AddAttributesToFindingsRequest.Builder> addAttributesToFindingsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
This is a convenience which creates an instance of the
AddAttributesToFindingsRequest.Builderavoiding the need to create one manually viaAddAttributesToFindingsRequest.builder()- Parameters:
addAttributesToFindingsRequest- AConsumerthat will call methods onAddAttributesToFindingsRequest.Builderto create a request.- Returns:
- Result of the AddAttributesToFindings operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createAssessmentTarget
default CreateAssessmentTargetResponse createAssessmentTarget(CreateAssessmentTargetRequest createAssessmentTargetRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, NoSuchEntityException, InvalidCrossAccountRoleException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Amazon Inspector Assessment Targets.
- Parameters:
createAssessmentTargetRequest-- Returns:
- Result of the CreateAssessmentTarget operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException- The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.InvalidCrossAccountRoleException- Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createAssessmentTarget
default CreateAssessmentTargetResponse createAssessmentTarget(Consumer<CreateAssessmentTargetRequest.Builder> createAssessmentTargetRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, NoSuchEntityException, InvalidCrossAccountRoleException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Amazon Inspector Assessment Targets.
This is a convenience which creates an instance of the
CreateAssessmentTargetRequest.Builderavoiding the need to create one manually viaCreateAssessmentTargetRequest.builder()- Parameters:
createAssessmentTargetRequest- AConsumerthat will call methods onCreateAssessmentTargetRequest.Builderto create a request.- Returns:
- Result of the CreateAssessmentTarget operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException- The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.InvalidCrossAccountRoleException- Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createAssessmentTemplate
default CreateAssessmentTemplateResponse createAssessmentTemplate(CreateAssessmentTemplateRequest createAssessmentTemplateRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Creates an assessment template for the assessment target that is specified by the ARN of the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments.
- Parameters:
createAssessmentTemplateRequest-- Returns:
- Result of the CreateAssessmentTemplate operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException- The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createAssessmentTemplate
default CreateAssessmentTemplateResponse createAssessmentTemplate(Consumer<CreateAssessmentTemplateRequest.Builder> createAssessmentTemplateRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Creates an assessment template for the assessment target that is specified by the ARN of the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments.
This is a convenience which creates an instance of the
CreateAssessmentTemplateRequest.Builderavoiding the need to create one manually viaCreateAssessmentTemplateRequest.builder()- Parameters:
createAssessmentTemplateRequest- AConsumerthat will call methods onCreateAssessmentTemplateRequest.Builderto create a request.- Returns:
- Result of the CreateAssessmentTemplate operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException- The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createExclusionsPreview
default CreateExclusionsPreviewResponse createExclusionsPreview(CreateExclusionsPreviewRequest createExclusionsPreviewRequest) throws InvalidInputException, PreviewGenerationInProgressException, InternalException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Starts the generation of an exclusions preview for the specified assessment template. The exclusions preview lists the potential exclusions (ExclusionPreview) that Inspector can detect before it runs the assessment.
- Parameters:
createExclusionsPreviewRequest-- Returns:
- Result of the CreateExclusionsPreview operation returned by the service.
- Throws:
InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.PreviewGenerationInProgressException- The request is rejected. The specified assessment template is currently generating an exclusions preview.InternalException- Internal server error.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createExclusionsPreview
default CreateExclusionsPreviewResponse createExclusionsPreview(Consumer<CreateExclusionsPreviewRequest.Builder> createExclusionsPreviewRequest) throws InvalidInputException, PreviewGenerationInProgressException, InternalException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Starts the generation of an exclusions preview for the specified assessment template. The exclusions preview lists the potential exclusions (ExclusionPreview) that Inspector can detect before it runs the assessment.
This is a convenience which creates an instance of the
CreateExclusionsPreviewRequest.Builderavoiding the need to create one manually viaCreateExclusionsPreviewRequest.builder()- Parameters:
createExclusionsPreviewRequest- AConsumerthat will call methods onCreateExclusionsPreviewRequest.Builderto create a request.- Returns:
- Result of the CreateExclusionsPreview operation returned by the service.
- Throws:
InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.PreviewGenerationInProgressException- The request is rejected. The specified assessment template is currently generating an exclusions preview.InternalException- Internal server error.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createResourceGroup
default CreateResourceGroupResponse createResourceGroup(CreateResourceGroupRequest createResourceGroupRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, ServiceTemporarilyUnavailableException, AwsServiceException, 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.
- Parameters:
createResourceGroupRequest-- Returns:
- Result of the CreateResourceGroup operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException- The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.AccessDeniedException- You do not have required permissions to access the requested resource.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createResourceGroup
default CreateResourceGroupResponse createResourceGroup(Consumer<CreateResourceGroupRequest.Builder> createResourceGroupRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, ServiceTemporarilyUnavailableException, AwsServiceException, 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.
This is a convenience which creates an instance of the
CreateResourceGroupRequest.Builderavoiding the need to create one manually viaCreateResourceGroupRequest.builder()- Parameters:
createResourceGroupRequest- AConsumerthat will call methods onCreateResourceGroupRequest.Builderto create a request.- Returns:
- Result of the CreateResourceGroup operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException- The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.AccessDeniedException- You do not have required permissions to access the requested resource.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAssessmentRun
default DeleteAssessmentRunResponse deleteAssessmentRun(DeleteAssessmentRunRequest deleteAssessmentRunRequest) throws InternalException, InvalidInputException, AssessmentRunInProgressException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Deletes the assessment run that is specified by the ARN of the assessment run.
- Parameters:
deleteAssessmentRunRequest-- Returns:
- Result of the DeleteAssessmentRun operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AssessmentRunInProgressException- You cannot perform a specified action if an assessment run is currently in progress.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAssessmentRun
default DeleteAssessmentRunResponse deleteAssessmentRun(Consumer<DeleteAssessmentRunRequest.Builder> deleteAssessmentRunRequest) throws InternalException, InvalidInputException, AssessmentRunInProgressException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Deletes the assessment run that is specified by the ARN of the assessment run.
This is a convenience which creates an instance of the
DeleteAssessmentRunRequest.Builderavoiding the need to create one manually viaDeleteAssessmentRunRequest.builder()- Parameters:
deleteAssessmentRunRequest- AConsumerthat will call methods onDeleteAssessmentRunRequest.Builderto create a request.- Returns:
- Result of the DeleteAssessmentRun operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AssessmentRunInProgressException- You cannot perform a specified action if an assessment run is currently in progress.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAssessmentTarget
default DeleteAssessmentTargetResponse deleteAssessmentTarget(DeleteAssessmentTargetRequest deleteAssessmentTargetRequest) throws InternalException, InvalidInputException, AssessmentRunInProgressException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Deletes the assessment target that is specified by the ARN of the assessment target.
- Parameters:
deleteAssessmentTargetRequest-- Returns:
- Result of the DeleteAssessmentTarget operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AssessmentRunInProgressException- You cannot perform a specified action if an assessment run is currently in progress.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAssessmentTarget
default DeleteAssessmentTargetResponse deleteAssessmentTarget(Consumer<DeleteAssessmentTargetRequest.Builder> deleteAssessmentTargetRequest) throws InternalException, InvalidInputException, AssessmentRunInProgressException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Deletes the assessment target that is specified by the ARN of the assessment target.
This is a convenience which creates an instance of the
DeleteAssessmentTargetRequest.Builderavoiding the need to create one manually viaDeleteAssessmentTargetRequest.builder()- Parameters:
deleteAssessmentTargetRequest- AConsumerthat will call methods onDeleteAssessmentTargetRequest.Builderto create a request.- Returns:
- Result of the DeleteAssessmentTarget operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AssessmentRunInProgressException- You cannot perform a specified action if an assessment run is currently in progress.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAssessmentTemplate
default DeleteAssessmentTemplateResponse deleteAssessmentTemplate(DeleteAssessmentTemplateRequest deleteAssessmentTemplateRequest) throws InternalException, InvalidInputException, AssessmentRunInProgressException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Deletes the assessment template that is specified by the ARN of the assessment template.
- Parameters:
deleteAssessmentTemplateRequest-- Returns:
- Result of the DeleteAssessmentTemplate operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AssessmentRunInProgressException- You cannot perform a specified action if an assessment run is currently in progress.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAssessmentTemplate
default DeleteAssessmentTemplateResponse deleteAssessmentTemplate(Consumer<DeleteAssessmentTemplateRequest.Builder> deleteAssessmentTemplateRequest) throws InternalException, InvalidInputException, AssessmentRunInProgressException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Deletes the assessment template that is specified by the ARN of the assessment template.
This is a convenience which creates an instance of the
DeleteAssessmentTemplateRequest.Builderavoiding the need to create one manually viaDeleteAssessmentTemplateRequest.builder()- Parameters:
deleteAssessmentTemplateRequest- AConsumerthat will call methods onDeleteAssessmentTemplateRequest.Builderto create a request.- Returns:
- Result of the DeleteAssessmentTemplate operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AssessmentRunInProgressException- You cannot perform a specified action if an assessment run is currently in progress.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeAssessmentRuns
default DescribeAssessmentRunsResponse describeAssessmentRuns(DescribeAssessmentRunsRequest describeAssessmentRunsRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the assessment runs that are specified by the ARNs of the assessment runs.
- Parameters:
describeAssessmentRunsRequest-- Returns:
- Result of the DescribeAssessmentRuns operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeAssessmentRuns
default DescribeAssessmentRunsResponse describeAssessmentRuns(Consumer<DescribeAssessmentRunsRequest.Builder> describeAssessmentRunsRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the assessment runs that are specified by the ARNs of the assessment runs.
This is a convenience which creates an instance of the
DescribeAssessmentRunsRequest.Builderavoiding the need to create one manually viaDescribeAssessmentRunsRequest.builder()- Parameters:
describeAssessmentRunsRequest- AConsumerthat will call methods onDescribeAssessmentRunsRequest.Builderto create a request.- Returns:
- Result of the DescribeAssessmentRuns operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeAssessmentTargets
default DescribeAssessmentTargetsResponse describeAssessmentTargets(DescribeAssessmentTargetsRequest describeAssessmentTargetsRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the assessment targets that are specified by the ARNs of the assessment targets.
- Parameters:
describeAssessmentTargetsRequest-- Returns:
- Result of the DescribeAssessmentTargets operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeAssessmentTargets
default DescribeAssessmentTargetsResponse describeAssessmentTargets(Consumer<DescribeAssessmentTargetsRequest.Builder> describeAssessmentTargetsRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the assessment targets that are specified by the ARNs of the assessment targets.
This is a convenience which creates an instance of the
DescribeAssessmentTargetsRequest.Builderavoiding the need to create one manually viaDescribeAssessmentTargetsRequest.builder()- Parameters:
describeAssessmentTargetsRequest- AConsumerthat will call methods onDescribeAssessmentTargetsRequest.Builderto create a request.- Returns:
- Result of the DescribeAssessmentTargets operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeAssessmentTemplates
default DescribeAssessmentTemplatesResponse describeAssessmentTemplates(DescribeAssessmentTemplatesRequest describeAssessmentTemplatesRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the assessment templates that are specified by the ARNs of the assessment templates.
- Parameters:
describeAssessmentTemplatesRequest-- Returns:
- Result of the DescribeAssessmentTemplates operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeAssessmentTemplates
default DescribeAssessmentTemplatesResponse describeAssessmentTemplates(Consumer<DescribeAssessmentTemplatesRequest.Builder> describeAssessmentTemplatesRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the assessment templates that are specified by the ARNs of the assessment templates.
This is a convenience which creates an instance of the
DescribeAssessmentTemplatesRequest.Builderavoiding the need to create one manually viaDescribeAssessmentTemplatesRequest.builder()- Parameters:
describeAssessmentTemplatesRequest- AConsumerthat will call methods onDescribeAssessmentTemplatesRequest.Builderto create a request.- Returns:
- Result of the DescribeAssessmentTemplates operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeCrossAccountAccessRole
default DescribeCrossAccountAccessRoleResponse describeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest describeCrossAccountAccessRoleRequest) throws InternalException, AwsServiceException, SdkClientException, InspectorException
Describes the IAM role that enables Amazon Inspector to access your AWS account.
- Parameters:
describeCrossAccountAccessRoleRequest-- Returns:
- Result of the DescribeCrossAccountAccessRole operation returned by the service.
- Throws:
InternalException- Internal server error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeCrossAccountAccessRole
default DescribeCrossAccountAccessRoleResponse describeCrossAccountAccessRole(Consumer<DescribeCrossAccountAccessRoleRequest.Builder> describeCrossAccountAccessRoleRequest) throws InternalException, AwsServiceException, SdkClientException, InspectorException
Describes the IAM role that enables Amazon Inspector to access your AWS account.
This is a convenience which creates an instance of the
DescribeCrossAccountAccessRoleRequest.Builderavoiding the need to create one manually viaDescribeCrossAccountAccessRoleRequest.builder()- Parameters:
describeCrossAccountAccessRoleRequest- AConsumerthat will call methods onDescribeCrossAccountAccessRoleRequest.Builderto create a request.- Returns:
- Result of the DescribeCrossAccountAccessRole operation returned by the service.
- Throws:
InternalException- Internal server error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeCrossAccountAccessRole
default DescribeCrossAccountAccessRoleResponse describeCrossAccountAccessRole() throws InternalException, AwsServiceException, SdkClientException, InspectorException
Describes the IAM role that enables Amazon Inspector to access your AWS account.
- Returns:
- Result of the DescribeCrossAccountAccessRole operation returned by the service.
- Throws:
InternalException- Internal server error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
describeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest), AWS API Documentation
-
describeExclusions
default DescribeExclusionsResponse describeExclusions(DescribeExclusionsRequest describeExclusionsRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the exclusions that are specified by the exclusions' ARNs.
- Parameters:
describeExclusionsRequest-- Returns:
- Result of the DescribeExclusions operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeExclusions
default DescribeExclusionsResponse describeExclusions(Consumer<DescribeExclusionsRequest.Builder> describeExclusionsRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the exclusions that are specified by the exclusions' ARNs.
This is a convenience which creates an instance of the
DescribeExclusionsRequest.Builderavoiding the need to create one manually viaDescribeExclusionsRequest.builder()- Parameters:
describeExclusionsRequest- AConsumerthat will call methods onDescribeExclusionsRequest.Builderto create a request.- Returns:
- Result of the DescribeExclusions operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeFindings
default DescribeFindingsResponse describeFindings(DescribeFindingsRequest describeFindingsRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the findings that are specified by the ARNs of the findings.
- Parameters:
describeFindingsRequest-- Returns:
- Result of the DescribeFindings operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeFindings
default DescribeFindingsResponse describeFindings(Consumer<DescribeFindingsRequest.Builder> describeFindingsRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the findings that are specified by the ARNs of the findings.
This is a convenience which creates an instance of the
DescribeFindingsRequest.Builderavoiding the need to create one manually viaDescribeFindingsRequest.builder()- Parameters:
describeFindingsRequest- AConsumerthat will call methods onDescribeFindingsRequest.Builderto create a request.- Returns:
- Result of the DescribeFindings operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeResourceGroups
default DescribeResourceGroupsResponse describeResourceGroups(DescribeResourceGroupsRequest describeResourceGroupsRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the resource groups that are specified by the ARNs of the resource groups.
- Parameters:
describeResourceGroupsRequest-- Returns:
- Result of the DescribeResourceGroups operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeResourceGroups
default DescribeResourceGroupsResponse describeResourceGroups(Consumer<DescribeResourceGroupsRequest.Builder> describeResourceGroupsRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the resource groups that are specified by the ARNs of the resource groups.
This is a convenience which creates an instance of the
DescribeResourceGroupsRequest.Builderavoiding the need to create one manually viaDescribeResourceGroupsRequest.builder()- Parameters:
describeResourceGroupsRequest- AConsumerthat will call methods onDescribeResourceGroupsRequest.Builderto create a request.- Returns:
- Result of the DescribeResourceGroups operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeRulesPackages
default DescribeRulesPackagesResponse describeRulesPackages(DescribeRulesPackagesRequest describeRulesPackagesRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the rules packages that are specified by the ARNs of the rules packages.
- Parameters:
describeRulesPackagesRequest-- Returns:
- Result of the DescribeRulesPackages operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeRulesPackages
default DescribeRulesPackagesResponse describeRulesPackages(Consumer<DescribeRulesPackagesRequest.Builder> describeRulesPackagesRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the rules packages that are specified by the ARNs of the rules packages.
This is a convenience which creates an instance of the
DescribeRulesPackagesRequest.Builderavoiding the need to create one manually viaDescribeRulesPackagesRequest.builder()- Parameters:
describeRulesPackagesRequest- AConsumerthat will call methods onDescribeRulesPackagesRequest.Builderto create a request.- Returns:
- Result of the DescribeRulesPackages operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAssessmentReport
default GetAssessmentReportResponse getAssessmentReport(GetAssessmentReportRequest getAssessmentReportRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AssessmentRunInProgressException, UnsupportedFeatureException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.
- Parameters:
getAssessmentReportRequest-- Returns:
- Result of the GetAssessmentReport operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.AssessmentRunInProgressException- You cannot perform a specified action if an assessment run is currently in progress.UnsupportedFeatureException- Used by the GetAssessmentReport API. The request was rejected because you tried to generate a report for an assessment run that existed before reporting was supported in Amazon Inspector. You can only generate reports for assessment runs that took place or will take place after generating reports in Amazon Inspector became available.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAssessmentReport
default GetAssessmentReportResponse getAssessmentReport(Consumer<GetAssessmentReportRequest.Builder> getAssessmentReportRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AssessmentRunInProgressException, UnsupportedFeatureException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.
This is a convenience which creates an instance of the
GetAssessmentReportRequest.Builderavoiding the need to create one manually viaGetAssessmentReportRequest.builder()- Parameters:
getAssessmentReportRequest- AConsumerthat will call methods onGetAssessmentReportRequest.Builderto create a request.- Returns:
- Result of the GetAssessmentReport operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.AssessmentRunInProgressException- You cannot perform a specified action if an assessment run is currently in progress.UnsupportedFeatureException- Used by the GetAssessmentReport API. The request was rejected because you tried to generate a report for an assessment run that existed before reporting was supported in Amazon Inspector. You can only generate reports for assessment runs that took place or will take place after generating reports in Amazon Inspector became available.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getExclusionsPreview
default GetExclusionsPreviewResponse getExclusionsPreview(GetExclusionsPreviewRequest getExclusionsPreviewRequest) throws InvalidInputException, InternalException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token. You can obtain the preview token by running the CreateExclusionsPreview API.
- Parameters:
getExclusionsPreviewRequest-- Returns:
- Result of the GetExclusionsPreview operation returned by the service.
- Throws:
InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.InternalException- Internal server error.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getExclusionsPreview
default GetExclusionsPreviewResponse getExclusionsPreview(Consumer<GetExclusionsPreviewRequest.Builder> getExclusionsPreviewRequest) throws InvalidInputException, InternalException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token. You can obtain the preview token by running the CreateExclusionsPreview API.
This is a convenience which creates an instance of the
GetExclusionsPreviewRequest.Builderavoiding the need to create one manually viaGetExclusionsPreviewRequest.builder()- Parameters:
getExclusionsPreviewRequest- AConsumerthat will call methods onGetExclusionsPreviewRequest.Builderto create a request.- Returns:
- Result of the GetExclusionsPreview operation returned by the service.
- Throws:
InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.InternalException- Internal server error.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getExclusionsPreviewPaginator
default GetExclusionsPreviewIterable getExclusionsPreviewPaginator(GetExclusionsPreviewRequest getExclusionsPreviewRequest) throws InvalidInputException, InternalException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token. You can obtain the preview token by running the CreateExclusionsPreview API.
This is a variant of
getExclusionsPreview(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewIterable responses = client.getExclusionsPreviewPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewIterable responses = client .getExclusionsPreviewPaginator(request); for (software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewIterable responses = client.getExclusionsPreviewPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getExclusionsPreview(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest)operation.- Parameters:
getExclusionsPreviewRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.InternalException- Internal server error.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getExclusionsPreviewPaginator
default GetExclusionsPreviewIterable getExclusionsPreviewPaginator(Consumer<GetExclusionsPreviewRequest.Builder> getExclusionsPreviewRequest) throws InvalidInputException, InternalException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token. You can obtain the preview token by running the CreateExclusionsPreview API.
This is a variant of
getExclusionsPreview(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewIterable responses = client.getExclusionsPreviewPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewIterable responses = client .getExclusionsPreviewPaginator(request); for (software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewIterable responses = client.getExclusionsPreviewPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getExclusionsPreview(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest)operation.This is a convenience which creates an instance of the
GetExclusionsPreviewRequest.Builderavoiding the need to create one manually viaGetExclusionsPreviewRequest.builder()- Parameters:
getExclusionsPreviewRequest- AConsumerthat will call methods onGetExclusionsPreviewRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.InternalException- Internal server error.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getTelemetryMetadata
default GetTelemetryMetadataResponse getTelemetryMetadata(GetTelemetryMetadataRequest getTelemetryMetadataRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Information about the data that is collected for the specified assessment run.
- Parameters:
getTelemetryMetadataRequest-- Returns:
- Result of the GetTelemetryMetadata operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getTelemetryMetadata
default GetTelemetryMetadataResponse getTelemetryMetadata(Consumer<GetTelemetryMetadataRequest.Builder> getTelemetryMetadataRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Information about the data that is collected for the specified assessment run.
This is a convenience which creates an instance of the
GetTelemetryMetadataRequest.Builderavoiding the need to create one manually viaGetTelemetryMetadataRequest.builder()- Parameters:
getTelemetryMetadataRequest- AConsumerthat will call methods onGetTelemetryMetadataRequest.Builderto create a request.- Returns:
- Result of the GetTelemetryMetadata operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentRunAgents
default ListAssessmentRunAgentsResponse listAssessmentRunAgents(ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
- Parameters:
listAssessmentRunAgentsRequest-- Returns:
- Result of the ListAssessmentRunAgents operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentRunAgents
default ListAssessmentRunAgentsResponse listAssessmentRunAgents(Consumer<ListAssessmentRunAgentsRequest.Builder> listAssessmentRunAgentsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
This is a convenience which creates an instance of the
ListAssessmentRunAgentsRequest.Builderavoiding the need to create one manually viaListAssessmentRunAgentsRequest.builder()- Parameters:
listAssessmentRunAgentsRequest- AConsumerthat will call methods onListAssessmentRunAgentsRequest.Builderto create a request.- Returns:
- Result of the ListAssessmentRunAgents operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentRunAgentsPaginator
default ListAssessmentRunAgentsIterable listAssessmentRunAgentsPaginator(ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
This is a variant of
listAssessmentRunAgents(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsIterable responses = client.listAssessmentRunAgentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsIterable responses = client .listAssessmentRunAgentsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsIterable responses = client.listAssessmentRunAgentsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssessmentRunAgents(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest)operation.- Parameters:
listAssessmentRunAgentsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentRunAgentsPaginator
default ListAssessmentRunAgentsIterable listAssessmentRunAgentsPaginator(Consumer<ListAssessmentRunAgentsRequest.Builder> listAssessmentRunAgentsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
This is a variant of
listAssessmentRunAgents(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsIterable responses = client.listAssessmentRunAgentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsIterable responses = client .listAssessmentRunAgentsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsIterable responses = client.listAssessmentRunAgentsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssessmentRunAgents(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest)operation.This is a convenience which creates an instance of the
ListAssessmentRunAgentsRequest.Builderavoiding the need to create one manually viaListAssessmentRunAgentsRequest.builder()- Parameters:
listAssessmentRunAgentsRequest- AConsumerthat will call methods onListAssessmentRunAgentsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentRuns
default ListAssessmentRunsResponse listAssessmentRuns(ListAssessmentRunsRequest listAssessmentRunsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
- Parameters:
listAssessmentRunsRequest-- Returns:
- Result of the ListAssessmentRuns operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentRuns
default ListAssessmentRunsResponse listAssessmentRuns(Consumer<ListAssessmentRunsRequest.Builder> listAssessmentRunsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
This is a convenience which creates an instance of the
ListAssessmentRunsRequest.Builderavoiding the need to create one manually viaListAssessmentRunsRequest.builder()- Parameters:
listAssessmentRunsRequest- AConsumerthat will call methods onListAssessmentRunsRequest.Builderto create a request.- Returns:
- Result of the ListAssessmentRuns operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentRuns
default ListAssessmentRunsResponse listAssessmentRuns() throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
- Returns:
- Result of the ListAssessmentRuns operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listAssessmentRuns(ListAssessmentRunsRequest), AWS API Documentation
-
listAssessmentRunsPaginator
default ListAssessmentRunsIterable listAssessmentRunsPaginator() throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
This is a variant of
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client.listAssessmentRunsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client .listAssessmentRunsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListAssessmentRunsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client.listAssessmentRunsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listAssessmentRunsPaginator(ListAssessmentRunsRequest), AWS API Documentation
-
listAssessmentRunsPaginator
default ListAssessmentRunsIterable listAssessmentRunsPaginator(ListAssessmentRunsRequest listAssessmentRunsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
This is a variant of
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client.listAssessmentRunsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client .listAssessmentRunsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListAssessmentRunsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client.listAssessmentRunsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)operation.- Parameters:
listAssessmentRunsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentRunsPaginator
default ListAssessmentRunsIterable listAssessmentRunsPaginator(Consumer<ListAssessmentRunsRequest.Builder> listAssessmentRunsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
This is a variant of
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client.listAssessmentRunsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client .listAssessmentRunsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListAssessmentRunsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client.listAssessmentRunsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)operation.This is a convenience which creates an instance of the
ListAssessmentRunsRequest.Builderavoiding the need to create one manually viaListAssessmentRunsRequest.builder()- Parameters:
listAssessmentRunsRequest- AConsumerthat will call methods onListAssessmentRunsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentTargets
default ListAssessmentTargetsResponse listAssessmentTargets(ListAssessmentTargetsRequest listAssessmentTargetsRequest) throws InternalException, InvalidInputException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorException
Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
- Parameters:
listAssessmentTargetsRequest-- Returns:
- Result of the ListAssessmentTargets operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentTargets
default ListAssessmentTargetsResponse listAssessmentTargets(Consumer<ListAssessmentTargetsRequest.Builder> listAssessmentTargetsRequest) throws InternalException, InvalidInputException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorException
Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
This is a convenience which creates an instance of the
ListAssessmentTargetsRequest.Builderavoiding the need to create one manually viaListAssessmentTargetsRequest.builder()- Parameters:
listAssessmentTargetsRequest- AConsumerthat will call methods onListAssessmentTargetsRequest.Builderto create a request.- Returns:
- Result of the ListAssessmentTargets operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentTargets
default ListAssessmentTargetsResponse listAssessmentTargets() throws InternalException, InvalidInputException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorException
Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
- Returns:
- Result of the ListAssessmentTargets operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listAssessmentTargets(ListAssessmentTargetsRequest), AWS API Documentation
-
listAssessmentTargetsPaginator
default ListAssessmentTargetsIterable listAssessmentTargetsPaginator() throws InternalException, InvalidInputException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorException
Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
This is a variant of
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client.listAssessmentTargetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client .listAssessmentTargetsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client.listAssessmentTargetsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listAssessmentTargetsPaginator(ListAssessmentTargetsRequest), AWS API Documentation
-
listAssessmentTargetsPaginator
default ListAssessmentTargetsIterable listAssessmentTargetsPaginator(ListAssessmentTargetsRequest listAssessmentTargetsRequest) throws InternalException, InvalidInputException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorException
Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
This is a variant of
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client.listAssessmentTargetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client .listAssessmentTargetsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client.listAssessmentTargetsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)operation.- Parameters:
listAssessmentTargetsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentTargetsPaginator
default ListAssessmentTargetsIterable listAssessmentTargetsPaginator(Consumer<ListAssessmentTargetsRequest.Builder> listAssessmentTargetsRequest) throws InternalException, InvalidInputException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorException
Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
This is a variant of
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client.listAssessmentTargetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client .listAssessmentTargetsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client.listAssessmentTargetsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)operation.This is a convenience which creates an instance of the
ListAssessmentTargetsRequest.Builderavoiding the need to create one manually viaListAssessmentTargetsRequest.builder()- Parameters:
listAssessmentTargetsRequest- AConsumerthat will call methods onListAssessmentTargetsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentTemplates
default ListAssessmentTemplatesResponse listAssessmentTemplates(ListAssessmentTemplatesRequest listAssessmentTemplatesRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
- Parameters:
listAssessmentTemplatesRequest-- Returns:
- Result of the ListAssessmentTemplates operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentTemplates
default ListAssessmentTemplatesResponse listAssessmentTemplates(Consumer<ListAssessmentTemplatesRequest.Builder> listAssessmentTemplatesRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
This is a convenience which creates an instance of the
ListAssessmentTemplatesRequest.Builderavoiding the need to create one manually viaListAssessmentTemplatesRequest.builder()- Parameters:
listAssessmentTemplatesRequest- AConsumerthat will call methods onListAssessmentTemplatesRequest.Builderto create a request.- Returns:
- Result of the ListAssessmentTemplates operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentTemplates
default ListAssessmentTemplatesResponse listAssessmentTemplates() throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
- Returns:
- Result of the ListAssessmentTemplates operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listAssessmentTemplates(ListAssessmentTemplatesRequest), AWS API Documentation
-
listAssessmentTemplatesPaginator
default ListAssessmentTemplatesIterable listAssessmentTemplatesPaginator() throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
This is a variant of
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client.listAssessmentTemplatesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client .listAssessmentTemplatesPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client.listAssessmentTemplatesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listAssessmentTemplatesPaginator(ListAssessmentTemplatesRequest), AWS API Documentation
-
listAssessmentTemplatesPaginator
default ListAssessmentTemplatesIterable listAssessmentTemplatesPaginator(ListAssessmentTemplatesRequest listAssessmentTemplatesRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
This is a variant of
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client.listAssessmentTemplatesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client .listAssessmentTemplatesPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client.listAssessmentTemplatesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)operation.- Parameters:
listAssessmentTemplatesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssessmentTemplatesPaginator
default ListAssessmentTemplatesIterable listAssessmentTemplatesPaginator(Consumer<ListAssessmentTemplatesRequest.Builder> listAssessmentTemplatesRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
This is a variant of
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client.listAssessmentTemplatesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client .listAssessmentTemplatesPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client.listAssessmentTemplatesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)operation.This is a convenience which creates an instance of the
ListAssessmentTemplatesRequest.Builderavoiding the need to create one manually viaListAssessmentTemplatesRequest.builder()- Parameters:
listAssessmentTemplatesRequest- AConsumerthat will call methods onListAssessmentTemplatesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listEventSubscriptions
default ListEventSubscriptionsResponse listEventSubscriptions(ListEventSubscriptionsRequest listEventSubscriptionsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, 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.
- Parameters:
listEventSubscriptionsRequest-- Returns:
- Result of the ListEventSubscriptions operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listEventSubscriptions
default ListEventSubscriptionsResponse listEventSubscriptions(Consumer<ListEventSubscriptionsRequest.Builder> listEventSubscriptionsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, 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.
This is a convenience which creates an instance of the
ListEventSubscriptionsRequest.Builderavoiding the need to create one manually viaListEventSubscriptionsRequest.builder()- Parameters:
listEventSubscriptionsRequest- AConsumerthat will call methods onListEventSubscriptionsRequest.Builderto create a request.- Returns:
- Result of the ListEventSubscriptions operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listEventSubscriptions
default ListEventSubscriptionsResponse listEventSubscriptions() throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, 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.
- Returns:
- Result of the ListEventSubscriptions operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listEventSubscriptions(ListEventSubscriptionsRequest), AWS API Documentation
-
listEventSubscriptionsPaginator
default ListEventSubscriptionsIterable listEventSubscriptionsPaginator() throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, 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.
This is a variant of
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client.listEventSubscriptionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client .listEventSubscriptionsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client.listEventSubscriptionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listEventSubscriptionsPaginator(ListEventSubscriptionsRequest), AWS API Documentation
-
listEventSubscriptionsPaginator
default ListEventSubscriptionsIterable listEventSubscriptionsPaginator(ListEventSubscriptionsRequest listEventSubscriptionsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, 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.
This is a variant of
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client.listEventSubscriptionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client .listEventSubscriptionsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client.listEventSubscriptionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)operation.- Parameters:
listEventSubscriptionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listEventSubscriptionsPaginator
default ListEventSubscriptionsIterable listEventSubscriptionsPaginator(Consumer<ListEventSubscriptionsRequest.Builder> listEventSubscriptionsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, 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.
This is a variant of
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client.listEventSubscriptionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client .listEventSubscriptionsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client.listEventSubscriptionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)operation.This is a convenience which creates an instance of the
ListEventSubscriptionsRequest.Builderavoiding the need to create one manually viaListEventSubscriptionsRequest.builder()- Parameters:
listEventSubscriptionsRequest- AConsumerthat will call methods onListEventSubscriptionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listExclusions
default ListExclusionsResponse listExclusions(ListExclusionsRequest listExclusionsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
List exclusions that are generated by the assessment run.
- Parameters:
listExclusionsRequest-- Returns:
- Result of the ListExclusions operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listExclusions
default ListExclusionsResponse listExclusions(Consumer<ListExclusionsRequest.Builder> listExclusionsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
List exclusions that are generated by the assessment run.
This is a convenience which creates an instance of the
ListExclusionsRequest.Builderavoiding the need to create one manually viaListExclusionsRequest.builder()- Parameters:
listExclusionsRequest- AConsumerthat will call methods onListExclusionsRequest.Builderto create a request.- Returns:
- Result of the ListExclusions operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listExclusionsPaginator
default ListExclusionsIterable listExclusionsPaginator(ListExclusionsRequest listExclusionsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
List exclusions that are generated by the assessment run.
This is a variant of
listExclusions(software.amazon.awssdk.services.inspector.model.ListExclusionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListExclusionsIterable responses = client.listExclusionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListExclusionsIterable responses = client .listExclusionsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListExclusionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListExclusionsIterable responses = client.listExclusionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listExclusions(software.amazon.awssdk.services.inspector.model.ListExclusionsRequest)operation.- Parameters:
listExclusionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listExclusionsPaginator
default ListExclusionsIterable listExclusionsPaginator(Consumer<ListExclusionsRequest.Builder> listExclusionsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
List exclusions that are generated by the assessment run.
This is a variant of
listExclusions(software.amazon.awssdk.services.inspector.model.ListExclusionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListExclusionsIterable responses = client.listExclusionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListExclusionsIterable responses = client .listExclusionsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListExclusionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListExclusionsIterable responses = client.listExclusionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listExclusions(software.amazon.awssdk.services.inspector.model.ListExclusionsRequest)operation.This is a convenience which creates an instance of the
ListExclusionsRequest.Builderavoiding the need to create one manually viaListExclusionsRequest.builder()- Parameters:
listExclusionsRequest- AConsumerthat will call methods onListExclusionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindings
default ListFindingsResponse listFindings(ListFindingsRequest listFindingsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
- Parameters:
listFindingsRequest-- Returns:
- Result of the ListFindings operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindings
default ListFindingsResponse listFindings(Consumer<ListFindingsRequest.Builder> listFindingsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
This is a convenience which creates an instance of the
ListFindingsRequest.Builderavoiding the need to create one manually viaListFindingsRequest.builder()- Parameters:
listFindingsRequest- AConsumerthat will call methods onListFindingsRequest.Builderto create a request.- Returns:
- Result of the ListFindings operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindings
default ListFindingsResponse listFindings() throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
- Returns:
- Result of the ListFindings operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listFindings(ListFindingsRequest), AWS API Documentation
-
listFindingsPaginator
default ListFindingsIterable listFindingsPaginator() throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
This is a variant of
listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListFindingsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listFindingsPaginator(ListFindingsRequest), AWS API Documentation
-
listFindingsPaginator
default ListFindingsIterable listFindingsPaginator(ListFindingsRequest listFindingsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
This is a variant of
listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListFindingsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)operation.- Parameters:
listFindingsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindingsPaginator
default ListFindingsIterable listFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
This is a variant of
listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListFindingsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)operation.This is a convenience which creates an instance of the
ListFindingsRequest.Builderavoiding the need to create one manually viaListFindingsRequest.builder()- Parameters:
listFindingsRequest- AConsumerthat will call methods onListFindingsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRulesPackages
default ListRulesPackagesResponse listRulesPackages(ListRulesPackagesRequest listRulesPackagesRequest) throws InternalException, InvalidInputException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorException
Lists all available Amazon Inspector rules packages.
- Parameters:
listRulesPackagesRequest-- Returns:
- Result of the ListRulesPackages operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRulesPackages
default ListRulesPackagesResponse listRulesPackages(Consumer<ListRulesPackagesRequest.Builder> listRulesPackagesRequest) throws InternalException, InvalidInputException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorException
Lists all available Amazon Inspector rules packages.
This is a convenience which creates an instance of the
ListRulesPackagesRequest.Builderavoiding the need to create one manually viaListRulesPackagesRequest.builder()- Parameters:
listRulesPackagesRequest- AConsumerthat will call methods onListRulesPackagesRequest.Builderto create a request.- Returns:
- Result of the ListRulesPackages operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRulesPackages
default ListRulesPackagesResponse listRulesPackages() throws InternalException, InvalidInputException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorException
Lists all available Amazon Inspector rules packages.
- Returns:
- Result of the ListRulesPackages operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listRulesPackages(ListRulesPackagesRequest), AWS API Documentation
-
listRulesPackagesPaginator
default ListRulesPackagesIterable listRulesPackagesPaginator() throws InternalException, InvalidInputException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorException
Lists all available Amazon Inspector rules packages.
This is a variant of
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client.listRulesPackagesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client .listRulesPackagesPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListRulesPackagesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client.listRulesPackagesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listRulesPackagesPaginator(ListRulesPackagesRequest), AWS API Documentation
-
listRulesPackagesPaginator
default ListRulesPackagesIterable listRulesPackagesPaginator(ListRulesPackagesRequest listRulesPackagesRequest) throws InternalException, InvalidInputException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorException
Lists all available Amazon Inspector rules packages.
This is a variant of
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client.listRulesPackagesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client .listRulesPackagesPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListRulesPackagesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client.listRulesPackagesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)operation.- Parameters:
listRulesPackagesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRulesPackagesPaginator
default ListRulesPackagesIterable listRulesPackagesPaginator(Consumer<ListRulesPackagesRequest.Builder> listRulesPackagesRequest) throws InternalException, InvalidInputException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorException
Lists all available Amazon Inspector rules packages.
This is a variant of
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client.listRulesPackagesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client .listRulesPackagesPaginator(request); for (software.amazon.awssdk.services.inspector.model.ListRulesPackagesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client.listRulesPackagesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)operation.This is a convenience which creates an instance of the
ListRulesPackagesRequest.Builderavoiding the need to create one manually viaListRulesPackagesRequest.builder()- Parameters:
listRulesPackagesRequest- AConsumerthat will call methods onListRulesPackagesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists all tags associated with an assessment template.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists all tags associated with an assessment template.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
previewAgents
default PreviewAgentsResponse previewAgents(PreviewAgentsRequest previewAgentsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, InvalidCrossAccountRoleException, AwsServiceException, SdkClientException, InspectorException
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
- Parameters:
previewAgentsRequest-- Returns:
- Result of the PreviewAgents operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.InvalidCrossAccountRoleException- Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
previewAgents
default PreviewAgentsResponse previewAgents(Consumer<PreviewAgentsRequest.Builder> previewAgentsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, InvalidCrossAccountRoleException, AwsServiceException, SdkClientException, InspectorException
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
This is a convenience which creates an instance of the
PreviewAgentsRequest.Builderavoiding the need to create one manually viaPreviewAgentsRequest.builder()- Parameters:
previewAgentsRequest- AConsumerthat will call methods onPreviewAgentsRequest.Builderto create a request.- Returns:
- Result of the PreviewAgents operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.InvalidCrossAccountRoleException- Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
previewAgentsPaginator
default PreviewAgentsIterable previewAgentsPaginator(PreviewAgentsRequest previewAgentsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, InvalidCrossAccountRoleException, AwsServiceException, SdkClientException, InspectorException
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
This is a variant of
previewAgents(software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.PreviewAgentsIterable responses = client.previewAgentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.PreviewAgentsIterable responses = client.previewAgentsPaginator(request); for (software.amazon.awssdk.services.inspector.model.PreviewAgentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.PreviewAgentsIterable responses = client.previewAgentsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
previewAgents(software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest)operation.- Parameters:
previewAgentsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.InvalidCrossAccountRoleException- Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
previewAgentsPaginator
default PreviewAgentsIterable previewAgentsPaginator(Consumer<PreviewAgentsRequest.Builder> previewAgentsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, InvalidCrossAccountRoleException, AwsServiceException, SdkClientException, InspectorException
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
This is a variant of
previewAgents(software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.inspector.paginators.PreviewAgentsIterable responses = client.previewAgentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.inspector.paginators.PreviewAgentsIterable responses = client.previewAgentsPaginator(request); for (software.amazon.awssdk.services.inspector.model.PreviewAgentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.inspector.paginators.PreviewAgentsIterable responses = client.previewAgentsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
previewAgents(software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest)operation.This is a convenience which creates an instance of the
PreviewAgentsRequest.Builderavoiding the need to create one manually viaPreviewAgentsRequest.builder()- Parameters:
previewAgentsRequest- AConsumerthat will call methods onPreviewAgentsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.InvalidCrossAccountRoleException- Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
registerCrossAccountAccessRole
default RegisterCrossAccountAccessRoleResponse registerCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest registerCrossAccountAccessRoleRequest) throws InternalException, InvalidInputException, AccessDeniedException, InvalidCrossAccountRoleException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.
- Parameters:
registerCrossAccountAccessRoleRequest-- Returns:
- Result of the RegisterCrossAccountAccessRole operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.InvalidCrossAccountRoleException- Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
registerCrossAccountAccessRole
default RegisterCrossAccountAccessRoleResponse registerCrossAccountAccessRole(Consumer<RegisterCrossAccountAccessRoleRequest.Builder> registerCrossAccountAccessRoleRequest) throws InternalException, InvalidInputException, AccessDeniedException, InvalidCrossAccountRoleException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.
This is a convenience which creates an instance of the
RegisterCrossAccountAccessRoleRequest.Builderavoiding the need to create one manually viaRegisterCrossAccountAccessRoleRequest.builder()- Parameters:
registerCrossAccountAccessRoleRequest- AConsumerthat will call methods onRegisterCrossAccountAccessRoleRequest.Builderto create a request.- Returns:
- Result of the RegisterCrossAccountAccessRole operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.InvalidCrossAccountRoleException- Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
removeAttributesFromFindings
default RemoveAttributesFromFindingsResponse removeAttributesFromFindings(RemoveAttributesFromFindingsRequest removeAttributesFromFindingsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, 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.
- Parameters:
removeAttributesFromFindingsRequest-- Returns:
- Result of the RemoveAttributesFromFindings operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
removeAttributesFromFindings
default RemoveAttributesFromFindingsResponse removeAttributesFromFindings(Consumer<RemoveAttributesFromFindingsRequest.Builder> removeAttributesFromFindingsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, 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.
This is a convenience which creates an instance of the
RemoveAttributesFromFindingsRequest.Builderavoiding the need to create one manually viaRemoveAttributesFromFindingsRequest.builder()- Parameters:
removeAttributesFromFindingsRequest- AConsumerthat will call methods onRemoveAttributesFromFindingsRequest.Builderto create a request.- Returns:
- Result of the RemoveAttributesFromFindings operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
setTagsForResource
default SetTagsForResourceResponse setTagsForResource(SetTagsForResourceRequest setTagsForResourceRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.
- Parameters:
setTagsForResourceRequest-- Returns:
- Result of the SetTagsForResource operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
setTagsForResource
default SetTagsForResourceResponse setTagsForResource(Consumer<SetTagsForResourceRequest.Builder> setTagsForResourceRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.
This is a convenience which creates an instance of the
SetTagsForResourceRequest.Builderavoiding the need to create one manually viaSetTagsForResourceRequest.builder()- Parameters:
setTagsForResourceRequest- AConsumerthat will call methods onSetTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the SetTagsForResource operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
startAssessmentRun
default StartAssessmentRunResponse startAssessmentRun(StartAssessmentRunRequest startAssessmentRunRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, NoSuchEntityException, InvalidCrossAccountRoleException, AgentsAlreadyRunningAssessmentException, ServiceTemporarilyUnavailableException, AwsServiceException, 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.
- Parameters:
startAssessmentRunRequest-- Returns:
- Result of the StartAssessmentRun operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException- The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.InvalidCrossAccountRoleException- Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.AgentsAlreadyRunningAssessmentException- You started an assessment run, but one of the instances is already participating in another assessment run.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
startAssessmentRun
default StartAssessmentRunResponse startAssessmentRun(Consumer<StartAssessmentRunRequest.Builder> startAssessmentRunRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, NoSuchEntityException, InvalidCrossAccountRoleException, AgentsAlreadyRunningAssessmentException, ServiceTemporarilyUnavailableException, AwsServiceException, 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.
This is a convenience which creates an instance of the
StartAssessmentRunRequest.Builderavoiding the need to create one manually viaStartAssessmentRunRequest.builder()- Parameters:
startAssessmentRunRequest- AConsumerthat will call methods onStartAssessmentRunRequest.Builderto create a request.- Returns:
- Result of the StartAssessmentRun operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException- The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.InvalidCrossAccountRoleException- Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.AgentsAlreadyRunningAssessmentException- You started an assessment run, but one of the instances is already participating in another assessment run.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
stopAssessmentRun
default StopAssessmentRunResponse stopAssessmentRun(StopAssessmentRunRequest stopAssessmentRunRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Stops the assessment run that is specified by the ARN of the assessment run.
- Parameters:
stopAssessmentRunRequest-- Returns:
- Result of the StopAssessmentRun operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
stopAssessmentRun
default StopAssessmentRunResponse stopAssessmentRun(Consumer<StopAssessmentRunRequest.Builder> stopAssessmentRunRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Stops the assessment run that is specified by the ARN of the assessment run.
This is a convenience which creates an instance of the
StopAssessmentRunRequest.Builderavoiding the need to create one manually viaStopAssessmentRunRequest.builder()- Parameters:
stopAssessmentRunRequest- AConsumerthat will call methods onStopAssessmentRunRequest.Builderto create a request.- Returns:
- Result of the StopAssessmentRun operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
subscribeToEvent
default SubscribeToEventResponse subscribeToEvent(SubscribeToEventRequest subscribeToEventRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
- Parameters:
subscribeToEventRequest-- Returns:
- Result of the SubscribeToEvent operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException- The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
subscribeToEvent
default SubscribeToEventResponse subscribeToEvent(Consumer<SubscribeToEventRequest.Builder> subscribeToEventRequest) throws InternalException, InvalidInputException, LimitExceededException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
This is a convenience which creates an instance of the
SubscribeToEventRequest.Builderavoiding the need to create one manually viaSubscribeToEventRequest.builder()- Parameters:
subscribeToEventRequest- AConsumerthat will call methods onSubscribeToEventRequest.Builderto create a request.- Returns:
- Result of the SubscribeToEvent operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException- The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
unsubscribeFromEvent
default UnsubscribeFromEventResponse unsubscribeFromEvent(UnsubscribeFromEventRequest unsubscribeFromEventRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
- Parameters:
unsubscribeFromEventRequest-- Returns:
- Result of the UnsubscribeFromEvent operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
unsubscribeFromEvent
default UnsubscribeFromEventResponse unsubscribeFromEvent(Consumer<UnsubscribeFromEventRequest.Builder> unsubscribeFromEventRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
This is a convenience which creates an instance of the
UnsubscribeFromEventRequest.Builderavoiding the need to create one manually viaUnsubscribeFromEventRequest.builder()- Parameters:
unsubscribeFromEventRequest- AConsumerthat will call methods onUnsubscribeFromEventRequest.Builderto create a request.- Returns:
- Result of the UnsubscribeFromEvent operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateAssessmentTarget
default UpdateAssessmentTargetResponse updateAssessmentTarget(UpdateAssessmentTargetRequest updateAssessmentTargetRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Updates the assessment target that is specified by the ARN of the assessment target.
If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
- Parameters:
updateAssessmentTargetRequest-- Returns:
- Result of the UpdateAssessmentTarget operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateAssessmentTarget
default UpdateAssessmentTargetResponse updateAssessmentTarget(Consumer<UpdateAssessmentTargetRequest.Builder> updateAssessmentTargetRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Updates the assessment target that is specified by the ARN of the assessment target.
If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
This is a convenience which creates an instance of the
UpdateAssessmentTargetRequest.Builderavoiding the need to create one manually viaUpdateAssessmentTargetRequest.builder()- Parameters:
updateAssessmentTargetRequest- AConsumerthat will call methods onUpdateAssessmentTargetRequest.Builderto create a request.- Returns:
- Result of the UpdateAssessmentTarget operation returned by the service.
- Throws:
InternalException- Internal server error.InvalidInputException- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException- You do not have required permissions to access the requested resource.NoSuchEntityException- The request was rejected because it referenced an entity that does not exist. The error code describes the entity.ServiceTemporarilyUnavailableException- The serice is temporary unavailable.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.InspectorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static InspectorClient create()
Create aInspectorClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static InspectorClientBuilder builder()
Create a builder that can be used to configure and create aInspectorClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default InspectorServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-