describeInboundDmarcSettings method

Future<DescribeInboundDmarcSettingsResponse> describeInboundDmarcSettings({
  1. required String organizationId,
})

Lists the settings in a DMARC policy for a specified organization.

May throw OrganizationNotFoundException. May throw OrganizationStateException.

Parameter organizationId : Lists the ID of the given organization.

Implementation

Future<DescribeInboundDmarcSettingsResponse> describeInboundDmarcSettings({
  required String organizationId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkMailService.DescribeInboundDmarcSettings'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'OrganizationId': organizationId,
    },
  );

  return DescribeInboundDmarcSettingsResponse.fromJson(jsonResponse.body);
}