Interface SignerClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface SignerClient extends AwsClient
Service client for accessing signer. This can be created using the staticbuilder()method.AWS Signer is a fully managed code-signing service to help you ensure the trust and integrity of your code.
Signer supports the following applications:
With code signing for AWS Lambda, you can sign AWS Lambda deployment packages. Integrated support is provided for Amazon S3, Amazon CloudWatch, and AWS CloudTrail. In order to sign code, you create a signing profile and then use Signer to sign Lambda zip files in S3.
With code signing for IoT, you can sign code for any IoT device that is supported by AWS. IoT code signing is available for Amazon FreeRTOS and AWS IoT Device Management, and is integrated with AWS Certificate Manager (ACM). In order to sign code, you Project, you can sign container images stored in a container registry such as Amazon Elastic Container Registry (ECR). The signatures are stored in the registry alongside the images, where they are available for verifying image authenticity and integrity.
For more information about Signer, see the AWS Signer Developer Guide.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
addProfilePermission
default AddProfilePermissionResponse addProfilePermission(AddProfilePermissionRequest addProfilePermissionRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ServiceLimitExceededException, ConflictException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Adds cross-account permissions to a signing profile.
- Parameters:
addProfilePermissionRequest-- Returns:
- Result of the AddProfilePermission operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.ServiceLimitExceededException- The client is making a request that exceeds service limits.ConflictException- The resource encountered a conflicting state.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
addProfilePermission
default AddProfilePermissionResponse addProfilePermission(Consumer<AddProfilePermissionRequest.Builder> addProfilePermissionRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ServiceLimitExceededException, ConflictException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Adds cross-account permissions to a signing profile.
This is a convenience which creates an instance of the
AddProfilePermissionRequest.Builderavoiding the need to create one manually viaAddProfilePermissionRequest.builder()- Parameters:
addProfilePermissionRequest- AConsumerthat will call methods onAddProfilePermissionRequest.Builderto create a request.- Returns:
- Result of the AddProfilePermission operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.ServiceLimitExceededException- The client is making a request that exceeds service limits.ConflictException- The resource encountered a conflicting state.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
cancelSigningProfile
default CancelSigningProfileResponse cancelSigningProfile(CancelSigningProfileRequest cancelSigningProfileRequest) throws ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Changes the state of an
ACTIVEsigning profile toCANCELED. A canceled profile is still viewable with theListSigningProfilesoperation, but it cannot perform new signing jobs, and is deleted two years after cancelation.- Parameters:
cancelSigningProfileRequest-- Returns:
- Result of the CancelSigningProfile operation returned by the service.
- Throws:
ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
cancelSigningProfile
default CancelSigningProfileResponse cancelSigningProfile(Consumer<CancelSigningProfileRequest.Builder> cancelSigningProfileRequest) throws ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Changes the state of an
ACTIVEsigning profile toCANCELED. A canceled profile is still viewable with theListSigningProfilesoperation, but it cannot perform new signing jobs, and is deleted two years after cancelation.
This is a convenience which creates an instance of the
CancelSigningProfileRequest.Builderavoiding the need to create one manually viaCancelSigningProfileRequest.builder()- Parameters:
cancelSigningProfileRequest- AConsumerthat will call methods onCancelSigningProfileRequest.Builderto create a request.- Returns:
- Result of the CancelSigningProfile operation returned by the service.
- Throws:
ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeSigningJob
default DescribeSigningJobResponse describeSigningJob(DescribeSigningJobRequest describeSigningJobRequest) throws ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Returns information about a specific code signing job. You specify the job by using the
jobIdvalue that is returned by the StartSigningJob operation.- Parameters:
describeSigningJobRequest-- Returns:
- Result of the DescribeSigningJob operation returned by the service.
- Throws:
ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeSigningJob
default DescribeSigningJobResponse describeSigningJob(Consumer<DescribeSigningJobRequest.Builder> describeSigningJobRequest) throws ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Returns information about a specific code signing job. You specify the job by using the
jobIdvalue that is returned by the StartSigningJob operation.
This is a convenience which creates an instance of the
DescribeSigningJobRequest.Builderavoiding the need to create one manually viaDescribeSigningJobRequest.builder()- Parameters:
describeSigningJobRequest- AConsumerthat will call methods onDescribeSigningJobRequest.Builderto create a request.- Returns:
- Result of the DescribeSigningJob operation returned by the service.
- Throws:
ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getRevocationStatus
default GetRevocationStatusResponse getRevocationStatus(GetRevocationStatusRequest getRevocationStatusRequest) throws ValidationException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Retrieves the revocation status of one or more of the signing profile, signing job, and signing certificate.
- Parameters:
getRevocationStatusRequest-- Returns:
- Result of the GetRevocationStatus operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getRevocationStatus
default GetRevocationStatusResponse getRevocationStatus(Consumer<GetRevocationStatusRequest.Builder> getRevocationStatusRequest) throws ValidationException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Retrieves the revocation status of one or more of the signing profile, signing job, and signing certificate.
This is a convenience which creates an instance of the
GetRevocationStatusRequest.Builderavoiding the need to create one manually viaGetRevocationStatusRequest.builder()- Parameters:
getRevocationStatusRequest- AConsumerthat will call methods onGetRevocationStatusRequest.Builderto create a request.- Returns:
- Result of the GetRevocationStatus operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getSigningPlatform
default GetSigningPlatformResponse getSigningPlatform(GetSigningPlatformRequest getSigningPlatformRequest) throws ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Returns information on a specific signing platform.
- Parameters:
getSigningPlatformRequest-- Returns:
- Result of the GetSigningPlatform operation returned by the service.
- Throws:
ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getSigningPlatform
default GetSigningPlatformResponse getSigningPlatform(Consumer<GetSigningPlatformRequest.Builder> getSigningPlatformRequest) throws ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Returns information on a specific signing platform.
This is a convenience which creates an instance of the
GetSigningPlatformRequest.Builderavoiding the need to create one manually viaGetSigningPlatformRequest.builder()- Parameters:
getSigningPlatformRequest- AConsumerthat will call methods onGetSigningPlatformRequest.Builderto create a request.- Returns:
- Result of the GetSigningPlatform operation returned by the service.
- Throws:
ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getSigningProfile
default GetSigningProfileResponse getSigningProfile(GetSigningProfileRequest getSigningProfileRequest) throws ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Returns information on a specific signing profile.
- Parameters:
getSigningProfileRequest-- Returns:
- Result of the GetSigningProfile operation returned by the service.
- Throws:
ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getSigningProfile
default GetSigningProfileResponse getSigningProfile(Consumer<GetSigningProfileRequest.Builder> getSigningProfileRequest) throws ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Returns information on a specific signing profile.
This is a convenience which creates an instance of the
GetSigningProfileRequest.Builderavoiding the need to create one manually viaGetSigningProfileRequest.builder()- Parameters:
getSigningProfileRequest- AConsumerthat will call methods onGetSigningProfileRequest.Builderto create a request.- Returns:
- Result of the GetSigningProfile operation returned by the service.
- Throws:
ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listProfilePermissions
default ListProfilePermissionsResponse listProfilePermissions(ListProfilePermissionsRequest listProfilePermissionsRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Lists the cross-account permissions associated with a signing profile.
- Parameters:
listProfilePermissionsRequest-- Returns:
- Result of the ListProfilePermissions operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listProfilePermissions
default ListProfilePermissionsResponse listProfilePermissions(Consumer<ListProfilePermissionsRequest.Builder> listProfilePermissionsRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Lists the cross-account permissions associated with a signing profile.
This is a convenience which creates an instance of the
ListProfilePermissionsRequest.Builderavoiding the need to create one manually viaListProfilePermissionsRequest.builder()- Parameters:
listProfilePermissionsRequest- AConsumerthat will call methods onListProfilePermissionsRequest.Builderto create a request.- Returns:
- Result of the ListProfilePermissions operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSigningJobs
default ListSigningJobsResponse listSigningJobs(ListSigningJobsRequest listSigningJobsRequest) throws ValidationException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Lists all your signing jobs. You can use the
maxResultsparameter to limit the number of signing jobs that are returned in the response. If additional jobs remain to be listed, AWS Signer returns anextTokenvalue. Use this value in subsequent calls toListSigningJobsto fetch the remaining values. You can continue callingListSigningJobswith yourmaxResultsparameter and with new values that Signer returns in thenextTokenparameter until all of your signing jobs have been returned.- Parameters:
listSigningJobsRequest-- Returns:
- Result of the ListSigningJobs operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSigningJobs
default ListSigningJobsResponse listSigningJobs(Consumer<ListSigningJobsRequest.Builder> listSigningJobsRequest) throws ValidationException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Lists all your signing jobs. You can use the
maxResultsparameter to limit the number of signing jobs that are returned in the response. If additional jobs remain to be listed, AWS Signer returns anextTokenvalue. Use this value in subsequent calls toListSigningJobsto fetch the remaining values. You can continue callingListSigningJobswith yourmaxResultsparameter and with new values that Signer returns in thenextTokenparameter until all of your signing jobs have been returned.
This is a convenience which creates an instance of the
ListSigningJobsRequest.Builderavoiding the need to create one manually viaListSigningJobsRequest.builder()- Parameters:
listSigningJobsRequest- AConsumerthat will call methods onListSigningJobsRequest.Builderto create a request.- Returns:
- Result of the ListSigningJobs operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSigningJobs
default ListSigningJobsResponse listSigningJobs() throws ValidationException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Lists all your signing jobs. You can use the
maxResultsparameter to limit the number of signing jobs that are returned in the response. If additional jobs remain to be listed, AWS Signer returns anextTokenvalue. Use this value in subsequent calls toListSigningJobsto fetch the remaining values. You can continue callingListSigningJobswith yourmaxResultsparameter and with new values that Signer returns in thenextTokenparameter until all of your signing jobs have been returned.- Returns:
- Result of the ListSigningJobs operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listSigningJobs(ListSigningJobsRequest), AWS API Documentation
-
listSigningJobsPaginator
default ListSigningJobsIterable listSigningJobsPaginator() throws ValidationException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
This is a variant of
listSigningJobs(software.amazon.awssdk.services.signer.model.ListSigningJobsRequest)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.signer.paginators.ListSigningJobsIterable responses = client.listSigningJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.signer.paginators.ListSigningJobsIterable responses = client .listSigningJobsPaginator(request); for (software.amazon.awssdk.services.signer.model.ListSigningJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.signer.paginators.ListSigningJobsIterable responses = client.listSigningJobsPaginator(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
listSigningJobs(software.amazon.awssdk.services.signer.model.ListSigningJobsRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listSigningJobsPaginator(ListSigningJobsRequest), AWS API Documentation
-
listSigningJobsPaginator
default ListSigningJobsIterable listSigningJobsPaginator(ListSigningJobsRequest listSigningJobsRequest) throws ValidationException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
This is a variant of
listSigningJobs(software.amazon.awssdk.services.signer.model.ListSigningJobsRequest)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.signer.paginators.ListSigningJobsIterable responses = client.listSigningJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.signer.paginators.ListSigningJobsIterable responses = client .listSigningJobsPaginator(request); for (software.amazon.awssdk.services.signer.model.ListSigningJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.signer.paginators.ListSigningJobsIterable responses = client.listSigningJobsPaginator(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
listSigningJobs(software.amazon.awssdk.services.signer.model.ListSigningJobsRequest)operation.- Parameters:
listSigningJobsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSigningJobsPaginator
default ListSigningJobsIterable listSigningJobsPaginator(Consumer<ListSigningJobsRequest.Builder> listSigningJobsRequest) throws ValidationException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
This is a variant of
listSigningJobs(software.amazon.awssdk.services.signer.model.ListSigningJobsRequest)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.signer.paginators.ListSigningJobsIterable responses = client.listSigningJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.signer.paginators.ListSigningJobsIterable responses = client .listSigningJobsPaginator(request); for (software.amazon.awssdk.services.signer.model.ListSigningJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.signer.paginators.ListSigningJobsIterable responses = client.listSigningJobsPaginator(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
listSigningJobs(software.amazon.awssdk.services.signer.model.ListSigningJobsRequest)operation.
This is a convenience which creates an instance of the
ListSigningJobsRequest.Builderavoiding the need to create one manually viaListSigningJobsRequest.builder()- Parameters:
listSigningJobsRequest- AConsumerthat will call methods onListSigningJobsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSigningPlatforms
default ListSigningPlatformsResponse listSigningPlatforms(ListSigningPlatformsRequest listSigningPlatformsRequest) throws ValidationException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Lists all signing platforms available in AWS Signer that match the request parameters. If additional jobs remain to be listed, Signer returns a
nextTokenvalue. Use this value in subsequent calls toListSigningJobsto fetch the remaining values. You can continue callingListSigningJobswith yourmaxResultsparameter and with new values that Signer returns in thenextTokenparameter until all of your signing jobs have been returned.- Parameters:
listSigningPlatformsRequest-- Returns:
- Result of the ListSigningPlatforms operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSigningPlatforms
default ListSigningPlatformsResponse listSigningPlatforms(Consumer<ListSigningPlatformsRequest.Builder> listSigningPlatformsRequest) throws ValidationException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Lists all signing platforms available in AWS Signer that match the request parameters. If additional jobs remain to be listed, Signer returns a
nextTokenvalue. Use this value in subsequent calls toListSigningJobsto fetch the remaining values. You can continue callingListSigningJobswith yourmaxResultsparameter and with new values that Signer returns in thenextTokenparameter until all of your signing jobs have been returned.
This is a convenience which creates an instance of the
ListSigningPlatformsRequest.Builderavoiding the need to create one manually viaListSigningPlatformsRequest.builder()- Parameters:
listSigningPlatformsRequest- AConsumerthat will call methods onListSigningPlatformsRequest.Builderto create a request.- Returns:
- Result of the ListSigningPlatforms operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSigningPlatforms
default ListSigningPlatformsResponse listSigningPlatforms() throws ValidationException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Lists all signing platforms available in AWS Signer that match the request parameters. If additional jobs remain to be listed, Signer returns a
nextTokenvalue. Use this value in subsequent calls toListSigningJobsto fetch the remaining values. You can continue callingListSigningJobswith yourmaxResultsparameter and with new values that Signer returns in thenextTokenparameter until all of your signing jobs have been returned.- Returns:
- Result of the ListSigningPlatforms operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listSigningPlatforms(ListSigningPlatformsRequest), AWS API Documentation
-
listSigningPlatformsPaginator
default ListSigningPlatformsIterable listSigningPlatformsPaginator() throws ValidationException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
This is a variant of
listSigningPlatforms(software.amazon.awssdk.services.signer.model.ListSigningPlatformsRequest)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.signer.paginators.ListSigningPlatformsIterable responses = client.listSigningPlatformsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.signer.paginators.ListSigningPlatformsIterable responses = client .listSigningPlatformsPaginator(request); for (software.amazon.awssdk.services.signer.model.ListSigningPlatformsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.signer.paginators.ListSigningPlatformsIterable responses = client.listSigningPlatformsPaginator(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
listSigningPlatforms(software.amazon.awssdk.services.signer.model.ListSigningPlatformsRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listSigningPlatformsPaginator(ListSigningPlatformsRequest), AWS API Documentation
-
listSigningPlatformsPaginator
default ListSigningPlatformsIterable listSigningPlatformsPaginator(ListSigningPlatformsRequest listSigningPlatformsRequest) throws ValidationException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
This is a variant of
listSigningPlatforms(software.amazon.awssdk.services.signer.model.ListSigningPlatformsRequest)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.signer.paginators.ListSigningPlatformsIterable responses = client.listSigningPlatformsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.signer.paginators.ListSigningPlatformsIterable responses = client .listSigningPlatformsPaginator(request); for (software.amazon.awssdk.services.signer.model.ListSigningPlatformsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.signer.paginators.ListSigningPlatformsIterable responses = client.listSigningPlatformsPaginator(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
listSigningPlatforms(software.amazon.awssdk.services.signer.model.ListSigningPlatformsRequest)operation.- Parameters:
listSigningPlatformsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSigningPlatformsPaginator
default ListSigningPlatformsIterable listSigningPlatformsPaginator(Consumer<ListSigningPlatformsRequest.Builder> listSigningPlatformsRequest) throws ValidationException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
This is a variant of
listSigningPlatforms(software.amazon.awssdk.services.signer.model.ListSigningPlatformsRequest)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.signer.paginators.ListSigningPlatformsIterable responses = client.listSigningPlatformsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.signer.paginators.ListSigningPlatformsIterable responses = client .listSigningPlatformsPaginator(request); for (software.amazon.awssdk.services.signer.model.ListSigningPlatformsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.signer.paginators.ListSigningPlatformsIterable responses = client.listSigningPlatformsPaginator(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
listSigningPlatforms(software.amazon.awssdk.services.signer.model.ListSigningPlatformsRequest)operation.
This is a convenience which creates an instance of the
ListSigningPlatformsRequest.Builderavoiding the need to create one manually viaListSigningPlatformsRequest.builder()- Parameters:
listSigningPlatformsRequest- AConsumerthat will call methods onListSigningPlatformsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSigningProfiles
default ListSigningProfilesResponse listSigningProfiles(ListSigningProfilesRequest listSigningProfilesRequest) throws AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Lists all available signing profiles in your AWS account. Returns only profiles with an
ACTIVEstatus unless theincludeCanceledrequest field is set totrue. If additional jobs remain to be listed, AWS Signer returns anextTokenvalue. Use this value in subsequent calls toListSigningJobsto fetch the remaining values. You can continue callingListSigningJobswith yourmaxResultsparameter and with new values that Signer returns in thenextTokenparameter until all of your signing jobs have been returned.- Parameters:
listSigningProfilesRequest-- Returns:
- Result of the ListSigningProfiles operation returned by the service.
- Throws:
AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSigningProfiles
default ListSigningProfilesResponse listSigningProfiles(Consumer<ListSigningProfilesRequest.Builder> listSigningProfilesRequest) throws AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Lists all available signing profiles in your AWS account. Returns only profiles with an
ACTIVEstatus unless theincludeCanceledrequest field is set totrue. If additional jobs remain to be listed, AWS Signer returns anextTokenvalue. Use this value in subsequent calls toListSigningJobsto fetch the remaining values. You can continue callingListSigningJobswith yourmaxResultsparameter and with new values that Signer returns in thenextTokenparameter until all of your signing jobs have been returned.
This is a convenience which creates an instance of the
ListSigningProfilesRequest.Builderavoiding the need to create one manually viaListSigningProfilesRequest.builder()- Parameters:
listSigningProfilesRequest- AConsumerthat will call methods onListSigningProfilesRequest.Builderto create a request.- Returns:
- Result of the ListSigningProfiles operation returned by the service.
- Throws:
AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSigningProfiles
default ListSigningProfilesResponse listSigningProfiles() throws AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Lists all available signing profiles in your AWS account. Returns only profiles with an
ACTIVEstatus unless theincludeCanceledrequest field is set totrue. If additional jobs remain to be listed, AWS Signer returns anextTokenvalue. Use this value in subsequent calls toListSigningJobsto fetch the remaining values. You can continue callingListSigningJobswith yourmaxResultsparameter and with new values that Signer returns in thenextTokenparameter until all of your signing jobs have been returned.- Returns:
- Result of the ListSigningProfiles operation returned by the service.
- Throws:
AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listSigningProfiles(ListSigningProfilesRequest), AWS API Documentation
-
listSigningProfilesPaginator
default ListSigningProfilesIterable listSigningProfilesPaginator() throws AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
This is a variant of
listSigningProfiles(software.amazon.awssdk.services.signer.model.ListSigningProfilesRequest)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.signer.paginators.ListSigningProfilesIterable responses = client.listSigningProfilesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.signer.paginators.ListSigningProfilesIterable responses = client .listSigningProfilesPaginator(request); for (software.amazon.awssdk.services.signer.model.ListSigningProfilesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.signer.paginators.ListSigningProfilesIterable responses = client.listSigningProfilesPaginator(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
listSigningProfiles(software.amazon.awssdk.services.signer.model.ListSigningProfilesRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listSigningProfilesPaginator(ListSigningProfilesRequest), AWS API Documentation
-
listSigningProfilesPaginator
default ListSigningProfilesIterable listSigningProfilesPaginator(ListSigningProfilesRequest listSigningProfilesRequest) throws AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
This is a variant of
listSigningProfiles(software.amazon.awssdk.services.signer.model.ListSigningProfilesRequest)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.signer.paginators.ListSigningProfilesIterable responses = client.listSigningProfilesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.signer.paginators.ListSigningProfilesIterable responses = client .listSigningProfilesPaginator(request); for (software.amazon.awssdk.services.signer.model.ListSigningProfilesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.signer.paginators.ListSigningProfilesIterable responses = client.listSigningProfilesPaginator(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
listSigningProfiles(software.amazon.awssdk.services.signer.model.ListSigningProfilesRequest)operation.- Parameters:
listSigningProfilesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSigningProfilesPaginator
default ListSigningProfilesIterable listSigningProfilesPaginator(Consumer<ListSigningProfilesRequest.Builder> listSigningProfilesRequest) throws AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
This is a variant of
listSigningProfiles(software.amazon.awssdk.services.signer.model.ListSigningProfilesRequest)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.signer.paginators.ListSigningProfilesIterable responses = client.listSigningProfilesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.signer.paginators.ListSigningProfilesIterable responses = client .listSigningProfilesPaginator(request); for (software.amazon.awssdk.services.signer.model.ListSigningProfilesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.signer.paginators.ListSigningProfilesIterable responses = client.listSigningProfilesPaginator(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
listSigningProfiles(software.amazon.awssdk.services.signer.model.ListSigningProfilesRequest)operation.
This is a convenience which creates an instance of the
ListSigningProfilesRequest.Builderavoiding the need to create one manually viaListSigningProfilesRequest.builder()- Parameters:
listSigningProfilesRequest- AConsumerthat will call methods onListSigningProfilesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalServiceErrorException, BadRequestException, NotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, SignerException
Returns a list of the tags associated with a signing profile resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
InternalServiceErrorException- An internal error occurred.BadRequestException- The request contains invalid parameters for the ARN or tags. This exception also occurs when you call a tagging API on a cancelled signing profile.NotFoundException- The signing profile was not found.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InternalServiceErrorException, BadRequestException, NotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, SignerException
Returns a list of the tags associated with a signing profile resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
InternalServiceErrorException- An internal error occurred.BadRequestException- The request contains invalid parameters for the ARN or tags. This exception also occurs when you call a tagging API on a cancelled signing profile.NotFoundException- The signing profile was not found.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putSigningProfile
default PutSigningProfileResponse putSigningProfile(PutSigningProfileRequest putSigningProfileRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Creates a signing profile. A signing profile is a code-signing template that can be used to carry out a pre-defined signing job.
- Parameters:
putSigningProfileRequest-- Returns:
- Result of the PutSigningProfile operation returned by the service.
- Throws:
ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- You signing certificate could not be validated.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putSigningProfile
default PutSigningProfileResponse putSigningProfile(Consumer<PutSigningProfileRequest.Builder> putSigningProfileRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Creates a signing profile. A signing profile is a code-signing template that can be used to carry out a pre-defined signing job.
This is a convenience which creates an instance of the
PutSigningProfileRequest.Builderavoiding the need to create one manually viaPutSigningProfileRequest.builder()- Parameters:
putSigningProfileRequest- AConsumerthat will call methods onPutSigningProfileRequest.Builderto create a request.- Returns:
- Result of the PutSigningProfile operation returned by the service.
- Throws:
ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- You signing certificate could not be validated.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
removeProfilePermission
default RemoveProfilePermissionResponse removeProfilePermission(RemoveProfilePermissionRequest removeProfilePermissionRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ConflictException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Removes cross-account permissions from a signing profile.
- Parameters:
removeProfilePermissionRequest-- Returns:
- Result of the RemoveProfilePermission operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.ConflictException- The resource encountered a conflicting state.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
removeProfilePermission
default RemoveProfilePermissionResponse removeProfilePermission(Consumer<RemoveProfilePermissionRequest.Builder> removeProfilePermissionRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ConflictException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Removes cross-account permissions from a signing profile.
This is a convenience which creates an instance of the
RemoveProfilePermissionRequest.Builderavoiding the need to create one manually viaRemoveProfilePermissionRequest.builder()- Parameters:
removeProfilePermissionRequest- AConsumerthat will call methods onRemoveProfilePermissionRequest.Builderto create a request.- Returns:
- Result of the RemoveProfilePermission operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.ConflictException- The resource encountered a conflicting state.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
revokeSignature
default RevokeSignatureResponse revokeSignature(RevokeSignatureRequest revokeSignatureRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Changes the state of a signing job to REVOKED. This indicates that the signature is no longer valid.
- Parameters:
revokeSignatureRequest-- Returns:
- Result of the RevokeSignature operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.ResourceNotFoundException- A specified resource could not be found.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
revokeSignature
default RevokeSignatureResponse revokeSignature(Consumer<RevokeSignatureRequest.Builder> revokeSignatureRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Changes the state of a signing job to REVOKED. This indicates that the signature is no longer valid.
This is a convenience which creates an instance of the
RevokeSignatureRequest.Builderavoiding the need to create one manually viaRevokeSignatureRequest.builder()- Parameters:
revokeSignatureRequest- AConsumerthat will call methods onRevokeSignatureRequest.Builderto create a request.- Returns:
- Result of the RevokeSignature operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.ResourceNotFoundException- A specified resource could not be found.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
revokeSigningProfile
default RevokeSigningProfileResponse revokeSigningProfile(RevokeSigningProfileRequest revokeSigningProfileRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Changes the state of a signing profile to REVOKED. This indicates that signatures generated using the signing profile after an effective start date are no longer valid.
- Parameters:
revokeSigningProfileRequest-- Returns:
- Result of the RevokeSigningProfile operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.ResourceNotFoundException- A specified resource could not be found.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
revokeSigningProfile
default RevokeSigningProfileResponse revokeSigningProfile(Consumer<RevokeSigningProfileRequest.Builder> revokeSigningProfileRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Changes the state of a signing profile to REVOKED. This indicates that signatures generated using the signing profile after an effective start date are no longer valid.
This is a convenience which creates an instance of the
RevokeSigningProfileRequest.Builderavoiding the need to create one manually viaRevokeSigningProfileRequest.builder()- Parameters:
revokeSigningProfileRequest- AConsumerthat will call methods onRevokeSigningProfileRequest.Builderto create a request.- Returns:
- Result of the RevokeSigningProfile operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.AccessDeniedException- You do not have sufficient access to perform this action.ResourceNotFoundException- A specified resource could not be found.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
signPayload
default SignPayloadResponse signPayload(SignPayloadRequest signPayloadRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Signs a binary payload and returns a signature envelope.
- Parameters:
signPayloadRequest-- Returns:
- Result of the SignPayload operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
signPayload
default SignPayloadResponse signPayload(Consumer<SignPayloadRequest.Builder> signPayloadRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Signs a binary payload and returns a signature envelope.
This is a convenience which creates an instance of the
SignPayloadRequest.Builderavoiding the need to create one manually viaSignPayloadRequest.builder()- Parameters:
signPayloadRequest- AConsumerthat will call methods onSignPayloadRequest.Builderto create a request.- Returns:
- Result of the SignPayload operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
startSigningJob
default StartSigningJobResponse startSigningJob(StartSigningJobRequest startSigningJobRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Initiates a signing job to be performed on the code provided. Signing jobs are viewable by the
ListSigningJobsoperation for two years after they are performed. Note the following requirements:-
You must create an Amazon S3 source bucket. For more information, see Creating a Bucket in the Amazon S3 Getting Started Guide.
-
Your S3 source bucket must be version enabled.
-
You must create an S3 destination bucket. AWS Signer uses your S3 destination bucket to write your signed code.
-
You specify the name of the source and destination buckets when calling the
StartSigningJoboperation. -
You must ensure the S3 buckets are from the same Region as the signing profile. Cross-Region signing isn't supported.
-
You must also specify a request token that identifies your request to Signer.
You can call the DescribeSigningJob and the ListSigningJobs actions after you call
StartSigningJob.For a Java example that shows how to use this action, see StartSigningJob.
- Parameters:
startSigningJobRequest-- Returns:
- Result of the StartSigningJob operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.ThrottlingException- The request was denied due to request throttling.Instead of this error,
TooManyRequestsExceptionshould be used.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
-
startSigningJob
default StartSigningJobResponse startSigningJob(Consumer<StartSigningJobRequest.Builder> startSigningJobRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, TooManyRequestsException, InternalServiceErrorException, AwsServiceException, SdkClientException, SignerException
Initiates a signing job to be performed on the code provided. Signing jobs are viewable by the
ListSigningJobsoperation for two years after they are performed. Note the following requirements:-
You must create an Amazon S3 source bucket. For more information, see Creating a Bucket in the Amazon S3 Getting Started Guide.
-
Your S3 source bucket must be version enabled.
-
You must create an S3 destination bucket. AWS Signer uses your S3 destination bucket to write your signed code.
-
You specify the name of the source and destination buckets when calling the
StartSigningJoboperation. -
You must ensure the S3 buckets are from the same Region as the signing profile. Cross-Region signing isn't supported.
-
You must also specify a request token that identifies your request to Signer.
You can call the DescribeSigningJob and the ListSigningJobs actions after you call
StartSigningJob.For a Java example that shows how to use this action, see StartSigningJob.
This is a convenience which creates an instance of the
StartSigningJobRequest.Builderavoiding the need to create one manually viaStartSigningJobRequest.builder()- Parameters:
startSigningJobRequest- AConsumerthat will call methods onStartSigningJobRequest.Builderto create a request.- Returns:
- Result of the StartSigningJob operation returned by the service.
- Throws:
ValidationException- You signing certificate could not be validated.ResourceNotFoundException- A specified resource could not be found.AccessDeniedException- You do not have sufficient access to perform this action.ThrottlingException- The request was denied due to request throttling.Instead of this error,
TooManyRequestsExceptionshould be used.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.InternalServiceErrorException- An internal error occurred.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalServiceErrorException, BadRequestException, NotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, SignerException
Adds one or more tags to a signing profile. Tags are labels that you can use to identify and organize your AWS resources. Each tag consists of a key and an optional value. To specify the signing profile, use its Amazon Resource Name (ARN). To specify the tag, use a key-value pair.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
InternalServiceErrorException- An internal error occurred.BadRequestException- The request contains invalid parameters for the ARN or tags. This exception also occurs when you call a tagging API on a cancelled signing profile.NotFoundException- The signing profile was not found.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InternalServiceErrorException, BadRequestException, NotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, SignerException
Adds one or more tags to a signing profile. Tags are labels that you can use to identify and organize your AWS resources. Each tag consists of a key and an optional value. To specify the signing profile, use its Amazon Resource Name (ARN). To specify the tag, use a key-value pair.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
InternalServiceErrorException- An internal error occurred.BadRequestException- The request contains invalid parameters for the ARN or tags. This exception also occurs when you call a tagging API on a cancelled signing profile.NotFoundException- The signing profile was not found.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalServiceErrorException, BadRequestException, NotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, SignerException
Removes one or more tags from a signing profile. To remove the tags, specify a list of tag keys.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
InternalServiceErrorException- An internal error occurred.BadRequestException- The request contains invalid parameters for the ARN or tags. This exception also occurs when you call a tagging API on a cancelled signing profile.NotFoundException- The signing profile was not found.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InternalServiceErrorException, BadRequestException, NotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, SignerException
Removes one or more tags from a signing profile. To remove the tags, specify a list of tag keys.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
InternalServiceErrorException- An internal error occurred.BadRequestException- The request contains invalid parameters for the ARN or tags. This exception also occurs when you call a tagging API on a cancelled signing profile.NotFoundException- The signing profile was not found.TooManyRequestsException- The allowed number of job-signing requests has been exceeded.This error supersedes the error
ThrottlingException.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.SignerException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
waiter
default SignerWaiter waiter()
Create an instance ofSignerWaiterusing this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
SignerWaiter
-
create
static SignerClient create()
Create aSignerClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static SignerClientBuilder builder()
Create a builder that can be used to configure and create aSignerClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default SignerServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-