getServerCertificate method

Future<GetServerCertificateResponse> getServerCertificate({
  1. required String serverCertificateName,
})

Retrieves information about the specified server certificate stored in IAM.

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

May throw NoSuchEntityException. May throw ServiceFailureException.

Parameter serverCertificateName : The name of the server certificate you want to retrieve information about.

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<GetServerCertificateResponse> getServerCertificate({
  required String serverCertificateName,
}) async {
  ArgumentError.checkNotNull(serverCertificateName, 'serverCertificateName');
  _s.validateStringLength(
    'serverCertificateName',
    serverCertificateName,
    1,
    128,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['ServerCertificateName'] = serverCertificateName;
  final $result = await _protocol.send(
    $request,
    action: 'GetServerCertificate',
    version: '2010-05-08',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['GetServerCertificateRequest'],
    shapes: shapes,
    resultWrapper: 'GetServerCertificateResult',
  );
  return GetServerCertificateResponse.fromXml($result);
}