@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface CodeGuruSecurityClient 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 BatchGetFindingsResponse |
batchGetFindings(BatchGetFindingsRequest batchGetFindingsRequest)
Returns a list of all requested findings.
|
default BatchGetFindingsResponse |
batchGetFindings(Consumer<BatchGetFindingsRequest.Builder> batchGetFindingsRequest)
Returns a list of all requested findings.
|
static CodeGuruSecurityClientBuilder |
builder()
Create a builder that can be used to configure and create a
CodeGuruSecurityClient. |
static CodeGuruSecurityClient |
create()
Create a
CodeGuruSecurityClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateScanResponse |
createScan(Consumer<CreateScanRequest.Builder> createScanRequest)
Use to create a scan using code uploaded to an S3 bucket.
|
default CreateScanResponse |
createScan(CreateScanRequest createScanRequest)
Use to create a scan using code uploaded to an S3 bucket.
|
default CreateUploadUrlResponse |
createUploadUrl(Consumer<CreateUploadUrlRequest.Builder> createUploadUrlRequest)
Generates a pre-signed URL and request headers used to upload a code resource.
|
default CreateUploadUrlResponse |
createUploadUrl(CreateUploadUrlRequest createUploadUrlRequest)
Generates a pre-signed URL and request headers used to upload a code resource.
|
default GetAccountConfigurationResponse |
getAccountConfiguration(Consumer<GetAccountConfigurationRequest.Builder> getAccountConfigurationRequest)
Use to get account level configuration.
|
default GetAccountConfigurationResponse |
getAccountConfiguration(GetAccountConfigurationRequest getAccountConfigurationRequest)
Use to get account level configuration.
|
default GetFindingsResponse |
getFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest)
Returns a list of all findings generated by a particular scan.
|
default GetFindingsResponse |
getFindings(GetFindingsRequest getFindingsRequest)
Returns a list of all findings generated by a particular scan.
|
default GetFindingsIterable |
getFindingsPaginator(Consumer<GetFindingsRequest.Builder> getFindingsRequest)
Returns a list of all findings generated by a particular scan.
|
default GetFindingsIterable |
getFindingsPaginator(GetFindingsRequest getFindingsRequest)
Returns a list of all findings generated by a particular scan.
|
default 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 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 GetScanResponse |
getScan(Consumer<GetScanRequest.Builder> getScanRequest)
Returns details about a scan, including whether or not a scan has completed.
|
default GetScanResponse |
getScan(GetScanRequest getScanRequest)
Returns details about a scan, including whether or not a scan has completed.
|
default ListFindingsMetricsResponse |
listFindingsMetrics(Consumer<ListFindingsMetricsRequest.Builder> listFindingsMetricsRequest)
Returns metrics about all findings in an account within a specified time range.
|
default ListFindingsMetricsResponse |
listFindingsMetrics(ListFindingsMetricsRequest listFindingsMetricsRequest)
Returns metrics about all findings in an account within a specified time range.
|
default ListFindingsMetricsIterable |
listFindingsMetricsPaginator(Consumer<ListFindingsMetricsRequest.Builder> listFindingsMetricsRequest)
Returns metrics about all findings in an account within a specified time range.
|
default ListFindingsMetricsIterable |
listFindingsMetricsPaginator(ListFindingsMetricsRequest listFindingsMetricsRequest)
Returns metrics about all findings in an account within a specified time range.
|
default ListScansResponse |
listScans(Consumer<ListScansRequest.Builder> listScansRequest)
Returns a list of all the scans in an account.
|
default ListScansResponse |
listScans(ListScansRequest listScansRequest)
Returns a list of all the scans in an account.
|
default ListScansIterable |
listScansPaginator(Consumer<ListScansRequest.Builder> listScansRequest)
Returns a list of all the scans in an account.
|
default ListScansIterable |
listScansPaginator(ListScansRequest listScansRequest)
Returns a list of all the scans in an account.
|
default ListTagsForResourceResponse |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Returns a list of all tags associated with a scan.
|
default ListTagsForResourceResponse |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns a list of all tags associated with a scan.
|
default CodeGuruSecurityServiceClientConfiguration |
serviceClientConfiguration() |
static ServiceMetadata |
serviceMetadata() |
default TagResourceResponse |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Use to add one or more tags to an existing scan.
|
default TagResourceResponse |
tagResource(TagResourceRequest tagResourceRequest)
Use to add one or more tags to an existing scan.
|
default UntagResourceResponse |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Use to remove one or more tags from an existing scan.
|
default UntagResourceResponse |
untagResource(UntagResourceRequest untagResourceRequest)
Use to remove one or more tags from an existing scan.
|
default UpdateAccountConfigurationResponse |
updateAccountConfiguration(Consumer<UpdateAccountConfigurationRequest.Builder> updateAccountConfigurationRequest)
Use to update account-level configuration with an encryption key.
|
default 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 BatchGetFindingsResponse batchGetFindings(BatchGetFindingsRequest batchGetFindingsRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
Returns a list of all requested findings.
batchGetFindingsRequest - InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault BatchGetFindingsResponse batchGetFindings(Consumer<BatchGetFindingsRequest.Builder> batchGetFindingsRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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.InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateScanResponse createScan(CreateScanRequest createScanRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
Use to create a scan using code uploaded to an S3 bucket.
createScanRequest - InternalServerException - The server encountered an internal error and is unable to complete the request.ConflictException - The requested operation would cause a conflict with the current state of a service resource associated
with the request. Resolve the conflict before retrying this request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateScanResponse createScan(Consumer<CreateScanRequest.Builder> createScanRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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.InternalServerException - The server encountered an internal error and is unable to complete the request.ConflictException - The requested operation would cause a conflict with the current state of a service resource associated
with the request. Resolve the conflict before retrying this request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateUploadUrlResponse createUploadUrl(CreateUploadUrlRequest createUploadUrlRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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 - InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateUploadUrlResponse createUploadUrl(Consumer<CreateUploadUrlRequest.Builder> createUploadUrlRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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.InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetAccountConfigurationResponse getAccountConfiguration(GetAccountConfigurationRequest getAccountConfigurationRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
Use to get account level configuration.
getAccountConfigurationRequest - InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetAccountConfigurationResponse getAccountConfiguration(Consumer<GetAccountConfigurationRequest.Builder> getAccountConfigurationRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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.InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFindingsResponse getFindings(GetFindingsRequest getFindingsRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
Returns a list of all findings generated by a particular scan.
getFindingsRequest - InternalServerException - The server encountered an internal error and is unable to complete the request.ConflictException - The requested operation would cause a conflict with the current state of a service resource associated
with the request. Resolve the conflict before retrying this request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFindingsResponse getFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, ValidationException, AccessDeniedException, 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.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.InternalServerException - The server encountered an internal error and is unable to complete the request.ConflictException - The requested operation would cause a conflict with the current state of a service resource associated
with the request. Resolve the conflict before retrying this request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFindingsIterable getFindingsPaginator(GetFindingsRequest getFindingsRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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 iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codegurusecurity.paginators.GetFindingsIterable responses = client.getFindingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.
getFindingsRequest - InternalServerException - The server encountered an internal error and is unable to complete the request.ConflictException - The requested operation would cause a conflict with the current state of a service resource associated
with the request. Resolve the conflict before retrying this request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFindingsIterable getFindingsPaginator(Consumer<GetFindingsRequest.Builder> getFindingsRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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 iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codegurusecurity.paginators.GetFindingsIterable responses = client.getFindingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.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.InternalServerException - The server encountered an internal error and is unable to complete the request.ConflictException - The requested operation would cause a conflict with the current state of a service resource associated
with the request. Resolve the conflict before retrying this request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetMetricsSummaryResponse getMetricsSummary(GetMetricsSummaryRequest getMetricsSummaryRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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 - InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetMetricsSummaryResponse getMetricsSummary(Consumer<GetMetricsSummaryRequest.Builder> getMetricsSummaryRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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.InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetScanResponse getScan(GetScanRequest getScanRequest) throws InternalServerException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
Returns details about a scan, including whether or not a scan has completed.
getScanRequest - InternalServerException - The server encountered an internal error and is unable to complete the request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetScanResponse getScan(Consumer<GetScanRequest.Builder> getScanRequest) throws InternalServerException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, 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.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.InternalServerException - The server encountered an internal error and is unable to complete the request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFindingsMetricsResponse listFindingsMetrics(ListFindingsMetricsRequest listFindingsMetricsRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
Returns metrics about all findings in an account within a specified time range.
listFindingsMetricsRequest - InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFindingsMetricsResponse listFindingsMetrics(Consumer<ListFindingsMetricsRequest.Builder> listFindingsMetricsRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, 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.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.InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFindingsMetricsIterable listFindingsMetricsPaginator(ListFindingsMetricsRequest listFindingsMetricsRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codegurusecurity.paginators.ListFindingsMetricsIterable responses = client.listFindingsMetricsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.
listFindingsMetricsRequest - InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFindingsMetricsIterable listFindingsMetricsPaginator(Consumer<ListFindingsMetricsRequest.Builder> listFindingsMetricsRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codegurusecurity.paginators.ListFindingsMetricsIterable responses = client.listFindingsMetricsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.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.InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListScansResponse listScans(ListScansRequest listScansRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
Returns a list of all the scans in an account.
listScansRequest - InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListScansResponse listScans(Consumer<ListScansRequest.Builder> listScansRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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.InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListScansIterable listScansPaginator(ListScansRequest listScansRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codegurusecurity.paginators.ListScansIterable responses = client.listScansPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.
listScansRequest - InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListScansIterable listScansPaginator(Consumer<ListScansRequest.Builder> listScansRequest) throws InternalServerException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.codegurusecurity.paginators.ListScansIterable responses = client.listScansPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@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 directly
software.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.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.InternalServerException - The server encountered an internal error and is unable to complete the request.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
Returns a list of all tags associated with a scan.
listTagsForResourceRequest - InternalServerException - The server encountered an internal error and is unable to complete the request.ConflictException - The requested operation would cause a conflict with the current state of a service resource associated
with the request. Resolve the conflict before retrying this request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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.InternalServerException - The server encountered an internal error and is unable to complete the request.ConflictException - The requested operation would cause a conflict with the current state of a service resource associated
with the request. Resolve the conflict before retrying this request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
Use to add one or more tags to an existing scan.
tagResourceRequest - InternalServerException - The server encountered an internal error and is unable to complete the request.ConflictException - The requested operation would cause a conflict with the current state of a service resource associated
with the request. Resolve the conflict before retrying this request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, ValidationException, AccessDeniedException, 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.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.InternalServerException - The server encountered an internal error and is unable to complete the request.ConflictException - The requested operation would cause a conflict with the current state of a service resource associated
with the request. Resolve the conflict before retrying this request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
Use to remove one or more tags from an existing scan.
untagResourceRequest - InternalServerException - The server encountered an internal error and is unable to complete the request.ConflictException - The requested operation would cause a conflict with the current state of a service resource associated
with the request. Resolve the conflict before retrying this request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, ValidationException, AccessDeniedException, 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.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.InternalServerException - The server encountered an internal error and is unable to complete the request.ConflictException - The requested operation would cause a conflict with the current state of a service resource associated
with the request. Resolve the conflict before retrying this request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateAccountConfigurationResponse updateAccountConfiguration(UpdateAccountConfigurationRequest updateAccountConfigurationRequest) throws InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
Use to update account-level configuration with an encryption key.
updateAccountConfigurationRequest - InternalServerException - The server encountered an internal error and is unable to complete the request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateAccountConfigurationResponse updateAccountConfiguration(Consumer<UpdateAccountConfigurationRequest.Builder> updateAccountConfigurationRequest) throws InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruSecurityException
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.InternalServerException - The server encountered an internal error and is unable to complete the request.ResourceNotFoundException - The resource specified in the request was not found.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the specified constraints.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CodeGuruSecurityException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic CodeGuruSecurityClient create()
CodeGuruSecurityClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static CodeGuruSecurityClientBuilder builder()
CodeGuruSecurityClient.static ServiceMetadata serviceMetadata()
default CodeGuruSecurityServiceClientConfiguration serviceClientConfiguration()
serviceClientConfiguration in interface AwsClientserviceClientConfiguration in interface SdkClientCopyright © 2023. All rights reserved.