Interface AccessAnalyzerClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface AccessAnalyzerClient extends AwsClient
Service client for accessing Access Analyzer. This can be created using the staticbuilder()method.Identity and Access Management Access Analyzer helps you to set, verify, and refine your IAM policies by providing a suite of capabilities. Its features include findings for external and unused access, basic and custom policy checks for validating policies, and policy generation to generate fine-grained policies. To start using IAM Access Analyzer to identify external or unused access, you first need to create an analyzer.
External access analyzers help identify potential risks of accessing resources by enabling you to identify any resource policies that grant access to an external principal. It does this by using logic-based reasoning to analyze resource-based policies in your Amazon Web Services environment. An external principal can be another Amazon Web Services account, a root user, an IAM user or role, a federated user, an Amazon Web Services service, or an anonymous user. You can also use IAM Access Analyzer to preview public and cross-account access to your resources before deploying permissions changes.
Unused access analyzers help identify potential identity access risks by enabling you to identify unused IAM roles, unused access keys, unused console passwords, and IAM principals with unused service and action-level permissions.
Beyond findings, IAM Access Analyzer provides basic and custom policy checks to validate IAM policies before deploying permissions changes. You can use policy generation to refine permissions by attaching a policy generated using access activity logged in CloudTrail logs.
This guide describes the IAM Access Analyzer operations that you can call programmatically. For general information about IAM Access Analyzer, see Identity and Access Management Access Analyzer in the IAM User Guide.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
applyArchiveRule
default ApplyArchiveRuleResponse applyArchiveRule(ApplyArchiveRuleRequest applyArchiveRuleRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
- Parameters:
applyArchiveRuleRequest- Retroactively applies an archive rule.- Returns:
- Result of the ApplyArchiveRule operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
applyArchiveRule
default ApplyArchiveRuleResponse applyArchiveRule(Consumer<ApplyArchiveRuleRequest.Builder> applyArchiveRuleRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
This is a convenience which creates an instance of the
ApplyArchiveRuleRequest.Builderavoiding the need to create one manually viaApplyArchiveRuleRequest.builder()- Parameters:
applyArchiveRuleRequest- AConsumerthat will call methods onApplyArchiveRuleRequest.Builderto create a request. Retroactively applies an archive rule.- Returns:
- Result of the ApplyArchiveRule operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
cancelPolicyGeneration
default CancelPolicyGenerationResponse cancelPolicyGeneration(CancelPolicyGenerationRequest cancelPolicyGenerationRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Cancels the requested policy generation.
- Parameters:
cancelPolicyGenerationRequest-- Returns:
- Result of the CancelPolicyGeneration operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
cancelPolicyGeneration
default CancelPolicyGenerationResponse cancelPolicyGeneration(Consumer<CancelPolicyGenerationRequest.Builder> cancelPolicyGenerationRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Cancels the requested policy generation.
This is a convenience which creates an instance of the
CancelPolicyGenerationRequest.Builderavoiding the need to create one manually viaCancelPolicyGenerationRequest.builder()- Parameters:
cancelPolicyGenerationRequest- AConsumerthat will call methods onCancelPolicyGenerationRequest.Builderto create a request.- Returns:
- Result of the CancelPolicyGeneration operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
checkAccessNotGranted
default CheckAccessNotGrantedResponse checkAccessNotGranted(CheckAccessNotGrantedRequest checkAccessNotGrantedRequest) throws ValidationException, InternalServerException, InvalidParameterException, UnprocessableEntityException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Checks whether the specified access isn't allowed by a policy.
- Parameters:
checkAccessNotGrantedRequest-- Returns:
- Result of the CheckAccessNotGranted operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.InvalidParameterException- The specified parameter is invalid.UnprocessableEntityException- The specified entity could not be processed.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
checkAccessNotGranted
default CheckAccessNotGrantedResponse checkAccessNotGranted(Consumer<CheckAccessNotGrantedRequest.Builder> checkAccessNotGrantedRequest) throws ValidationException, InternalServerException, InvalidParameterException, UnprocessableEntityException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Checks whether the specified access isn't allowed by a policy.
This is a convenience which creates an instance of the
CheckAccessNotGrantedRequest.Builderavoiding the need to create one manually viaCheckAccessNotGrantedRequest.builder()- Parameters:
checkAccessNotGrantedRequest- AConsumerthat will call methods onCheckAccessNotGrantedRequest.Builderto create a request.- Returns:
- Result of the CheckAccessNotGranted operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.InvalidParameterException- The specified parameter is invalid.UnprocessableEntityException- The specified entity could not be processed.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
checkNoNewAccess
default CheckNoNewAccessResponse checkNoNewAccess(CheckNoNewAccessRequest checkNoNewAccessRequest) throws ValidationException, InternalServerException, InvalidParameterException, UnprocessableEntityException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Checks whether new access is allowed for an updated policy when compared to the existing policy.
You can find examples for reference policies and learn how to set up and run a custom policy check for new access in the IAM Access Analyzer custom policy checks samples repository on GitHub. The reference policies in this repository are meant to be passed to the
existingPolicyDocumentrequest parameter.- Parameters:
checkNoNewAccessRequest-- Returns:
- Result of the CheckNoNewAccess operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.InvalidParameterException- The specified parameter is invalid.UnprocessableEntityException- The specified entity could not be processed.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
checkNoNewAccess
default CheckNoNewAccessResponse checkNoNewAccess(Consumer<CheckNoNewAccessRequest.Builder> checkNoNewAccessRequest) throws ValidationException, InternalServerException, InvalidParameterException, UnprocessableEntityException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Checks whether new access is allowed for an updated policy when compared to the existing policy.
You can find examples for reference policies and learn how to set up and run a custom policy check for new access in the IAM Access Analyzer custom policy checks samples repository on GitHub. The reference policies in this repository are meant to be passed to the
existingPolicyDocumentrequest parameter.
This is a convenience which creates an instance of the
CheckNoNewAccessRequest.Builderavoiding the need to create one manually viaCheckNoNewAccessRequest.builder()- Parameters:
checkNoNewAccessRequest- AConsumerthat will call methods onCheckNoNewAccessRequest.Builderto create a request.- Returns:
- Result of the CheckNoNewAccess operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.InvalidParameterException- The specified parameter is invalid.UnprocessableEntityException- The specified entity could not be processed.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createAccessPreview
default CreateAccessPreviewResponse createAccessPreview(CreateAccessPreviewRequest createAccessPreviewRequest) throws ResourceNotFoundException, ConflictException, ValidationException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before deploying resource permissions.
- Parameters:
createAccessPreviewRequest-- Returns:
- Result of the CreateAccessPreview operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ConflictException- A conflict exception error.ValidationException- Validation exception error.InternalServerException- Internal server error.ServiceQuotaExceededException- Service quote met error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createAccessPreview
default CreateAccessPreviewResponse createAccessPreview(Consumer<CreateAccessPreviewRequest.Builder> createAccessPreviewRequest) throws ResourceNotFoundException, ConflictException, ValidationException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before deploying resource permissions.
This is a convenience which creates an instance of the
CreateAccessPreviewRequest.Builderavoiding the need to create one manually viaCreateAccessPreviewRequest.builder()- Parameters:
createAccessPreviewRequest- AConsumerthat will call methods onCreateAccessPreviewRequest.Builderto create a request.- Returns:
- Result of the CreateAccessPreview operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ConflictException- A conflict exception error.ValidationException- Validation exception error.InternalServerException- Internal server error.ServiceQuotaExceededException- Service quote met error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createAnalyzer
default CreateAnalyzerResponse createAnalyzer(CreateAnalyzerRequest createAnalyzerRequest) throws ConflictException, ValidationException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Creates an analyzer for your account.
- Parameters:
createAnalyzerRequest- Creates an analyzer.- Returns:
- Result of the CreateAnalyzer operation returned by the service.
- Throws:
ConflictException- A conflict exception error.ValidationException- Validation exception error.InternalServerException- Internal server error.ServiceQuotaExceededException- Service quote met error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createAnalyzer
default CreateAnalyzerResponse createAnalyzer(Consumer<CreateAnalyzerRequest.Builder> createAnalyzerRequest) throws ConflictException, ValidationException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Creates an analyzer for your account.
This is a convenience which creates an instance of the
CreateAnalyzerRequest.Builderavoiding the need to create one manually viaCreateAnalyzerRequest.builder()- Parameters:
createAnalyzerRequest- AConsumerthat will call methods onCreateAnalyzerRequest.Builderto create a request. Creates an analyzer.- Returns:
- Result of the CreateAnalyzer operation returned by the service.
- Throws:
ConflictException- A conflict exception error.ValidationException- Validation exception error.InternalServerException- Internal server error.ServiceQuotaExceededException- Service quote met error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createArchiveRule
default CreateArchiveRuleResponse createArchiveRule(CreateArchiveRuleRequest createArchiveRuleRequest) throws ResourceNotFoundException, ConflictException, ValidationException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Creates an archive rule for the specified analyzer. Archive rules automatically archive new findings that meet the criteria you define when you create the rule.
To learn about filter keys that you can use to create an archive rule, see IAM Access Analyzer filter keys in the IAM User Guide.
- Parameters:
createArchiveRuleRequest- Creates an archive rule.- Returns:
- Result of the CreateArchiveRule operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ConflictException- A conflict exception error.ValidationException- Validation exception error.InternalServerException- Internal server error.ServiceQuotaExceededException- Service quote met error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createArchiveRule
default CreateArchiveRuleResponse createArchiveRule(Consumer<CreateArchiveRuleRequest.Builder> createArchiveRuleRequest) throws ResourceNotFoundException, ConflictException, ValidationException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Creates an archive rule for the specified analyzer. Archive rules automatically archive new findings that meet the criteria you define when you create the rule.
To learn about filter keys that you can use to create an archive rule, see IAM Access Analyzer filter keys in the IAM User Guide.
This is a convenience which creates an instance of the
CreateArchiveRuleRequest.Builderavoiding the need to create one manually viaCreateArchiveRuleRequest.builder()- Parameters:
createArchiveRuleRequest- AConsumerthat will call methods onCreateArchiveRuleRequest.Builderto create a request. Creates an archive rule.- Returns:
- Result of the CreateArchiveRule operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ConflictException- A conflict exception error.ValidationException- Validation exception error.InternalServerException- Internal server error.ServiceQuotaExceededException- Service quote met error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAnalyzer
default DeleteAnalyzerResponse deleteAnalyzer(DeleteAnalyzerRequest deleteAnalyzerRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Deletes the specified analyzer. When you delete an analyzer, IAM Access Analyzer is disabled for the account or organization in the current or specific Region. All findings that were generated by the analyzer are deleted. You cannot undo this action.
- Parameters:
deleteAnalyzerRequest- Deletes an analyzer.- Returns:
- Result of the DeleteAnalyzer operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAnalyzer
default DeleteAnalyzerResponse deleteAnalyzer(Consumer<DeleteAnalyzerRequest.Builder> deleteAnalyzerRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Deletes the specified analyzer. When you delete an analyzer, IAM Access Analyzer is disabled for the account or organization in the current or specific Region. All findings that were generated by the analyzer are deleted. You cannot undo this action.
This is a convenience which creates an instance of the
DeleteAnalyzerRequest.Builderavoiding the need to create one manually viaDeleteAnalyzerRequest.builder()- Parameters:
deleteAnalyzerRequest- AConsumerthat will call methods onDeleteAnalyzerRequest.Builderto create a request. Deletes an analyzer.- Returns:
- Result of the DeleteAnalyzer operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteArchiveRule
default DeleteArchiveRuleResponse deleteArchiveRule(DeleteArchiveRuleRequest deleteArchiveRuleRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Deletes the specified archive rule.
- Parameters:
deleteArchiveRuleRequest- Deletes an archive rule.- Returns:
- Result of the DeleteArchiveRule operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteArchiveRule
default DeleteArchiveRuleResponse deleteArchiveRule(Consumer<DeleteArchiveRuleRequest.Builder> deleteArchiveRuleRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Deletes the specified archive rule.
This is a convenience which creates an instance of the
DeleteArchiveRuleRequest.Builderavoiding the need to create one manually viaDeleteArchiveRuleRequest.builder()- Parameters:
deleteArchiveRuleRequest- AConsumerthat will call methods onDeleteArchiveRuleRequest.Builderto create a request. Deletes an archive rule.- Returns:
- Result of the DeleteArchiveRule operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAccessPreview
default GetAccessPreviewResponse getAccessPreview(GetAccessPreviewRequest getAccessPreviewRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about an access preview for the specified analyzer.
- Parameters:
getAccessPreviewRequest-- Returns:
- Result of the GetAccessPreview operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAccessPreview
default GetAccessPreviewResponse getAccessPreview(Consumer<GetAccessPreviewRequest.Builder> getAccessPreviewRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about an access preview for the specified analyzer.
This is a convenience which creates an instance of the
GetAccessPreviewRequest.Builderavoiding the need to create one manually viaGetAccessPreviewRequest.builder()- Parameters:
getAccessPreviewRequest- AConsumerthat will call methods onGetAccessPreviewRequest.Builderto create a request.- Returns:
- Result of the GetAccessPreview operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAnalyzedResource
default GetAnalyzedResourceResponse getAnalyzedResource(GetAnalyzedResourceRequest getAnalyzedResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about a resource that was analyzed.
- Parameters:
getAnalyzedResourceRequest- Retrieves an analyzed resource.- Returns:
- Result of the GetAnalyzedResource operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAnalyzedResource
default GetAnalyzedResourceResponse getAnalyzedResource(Consumer<GetAnalyzedResourceRequest.Builder> getAnalyzedResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about a resource that was analyzed.
This is a convenience which creates an instance of the
GetAnalyzedResourceRequest.Builderavoiding the need to create one manually viaGetAnalyzedResourceRequest.builder()- Parameters:
getAnalyzedResourceRequest- AConsumerthat will call methods onGetAnalyzedResourceRequest.Builderto create a request. Retrieves an analyzed resource.- Returns:
- Result of the GetAnalyzedResource operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAnalyzer
default GetAnalyzerResponse getAnalyzer(GetAnalyzerRequest getAnalyzerRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about the specified analyzer.
- Parameters:
getAnalyzerRequest- Retrieves an analyzer.- Returns:
- Result of the GetAnalyzer operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAnalyzer
default GetAnalyzerResponse getAnalyzer(Consumer<GetAnalyzerRequest.Builder> getAnalyzerRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about the specified analyzer.
This is a convenience which creates an instance of the
GetAnalyzerRequest.Builderavoiding the need to create one manually viaGetAnalyzerRequest.builder()- Parameters:
getAnalyzerRequest- AConsumerthat will call methods onGetAnalyzerRequest.Builderto create a request. Retrieves an analyzer.- Returns:
- Result of the GetAnalyzer operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getArchiveRule
default GetArchiveRuleResponse getArchiveRule(GetArchiveRuleRequest getArchiveRuleRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about an archive rule.
To learn about filter keys that you can use to create an archive rule, see IAM Access Analyzer filter keys in the IAM User Guide.
- Parameters:
getArchiveRuleRequest- Retrieves an archive rule.- Returns:
- Result of the GetArchiveRule operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getArchiveRule
default GetArchiveRuleResponse getArchiveRule(Consumer<GetArchiveRuleRequest.Builder> getArchiveRuleRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about an archive rule.
To learn about filter keys that you can use to create an archive rule, see IAM Access Analyzer filter keys in the IAM User Guide.
This is a convenience which creates an instance of the
GetArchiveRuleRequest.Builderavoiding the need to create one manually viaGetArchiveRuleRequest.builder()- Parameters:
getArchiveRuleRequest- AConsumerthat will call methods onGetArchiveRuleRequest.Builderto create a request. Retrieves an archive rule.- Returns:
- Result of the GetArchiveRule operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getFinding
default GetFindingResponse getFinding(GetFindingRequest getFindingRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about the specified finding. GetFinding and GetFindingV2 both use
access-analyzer:GetFindingin theActionelement of an IAM policy statement. You must have permission to perform theaccess-analyzer:GetFindingaction.- Parameters:
getFindingRequest- Retrieves a finding.- Returns:
- Result of the GetFinding operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getFinding
default GetFindingResponse getFinding(Consumer<GetFindingRequest.Builder> getFindingRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about the specified finding. GetFinding and GetFindingV2 both use
access-analyzer:GetFindingin theActionelement of an IAM policy statement. You must have permission to perform theaccess-analyzer:GetFindingaction.
This is a convenience which creates an instance of the
GetFindingRequest.Builderavoiding the need to create one manually viaGetFindingRequest.builder()- Parameters:
getFindingRequest- AConsumerthat will call methods onGetFindingRequest.Builderto create a request. Retrieves a finding.- Returns:
- Result of the GetFinding operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getFindingV2
default GetFindingV2Response getFindingV2(GetFindingV2Request getFindingV2Request) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about the specified finding. GetFinding and GetFindingV2 both use
access-analyzer:GetFindingin theActionelement of an IAM policy statement. You must have permission to perform theaccess-analyzer:GetFindingaction.- Parameters:
getFindingV2Request-- Returns:
- Result of the GetFindingV2 operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getFindingV2
default GetFindingV2Response getFindingV2(Consumer<GetFindingV2Request.Builder> getFindingV2Request) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about the specified finding. GetFinding and GetFindingV2 both use
access-analyzer:GetFindingin theActionelement of an IAM policy statement. You must have permission to perform theaccess-analyzer:GetFindingaction.
This is a convenience which creates an instance of the
GetFindingV2Request.Builderavoiding the need to create one manually viaGetFindingV2Request.builder()- Parameters:
getFindingV2Request- AConsumerthat will call methods onGetFindingV2Request.Builderto create a request.- Returns:
- Result of the GetFindingV2 operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getFindingV2Paginator
default GetFindingV2Iterable getFindingV2Paginator(GetFindingV2Request getFindingV2Request) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
getFindingV2(software.amazon.awssdk.services.accessanalyzer.model.GetFindingV2Request)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.GetFindingV2Iterable responses = client.getFindingV2Paginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.GetFindingV2Iterable responses = client .getFindingV2Paginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.GetFindingV2Response response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.GetFindingV2Iterable responses = client.getFindingV2Paginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getFindingV2(software.amazon.awssdk.services.accessanalyzer.model.GetFindingV2Request)operation.- Parameters:
getFindingV2Request-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getFindingV2Paginator
default GetFindingV2Iterable getFindingV2Paginator(Consumer<GetFindingV2Request.Builder> getFindingV2Request) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
getFindingV2(software.amazon.awssdk.services.accessanalyzer.model.GetFindingV2Request)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.GetFindingV2Iterable responses = client.getFindingV2Paginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.GetFindingV2Iterable responses = client .getFindingV2Paginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.GetFindingV2Response response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.GetFindingV2Iterable responses = client.getFindingV2Paginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getFindingV2(software.amazon.awssdk.services.accessanalyzer.model.GetFindingV2Request)operation.
This is a convenience which creates an instance of the
GetFindingV2Request.Builderavoiding the need to create one manually viaGetFindingV2Request.builder()- Parameters:
getFindingV2Request- AConsumerthat will call methods onGetFindingV2Request.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getGeneratedPolicy
default GetGeneratedPolicyResponse getGeneratedPolicy(GetGeneratedPolicyRequest getGeneratedPolicyRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves the policy that was generated using
StartPolicyGeneration.- Parameters:
getGeneratedPolicyRequest-- Returns:
- Result of the GetGeneratedPolicy operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getGeneratedPolicy
default GetGeneratedPolicyResponse getGeneratedPolicy(Consumer<GetGeneratedPolicyRequest.Builder> getGeneratedPolicyRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves the policy that was generated using
StartPolicyGeneration.
This is a convenience which creates an instance of the
GetGeneratedPolicyRequest.Builderavoiding the need to create one manually viaGetGeneratedPolicyRequest.builder()- Parameters:
getGeneratedPolicyRequest- AConsumerthat will call methods onGetGeneratedPolicyRequest.Builderto create a request.- Returns:
- Result of the GetGeneratedPolicy operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAccessPreviewFindings
default ListAccessPreviewFindingsResponse listAccessPreviewFindings(ListAccessPreviewFindingsRequest listAccessPreviewFindingsRequest) throws ResourceNotFoundException, ConflictException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of access preview findings generated by the specified access preview.
- Parameters:
listAccessPreviewFindingsRequest-- Returns:
- Result of the ListAccessPreviewFindings operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ConflictException- A conflict exception error.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAccessPreviewFindings
default ListAccessPreviewFindingsResponse listAccessPreviewFindings(Consumer<ListAccessPreviewFindingsRequest.Builder> listAccessPreviewFindingsRequest) throws ResourceNotFoundException, ConflictException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of access preview findings generated by the specified access preview.
This is a convenience which creates an instance of the
ListAccessPreviewFindingsRequest.Builderavoiding the need to create one manually viaListAccessPreviewFindingsRequest.builder()- Parameters:
listAccessPreviewFindingsRequest- AConsumerthat will call methods onListAccessPreviewFindingsRequest.Builderto create a request.- Returns:
- Result of the ListAccessPreviewFindings operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ConflictException- A conflict exception error.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAccessPreviewFindingsPaginator
default ListAccessPreviewFindingsIterable listAccessPreviewFindingsPaginator(ListAccessPreviewFindingsRequest listAccessPreviewFindingsRequest) throws ResourceNotFoundException, ConflictException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listAccessPreviewFindings(software.amazon.awssdk.services.accessanalyzer.model.ListAccessPreviewFindingsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewFindingsIterable responses = client.listAccessPreviewFindingsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewFindingsIterable responses = client .listAccessPreviewFindingsPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListAccessPreviewFindingsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewFindingsIterable responses = client.listAccessPreviewFindingsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAccessPreviewFindings(software.amazon.awssdk.services.accessanalyzer.model.ListAccessPreviewFindingsRequest)operation.- Parameters:
listAccessPreviewFindingsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ConflictException- A conflict exception error.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAccessPreviewFindingsPaginator
default ListAccessPreviewFindingsIterable listAccessPreviewFindingsPaginator(Consumer<ListAccessPreviewFindingsRequest.Builder> listAccessPreviewFindingsRequest) throws ResourceNotFoundException, ConflictException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listAccessPreviewFindings(software.amazon.awssdk.services.accessanalyzer.model.ListAccessPreviewFindingsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewFindingsIterable responses = client.listAccessPreviewFindingsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewFindingsIterable responses = client .listAccessPreviewFindingsPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListAccessPreviewFindingsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewFindingsIterable responses = client.listAccessPreviewFindingsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAccessPreviewFindings(software.amazon.awssdk.services.accessanalyzer.model.ListAccessPreviewFindingsRequest)operation.
This is a convenience which creates an instance of the
ListAccessPreviewFindingsRequest.Builderavoiding the need to create one manually viaListAccessPreviewFindingsRequest.builder()- Parameters:
listAccessPreviewFindingsRequest- AConsumerthat will call methods onListAccessPreviewFindingsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ConflictException- A conflict exception error.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAccessPreviews
default ListAccessPreviewsResponse listAccessPreviews(ListAccessPreviewsRequest listAccessPreviewsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of access previews for the specified analyzer.
- Parameters:
listAccessPreviewsRequest-- Returns:
- Result of the ListAccessPreviews operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAccessPreviews
default ListAccessPreviewsResponse listAccessPreviews(Consumer<ListAccessPreviewsRequest.Builder> listAccessPreviewsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of access previews for the specified analyzer.
This is a convenience which creates an instance of the
ListAccessPreviewsRequest.Builderavoiding the need to create one manually viaListAccessPreviewsRequest.builder()- Parameters:
listAccessPreviewsRequest- AConsumerthat will call methods onListAccessPreviewsRequest.Builderto create a request.- Returns:
- Result of the ListAccessPreviews operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAccessPreviewsPaginator
default ListAccessPreviewsIterable listAccessPreviewsPaginator(ListAccessPreviewsRequest listAccessPreviewsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listAccessPreviews(software.amazon.awssdk.services.accessanalyzer.model.ListAccessPreviewsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewsIterable responses = client.listAccessPreviewsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewsIterable responses = client .listAccessPreviewsPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListAccessPreviewsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewsIterable responses = client.listAccessPreviewsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAccessPreviews(software.amazon.awssdk.services.accessanalyzer.model.ListAccessPreviewsRequest)operation.- Parameters:
listAccessPreviewsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAccessPreviewsPaginator
default ListAccessPreviewsIterable listAccessPreviewsPaginator(Consumer<ListAccessPreviewsRequest.Builder> listAccessPreviewsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listAccessPreviews(software.amazon.awssdk.services.accessanalyzer.model.ListAccessPreviewsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewsIterable responses = client.listAccessPreviewsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewsIterable responses = client .listAccessPreviewsPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListAccessPreviewsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewsIterable responses = client.listAccessPreviewsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAccessPreviews(software.amazon.awssdk.services.accessanalyzer.model.ListAccessPreviewsRequest)operation.
This is a convenience which creates an instance of the
ListAccessPreviewsRequest.Builderavoiding the need to create one manually viaListAccessPreviewsRequest.builder()- Parameters:
listAccessPreviewsRequest- AConsumerthat will call methods onListAccessPreviewsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAnalyzedResources
default ListAnalyzedResourcesResponse listAnalyzedResources(ListAnalyzedResourcesRequest listAnalyzedResourcesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of resources of the specified type that have been analyzed by the specified external access analyzer. This action is not supported for unused access analyzers.
- Parameters:
listAnalyzedResourcesRequest- Retrieves a list of resources that have been analyzed.- Returns:
- Result of the ListAnalyzedResources operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAnalyzedResources
default ListAnalyzedResourcesResponse listAnalyzedResources(Consumer<ListAnalyzedResourcesRequest.Builder> listAnalyzedResourcesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of resources of the specified type that have been analyzed by the specified external access analyzer. This action is not supported for unused access analyzers.
This is a convenience which creates an instance of the
ListAnalyzedResourcesRequest.Builderavoiding the need to create one manually viaListAnalyzedResourcesRequest.builder()- Parameters:
listAnalyzedResourcesRequest- AConsumerthat will call methods onListAnalyzedResourcesRequest.Builderto create a request. Retrieves a list of resources that have been analyzed.- Returns:
- Result of the ListAnalyzedResources operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAnalyzedResourcesPaginator
default ListAnalyzedResourcesIterable listAnalyzedResourcesPaginator(ListAnalyzedResourcesRequest listAnalyzedResourcesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listAnalyzedResources(software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzedResourcesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzedResourcesIterable responses = client.listAnalyzedResourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzedResourcesIterable responses = client .listAnalyzedResourcesPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzedResourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzedResourcesIterable responses = client.listAnalyzedResourcesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAnalyzedResources(software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzedResourcesRequest)operation.- Parameters:
listAnalyzedResourcesRequest- Retrieves a list of resources that have been analyzed.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAnalyzedResourcesPaginator
default ListAnalyzedResourcesIterable listAnalyzedResourcesPaginator(Consumer<ListAnalyzedResourcesRequest.Builder> listAnalyzedResourcesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listAnalyzedResources(software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzedResourcesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzedResourcesIterable responses = client.listAnalyzedResourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzedResourcesIterable responses = client .listAnalyzedResourcesPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzedResourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzedResourcesIterable responses = client.listAnalyzedResourcesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAnalyzedResources(software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzedResourcesRequest)operation.
This is a convenience which creates an instance of the
ListAnalyzedResourcesRequest.Builderavoiding the need to create one manually viaListAnalyzedResourcesRequest.builder()- Parameters:
listAnalyzedResourcesRequest- AConsumerthat will call methods onListAnalyzedResourcesRequest.Builderto create a request. Retrieves a list of resources that have been analyzed.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAnalyzers
default ListAnalyzersResponse listAnalyzers(ListAnalyzersRequest listAnalyzersRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of analyzers.
- Parameters:
listAnalyzersRequest- Retrieves a list of analyzers.- Returns:
- Result of the ListAnalyzers operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAnalyzers
default ListAnalyzersResponse listAnalyzers(Consumer<ListAnalyzersRequest.Builder> listAnalyzersRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of analyzers.
This is a convenience which creates an instance of the
ListAnalyzersRequest.Builderavoiding the need to create one manually viaListAnalyzersRequest.builder()- Parameters:
listAnalyzersRequest- AConsumerthat will call methods onListAnalyzersRequest.Builderto create a request. Retrieves a list of analyzers.- Returns:
- Result of the ListAnalyzers operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAnalyzersPaginator
default ListAnalyzersIterable listAnalyzersPaginator(ListAnalyzersRequest listAnalyzersRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listAnalyzers(software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzersIterable responses = client.listAnalyzersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzersIterable responses = client .listAnalyzersPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzersIterable responses = client.listAnalyzersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAnalyzers(software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzersRequest)operation.- Parameters:
listAnalyzersRequest- Retrieves a list of analyzers.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAnalyzersPaginator
default ListAnalyzersIterable listAnalyzersPaginator(Consumer<ListAnalyzersRequest.Builder> listAnalyzersRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listAnalyzers(software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzersIterable responses = client.listAnalyzersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzersIterable responses = client .listAnalyzersPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzersIterable responses = client.listAnalyzersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAnalyzers(software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzersRequest)operation.
This is a convenience which creates an instance of the
ListAnalyzersRequest.Builderavoiding the need to create one manually viaListAnalyzersRequest.builder()- Parameters:
listAnalyzersRequest- AConsumerthat will call methods onListAnalyzersRequest.Builderto create a request. Retrieves a list of analyzers.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listArchiveRules
default ListArchiveRulesResponse listArchiveRules(ListArchiveRulesRequest listArchiveRulesRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of archive rules created for the specified analyzer.
- Parameters:
listArchiveRulesRequest- Retrieves a list of archive rules created for the specified analyzer.- Returns:
- Result of the ListArchiveRules operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listArchiveRules
default ListArchiveRulesResponse listArchiveRules(Consumer<ListArchiveRulesRequest.Builder> listArchiveRulesRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of archive rules created for the specified analyzer.
This is a convenience which creates an instance of the
ListArchiveRulesRequest.Builderavoiding the need to create one manually viaListArchiveRulesRequest.builder()- Parameters:
listArchiveRulesRequest- AConsumerthat will call methods onListArchiveRulesRequest.Builderto create a request. Retrieves a list of archive rules created for the specified analyzer.- Returns:
- Result of the ListArchiveRules operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listArchiveRulesPaginator
default ListArchiveRulesIterable listArchiveRulesPaginator(ListArchiveRulesRequest listArchiveRulesRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listArchiveRules(software.amazon.awssdk.services.accessanalyzer.model.ListArchiveRulesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListArchiveRulesIterable responses = client.listArchiveRulesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListArchiveRulesIterable responses = client .listArchiveRulesPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListArchiveRulesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListArchiveRulesIterable responses = client.listArchiveRulesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listArchiveRules(software.amazon.awssdk.services.accessanalyzer.model.ListArchiveRulesRequest)operation.- Parameters:
listArchiveRulesRequest- Retrieves a list of archive rules created for the specified analyzer.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listArchiveRulesPaginator
default ListArchiveRulesIterable listArchiveRulesPaginator(Consumer<ListArchiveRulesRequest.Builder> listArchiveRulesRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listArchiveRules(software.amazon.awssdk.services.accessanalyzer.model.ListArchiveRulesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListArchiveRulesIterable responses = client.listArchiveRulesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListArchiveRulesIterable responses = client .listArchiveRulesPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListArchiveRulesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListArchiveRulesIterable responses = client.listArchiveRulesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listArchiveRules(software.amazon.awssdk.services.accessanalyzer.model.ListArchiveRulesRequest)operation.
This is a convenience which creates an instance of the
ListArchiveRulesRequest.Builderavoiding the need to create one manually viaListArchiveRulesRequest.builder()- Parameters:
listArchiveRulesRequest- AConsumerthat will call methods onListArchiveRulesRequest.Builderto create a request. Retrieves a list of archive rules created for the specified analyzer.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindings
default ListFindingsResponse listFindings(ListFindingsRequest listFindingsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of findings generated by the specified analyzer. ListFindings and ListFindingsV2 both use
access-analyzer:ListFindingsin theActionelement of an IAM policy statement. You must have permission to perform theaccess-analyzer:ListFindingsaction.To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
- Parameters:
listFindingsRequest- Retrieves a list of findings generated by the specified analyzer.- Returns:
- Result of the ListFindings operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindings
default ListFindingsResponse listFindings(Consumer<ListFindingsRequest.Builder> listFindingsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of findings generated by the specified analyzer. ListFindings and ListFindingsV2 both use
access-analyzer:ListFindingsin theActionelement of an IAM policy statement. You must have permission to perform theaccess-analyzer:ListFindingsaction.To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
This is a convenience which creates an instance of the
ListFindingsRequest.Builderavoiding the need to create one manually viaListFindingsRequest.builder()- Parameters:
listFindingsRequest- AConsumerthat will call methods onListFindingsRequest.Builderto create a request. Retrieves a list of findings generated by the specified analyzer.- Returns:
- Result of the ListFindings operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindingsPaginator
default ListFindingsIterable listFindingsPaginator(ListFindingsRequest listFindingsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listFindings(software.amazon.awssdk.services.accessanalyzer.model.ListFindingsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsIterable responses = client .listFindingsPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListFindingsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFindings(software.amazon.awssdk.services.accessanalyzer.model.ListFindingsRequest)operation.- Parameters:
listFindingsRequest- Retrieves a list of findings generated by the specified analyzer.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindingsPaginator
default ListFindingsIterable listFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listFindings(software.amazon.awssdk.services.accessanalyzer.model.ListFindingsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsIterable responses = client .listFindingsPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListFindingsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFindings(software.amazon.awssdk.services.accessanalyzer.model.ListFindingsRequest)operation.
This is a convenience which creates an instance of the
ListFindingsRequest.Builderavoiding the need to create one manually viaListFindingsRequest.builder()- Parameters:
listFindingsRequest- AConsumerthat will call methods onListFindingsRequest.Builderto create a request. Retrieves a list of findings generated by the specified analyzer.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindingsV2
default ListFindingsV2Response listFindingsV2(ListFindingsV2Request listFindingsV2Request) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of findings generated by the specified analyzer. ListFindings and ListFindingsV2 both use
access-analyzer:ListFindingsin theActionelement of an IAM policy statement. You must have permission to perform theaccess-analyzer:ListFindingsaction.To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
- Parameters:
listFindingsV2Request-- Returns:
- Result of the ListFindingsV2 operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindingsV2
default ListFindingsV2Response listFindingsV2(Consumer<ListFindingsV2Request.Builder> listFindingsV2Request) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of findings generated by the specified analyzer. ListFindings and ListFindingsV2 both use
access-analyzer:ListFindingsin theActionelement of an IAM policy statement. You must have permission to perform theaccess-analyzer:ListFindingsaction.To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
This is a convenience which creates an instance of the
ListFindingsV2Request.Builderavoiding the need to create one manually viaListFindingsV2Request.builder()- Parameters:
listFindingsV2Request- AConsumerthat will call methods onListFindingsV2Request.Builderto create a request.- Returns:
- Result of the ListFindingsV2 operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindingsV2Paginator
default ListFindingsV2Iterable listFindingsV2Paginator(ListFindingsV2Request listFindingsV2Request) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listFindingsV2(software.amazon.awssdk.services.accessanalyzer.model.ListFindingsV2Request)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsV2Iterable responses = client.listFindingsV2Paginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsV2Iterable responses = client .listFindingsV2Paginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListFindingsV2Response response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsV2Iterable responses = client.listFindingsV2Paginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFindingsV2(software.amazon.awssdk.services.accessanalyzer.model.ListFindingsV2Request)operation.- Parameters:
listFindingsV2Request-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindingsV2Paginator
default ListFindingsV2Iterable listFindingsV2Paginator(Consumer<ListFindingsV2Request.Builder> listFindingsV2Request) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listFindingsV2(software.amazon.awssdk.services.accessanalyzer.model.ListFindingsV2Request)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsV2Iterable responses = client.listFindingsV2Paginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsV2Iterable responses = client .listFindingsV2Paginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListFindingsV2Response response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsV2Iterable responses = client.listFindingsV2Paginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFindingsV2(software.amazon.awssdk.services.accessanalyzer.model.ListFindingsV2Request)operation.
This is a convenience which creates an instance of the
ListFindingsV2Request.Builderavoiding the need to create one manually viaListFindingsV2Request.builder()- Parameters:
listFindingsV2Request- AConsumerthat will call methods onListFindingsV2Request.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPolicyGenerations
default ListPolicyGenerationsResponse listPolicyGenerations(ListPolicyGenerationsRequest listPolicyGenerationsRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Lists all of the policy generations requested in the last seven days.
- Parameters:
listPolicyGenerationsRequest-- Returns:
- Result of the ListPolicyGenerations operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPolicyGenerations
default ListPolicyGenerationsResponse listPolicyGenerations(Consumer<ListPolicyGenerationsRequest.Builder> listPolicyGenerationsRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Lists all of the policy generations requested in the last seven days.
This is a convenience which creates an instance of the
ListPolicyGenerationsRequest.Builderavoiding the need to create one manually viaListPolicyGenerationsRequest.builder()- Parameters:
listPolicyGenerationsRequest- AConsumerthat will call methods onListPolicyGenerationsRequest.Builderto create a request.- Returns:
- Result of the ListPolicyGenerations operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPolicyGenerationsPaginator
default ListPolicyGenerationsIterable listPolicyGenerationsPaginator(ListPolicyGenerationsRequest listPolicyGenerationsRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listPolicyGenerations(software.amazon.awssdk.services.accessanalyzer.model.ListPolicyGenerationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListPolicyGenerationsIterable responses = client.listPolicyGenerationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListPolicyGenerationsIterable responses = client .listPolicyGenerationsPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListPolicyGenerationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListPolicyGenerationsIterable responses = client.listPolicyGenerationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPolicyGenerations(software.amazon.awssdk.services.accessanalyzer.model.ListPolicyGenerationsRequest)operation.- Parameters:
listPolicyGenerationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPolicyGenerationsPaginator
default ListPolicyGenerationsIterable listPolicyGenerationsPaginator(Consumer<ListPolicyGenerationsRequest.Builder> listPolicyGenerationsRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
listPolicyGenerations(software.amazon.awssdk.services.accessanalyzer.model.ListPolicyGenerationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ListPolicyGenerationsIterable responses = client.listPolicyGenerationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ListPolicyGenerationsIterable responses = client .listPolicyGenerationsPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ListPolicyGenerationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ListPolicyGenerationsIterable responses = client.listPolicyGenerationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPolicyGenerations(software.amazon.awssdk.services.accessanalyzer.model.ListPolicyGenerationsRequest)operation.
This is a convenience which creates an instance of the
ListPolicyGenerationsRequest.Builderavoiding the need to create one manually viaListPolicyGenerationsRequest.builder()- Parameters:
listPolicyGenerationsRequest- AConsumerthat will call methods onListPolicyGenerationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of tags applied to the specified resource.
- Parameters:
listTagsForResourceRequest- Retrieves a list of tags applied to the specified resource.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of tags applied to the specified resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request. Retrieves a list of tags applied to the specified resource.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
startPolicyGeneration
default StartPolicyGenerationResponse startPolicyGeneration(StartPolicyGenerationRequest startPolicyGenerationRequest) throws ConflictException, ValidationException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Starts the policy generation request.
- Parameters:
startPolicyGenerationRequest-- Returns:
- Result of the StartPolicyGeneration operation returned by the service.
- Throws:
ConflictException- A conflict exception error.ValidationException- Validation exception error.InternalServerException- Internal server error.ServiceQuotaExceededException- Service quote met error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
startPolicyGeneration
default StartPolicyGenerationResponse startPolicyGeneration(Consumer<StartPolicyGenerationRequest.Builder> startPolicyGenerationRequest) throws ConflictException, ValidationException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Starts the policy generation request.
This is a convenience which creates an instance of the
StartPolicyGenerationRequest.Builderavoiding the need to create one manually viaStartPolicyGenerationRequest.builder()- Parameters:
startPolicyGenerationRequest- AConsumerthat will call methods onStartPolicyGenerationRequest.Builderto create a request.- Returns:
- Result of the StartPolicyGeneration operation returned by the service.
- Throws:
ConflictException- A conflict exception error.ValidationException- Validation exception error.InternalServerException- Internal server error.ServiceQuotaExceededException- Service quote met error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
startResourceScan
default StartResourceScanResponse startResourceScan(StartResourceScanRequest startResourceScanRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Immediately starts a scan of the policies applied to the specified resource.
- Parameters:
startResourceScanRequest- Starts a scan of the policies applied to the specified resource.- Returns:
- Result of the StartResourceScan operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
startResourceScan
default StartResourceScanResponse startResourceScan(Consumer<StartResourceScanRequest.Builder> startResourceScanRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Immediately starts a scan of the policies applied to the specified resource.
This is a convenience which creates an instance of the
StartResourceScanRequest.Builderavoiding the need to create one manually viaStartResourceScanRequest.builder()- Parameters:
startResourceScanRequest- AConsumerthat will call methods onStartResourceScanRequest.Builderto create a request. Starts a scan of the policies applied to the specified resource.- Returns:
- Result of the StartResourceScan operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Adds a tag to the specified resource.
- Parameters:
tagResourceRequest- Adds a tag to the specified resource.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Adds a tag to the specified resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request. Adds a tag to the specified resource.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Removes a tag from the specified resource.
- Parameters:
untagResourceRequest- Removes a tag from the specified resource.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Removes a tag from the specified resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request. Removes a tag from the specified resource.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateArchiveRule
default UpdateArchiveRuleResponse updateArchiveRule(UpdateArchiveRuleRequest updateArchiveRuleRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Updates the criteria and values for the specified archive rule.
- Parameters:
updateArchiveRuleRequest- Updates the specified archive rule.- Returns:
- Result of the UpdateArchiveRule operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateArchiveRule
default UpdateArchiveRuleResponse updateArchiveRule(Consumer<UpdateArchiveRuleRequest.Builder> updateArchiveRuleRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Updates the criteria and values for the specified archive rule.
This is a convenience which creates an instance of the
UpdateArchiveRuleRequest.Builderavoiding the need to create one manually viaUpdateArchiveRuleRequest.builder()- Parameters:
updateArchiveRuleRequest- AConsumerthat will call methods onUpdateArchiveRuleRequest.Builderto create a request. Updates the specified archive rule.- Returns:
- Result of the UpdateArchiveRule operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateFindings
default UpdateFindingsResponse updateFindings(UpdateFindingsRequest updateFindingsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Updates the status for the specified findings.
- Parameters:
updateFindingsRequest- Updates findings with the new values provided in the request.- Returns:
- Result of the UpdateFindings operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateFindings
default UpdateFindingsResponse updateFindings(Consumer<UpdateFindingsRequest.Builder> updateFindingsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Updates the status for the specified findings.
This is a convenience which creates an instance of the
UpdateFindingsRequest.Builderavoiding the need to create one manually viaUpdateFindingsRequest.builder()- Parameters:
updateFindingsRequest- AConsumerthat will call methods onUpdateFindingsRequest.Builderto create a request. Updates findings with the new values provided in the request.- Returns:
- Result of the UpdateFindings operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource could not be found.ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
validatePolicy
default ValidatePolicyResponse validatePolicy(ValidatePolicyRequest validatePolicyRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Requests the validation of a policy and returns a list of findings. The findings help you identify issues and provide actionable recommendations to resolve the issue and enable you to author functional policies that meet security best practices.
- Parameters:
validatePolicyRequest-- Returns:
- Result of the ValidatePolicy operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
validatePolicy
default ValidatePolicyResponse validatePolicy(Consumer<ValidatePolicyRequest.Builder> validatePolicyRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Requests the validation of a policy and returns a list of findings. The findings help you identify issues and provide actionable recommendations to resolve the issue and enable you to author functional policies that meet security best practices.
This is a convenience which creates an instance of the
ValidatePolicyRequest.Builderavoiding the need to create one manually viaValidatePolicyRequest.builder()- Parameters:
validatePolicyRequest- AConsumerthat will call methods onValidatePolicyRequest.Builderto create a request.- Returns:
- Result of the ValidatePolicy operation returned by the service.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
validatePolicyPaginator
default ValidatePolicyIterable validatePolicyPaginator(ValidatePolicyRequest validatePolicyRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
validatePolicy(software.amazon.awssdk.services.accessanalyzer.model.ValidatePolicyRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ValidatePolicyIterable responses = client.validatePolicyPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ValidatePolicyIterable responses = client .validatePolicyPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ValidatePolicyResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ValidatePolicyIterable responses = client.validatePolicyPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
validatePolicy(software.amazon.awssdk.services.accessanalyzer.model.ValidatePolicyRequest)operation.- Parameters:
validatePolicyRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
validatePolicyPaginator
default ValidatePolicyIterable validatePolicyPaginator(Consumer<ValidatePolicyRequest.Builder> validatePolicyRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
This is a variant of
validatePolicy(software.amazon.awssdk.services.accessanalyzer.model.ValidatePolicyRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.accessanalyzer.paginators.ValidatePolicyIterable responses = client.validatePolicyPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accessanalyzer.paginators.ValidatePolicyIterable responses = client .validatePolicyPaginator(request); for (software.amazon.awssdk.services.accessanalyzer.model.ValidatePolicyResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accessanalyzer.paginators.ValidatePolicyIterable responses = client.validatePolicyPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
validatePolicy(software.amazon.awssdk.services.accessanalyzer.model.ValidatePolicyRequest)operation.
This is a convenience which creates an instance of the
ValidatePolicyRequest.Builderavoiding the need to create one manually viaValidatePolicyRequest.builder()- Parameters:
validatePolicyRequest- AConsumerthat will call methods onValidatePolicyRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- Validation exception error.InternalServerException- Internal server error.ThrottlingException- Throttling limit exceeded error.AccessDeniedException- You do not have sufficient access to perform this action.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.AccessAnalyzerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static AccessAnalyzerClient create()
Create aAccessAnalyzerClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static AccessAnalyzerClientBuilder builder()
Create a builder that can be used to configure and create aAccessAnalyzerClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default AccessAnalyzerServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-