deleteServerCertificate method

Future<void> deleteServerCertificate({
  1. required String serverCertificateName,
})

Deletes the specified server certificate.

For more information about working with server certificates, see Working with Server Certificates in the IAM User Guide. This topic also includes a list of AWS services that can use the server certificates that you manage with IAM.

May throw NoSuchEntityException. May throw DeleteConflictException. May throw LimitExceededException. May throw ServiceFailureException.

Parameter serverCertificateName : The name of the server certificate you want to delete.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Implementation

Future<void> deleteServerCertificate({
  required String serverCertificateName,
}) async {
  ArgumentError.checkNotNull(serverCertificateName, 'serverCertificateName');
  _s.validateStringLength(
    'serverCertificateName',
    serverCertificateName,
    1,
    128,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['ServerCertificateName'] = serverCertificateName;
  await _protocol.send(
    $request,
    action: 'DeleteServerCertificate',
    version: '2010-05-08',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteServerCertificateRequest'],
    shapes: shapes,
  );
}