@Generated(value="software.amazon.awssdk:codegen") public interface InspectorClient extends SdkClient
builder()
method.
Amazon Inspector enables you to analyze the behavior of your AWS resources and to identify potential security issues. For more information, see Amazon Inspector User Guide.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
default AddAttributesToFindingsResponse |
addAttributesToFindings(AddAttributesToFindingsRequest addAttributesToFindingsRequest)
Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
|
default AddAttributesToFindingsResponse |
addAttributesToFindings(Consumer<AddAttributesToFindingsRequest.Builder> addAttributesToFindingsRequest)
Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
|
static InspectorClientBuilder |
builder()
Create a builder that can be used to configure and create a
InspectorClient . |
static InspectorClient |
create()
Create a
InspectorClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CreateAssessmentTargetResponse |
createAssessmentTarget(Consumer<CreateAssessmentTargetRequest.Builder> createAssessmentTargetRequest)
Creates a new assessment target using the ARN of the resource group that is generated by
CreateResourceGroup.
|
default CreateAssessmentTargetResponse |
createAssessmentTarget(CreateAssessmentTargetRequest createAssessmentTargetRequest)
Creates a new assessment target using the ARN of the resource group that is generated by
CreateResourceGroup.
|
default CreateAssessmentTemplateResponse |
createAssessmentTemplate(Consumer<CreateAssessmentTemplateRequest.Builder> createAssessmentTemplateRequest)
Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.
|
default CreateAssessmentTemplateResponse |
createAssessmentTemplate(CreateAssessmentTemplateRequest createAssessmentTemplateRequest)
Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.
|
default CreateExclusionsPreviewResponse |
createExclusionsPreview(Consumer<CreateExclusionsPreviewRequest.Builder> createExclusionsPreviewRequest)
Starts the generation of an exclusions preview for the specified assessment template.
|
default CreateExclusionsPreviewResponse |
createExclusionsPreview(CreateExclusionsPreviewRequest createExclusionsPreviewRequest)
Starts the generation of an exclusions preview for the specified assessment template.
|
default CreateResourceGroupResponse |
createResourceGroup(Consumer<CreateResourceGroupRequest.Builder> createResourceGroupRequest)
Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2
instances to be included in an Amazon Inspector assessment target.
|
default CreateResourceGroupResponse |
createResourceGroup(CreateResourceGroupRequest createResourceGroupRequest)
Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2
instances to be included in an Amazon Inspector assessment target.
|
default DeleteAssessmentRunResponse |
deleteAssessmentRun(Consumer<DeleteAssessmentRunRequest.Builder> deleteAssessmentRunRequest)
Deletes the assessment run that is specified by the ARN of the assessment run.
|
default DeleteAssessmentRunResponse |
deleteAssessmentRun(DeleteAssessmentRunRequest deleteAssessmentRunRequest)
Deletes the assessment run that is specified by the ARN of the assessment run.
|
default DeleteAssessmentTargetResponse |
deleteAssessmentTarget(Consumer<DeleteAssessmentTargetRequest.Builder> deleteAssessmentTargetRequest)
Deletes the assessment target that is specified by the ARN of the assessment target.
|
default DeleteAssessmentTargetResponse |
deleteAssessmentTarget(DeleteAssessmentTargetRequest deleteAssessmentTargetRequest)
Deletes the assessment target that is specified by the ARN of the assessment target.
|
default DeleteAssessmentTemplateResponse |
deleteAssessmentTemplate(Consumer<DeleteAssessmentTemplateRequest.Builder> deleteAssessmentTemplateRequest)
Deletes the assessment template that is specified by the ARN of the assessment template.
|
default DeleteAssessmentTemplateResponse |
deleteAssessmentTemplate(DeleteAssessmentTemplateRequest deleteAssessmentTemplateRequest)
Deletes the assessment template that is specified by the ARN of the assessment template.
|
default DescribeAssessmentRunsResponse |
describeAssessmentRuns(Consumer<DescribeAssessmentRunsRequest.Builder> describeAssessmentRunsRequest)
Describes the assessment runs that are specified by the ARNs of the assessment runs.
|
default DescribeAssessmentRunsResponse |
describeAssessmentRuns(DescribeAssessmentRunsRequest describeAssessmentRunsRequest)
Describes the assessment runs that are specified by the ARNs of the assessment runs.
|
default DescribeAssessmentTargetsResponse |
describeAssessmentTargets(Consumer<DescribeAssessmentTargetsRequest.Builder> describeAssessmentTargetsRequest)
Describes the assessment targets that are specified by the ARNs of the assessment targets.
|
default DescribeAssessmentTargetsResponse |
describeAssessmentTargets(DescribeAssessmentTargetsRequest describeAssessmentTargetsRequest)
Describes the assessment targets that are specified by the ARNs of the assessment targets.
|
default DescribeAssessmentTemplatesResponse |
describeAssessmentTemplates(Consumer<DescribeAssessmentTemplatesRequest.Builder> describeAssessmentTemplatesRequest)
Describes the assessment templates that are specified by the ARNs of the assessment templates.
|
default DescribeAssessmentTemplatesResponse |
describeAssessmentTemplates(DescribeAssessmentTemplatesRequest describeAssessmentTemplatesRequest)
Describes the assessment templates that are specified by the ARNs of the assessment templates.
|
default DescribeCrossAccountAccessRoleResponse |
describeCrossAccountAccessRole()
Describes the IAM role that enables Amazon Inspector to access your AWS account.
|
default DescribeCrossAccountAccessRoleResponse |
describeCrossAccountAccessRole(Consumer<DescribeCrossAccountAccessRoleRequest.Builder> describeCrossAccountAccessRoleRequest)
Describes the IAM role that enables Amazon Inspector to access your AWS account.
|
default DescribeCrossAccountAccessRoleResponse |
describeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest describeCrossAccountAccessRoleRequest)
Describes the IAM role that enables Amazon Inspector to access your AWS account.
|
default DescribeExclusionsResponse |
describeExclusions(Consumer<DescribeExclusionsRequest.Builder> describeExclusionsRequest)
Describes the exclusions that are specified by the exclusions' ARNs.
|
default DescribeExclusionsResponse |
describeExclusions(DescribeExclusionsRequest describeExclusionsRequest)
Describes the exclusions that are specified by the exclusions' ARNs.
|
default DescribeFindingsResponse |
describeFindings(Consumer<DescribeFindingsRequest.Builder> describeFindingsRequest)
Describes the findings that are specified by the ARNs of the findings.
|
default DescribeFindingsResponse |
describeFindings(DescribeFindingsRequest describeFindingsRequest)
Describes the findings that are specified by the ARNs of the findings.
|
default DescribeResourceGroupsResponse |
describeResourceGroups(Consumer<DescribeResourceGroupsRequest.Builder> describeResourceGroupsRequest)
Describes the resource groups that are specified by the ARNs of the resource groups.
|
default DescribeResourceGroupsResponse |
describeResourceGroups(DescribeResourceGroupsRequest describeResourceGroupsRequest)
Describes the resource groups that are specified by the ARNs of the resource groups.
|
default DescribeRulesPackagesResponse |
describeRulesPackages(Consumer<DescribeRulesPackagesRequest.Builder> describeRulesPackagesRequest)
Describes the rules packages that are specified by the ARNs of the rules packages.
|
default DescribeRulesPackagesResponse |
describeRulesPackages(DescribeRulesPackagesRequest describeRulesPackagesRequest)
Describes the rules packages that are specified by the ARNs of the rules packages.
|
default GetAssessmentReportResponse |
getAssessmentReport(Consumer<GetAssessmentReportRequest.Builder> getAssessmentReportRequest)
Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.
|
default GetAssessmentReportResponse |
getAssessmentReport(GetAssessmentReportRequest getAssessmentReportRequest)
Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.
|
default GetExclusionsPreviewResponse |
getExclusionsPreview(Consumer<GetExclusionsPreviewRequest.Builder> getExclusionsPreviewRequest)
Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token.
|
default GetExclusionsPreviewResponse |
getExclusionsPreview(GetExclusionsPreviewRequest getExclusionsPreviewRequest)
Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token.
|
default GetExclusionsPreviewIterable |
getExclusionsPreviewPaginator(Consumer<GetExclusionsPreviewRequest.Builder> getExclusionsPreviewRequest)
Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token.
|
default GetExclusionsPreviewIterable |
getExclusionsPreviewPaginator(GetExclusionsPreviewRequest getExclusionsPreviewRequest)
Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token.
|
default GetTelemetryMetadataResponse |
getTelemetryMetadata(Consumer<GetTelemetryMetadataRequest.Builder> getTelemetryMetadataRequest)
Information about the data that is collected for the specified assessment run.
|
default GetTelemetryMetadataResponse |
getTelemetryMetadata(GetTelemetryMetadataRequest getTelemetryMetadataRequest)
Information about the data that is collected for the specified assessment run.
|
default ListAssessmentRunAgentsResponse |
listAssessmentRunAgents(Consumer<ListAssessmentRunAgentsRequest.Builder> listAssessmentRunAgentsRequest)
Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
|
default ListAssessmentRunAgentsResponse |
listAssessmentRunAgents(ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest)
Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
|
default ListAssessmentRunAgentsIterable |
listAssessmentRunAgentsPaginator(Consumer<ListAssessmentRunAgentsRequest.Builder> listAssessmentRunAgentsRequest)
Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
|
default ListAssessmentRunAgentsIterable |
listAssessmentRunAgentsPaginator(ListAssessmentRunAgentsRequest listAssessmentRunAgentsRequest)
Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
|
default ListAssessmentRunsResponse |
listAssessmentRuns()
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the
assessment templates.
|
default ListAssessmentRunsResponse |
listAssessmentRuns(Consumer<ListAssessmentRunsRequest.Builder> listAssessmentRunsRequest)
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the
assessment templates.
|
default ListAssessmentRunsResponse |
listAssessmentRuns(ListAssessmentRunsRequest listAssessmentRunsRequest)
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the
assessment templates.
|
default ListAssessmentRunsIterable |
listAssessmentRunsPaginator()
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the
assessment templates.
|
default ListAssessmentRunsIterable |
listAssessmentRunsPaginator(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 ListAssessmentRunsIterable |
listAssessmentRunsPaginator(ListAssessmentRunsRequest listAssessmentRunsRequest)
Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the
assessment templates.
|
default ListAssessmentTargetsResponse |
listAssessmentTargets()
Lists the ARNs of the assessment targets within this AWS account.
|
default ListAssessmentTargetsResponse |
listAssessmentTargets(Consumer<ListAssessmentTargetsRequest.Builder> listAssessmentTargetsRequest)
Lists the ARNs of the assessment targets within this AWS account.
|
default ListAssessmentTargetsResponse |
listAssessmentTargets(ListAssessmentTargetsRequest listAssessmentTargetsRequest)
Lists the ARNs of the assessment targets within this AWS account.
|
default ListAssessmentTargetsIterable |
listAssessmentTargetsPaginator()
Lists the ARNs of the assessment targets within this AWS account.
|
default ListAssessmentTargetsIterable |
listAssessmentTargetsPaginator(Consumer<ListAssessmentTargetsRequest.Builder> listAssessmentTargetsRequest)
Lists the ARNs of the assessment targets within this AWS account.
|
default ListAssessmentTargetsIterable |
listAssessmentTargetsPaginator(ListAssessmentTargetsRequest listAssessmentTargetsRequest)
Lists the ARNs of the assessment targets within this AWS account.
|
default ListAssessmentTemplatesResponse |
listAssessmentTemplates()
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the
assessment targets.
|
default ListAssessmentTemplatesResponse |
listAssessmentTemplates(Consumer<ListAssessmentTemplatesRequest.Builder> listAssessmentTemplatesRequest)
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the
assessment targets.
|
default ListAssessmentTemplatesResponse |
listAssessmentTemplates(ListAssessmentTemplatesRequest listAssessmentTemplatesRequest)
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the
assessment targets.
|
default ListAssessmentTemplatesIterable |
listAssessmentTemplatesPaginator()
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the
assessment targets.
|
default ListAssessmentTemplatesIterable |
listAssessmentTemplatesPaginator(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 ListAssessmentTemplatesIterable |
listAssessmentTemplatesPaginator(ListAssessmentTemplatesRequest listAssessmentTemplatesRequest)
Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the
assessment targets.
|
default ListEventSubscriptionsResponse |
listEventSubscriptions()
Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment
template.
|
default ListEventSubscriptionsResponse |
listEventSubscriptions(Consumer<ListEventSubscriptionsRequest.Builder> listEventSubscriptionsRequest)
Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment
template.
|
default ListEventSubscriptionsResponse |
listEventSubscriptions(ListEventSubscriptionsRequest listEventSubscriptionsRequest)
Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment
template.
|
default ListEventSubscriptionsIterable |
listEventSubscriptionsPaginator()
Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment
template.
|
default ListEventSubscriptionsIterable |
listEventSubscriptionsPaginator(Consumer<ListEventSubscriptionsRequest.Builder> listEventSubscriptionsRequest)
Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment
template.
|
default ListEventSubscriptionsIterable |
listEventSubscriptionsPaginator(ListEventSubscriptionsRequest listEventSubscriptionsRequest)
Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment
template.
|
default ListExclusionsResponse |
listExclusions(Consumer<ListExclusionsRequest.Builder> listExclusionsRequest)
List exclusions that are generated by the assessment run.
|
default ListExclusionsResponse |
listExclusions(ListExclusionsRequest listExclusionsRequest)
List exclusions that are generated by the assessment run.
|
default ListExclusionsIterable |
listExclusionsPaginator(Consumer<ListExclusionsRequest.Builder> listExclusionsRequest)
List exclusions that are generated by the assessment run.
|
default ListExclusionsIterable |
listExclusionsPaginator(ListExclusionsRequest listExclusionsRequest)
List exclusions that are generated by the assessment run.
|
default ListFindingsResponse |
listFindings()
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
|
default ListFindingsResponse |
listFindings(Consumer<ListFindingsRequest.Builder> listFindingsRequest)
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
|
default ListFindingsResponse |
listFindings(ListFindingsRequest listFindingsRequest)
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
|
default ListFindingsIterable |
listFindingsPaginator()
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
|
default ListFindingsIterable |
listFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest)
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
|
default ListFindingsIterable |
listFindingsPaginator(ListFindingsRequest listFindingsRequest)
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
|
default ListRulesPackagesResponse |
listRulesPackages()
Lists all available Amazon Inspector rules packages.
|
default ListRulesPackagesResponse |
listRulesPackages(Consumer<ListRulesPackagesRequest.Builder> listRulesPackagesRequest)
Lists all available Amazon Inspector rules packages.
|
default ListRulesPackagesResponse |
listRulesPackages(ListRulesPackagesRequest listRulesPackagesRequest)
Lists all available Amazon Inspector rules packages.
|
default ListRulesPackagesIterable |
listRulesPackagesPaginator()
Lists all available Amazon Inspector rules packages.
|
default ListRulesPackagesIterable |
listRulesPackagesPaginator(Consumer<ListRulesPackagesRequest.Builder> listRulesPackagesRequest)
Lists all available Amazon Inspector rules packages.
|
default ListRulesPackagesIterable |
listRulesPackagesPaginator(ListRulesPackagesRequest listRulesPackagesRequest)
Lists all available Amazon Inspector rules packages.
|
default ListTagsForResourceResponse |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Lists all tags associated with an assessment template.
|
default ListTagsForResourceResponse |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists all tags associated with an assessment template.
|
default PreviewAgentsResponse |
previewAgents(Consumer<PreviewAgentsRequest.Builder> previewAgentsRequest)
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
|
default PreviewAgentsResponse |
previewAgents(PreviewAgentsRequest previewAgentsRequest)
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
|
default PreviewAgentsIterable |
previewAgentsPaginator(Consumer<PreviewAgentsRequest.Builder> previewAgentsRequest)
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
|
default PreviewAgentsIterable |
previewAgentsPaginator(PreviewAgentsRequest previewAgentsRequest)
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
|
default RegisterCrossAccountAccessRoleResponse |
registerCrossAccountAccessRole(Consumer<RegisterCrossAccountAccessRoleRequest.Builder> registerCrossAccountAccessRoleRequest)
Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security
assessments.
|
default RegisterCrossAccountAccessRoleResponse |
registerCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest registerCrossAccountAccessRoleRequest)
Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security
assessments.
|
default RemoveAttributesFromFindingsResponse |
removeAttributesFromFindings(Consumer<RemoveAttributesFromFindingsRequest.Builder> removeAttributesFromFindingsRequest)
Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings
where an attribute with the specified key exists.
|
default RemoveAttributesFromFindingsResponse |
removeAttributesFromFindings(RemoveAttributesFromFindingsRequest removeAttributesFromFindingsRequest)
Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings
where an attribute with the specified key exists.
|
static ServiceMetadata |
serviceMetadata() |
default SetTagsForResourceResponse |
setTagsForResource(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 SetTagsForResourceResponse |
setTagsForResource(SetTagsForResourceRequest setTagsForResourceRequest)
Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment
template.
|
default StartAssessmentRunResponse |
startAssessmentRun(Consumer<StartAssessmentRunRequest.Builder> startAssessmentRunRequest)
Starts the assessment run specified by the ARN of the assessment template.
|
default StartAssessmentRunResponse |
startAssessmentRun(StartAssessmentRunRequest startAssessmentRunRequest)
Starts the assessment run specified by the ARN of the assessment template.
|
default StopAssessmentRunResponse |
stopAssessmentRun(Consumer<StopAssessmentRunRequest.Builder> stopAssessmentRunRequest)
Stops the assessment run that is specified by the ARN of the assessment run.
|
default StopAssessmentRunResponse |
stopAssessmentRun(StopAssessmentRunRequest stopAssessmentRunRequest)
Stops the assessment run that is specified by the ARN of the assessment run.
|
default SubscribeToEventResponse |
subscribeToEvent(Consumer<SubscribeToEventRequest.Builder> subscribeToEventRequest)
Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to
a specified SNS topic.
|
default SubscribeToEventResponse |
subscribeToEvent(SubscribeToEventRequest subscribeToEventRequest)
Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to
a specified SNS topic.
|
default UnsubscribeFromEventResponse |
unsubscribeFromEvent(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 UnsubscribeFromEventResponse |
unsubscribeFromEvent(UnsubscribeFromEventRequest unsubscribeFromEventRequest)
Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to
a specified SNS topic.
|
default UpdateAssessmentTargetResponse |
updateAssessmentTarget(Consumer<UpdateAssessmentTargetRequest.Builder> updateAssessmentTargetRequest)
Updates the assessment target that is specified by the ARN of the assessment target.
|
default UpdateAssessmentTargetResponse |
updateAssessmentTarget(UpdateAssessmentTargetRequest updateAssessmentTargetRequest)
Updates the assessment target that is specified by the ARN of the assessment target.
|
serviceName
close
static final String SERVICE_NAME
static InspectorClient create()
InspectorClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static InspectorClientBuilder builder()
InspectorClient
.default AddAttributesToFindingsResponse addAttributesToFindings(AddAttributesToFindingsRequest addAttributesToFindingsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, ServiceTemporarilyUnavailableException, AwsServiceException, SdkClientException, InspectorException
Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
addAttributesToFindingsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.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
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.Builder
avoiding
the need to create one manually via AddAttributesToFindingsRequest.builder()
addAttributesToFindingsRequest
- A Consumer
that will call methods on AddAttributesToFindingsRequest.Builder
to create a
request.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
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.
createAssessmentTargetRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.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
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.Builder
avoiding the
need to create one manually via CreateAssessmentTargetRequest.builder()
createAssessmentTargetRequest
- A Consumer
that will call methods on CreateAssessmentTargetRequest.Builder
to create a
request.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
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.
createAssessmentTemplateRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.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
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.Builder
avoiding
the need to create one manually via CreateAssessmentTemplateRequest.builder()
createAssessmentTemplateRequest
- A Consumer
that will call methods on CreateAssessmentTemplateRequest.Builder
to create a
request.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
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.
createExclusionsPreviewRequest
- 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
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.Builder
avoiding
the need to create one manually via CreateExclusionsPreviewRequest.builder()
createExclusionsPreviewRequest
- A Consumer
that will call methods on CreateExclusionsPreviewRequest.Builder
to create a
request.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
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.
createResourceGroupRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.AccessDeniedException
- You do not have required permissions to access the requested resource.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
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.Builder
avoiding the
need to create one manually via CreateResourceGroupRequest.builder()
createResourceGroupRequest
- A Consumer
that will call methods on CreateResourceGroupRequest.Builder
to create a
request.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
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.
deleteAssessmentRunRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AssessmentRunInProgressException
- You cannot perform a specified action if an assessment run is currently in progress.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.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
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.Builder
avoiding the
need to create one manually via DeleteAssessmentRunRequest.builder()
deleteAssessmentRunRequest
- A Consumer
that will call methods on DeleteAssessmentRunRequest.Builder
to create a
request.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
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.
deleteAssessmentTargetRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AssessmentRunInProgressException
- You cannot perform a specified action if an assessment run is currently in progress.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.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
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.Builder
avoiding the
need to create one manually via DeleteAssessmentTargetRequest.builder()
deleteAssessmentTargetRequest
- A Consumer
that will call methods on DeleteAssessmentTargetRequest.Builder
to create a
request.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
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.
deleteAssessmentTemplateRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AssessmentRunInProgressException
- You cannot perform a specified action if an assessment run is currently in progress.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.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
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.Builder
avoiding
the need to create one manually via DeleteAssessmentTemplateRequest.builder()
deleteAssessmentTemplateRequest
- A Consumer
that will call methods on DeleteAssessmentTemplateRequest.Builder
to create a
request.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
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.
describeAssessmentRunsRequest
- 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
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.Builder
avoiding the
need to create one manually via DescribeAssessmentRunsRequest.builder()
describeAssessmentRunsRequest
- A Consumer
that will call methods on DescribeAssessmentRunsRequest.Builder
to create a
request.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
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.
describeAssessmentTargetsRequest
- 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
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.Builder
avoiding
the need to create one manually via DescribeAssessmentTargetsRequest.builder()
describeAssessmentTargetsRequest
- A Consumer
that will call methods on DescribeAssessmentTargetsRequest.Builder
to create a
request.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
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.
describeAssessmentTemplatesRequest
- 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
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.Builder
avoiding the need to create one manually via DescribeAssessmentTemplatesRequest.builder()
describeAssessmentTemplatesRequest
- A Consumer
that will call methods on DescribeAssessmentTemplatesRequest.Builder
to create
a request.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
default DescribeCrossAccountAccessRoleResponse describeCrossAccountAccessRole() throws InternalException, AwsServiceException, SdkClientException, InspectorException
Describes the IAM role that enables Amazon Inspector to access your AWS account.
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
describeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest)
,
AWS API Documentationdefault DescribeCrossAccountAccessRoleResponse describeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest describeCrossAccountAccessRoleRequest) throws InternalException, AwsServiceException, SdkClientException, InspectorException
Describes the IAM role that enables Amazon Inspector to access your AWS account.
describeCrossAccountAccessRoleRequest
- 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
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.Builder
avoiding the need to create one manually via DescribeCrossAccountAccessRoleRequest.builder()
describeCrossAccountAccessRoleRequest
- A Consumer
that will call methods on DescribeCrossAccountAccessRoleRequest.Builder
to
create a request.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
default DescribeExclusionsResponse describeExclusions(DescribeExclusionsRequest describeExclusionsRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the exclusions that are specified by the exclusions' ARNs.
describeExclusionsRequest
- 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
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.Builder
avoiding the
need to create one manually via DescribeExclusionsRequest.builder()
describeExclusionsRequest
- A Consumer
that will call methods on DescribeExclusionsRequest.Builder
to create a
request.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
default DescribeFindingsResponse describeFindings(DescribeFindingsRequest describeFindingsRequest) throws InternalException, InvalidInputException, AwsServiceException, SdkClientException, InspectorException
Describes the findings that are specified by the ARNs of the findings.
describeFindingsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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.Builder
avoiding the need
to create one manually via DescribeFindingsRequest.builder()
describeFindingsRequest
- A Consumer
that will call methods on DescribeFindingsRequest.Builder
to create a request.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
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.
describeResourceGroupsRequest
- 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
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.Builder
avoiding the
need to create one manually via DescribeResourceGroupsRequest.builder()
describeResourceGroupsRequest
- A Consumer
that will call methods on DescribeResourceGroupsRequest.Builder
to create a
request.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
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.
describeRulesPackagesRequest
- 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
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.Builder
avoiding the
need to create one manually via DescribeRulesPackagesRequest.builder()
describeRulesPackagesRequest
- A Consumer
that will call methods on DescribeRulesPackagesRequest.Builder
to create a
request.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
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.
getAssessmentReportRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.AssessmentRunInProgressException
- You cannot perform a specified action if an assessment run is currently in progress.UnsupportedFeatureException
- Used by the GetAssessmentReport API. The request was rejected because you tried to generate a
report for an assessment run that existed before reporting was supported in Amazon Inspector. You can
only generate reports for assessment runs that took place or will take place after generating reports in
Amazon Inspector became available.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
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.Builder
avoiding the
need to create one manually via GetAssessmentReportRequest.builder()
getAssessmentReportRequest
- A Consumer
that will call methods on GetAssessmentReportRequest.Builder
to create a
request.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
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.
getExclusionsPreviewRequest
- 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
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.Builder
avoiding the
need to create one manually via GetExclusionsPreviewRequest.builder()
getExclusionsPreviewRequest
- A Consumer
that will call methods on GetExclusionsPreviewRequest.Builder
to create a
request.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
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
software.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewIterable responses = client.getExclusionsPreviewPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewIterable responses = client.getExclusionsPreviewPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getExclusionsPreview(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest)
operation.
getExclusionsPreviewRequest
- 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
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
software.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewIterable responses = client.getExclusionsPreviewPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.GetExclusionsPreviewIterable responses = client.getExclusionsPreviewPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getExclusionsPreview(software.amazon.awssdk.services.inspector.model.GetExclusionsPreviewRequest)
operation.
This is a convenience which creates an instance of the GetExclusionsPreviewRequest.Builder
avoiding the
need to create one manually via GetExclusionsPreviewRequest.builder()
getExclusionsPreviewRequest
- A Consumer
that will call methods on GetExclusionsPreviewRequest.Builder
to create a
request.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
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.
getTelemetryMetadataRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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.Builder
avoiding the
need to create one manually via GetTelemetryMetadataRequest.builder()
getTelemetryMetadataRequest
- A Consumer
that will call methods on GetTelemetryMetadataRequest.Builder
to create a
request.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
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.
listAssessmentRunAgentsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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.Builder
avoiding
the need to create one manually via ListAssessmentRunAgentsRequest.builder()
listAssessmentRunAgentsRequest
- A Consumer
that will call methods on ListAssessmentRunAgentsRequest.Builder
to create a
request.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
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
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsIterable responses = client.listAssessmentRunAgentsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsIterable responses = client.listAssessmentRunAgentsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listAssessmentRunAgents(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest)
operation.
listAssessmentRunAgentsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsIterable responses = client.listAssessmentRunAgentsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunAgentsIterable responses = client.listAssessmentRunAgentsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listAssessmentRunAgents(software.amazon.awssdk.services.inspector.model.ListAssessmentRunAgentsRequest)
operation.
This is a convenience which creates an instance of the ListAssessmentRunAgentsRequest.Builder
avoiding
the need to create one manually via ListAssessmentRunAgentsRequest.builder()
listAssessmentRunAgentsRequest
- A Consumer
that will call methods on ListAssessmentRunAgentsRequest.Builder
to create a
request.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
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.
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
listAssessmentRuns(ListAssessmentRunsRequest)
,
AWS
API Documentationdefault 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.
listAssessmentRunsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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.Builder
avoiding the
need to create one manually via ListAssessmentRunsRequest.builder()
listAssessmentRunsRequest
- A Consumer
that will call methods on ListAssessmentRunsRequest.Builder
to create a
request.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
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
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client.listAssessmentRunsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client.listAssessmentRunsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)
operation.
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
listAssessmentRunsPaginator(ListAssessmentRunsRequest)
,
AWS
API Documentationdefault 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
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client.listAssessmentRunsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client.listAssessmentRunsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)
operation.
listAssessmentRunsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client.listAssessmentRunsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListAssessmentRunsIterable responses = client.listAssessmentRunsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listAssessmentRuns(software.amazon.awssdk.services.inspector.model.ListAssessmentRunsRequest)
operation.
This is a convenience which creates an instance of the ListAssessmentRunsRequest.Builder
avoiding the
need to create one manually via ListAssessmentRunsRequest.builder()
listAssessmentRunsRequest
- A Consumer
that will call methods on ListAssessmentRunsRequest.Builder
to create a
request.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
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.
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
listAssessmentTargets(ListAssessmentTargetsRequest)
,
AWS API Documentationdefault 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.
listAssessmentTargetsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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.Builder
avoiding the
need to create one manually via ListAssessmentTargetsRequest.builder()
listAssessmentTargetsRequest
- A Consumer
that will call methods on ListAssessmentTargetsRequest.Builder
to create a
request.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
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
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client.listAssessmentTargetsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client.listAssessmentTargetsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)
operation.
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
listAssessmentTargetsPaginator(ListAssessmentTargetsRequest)
,
AWS API Documentationdefault 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
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client.listAssessmentTargetsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client.listAssessmentTargetsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)
operation.
listAssessmentTargetsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client.listAssessmentTargetsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTargetsIterable responses = client.listAssessmentTargetsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listAssessmentTargets(software.amazon.awssdk.services.inspector.model.ListAssessmentTargetsRequest)
operation.
This is a convenience which creates an instance of the ListAssessmentTargetsRequest.Builder
avoiding the
need to create one manually via ListAssessmentTargetsRequest.builder()
listAssessmentTargetsRequest
- A Consumer
that will call methods on ListAssessmentTargetsRequest.Builder
to create a
request.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
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.
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
listAssessmentTemplates(ListAssessmentTemplatesRequest)
,
AWS API Documentationdefault 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.
listAssessmentTemplatesRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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.Builder
avoiding
the need to create one manually via ListAssessmentTemplatesRequest.builder()
listAssessmentTemplatesRequest
- A Consumer
that will call methods on ListAssessmentTemplatesRequest.Builder
to create a
request.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
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
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client.listAssessmentTemplatesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client.listAssessmentTemplatesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)
operation.
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
listAssessmentTemplatesPaginator(ListAssessmentTemplatesRequest)
,
AWS API Documentationdefault 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
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client.listAssessmentTemplatesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client.listAssessmentTemplatesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)
operation.
listAssessmentTemplatesRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client.listAssessmentTemplatesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListAssessmentTemplatesIterable responses = client.listAssessmentTemplatesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listAssessmentTemplates(software.amazon.awssdk.services.inspector.model.ListAssessmentTemplatesRequest)
operation.
This is a convenience which creates an instance of the ListAssessmentTemplatesRequest.Builder
avoiding
the need to create one manually via ListAssessmentTemplatesRequest.builder()
listAssessmentTemplatesRequest
- A Consumer
that will call methods on ListAssessmentTemplatesRequest.Builder
to create a
request.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
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.
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
listEventSubscriptions(ListEventSubscriptionsRequest)
,
AWS API Documentationdefault 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.
listEventSubscriptionsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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.Builder
avoiding the
need to create one manually via ListEventSubscriptionsRequest.builder()
listEventSubscriptionsRequest
- A Consumer
that will call methods on ListEventSubscriptionsRequest.Builder
to create a
request.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
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
software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client.listEventSubscriptionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client.listEventSubscriptionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)
operation.
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
listEventSubscriptionsPaginator(ListEventSubscriptionsRequest)
,
AWS API Documentationdefault 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
software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client.listEventSubscriptionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client.listEventSubscriptionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)
operation.
listEventSubscriptionsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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
software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client.listEventSubscriptionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListEventSubscriptionsIterable responses = client.listEventSubscriptionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listEventSubscriptions(software.amazon.awssdk.services.inspector.model.ListEventSubscriptionsRequest)
operation.
This is a convenience which creates an instance of the ListEventSubscriptionsRequest.Builder
avoiding the
need to create one manually via ListEventSubscriptionsRequest.builder()
listEventSubscriptionsRequest
- A Consumer
that will call methods on ListEventSubscriptionsRequest.Builder
to create a
request.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
default ListExclusionsResponse listExclusions(ListExclusionsRequest listExclusionsRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
List exclusions that are generated by the assessment run.
listExclusionsRequest
- 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
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.Builder
avoiding the need to
create one manually via ListExclusionsRequest.builder()
listExclusionsRequest
- A Consumer
that will call methods on ListExclusionsRequest.Builder
to create a request.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
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
software.amazon.awssdk.services.inspector.paginators.ListExclusionsIterable responses = client.listExclusionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListExclusionsIterable responses = client.listExclusionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listExclusions(software.amazon.awssdk.services.inspector.model.ListExclusionsRequest)
operation.
listExclusionsRequest
- 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
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
software.amazon.awssdk.services.inspector.paginators.ListExclusionsIterable responses = client.listExclusionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListExclusionsIterable responses = client.listExclusionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listExclusions(software.amazon.awssdk.services.inspector.model.ListExclusionsRequest)
operation.
This is a convenience which creates an instance of the ListExclusionsRequest.Builder
avoiding the need to
create one manually via ListExclusionsRequest.builder()
listExclusionsRequest
- A Consumer
that will call methods on ListExclusionsRequest.Builder
to create a request.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
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.
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
listFindings(ListFindingsRequest)
,
AWS API
Documentationdefault 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.
listFindingsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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.Builder
avoiding the need to
create one manually via ListFindingsRequest.builder()
listFindingsRequest
- A Consumer
that will call methods on ListFindingsRequest.Builder
to create a request.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
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
software.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)
operation.
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
listFindingsPaginator(ListFindingsRequest)
,
AWS API
Documentationdefault 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
software.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)
operation.
listFindingsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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
software.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listFindings(software.amazon.awssdk.services.inspector.model.ListFindingsRequest)
operation.
This is a convenience which creates an instance of the ListFindingsRequest.Builder
avoiding the need to
create one manually via ListFindingsRequest.builder()
listFindingsRequest
- A Consumer
that will call methods on ListFindingsRequest.Builder
to create a request.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
default ListRulesPackagesResponse listRulesPackages() throws InternalException, InvalidInputException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorException
Lists all available Amazon Inspector rules packages.
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
listRulesPackages(ListRulesPackagesRequest)
,
AWS
API Documentationdefault ListRulesPackagesResponse listRulesPackages(ListRulesPackagesRequest listRulesPackagesRequest) throws InternalException, InvalidInputException, AccessDeniedException, AwsServiceException, SdkClientException, InspectorException
Lists all available Amazon Inspector rules packages.
listRulesPackagesRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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.Builder
avoiding the need
to create one manually via ListRulesPackagesRequest.builder()
listRulesPackagesRequest
- A Consumer
that will call methods on ListRulesPackagesRequest.Builder
to create a request.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
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
software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client.listRulesPackagesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client.listRulesPackagesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)
operation.
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
listRulesPackagesPaginator(ListRulesPackagesRequest)
,
AWS
API Documentationdefault 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
software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client.listRulesPackagesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client.listRulesPackagesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)
operation.
listRulesPackagesRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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
software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client.listRulesPackagesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.ListRulesPackagesIterable responses = client.listRulesPackagesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listRulesPackages(software.amazon.awssdk.services.inspector.model.ListRulesPackagesRequest)
operation.
This is a convenience which creates an instance of the ListRulesPackagesRequest.Builder
avoiding the need
to create one manually via ListRulesPackagesRequest.builder()
listRulesPackagesRequest
- A Consumer
that will call methods on ListRulesPackagesRequest.Builder
to create a request.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
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalException, InvalidInputException, AccessDeniedException, NoSuchEntityException, AwsServiceException, SdkClientException, InspectorException
Lists all tags associated with an assessment template.
listTagsForResourceRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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.Builder
avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest
- A Consumer
that will call methods on ListTagsForResourceRequest.Builder
to create a
request.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
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.
previewAgentsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.InvalidCrossAccountRoleException
- Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the
assessment run.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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.Builder
avoiding the need to
create one manually via PreviewAgentsRequest.builder()
previewAgentsRequest
- A Consumer
that will call methods on PreviewAgentsRequest.Builder
to create a request.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
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
software.amazon.awssdk.services.inspector.paginators.PreviewAgentsIterable responses = client.previewAgentsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.PreviewAgentsIterable responses = client.previewAgentsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
previewAgents(software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest)
operation.
previewAgentsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.InvalidCrossAccountRoleException
- Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the
assessment run.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related 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
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
software.amazon.awssdk.services.inspector.paginators.PreviewAgentsIterable responses = client.previewAgentsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.inspector.paginators.PreviewAgentsIterable responses = client.previewAgentsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
previewAgents(software.amazon.awssdk.services.inspector.model.PreviewAgentsRequest)
operation.
This is a convenience which creates an instance of the PreviewAgentsRequest.Builder
avoiding the need to
create one manually via PreviewAgentsRequest.builder()
previewAgentsRequest
- A Consumer
that will call methods on PreviewAgentsRequest.Builder
to create a request.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
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.
registerCrossAccountAccessRoleRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.InvalidCrossAccountRoleException
- Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the
assessment run.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
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.Builder
avoiding the need to create one manually via RegisterCrossAccountAccessRoleRequest.builder()
registerCrossAccountAccessRoleRequest
- A Consumer
that will call methods on RegisterCrossAccountAccessRoleRequest.Builder
to
create a request.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
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.
removeAttributesFromFindingsRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.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
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.Builder
avoiding the need to create one manually via RemoveAttributesFromFindingsRequest.builder()
removeAttributesFromFindingsRequest
- A Consumer
that will call methods on RemoveAttributesFromFindingsRequest.Builder
to create
a request.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
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.
setTagsForResourceRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.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
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.Builder
avoiding the
need to create one manually via SetTagsForResourceRequest.builder()
setTagsForResourceRequest
- A Consumer
that will call methods on SetTagsForResourceRequest.Builder
to create a
request.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
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.
startAssessmentRunRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.InvalidCrossAccountRoleException
- Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the
assessment run.AgentsAlreadyRunningAssessmentException
- You started an assessment run, but one of the instances is already participating in another assessment
run.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
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.Builder
avoiding the
need to create one manually via StartAssessmentRunRequest.builder()
startAssessmentRunRequest
- A Consumer
that will call methods on StartAssessmentRunRequest.Builder
to create a
request.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
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.
stopAssessmentRunRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.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
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.Builder
avoiding the need
to create one manually via StopAssessmentRunRequest.builder()
stopAssessmentRunRequest
- A Consumer
that will call methods on StopAssessmentRunRequest.Builder
to create a request.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
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.
subscribeToEventRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.LimitExceededException
- The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error code describes the limit exceeded.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.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
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.Builder
avoiding the need
to create one manually via SubscribeToEventRequest.builder()
subscribeToEventRequest
- A Consumer
that will call methods on SubscribeToEventRequest.Builder
to create a request.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
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.
unsubscribeFromEventRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.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
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.Builder
avoiding the
need to create one manually via UnsubscribeFromEventRequest.builder()
unsubscribeFromEventRequest
- A Consumer
that will call methods on UnsubscribeFromEventRequest.Builder
to create a
request.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
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.
updateAssessmentTargetRequest
- InternalException
- Internal server error.InvalidInputException
- The request was rejected because an invalid or out-of-range value was supplied for an input parameter.AccessDeniedException
- You do not have required permissions to access the requested resource.NoSuchEntityException
- The request was rejected because it referenced an entity that does not exist. The error code describes
the entity.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
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.Builder
avoiding the
need to create one manually via UpdateAssessmentTargetRequest.builder()
updateAssessmentTargetRequest
- A Consumer
that will call methods on UpdateAssessmentTargetRequest.Builder
to create a
request.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
static ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.