getIngressPoint method

Future<GetIngressPointResponse> getIngressPoint({
  1. required String ingressPointId,
  2. TrustStoreResponseOption? includeTrustStoreContents,
})

Fetch ingress endpoint resource attributes.

May throw ResourceNotFoundException. May throw ValidationException.

Parameter ingressPointId : The identifier of an ingress endpoint.

Parameter includeTrustStoreContents : Whether to include the trust store contents in the response. Use INCLUDE to retrieve trust store certificate and CRL contents.

Implementation

Future<GetIngressPointResponse> getIngressPoint({
  required String ingressPointId,
  TrustStoreResponseOption? includeTrustStoreContents,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'MailManagerSvc.GetIngressPoint'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'IngressPointId': ingressPointId,
      if (includeTrustStoreContents != null)
        'IncludeTrustStoreContents': includeTrustStoreContents.value,
    },
  );

  return GetIngressPointResponse.fromJson(jsonResponse.body);
}