listMobileDeviceAccessRules method

Future<ListMobileDeviceAccessRulesResponse> listMobileDeviceAccessRules({
  1. required String organizationId,
})

Lists the mobile device access rules for the specified WorkMail organization.

May throw InvalidParameterException. May throw OrganizationNotFoundException. May throw OrganizationStateException.

Parameter organizationId : The WorkMail organization for which to list the rules.

Implementation

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

  return ListMobileDeviceAccessRulesResponse.fromJson(jsonResponse.body);
}