@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface CodeGuruSecurityAsyncClient extends AwsClient
builder() method.
This section provides documentation for the Amazon CodeGuru Security API operations. CodeGuru Security is a service that uses program analysis and machine learning to detect security policy violations and vulnerabilities, and recommends ways to address these security risks.
By proactively detecting and providing recommendations for addressing security risks, CodeGuru Security improves the overall security of your application code. For more information about CodeGuru Security, see the Amazon CodeGuru Security User Guide.
| 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 CompletableFuture<BatchGetFindingsResponse> |
batchGetFindings(BatchGetFindingsRequest batchGetFindingsRequest)
Returns a list of all requested findings.
|
default CompletableFuture<BatchGetFindingsResponse> |
batchGetFindings(Consumer<BatchGetFindingsRequest.Builder> batchGetFindingsRequest)
Returns a list of all requested findings.
|
static CodeGuruSecurityAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
CodeGuruSecurityAsyncClient. |
static CodeGuruSecurityAsyncClient |
create()
Create a
CodeGuruSecurityAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CompletableFuture<CreateScanResponse> |
createScan(Consumer<CreateScanRequest.Builder> createScanRequest)
Use to create a scan using code uploaded to an S3 bucket.
|
default CompletableFuture<CreateScanResponse> |
createScan(CreateScanRequest createScanRequest)
Use to create a scan using code uploaded to an S3 bucket.
|
default CompletableFuture<CreateUploadUrlResponse> |
createUploadUrl(Consumer<CreateUploadUrlRequest.Builder> createUploadUrlRequest)
Generates a pre-signed URL and request headers used to upload a code resource.
|
default CompletableFuture<CreateUploadUrlResponse> |
createUploadUrl(CreateUploadUrlRequest createUploadUrlRequest)
Generates a pre-signed URL and request headers used to upload a code resource.
|
default CompletableFuture<GetAccountConfigurationResponse> |
getAccountConfiguration(Consumer<GetAccountConfigurationRequest.Builder> getAccountConfigurationRequest)
Use to get account level configuration.
|
default CompletableFuture<GetAccountConfigurationResponse> |
getAccountConfiguration(GetAccountConfigurationRequest getAccountConfigurationRequest)
Use to get account level configuration.
|
default CompletableFuture<GetFindingsResponse> |
getFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest)
Returns a list of all findings generated by a particular scan.
|
default CompletableFuture<GetFindingsResponse> |
getFindings(GetFindingsRequest getFindingsRequest)
Returns a list of all findings generated by a particular scan.
|
default GetFindingsPublisher |
getFindingsPaginator(Consumer<GetFindingsRequest.Builder> getFindingsRequest)
Returns a list of all findings generated by a particular scan.
|
default GetFindingsPublisher |
getFindingsPaginator(GetFindingsRequest getFindingsRequest)
Returns a list of all findings generated by a particular scan.
|
default CompletableFuture<GetMetricsSummaryResponse> |
getMetricsSummary(Consumer<GetMetricsSummaryRequest.Builder> getMetricsSummaryRequest)
Returns top level metrics about an account from a specified date, including number of open findings, the
categories with most findings, the scans with most open findings, and scans with most open critical findings.
|
default CompletableFuture<GetMetricsSummaryResponse> |
getMetricsSummary(GetMetricsSummaryRequest getMetricsSummaryRequest)
Returns top level metrics about an account from a specified date, including number of open findings, the
categories with most findings, the scans with most open findings, and scans with most open critical findings.
|
default CompletableFuture<GetScanResponse> |
getScan(Consumer<GetScanRequest.Builder> getScanRequest)
Returns details about a scan, including whether or not a scan has completed.
|
default CompletableFuture<GetScanResponse> |
getScan(GetScanRequest getScanRequest)
Returns details about a scan, including whether or not a scan has completed.
|
default CompletableFuture<ListFindingsMetricsResponse> |
listFindingsMetrics(Consumer<ListFindingsMetricsRequest.Builder> listFindingsMetricsRequest)
Returns metrics about all findings in an account within a specified time range.
|
default CompletableFuture<ListFindingsMetricsResponse> |
listFindingsMetrics(ListFindingsMetricsRequest listFindingsMetricsRequest)
Returns metrics about all findings in an account within a specified time range.
|
default ListFindingsMetricsPublisher |
listFindingsMetricsPaginator(Consumer<ListFindingsMetricsRequest.Builder> listFindingsMetricsRequest)
Returns metrics about all findings in an account within a specified time range.
|
default ListFindingsMetricsPublisher |
listFindingsMetricsPaginator(ListFindingsMetricsRequest listFindingsMetricsRequest)
Returns metrics about all findings in an account within a specified time range.
|
default CompletableFuture<ListScansResponse> |
listScans(Consumer<ListScansRequest.Builder> listScansRequest)
Returns a list of all the scans in an account.
|
default CompletableFuture<ListScansResponse> |
listScans(ListScansRequest listScansRequest)
Returns a list of all the scans in an account.
|
default ListScansPublisher |
listScansPaginator(Consumer<ListScansRequest.Builder> listScansRequest)
Returns a list of all the scans in an account.
|
default ListScansPublisher |
listScansPaginator(ListScansRequest listScansRequest)
Returns a list of all the scans in an account.
|
default CompletableFuture<ListTagsForResourceResponse> |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Returns a list of all tags associated with a scan.
|
default CompletableFuture<ListTagsForResourceResponse> |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns a list of all tags associated with a scan.
|
default CodeGuruSecurityServiceClientConfiguration |
serviceClientConfiguration() |
default CompletableFuture<TagResourceResponse> |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Use to add one or more tags to an existing scan.
|
default CompletableFuture<TagResourceResponse> |
tagResource(TagResourceRequest tagResourceRequest)
Use to add one or more tags to an existing scan.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Use to remove one or more tags from an existing scan.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(UntagResourceRequest untagResourceRequest)
Use to remove one or more tags from an existing scan.
|
default CompletableFuture<UpdateAccountConfigurationResponse> |
updateAccountConfiguration(Consumer<UpdateAccountConfigurationRequest.Builder> updateAccountConfigurationRequest)
Use to update account-level configuration with an encryption key.
|
default CompletableFuture<UpdateAccountConfigurationResponse> |
updateAccountConfiguration(UpdateAccountConfigurationRequest updateAccountConfigurationRequest)
Use to update account-level configuration with an encryption key.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.default CompletableFuture<BatchGetFindingsResponse> batchGetFindings(BatchGetFindingsRequest batchGetFindingsRequest)
Returns a list of all requested findings.
batchGetFindingsRequest - default CompletableFuture<BatchGetFindingsResponse> batchGetFindings(Consumer<BatchGetFindingsRequest.Builder> batchGetFindingsRequest)
Returns a list of all requested findings.
This is a convenience which creates an instance of the BatchGetFindingsRequest.Builder avoiding the need
to create one manually via BatchGetFindingsRequest.builder()
batchGetFindingsRequest - A Consumer that will call methods on BatchGetFindingsRequest.Builder to create a request.default CompletableFuture<CreateScanResponse> createScan(CreateScanRequest createScanRequest)
Use to create a scan using code uploaded to an S3 bucket.
createScanRequest - default CompletableFuture<CreateScanResponse> createScan(Consumer<CreateScanRequest.Builder> createScanRequest)
Use to create a scan using code uploaded to an S3 bucket.
This is a convenience which creates an instance of the CreateScanRequest.Builder avoiding the need to
create one manually via CreateScanRequest.builder()
createScanRequest - A Consumer that will call methods on CreateScanRequest.Builder to create a request.default CompletableFuture<CreateUploadUrlResponse> createUploadUrl(CreateUploadUrlRequest createUploadUrlRequest)
Generates a pre-signed URL and request headers used to upload a code resource.
You can upload your code resource to the URL and add the request headers using any HTTP client.
createUploadUrlRequest - default CompletableFuture<CreateUploadUrlResponse> createUploadUrl(Consumer<CreateUploadUrlRequest.Builder> createUploadUrlRequest)
Generates a pre-signed URL and request headers used to upload a code resource.
You can upload your code resource to the URL and add the request headers using any HTTP client.
This is a convenience which creates an instance of the CreateUploadUrlRequest.Builder avoiding the need
to create one manually via CreateUploadUrlRequest.builder()
createUploadUrlRequest - A Consumer that will call methods on CreateUploadUrlRequest.Builder to create a request.default CompletableFuture<GetAccountConfigurationResponse> getAccountConfiguration(GetAccountConfigurationRequest getAccountConfigurationRequest)
Use to get account level configuration.
getAccountConfigurationRequest - default CompletableFuture<GetAccountConfigurationResponse> getAccountConfiguration(Consumer<GetAccountConfigurationRequest.Builder> getAccountConfigurationRequest)
Use to get account level configuration.
This is a convenience which creates an instance of the GetAccountConfigurationRequest.Builder avoiding
the need to create one manually via GetAccountConfigurationRequest.builder()
getAccountConfigurationRequest - A Consumer that will call methods on GetAccountConfigurationRequest.Builder to create a
request.default CompletableFuture<GetFindingsResponse> getFindings(GetFindingsRequest getFindingsRequest)
Returns a list of all findings generated by a particular scan.
getFindingsRequest - default CompletableFuture<GetFindingsResponse> getFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest)
Returns a list of all findings generated by a particular scan.
This is a convenience which creates an instance of the GetFindingsRequest.Builder avoiding the need to
create one manually via GetFindingsRequest.builder()
getFindingsRequest - A Consumer that will call methods on GetFindingsRequest.Builder to create a request.default GetFindingsPublisher getFindingsPaginator(GetFindingsRequest getFindingsRequest)
Returns a list of all findings generated by a particular scan.
This is a variant of
getFindings(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsRequest) 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.codegurusecurity.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.codegurusecurity.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurusecurity.model.GetFindingsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsResponse 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
getFindings(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsRequest) operation.
getFindingsRequest - default GetFindingsPublisher getFindingsPaginator(Consumer<GetFindingsRequest.Builder> getFindingsRequest)
Returns a list of all findings generated by a particular scan.
This is a variant of
getFindings(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsRequest) 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.codegurusecurity.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.codegurusecurity.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurusecurity.model.GetFindingsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsResponse 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
getFindings(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsRequest) operation.
This is a convenience which creates an instance of the GetFindingsRequest.Builder avoiding the need to
create one manually via GetFindingsRequest.builder()
getFindingsRequest - A Consumer that will call methods on GetFindingsRequest.Builder to create a request.default CompletableFuture<GetMetricsSummaryResponse> getMetricsSummary(GetMetricsSummaryRequest getMetricsSummaryRequest)
Returns top level metrics about an account from a specified date, including number of open findings, the categories with most findings, the scans with most open findings, and scans with most open critical findings.
getMetricsSummaryRequest - default CompletableFuture<GetMetricsSummaryResponse> getMetricsSummary(Consumer<GetMetricsSummaryRequest.Builder> getMetricsSummaryRequest)
Returns top level metrics about an account from a specified date, including number of open findings, the categories with most findings, the scans with most open findings, and scans with most open critical findings.
This is a convenience which creates an instance of the GetMetricsSummaryRequest.Builder avoiding the need
to create one manually via GetMetricsSummaryRequest.builder()
getMetricsSummaryRequest - A Consumer that will call methods on GetMetricsSummaryRequest.Builder to create a request.default CompletableFuture<GetScanResponse> getScan(GetScanRequest getScanRequest)
Returns details about a scan, including whether or not a scan has completed.
getScanRequest - default CompletableFuture<GetScanResponse> getScan(Consumer<GetScanRequest.Builder> getScanRequest)
Returns details about a scan, including whether or not a scan has completed.
This is a convenience which creates an instance of the GetScanRequest.Builder avoiding the need to create
one manually via GetScanRequest.builder()
getScanRequest - A Consumer that will call methods on GetScanRequest.Builder to create a request.default CompletableFuture<ListFindingsMetricsResponse> listFindingsMetrics(ListFindingsMetricsRequest listFindingsMetricsRequest)
Returns metrics about all findings in an account within a specified time range.
listFindingsMetricsRequest - default CompletableFuture<ListFindingsMetricsResponse> listFindingsMetrics(Consumer<ListFindingsMetricsRequest.Builder> listFindingsMetricsRequest)
Returns metrics about all findings in an account within a specified time range.
This is a convenience which creates an instance of the ListFindingsMetricsRequest.Builder avoiding the
need to create one manually via ListFindingsMetricsRequest.builder()
listFindingsMetricsRequest - A Consumer that will call methods on ListFindingsMetricsRequest.Builder to create a
request.default ListFindingsMetricsPublisher listFindingsMetricsPaginator(ListFindingsMetricsRequest listFindingsMetricsRequest)
Returns metrics about all findings in an account within a specified time range.
This is a variant of
listFindingsMetrics(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsRequest)
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.codegurusecurity.paginators.ListFindingsMetricsPublisher publisher = client.listFindingsMetricsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.codegurusecurity.paginators.ListFindingsMetricsPublisher publisher = client.listFindingsMetricsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsResponse 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
listFindingsMetrics(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsRequest)
operation.
listFindingsMetricsRequest - default ListFindingsMetricsPublisher listFindingsMetricsPaginator(Consumer<ListFindingsMetricsRequest.Builder> listFindingsMetricsRequest)
Returns metrics about all findings in an account within a specified time range.
This is a variant of
listFindingsMetrics(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsRequest)
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.codegurusecurity.paginators.ListFindingsMetricsPublisher publisher = client.listFindingsMetricsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.codegurusecurity.paginators.ListFindingsMetricsPublisher publisher = client.listFindingsMetricsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsResponse 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
listFindingsMetrics(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsRequest)
operation.
This is a convenience which creates an instance of the ListFindingsMetricsRequest.Builder avoiding the
need to create one manually via ListFindingsMetricsRequest.builder()
listFindingsMetricsRequest - A Consumer that will call methods on ListFindingsMetricsRequest.Builder to create a
request.default CompletableFuture<ListScansResponse> listScans(ListScansRequest listScansRequest)
Returns a list of all the scans in an account.
listScansRequest - default CompletableFuture<ListScansResponse> listScans(Consumer<ListScansRequest.Builder> listScansRequest)
Returns a list of all the scans in an account.
This is a convenience which creates an instance of the ListScansRequest.Builder avoiding the need to
create one manually via ListScansRequest.builder()
listScansRequest - A Consumer that will call methods on ListScansRequest.Builder to create a request.default ListScansPublisher listScansPaginator(ListScansRequest listScansRequest)
Returns a list of all the scans in an account.
This is a variant of listScans(software.amazon.awssdk.services.codegurusecurity.model.ListScansRequest)
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.codegurusecurity.paginators.ListScansPublisher publisher = client.listScansPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.codegurusecurity.paginators.ListScansPublisher publisher = client.listScansPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurusecurity.model.ListScansResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.codegurusecurity.model.ListScansResponse 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
listScans(software.amazon.awssdk.services.codegurusecurity.model.ListScansRequest) operation.
listScansRequest - default ListScansPublisher listScansPaginator(Consumer<ListScansRequest.Builder> listScansRequest)
Returns a list of all the scans in an account.
This is a variant of listScans(software.amazon.awssdk.services.codegurusecurity.model.ListScansRequest)
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.codegurusecurity.paginators.ListScansPublisher publisher = client.listScansPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.codegurusecurity.paginators.ListScansPublisher publisher = client.listScansPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurusecurity.model.ListScansResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.codegurusecurity.model.ListScansResponse 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
listScans(software.amazon.awssdk.services.codegurusecurity.model.ListScansRequest) operation.
This is a convenience which creates an instance of the ListScansRequest.Builder avoiding the need to
create one manually via ListScansRequest.builder()
listScansRequest - A Consumer that will call methods on ListScansRequest.Builder to create a request.default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns a list of all tags associated with a scan.
listTagsForResourceRequest - default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Returns a list of all tags associated with a scan.
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.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
Use to add one or more tags to an existing scan.
tagResourceRequest - default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Use to add one or more tags to an existing scan.
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.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Use to remove one or more tags from an existing scan.
untagResourceRequest - default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Use to remove one or more tags from an existing scan.
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.default CompletableFuture<UpdateAccountConfigurationResponse> updateAccountConfiguration(UpdateAccountConfigurationRequest updateAccountConfigurationRequest)
Use to update account-level configuration with an encryption key.
updateAccountConfigurationRequest - default CompletableFuture<UpdateAccountConfigurationResponse> updateAccountConfiguration(Consumer<UpdateAccountConfigurationRequest.Builder> updateAccountConfigurationRequest)
Use to update account-level configuration with an encryption key.
This is a convenience which creates an instance of the UpdateAccountConfigurationRequest.Builder avoiding
the need to create one manually via UpdateAccountConfigurationRequest.builder()
updateAccountConfigurationRequest - A Consumer that will call methods on UpdateAccountConfigurationRequest.Builder to create a
request.default CodeGuruSecurityServiceClientConfiguration serviceClientConfiguration()
serviceClientConfiguration in interface AwsClientserviceClientConfiguration in interface SdkClientstatic CodeGuruSecurityAsyncClient create()
CodeGuruSecurityAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static CodeGuruSecurityAsyncClientBuilder builder()
CodeGuruSecurityAsyncClient.Copyright © 2023. All rights reserved.