cancelSigningProfile method

Future<void> cancelSigningProfile({
  1. required String profileName,
})

Changes the state of an ACTIVE signing profile to CANCELED. A canceled profile is still viewable with the ListSigningProfiles operation, but it cannot perform new signing jobs, and is deleted two years after cancelation.

May throw ResourceNotFoundException. May throw AccessDeniedException. May throw TooManyRequestsException. May throw InternalServiceErrorException.

Parameter profileName : The name of the signing profile to be canceled.

Implementation

Future<void> cancelSigningProfile({
  required String profileName,
}) async {
  ArgumentError.checkNotNull(profileName, 'profileName');
  _s.validateStringLength(
    'profileName',
    profileName,
    2,
    64,
    isRequired: true,
  );
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/signing-profiles/${Uri.encodeComponent(profileName)}',
    exceptionFnMap: _exceptionFns,
  );
}