@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface AccessAnalyzerClient extends SdkClient
builder() method.
Identity and Access Management Access Analyzer helps identify potential resource-access risks by enabling you to identify any 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 and validate public and cross-account access to your resources before deploying permissions changes. This guide describes the Identity and Access Management 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.
To start using IAM Access Analyzer, you first need to create an analyzer.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
default ApplyArchiveRuleResponse |
applyArchiveRule(ApplyArchiveRuleRequest applyArchiveRuleRequest)
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
|
default ApplyArchiveRuleResponse |
applyArchiveRule(Consumer<ApplyArchiveRuleRequest.Builder> applyArchiveRuleRequest)
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
|
static AccessAnalyzerClientBuilder |
builder()
Create a builder that can be used to configure and create a
AccessAnalyzerClient. |
default CancelPolicyGenerationResponse |
cancelPolicyGeneration(CancelPolicyGenerationRequest cancelPolicyGenerationRequest)
Cancels the requested policy generation.
|
default CancelPolicyGenerationResponse |
cancelPolicyGeneration(Consumer<CancelPolicyGenerationRequest.Builder> cancelPolicyGenerationRequest)
Cancels the requested policy generation.
|
static AccessAnalyzerClient |
create()
Create a
AccessAnalyzerClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateAccessPreviewResponse |
createAccessPreview(Consumer<CreateAccessPreviewRequest.Builder> createAccessPreviewRequest)
Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before
deploying resource permissions.
|
default CreateAccessPreviewResponse |
createAccessPreview(CreateAccessPreviewRequest createAccessPreviewRequest)
Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before
deploying resource permissions.
|
default CreateAnalyzerResponse |
createAnalyzer(Consumer<CreateAnalyzerRequest.Builder> createAnalyzerRequest)
Creates an analyzer for your account.
|
default CreateAnalyzerResponse |
createAnalyzer(CreateAnalyzerRequest createAnalyzerRequest)
Creates an analyzer for your account.
|
default CreateArchiveRuleResponse |
createArchiveRule(Consumer<CreateArchiveRuleRequest.Builder> createArchiveRuleRequest)
Creates an archive rule for the specified analyzer.
|
default CreateArchiveRuleResponse |
createArchiveRule(CreateArchiveRuleRequest createArchiveRuleRequest)
Creates an archive rule for the specified analyzer.
|
default DeleteAnalyzerResponse |
deleteAnalyzer(Consumer<DeleteAnalyzerRequest.Builder> deleteAnalyzerRequest)
Deletes the specified analyzer.
|
default DeleteAnalyzerResponse |
deleteAnalyzer(DeleteAnalyzerRequest deleteAnalyzerRequest)
Deletes the specified analyzer.
|
default DeleteArchiveRuleResponse |
deleteArchiveRule(Consumer<DeleteArchiveRuleRequest.Builder> deleteArchiveRuleRequest)
Deletes the specified archive rule.
|
default DeleteArchiveRuleResponse |
deleteArchiveRule(DeleteArchiveRuleRequest deleteArchiveRuleRequest)
Deletes the specified archive rule.
|
default GetAccessPreviewResponse |
getAccessPreview(Consumer<GetAccessPreviewRequest.Builder> getAccessPreviewRequest)
Retrieves information about an access preview for the specified analyzer.
|
default GetAccessPreviewResponse |
getAccessPreview(GetAccessPreviewRequest getAccessPreviewRequest)
Retrieves information about an access preview for the specified analyzer.
|
default GetAnalyzedResourceResponse |
getAnalyzedResource(Consumer<GetAnalyzedResourceRequest.Builder> getAnalyzedResourceRequest)
Retrieves information about a resource that was analyzed.
|
default GetAnalyzedResourceResponse |
getAnalyzedResource(GetAnalyzedResourceRequest getAnalyzedResourceRequest)
Retrieves information about a resource that was analyzed.
|
default GetAnalyzerResponse |
getAnalyzer(Consumer<GetAnalyzerRequest.Builder> getAnalyzerRequest)
Retrieves information about the specified analyzer.
|
default GetAnalyzerResponse |
getAnalyzer(GetAnalyzerRequest getAnalyzerRequest)
Retrieves information about the specified analyzer.
|
default GetArchiveRuleResponse |
getArchiveRule(Consumer<GetArchiveRuleRequest.Builder> getArchiveRuleRequest)
Retrieves information about an archive rule.
|
default GetArchiveRuleResponse |
getArchiveRule(GetArchiveRuleRequest getArchiveRuleRequest)
Retrieves information about an archive rule.
|
default GetFindingResponse |
getFinding(Consumer<GetFindingRequest.Builder> getFindingRequest)
Retrieves information about the specified finding.
|
default GetFindingResponse |
getFinding(GetFindingRequest getFindingRequest)
Retrieves information about the specified finding.
|
default GetGeneratedPolicyResponse |
getGeneratedPolicy(Consumer<GetGeneratedPolicyRequest.Builder> getGeneratedPolicyRequest)
Retrieves the policy that was generated using
StartPolicyGeneration. |
default GetGeneratedPolicyResponse |
getGeneratedPolicy(GetGeneratedPolicyRequest getGeneratedPolicyRequest)
Retrieves the policy that was generated using
StartPolicyGeneration. |
default ListAccessPreviewFindingsResponse |
listAccessPreviewFindings(Consumer<ListAccessPreviewFindingsRequest.Builder> listAccessPreviewFindingsRequest)
Retrieves a list of access preview findings generated by the specified access preview.
|
default ListAccessPreviewFindingsResponse |
listAccessPreviewFindings(ListAccessPreviewFindingsRequest listAccessPreviewFindingsRequest)
Retrieves a list of access preview findings generated by the specified access preview.
|
default ListAccessPreviewFindingsIterable |
listAccessPreviewFindingsPaginator(Consumer<ListAccessPreviewFindingsRequest.Builder> listAccessPreviewFindingsRequest)
Retrieves a list of access preview findings generated by the specified access preview.
|
default ListAccessPreviewFindingsIterable |
listAccessPreviewFindingsPaginator(ListAccessPreviewFindingsRequest listAccessPreviewFindingsRequest)
Retrieves a list of access preview findings generated by the specified access preview.
|
default ListAccessPreviewsResponse |
listAccessPreviews(Consumer<ListAccessPreviewsRequest.Builder> listAccessPreviewsRequest)
Retrieves a list of access previews for the specified analyzer.
|
default ListAccessPreviewsResponse |
listAccessPreviews(ListAccessPreviewsRequest listAccessPreviewsRequest)
Retrieves a list of access previews for the specified analyzer.
|
default ListAccessPreviewsIterable |
listAccessPreviewsPaginator(Consumer<ListAccessPreviewsRequest.Builder> listAccessPreviewsRequest)
Retrieves a list of access previews for the specified analyzer.
|
default ListAccessPreviewsIterable |
listAccessPreviewsPaginator(ListAccessPreviewsRequest listAccessPreviewsRequest)
Retrieves a list of access previews for the specified analyzer.
|
default ListAnalyzedResourcesResponse |
listAnalyzedResources(Consumer<ListAnalyzedResourcesRequest.Builder> listAnalyzedResourcesRequest)
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
|
default ListAnalyzedResourcesResponse |
listAnalyzedResources(ListAnalyzedResourcesRequest listAnalyzedResourcesRequest)
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
|
default ListAnalyzedResourcesIterable |
listAnalyzedResourcesPaginator(Consumer<ListAnalyzedResourcesRequest.Builder> listAnalyzedResourcesRequest)
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
|
default ListAnalyzedResourcesIterable |
listAnalyzedResourcesPaginator(ListAnalyzedResourcesRequest listAnalyzedResourcesRequest)
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
|
default ListAnalyzersResponse |
listAnalyzers(Consumer<ListAnalyzersRequest.Builder> listAnalyzersRequest)
Retrieves a list of analyzers.
|
default ListAnalyzersResponse |
listAnalyzers(ListAnalyzersRequest listAnalyzersRequest)
Retrieves a list of analyzers.
|
default ListAnalyzersIterable |
listAnalyzersPaginator(Consumer<ListAnalyzersRequest.Builder> listAnalyzersRequest)
Retrieves a list of analyzers.
|
default ListAnalyzersIterable |
listAnalyzersPaginator(ListAnalyzersRequest listAnalyzersRequest)
Retrieves a list of analyzers.
|
default ListArchiveRulesResponse |
listArchiveRules(Consumer<ListArchiveRulesRequest.Builder> listArchiveRulesRequest)
Retrieves a list of archive rules created for the specified analyzer.
|
default ListArchiveRulesResponse |
listArchiveRules(ListArchiveRulesRequest listArchiveRulesRequest)
Retrieves a list of archive rules created for the specified analyzer.
|
default ListArchiveRulesIterable |
listArchiveRulesPaginator(Consumer<ListArchiveRulesRequest.Builder> listArchiveRulesRequest)
Retrieves a list of archive rules created for the specified analyzer.
|
default ListArchiveRulesIterable |
listArchiveRulesPaginator(ListArchiveRulesRequest listArchiveRulesRequest)
Retrieves a list of archive rules created for the specified analyzer.
|
default ListFindingsResponse |
listFindings(Consumer<ListFindingsRequest.Builder> listFindingsRequest)
Retrieves a list of findings generated by the specified analyzer.
|
default ListFindingsResponse |
listFindings(ListFindingsRequest listFindingsRequest)
Retrieves a list of findings generated by the specified analyzer.
|
default ListFindingsIterable |
listFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest)
Retrieves a list of findings generated by the specified analyzer.
|
default ListFindingsIterable |
listFindingsPaginator(ListFindingsRequest listFindingsRequest)
Retrieves a list of findings generated by the specified analyzer.
|
default ListPolicyGenerationsResponse |
listPolicyGenerations(Consumer<ListPolicyGenerationsRequest.Builder> listPolicyGenerationsRequest)
Lists all of the policy generations requested in the last seven days.
|
default ListPolicyGenerationsResponse |
listPolicyGenerations(ListPolicyGenerationsRequest listPolicyGenerationsRequest)
Lists all of the policy generations requested in the last seven days.
|
default ListPolicyGenerationsIterable |
listPolicyGenerationsPaginator(Consumer<ListPolicyGenerationsRequest.Builder> listPolicyGenerationsRequest)
Lists all of the policy generations requested in the last seven days.
|
default ListPolicyGenerationsIterable |
listPolicyGenerationsPaginator(ListPolicyGenerationsRequest listPolicyGenerationsRequest)
Lists all of the policy generations requested in the last seven days.
|
default ListTagsForResourceResponse |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Retrieves a list of tags applied to the specified resource.
|
default ListTagsForResourceResponse |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Retrieves a list of tags applied to the specified resource.
|
static ServiceMetadata |
serviceMetadata() |
default StartPolicyGenerationResponse |
startPolicyGeneration(Consumer<StartPolicyGenerationRequest.Builder> startPolicyGenerationRequest)
Starts the policy generation request.
|
default StartPolicyGenerationResponse |
startPolicyGeneration(StartPolicyGenerationRequest startPolicyGenerationRequest)
Starts the policy generation request.
|
default StartResourceScanResponse |
startResourceScan(Consumer<StartResourceScanRequest.Builder> startResourceScanRequest)
Immediately starts a scan of the policies applied to the specified resource.
|
default StartResourceScanResponse |
startResourceScan(StartResourceScanRequest startResourceScanRequest)
Immediately starts a scan of the policies applied to the specified resource.
|
default TagResourceResponse |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds a tag to the specified resource.
|
default TagResourceResponse |
tagResource(TagResourceRequest tagResourceRequest)
Adds a tag to the specified resource.
|
default UntagResourceResponse |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes a tag from the specified resource.
|
default UntagResourceResponse |
untagResource(UntagResourceRequest untagResourceRequest)
Removes a tag from the specified resource.
|
default UpdateArchiveRuleResponse |
updateArchiveRule(Consumer<UpdateArchiveRuleRequest.Builder> updateArchiveRuleRequest)
Updates the criteria and values for the specified archive rule.
|
default UpdateArchiveRuleResponse |
updateArchiveRule(UpdateArchiveRuleRequest updateArchiveRuleRequest)
Updates the criteria and values for the specified archive rule.
|
default UpdateFindingsResponse |
updateFindings(Consumer<UpdateFindingsRequest.Builder> updateFindingsRequest)
Updates the status for the specified findings.
|
default UpdateFindingsResponse |
updateFindings(UpdateFindingsRequest updateFindingsRequest)
Updates the status for the specified findings.
|
default ValidatePolicyResponse |
validatePolicy(Consumer<ValidatePolicyRequest.Builder> validatePolicyRequest)
Requests the validation of a policy and returns a list of findings.
|
default ValidatePolicyResponse |
validatePolicy(ValidatePolicyRequest validatePolicyRequest)
Requests the validation of a policy and returns a list of findings.
|
default ValidatePolicyIterable |
validatePolicyPaginator(Consumer<ValidatePolicyRequest.Builder> validatePolicyRequest)
Requests the validation of a policy and returns a list of findings.
|
default ValidatePolicyIterable |
validatePolicyPaginator(ValidatePolicyRequest validatePolicyRequest)
Requests the validation of a policy and returns a list of findings.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.static AccessAnalyzerClient create()
AccessAnalyzerClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static AccessAnalyzerClientBuilder builder()
AccessAnalyzerClient.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.
applyArchiveRuleRequest - Retroactively applies an archive rule.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.AwsServiceExceptiondefault 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.Builder avoiding the need
to create one manually via ApplyArchiveRuleRequest.builder()
applyArchiveRuleRequest - A Consumer that will call methods on ApplyArchiveRuleRequest.Builder to create a request.
Retroactively applies an archive rule.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.AwsServiceExceptiondefault CancelPolicyGenerationResponse cancelPolicyGeneration(CancelPolicyGenerationRequest cancelPolicyGenerationRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Cancels the requested policy generation.
cancelPolicyGenerationRequest - 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.AwsServiceExceptiondefault 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.Builder avoiding the
need to create one manually via CancelPolicyGenerationRequest.builder()
cancelPolicyGenerationRequest - A Consumer that will call methods on CancelPolicyGenerationRequest.Builder to create a
request.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.AwsServiceExceptiondefault 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.
createAccessPreviewRequest - 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.AwsServiceExceptiondefault 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.Builder avoiding the
need to create one manually via CreateAccessPreviewRequest.builder()
createAccessPreviewRequest - A Consumer that will call methods on CreateAccessPreviewRequest.Builder to create a
request.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.AwsServiceExceptiondefault CreateAnalyzerResponse createAnalyzer(CreateAnalyzerRequest createAnalyzerRequest) throws ConflictException, ValidationException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Creates an analyzer for your account.
createAnalyzerRequest - Creates an analyzer.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.AwsServiceExceptiondefault 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.Builder avoiding the need to
create one manually via CreateAnalyzerRequest.builder()
createAnalyzerRequest - A Consumer that will call methods on CreateAnalyzerRequest.Builder to create a request.
Creates an analyzer.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.AwsServiceExceptiondefault 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.
createArchiveRuleRequest - Creates an archive rule.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.AwsServiceExceptiondefault 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.Builder avoiding the need
to create one manually via CreateArchiveRuleRequest.builder()
createArchiveRuleRequest - A Consumer that will call methods on CreateArchiveRuleRequest.Builder to create a request.
Creates an archive rule.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.AwsServiceExceptiondefault 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.
deleteAnalyzerRequest - Deletes an analyzer.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.AwsServiceExceptiondefault 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.Builder avoiding the need to
create one manually via DeleteAnalyzerRequest.builder()
deleteAnalyzerRequest - A Consumer that will call methods on DeleteAnalyzerRequest.Builder to create a request.
Deletes an analyzer.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.AwsServiceExceptiondefault DeleteArchiveRuleResponse deleteArchiveRule(DeleteArchiveRuleRequest deleteArchiveRuleRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Deletes the specified archive rule.
deleteArchiveRuleRequest - Deletes an archive rule.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.AwsServiceExceptiondefault 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.Builder avoiding the need
to create one manually via DeleteArchiveRuleRequest.builder()
deleteArchiveRuleRequest - A Consumer that will call methods on DeleteArchiveRuleRequest.Builder to create a request.
Deletes an archive rule.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.AwsServiceExceptiondefault GetAccessPreviewResponse getAccessPreview(GetAccessPreviewRequest getAccessPreviewRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about an access preview for the specified analyzer.
getAccessPreviewRequest - 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.AwsServiceExceptiondefault 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.Builder avoiding the need
to create one manually via GetAccessPreviewRequest.builder()
getAccessPreviewRequest - A Consumer that will call methods on GetAccessPreviewRequest.Builder to create a request.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.AwsServiceExceptiondefault GetAnalyzedResourceResponse getAnalyzedResource(GetAnalyzedResourceRequest getAnalyzedResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about a resource that was analyzed.
getAnalyzedResourceRequest - Retrieves an analyzed resource.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.AwsServiceExceptiondefault 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.Builder avoiding the
need to create one manually via GetAnalyzedResourceRequest.builder()
getAnalyzedResourceRequest - A Consumer that will call methods on GetAnalyzedResourceRequest.Builder to create a
request. Retrieves an analyzed resource.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.AwsServiceExceptiondefault GetAnalyzerResponse getAnalyzer(GetAnalyzerRequest getAnalyzerRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about the specified analyzer.
getAnalyzerRequest - Retrieves an analyzer.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.AwsServiceExceptiondefault 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.Builder avoiding the need to
create one manually via GetAnalyzerRequest.builder()
getAnalyzerRequest - A Consumer that will call methods on GetAnalyzerRequest.Builder to create a request.
Retrieves an analyzer.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.AwsServiceExceptiondefault 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.
getArchiveRuleRequest - Retrieves an archive rule.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.AwsServiceExceptiondefault 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.Builder avoiding the need to
create one manually via GetArchiveRuleRequest.builder()
getArchiveRuleRequest - A Consumer that will call methods on GetArchiveRuleRequest.Builder to create a request.
Retrieves an archive rule.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.AwsServiceExceptiondefault GetFindingResponse getFinding(GetFindingRequest getFindingRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about the specified finding.
getFindingRequest - Retrieves a finding.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.AwsServiceExceptiondefault GetFindingResponse getFinding(Consumer<GetFindingRequest.Builder> getFindingRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves information about the specified finding.
This is a convenience which creates an instance of the GetFindingRequest.Builder avoiding the need to
create one manually via GetFindingRequest.builder()
getFindingRequest - A Consumer that will call methods on GetFindingRequest.Builder to create a request.
Retrieves a finding.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.AwsServiceExceptiondefault GetGeneratedPolicyResponse getGeneratedPolicy(GetGeneratedPolicyRequest getGeneratedPolicyRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves the policy that was generated using StartPolicyGeneration.
getGeneratedPolicyRequest - 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.AwsServiceExceptiondefault 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.Builder avoiding the
need to create one manually via GetGeneratedPolicyRequest.builder()
getGeneratedPolicyRequest - A Consumer that will call methods on GetGeneratedPolicyRequest.Builder to create a
request.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.AwsServiceExceptiondefault 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.
listAccessPreviewFindingsRequest - 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.AwsServiceExceptiondefault 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.Builder avoiding
the need to create one manually via ListAccessPreviewFindingsRequest.builder()
listAccessPreviewFindingsRequest - A Consumer that will call methods on ListAccessPreviewFindingsRequest.Builder to create a
request.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.AwsServiceExceptiondefault ListAccessPreviewFindingsIterable listAccessPreviewFindingsPaginator(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.
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
software.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewFindingsIterable responses = client.listAccessPreviewFindingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.
listAccessPreviewFindingsRequest - 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.AwsServiceExceptiondefault ListAccessPreviewFindingsIterable listAccessPreviewFindingsPaginator(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 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
software.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewFindingsIterable responses = client.listAccessPreviewFindingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.Builder avoiding
the need to create one manually via ListAccessPreviewFindingsRequest.builder()
listAccessPreviewFindingsRequest - A Consumer that will call methods on ListAccessPreviewFindingsRequest.Builder to create a
request.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.AwsServiceExceptiondefault ListAccessPreviewsResponse listAccessPreviews(ListAccessPreviewsRequest listAccessPreviewsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of access previews for the specified analyzer.
listAccessPreviewsRequest - 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.AwsServiceExceptiondefault 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.Builder avoiding the
need to create one manually via ListAccessPreviewsRequest.builder()
listAccessPreviewsRequest - A Consumer that will call methods on ListAccessPreviewsRequest.Builder to create a
request.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.AwsServiceExceptiondefault ListAccessPreviewsIterable listAccessPreviewsPaginator(ListAccessPreviewsRequest listAccessPreviewsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of access previews for the specified analyzer.
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
software.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewsIterable responses = client.listAccessPreviewsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.
listAccessPreviewsRequest - 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.AwsServiceExceptiondefault ListAccessPreviewsIterable listAccessPreviewsPaginator(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 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
software.amazon.awssdk.services.accessanalyzer.paginators.ListAccessPreviewsIterable responses = client.listAccessPreviewsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.Builder avoiding the
need to create one manually via ListAccessPreviewsRequest.builder()
listAccessPreviewsRequest - A Consumer that will call methods on ListAccessPreviewsRequest.Builder to create a
request.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.AwsServiceExceptiondefault 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 analyzer..
listAnalyzedResourcesRequest - Retrieves a list of resources that have been analyzed.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.AwsServiceExceptiondefault 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 analyzer..
This is a convenience which creates an instance of the ListAnalyzedResourcesRequest.Builder avoiding the
need to create one manually via ListAnalyzedResourcesRequest.builder()
listAnalyzedResourcesRequest - A Consumer that will call methods on ListAnalyzedResourcesRequest.Builder to create a
request. Retrieves a list of resources that have been analyzed.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.AwsServiceExceptiondefault ListAnalyzedResourcesIterable listAnalyzedResourcesPaginator(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 analyzer..
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
software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzedResourcesIterable responses = client.listAnalyzedResourcesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.
listAnalyzedResourcesRequest - Retrieves a list of resources that have been analyzed.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.AwsServiceExceptiondefault ListAnalyzedResourcesIterable listAnalyzedResourcesPaginator(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 analyzer..
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
software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzedResourcesIterable responses = client.listAnalyzedResourcesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.Builder avoiding the
need to create one manually via ListAnalyzedResourcesRequest.builder()
listAnalyzedResourcesRequest - A Consumer that will call methods on ListAnalyzedResourcesRequest.Builder to create a
request. Retrieves a list of resources that have been analyzed.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.AwsServiceExceptiondefault ListAnalyzersResponse listAnalyzers(ListAnalyzersRequest listAnalyzersRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of analyzers.
listAnalyzersRequest - Retrieves a list of analyzers.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.AwsServiceExceptiondefault 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.Builder avoiding the need to
create one manually via ListAnalyzersRequest.builder()
listAnalyzersRequest - A Consumer that will call methods on ListAnalyzersRequest.Builder to create a request.
Retrieves a list of analyzers.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.AwsServiceExceptiondefault ListAnalyzersIterable listAnalyzersPaginator(ListAnalyzersRequest listAnalyzersRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of analyzers.
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
software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzersIterable responses = client.listAnalyzersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.
listAnalyzersRequest - Retrieves a list of analyzers.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.AwsServiceExceptiondefault ListAnalyzersIterable listAnalyzersPaginator(Consumer<ListAnalyzersRequest.Builder> listAnalyzersRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of analyzers.
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
software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzersIterable responses = client.listAnalyzersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.Builder avoiding the need to
create one manually via ListAnalyzersRequest.builder()
listAnalyzersRequest - A Consumer that will call methods on ListAnalyzersRequest.Builder to create a request.
Retrieves a list of analyzers.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.AwsServiceExceptiondefault ListArchiveRulesResponse listArchiveRules(ListArchiveRulesRequest listArchiveRulesRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of archive rules created for the specified analyzer.
listArchiveRulesRequest - Retrieves a list of archive rules created for the specified analyzer.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.AwsServiceExceptiondefault 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.Builder avoiding the need
to create one manually via ListArchiveRulesRequest.builder()
listArchiveRulesRequest - A Consumer that will call methods on ListArchiveRulesRequest.Builder to create a request.
Retrieves a list of archive rules created for the specified analyzer.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.AwsServiceExceptiondefault ListArchiveRulesIterable listArchiveRulesPaginator(ListArchiveRulesRequest listArchiveRulesRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of archive rules created for the specified analyzer.
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
software.amazon.awssdk.services.accessanalyzer.paginators.ListArchiveRulesIterable responses = client.listArchiveRulesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.
listArchiveRulesRequest - Retrieves a list of archive rules created for the specified analyzer.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.AwsServiceExceptiondefault ListArchiveRulesIterable listArchiveRulesPaginator(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 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
software.amazon.awssdk.services.accessanalyzer.paginators.ListArchiveRulesIterable responses = client.listArchiveRulesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.Builder avoiding the need
to create one manually via ListArchiveRulesRequest.builder()
listArchiveRulesRequest - A Consumer that will call methods on ListArchiveRulesRequest.Builder to create a request.
Retrieves a list of archive rules created for the specified analyzer.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.AwsServiceExceptiondefault ListFindingsResponse listFindings(ListFindingsRequest listFindingsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of findings generated by the specified analyzer.
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.
listFindingsRequest - Retrieves a list of findings generated by the specified analyzer.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.AwsServiceExceptiondefault 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.
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.Builder avoiding the need to
create one manually via ListFindingsRequest.builder()
listFindingsRequest - A Consumer that will call methods on ListFindingsRequest.Builder to create a request.
Retrieves a list of findings generated by the specified analyzer.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.AwsServiceExceptiondefault ListFindingsIterable listFindingsPaginator(ListFindingsRequest listFindingsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of findings generated by the specified analyzer.
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 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
software.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.
listFindingsRequest - Retrieves a list of findings generated by the specified analyzer.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.AwsServiceExceptiondefault ListFindingsIterable listFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of findings generated by the specified analyzer.
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 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
software.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.Builder avoiding the need to
create one manually via ListFindingsRequest.builder()
listFindingsRequest - A Consumer that will call methods on ListFindingsRequest.Builder to create a request.
Retrieves a list of findings generated by the specified analyzer.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.AwsServiceExceptiondefault ListPolicyGenerationsResponse listPolicyGenerations(ListPolicyGenerationsRequest listPolicyGenerationsRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Lists all of the policy generations requested in the last seven days.
listPolicyGenerationsRequest - 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.AwsServiceExceptiondefault 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.Builder avoiding the
need to create one manually via ListPolicyGenerationsRequest.builder()
listPolicyGenerationsRequest - A Consumer that will call methods on ListPolicyGenerationsRequest.Builder to create a
request.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.AwsServiceExceptiondefault ListPolicyGenerationsIterable listPolicyGenerationsPaginator(ListPolicyGenerationsRequest listPolicyGenerationsRequest) throws ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Lists all of the policy generations requested in the last seven days.
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
software.amazon.awssdk.services.accessanalyzer.paginators.ListPolicyGenerationsIterable responses = client.listPolicyGenerationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.
listPolicyGenerationsRequest - 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.AwsServiceExceptiondefault ListPolicyGenerationsIterable listPolicyGenerationsPaginator(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 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
software.amazon.awssdk.services.accessanalyzer.paginators.ListPolicyGenerationsIterable responses = client.listPolicyGenerationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.Builder avoiding the
need to create one manually via ListPolicyGenerationsRequest.builder()
listPolicyGenerationsRequest - A Consumer that will call methods on ListPolicyGenerationsRequest.Builder to create a
request.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.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Retrieves a list of tags applied to the specified resource.
listTagsForResourceRequest - Retrieves a list of tags applied to the specified resource.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.AwsServiceExceptiondefault 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.Builder avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a
request. Retrieves a list of tags applied to the specified resource.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.AwsServiceExceptiondefault StartPolicyGenerationResponse startPolicyGeneration(StartPolicyGenerationRequest startPolicyGenerationRequest) throws ConflictException, ValidationException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Starts the policy generation request.
startPolicyGenerationRequest - 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.AwsServiceExceptiondefault 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.Builder avoiding the
need to create one manually via StartPolicyGenerationRequest.builder()
startPolicyGenerationRequest - A Consumer that will call methods on StartPolicyGenerationRequest.Builder to create a
request.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.AwsServiceExceptiondefault 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.
startResourceScanRequest - Starts a scan of the policies applied to the specified resource.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.AwsServiceExceptiondefault 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.Builder avoiding the need
to create one manually via StartResourceScanRequest.builder()
startResourceScanRequest - A Consumer that will call methods on StartResourceScanRequest.Builder to create a request.
Starts a scan of the policies applied to the specified resource.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.AwsServiceExceptiondefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Adds a tag to the specified resource.
tagResourceRequest - Adds a tag to the specified resource.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.AwsServiceExceptiondefault 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.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request. Adds
a tag to the specified resource.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.AwsServiceExceptiondefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Removes a tag from the specified resource.
untagResourceRequest - Removes a tag from the specified resource.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.AwsServiceExceptiondefault 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.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.
Removes a tag from the specified resource.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.AwsServiceExceptiondefault UpdateArchiveRuleResponse updateArchiveRule(UpdateArchiveRuleRequest updateArchiveRuleRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Updates the criteria and values for the specified archive rule.
updateArchiveRuleRequest - Updates the specified archive rule.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.AwsServiceExceptiondefault 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.Builder avoiding the need
to create one manually via UpdateArchiveRuleRequest.builder()
updateArchiveRuleRequest - A Consumer that will call methods on UpdateArchiveRuleRequest.Builder to create a request.
Updates the specified archive rule.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.AwsServiceExceptiondefault UpdateFindingsResponse updateFindings(UpdateFindingsRequest updateFindingsRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, AccessAnalyzerException
Updates the status for the specified findings.
updateFindingsRequest - Updates findings with the new values provided in the request.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.AwsServiceExceptiondefault 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.Builder avoiding the need to
create one manually via UpdateFindingsRequest.builder()
updateFindingsRequest - A Consumer that will call methods on UpdateFindingsRequest.Builder to create a request.
Updates findings with the new values provided in the request.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.AwsServiceExceptiondefault 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.
validatePolicyRequest - 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.AwsServiceExceptiondefault 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.Builder avoiding the need to
create one manually via ValidatePolicyRequest.builder()
validatePolicyRequest - A Consumer that will call methods on ValidatePolicyRequest.Builder to create a request.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.AwsServiceExceptiondefault ValidatePolicyIterable validatePolicyPaginator(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.
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
software.amazon.awssdk.services.accessanalyzer.paginators.ValidatePolicyIterable responses = client.validatePolicyPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.
validatePolicyRequest - 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.AwsServiceExceptiondefault ValidatePolicyIterable validatePolicyPaginator(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 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
software.amazon.awssdk.services.accessanalyzer.paginators.ValidatePolicyIterable responses = client.validatePolicyPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.Builder avoiding the need to
create one manually via ValidatePolicyRequest.builder()
validatePolicyRequest - A Consumer that will call methods on ValidatePolicyRequest.Builder to create a request.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.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
Copyright © 2021. All rights reserved.