getGroupCertificateAuthority method

Future<GetGroupCertificateAuthorityResponse> getGroupCertificateAuthority({
  1. required String certificateAuthorityId,
  2. required String groupId,
})

Retreives the CA associated with a group. Returns the public key of the CA.

May throw BadRequestException. May throw InternalServerErrorException.

Parameter certificateAuthorityId : The ID of the certificate authority.

Parameter groupId : The ID of the Greengrass group.

Implementation

Future<GetGroupCertificateAuthorityResponse> getGroupCertificateAuthority({
  required String certificateAuthorityId,
  required String groupId,
}) async {
  ArgumentError.checkNotNull(
      certificateAuthorityId, 'certificateAuthorityId');
  ArgumentError.checkNotNull(groupId, 'groupId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/greengrass/groups/${Uri.encodeComponent(groupId)}/certificateauthorities/${Uri.encodeComponent(certificateAuthorityId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetGroupCertificateAuthorityResponse.fromJson(response);
}