generateClientCertificate method

Future<ClientCertificate> generateClientCertificate({
  1. String? description,
  2. Map<String, String>? tags,
})

Generates a ClientCertificate resource.

May throw UnauthorizedException. May throw TooManyRequestsException. May throw LimitExceededException.

Parameter description : The description of the ClientCertificate.

Parameter tags : The key-value map of strings. The valid character set is a-zA-Z+-=._:/. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

Implementation

Future<ClientCertificate> generateClientCertificate({
  String? description,
  Map<String, String>? tags,
}) async {
  final $payload = <String, dynamic>{
    if (description != null) 'description': description,
    if (tags != null) 'tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/clientcertificates',
    exceptionFnMap: _exceptionFns,
  );
  return ClientCertificate.fromJson(response);
}