Class AbstractAmazonInspector
- All Implemented Interfaces:
AmazonInspector
- Direct Known Subclasses:
AbstractAmazonInspectorAsync
AmazonInspector. Convenient method forms
pass through to the corresponding overload that takes a request object, which
throws an UnsupportedOperationException.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAssigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup.Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.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.Deletes the assessment run that is specified by the ARN of the assessment run.Deletes the assessment target that is specified by the ARN of the assessment target.Deletes the assessment template that is specified by the ARN of the assessment template.Describes the assessment runs that are specified by the ARNs of the assessment runs.Describes the assessment targets that are specified by the ARNs of the assessment targets.Describes the assessment templates that are specified by the ARNs of the assessment templates.Describes the IAM role that enables Amazon Inspector to access your AWS account.describeFindings(DescribeFindingsRequest request) Describes the findings that are specified by the ARNs of the findings.Describes the resource groups that are specified by the ARNs of the resource groups.Describes the rules packages that are specified by the ARNs of the rules packages.Returns additional metadata for a previously executed successful request, typically used for debugging issues where a service isn't acting as expected.Information about the data that is collected for the specified assessment run.Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.Lists the ARNs of the assessment targets within this AWS account.Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template.listFindings(ListFindingsRequest request) Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.Lists all available Amazon Inspector rules packages.Lists all tags associated with an assessment template.previewAgents(PreviewAgentsRequest request) Previews the agents installed on the EC2 instances that are part of the specified assessment target.Registers the IAM role that Amazon Inspector uses to list your EC2 instances at the start of the assessment run or when you call the PreviewAgents action.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.voidsetEndpoint(String endpoint) Overrides the default endpoint for this client ("https://inspector.us-east-1.amazonaws.com").voidAn alternative toAmazonInspector.setEndpoint(String), sets the regional endpoint for this client's service calls.Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.voidshutdown()Shuts down this client object, releasing any resources that might be held open.Starts the assessment run specified by the ARN of the assessment template.Stops the assessment run that is specified by the ARN of the assessment run.subscribeToEvent(SubscribeToEventRequest request) Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.Updates the assessment target that is specified by the ARN of the assessment target.
-
Constructor Details
-
AbstractAmazonInspector
protected AbstractAmazonInspector()
-
-
Method Details
-
setEndpoint
Description copied from interface:AmazonInspectorOverrides the default endpoint for this client ("https://inspector.us-east-1.amazonaws.com"). Callers can use this method to control which AWS region they want to work with.Callers can pass in just the endpoint (ex: "inspector.us-east-1.amazonaws.com") or a full URL, including the protocol (ex: "https://inspector.us-east-1.amazonaws.com"). If the protocol is not specified here, the default protocol from this client's
ClientConfigurationwill be used, which by default is HTTPS.For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID= 3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
- Specified by:
setEndpointin interfaceAmazonInspector- Parameters:
endpoint- The endpoint (ex: "inspector.us-east-1.amazonaws.com") or a full URL, including the protocol (ex: "https://inspector.us-east-1.amazonaws.com") of the region specific AWS endpoint this client will communicate with.
-
setRegion
Description copied from interface:AmazonInspectorAn alternative toAmazonInspector.setEndpoint(String), sets the regional endpoint for this client's service calls. Callers can use this method to control which AWS region they want to work with.By default, all service endpoints in all regions use the https protocol. To use http instead, specify it in the
ClientConfigurationsupplied at construction.This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
- Specified by:
setRegionin interfaceAmazonInspector- Parameters:
region- The region this client will communicate with. SeeRegion.getRegion(com.amazonaws.regions.Regions)for accessing a given region. Must not be null and must be a region where the service is available.- See Also:
-
addAttributesToFindings
public AddAttributesToFindingsResult addAttributesToFindings(AddAttributesToFindingsRequest request) Description copied from interface:AmazonInspectorAssigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
- Specified by:
addAttributesToFindingsin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the AddAttributesToFindings operation returned by the service.
-
createAssessmentTarget
Description copied from interface:AmazonInspectorCreates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Amazon Inspector Assessment Targets.
- Specified by:
createAssessmentTargetin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the CreateAssessmentTarget operation returned by the service.
-
createAssessmentTemplate
public CreateAssessmentTemplateResult createAssessmentTemplate(CreateAssessmentTemplateRequest request) Description copied from interface:AmazonInspectorCreates an assessment template for the assessment target that is specified by the ARN of the assessment target.
- Specified by:
createAssessmentTemplatein interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the CreateAssessmentTemplate operation returned by the service.
-
createResourceGroup
Description copied from interface:AmazonInspectorCreates 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.
- Specified by:
createResourceGroupin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the CreateResourceGroup operation returned by the service.
-
deleteAssessmentRun
Description copied from interface:AmazonInspectorDeletes the assessment run that is specified by the ARN of the assessment run.
- Specified by:
deleteAssessmentRunin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the DeleteAssessmentRun operation returned by the service.
-
deleteAssessmentTarget
Description copied from interface:AmazonInspectorDeletes the assessment target that is specified by the ARN of the assessment target.
- Specified by:
deleteAssessmentTargetin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the DeleteAssessmentTarget operation returned by the service.
-
deleteAssessmentTemplate
public DeleteAssessmentTemplateResult deleteAssessmentTemplate(DeleteAssessmentTemplateRequest request) Description copied from interface:AmazonInspectorDeletes the assessment template that is specified by the ARN of the assessment template.
- Specified by:
deleteAssessmentTemplatein interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the DeleteAssessmentTemplate operation returned by the service.
-
describeAssessmentRuns
Description copied from interface:AmazonInspectorDescribes the assessment runs that are specified by the ARNs of the assessment runs.
- Specified by:
describeAssessmentRunsin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the DescribeAssessmentRuns operation returned by the service.
-
describeAssessmentTargets
public DescribeAssessmentTargetsResult describeAssessmentTargets(DescribeAssessmentTargetsRequest request) Description copied from interface:AmazonInspectorDescribes the assessment targets that are specified by the ARNs of the assessment targets.
- Specified by:
describeAssessmentTargetsin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the DescribeAssessmentTargets operation returned by the service.
-
describeAssessmentTemplates
public DescribeAssessmentTemplatesResult describeAssessmentTemplates(DescribeAssessmentTemplatesRequest request) Description copied from interface:AmazonInspectorDescribes the assessment templates that are specified by the ARNs of the assessment templates.
- Specified by:
describeAssessmentTemplatesin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the DescribeAssessmentTemplates operation returned by the service.
-
describeCrossAccountAccessRole
public DescribeCrossAccountAccessRoleResult describeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest request) Description copied from interface:AmazonInspectorDescribes the IAM role that enables Amazon Inspector to access your AWS account.
- Specified by:
describeCrossAccountAccessRolein interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the DescribeCrossAccountAccessRole operation returned by the service.
-
describeFindings
Description copied from interface:AmazonInspectorDescribes the findings that are specified by the ARNs of the findings.
- Specified by:
describeFindingsin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the DescribeFindings operation returned by the service.
-
describeResourceGroups
Description copied from interface:AmazonInspectorDescribes the resource groups that are specified by the ARNs of the resource groups.
- Specified by:
describeResourceGroupsin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the DescribeResourceGroups operation returned by the service.
-
describeRulesPackages
Description copied from interface:AmazonInspectorDescribes the rules packages that are specified by the ARNs of the rules packages.
- Specified by:
describeRulesPackagesin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the DescribeRulesPackages operation returned by the service.
-
getTelemetryMetadata
Description copied from interface:AmazonInspectorInformation about the data that is collected for the specified assessment run.
- Specified by:
getTelemetryMetadatain interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the GetTelemetryMetadata operation returned by the service.
-
listAssessmentRunAgents
public ListAssessmentRunAgentsResult listAssessmentRunAgents(ListAssessmentRunAgentsRequest request) Description copied from interface:AmazonInspectorLists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
- Specified by:
listAssessmentRunAgentsin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the ListAssessmentRunAgents operation returned by the service.
-
listAssessmentRuns
Description copied from interface:AmazonInspectorLists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
- Specified by:
listAssessmentRunsin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the ListAssessmentRuns operation returned by the service.
-
listAssessmentTargets
Description copied from interface:AmazonInspectorLists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
- Specified by:
listAssessmentTargetsin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the ListAssessmentTargets operation returned by the service.
-
listAssessmentTemplates
public ListAssessmentTemplatesResult listAssessmentTemplates(ListAssessmentTemplatesRequest request) Description copied from interface:AmazonInspectorLists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
- Specified by:
listAssessmentTemplatesin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the ListAssessmentTemplates operation returned by the service.
-
listEventSubscriptions
Description copied from interface:AmazonInspectorLists 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.
- Specified by:
listEventSubscriptionsin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the ListEventSubscriptions operation returned by the service.
-
listFindings
Description copied from interface:AmazonInspectorLists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
- Specified by:
listFindingsin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the ListFindings operation returned by the service.
-
listRulesPackages
Description copied from interface:AmazonInspectorLists all available Amazon Inspector rules packages.
- Specified by:
listRulesPackagesin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the ListRulesPackages operation returned by the service.
-
listTagsForResource
Description copied from interface:AmazonInspectorLists all tags associated with an assessment template.
- Specified by:
listTagsForResourcein interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the ListTagsForResource operation returned by the service.
-
previewAgents
Description copied from interface:AmazonInspectorPreviews the agents installed on the EC2 instances that are part of the specified assessment target.
- Specified by:
previewAgentsin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the PreviewAgents operation returned by the service.
-
registerCrossAccountAccessRole
public RegisterCrossAccountAccessRoleResult registerCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest request) Description copied from interface:AmazonInspectorRegisters the IAM role that Amazon Inspector uses to list your EC2 instances at the start of the assessment run or when you call the PreviewAgents action.
- Specified by:
registerCrossAccountAccessRolein interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the RegisterCrossAccountAccessRole operation returned by the service.
-
removeAttributesFromFindings
public RemoveAttributesFromFindingsResult removeAttributesFromFindings(RemoveAttributesFromFindingsRequest request) Description copied from interface:AmazonInspectorRemoves 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.
- Specified by:
removeAttributesFromFindingsin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the RemoveAttributesFromFindings operation returned by the service.
-
setTagsForResource
Description copied from interface:AmazonInspectorSets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.
- Specified by:
setTagsForResourcein interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the SetTagsForResource operation returned by the service.
-
startAssessmentRun
Description copied from interface:AmazonInspectorStarts 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.
- Specified by:
startAssessmentRunin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the StartAssessmentRun operation returned by the service.
-
stopAssessmentRun
Description copied from interface:AmazonInspectorStops the assessment run that is specified by the ARN of the assessment run.
- Specified by:
stopAssessmentRunin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the StopAssessmentRun operation returned by the service.
-
subscribeToEvent
Description copied from interface:AmazonInspectorEnables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
- Specified by:
subscribeToEventin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the SubscribeToEvent operation returned by the service.
-
unsubscribeFromEvent
Description copied from interface:AmazonInspectorDisables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
- Specified by:
unsubscribeFromEventin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the UnsubscribeFromEvent operation returned by the service.
-
updateAssessmentTarget
Description copied from interface:AmazonInspectorUpdates the assessment target that is specified by the ARN of the assessment target.
- Specified by:
updateAssessmentTargetin interfaceAmazonInspector- Parameters:
request-- Returns:
- Result of the UpdateAssessmentTarget operation returned by the service.
-
shutdown
public void shutdown()Description copied from interface:AmazonInspectorShuts down this client object, releasing any resources that might be held open. This is an optional method, and callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client has been shutdown, it should not be used to make any more requests.- Specified by:
shutdownin interfaceAmazonInspector
-
getCachedResponseMetadata
Description copied from interface:AmazonInspectorReturns additional metadata for a previously executed successful request, typically used for debugging issues where a service isn't acting as expected. This data isn't considered part of the result data returned by an operation, so it's available through this separate, diagnostic interface.Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
- Specified by:
getCachedResponseMetadatain interfaceAmazonInspector- Parameters:
request- The originally executed request.- Returns:
- The response metadata for the specified request, or null if none is available.
-