Interface CodeGuruSecurityClient
- All Superinterfaces:
- AutoCloseable,- AwsClient,- SdkAutoCloseable,- SdkClient
builder()
 method.
 
  
 On November 20, 2025, AWS will discontinue support for Amazon CodeGuru Security. After November 20, 2025, you will no
 longer be able to access the /codeguru/security console, service resources, or documentation. For more information,
 see https://docs.aws.amazon.com/
 codeguru/latest/security-ug/end-of-support.html.
 
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.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String
- 
Method SummaryModifier and TypeMethodDescriptiondefault BatchGetFindingsResponsebatchGetFindings(Consumer<BatchGetFindingsRequest.Builder> batchGetFindingsRequest) Returns a list of requested findings from standard scans.default BatchGetFindingsResponsebatchGetFindings(BatchGetFindingsRequest batchGetFindingsRequest) Returns a list of requested findings from standard scans.builder()Create a builder that can be used to configure and create aCodeGuruSecurityClient.static CodeGuruSecurityClientcreate()Create aCodeGuruSecurityClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateScanResponsecreateScan(Consumer<CreateScanRequest.Builder> createScanRequest) Use to create a scan using code uploaded to an Amazon S3 bucket.default CreateScanResponsecreateScan(CreateScanRequest createScanRequest) Use to create a scan using code uploaded to an Amazon S3 bucket.default CreateUploadUrlResponsecreateUploadUrl(Consumer<CreateUploadUrlRequest.Builder> createUploadUrlRequest) Generates a pre-signed URL, request headers used to upload a code resource, and code artifact identifier for the uploaded resource.default CreateUploadUrlResponsecreateUploadUrl(CreateUploadUrlRequest createUploadUrlRequest) Generates a pre-signed URL, request headers used to upload a code resource, and code artifact identifier for the uploaded resource.default GetAccountConfigurationResponsegetAccountConfiguration(Consumer<GetAccountConfigurationRequest.Builder> getAccountConfigurationRequest) Use to get the encryption configuration for an account.default GetAccountConfigurationResponsegetAccountConfiguration(GetAccountConfigurationRequest getAccountConfigurationRequest) Use to get the encryption configuration for an account.default GetFindingsResponsegetFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest) Returns a list of all findings generated by a particular scan.default GetFindingsResponsegetFindings(GetFindingsRequest getFindingsRequest) Returns a list of all findings generated by a particular scan.default GetFindingsIterablegetFindingsPaginator(Consumer<GetFindingsRequest.Builder> getFindingsRequest) This is a variant ofgetFindings(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsRequest)operation.default GetFindingsIterablegetFindingsPaginator(GetFindingsRequest getFindingsRequest) This is a variant ofgetFindings(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsRequest)operation.default GetMetricsSummaryResponsegetMetricsSummary(Consumer<GetMetricsSummaryRequest.Builder> getMetricsSummaryRequest) Returns a summary of metrics for 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 GetMetricsSummaryResponsegetMetricsSummary(GetMetricsSummaryRequest getMetricsSummaryRequest) Returns a summary of metrics for 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 GetScanResponsegetScan(Consumer<GetScanRequest.Builder> getScanRequest) Returns details about a scan, including whether or not a scan has completed.default GetScanResponsegetScan(GetScanRequest getScanRequest) Returns details about a scan, including whether or not a scan has completed.default ListFindingsMetricsResponselistFindingsMetrics(Consumer<ListFindingsMetricsRequest.Builder> listFindingsMetricsRequest) Returns metrics about all findings in an account within a specified time range.default ListFindingsMetricsResponselistFindingsMetrics(ListFindingsMetricsRequest listFindingsMetricsRequest) Returns metrics about all findings in an account within a specified time range.default ListFindingsMetricsIterablelistFindingsMetricsPaginator(Consumer<ListFindingsMetricsRequest.Builder> listFindingsMetricsRequest) This is a variant oflistFindingsMetrics(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsRequest)operation.default ListFindingsMetricsIterablelistFindingsMetricsPaginator(ListFindingsMetricsRequest listFindingsMetricsRequest) This is a variant oflistFindingsMetrics(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsRequest)operation.default ListScansResponselistScans(Consumer<ListScansRequest.Builder> listScansRequest) Returns a list of all scans in an account.default ListScansResponselistScans(ListScansRequest listScansRequest) Returns a list of all scans in an account.default ListScansIterablelistScansPaginator(Consumer<ListScansRequest.Builder> listScansRequest) This is a variant oflistScans(software.amazon.awssdk.services.codegurusecurity.model.ListScansRequest)operation.default ListScansIterablelistScansPaginator(ListScansRequest listScansRequest) This is a variant oflistScans(software.amazon.awssdk.services.codegurusecurity.model.ListScansRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns a list of all tags associated with a scan.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns a list of all tags associated with a scan.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Use to add one or more tags to an existing scan.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Use to add one or more tags to an existing scan.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Use to remove one or more tags from an existing scan.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Use to remove one or more tags from an existing scan.updateAccountConfiguration(Consumer<UpdateAccountConfigurationRequest.Builder> updateAccountConfigurationRequest) Use to update the encryption configuration for an account.updateAccountConfiguration(UpdateAccountConfigurationRequest updateAccountConfigurationRequest) Use to update the encryption configuration for an account.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseablecloseMethods inherited from interface software.amazon.awssdk.core.SdkClientserviceName
- 
Field Details- 
SERVICE_NAME- See Also:
 
- 
SERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.- See Also:
 
 
- 
- 
Method Details- 
batchGetFindingsdefault BatchGetFindingsResponse batchGetFindings(BatchGetFindingsRequest batchGetFindingsRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Returns a list of requested findings from standard scans. - Parameters:
- batchGetFindingsRequest-
- Returns:
- Result of the BatchGetFindings operation returned by the service.
- See Also:
 
- 
batchGetFindingsdefault BatchGetFindingsResponse batchGetFindings(Consumer<BatchGetFindingsRequest.Builder> batchGetFindingsRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Returns a list of requested findings from standard scans. 
 This is a convenience which creates an instance of the BatchGetFindingsRequest.Builderavoiding the need to create one manually viaBatchGetFindingsRequest.builder()- Parameters:
- batchGetFindingsRequest- A- Consumerthat will call methods on- BatchGetFindingsRequest.Builderto create a request.
- Returns:
- Result of the BatchGetFindings operation returned by the service.
- See Also:
 
- 
createScandefault CreateScanResponse createScan(CreateScanRequest createScanRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Use to create a scan using code uploaded to an Amazon S3 bucket. - Parameters:
- createScanRequest-
- Returns:
- Result of the CreateScan operation returned by the service.
- See Also:
 
- 
createScandefault CreateScanResponse createScan(Consumer<CreateScanRequest.Builder> createScanRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Use to create a scan using code uploaded to an Amazon S3 bucket. 
 This is a convenience which creates an instance of the CreateScanRequest.Builderavoiding the need to create one manually viaCreateScanRequest.builder()- Parameters:
- createScanRequest- A- Consumerthat will call methods on- CreateScanRequest.Builderto create a request.
- Returns:
- Result of the CreateScan operation returned by the service.
- See Also:
 
- 
createUploadUrldefault CreateUploadUrlResponse createUploadUrl(CreateUploadUrlRequest createUploadUrlRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Generates a pre-signed URL, request headers used to upload a code resource, and code artifact identifier for the uploaded resource. You can upload your code resource to the URL with the request headers using any HTTP client. - Parameters:
- createUploadUrlRequest-
- Returns:
- Result of the CreateUploadUrl operation returned by the service.
- See Also:
 
- 
createUploadUrldefault CreateUploadUrlResponse createUploadUrl(Consumer<CreateUploadUrlRequest.Builder> createUploadUrlRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Generates a pre-signed URL, request headers used to upload a code resource, and code artifact identifier for the uploaded resource. You can upload your code resource to the URL with the request headers using any HTTP client. 
 This is a convenience which creates an instance of the CreateUploadUrlRequest.Builderavoiding the need to create one manually viaCreateUploadUrlRequest.builder()- Parameters:
- createUploadUrlRequest- A- Consumerthat will call methods on- CreateUploadUrlRequest.Builderto create a request.
- Returns:
- Result of the CreateUploadUrl operation returned by the service.
- See Also:
 
- 
getAccountConfigurationdefault GetAccountConfigurationResponse getAccountConfiguration(GetAccountConfigurationRequest getAccountConfigurationRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Use to get the encryption configuration for an account. - Parameters:
- getAccountConfigurationRequest-
- Returns:
- Result of the GetAccountConfiguration operation returned by the service.
- See Also:
 
- 
getAccountConfigurationdefault GetAccountConfigurationResponse getAccountConfiguration(Consumer<GetAccountConfigurationRequest.Builder> getAccountConfigurationRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Use to get the encryption configuration for an account. 
 This is a convenience which creates an instance of the GetAccountConfigurationRequest.Builderavoiding the need to create one manually viaGetAccountConfigurationRequest.builder()- Parameters:
- getAccountConfigurationRequest- A- Consumerthat will call methods on- GetAccountConfigurationRequest.Builderto create a request.
- Returns:
- Result of the GetAccountConfiguration operation returned by the service.
- See Also:
 
- 
getFindingsdefault GetFindingsResponse getFindings(GetFindingsRequest getFindingsRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Returns a list of all findings generated by a particular scan. - Parameters:
- getFindingsRequest-
- Returns:
- Result of the GetFindings operation returned by the service.
- See Also:
 
- 
getFindingsdefault GetFindingsResponse getFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Returns a list of all findings generated by a particular scan. 
 This is a convenience which creates an instance of the GetFindingsRequest.Builderavoiding the need to create one manually viaGetFindingsRequest.builder()- Parameters:
- getFindingsRequest- A- Consumerthat will call methods on- GetFindingsRequest.Builderto create a request.
- Returns:
- Result of the GetFindings operation returned by the service.
- See Also:
 
- 
getFindingsPaginatordefault GetFindingsIterable getFindingsPaginator(GetFindingsRequest getFindingsRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException This is a variant of getFindings(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.codegurusecurity.paginators.GetFindingsIterable responses = client.getFindingsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.codegurusecurity.paginators.GetFindingsIterable responses = client .getFindingsPaginator(request); for (software.amazon.awssdk.services.codegurusecurity.model.GetFindingsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.codegurusecurity.paginators.GetFindingsIterable responses = client.getFindingsPaginator(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 getFindings(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsRequest)operation.- Parameters:
- getFindingsRequest-
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
getFindingsPaginatordefault GetFindingsIterable getFindingsPaginator(Consumer<GetFindingsRequest.Builder> getFindingsRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException This is a variant of getFindings(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.codegurusecurity.paginators.GetFindingsIterable responses = client.getFindingsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.codegurusecurity.paginators.GetFindingsIterable responses = client .getFindingsPaginator(request); for (software.amazon.awssdk.services.codegurusecurity.model.GetFindingsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.codegurusecurity.paginators.GetFindingsIterable responses = client.getFindingsPaginator(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 getFindings(software.amazon.awssdk.services.codegurusecurity.model.GetFindingsRequest)operation.
 This is a convenience which creates an instance of the GetFindingsRequest.Builderavoiding the need to create one manually viaGetFindingsRequest.builder()- Parameters:
- getFindingsRequest- A- Consumerthat will call methods on- GetFindingsRequest.Builderto create a request.
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
getMetricsSummarydefault GetMetricsSummaryResponse getMetricsSummary(GetMetricsSummaryRequest getMetricsSummaryRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Returns a summary of metrics for 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. - Parameters:
- getMetricsSummaryRequest-
- Returns:
- Result of the GetMetricsSummary operation returned by the service.
- See Also:
 
- 
getMetricsSummarydefault GetMetricsSummaryResponse getMetricsSummary(Consumer<GetMetricsSummaryRequest.Builder> getMetricsSummaryRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Returns a summary of metrics for 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.Builderavoiding the need to create one manually viaGetMetricsSummaryRequest.builder()- Parameters:
- getMetricsSummaryRequest- A- Consumerthat will call methods on- GetMetricsSummaryRequest.Builderto create a request.
- Returns:
- Result of the GetMetricsSummary operation returned by the service.
- See Also:
 
- 
getScandefault GetScanResponse getScan(GetScanRequest getScanRequest) throws InternalServerException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Returns details about a scan, including whether or not a scan has completed. - Parameters:
- getScanRequest-
- Returns:
- Result of the GetScan operation returned by the service.
- See Also:
 
- 
getScandefault GetScanResponse getScan(Consumer<GetScanRequest.Builder> getScanRequest) throws InternalServerException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Returns details about a scan, including whether or not a scan has completed. 
 This is a convenience which creates an instance of the GetScanRequest.Builderavoiding the need to create one manually viaGetScanRequest.builder()- Parameters:
- getScanRequest- A- Consumerthat will call methods on- GetScanRequest.Builderto create a request.
- Returns:
- Result of the GetScan operation returned by the service.
- See Also:
 
- 
listFindingsMetricsdefault ListFindingsMetricsResponse listFindingsMetrics(ListFindingsMetricsRequest listFindingsMetricsRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Returns metrics about all findings in an account within a specified time range. - Parameters:
- listFindingsMetricsRequest-
- Returns:
- Result of the ListFindingsMetrics operation returned by the service.
- See Also:
 
- 
listFindingsMetricsdefault ListFindingsMetricsResponse listFindingsMetrics(Consumer<ListFindingsMetricsRequest.Builder> listFindingsMetricsRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Returns metrics about all findings in an account within a specified time range. 
 This is a convenience which creates an instance of the ListFindingsMetricsRequest.Builderavoiding the need to create one manually viaListFindingsMetricsRequest.builder()- Parameters:
- listFindingsMetricsRequest- A- Consumerthat will call methods on- ListFindingsMetricsRequest.Builderto create a request.
- Returns:
- Result of the ListFindingsMetrics operation returned by the service.
- See Also:
 
- 
listFindingsMetricsPaginatordefault ListFindingsMetricsIterable listFindingsMetricsPaginator(ListFindingsMetricsRequest listFindingsMetricsRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException This is a variant of listFindingsMetrics(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.codegurusecurity.paginators.ListFindingsMetricsIterable responses = client.listFindingsMetricsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.codegurusecurity.paginators.ListFindingsMetricsIterable responses = client .listFindingsMetricsPaginator(request); for (software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.codegurusecurity.paginators.ListFindingsMetricsIterable responses = client.listFindingsMetricsPaginator(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 listFindingsMetrics(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsRequest)operation.- Parameters:
- listFindingsMetricsRequest-
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listFindingsMetricsPaginatordefault ListFindingsMetricsIterable listFindingsMetricsPaginator(Consumer<ListFindingsMetricsRequest.Builder> listFindingsMetricsRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException This is a variant of listFindingsMetrics(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.codegurusecurity.paginators.ListFindingsMetricsIterable responses = client.listFindingsMetricsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.codegurusecurity.paginators.ListFindingsMetricsIterable responses = client .listFindingsMetricsPaginator(request); for (software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.codegurusecurity.paginators.ListFindingsMetricsIterable responses = client.listFindingsMetricsPaginator(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 listFindingsMetrics(software.amazon.awssdk.services.codegurusecurity.model.ListFindingsMetricsRequest)operation.
 This is a convenience which creates an instance of the ListFindingsMetricsRequest.Builderavoiding the need to create one manually viaListFindingsMetricsRequest.builder()- Parameters:
- listFindingsMetricsRequest- A- Consumerthat will call methods on- ListFindingsMetricsRequest.Builderto create a request.
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listScansdefault ListScansResponse listScans(ListScansRequest listScansRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Returns a list of all scans in an account. Does not return EXPRESSscans.- Parameters:
- listScansRequest-
- Returns:
- Result of the ListScans operation returned by the service.
- See Also:
 
- 
listScansdefault ListScansResponse listScans(Consumer<ListScansRequest.Builder> listScansRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Returns a list of all scans in an account. Does not return EXPRESSscans.
 This is a convenience which creates an instance of the ListScansRequest.Builderavoiding the need to create one manually viaListScansRequest.builder()- Parameters:
- listScansRequest- A- Consumerthat will call methods on- ListScansRequest.Builderto create a request.
- Returns:
- Result of the ListScans operation returned by the service.
- See Also:
 
- 
listScansPaginatordefault ListScansIterable listScansPaginator(ListScansRequest listScansRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException This is a variant of listScans(software.amazon.awssdk.services.codegurusecurity.model.ListScansRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.codegurusecurity.paginators.ListScansIterable responses = client.listScansPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.codegurusecurity.paginators.ListScansIterable responses = client.listScansPaginator(request); for (software.amazon.awssdk.services.codegurusecurity.model.ListScansResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.codegurusecurity.paginators.ListScansIterable responses = client.listScansPaginator(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 listScans(software.amazon.awssdk.services.codegurusecurity.model.ListScansRequest)operation.- Parameters:
- listScansRequest-
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listScansPaginatordefault ListScansIterable listScansPaginator(Consumer<ListScansRequest.Builder> listScansRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException This is a variant of listScans(software.amazon.awssdk.services.codegurusecurity.model.ListScansRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.codegurusecurity.paginators.ListScansIterable responses = client.listScansPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.codegurusecurity.paginators.ListScansIterable responses = client.listScansPaginator(request); for (software.amazon.awssdk.services.codegurusecurity.model.ListScansResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.codegurusecurity.paginators.ListScansIterable responses = client.listScansPaginator(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 listScans(software.amazon.awssdk.services.codegurusecurity.model.ListScansRequest)operation.
 This is a convenience which creates an instance of the ListScansRequest.Builderavoiding the need to create one manually viaListScansRequest.builder()- Parameters:
- listScansRequest- A- Consumerthat will call methods on- ListScansRequest.Builderto create a request.
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listTagsForResourcedefault ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Returns a list of all tags associated with a scan. - Parameters:
- listTagsForResourceRequest-
- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
 
- 
listTagsForResourcedefault ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Returns a list of all tags associated with a scan. 
 This is a convenience which creates an instance of the ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
- listTagsForResourceRequest- A- Consumerthat will call methods on- ListTagsForResourceRequest.Builderto create a request.
- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
 
- 
tagResourcedefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Use to add one or more tags to an existing scan. - Parameters:
- tagResourceRequest-
- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
 
- 
tagResourcedefault TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Use to add one or more tags to an existing scan. 
 This is a convenience which creates an instance of the TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
- tagResourceRequest- A- Consumerthat will call methods on- TagResourceRequest.Builderto create a request.
- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
 
- 
untagResourcedefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Use to remove one or more tags from an existing scan. - Parameters:
- untagResourceRequest-
- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
 
- 
untagResourcedefault UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Use to remove one or more tags from an existing scan. 
 This is a convenience which creates an instance of the UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
- untagResourceRequest- A- Consumerthat will call methods on- UntagResourceRequest.Builderto create a request.
- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
 
- 
updateAccountConfigurationdefault UpdateAccountConfigurationResponse updateAccountConfiguration(UpdateAccountConfigurationRequest updateAccountConfigurationRequest) throws InternalServerException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Use to update the encryption configuration for an account. - Parameters:
- updateAccountConfigurationRequest-
- Returns:
- Result of the UpdateAccountConfiguration operation returned by the service.
- See Also:
 
- 
updateAccountConfigurationdefault UpdateAccountConfigurationResponse updateAccountConfiguration(Consumer<UpdateAccountConfigurationRequest.Builder> updateAccountConfigurationRequest) throws InternalServerException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CodeGuruSecurityException Use to update the encryption configuration for an account. 
 This is a convenience which creates an instance of the UpdateAccountConfigurationRequest.Builderavoiding the need to create one manually viaUpdateAccountConfigurationRequest.builder()- Parameters:
- updateAccountConfigurationRequest- A- Consumerthat will call methods on- UpdateAccountConfigurationRequest.Builderto create a request.
- Returns:
- Result of the UpdateAccountConfiguration operation returned by the service.
- See Also:
 
- 
createCreate aCodeGuruSecurityClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
- 
builderCreate a builder that can be used to configure and create aCodeGuruSecurityClient.
- 
serviceMetadata
- 
serviceClientConfigurationDescription copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
- serviceClientConfigurationin interface- AwsClient
- Specified by:
- serviceClientConfigurationin interface- SdkClient
- Returns:
- SdkServiceClientConfiguration
 
 
-