describeCAEnrollmentPolicy method

Future<DescribeCAEnrollmentPolicyResult> describeCAEnrollmentPolicy({
  1. required String directoryId,
})

Retrieves detailed information about the certificate authority (CA) enrollment policy for the specified directory. This policy determines how client certificates are automatically enrolled and managed through Amazon Web Services Private Certificate Authority.

May throw ClientException. May throw DirectoryDoesNotExistException. May throw ServiceException. May throw UnsupportedOperationException.

Parameter directoryId : The identifier of the directory for which to retrieve the CA enrollment policy information.

Implementation

Future<DescribeCAEnrollmentPolicyResult> describeCAEnrollmentPolicy({
  required String directoryId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'DirectoryService_20150416.DescribeCAEnrollmentPolicy'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DirectoryId': directoryId,
    },
  );

  return DescribeCAEnrollmentPolicyResult.fromJson(jsonResponse.body);
}