@Generated(value="software.amazon.awssdk:codegen") public interface AccessAnalyzerAsyncClient extends SdkClient
builder()
method.
AWS IAM 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 AWS environment. An external principal can be another AWS account, a root user, an IAM user or role, a federated user, an AWS service, or an anonymous user. This guide describes the AWS IAM Access Analyzer operations that you can call programmatically. For general information about Access Analyzer, see AWS IAM Access Analyzer in the IAM User Guide.
To start using Access Analyzer, you first need to create an analyzer.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<ApplyArchiveRuleResponse> |
applyArchiveRule(ApplyArchiveRuleRequest applyArchiveRuleRequest)
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
|
default CompletableFuture<ApplyArchiveRuleResponse> |
applyArchiveRule(Consumer<ApplyArchiveRuleRequest.Builder> applyArchiveRuleRequest)
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
|
static AccessAnalyzerAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
AccessAnalyzerAsyncClient. |
static AccessAnalyzerAsyncClient |
create()
Create a
AccessAnalyzerAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CompletableFuture<CreateAnalyzerResponse> |
createAnalyzer(Consumer<CreateAnalyzerRequest.Builder> createAnalyzerRequest)
Creates an analyzer for your account.
|
default CompletableFuture<CreateAnalyzerResponse> |
createAnalyzer(CreateAnalyzerRequest createAnalyzerRequest)
Creates an analyzer for your account.
|
default CompletableFuture<CreateArchiveRuleResponse> |
createArchiveRule(Consumer<CreateArchiveRuleRequest.Builder> createArchiveRuleRequest)
Creates an archive rule for the specified analyzer.
|
default CompletableFuture<CreateArchiveRuleResponse> |
createArchiveRule(CreateArchiveRuleRequest createArchiveRuleRequest)
Creates an archive rule for the specified analyzer.
|
default CompletableFuture<DeleteAnalyzerResponse> |
deleteAnalyzer(Consumer<DeleteAnalyzerRequest.Builder> deleteAnalyzerRequest)
Deletes the specified analyzer.
|
default CompletableFuture<DeleteAnalyzerResponse> |
deleteAnalyzer(DeleteAnalyzerRequest deleteAnalyzerRequest)
Deletes the specified analyzer.
|
default CompletableFuture<DeleteArchiveRuleResponse> |
deleteArchiveRule(Consumer<DeleteArchiveRuleRequest.Builder> deleteArchiveRuleRequest)
Deletes the specified archive rule.
|
default CompletableFuture<DeleteArchiveRuleResponse> |
deleteArchiveRule(DeleteArchiveRuleRequest deleteArchiveRuleRequest)
Deletes the specified archive rule.
|
default CompletableFuture<GetAnalyzedResourceResponse> |
getAnalyzedResource(Consumer<GetAnalyzedResourceRequest.Builder> getAnalyzedResourceRequest)
Retrieves information about a resource that was analyzed.
|
default CompletableFuture<GetAnalyzedResourceResponse> |
getAnalyzedResource(GetAnalyzedResourceRequest getAnalyzedResourceRequest)
Retrieves information about a resource that was analyzed.
|
default CompletableFuture<GetAnalyzerResponse> |
getAnalyzer(Consumer<GetAnalyzerRequest.Builder> getAnalyzerRequest)
Retrieves information about the specified analyzer.
|
default CompletableFuture<GetAnalyzerResponse> |
getAnalyzer(GetAnalyzerRequest getAnalyzerRequest)
Retrieves information about the specified analyzer.
|
default CompletableFuture<GetArchiveRuleResponse> |
getArchiveRule(Consumer<GetArchiveRuleRequest.Builder> getArchiveRuleRequest)
Retrieves information about an archive rule.
|
default CompletableFuture<GetArchiveRuleResponse> |
getArchiveRule(GetArchiveRuleRequest getArchiveRuleRequest)
Retrieves information about an archive rule.
|
default CompletableFuture<GetFindingResponse> |
getFinding(Consumer<GetFindingRequest.Builder> getFindingRequest)
Retrieves information about the specified finding.
|
default CompletableFuture<GetFindingResponse> |
getFinding(GetFindingRequest getFindingRequest)
Retrieves information about the specified finding.
|
default CompletableFuture<ListAnalyzedResourcesResponse> |
listAnalyzedResources(Consumer<ListAnalyzedResourcesRequest.Builder> listAnalyzedResourcesRequest)
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
|
default CompletableFuture<ListAnalyzedResourcesResponse> |
listAnalyzedResources(ListAnalyzedResourcesRequest listAnalyzedResourcesRequest)
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
|
default ListAnalyzedResourcesPublisher |
listAnalyzedResourcesPaginator(Consumer<ListAnalyzedResourcesRequest.Builder> listAnalyzedResourcesRequest)
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
|
default ListAnalyzedResourcesPublisher |
listAnalyzedResourcesPaginator(ListAnalyzedResourcesRequest listAnalyzedResourcesRequest)
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
|
default CompletableFuture<ListAnalyzersResponse> |
listAnalyzers(Consumer<ListAnalyzersRequest.Builder> listAnalyzersRequest)
Retrieves a list of analyzers.
|
default CompletableFuture<ListAnalyzersResponse> |
listAnalyzers(ListAnalyzersRequest listAnalyzersRequest)
Retrieves a list of analyzers.
|
default ListAnalyzersPublisher |
listAnalyzersPaginator(Consumer<ListAnalyzersRequest.Builder> listAnalyzersRequest)
Retrieves a list of analyzers.
|
default ListAnalyzersPublisher |
listAnalyzersPaginator(ListAnalyzersRequest listAnalyzersRequest)
Retrieves a list of analyzers.
|
default CompletableFuture<ListArchiveRulesResponse> |
listArchiveRules(Consumer<ListArchiveRulesRequest.Builder> listArchiveRulesRequest)
Retrieves a list of archive rules created for the specified analyzer.
|
default CompletableFuture<ListArchiveRulesResponse> |
listArchiveRules(ListArchiveRulesRequest listArchiveRulesRequest)
Retrieves a list of archive rules created for the specified analyzer.
|
default ListArchiveRulesPublisher |
listArchiveRulesPaginator(Consumer<ListArchiveRulesRequest.Builder> listArchiveRulesRequest)
Retrieves a list of archive rules created for the specified analyzer.
|
default ListArchiveRulesPublisher |
listArchiveRulesPaginator(ListArchiveRulesRequest listArchiveRulesRequest)
Retrieves a list of archive rules created for the specified analyzer.
|
default CompletableFuture<ListFindingsResponse> |
listFindings(Consumer<ListFindingsRequest.Builder> listFindingsRequest)
Retrieves a list of findings generated by the specified analyzer.
|
default CompletableFuture<ListFindingsResponse> |
listFindings(ListFindingsRequest listFindingsRequest)
Retrieves a list of findings generated by the specified analyzer.
|
default ListFindingsPublisher |
listFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest)
Retrieves a list of findings generated by the specified analyzer.
|
default ListFindingsPublisher |
listFindingsPaginator(ListFindingsRequest listFindingsRequest)
Retrieves a list of findings generated by the specified analyzer.
|
default CompletableFuture<ListTagsForResourceResponse> |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Retrieves a list of tags applied to the specified resource.
|
default CompletableFuture<ListTagsForResourceResponse> |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Retrieves a list of tags applied to the specified resource.
|
default CompletableFuture<StartResourceScanResponse> |
startResourceScan(Consumer<StartResourceScanRequest.Builder> startResourceScanRequest)
Immediately starts a scan of the policies applied to the specified resource.
|
default CompletableFuture<StartResourceScanResponse> |
startResourceScan(StartResourceScanRequest startResourceScanRequest)
Immediately starts a scan of the policies applied to the specified resource.
|
default CompletableFuture<TagResourceResponse> |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds a tag to the specified resource.
|
default CompletableFuture<TagResourceResponse> |
tagResource(TagResourceRequest tagResourceRequest)
Adds a tag to the specified resource.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes a tag from the specified resource.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(UntagResourceRequest untagResourceRequest)
Removes a tag from the specified resource.
|
default CompletableFuture<UpdateArchiveRuleResponse> |
updateArchiveRule(Consumer<UpdateArchiveRuleRequest.Builder> updateArchiveRuleRequest)
Updates the criteria and values for the specified archive rule.
|
default CompletableFuture<UpdateArchiveRuleResponse> |
updateArchiveRule(UpdateArchiveRuleRequest updateArchiveRuleRequest)
Updates the criteria and values for the specified archive rule.
|
default CompletableFuture<UpdateFindingsResponse> |
updateFindings(Consumer<UpdateFindingsRequest.Builder> updateFindingsRequest)
Updates the status for the specified findings.
|
default CompletableFuture<UpdateFindingsResponse> |
updateFindings(UpdateFindingsRequest updateFindingsRequest)
Updates the status for the specified findings.
|
serviceNameclosestatic final String SERVICE_NAME
static AccessAnalyzerAsyncClient create()
AccessAnalyzerAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static AccessAnalyzerAsyncClientBuilder builder()
AccessAnalyzerAsyncClient.default CompletableFuture<ApplyArchiveRuleResponse> applyArchiveRule(ApplyArchiveRuleRequest applyArchiveRuleRequest)
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
applyArchiveRuleRequest - Retroactively applies an archive rule.default CompletableFuture<ApplyArchiveRuleResponse> applyArchiveRule(Consumer<ApplyArchiveRuleRequest.Builder> applyArchiveRuleRequest)
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.default CompletableFuture<CreateAnalyzerResponse> createAnalyzer(CreateAnalyzerRequest createAnalyzerRequest)
Creates an analyzer for your account.
createAnalyzerRequest - Creates an analyzer.default CompletableFuture<CreateAnalyzerResponse> createAnalyzer(Consumer<CreateAnalyzerRequest.Builder> createAnalyzerRequest)
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.default CompletableFuture<CreateArchiveRuleResponse> createArchiveRule(CreateArchiveRuleRequest createArchiveRuleRequest)
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.
createArchiveRuleRequest - Creates an archive rule.default CompletableFuture<CreateArchiveRuleResponse> createArchiveRule(Consumer<CreateArchiveRuleRequest.Builder> createArchiveRuleRequest)
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.
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.default CompletableFuture<DeleteAnalyzerResponse> deleteAnalyzer(DeleteAnalyzerRequest deleteAnalyzerRequest)
Deletes the specified analyzer. When you delete an analyzer, Access Analyzer is disabled for the account 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.default CompletableFuture<DeleteAnalyzerResponse> deleteAnalyzer(Consumer<DeleteAnalyzerRequest.Builder> deleteAnalyzerRequest)
Deletes the specified analyzer. When you delete an analyzer, Access Analyzer is disabled for the account 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.default CompletableFuture<DeleteArchiveRuleResponse> deleteArchiveRule(DeleteArchiveRuleRequest deleteArchiveRuleRequest)
Deletes the specified archive rule.
deleteArchiveRuleRequest - Deletes an archive rule.default CompletableFuture<DeleteArchiveRuleResponse> deleteArchiveRule(Consumer<DeleteArchiveRuleRequest.Builder> deleteArchiveRuleRequest)
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.default CompletableFuture<GetAnalyzedResourceResponse> getAnalyzedResource(GetAnalyzedResourceRequest getAnalyzedResourceRequest)
Retrieves information about a resource that was analyzed.
getAnalyzedResourceRequest - Retrieves an analyzed resource.default CompletableFuture<GetAnalyzedResourceResponse> getAnalyzedResource(Consumer<GetAnalyzedResourceRequest.Builder> getAnalyzedResourceRequest)
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.default CompletableFuture<GetAnalyzerResponse> getAnalyzer(GetAnalyzerRequest getAnalyzerRequest)
Retrieves information about the specified analyzer.
getAnalyzerRequest - Retrieves an analyzer.default CompletableFuture<GetAnalyzerResponse> getAnalyzer(Consumer<GetAnalyzerRequest.Builder> getAnalyzerRequest)
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.default CompletableFuture<GetArchiveRuleResponse> getArchiveRule(GetArchiveRuleRequest getArchiveRuleRequest)
Retrieves information about an archive rule.
To learn about filter keys that you can use to create an archive rule, see Access Analyzer filter keys in the IAM User Guide.
getArchiveRuleRequest - Retrieves an archive rule.default CompletableFuture<GetArchiveRuleResponse> getArchiveRule(Consumer<GetArchiveRuleRequest.Builder> getArchiveRuleRequest)
Retrieves information about an archive rule.
To learn about filter keys that you can use to create an archive rule, see 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.default CompletableFuture<GetFindingResponse> getFinding(GetFindingRequest getFindingRequest)
Retrieves information about the specified finding.
getFindingRequest - Retrieves a finding.default CompletableFuture<GetFindingResponse> getFinding(Consumer<GetFindingRequest.Builder> getFindingRequest)
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.default CompletableFuture<ListAnalyzedResourcesResponse> listAnalyzedResources(ListAnalyzedResourcesRequest listAnalyzedResourcesRequest)
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.default CompletableFuture<ListAnalyzedResourcesResponse> listAnalyzedResources(Consumer<ListAnalyzedResourcesRequest.Builder> listAnalyzedResourcesRequest)
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.default ListAnalyzedResourcesPublisher listAnalyzedResourcesPaginator(ListAnalyzedResourcesRequest listAnalyzedResourcesRequest)
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 publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzedResourcesPublisher publisher = client.listAnalyzedResourcesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzedResourcesPublisher publisher = client.listAnalyzedResourcesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzedResourcesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzedResourcesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.default ListAnalyzedResourcesPublisher listAnalyzedResourcesPaginator(Consumer<ListAnalyzedResourcesRequest.Builder> listAnalyzedResourcesRequest)
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 publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzedResourcesPublisher publisher = client.listAnalyzedResourcesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzedResourcesPublisher publisher = client.listAnalyzedResourcesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzedResourcesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzedResourcesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.default CompletableFuture<ListAnalyzersResponse> listAnalyzers(ListAnalyzersRequest listAnalyzersRequest)
Retrieves a list of analyzers.
listAnalyzersRequest - Retrieves a list of analyzers.default CompletableFuture<ListAnalyzersResponse> listAnalyzers(Consumer<ListAnalyzersRequest.Builder> listAnalyzersRequest)
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.default ListAnalyzersPublisher listAnalyzersPaginator(ListAnalyzersRequest listAnalyzersRequest)
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 publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzersPublisher publisher = client.listAnalyzersPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzersPublisher publisher = client.listAnalyzersPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzersResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzersResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.default ListAnalyzersPublisher listAnalyzersPaginator(Consumer<ListAnalyzersRequest.Builder> listAnalyzersRequest)
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 publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzersPublisher publisher = client.listAnalyzersPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.accessanalyzer.paginators.ListAnalyzersPublisher publisher = client.listAnalyzersPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzersResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.accessanalyzer.model.ListAnalyzersResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.default CompletableFuture<ListArchiveRulesResponse> listArchiveRules(ListArchiveRulesRequest listArchiveRulesRequest)
Retrieves a list of archive rules created for the specified analyzer.
listArchiveRulesRequest - Retrieves a list of archive rules created for the specified analyzer.default CompletableFuture<ListArchiveRulesResponse> listArchiveRules(Consumer<ListArchiveRulesRequest.Builder> listArchiveRulesRequest)
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.default ListArchiveRulesPublisher listArchiveRulesPaginator(ListArchiveRulesRequest listArchiveRulesRequest)
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 publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.accessanalyzer.paginators.ListArchiveRulesPublisher publisher = client.listArchiveRulesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.accessanalyzer.paginators.ListArchiveRulesPublisher publisher = client.listArchiveRulesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.accessanalyzer.model.ListArchiveRulesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.accessanalyzer.model.ListArchiveRulesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.default ListArchiveRulesPublisher listArchiveRulesPaginator(Consumer<ListArchiveRulesRequest.Builder> listArchiveRulesRequest)
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 publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.accessanalyzer.paginators.ListArchiveRulesPublisher publisher = client.listArchiveRulesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.accessanalyzer.paginators.ListArchiveRulesPublisher publisher = client.listArchiveRulesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.accessanalyzer.model.ListArchiveRulesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.accessanalyzer.model.ListArchiveRulesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.default CompletableFuture<ListFindingsResponse> listFindings(ListFindingsRequest listFindingsRequest)
Retrieves a list of findings generated by the specified analyzer.
To learn about filter keys that you can use to create an archive rule, see Access Analyzer filter keys in the IAM User Guide.
listFindingsRequest - Retrieves a list of findings generated by the specified analyzer.default CompletableFuture<ListFindingsResponse> listFindings(Consumer<ListFindingsRequest.Builder> listFindingsRequest)
Retrieves a list of findings generated by the specified analyzer.
To learn about filter keys that you can use to create an archive rule, see 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.default ListFindingsPublisher listFindingsPaginator(ListFindingsRequest listFindingsRequest)
Retrieves a list of findings generated by the specified analyzer.
To learn about filter keys that you can use to create an archive rule, see 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 publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.accessanalyzer.model.ListFindingsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.accessanalyzer.model.ListFindingsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.default ListFindingsPublisher listFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest)
Retrieves a list of findings generated by the specified analyzer.
To learn about filter keys that you can use to create an archive rule, see 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 publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.accessanalyzer.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.accessanalyzer.model.ListFindingsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.accessanalyzer.model.ListFindingsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Retrieves a list of tags applied to the specified resource.
listTagsForResourceRequest - Retrieves a list of tags applied to the specified resource.default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
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.default CompletableFuture<StartResourceScanResponse> startResourceScan(StartResourceScanRequest startResourceScanRequest)
Immediately starts a scan of the policies applied to the specified resource.
startResourceScanRequest - Starts a scan of the policies applied to the specified resource.default CompletableFuture<StartResourceScanResponse> startResourceScan(Consumer<StartResourceScanRequest.Builder> startResourceScanRequest)
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.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
Adds a tag to the specified resource.
tagResourceRequest - Adds a tag to the specified resource.default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
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.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Removes a tag from the specified resource.
untagResourceRequest - Removes a tag from the specified resource.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
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.default CompletableFuture<UpdateArchiveRuleResponse> updateArchiveRule(UpdateArchiveRuleRequest updateArchiveRuleRequest)
Updates the criteria and values for the specified archive rule.
updateArchiveRuleRequest - Updates the specified archive rule.default CompletableFuture<UpdateArchiveRuleResponse> updateArchiveRule(Consumer<UpdateArchiveRuleRequest.Builder> updateArchiveRuleRequest)
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.default CompletableFuture<UpdateFindingsResponse> updateFindings(UpdateFindingsRequest updateFindingsRequest)
Updates the status for the specified findings.
updateFindingsRequest - Updates findings with the new values provided in the request.default CompletableFuture<UpdateFindingsResponse> updateFindings(Consumer<UpdateFindingsRequest.Builder> updateFindingsRequest)
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.Copyright © 2020. All rights reserved.